@pareto-engineering/design-system 4.0.0-alpha.4 → 4.0.0-alpha.42
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 +14 -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 +223 -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 +121 -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 +15 -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 +218 -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 +121 -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 +25 -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 +273 -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 +121 -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
|
@@ -1,33 +1,50 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
|
|
3
3
|
@use "@pareto-engineering/bem";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-padding: .55em .75em;
|
|
8
|
+
$default-border: 1px solid var(--outline-inputs);
|
|
9
|
+
$default-input-border-radius: var(--theme-default-input-border-radius);
|
|
10
|
+
$default-border: var(--theme-default-input-border);
|
|
11
|
+
$hover-border: var(--theme-hover-input-border);
|
|
12
|
+
$focus-border: var(--theme-focus-input-border);
|
|
13
|
+
$default-background: var(--background-inputs);
|
|
14
|
+
$disabled-background: var(--background-inputs-30);
|
|
6
15
|
|
|
7
16
|
.#{bem.$base}.text-area-input {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
&.#{bem.$base}.input-wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
|
|
21
|
+
> .textarea {
|
|
22
|
+
background: $default-background;
|
|
23
|
+
border: $default-border;
|
|
24
|
+
border-radius: $default-input-border-radius;
|
|
25
|
+
color: var(--y);
|
|
26
|
+
outline: none;
|
|
27
|
+
padding: $default-padding;
|
|
28
|
+
width: 100%;
|
|
29
|
+
|
|
30
|
+
&::placeholder {
|
|
31
|
+
color: var(--metadata);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:disabled {
|
|
35
|
+
background-color: $disabled-background;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:not(:disabled) {
|
|
39
|
+
&:hover,
|
|
40
|
+
&:active {
|
|
41
|
+
border: $hover-border;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
border: $focus-border;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
31
48
|
}
|
|
32
49
|
}
|
|
33
50
|
}
|
|
@@ -6,4 +6,6 @@ export { RatingsInput } from "./RatingsInput";
|
|
|
6
6
|
export { QueryCombobox } from "./QueryCombobox";
|
|
7
7
|
export { QuerySelect } from "./QuerySelect";
|
|
8
8
|
export { Checkbox } from "./Checkbox";
|
|
9
|
-
export { QueryChoices } from "./QueryChoices";
|
|
9
|
+
export { QueryChoices } from "./QueryChoices";
|
|
10
|
+
export { LinkInput } from "./LinkInput";
|
|
11
|
+
export { EditorInput } from "./EditorInput";
|
package/dist/es/form.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use "form-reset.scss";
|
|
2
2
|
|
|
3
|
-
$form-input-border-bottom: 1px solid var(--hard-
|
|
3
|
+
$form-input-border-bottom: 1px solid var(--hard-background-far);
|
|
4
4
|
$form-input-on-focus-border-bottom: 1px solid var(--soft-main1);
|
|
5
5
|
$form-input-on-error-border-bottom: 1px solid var(--error);
|
|
6
6
|
$label-input-heigth-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pareto-engineering/design-system",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.42",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -32,31 +32,34 @@
|
|
|
32
32
|
"@babel/cli": "^7.21.0",
|
|
33
33
|
"@pareto-engineering/eslint-config": "*",
|
|
34
34
|
"@pareto-engineering/stylelint-config": "*",
|
|
35
|
-
"@storybook/addon-essentials": "^7.0.
|
|
36
|
-
"@storybook/addon-interactions": "^7.0.
|
|
37
|
-
"@storybook/addon-links": "^7.0.
|
|
38
|
-
"@storybook/addon-storyshots": "^7.0.
|
|
39
|
-
"@storybook/blocks": "^7.0.
|
|
40
|
-
"@storybook/react": "^7.0.
|
|
41
|
-
"@storybook/react-webpack5": "^7.0.
|
|
42
|
-
"@storybook/testing-library": "^0.0
|
|
35
|
+
"@storybook/addon-essentials": "^7.0.6",
|
|
36
|
+
"@storybook/addon-interactions": "^7.0.6",
|
|
37
|
+
"@storybook/addon-links": "^7.0.6",
|
|
38
|
+
"@storybook/addon-storyshots": "^7.0.6",
|
|
39
|
+
"@storybook/blocks": "^7.0.6",
|
|
40
|
+
"@storybook/react": "^7.0.6",
|
|
41
|
+
"@storybook/react-webpack5": "^7.0.6",
|
|
42
|
+
"@storybook/testing-library": "^0.1.0",
|
|
43
43
|
"babel-plugin-relay": "^15.0.0",
|
|
44
44
|
"copyfiles": "^2.4.1",
|
|
45
45
|
"css-loader": "^6.7.3",
|
|
46
46
|
"identity-obj-proxy": "^3.0.0",
|
|
47
47
|
"jest-environment-jsdom": "^29.5.0",
|
|
48
|
-
"sass-loader": "^13.2.
|
|
49
|
-
"storybook": "^7.0.
|
|
50
|
-
"style-loader": "^3.3.
|
|
48
|
+
"sass-loader": "^13.2.2",
|
|
49
|
+
"storybook": "^7.0.6",
|
|
50
|
+
"style-loader": "^3.3.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@
|
|
54
|
-
"@pareto-engineering/
|
|
55
|
-
"@pareto-engineering/
|
|
53
|
+
"@lexical/react": "^0.11.3",
|
|
54
|
+
"@pareto-engineering/assets": "^4.0.0-alpha.40",
|
|
55
|
+
"@pareto-engineering/bem": "^4.0.0-alpha.20",
|
|
56
|
+
"@pareto-engineering/styles": "^4.0.0-alpha.39",
|
|
57
|
+
"@pareto-engineering/utils": "^4.0.0-alpha.33",
|
|
56
58
|
"date-fns": "^2.29.3",
|
|
57
59
|
"downshift": "^6.1.12",
|
|
58
60
|
"formik": "^2.2.9",
|
|
59
61
|
"hamburgers": "^1.2.1",
|
|
62
|
+
"lexical": "^0.11.3",
|
|
60
63
|
"lodash": "^4.17.21",
|
|
61
64
|
"prop-types": "^15.8.1",
|
|
62
65
|
"react": "^18.2.0",
|
|
@@ -67,5 +70,5 @@
|
|
|
67
70
|
"relay-test-utils": "^15.0.0"
|
|
68
71
|
},
|
|
69
72
|
"browserslist": "> 2%",
|
|
70
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "316af25fc0da0320febe6027eb67f4a8288dec3e"
|
|
71
74
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { BlurOverlay } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/BlurOverlay',
|
|
8
|
+
component :BlurOverlay,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:BlurOverlay.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{},
|
|
16
|
+
controls:{
|
|
17
|
+
blur:{ type: 'boolean' },
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const Base = (args) => (
|
|
22
|
+
<BlurOverlay {...args}>
|
|
23
|
+
<div style={{
|
|
24
|
+
height :'100px',
|
|
25
|
+
bottom :'0',
|
|
26
|
+
minWidth :'100%',
|
|
27
|
+
position :'fixed',
|
|
28
|
+
backgroundColor:'blue',
|
|
29
|
+
color :'white',
|
|
30
|
+
}}
|
|
31
|
+
>
|
|
32
|
+
Sample Foreground Component
|
|
33
|
+
</div>
|
|
34
|
+
</BlurOverlay>
|
|
35
|
+
|
|
36
|
+
)
|
|
37
|
+
Base.args = {
|
|
38
|
+
blur:true,
|
|
39
|
+
}
|
|
@@ -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
|
+
}
|