From f3e2bdfd3de685e00897e1aa06f94b5770612f51 Mon Sep 17 00:00:00 2001 From: Tobias Date: Mon, 21 Jan 2019 21:17:37 +0100 Subject: [PATCH] feat: move #step-indicator into components and enhance the styles with the new defined style --- CHANGELOG.md | 6 +- packages/dnb-design-system-portal/src/html.js | 2 +- .../step-indicator.md | 6 +- .../src/pages/uilib/components/switch.md | 2 +- .../src/pages/uilib/components/tabs.md | 2 +- .../src/pages/uilib/patterns/summary-table.md | 2 +- .../src/pages/uilib/patterns/view-title.md | 2 +- .../uilib/components/demos/StepIndicator.js | 46 ++ .../src/uilib/components/demos/allParts.js | 2 + .../components/examples/StepIndicator.txt | 20 + .../src/uilib/patterns/demos/allParts.js | 2 - .../uilib/patterns/examples/StepIndicator.txt | 6 - packages/dnb-ui-lib/src/components/index.js | 3 + .../step-indicator/Example.js | 21 +- .../step-indicator/StepIndicator.js | 98 ++-- .../__tests__/StepIndicator.test.js | 78 +++ .../__snapshots__/StepIndicator.test.js.snap | 466 ++++++++++++++++++ .../step-indicator/description.md | 4 - .../step-indicator/details.md | 0 .../step-indicator/index.js | 0 .../step-indicator/style.js | 0 .../step-indicator/style/_step-indicator.scss | 104 ++++ .../style/dnb-step-indicator.scss | 0 .../step-indicator/style/index.js | 0 .../themes/dnb-step-indicator-theme-ui.scss | 42 ++ .../step-indicator/web-component.js | 0 .../dnb-ui-lib/src/components/tabs/Tabs.js | 21 +- .../__tests__/__snapshots__/Tabs.test.js.snap | 97 ++-- .../src/components/tabs/style/_tabs.scss | 33 +- .../tabs/style/themes/dnb-tabs-theme-ui.scss | 27 +- packages/dnb-ui-lib/src/index.js | 4 +- packages/dnb-ui-lib/src/patterns/index.js | 3 - .../step-indicator/style/_step-indicator.scss | 68 --- .../dnb-ui-lib/src/style/core/dnb-core.scss | 11 - .../src/style/dnb-ui-components.scss | 1 + .../dnb-ui-lib/src/style/dnb-ui-patterns.scss | 1 - .../src/style/themes/dnb-theme-ui.scss | 1 + 37 files changed, 948 insertions(+), 233 deletions(-) rename packages/dnb-design-system-portal/src/pages/uilib/{patterns => components}/step-indicator.md (67%) create mode 100644 packages/dnb-design-system-portal/src/uilib/components/demos/StepIndicator.js create mode 100644 packages/dnb-design-system-portal/src/uilib/components/examples/StepIndicator.txt delete mode 100644 packages/dnb-design-system-portal/src/uilib/patterns/examples/StepIndicator.txt rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/Example.js (74%) rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/StepIndicator.js (71%) create mode 100644 packages/dnb-ui-lib/src/components/step-indicator/__tests__/StepIndicator.test.js create mode 100644 packages/dnb-ui-lib/src/components/step-indicator/__tests__/__snapshots__/StepIndicator.test.js.snap rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/description.md (93%) rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/details.md (100%) rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/index.js (100%) rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/style.js (100%) create mode 100644 packages/dnb-ui-lib/src/components/step-indicator/style/_step-indicator.scss rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/style/dnb-step-indicator.scss (100%) rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/style/index.js (100%) create mode 100644 packages/dnb-ui-lib/src/components/step-indicator/style/themes/dnb-step-indicator-theme-ui.scss rename packages/dnb-ui-lib/src/{patterns => components}/step-indicator/web-component.js (100%) delete mode 100644 packages/dnb-ui-lib/src/patterns/step-indicator/style/_step-indicator.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index 52244d9d8b8..c721a7c4efc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,11 @@ - Change from 1px to 2px outline on input for error state - Signal Orange is replaced by Emerald Green for focus state -- Tab and Progress bars have now Sea Green Alt +- Tab and StepIndicator (Progress bar) have now Sea Green Alt underline - The Switch component has now an outline of 2px -- Hover on Tabs looks more lie an anchor +- Hover on Tabs looks more like an anchor - Color change: Sea Green 4% -> Mint Green 12% +More in the [Releases section on GitHub](https://github.com/dnbexperience/eufemia/releases) + --- diff --git a/packages/dnb-design-system-portal/src/html.js b/packages/dnb-design-system-portal/src/html.js index 945273c07f3..43b15800d34 100644 --- a/packages/dnb-design-system-portal/src/html.js +++ b/packages/dnb-design-system-portal/src/html.js @@ -16,7 +16,7 @@ export default class HTML extends PureComponent { {this.props.headComponents} diff --git a/packages/dnb-design-system-portal/src/pages/uilib/patterns/step-indicator.md b/packages/dnb-design-system-portal/src/pages/uilib/components/step-indicator.md similarity index 67% rename from packages/dnb-design-system-portal/src/pages/uilib/patterns/step-indicator.md rename to packages/dnb-design-system-portal/src/pages/uilib/components/step-indicator.md index 44e0fd4cc63..a77271b9d15 100644 --- a/packages/dnb-design-system-portal/src/pages/uilib/patterns/step-indicator.md +++ b/packages/dnb-design-system-portal/src/pages/uilib/components/step-indicator.md @@ -2,8 +2,8 @@ header: 'UI Library' title: 'StepIndicator' draft: false -status: wip -order: 12 +status: null +order: 14 --- -import StepIndicatorPage from 'Src/uilib/patterns/demos/StepIndicator' +import StepIndicatorPage from 'Src/uilib/components/demos/StepIndicator' diff --git a/packages/dnb-design-system-portal/src/pages/uilib/components/switch.md b/packages/dnb-design-system-portal/src/pages/uilib/components/switch.md index 78298a0276d..849813bda66 100644 --- a/packages/dnb-design-system-portal/src/pages/uilib/components/switch.md +++ b/packages/dnb-design-system-portal/src/pages/uilib/components/switch.md @@ -3,7 +3,7 @@ header: 'UI Library' title: 'Switch' draft: false status: wip -order: 14 +order: 15 ---