@pareto-engineering/design-system 0.0.1-alpha.7 → 0.0.1-alpha.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -1
- package/.github/workflows/{push-development.yaml → push-main-branches.yaml} +3 -1
- package/.github/workflows/{pr.yaml → push-pr.yaml} +23 -4
- package/.github/{workflows → workflows.old}/push-production.yaml +0 -0
- package/.github/{workflows → workflows.old}/push-staging.yaml +0 -0
- package/.github/{workflows → workflows.old}/test-publish.no +0 -0
- package/.github/{workflows → workflows.old}/test-publish.yaml +0 -0
- package/babel.config.js +4 -0
- package/config/global-setup.js +3 -0
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +134 -0
- package/dist/cjs/a/AnimatedCounter/index.js +15 -0
- package/dist/cjs/a/AnimatedCounter/styles.scss +24 -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 +52 -0
- package/dist/cjs/{c/SiteContext/useSite.js → a/Conversation/useConversation.js} +0 -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 +3 -3
- package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +3 -3
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +3 -3
- 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/{Tester → Figure}/index.js +3 -3
- package/dist/cjs/a/Figure/styles.scss +19 -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 +87 -0
- package/dist/cjs/a/People/common/Person/Person.js +89 -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 +54 -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/SiteContext/Context.js +2 -2
- package/dist/cjs/a/SiteContext/ContextProvider.js +41 -11
- package/dist/cjs/a/SiteContext/useTheme.js +3 -1
- 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 +145 -1
- package/dist/cjs/b/Button/Button.js +43 -9
- package/dist/cjs/b/Button/styles.scss +37 -5
- package/dist/cjs/b/Card/Card.js +3 -3
- package/dist/cjs/b/Card/common/Group/Group.js +3 -3
- 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/Page/Context.js +2 -2
- package/dist/cjs/b/Page/Page.js +6 -4
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +37 -24
- package/dist/cjs/b/Page/common/Section/Section.js +6 -4
- package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +25 -17
- package/dist/cjs/b/QuestionDropdown/styles.scss +2 -2
- package/dist/cjs/b/Segment/Segment.js +3 -3
- 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 +3 -3
- package/dist/cjs/b/index.js +25 -1
- 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/{SiteContext → BlogContext}/index.js +5 -13
- 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 +3 -3
- package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +3 -3
- package/dist/cjs/c/TeamGallery/styles.scss +2 -2
- 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 +25 -3
- package/dist/cjs/d/index.js +1 -0
- package/dist/cjs/f/FormInput/FormInput.js +109 -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 +37 -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 +26 -0
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +48 -29
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +8 -7
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +113 -0
- package/dist/es/a/AnimatedCounter/index.js +2 -0
- package/dist/es/a/AnimatedCounter/styles.scss +24 -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/{c/SiteContext → a/Conversation}/Context.js +0 -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 +52 -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/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/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 +66 -0
- package/dist/es/a/People/common/Person/Person.js +69 -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 +54 -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/SiteContext/ContextProvider.js +40 -7
- package/dist/es/a/SiteContext/useTheme.js +4 -2
- 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 +19 -1
- package/dist/es/b/Button/Button.js +36 -5
- package/dist/es/b/Button/styles.scss +37 -5
- 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/Page/common/PageHelmet/PageHelmet.js +37 -21
- package/dist/es/b/QuestionDropdown/QuestionDropdown.js +17 -9
- package/dist/es/b/QuestionDropdown/styles.scss +2 -2
- 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/index.js +4 -1
- 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/styles.scss +2 -2
- 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 -1
- package/dist/es/d/index.js +0 -0
- package/dist/es/f/FormInput/FormInput.js +84 -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 +37 -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 +3 -1
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +34 -25
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +2 -3
- package/jest.config.js +3 -1
- package/package.json +44 -35
- package/src/__snapshots__/Storyshots.test.js.snap +6289 -498
- 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 +0 -4
- package/src/stories/StyleGuide/colors.stories.mdx +0 -10
- package/src/stories/StyleGuide/cssClasses.stories.mdx +16 -0
- package/src/stories/StyleGuide/helpers.js +11 -3
- package/src/stories/StyleGuide/icons.stories.mdx +29 -0
- package/src/stories/a/AnimatedCounter.stories.jsx +30 -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/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 +48 -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/SiteContext.stories.jsx +15 -2
- 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 +31 -1
- package/src/stories/b/Logo.stories.jsx +37 -0
- package/src/stories/b/QuestionDropdown.stories.jsx +15 -0
- package/src/stories/b/SocialMediaButton.stories.jsx +73 -0
- package/src/stories/b/ThemeSelector.stories.jsx +53 -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 +11 -8
- 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 +63 -0
- package/src/stories/f/TextareaInput.stories.jsx +49 -0
- package/src/stories/utils/Router.jsx +20 -0
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +124 -0
- package/src/ui/a/AnimatedCounter/index.js +2 -0
- package/src/ui/a/AnimatedCounter/styles.scss +24 -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 +52 -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/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 +90 -0
- package/src/ui/{c/TeamGallery/common/PersonCard/PersonCard.jsx → a/People/common/Person/Person.jsx} +23 -28
- 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 +54 -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/SiteContext/ContextProvider.jsx +37 -4
- package/src/ui/a/SiteContext/useTheme.js +4 -1
- 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 +18 -0
- package/src/ui/b/Button/Button.jsx +36 -4
- package/src/ui/b/Button/styles.scss +37 -5
- 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/Page/common/PageHelmet/PageHelmet.jsx +16 -5
- package/src/ui/b/QuestionDropdown/QuestionDropdown.jsx +12 -7
- package/src/ui/b/QuestionDropdown/styles.scss +2 -2
- 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 +3 -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/{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/index.js +3 -1
- package/src/ui/d/index.js +0 -0
- package/src/ui/f/FormInput/FormInput.jsx +121 -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 +37 -0
- package/src/ui/f/fields/TextInput/TextInput.jsx +145 -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 +2 -0
- package/src/ui/r/SwitchRouteMap/SwitchRouteMap.jsx +46 -37
- package/src/ui/r/common/PrivateRoute/PrivateRoute.jsx +2 -3
- package/dist/cjs/a/Tester/Tester.js +0 -65
- package/dist/cjs/a/Tester/styles.scss +0 -9
- package/dist/cjs/c/SiteContext/Context.js +0 -16
- package/dist/cjs/c/SiteContext/ContextProvider.js +0 -65
- package/dist/cjs/c/SiteContext/useTheme.js +0 -43
- package/dist/es/a/Tester/Tester.js +0 -46
- package/dist/es/a/Tester/index.js +0 -2
- package/dist/es/a/Tester/styles.scss +0 -9
- package/dist/es/c/SiteContext/ContextProvider.js +0 -44
- package/dist/es/c/SiteContext/index.js +0 -5
- package/dist/es/c/SiteContext/useSite.js +0 -3
- package/dist/es/c/SiteContext/useTheme.js +0 -32
- package/src/stories/c/TeamGallery.stories.jsx +0 -52
- 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/.eslintrc.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
name: (push ->
|
|
1
|
+
name: (push -> main branches) Test, Push to Chromatic
|
|
2
2
|
on:
|
|
3
3
|
# Trigger the workflow on push or pull request,
|
|
4
4
|
# but only for the main branch
|
|
5
5
|
push:
|
|
6
6
|
branches:
|
|
7
7
|
- development
|
|
8
|
+
- staging
|
|
9
|
+
- production
|
|
8
10
|
#on:
|
|
9
11
|
# push:
|
|
10
12
|
# branches: [ $default-branch ]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: (pr) Test
|
|
1
|
+
name: (pr) Test, and deploy to chromatic
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -25,7 +25,17 @@ jobs:
|
|
|
25
25
|
with:
|
|
26
26
|
node-version: ${{ matrix.node-version }}
|
|
27
27
|
#- run: npm ci
|
|
28
|
-
-
|
|
28
|
+
- id: cache-modules
|
|
29
|
+
uses: actions/cache@v1
|
|
30
|
+
with:
|
|
31
|
+
path: ./node_modules
|
|
32
|
+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
|
33
|
+
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
|
36
|
+
run: |
|
|
37
|
+
npm install
|
|
38
|
+
|
|
29
39
|
#- run: npm run build --if-present
|
|
30
40
|
#- name: Test
|
|
31
41
|
# env:
|
|
@@ -51,9 +61,18 @@ jobs:
|
|
|
51
61
|
# Job steps
|
|
52
62
|
steps:
|
|
53
63
|
- uses: actions/checkout@v1
|
|
64
|
+
|
|
65
|
+
- id: cache-modules
|
|
66
|
+
uses: actions/cache@v1
|
|
67
|
+
with:
|
|
68
|
+
path: ./node_modules
|
|
69
|
+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
|
70
|
+
|
|
54
71
|
- name: Install dependencies
|
|
55
|
-
|
|
56
|
-
|
|
72
|
+
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
|
73
|
+
run: |
|
|
74
|
+
npm install
|
|
75
|
+
|
|
57
76
|
- name: Publish to Chromatic
|
|
58
77
|
uses: chromaui/action@v1
|
|
59
78
|
# Chromatic GitHub Action options
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/babel.config.js
CHANGED
|
@@ -32,6 +32,10 @@ module.exports = function (api) {
|
|
|
32
32
|
['module-resolver', {
|
|
33
33
|
root:['./src'],
|
|
34
34
|
}],
|
|
35
|
+
['@babel/plugin-proposal-private-property-in-object', { loose: true }], // This is to silence a warning after upgrading storybook to 6.2.9
|
|
36
|
+
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
37
|
+
['@babel/plugin-proposal-private-methods', { loose: true }],
|
|
38
|
+
|
|
35
39
|
// ['@babel/plugin-proposal-class-properties', { 'loose': true }],
|
|
36
40
|
/* ['babel-plugin-inline-import', {
|
|
37
41
|
'extensions':[
|
|
@@ -0,0 +1,134 @@
|
|
|
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 _reactCountup = _interopRequireDefault(require("react-countup"));
|
|
11
|
+
|
|
12
|
+
var _reactVisibilitySensor = _interopRequireDefault(require("react-visibility-sensor"));
|
|
13
|
+
|
|
14
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
16
|
+
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
// Local Definitions
|
|
25
|
+
var baseClassName = _bem.default.base;
|
|
26
|
+
var componentClassName = 'animated-counter';
|
|
27
|
+
/**
|
|
28
|
+
* This is the component description
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
var AnimatedCounter = _ref => {
|
|
32
|
+
var {
|
|
33
|
+
id,
|
|
34
|
+
className: userClassName,
|
|
35
|
+
style,
|
|
36
|
+
color,
|
|
37
|
+
number,
|
|
38
|
+
unit,
|
|
39
|
+
description,
|
|
40
|
+
descriptionPosition,
|
|
41
|
+
unitPosition,
|
|
42
|
+
delay // ...otherProps
|
|
43
|
+
|
|
44
|
+
} = _ref;
|
|
45
|
+
(0, React.useLayoutEffect)(() => {
|
|
46
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
47
|
+
}, []);
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
id: id,
|
|
50
|
+
className: [baseClassName, componentClassName, userClassName, "x-".concat(color)].filter(e => e).join(' '),
|
|
51
|
+
style: style // {...otherProps}
|
|
52
|
+
|
|
53
|
+
}, descriptionPosition === 'top' && /*#__PURE__*/React.createElement("p", {
|
|
54
|
+
className: "info top-description uc s-1 md-s0"
|
|
55
|
+
}, description), /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
className: "count s3"
|
|
57
|
+
}, unitPosition === 'before' && /*#__PURE__*/React.createElement("span", null, unit), /*#__PURE__*/React.createElement(_reactCountup.default, {
|
|
58
|
+
end: number,
|
|
59
|
+
delay: delay,
|
|
60
|
+
redraw: true
|
|
61
|
+
}, _ref2 => {
|
|
62
|
+
var {
|
|
63
|
+
countUpRef,
|
|
64
|
+
start
|
|
65
|
+
} = _ref2;
|
|
66
|
+
return /*#__PURE__*/React.createElement(_reactVisibilitySensor.default, {
|
|
67
|
+
onChange: start,
|
|
68
|
+
delayedCall: true
|
|
69
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
70
|
+
ref: countUpRef
|
|
71
|
+
}));
|
|
72
|
+
}), unitPosition === 'after' && /*#__PURE__*/React.createElement("span", null, unit)), descriptionPosition === 'bottom' && /*#__PURE__*/React.createElement("p", {
|
|
73
|
+
className: "info uc s-1 md-s0 v50 mt-v"
|
|
74
|
+
}, description));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
AnimatedCounter.propTypes = {
|
|
78
|
+
/**
|
|
79
|
+
* The HTML id for this element.
|
|
80
|
+
*/
|
|
81
|
+
id: _propTypes.default.string,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The HTML class names for this element
|
|
85
|
+
*/
|
|
86
|
+
className: _propTypes.default.string,
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The React-written, css properties for this element.
|
|
90
|
+
*/
|
|
91
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The count color
|
|
95
|
+
*/
|
|
96
|
+
color: _propTypes.default.string,
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The review count value
|
|
100
|
+
*/
|
|
101
|
+
number: _propTypes.default.number,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The review count unit
|
|
105
|
+
*/
|
|
106
|
+
unit: _propTypes.default.string,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The review description
|
|
110
|
+
*/
|
|
111
|
+
description: _propTypes.default.string,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* react counter delay
|
|
115
|
+
*/
|
|
116
|
+
delay: _propTypes.default.number,
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* If the animated counter description should be at the top
|
|
120
|
+
*/
|
|
121
|
+
descriptionPosition: _propTypes.default.oneOf(['top', 'bottom']),
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* If the unit should be before or after the animated numbers
|
|
125
|
+
*/
|
|
126
|
+
unitPosition: _propTypes.default.string
|
|
127
|
+
};
|
|
128
|
+
AnimatedCounter.defaultProps = {
|
|
129
|
+
color: 'main1',
|
|
130
|
+
descriptionPosition: 'bottom',
|
|
131
|
+
unitPosition: 'after'
|
|
132
|
+
};
|
|
133
|
+
var _default = AnimatedCounter;
|
|
134
|
+
exports.default = _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AnimatedCounter", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _AnimatedCounter.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _AnimatedCounter = _interopRequireDefault(require("./AnimatedCounter"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.#{bem.$base}.animated-counter {
|
|
7
|
+
align-items: center;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
|
|
11
|
+
.count {
|
|
12
|
+
color: var(--x);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.top-description {
|
|
16
|
+
margin-bottom: .5em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.info {
|
|
20
|
+
color: var(--metadata);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
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
|
+
var baseClassName = _bem.default.base;
|
|
23
|
+
var componentClassName = 'content-card';
|
|
24
|
+
/**
|
|
25
|
+
* This is the component description.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
var ContentCard = _ref => {
|
|
29
|
+
var {
|
|
30
|
+
id,
|
|
31
|
+
className: userClassName,
|
|
32
|
+
style,
|
|
33
|
+
color,
|
|
34
|
+
children // messages,
|
|
35
|
+
// ...otherProps
|
|
36
|
+
|
|
37
|
+
} = _ref;
|
|
38
|
+
(0, React.useLayoutEffect)(() => {
|
|
39
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
40
|
+
}, []);
|
|
41
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
id: id,
|
|
43
|
+
className: [baseClassName, componentClassName, userClassName, "y-".concat(color), 'u1'].filter(e => e).join(' '),
|
|
44
|
+
style: style
|
|
45
|
+
}, children);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
ContentCard.propTypes = {
|
|
49
|
+
/**
|
|
50
|
+
* The HTML id for this element
|
|
51
|
+
*/
|
|
52
|
+
id: _propTypes.default.string,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The HTML class names for this element
|
|
56
|
+
*/
|
|
57
|
+
className: _propTypes.default.string,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The React-written, css properties for this element.
|
|
61
|
+
*/
|
|
62
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Base color
|
|
66
|
+
*/
|
|
67
|
+
color: _propTypes.default.string,
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The children jsx
|
|
71
|
+
*/
|
|
72
|
+
children: _propTypes.default.node
|
|
73
|
+
};
|
|
74
|
+
ContentCard.defaultProps = {
|
|
75
|
+
color: 'background2'
|
|
76
|
+
};
|
|
77
|
+
ContentCard.Section = _common.Section;
|
|
78
|
+
var _default = ContentCard;
|
|
79
|
+
exports.default = _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
21
|
+
// Local Definitions
|
|
22
|
+
var baseClassName = _bem.default.base;
|
|
23
|
+
var componentClassName = 'section';
|
|
24
|
+
/**
|
|
25
|
+
* This is the component description.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
var Section = _ref => {
|
|
29
|
+
var {
|
|
30
|
+
id,
|
|
31
|
+
className: userClassName,
|
|
32
|
+
style,
|
|
33
|
+
children,
|
|
34
|
+
layout,
|
|
35
|
+
contentAfter // ...otherProps
|
|
36
|
+
|
|
37
|
+
} = _ref;
|
|
38
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
id: id,
|
|
40
|
+
className: [baseClassName, componentClassName, userClassName, layout === 'left' && 'layout-left', layout === 'right' && 'layout-right', layout === 'center' && 'layout-center', contentAfter && 'content-after'].filter(e => e).join(' '),
|
|
41
|
+
style: style
|
|
42
|
+
}, children);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
Section.propTypes = {
|
|
46
|
+
/**
|
|
47
|
+
* The HTML id for this element
|
|
48
|
+
*/
|
|
49
|
+
id: _propTypes.default.string,
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The HTML class names for this element
|
|
53
|
+
*/
|
|
54
|
+
className: _propTypes.default.string,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The React-written, css properties for this element.
|
|
58
|
+
*/
|
|
59
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The children JSX
|
|
63
|
+
*/
|
|
64
|
+
children: _propTypes.default.node,
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The main content position
|
|
68
|
+
*/
|
|
69
|
+
layout: _propTypes.default.oneOf(['left', 'right', 'center']),
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Whether content should appear before or after illustration
|
|
73
|
+
*/
|
|
74
|
+
contentAfter: _propTypes.default.bool
|
|
75
|
+
};
|
|
76
|
+
Section.defaultProps = {
|
|
77
|
+
contentAfter: false
|
|
78
|
+
};
|
|
79
|
+
var _default = Section;
|
|
80
|
+
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,13 @@
|
|
|
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.Section;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _Section = require("./Section");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ContentCard", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _ContentCard.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _ContentCard = _interopRequireDefault(require("./ContentCard"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
|
|
8
|
+
$default-padding:var(--u);
|
|
9
|
+
$default-card-background: var(--y);
|
|
10
|
+
$default-content-width:minmax(350px, 500px);
|
|
11
|
+
|
|
12
|
+
.#{bem.$base}.content-card {
|
|
13
|
+
background-color: $default-card-background;
|
|
14
|
+
border-radius: var(--theme-border-radius);
|
|
15
|
+
|
|
16
|
+
.#{bem.$base}.section {
|
|
17
|
+
column-gap: var(--u);
|
|
18
|
+
display: grid;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.layout-left {
|
|
22
|
+
grid-template-areas:
|
|
23
|
+
"content"
|
|
24
|
+
"illustration";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.layout-right {
|
|
28
|
+
grid-template-areas:
|
|
29
|
+
"content"
|
|
30
|
+
"illustration";
|
|
31
|
+
|
|
32
|
+
.illustration {
|
|
33
|
+
margin-bottom: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.layout-center {
|
|
38
|
+
grid-template-areas:
|
|
39
|
+
"spacer"
|
|
40
|
+
"content"
|
|
41
|
+
"spacer2";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.content-after {
|
|
45
|
+
grid-template-areas:
|
|
46
|
+
"illustration"
|
|
47
|
+
"content";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.content {
|
|
51
|
+
grid-area: content;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.illustration {
|
|
55
|
+
grid-area: illustration;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.heading {
|
|
59
|
+
margin-bottom: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include mixins.media($from:$sm-md) {
|
|
63
|
+
.layout-left {
|
|
64
|
+
grid-template-areas: "content illustration";
|
|
65
|
+
grid-template-columns: $default-content-width 1fr;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.layout-right {
|
|
69
|
+
grid-template-areas: "illustration content";
|
|
70
|
+
grid-template-columns: 1fr $default-content-width;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.layout-center {
|
|
74
|
+
grid-template-areas: "spacer content spacer2";
|
|
75
|
+
grid-template-columns: 1fr minmax(450px, 650px) 1fr;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -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,100 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
var baseClassName = _bem.default.base;
|
|
25
|
+
var componentClassName = 'conversation';
|
|
26
|
+
/**
|
|
27
|
+
* This is the component description.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
var Conversation = _ref => {
|
|
31
|
+
var {
|
|
32
|
+
id,
|
|
33
|
+
className: userClassName,
|
|
34
|
+
style,
|
|
35
|
+
backgroundColor,
|
|
36
|
+
ourColor,
|
|
37
|
+
theirColor,
|
|
38
|
+
children // ...otherProps
|
|
39
|
+
|
|
40
|
+
} = _ref;
|
|
41
|
+
(0, React.useLayoutEffect)(() => {
|
|
42
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
43
|
+
}, []); // const messageColors = { ours: color, theirs: 'main2' }
|
|
44
|
+
|
|
45
|
+
return /*#__PURE__*/React.createElement(_Context.default.Provider, {
|
|
46
|
+
value: {
|
|
47
|
+
ourColor,
|
|
48
|
+
theirColor
|
|
49
|
+
}
|
|
50
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
id: id,
|
|
52
|
+
className: [baseClassName, componentClassName, userClassName, "y-".concat(backgroundColor), 'u1'].filter(e => e).join(' '),
|
|
53
|
+
style: style
|
|
54
|
+
}, children));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
Conversation.propTypes = {
|
|
58
|
+
/**
|
|
59
|
+
* The HTML id for this element
|
|
60
|
+
*/
|
|
61
|
+
id: _propTypes.default.string,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The HTML class names for this element
|
|
65
|
+
*/
|
|
66
|
+
className: _propTypes.default.string,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The React-written, css properties for this element.
|
|
70
|
+
*/
|
|
71
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The base color to our messages component
|
|
75
|
+
*/
|
|
76
|
+
ourColor: _propTypes.default.string,
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The base color to their messages component
|
|
80
|
+
*/
|
|
81
|
+
theirColor: _propTypes.default.string,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The component background color
|
|
85
|
+
*/
|
|
86
|
+
backgroundColor: _propTypes.default.string,
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The children JSX
|
|
90
|
+
*/
|
|
91
|
+
children: _propTypes.default.node
|
|
92
|
+
};
|
|
93
|
+
Conversation.defaultProps = {
|
|
94
|
+
backgroundColor: 'background',
|
|
95
|
+
ourColor: 'main2',
|
|
96
|
+
theirColor: 'background2'
|
|
97
|
+
};
|
|
98
|
+
Conversation.Message = _common.Message;
|
|
99
|
+
var _default = Conversation;
|
|
100
|
+
exports.default = _default;
|