@pareto-engineering/design-system 1.0.3 → 2.0.0-alpha.5
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 +41 -0
- package/.githooks/pre-commit +5 -0
- package/.github/workflows/push-main-branches.yaml +89 -0
- package/.github/workflows/push-pr.yaml +83 -0
- package/.github/workflows.old/push-production.yaml +34 -0
- package/.github/workflows.old/push-staging.yaml +34 -0
- package/.github/workflows.old/test-publish.no +63 -0
- package/.github/workflows.old/test-publish.yaml +68 -0
- package/.storybook/main.js +51 -2
- package/.storybook/preview-head.html +5 -0
- package/.storybook/preview.js +8 -1
- package/babel.config.js +29 -26
- package/build-storybook.log +2978 -0
- package/config/CSSStub.js +1 -0
- package/config/global-setup.js +3 -0
- package/config/test-setup.js +4 -0
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +121 -0
- package/dist/cjs/a/AnimatedCounter/index.js +15 -0
- package/dist/cjs/a/AnimatedCounter/styles.scss +16 -0
- package/dist/cjs/a/ContentCard/ContentCard.js +79 -0
- package/dist/cjs/a/ContentCard/common/Section/Section.js +80 -0
- package/dist/cjs/a/ContentCard/common/Section/index.js +15 -0
- package/dist/cjs/a/ContentCard/common/index.js +13 -0
- package/dist/cjs/a/ContentCard/index.js +15 -0
- package/dist/cjs/a/ContentCard/styles.scss +78 -0
- package/dist/cjs/a/Conversation/Context.js +16 -0
- package/dist/cjs/a/Conversation/Conversation.js +100 -0
- package/dist/cjs/a/Conversation/common/Message/Message.js +90 -0
- package/dist/cjs/a/Conversation/common/Message/index.js +15 -0
- package/dist/cjs/a/Conversation/common/index.js +13 -0
- package/dist/cjs/a/Conversation/index.js +31 -0
- package/dist/cjs/a/Conversation/styles.scss +54 -0
- package/dist/cjs/a/Conversation/useConversation.js +16 -0
- package/dist/cjs/a/CustomerLogos/CustomerLogos.js +86 -0
- package/dist/cjs/a/CustomerLogos/index.js +15 -0
- package/dist/cjs/a/CustomerLogos/styles.scss +41 -0
- package/dist/cjs/a/CustomerStat/CustomerStat.js +87 -0
- package/dist/cjs/a/CustomerStat/index.js +15 -0
- package/dist/cjs/a/CustomerStat/styles.scss +16 -0
- package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +70 -0
- package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +66 -0
- package/dist/cjs/a/DashboardNavbar/common/NavItem/index.js +15 -0
- package/dist/cjs/a/DashboardNavbar/common/NavItem/styles.scss +9 -0
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +66 -0
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/index.js +15 -0
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/styles.scss +9 -0
- package/dist/cjs/a/DashboardNavbar/common/index.js +21 -0
- package/dist/cjs/a/DashboardNavbar/index.js +15 -0
- package/dist/cjs/a/DashboardNavbar/styles.scss +14 -0
- package/dist/cjs/a/DotInfo/DotInfo.js +106 -0
- package/dist/cjs/a/DotInfo/index.js +15 -0
- package/dist/cjs/a/DotInfo/styles.scss +20 -0
- package/dist/cjs/a/FeaturedOn/FeaturedOn.js +88 -0
- package/dist/cjs/a/FeaturedOn/index.js +15 -0
- package/dist/cjs/a/FeaturedOn/styles.scss +41 -0
- package/dist/cjs/a/Figure/Figure.js +84 -0
- package/dist/cjs/a/Figure/index.js +15 -0
- package/dist/cjs/a/Figure/styles.scss +19 -0
- package/dist/cjs/a/GradientBackground/GradientBackground.js +140 -0
- package/dist/cjs/a/GradientBackground/index.js +15 -0
- package/dist/cjs/a/GradientBackground/styles.scss +191 -0
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +107 -0
- package/dist/cjs/a/HamburgerButton/index.js +15 -0
- package/dist/cjs/a/HamburgerButton/styles.scss +41 -0
- package/dist/cjs/a/IconList/IconList.js +102 -0
- package/dist/cjs/a/IconList/common/Item/Item.js +98 -0
- package/dist/cjs/a/IconList/common/Item/index.js +15 -0
- package/dist/cjs/a/IconList/common/index.js +13 -0
- package/dist/cjs/a/IconList/index.js +15 -0
- package/dist/cjs/a/IconList/styles.scss +37 -0
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +121 -0
- package/dist/cjs/a/LoadingCircle/index.js +15 -0
- package/dist/cjs/a/LoadingCircle/styles.scss +49 -0
- package/dist/cjs/a/People/People.js +95 -0
- package/dist/cjs/a/People/common/Person/Person.js +96 -0
- package/dist/cjs/a/People/common/Person/index.js +15 -0
- package/dist/cjs/a/People/common/index.js +13 -0
- package/dist/cjs/a/People/index.js +15 -0
- package/dist/cjs/a/People/styles.scss +52 -0
- package/dist/cjs/a/ProgressBar/ProgressBar.js +99 -0
- package/dist/cjs/a/ProgressBar/index.js +15 -0
- package/dist/cjs/a/ProgressBar/styles.scss +37 -0
- package/dist/cjs/a/Quote/Quote.js +96 -0
- package/dist/cjs/a/Quote/index.js +15 -0
- package/dist/cjs/a/Quote/styles.scss +53 -0
- package/dist/cjs/a/SVG/SVG.js +165 -0
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +88 -0
- package/dist/cjs/a/SVG/common/UseSVG/index.js +15 -0
- package/dist/cjs/a/SVG/common/index.js +13 -0
- package/dist/cjs/a/SVG/index.js +15 -0
- package/dist/cjs/a/SVG/styles.scss +57 -0
- package/dist/cjs/a/Shapes/Shapes.js +141 -0
- package/dist/cjs/a/Shapes/index.js +15 -0
- package/dist/cjs/a/Shapes/styles.scss +199 -0
- package/dist/cjs/a/SiteContext/Context.js +16 -0
- package/dist/cjs/a/SiteContext/ContextProvider.js +95 -0
- package/dist/cjs/a/SiteContext/index.js +39 -0
- package/dist/cjs/a/SiteContext/useSite.js +16 -0
- package/dist/cjs/a/SiteContext/useTheme.js +45 -0
- package/dist/cjs/a/Spinner/Spinner.js +73 -0
- package/dist/cjs/a/Spinner/index.js +15 -0
- package/dist/cjs/a/Spinner/styles.scss +23 -0
- package/dist/cjs/a/TeamInfo/TeamInfo.js +102 -0
- package/dist/cjs/a/TeamInfo/index.js +15 -0
- package/dist/cjs/a/TeamInfo/styles.scss +58 -0
- package/dist/cjs/a/Timestamp/Timestamp.js +139 -0
- package/dist/cjs/a/Timestamp/index.js +15 -0
- package/dist/cjs/a/Timestamp/styles.scss +7 -0
- package/dist/cjs/a/index.js +191 -0
- package/dist/cjs/b/Button/Button.js +116 -0
- package/dist/cjs/{Button → b/Button}/index.js +3 -3
- package/dist/cjs/b/Button/styles.scss +96 -0
- package/dist/cjs/b/Card/Card.js +67 -0
- package/dist/cjs/b/Card/common/Group/Group.js +71 -0
- package/dist/cjs/b/Card/common/Group/index.js +15 -0
- package/dist/cjs/b/Card/common/Group/styles.scss +61 -0
- package/dist/cjs/b/Card/common/index.js +13 -0
- package/dist/cjs/b/Card/index.js +15 -0
- package/dist/cjs/b/Card/styles.scss +12 -0
- package/dist/cjs/b/Logo/Logo.js +139 -0
- package/dist/cjs/b/Logo/index.js +15 -0
- package/dist/cjs/b/Logo/styles.scss +147 -0
- package/dist/cjs/b/Metrics/Metrics.js +89 -0
- package/dist/cjs/b/Metrics/index.js +15 -0
- package/dist/cjs/b/Metrics/styles.scss +91 -0
- package/dist/cjs/b/Page/Context.js +16 -0
- package/dist/cjs/b/Page/Page.js +122 -0
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +196 -0
- package/dist/cjs/b/Page/common/PageHelmet/index.js +15 -0
- package/dist/cjs/b/Page/common/Section/Section.js +101 -0
- package/dist/cjs/b/Page/common/Section/index.js +15 -0
- package/dist/cjs/b/Page/common/index.js +21 -0
- package/dist/cjs/b/Page/index.js +31 -0
- package/dist/cjs/b/Page/styles.scss +16 -0
- package/dist/cjs/b/Page/usePage.js +16 -0
- package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +119 -0
- package/dist/cjs/b/QuestionDropdown/index.js +15 -0
- package/dist/cjs/b/QuestionDropdown/styles.scss +95 -0
- package/dist/cjs/b/Segment/Segment.js +79 -0
- package/dist/cjs/b/Segment/index.js +15 -0
- package/dist/cjs/b/Segment/styles.scss +26 -0
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +140 -0
- package/dist/cjs/b/SocialMediaButton/index.js +15 -0
- package/dist/cjs/b/SocialMediaButton/styles.scss +49 -0
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +101 -0
- package/dist/cjs/b/ThemeSelector/index.js +15 -0
- package/dist/cjs/b/ThemeSelector/styles.scss +14 -0
- package/dist/cjs/b/Title/Title.js +138 -0
- package/dist/cjs/b/Title/index.js +15 -0
- package/dist/cjs/b/Title/styles.scss +16 -0
- package/dist/cjs/b/index.js +85 -0
- package/dist/cjs/c/AcceptCookies/AcceptCookies.js +134 -0
- package/dist/cjs/c/AcceptCookies/index.js +15 -0
- package/dist/cjs/c/AcceptCookies/styles.scss +49 -0
- package/dist/cjs/c/BlogCategoryButton/BlogCategoryButton.js +95 -0
- package/dist/cjs/c/BlogCategoryButton/index.js +15 -0
- package/dist/cjs/c/BlogContext/BlogContextProvider.js +63 -0
- package/dist/cjs/c/BlogContext/Context.js +16 -0
- package/dist/cjs/c/BlogContext/ContextProvider.js +63 -0
- package/dist/cjs/c/BlogContext/index.js +31 -0
- package/dist/cjs/c/BlogContext/useBlog.js +16 -0
- package/dist/cjs/c/BlogPost/BlogPost.js +147 -0
- package/dist/cjs/c/BlogPost/index.js +15 -0
- package/dist/cjs/c/BlogPost/styles.scss +33 -0
- package/dist/cjs/c/BlogPostsList/BlogPostsList.js +73 -0
- package/dist/cjs/c/BlogPostsList/common/Card/Card.js +170 -0
- package/dist/cjs/c/BlogPostsList/common/Card/index.js +15 -0
- package/dist/cjs/c/BlogPostsList/common/index.js +13 -0
- package/dist/cjs/c/BlogPostsList/index.js +15 -0
- package/dist/cjs/c/BlogPostsList/styles.scss +72 -0
- package/dist/cjs/c/ContentSlides/ContentSlides.js +200 -0
- package/dist/cjs/c/ContentSlides/Context.js +16 -0
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +135 -0
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +15 -0
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +145 -0
- package/dist/cjs/c/ContentSlides/common/Navigator/index.js +15 -0
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +106 -0
- package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +15 -0
- package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +84 -0
- package/dist/cjs/c/ContentSlides/common/Slide/index.js +15 -0
- package/dist/cjs/c/ContentSlides/common/index.js +37 -0
- package/dist/cjs/c/ContentSlides/index.js +31 -0
- package/dist/cjs/c/ContentSlides/styles.scss +308 -0
- package/dist/cjs/c/ContentSlides/useContentSlides.js +16 -0
- package/dist/cjs/c/Hero/Hero.js +88 -0
- package/dist/cjs/c/Hero/index.js +15 -0
- package/dist/cjs/c/Hero/styles.scss +41 -0
- package/dist/cjs/c/Shortener/Shortener.js +114 -0
- package/dist/cjs/c/Shortener/index.js +15 -0
- package/dist/cjs/c/Shortener/styles.scss +7 -0
- package/dist/cjs/c/SiteFooter/SiteFooter.js +73 -0
- package/dist/cjs/c/SiteFooter/common/Section/Section.js +95 -0
- package/dist/cjs/c/SiteFooter/common/Section/index.js +15 -0
- package/dist/cjs/c/SiteFooter/common/index.js +13 -0
- package/dist/cjs/c/SiteFooter/index.js +15 -0
- package/dist/cjs/c/SiteFooter/styles.scss +34 -0
- package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +108 -0
- package/dist/cjs/c/SiteHeaderCTA/index.js +15 -0
- package/dist/cjs/c/SiteHeaderCTA/styles.scss +44 -0
- package/dist/cjs/c/SiteMission/SiteMission.js +113 -0
- package/dist/cjs/c/SiteMission/index.js +15 -0
- package/dist/cjs/c/SiteMission/styles.scss +30 -0
- package/dist/cjs/c/SiteNavigation/SiteNavigation.js +130 -0
- package/dist/cjs/c/SiteNavigation/index.js +15 -0
- package/dist/cjs/c/SiteNavigation/styles.scss +118 -0
- package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +98 -0
- package/dist/cjs/c/SiteOnboardingStep/index.js +15 -0
- package/dist/cjs/c/SiteOnboardingStep/styles.scss +51 -0
- package/dist/cjs/c/SitePricing/SitePricing.js +108 -0
- package/dist/cjs/c/SitePricing/index.js +15 -0
- package/dist/cjs/c/SitePricing/styles.scss +73 -0
- package/dist/cjs/c/SiteServices/SiteServices.js +211 -0
- package/dist/cjs/c/SiteServices/index.js +15 -0
- package/dist/cjs/c/SiteServices/styles.scss +138 -0
- package/dist/cjs/c/TeamGallery/TeamGallery.js +80 -0
- package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +84 -0
- package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +15 -0
- package/dist/cjs/c/TeamGallery/common/index.js +13 -0
- package/dist/cjs/c/TeamGallery/index.js +15 -0
- package/dist/cjs/c/TeamGallery/styles.scss +100 -0
- package/dist/cjs/c/Testimonials/Testimonials.js +119 -0
- package/dist/cjs/c/Testimonials/index.js +15 -0
- package/dist/cjs/c/Testimonials/styles.scss +112 -0
- package/dist/cjs/c/index.js +35 -0
- package/dist/cjs/d/index.js +1 -0
- package/dist/cjs/experimental/GradientBackground/GradientBackground.js +98 -0
- package/dist/cjs/experimental/GradientBackground/index.js +15 -0
- package/dist/cjs/experimental/GradientBackground/styles.scss +64 -0
- package/dist/cjs/experimental/index.js +13 -0
- package/dist/cjs/f/FormInput/FormInput.js +110 -0
- package/dist/cjs/f/FormInput/index.js +15 -0
- package/dist/cjs/f/common/Debugger/Debugger.js +81 -0
- package/dist/cjs/f/common/Debugger/index.js +15 -0
- package/dist/cjs/f/common/Debugger/styles.scss +12 -0
- package/dist/cjs/f/common/Description/Description.js +84 -0
- package/dist/cjs/f/common/Description/index.js +15 -0
- package/dist/cjs/f/common/Description/styles.scss +10 -0
- package/dist/cjs/f/common/Label/Label.js +92 -0
- package/dist/cjs/f/common/Label/index.js +15 -0
- package/dist/cjs/f/common/Label/styles.scss +11 -0
- package/dist/cjs/f/common/index.js +29 -0
- package/dist/cjs/f/fields/CheckboxInput/CheckboxInput.js +105 -0
- package/dist/cjs/f/fields/CheckboxInput/index.js +15 -0
- package/dist/cjs/f/fields/CheckboxInput/styles.scss +28 -0
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +159 -0
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +122 -0
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +15 -0
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +13 -0
- package/dist/cjs/f/fields/ChoicesInput/index.js +15 -0
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +52 -0
- package/dist/cjs/f/fields/RadioInput/RadioInput.js +110 -0
- package/dist/cjs/f/fields/RadioInput/index.js +15 -0
- package/dist/cjs/f/fields/RadioInput/styles.scss +26 -0
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +121 -0
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +129 -0
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +15 -0
- package/dist/cjs/f/fields/RatingsInput/common/index.js +13 -0
- package/dist/cjs/f/fields/RatingsInput/index.js +15 -0
- package/dist/cjs/f/fields/RatingsInput/styles.scss +43 -0
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +121 -0
- package/dist/cjs/f/fields/SelectInput/index.js +15 -0
- package/dist/cjs/f/fields/SelectInput/styles.scss +30 -0
- package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +129 -0
- package/dist/cjs/f/fields/TaskRecommendation/index.js +15 -0
- package/dist/cjs/f/fields/TaskRecommendation/styles.scss +37 -0
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +131 -0
- package/dist/cjs/f/fields/TaskRecommendationInput/index.js +15 -0
- package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +41 -0
- package/dist/cjs/f/fields/TextArea/TextArea.js +141 -0
- package/dist/cjs/f/fields/TextArea/index.js +15 -0
- package/dist/cjs/f/fields/TextArea/styles.scss +19 -0
- package/dist/cjs/f/fields/TextInput/TextInput.js +131 -0
- package/dist/cjs/f/fields/TextInput/index.js +15 -0
- package/dist/cjs/f/fields/TextInput/styles.scss +26 -0
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +151 -0
- package/dist/cjs/f/fields/TextareaInput/index.js +15 -0
- package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -0
- package/dist/cjs/f/fields/index.js +69 -0
- package/dist/cjs/f/index.js +44 -0
- package/dist/cjs/form-reset.scss +86 -0
- package/dist/cjs/form.scss +34 -0
- package/dist/cjs/index.js +69 -4
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +78 -0
- package/dist/cjs/r/SwitchRouteMap/index.js +15 -0
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +90 -0
- package/dist/cjs/r/common/PrivateRoute/index.js +15 -0
- package/dist/cjs/r/common/index.js +13 -0
- package/dist/cjs/r/index.js +30 -0
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +100 -0
- package/dist/es/a/AnimatedCounter/index.js +2 -0
- package/dist/es/a/AnimatedCounter/styles.scss +16 -0
- package/dist/es/a/ContentCard/ContentCard.js +63 -0
- package/dist/es/a/ContentCard/common/Section/Section.js +60 -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/Conversation/Context.js +2 -0
- package/dist/es/a/Conversation/Conversation.js +83 -0
- package/dist/es/a/Conversation/common/Message/Message.js +71 -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 +54 -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 +71 -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 +53 -0
- package/dist/es/a/DashboardNavbar/common/NavItem/NavItem.js +48 -0
- package/dist/es/a/DashboardNavbar/common/NavItem/index.js +2 -0
- package/dist/es/a/DashboardNavbar/common/NavItem/styles.scss +9 -0
- package/dist/es/a/DashboardNavbar/common/NavProfile/NavProfile.js +48 -0
- package/dist/es/a/DashboardNavbar/common/NavProfile/index.js +2 -0
- package/dist/es/a/DashboardNavbar/common/NavProfile/styles.scss +9 -0
- package/dist/es/a/DashboardNavbar/common/index.js +2 -0
- package/dist/es/a/DashboardNavbar/index.js +2 -0
- package/dist/es/a/DashboardNavbar/styles.scss +14 -0
- package/dist/es/a/DotInfo/DotInfo.js +85 -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 +68 -0
- package/dist/es/a/Figure/index.js +2 -0
- package/dist/es/a/Figure/styles.scss +19 -0
- package/dist/es/a/GradientBackground/GradientBackground.js +118 -0
- package/dist/es/a/GradientBackground/index.js +2 -0
- package/dist/es/a/GradientBackground/styles.scss +191 -0
- package/dist/es/a/HamburgerButton/HamburgerButton.js +84 -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 +72 -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/LoadingCircle/LoadingCircle.js +100 -0
- package/dist/es/a/LoadingCircle/index.js +2 -0
- package/dist/es/a/LoadingCircle/styles.scss +49 -0
- package/dist/es/a/People/People.js +73 -0
- package/dist/es/a/People/common/Person/Person.js +76 -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/ProgressBar/ProgressBar.js +78 -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 +80 -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 +141 -0
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +65 -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 +119 -0
- package/dist/es/a/Shapes/index.js +2 -0
- package/dist/es/a/Shapes/styles.scss +199 -0
- package/dist/es/a/SiteContext/Context.js +2 -0
- package/dist/es/a/SiteContext/ContextProvider.js +77 -0
- package/dist/es/a/SiteContext/index.js +5 -0
- package/dist/es/a/SiteContext/useSite.js +3 -0
- package/dist/es/a/SiteContext/useTheme.js +34 -0
- package/dist/es/a/Spinner/Spinner.js +57 -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 +86 -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 +122 -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 +21 -0
- package/dist/es/b/Button/Button.js +93 -0
- package/dist/es/b/Button/index.js +2 -0
- package/dist/es/b/Button/styles.scss +96 -0
- package/dist/es/b/Card/Card.js +49 -0
- package/dist/es/b/Card/common/Group/Group.js +53 -0
- package/dist/es/b/Card/common/Group/index.js +2 -0
- package/dist/es/b/Card/common/Group/styles.scss +61 -0
- package/dist/es/b/Card/common/index.js +1 -0
- package/dist/es/b/Card/index.js +2 -0
- package/dist/es/b/Card/styles.scss +12 -0
- package/dist/es/b/Logo/Logo.js +122 -0
- package/dist/es/b/Logo/index.js +2 -0
- package/dist/es/b/Logo/styles.scss +147 -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/Context.js +2 -0
- package/dist/es/b/Page/Page.js +98 -0
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +178 -0
- package/dist/es/b/Page/common/PageHelmet/index.js +2 -0
- package/dist/es/b/Page/common/Section/Section.js +76 -0
- package/dist/es/b/Page/common/Section/index.js +2 -0
- package/dist/es/b/Page/common/index.js +2 -0
- package/dist/es/b/Page/index.js +4 -0
- package/dist/es/b/Page/styles.scss +16 -0
- package/dist/es/b/Page/usePage.js +3 -0
- package/dist/es/b/QuestionDropdown/QuestionDropdown.js +104 -0
- package/dist/es/b/QuestionDropdown/index.js +2 -0
- package/dist/es/b/QuestionDropdown/styles.scss +95 -0
- package/dist/es/b/Segment/Segment.js +61 -0
- package/dist/es/b/Segment/index.js +2 -0
- package/dist/es/b/Segment/styles.scss +26 -0
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +116 -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 +84 -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 +120 -0
- package/dist/es/b/Title/index.js +2 -0
- package/dist/es/b/Title/styles.scss +16 -0
- package/dist/es/b/index.js +10 -0
- package/dist/es/c/AcceptCookies/AcceptCookies.js +117 -0
- package/dist/es/c/AcceptCookies/index.js +2 -0
- package/dist/es/c/AcceptCookies/styles.scss +49 -0
- package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +68 -0
- package/dist/es/c/BlogCategoryButton/index.js +2 -0
- package/dist/es/c/BlogContext/BlogContextProvider.js +45 -0
- package/dist/es/c/BlogContext/Context.js +2 -0
- package/dist/es/c/BlogContext/ContextProvider.js +45 -0
- package/dist/es/c/BlogContext/index.js +4 -0
- package/dist/es/c/BlogContext/useBlog.js +3 -0
- package/dist/es/c/BlogPost/BlogPost.js +128 -0
- package/dist/es/c/BlogPost/index.js +2 -0
- package/dist/es/c/BlogPost/styles.scss +33 -0
- package/dist/es/c/BlogPostsList/BlogPostsList.js +56 -0
- package/dist/es/c/BlogPostsList/common/Card/Card.js +143 -0
- package/dist/es/c/BlogPostsList/common/Card/index.js +2 -0
- package/dist/es/c/BlogPostsList/common/index.js +1 -0
- package/dist/es/c/BlogPostsList/index.js +2 -0
- package/dist/es/c/BlogPostsList/styles.scss +72 -0
- package/dist/es/c/ContentSlides/ContentSlides.js +176 -0
- package/dist/es/c/ContentSlides/Context.js +2 -0
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +114 -0
- package/dist/es/c/ContentSlides/common/HorizontalMenu/index.js +2 -0
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +126 -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 +65 -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 +308 -0
- package/dist/es/c/ContentSlides/useContentSlides.js +3 -0
- package/dist/es/c/Hero/Hero.js +72 -0
- 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 +98 -0
- package/dist/es/c/Shortener/index.js +2 -0
- package/dist/es/c/Shortener/styles.scss +7 -0
- package/dist/es/c/SiteFooter/SiteFooter.js +56 -0
- package/dist/es/c/SiteFooter/common/Section/Section.js +73 -0
- package/dist/es/c/SiteFooter/common/Section/index.js +2 -0
- package/dist/es/c/SiteFooter/common/index.js +1 -0
- package/dist/es/c/SiteFooter/index.js +2 -0
- package/dist/es/c/SiteFooter/styles.scss +34 -0
- package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +92 -0
- package/dist/es/c/SiteHeaderCTA/index.js +2 -0
- package/dist/es/c/SiteHeaderCTA/styles.scss +44 -0
- package/dist/es/c/SiteMission/SiteMission.js +96 -0
- package/dist/es/c/SiteMission/index.js +2 -0
- package/dist/es/c/SiteMission/styles.scss +30 -0
- package/dist/es/c/SiteNavigation/SiteNavigation.js +111 -0
- package/dist/es/c/SiteNavigation/index.js +2 -0
- package/dist/es/c/SiteNavigation/styles.scss +118 -0
- package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +81 -0
- package/dist/es/c/SiteOnboardingStep/index.js +2 -0
- package/dist/es/c/SiteOnboardingStep/styles.scss +51 -0
- package/dist/es/c/SitePricing/SitePricing.js +91 -0
- package/dist/es/c/SitePricing/index.js +2 -0
- package/dist/es/c/SitePricing/styles.scss +73 -0
- package/dist/es/c/SiteServices/SiteServices.js +195 -0
- package/dist/es/c/SiteServices/index.js +2 -0
- package/dist/es/c/SiteServices/styles.scss +138 -0
- package/dist/es/c/TeamGallery/TeamGallery.js +64 -0
- package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +64 -0
- package/dist/es/c/TeamGallery/common/PersonCard/index.js +2 -0
- package/dist/es/c/TeamGallery/common/index.js +1 -0
- package/dist/es/c/TeamGallery/index.js +2 -0
- package/dist/es/c/TeamGallery/styles.scss +100 -0
- package/dist/es/c/Testimonials/Testimonials.js +99 -0
- package/dist/es/c/Testimonials/index.js +2 -0
- package/dist/es/c/Testimonials/styles.scss +112 -0
- package/dist/es/c/index.js +3 -0
- package/dist/es/d/index.js +0 -0
- package/dist/es/experimental/GradientBackground/GradientBackground.js +76 -0
- package/dist/es/experimental/GradientBackground/index.js +2 -0
- package/dist/es/experimental/GradientBackground/styles.scss +64 -0
- package/dist/es/experimental/index.js +1 -0
- package/dist/es/f/FormInput/FormInput.js +85 -0
- package/dist/es/f/FormInput/index.js +2 -0
- package/dist/es/f/common/Debugger/Debugger.js +64 -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 +76 -0
- package/dist/es/f/common/Label/index.js +2 -0
- package/dist/es/f/common/Label/styles.scss +11 -0
- package/dist/es/f/common/index.js +3 -0
- package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +85 -0
- package/dist/es/f/fields/CheckboxInput/index.js +2 -0
- package/dist/es/f/fields/CheckboxInput/styles.scss +28 -0
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +135 -0
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +105 -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 +52 -0
- package/dist/es/f/fields/RadioInput/RadioInput.js +90 -0
- package/dist/es/f/fields/RadioInput/index.js +2 -0
- package/dist/es/f/fields/RadioInput/styles.scss +26 -0
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +103 -0
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +111 -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 +43 -0
- package/dist/es/f/fields/SelectInput/SelectInput.js +101 -0
- package/dist/es/f/fields/SelectInput/index.js +2 -0
- package/dist/es/f/fields/SelectInput/styles.scss +30 -0
- package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +111 -0
- package/dist/es/f/fields/TaskRecommendation/index.js +2 -0
- package/dist/es/f/fields/TaskRecommendation/styles.scss +37 -0
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +111 -0
- package/dist/es/f/fields/TaskRecommendationInput/index.js +2 -0
- package/dist/es/f/fields/TaskRecommendationInput/styles.scss +41 -0
- package/dist/es/f/fields/TextArea/TextArea.js +124 -0
- package/dist/es/f/fields/TextArea/index.js +2 -0
- package/dist/es/f/fields/TextArea/styles.scss +19 -0
- package/dist/es/f/fields/TextInput/TextInput.js +111 -0
- package/dist/es/f/fields/TextInput/index.js +2 -0
- package/dist/es/f/fields/TextInput/styles.scss +26 -0
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +132 -0
- package/dist/es/f/fields/TextareaInput/index.js +2 -0
- package/dist/es/f/fields/TextareaInput/styles.scss +19 -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 +7 -1
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +49 -0
- package/dist/es/r/SwitchRouteMap/index.js +2 -0
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +67 -0
- package/dist/es/r/common/PrivateRoute/index.js +2 -0
- package/dist/es/r/common/index.js +1 -0
- package/dist/es/r/index.js +2 -0
- package/jest.config.js +24 -0
- package/package.json +83 -22
- package/postcss.config.js +13 -0
- package/scripts/postinstall.js +1 -0
- package/scripts/upgrade.sh +10 -0
- package/src/Storyshots.test.js +3 -0
- package/src/__snapshots__/Storyshots.test.js.snap +10026 -0
- package/src/assets/images/Ellipse1.png +0 -0
- package/src/assets/images/Ellipse2.png +0 -0
- 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/Vector.png +0 -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 +14 -0
- package/src/stories/StyleGuide/colors.stories.mdx +73 -0
- package/src/stories/StyleGuide/cssClasses.stories.mdx +16 -0
- package/src/stories/StyleGuide/helpers.js +48 -0
- package/src/stories/StyleGuide/icons.stories.mdx +29 -0
- package/src/stories/StyleGuide/typography.stories.mdx +56 -0
- package/src/stories/a/AnimatedCounter.stories.jsx +34 -0
- package/src/stories/a/ContentCard.stories.jsx +158 -0
- package/src/stories/a/Conversation.stories.jsx +46 -0
- package/src/stories/a/CustomerLogos.stories.jsx +35 -0
- package/src/stories/a/CustomerStat.stories.jsx +22 -0
- package/src/stories/a/DashboardNavbar.stories.jsx +57 -0
- package/src/stories/a/DotInfo.stories.jsx +32 -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/LoadingCircle.stories.jsx +28 -0
- package/src/stories/a/People.stories.jsx +72 -0
- package/src/stories/a/ProgressBar.stories.jsx +75 -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 +112 -0
- package/src/stories/a/SiteContext.stories.jsx +42 -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 +102 -0
- package/src/stories/b/Button.stories.jsx +84 -0
- package/src/stories/b/Card.stories.jsx +36 -0
- package/src/stories/b/Logo.stories.jsx +37 -0
- package/src/stories/b/Metrics.stories.jsx +62 -0
- package/src/stories/b/Page.stories.jsx +84 -0
- package/src/stories/b/QuestionDropdown.stories.jsx +62 -0
- package/src/stories/b/Segment.stories.jsx +34 -0
- package/src/stories/b/SocialMediaButton.stories.jsx +73 -0
- package/src/stories/b/ThemeSelector.stories.jsx +53 -0
- package/src/stories/b/Title.stories.jsx +49 -0
- package/src/stories/c/ContentSlides.stories.jsx +348 -0
- package/src/stories/c/Hero.stories.jsx +46 -0
- package/src/stories/c/Shortener.stories.jsx +28 -0
- package/src/stories/colors.js +76 -0
- package/src/stories/f/CheckboxInput.stories.jsx +37 -0
- package/src/stories/f/ChoicesInput.stories.jsx +168 -0
- package/src/stories/f/Description.stories.jsx +22 -0
- package/src/stories/f/FormInput.stories.jsx +187 -0
- package/src/stories/f/Label.stories.jsx +22 -0
- package/src/stories/f/RadioInput.stories.jsx +37 -0
- package/src/stories/f/RatingsInput.stories.jsx +56 -0
- package/src/stories/f/SelectInput.stories.jsx +81 -0
- package/src/stories/f/TaskRecommendationInput.stories.jsx +38 -0
- package/src/stories/f/TextInput.stories.jsx +79 -0
- package/src/stories/f/TextareaInput.stories.jsx +49 -0
- package/src/stories/r/PrivateRoute.stories.jsx +16 -0
- package/src/stories/r/SwitchRouteMap.stories.jsx +14 -0
- package/src/stories/utils/Router.jsx +20 -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/ContentCard/ContentCard.jsx +84 -0
- package/src/ui/a/ContentCard/common/Section/Section.jsx +79 -0
- 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/Conversation/Context.js +3 -0
- package/src/ui/a/Conversation/Conversation.jsx +107 -0
- package/src/ui/a/Conversation/common/Message/Message.jsx +90 -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 +54 -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/DashboardNavbar/DashboardNavbar.jsx +74 -0
- package/src/ui/a/DashboardNavbar/common/NavItem/NavItem.jsx +64 -0
- package/src/ui/a/DashboardNavbar/common/NavItem/index.js +2 -0
- package/src/ui/a/DashboardNavbar/common/NavItem/styles.scss +9 -0
- package/src/ui/a/DashboardNavbar/common/NavProfile/NavProfile.jsx +64 -0
- package/src/ui/a/DashboardNavbar/common/NavProfile/index.js +2 -0
- package/src/ui/a/DashboardNavbar/common/NavProfile/styles.scss +9 -0
- package/src/ui/a/DashboardNavbar/common/index.js +2 -0
- package/src/ui/a/DashboardNavbar/index.js +2 -0
- package/src/ui/a/DashboardNavbar/styles.scss +14 -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/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/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/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 +154 -0
- package/src/ui/a/Shapes/index.js +2 -0
- package/src/ui/a/Shapes/styles.scss +199 -0
- package/src/ui/a/SiteContext/Context.js +3 -0
- package/src/ui/a/SiteContext/ContextProvider.jsx +89 -0
- package/src/ui/a/SiteContext/index.js +5 -0
- package/src/ui/a/SiteContext/useSite.js +4 -0
- package/src/ui/a/SiteContext/useTheme.js +47 -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 +26 -0
- package/src/ui/b/Button/Button.jsx +112 -0
- package/src/ui/b/Button/index.js +2 -0
- package/src/ui/b/Button/styles.scss +96 -0
- package/src/ui/b/Card/Card.jsx +63 -0
- package/src/ui/b/Card/common/Group/Group.jsx +70 -0
- package/src/ui/b/Card/common/Group/index.js +2 -0
- package/src/ui/b/Card/common/Group/styles.scss +61 -0
- package/src/ui/b/Card/common/index.js +1 -0
- package/src/ui/b/Card/index.js +2 -0
- package/src/ui/b/Card/styles.scss +12 -0
- 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 +147 -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/Context.js +3 -0
- package/src/ui/b/Page/Page.jsx +122 -0
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +272 -0
- package/src/ui/b/Page/common/PageHelmet/index.js +2 -0
- package/src/ui/b/Page/common/Section/Section.jsx +101 -0
- package/src/ui/b/Page/common/Section/index.js +2 -0
- package/src/ui/b/Page/common/index.js +2 -0
- package/src/ui/b/Page/index.js +4 -0
- package/src/ui/b/Page/styles.scss +16 -0
- package/src/ui/b/Page/usePage.js +4 -0
- package/src/ui/b/QuestionDropdown/QuestionDropdown.jsx +112 -0
- package/src/ui/b/QuestionDropdown/index.js +2 -0
- package/src/ui/b/QuestionDropdown/styles.scss +95 -0
- package/src/ui/b/Segment/Segment.jsx +78 -0
- package/src/ui/b/Segment/index.js +2 -0
- package/src/ui/b/Segment/styles.scss +26 -0
- 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/Title/Title.jsx +152 -0
- package/src/ui/b/Title/index.js +2 -0
- package/src/ui/b/Title/styles.scss +16 -0
- package/src/ui/b/index.js +10 -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 +138 -0
- package/src/ui/c/ContentSlides/common/HorizontalMenu/index.js +2 -0
- package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +149 -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 +308 -0
- package/src/ui/c/ContentSlides/useContentSlides.js +4 -0
- package/src/ui/c/Hero/Hero.jsx +96 -0
- 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/index.js +3 -0
- package/src/ui/d/index.js +0 -0
- package/src/ui/f/FormInput/FormInput.jsx +122 -0
- package/src/ui/f/FormInput/index.js +2 -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 +88 -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 +96 -0
- package/src/ui/f/common/Label/index.js +2 -0
- package/src/ui/f/common/Label/styles.scss +11 -0
- package/src/ui/f/common/index.js +3 -0
- package/src/ui/f/fields/CheckboxInput/CheckboxInput.jsx +107 -0
- package/src/ui/f/fields/CheckboxInput/index.js +2 -0
- package/src/ui/f/fields/CheckboxInput/styles.scss +28 -0
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +155 -0
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +110 -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 +52 -0
- package/src/ui/f/fields/RadioInput/RadioInput.jsx +112 -0
- package/src/ui/f/fields/RadioInput/index.js +2 -0
- package/src/ui/f/fields/RadioInput/styles.scss +26 -0
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +119 -0
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +136 -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 +43 -0
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +114 -0
- package/src/ui/f/fields/SelectInput/index.js +2 -0
- package/src/ui/f/fields/SelectInput/styles.scss +30 -0
- package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +130 -0
- package/src/ui/f/fields/TaskRecommendationInput/index.js +2 -0
- package/src/ui/f/fields/TaskRecommendationInput/styles.scss +41 -0
- package/src/ui/f/fields/TextInput/TextInput.jsx +146 -0
- package/src/ui/f/fields/TextInput/index.js +2 -0
- package/src/ui/f/fields/TextInput/styles.scss +26 -0
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +159 -0
- package/src/ui/f/fields/TextareaInput/index.js +2 -0
- package/src/ui/f/fields/TextareaInput/styles.scss +19 -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 +6 -1
- package/src/ui/r/SwitchRouteMap/SwitchRouteMap.jsx +64 -0
- package/src/ui/r/SwitchRouteMap/index.js +2 -0
- package/src/ui/r/common/PrivateRoute/PrivateRoute.jsx +73 -0
- package/src/ui/r/common/PrivateRoute/index.js +2 -0
- package/src/ui/r/common/index.js +1 -0
- package/src/ui/r/index.js +2 -0
- package/stylelint.config.js +45 -0
- package/dist/cjs/Button/Button.js +0 -75
- package/dist/cjs/Button/button.css +0 -30
- package/dist/es/Button/Button.js +0 -63
- package/dist/es/Button/button.css +0 -30
- package/dist/es/Button/index.js +0 -1
- package/src/stories/Button.stories.js +0 -36
- package/src/ui/Button/Button.js +0 -52
- package/src/ui/Button/button.css +0 -30
- package/src/ui/Button/index.js +0 -1
- package/test/Button/button.css +0 -30
- package/test/src/ui/Button/button.css +0 -30
- package/test/ui/Button/button.css +0 -30
|
@@ -0,0 +1,91 @@
|
|
|
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-mobile-row-gap: 1em;
|
|
8
|
+
$default-desktop-row-gap: 3em;
|
|
9
|
+
$default-border-radius: 50%;
|
|
10
|
+
$default-mobile-circle-size: 8em;
|
|
11
|
+
$default-desktop-circle-size: 10em;
|
|
12
|
+
$default-translateY:3em;
|
|
13
|
+
$default-desktop-description-width:12em;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
$default-mobile-description-width:9em;
|
|
17
|
+
|
|
18
|
+
.#{bem.$base}.metrics {
|
|
19
|
+
display: grid;
|
|
20
|
+
row-gap: 1em;
|
|
21
|
+
|
|
22
|
+
.metric {
|
|
23
|
+
align-items: center;
|
|
24
|
+
display: flex;
|
|
25
|
+
row-gap: $default-mobile-row-gap;
|
|
26
|
+
|
|
27
|
+
.circle {
|
|
28
|
+
align-items: center;
|
|
29
|
+
background: var(--light-y);
|
|
30
|
+
border-radius: $default-border-radius;
|
|
31
|
+
display: flex;
|
|
32
|
+
height: $default-mobile-circle-size;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: $default-mobile-circle-size;
|
|
35
|
+
|
|
36
|
+
.description-md {
|
|
37
|
+
color: var(--subtitle);
|
|
38
|
+
font-style: italic;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.description-sm {
|
|
43
|
+
color: var(--subtitle);
|
|
44
|
+
font-style: italic;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// mobile style
|
|
49
|
+
@include mixins.media($to:$sm-md) {
|
|
50
|
+
.metric {
|
|
51
|
+
column-gap: $default-mobile-row-gap;
|
|
52
|
+
|
|
53
|
+
.description-sm {
|
|
54
|
+
width: 50%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// tablet style
|
|
60
|
+
@include mixins.media($from:$xs-sm,$to:$sm-md) {
|
|
61
|
+
.metric {
|
|
62
|
+
.description-sm {
|
|
63
|
+
width: 30%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// desktop style
|
|
69
|
+
@include mixins.media($from:$sm-md) {
|
|
70
|
+
grid-template-columns: repeat(2, 1fr);
|
|
71
|
+
row-gap: 2em;
|
|
72
|
+
|
|
73
|
+
.metric {
|
|
74
|
+
.circle {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
height: $default-desktop-circle-size;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
position: relative;
|
|
80
|
+
width: $default-desktop-circle-size;
|
|
81
|
+
|
|
82
|
+
.description-md {
|
|
83
|
+
left: 40%;
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 70%;
|
|
86
|
+
width: $default-desktop-description-width;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
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
|
+
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
|
+
var _default = /*#__PURE__*/React.createContext({});
|
|
15
|
+
|
|
16
|
+
exports.default = _default;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
+
|
|
14
|
+
var _common = require("./common");
|
|
15
|
+
|
|
16
|
+
var _Context = _interopRequireDefault(require("./Context"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["id", "className", "style", "children", "itemType", "as", "helmetProps"];
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
// import('./styles.scss')
|
|
33
|
+
// Local Definitions
|
|
34
|
+
var baseClassName = _bem.default.base;
|
|
35
|
+
var componentClassName = 'page';
|
|
36
|
+
/** The page components structures page and blocks
|
|
37
|
+
* It uses **the color provided** by `x`
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
var Page = _ref => {
|
|
42
|
+
var {
|
|
43
|
+
id,
|
|
44
|
+
className: userClassName,
|
|
45
|
+
style,
|
|
46
|
+
children,
|
|
47
|
+
itemType,
|
|
48
|
+
as: Wrapper,
|
|
49
|
+
helmetProps
|
|
50
|
+
} = _ref,
|
|
51
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
52
|
+
|
|
53
|
+
(0, React.useLayoutEffect)(() => {
|
|
54
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
55
|
+
}, []);
|
|
56
|
+
(0, React.useEffect)(() => {
|
|
57
|
+
// If we're on the client, we make sure to scroll up when the page loads
|
|
58
|
+
// This is a necessary transform to make react apt for website pages
|
|
59
|
+
if (typeof window !== 'undefined') {
|
|
60
|
+
window.scrollTo(0, 0);
|
|
61
|
+
}
|
|
62
|
+
}, []);
|
|
63
|
+
return /*#__PURE__*/React.createElement(_Context.default.Provider, {
|
|
64
|
+
value: {
|
|
65
|
+
// In the future we can pass more data here
|
|
66
|
+
id
|
|
67
|
+
}
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
69
|
+
id: id,
|
|
70
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
71
|
+
style: style,
|
|
72
|
+
itemType: itemType,
|
|
73
|
+
itemScope: itemType && ' '
|
|
74
|
+
}, otherProps), itemType && /*#__PURE__*/React.createElement("meta", {
|
|
75
|
+
itemProp: "mainEntityOfPage",
|
|
76
|
+
content: helmetProps === null || helmetProps === void 0 ? void 0 : helmetProps.canonical
|
|
77
|
+
}), helmetProps && /*#__PURE__*/React.createElement(_common.PageHelmet, helmetProps), children));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
Page.propTypes = {
|
|
81
|
+
/**
|
|
82
|
+
* The HTML id for this element
|
|
83
|
+
*/
|
|
84
|
+
id: _propTypes.default.string.isRequired,
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The HTML class names for this element
|
|
88
|
+
*/
|
|
89
|
+
className: _propTypes.default.string,
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The React-written, css properties for this element.
|
|
93
|
+
*/
|
|
94
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The children JSX
|
|
98
|
+
*/
|
|
99
|
+
children: _propTypes.default.node,
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The base node (html or react).
|
|
103
|
+
*/
|
|
104
|
+
as: _propTypes.default.node,
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The main entity schema. Refer to [Google Developers Site](https://developers.google.com/search/docs/guides/search-gallery) for info.
|
|
108
|
+
*/
|
|
109
|
+
itemType: _propTypes.default.string,
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The props to pass to `Page.Helmet`. Refer to the corresponding section of the docs.
|
|
113
|
+
*/
|
|
114
|
+
helmetProps: _propTypes.default.objectOf(_propTypes.default.string)
|
|
115
|
+
};
|
|
116
|
+
Page.defaultProps = {
|
|
117
|
+
as: 'main'
|
|
118
|
+
};
|
|
119
|
+
Page.Helmet = _common.PageHelmet;
|
|
120
|
+
Page.Section = _common.Section;
|
|
121
|
+
var _default = Page;
|
|
122
|
+
exports.default = _default;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _reactHelmet = require("react-helmet");
|
|
13
|
+
|
|
14
|
+
var _a = require("../../../../a");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
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
|
+
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
|
+
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); }
|
|
23
|
+
|
|
24
|
+
var helmetMap = [{
|
|
25
|
+
variables: ['robots'],
|
|
26
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
27
|
+
name: "robots",
|
|
28
|
+
key: "robots",
|
|
29
|
+
content: v || '"index, follow"'
|
|
30
|
+
})
|
|
31
|
+
}, {
|
|
32
|
+
variables: ['title_tag', 'title'],
|
|
33
|
+
render: (v, c) => {
|
|
34
|
+
var _c$SITE;
|
|
35
|
+
|
|
36
|
+
return /*#__PURE__*/React.createElement("title", {
|
|
37
|
+
key: "title_tag"
|
|
38
|
+
}, "\n ".concat(v, "\n ").concat(((_c$SITE = c.SITE) === null || _c$SITE === void 0 ? void 0 : _c$SITE.TITLE_SUFFIX) && c.SITE.TITLE_SUFFIX, "\n "));
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
variables: ['meta_description'],
|
|
42
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
43
|
+
name: "description",
|
|
44
|
+
content: v,
|
|
45
|
+
key: "meta_description"
|
|
46
|
+
})
|
|
47
|
+
}, {
|
|
48
|
+
variables: ['canonical'],
|
|
49
|
+
render: (v, c) => {
|
|
50
|
+
var _c$SITE2, _c$SITE3;
|
|
51
|
+
|
|
52
|
+
return (_c$SITE2 = c.SITE) !== null && _c$SITE2 !== void 0 && _c$SITE2.CANONICAL ? /*#__PURE__*/React.createElement("link", {
|
|
53
|
+
rel: "canonical",
|
|
54
|
+
href: "".concat((_c$SITE3 = c.SITE) === null || _c$SITE3 === void 0 ? void 0 : _c$SITE3.CANONICAL).concat(v),
|
|
55
|
+
key: "canonical"
|
|
56
|
+
}) : /*#__PURE__*/React.createElement("link", {
|
|
57
|
+
rel: "canonical",
|
|
58
|
+
href: v,
|
|
59
|
+
key: "canonical"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
variables: ['twitter_title', 'title', 'title_tag'],
|
|
64
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
65
|
+
name: "twitter:title",
|
|
66
|
+
content: v,
|
|
67
|
+
key: "twitter_title"
|
|
68
|
+
})
|
|
69
|
+
}, {
|
|
70
|
+
variables: ['twitter_description', 'meta_description'],
|
|
71
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
72
|
+
name: "twitter:description",
|
|
73
|
+
content: v,
|
|
74
|
+
key: "twitter_description"
|
|
75
|
+
})
|
|
76
|
+
}, {
|
|
77
|
+
test: true,
|
|
78
|
+
variables: ['twitter_image, main_image'],
|
|
79
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
80
|
+
name: "twitter:image",
|
|
81
|
+
content: v,
|
|
82
|
+
key: "twitter_image"
|
|
83
|
+
})
|
|
84
|
+
}, {
|
|
85
|
+
variables: ['og_title', 'title', 'title_tag'],
|
|
86
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
87
|
+
property: "og:title",
|
|
88
|
+
content: v,
|
|
89
|
+
key: "og_title"
|
|
90
|
+
})
|
|
91
|
+
}, {
|
|
92
|
+
variables: ['og_description', 'meta_description'],
|
|
93
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
94
|
+
property: "og:description",
|
|
95
|
+
content: v,
|
|
96
|
+
key: "og_description"
|
|
97
|
+
})
|
|
98
|
+
}, {
|
|
99
|
+
test: true,
|
|
100
|
+
variables: ['og_image', 'main_image'],
|
|
101
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
102
|
+
property: "og:image",
|
|
103
|
+
content: v,
|
|
104
|
+
key: "og_image"
|
|
105
|
+
})
|
|
106
|
+
}, {
|
|
107
|
+
test: true,
|
|
108
|
+
variables: ['og_type'],
|
|
109
|
+
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
110
|
+
property: "og:type",
|
|
111
|
+
content: v || 'article',
|
|
112
|
+
key: "og_type"
|
|
113
|
+
})
|
|
114
|
+
}, {
|
|
115
|
+
variables: ['og_url', 'canonical'],
|
|
116
|
+
render: (v, c) => {
|
|
117
|
+
var _c$SITE4, _c$SITE5;
|
|
118
|
+
|
|
119
|
+
return (_c$SITE4 = c.SITE) !== null && _c$SITE4 !== void 0 && _c$SITE4.CANONICAL ? /*#__PURE__*/React.createElement("meta", {
|
|
120
|
+
property: "og:url",
|
|
121
|
+
content: "".concat((_c$SITE5 = c.SITE) === null || _c$SITE5 === void 0 ? void 0 : _c$SITE5.CANONICAL).concat(v),
|
|
122
|
+
key: "og_url"
|
|
123
|
+
}) : /*#__PURE__*/React.createElement("meta", {
|
|
124
|
+
property: "og:url",
|
|
125
|
+
content: v,
|
|
126
|
+
key: "og_url"
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}];
|
|
130
|
+
|
|
131
|
+
var PageHelmet = _ref => {
|
|
132
|
+
var props = _extends({}, _ref);
|
|
133
|
+
|
|
134
|
+
// const intl = useIntl()
|
|
135
|
+
var context = (0, _a.useSite)();
|
|
136
|
+
var HelmetContent = (0, React.useMemo)(() => helmetMap.reduce(
|
|
137
|
+
/* eslint-disable no-unused-vars -- TODO add test or ssr mode */
|
|
138
|
+
(a, _ref2) => {
|
|
139
|
+
var {
|
|
140
|
+
variables,
|
|
141
|
+
render,
|
|
142
|
+
test
|
|
143
|
+
} = _ref2;
|
|
144
|
+
|
|
145
|
+
/* eslint-enable no-unused-vars */
|
|
146
|
+
var current;
|
|
147
|
+
var content = '';
|
|
148
|
+
/* eslint-disable no-restricted-syntax -- we need to be able to break the loop */
|
|
149
|
+
|
|
150
|
+
for (var key in variables) {
|
|
151
|
+
if (props[variables[key]]) {
|
|
152
|
+
content = props[variables[key]];
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/* eslint-enable no-restricted-syntax */
|
|
157
|
+
// TODO Add SSR mode
|
|
158
|
+
// if ((typeof test === 'undefined') || (test && content.length)) {
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
if (content.length) {
|
|
162
|
+
// if content is an object, then its a message and we need to render it as a string first
|
|
163
|
+
// const stringContent = typeof content === 'string' ? content : intl.formatMessage(content)
|
|
164
|
+
// const stringContent = typeof content === 'string' ? content : intl.formatMessage(content)
|
|
165
|
+
var stringContent = content; // console.log(stringContent, content)
|
|
166
|
+
|
|
167
|
+
current = render(stringContent, context);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (current) {
|
|
171
|
+
a.push(current);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return a;
|
|
175
|
+
}, []), [props, context]);
|
|
176
|
+
return /*#__PURE__*/React.createElement(_reactHelmet.Helmet, null, HelmetContent);
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
PageHelmet.propTypes = {
|
|
180
|
+
robots: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
181
|
+
title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]).isRequired,
|
|
182
|
+
title_tag: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
183
|
+
canonical: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
184
|
+
meta_description: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
185
|
+
main_image: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
186
|
+
twitter_title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
187
|
+
twitter_description: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
188
|
+
twitter_image: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
189
|
+
og_title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
190
|
+
og_description: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
191
|
+
og_image: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
192
|
+
og_type: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
193
|
+
og_url: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object])
|
|
194
|
+
};
|
|
195
|
+
var _default = PageHelmet;
|
|
196
|
+
exports.default = _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "PageHelmet", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _PageHelmet.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _PageHelmet = _interopRequireDefault(require("./PageHelmet"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
+
|
|
14
|
+
var _a = require("../../../../a");
|
|
15
|
+
|
|
16
|
+
var _usePage = _interopRequireDefault(require("../../usePage"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["id", "className", "style", "children", "backgroundShape", "backgroundPin", "backgroundHeight"];
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
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
|
+
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 _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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
var baseClassName = _bem.default.base;
|
|
33
|
+
var componentClassName = 'section';
|
|
34
|
+
|
|
35
|
+
var Section = _ref => {
|
|
36
|
+
var {
|
|
37
|
+
id: userId,
|
|
38
|
+
className: userClassName,
|
|
39
|
+
style,
|
|
40
|
+
children,
|
|
41
|
+
backgroundShape,
|
|
42
|
+
backgroundPin,
|
|
43
|
+
backgroundHeight
|
|
44
|
+
} = _ref,
|
|
45
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
+
|
|
47
|
+
var {
|
|
48
|
+
id: pageId
|
|
49
|
+
} = (0, _usePage.default)();
|
|
50
|
+
var sectionId = userId && "".concat(pageId, "_").concat(userId);
|
|
51
|
+
return /*#__PURE__*/React.createElement("section", _extends({
|
|
52
|
+
id: sectionId,
|
|
53
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
54
|
+
style: style
|
|
55
|
+
}, otherProps), children, backgroundShape && /*#__PURE__*/React.createElement(_a.Shapes, {
|
|
56
|
+
pin: backgroundPin,
|
|
57
|
+
height: backgroundHeight,
|
|
58
|
+
shape: backgroundShape
|
|
59
|
+
}));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
Section.propTypes = {
|
|
63
|
+
/**
|
|
64
|
+
* The HTML id for this element
|
|
65
|
+
*/
|
|
66
|
+
id: _propTypes.default.string,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The HTML class names for this element
|
|
70
|
+
*/
|
|
71
|
+
className: _propTypes.default.string,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The React-written, css properties for this element.
|
|
75
|
+
*/
|
|
76
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The children JSX
|
|
80
|
+
*/
|
|
81
|
+
children: _propTypes.default.node,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The background shape to use for this section.
|
|
85
|
+
*/
|
|
86
|
+
backgroundShape: _propTypes.default.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles']),
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The background pin to use for if the background shape is set.
|
|
90
|
+
*/
|
|
91
|
+
backgroundPin: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The background height to use for if the background shape is set.
|
|
95
|
+
*/
|
|
96
|
+
backgroundHeight: _propTypes.default.string
|
|
97
|
+
};
|
|
98
|
+
Section.defaultProps = {// someProp:false
|
|
99
|
+
};
|
|
100
|
+
var _default = Section;
|
|
101
|
+
exports.default = _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Section", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Section.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _Section = _interopRequireDefault(require("./Section"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "PageHelmet", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _PageHelmet.PageHelmet;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "Section", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _Section.Section;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _PageHelmet = require("./PageHelmet");
|
|
20
|
+
|
|
21
|
+
var _Section = require("./Section");
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Page", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Page.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "usePage", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _usePage.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "PageContext", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _Context.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
var _Page = _interopRequireDefault(require("./Page"));
|
|
26
|
+
|
|
27
|
+
var _usePage = _interopRequireDefault(require("./usePage"));
|
|
28
|
+
|
|
29
|
+
var _Context = _interopRequireDefault(require("./Context"));
|
|
30
|
+
|
|
31
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _Context = _interopRequireDefault(require("./Context"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = () => (0, _react.useContext)(_Context.default);
|
|
15
|
+
|
|
16
|
+
exports.default = _default;
|