@pareto-engineering/design-system 4.0.0-alpha.5 → 4.0.0-alpha.50
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 +10 -4
- 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 +11 -16
- 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 +1 -1
- package/dist/cjs/a/Figure/Figure.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +1 -1
- package/dist/cjs/a/IconList/common/Item/Item.js +1 -1
- package/dist/cjs/a/Label/Label.js +13 -5
- package/dist/cjs/a/Label/styles.scss +4 -4
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
- 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 +1 -1
- 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 +3 -3
- package/dist/cjs/a/Popover/styles.scss +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +1 -1
- package/dist/cjs/a/Removable/Removable.js +72 -0
- package/dist/cjs/a/Removable/index.js +13 -0
- package/dist/cjs/a/Removable/styles.scss +33 -0
- package/dist/cjs/a/SVG/SVG.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
- package/dist/cjs/a/SnapScroller/styles.scss +30 -10
- package/dist/cjs/a/Spinner/Spinner.js +1 -1
- 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 +1 -1
- package/dist/cjs/a/Tip/Tip.js +86 -0
- package/dist/cjs/a/Tip/index.js +13 -0
- package/dist/cjs/a/Tip/styles.scss +16 -0
- package/dist/cjs/a/index.js +50 -1
- package/dist/cjs/b/Button/Button.js +22 -9
- 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 +41 -11
- 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 +35 -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 +1 -1
- package/dist/cjs/b/Page/Page.js +15 -5
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +12 -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 +6 -2
- package/dist/cjs/b/SocialMediaButton/styles.scss +0 -14
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +17 -27
- package/dist/cjs/b/ThemeSelector/styles.scss +44 -6
- package/dist/cjs/b/Title/Title.js +1 -2
- package/dist/cjs/b/index.js +8 -1
- package/dist/cjs/c/ContentSlides/ContentSlides.js +1 -1
- 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 +2 -2
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +7 -12
- package/dist/cjs/c/Shortener/Shortener.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
- package/dist/cjs/f/FormInput/FormInput.js +13 -3
- package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +6 -5
- 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 +19 -5
- 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 +41 -11
- package/dist/cjs/f/fields/Checkbox/styles.scss +7 -8
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +56 -25
- 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 +222 -0
- package/dist/cjs/f/fields/EditorInput/common/Toolbar.js +257 -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 +147 -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 +36 -6
- 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 -30
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +17 -3
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +42 -20
- 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 +46 -16
- package/dist/cjs/f/fields/SelectInput/styles.scss +60 -26
- package/dist/cjs/f/fields/TextInput/TextInput.js +51 -18
- package/dist/cjs/f/fields/TextInput/styles.scss +56 -20
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +44 -23
- 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 +9 -3
- 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 +10 -15
- package/dist/es/a/Conversation/common/Message/Message.js +15 -12
- package/dist/es/a/Conversation/styles.scss +56 -124
- package/dist/es/a/Label/Label.js +12 -4
- package/dist/es/a/Label/styles.scss +4 -4
- 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/common/Person/Person.js +5 -5
- package/dist/es/a/People/styles.scss +10 -4
- package/dist/es/a/Popover/Popover.js +2 -2
- package/dist/es/a/Popover/styles.scss +1 -1
- package/dist/es/a/Removable/Removable.js +64 -0
- package/dist/es/a/Removable/index.js +2 -0
- package/dist/es/a/Removable/styles.scss +33 -0
- package/dist/es/a/SnapScroller/styles.scss +30 -10
- 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/Tip/Tip.js +78 -0
- package/dist/es/a/Tip/index.js +2 -0
- package/dist/es/a/Tip/styles.scss +16 -0
- package/dist/es/a/index.js +8 -1
- package/dist/es/b/Button/Button.js +22 -8
- 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 +41 -11
- 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 +35 -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/Page/Page.js +14 -3
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +12 -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 +5 -1
- package/dist/es/b/SocialMediaButton/styles.scss +0 -14
- package/dist/es/b/ThemeSelector/ThemeSelector.js +16 -27
- package/dist/es/b/ThemeSelector/styles.scss +44 -6
- package/dist/es/b/index.js +2 -1
- 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 +1 -1
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/es/c/Modal/styles.scss +7 -12
- package/dist/es/f/FormInput/FormInput.js +13 -1
- package/dist/es/f/common/Description/Description.js +5 -4
- 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 +18 -4
- 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 +41 -11
- package/dist/es/f/fields/Checkbox/styles.scss +7 -8
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +56 -25
- 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 +217 -0
- package/dist/es/f/fields/EditorInput/common/Toolbar.js +246 -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 +147 -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 +35 -5
- 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 -30
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +17 -3
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +42 -20
- 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 +46 -16
- 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 +44 -23
- 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 +18 -15
- package/src/stories/a/AppContext.stories.jsx +4 -2
- 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/Removable.stories.jsx +22 -0
- 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 +29 -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/SocialMediaButton.stories.jsx +4 -2
- package/src/stories/b/ThemeSelector.stories.jsx +1 -5
- package/src/stories/b/Title.stories.jsx +1 -1
- package/src/stories/c/ContentSlides.stories.jsx +1 -1
- package/src/stories/colors.js +22 -28
- 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 +8 -4
- 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 +14 -18
- package/src/ui/a/Conversation/common/Message/Message.jsx +18 -11
- package/src/ui/a/Conversation/styles.scss +56 -124
- package/src/ui/a/Label/Label.jsx +11 -2
- package/src/ui/a/Label/styles.scss +4 -4
- 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/common/Person/Person.jsx +5 -5
- package/src/ui/a/People/styles.scss +10 -4
- package/src/ui/a/Popover/Popover.jsx +2 -2
- package/src/ui/a/Popover/styles.scss +1 -1
- package/src/ui/a/Removable/Removable.jsx +85 -0
- package/src/ui/a/Removable/index.js +2 -0
- package/src/ui/a/Removable/styles.scss +33 -0
- package/src/ui/a/SnapScroller/styles.scss +30 -10
- 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/Tip/Tip.jsx +105 -0
- package/src/ui/a/Tip/index.js +2 -0
- package/src/ui/a/Tip/styles.scss +16 -0
- package/src/ui/a/index.js +7 -0
- package/src/ui/b/Button/Button.jsx +28 -8
- 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 +41 -11
- 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 +35 -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/Page/Page.jsx +11 -1
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +14 -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 +5 -1
- package/src/ui/b/SocialMediaButton/styles.scss +0 -14
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +16 -29
- package/src/ui/b/ThemeSelector/styles.scss +44 -6
- package/src/ui/b/index.js +1 -0
- 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 +1 -1
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +1 -1
- package/src/ui/c/Modal/styles.scss +7 -12
- package/src/ui/f/FormInput/FormInput.jsx +23 -0
- package/src/ui/f/common/Description/Description.jsx +5 -4
- 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 +18 -2
- 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 +65 -27
- package/src/ui/f/fields/Checkbox/styles.scss +7 -8
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +83 -48
- 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 +272 -0
- package/src/ui/f/fields/EditorInput/common/Toolbar.jsx +356 -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 +147 -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 +37 -2
- 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 -30
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +16 -1
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +55 -28
- 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 +88 -49
- package/src/ui/f/fields/SelectInput/styles.scss +60 -26
- package/src/ui/f/fields/TextInput/TextInput.jsx +71 -34
- package/src/ui/f/fields/TextInput/styles.scss +56 -20
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +65 -43
- 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 +14253 -5695
|
@@ -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} />
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Removable } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/Removable',
|
|
8
|
+
component :Removable,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:Removable.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
backgroundColor:{ control: 'color' },
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Base = () => (
|
|
21
|
+
<Removable>Sample Removable</Removable>
|
|
22
|
+
)
|
|
@@ -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,29 @@
|
|
|
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: 'text' },
|
|
17
|
+
backgroundColor:{ control: 'text' },
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const Template = (args) => (
|
|
22
|
+
<Tip {...args} />
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
export const Base = Template.bind({})
|
|
26
|
+
Base.args = {
|
|
27
|
+
children:'Remember to wash your vegetables before eating them.',
|
|
28
|
+
color :'interactive',
|
|
29
|
+
}
|
|
@@ -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
|
+
// )
|
|
@@ -25,6 +25,7 @@ const Template = ({ isTransparent = false, ...rest }) => (
|
|
|
25
25
|
<SocialMediaButton type="twitter" isTransparent={isTransparent} />
|
|
26
26
|
<SocialMediaButton type="instagram" isTransparent={isTransparent} />
|
|
27
27
|
<SocialMediaButton type="linkedin" isTransparent={isTransparent} />
|
|
28
|
+
<SocialMediaButton type="threads" isTransparent={isTransparent} />
|
|
28
29
|
</AppContextProvider>
|
|
29
30
|
)
|
|
30
31
|
|
|
@@ -33,7 +34,7 @@ Base.args = {
|
|
|
33
34
|
config:{
|
|
34
35
|
SITE:{
|
|
35
36
|
NAME :'Pareto',
|
|
36
|
-
CANONICAL :'https://
|
|
37
|
+
CANONICAL :'https://pareto.ai',
|
|
37
38
|
SUPPORT_EMAIL:'support@hellopareto.com',
|
|
38
39
|
TITLE_SUFFIX :'| Pareto',
|
|
39
40
|
},
|
|
@@ -42,9 +43,10 @@ Base.args = {
|
|
|
42
43
|
INSTAGRAM:'https://www.instagram.com/hellopareto',
|
|
43
44
|
TWITTER :'https://www.twitter.com/hellopareto',
|
|
44
45
|
LINKEDIN :'https://www.linkedin.com/company/hellopareto',
|
|
46
|
+
THREADS :'https://www.threads.net/@hellopareto',
|
|
45
47
|
},
|
|
46
48
|
EXTRA:{
|
|
47
|
-
SURVEY:'https://survey.
|
|
49
|
+
SURVEY:'https://survey.pareto.ai',
|
|
48
50
|
},
|
|
49
51
|
},
|
|
50
52
|
}
|
|
@@ -35,14 +35,10 @@ export const Base = () => {
|
|
|
35
35
|
className={
|
|
36
36
|
[
|
|
37
37
|
`ui-${userTheme}`,
|
|
38
|
-
'y-
|
|
38
|
+
'y-background-far b-y',
|
|
39
39
|
].filter((e) => e).join(' ')
|
|
40
40
|
}
|
|
41
41
|
>
|
|
42
|
-
<p>
|
|
43
|
-
Theme :
|
|
44
|
-
{ userTheme }
|
|
45
|
-
</p>
|
|
46
42
|
<ThemeSelector />
|
|
47
43
|
</div>
|
|
48
44
|
)
|
|
@@ -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,44 +1,40 @@
|
|
|
1
1
|
const THEME = [
|
|
2
|
-
'
|
|
2
|
+
'main',
|
|
3
3
|
'main2',
|
|
4
|
-
'main3',
|
|
5
|
-
'main4',
|
|
6
4
|
]
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
const WHEEL = [
|
|
6
|
+
const MODALS = [
|
|
10
7
|
'red',
|
|
11
|
-
'orange',
|
|
12
|
-
'yellow',
|
|
13
|
-
'olive',
|
|
14
8
|
'green',
|
|
15
|
-
'
|
|
16
|
-
'
|
|
9
|
+
'orange',
|
|
10
|
+
'gray',
|
|
17
11
|
'blue',
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
const MODALS = [
|
|
24
|
-
'success',
|
|
25
|
-
'warning',
|
|
26
|
-
'error',
|
|
12
|
+
'purple',
|
|
13
|
+
'yellow',
|
|
14
|
+
'seagreen',
|
|
27
15
|
]
|
|
28
16
|
|
|
29
17
|
const UI = [
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'background5',
|
|
35
|
-
'background6',
|
|
18
|
+
'ui-main',
|
|
19
|
+
'ui-main-2',
|
|
20
|
+
'ui-lines',
|
|
21
|
+
'ui-icons',
|
|
36
22
|
'heading',
|
|
37
23
|
'paragraph',
|
|
38
24
|
'subtitle',
|
|
39
25
|
'metadata',
|
|
40
26
|
'link',
|
|
41
|
-
'
|
|
27
|
+
'disabled',
|
|
28
|
+
'shadow',
|
|
29
|
+
'transparent',
|
|
30
|
+
'highlighted',
|
|
31
|
+
'interactive',
|
|
32
|
+
'background-far',
|
|
33
|
+
'background-near',
|
|
34
|
+
'background-inputs',
|
|
35
|
+
'background-cards',
|
|
36
|
+
'background-mesh',
|
|
37
|
+
'outline-inputs',
|
|
42
38
|
]
|
|
43
39
|
|
|
44
40
|
const SM = [
|
|
@@ -59,7 +55,6 @@ const MONOCHROME = [
|
|
|
59
55
|
const ALL_COLORS = [
|
|
60
56
|
...THEME,
|
|
61
57
|
...MODALS,
|
|
62
|
-
// ...WHEEL,
|
|
63
58
|
...UI,
|
|
64
59
|
...SM,
|
|
65
60
|
...MONOCHROME,
|
|
@@ -68,7 +63,6 @@ const ALL_COLORS = [
|
|
|
68
63
|
export {
|
|
69
64
|
THEME,
|
|
70
65
|
MODALS,
|
|
71
|
-
// WHEEL,
|
|
72
66
|
UI,
|
|
73
67
|
SM,
|
|
74
68
|
MONOCHROME,
|
|
@@ -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
|
+
}
|