@pareto-engineering/design-system 3.0.0-alpha.29 → 4.0.0-alpha.13
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/.storybook/main.js +25 -63
- package/.storybook/preview.js +26 -9
- package/.storybook/webpackFinal.js +68 -0
- package/babel.config.js +25 -48
- package/dist/cjs/a/{AnimatedCounter/AnimatedCounter.js → AnimatedBlobs/AnimatedBlobs.js} +41 -56
- 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 +56 -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 -15
- package/dist/cjs/a/AppContext/index.js +4 -4
- package/dist/cjs/a/AppContext/useTheme.js +7 -7
- package/dist/cjs/a/ContentTree/ContentTree.js +8 -8
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +12 -12
- 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 +20 -20
- package/dist/cjs/a/Conversation/Context.js +1 -1
- package/dist/cjs/a/Conversation/Conversation.js +7 -7
- package/dist/cjs/a/Conversation/common/Message/Message.js +8 -8
- 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 +1 -0
- package/dist/cjs/a/DotInfo/DotInfo.js +11 -15
- package/dist/cjs/a/DotInfo/index.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +6 -6
- package/dist/cjs/a/Figure/index.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +17 -20
- package/dist/cjs/a/HamburgerButton/index.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +19 -26
- package/dist/cjs/a/IconList/common/Item/Item.js +17 -24
- 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 +19 -11
- package/dist/cjs/a/Label/index.js +1 -1
- package/dist/cjs/a/Label/styles.scss +22 -21
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +11 -15
- package/dist/cjs/a/LoadingCircle/index.js +1 -1
- package/dist/cjs/a/LoadingCircle/styles.scss +35 -37
- package/dist/cjs/a/MetaCard/MetaCard.js +60 -0
- package/dist/cjs/a/MetaCard/index.js +13 -0
- package/dist/cjs/a/MetaCard/styles.scss +30 -0
- package/dist/cjs/a/People/People.js +9 -13
- package/dist/cjs/a/People/common/Person/Person.js +7 -7
- 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/People/styles.scss +4 -4
- package/dist/cjs/a/Popover/Popover.js +10 -10
- package/dist/cjs/a/Popover/index.js +1 -1
- package/dist/cjs/a/Popover/styles.scss +4 -3
- package/dist/cjs/a/ProgressBar/ProgressBar.js +11 -15
- package/dist/cjs/a/ProgressBar/index.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +7 -7
- package/dist/cjs/a/Quote/index.js +1 -1
- package/dist/cjs/a/Quote/styles.scss +41 -38
- package/dist/cjs/a/SVG/SVG.js +23 -26
- 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 +6 -6
- package/dist/cjs/a/SnapScroller/index.js +1 -1
- package/dist/cjs/a/SnapScroller/styles.scss +22 -12
- package/dist/cjs/a/Spinner/Spinner.js +7 -7
- 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 +12 -12
- 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 +53 -25
- package/dist/cjs/b/Button/Button.js +28 -26
- 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 +9 -2
- 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 +42 -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 +13 -13
- package/dist/cjs/b/Logo/index.js +1 -1
- package/dist/cjs/b/Logo/styles.scss +4 -2
- package/dist/cjs/b/Page/Context.js +1 -1
- package/dist/cjs/b/Page/Page.js +25 -21
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +41 -45
- package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
- package/dist/cjs/b/Page/common/Section/Section.js +25 -18
- 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 +29 -7
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +21 -25
- package/dist/cjs/b/SocialMediaButton/index.js +1 -1
- package/dist/cjs/b/SocialMediaButton/styles.scss +2 -16
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +9 -9
- package/dist/cjs/b/ThemeSelector/index.js +1 -1
- package/dist/cjs/b/Title/Title.js +9 -6
- package/dist/cjs/b/Title/index.js +1 -1
- package/dist/cjs/b/index.js +14 -7
- package/dist/cjs/c/ContentSlides/ContentSlides.js +33 -30
- package/dist/cjs/c/ContentSlides/Context.js +1 -1
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +8 -8
- 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 -5
- 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 -4
- package/dist/cjs/c/Modal/Modal.js +6 -6
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +5 -5
- 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 -6
- package/dist/cjs/c/Shortener/Shortener.js +10 -10
- package/dist/cjs/c/Shortener/index.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +12 -12
- package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +3 -3
- package/dist/cjs/c/index.js +5 -5
- package/dist/cjs/f/FormInput/FormInput.js +14 -17
- package/dist/cjs/f/FormInput/index.js +1 -1
- package/dist/cjs/f/FormInput/styles.scss +4 -4
- package/dist/cjs/f/common/Debugger/Debugger.js +8 -8
- package/dist/cjs/f/common/Debugger/index.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +8 -8
- package/dist/cjs/f/common/Description/index.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +7 -7
- 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 +7 -7
- package/dist/cjs/f/fields/Checkbox/index.js +1 -1
- package/dist/cjs/f/fields/Checkbox/styles.scss +9 -8
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +26 -22
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +7 -7
- 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 +23 -35
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +25 -30
- package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +20 -22
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +12 -12
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +14 -17
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +22 -26
- 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 +60 -59
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +11 -11
- package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +9 -9
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +7 -7
- 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/RatingsInput/styles.scss +8 -9
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +12 -12
- package/dist/cjs/f/fields/SelectInput/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/styles.scss +33 -23
- package/dist/cjs/f/fields/TextInput/TextInput.js +12 -10
- package/dist/cjs/f/fields/TextInput/index.js +1 -1
- package/dist/cjs/f/fields/TextInput/styles.scss +27 -18
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +8 -8
- package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
- package/dist/cjs/f/fields/TextareaInput/styles.scss +7 -6
- package/dist/cjs/f/fields/index.js +9 -9
- package/dist/cjs/f/index.js +3 -3
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +7 -10
- package/dist/cjs/r/SwitchRouteMap/index.js +1 -1
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +13 -16
- 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 +4 -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 +48 -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/ContextProvider.js +7 -8
- package/dist/es/a/AppContext/useTheme.js +1 -2
- package/dist/es/a/ContentTree/ContentTree.js +11 -12
- package/dist/es/a/ContentTree/common/Tree/Tree.js +8 -9
- package/dist/es/a/ContentTree/styles.scss +20 -20
- package/dist/es/a/Conversation/Conversation.js +13 -14
- package/dist/es/a/Conversation/common/Message/Message.js +12 -13
- package/dist/es/a/Conversation/styles.scss +1 -0
- package/dist/es/a/DotInfo/DotInfo.js +13 -14
- package/dist/es/a/Figure/Figure.js +10 -11
- package/dist/es/a/HamburgerButton/HamburgerButton.js +12 -13
- package/dist/es/a/IconList/IconList.js +11 -12
- package/dist/es/a/IconList/common/Item/Item.js +17 -20
- package/dist/es/a/Label/Label.js +22 -15
- package/dist/es/a/Label/styles.scss +22 -21
- package/dist/es/a/LoadingCircle/LoadingCircle.js +12 -13
- package/dist/es/a/LoadingCircle/styles.scss +35 -37
- package/dist/es/a/MetaCard/MetaCard.js +52 -0
- package/dist/es/a/MetaCard/index.js +1 -0
- package/dist/es/a/MetaCard/styles.scss +30 -0
- package/dist/es/a/People/People.js +11 -12
- package/dist/es/a/People/common/Person/Person.js +24 -27
- package/dist/es/a/People/styles.scss +4 -4
- package/dist/es/a/Popover/Popover.js +17 -18
- package/dist/es/a/Popover/styles.scss +4 -3
- package/dist/es/a/ProgressBar/ProgressBar.js +12 -13
- package/dist/es/a/Quote/Quote.js +12 -13
- package/dist/es/a/Quote/styles.scss +41 -38
- package/dist/es/a/SVG/SVG.js +19 -20
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +19 -22
- package/dist/es/a/SnapScroller/SnapScroller.js +10 -11
- package/dist/es/a/SnapScroller/styles.scss +22 -12
- package/dist/es/a/Spinner/Spinner.js +9 -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/Timestamp/Timestamp.js +16 -17
- 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 +6 -2
- package/dist/es/b/Button/Button.js +25 -20
- 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 +9 -2
- 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 +42 -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 +14 -15
- package/dist/es/b/Logo/styles.scss +4 -2
- package/dist/es/b/Page/Page.js +21 -15
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +9 -11
- package/dist/es/b/Page/common/Section/Section.js +19 -10
- package/dist/es/b/Page/styles.scss +29 -7
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +13 -14
- package/dist/es/b/SocialMediaButton/styles.scss +2 -16
- package/dist/es/b/ThemeSelector/ThemeSelector.js +10 -11
- package/dist/es/b/Title/Title.js +22 -19
- package/dist/es/b/index.js +2 -1
- package/dist/es/c/ContentSlides/ContentSlides.js +15 -18
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +11 -12
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +14 -15
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +8 -9
- package/dist/es/c/ContentSlides/common/Slide/Slide.js +8 -9
- package/dist/es/c/ContentSlides/styles.scss +2 -4
- package/dist/es/c/Modal/Modal.js +12 -13
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +20 -23
- package/dist/es/c/Modal/styles.scss +9 -6
- package/dist/es/c/Shortener/Shortener.js +13 -14
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +11 -12
- package/dist/es/c/SocialMediaShareButton/styles.scss +3 -3
- package/dist/es/f/FormInput/FormInput.js +9 -10
- package/dist/es/f/FormInput/styles.scss +4 -4
- package/dist/es/f/common/Debugger/Debugger.js +9 -10
- package/dist/es/f/common/Description/Description.js +11 -12
- package/dist/es/f/common/Label/Label.js +13 -14
- package/dist/es/f/common/Label/styles.scss +1 -1
- package/dist/es/f/fields/Checkbox/Checkbox.js +13 -14
- package/dist/es/f/fields/Checkbox/styles.scss +9 -8
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +33 -26
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +13 -14
- package/dist/es/f/fields/ChoicesInput/styles.scss +23 -35
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +16 -20
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +29 -33
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +22 -24
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +22 -25
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +24 -26
- package/dist/es/f/fields/QueryCombobox/styles.scss +60 -59
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +24 -28
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +18 -19
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +15 -16
- package/dist/es/f/fields/RatingsInput/styles.scss +8 -9
- package/dist/es/f/fields/SelectInput/SelectInput.js +20 -21
- package/dist/es/f/fields/SelectInput/styles.scss +33 -23
- package/dist/es/f/fields/TextInput/TextInput.js +24 -23
- package/dist/es/f/fields/TextInput/styles.scss +27 -18
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +22 -23
- package/dist/es/f/fields/TextareaInput/styles.scss +7 -6
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +15 -21
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +6 -7
- package/dist/es/test/QueryLoader/QueryLoader.js +1 -1
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +5 -6
- package/dist/es/utils/hooks/useDynamicPosition.js +9 -10
- package/dist/es/utils/hooks/useWindowSize.js +1 -2
- package/jest.config.js +5 -5
- package/package.json +44 -82
- package/src/stories/a/MetaCard.stories.jsx +35 -0
- 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} +15 -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 +21 -4
- package/src/stories/colors.js +6 -6
- package/src/stories/f/SelectInput.stories.jsx +7 -0
- package/src/stories/f/TextInput.stories.jsx +4 -4
- package/src/stories/original/Button.jsx +55 -0
- package/src/stories/original/Button.stories.js +39 -0
- package/src/stories/original/Header.jsx +64 -0
- package/src/stories/original/Header.stories.js +22 -0
- package/src/stories/original/Introduction.mdx +211 -0
- package/src/stories/original/Page.jsx +76 -0
- package/src/stories/original/Page.stories.js +26 -0
- package/src/stories/original/assets/code-brackets.svg +1 -0
- package/src/stories/original/assets/colors.svg +1 -0
- package/src/stories/original/assets/comments.svg +1 -0
- package/src/stories/original/assets/direction.svg +1 -0
- package/src/stories/original/assets/flow.svg +1 -0
- package/src/stories/original/assets/plugin.svg +1 -0
- package/src/stories/original/assets/repo.svg +1 -0
- package/src/stories/original/assets/stackalt.svg +1 -0
- package/src/stories/original/button.css +30 -0
- package/src/stories/original/header.css +32 -0
- package/src/stories/original/page.css +69 -0
- 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 +69 -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/ContentTree/ContentTree.jsx +3 -3
- package/src/ui/a/ContentTree/styles.scss +20 -20
- package/src/ui/a/Conversation/Conversation.jsx +2 -2
- package/src/ui/a/Conversation/styles.scss +1 -0
- 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 +22 -21
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
- package/src/ui/a/LoadingCircle/styles.scss +35 -37
- package/src/ui/a/MetaCard/MetaCard.jsx +74 -0
- package/src/ui/a/MetaCard/index.js +1 -0
- package/src/ui/a/MetaCard/styles.scss +30 -0
- package/src/ui/a/People/People.jsx +2 -2
- package/src/ui/a/People/styles.scss +4 -4
- package/src/ui/a/Popover/Popover.jsx +3 -3
- package/src/ui/a/Popover/styles.scss +4 -3
- package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
- package/src/ui/a/Quote/Quote.jsx +2 -2
- package/src/ui/a/Quote/styles.scss +41 -38
- 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 +22 -12
- 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 +5 -1
- package/src/ui/b/Button/Button.jsx +14 -5
- 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 +9 -2
- 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 +42 -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/Logo/styles.scss +4 -2
- package/src/ui/b/Page/Page.jsx +9 -3
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +1 -1
- package/src/ui/b/Page/common/Section/Section.jsx +16 -1
- package/src/ui/b/Page/styles.scss +29 -7
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
- package/src/ui/b/SocialMediaButton/styles.scss +2 -16
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
- 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/styles.scss +2 -4
- package/src/ui/c/Modal/Modal.jsx +2 -2
- package/src/ui/c/Modal/styles.scss +9 -6
- package/src/ui/c/Shortener/Shortener.jsx +2 -2
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
- package/src/ui/c/SocialMediaShareButton/styles.scss +3 -3
- package/src/ui/f/FormInput/FormInput.jsx +2 -2
- package/src/ui/f/FormInput/styles.scss +4 -4
- 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/Checkbox/styles.scss +9 -8
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +12 -7
- package/src/ui/f/fields/ChoicesInput/styles.scss +23 -35
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -2
- package/src/ui/f/fields/QueryCombobox/styles.scss +60 -59
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
- package/src/ui/f/fields/RatingsInput/styles.scss +8 -9
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +4 -4
- package/src/ui/f/fields/SelectInput/styles.scss +33 -23
- package/src/ui/f/fields/TextInput/TextInput.jsx +13 -11
- package/src/ui/f/fields/TextInput/styles.scss +27 -18
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
- package/src/ui/f/fields/TextareaInput/styles.scss +7 -6
- package/src/ui/test/QueryLoader/QueryLoader.jsx +1 -1
- package/{src → tests}/__snapshots__/Storyshots.test.js.snap +3426 -1617
- package/tests/staticStub.js +1 -0
- package/.storybook/manager-head.html +0 -6
- package/.storybook/preview-head.html +0 -5
- package/README.md +0 -1
- package/build-storybook.log +0 -2978
- package/config/CSSStub.js +0 -1
- package/dist/cjs/a/AnimatedCounter/index.js +0 -13
- package/dist/cjs/a/AnimatedCounter/styles.scss +0 -16
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +0 -98
- package/dist/es/a/AnimatedCounter/index.js +0 -2
- package/dist/es/a/AnimatedCounter/styles.scss +0 -16
- package/postcss.config.js +0 -13
- package/relay.config.js +0 -12
- package/src/assets/images/Ellipse1.png +0 -0
- package/src/assets/images/Ellipse2.png +0 -0
- package/src/assets/images/Fundraising.svg +0 -40
- package/src/assets/images/ParetoSupport.svg +0 -190
- package/src/assets/images/ParetoWorld.svg +0 -207
- package/src/assets/images/Vector.png +0 -0
- package/src/assets/images/email-attach.svg +0 -1
- package/src/assets/images/email-delete.svg +0 -1
- package/src/assets/images/favicon.png +0 -0
- package/src/assets/images/onboarding/focus-on-strategic-work.webp +0 -0
- package/src/assets/images/onboarding/launch-project.webp +0 -0
- package/src/assets/images/onboarding/meet-pareto-partner.webp +0 -0
- package/src/assets/images/quality.png +0 -0
- package/src/assets/images/sprite.svg +0 -253
- package/src/assets/images/test +0 -1
- package/src/local.scss +0 -16
- package/src/stories/a/AnimatedCounter.stories.jsx +0 -34
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +0 -118
- package/src/ui/a/AnimatedCounter/index.js +0 -2
- package/src/ui/a/AnimatedCounter/styles.scss +0 -16
- /package/{src → tests}/Storyshots.test.js +0 -0
- /package/{config → tests}/global-setup.js +0 -0
- /package/{config → tests}/test-setup.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect, useMemo, useCallback, useState } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { format, differenceInDays, formatDistance, formatRelative } from 'date-fns';
|
|
@@ -13,22 +13,21 @@ const componentClassName = 'timestamp';
|
|
|
13
13
|
/**
|
|
14
14
|
* This is the component description.
|
|
15
15
|
*/
|
|
16
|
-
const Timestamp =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
useLayoutEffect(() => {
|
|
16
|
+
const Timestamp = ({
|
|
17
|
+
id,
|
|
18
|
+
className: userClassName,
|
|
19
|
+
style,
|
|
20
|
+
time,
|
|
21
|
+
prefix,
|
|
22
|
+
enabledFormats,
|
|
23
|
+
distanceMaxDays,
|
|
24
|
+
relativeMaxDays,
|
|
25
|
+
dateFormat,
|
|
26
|
+
locale,
|
|
27
|
+
// ...otherProps
|
|
28
|
+
as: Element
|
|
29
|
+
}) => {
|
|
30
|
+
useInsertionEffect(() => {
|
|
32
31
|
import("./styles.scss");
|
|
33
32
|
}, []);
|
|
34
33
|
const [currentDisplay, setCurrentDisplay] = useState(enabledFormats[0]);
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
|
|
7
|
+
// Local Definitions
|
|
8
|
+
|
|
9
|
+
const baseClassName = styleNames.base;
|
|
10
|
+
const componentClassName = 'tip';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* This is the component description.
|
|
14
|
+
*/
|
|
15
|
+
const Tip = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
children,
|
|
20
|
+
as: Wrapper,
|
|
21
|
+
color
|
|
22
|
+
// ...otherProps
|
|
23
|
+
}) => {
|
|
24
|
+
useInsertionEffect(() => {
|
|
25
|
+
import("./styles.scss");
|
|
26
|
+
}, []);
|
|
27
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
28
|
+
id: id,
|
|
29
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
|
|
30
|
+
style: style
|
|
31
|
+
// {...otherProps}
|
|
32
|
+
}, children);
|
|
33
|
+
};
|
|
34
|
+
Tip.propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* The HTML id for this element
|
|
37
|
+
*/
|
|
38
|
+
id: PropTypes.string,
|
|
39
|
+
/**
|
|
40
|
+
* The HTML class names for this element
|
|
41
|
+
*/
|
|
42
|
+
className: PropTypes.string,
|
|
43
|
+
/**
|
|
44
|
+
* The React-written, css properties for this element.
|
|
45
|
+
*/
|
|
46
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
47
|
+
/**
|
|
48
|
+
* The children jsx
|
|
49
|
+
*/
|
|
50
|
+
children: PropTypes.node.isRequired,
|
|
51
|
+
/**
|
|
52
|
+
* The color of the bar
|
|
53
|
+
*/
|
|
54
|
+
color: PropTypes.string,
|
|
55
|
+
/**
|
|
56
|
+
* The wrapper html type
|
|
57
|
+
*/
|
|
58
|
+
as: PropTypes.string
|
|
59
|
+
};
|
|
60
|
+
Tip.defaultProps = {
|
|
61
|
+
as: 'p',
|
|
62
|
+
color: 'main'
|
|
63
|
+
};
|
|
64
|
+
export default Tip;
|
|
@@ -0,0 +1,22 @@
|
|
|
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-bar-width: 2px;
|
|
8
|
+
$default-padding: 1em;
|
|
9
|
+
|
|
10
|
+
.#{bem.$base}.tip {
|
|
11
|
+
padding-left: $default-padding;
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
background: var(--x);
|
|
16
|
+
content: "";
|
|
17
|
+
height: 100%;
|
|
18
|
+
left: 0;
|
|
19
|
+
position: absolute;
|
|
20
|
+
width: $default-bar-width;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/dist/es/a/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { AnimatedCounter } from "./AnimatedCounter";
|
|
2
1
|
export { AppContext, AppContextProvider, useApp, useTheme } from "./AppContext";
|
|
3
2
|
export { ContentTree } from "./ContentTree";
|
|
4
3
|
export { Conversation } from "./Conversation";
|
|
@@ -15,4 +14,9 @@ export { Quote } from "./Quote";
|
|
|
15
14
|
export { SVG } from "./SVG";
|
|
16
15
|
export { SnapScroller } from "./SnapScroller";
|
|
17
16
|
export { Spinner } from "./Spinner";
|
|
18
|
-
export { Timestamp } from "./Timestamp";
|
|
17
|
+
export { Timestamp } from "./Timestamp";
|
|
18
|
+
export { MetaCard } from "./MetaCard";
|
|
19
|
+
export { AnimatedBlobs } from "./AnimatedBlobs";
|
|
20
|
+
export { Tip } from "./Tip";
|
|
21
|
+
export { AnimatedGradient } from "./AnimatedGradient";
|
|
22
|
+
export { TextSteps } from "./TextSteps";
|
|
@@ -1,38 +1,38 @@
|
|
|
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 0.2.4 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
|
|
7
7
|
// Package-level Imports
|
|
8
8
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
9
9
|
import { LoadingCircle } from "../..";
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
import { Group } from "./common";
|
|
11
|
+
import "./styles.scss";
|
|
12
12
|
|
|
13
13
|
// Helper Definition
|
|
14
14
|
const baseClassName = styleNames.base;
|
|
15
15
|
const componentClassName = 'button';
|
|
16
|
-
const Button =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
const Button = ({
|
|
17
|
+
id,
|
|
18
|
+
className: userClassName,
|
|
19
|
+
style,
|
|
20
|
+
children,
|
|
21
|
+
isLoading,
|
|
22
|
+
color,
|
|
23
|
+
isCompact,
|
|
24
|
+
isGhost,
|
|
25
|
+
isSimple,
|
|
26
|
+
isGradient,
|
|
27
|
+
arrowDirection,
|
|
28
|
+
...otherProps
|
|
29
|
+
}) => {
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import("./styles.scss");
|
|
32
32
|
}, []);
|
|
33
33
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
34
34
|
id: id,
|
|
35
|
-
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isGhost && styleNames.modifierGhost, isCompact && styleNames.modifierCompact, isSimple && styleNames.modifierSimple, arrowDirection && `arrow-${arrowDirection}`].filter(e => e).join(' '),
|
|
35
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isGhost && styleNames.modifierGhost, isCompact && styleNames.modifierCompact, isSimple && styleNames.modifierSimple, isGradient && styleNames.modifierGradient, arrowDirection && `arrow-${arrowDirection}`].filter(e => e).join(' '),
|
|
36
36
|
style: style,
|
|
37
37
|
type: "button"
|
|
38
38
|
}, otherProps), isLoading ? /*#__PURE__*/React.createElement(LoadingCircle, {
|
|
@@ -71,6 +71,10 @@ Button.propTypes = {
|
|
|
71
71
|
* Whether the button is simple (no borders, only text)
|
|
72
72
|
*/
|
|
73
73
|
isSimple: PropTypes.bool,
|
|
74
|
+
/**
|
|
75
|
+
* Should this button have a gradient
|
|
76
|
+
*/
|
|
77
|
+
isGradient: PropTypes.bool,
|
|
74
78
|
/**
|
|
75
79
|
* The button color
|
|
76
80
|
*/
|
|
@@ -85,6 +89,7 @@ Button.propTypes = {
|
|
|
85
89
|
arrowDirection: PropTypes.string
|
|
86
90
|
};
|
|
87
91
|
Button.defaultProps = {
|
|
88
|
-
color: '
|
|
92
|
+
color: 'main'
|
|
89
93
|
};
|
|
94
|
+
Button.Group = Group;
|
|
90
95
|
export default Button;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
|
|
8
|
+
// Local Definitions
|
|
9
|
+
|
|
10
|
+
const baseClassName = styleNames.base;
|
|
11
|
+
const componentClassName = 'button-group';
|
|
12
|
+
const Group = ({
|
|
13
|
+
id,
|
|
14
|
+
className: userClassName,
|
|
15
|
+
style,
|
|
16
|
+
children,
|
|
17
|
+
...otherProps
|
|
18
|
+
}) => {
|
|
19
|
+
useInsertionEffect(() => {
|
|
20
|
+
import("./styles.scss");
|
|
21
|
+
}, []);
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
23
|
+
id: id,
|
|
24
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
25
|
+
style: style
|
|
26
|
+
}, otherProps), children);
|
|
27
|
+
};
|
|
28
|
+
Group.propTypes = {
|
|
29
|
+
/**
|
|
30
|
+
* The HTML id for this element
|
|
31
|
+
*/
|
|
32
|
+
id: PropTypes.string,
|
|
33
|
+
/**
|
|
34
|
+
* The HTML class names for this element
|
|
35
|
+
*/
|
|
36
|
+
className: PropTypes.string,
|
|
37
|
+
/**
|
|
38
|
+
* The React-written, css properties for this element.
|
|
39
|
+
*/
|
|
40
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
41
|
+
/**
|
|
42
|
+
* The children JSX
|
|
43
|
+
*/
|
|
44
|
+
children: PropTypes.node
|
|
45
|
+
};
|
|
46
|
+
Group.defaultProps = {
|
|
47
|
+
// type:'snap-scroller',
|
|
48
|
+
};
|
|
49
|
+
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";
|
|
@@ -16,14 +16,15 @@ $default-animation-time: .31s;
|
|
|
16
16
|
border-radius: $default-border-radius;
|
|
17
17
|
color: var(--on-x, var(--on-#{$default-color}));
|
|
18
18
|
display: inline-flex;
|
|
19
|
-
font-family:
|
|
19
|
+
font-family: "paragraph", sans-serif;
|
|
20
20
|
font-weight: 400;
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
padding: $default-padding;
|
|
23
|
-
transition: all .25s;
|
|
23
|
+
transition: all .25s;//var(--theme-default-paragraph);
|
|
24
24
|
|
|
25
25
|
&.arrow-right {
|
|
26
26
|
&::after {
|
|
27
|
+
align-self: center;
|
|
27
28
|
content: "-->";
|
|
28
29
|
margin-left: $default-margin;
|
|
29
30
|
vertical-align: middle;
|
|
@@ -39,6 +40,7 @@ $default-animation-time: .31s;
|
|
|
39
40
|
|
|
40
41
|
&.arrow-left {
|
|
41
42
|
&::before {
|
|
43
|
+
align-self: center;
|
|
42
44
|
content: "<--";
|
|
43
45
|
margin-right: $default-margin;
|
|
44
46
|
vertical-align: middle;
|
|
@@ -64,6 +66,11 @@ $default-animation-time: .31s;
|
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
68
|
|
|
69
|
+
&.#{bem.$modifier-gradient} {
|
|
70
|
+
background: linear-gradient(to left, var(--soft-x), var(--hard-x) 60%);
|
|
71
|
+
transition: unset;
|
|
72
|
+
}
|
|
73
|
+
|
|
67
74
|
&.#{bem.$modifier-compact} {
|
|
68
75
|
padding: $compact-padding;
|
|
69
76
|
}
|
|
@@ -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' ? {
|
|
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,42 @@
|
|
|
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
|
+
> .#{bem.$base}.card {
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.vertical-flexbox {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include mixins.media($from: $sm-md) {
|
|
27
|
+
&.desktop-grid {
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-template-columns: repeat(var(--columns), 1fr);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.snap-scroller {
|
|
33
|
+
margin-left: unset;
|
|
34
|
+
margin-right: unset;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.desktop-vertical-flexbox {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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";
|
|
@@ -38,20 +38,19 @@ const contentMapWithName = {
|
|
|
38
38
|
/**
|
|
39
39
|
* This is the component description.
|
|
40
40
|
*/
|
|
41
|
-
const Logo =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
useLayoutEffect(() => {
|
|
41
|
+
const Logo = ({
|
|
42
|
+
id,
|
|
43
|
+
className: userClassName,
|
|
44
|
+
style,
|
|
45
|
+
color,
|
|
46
|
+
height,
|
|
47
|
+
width,
|
|
48
|
+
variant,
|
|
49
|
+
strokeColor,
|
|
50
|
+
square
|
|
51
|
+
// ...otherProps
|
|
52
|
+
}) => {
|
|
53
|
+
useInsertionEffect(() => {
|
|
55
54
|
import("./styles.scss");
|
|
56
55
|
}, []);
|
|
57
56
|
const contentMap = square ? contentMapSquare : contentMapWithName;
|