-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move #step-indicator into components and enhance the styles wit…
…h the new defined style
- Loading branch information
1 parent
004f74d
commit f3e2bdf
Showing
37 changed files
with
948 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ header: 'UI Library' | |
title: 'Switch' | ||
draft: false | ||
status: wip | ||
order: 14 | ||
order: 15 | ||
--- | ||
|
||
<!-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ header: 'UI Library' | |
title: 'Tabs' | ||
draft: false | ||
status: null | ||
order: 15 | ||
order: 16 | ||
--- | ||
|
||
<!-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ header: 'UI Library' | |
title: 'SummaryTable' | ||
draft: false | ||
status: wip | ||
order: 13 | ||
order: 12 | ||
--- | ||
|
||
<!-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ header: 'UI Library' | |
title: 'ViewTitle' | ||
draft: false | ||
status: wip | ||
order: 14 | ||
order: 13 | ||
--- | ||
|
||
<!-- | ||
|
46 changes: 46 additions & 0 deletions
46
packages/dnb-design-system-portal/src/uilib/components/demos/StepIndicator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* ATTENTION: This file is auto generated by using "makeDemosFactory". | ||
* Do not change the content! | ||
* | ||
* "Component" Demo setup | ||
* Ready for imporing in page | ||
* | ||
*/ | ||
|
||
import React, { PureComponent } from 'react' | ||
import PropTypes from 'prop-types' | ||
import ItemWrapper from '../../../shared/parts/uilib/ItemWrapper' | ||
import DemoComponent, { | ||
Example as CodeComponent | ||
} from 'dnb-ui-lib/src/components/step-indicator/Example' | ||
import Description from 'dnb-ui-lib/src/components/step-indicator/description.md' | ||
import Details from 'dnb-ui-lib/src/components/step-indicator/details.md' | ||
import ExampleCode from 'raw-loader!../examples/StepIndicator.txt' | ||
|
||
export default class StepIndicatorDemo extends PureComponent { | ||
static propTypes = { | ||
title: PropTypes.string, | ||
id: PropTypes.string, | ||
Description: PropTypes.func, | ||
Details: PropTypes.func, | ||
DemoComponent: PropTypes.func, | ||
CodeComponent: PropTypes.func, | ||
hideTabs: PropTypes.bool | ||
} | ||
static defaultProps = { | ||
title: 'StepIndicator', | ||
id: 'step-indicator', | ||
ExampleCode, | ||
Description, | ||
Details, | ||
DemoComponent, | ||
CodeComponent, | ||
callback: CodeComponent.AdditionalCallback || null, | ||
hideTabs: false | ||
} | ||
render() { | ||
return ( | ||
<ItemWrapper {...StepIndicatorDemo.defaultProps} {...this.props} /> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/dnb-design-system-portal/src/uilib/components/examples/StepIndicator.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<StepIndicator | ||
active_item="2" | ||
active_url={this.state.active_url} | ||
data={dataBlob} | ||
on_change={this.onChangeHandler} | ||
/> | ||
{/* <StepIndicator | ||
active_item="3" | ||
data={[ | ||
{ | ||
title: 'Om din nye bolig' | ||
}, | ||
{ | ||
title: 'Ditt lån og egenkapital' | ||
}, | ||
{ | ||
title: 'Oppsummering' | ||
} | ||
]} | ||
/> */} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
packages/dnb-design-system-portal/src/uilib/patterns/examples/StepIndicator.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.