@pareto-engineering/design-system 4.0.0-alpha.3 → 4.0.0-alpha.34
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/babel.config.js +24 -16
- 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/Context.js +1 -1
- package/dist/cjs/a/AppContext/ContextProvider.js +19 -17
- package/dist/cjs/a/AppContext/index.js +4 -4
- package/dist/cjs/a/AppContext/useTheme.js +7 -11
- 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 +17 -11
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +24 -17
- package/dist/cjs/a/ContentTree/common/Tree/index.js +1 -1
- package/dist/cjs/a/ContentTree/common/index.js +3 -3
- package/dist/cjs/a/ContentTree/common/useContentTree.js +14 -14
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +10 -11
- package/dist/cjs/a/ContentTree/index.js +1 -1
- package/dist/cjs/a/ContentTree/styles.scss +34 -11
- package/dist/cjs/a/Conversation/Context.js +1 -1
- package/dist/cjs/a/Conversation/Conversation.js +17 -22
- package/dist/cjs/a/Conversation/common/Message/Message.js +22 -19
- package/dist/cjs/a/Conversation/common/Message/index.js +1 -1
- package/dist/cjs/a/Conversation/common/index.js +1 -1
- package/dist/cjs/a/Conversation/index.js +3 -3
- package/dist/cjs/a/Conversation/styles.scss +56 -124
- package/dist/cjs/a/DotInfo/DotInfo.js +12 -16
- package/dist/cjs/a/DotInfo/index.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +7 -7
- package/dist/cjs/a/Figure/index.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +18 -21
- package/dist/cjs/a/HamburgerButton/index.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +20 -27
- package/dist/cjs/a/IconList/common/Item/Item.js +18 -25
- package/dist/cjs/a/IconList/common/Item/index.js +1 -1
- package/dist/cjs/a/IconList/common/index.js +1 -1
- package/dist/cjs/a/IconList/index.js +1 -1
- package/dist/cjs/a/Label/Label.js +20 -12
- package/dist/cjs/a/Label/index.js +1 -1
- package/dist/cjs/a/Label/styles.scss +4 -4
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +12 -16
- package/dist/cjs/a/LoadingCircle/index.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 +10 -14
- package/dist/cjs/a/People/common/Person/Person.js +8 -8
- package/dist/cjs/a/People/common/Person/index.js +1 -1
- package/dist/cjs/a/People/common/index.js +1 -1
- package/dist/cjs/a/People/index.js +1 -1
- package/dist/cjs/a/Popover/Popover.js +12 -12
- package/dist/cjs/a/Popover/index.js +1 -1
- package/dist/cjs/a/Popover/styles.scss +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +12 -16
- package/dist/cjs/a/ProgressBar/index.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +8 -8
- package/dist/cjs/a/Quote/index.js +1 -1
- package/dist/cjs/a/SVG/SVG.js +24 -27
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +9 -11
- package/dist/cjs/a/SVG/common/UseSVG/index.js +1 -1
- package/dist/cjs/a/SVG/common/index.js +1 -1
- package/dist/cjs/a/SVG/index.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +7 -7
- package/dist/cjs/a/SnapScroller/index.js +1 -1
- package/dist/cjs/a/SnapScroller/styles.scss +30 -9
- package/dist/cjs/a/Spinner/Spinner.js +8 -8
- package/dist/cjs/a/Spinner/index.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 +13 -13
- package/dist/cjs/a/Timestamp/index.js +1 -1
- 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 +63 -21
- package/dist/cjs/b/Button/Button.js +38 -28
- 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/index.js +1 -1
- 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 +14 -14
- package/dist/cjs/b/Logo/index.js +1 -1
- package/dist/cjs/b/Page/Context.js +1 -1
- package/dist/cjs/b/Page/Page.js +31 -24
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +42 -44
- package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
- package/dist/cjs/b/Page/common/Section/Section.js +26 -19
- package/dist/cjs/b/Page/common/Section/index.js +1 -1
- package/dist/cjs/b/Page/common/index.js +2 -2
- package/dist/cjs/b/Page/index.js +3 -3
- package/dist/cjs/b/Page/styles.scss +25 -4
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +22 -26
- package/dist/cjs/b/SocialMediaButton/index.js +1 -1
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -15
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +27 -39
- package/dist/cjs/b/ThemeSelector/index.js +1 -1
- package/dist/cjs/b/ThemeSelector/styles.scss +2 -7
- package/dist/cjs/b/Title/Title.js +10 -8
- package/dist/cjs/b/Title/index.js +1 -1
- package/dist/cjs/b/index.js +14 -7
- package/dist/cjs/c/ContentSlides/ContentSlides.js +34 -31
- package/dist/cjs/c/ContentSlides/Context.js +1 -1
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +9 -11
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +7 -7
- package/dist/cjs/c/ContentSlides/common/Navigator/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +5 -7
- package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +6 -6
- package/dist/cjs/c/ContentSlides/common/Slide/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/index.js +4 -4
- package/dist/cjs/c/ContentSlides/index.js +3 -3
- package/dist/cjs/c/ContentSlides/styles.scss +2 -2
- package/dist/cjs/c/Modal/Modal.js +8 -8
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +6 -6
- package/dist/cjs/c/Modal/common/ModalHeader/index.js +1 -1
- package/dist/cjs/c/Modal/common/index.js +1 -1
- package/dist/cjs/c/Modal/index.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +9 -13
- package/dist/cjs/c/Shortener/Shortener.js +11 -11
- package/dist/cjs/c/Shortener/index.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +13 -13
- package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
- package/dist/cjs/c/index.js +5 -5
- package/dist/cjs/f/FormInput/FormInput.js +15 -20
- package/dist/cjs/f/FormInput/index.js +1 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +9 -9
- package/dist/cjs/f/common/Debugger/index.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +9 -9
- package/dist/cjs/f/common/Description/index.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +8 -8
- package/dist/cjs/f/common/Label/index.js +1 -1
- package/dist/cjs/f/common/Label/styles.scss +1 -1
- package/dist/cjs/f/common/index.js +3 -3
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +8 -8
- package/dist/cjs/f/fields/Checkbox/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +30 -25
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +8 -8
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +26 -32
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +26 -31
- package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +22 -24
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +16 -16
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +15 -18
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +25 -29
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/index.js +3 -3
- package/dist/cjs/f/fields/QueryCombobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +13 -11
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +12 -12
- package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +10 -10
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +11 -11
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/common/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +13 -13
- package/dist/cjs/f/fields/SelectInput/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/styles.scss +33 -22
- package/dist/cjs/f/fields/TextInput/TextInput.js +25 -14
- package/dist/cjs/f/fields/TextInput/index.js +1 -1
- package/dist/cjs/f/fields/TextInput/styles.scss +44 -14
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +14 -14
- package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
- package/dist/cjs/f/fields/TextareaInput/styles.scss +7 -5
- package/dist/cjs/f/fields/index.js +9 -9
- package/dist/cjs/f/index.js +3 -3
- package/dist/cjs/form.scss +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +8 -11
- package/dist/cjs/r/SwitchRouteMap/index.js +1 -1
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +14 -17
- package/dist/cjs/r/common/PrivateRoute/index.js +1 -1
- package/dist/cjs/r/common/index.js +1 -1
- package/dist/cjs/r/index.js +2 -2
- package/dist/cjs/test/QueryLoader/QueryLoader.js +6 -4
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +1 -1
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +4 -4
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +1 -1
- package/dist/cjs/test/QueryLoader/common/index.js +1 -1
- package/dist/cjs/test/QueryLoader/index.js +1 -1
- package/dist/cjs/test/index.js +1 -1
- package/dist/cjs/utils/hooks/index.js +2 -2
- package/dist/cjs/utils/hooks/useDynamicPosition.js +24 -24
- package/dist/cjs/utils/hooks/useWindowSize.js +6 -6
- package/dist/cjs/utils/index.js +2 -2
- 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 +1 -1
- 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 +2 -2
- 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/Label/Label.js +2 -2
- package/dist/es/f/common/Label/styles.scss +1 -1
- package/dist/es/f/fields/Checkbox/Checkbox.js +2 -2
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +21 -12
- package/dist/es/f/fields/ChoicesInput/styles.scss +26 -32
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +3 -3
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +3 -3
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +2 -2
- package/dist/es/f/fields/QueryCombobox/styles.scss +13 -11
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +1 -1
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -2
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +3 -3
- package/dist/es/f/fields/SelectInput/SelectInput.js +4 -4
- package/dist/es/f/fields/SelectInput/styles.scss +33 -22
- package/dist/es/f/fields/TextInput/TextInput.js +18 -7
- package/dist/es/f/fields/TextInput/styles.scss +44 -14
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +8 -8
- package/dist/es/f/fields/TextareaInput/styles.scss +7 -5
- package/dist/es/form.scss +1 -1
- package/package.json +17 -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 +2 -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/SelectInput.stories.jsx +7 -0
- package/src/stories/f/TextInput.stories.jsx +11 -4
- 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 +1 -1
- 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 +2 -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/Label/Label.jsx +2 -2
- package/src/ui/f/common/Label/styles.scss +1 -1
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -2
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +16 -9
- package/src/ui/f/fields/ChoicesInput/styles.scss +26 -32
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +3 -3
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +3 -3
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +2 -2
- package/src/ui/f/fields/QueryCombobox/styles.scss +13 -11
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +1 -1
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +3 -3
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +4 -4
- package/src/ui/f/fields/SelectInput/styles.scss +33 -22
- package/src/ui/f/fields/TextInput/TextInput.jsx +25 -12
- package/src/ui/f/fields/TextInput/styles.scss +44 -14
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +10 -10
- package/src/ui/f/fields/TextareaInput/styles.scss +7 -5
- package/src/ui/form.scss +1 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +8572 -2878
package/src/ui/a/Label/Label.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -24,13 +24,15 @@ const Label = ({
|
|
|
24
24
|
color,
|
|
25
25
|
isCompact,
|
|
26
26
|
isGhost,
|
|
27
|
+
as:Wrapper,
|
|
28
|
+
...props
|
|
27
29
|
}) => {
|
|
28
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
29
31
|
import('./styles.scss')
|
|
30
32
|
}, [])
|
|
31
33
|
|
|
32
34
|
return (
|
|
33
|
-
<
|
|
35
|
+
<Wrapper
|
|
34
36
|
id={id}
|
|
35
37
|
className={[
|
|
36
38
|
baseClassName,
|
|
@@ -43,9 +45,10 @@ const Label = ({
|
|
|
43
45
|
.filter((e) => e)
|
|
44
46
|
.join(' ')}
|
|
45
47
|
style={style}
|
|
48
|
+
{...props}
|
|
46
49
|
>
|
|
47
50
|
{children}
|
|
48
|
-
</
|
|
51
|
+
</Wrapper>
|
|
49
52
|
)
|
|
50
53
|
}
|
|
51
54
|
|
|
@@ -75,6 +78,11 @@ Label.propTypes = {
|
|
|
75
78
|
*/
|
|
76
79
|
isCompact:PropTypes.bool,
|
|
77
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The html element to use to display this component.
|
|
83
|
+
*/
|
|
84
|
+
as:PropTypes.string,
|
|
85
|
+
|
|
78
86
|
/**
|
|
79
87
|
* The default font color to display for the label
|
|
80
88
|
*/
|
|
@@ -88,6 +96,7 @@ Label.propTypes = {
|
|
|
88
96
|
|
|
89
97
|
Label.defaultProps = {
|
|
90
98
|
color:'main1',
|
|
99
|
+
as :'span',
|
|
91
100
|
}
|
|
92
101
|
|
|
93
102
|
export default Label
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@use "@pareto-engineering/bem";
|
|
4
4
|
|
|
5
|
-
$default-padding-bottom: .
|
|
6
|
-
$default-padding-side: .
|
|
7
|
-
$default-padding-top: .
|
|
5
|
+
$default-padding-bottom: .6em;
|
|
6
|
+
$default-padding-side: 1.75em;
|
|
7
|
+
$default-padding-top: .75em;
|
|
8
8
|
|
|
9
|
-
$compact-padding: $default-padding-top*.
|
|
9
|
+
$compact-padding: $default-padding-top*.4 $default-padding-side*.4 $default-padding-bottom*.4;
|
|
10
10
|
$default-padding: $default-padding-top $default-padding-side $default-padding-bottom;
|
|
11
11
|
|
|
12
12
|
$default-color: primary;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const LoadingCircle = ({
|
|
|
26
26
|
style,
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import('./styles.scss')
|
|
31
31
|
}, [])
|
|
32
32
|
|
|
@@ -0,0 +1,81 @@
|
|
|
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 = 'meta-card'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* This is the component description.
|
|
18
|
+
*/
|
|
19
|
+
const MetaCard = ({
|
|
20
|
+
id,
|
|
21
|
+
className: userClassName,
|
|
22
|
+
style,
|
|
23
|
+
children,
|
|
24
|
+
hasBackgroundBlur,
|
|
25
|
+
spaced,
|
|
26
|
+
}) => {
|
|
27
|
+
useInsertionEffect(() => {
|
|
28
|
+
import('./styles.scss')
|
|
29
|
+
}, [])
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
id={id}
|
|
34
|
+
className={[
|
|
35
|
+
baseClassName,
|
|
36
|
+
componentClassName,
|
|
37
|
+
userClassName,
|
|
38
|
+
hasBackgroundBlur && styleNames.modifierBlur,
|
|
39
|
+
spaced && styleNames.modifierSpaced,
|
|
40
|
+
]
|
|
41
|
+
.filter((e) => e)
|
|
42
|
+
.join(' ')}
|
|
43
|
+
style={style}
|
|
44
|
+
>
|
|
45
|
+
{children}
|
|
46
|
+
</div>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
MetaCard.propTypes = {
|
|
51
|
+
/**
|
|
52
|
+
* The HTML id for this element
|
|
53
|
+
*/
|
|
54
|
+
id:PropTypes.string,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The HTML class names for this element
|
|
58
|
+
*/
|
|
59
|
+
className:PropTypes.string,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The React-written, css properties for this element.
|
|
63
|
+
*/
|
|
64
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Whether the card has a background blur
|
|
68
|
+
* */
|
|
69
|
+
hasBackgroundBlur:PropTypes.bool,
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Whether to apply a gap to the top and bottom
|
|
73
|
+
* */
|
|
74
|
+
spaced:PropTypes.bool,
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
MetaCard.defaultProps = {
|
|
78
|
+
// someProp:false
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export default MetaCard
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MetaCard } from './MetaCard'
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
/* stylelint-disable selector-max-universal -- exception */
|
|
3
|
+
|
|
4
|
+
@use "@pareto-engineering/bem";
|
|
5
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
6
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
|
+
|
|
8
|
+
$default-padding: var(--spacing-2) 0;
|
|
9
|
+
$default-border-radius: 2.25rem;
|
|
10
|
+
$default-border-color: var(--hard-background-cards);
|
|
11
|
+
$default-background: var(--background-cards-50);
|
|
12
|
+
|
|
13
|
+
$default-blur: var(--theme-default-blur);
|
|
14
|
+
|
|
15
|
+
.#{bem.$base}.meta-card {
|
|
16
|
+
background: $default-background;
|
|
17
|
+
border: 1px solid $default-border-color;
|
|
18
|
+
border-radius: $default-border-radius;
|
|
19
|
+
padding: $default-padding;
|
|
20
|
+
|
|
21
|
+
&.#{bem.$modifier-blur} {
|
|
22
|
+
backdrop-filter: $default-blur;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include mixins.media($to: $sm-md) {
|
|
26
|
+
// Temporary solution
|
|
27
|
+
margin-left: calc((var(--gap)) * -1);
|
|
28
|
+
margin-right: calc((var(--gap)) * -1);
|
|
29
|
+
padding: 0 var(--gap);
|
|
30
|
+
|
|
31
|
+
&.#{bem.$modifier-spaced} {
|
|
32
|
+
padding: var(--gap);
|
|
33
|
+
|
|
34
|
+
> * {
|
|
35
|
+
&:first-child {
|
|
36
|
+
margin-top: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:last-child {
|
|
40
|
+
margin-bottom: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ const People = ({
|
|
|
27
27
|
columnWidth,
|
|
28
28
|
// ...otherProps
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import('./styles.scss')
|
|
32
32
|
}, [])
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useRef,
|
|
4
|
+
import { useRef, useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const Popover = ({
|
|
|
31
31
|
offsetYPx,
|
|
32
32
|
// ...otherProps
|
|
33
33
|
}) => {
|
|
34
|
-
|
|
34
|
+
useInsertionEffect(() => {
|
|
35
35
|
import('./styles.scss')
|
|
36
36
|
}, [])
|
|
37
37
|
|
|
@@ -141,12 +141,12 @@ Popover.propTypes = {
|
|
|
141
141
|
*/
|
|
142
142
|
parentRef:PropTypes.oneOfType([
|
|
143
143
|
PropTypes.func,
|
|
144
|
-
PropTypes.shape({ current: PropTypes.
|
|
144
|
+
PropTypes.shape({ current: PropTypes.node }),
|
|
145
145
|
]),
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
Popover.defaultProps = {
|
|
149
|
-
color :'
|
|
149
|
+
color :'background-near',
|
|
150
150
|
isOpen :false,
|
|
151
151
|
preferredPrimaryOrder :['bottom', 'top', 'right', 'left'],
|
|
152
152
|
preferredSecondaryOrder:['left', 'right', 'bottom', 'top'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const ProgressBar = ({
|
|
|
26
26
|
height,
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import('./styles.scss')
|
|
31
31
|
}, [])
|
|
32
32
|
|
package/src/ui/a/Quote/Quote.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const Quote = ({
|
|
|
26
26
|
color,
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import('./styles.scss')
|
|
31
31
|
}, [])
|
|
32
32
|
|
package/src/ui/a/SVG/SVG.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.3 */
|
|
2
2
|
import * as React from 'react'
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect, useMemo } from 'react'
|
|
4
4
|
import PropTypes from 'prop-types'
|
|
5
5
|
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
@@ -34,7 +34,7 @@ const SVG = ({
|
|
|
34
34
|
animated,
|
|
35
35
|
...otherProps
|
|
36
36
|
}) => {
|
|
37
|
-
|
|
37
|
+
useInsertionEffect(() => {
|
|
38
38
|
import('./styles.scss')
|
|
39
39
|
})
|
|
40
40
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -24,7 +24,7 @@ const SnapScroller = ({
|
|
|
24
24
|
noScrollOnDesktop,
|
|
25
25
|
// ...otherProps
|
|
26
26
|
}) => {
|
|
27
|
-
|
|
27
|
+
useInsertionEffect(() => {
|
|
28
28
|
import('./styles.scss')
|
|
29
29
|
}, [])
|
|
30
30
|
|
|
@@ -5,20 +5,23 @@
|
|
|
5
5
|
@use "@pareto-engineering/styles/src/mixins";
|
|
6
6
|
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
7
|
|
|
8
|
-
$default-spacing:
|
|
8
|
+
$default-spacing: var(--gap);
|
|
9
9
|
|
|
10
10
|
.#{bem.$base}.snap-scroller {
|
|
11
11
|
display: flex;
|
|
12
|
-
|
|
12
|
+
gap: $default-spacing;
|
|
13
|
+
-ms-overflow-style: none;
|
|
13
14
|
overflow-x: auto;
|
|
14
|
-
scroll-padding: calc(
|
|
15
|
+
scroll-padding: calc($default-spacing * 2);
|
|
15
16
|
scroll-snap-type: x mandatory;
|
|
16
17
|
scrollbar-width: none;
|
|
17
18
|
|
|
19
|
+
&::-webkit-scrollbar {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
>* {
|
|
20
24
|
display: inline-block;
|
|
21
|
-
margin-right: $default-spacing;
|
|
22
25
|
scroll-snap-align: start;
|
|
23
26
|
|
|
24
27
|
&:first-child {
|
|
@@ -26,15 +29,33 @@ $default-spacing:var(--spacing, var(--u));
|
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
|
|
32
|
+
&::after {
|
|
33
|
+
content: "";
|
|
34
|
+
min-width: calc($default-spacing / 2);
|
|
35
|
+
}
|
|
29
36
|
|
|
30
|
-
@include mixins.media($from
|
|
37
|
+
@include mixins.media($from: $sm-md) {
|
|
31
38
|
&.desktop-no-scroll {
|
|
32
39
|
overflow: auto;
|
|
33
|
-
-ms-overflow-style: unset;
|
|
40
|
+
-ms-overflow-style: unset;
|
|
34
41
|
scroll-snap-type: none;
|
|
35
42
|
scrollbar-width: unset;
|
|
43
|
+
|
|
44
|
+
&::after {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
>* {
|
|
49
|
+
min-width: unset;
|
|
50
|
+
|
|
51
|
+
&:first-child {
|
|
52
|
+
margin-left: unset;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:last-child {
|
|
56
|
+
margin-right: unset;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
36
59
|
}
|
|
37
60
|
}
|
|
38
61
|
}
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ const Spinner = ({
|
|
|
23
23
|
color,
|
|
24
24
|
// ...otherProps
|
|
25
25
|
}) => {
|
|
26
|
-
|
|
26
|
+
useInsertionEffect(() => {
|
|
27
27
|
import('./styles.scss')
|
|
28
28
|
}, [])
|
|
29
29
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
3
|
+
import { useInsertionEffect } from 'react'
|
|
4
|
+
|
|
5
|
+
import PropTypes from 'prop-types'
|
|
6
|
+
|
|
7
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
8
|
+
|
|
9
|
+
// Local Definitions
|
|
10
|
+
|
|
11
|
+
const baseClassName = styleNames.base
|
|
12
|
+
|
|
13
|
+
const componentClassName = 'steps'
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* This is the component description.
|
|
17
|
+
*/
|
|
18
|
+
const Steps = ({
|
|
19
|
+
id,
|
|
20
|
+
className:userClassName,
|
|
21
|
+
style,
|
|
22
|
+
items,
|
|
23
|
+
title,
|
|
24
|
+
}) => {
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
|
+
import('./styles.scss')
|
|
27
|
+
}, [])
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<div
|
|
31
|
+
id={id}
|
|
32
|
+
className={[
|
|
33
|
+
baseClassName,
|
|
34
|
+
componentClassName,
|
|
35
|
+
userClassName,
|
|
36
|
+
'grid',
|
|
37
|
+
]
|
|
38
|
+
.filter((e) => e)
|
|
39
|
+
.join(' ')}
|
|
40
|
+
style={style}
|
|
41
|
+
>
|
|
42
|
+
{title && (
|
|
43
|
+
<p className="title h4">
|
|
44
|
+
{title}
|
|
45
|
+
</p>
|
|
46
|
+
)}
|
|
47
|
+
{items.map((item, i) => (
|
|
48
|
+
<>
|
|
49
|
+
<div className=" number h3 start-1 span-2 md-start-1 md-span-2"><p>{i + 1}</p></div>
|
|
50
|
+
<div className=" description"><p>{item}</p></div>
|
|
51
|
+
</>
|
|
52
|
+
))}
|
|
53
|
+
</div>
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Steps.propTypes = {
|
|
58
|
+
/**
|
|
59
|
+
* The HTML id for this element
|
|
60
|
+
*/
|
|
61
|
+
id:PropTypes.string,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The HTML class names for this element
|
|
65
|
+
*/
|
|
66
|
+
className:PropTypes.string,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The React-written, css properties for this element.
|
|
70
|
+
*/
|
|
71
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The steps to iterate
|
|
75
|
+
*/
|
|
76
|
+
items:PropTypes.arrayOf(PropTypes.shape({
|
|
77
|
+
title :PropTypes.string,
|
|
78
|
+
description:PropTypes.node,
|
|
79
|
+
})).isRequired,
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The title to pass to the component
|
|
83
|
+
*/
|
|
84
|
+
title:PropTypes.string,
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export default Steps
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextSteps } from './TextSteps'
|
|
@@ -0,0 +1,29 @@
|
|
|
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-padding: 1em;
|
|
8
|
+
|
|
9
|
+
.#{bem.$base}.steps {
|
|
10
|
+
grid-column: 1 / -1;
|
|
11
|
+
grid-template-columns: repeat(var(--columns), 1fr);
|
|
12
|
+
padding: $default-padding 0;
|
|
13
|
+
|
|
14
|
+
.description {
|
|
15
|
+
grid-column: 2 / -1;
|
|
16
|
+
|
|
17
|
+
> p {
|
|
18
|
+
color: var(--metadata);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.number {
|
|
23
|
+
grid-column: 1 / span 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.title {
|
|
27
|
+
grid-column: 1 / -1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
useInsertionEffect, useMemo, useCallback, useState,
|
|
6
6
|
} from 'react'
|
|
7
7
|
|
|
8
8
|
import PropTypes from 'prop-types'
|
|
@@ -36,7 +36,7 @@ const Timestamp = ({
|
|
|
36
36
|
// ...otherProps
|
|
37
37
|
as:Element,
|
|
38
38
|
}) => {
|
|
39
|
-
|
|
39
|
+
useInsertionEffect(() => {
|
|
40
40
|
import('./styles.scss')
|
|
41
41
|
}, [])
|
|
42
42
|
|
|
@@ -0,0 +1,88 @@
|
|
|
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 = 'tip'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* This is the component description.
|
|
18
|
+
*/
|
|
19
|
+
const Tip = ({
|
|
20
|
+
id,
|
|
21
|
+
className:userClassName,
|
|
22
|
+
style,
|
|
23
|
+
children,
|
|
24
|
+
as:Wrapper,
|
|
25
|
+
color,
|
|
26
|
+
// ...otherProps
|
|
27
|
+
}) => {
|
|
28
|
+
useInsertionEffect(() => {
|
|
29
|
+
import('./styles.scss')
|
|
30
|
+
}, [])
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Wrapper
|
|
34
|
+
id={id}
|
|
35
|
+
className={[
|
|
36
|
+
baseClassName,
|
|
37
|
+
componentClassName,
|
|
38
|
+
userClassName,
|
|
39
|
+
`x-${color}`,
|
|
40
|
+
]
|
|
41
|
+
.filter((e) => e)
|
|
42
|
+
.join(' ')}
|
|
43
|
+
style={style}
|
|
44
|
+
// {...otherProps}
|
|
45
|
+
>
|
|
46
|
+
{children}
|
|
47
|
+
</Wrapper>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
Tip.propTypes = {
|
|
52
|
+
/**
|
|
53
|
+
* The HTML id for this element
|
|
54
|
+
*/
|
|
55
|
+
id:PropTypes.string,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The HTML class names for this element
|
|
59
|
+
*/
|
|
60
|
+
className:PropTypes.string,
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The React-written, css properties for this element.
|
|
64
|
+
*/
|
|
65
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The children jsx
|
|
69
|
+
*/
|
|
70
|
+
children:PropTypes.node.isRequired,
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The color of the bar
|
|
74
|
+
*/
|
|
75
|
+
color:PropTypes.string,
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The wrapper html type
|
|
79
|
+
*/
|
|
80
|
+
as:PropTypes.string,
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
Tip.defaultProps = {
|
|
84
|
+
as :'p',
|
|
85
|
+
color:'main',
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export default Tip
|