@pareto-engineering/design-system 0.0.1-alpha.8 → 0.0.4-testing-id.0
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/.env.scripts.example +4 -0
- package/.eslintrc.js +21 -37
- package/.storybook/main.js +40 -26
- package/babel.config.js +5 -0
- package/config/global-setup.js +3 -0
- package/dist/cjs/a/Alert/Alert.js +123 -0
- package/dist/cjs/a/Alert/index.js +13 -0
- package/dist/cjs/a/Alert/styles.scss +74 -0
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +105 -0
- package/dist/cjs/a/AnimatedCounter/index.js +13 -0
- package/dist/cjs/a/AnimatedCounter/styles.scss +16 -0
- package/dist/cjs/a/AppContext/Context.js +11 -0
- package/dist/cjs/a/AppContext/ContextProvider.js +83 -0
- 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 +9 -9
- package/dist/cjs/a/BackgroundGradient/BackgroundGradient.js +67 -0
- 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 +66 -0
- package/dist/cjs/a/ContentCard/common/Section/Section.js +69 -0
- package/dist/cjs/a/ContentCard/common/Section/index.js +13 -0
- package/dist/cjs/{c/TeamGallery → a/ContentCard}/common/index.js +3 -4
- package/dist/cjs/{c/TeamGallery → a/ContentCard}/index.js +3 -5
- package/dist/cjs/a/ContentCard/styles.scss +78 -0
- package/dist/cjs/a/ContentTree/ContentTree.js +70 -0
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +104 -0
- package/dist/cjs/a/ContentTree/common/Tree/index.js +13 -0
- 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/a/ContentTree/index.js +13 -0
- package/dist/cjs/a/ContentTree/styles.scss +33 -0
- package/dist/cjs/a/Conversation/Context.js +11 -0
- package/dist/cjs/a/Conversation/Conversation.js +89 -0
- package/dist/cjs/a/Conversation/common/Message/Message.js +101 -0
- package/dist/cjs/a/Conversation/common/Message/index.js +13 -0
- package/dist/cjs/a/Conversation/common/index.js +12 -0
- package/dist/cjs/a/Conversation/index.js +27 -0
- package/dist/cjs/a/Conversation/styles.scss +153 -0
- package/dist/cjs/a/Conversation/useConversation.js +11 -0
- package/dist/cjs/a/CustomerLogos/CustomerLogos.js +77 -0
- package/dist/cjs/a/CustomerLogos/index.js +13 -0
- package/dist/cjs/a/CustomerLogos/styles.scss +41 -0
- package/dist/cjs/a/CustomerStat/CustomerStat.js +75 -0
- package/dist/cjs/a/CustomerStat/index.js +13 -0
- package/dist/cjs/a/CustomerStat/styles.scss +16 -0
- package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +12 -21
- package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +13 -20
- package/dist/cjs/a/DashboardNavbar/common/NavItem/index.js +0 -2
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +13 -20
- 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 +91 -0
- package/dist/cjs/a/DotInfo/index.js +13 -0
- package/dist/cjs/a/DotInfo/styles.scss +20 -0
- package/dist/cjs/a/FeaturedOn/FeaturedOn.js +79 -0
- package/dist/cjs/{c/TeamGallery/common/PersonCard → a/FeaturedOn}/index.js +3 -5
- package/dist/cjs/a/FeaturedOn/styles.scss +41 -0
- package/dist/cjs/a/Figure/Figure.js +73 -0
- package/dist/cjs/a/Figure/index.js +13 -0
- package/dist/cjs/a/Figure/styles.scss +19 -0
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +88 -0
- package/dist/cjs/a/HamburgerButton/index.js +13 -0
- package/dist/cjs/a/HamburgerButton/styles.scss +41 -0
- package/dist/cjs/a/IconList/IconList.js +84 -0
- package/dist/cjs/a/IconList/common/Item/Item.js +80 -0
- package/dist/cjs/a/IconList/common/Item/index.js +13 -0
- package/dist/cjs/a/IconList/common/index.js +12 -0
- package/dist/cjs/a/IconList/index.js +13 -0
- package/dist/cjs/a/IconList/styles.scss +37 -0
- package/dist/cjs/a/Label/Label.js +74 -0
- package/dist/cjs/a/Label/index.js +13 -0
- package/dist/cjs/a/Label/styles.scss +34 -0
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +107 -0
- package/dist/cjs/a/LoadingCircle/index.js +13 -0
- package/dist/cjs/a/LoadingCircle/styles.scss +49 -0
- package/dist/cjs/a/OvalIllustration/OvalIllustration.js +115 -0
- package/dist/cjs/a/OvalIllustration/index.js +13 -0
- package/dist/cjs/a/OvalIllustration/styles.scss +102 -0
- package/dist/cjs/a/People/People.js +80 -0
- package/dist/cjs/a/People/common/Person/Person.js +84 -0
- package/dist/cjs/a/People/common/Person/index.js +13 -0
- package/dist/cjs/a/People/common/index.js +12 -0
- package/dist/cjs/a/People/index.js +13 -0
- package/dist/cjs/a/People/styles.scss +52 -0
- package/dist/cjs/a/Popover/Popover.js +115 -0
- package/dist/cjs/a/Popover/index.js +13 -0
- package/dist/cjs/a/Popover/styles.scss +33 -0
- package/dist/cjs/a/ProgressBar/ProgressBar.js +86 -0
- package/dist/cjs/a/ProgressBar/index.js +13 -0
- package/dist/cjs/a/ProgressBar/styles.scss +37 -0
- package/dist/cjs/a/Quote/Quote.js +83 -0
- package/dist/cjs/a/Quote/index.js +13 -0
- package/dist/cjs/a/Quote/styles.scss +53 -0
- package/dist/cjs/a/SVG/SVG.js +138 -0
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +74 -0
- package/dist/cjs/a/SVG/common/UseSVG/index.js +13 -0
- package/dist/cjs/a/SVG/common/index.js +12 -0
- package/dist/cjs/a/SVG/index.js +13 -0
- package/dist/cjs/a/SVG/styles.scss +57 -0
- package/dist/cjs/a/Shapes/Shapes.js +156 -0
- package/dist/cjs/a/Shapes/index.js +13 -0
- package/dist/cjs/a/Shapes/styles.scss +255 -0
- package/dist/cjs/a/SnapScroller/SnapScroller.js +66 -0
- 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 +63 -0
- package/dist/cjs/a/Spinner/index.js +13 -0
- package/dist/cjs/a/Spinner/styles.scss +23 -0
- package/dist/cjs/a/TeamInfo/TeamInfo.js +90 -0
- package/dist/cjs/a/TeamInfo/index.js +13 -0
- package/dist/cjs/a/TeamInfo/styles.scss +58 -0
- package/dist/cjs/a/Timestamp/Timestamp.js +122 -0
- package/dist/cjs/a/Timestamp/index.js +13 -0
- package/dist/cjs/a/Timestamp/styles.scss +7 -0
- package/dist/cjs/a/index.js +190 -10
- package/dist/cjs/b/Button/Button.js +50 -33
- package/dist/cjs/b/Button/index.js +0 -2
- package/dist/cjs/b/Button/styles.scss +104 -8
- package/dist/cjs/b/Card/Card.js +9 -20
- 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/index.js +0 -1
- package/dist/cjs/b/Card/index.js +0 -2
- package/dist/cjs/b/Logo/Logo.js +124 -0
- package/dist/cjs/b/Logo/index.js +13 -0
- package/dist/cjs/b/Logo/styles.scss +9 -0
- package/dist/cjs/b/Metrics/Metrics.js +78 -0
- package/dist/cjs/b/Metrics/index.js +13 -0
- package/dist/cjs/b/Metrics/styles.scss +91 -0
- package/dist/cjs/b/Page/Context.js +2 -7
- package/dist/cjs/b/Page/Page.js +16 -34
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +43 -49
- package/dist/cjs/b/Page/common/PageHelmet/index.js +0 -2
- package/dist/cjs/b/Page/common/Section/Section.js +59 -31
- 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/styles.scss +8 -2
- package/dist/cjs/b/Page/usePage.js +0 -5
- package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +29 -36
- package/dist/cjs/b/QuestionDropdown/index.js +0 -2
- package/dist/cjs/b/QuestionDropdown/styles.scss +3 -3
- package/dist/cjs/b/Segment/Segment.js +9 -20
- package/dist/cjs/b/Segment/index.js +0 -2
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +119 -0
- package/dist/cjs/b/SocialMediaButton/index.js +13 -0
- package/dist/cjs/b/SocialMediaButton/styles.scss +49 -0
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +89 -0
- package/dist/cjs/b/ThemeSelector/index.js +13 -0
- package/dist/cjs/b/ThemeSelector/styles.scss +14 -0
- package/dist/cjs/b/Title/Title.js +9 -32
- package/dist/cjs/b/Title/index.js +0 -2
- package/dist/cjs/b/index.js +35 -13
- package/dist/cjs/c/ContentSlides/ContentSlides.js +169 -0
- package/dist/cjs/c/ContentSlides/Context.js +11 -0
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +127 -0
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +13 -0
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +129 -0
- package/dist/cjs/c/ContentSlides/common/Navigator/index.js +13 -0
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +95 -0
- package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +13 -0
- package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +76 -0
- package/dist/cjs/c/ContentSlides/common/Slide/index.js +13 -0
- package/dist/cjs/c/ContentSlides/common/index.js +33 -0
- package/dist/cjs/c/ContentSlides/index.js +27 -0
- package/dist/cjs/c/ContentSlides/styles.scss +314 -0
- package/dist/cjs/c/ContentSlides/useContentSlides.js +11 -0
- package/dist/cjs/c/Hero/Hero.js +77 -0
- package/dist/cjs/c/Hero/index.js +13 -0
- package/dist/cjs/c/Hero/styles.scss +41 -0
- package/dist/cjs/c/Shortener/Shortener.js +100 -0
- package/dist/cjs/c/Shortener/index.js +13 -0
- package/dist/cjs/c/Shortener/styles.scss +7 -0
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +105 -0
- package/dist/cjs/c/SocialMediaShareButton/index.js +13 -0
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +39 -0
- package/dist/cjs/c/index.js +30 -4
- package/dist/cjs/d/index.js +1 -0
- package/dist/cjs/f/FormInput/FormInput.js +116 -0
- package/dist/cjs/f/FormInput/index.js +13 -0
- package/dist/cjs/f/FormInput/styles.scss +11 -0
- package/dist/cjs/f/common/Debugger/Debugger.js +68 -0
- package/dist/cjs/f/common/Debugger/index.js +13 -0
- package/dist/cjs/f/common/Debugger/styles.scss +12 -0
- package/dist/cjs/f/common/Description/Description.js +75 -0
- package/dist/cjs/f/common/Description/index.js +13 -0
- package/dist/cjs/f/common/Description/styles.scss +10 -0
- package/dist/cjs/f/common/Label/Label.js +84 -0
- package/dist/cjs/f/common/Label/index.js +13 -0
- package/dist/cjs/f/common/Label/styles.scss +8 -0
- package/dist/cjs/f/common/index.js +26 -0
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +100 -0
- 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 +139 -0
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +105 -0
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +13 -0
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +12 -0
- package/dist/cjs/f/fields/ChoicesInput/index.js +13 -0
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +67 -0
- 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/f/fields/QueryCombobox/common/Menu/Menu.js +87 -0
- 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/f/fields/QuerySelect/index.js +13 -0
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +130 -0
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +118 -0
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +13 -0
- package/dist/cjs/f/fields/RatingsInput/common/index.js +12 -0
- package/dist/cjs/f/fields/RatingsInput/index.js +13 -0
- package/dist/cjs/f/fields/RatingsInput/styles.scss +52 -0
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +148 -0
- package/dist/cjs/f/fields/SelectInput/index.js +13 -0
- package/dist/cjs/f/fields/SelectInput/styles.scss +50 -0
- package/dist/cjs/f/fields/TextInput/TextInput.js +142 -0
- package/dist/cjs/f/fields/TextInput/index.js +13 -0
- package/dist/cjs/f/fields/TextInput/styles.scss +35 -0
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +155 -0
- package/dist/cjs/f/fields/TextareaInput/index.js +13 -0
- package/dist/cjs/f/fields/TextareaInput/styles.scss +32 -0
- package/dist/cjs/f/fields/index.js +61 -0
- package/dist/cjs/f/index.js +39 -0
- package/dist/cjs/form-reset.scss +86 -0
- package/dist/cjs/form.scss +34 -0
- package/dist/cjs/index.js +44 -8
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +42 -39
- package/dist/cjs/r/SwitchRouteMap/index.js +0 -2
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +18 -29
- 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/test/QueryLoader/QueryLoader.js +34 -0
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +64 -0
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +41 -0
- 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/test/index.js +12 -0
- 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 +112 -0
- package/dist/es/a/Alert/index.js +2 -0
- package/dist/es/a/Alert/styles.scss +74 -0
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +98 -0
- package/dist/es/a/AnimatedCounter/index.js +2 -0
- package/dist/es/a/AnimatedCounter/styles.scss +16 -0
- package/dist/es/a/{SiteContext → AppContext}/Context.js +0 -0
- package/dist/es/a/AppContext/ContextProvider.js +78 -0
- package/dist/es/a/AppContext/index.js +5 -0
- package/dist/es/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
- package/dist/es/a/{SiteContext → AppContext}/useTheme.js +12 -8
- package/dist/es/a/BackgroundGradient/BackgroundGradient.js +56 -0
- 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 +61 -0
- package/dist/es/a/ContentCard/common/Section/Section.js +59 -0
- package/dist/es/a/ContentCard/common/Section/index.js +2 -0
- package/dist/es/a/ContentCard/common/index.js +1 -0
- package/dist/es/a/ContentCard/index.js +2 -0
- package/dist/es/a/ContentCard/styles.scss +78 -0
- package/dist/es/a/ContentTree/ContentTree.js +64 -0
- package/dist/es/a/ContentTree/common/Tree/Tree.js +95 -0
- package/dist/es/a/ContentTree/common/Tree/index.js +2 -0
- 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/Context.js +2 -0
- package/dist/es/a/Conversation/Conversation.js +84 -0
- package/dist/es/a/Conversation/common/Message/Message.js +91 -0
- package/dist/es/a/Conversation/common/Message/index.js +2 -0
- package/dist/es/a/Conversation/common/index.js +1 -0
- package/dist/es/a/Conversation/index.js +4 -0
- package/dist/es/a/Conversation/styles.scss +153 -0
- package/dist/es/a/Conversation/useConversation.js +3 -0
- package/dist/es/a/CustomerLogos/CustomerLogos.js +70 -0
- package/dist/es/a/CustomerLogos/index.js +2 -0
- package/dist/es/a/CustomerLogos/styles.scss +41 -0
- package/dist/es/a/CustomerStat/CustomerStat.js +68 -0
- package/dist/es/a/CustomerStat/index.js +2 -0
- package/dist/es/a/CustomerStat/styles.scss +16 -0
- 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 +81 -0
- package/dist/es/a/DotInfo/index.js +2 -0
- package/dist/es/a/DotInfo/styles.scss +20 -0
- package/dist/es/a/FeaturedOn/FeaturedOn.js +72 -0
- package/dist/es/a/FeaturedOn/index.js +2 -0
- package/dist/es/a/FeaturedOn/styles.scss +41 -0
- package/dist/es/a/Figure/Figure.js +66 -0
- package/dist/es/a/Figure/index.js +2 -0
- package/dist/es/a/Figure/styles.scss +19 -0
- package/dist/es/a/HamburgerButton/HamburgerButton.js +78 -0
- package/dist/es/a/HamburgerButton/index.js +2 -0
- package/dist/es/a/HamburgerButton/styles.scss +41 -0
- package/dist/es/a/IconList/IconList.js +70 -0
- package/dist/es/a/IconList/common/Item/Item.js +66 -0
- package/dist/es/a/IconList/common/Item/index.js +2 -0
- package/dist/es/a/IconList/common/index.js +1 -0
- package/dist/es/a/IconList/index.js +2 -0
- package/dist/es/a/IconList/styles.scss +37 -0
- package/dist/es/a/Label/Label.js +67 -0
- package/dist/es/a/Label/index.js +2 -0
- package/dist/es/a/Label/styles.scss +34 -0
- package/dist/es/a/LoadingCircle/LoadingCircle.js +96 -0
- package/dist/es/a/LoadingCircle/index.js +2 -0
- package/dist/es/a/LoadingCircle/styles.scss +49 -0
- package/dist/es/a/OvalIllustration/OvalIllustration.js +104 -0
- package/dist/es/a/OvalIllustration/index.js +2 -0
- package/dist/es/a/OvalIllustration/styles.scss +102 -0
- package/dist/es/a/People/People.js +71 -0
- package/dist/es/a/People/common/Person/Person.js +74 -0
- package/dist/es/a/People/common/Person/index.js +2 -0
- package/dist/es/a/People/common/index.js +1 -0
- package/dist/es/a/People/index.js +2 -0
- package/dist/es/a/People/styles.scss +52 -0
- package/dist/es/a/Popover/Popover.js +109 -0
- package/dist/es/a/Popover/index.js +2 -0
- package/dist/es/a/Popover/styles.scss +33 -0
- package/dist/es/a/ProgressBar/ProgressBar.js +75 -0
- package/dist/es/a/ProgressBar/index.js +2 -0
- package/dist/es/a/ProgressBar/styles.scss +37 -0
- package/dist/es/a/Quote/Quote.js +76 -0
- package/dist/es/a/Quote/index.js +2 -0
- package/dist/es/a/Quote/styles.scss +53 -0
- package/dist/es/a/SVG/SVG.js +128 -0
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +62 -0
- package/dist/es/a/SVG/common/UseSVG/index.js +2 -0
- package/dist/es/a/SVG/common/index.js +1 -0
- package/dist/es/a/SVG/index.js +2 -0
- package/dist/es/a/SVG/styles.scss +57 -0
- package/dist/es/a/Shapes/Shapes.js +145 -0
- package/dist/es/a/Shapes/index.js +2 -0
- package/dist/es/a/Shapes/styles.scss +255 -0
- package/dist/es/a/SnapScroller/SnapScroller.js +59 -0
- 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 +56 -0
- package/dist/es/a/Spinner/index.js +2 -0
- package/dist/es/a/Spinner/styles.scss +23 -0
- package/dist/es/a/TeamInfo/TeamInfo.js +83 -0
- package/dist/es/a/TeamInfo/index.js +2 -0
- package/dist/es/a/TeamInfo/styles.scss +58 -0
- package/dist/es/a/Timestamp/Timestamp.js +115 -0
- package/dist/es/a/Timestamp/index.js +2 -0
- package/dist/es/a/Timestamp/styles.scss +7 -0
- package/dist/es/a/index.js +27 -1
- package/dist/es/b/Button/Button.js +52 -24
- package/dist/es/b/Button/styles.scss +104 -8
- package/dist/es/b/Card/Card.js +22 -20
- package/dist/es/b/Card/common/Group/Group.js +23 -22
- package/dist/es/b/Logo/Logo.js +117 -0
- package/dist/es/b/Logo/index.js +2 -0
- package/dist/es/b/Logo/styles.scss +9 -0
- package/dist/es/b/Metrics/Metrics.js +72 -0
- package/dist/es/b/Metrics/index.js +2 -0
- package/dist/es/b/Metrics/styles.scss +91 -0
- package/dist/es/b/Page/Page.js +20 -24
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +27 -26
- package/dist/es/b/Page/common/Section/Section.js +59 -18
- package/dist/es/b/Page/styles.scss +8 -2
- package/dist/es/b/QuestionDropdown/QuestionDropdown.js +34 -31
- package/dist/es/b/QuestionDropdown/styles.scss +3 -3
- package/dist/es/b/Segment/Segment.js +27 -26
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +108 -0
- package/dist/es/b/SocialMediaButton/index.js +2 -0
- package/dist/es/b/SocialMediaButton/styles.scss +49 -0
- package/dist/es/b/ThemeSelector/ThemeSelector.js +83 -0
- package/dist/es/b/ThemeSelector/index.js +2 -0
- package/dist/es/b/ThemeSelector/styles.scss +14 -0
- package/dist/es/b/Title/Title.js +38 -49
- package/dist/es/b/index.js +5 -1
- package/dist/es/c/ContentSlides/ContentSlides.js +165 -0
- package/dist/es/c/ContentSlides/Context.js +2 -0
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +117 -0
- package/dist/es/c/ContentSlides/common/HorizontalMenu/index.js +2 -0
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +119 -0
- package/dist/es/c/ContentSlides/common/Navigator/index.js +2 -0
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +85 -0
- package/dist/es/c/ContentSlides/common/Sidebar/index.js +2 -0
- package/dist/es/c/ContentSlides/common/Slide/Slide.js +66 -0
- package/dist/es/c/ContentSlides/common/Slide/index.js +2 -0
- package/dist/es/c/ContentSlides/common/index.js +4 -0
- package/dist/es/c/ContentSlides/index.js +4 -0
- package/dist/es/c/ContentSlides/styles.scss +314 -0
- package/dist/es/c/ContentSlides/useContentSlides.js +3 -0
- package/dist/es/c/{TeamGallery/TeamGallery.js → Hero/Hero.js} +34 -28
- package/dist/es/c/Hero/index.js +2 -0
- package/dist/es/c/Hero/styles.scss +41 -0
- package/dist/es/c/Shortener/Shortener.js +94 -0
- package/dist/es/c/Shortener/index.js +2 -0
- package/dist/es/c/Shortener/styles.scss +7 -0
- 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 +4 -1
- package/dist/es/d/index.js +0 -0
- package/dist/es/f/FormInput/FormInput.js +106 -0
- package/dist/es/f/FormInput/index.js +2 -0
- package/dist/es/f/FormInput/styles.scss +11 -0
- package/dist/es/f/common/Debugger/Debugger.js +61 -0
- package/dist/es/f/common/Debugger/index.js +2 -0
- package/dist/es/f/common/Debugger/styles.scss +12 -0
- package/dist/es/f/common/Description/Description.js +68 -0
- package/dist/es/f/common/Description/index.js +2 -0
- package/dist/es/f/common/Description/styles.scss +10 -0
- package/dist/es/f/common/Label/Label.js +77 -0
- package/dist/es/f/common/Label/index.js +2 -0
- package/dist/es/f/common/Label/styles.scss +8 -0
- package/dist/es/f/common/index.js +3 -0
- package/dist/es/f/fields/Checkbox/Checkbox.js +93 -0
- package/dist/es/f/fields/Checkbox/index.js +2 -0
- package/dist/es/f/fields/Checkbox/styles.scss +14 -0
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +130 -0
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +98 -0
- package/dist/es/f/fields/ChoicesInput/common/Choice/index.js +2 -0
- package/dist/es/f/fields/ChoicesInput/common/index.js +1 -0
- package/dist/es/f/fields/ChoicesInput/index.js +2 -0
- package/dist/es/f/fields/ChoicesInput/styles.scss +67 -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 +125 -0
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +110 -0
- package/dist/es/f/fields/RatingsInput/common/Rating/index.js +2 -0
- package/dist/es/f/fields/RatingsInput/common/index.js +1 -0
- package/dist/es/f/fields/RatingsInput/index.js +2 -0
- package/dist/es/f/fields/RatingsInput/styles.scss +52 -0
- package/dist/es/f/fields/SelectInput/SelectInput.js +141 -0
- package/dist/es/f/fields/SelectInput/index.js +2 -0
- package/dist/es/f/fields/SelectInput/styles.scss +50 -0
- package/dist/es/f/fields/TextInput/TextInput.js +135 -0
- package/dist/es/f/fields/TextInput/index.js +2 -0
- package/dist/es/f/fields/TextInput/styles.scss +35 -0
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +150 -0
- package/dist/es/f/fields/TextareaInput/index.js +2 -0
- package/dist/es/f/fields/TextareaInput/styles.scss +32 -0
- package/dist/es/f/fields/index.js +8 -0
- package/dist/es/f/index.js +3 -0
- package/dist/es/form-reset.scss +86 -0
- package/dist/es/form.scss +34 -0
- package/dist/es/index.js +5 -2
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +41 -30
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +19 -19
- 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 +3 -1
- package/package.json +18 -54
- package/relay.config.js +12 -0
- package/schema.graphql +4075 -0
- package/scripts/fetchSchema.js +74 -0
- package/src/__snapshots__/Storyshots.test.js.snap +16222 -727
- package/src/assets/images/Fundraising.svg +40 -0
- package/src/assets/images/ParetoSupport.svg +190 -0
- package/src/assets/images/ParetoWorld.svg +207 -0
- package/src/assets/images/email-attach.svg +1 -0
- package/src/assets/images/email-delete.svg +1 -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 +253 -0
- package/src/local.scss +7 -6
- package/src/stories/Introduction.stories.mdx +30 -18
- package/src/stories/StyleGuide/Sprites.stories.mdx +25 -0
- package/src/stories/StyleGuide/colors.stories.mdx +0 -10
- package/src/stories/StyleGuide/cssClasses.stories.mdx +16 -0
- package/src/stories/StyleGuide/helpers.js +27 -3
- package/src/stories/StyleGuide/icons.stories.mdx +29 -0
- package/src/stories/StyleGuide/typography.stories.mdx +14 -34
- package/src/stories/a/Alert.stories.jsx +75 -0
- package/src/stories/a/AnimatedCounter.stories.jsx +34 -0
- package/src/stories/a/AppContext.stories.jsx +42 -0
- package/src/stories/a/BackgroundGradient.stories.jsx +38 -0
- package/src/stories/a/ContentCard.stories.jsx +158 -0
- package/src/stories/a/ContentTree.stories.jsx +662 -0
- package/src/stories/a/Conversation.stories.jsx +123 -0
- package/src/stories/a/CustomerLogos.stories.jsx +35 -0
- package/src/stories/a/CustomerStat.stories.jsx +22 -0
- package/src/stories/a/DotInfo.stories.jsx +33 -0
- package/src/stories/a/FeaturedOn.stories.jsx +33 -0
- package/src/stories/a/Figure.stories.jsx +26 -0
- package/src/stories/a/HamburgerButton.stories.jsx +27 -0
- package/src/stories/a/IconList.stories.jsx +51 -0
- package/src/stories/a/Label.stories.jsx +49 -0
- package/src/stories/a/LoadingCircle.stories.jsx +28 -0
- package/src/stories/a/OvalIllustration.stories.jsx +59 -0
- package/src/stories/a/People.stories.jsx +72 -0
- package/src/stories/a/Popover.stories.jsx +106 -0
- package/src/stories/a/ProgressBar.stories.jsx +84 -0
- package/src/stories/a/Quote.stories.jsx +29 -0
- package/src/stories/a/SVG.stories.jsx +97 -0
- package/src/stories/a/Shapes.stories.jsx +143 -0
- package/src/stories/a/SnapScroller.stories.jsx +98 -0
- package/src/stories/a/Spinner.stories.jsx +25 -0
- package/src/stories/a/TeamInfo.stories.jsx +31 -0
- package/src/stories/a/Timestamp.stories.jsx +98 -0
- package/src/stories/b/Button.stories.jsx +86 -27
- package/src/stories/b/Logo.stories.jsx +46 -0
- package/src/stories/b/Metrics.stories.jsx +62 -0
- package/src/stories/b/Page.stories.jsx +51 -1
- package/src/stories/b/QuestionDropdown.stories.jsx +21 -16
- package/src/stories/b/SocialMediaButton.stories.jsx +56 -0
- package/src/stories/b/ThemeSelector.stories.jsx +53 -0
- package/src/stories/b/Title.stories.jsx +14 -16
- package/src/stories/c/ContentSlides.stories.jsx +232 -0
- package/src/stories/c/Hero.stories.jsx +46 -0
- package/src/stories/c/Shortener.stories.jsx +34 -0
- package/src/stories/c/SocialMediaShareButton.stories.jsx +33 -0
- package/src/stories/colors.js +14 -9
- package/src/stories/f/Checkbox.stories.jsx +95 -0
- package/src/stories/f/ChoicesInput.stories.jsx +140 -0
- package/src/stories/f/Description.stories.jsx +40 -0
- package/src/stories/f/FormInput.stories.jsx +451 -0
- package/src/stories/f/Label.stories.jsx +27 -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 +70 -0
- package/src/stories/f/SelectInput.stories.jsx +80 -0
- package/src/stories/f/TextInput.stories.jsx +106 -0
- package/src/stories/f/TextareaInput.stories.jsx +100 -0
- 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__/QueryComboboxAllTeamsQuery.graphql.js +139 -0
- package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/test/QueryLoader.stories.jsx +36 -0
- package/src/stories/utils/Router.jsx +20 -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/Alert/Alert.jsx +146 -0
- package/src/ui/a/Alert/index.js +2 -0
- package/src/ui/a/Alert/styles.scss +74 -0
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +118 -0
- package/src/ui/a/AnimatedCounter/index.js +2 -0
- package/src/ui/a/AnimatedCounter/styles.scss +16 -0
- package/src/ui/a/{SiteContext → AppContext}/Context.js +0 -0
- package/src/ui/a/AppContext/ContextProvider.jsx +90 -0
- package/src/ui/a/AppContext/index.js +5 -0
- package/src/ui/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
- package/src/ui/a/{SiteContext → AppContext}/useTheme.js +4 -1
- package/src/ui/a/BackgroundGradient/BackgroundGradient.jsx +76 -0
- package/src/ui/a/BackgroundGradient/index.js +2 -0
- package/src/ui/a/BackgroundGradient/styles.scss +16 -0
- package/src/ui/a/ContentCard/ContentCard.jsx +84 -0
- package/src/ui/{c/TeamGallery/common/PersonCard/PersonCard.jsx → a/ContentCard/common/Section/Section.jsx} +25 -32
- package/src/ui/a/ContentCard/common/Section/index.js +2 -0
- package/src/ui/a/ContentCard/common/index.js +1 -0
- package/src/ui/a/ContentCard/index.js +2 -0
- package/src/ui/a/ContentCard/styles.scss +78 -0
- package/src/ui/a/ContentTree/ContentTree.jsx +88 -0
- 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/Context.js +3 -0
- package/src/ui/a/Conversation/Conversation.jsx +115 -0
- package/src/ui/a/Conversation/common/Message/Message.jsx +122 -0
- package/src/ui/a/Conversation/common/Message/index.js +2 -0
- package/src/ui/a/Conversation/common/index.js +1 -0
- package/src/ui/a/Conversation/index.js +4 -0
- package/src/ui/a/Conversation/styles.scss +153 -0
- package/src/ui/a/Conversation/useConversation.js +4 -0
- package/src/ui/a/CustomerLogos/CustomerLogos.jsx +92 -0
- package/src/ui/a/CustomerLogos/index.js +2 -0
- package/src/ui/a/CustomerLogos/styles.scss +41 -0
- package/src/ui/a/CustomerStat/CustomerStat.jsx +88 -0
- package/src/ui/a/CustomerStat/index.js +2 -0
- package/src/ui/a/CustomerStat/styles.scss +16 -0
- package/src/ui/a/DotInfo/DotInfo.jsx +107 -0
- package/src/ui/a/DotInfo/index.js +2 -0
- package/src/ui/a/DotInfo/styles.scss +20 -0
- package/src/ui/a/FeaturedOn/FeaturedOn.jsx +95 -0
- package/src/ui/a/FeaturedOn/index.js +2 -0
- package/src/ui/a/FeaturedOn/styles.scss +41 -0
- package/src/ui/a/Figure/Figure.jsx +88 -0
- package/src/ui/a/Figure/index.js +2 -0
- package/src/ui/a/Figure/styles.scss +19 -0
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +103 -0
- package/src/ui/a/HamburgerButton/index.js +2 -0
- package/src/ui/a/HamburgerButton/styles.scss +41 -0
- package/src/ui/a/IconList/IconList.jsx +95 -0
- package/src/ui/a/IconList/common/Item/Item.jsx +81 -0
- package/src/ui/a/IconList/common/Item/index.js +2 -0
- package/src/ui/a/IconList/common/index.js +1 -0
- package/src/ui/a/IconList/index.js +2 -0
- package/src/ui/a/IconList/styles.scss +37 -0
- package/src/ui/a/Label/Label.jsx +93 -0
- 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 +124 -0
- package/src/ui/a/LoadingCircle/index.js +2 -0
- package/src/ui/a/LoadingCircle/styles.scss +49 -0
- package/src/ui/a/OvalIllustration/OvalIllustration.jsx +134 -0
- package/src/ui/a/OvalIllustration/index.js +2 -0
- package/src/ui/a/OvalIllustration/styles.scss +102 -0
- package/src/ui/a/People/People.jsx +98 -0
- package/src/ui/a/People/common/Person/Person.jsx +87 -0
- package/src/ui/a/People/common/Person/index.js +2 -0
- package/src/ui/a/People/common/index.js +1 -0
- package/src/ui/a/People/index.js +2 -0
- package/src/ui/a/People/styles.scss +52 -0
- 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 +99 -0
- package/src/ui/a/ProgressBar/index.js +2 -0
- package/src/ui/a/ProgressBar/styles.scss +37 -0
- package/src/ui/a/Quote/Quote.jsx +96 -0
- package/src/ui/a/Quote/index.js +2 -0
- package/src/ui/a/Quote/styles.scss +53 -0
- package/src/ui/a/SVG/SVG.jsx +185 -0
- package/src/ui/a/SVG/common/UseSVG/UseSVG.jsx +74 -0
- package/src/ui/a/SVG/common/UseSVG/index.js +2 -0
- package/src/ui/a/SVG/common/index.js +1 -0
- package/src/ui/a/SVG/index.js +2 -0
- package/src/ui/a/SVG/styles.scss +57 -0
- package/src/ui/a/Shapes/Shapes.jsx +191 -0
- package/src/ui/a/Shapes/index.js +2 -0
- package/src/ui/a/Shapes/styles.scss +255 -0
- package/src/ui/a/SnapScroller/SnapScroller.jsx +83 -0
- 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 +75 -0
- package/src/ui/a/Spinner/index.js +2 -0
- package/src/ui/a/Spinner/styles.scss +23 -0
- package/src/ui/a/TeamInfo/TeamInfo.jsx +99 -0
- package/src/ui/a/TeamInfo/index.js +2 -0
- package/src/ui/a/TeamInfo/styles.scss +58 -0
- package/src/ui/a/Timestamp/Timestamp.jsx +168 -0
- package/src/ui/a/Timestamp/index.js +2 -0
- package/src/ui/a/Timestamp/styles.scss +7 -0
- package/src/ui/a/index.js +30 -4
- package/src/ui/b/Button/Button.jsx +44 -4
- package/src/ui/b/Button/styles.scss +104 -8
- package/src/ui/b/Logo/Logo.jsx +152 -0
- package/src/ui/b/Logo/index.js +2 -0
- package/src/ui/b/Logo/styles.scss +9 -0
- package/src/ui/b/Metrics/Metrics.jsx +93 -0
- package/src/ui/b/Metrics/index.js +2 -0
- package/src/ui/b/Metrics/styles.scss +91 -0
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +18 -7
- package/src/ui/b/Page/common/Section/Section.jsx +68 -2
- package/src/ui/b/Page/styles.scss +8 -2
- package/src/ui/b/QuestionDropdown/QuestionDropdown.jsx +12 -7
- package/src/ui/b/QuestionDropdown/styles.scss +3 -3
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +137 -0
- package/src/ui/b/SocialMediaButton/index.js +2 -0
- package/src/ui/b/SocialMediaButton/styles.scss +49 -0
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +107 -0
- package/src/ui/b/ThemeSelector/index.js +2 -0
- package/src/ui/b/ThemeSelector/styles.scss +14 -0
- package/src/ui/b/index.js +4 -0
- package/src/ui/c/ContentSlides/ContentSlides.jsx +216 -0
- package/src/ui/c/ContentSlides/Context.js +3 -0
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +145 -0
- package/src/ui/c/ContentSlides/common/HorizontalMenu/index.js +2 -0
- package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +150 -0
- package/src/ui/c/ContentSlides/common/Navigator/index.js +2 -0
- package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +135 -0
- package/src/ui/c/ContentSlides/common/Sidebar/index.js +2 -0
- package/src/ui/c/ContentSlides/common/Slide/Slide.jsx +87 -0
- package/src/ui/c/ContentSlides/common/Slide/index.js +2 -0
- package/src/ui/c/ContentSlides/common/index.js +4 -0
- package/src/ui/c/ContentSlides/index.js +4 -0
- package/src/ui/c/ContentSlides/styles.scss +314 -0
- package/src/ui/c/ContentSlides/useContentSlides.js +4 -0
- package/src/ui/c/{TeamGallery/TeamGallery.jsx → Hero/Hero.jsx} +32 -23
- package/src/ui/c/Hero/index.js +2 -0
- package/src/ui/c/Hero/styles.scss +41 -0
- package/src/ui/c/Shortener/Shortener.jsx +142 -0
- package/src/ui/c/Shortener/index.js +2 -0
- package/src/ui/c/Shortener/styles.scss +7 -0
- 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 +4 -1
- package/src/ui/d/index.js +0 -0
- package/src/ui/f/FormInput/FormInput.jsx +171 -0
- package/src/ui/f/FormInput/index.js +2 -0
- package/src/ui/f/FormInput/styles.scss +11 -0
- package/src/ui/f/common/Debugger/Debugger.jsx +85 -0
- package/src/ui/f/common/Debugger/index.js +2 -0
- package/src/ui/f/common/Debugger/styles.scss +12 -0
- package/src/ui/f/common/Description/Description.jsx +93 -0
- package/src/ui/f/common/Description/index.js +2 -0
- package/src/ui/f/common/Description/styles.scss +10 -0
- package/src/ui/f/common/Label/Label.jsx +102 -0
- package/src/ui/f/common/Label/index.js +2 -0
- package/src/ui/f/common/Label/styles.scss +8 -0
- package/src/ui/f/common/index.js +3 -0
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +118 -0
- 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 +161 -0
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +118 -0
- package/src/ui/f/fields/ChoicesInput/common/Choice/index.js +2 -0
- package/src/ui/f/fields/ChoicesInput/common/index.js +1 -0
- package/src/ui/f/fields/ChoicesInput/index.js +2 -0
- package/src/ui/f/fields/ChoicesInput/styles.scss +67 -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 +154 -0
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +142 -0
- package/src/ui/f/fields/RatingsInput/common/Rating/index.js +2 -0
- package/src/ui/f/fields/RatingsInput/common/index.js +1 -0
- package/src/ui/f/fields/RatingsInput/index.js +2 -0
- package/src/ui/f/fields/RatingsInput/styles.scss +52 -0
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +178 -0
- package/src/ui/f/fields/SelectInput/index.js +2 -0
- package/src/ui/f/fields/SelectInput/styles.scss +50 -0
- package/src/ui/f/fields/TextInput/TextInput.jsx +180 -0
- package/src/ui/f/fields/TextInput/index.js +2 -0
- package/src/ui/f/fields/TextInput/styles.scss +35 -0
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +187 -0
- package/src/ui/f/fields/TextareaInput/index.js +2 -0
- package/src/ui/f/fields/TextareaInput/styles.scss +32 -0
- package/src/ui/f/fields/index.js +8 -0
- package/src/ui/f/index.js +3 -0
- package/src/ui/form-reset.scss +86 -0
- package/src/ui/form.scss +34 -0
- package/src/ui/index.js +4 -0
- package/src/ui/r/SwitchRouteMap/SwitchRouteMap.jsx +46 -37
- package/src/ui/r/common/PrivateRoute/PrivateRoute.jsx +2 -3
- 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/.github/workflows/pr.yaml +0 -64
- package/.github/workflows/push-development.yaml +0 -87
- package/.github/workflows/push-production.yaml +0 -34
- package/.github/workflows/push-staging.yaml +0 -34
- package/.github/workflows/test-publish.no +0 -63
- package/.github/workflows/test-publish.yaml +0 -68
- package/dist/cjs/a/SiteContext/Context.js +0 -16
- package/dist/cjs/a/SiteContext/ContextProvider.js +0 -65
- package/dist/cjs/c/TeamGallery/TeamGallery.js +0 -80
- package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +0 -84
- package/dist/cjs/c/TeamGallery/styles.scss +0 -100
- package/dist/es/a/SiteContext/ContextProvider.js +0 -44
- package/dist/es/a/SiteContext/index.js +0 -5
- 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/src/stories/a/SiteContext.stories.jsx +0 -29
- package/src/stories/c/TeamGallery.stories.jsx +0 -52
- package/src/ui/a/SiteContext/ContextProvider.jsx +0 -56
- package/src/ui/a/SiteContext/index.js +0 -5
- package/src/ui/c/TeamGallery/common/PersonCard/index.js +0 -2
- package/src/ui/c/TeamGallery/common/index.js +0 -1
- package/src/ui/c/TeamGallery/index.js +0 -2
- package/src/ui/c/TeamGallery/styles.scss +0 -100
- package/stylelint.config.js +0 -45
|
@@ -0,0 +1,105 @@
|
|
|
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 _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
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 _getRequireWildcardCache(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
|
+
var baseClassName = _bem.default.base;
|
|
16
|
+
var componentClassName = 'social-media-share-button';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This is the component description.
|
|
20
|
+
*/
|
|
21
|
+
var SocialMediaShareButton = _ref => {
|
|
22
|
+
var {
|
|
23
|
+
id,
|
|
24
|
+
className: userClassName,
|
|
25
|
+
style,
|
|
26
|
+
icon,
|
|
27
|
+
// children,
|
|
28
|
+
type,
|
|
29
|
+
color
|
|
30
|
+
} = _ref;
|
|
31
|
+
(0, React.useLayoutEffect)(() => {
|
|
32
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
33
|
+
}, []);
|
|
34
|
+
var isServer = typeof window === 'undefined';
|
|
35
|
+
var link = isServer ? '' : window.location.href;
|
|
36
|
+
|
|
37
|
+
// We can pass additional text to the social media share buttons such as the title.
|
|
38
|
+
// See commented code below for an example on how to pass text.
|
|
39
|
+
// It is important we encode the text with the encodeURIComponent function to pass
|
|
40
|
+
// special characters (such as |, &, etc.) properly through the URL.
|
|
41
|
+
|
|
42
|
+
// const title = isServer ? '' : encodeURIComponent(document.title)
|
|
43
|
+
|
|
44
|
+
var defaultsMap = {
|
|
45
|
+
facebook: {
|
|
46
|
+
icon: 'f',
|
|
47
|
+
link: "https://www.facebook.com/sharer/sharer.php?u=".concat(link)
|
|
48
|
+
// link: `https://www.facebook.com/sharer/sharer.php?u=${link}"e=${title}`,
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
twitter: {
|
|
52
|
+
icon: 't',
|
|
53
|
+
link: "https://twitter.com/intent/tweet?url=".concat(link)
|
|
54
|
+
// link: `https://twitter.com/intent/tweet?text=${title}&url=${link}`,
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
59
|
+
href: defaultsMap[type].link,
|
|
60
|
+
target: "_blank",
|
|
61
|
+
rel: "noreferrer",
|
|
62
|
+
id: id,
|
|
63
|
+
className: [baseClassName, componentClassName, "x-".concat(color || type), userClassName].filter(e => e).join(' '),
|
|
64
|
+
style: style
|
|
65
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
66
|
+
type: "button"
|
|
67
|
+
}, icon || defaultsMap[type].icon));
|
|
68
|
+
};
|
|
69
|
+
SocialMediaShareButton.propTypes = {
|
|
70
|
+
/**
|
|
71
|
+
* The HTML id for this element
|
|
72
|
+
*/
|
|
73
|
+
id: _propTypes.default.string,
|
|
74
|
+
/**
|
|
75
|
+
* The HTML class names for this element
|
|
76
|
+
*/
|
|
77
|
+
className: _propTypes.default.string,
|
|
78
|
+
/**
|
|
79
|
+
* The React-written, css properties for this element.
|
|
80
|
+
*/
|
|
81
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
82
|
+
/**
|
|
83
|
+
* The children JSX
|
|
84
|
+
*/
|
|
85
|
+
// children:PropTypes.node,
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The Social Media to Target.
|
|
89
|
+
* If blank, you need to provide both an icon letter (from glyphter) and a link.
|
|
90
|
+
*/
|
|
91
|
+
type: _propTypes.default.oneOf(['twitter', 'facebook']),
|
|
92
|
+
/**
|
|
93
|
+
* The icon of the social media
|
|
94
|
+
*/
|
|
95
|
+
icon: _propTypes.default.string,
|
|
96
|
+
/**
|
|
97
|
+
* The button color
|
|
98
|
+
*/
|
|
99
|
+
color: _propTypes.default.string
|
|
100
|
+
};
|
|
101
|
+
SocialMediaShareButton.defaultProps = {
|
|
102
|
+
// someProp:false
|
|
103
|
+
};
|
|
104
|
+
var _default = SocialMediaShareButton;
|
|
105
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SocialMediaShareButton", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _SocialMediaShareButton.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _SocialMediaShareButton = _interopRequireDefault(require("./SocialMediaShareButton"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@aztlan/stylebook/src/mixins";
|
|
5
|
+
@use "@aztlan/stylebook/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-dimensions: 2em;
|
|
8
|
+
$mobile-dimensions: 2.75em;
|
|
9
|
+
|
|
10
|
+
.#{bem.$base}.social-media-share-button{
|
|
11
|
+
|
|
12
|
+
> button {
|
|
13
|
+
appearance: none;
|
|
14
|
+
background: transparent;
|
|
15
|
+
border: 0;
|
|
16
|
+
border-radius: 3em;
|
|
17
|
+
color: var(--x);
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
font-family: "icons", sans-serif;
|
|
20
|
+
height: $default-dimensions;
|
|
21
|
+
transition: all .3s;
|
|
22
|
+
width: $default-dimensions;
|
|
23
|
+
|
|
24
|
+
@include mixins.media($to:$sm-md) {
|
|
25
|
+
height: $mobile-dimensions;
|
|
26
|
+
width: $mobile-dimensions;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
background: var(--x);
|
|
31
|
+
color: var(--on-x);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:focus, &:active {
|
|
35
|
+
background: var(--light-x);
|
|
36
|
+
color: var(--on-x);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/cjs/c/index.js
CHANGED
|
@@ -3,11 +3,37 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ContentSlides", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _ContentSlides.ContentSlides;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
Object.defineProperty(exports, "Hero", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _Hero.Hero;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "Shortener", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _Shortener.Shortener;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SocialMediaShareButton", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _SocialMediaShareButton.SocialMediaShareButton;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "useContentSlides", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _ContentSlides.useContentSlides;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var _Hero = require("./Hero");
|
|
37
|
+
var _ContentSlides = require("./ContentSlides");
|
|
38
|
+
var _Shortener = require("./Shortener");
|
|
39
|
+
var _SocialMediaShareButton = require("./SocialMediaShareButton");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,116 @@
|
|
|
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 _fields = require("../fields");
|
|
10
|
+
var _excluded = ["className", "type", "extraTypes", "disabled"];
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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); }
|
|
13
|
+
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); }
|
|
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; }
|
|
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
|
+
// Local Definitions
|
|
18
|
+
|
|
19
|
+
// const baseClassName = styleNames.base
|
|
20
|
+
|
|
21
|
+
var componentClassName = 'form-input';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* This is the component description.
|
|
25
|
+
*/
|
|
26
|
+
var FormInput = _ref => {
|
|
27
|
+
var {
|
|
28
|
+
className,
|
|
29
|
+
type,
|
|
30
|
+
extraTypes,
|
|
31
|
+
disabled
|
|
32
|
+
} = _ref,
|
|
33
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
(0, React.useLayoutEffect)(() => {
|
|
35
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
36
|
+
}, []);
|
|
37
|
+
var newClassName = [className, componentClassName].filter(Boolean).join(' ');
|
|
38
|
+
if (type === 'textarea') {
|
|
39
|
+
return /*#__PURE__*/React.createElement(_fields.TextareaInput, _extends({
|
|
40
|
+
className: newClassName,
|
|
41
|
+
disabled: disabled
|
|
42
|
+
}, otherProps));
|
|
43
|
+
}
|
|
44
|
+
if (type === 'choices') {
|
|
45
|
+
return /*#__PURE__*/React.createElement(_fields.ChoicesInput, _extends({
|
|
46
|
+
className: newClassName,
|
|
47
|
+
disabled: disabled
|
|
48
|
+
}, otherProps));
|
|
49
|
+
}
|
|
50
|
+
if (type === 'select') {
|
|
51
|
+
return /*#__PURE__*/React.createElement(_fields.SelectInput, _extends({
|
|
52
|
+
className: newClassName,
|
|
53
|
+
disabled: disabled
|
|
54
|
+
}, otherProps));
|
|
55
|
+
}
|
|
56
|
+
if (type === 'query-combobox') {
|
|
57
|
+
return /*#__PURE__*/React.createElement(_fields.QueryCombobox, _extends({
|
|
58
|
+
className: newClassName,
|
|
59
|
+
disabled: disabled
|
|
60
|
+
}, otherProps));
|
|
61
|
+
}
|
|
62
|
+
if (type === 'query-select') {
|
|
63
|
+
return /*#__PURE__*/React.createElement(_fields.QuerySelect, _extends({
|
|
64
|
+
className: newClassName,
|
|
65
|
+
disabled: disabled
|
|
66
|
+
}, otherProps));
|
|
67
|
+
}
|
|
68
|
+
if (type === 'rating') {
|
|
69
|
+
return /*#__PURE__*/React.createElement(_fields.RatingsInput, _extends({
|
|
70
|
+
className: newClassName
|
|
71
|
+
}, otherProps));
|
|
72
|
+
}
|
|
73
|
+
if (type === 'checkbox') {
|
|
74
|
+
return /*#__PURE__*/React.createElement(_fields.Checkbox, _extends({
|
|
75
|
+
className: newClassName,
|
|
76
|
+
disabled: disabled
|
|
77
|
+
}, otherProps));
|
|
78
|
+
}
|
|
79
|
+
if (extraTypes !== null && extraTypes !== void 0 && extraTypes[type]) {
|
|
80
|
+
var Component = extraTypes[type];
|
|
81
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
82
|
+
className: newClassName,
|
|
83
|
+
disabled: disabled
|
|
84
|
+
}, otherProps));
|
|
85
|
+
}
|
|
86
|
+
return /*#__PURE__*/React.createElement(_fields.TextInput, _extends({
|
|
87
|
+
className: newClassName,
|
|
88
|
+
disabled: disabled,
|
|
89
|
+
type: type
|
|
90
|
+
}, otherProps));
|
|
91
|
+
};
|
|
92
|
+
FormInput.propTypes = {
|
|
93
|
+
/**
|
|
94
|
+
* The HTML class names for this element
|
|
95
|
+
*/
|
|
96
|
+
className: _propTypes.default.string,
|
|
97
|
+
/**
|
|
98
|
+
* The HTML class names for this element
|
|
99
|
+
*/
|
|
100
|
+
type: _propTypes.default.oneOf(['text', 'email', 'password', 'number', 'date', 'datetime', 'month', 'tel', 'hidden', 'select', 'choices', 'textarea', 'query-combobox', 'url', 'rating',
|
|
101
|
+
// to be removed
|
|
102
|
+
'extendedTypeInput']),
|
|
103
|
+
/**
|
|
104
|
+
* The object with external Input types that would make the form input extensible
|
|
105
|
+
*/
|
|
106
|
+
extraTypes: _propTypes.default.objectOf(_propTypes.default.func),
|
|
107
|
+
/**
|
|
108
|
+
* Whether the Form input input should be disabled
|
|
109
|
+
*/
|
|
110
|
+
disabled: _propTypes.default.bool
|
|
111
|
+
};
|
|
112
|
+
FormInput.defaultProps = {
|
|
113
|
+
disabled: false
|
|
114
|
+
};
|
|
115
|
+
var _default = /*#__PURE__*/(0, React.memo)(FormInput);
|
|
116
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "FormInput", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _FormInput.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _FormInput = _interopRequireDefault(require("./FormInput"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,68 @@
|
|
|
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 _b = require("../../../b");
|
|
10
|
+
var _formik = require("formik");
|
|
11
|
+
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 _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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; }
|
|
14
|
+
// Local Definitions
|
|
15
|
+
|
|
16
|
+
var componentClassName = 'debugger';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This is the component description.
|
|
20
|
+
*/
|
|
21
|
+
var Debugger = _ref => {
|
|
22
|
+
var {
|
|
23
|
+
id,
|
|
24
|
+
className: userClassName,
|
|
25
|
+
style,
|
|
26
|
+
initialIsOpen
|
|
27
|
+
// ...otherProps
|
|
28
|
+
} = _ref;
|
|
29
|
+
(0, React.useLayoutEffect)(() => {
|
|
30
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
31
|
+
}, []);
|
|
32
|
+
var [isOpen, setIsOpen] = (0, React.useState)(initialIsOpen);
|
|
33
|
+
var toggleDebugger = () => setIsOpen(!isOpen);
|
|
34
|
+
var formikContext = (0, React.useContext)(_formik.FormikContext);
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
id: id,
|
|
37
|
+
className: [componentClassName, userClassName].filter(e => e).join(' '),
|
|
38
|
+
style: style
|
|
39
|
+
}, /*#__PURE__*/React.createElement(_b.Button, {
|
|
40
|
+
onClick: toggleDebugger,
|
|
41
|
+
color: "main2"
|
|
42
|
+
}, isOpen ? 'Close FormDebugger' : 'Open FormDebugger'), isOpen && /*#__PURE__*/React.createElement("pre", {
|
|
43
|
+
className: "debuger-content"
|
|
44
|
+
}, JSON.stringify(formikContext, null, 2)));
|
|
45
|
+
};
|
|
46
|
+
Debugger.propTypes = {
|
|
47
|
+
/**
|
|
48
|
+
* The HTML id for this element
|
|
49
|
+
*/
|
|
50
|
+
id: _propTypes.default.string,
|
|
51
|
+
/**
|
|
52
|
+
* The HTML class names for this element
|
|
53
|
+
*/
|
|
54
|
+
className: _propTypes.default.string,
|
|
55
|
+
/**
|
|
56
|
+
* The React-written, css properties for this element.
|
|
57
|
+
*/
|
|
58
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
59
|
+
/**
|
|
60
|
+
* state to control the opening and closing of the debugger
|
|
61
|
+
*/
|
|
62
|
+
initialIsOpen: _propTypes.default.bool
|
|
63
|
+
};
|
|
64
|
+
Debugger.defaultProps = {
|
|
65
|
+
initialIsOpen: false
|
|
66
|
+
};
|
|
67
|
+
var _default = Debugger;
|
|
68
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Debugger", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Debugger.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Debugger = _interopRequireDefault(require("./Debugger"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,75 @@
|
|
|
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 _formik = require("formik");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
11
|
+
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 _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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; }
|
|
14
|
+
// Local Definitions
|
|
15
|
+
|
|
16
|
+
var baseClassName = _bem.default.base;
|
|
17
|
+
var componentClassName = 'description';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This is the component description.
|
|
21
|
+
*/
|
|
22
|
+
var Description = _ref => {
|
|
23
|
+
var {
|
|
24
|
+
id,
|
|
25
|
+
className: userClassName,
|
|
26
|
+
style,
|
|
27
|
+
description,
|
|
28
|
+
name,
|
|
29
|
+
color
|
|
30
|
+
// ...otherProps
|
|
31
|
+
} = _ref;
|
|
32
|
+
(0, React.useLayoutEffect)(() => {
|
|
33
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
34
|
+
}, []);
|
|
35
|
+
var [field, meta] = (0, _formik.useField)(name);
|
|
36
|
+
if (description || (meta.touched || field.value) && meta.error) {
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
id: id,
|
|
39
|
+
className: [baseClassName, componentClassName, userClassName, meta.error ? 'x-error' : "x-".concat(color)].filter(e => e).join(' '),
|
|
40
|
+
style: style
|
|
41
|
+
}, meta.error || description);
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
};
|
|
45
|
+
Description.propTypes = {
|
|
46
|
+
/**
|
|
47
|
+
* The HTML id for this element
|
|
48
|
+
*/
|
|
49
|
+
id: _propTypes.default.string,
|
|
50
|
+
/**
|
|
51
|
+
* The HTML class names for this element
|
|
52
|
+
*/
|
|
53
|
+
className: _propTypes.default.string,
|
|
54
|
+
/**
|
|
55
|
+
* The React-written, css properties for this element.
|
|
56
|
+
*/
|
|
57
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
58
|
+
/**
|
|
59
|
+
* The base color for the description
|
|
60
|
+
*/
|
|
61
|
+
color: _propTypes.default.string,
|
|
62
|
+
/**
|
|
63
|
+
* Input description - extra description to guide a use in filling the input
|
|
64
|
+
*/
|
|
65
|
+
description: _propTypes.default.string,
|
|
66
|
+
/**
|
|
67
|
+
* The input name (html - and Formik state)
|
|
68
|
+
*/
|
|
69
|
+
name: _propTypes.default.string.isRequired
|
|
70
|
+
};
|
|
71
|
+
Description.defaultProps = {
|
|
72
|
+
color: 'metadata'
|
|
73
|
+
};
|
|
74
|
+
var _default = Description;
|
|
75
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Description", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Description.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Description = _interopRequireDefault(require("./Description"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,84 @@
|
|
|
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 _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
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 _getRequireWildcardCache(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
|
+
var baseClassName = _bem.default.base;
|
|
16
|
+
var componentClassName = 'form-label';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This is the component description.
|
|
20
|
+
*/
|
|
21
|
+
var Label = _ref => {
|
|
22
|
+
var {
|
|
23
|
+
id,
|
|
24
|
+
className: userClassName,
|
|
25
|
+
style,
|
|
26
|
+
children,
|
|
27
|
+
name,
|
|
28
|
+
color,
|
|
29
|
+
optional,
|
|
30
|
+
as: Wrapper
|
|
31
|
+
// ...otherProps
|
|
32
|
+
} = _ref;
|
|
33
|
+
(0, React.useLayoutEffect)(() => {
|
|
34
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
35
|
+
}, []);
|
|
36
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
37
|
+
htmlFor: Wrapper === 'label' ? name : undefined,
|
|
38
|
+
id: id,
|
|
39
|
+
className: [baseClassName, componentClassName, userClassName, "x-".concat(color)].filter(e => e).join(' '),
|
|
40
|
+
style: style
|
|
41
|
+
// {...otherProps}
|
|
42
|
+
}, children, optional && '(Optional)');
|
|
43
|
+
};
|
|
44
|
+
Label.propTypes = {
|
|
45
|
+
/**
|
|
46
|
+
* The HTML id for this element
|
|
47
|
+
*/
|
|
48
|
+
id: _propTypes.default.string,
|
|
49
|
+
/**
|
|
50
|
+
* The HTML class names for this element
|
|
51
|
+
*/
|
|
52
|
+
className: _propTypes.default.string,
|
|
53
|
+
/**
|
|
54
|
+
* The React-written, css properties for this element.
|
|
55
|
+
*/
|
|
56
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
57
|
+
/**
|
|
58
|
+
* The children JSX
|
|
59
|
+
*/
|
|
60
|
+
children: _propTypes.default.node,
|
|
61
|
+
/**
|
|
62
|
+
* The name of the input label
|
|
63
|
+
*/
|
|
64
|
+
name: _propTypes.default.string,
|
|
65
|
+
/**
|
|
66
|
+
* The html tag that acts as an input label
|
|
67
|
+
*/
|
|
68
|
+
as: _propTypes.default.node,
|
|
69
|
+
/**
|
|
70
|
+
* The default color of the label
|
|
71
|
+
*/
|
|
72
|
+
color: _propTypes.default.string,
|
|
73
|
+
/**
|
|
74
|
+
* Whether the input should have an optional tag
|
|
75
|
+
*/
|
|
76
|
+
optional: _propTypes.default.bool
|
|
77
|
+
};
|
|
78
|
+
Label.defaultProps = {
|
|
79
|
+
as: 'label',
|
|
80
|
+
color: 'main2',
|
|
81
|
+
optional: false
|
|
82
|
+
};
|
|
83
|
+
var _default = Label;
|
|
84
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Label", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Label.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Label = _interopRequireDefault(require("./Label"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|