@pareto-engineering/design-system 4.0.0-alpha.4 → 4.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +90 -0
- package/dist/cjs/a/AnimatedBlobs/index.js +13 -0
- package/dist/cjs/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +60 -0
- package/dist/cjs/a/AnimatedGradient/index.js +13 -0
- package/dist/cjs/a/AnimatedGradient/styles.scss +14 -0
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +528 -0
- package/dist/cjs/a/AppContext/ContextProvider.js +0 -2
- package/dist/cjs/a/AppContext/useTheme.js +0 -4
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +59 -0
- package/dist/cjs/a/BlurOverlay/index.js +13 -0
- package/dist/cjs/a/BlurOverlay/styles.scss +31 -0
- package/dist/cjs/a/ContentTree/ContentTree.js +11 -5
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +12 -5
- package/dist/cjs/a/ContentTree/styles.scss +34 -11
- package/dist/cjs/a/Conversation/Conversation.js +12 -17
- package/dist/cjs/a/Conversation/common/Message/Message.js +15 -12
- package/dist/cjs/a/Conversation/styles.scss +56 -124
- package/dist/cjs/a/DotInfo/DotInfo.js +2 -2
- package/dist/cjs/a/Figure/Figure.js +2 -2
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/cjs/a/IconList/IconList.js +2 -2
- package/dist/cjs/a/IconList/common/Item/Item.js +1 -1
- package/dist/cjs/a/Label/Label.js +14 -6
- package/dist/cjs/a/Label/styles.scss +4 -4
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/cjs/a/MetaCard/MetaCard.js +65 -0
- package/dist/cjs/a/MetaCard/index.js +13 -0
- package/dist/cjs/a/MetaCard/styles.scss +45 -0
- package/dist/cjs/a/People/People.js +2 -2
- package/dist/cjs/a/People/common/Person/Person.js +5 -5
- package/dist/cjs/a/People/styles.scss +10 -4
- package/dist/cjs/a/Popover/Popover.js +4 -4
- package/dist/cjs/a/Popover/styles.scss +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +2 -2
- package/dist/cjs/a/Quote/Quote.js +2 -2
- package/dist/cjs/a/SVG/SVG.js +2 -2
- package/dist/cjs/a/SnapScroller/SnapScroller.js +2 -2
- package/dist/cjs/a/SnapScroller/styles.scss +30 -9
- package/dist/cjs/a/Spinner/Spinner.js +2 -2
- package/dist/cjs/a/TextSteps/TextSteps.js +70 -0
- package/dist/cjs/a/TextSteps/index.js +13 -0
- package/dist/cjs/a/TextSteps/styles.scss +29 -0
- package/dist/cjs/a/Timestamp/Timestamp.js +2 -2
- package/dist/cjs/a/Tip/Tip.js +72 -0
- package/dist/cjs/a/Tip/index.js +13 -0
- package/dist/cjs/a/Tip/styles.scss +22 -0
- package/dist/cjs/a/index.js +43 -1
- package/dist/cjs/b/Button/Button.js +21 -8
- package/dist/cjs/b/Button/common/Group/Group.js +57 -0
- package/dist/cjs/b/Button/common/Group/index.js +13 -0
- package/dist/cjs/b/Button/common/Group/styles.scss +11 -0
- package/dist/cjs/b/Button/common/index.js +12 -0
- package/dist/cjs/b/Button/styles.scss +38 -8
- package/dist/cjs/b/Card/Card.js +74 -0
- package/dist/cjs/b/Card/common/Group/Group.js +73 -0
- package/dist/cjs/b/Card/common/Group/index.js +13 -0
- package/dist/cjs/b/Card/common/Group/styles.scss +38 -0
- package/dist/cjs/b/Card/common/Section/Section.js +59 -0
- package/dist/cjs/b/Card/common/Section/index.js +13 -0
- package/dist/cjs/b/Card/common/index.js +19 -0
- package/dist/cjs/b/Card/index.js +13 -0
- package/dist/cjs/b/Card/styles.scss +57 -0
- package/dist/cjs/b/Logo/Logo.js +2 -2
- package/dist/cjs/b/Page/Page.js +16 -6
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +4 -2
- package/dist/cjs/b/Page/common/Section/Section.js +13 -3
- package/dist/cjs/b/Page/styles.scss +25 -4
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +2 -2
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -15
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +19 -31
- package/dist/cjs/b/ThemeSelector/styles.scss +2 -7
- package/dist/cjs/b/Title/Title.js +5 -3
- package/dist/cjs/b/index.js +8 -1
- package/dist/cjs/c/ContentSlides/ContentSlides.js +3 -3
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -3
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +0 -2
- package/dist/cjs/c/ContentSlides/styles.scss +2 -2
- package/dist/cjs/c/Modal/Modal.js +3 -3
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +9 -13
- package/dist/cjs/c/Shortener/Shortener.js +2 -2
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
- package/dist/cjs/f/FormInput/FormInput.js +8 -4
- package/dist/cjs/f/common/Debugger/Debugger.js +2 -2
- package/dist/cjs/f/common/Description/Description.js +2 -2
- package/dist/cjs/f/common/InputWrapper/InputWrapper.js +74 -0
- package/dist/cjs/f/common/InputWrapper/index.js +13 -0
- package/dist/cjs/f/common/InputWrapper/styles.scss +13 -0
- package/dist/cjs/f/common/Label/Label.js +20 -6
- package/dist/cjs/f/common/Label/styles.scss +8 -2
- package/dist/cjs/f/common/index.js +8 -1
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +42 -12
- package/dist/cjs/f/fields/Checkbox/styles.scss +6 -8
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +57 -26
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +2 -2
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +52 -43
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +191 -0
- package/dist/cjs/f/fields/EditorInput/common/Toolbar.js +193 -0
- package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +19 -0
- package/dist/cjs/f/fields/EditorInput/common/index.js +20 -0
- package/dist/cjs/f/fields/EditorInput/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/styles.scss +119 -0
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +164 -0
- package/dist/cjs/f/fields/LinkInput/index.js +13 -0
- package/dist/cjs/f/fields/LinkInput/styles.scss +89 -0
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +27 -3
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +37 -7
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +44 -17
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +36 -26
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +64 -29
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +17 -3
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +43 -21
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +5 -5
- package/dist/cjs/f/fields/RatingsInput/styles.scss +6 -13
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +47 -17
- package/dist/cjs/f/fields/SelectInput/styles.scss +60 -26
- package/dist/cjs/f/fields/TextInput/TextInput.js +50 -17
- package/dist/cjs/f/fields/TextInput/styles.scss +56 -20
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +45 -24
- package/dist/cjs/f/fields/TextareaInput/styles.scss +42 -25
- package/dist/cjs/f/fields/index.js +15 -1
- package/dist/cjs/form.scss +1 -1
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +1 -1
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +1 -1
- package/dist/cjs/test/QueryLoader/QueryLoader.js +2 -0
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +82 -0
- package/dist/es/a/AnimatedBlobs/index.js +1 -0
- package/dist/es/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +52 -0
- package/dist/es/a/AnimatedGradient/index.js +1 -0
- package/dist/es/a/AnimatedGradient/styles.scss +14 -0
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +492 -0
- package/dist/es/a/AppContext/useTheme.js +0 -4
- package/dist/es/a/BlurOverlay/BlurOverlay.js +51 -0
- package/dist/es/a/BlurOverlay/index.js +2 -0
- package/dist/es/a/BlurOverlay/styles.scss +31 -0
- package/dist/es/a/ContentTree/ContentTree.js +11 -5
- package/dist/es/a/ContentTree/common/Tree/Tree.js +12 -5
- package/dist/es/a/ContentTree/styles.scss +34 -11
- package/dist/es/a/Conversation/Conversation.js +12 -17
- package/dist/es/a/Conversation/common/Message/Message.js +15 -12
- package/dist/es/a/Conversation/styles.scss +56 -124
- package/dist/es/a/DotInfo/DotInfo.js +2 -2
- package/dist/es/a/Figure/Figure.js +2 -2
- package/dist/es/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/es/a/IconList/IconList.js +2 -2
- package/dist/es/a/Label/Label.js +14 -6
- package/dist/es/a/Label/styles.scss +4 -4
- package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/es/a/MetaCard/MetaCard.js +57 -0
- package/dist/es/a/MetaCard/index.js +1 -0
- package/dist/es/a/MetaCard/styles.scss +45 -0
- package/dist/es/a/People/People.js +2 -2
- package/dist/es/a/People/common/Person/Person.js +5 -5
- package/dist/es/a/People/styles.scss +10 -4
- package/dist/es/a/Popover/Popover.js +4 -4
- package/dist/es/a/Popover/styles.scss +1 -1
- package/dist/es/a/ProgressBar/ProgressBar.js +2 -2
- package/dist/es/a/Quote/Quote.js +2 -2
- package/dist/es/a/SVG/SVG.js +2 -2
- package/dist/es/a/SnapScroller/SnapScroller.js +2 -2
- package/dist/es/a/SnapScroller/styles.scss +30 -9
- package/dist/es/a/Spinner/Spinner.js +2 -2
- package/dist/es/a/TextSteps/TextSteps.js +61 -0
- package/dist/es/a/TextSteps/index.js +1 -0
- package/dist/es/a/TextSteps/styles.scss +29 -0
- package/dist/es/a/Timestamp/Timestamp.js +2 -2
- package/dist/es/a/Tip/Tip.js +64 -0
- package/dist/es/a/Tip/index.js +2 -0
- package/dist/es/a/Tip/styles.scss +22 -0
- package/dist/es/a/index.js +7 -1
- package/dist/es/b/Button/Button.js +21 -7
- package/dist/es/b/Button/common/Group/Group.js +49 -0
- package/dist/es/b/Button/common/Group/index.js +1 -0
- package/dist/es/b/Button/common/Group/styles.scss +11 -0
- package/dist/es/b/Button/common/index.js +1 -0
- package/dist/es/b/Button/styles.scss +38 -8
- package/dist/es/b/Card/Card.js +66 -0
- package/dist/es/b/Card/common/Group/Group.js +65 -0
- package/dist/es/b/Card/common/Group/index.js +1 -0
- package/dist/es/b/Card/common/Group/styles.scss +38 -0
- package/dist/es/b/Card/common/Section/Section.js +48 -0
- package/dist/es/b/Card/common/Section/index.js +1 -0
- package/dist/es/b/Card/common/index.js +2 -0
- package/dist/es/b/Card/index.js +1 -0
- package/dist/es/b/Card/styles.scss +57 -0
- package/dist/es/b/Logo/Logo.js +2 -2
- package/dist/es/b/Page/Page.js +16 -5
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +4 -2
- package/dist/es/b/Page/common/Section/Section.js +12 -2
- package/dist/es/b/Page/styles.scss +25 -4
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +2 -2
- package/dist/es/b/SocialMediaButton/styles.scss +1 -15
- package/dist/es/b/ThemeSelector/ThemeSelector.js +19 -32
- package/dist/es/b/ThemeSelector/styles.scss +2 -7
- package/dist/es/b/Title/Title.js +18 -12
- package/dist/es/b/index.js +2 -1
- package/dist/es/c/ContentSlides/ContentSlides.js +3 -3
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
- package/dist/es/c/ContentSlides/styles.scss +2 -2
- package/dist/es/c/Modal/Modal.js +3 -3
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/es/c/Modal/styles.scss +9 -13
- package/dist/es/c/Shortener/Shortener.js +2 -2
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
- package/dist/es/f/FormInput/FormInput.js +9 -3
- package/dist/es/f/common/Debugger/Debugger.js +2 -2
- package/dist/es/f/common/Description/Description.js +2 -2
- package/dist/es/f/common/InputWrapper/InputWrapper.js +66 -0
- package/dist/es/f/common/InputWrapper/index.js +2 -0
- package/dist/es/f/common/InputWrapper/styles.scss +13 -0
- package/dist/es/f/common/Label/Label.js +20 -6
- package/dist/es/f/common/Label/styles.scss +8 -2
- package/dist/es/f/common/index.js +2 -1
- package/dist/es/f/fields/Checkbox/Checkbox.js +43 -13
- package/dist/es/f/fields/Checkbox/styles.scss +6 -8
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +58 -27
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
- package/dist/es/f/fields/ChoicesInput/styles.scss +52 -43
- package/dist/es/f/fields/EditorInput/EditorInput.js +186 -0
- package/dist/es/f/fields/EditorInput/common/Toolbar.js +182 -0
- package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +11 -0
- package/dist/es/f/fields/EditorInput/common/index.js +2 -0
- package/dist/es/f/fields/EditorInput/index.js +2 -0
- package/dist/es/f/fields/EditorInput/styles.scss +119 -0
- package/dist/es/f/fields/LinkInput/LinkInput.js +156 -0
- package/dist/es/f/fields/LinkInput/index.js +2 -0
- package/dist/es/f/fields/LinkInput/styles.scss +89 -0
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +26 -2
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +37 -7
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +43 -16
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +35 -25
- package/dist/es/f/fields/QueryCombobox/styles.scss +64 -29
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +17 -3
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +44 -22
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +4 -4
- package/dist/es/f/fields/RatingsInput/styles.scss +6 -13
- package/dist/es/f/fields/SelectInput/SelectInput.js +48 -18
- package/dist/es/f/fields/SelectInput/styles.scss +60 -26
- package/dist/es/f/fields/TextInput/TextInput.js +51 -18
- package/dist/es/f/fields/TextInput/styles.scss +56 -20
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +46 -25
- package/dist/es/f/fields/TextareaInput/styles.scss +42 -25
- package/dist/es/f/fields/index.js +3 -1
- package/dist/es/form.scss +1 -1
- package/package.json +19 -16
- package/src/stories/a/BlurOverlay.stories.jsx +39 -0
- package/src/stories/a/Conversation.stories.jsx +11 -42
- package/src/stories/a/MetaCard.stories.jsx +35 -0
- package/src/stories/a/People.stories.jsx +22 -2
- package/src/stories/a/Quote.stories.jsx +1 -1
- package/src/stories/a/SnapScroller.stories.jsx +2 -2
- package/src/stories/a/Spinner.stories.jsx +1 -1
- package/src/stories/a/TextSteps.stories.jsx +19 -0
- package/src/stories/a/Tip.stories.jsx +28 -0
- package/src/stories/b/{Button.stories.jsx → Button/Button.stories.jsx} +18 -0
- package/src/stories/b/Button/Group.stories.jsx +35 -0
- package/src/stories/b/Card/Card.stories.jsx +59 -0
- package/src/stories/b/Card/Group.stories.jsx +59 -0
- package/src/stories/b/Page.stories.jsx +19 -3
- package/src/stories/b/ThemeSelector.stories.jsx +1 -1
- package/src/stories/b/Title.stories.jsx +1 -1
- package/src/stories/c/ContentSlides.stories.jsx +1 -1
- package/src/stories/colors.js +22 -10
- package/src/stories/f/Checkbox.stories.jsx +22 -7
- package/src/stories/f/ChoicesInput.stories.jsx +21 -7
- package/src/stories/f/EditorInput.stories.jsx +88 -0
- package/src/stories/f/LinkInput.stories.jsx +100 -0
- package/src/stories/f/QueryChoices.stories.jsx +20 -4
- package/src/stories/f/QueryCombobox.stories.jsx +25 -13
- package/src/stories/f/QuerySelect.stories.jsx +20 -5
- package/src/stories/f/RatingsInput.stories.jsx +16 -2
- package/src/stories/f/SelectInput.stories.jsx +27 -5
- package/src/stories/f/TextInput.stories.jsx +33 -12
- package/src/stories/f/TextareaInput.stories.jsx +16 -2
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +102 -0
- package/src/ui/a/AnimatedBlobs/index.js +1 -0
- package/src/ui/a/AnimatedBlobs/styles.scss +87 -0
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +73 -0
- package/src/ui/a/AnimatedGradient/index.js +1 -0
- package/src/ui/a/AnimatedGradient/styles.scss +14 -0
- package/src/ui/a/AnimatedGradient/webGIRenderer.js +541 -0
- package/src/ui/a/AppContext/useTheme.js +0 -4
- package/src/ui/a/BlurOverlay/BlurOverlay.jsx +75 -0
- package/src/ui/a/BlurOverlay/index.js +2 -0
- package/src/ui/a/BlurOverlay/styles.scss +31 -0
- package/src/ui/a/ContentTree/ContentTree.jsx +10 -6
- package/src/ui/a/ContentTree/common/Tree/Tree.jsx +19 -7
- package/src/ui/a/ContentTree/styles.scss +34 -11
- package/src/ui/a/Conversation/Conversation.jsx +16 -20
- package/src/ui/a/Conversation/common/Message/Message.jsx +18 -11
- package/src/ui/a/Conversation/styles.scss +56 -124
- package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
- package/src/ui/a/Figure/Figure.jsx +2 -2
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
- package/src/ui/a/IconList/IconList.jsx +2 -2
- package/src/ui/a/Label/Label.jsx +13 -4
- package/src/ui/a/Label/styles.scss +4 -4
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
- package/src/ui/a/MetaCard/MetaCard.jsx +81 -0
- package/src/ui/a/MetaCard/index.js +1 -0
- package/src/ui/a/MetaCard/styles.scss +45 -0
- package/src/ui/a/People/People.jsx +2 -2
- package/src/ui/a/People/common/Person/Person.jsx +5 -5
- package/src/ui/a/People/styles.scss +10 -4
- package/src/ui/a/Popover/Popover.jsx +4 -4
- package/src/ui/a/Popover/styles.scss +1 -1
- package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
- package/src/ui/a/Quote/Quote.jsx +2 -2
- package/src/ui/a/SVG/SVG.jsx +2 -2
- package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
- package/src/ui/a/SnapScroller/styles.scss +30 -9
- package/src/ui/a/Spinner/Spinner.jsx +2 -2
- package/src/ui/a/TextSteps/TextSteps.jsx +87 -0
- package/src/ui/a/TextSteps/index.js +1 -0
- package/src/ui/a/TextSteps/styles.scss +29 -0
- package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
- package/src/ui/a/Tip/Tip.jsx +88 -0
- package/src/ui/a/Tip/index.js +2 -0
- package/src/ui/a/Tip/styles.scss +22 -0
- package/src/ui/a/index.js +6 -0
- package/src/ui/b/Button/Button.jsx +26 -7
- package/src/ui/b/Button/common/Group/Group.jsx +71 -0
- package/src/ui/b/Button/common/Group/index.js +1 -0
- package/src/ui/b/Button/common/Group/styles.scss +11 -0
- package/src/ui/b/Button/common/index.js +1 -0
- package/src/ui/b/Button/styles.scss +38 -8
- package/src/ui/b/Card/Card.jsx +94 -0
- package/src/ui/b/Card/common/Group/Group.jsx +91 -0
- package/src/ui/b/Card/common/Group/index.js +1 -0
- package/src/ui/b/Card/common/Group/styles.scss +38 -0
- package/src/ui/b/Card/common/Section/Section.jsx +70 -0
- package/src/ui/b/Card/common/Section/index.js +1 -0
- package/src/ui/b/Card/common/index.js +2 -0
- package/src/ui/b/Card/index.js +1 -0
- package/src/ui/b/Card/styles.scss +57 -0
- package/src/ui/b/Logo/Logo.jsx +2 -2
- package/src/ui/b/Page/Page.jsx +13 -3
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +2 -3
- package/src/ui/b/Page/common/Section/Section.jsx +16 -1
- package/src/ui/b/Page/styles.scss +25 -4
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
- package/src/ui/b/SocialMediaButton/styles.scss +1 -15
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +12 -30
- package/src/ui/b/ThemeSelector/styles.scss +2 -7
- package/src/ui/b/Title/Title.jsx +30 -23
- package/src/ui/b/index.js +1 -0
- package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +1 -1
- package/src/ui/c/ContentSlides/styles.scss +2 -2
- package/src/ui/c/Modal/Modal.jsx +3 -3
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +1 -1
- package/src/ui/c/Modal/styles.scss +9 -13
- package/src/ui/c/Shortener/Shortener.jsx +2 -2
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
- package/src/ui/f/FormInput/FormInput.jsx +14 -2
- package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
- package/src/ui/f/common/Description/Description.jsx +2 -2
- package/src/ui/f/common/InputWrapper/InputWrapper.jsx +89 -0
- package/src/ui/f/common/InputWrapper/index.js +2 -0
- package/src/ui/f/common/InputWrapper/styles.scss +13 -0
- package/src/ui/f/common/Label/Label.jsx +20 -4
- package/src/ui/f/common/Label/styles.scss +8 -2
- package/src/ui/f/common/index.js +1 -0
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +67 -29
- package/src/ui/f/fields/Checkbox/styles.scss +6 -8
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +85 -50
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +10 -3
- package/src/ui/f/fields/ChoicesInput/styles.scss +52 -43
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +237 -0
- package/src/ui/f/fields/EditorInput/common/Toolbar.jsx +254 -0
- package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +16 -0
- package/src/ui/f/fields/EditorInput/common/index.jsx +2 -0
- package/src/ui/f/fields/EditorInput/index.js +2 -0
- package/src/ui/f/fields/EditorInput/styles.scss +119 -0
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +197 -0
- package/src/ui/f/fields/LinkInput/index.js +2 -0
- package/src/ui/f/fields/LinkInput/styles.scss +89 -0
- package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +28 -0
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +39 -4
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +68 -38
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +81 -66
- package/src/ui/f/fields/QueryCombobox/styles.scss +64 -29
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +16 -1
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +57 -30
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +4 -4
- package/src/ui/f/fields/RatingsInput/styles.scss +6 -13
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +90 -51
- package/src/ui/f/fields/SelectInput/styles.scss +60 -26
- package/src/ui/f/fields/TextInput/TextInput.jsx +71 -35
- package/src/ui/f/fields/TextInput/styles.scss +56 -20
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +67 -45
- package/src/ui/f/fields/TextareaInput/styles.scss +42 -25
- package/src/ui/f/fields/index.js +2 -0
- package/src/ui/form.scss +1 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +14551 -6190
|
@@ -21,63 +21,32 @@ export const Base = () => {
|
|
|
21
21
|
const conversations = [
|
|
22
22
|
{
|
|
23
23
|
message:'Hi Camille, please compile an assesment of top 5 firms/brand providers for the listed fields in the US.',
|
|
24
|
-
sender :'
|
|
24
|
+
sender :'Humbl',
|
|
25
25
|
from :'theirs',
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
message:'Hi Morgan! Here is the database we prepared for you.',
|
|
29
|
-
sender :'
|
|
29
|
+
sender :'Camille',
|
|
30
30
|
from :'ours',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
message:'
|
|
34
|
-
sender :'
|
|
33
|
+
message:'That looks amazing',
|
|
34
|
+
sender :'Humbl',
|
|
35
35
|
from :'theirs',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
message:'
|
|
39
|
-
sender :'CAMILLE',
|
|
40
|
-
from :'ours',
|
|
41
|
-
},
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<Conversation>
|
|
46
|
-
{conversations.map((conversation) => (
|
|
47
|
-
<Conversation.Message key={conversation.message} {...conversation} />
|
|
48
|
-
))}
|
|
49
|
-
</Conversation>
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export const WithTriangle = () => {
|
|
54
|
-
const conversations = [
|
|
55
|
-
{
|
|
56
|
-
message:'Hi Camille, please compile an assesment of top 5 firms/brand providers for the listed fields in the US.',
|
|
57
|
-
sender :'HUMBL',
|
|
58
|
-
from :'theirs',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
message:'Hi Morgan! Here is the database we prepared for you.',
|
|
62
|
-
sender :'CAMILLE',
|
|
63
|
-
from :'ours',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
message:'Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.',
|
|
67
|
-
sender :'HUMBL',
|
|
38
|
+
message:'Thank you for the great work, can we also get this information in a spreadsheet?',
|
|
68
39
|
from :'theirs',
|
|
69
40
|
},
|
|
70
41
|
{
|
|
71
42
|
message:'Hi Morgan! Here is the spreadsheet we prepared for you.',
|
|
72
|
-
sender :'
|
|
43
|
+
sender :'Camille',
|
|
73
44
|
from :'ours',
|
|
74
45
|
},
|
|
75
46
|
]
|
|
76
47
|
|
|
77
48
|
return (
|
|
78
|
-
<Conversation
|
|
79
|
-
hasTriangle
|
|
80
|
-
>
|
|
49
|
+
<Conversation>
|
|
81
50
|
{conversations.map((conversation) => (
|
|
82
51
|
<Conversation.Message key={conversation.message} {...conversation} />
|
|
83
52
|
))}
|
|
@@ -89,24 +58,24 @@ export const WithAttachment = () => {
|
|
|
89
58
|
const conversations = [
|
|
90
59
|
{
|
|
91
60
|
message:'Hi Camille, please compile an assesment of top 5 firms/brand providers for the listed fields in the US.',
|
|
92
|
-
sender :'
|
|
61
|
+
sender :'Humbl',
|
|
93
62
|
from :'theirs',
|
|
94
63
|
},
|
|
95
64
|
{
|
|
96
65
|
message :'Hi Morgan! Here is the database we prepared for you.',
|
|
97
|
-
sender :'
|
|
66
|
+
sender :'Camille',
|
|
98
67
|
from :'ours',
|
|
99
68
|
attachment :'spreadsheet.xlsx',
|
|
100
69
|
attachmentColor:'main4',
|
|
101
70
|
},
|
|
102
71
|
{
|
|
103
72
|
message:'Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.',
|
|
104
|
-
sender :'
|
|
73
|
+
sender :'Humbl',
|
|
105
74
|
from :'theirs',
|
|
106
75
|
},
|
|
107
76
|
{
|
|
108
77
|
message :'Hi Morgan! Here is the spreadsheet we prepared for you.',
|
|
109
|
-
sender :'
|
|
78
|
+
sender :'Camille',
|
|
110
79
|
from :'ours',
|
|
111
80
|
attachment :'spreadsheet.xlsx',
|
|
112
81
|
attachmentColor:'main4',
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { MetaCard } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/MetaCard',
|
|
8
|
+
component :MetaCard,
|
|
9
|
+
subcomponents:{},
|
|
10
|
+
decorators :[],
|
|
11
|
+
controls :{
|
|
12
|
+
hasBackgroundBlur:{ type: 'boolean' },
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const Template = (args) => (
|
|
17
|
+
<div style={{ backgroundImage: 'linear-gradient(purple, white)', padding: '1em' }}>
|
|
18
|
+
<MetaCard {...args}>
|
|
19
|
+
<h3 style={{ gridColumn: '2/-1' }}>
|
|
20
|
+
Column 2
|
|
21
|
+
</h3>
|
|
22
|
+
<p style={{ gridColumn: '3/-1' }}>
|
|
23
|
+
Column 3
|
|
24
|
+
</p>
|
|
25
|
+
</MetaCard>
|
|
26
|
+
</div>
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
export const Base = Template.bind({})
|
|
30
|
+
Base.args = {}
|
|
31
|
+
|
|
32
|
+
export const WithBlur = Template.bind({})
|
|
33
|
+
WithBlur.args = {
|
|
34
|
+
hasBackgroundBlur:true,
|
|
35
|
+
}
|
|
@@ -40,7 +40,7 @@ export const Base = () => {
|
|
|
40
40
|
]
|
|
41
41
|
|
|
42
42
|
return (
|
|
43
|
-
<div className="x-
|
|
43
|
+
<div className="x-background-far b-x v1 p-v">
|
|
44
44
|
<People>
|
|
45
45
|
{peopleMap.map((person) => (
|
|
46
46
|
<People.Person key={person.name} {...person} />
|
|
@@ -61,7 +61,27 @@ export const OnePerson = () => {
|
|
|
61
61
|
]
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
|
-
<div className="x-
|
|
64
|
+
<div className="x-background-far b-x v1 p-v">
|
|
65
|
+
<People>
|
|
66
|
+
{peopleMap.map((person) => (
|
|
67
|
+
<People.Person key={person.name} {...person} />
|
|
68
|
+
))}
|
|
69
|
+
</People>
|
|
70
|
+
</div>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const WithoutRole = () => {
|
|
75
|
+
const peopleMap = [
|
|
76
|
+
{
|
|
77
|
+
image:'https://pareto-v1.s3.us-west-2.amazonaws.com/profile-pictures/Camille-Arigo.jpg',
|
|
78
|
+
name :'Camillie Arigo',
|
|
79
|
+
color:'background4',
|
|
80
|
+
},
|
|
81
|
+
]
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<div className="x-background-far b-x v1 p-v">
|
|
65
85
|
<People>
|
|
66
86
|
{peopleMap.map((person) => (
|
|
67
87
|
<People.Person key={person.name} {...person} />
|
|
@@ -23,7 +23,7 @@ export const Base = () => {
|
|
|
23
23
|
<div
|
|
24
24
|
className="card"
|
|
25
25
|
style={{
|
|
26
|
-
background:'var(--
|
|
26
|
+
background:'var(--background-far)', minWidth:'330px', height:'400px', padding:'var(--u)',
|
|
27
27
|
}}
|
|
28
28
|
>
|
|
29
29
|
{ children }
|
|
@@ -63,7 +63,7 @@ export const NoScrollOnDesktop = () => {
|
|
|
63
63
|
<div
|
|
64
64
|
className="card"
|
|
65
65
|
style={{
|
|
66
|
-
background:'var(--
|
|
66
|
+
background:'var(--background-far)', width:'330px', height:'400px', padding:'var(--u)',
|
|
67
67
|
}}
|
|
68
68
|
>
|
|
69
69
|
{ children }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { TextSteps } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/TextSteps',
|
|
8
|
+
component:TextSteps,
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const items = [
|
|
12
|
+
'Join Pareto in minutes. Share your business goals to match with a Project Partner.',
|
|
13
|
+
'Receive initial output in 24 hours. Give feedback to fine-tune results and level up your Pareto team.',
|
|
14
|
+
'Tap into economies of scale with tried and true playbooks: Benefit from strategic project recommendations. Enjoy continuous workflow improvement and documented learnings.',
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
export const Base = () => (
|
|
18
|
+
<div className="grid span-8 md-span-14"><TextSteps items={items} /></div>
|
|
19
|
+
)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Tip } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/Tip',
|
|
8
|
+
component :Tip,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:Quote.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
color:{ control: 'color' },
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const Template = (args) => (
|
|
21
|
+
<Tip {...args} />
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export const Base = Template.bind({})
|
|
25
|
+
Base.args = {
|
|
26
|
+
children:'Remember to wash your vegetables before eating them.',
|
|
27
|
+
color :'main',
|
|
28
|
+
}
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
isGhost :{ control: { type: 'boolean' } },
|
|
20
20
|
isSimple :{ control: { type: 'boolean' } },
|
|
21
21
|
isAnimated:{ control: { type: 'boolean' } },
|
|
22
|
+
isGradient:{ control: { type: 'boolean' } },
|
|
22
23
|
},
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -57,6 +58,11 @@ Simple.args = {
|
|
|
57
58
|
isSimple:true,
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
export const Gradient = MultipleTemplate.bind({})
|
|
62
|
+
Gradient.args = {
|
|
63
|
+
isGradient:true,
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
export const Compact = MultipleTemplate.bind({})
|
|
61
67
|
Compact.args = {
|
|
62
68
|
isCompact:true,
|
|
@@ -105,3 +111,15 @@ ArrowRightSimple.args = {
|
|
|
105
111
|
arrowDirection:'right',
|
|
106
112
|
isSimple :true,
|
|
107
113
|
}
|
|
114
|
+
|
|
115
|
+
export const DisabledArrowLeft = MultipleTemplate.bind({})
|
|
116
|
+
DisabledArrowLeft.args = {
|
|
117
|
+
arrowDirection:'left',
|
|
118
|
+
disabled :true,
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const DisabledArrowRight = MultipleTemplate.bind({})
|
|
122
|
+
DisabledArrowRight.args = {
|
|
123
|
+
arrowDirection:'right',
|
|
124
|
+
disabled :true,
|
|
125
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Button } from 'ui'
|
|
5
|
+
|
|
6
|
+
import { ALL_COLORS } from 'stories/colors'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title :'b/Button/Group',
|
|
10
|
+
component :Button.Group,
|
|
11
|
+
decorators:[
|
|
12
|
+
// (storyfn) => <Router>{storyfn()}</Router>,
|
|
13
|
+
],
|
|
14
|
+
argTypes:{
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const Template = (args) => (
|
|
19
|
+
<Button.Group {...args}>
|
|
20
|
+
{
|
|
21
|
+
ALL_COLORS.map((colorName) => (
|
|
22
|
+
<Button {...args} color={colorName} key={colorName}>
|
|
23
|
+
This is a
|
|
24
|
+
{' '}
|
|
25
|
+
{colorName}
|
|
26
|
+
{' '}
|
|
27
|
+
button
|
|
28
|
+
</Button>
|
|
29
|
+
))
|
|
30
|
+
}
|
|
31
|
+
</Button.Group>
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
export const Base = Template.bind({})
|
|
35
|
+
Base.args = {}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Card } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'b/Card',
|
|
8
|
+
component :Card,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
'Card.Section':Card.Section,
|
|
11
|
+
'Card.Group' :Card.Group,
|
|
12
|
+
},
|
|
13
|
+
decorators:[
|
|
14
|
+
// (storyfn) => <Router>{storyfn()}</Router>,
|
|
15
|
+
],
|
|
16
|
+
argTypes:{
|
|
17
|
+
progress:{ control: 'number' },
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const Template = ({ isImage, ...args }) => (
|
|
22
|
+
<Card
|
|
23
|
+
{...args}
|
|
24
|
+
>
|
|
25
|
+
{ isImage && (
|
|
26
|
+
<Card.Section isImage>
|
|
27
|
+
<img src="https://miro.medium.com/max/1124/1*v9We8Bevk2FFA5YadZNwcQ.jpeg" alt="test" />
|
|
28
|
+
</Card.Section>
|
|
29
|
+
)}
|
|
30
|
+
<Card.Section>
|
|
31
|
+
<h1>
|
|
32
|
+
Section One
|
|
33
|
+
</h1>
|
|
34
|
+
</Card.Section>
|
|
35
|
+
<Card.Section>
|
|
36
|
+
<h2>
|
|
37
|
+
Section Two
|
|
38
|
+
</h2>
|
|
39
|
+
</Card.Section>
|
|
40
|
+
<Card.Section>
|
|
41
|
+
<h3>
|
|
42
|
+
Section Three
|
|
43
|
+
</h3>
|
|
44
|
+
</Card.Section>
|
|
45
|
+
</Card>
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
export const Base = Template.bind({})
|
|
49
|
+
Base.args = {}
|
|
50
|
+
|
|
51
|
+
export const CardWithProgress = Template.bind({})
|
|
52
|
+
CardWithProgress.args = {
|
|
53
|
+
progress:50,
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const CardWithImageSection = Template.bind({})
|
|
57
|
+
CardWithImageSection.args = {
|
|
58
|
+
isImage:true,
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Card } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'b/Card/Group',
|
|
8
|
+
component :Card.Group,
|
|
9
|
+
decorators:[
|
|
10
|
+
// (storyfn) => <Router>{storyfn()}</Router>,
|
|
11
|
+
],
|
|
12
|
+
argTypes:{
|
|
13
|
+
type :{ control: 'select', options: ['vertical-flexbox', 'grid', 'snap-scroller'] },
|
|
14
|
+
desktopType:{ control: 'select', options: ['vertical-flexbox', 'grid'] },
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const Template = ({ ...args }) => (
|
|
19
|
+
<Card.Group
|
|
20
|
+
className="span-8"
|
|
21
|
+
{...args}
|
|
22
|
+
>
|
|
23
|
+
<Card className="span-2">
|
|
24
|
+
<Card.Section>
|
|
25
|
+
<h1>
|
|
26
|
+
Span Two on Grid
|
|
27
|
+
</h1>
|
|
28
|
+
</Card.Section>
|
|
29
|
+
</Card>
|
|
30
|
+
<Card>
|
|
31
|
+
<Card.Section>
|
|
32
|
+
<h1>
|
|
33
|
+
Card Two
|
|
34
|
+
</h1>
|
|
35
|
+
</Card.Section>
|
|
36
|
+
</Card>
|
|
37
|
+
<Card>
|
|
38
|
+
<Card.Section>
|
|
39
|
+
<h1>
|
|
40
|
+
Card Three
|
|
41
|
+
</h1>
|
|
42
|
+
</Card.Section>
|
|
43
|
+
</Card>
|
|
44
|
+
</Card.Group>
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
export const Base = Template.bind({})
|
|
48
|
+
Base.args = {}
|
|
49
|
+
|
|
50
|
+
export const CardGroupGridOnDesktop = Template.bind({})
|
|
51
|
+
CardGroupGridOnDesktop.args = {
|
|
52
|
+
desktopType:'grid',
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const CardGroupNotSnapScroller = Template.bind({})
|
|
56
|
+
CardGroupNotSnapScroller.args = {
|
|
57
|
+
type :'vertical-flexbox',
|
|
58
|
+
desktopType:'vertical-flexbox',
|
|
59
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.0 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Page,
|
|
6
|
+
// AnimatedGradient,
|
|
7
|
+
// AnimatedBlobs,
|
|
8
|
+
} from 'ui'
|
|
5
9
|
import { HelmetProvider } from 'react-helmet-async'
|
|
6
10
|
|
|
7
11
|
export default {
|
|
@@ -52,9 +56,21 @@ export const WithSections = () => (
|
|
|
52
56
|
<Page.Section id="s1">
|
|
53
57
|
Section 1
|
|
54
58
|
</Page.Section>
|
|
55
|
-
<Page.Section id="s2">
|
|
59
|
+
<Page.Section id="s2" spaced className="x-main b-x">
|
|
56
60
|
Section 2.
|
|
57
|
-
|
|
61
|
+
This section is spaced
|
|
58
62
|
</Page.Section>
|
|
59
63
|
</Page>
|
|
60
64
|
)
|
|
65
|
+
|
|
66
|
+
// Story is commented out due to snapshots and animations
|
|
67
|
+
// export const WithAnimatedBlobsBackground = () => (
|
|
68
|
+
// <Page
|
|
69
|
+
// id="with-sections"
|
|
70
|
+
// Background={AnimatedBlobs}
|
|
71
|
+
// >
|
|
72
|
+
// <Page.Section id="s1">
|
|
73
|
+
// Section 1
|
|
74
|
+
// </Page.Section>
|
|
75
|
+
// </Page>
|
|
76
|
+
// )
|
|
@@ -34,7 +34,7 @@ WithSubtitle.args = {
|
|
|
34
34
|
export const Sizes = (props) => (
|
|
35
35
|
['h1', 'h2', 'h3', 'h4', 'h5'].map((size) => (
|
|
36
36
|
<div className="u2 pv-u" key={size}>
|
|
37
|
-
<div className="y-
|
|
37
|
+
<div className="y-background-far b-hard-y">
|
|
38
38
|
<Title
|
|
39
39
|
heading={`This is a title in ${size}`}
|
|
40
40
|
headingAs={size}
|
|
@@ -76,7 +76,7 @@ const Template = (args) => {
|
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
78
|
<div className={`ui-${userTheme}`} style={{ height: '100%' }}>
|
|
79
|
-
<ContentSlides className="y-
|
|
79
|
+
<ContentSlides className="y-background-far b-dark-y" steps={steps} simple={isSimple}>
|
|
80
80
|
{!isSimple && (
|
|
81
81
|
<ContentSlides.Sidebar
|
|
82
82
|
header={(
|
package/src/stories/colors.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
const THEME = [
|
|
2
|
-
'
|
|
2
|
+
'main',
|
|
3
|
+
'main-80',
|
|
4
|
+
'main-50',
|
|
3
5
|
'main2',
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
+
'interactive',
|
|
7
|
+
'interactive-icons',
|
|
8
|
+
'shadow',
|
|
6
9
|
]
|
|
7
10
|
|
|
8
11
|
/*
|
|
@@ -24,21 +27,30 @@ const MODALS = [
|
|
|
24
27
|
'success',
|
|
25
28
|
'warning',
|
|
26
29
|
'error',
|
|
30
|
+
'blocked',
|
|
31
|
+
'backlog',
|
|
32
|
+
'in-progress',
|
|
33
|
+
'in-review',
|
|
34
|
+
'requested',
|
|
35
|
+
'completed',
|
|
27
36
|
]
|
|
28
37
|
|
|
29
38
|
const UI = [
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
39
|
+
'background-far',
|
|
40
|
+
'background-near',
|
|
41
|
+
'background-cards',
|
|
42
|
+
'background-cards-80',
|
|
43
|
+
'background-cards-50',
|
|
44
|
+
'background-inputs',
|
|
45
|
+
'background-mesh',
|
|
36
46
|
'heading',
|
|
37
47
|
'paragraph',
|
|
38
48
|
'subtitle',
|
|
39
49
|
'metadata',
|
|
40
50
|
'link',
|
|
41
|
-
'
|
|
51
|
+
'transparent',
|
|
52
|
+
'highlighted',
|
|
53
|
+
'disabled',
|
|
42
54
|
]
|
|
43
55
|
|
|
44
56
|
const SM = [
|
|
@@ -27,11 +27,16 @@ export default {
|
|
|
27
27
|
),
|
|
28
28
|
],
|
|
29
29
|
argTypes:{
|
|
30
|
-
label
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
label :{ control: 'text' },
|
|
31
|
+
labelColor :{ control: 'text' },
|
|
32
|
+
description :{ control: 'text' },
|
|
33
|
+
defaultValue :{ control: 'boolean' },
|
|
34
|
+
disabled :{ control: 'boolean' },
|
|
35
|
+
optional :{ control: 'boolean' },
|
|
36
|
+
labelSpan :{ control: 'number' },
|
|
37
|
+
inputSpan :{ control: 'number' },
|
|
38
|
+
desktopLabelSpan:{ control: 'number' },
|
|
39
|
+
desktopInputSpan:{ control: 'number' },
|
|
35
40
|
},
|
|
36
41
|
}
|
|
37
42
|
|
|
@@ -49,10 +54,10 @@ const Template = ({ defaultValue, ...args }) => {
|
|
|
49
54
|
}, [defaultValue])
|
|
50
55
|
|
|
51
56
|
return (
|
|
52
|
-
|
|
57
|
+
<div className="grid">
|
|
53
58
|
<Checkbox {...args} />
|
|
54
59
|
<FormDebugger />
|
|
55
|
-
|
|
60
|
+
</div>
|
|
56
61
|
)
|
|
57
62
|
}
|
|
58
63
|
|
|
@@ -93,3 +98,13 @@ Optional.args = {
|
|
|
93
98
|
...WithLabel.args,
|
|
94
99
|
optional:true,
|
|
95
100
|
}
|
|
101
|
+
|
|
102
|
+
export const OnSingleRow = Template.bind({})
|
|
103
|
+
OnSingleRow.args = {
|
|
104
|
+
...Base.args,
|
|
105
|
+
label :'Urgent',
|
|
106
|
+
labelSpan :4,
|
|
107
|
+
inputSpan :4,
|
|
108
|
+
desktopLabelSpan:4,
|
|
109
|
+
desktopInputSpan:10,
|
|
110
|
+
}
|
|
@@ -22,11 +22,15 @@ export default {
|
|
|
22
22
|
),
|
|
23
23
|
],
|
|
24
24
|
argTypes:{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
disabled
|
|
29
|
-
optional
|
|
25
|
+
color :{ control: 'color' },
|
|
26
|
+
labelColor :{ control: 'color' },
|
|
27
|
+
multiple :{ control: 'boolean' },
|
|
28
|
+
disabled :{ control: 'boolean' },
|
|
29
|
+
optional :{ control: 'boolean' },
|
|
30
|
+
labelSpan :{ control: 'number' },
|
|
31
|
+
inputSpan :{ control: 'number' },
|
|
32
|
+
desktopLabelSpan:{ control: 'number' },
|
|
33
|
+
desktopInputSpan:{ control: 'number' },
|
|
30
34
|
},
|
|
31
35
|
}
|
|
32
36
|
|
|
@@ -78,10 +82,10 @@ const Template = ({ defaultValue, ...args }) => {
|
|
|
78
82
|
}, [defaultValue])
|
|
79
83
|
|
|
80
84
|
return (
|
|
81
|
-
|
|
85
|
+
<div className="grid">
|
|
82
86
|
<ChoicesInput {...args} />
|
|
83
87
|
<FormDebugger />
|
|
84
|
-
|
|
88
|
+
</div>
|
|
85
89
|
)
|
|
86
90
|
}
|
|
87
91
|
return <Content />
|
|
@@ -138,3 +142,13 @@ DisabledChoicesInput.args = {
|
|
|
138
142
|
...ChoicesWithLabel.args,
|
|
139
143
|
disabled:true,
|
|
140
144
|
}
|
|
145
|
+
|
|
146
|
+
export const OnSingleRow = Template.bind({})
|
|
147
|
+
OnSingleRow.args = {
|
|
148
|
+
...Base.args,
|
|
149
|
+
label :'Select color',
|
|
150
|
+
labelSpan :4,
|
|
151
|
+
inputSpan :4,
|
|
152
|
+
desktopLabelSpan:4,
|
|
153
|
+
desktopInputSpan:10,
|
|
154
|
+
}
|