@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
|
@@ -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
|
}
|
|
@@ -92,17 +113,26 @@ $default-animation-time: .31s;
|
|
|
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,66 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
import { ProgressBar } from "../..";
|
|
7
|
+
import { Group, Section } from "./common";
|
|
8
|
+
|
|
9
|
+
// Local Definitions
|
|
10
|
+
|
|
11
|
+
const baseClassName = styleNames.base;
|
|
12
|
+
const componentClassName = 'card';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This is the component description.
|
|
16
|
+
*/
|
|
17
|
+
const Card = ({
|
|
18
|
+
id,
|
|
19
|
+
className: userClassName,
|
|
20
|
+
style,
|
|
21
|
+
children,
|
|
22
|
+
progress,
|
|
23
|
+
progressBarColor
|
|
24
|
+
}) => {
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
|
+
import("./styles.scss");
|
|
27
|
+
}, []);
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
id: id,
|
|
30
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
31
|
+
style: style
|
|
32
|
+
}, progress && /*#__PURE__*/React.createElement(ProgressBar, {
|
|
33
|
+
attached: true,
|
|
34
|
+
color: progressBarColor,
|
|
35
|
+
progress: progress,
|
|
36
|
+
height: ".5em"
|
|
37
|
+
}), children);
|
|
38
|
+
};
|
|
39
|
+
Card.propTypes = {
|
|
40
|
+
/**
|
|
41
|
+
* The HTML id for this element
|
|
42
|
+
*/
|
|
43
|
+
id: PropTypes.string,
|
|
44
|
+
/**
|
|
45
|
+
* The HTML class names for this element
|
|
46
|
+
*/
|
|
47
|
+
className: PropTypes.string,
|
|
48
|
+
/**
|
|
49
|
+
* The React-written, css properties for this element.
|
|
50
|
+
*/
|
|
51
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
52
|
+
/**
|
|
53
|
+
* The progress bar percentage
|
|
54
|
+
*/
|
|
55
|
+
progress: PropTypes.number,
|
|
56
|
+
/**
|
|
57
|
+
* The progress bar color
|
|
58
|
+
*/
|
|
59
|
+
progressBarColor: PropTypes.string
|
|
60
|
+
};
|
|
61
|
+
Card.defaultProps = {
|
|
62
|
+
progressBarColor: 'main'
|
|
63
|
+
};
|
|
64
|
+
Card.Section = Section;
|
|
65
|
+
Card.Group = Group;
|
|
66
|
+
export default Card;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useInsertionEffect } from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
|
+
import { SnapScroller } from "../../../..";
|
|
8
|
+
|
|
9
|
+
// Local Definitions
|
|
10
|
+
|
|
11
|
+
const baseClassName = styleNames.base;
|
|
12
|
+
const componentClassName = 'group';
|
|
13
|
+
const Group = ({
|
|
14
|
+
id,
|
|
15
|
+
className: userClassName,
|
|
16
|
+
style,
|
|
17
|
+
children,
|
|
18
|
+
type,
|
|
19
|
+
desktopType,
|
|
20
|
+
...otherProps
|
|
21
|
+
}) => {
|
|
22
|
+
useInsertionEffect(() => {
|
|
23
|
+
import("./styles.scss");
|
|
24
|
+
}, []);
|
|
25
|
+
const Wrapper = type === 'snap-scroller' ? SnapScroller : 'div';
|
|
26
|
+
const wrapperProps = type === 'snap-scroller' && desktopType !== 'snap-scroller' ? {
|
|
27
|
+
noScrollOnDesktop: true
|
|
28
|
+
} : {};
|
|
29
|
+
return /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
30
|
+
id: id,
|
|
31
|
+
className: [baseClassName, componentClassName, userClassName, type === 'grid' ? 'grid' : type, `desktop-${desktopType}`].filter(e => e).join(' '),
|
|
32
|
+
style: style
|
|
33
|
+
}, otherProps, wrapperProps), children);
|
|
34
|
+
};
|
|
35
|
+
Group.propTypes = {
|
|
36
|
+
/**
|
|
37
|
+
* The HTML id for this element
|
|
38
|
+
*/
|
|
39
|
+
id: PropTypes.string,
|
|
40
|
+
/**
|
|
41
|
+
* The HTML class names for this element
|
|
42
|
+
*/
|
|
43
|
+
className: PropTypes.string,
|
|
44
|
+
/**
|
|
45
|
+
* The React-written, css properties for this element.
|
|
46
|
+
*/
|
|
47
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
48
|
+
/**
|
|
49
|
+
* The children JSX
|
|
50
|
+
*/
|
|
51
|
+
children: PropTypes.node,
|
|
52
|
+
/**
|
|
53
|
+
* Type of container by default
|
|
54
|
+
*/
|
|
55
|
+
type: PropTypes.oneOf(['grid', 'vertical-flexbox', 'snap-scroller']),
|
|
56
|
+
/**
|
|
57
|
+
* Type of container for desktop
|
|
58
|
+
*/
|
|
59
|
+
desktopType: PropTypes.oneOf(['grid', 'vertical-flexbox'])
|
|
60
|
+
};
|
|
61
|
+
Group.defaultProps = {
|
|
62
|
+
type: 'snap-scroller',
|
|
63
|
+
desktopType: 'vertical-flexbox'
|
|
64
|
+
};
|
|
65
|
+
export default Group;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Group } from "./Group";
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
27
|
+
|
|
28
|
+
&.snap-scroller {
|
|
29
|
+
margin-left: unset;
|
|
30
|
+
margin-right: unset;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.desktop-vertical-flexbox {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
|
|
7
|
+
// Local Definitions
|
|
8
|
+
|
|
9
|
+
const baseClassName = styleNames.base;
|
|
10
|
+
const componentClassName = 'section';
|
|
11
|
+
const Section = ({
|
|
12
|
+
id,
|
|
13
|
+
className: userClassName,
|
|
14
|
+
style,
|
|
15
|
+
children,
|
|
16
|
+
isImage,
|
|
17
|
+
...otherProps
|
|
18
|
+
}) => /*#__PURE__*/React.createElement("div", _extends({
|
|
19
|
+
id: id,
|
|
20
|
+
className: [baseClassName, componentClassName, userClassName, isImage && styleNames.modifierImage].filter(e => e).join(' '),
|
|
21
|
+
style: style
|
|
22
|
+
}, otherProps), children);
|
|
23
|
+
Section.propTypes = {
|
|
24
|
+
/**
|
|
25
|
+
* The HTML id for this element
|
|
26
|
+
*/
|
|
27
|
+
id: PropTypes.string,
|
|
28
|
+
/**
|
|
29
|
+
* The HTML class names for this element
|
|
30
|
+
*/
|
|
31
|
+
className: PropTypes.string,
|
|
32
|
+
/**
|
|
33
|
+
* The React-written, css properties for this element.
|
|
34
|
+
*/
|
|
35
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
36
|
+
/**
|
|
37
|
+
* The children JSX
|
|
38
|
+
*/
|
|
39
|
+
children: PropTypes.node,
|
|
40
|
+
/**
|
|
41
|
+
* Whether to use the image modifier class
|
|
42
|
+
*/
|
|
43
|
+
isImage: PropTypes.bool
|
|
44
|
+
};
|
|
45
|
+
Section.defaultProps = {
|
|
46
|
+
// someProp:false
|
|
47
|
+
};
|
|
48
|
+
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
|
+
}
|
package/dist/es/b/Logo/Logo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useMemo,
|
|
3
|
+
import { useMemo, useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { SVG } from "../../a";
|
|
@@ -50,7 +50,7 @@ const Logo = ({
|
|
|
50
50
|
square
|
|
51
51
|
// ...otherProps
|
|
52
52
|
}) => {
|
|
53
|
-
|
|
53
|
+
useInsertionEffect(() => {
|
|
54
54
|
import("./styles.scss");
|
|
55
55
|
}, []);
|
|
56
56
|
const contentMap = square ? contentMapSquare : contentMapWithName;
|
package/dist/es/b/Page/Page.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.0 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect, useEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
|
+
import { useApp } from "../../a";
|
|
7
8
|
|
|
8
9
|
// Imports from the component folder
|
|
9
10
|
import { PageHelmet, Section } from "./common";
|
|
@@ -27,11 +28,15 @@ const Page = ({
|
|
|
27
28
|
itemType,
|
|
28
29
|
as: Wrapper,
|
|
29
30
|
helmetProps,
|
|
31
|
+
Background,
|
|
30
32
|
...otherProps
|
|
31
33
|
}) => {
|
|
32
|
-
|
|
34
|
+
useInsertionEffect(() => {
|
|
33
35
|
import("./styles.scss");
|
|
34
36
|
}, []);
|
|
37
|
+
const {
|
|
38
|
+
userTheme
|
|
39
|
+
} = useApp();
|
|
35
40
|
useEffect(() => {
|
|
36
41
|
// If we're on the client, we make sure to scroll up when the page loads
|
|
37
42
|
// This is a necessary transform to make react apt for website pages
|
|
@@ -46,14 +51,16 @@ const Page = ({
|
|
|
46
51
|
}
|
|
47
52
|
}, /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
48
53
|
id: id,
|
|
49
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
54
|
+
className: [baseClassName, componentClassName, userClassName, userTheme && `ui-${userTheme}`].filter(e => e).join(' '),
|
|
50
55
|
style: style,
|
|
51
56
|
itemType: itemType,
|
|
52
57
|
itemScope: itemType && ' '
|
|
53
58
|
}, otherProps), itemType && /*#__PURE__*/React.createElement("meta", {
|
|
54
59
|
itemProp: "mainEntityOfPage",
|
|
55
60
|
content: helmetProps?.canonical
|
|
56
|
-
}), helmetProps && /*#__PURE__*/React.createElement(PageHelmet, helmetProps), children
|
|
61
|
+
}), helmetProps && /*#__PURE__*/React.createElement(PageHelmet, helmetProps), children, Background && /*#__PURE__*/React.createElement(Background, {
|
|
62
|
+
className: "background"
|
|
63
|
+
})));
|
|
57
64
|
};
|
|
58
65
|
Page.propTypes = {
|
|
59
66
|
/**
|
|
@@ -83,7 +90,11 @@ Page.propTypes = {
|
|
|
83
90
|
/**
|
|
84
91
|
* The props to pass to `Page.Helmet`. Refer to the corresponding section of the docs.
|
|
85
92
|
*/
|
|
86
|
-
helmetProps: PropTypes.objectOf(PropTypes.string)
|
|
93
|
+
helmetProps: PropTypes.objectOf(PropTypes.string),
|
|
94
|
+
/**
|
|
95
|
+
* The component to use as background
|
|
96
|
+
*/
|
|
97
|
+
Background: PropTypes.node
|
|
87
98
|
};
|
|
88
99
|
Page.defaultProps = {
|
|
89
100
|
as: 'main'
|
|
@@ -17,7 +17,7 @@ const helmetMap = [{
|
|
|
17
17
|
key: "title_tag"
|
|
18
18
|
}, `
|
|
19
19
|
${v}
|
|
20
|
-
${c.SITE?.TITLE_SUFFIX
|
|
20
|
+
${c.SITE?.TITLE_SUFFIX ? c.SITE.TITLE_SUFFIX : ''}
|
|
21
21
|
`)
|
|
22
22
|
}, {
|
|
23
23
|
variables: ['meta_description'],
|
|
@@ -140,7 +140,9 @@ const PageHelmet = ({
|
|
|
140
140
|
}
|
|
141
141
|
return a;
|
|
142
142
|
}, []), [props, context]);
|
|
143
|
-
return /*#__PURE__*/React.createElement(Helmet,
|
|
143
|
+
return /*#__PURE__*/React.createElement(Helmet, {
|
|
144
|
+
key: props.title
|
|
145
|
+
}, HelmetContent);
|
|
144
146
|
};
|
|
145
147
|
PageHelmet.propTypes = {
|
|
146
148
|
robots: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
@@ -13,6 +13,8 @@ const Section = ({
|
|
|
13
13
|
className: userClassName,
|
|
14
14
|
style,
|
|
15
15
|
children,
|
|
16
|
+
isSpaced,
|
|
17
|
+
padded,
|
|
16
18
|
...otherProps
|
|
17
19
|
}) => {
|
|
18
20
|
const {
|
|
@@ -21,7 +23,7 @@ const Section = ({
|
|
|
21
23
|
const sectionId = userId && `${pageId}_${userId}`;
|
|
22
24
|
return /*#__PURE__*/React.createElement("section", _extends({
|
|
23
25
|
id: sectionId,
|
|
24
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName, isSpaced && styleNames.modifierSpaced, padded && 'padded', 'grid'].filter(e => e).join(' '),
|
|
25
27
|
style: style
|
|
26
28
|
}, otherProps), children);
|
|
27
29
|
};
|
|
@@ -38,12 +40,20 @@ Section.propTypes = {
|
|
|
38
40
|
* The React-written, css properties for this element.
|
|
39
41
|
*/
|
|
40
42
|
style: PropTypes.objectOf(PropTypes.string),
|
|
43
|
+
/**
|
|
44
|
+
* Whether the section contains the theme spacing
|
|
45
|
+
*/
|
|
46
|
+
spaced: PropTypes.bool,
|
|
47
|
+
/**
|
|
48
|
+
* Whether the section contains the theme spacing
|
|
49
|
+
*/
|
|
50
|
+
padded: PropTypes.bool,
|
|
41
51
|
/**
|
|
42
52
|
* The children JSX
|
|
43
53
|
*/
|
|
44
54
|
children: PropTypes.node
|
|
45
55
|
};
|
|
46
56
|
Section.defaultProps = {
|
|
47
|
-
|
|
57
|
+
padded: true
|
|
48
58
|
};
|
|
49
59
|
export default Section;
|
|
@@ -2,16 +2,37 @@
|
|
|
2
2
|
/* stylelint-disable selector-max-universal -- exception */
|
|
3
3
|
|
|
4
4
|
@use "@pareto-engineering/bem";
|
|
5
|
-
|
|
5
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
6
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
7
|
|
|
7
8
|
.#{bem.$base}.page {
|
|
8
|
-
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
> .background {
|
|
12
|
+
position: fixed;
|
|
13
|
+
z-index: -1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
> .#{bem.$base}.section {
|
|
9
17
|
position: relative;
|
|
10
18
|
|
|
19
|
+
&.padded {
|
|
20
|
+
padding-left: var(--gap);
|
|
21
|
+
padding-right: var(--gap);
|
|
22
|
+
}
|
|
23
|
+
|
|
11
24
|
> *:not(:last-child) {
|
|
12
25
|
z-index: 1;
|
|
13
26
|
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
27
|
|
|
28
|
+
&.#{bem.$modifier-spaced} {
|
|
29
|
+
padding-bottom: var(--theme-default-section-spacing);
|
|
30
|
+
padding-top: var(--theme-default-section-spacing);
|
|
17
31
|
|
|
32
|
+
@include mixins.media($from: $sm-md) {
|
|
33
|
+
padding-bottom: var(--theme-desktop-section-spacing);
|
|
34
|
+
padding-top: var(--theme-desktop-section-spacing);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { useApp } from "../../a";
|
|
@@ -46,7 +46,7 @@ const SocialMediaButton = ({
|
|
|
46
46
|
...otherProps
|
|
47
47
|
}) => {
|
|
48
48
|
const applicationContext = useApp();
|
|
49
|
-
|
|
49
|
+
useInsertionEffect(() => {
|
|
50
50
|
import("./styles.scss");
|
|
51
51
|
}, []);
|
|
52
52
|
const content = type && defaultsMap[type];
|
|
@@ -9,30 +9,16 @@ $mobile-dimensions: 2.75em;
|
|
|
9
9
|
|
|
10
10
|
.#{bem.$base}.social-media-button {
|
|
11
11
|
appearance: none;
|
|
12
|
-
background: var(--y, var(--heading));
|
|
13
12
|
border: 0;
|
|
14
|
-
border-radius: 3em;
|
|
15
|
-
color: var(--on-y, var(--on-heading));
|
|
16
13
|
cursor: pointer;
|
|
17
14
|
font-family: "icons", sans-serif;
|
|
18
|
-
height: $default-dimensions;
|
|
19
15
|
transition: all .3s;
|
|
20
|
-
width: $default-dimensions;
|
|
21
|
-
|
|
22
|
-
@include mixins.media($to:$sm-md) {
|
|
23
|
-
height: $mobile-dimensions;
|
|
24
|
-
width: $mobile-dimensions;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
background: var(--x);
|
|
29
|
-
}
|
|
30
16
|
|
|
31
17
|
&:focus {
|
|
32
18
|
background: var(--soft-x);
|
|
33
19
|
}
|
|
34
20
|
|
|
35
|
-
&.#{bem.$modifier-
|
|
21
|
+
&.#{bem.$modifier-clear} {
|
|
36
22
|
background: transparent;
|
|
37
23
|
color: var(--y, var(--heading));
|
|
38
24
|
|