@pareto-engineering/design-system 2.0.0-alpha.9 → 3.0.0-alpha.18
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/.eslintrc.js +1 -39
- package/.storybook/main.js +12 -1
- package/babel.config.js +2 -0
- package/dist/cjs/a/Alert/Alert.js +121 -0
- package/dist/cjs/a/{Shapes → Alert}/index.js +3 -5
- package/dist/cjs/a/Alert/styles.scss +74 -0
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +8 -24
- package/dist/cjs/a/AnimatedCounter/index.js +0 -2
- package/dist/cjs/a/AnimatedCounter/styles.scss +2 -2
- package/dist/cjs/a/{SiteContext → AppContext}/Context.js +0 -5
- package/dist/cjs/a/{SiteContext → AppContext}/ContextProvider.js +18 -30
- package/dist/cjs/a/{SiteContext → AppContext}/index.js +5 -10
- package/dist/cjs/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -5
- package/dist/cjs/a/{SiteContext → AppContext}/useTheme.js +6 -8
- package/dist/cjs/{experimental/GradientBackground/GradientBackground.js → a/BackgroundGradient/BackgroundGradient.js} +22 -53
- package/dist/cjs/a/BackgroundGradient/index.js +13 -0
- package/dist/cjs/a/BackgroundGradient/styles.scss +16 -0
- package/dist/cjs/a/ContentCard/ContentCard.js +5 -18
- package/dist/cjs/a/ContentCard/common/Section/Section.js +7 -18
- package/dist/cjs/a/ContentCard/common/Section/index.js +0 -2
- package/dist/cjs/a/ContentCard/common/index.js +0 -1
- package/dist/cjs/a/ContentCard/index.js +0 -2
- package/dist/cjs/a/ContentCard/styles.scss +2 -2
- package/dist/cjs/{c/TeamGallery/common/PersonCard/PersonCard.js → a/ContentTree/ContentTree.js} +29 -43
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +104 -0
- package/dist/cjs/{c/BlogPostsList/common/Card → a/ContentTree/common/Tree}/index.js +3 -5
- package/dist/cjs/a/ContentTree/common/index.js +27 -0
- package/dist/cjs/a/ContentTree/common/useContentTree.js +80 -0
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +63 -0
- package/dist/cjs/{c/SiteMission → a/ContentTree}/index.js +3 -5
- package/dist/cjs/a/ContentTree/styles.scss +33 -0
- package/dist/cjs/a/Conversation/Context.js +0 -5
- package/dist/cjs/a/Conversation/Conversation.js +17 -28
- package/dist/cjs/a/Conversation/common/Message/Message.js +36 -25
- package/dist/cjs/a/Conversation/common/Message/index.js +0 -2
- package/dist/cjs/a/Conversation/common/index.js +0 -1
- package/dist/cjs/a/Conversation/index.js +0 -4
- package/dist/cjs/a/Conversation/styles.scss +134 -35
- package/dist/cjs/a/Conversation/useConversation.js +0 -5
- package/dist/cjs/a/CustomerLogos/CustomerLogos.js +10 -19
- package/dist/cjs/a/CustomerLogos/index.js +0 -2
- package/dist/cjs/a/CustomerLogos/styles.scss +2 -2
- package/dist/cjs/a/CustomerStat/CustomerStat.js +8 -20
- package/dist/cjs/a/CustomerStat/index.js +0 -2
- package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +9 -18
- package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +10 -17
- package/dist/cjs/a/DashboardNavbar/common/NavItem/index.js +0 -2
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +10 -17
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/index.js +0 -2
- package/dist/cjs/a/DashboardNavbar/common/index.js +0 -2
- package/dist/cjs/a/DashboardNavbar/index.js +0 -2
- package/dist/cjs/a/DotInfo/DotInfo.js +13 -28
- package/dist/cjs/a/DotInfo/index.js +0 -2
- package/dist/cjs/a/FeaturedOn/FeaturedOn.js +10 -19
- package/dist/cjs/a/FeaturedOn/index.js +0 -2
- package/dist/cjs/a/FeaturedOn/styles.scss +2 -2
- package/dist/cjs/a/Figure/Figure.js +8 -19
- package/dist/cjs/a/Figure/index.js +0 -2
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +13 -32
- package/dist/cjs/a/HamburgerButton/index.js +0 -2
- package/dist/cjs/a/IconList/IconList.js +20 -38
- package/dist/cjs/a/IconList/common/Item/Item.js +19 -37
- package/dist/cjs/a/IconList/common/Item/index.js +0 -2
- package/dist/cjs/a/IconList/common/index.js +0 -1
- package/dist/cjs/a/IconList/index.js +0 -2
- package/dist/cjs/a/IconList/styles.scss +1 -1
- package/dist/cjs/{c/SiteFooter/SiteFooter.js → a/Label/Label.js} +29 -28
- package/dist/cjs/{c/SiteFooter/common/Section → a/Label}/index.js +3 -5
- package/dist/cjs/a/Label/styles.scss +34 -0
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +13 -27
- package/dist/cjs/a/LoadingCircle/index.js +0 -2
- package/dist/cjs/a/People/People.js +12 -27
- package/dist/cjs/a/People/common/Person/Person.js +9 -21
- package/dist/cjs/a/People/common/Person/index.js +0 -2
- package/dist/cjs/a/People/common/index.js +0 -1
- package/dist/cjs/a/People/index.js +0 -2
- package/dist/cjs/a/People/styles.scss +8 -6
- package/dist/cjs/{c/AcceptCookies/AcceptCookies.js → a/Popover/Popover.js} +58 -77
- package/dist/cjs/{c/BlogPost → a/Popover}/index.js +3 -5
- package/dist/cjs/a/Popover/styles.scss +33 -0
- package/dist/cjs/a/ProgressBar/ProgressBar.js +14 -27
- package/dist/cjs/a/ProgressBar/index.js +0 -2
- package/dist/cjs/a/Quote/Quote.js +8 -21
- package/dist/cjs/a/Quote/index.js +0 -2
- package/dist/cjs/a/Quote/styles.scss +2 -2
- package/dist/cjs/a/SVG/SVG.js +21 -48
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +5 -19
- package/dist/cjs/a/SVG/common/UseSVG/index.js +0 -2
- package/dist/cjs/a/SVG/common/index.js +0 -1
- package/dist/cjs/a/SVG/index.js +0 -2
- package/dist/cjs/{c/BlogPostsList/BlogPostsList.js → a/SnapScroller/SnapScroller.js} +21 -28
- package/dist/cjs/a/SnapScroller/index.js +13 -0
- package/dist/cjs/a/SnapScroller/styles.scss +38 -0
- package/dist/cjs/a/Spinner/Spinner.js +8 -18
- package/dist/cjs/a/Spinner/index.js +0 -2
- package/dist/cjs/a/TeamInfo/TeamInfo.js +10 -22
- package/dist/cjs/a/TeamInfo/index.js +0 -2
- package/dist/cjs/a/TeamInfo/styles.scss +3 -3
- package/dist/cjs/a/Timestamp/Timestamp.js +8 -25
- package/dist/cjs/a/Timestamp/index.js +0 -2
- package/dist/cjs/a/index.js +49 -99
- package/dist/cjs/b/Button/Button.js +24 -41
- package/dist/cjs/b/Button/index.js +0 -2
- package/dist/cjs/b/Button/styles.scss +65 -19
- package/dist/cjs/b/Card/Card.js +8 -19
- package/dist/cjs/b/Card/common/Group/Group.js +9 -20
- package/dist/cjs/b/Card/common/Group/index.js +0 -2
- package/dist/cjs/b/Card/common/Group/styles.scss +2 -2
- package/dist/cjs/b/Card/common/index.js +0 -1
- package/dist/cjs/b/Card/index.js +0 -2
- package/dist/cjs/b/Logo/Logo.js +46 -61
- package/dist/cjs/b/Logo/index.js +0 -2
- package/dist/cjs/b/Logo/styles.scss +0 -138
- package/dist/cjs/b/Metrics/Metrics.js +9 -20
- package/dist/cjs/b/Metrics/index.js +0 -2
- package/dist/cjs/b/Metrics/styles.scss +3 -3
- package/dist/cjs/b/Page/Context.js +0 -5
- package/dist/cjs/b/Page/Page.js +14 -34
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +9 -28
- package/dist/cjs/b/Page/common/PageHelmet/index.js +0 -2
- package/dist/cjs/b/Page/common/Section/Section.js +14 -69
- package/dist/cjs/b/Page/common/Section/index.js +0 -2
- package/dist/cjs/b/Page/common/index.js +0 -2
- package/dist/cjs/b/Page/index.js +4 -8
- package/dist/cjs/b/Page/usePage.js +0 -5
- package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +8 -23
- package/dist/cjs/b/QuestionDropdown/index.js +0 -2
- package/dist/cjs/b/QuestionDropdown/styles.scss +2 -2
- package/dist/cjs/b/Segment/Segment.js +8 -19
- package/dist/cjs/b/Segment/index.js +0 -2
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +22 -43
- package/dist/cjs/b/SocialMediaButton/index.js +0 -2
- package/dist/cjs/b/SocialMediaButton/styles.scss +4 -4
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +6 -18
- package/dist/cjs/b/ThemeSelector/index.js +0 -2
- package/dist/cjs/b/Title/Title.js +10 -33
- package/dist/cjs/b/Title/index.js +0 -2
- package/dist/cjs/b/index.js +9 -47
- package/dist/cjs/c/ContentSlides/ContentSlides.js +11 -42
- package/dist/cjs/c/ContentSlides/Context.js +0 -5
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +28 -36
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +11 -27
- package/dist/cjs/c/ContentSlides/common/Navigator/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +14 -25
- package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +12 -20
- package/dist/cjs/c/ContentSlides/common/Slide/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/index.js +8 -12
- package/dist/cjs/c/ContentSlides/index.js +4 -8
- package/dist/cjs/c/ContentSlides/styles.scss +12 -6
- package/dist/cjs/c/ContentSlides/useContentSlides.js +0 -5
- package/dist/cjs/c/Hero/Hero.js +10 -21
- package/dist/cjs/c/Hero/index.js +0 -2
- package/dist/cjs/c/Hero/styles.scss +2 -2
- package/dist/cjs/c/{TeamGallery/TeamGallery.js → Modal/Modal.js} +34 -31
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +77 -0
- package/dist/cjs/c/{SitePricing → Modal/common/ModalHeader}/index.js +3 -5
- package/dist/cjs/c/{SiteFooter → Modal}/common/index.js +3 -4
- package/dist/cjs/c/Modal/index.js +13 -0
- package/dist/cjs/c/Modal/styles.scss +46 -0
- package/dist/cjs/c/Shortener/Shortener.js +6 -20
- package/dist/cjs/c/Shortener/index.js +0 -2
- package/dist/cjs/{f/fields/RadioInput/RadioInput.js → c/SocialMediaShareButton/SocialMediaShareButton.js} +55 -60
- package/dist/cjs/c/SocialMediaShareButton/index.js +13 -0
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +39 -0
- package/dist/cjs/c/index.js +17 -13
- package/dist/cjs/f/FormInput/FormInput.js +44 -32
- package/dist/cjs/f/FormInput/index.js +0 -2
- package/dist/cjs/f/FormInput/styles.scss +11 -0
- package/dist/cjs/f/common/Debugger/Debugger.js +5 -18
- package/dist/cjs/f/common/Debugger/index.js +0 -2
- package/dist/cjs/f/common/Description/Description.js +24 -33
- package/dist/cjs/f/common/Description/index.js +0 -2
- package/dist/cjs/f/common/Label/Label.js +18 -26
- package/dist/cjs/f/common/Label/index.js +0 -2
- package/dist/cjs/f/common/Label/styles.scss +2 -5
- package/dist/cjs/f/common/index.js +4 -7
- package/dist/cjs/f/fields/{CheckboxInput/CheckboxInput.js → Checkbox/Checkbox.js} +49 -54
- package/dist/cjs/f/fields/Checkbox/index.js +13 -0
- package/dist/cjs/f/fields/Checkbox/styles.scss +14 -0
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +23 -43
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +9 -26
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +0 -2
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +0 -1
- package/dist/cjs/f/fields/ChoicesInput/index.js +0 -2
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +19 -4
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +142 -0
- package/dist/cjs/{c/SiteServices → f/fields/QueryChoices}/index.js +3 -5
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +218 -0
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +200 -0
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +13 -0
- package/dist/cjs/{c/BlogCategoryButton/BlogCategoryButton.js → f/fields/QueryCombobox/common/Menu/Menu.js} +48 -56
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +13 -0
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +284 -0
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +13 -0
- package/dist/cjs/f/fields/QueryCombobox/common/index.js +26 -0
- package/dist/cjs/f/fields/QueryCombobox/index.js +13 -0
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +91 -0
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +192 -0
- package/dist/cjs/{c/TeamGallery → f/fields/QuerySelect}/index.js +3 -5
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +38 -29
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +18 -29
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +0 -2
- package/dist/cjs/f/fields/RatingsInput/common/index.js +0 -1
- package/dist/cjs/f/fields/RatingsInput/index.js +0 -2
- package/dist/cjs/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +68 -41
- package/dist/cjs/f/fields/SelectInput/index.js +0 -2
- package/dist/cjs/f/fields/SelectInput/styles.scss +33 -13
- package/dist/cjs/f/fields/TextInput/TextInput.js +53 -42
- package/dist/cjs/f/fields/TextInput/index.js +0 -2
- package/dist/cjs/f/fields/TextInput/styles.scss +16 -7
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +51 -47
- package/dist/cjs/f/fields/TextareaInput/index.js +0 -2
- package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/cjs/f/fields/index.js +27 -28
- package/dist/cjs/f/index.js +0 -5
- package/dist/cjs/form-reset.scss +1 -1
- package/dist/cjs/form.scss +2 -2
- package/dist/cjs/index.js +22 -12
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +6 -22
- package/dist/cjs/r/SwitchRouteMap/index.js +0 -2
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +12 -24
- package/dist/cjs/r/common/PrivateRoute/index.js +0 -2
- package/dist/cjs/r/common/index.js +0 -1
- package/dist/cjs/r/index.js +0 -3
- package/dist/cjs/{c/BlogContext/Context.js → test/QueryLoader/QueryLoader.js} +23 -5
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +64 -0
- package/dist/cjs/{c/BlogContext/ContextProvider.js → test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js} +15 -37
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +13 -0
- package/dist/cjs/test/QueryLoader/common/index.js +12 -0
- package/dist/cjs/test/QueryLoader/index.js +13 -0
- package/dist/cjs/{c/TeamGallery/common → test}/index.js +3 -4
- package/dist/cjs/utils/hooks/index.js +20 -0
- package/dist/cjs/utils/hooks/useDynamicPosition.js +92 -0
- package/dist/cjs/utils/hooks/useWindowSize.js +31 -0
- package/dist/cjs/utils/index.js +18 -0
- package/dist/es/a/Alert/Alert.js +110 -0
- package/{src/ui/a/Shapes → dist/es/a/Alert}/index.js +1 -1
- package/dist/es/a/Alert/styles.scss +74 -0
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +30 -32
- package/dist/es/a/AnimatedCounter/styles.scss +2 -2
- package/dist/es/a/{SiteContext → AppContext}/ContextProvider.js +24 -23
- package/dist/es/a/AppContext/index.js +5 -0
- package/dist/es/a/{SiteContext → AppContext}/useTheme.js +8 -6
- package/dist/es/{c/BlogPostsList/BlogPostsList.js → a/BackgroundGradient/BackgroundGradient.js} +25 -25
- package/dist/es/a/BackgroundGradient/index.js +2 -0
- package/dist/es/a/BackgroundGradient/styles.scss +16 -0
- package/dist/es/a/ContentCard/ContentCard.js +14 -16
- package/dist/es/a/ContentCard/common/Section/Section.js +20 -21
- package/dist/es/a/ContentCard/styles.scss +2 -2
- package/dist/es/a/ContentTree/ContentTree.js +64 -0
- package/dist/es/a/ContentTree/common/Tree/Tree.js +95 -0
- package/dist/es/{c/BlogPostsList/common/Card → a/ContentTree/common/Tree}/index.js +1 -1
- package/dist/es/a/ContentTree/common/index.js +3 -0
- package/dist/es/a/ContentTree/common/useContentTree.js +73 -0
- package/dist/es/a/ContentTree/common/useFirstVisibleNode.js +54 -0
- package/dist/es/a/ContentTree/index.js +2 -0
- package/dist/es/a/ContentTree/styles.scss +33 -0
- package/dist/es/a/Conversation/Conversation.js +27 -26
- package/dist/es/a/Conversation/common/Message/Message.js +42 -22
- package/dist/es/a/Conversation/styles.scss +134 -35
- package/dist/es/a/CustomerLogos/CustomerLogos.js +16 -16
- package/dist/es/a/CustomerLogos/styles.scss +2 -2
- package/dist/es/a/CustomerStat/CustomerStat.js +16 -19
- package/dist/es/a/DashboardNavbar/DashboardNavbar.js +27 -24
- package/dist/es/a/DashboardNavbar/common/NavItem/NavItem.js +24 -21
- package/dist/es/a/DashboardNavbar/common/NavProfile/NavProfile.js +24 -21
- package/dist/es/a/DotInfo/DotInfo.js +19 -23
- package/dist/es/a/FeaturedOn/FeaturedOn.js +16 -16
- package/dist/es/a/FeaturedOn/styles.scss +2 -2
- package/dist/es/a/Figure/Figure.js +17 -19
- package/dist/es/a/HamburgerButton/HamburgerButton.js +15 -21
- package/dist/es/a/IconList/IconList.js +20 -22
- package/dist/es/a/IconList/common/Item/Item.js +26 -26
- package/dist/es/a/IconList/styles.scss +1 -1
- package/dist/es/a/Label/Label.js +67 -0
- package/dist/es/a/{Shapes → Label}/index.js +1 -1
- package/dist/es/a/Label/styles.scss +34 -0
- package/dist/es/a/LoadingCircle/LoadingCircle.js +17 -21
- package/dist/es/a/People/People.js +18 -20
- package/dist/es/a/People/common/Person/Person.js +31 -33
- package/dist/es/a/People/styles.scss +8 -6
- package/dist/es/a/Popover/Popover.js +109 -0
- package/{src/ui/a/ContentCard/common/Section → dist/es/a/Popover}/index.js +1 -1
- package/dist/es/a/Popover/styles.scss +33 -0
- package/dist/es/a/ProgressBar/ProgressBar.js +17 -20
- package/dist/es/a/Quote/Quote.js +17 -21
- package/dist/es/a/Quote/styles.scss +2 -2
- package/dist/es/a/SVG/SVG.js +23 -36
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +23 -26
- package/dist/es/{c/SiteFooter/SiteFooter.js → a/SnapScroller/SnapScroller.js} +27 -24
- package/dist/es/a/SnapScroller/index.js +2 -0
- package/dist/es/a/SnapScroller/styles.scss +38 -0
- package/dist/es/a/Spinner/Spinner.js +14 -15
- package/dist/es/a/TeamInfo/TeamInfo.js +19 -22
- package/dist/es/a/TeamInfo/styles.scss +3 -3
- package/dist/es/a/Timestamp/Timestamp.js +24 -31
- package/dist/es/a/index.js +13 -17
- package/dist/es/b/Button/Button.js +28 -31
- package/dist/es/b/Button/styles.scss +65 -19
- package/dist/es/b/Card/Card.js +22 -20
- package/dist/es/b/Card/common/Group/Group.js +23 -22
- package/dist/es/b/Card/common/Group/styles.scss +2 -2
- package/dist/es/b/Logo/Logo.js +56 -61
- package/dist/es/b/Logo/styles.scss +0 -138
- package/dist/es/b/Metrics/Metrics.js +15 -15
- package/dist/es/b/Metrics/styles.scss +3 -3
- package/dist/es/b/Page/Page.js +20 -24
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +40 -55
- package/dist/es/b/Page/common/Section/Section.js +15 -55
- package/dist/es/b/QuestionDropdown/QuestionDropdown.js +20 -25
- package/dist/es/b/QuestionDropdown/styles.scss +2 -2
- package/dist/es/b/Segment/Segment.js +27 -26
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +23 -31
- package/dist/es/b/SocialMediaButton/styles.scss +4 -4
- package/dist/es/b/ThemeSelector/ThemeSelector.js +16 -17
- package/dist/es/b/Title/Title.js +38 -49
- package/dist/es/b/index.js +3 -7
- package/dist/es/c/ContentSlides/ContentSlides.js +26 -37
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +39 -36
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +25 -32
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +21 -21
- package/dist/es/c/ContentSlides/common/Slide/Slide.js +19 -18
- package/dist/es/c/ContentSlides/styles.scss +12 -6
- package/dist/es/c/Hero/Hero.js +18 -20
- package/dist/es/c/Hero/styles.scss +2 -2
- package/dist/es/c/Modal/Modal.js +76 -0
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +67 -0
- package/dist/es/c/Modal/common/ModalHeader/index.js +1 -0
- package/dist/es/c/Modal/common/index.js +1 -0
- package/dist/es/c/{SiteFooter/common/Section → Modal}/index.js +1 -1
- package/dist/es/c/Modal/styles.scss +46 -0
- package/dist/es/c/Shortener/Shortener.js +17 -21
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +98 -0
- package/dist/es/c/SocialMediaShareButton/index.js +2 -0
- package/dist/es/c/SocialMediaShareButton/styles.scss +39 -0
- package/dist/es/c/index.js +3 -2
- package/dist/es/f/FormInput/FormInput.js +50 -23
- package/dist/es/f/FormInput/styles.scss +11 -0
- package/dist/es/f/common/Debugger/Debugger.js +13 -16
- package/dist/es/f/common/Description/Description.js +30 -30
- package/dist/es/f/common/Label/Label.js +27 -26
- package/dist/es/f/common/Label/styles.scss +2 -5
- package/dist/es/f/fields/Checkbox/Checkbox.js +93 -0
- package/dist/es/{c/BlogPost → f/fields/Checkbox}/index.js +1 -1
- package/dist/es/f/fields/Checkbox/styles.scss +14 -0
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +34 -39
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +24 -31
- package/dist/es/f/fields/ChoicesInput/styles.scss +19 -4
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +130 -0
- package/dist/es/f/fields/QueryChoices/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +212 -0
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +195 -0
- package/dist/es/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +76 -0
- package/dist/es/f/fields/QueryCombobox/common/Menu/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +275 -0
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/index.js +3 -0
- package/dist/es/f/fields/QueryCombobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/styles.scss +91 -0
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +184 -0
- package/dist/es/f/fields/QuerySelect/index.js +2 -0
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +50 -28
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +31 -32
- package/dist/es/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/es/f/fields/SelectInput/SelectInput.js +78 -38
- package/dist/es/f/fields/SelectInput/styles.scss +33 -13
- package/dist/es/f/fields/TextInput/TextInput.js +66 -42
- package/dist/es/f/fields/TextInput/styles.scss +16 -7
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +68 -50
- package/dist/es/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/es/f/fields/index.js +5 -4
- package/dist/es/form-reset.scss +1 -1
- package/dist/es/form.scss +2 -2
- package/dist/es/index.js +3 -2
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +25 -23
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +17 -16
- package/dist/es/test/QueryLoader/QueryLoader.js +30 -0
- package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +64 -0
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +31 -0
- package/dist/es/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
- package/dist/es/test/QueryLoader/common/index.js +1 -0
- package/dist/es/test/QueryLoader/index.js +2 -0
- package/dist/es/test/index.js +1 -0
- package/dist/es/utils/hooks/index.js +2 -0
- package/dist/es/utils/hooks/useDynamicPosition.js +84 -0
- package/dist/es/utils/hooks/useWindowSize.js +23 -0
- package/dist/es/utils/index.js +1 -0
- package/jest.config.js +1 -0
- package/package.json +31 -21
- package/relay.config.js +12 -0
- package/src/__snapshots__/Storyshots.test.js.snap +11592 -7278
- package/src/local.scss +4 -2
- package/src/stories/Introduction.stories.mdx +0 -14
- package/src/stories/StyleGuide/Sprites.stories.mdx +25 -0
- package/src/stories/StyleGuide/helpers.js +18 -2
- package/src/stories/StyleGuide/typography.stories.mdx +0 -1
- package/src/stories/a/{SiteContext.stories.jsx → AppContext.stories.jsx} +8 -8
- package/src/stories/a/ContentTree.stories.jsx +662 -0
- package/src/stories/a/Conversation.stories.jsx +78 -1
- package/src/stories/a/DotInfo.stories.jsx +14 -13
- package/src/stories/a/Label.stories.jsx +49 -0
- package/src/stories/a/Popover.stories.jsx +106 -0
- package/src/stories/a/ProgressBar.stories.jsx +16 -7
- package/src/stories/a/SnapScroller.stories.jsx +98 -0
- package/src/stories/a/Timestamp.stories.jsx +35 -39
- package/src/stories/b/Button.stories.jsx +27 -4
- package/src/stories/b/Logo.stories.jsx +23 -14
- package/src/stories/b/Page.stories.jsx +1 -27
- package/src/stories/b/SocialMediaButton.stories.jsx +36 -53
- package/src/stories/b/ThemeSelector.stories.jsx +5 -5
- package/src/stories/b/Title.stories.jsx +14 -16
- package/src/stories/c/ContentSlides.stories.jsx +18 -152
- package/src/stories/c/Modal.stories.jsx +67 -0
- package/src/stories/c/Shortener.stories.jsx +9 -3
- package/src/stories/c/SocialMediaShareButton.stories.jsx +33 -0
- package/src/stories/f/Checkbox.stories.jsx +95 -0
- package/src/stories/f/ChoicesInput.stories.jsx +100 -128
- package/src/stories/f/Description.stories.jsx +22 -4
- package/src/stories/f/FormInput.stories.jsx +264 -0
- package/src/stories/f/Label.stories.jsx +8 -3
- package/src/stories/f/QueryChoices.stories.jsx +135 -0
- package/src/stories/f/QueryCombobox.stories.jsx +279 -0
- package/src/stories/f/QuerySelect.stories.jsx +142 -0
- package/src/stories/f/RatingsInput.stories.jsx +36 -22
- package/src/stories/f/SelectInput.stories.jsx +48 -49
- package/src/stories/f/TextInput.stories.jsx +70 -43
- package/src/stories/f/TextareaInput.stories.jsx +70 -19
- package/src/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/f/__generated__/FormInputAllTeamsQuery.graphql.js +139 -0
- package/src/stories/f/__generated__/QueryChoicesAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/f/__generated__/QueryComboboxAllTeamsQuery.graphql.js +139 -0
- package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/r/PrivateRoute.stories.jsx +1 -1
- package/src/stories/test/QueryLoader.stories.jsx +36 -0
- package/src/stories/utils/generateNodeId.js +12 -0
- package/src/stories/utils/lorem.js +15 -0
- package/src/stories/utils/relay/EnvironmentProvider.jsx +14 -0
- package/src/stories/utils/relay/environment.js +5 -0
- package/src/stories/utils/relay/index.js +4 -0
- package/src/stories/utils/relay/mockRelayOperation.js +14 -0
- package/src/stories/utils/relay/mockResolvers.js +299 -0
- package/src/stories/utils/testData.js +63 -0
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +1 -1
- package/src/ui/a/AnimatedCounter/styles.scss +2 -2
- package/src/ui/a/{SiteContext → AppContext}/ContextProvider.jsx +8 -7
- package/src/ui/a/AppContext/index.js +5 -0
- package/src/ui/{b/Metrics/Metrics.jsx → a/ContentTree/ContentTree.jsx} +23 -28
- package/src/ui/a/ContentTree/common/Tree/Tree.jsx +138 -0
- package/src/ui/a/ContentTree/common/Tree/index.js +2 -0
- package/src/ui/a/ContentTree/common/index.js +3 -0
- package/src/ui/a/ContentTree/common/useContentTree.js +83 -0
- package/src/ui/a/ContentTree/common/useFirstVisibleNode.js +59 -0
- package/src/ui/a/ContentTree/index.js +2 -0
- package/src/ui/a/ContentTree/styles.scss +33 -0
- package/src/ui/a/Conversation/Conversation.jsx +16 -8
- package/src/ui/a/Conversation/common/Message/Message.jsx +39 -7
- package/src/ui/a/Conversation/styles.scss +134 -35
- package/src/ui/a/DotInfo/DotInfo.jsx +1 -1
- package/src/ui/a/Figure/Figure.jsx +1 -1
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +1 -1
- package/src/ui/a/IconList/IconList.jsx +1 -1
- package/src/ui/a/IconList/common/Item/Item.jsx +1 -1
- package/src/ui/a/IconList/styles.scss +1 -1
- package/src/ui/a/{CustomerStat/CustomerStat.jsx → Label/Label.jsx} +25 -20
- package/src/ui/a/Label/index.js +2 -0
- package/src/ui/a/Label/styles.scss +34 -0
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +1 -1
- package/src/ui/a/People/People.jsx +1 -1
- package/src/ui/a/People/common/Person/Person.jsx +3 -3
- package/src/ui/a/People/styles.scss +8 -6
- package/src/ui/a/Popover/Popover.jsx +157 -0
- package/src/ui/a/Popover/index.js +2 -0
- package/src/ui/a/Popover/styles.scss +33 -0
- package/src/ui/a/ProgressBar/ProgressBar.jsx +1 -1
- package/src/ui/a/Quote/Quote.jsx +1 -1
- package/src/ui/a/Quote/styles.scss +2 -2
- package/src/ui/a/SVG/SVG.jsx +1 -1
- package/src/ui/a/{ContentCard/ContentCard.jsx → SnapScroller/SnapScroller.jsx} +20 -21
- package/src/ui/a/SnapScroller/index.js +2 -0
- package/src/ui/a/SnapScroller/styles.scss +38 -0
- package/src/ui/a/Spinner/Spinner.jsx +1 -1
- package/src/ui/a/Timestamp/Timestamp.jsx +1 -1
- package/src/ui/a/index.js +14 -21
- package/src/ui/b/Button/Button.jsx +10 -2
- package/src/ui/b/Button/styles.scss +65 -19
- package/src/ui/b/Logo/Logo.jsx +42 -42
- package/src/ui/b/Logo/styles.scss +0 -138
- package/src/ui/b/Page/Page.jsx +1 -1
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +2 -2
- package/src/ui/b/Page/common/Section/Section.jsx +1 -51
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +5 -5
- package/src/ui/b/SocialMediaButton/styles.scss +4 -4
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +3 -3
- package/src/ui/b/Title/Title.jsx +1 -1
- package/src/ui/b/index.js +3 -7
- package/src/ui/c/ContentSlides/ContentSlides.jsx +1 -1
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +13 -6
- package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +3 -2
- package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +1 -1
- package/src/ui/c/ContentSlides/common/Slide/Slide.jsx +1 -1
- package/src/ui/c/ContentSlides/styles.scss +12 -6
- package/src/ui/c/{Hero/Hero.jsx → Modal/Modal.jsx} +31 -26
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +89 -0
- package/src/ui/c/Modal/common/ModalHeader/index.js +1 -0
- package/src/ui/c/Modal/common/index.js +1 -0
- package/src/ui/c/Modal/index.js +2 -0
- package/src/ui/c/Modal/styles.scss +46 -0
- package/src/ui/c/Shortener/Shortener.jsx +1 -1
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +121 -0
- package/src/ui/c/SocialMediaShareButton/index.js +2 -0
- package/src/ui/c/SocialMediaShareButton/styles.scss +39 -0
- package/src/ui/c/index.js +2 -1
- package/src/ui/f/FormInput/FormInput.jsx +61 -1
- package/src/ui/f/FormInput/styles.scss +11 -0
- package/src/ui/f/common/Debugger/Debugger.jsx +1 -1
- package/src/ui/f/common/Description/Description.jsx +35 -30
- package/src/ui/f/common/Label/Label.jsx +11 -5
- package/src/ui/f/common/Label/styles.scss +2 -5
- package/src/ui/f/fields/{CheckboxInput/CheckboxInput.jsx → Checkbox/Checkbox.jsx} +44 -33
- package/src/ui/f/fields/Checkbox/index.js +2 -0
- package/src/ui/f/fields/Checkbox/styles.scss +14 -0
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +10 -4
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +11 -3
- package/src/ui/f/fields/ChoicesInput/styles.scss +19 -4
- package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +153 -0
- package/src/ui/f/fields/QueryChoices/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +240 -0
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +241 -0
- package/src/ui/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/Menu/Menu.jsx +103 -0
- package/src/ui/f/fields/QueryCombobox/common/Menu/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +340 -0
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/index.js +3 -0
- package/src/ui/f/fields/QueryCombobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/styles.scss +91 -0
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +213 -0
- package/src/ui/f/fields/QuerySelect/index.js +2 -0
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +55 -20
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +9 -3
- package/src/ui/f/fields/RatingsInput/styles.scss +29 -20
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +73 -9
- package/src/ui/f/fields/SelectInput/styles.scss +33 -13
- package/src/ui/f/fields/TextInput/TextInput.jsx +45 -11
- package/src/ui/f/fields/TextInput/styles.scss +16 -7
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +50 -22
- package/src/ui/f/fields/TextareaInput/styles.scss +19 -6
- package/src/ui/f/fields/index.js +4 -3
- package/src/ui/form-reset.scss +1 -1
- package/src/ui/form.scss +2 -2
- package/src/ui/index.js +2 -0
- package/src/ui/test/QueryLoader/QueryLoader.jsx +41 -0
- package/src/ui/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +68 -0
- package/src/ui/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.jsx +51 -0
- package/src/ui/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
- package/src/ui/test/QueryLoader/common/index.js +1 -0
- package/src/ui/test/QueryLoader/index.js +2 -0
- package/src/ui/test/index.js +1 -0
- package/src/ui/utils/hooks/index.js +2 -0
- package/src/ui/utils/hooks/useDynamicPosition.js +104 -0
- package/src/ui/utils/hooks/useWindowSize.js +32 -0
- package/src/ui/utils/index.js +1 -0
- package/stylelint.config.js +1 -43
- package/.githooks/pre-commit +0 -5
- package/.github/workflows/push-main-branches.yaml +0 -89
- package/.github/workflows/push-pr.yaml +0 -83
- package/.github/workflows.old/push-production.yaml +0 -34
- package/.github/workflows.old/push-staging.yaml +0 -34
- package/.github/workflows.old/test-publish.no +0 -63
- package/.github/workflows.old/test-publish.yaml +0 -68
- package/dist/cjs/a/GradientBackground/GradientBackground.js +0 -140
- package/dist/cjs/a/GradientBackground/index.js +0 -15
- package/dist/cjs/a/GradientBackground/styles.scss +0 -191
- package/dist/cjs/a/OvalIllustration/OvalIllustration.js +0 -102
- package/dist/cjs/a/OvalIllustration/index.js +0 -15
- package/dist/cjs/a/OvalIllustration/styles.scss +0 -105
- package/dist/cjs/a/Shapes/Shapes.js +0 -163
- package/dist/cjs/a/Shapes/styles.scss +0 -221
- package/dist/cjs/c/AcceptCookies/index.js +0 -15
- package/dist/cjs/c/AcceptCookies/styles.scss +0 -49
- package/dist/cjs/c/BlogCategoryButton/index.js +0 -15
- package/dist/cjs/c/BlogContext/BlogContextProvider.js +0 -63
- package/dist/cjs/c/BlogContext/index.js +0 -31
- package/dist/cjs/c/BlogContext/useBlog.js +0 -16
- package/dist/cjs/c/BlogPost/BlogPost.js +0 -147
- package/dist/cjs/c/BlogPost/styles.scss +0 -33
- package/dist/cjs/c/BlogPostsList/common/Card/Card.js +0 -170
- package/dist/cjs/c/BlogPostsList/common/index.js +0 -13
- package/dist/cjs/c/BlogPostsList/index.js +0 -15
- package/dist/cjs/c/BlogPostsList/styles.scss +0 -72
- package/dist/cjs/c/SiteFooter/common/Section/Section.js +0 -95
- package/dist/cjs/c/SiteFooter/index.js +0 -15
- package/dist/cjs/c/SiteFooter/styles.scss +0 -34
- package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -108
- package/dist/cjs/c/SiteHeaderCTA/index.js +0 -15
- package/dist/cjs/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/cjs/c/SiteMission/SiteMission.js +0 -113
- package/dist/cjs/c/SiteMission/styles.scss +0 -30
- package/dist/cjs/c/SiteNavigation/SiteNavigation.js +0 -130
- package/dist/cjs/c/SiteNavigation/index.js +0 -15
- package/dist/cjs/c/SiteNavigation/styles.scss +0 -118
- package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -98
- package/dist/cjs/c/SiteOnboardingStep/index.js +0 -15
- package/dist/cjs/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/cjs/c/SitePricing/SitePricing.js +0 -108
- package/dist/cjs/c/SitePricing/styles.scss +0 -73
- package/dist/cjs/c/SiteServices/SiteServices.js +0 -211
- package/dist/cjs/c/SiteServices/styles.scss +0 -138
- package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +0 -15
- package/dist/cjs/c/TeamGallery/styles.scss +0 -100
- package/dist/cjs/c/Testimonials/Testimonials.js +0 -119
- package/dist/cjs/c/Testimonials/index.js +0 -15
- package/dist/cjs/c/Testimonials/styles.scss +0 -112
- package/dist/cjs/experimental/GradientBackground/index.js +0 -15
- package/dist/cjs/experimental/GradientBackground/styles.scss +0 -64
- package/dist/cjs/experimental/index.js +0 -13
- package/dist/cjs/f/fields/CheckboxInput/index.js +0 -15
- package/dist/cjs/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/cjs/f/fields/RadioInput/index.js +0 -15
- package/dist/cjs/f/fields/RadioInput/styles.scss +0 -26
- package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +0 -129
- package/dist/cjs/f/fields/TaskRecommendation/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -131
- package/dist/cjs/f/fields/TaskRecommendationInput/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/cjs/f/fields/TextArea/TextArea.js +0 -141
- package/dist/cjs/f/fields/TextArea/index.js +0 -15
- package/dist/cjs/f/fields/TextArea/styles.scss +0 -19
- package/dist/es/a/GradientBackground/GradientBackground.js +0 -118
- package/dist/es/a/GradientBackground/index.js +0 -2
- package/dist/es/a/GradientBackground/styles.scss +0 -191
- package/dist/es/a/OvalIllustration/OvalIllustration.js +0 -86
- package/dist/es/a/OvalIllustration/index.js +0 -2
- package/dist/es/a/OvalIllustration/styles.scss +0 -105
- package/dist/es/a/Shapes/Shapes.js +0 -141
- package/dist/es/a/Shapes/styles.scss +0 -221
- package/dist/es/a/SiteContext/index.js +0 -5
- package/dist/es/c/AcceptCookies/AcceptCookies.js +0 -117
- package/dist/es/c/AcceptCookies/index.js +0 -2
- package/dist/es/c/AcceptCookies/styles.scss +0 -49
- package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +0 -68
- package/dist/es/c/BlogCategoryButton/index.js +0 -2
- package/dist/es/c/BlogContext/BlogContextProvider.js +0 -45
- package/dist/es/c/BlogContext/Context.js +0 -2
- package/dist/es/c/BlogContext/ContextProvider.js +0 -45
- package/dist/es/c/BlogContext/index.js +0 -4
- package/dist/es/c/BlogContext/useBlog.js +0 -3
- package/dist/es/c/BlogPost/BlogPost.js +0 -128
- package/dist/es/c/BlogPost/styles.scss +0 -33
- package/dist/es/c/BlogPostsList/common/Card/Card.js +0 -143
- package/dist/es/c/BlogPostsList/common/index.js +0 -1
- package/dist/es/c/BlogPostsList/index.js +0 -2
- package/dist/es/c/BlogPostsList/styles.scss +0 -72
- package/dist/es/c/SiteFooter/common/Section/Section.js +0 -73
- package/dist/es/c/SiteFooter/common/index.js +0 -1
- package/dist/es/c/SiteFooter/index.js +0 -2
- package/dist/es/c/SiteFooter/styles.scss +0 -34
- package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -92
- package/dist/es/c/SiteHeaderCTA/index.js +0 -2
- package/dist/es/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/es/c/SiteMission/SiteMission.js +0 -96
- package/dist/es/c/SiteMission/index.js +0 -2
- package/dist/es/c/SiteMission/styles.scss +0 -30
- package/dist/es/c/SiteNavigation/SiteNavigation.js +0 -111
- package/dist/es/c/SiteNavigation/index.js +0 -2
- package/dist/es/c/SiteNavigation/styles.scss +0 -118
- package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -81
- package/dist/es/c/SiteOnboardingStep/index.js +0 -2
- package/dist/es/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/es/c/SitePricing/SitePricing.js +0 -91
- package/dist/es/c/SitePricing/index.js +0 -2
- package/dist/es/c/SitePricing/styles.scss +0 -73
- package/dist/es/c/SiteServices/SiteServices.js +0 -195
- package/dist/es/c/SiteServices/index.js +0 -2
- package/dist/es/c/SiteServices/styles.scss +0 -138
- package/dist/es/c/TeamGallery/TeamGallery.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/index.js +0 -2
- package/dist/es/c/TeamGallery/common/index.js +0 -1
- package/dist/es/c/TeamGallery/index.js +0 -2
- package/dist/es/c/TeamGallery/styles.scss +0 -100
- package/dist/es/c/Testimonials/Testimonials.js +0 -99
- package/dist/es/c/Testimonials/index.js +0 -2
- package/dist/es/c/Testimonials/styles.scss +0 -112
- package/dist/es/experimental/GradientBackground/GradientBackground.js +0 -76
- package/dist/es/experimental/GradientBackground/index.js +0 -2
- package/dist/es/experimental/GradientBackground/styles.scss +0 -64
- package/dist/es/experimental/index.js +0 -1
- package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +0 -85
- package/dist/es/f/fields/CheckboxInput/index.js +0 -2
- package/dist/es/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/es/f/fields/RadioInput/RadioInput.js +0 -90
- package/dist/es/f/fields/RadioInput/index.js +0 -2
- package/dist/es/f/fields/RadioInput/styles.scss +0 -26
- package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +0 -111
- package/dist/es/f/fields/TaskRecommendation/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -111
- package/dist/es/f/fields/TaskRecommendationInput/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/es/f/fields/TextArea/TextArea.js +0 -124
- package/dist/es/f/fields/TextArea/index.js +0 -2
- package/dist/es/f/fields/TextArea/styles.scss +0 -19
- package/scripts/postinstall.js +0 -1
- package/scripts/upgrade.sh +0 -10
- package/src/stories/a/ContentCard.stories.jsx +0 -158
- package/src/stories/a/CustomerLogos.stories.jsx +0 -35
- package/src/stories/a/CustomerStat.stories.jsx +0 -22
- package/src/stories/a/DashboardNavbar.stories.jsx +0 -57
- package/src/stories/a/FeaturedOn.stories.jsx +0 -33
- package/src/stories/a/OvalIllustration.stories.jsx +0 -36
- package/src/stories/a/Shapes.stories.jsx +0 -125
- package/src/stories/a/TeamInfo.stories.jsx +0 -31
- package/src/stories/b/Card.stories.jsx +0 -36
- package/src/stories/b/Metrics.stories.jsx +0 -62
- package/src/stories/b/QuestionDropdown.stories.jsx +0 -62
- package/src/stories/b/Segment.stories.jsx +0 -34
- package/src/stories/c/Hero.stories.jsx +0 -46
- package/src/stories/f/CheckboxInput.stories.jsx +0 -37
- package/src/stories/f/RadioInput.stories.jsx +0 -37
- package/src/stories/f/TaskRecommendationInput.stories.jsx +0 -38
- package/src/ui/a/ContentCard/common/Section/Section.jsx +0 -79
- package/src/ui/a/ContentCard/common/index.js +0 -1
- package/src/ui/a/ContentCard/index.js +0 -2
- package/src/ui/a/ContentCard/styles.scss +0 -78
- package/src/ui/a/CustomerLogos/CustomerLogos.jsx +0 -92
- package/src/ui/a/CustomerLogos/index.js +0 -2
- package/src/ui/a/CustomerLogos/styles.scss +0 -41
- package/src/ui/a/CustomerStat/index.js +0 -2
- package/src/ui/a/CustomerStat/styles.scss +0 -16
- package/src/ui/a/DashboardNavbar/DashboardNavbar.jsx +0 -74
- package/src/ui/a/DashboardNavbar/common/NavItem/NavItem.jsx +0 -64
- package/src/ui/a/DashboardNavbar/common/NavItem/index.js +0 -2
- package/src/ui/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
- package/src/ui/a/DashboardNavbar/common/NavProfile/NavProfile.jsx +0 -64
- package/src/ui/a/DashboardNavbar/common/NavProfile/index.js +0 -2
- package/src/ui/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
- package/src/ui/a/DashboardNavbar/common/index.js +0 -2
- package/src/ui/a/DashboardNavbar/index.js +0 -2
- package/src/ui/a/DashboardNavbar/styles.scss +0 -14
- package/src/ui/a/FeaturedOn/FeaturedOn.jsx +0 -95
- package/src/ui/a/FeaturedOn/index.js +0 -2
- package/src/ui/a/FeaturedOn/styles.scss +0 -41
- package/src/ui/a/OvalIllustration/OvalIllustration.jsx +0 -108
- package/src/ui/a/OvalIllustration/index.js +0 -2
- package/src/ui/a/OvalIllustration/styles.scss +0 -105
- package/src/ui/a/Shapes/Shapes.jsx +0 -181
- package/src/ui/a/Shapes/styles.scss +0 -221
- package/src/ui/a/SiteContext/index.js +0 -5
- package/src/ui/a/TeamInfo/TeamInfo.jsx +0 -99
- package/src/ui/a/TeamInfo/index.js +0 -2
- package/src/ui/a/TeamInfo/styles.scss +0 -58
- package/src/ui/b/Card/Card.jsx +0 -63
- package/src/ui/b/Card/common/Group/Group.jsx +0 -70
- package/src/ui/b/Card/common/Group/index.js +0 -2
- package/src/ui/b/Card/common/Group/styles.scss +0 -61
- package/src/ui/b/Card/common/index.js +0 -1
- package/src/ui/b/Card/index.js +0 -2
- package/src/ui/b/Card/styles.scss +0 -12
- package/src/ui/b/Metrics/index.js +0 -2
- package/src/ui/b/Metrics/styles.scss +0 -91
- package/src/ui/b/QuestionDropdown/QuestionDropdown.jsx +0 -112
- package/src/ui/b/QuestionDropdown/index.js +0 -2
- package/src/ui/b/QuestionDropdown/styles.scss +0 -95
- package/src/ui/b/Segment/Segment.jsx +0 -78
- package/src/ui/b/Segment/index.js +0 -2
- package/src/ui/b/Segment/styles.scss +0 -26
- package/src/ui/c/Hero/index.js +0 -2
- package/src/ui/c/Hero/styles.scss +0 -41
- package/src/ui/f/fields/CheckboxInput/index.js +0 -2
- package/src/ui/f/fields/CheckboxInput/styles.scss +0 -28
- package/src/ui/f/fields/RadioInput/RadioInput.jsx +0 -112
- package/src/ui/f/fields/RadioInput/index.js +0 -2
- package/src/ui/f/fields/RadioInput/styles.scss +0 -26
- package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +0 -130
- package/src/ui/f/fields/TaskRecommendationInput/index.js +0 -2
- package/src/ui/f/fields/TaskRecommendationInput/styles.scss +0 -41
- /package/dist/es/a/{SiteContext → AppContext}/Context.js +0 -0
- /package/dist/es/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
- /package/src/ui/a/{SiteContext → AppContext}/Context.js +0 -0
- /package/src/ui/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
- /package/src/ui/a/{SiteContext → AppContext}/useTheme.js +0 -0
|
@@ -4,27 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
-
|
|
9
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
17
|
-
|
|
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); }
|
|
18
12
|
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); }
|
|
19
|
-
|
|
20
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; }
|
|
21
|
-
|
|
22
14
|
// Component-level imports
|
|
23
|
-
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
15
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
24
16
|
|
|
25
|
-
|
|
17
|
+
// Helper Definition
|
|
18
|
+
var baseClassName = _exports.default.base;
|
|
26
19
|
var componentClassName = 'title';
|
|
27
|
-
|
|
28
20
|
var Title = _ref => {
|
|
29
21
|
var {
|
|
30
22
|
id,
|
|
@@ -40,96 +32,81 @@ var Title = _ref => {
|
|
|
40
32
|
subtitleAs: SubtitleWrapper,
|
|
41
33
|
subtitleClassName,
|
|
42
34
|
subtitleStyle,
|
|
43
|
-
subtitleProps
|
|
44
|
-
|
|
35
|
+
subtitleProps
|
|
36
|
+
// ...otherProps
|
|
45
37
|
} = _ref;
|
|
46
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
47
39
|
id: id,
|
|
48
40
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
49
41
|
style: style
|
|
50
42
|
}, /*#__PURE__*/React.createElement(HeadingWrapper, _extends({
|
|
51
|
-
className: [headingClassName,
|
|
43
|
+
className: [headingClassName, _exports.default.heading].filter(e => e).join(' '),
|
|
52
44
|
style: headingStyle
|
|
53
45
|
}, headingProps), heading), subtitle && /*#__PURE__*/React.createElement(SubtitleWrapper, _extends({
|
|
54
|
-
className: [subtitleClassName,
|
|
46
|
+
className: [subtitleClassName, _exports.default.subtitle].filter(e => e).join(' '),
|
|
55
47
|
style: subtitleStyle
|
|
56
48
|
}, subtitleProps), subtitle));
|
|
57
49
|
};
|
|
58
|
-
|
|
59
50
|
Title.propTypes = {
|
|
60
51
|
/**
|
|
61
52
|
* The HTML id for this element
|
|
62
53
|
*/
|
|
63
54
|
id: _propTypes.default.string,
|
|
64
|
-
|
|
65
55
|
/**
|
|
66
56
|
* The HTML class names for this element
|
|
67
57
|
*/
|
|
68
58
|
className: _propTypes.default.string,
|
|
69
|
-
|
|
70
59
|
/**
|
|
71
60
|
* The React-written, css properties for this element.
|
|
72
61
|
*/
|
|
73
62
|
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
74
|
-
|
|
75
63
|
/**
|
|
76
64
|
* The heading
|
|
77
65
|
*/
|
|
78
66
|
heading: _propTypes.default.node.isRequired,
|
|
79
|
-
|
|
80
67
|
/**
|
|
81
68
|
* The node to display the heading with
|
|
82
69
|
*/
|
|
83
70
|
headingAs: _propTypes.default.node,
|
|
84
|
-
|
|
85
71
|
/**
|
|
86
72
|
* The heading html class
|
|
87
73
|
*/
|
|
88
74
|
headingClassName: _propTypes.default.string,
|
|
89
|
-
|
|
90
75
|
/**
|
|
91
76
|
* The JSX-Written, css styles to apply to the element.
|
|
92
77
|
*/
|
|
93
78
|
headingStyle: _propTypes.default.objectOf(_propTypes.default.string),
|
|
94
|
-
|
|
95
79
|
/**
|
|
96
80
|
* Extra props to pass to the heading
|
|
97
81
|
*/
|
|
98
|
-
|
|
99
82
|
/* eslint-disable react/forbid-prop-types -- Does not apply to a full prop object */
|
|
100
83
|
headingProps: _propTypes.default.object,
|
|
101
|
-
|
|
102
84
|
/* eslint-enable react/forbid-prop-types */
|
|
103
85
|
|
|
104
86
|
/**
|
|
105
87
|
* The subtitle
|
|
106
88
|
*/
|
|
107
89
|
subtitle: _propTypes.default.node,
|
|
108
|
-
|
|
109
90
|
/**
|
|
110
91
|
* The node to display the heading with
|
|
111
92
|
*/
|
|
112
93
|
subtitleAs: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
113
|
-
|
|
114
94
|
/**
|
|
115
95
|
* The subtitle html class
|
|
116
96
|
*/
|
|
117
97
|
subtitleClassName: _propTypes.default.string,
|
|
118
|
-
|
|
119
98
|
/**
|
|
120
99
|
* The JSX-Written, css styles to apply to the element.
|
|
121
100
|
*/
|
|
122
101
|
subtitleStyle: _propTypes.default.objectOf(_propTypes.default.string),
|
|
123
|
-
|
|
124
102
|
/**
|
|
125
103
|
* Extra props to pass to the subtitle
|
|
126
104
|
*/
|
|
127
|
-
|
|
128
105
|
/* eslint-disable react/forbid-prop-types -- Does not apply to a full prop object */
|
|
129
106
|
subtitleProps: _propTypes.default.object
|
|
130
107
|
/* eslint-enable react/forbid-prop-types */
|
|
131
|
-
|
|
132
108
|
};
|
|
109
|
+
|
|
133
110
|
Title.defaultProps = {
|
|
134
111
|
headingAs: 'h1',
|
|
135
112
|
subtitleAs: 'p'
|
package/dist/cjs/b/index.js
CHANGED
|
@@ -9,22 +9,10 @@ Object.defineProperty(exports, "Button", {
|
|
|
9
9
|
return _Button.Button;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _Segment.Segment;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "Card", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _Card.Card;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "Title", {
|
|
12
|
+
Object.defineProperty(exports, "Logo", {
|
|
25
13
|
enumerable: true,
|
|
26
14
|
get: function get() {
|
|
27
|
-
return
|
|
15
|
+
return _Logo.Logo;
|
|
28
16
|
}
|
|
29
17
|
});
|
|
30
18
|
Object.defineProperty(exports, "Page", {
|
|
@@ -33,10 +21,10 @@ Object.defineProperty(exports, "Page", {
|
|
|
33
21
|
return _Page.Page;
|
|
34
22
|
}
|
|
35
23
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "SocialMediaButton", {
|
|
37
25
|
enumerable: true,
|
|
38
26
|
get: function get() {
|
|
39
|
-
return
|
|
27
|
+
return _SocialMediaButton.SocialMediaButton;
|
|
40
28
|
}
|
|
41
29
|
});
|
|
42
30
|
Object.defineProperty(exports, "ThemeSelector", {
|
|
@@ -45,41 +33,15 @@ Object.defineProperty(exports, "ThemeSelector", {
|
|
|
45
33
|
return _ThemeSelector.ThemeSelector;
|
|
46
34
|
}
|
|
47
35
|
});
|
|
48
|
-
Object.defineProperty(exports, "
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _Logo.Logo;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "SocialMediaButton", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _SocialMediaButton.SocialMediaButton;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "Metrics", {
|
|
36
|
+
Object.defineProperty(exports, "Title", {
|
|
61
37
|
enumerable: true,
|
|
62
38
|
get: function get() {
|
|
63
|
-
return
|
|
39
|
+
return _Title.Title;
|
|
64
40
|
}
|
|
65
41
|
});
|
|
66
|
-
|
|
67
42
|
var _Button = require("./Button");
|
|
68
|
-
|
|
69
|
-
var _Segment = require("./Segment");
|
|
70
|
-
|
|
71
|
-
var _Card = require("./Card");
|
|
72
|
-
|
|
73
|
-
var _Title = require("./Title");
|
|
74
|
-
|
|
75
|
-
var _Page = require("./Page");
|
|
76
|
-
|
|
77
|
-
var _QuestionDropdown = require("./QuestionDropdown");
|
|
78
|
-
|
|
79
|
-
var _ThemeSelector = require("./ThemeSelector");
|
|
80
|
-
|
|
81
43
|
var _Logo = require("./Logo");
|
|
82
|
-
|
|
44
|
+
var _Page = require("./Page");
|
|
83
45
|
var _SocialMediaButton = require("./SocialMediaButton");
|
|
84
|
-
|
|
85
|
-
var
|
|
46
|
+
var _ThemeSelector = require("./ThemeSelector");
|
|
47
|
+
var _Title = require("./Title");
|
|
@@ -4,59 +4,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _reactRouterDom = require("react-router-dom");
|
|
13
|
-
|
|
14
|
-
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
15
|
-
|
|
10
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
16
11
|
var _Context = _interopRequireDefault(require("./Context"));
|
|
17
|
-
|
|
18
12
|
var _common = require("./common");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
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); }
|
|
23
|
-
|
|
24
15
|
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; }
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
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; }
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
20
|
+
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); }
|
|
32
21
|
// Local Definitions
|
|
33
|
-
var baseClassName = _bem.default.base;
|
|
34
|
-
var componentClassName = 'content-slides';
|
|
35
22
|
|
|
23
|
+
var baseClassName = _exports.default.base;
|
|
24
|
+
var componentClassName = 'content-slides';
|
|
36
25
|
var reducer = (state, action) => {
|
|
37
26
|
switch (action.type) {
|
|
38
27
|
case 'SET_STEP_INDEX':
|
|
39
28
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40
29
|
currentStepIndex: action.payload
|
|
41
30
|
});
|
|
42
|
-
|
|
43
31
|
case 'SET_CURRENT_STEP':
|
|
44
32
|
return _objectSpread(_objectSpread({}, state), action.payload);
|
|
45
|
-
|
|
46
33
|
case 'SET_EXTRA_CONTEXT':
|
|
47
34
|
return _objectSpread(_objectSpread({}, state), action.payload);
|
|
48
|
-
|
|
49
35
|
default:
|
|
50
36
|
return state;
|
|
51
37
|
}
|
|
52
38
|
};
|
|
39
|
+
|
|
53
40
|
/**
|
|
54
41
|
* This is the component description.
|
|
55
42
|
* Colors :
|
|
56
43
|
* `y` : the background of the content
|
|
57
44
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
45
|
var ContentSlides = _ref => {
|
|
61
46
|
var {
|
|
62
47
|
id,
|
|
@@ -65,8 +50,8 @@ var ContentSlides = _ref => {
|
|
|
65
50
|
children,
|
|
66
51
|
steps,
|
|
67
52
|
simple,
|
|
68
|
-
isDebug
|
|
69
|
-
|
|
53
|
+
isDebug
|
|
54
|
+
// ...otherProps
|
|
70
55
|
} = _ref;
|
|
71
56
|
(0, React.useLayoutEffect)(() => {
|
|
72
57
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
@@ -81,10 +66,8 @@ var ContentSlides = _ref => {
|
|
|
81
66
|
isFirstStep,
|
|
82
67
|
isLastStep
|
|
83
68
|
} = state;
|
|
84
|
-
|
|
85
69
|
var setNextStepIndex = function setNextStepIndex() {
|
|
86
70
|
var step = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
87
|
-
|
|
88
71
|
if (!isLastStep) {
|
|
89
72
|
dispatch({
|
|
90
73
|
type: 'SET_STEP_INDEX',
|
|
@@ -92,10 +75,8 @@ var ContentSlides = _ref => {
|
|
|
92
75
|
});
|
|
93
76
|
}
|
|
94
77
|
};
|
|
95
|
-
|
|
96
78
|
var setPrevStepIndex = function setPrevStepIndex() {
|
|
97
79
|
var step = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
98
|
-
|
|
99
80
|
if (!isFirstStep) {
|
|
100
81
|
dispatch({
|
|
101
82
|
type: 'SET_STEP_INDEX',
|
|
@@ -103,21 +84,17 @@ var ContentSlides = _ref => {
|
|
|
103
84
|
});
|
|
104
85
|
}
|
|
105
86
|
};
|
|
106
|
-
|
|
107
87
|
var setStepIndex = index => {
|
|
108
88
|
dispatch({
|
|
109
89
|
type: 'SET_STEP_INDEX',
|
|
110
90
|
payload: index
|
|
111
91
|
});
|
|
112
92
|
};
|
|
113
|
-
|
|
114
93
|
var setCurrentStep = index => {
|
|
115
94
|
var newStep = steps[index];
|
|
116
|
-
|
|
117
95
|
if (newStep.location) {
|
|
118
96
|
history.push(newStep.location);
|
|
119
97
|
}
|
|
120
|
-
|
|
121
98
|
dispatch({
|
|
122
99
|
type: 'SET_CURRENT_STEP',
|
|
123
100
|
payload: {
|
|
@@ -127,7 +104,6 @@ var ContentSlides = _ref => {
|
|
|
127
104
|
}
|
|
128
105
|
});
|
|
129
106
|
};
|
|
130
|
-
|
|
131
107
|
(0, React.useLayoutEffect)(() => {
|
|
132
108
|
setCurrentStep(currentStepIndex);
|
|
133
109
|
}, [currentStepIndex]);
|
|
@@ -146,28 +122,23 @@ var ContentSlides = _ref => {
|
|
|
146
122
|
style: style
|
|
147
123
|
}, children));
|
|
148
124
|
};
|
|
149
|
-
|
|
150
125
|
ContentSlides.propTypes = {
|
|
151
126
|
/**
|
|
152
127
|
* The HTML id for this element
|
|
153
128
|
*/
|
|
154
129
|
id: _propTypes.default.string,
|
|
155
|
-
|
|
156
130
|
/**
|
|
157
131
|
* The HTML class names for this element
|
|
158
132
|
*/
|
|
159
133
|
className: _propTypes.default.string,
|
|
160
|
-
|
|
161
134
|
/**
|
|
162
135
|
* The React-written, css properties for this element.
|
|
163
136
|
*/
|
|
164
137
|
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
165
|
-
|
|
166
138
|
/**
|
|
167
139
|
* The children JSX
|
|
168
140
|
*/
|
|
169
141
|
children: _propTypes.default.node,
|
|
170
|
-
|
|
171
142
|
/**
|
|
172
143
|
* The slides properties
|
|
173
144
|
*/
|
|
@@ -177,12 +148,10 @@ ContentSlides.propTypes = {
|
|
|
177
148
|
progress: _propTypes.default.number.isRequired,
|
|
178
149
|
location: _propTypes.default.string.isRequired
|
|
179
150
|
})),
|
|
180
|
-
|
|
181
151
|
/**
|
|
182
152
|
* Whether this shouldn't use a sidebar on desktop
|
|
183
153
|
*/
|
|
184
154
|
simple: _propTypes.default.bool,
|
|
185
|
-
|
|
186
155
|
/**
|
|
187
156
|
* Whether the debug mode is enabled
|
|
188
157
|
*/
|
|
@@ -4,13 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
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
|
-
|
|
12
9
|
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
10
|
var _default = /*#__PURE__*/React.createContext({});
|
|
15
|
-
|
|
16
11
|
exports.default = _default;
|
|
@@ -4,33 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
-
|
|
9
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
14
10
|
var _a = require("../../../../a");
|
|
15
|
-
|
|
16
11
|
var _b = require("../../../../b");
|
|
17
|
-
|
|
18
12
|
var _useContentSlides = _interopRequireDefault(require("../../useContentSlides"));
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
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); }
|
|
23
|
-
|
|
24
15
|
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; }
|
|
25
|
-
|
|
26
16
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
17
|
+
|
|
27
18
|
// Local Definitions
|
|
19
|
+
|
|
28
20
|
// const baseClassName = styleNames.base
|
|
21
|
+
|
|
29
22
|
var componentClassName = 'horizontal-menu';
|
|
23
|
+
|
|
30
24
|
/**
|
|
31
25
|
* This is the component description.
|
|
32
26
|
*/
|
|
33
|
-
|
|
34
27
|
var HorizontalMenu = _ref => {
|
|
35
28
|
var {
|
|
36
29
|
id,
|
|
@@ -39,18 +32,18 @@ var HorizontalMenu = _ref => {
|
|
|
39
32
|
logoColor,
|
|
40
33
|
hideBackIcon,
|
|
41
34
|
stepsBackwards,
|
|
42
|
-
customPrevStep
|
|
43
|
-
|
|
35
|
+
customPrevStep,
|
|
36
|
+
color
|
|
37
|
+
// ...otherProps
|
|
44
38
|
} = _ref;
|
|
45
39
|
var {
|
|
46
40
|
setPrevStepIndex,
|
|
47
41
|
// setNextStepIndex,
|
|
48
42
|
currentStep,
|
|
49
|
-
isFirstStep
|
|
43
|
+
isFirstStep
|
|
44
|
+
// currentStep,
|
|
50
45
|
// currentStepIndex,
|
|
51
|
-
|
|
52
46
|
} = (0, _useContentSlides.default)();
|
|
53
|
-
|
|
54
47
|
var mobilePreviousStep = () => {
|
|
55
48
|
if (customPrevStep) {
|
|
56
49
|
customPrevStep();
|
|
@@ -58,78 +51,77 @@ var HorizontalMenu = _ref => {
|
|
|
58
51
|
setPrevStepIndex(stepsBackwards);
|
|
59
52
|
}
|
|
60
53
|
};
|
|
61
|
-
|
|
62
54
|
return /*#__PURE__*/React.createElement("div", {
|
|
63
55
|
id: id,
|
|
64
|
-
className: [
|
|
56
|
+
className: [
|
|
57
|
+
// baseClassName,
|
|
58
|
+
|
|
65
59
|
componentClassName, userClassName].filter(e => e).join(' '),
|
|
66
60
|
style: style
|
|
67
61
|
}, (currentStep === null || currentStep === void 0 ? void 0 : currentStep.progress) > 0 && /*#__PURE__*/React.createElement(_a.ProgressBar, {
|
|
68
62
|
progress: currentStep.progress,
|
|
69
63
|
attached: true,
|
|
70
64
|
height: ".4em",
|
|
71
|
-
color:
|
|
72
|
-
className: "y-background1 b-
|
|
65
|
+
color: color,
|
|
66
|
+
className: "y-background1 b-hard-y"
|
|
73
67
|
}), /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
className:
|
|
68
|
+
className: _exports.default.elementContent
|
|
75
69
|
}, /*#__PURE__*/React.createElement("div", {
|
|
76
70
|
className: "left"
|
|
77
71
|
}, !isFirstStep && !hideBackIcon && /*#__PURE__*/React.createElement("span", {
|
|
78
|
-
className: "
|
|
72
|
+
className: "prev-button pointer",
|
|
79
73
|
onClick: mobilePreviousStep,
|
|
80
74
|
role: "button",
|
|
81
75
|
onKeyDown: mobilePreviousStep,
|
|
82
76
|
tabIndex: 0
|
|
83
|
-
},
|
|
77
|
+
}, '<--')), /*#__PURE__*/React.createElement("div", {
|
|
84
78
|
className: "title"
|
|
85
79
|
}, /*#__PURE__*/React.createElement("span", {
|
|
86
80
|
className: "md-h lg-h"
|
|
87
81
|
}, currentStep === null || currentStep === void 0 ? void 0 : currentStep.title), /*#__PURE__*/React.createElement(_b.Logo, {
|
|
88
|
-
className: "xs-h sm-h",
|
|
89
|
-
height: "
|
|
82
|
+
className: "xs-h sm-h y-transparent",
|
|
83
|
+
height: "1.1em",
|
|
90
84
|
color: logoColor
|
|
91
85
|
}))));
|
|
92
86
|
};
|
|
93
|
-
|
|
94
87
|
HorizontalMenu.propTypes = {
|
|
95
88
|
/**
|
|
96
89
|
* The HTML id for this element
|
|
97
90
|
*/
|
|
98
91
|
id: _propTypes.default.string,
|
|
99
|
-
|
|
100
92
|
/**
|
|
101
93
|
* The HTML class names for this element
|
|
102
94
|
*/
|
|
103
95
|
className: _propTypes.default.string,
|
|
104
|
-
|
|
105
96
|
/**
|
|
106
97
|
* The React-written, css properties for this element.
|
|
107
98
|
*/
|
|
108
99
|
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
109
|
-
|
|
110
100
|
/**
|
|
111
101
|
* Number of backward steps for the customPrevStep
|
|
112
102
|
*/
|
|
113
103
|
stepsBackwards: _propTypes.default.number,
|
|
114
|
-
|
|
115
104
|
/**
|
|
116
105
|
* A custom previous function
|
|
117
106
|
*/
|
|
118
107
|
customPrevStep: _propTypes.default.func,
|
|
119
|
-
|
|
120
108
|
/**
|
|
121
109
|
* The logo color
|
|
122
110
|
*/
|
|
123
111
|
logoColor: _propTypes.default.string,
|
|
124
|
-
|
|
125
112
|
/**
|
|
126
113
|
* Hide back icon boolean
|
|
127
114
|
*/
|
|
128
|
-
hideBackIcon: _propTypes.default.bool
|
|
115
|
+
hideBackIcon: _propTypes.default.bool,
|
|
116
|
+
/**
|
|
117
|
+
* String that will represent color for Progress bar
|
|
118
|
+
*/
|
|
119
|
+
color: _propTypes.default.string
|
|
129
120
|
};
|
|
130
121
|
HorizontalMenu.defaultProps = {
|
|
131
|
-
logoColor: '
|
|
132
|
-
stepsBackwards: 1
|
|
122
|
+
logoColor: 'paragraph',
|
|
123
|
+
stepsBackwards: 1,
|
|
124
|
+
color: 'main2'
|
|
133
125
|
};
|
|
134
126
|
var _default = HorizontalMenu;
|
|
135
127
|
exports.default = _default;
|
|
@@ -9,7 +9,5 @@ Object.defineProperty(exports, "HorizontalMenu", {
|
|
|
9
9
|
return _HorizontalMenu.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _HorizontalMenu = _interopRequireDefault(require("./HorizontalMenu"));
|
|
14
|
-
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|