From 476e2dea34c0607e024805b0ac24beb0b6de9d0f Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 18 May 2019 21:52:40 +0200 Subject: [PATCH] feat: add init circular #progress --- .../src/pages/uilib/components/progress.md | 25 ++++ .../uilib/components/progress/Examples.js | 29 +++++ .../components/progress/progress-events.md | 9 ++ .../components/progress/progress-info.md | 17 +++ .../progress/progress-properties.md | 15 +++ .../dnb-ui-lib/src/components/Progress.js | 14 +++ packages/dnb-ui-lib/src/components/index.js | 2 + packages/dnb-ui-lib/src/components/lib.js | 3 + .../src/components/progress/Progress.js | 111 ++++++++++++++++++ .../components/progress/ProgressCircular.js | 34 ++++++ .../src/components/progress/index.js | 8 ++ .../src/components/progress/style.js | 6 + .../components/progress/style/_progress.scss | 72 ++++++++++++ .../progress/style/dnb-progress.scss | 12 ++ .../src/components/progress/style/index.js | 6 + .../style/themes/dnb-progress-theme-ui.scss | 9 ++ .../components/progress/style/themes/ui.js | 6 + .../src/components/progress/web-component.js | 9 ++ packages/dnb-ui-lib/src/index.js | 2 + .../src/style/dnb-ui-components.scss | 1 + .../style/themes/theme-ui/dnb-theme-ui.scss | 1 + .../dnb-ui-lib/stories/componentsStories.js | 12 ++ 22 files changed, 403 insertions(+) create mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/progress.md create mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/progress/Examples.js create mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/progress/progress-events.md create mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/progress/progress-info.md create mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/progress/progress-properties.md create mode 100644 packages/dnb-ui-lib/src/components/Progress.js create mode 100644 packages/dnb-ui-lib/src/components/progress/Progress.js create mode 100644 packages/dnb-ui-lib/src/components/progress/ProgressCircular.js create mode 100644 packages/dnb-ui-lib/src/components/progress/index.js create mode 100644 packages/dnb-ui-lib/src/components/progress/style.js create mode 100644 packages/dnb-ui-lib/src/components/progress/style/_progress.scss create mode 100644 packages/dnb-ui-lib/src/components/progress/style/dnb-progress.scss create mode 100644 packages/dnb-ui-lib/src/components/progress/style/index.js create mode 100644 packages/dnb-ui-lib/src/components/progress/style/themes/dnb-progress-theme-ui.scss create mode 100644 packages/dnb-ui-lib/src/components/progress/style/themes/ui.js create mode 100644 packages/dnb-ui-lib/src/components/progress/web-component.js diff --git a/packages/dnb-design-system-portal/src/pages/uilib/components/progress.md b/packages/dnb-design-system-portal/src/pages/uilib/components/progress.md new file mode 100644 index 00000000000..1d7e29a7e93 --- /dev/null +++ b/packages/dnb-design-system-portal/src/pages/uilib/components/progress.md @@ -0,0 +1,25 @@ +--- +title: 'Progress' +draft: false +order: 12 +--- + +import Tabs from 'Tags/Tabs' + +import ProgressInfo from 'Pages/uilib/components/progress/progress-info' +import ProgressProperties from 'Pages/uilib/components/progress/progress-properties' +import ProgressEvents from 'Pages/uilib/components/progress/progress-events' + +# Progress + + + + + + + + + + + + diff --git a/packages/dnb-design-system-portal/src/pages/uilib/components/progress/Examples.js b/packages/dnb-design-system-portal/src/pages/uilib/components/progress/Examples.js new file mode 100644 index 00000000000..7c6a1dde3a1 --- /dev/null +++ b/packages/dnb-design-system-portal/src/pages/uilib/components/progress/Examples.js @@ -0,0 +1,29 @@ +/** + * UI lib Component Example + * + */ + +import React, { PureComponent, Fragment } from 'react' +import ComponentBox from '../../../../shared/tags/ComponentBox' + +class Example extends PureComponent { + clickHandler = () => { + alert('You clicked a button with a click function attached to it') + } + render() { + return ( + + + {/* @jsx */ ` +