@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
|
@@ -7,39 +7,36 @@ exports.default = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
|
-
var _excluded = ["id", "className", "style", "children", "isOpen", "ariaLabel", "color"];
|
|
11
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
11
|
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); }
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
14
|
// Local Definitions
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const baseClassName = _exports.default.base;
|
|
17
|
+
const componentClassName = 'hamburger-button';
|
|
18
|
+
const hamburgerType = 'squeeze'; // docs : https://jonsuh.com/hamburgers/#sass
|
|
22
19
|
|
|
23
20
|
/**
|
|
24
21
|
* This is the component description.
|
|
25
22
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(0, React.
|
|
23
|
+
const HamburgerButton = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
id,
|
|
26
|
+
className: userClassName,
|
|
27
|
+
style,
|
|
28
|
+
children,
|
|
29
|
+
isOpen,
|
|
30
|
+
ariaLabel,
|
|
31
|
+
color,
|
|
32
|
+
...otherProps
|
|
33
|
+
} = _ref;
|
|
34
|
+
(0, React.useInsertionEffect)(() => {
|
|
38
35
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
39
36
|
}, []);
|
|
40
37
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
41
38
|
id: id,
|
|
42
|
-
className: [baseClassName, componentClassName, userClassName,
|
|
39
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`, 'hamburger', `hamburger--${hamburgerType}`, isOpen && 'is-active'].filter(e => e).join(' '),
|
|
43
40
|
style: style,
|
|
44
41
|
type: "button",
|
|
45
42
|
"aria-label": ariaLabel,
|
|
@@ -8,46 +8,39 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
10
|
var _common = require("./common");
|
|
11
|
-
var _excluded = ["id", "className", "style", "children", "icon", "iconHover"];
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
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); }
|
|
14
|
-
function
|
|
15
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
18
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
22
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
15
|
// Local Definitions
|
|
24
16
|
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
const baseClassName = _exports.default.base;
|
|
18
|
+
const componentClassName = 'icon-list';
|
|
27
19
|
|
|
28
20
|
/**
|
|
29
21
|
* This is the component description.
|
|
30
22
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
(0, React.
|
|
23
|
+
const IconList = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
id,
|
|
26
|
+
className: userClassName,
|
|
27
|
+
style,
|
|
28
|
+
children,
|
|
29
|
+
icon,
|
|
30
|
+
iconHover,
|
|
31
|
+
...otherProps
|
|
32
|
+
} = _ref;
|
|
33
|
+
(0, React.useInsertionEffect)(() => {
|
|
42
34
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
43
35
|
}, []);
|
|
44
36
|
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
45
37
|
id: id,
|
|
46
38
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
47
|
-
style:
|
|
48
|
-
|
|
49
|
-
'--list-icon
|
|
50
|
-
|
|
39
|
+
style: {
|
|
40
|
+
...style,
|
|
41
|
+
'--list-icon': icon && `"${icon}"`,
|
|
42
|
+
'--list-icon-hover': iconHover && `"${iconHover}"`
|
|
43
|
+
}
|
|
51
44
|
}, otherProps), children);
|
|
52
45
|
};
|
|
53
46
|
IconList.propTypes = {
|
|
@@ -7,42 +7,35 @@ exports.default = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
|
-
var _excluded = ["id", "className", "style", "children", "icon", "iconHover"];
|
|
11
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
13
|
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); }
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
19
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
20
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
22
14
|
// Local Definitions
|
|
23
15
|
|
|
24
|
-
|
|
16
|
+
const componentClassName = _exports.default.elementItem;
|
|
25
17
|
|
|
26
18
|
/**
|
|
27
19
|
* This is the component description.
|
|
28
20
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
21
|
+
const Item = _ref => {
|
|
22
|
+
let {
|
|
23
|
+
id,
|
|
24
|
+
className: userClassName,
|
|
25
|
+
style,
|
|
26
|
+
children,
|
|
27
|
+
icon,
|
|
28
|
+
iconHover,
|
|
29
|
+
...otherProps
|
|
30
|
+
} = _ref;
|
|
39
31
|
return /*#__PURE__*/React.createElement("li", _extends({
|
|
40
32
|
id: id,
|
|
41
33
|
className: [componentClassName, userClassName].filter(e => e).join(' '),
|
|
42
|
-
style:
|
|
43
|
-
|
|
44
|
-
'--list-icon
|
|
45
|
-
|
|
34
|
+
style: {
|
|
35
|
+
...style,
|
|
36
|
+
'--list-icon': icon && `"${icon}"`,
|
|
37
|
+
'--list-icon-hover': iconHover && `"${iconHover}"`
|
|
38
|
+
}
|
|
46
39
|
}, otherProps), children);
|
|
47
40
|
};
|
|
48
41
|
Item.propTypes = {
|
|
@@ -8,34 +8,37 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function
|
|
11
|
+
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); }
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
14
|
// Local Definitions
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
const baseClassName = _exports.default.base;
|
|
17
|
+
const componentClassName = 'label';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* This is the component description.
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
const Label = _ref => {
|
|
23
|
+
let {
|
|
23
24
|
id,
|
|
24
25
|
className: userClassName,
|
|
25
26
|
style,
|
|
26
27
|
children,
|
|
27
28
|
color,
|
|
28
29
|
isCompact,
|
|
29
|
-
isGhost
|
|
30
|
+
isGhost,
|
|
31
|
+
as: Wrapper,
|
|
32
|
+
...props
|
|
30
33
|
} = _ref;
|
|
31
|
-
(0, React.
|
|
34
|
+
(0, React.useInsertionEffect)(() => {
|
|
32
35
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
33
36
|
}, []);
|
|
34
|
-
return /*#__PURE__*/React.createElement(
|
|
37
|
+
return /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
35
38
|
id: id,
|
|
36
|
-
className: [baseClassName, componentClassName, userClassName,
|
|
39
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isCompact && _exports.default.modifierCompact, isGhost && _exports.default.modifierGhost].filter(e => e).join(' '),
|
|
37
40
|
style: style
|
|
38
|
-
}, children);
|
|
41
|
+
}, props), children);
|
|
39
42
|
};
|
|
40
43
|
Label.propTypes = {
|
|
41
44
|
/**
|
|
@@ -58,6 +61,10 @@ Label.propTypes = {
|
|
|
58
61
|
* Whether the button is compact
|
|
59
62
|
*/
|
|
60
63
|
isCompact: _propTypes.default.bool,
|
|
64
|
+
/**
|
|
65
|
+
* The html element to use to display this component.
|
|
66
|
+
*/
|
|
67
|
+
as: _propTypes.default.string,
|
|
61
68
|
/**
|
|
62
69
|
* The default font color to display for the label
|
|
63
70
|
*/
|
|
@@ -68,7 +75,8 @@ Label.propTypes = {
|
|
|
68
75
|
children: _propTypes.default.node
|
|
69
76
|
};
|
|
70
77
|
Label.defaultProps = {
|
|
71
|
-
color: 'main1'
|
|
78
|
+
color: 'main1',
|
|
79
|
+
as: 'span'
|
|
72
80
|
};
|
|
73
81
|
var _default = Label;
|
|
74
82
|
exports.default = _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
|
-
$default-padding-bottom: .
|
|
5
|
-
$default-padding-side: .
|
|
6
|
-
$default-padding-top: .
|
|
5
|
+
$default-padding-bottom: .6em;
|
|
6
|
+
$default-padding-side: 1.75em;
|
|
7
|
+
$default-padding-top: .75em;
|
|
7
8
|
|
|
8
|
-
$compact-padding: $default-padding-top*.
|
|
9
|
+
$compact-padding: $default-padding-top*.4 $default-padding-side*.4 $default-padding-bottom*.4;
|
|
9
10
|
$default-padding: $default-padding-top $default-padding-side $default-padding-bottom;
|
|
10
11
|
|
|
11
12
|
$default-color: primary;
|
|
@@ -13,22 +14,22 @@ $default-image-size: 2em;
|
|
|
13
14
|
$default-font-size: calc(1em * var(--s-1));
|
|
14
15
|
|
|
15
16
|
.#{bem.$base}.label {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
align-items: center;
|
|
18
|
+
background: var(--x, var(--#{$default-color}));
|
|
19
|
+
border-radius: 3em;
|
|
20
|
+
color: var(--on-x, var(--on-#{$default-color}));
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
font-size: $default-font-size;
|
|
23
|
+
padding: $default-padding;
|
|
24
|
+
white-space: nowrap;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
&.#{bem.$modifier-compact} {
|
|
27
|
+
padding: $compact-padding;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
30
|
+
&.#{bem.$modifier-ghost} {
|
|
31
|
+
background: transparent;
|
|
32
|
+
border: 1px solid var(--x, var(--#{$default-color}));
|
|
33
|
+
color: var(--x, var(--#{$default-color}));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -8,23 +8,18 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
13
|
// Local Definitions
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
const baseClassName = _exports.default.base;
|
|
16
|
+
const componentClassName = 'loading-circle';
|
|
22
17
|
|
|
23
18
|
/**
|
|
24
19
|
* This is the component description.
|
|
25
20
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
const LoadingCircle = _ref => {
|
|
22
|
+
let {
|
|
28
23
|
id,
|
|
29
24
|
className: userClassName,
|
|
30
25
|
heightWidth,
|
|
@@ -34,16 +29,17 @@ var LoadingCircle = _ref => {
|
|
|
34
29
|
style
|
|
35
30
|
// ...otherProps
|
|
36
31
|
} = _ref;
|
|
37
|
-
(0, React.
|
|
32
|
+
(0, React.useInsertionEffect)(() => {
|
|
38
33
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
39
34
|
}, []);
|
|
40
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
41
36
|
id: id,
|
|
42
37
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
43
|
-
style:
|
|
38
|
+
style: {
|
|
44
39
|
'--height-width': heightWidth,
|
|
45
|
-
'--stroke-width': strokeWidth
|
|
46
|
-
|
|
40
|
+
'--stroke-width': strokeWidth,
|
|
41
|
+
...style
|
|
42
|
+
}
|
|
47
43
|
// {...otherProps}
|
|
48
44
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
49
45
|
viewBox: "25 25 50 50",
|
|
@@ -56,7 +52,7 @@ var LoadingCircle = _ref => {
|
|
|
56
52
|
version: "1.1",
|
|
57
53
|
preserveAspectRatio: "xMinYMin meet",
|
|
58
54
|
style: {
|
|
59
|
-
'--animation-duration':
|
|
55
|
+
'--animation-duration': `${animationDuration}s`
|
|
60
56
|
}
|
|
61
57
|
}, /*#__PURE__*/React.createElement("circle", {
|
|
62
58
|
className: "path",
|
|
@@ -1,49 +1,47 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
$animation-duration:var(--animation-duration, 2s);
|
|
6
7
|
$stroke-color:var(--x);
|
|
7
8
|
|
|
8
|
-
.#{bem.$base}.loading-circle{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
.#{bem.$base}.loading-circle {
|
|
10
|
+
height: var(--height-width);
|
|
11
|
+
width: var(--height-width);
|
|
12
|
+
@keyframes rotate {
|
|
13
|
+
100% {
|
|
14
|
+
transform: rotate(360deg);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@keyframes dash-anim {
|
|
18
|
+
0% {
|
|
19
|
+
stroke-dasharray: 1, 200;
|
|
20
|
+
stroke-dashoffset: 0;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
stroke-dashoffset: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
50% {
|
|
26
|
-
stroke-dasharray: 89, 200;
|
|
27
|
-
stroke-dashoffset: -35px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
100% {
|
|
31
|
-
stroke-dasharray: 89, 200;
|
|
32
|
-
stroke-dashoffset: -124px;
|
|
33
|
-
}
|
|
23
|
+
50% {
|
|
24
|
+
stroke-dasharray: 89, 200;
|
|
25
|
+
stroke-dashoffset: -35px;
|
|
34
26
|
}
|
|
35
27
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
28
|
+
100% {
|
|
29
|
+
stroke-dasharray: 89, 200;
|
|
30
|
+
stroke-dashoffset: -124px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
svg.svg-circle {
|
|
35
|
+
animation: rotate $animation-duration linear infinite;
|
|
36
|
+
margin: auto;
|
|
37
|
+
transform-origin: center center;
|
|
38
|
+
|
|
39
|
+
circle {
|
|
40
|
+
animation: dash-anim $animation-duration ease-in-out infinite;
|
|
41
|
+
stroke: $stroke-color;
|
|
42
|
+
stroke-dasharray: 1, 200;
|
|
43
|
+
stroke-dashoffset: 0;
|
|
44
|
+
stroke-width: var(--stroke-width, 8);
|
|
48
45
|
}
|
|
49
|
-
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
// Local Definitions
|
|
14
|
+
|
|
15
|
+
const baseClassName = _exports.default.base;
|
|
16
|
+
const componentClassName = 'meta-card';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This is the component description.
|
|
20
|
+
*/
|
|
21
|
+
const MetaCard = _ref => {
|
|
22
|
+
let {
|
|
23
|
+
id,
|
|
24
|
+
className: userClassName,
|
|
25
|
+
style,
|
|
26
|
+
children,
|
|
27
|
+
hasBackgroundBlur
|
|
28
|
+
} = _ref;
|
|
29
|
+
(0, React.useInsertionEffect)(() => {
|
|
30
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
31
|
+
}, []);
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
id: id,
|
|
34
|
+
className: [baseClassName, componentClassName, userClassName, hasBackgroundBlur && _exports.default.modifierBlur].filter(e => e).join(' '),
|
|
35
|
+
style: style
|
|
36
|
+
}, children);
|
|
37
|
+
};
|
|
38
|
+
MetaCard.propTypes = {
|
|
39
|
+
/**
|
|
40
|
+
* The HTML id for this element
|
|
41
|
+
*/
|
|
42
|
+
id: _propTypes.default.string,
|
|
43
|
+
/**
|
|
44
|
+
* The HTML class names for this element
|
|
45
|
+
*/
|
|
46
|
+
className: _propTypes.default.string,
|
|
47
|
+
/**
|
|
48
|
+
* The React-written, css properties for this element.
|
|
49
|
+
*/
|
|
50
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
51
|
+
/**
|
|
52
|
+
* Whether the card has a background blur
|
|
53
|
+
* */
|
|
54
|
+
hasBackgroundBlur: _propTypes.default.bool
|
|
55
|
+
};
|
|
56
|
+
MetaCard.defaultProps = {
|
|
57
|
+
// someProp:false
|
|
58
|
+
};
|
|
59
|
+
var _default = MetaCard;
|
|
60
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "MetaCard", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _MetaCard.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _MetaCard = _interopRequireDefault(require("./MetaCard"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,30 @@
|
|
|
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: var(--spacing-2) 0;
|
|
8
|
+
$default-border-radius: 2.25rem;
|
|
9
|
+
$default-border-color: var(--hard-background-cards);
|
|
10
|
+
$default-background: var(--background-cards-50);
|
|
11
|
+
|
|
12
|
+
$default-blur: var(--theme-default-blur);
|
|
13
|
+
|
|
14
|
+
.#{bem.$base}.meta-card {
|
|
15
|
+
background: $default-background;
|
|
16
|
+
border: 1px solid $default-border-color;
|
|
17
|
+
border-radius: $default-border-radius;
|
|
18
|
+
padding: $default-padding;
|
|
19
|
+
|
|
20
|
+
&.#{bem.$modifier-blur} {
|
|
21
|
+
backdrop-filter: $default-blur;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include mixins.media($to: $sm-md) {
|
|
25
|
+
// Temporary solution
|
|
26
|
+
margin-left: calc((var(--gap)) * -1);
|
|
27
|
+
margin-right: calc((var(--gap)) * -1);
|
|
28
|
+
padding: 0 var(--gap);
|
|
29
|
+
}
|
|
30
|
+
}
|