@pareto-engineering/design-system 4.0.0-alpha.5 → 4.0.0-alpha.51
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 +46 -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 +46 -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 +46 -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
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 0.2.4 */
|
|
2
2
|
import * as React from 'react'
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect } from 'react'
|
|
4
4
|
import PropTypes from 'prop-types'
|
|
5
5
|
|
|
6
6
|
// Package-level Imports
|
|
7
7
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
8
8
|
import { LoadingCircle } from 'ui'
|
|
9
|
+
import { Group } from './common'
|
|
9
10
|
import './styles.scss'
|
|
10
|
-
// Component-level imports
|
|
11
|
-
// import('./styles.scss')
|
|
12
11
|
|
|
13
12
|
// Helper Definition
|
|
14
13
|
const baseClassName = styleNames.base
|
|
@@ -21,16 +20,22 @@ const Button = ({
|
|
|
21
20
|
children,
|
|
22
21
|
isLoading,
|
|
23
22
|
color,
|
|
23
|
+
textColor,
|
|
24
24
|
isCompact,
|
|
25
25
|
isGhost,
|
|
26
26
|
isSimple,
|
|
27
|
+
isGradient,
|
|
28
|
+
isSpaced,
|
|
27
29
|
arrowDirection,
|
|
28
30
|
...otherProps
|
|
29
31
|
}) => {
|
|
30
|
-
|
|
32
|
+
useInsertionEffect(() => {
|
|
31
33
|
import('./styles.scss')
|
|
32
34
|
}, [])
|
|
33
35
|
|
|
36
|
+
const buttonText = isSimple ? <span className={styleNames.modifierUnderlined}>{children}</span>
|
|
37
|
+
: children
|
|
38
|
+
|
|
34
39
|
return (
|
|
35
40
|
<button
|
|
36
41
|
id={id}
|
|
@@ -39,10 +44,13 @@ const Button = ({
|
|
|
39
44
|
componentClassName,
|
|
40
45
|
userClassName,
|
|
41
46
|
`x-${color}`,
|
|
47
|
+
textColor && `y-${textColor}`,
|
|
42
48
|
isGhost && styleNames.modifierGhost,
|
|
43
49
|
isCompact && styleNames.modifierCompact,
|
|
44
50
|
isSimple && styleNames.modifierSimple,
|
|
45
|
-
|
|
51
|
+
isGradient && styleNames.modifierGradient,
|
|
52
|
+
isSpaced && styleNames.modifierSpaced,
|
|
53
|
+
!isLoading && arrowDirection && `arrow-${arrowDirection}`,
|
|
46
54
|
]
|
|
47
55
|
.filter((e) => e)
|
|
48
56
|
.join(' ')}
|
|
@@ -53,11 +61,11 @@ const Button = ({
|
|
|
53
61
|
{isLoading ? (
|
|
54
62
|
<LoadingCircle
|
|
55
63
|
style={{
|
|
56
|
-
'--x':'var(--on-x)',
|
|
64
|
+
'--x':'var(--stroke-color, var(--on-x))',
|
|
57
65
|
}}
|
|
58
66
|
heightWidth="1.15em"
|
|
59
67
|
/>
|
|
60
|
-
) :
|
|
68
|
+
) : buttonText}
|
|
61
69
|
</button>
|
|
62
70
|
)
|
|
63
71
|
}
|
|
@@ -98,6 +106,16 @@ Button.propTypes = {
|
|
|
98
106
|
*/
|
|
99
107
|
isSimple:PropTypes.bool,
|
|
100
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Should this button have a gradient
|
|
111
|
+
*/
|
|
112
|
+
isGradient:PropTypes.bool,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Should this button be spaced
|
|
116
|
+
*/
|
|
117
|
+
isSpaced:PropTypes.bool,
|
|
118
|
+
|
|
101
119
|
/**
|
|
102
120
|
* The button color
|
|
103
121
|
*/
|
|
@@ -115,7 +133,9 @@ Button.propTypes = {
|
|
|
115
133
|
}
|
|
116
134
|
|
|
117
135
|
Button.defaultProps = {
|
|
118
|
-
color:'
|
|
136
|
+
color:'main',
|
|
119
137
|
}
|
|
120
138
|
|
|
139
|
+
Button.Group = Group
|
|
140
|
+
|
|
121
141
|
export default Button
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
|
+
|
|
6
|
+
import PropTypes from 'prop-types'
|
|
7
|
+
|
|
8
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
|
+
|
|
10
|
+
// Local Definitions
|
|
11
|
+
|
|
12
|
+
const baseClassName = styleNames.base
|
|
13
|
+
|
|
14
|
+
const componentClassName = 'button-group'
|
|
15
|
+
|
|
16
|
+
const Group = ({
|
|
17
|
+
id,
|
|
18
|
+
className: userClassName,
|
|
19
|
+
style,
|
|
20
|
+
children,
|
|
21
|
+
...otherProps
|
|
22
|
+
}) => {
|
|
23
|
+
useInsertionEffect(() => {
|
|
24
|
+
import('./styles.scss')
|
|
25
|
+
}, [])
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div
|
|
29
|
+
id={id}
|
|
30
|
+
className={[
|
|
31
|
+
baseClassName,
|
|
32
|
+
componentClassName,
|
|
33
|
+
userClassName,
|
|
34
|
+
]
|
|
35
|
+
.filter((e) => e)
|
|
36
|
+
.join(' ')}
|
|
37
|
+
style={style}
|
|
38
|
+
{...otherProps}
|
|
39
|
+
>
|
|
40
|
+
{children}
|
|
41
|
+
</div>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
Group.propTypes = {
|
|
46
|
+
/**
|
|
47
|
+
* The HTML id for this element
|
|
48
|
+
*/
|
|
49
|
+
id:PropTypes.string,
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The HTML class names for this element
|
|
53
|
+
*/
|
|
54
|
+
className:PropTypes.string,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The React-written, css properties for this element.
|
|
58
|
+
*/
|
|
59
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The children JSX
|
|
63
|
+
*/
|
|
64
|
+
children:PropTypes.node,
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
Group.defaultProps = {
|
|
68
|
+
// type:'snap-scroller',
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default Group
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Group } from './Group'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
.#{bem.$base}.button-group {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
gap: var(--gap);
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Group } from './Group'
|
|
@@ -20,16 +20,18 @@ $default-animation-time: .31s;
|
|
|
20
20
|
font-weight: 400;
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
padding: $default-padding;
|
|
23
|
-
transition: all .25s
|
|
23
|
+
transition: all .25s;
|
|
24
|
+
white-space: nowrap;//var(--theme-default-paragraph);
|
|
24
25
|
|
|
25
26
|
&.arrow-right {
|
|
26
27
|
&::after {
|
|
28
|
+
align-self: center;
|
|
27
29
|
content: "-->";
|
|
28
30
|
margin-left: $default-margin;
|
|
29
31
|
vertical-align: middle;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
&:hover {
|
|
34
|
+
&:hover:not(:disabled) {
|
|
33
35
|
&::after {
|
|
34
36
|
--final-position: 50%;
|
|
35
37
|
animation: animateArrow $default-animation-time forwards;
|
|
@@ -39,12 +41,13 @@ $default-animation-time: .31s;
|
|
|
39
41
|
|
|
40
42
|
&.arrow-left {
|
|
41
43
|
&::before {
|
|
44
|
+
align-self: center;
|
|
42
45
|
content: "<--";
|
|
43
46
|
margin-right: $default-margin;
|
|
44
47
|
vertical-align: middle;
|
|
45
48
|
}
|
|
46
49
|
|
|
47
|
-
&:hover {
|
|
50
|
+
&:hover:not(:disabled) {
|
|
48
51
|
&::before {
|
|
49
52
|
--final-position: -50%;
|
|
50
53
|
animation: animateArrow $default-animation-time forwards;
|
|
@@ -55,7 +58,10 @@ $default-animation-time: .31s;
|
|
|
55
58
|
&:not(:disabled) {
|
|
56
59
|
cursor: pointer;
|
|
57
60
|
|
|
58
|
-
&:hover
|
|
61
|
+
&:hover
|
|
62
|
+
:not(.#{bem.$modifier-gradient})
|
|
63
|
+
:not(.#{bem.$modifier-ghost})
|
|
64
|
+
:not(.#{bem.$modifier-simple}) {
|
|
59
65
|
background: var(--soft-x, var(--soft-#{$default-color}));
|
|
60
66
|
}
|
|
61
67
|
|
|
@@ -64,6 +70,21 @@ $default-animation-time: .31s;
|
|
|
64
70
|
}
|
|
65
71
|
}
|
|
66
72
|
|
|
73
|
+
&.#{bem.$modifier-gradient} {
|
|
74
|
+
background-image: linear-gradient(
|
|
75
|
+
to right,
|
|
76
|
+
var(--hard-x) 30%,
|
|
77
|
+
var(--x) 50%,
|
|
78
|
+
var(--hard-x) 100%
|
|
79
|
+
);
|
|
80
|
+
background-position: left;
|
|
81
|
+
background-size: 200% auto;
|
|
82
|
+
|
|
83
|
+
&:not(:disabled):hover {
|
|
84
|
+
background-position: right center;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
67
88
|
&.#{bem.$modifier-compact} {
|
|
68
89
|
padding: $compact-padding;
|
|
69
90
|
}
|
|
@@ -71,7 +92,7 @@ $default-animation-time: .31s;
|
|
|
71
92
|
&.#{bem.$modifier-ghost} {
|
|
72
93
|
background: transparent;
|
|
73
94
|
border: 1px solid var(--x, var(--#{$default-color}));
|
|
74
|
-
color: var(--x, var(--#{$default-color}));
|
|
95
|
+
color: var(--y, var(--x, var(--#{$default-color})));
|
|
75
96
|
|
|
76
97
|
&:hover,
|
|
77
98
|
&:focus,
|
|
@@ -82,27 +103,36 @@ $default-animation-time: .31s;
|
|
|
82
103
|
&:not(:disabled) {
|
|
83
104
|
&:hover {
|
|
84
105
|
border: 1px solid var(--soft-x, var(--soft-#{$default-color}));
|
|
85
|
-
color: var(--soft-x, var(--soft-#{$default-color}));
|
|
106
|
+
color: var(--soft-y, var(--soft-x, var(--soft-#{$default-color})));
|
|
86
107
|
}
|
|
87
108
|
|
|
88
109
|
&:focus {
|
|
89
110
|
border: 1px solid var(--hard-x, var(--hard-#{$default-color}));
|
|
90
|
-
color: var(--hard-x, var(--hard-#{$default-color}));
|
|
111
|
+
color: var(--hard-y, var(--hard-x, var(--hard-#{$default-color})));
|
|
91
112
|
}
|
|
92
113
|
}
|
|
93
114
|
|
|
94
115
|
&:disabled {
|
|
95
|
-
border: 1px solid var(--
|
|
96
|
-
color: var(--
|
|
116
|
+
border: 1px solid var(--hard-disabled, var(--#{$default-color}));
|
|
117
|
+
color: var(--hard-disabled, var(--#{$default-color}));
|
|
97
118
|
}
|
|
98
119
|
}
|
|
99
120
|
|
|
121
|
+
&.#{bem.$modifier-spaced} {
|
|
122
|
+
margin-bottom: var(--spacing-2);
|
|
123
|
+
margin-top: var(--spacing-2);
|
|
124
|
+
}
|
|
125
|
+
|
|
100
126
|
&.#{bem.$modifier-simple} {
|
|
101
127
|
background: transparent;
|
|
102
128
|
border: 1px solid transparent;
|
|
103
129
|
color: var(--x, var(--#{$default-color}));
|
|
104
130
|
padding: 0;
|
|
105
131
|
|
|
132
|
+
> .#{bem.$modifier-underlined} {
|
|
133
|
+
text-decoration: underline;
|
|
134
|
+
}
|
|
135
|
+
|
|
106
136
|
&:disabled,
|
|
107
137
|
&:hover,
|
|
108
138
|
&:focus {
|
|
@@ -120,12 +150,12 @@ $default-animation-time: .31s;
|
|
|
120
150
|
}
|
|
121
151
|
|
|
122
152
|
&:disabled {
|
|
123
|
-
color: var(--
|
|
153
|
+
color: var(--hard-disabled, var(--#{$default-color}));
|
|
124
154
|
}
|
|
125
155
|
}
|
|
126
156
|
|
|
127
157
|
&:disabled {
|
|
128
|
-
background: var(--
|
|
158
|
+
background: var(--hard-disabled);
|
|
129
159
|
filter: brightness(125%);
|
|
130
160
|
}
|
|
131
161
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
|
+
|
|
6
|
+
import PropTypes from 'prop-types'
|
|
7
|
+
|
|
8
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
|
+
|
|
10
|
+
import { ProgressBar } from 'ui'
|
|
11
|
+
|
|
12
|
+
import { Group, Section } from './common'
|
|
13
|
+
|
|
14
|
+
// Local Definitions
|
|
15
|
+
|
|
16
|
+
const baseClassName = styleNames.base
|
|
17
|
+
|
|
18
|
+
const componentClassName = 'card'
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* This is the component description.
|
|
22
|
+
*/
|
|
23
|
+
const Card = ({
|
|
24
|
+
id,
|
|
25
|
+
className: userClassName,
|
|
26
|
+
style,
|
|
27
|
+
children,
|
|
28
|
+
progress,
|
|
29
|
+
progressBarColor,
|
|
30
|
+
}) => {
|
|
31
|
+
useInsertionEffect(() => {
|
|
32
|
+
import('./styles.scss')
|
|
33
|
+
}, [])
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div
|
|
37
|
+
id={id}
|
|
38
|
+
className={[
|
|
39
|
+
baseClassName,
|
|
40
|
+
componentClassName,
|
|
41
|
+
userClassName,
|
|
42
|
+
]
|
|
43
|
+
.filter((e) => e)
|
|
44
|
+
.join(' ')}
|
|
45
|
+
style={style}
|
|
46
|
+
>
|
|
47
|
+
{progress && (
|
|
48
|
+
<ProgressBar
|
|
49
|
+
attached
|
|
50
|
+
color={progressBarColor}
|
|
51
|
+
progress={progress}
|
|
52
|
+
height=".5em"
|
|
53
|
+
/>
|
|
54
|
+
)}
|
|
55
|
+
{children}
|
|
56
|
+
</div>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
Card.propTypes = {
|
|
61
|
+
/**
|
|
62
|
+
* The HTML id for this element
|
|
63
|
+
*/
|
|
64
|
+
id:PropTypes.string,
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The HTML class names for this element
|
|
68
|
+
*/
|
|
69
|
+
className:PropTypes.string,
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The React-written, css properties for this element.
|
|
73
|
+
*/
|
|
74
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The progress bar percentage
|
|
78
|
+
*/
|
|
79
|
+
progress:PropTypes.number,
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The progress bar color
|
|
83
|
+
*/
|
|
84
|
+
progressBarColor:PropTypes.string,
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
Card.defaultProps = {
|
|
88
|
+
progressBarColor:'main',
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
Card.Section = Section
|
|
92
|
+
Card.Group = Group
|
|
93
|
+
|
|
94
|
+
export default Card
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
|
+
|
|
6
|
+
import PropTypes from 'prop-types'
|
|
7
|
+
|
|
8
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
|
+
|
|
10
|
+
import { SnapScroller } from 'ui'
|
|
11
|
+
|
|
12
|
+
// Local Definitions
|
|
13
|
+
|
|
14
|
+
const baseClassName = styleNames.base
|
|
15
|
+
|
|
16
|
+
const componentClassName = 'group'
|
|
17
|
+
|
|
18
|
+
const Group = ({
|
|
19
|
+
id,
|
|
20
|
+
className: userClassName,
|
|
21
|
+
style,
|
|
22
|
+
children,
|
|
23
|
+
type,
|
|
24
|
+
desktopType,
|
|
25
|
+
...otherProps
|
|
26
|
+
}) => {
|
|
27
|
+
useInsertionEffect(() => {
|
|
28
|
+
import('./styles.scss')
|
|
29
|
+
}, [])
|
|
30
|
+
const Wrapper = type === 'snap-scroller' ? SnapScroller : 'div'
|
|
31
|
+
const wrapperProps = (type === 'snap-scroller' && desktopType !== 'snap-scroller') ? { noScrollOnDesktop: true } : {}
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<Wrapper
|
|
35
|
+
id={id}
|
|
36
|
+
className={[
|
|
37
|
+
baseClassName,
|
|
38
|
+
componentClassName,
|
|
39
|
+
userClassName,
|
|
40
|
+
type === 'grid' ? 'grid' : type,
|
|
41
|
+
`desktop-${desktopType}`,
|
|
42
|
+
]
|
|
43
|
+
.filter((e) => e)
|
|
44
|
+
.join(' ')}
|
|
45
|
+
style={style}
|
|
46
|
+
{...otherProps}
|
|
47
|
+
{...wrapperProps}
|
|
48
|
+
>
|
|
49
|
+
{children}
|
|
50
|
+
</Wrapper>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
Group.propTypes = {
|
|
55
|
+
/**
|
|
56
|
+
* The HTML id for this element
|
|
57
|
+
*/
|
|
58
|
+
id:PropTypes.string,
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The HTML class names for this element
|
|
62
|
+
*/
|
|
63
|
+
className:PropTypes.string,
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The React-written, css properties for this element.
|
|
67
|
+
*/
|
|
68
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The children JSX
|
|
72
|
+
*/
|
|
73
|
+
children:PropTypes.node,
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Type of container by default
|
|
77
|
+
*/
|
|
78
|
+
type:PropTypes.oneOf(['grid', 'vertical-flexbox', 'snap-scroller']),
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Type of container for desktop
|
|
82
|
+
*/
|
|
83
|
+
desktopType:PropTypes.oneOf(['grid', 'vertical-flexbox']),
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
Group.defaultProps = {
|
|
87
|
+
type :'snap-scroller',
|
|
88
|
+
desktopType:'vertical-flexbox',
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export default Group
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Group } from './Group'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-spacing: var(--gap);
|
|
8
|
+
|
|
9
|
+
.#{bem.$base}.group {
|
|
10
|
+
gap: $default-spacing;
|
|
11
|
+
|
|
12
|
+
&.snap-scroller {
|
|
13
|
+
margin-left: calc($default-spacing * -1);
|
|
14
|
+
margin-right: calc($default-spacing * -1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.vertical-flexbox {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include mixins.media($from: $sm-md) {
|
|
23
|
+
&.desktop-grid {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: repeat(var(--columns), 1fr);
|
|
26
|
+
margin-left: unset;
|
|
27
|
+
margin-right: unset;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.desktop-vertical-flexbox {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import PropTypes from 'prop-types'
|
|
5
|
+
|
|
6
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
7
|
+
|
|
8
|
+
// Local Definitions
|
|
9
|
+
|
|
10
|
+
const baseClassName = styleNames.base
|
|
11
|
+
|
|
12
|
+
const componentClassName = 'section'
|
|
13
|
+
|
|
14
|
+
const Section = ({
|
|
15
|
+
id,
|
|
16
|
+
className:userClassName,
|
|
17
|
+
style,
|
|
18
|
+
children,
|
|
19
|
+
isImage,
|
|
20
|
+
...otherProps
|
|
21
|
+
}) => (
|
|
22
|
+
<div
|
|
23
|
+
id={id}
|
|
24
|
+
className={[
|
|
25
|
+
baseClassName,
|
|
26
|
+
componentClassName,
|
|
27
|
+
userClassName,
|
|
28
|
+
isImage && styleNames.modifierImage,
|
|
29
|
+
]
|
|
30
|
+
.filter((e) => e)
|
|
31
|
+
.join(' ')}
|
|
32
|
+
style={style}
|
|
33
|
+
{...otherProps}
|
|
34
|
+
>
|
|
35
|
+
{children}
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
Section.propTypes = {
|
|
40
|
+
/**
|
|
41
|
+
* The HTML id for this element
|
|
42
|
+
*/
|
|
43
|
+
id:PropTypes.string,
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The HTML class names for this element
|
|
47
|
+
*/
|
|
48
|
+
className:PropTypes.string,
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The React-written, css properties for this element.
|
|
52
|
+
*/
|
|
53
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The children JSX
|
|
57
|
+
*/
|
|
58
|
+
children:PropTypes.node,
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Whether to use the image modifier class
|
|
62
|
+
*/
|
|
63
|
+
isImage:PropTypes.bool,
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
Section.defaultProps = {
|
|
67
|
+
// someProp:false
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default Section
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Section } from './Section'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './Card'
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
/* stylelint-disable selector-max-universal -- exception */
|
|
3
|
+
|
|
4
|
+
@use "@pareto-engineering/bem";
|
|
5
|
+
|
|
6
|
+
$default-border-radius: var(--theme-default-border-radius);
|
|
7
|
+
$default-border-color: var(--hard-background-cards);
|
|
8
|
+
$default-background: var(--background-cards-80);
|
|
9
|
+
$default-padding: 1.5em;
|
|
10
|
+
|
|
11
|
+
.#{bem.$base}.card {
|
|
12
|
+
background: $default-background;
|
|
13
|
+
border: 1px solid $default-border-color;
|
|
14
|
+
border-radius: $default-border-radius;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
> .progress-bar {
|
|
21
|
+
left: 0;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
> .#{bem.$base}.section:nth-last-child(2) {
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> .#{bem.$base}.section {
|
|
32
|
+
padding: $default-padding;
|
|
33
|
+
|
|
34
|
+
&.#{bem.$modifier-image} {
|
|
35
|
+
padding: 0;
|
|
36
|
+
|
|
37
|
+
img {
|
|
38
|
+
border-radius: $default-border-radius;
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
> * {
|
|
44
|
+
&:first-child {
|
|
45
|
+
margin-block-start: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:last-child {
|
|
49
|
+
margin-block-end: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
> .#{bem.$base}.section + .#{bem.$base}.section {
|
|
55
|
+
padding-top: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|