@pareto-engineering/design-system 2.0.0-alpha.9 → 3.0.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -39
- package/.storybook/main.js +12 -1
- package/babel.config.js +2 -0
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +8 -24
- package/dist/cjs/a/AnimatedCounter/index.js +0 -2
- package/dist/cjs/a/AnimatedCounter/styles.scss +2 -2
- package/dist/cjs/{c/BlogContext → a/AppContext}/Context.js +0 -5
- package/dist/cjs/a/{SiteContext → AppContext}/ContextProvider.js +18 -30
- package/dist/cjs/a/{SiteContext → AppContext}/index.js +5 -10
- package/dist/cjs/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -5
- package/dist/cjs/a/{SiteContext → AppContext}/useTheme.js +6 -8
- package/dist/cjs/{c/Hero/Hero.js → a/ContentTree/ContentTree.js} +24 -42
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +104 -0
- package/dist/cjs/{b/Card → a/ContentTree/common/Tree}/index.js +3 -5
- package/dist/cjs/a/ContentTree/common/index.js +27 -0
- package/dist/cjs/a/ContentTree/common/useContentTree.js +80 -0
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +63 -0
- package/dist/cjs/{c/SiteMission → a/ContentTree}/index.js +3 -5
- package/dist/cjs/a/ContentTree/styles.scss +33 -0
- package/dist/cjs/a/Conversation/Context.js +0 -5
- package/dist/cjs/a/Conversation/Conversation.js +17 -28
- package/dist/cjs/a/Conversation/common/Message/Message.js +36 -25
- package/dist/cjs/a/Conversation/common/Message/index.js +0 -2
- package/dist/cjs/a/Conversation/common/index.js +0 -1
- package/dist/cjs/a/Conversation/index.js +0 -4
- package/dist/cjs/a/Conversation/styles.scss +134 -35
- package/dist/cjs/a/Conversation/useConversation.js +0 -5
- package/dist/cjs/a/DotInfo/DotInfo.js +13 -28
- package/dist/cjs/a/DotInfo/index.js +0 -2
- package/dist/cjs/a/Figure/Figure.js +8 -19
- package/dist/cjs/a/Figure/index.js +0 -2
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +13 -32
- package/dist/cjs/a/HamburgerButton/index.js +0 -2
- package/dist/cjs/a/IconList/IconList.js +20 -38
- package/dist/cjs/a/IconList/common/Item/Item.js +19 -37
- package/dist/cjs/a/IconList/common/Item/index.js +0 -2
- package/dist/cjs/a/IconList/common/index.js +0 -1
- package/dist/cjs/a/IconList/index.js +0 -2
- package/dist/cjs/a/IconList/styles.scss +1 -1
- package/dist/cjs/{c/BlogPostsList/BlogPostsList.js → a/Label/Label.js} +28 -27
- package/dist/cjs/{c/Hero → a/Label}/index.js +3 -5
- package/dist/cjs/a/Label/styles.scss +34 -0
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +13 -27
- package/dist/cjs/a/LoadingCircle/index.js +0 -2
- package/dist/cjs/a/People/People.js +12 -27
- package/dist/cjs/a/People/common/Person/Person.js +9 -21
- package/dist/cjs/a/People/common/Person/index.js +0 -2
- package/dist/cjs/a/People/common/index.js +0 -1
- package/dist/cjs/a/People/index.js +0 -2
- package/dist/cjs/a/People/styles.scss +8 -6
- package/dist/cjs/{c/AcceptCookies/AcceptCookies.js → a/Popover/Popover.js} +58 -77
- package/dist/cjs/a/{Shapes → Popover}/index.js +3 -5
- package/dist/cjs/a/Popover/styles.scss +33 -0
- package/dist/cjs/a/ProgressBar/ProgressBar.js +14 -27
- package/dist/cjs/a/ProgressBar/index.js +0 -2
- package/dist/cjs/a/Quote/Quote.js +8 -21
- package/dist/cjs/a/Quote/index.js +0 -2
- package/dist/cjs/a/Quote/styles.scss +2 -2
- package/dist/cjs/a/SVG/SVG.js +21 -48
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +5 -19
- package/dist/cjs/a/SVG/common/UseSVG/index.js +0 -2
- package/dist/cjs/a/SVG/common/index.js +0 -1
- package/dist/cjs/a/SVG/index.js +0 -2
- package/dist/cjs/a/{ContentCard/ContentCard.js → SnapScroller/SnapScroller.js} +19 -32
- package/dist/cjs/a/{DashboardNavbar/common/NavProfile → SnapScroller}/index.js +3 -5
- package/dist/cjs/a/SnapScroller/styles.scss +38 -0
- package/dist/cjs/a/Spinner/Spinner.js +8 -18
- package/dist/cjs/a/Spinner/index.js +0 -2
- package/dist/cjs/a/Timestamp/Timestamp.js +8 -25
- package/dist/cjs/a/Timestamp/index.js +0 -2
- package/dist/cjs/a/index.js +49 -99
- package/dist/cjs/b/Button/Button.js +24 -41
- package/dist/cjs/b/Button/index.js +0 -2
- package/dist/cjs/b/Button/styles.scss +65 -19
- package/dist/cjs/b/Logo/Logo.js +46 -61
- package/dist/cjs/b/Logo/index.js +0 -2
- package/dist/cjs/b/Logo/styles.scss +0 -138
- package/dist/cjs/b/Page/Context.js +0 -5
- package/dist/cjs/b/Page/Page.js +14 -34
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +9 -28
- package/dist/cjs/b/Page/common/PageHelmet/index.js +0 -2
- package/dist/cjs/b/Page/common/Section/Section.js +14 -69
- package/dist/cjs/b/Page/common/Section/index.js +0 -2
- package/dist/cjs/b/Page/common/index.js +0 -2
- package/dist/cjs/b/Page/index.js +4 -8
- package/dist/cjs/b/Page/usePage.js +0 -5
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +22 -43
- package/dist/cjs/b/SocialMediaButton/index.js +0 -2
- package/dist/cjs/b/SocialMediaButton/styles.scss +4 -4
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +6 -18
- package/dist/cjs/b/ThemeSelector/index.js +0 -2
- package/dist/cjs/b/Title/Title.js +10 -33
- package/dist/cjs/b/Title/index.js +0 -2
- package/dist/cjs/b/index.js +9 -47
- package/dist/cjs/c/ContentSlides/ContentSlides.js +11 -42
- package/dist/cjs/c/ContentSlides/Context.js +0 -5
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +28 -36
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +11 -27
- package/dist/cjs/c/ContentSlides/common/Navigator/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +14 -25
- package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +12 -20
- package/dist/cjs/c/ContentSlides/common/Slide/index.js +0 -2
- package/dist/cjs/c/ContentSlides/common/index.js +8 -12
- package/dist/cjs/c/ContentSlides/index.js +4 -8
- package/dist/cjs/c/ContentSlides/styles.scss +12 -6
- package/dist/cjs/c/ContentSlides/useContentSlides.js +0 -5
- package/dist/cjs/c/{TeamGallery/TeamGallery.js → Modal/Modal.js} +34 -31
- package/dist/cjs/{a/ContentCard/common/Section/Section.js → c/Modal/common/ModalHeader/ModalHeader.js} +38 -41
- package/dist/cjs/c/{SitePricing → Modal/common/ModalHeader}/index.js +3 -5
- package/dist/cjs/c/{BlogPostsList → Modal}/common/index.js +3 -4
- package/dist/cjs/{b/Card/common/Group → c/Modal}/index.js +3 -5
- package/dist/cjs/c/Modal/styles.scss +46 -0
- package/dist/cjs/c/Shortener/Shortener.js +6 -20
- package/dist/cjs/c/Shortener/index.js +0 -2
- package/dist/cjs/c/{SiteHeaderCTA/SiteHeaderCTA.js → SocialMediaShareButton/SocialMediaShareButton.js} +56 -59
- package/dist/cjs/c/SocialMediaShareButton/index.js +13 -0
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +39 -0
- package/dist/cjs/c/index.js +17 -13
- package/dist/cjs/f/FormInput/FormInput.js +44 -32
- package/dist/cjs/f/FormInput/index.js +0 -2
- package/dist/cjs/f/FormInput/styles.scss +11 -0
- package/dist/cjs/f/common/Debugger/Debugger.js +5 -18
- package/dist/cjs/f/common/Debugger/index.js +0 -2
- package/dist/cjs/f/common/Description/Description.js +24 -33
- package/dist/cjs/f/common/Description/index.js +0 -2
- package/dist/cjs/f/common/Label/Label.js +18 -26
- package/dist/cjs/f/common/Label/index.js +0 -2
- package/dist/cjs/f/common/Label/styles.scss +2 -5
- package/dist/cjs/f/common/index.js +4 -7
- package/dist/cjs/f/fields/{CheckboxInput/CheckboxInput.js → Checkbox/Checkbox.js} +49 -54
- package/dist/cjs/{a/ContentCard/common/Section → f/fields/Checkbox}/index.js +3 -5
- package/dist/cjs/f/fields/Checkbox/styles.scss +14 -0
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +23 -43
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +9 -26
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +0 -2
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +0 -1
- package/dist/cjs/f/fields/ChoicesInput/index.js +0 -2
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +19 -4
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +142 -0
- package/dist/cjs/{c/SiteServices → f/fields/QueryChoices}/index.js +3 -5
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +214 -0
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +200 -0
- package/dist/cjs/{a/DashboardNavbar/common/NavItem → f/fields/QueryCombobox/common/Combobox}/index.js +3 -5
- package/dist/cjs/{c/BlogCategoryButton/BlogCategoryButton.js → f/fields/QueryCombobox/common/Menu/Menu.js} +48 -56
- package/dist/cjs/{c/BlogPostsList/common/Card → f/fields/QueryCombobox/common/Menu}/index.js +3 -5
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +284 -0
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +13 -0
- package/dist/cjs/f/fields/QueryCombobox/common/index.js +26 -0
- package/dist/cjs/{a/CustomerStat → f/fields/QueryCombobox}/index.js +3 -5
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +91 -0
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +192 -0
- package/dist/cjs/{a/ContentCard → f/fields/QuerySelect}/index.js +3 -5
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +38 -29
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +18 -29
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +0 -2
- package/dist/cjs/f/fields/RatingsInput/common/index.js +0 -1
- package/dist/cjs/f/fields/RatingsInput/index.js +0 -2
- package/dist/cjs/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +68 -41
- package/dist/cjs/f/fields/SelectInput/index.js +0 -2
- package/dist/cjs/f/fields/SelectInput/styles.scss +33 -13
- package/dist/cjs/f/fields/TextInput/TextInput.js +53 -42
- package/dist/cjs/f/fields/TextInput/index.js +0 -2
- package/dist/cjs/f/fields/TextInput/styles.scss +16 -7
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +51 -47
- package/dist/cjs/f/fields/TextareaInput/index.js +0 -2
- package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/cjs/f/fields/index.js +27 -28
- package/dist/cjs/f/index.js +0 -5
- package/dist/cjs/form-reset.scss +1 -1
- package/dist/cjs/form.scss +2 -2
- package/dist/cjs/index.js +22 -12
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +6 -22
- package/dist/cjs/r/SwitchRouteMap/index.js +0 -2
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +12 -24
- package/dist/cjs/r/common/PrivateRoute/index.js +0 -2
- package/dist/cjs/r/common/index.js +0 -1
- package/dist/cjs/r/index.js +0 -3
- package/dist/cjs/{a/SiteContext/Context.js → test/QueryLoader/QueryLoader.js} +23 -5
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +64 -0
- package/dist/cjs/{c/BlogContext/BlogContextProvider.js → test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js} +15 -37
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +13 -0
- package/dist/cjs/test/QueryLoader/common/index.js +12 -0
- package/dist/cjs/{c/TeamGallery → test/QueryLoader}/index.js +3 -5
- package/dist/cjs/{a/ContentCard/common → test}/index.js +3 -4
- package/dist/cjs/utils/hooks/index.js +20 -0
- package/dist/cjs/utils/hooks/useDynamicPosition.js +92 -0
- package/dist/cjs/utils/hooks/useWindowSize.js +31 -0
- package/dist/cjs/utils/index.js +18 -0
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +30 -32
- package/dist/es/a/AnimatedCounter/styles.scss +2 -2
- package/dist/es/a/{SiteContext → AppContext}/ContextProvider.js +24 -23
- package/dist/es/a/AppContext/index.js +5 -0
- package/dist/es/a/{SiteContext → AppContext}/useTheme.js +8 -6
- package/dist/es/a/ContentTree/ContentTree.js +64 -0
- package/dist/es/a/ContentTree/common/Tree/Tree.js +95 -0
- package/dist/es/{c/BlogPostsList/common/Card → a/ContentTree/common/Tree}/index.js +1 -1
- package/dist/es/a/ContentTree/common/index.js +3 -0
- package/dist/es/a/ContentTree/common/useContentTree.js +73 -0
- package/dist/es/a/ContentTree/common/useFirstVisibleNode.js +54 -0
- package/dist/es/a/ContentTree/index.js +2 -0
- package/dist/es/a/ContentTree/styles.scss +33 -0
- package/dist/es/a/Conversation/Conversation.js +27 -26
- package/dist/es/a/Conversation/common/Message/Message.js +42 -22
- package/dist/es/a/Conversation/styles.scss +134 -35
- package/dist/es/a/DotInfo/DotInfo.js +19 -23
- package/dist/es/a/Figure/Figure.js +17 -19
- package/dist/es/a/HamburgerButton/HamburgerButton.js +15 -21
- package/dist/es/a/IconList/IconList.js +20 -22
- package/dist/es/a/IconList/common/Item/Item.js +26 -26
- package/dist/es/a/IconList/styles.scss +1 -1
- package/dist/es/{c/BlogPostsList/BlogPostsList.js → a/Label/Label.js} +33 -22
- package/{src/ui/a/Shapes → dist/es/a/Label}/index.js +1 -1
- package/dist/es/a/Label/styles.scss +34 -0
- package/dist/es/a/LoadingCircle/LoadingCircle.js +17 -21
- package/dist/es/a/People/People.js +18 -20
- package/dist/es/a/People/common/Person/Person.js +31 -33
- package/dist/es/a/People/styles.scss +8 -6
- package/dist/es/a/Popover/Popover.js +109 -0
- package/dist/es/a/{ContentCard/common/Section → Popover}/index.js +1 -1
- package/dist/es/a/Popover/styles.scss +33 -0
- package/dist/es/a/ProgressBar/ProgressBar.js +17 -20
- package/dist/es/a/Quote/Quote.js +17 -21
- package/dist/es/a/Quote/styles.scss +2 -2
- package/dist/es/a/SVG/SVG.js +23 -36
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +23 -26
- package/dist/es/a/{ContentCard/ContentCard.js → SnapScroller/SnapScroller.js} +25 -29
- package/dist/es/a/SnapScroller/index.js +2 -0
- package/dist/es/a/SnapScroller/styles.scss +38 -0
- package/dist/es/a/Spinner/Spinner.js +14 -15
- package/dist/es/a/Timestamp/Timestamp.js +24 -31
- package/dist/es/a/index.js +13 -17
- package/dist/es/b/Button/Button.js +28 -31
- package/dist/es/b/Button/styles.scss +65 -19
- package/dist/es/b/Logo/Logo.js +56 -61
- package/dist/es/b/Logo/styles.scss +0 -138
- package/dist/es/b/Page/Page.js +20 -24
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +40 -55
- package/dist/es/b/Page/common/Section/Section.js +15 -55
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +23 -31
- package/dist/es/b/SocialMediaButton/styles.scss +4 -4
- package/dist/es/b/ThemeSelector/ThemeSelector.js +16 -17
- package/dist/es/b/Title/Title.js +38 -49
- package/dist/es/b/index.js +3 -7
- package/dist/es/c/ContentSlides/ContentSlides.js +26 -37
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +39 -36
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +25 -32
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +21 -21
- package/dist/es/c/ContentSlides/common/Slide/Slide.js +19 -18
- package/dist/es/c/ContentSlides/styles.scss +12 -6
- package/dist/es/c/Modal/Modal.js +76 -0
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +67 -0
- package/dist/es/c/Modal/common/ModalHeader/index.js +1 -0
- package/dist/es/c/Modal/common/index.js +1 -0
- package/dist/es/{a/Shapes → c/Modal}/index.js +1 -1
- package/dist/es/c/Modal/styles.scss +46 -0
- package/dist/es/c/Shortener/Shortener.js +17 -21
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +98 -0
- package/dist/es/c/SocialMediaShareButton/index.js +2 -0
- package/dist/es/c/SocialMediaShareButton/styles.scss +39 -0
- package/dist/es/c/index.js +3 -2
- package/dist/es/f/FormInput/FormInput.js +50 -23
- package/dist/es/f/FormInput/styles.scss +11 -0
- package/dist/es/f/common/Debugger/Debugger.js +13 -16
- package/dist/es/f/common/Description/Description.js +30 -30
- package/dist/es/f/common/Label/Label.js +27 -26
- package/dist/es/f/common/Label/styles.scss +2 -5
- package/dist/es/f/fields/Checkbox/Checkbox.js +93 -0
- package/dist/es/{a/TeamInfo → f/fields/Checkbox}/index.js +1 -1
- package/dist/es/f/fields/Checkbox/styles.scss +14 -0
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +34 -39
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +24 -31
- package/dist/es/f/fields/ChoicesInput/styles.scss +19 -4
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +130 -0
- package/dist/es/f/fields/QueryChoices/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +208 -0
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +195 -0
- package/dist/es/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +76 -0
- package/dist/es/{b/Metrics → f/fields/QueryCombobox/common/Menu}/index.js +1 -1
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +275 -0
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/index.js +3 -0
- package/dist/es/f/fields/QueryCombobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/styles.scss +91 -0
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +184 -0
- package/dist/es/f/fields/QuerySelect/index.js +2 -0
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +50 -28
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +31 -32
- package/dist/es/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/es/f/fields/SelectInput/SelectInput.js +78 -38
- package/dist/es/f/fields/SelectInput/styles.scss +33 -13
- package/dist/es/f/fields/TextInput/TextInput.js +66 -42
- package/dist/es/f/fields/TextInput/styles.scss +16 -7
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +68 -50
- package/dist/es/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/es/f/fields/index.js +5 -4
- package/dist/es/form-reset.scss +1 -1
- package/dist/es/form.scss +2 -2
- package/dist/es/index.js +3 -2
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +25 -23
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +17 -16
- package/dist/es/test/QueryLoader/QueryLoader.js +30 -0
- package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +64 -0
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +31 -0
- package/dist/es/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
- package/dist/es/test/QueryLoader/common/index.js +1 -0
- package/dist/es/test/QueryLoader/index.js +2 -0
- package/dist/es/test/index.js +1 -0
- package/dist/es/utils/hooks/index.js +2 -0
- package/dist/es/utils/hooks/useDynamicPosition.js +84 -0
- package/dist/es/utils/hooks/useWindowSize.js +23 -0
- package/dist/es/utils/index.js +1 -0
- package/jest.config.js +1 -0
- package/package.json +31 -21
- package/relay.config.js +12 -0
- package/src/__snapshots__/Storyshots.test.js.snap +11558 -7291
- package/src/local.scss +4 -2
- package/src/stories/Introduction.stories.mdx +0 -14
- package/src/stories/StyleGuide/Sprites.stories.mdx +25 -0
- package/src/stories/StyleGuide/helpers.js +18 -2
- package/src/stories/StyleGuide/typography.stories.mdx +0 -1
- package/src/stories/a/{SiteContext.stories.jsx → AppContext.stories.jsx} +8 -8
- package/src/stories/a/ContentTree.stories.jsx +662 -0
- package/src/stories/a/Conversation.stories.jsx +78 -1
- package/src/stories/a/DotInfo.stories.jsx +14 -13
- package/src/stories/a/Label.stories.jsx +49 -0
- package/src/stories/a/Popover.stories.jsx +106 -0
- package/src/stories/a/ProgressBar.stories.jsx +16 -7
- package/src/stories/a/SnapScroller.stories.jsx +98 -0
- package/src/stories/a/Timestamp.stories.jsx +35 -39
- package/src/stories/b/Button.stories.jsx +27 -4
- package/src/stories/b/Logo.stories.jsx +23 -14
- package/src/stories/b/Page.stories.jsx +1 -27
- package/src/stories/b/SocialMediaButton.stories.jsx +36 -53
- package/src/stories/b/ThemeSelector.stories.jsx +5 -5
- package/src/stories/b/Title.stories.jsx +14 -16
- package/src/stories/c/ContentSlides.stories.jsx +18 -152
- package/src/stories/c/Modal.stories.jsx +49 -0
- package/src/stories/c/Shortener.stories.jsx +9 -3
- package/src/stories/c/SocialMediaShareButton.stories.jsx +33 -0
- package/src/stories/f/Checkbox.stories.jsx +95 -0
- package/src/stories/f/ChoicesInput.stories.jsx +100 -128
- package/src/stories/f/Description.stories.jsx +22 -4
- package/src/stories/f/FormInput.stories.jsx +264 -0
- package/src/stories/f/Label.stories.jsx +8 -3
- package/src/stories/f/QueryChoices.stories.jsx +135 -0
- package/src/stories/f/QueryCombobox.stories.jsx +279 -0
- package/src/stories/f/QuerySelect.stories.jsx +142 -0
- package/src/stories/f/RatingsInput.stories.jsx +36 -22
- package/src/stories/f/SelectInput.stories.jsx +48 -49
- package/src/stories/f/TextInput.stories.jsx +70 -43
- package/src/stories/f/TextareaInput.stories.jsx +70 -19
- package/src/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/f/__generated__/FormInputAllTeamsQuery.graphql.js +139 -0
- package/src/stories/f/__generated__/QueryChoicesAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/f/__generated__/QueryComboboxAllTeamsQuery.graphql.js +139 -0
- package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/r/PrivateRoute.stories.jsx +1 -1
- package/src/stories/test/QueryLoader.stories.jsx +36 -0
- package/src/stories/utils/generateNodeId.js +12 -0
- package/src/stories/utils/lorem.js +15 -0
- package/src/stories/utils/relay/EnvironmentProvider.jsx +14 -0
- package/src/stories/utils/relay/environment.js +5 -0
- package/src/stories/utils/relay/index.js +4 -0
- package/src/stories/utils/relay/mockRelayOperation.js +14 -0
- package/src/stories/utils/relay/mockResolvers.js +299 -0
- package/src/stories/utils/testData.js +63 -0
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +1 -1
- package/src/ui/a/AnimatedCounter/styles.scss +2 -2
- package/src/ui/a/{SiteContext → AppContext}/ContextProvider.jsx +8 -7
- package/src/ui/a/AppContext/index.js +5 -0
- package/src/ui/{b/Metrics/Metrics.jsx → a/ContentTree/ContentTree.jsx} +23 -28
- package/src/ui/a/ContentTree/common/Tree/Tree.jsx +138 -0
- package/src/ui/a/ContentTree/common/Tree/index.js +2 -0
- package/src/ui/a/ContentTree/common/index.js +3 -0
- package/src/ui/a/ContentTree/common/useContentTree.js +83 -0
- package/src/ui/a/ContentTree/common/useFirstVisibleNode.js +59 -0
- package/src/ui/a/ContentTree/index.js +2 -0
- package/src/ui/a/ContentTree/styles.scss +33 -0
- package/src/ui/a/Conversation/Conversation.jsx +16 -8
- package/src/ui/a/Conversation/common/Message/Message.jsx +39 -7
- package/src/ui/a/Conversation/styles.scss +134 -35
- package/src/ui/a/DotInfo/DotInfo.jsx +1 -1
- package/src/ui/a/Figure/Figure.jsx +1 -1
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +1 -1
- package/src/ui/a/IconList/IconList.jsx +1 -1
- package/src/ui/a/IconList/common/Item/Item.jsx +1 -1
- package/src/ui/a/IconList/styles.scss +1 -1
- package/src/ui/a/{CustomerStat/CustomerStat.jsx → Label/Label.jsx} +25 -20
- package/src/ui/a/Label/index.js +2 -0
- package/src/ui/a/Label/styles.scss +34 -0
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +1 -1
- package/src/ui/a/People/People.jsx +1 -1
- package/src/ui/a/People/common/Person/Person.jsx +3 -3
- package/src/ui/a/People/styles.scss +8 -6
- package/src/ui/a/Popover/Popover.jsx +157 -0
- package/src/ui/a/Popover/index.js +2 -0
- package/src/ui/a/Popover/styles.scss +33 -0
- package/src/ui/a/ProgressBar/ProgressBar.jsx +1 -1
- package/src/ui/a/Quote/Quote.jsx +1 -1
- package/src/ui/a/Quote/styles.scss +2 -2
- package/src/ui/a/SVG/SVG.jsx +1 -1
- package/src/ui/a/{ContentCard/ContentCard.jsx → SnapScroller/SnapScroller.jsx} +20 -21
- package/src/ui/a/SnapScroller/index.js +2 -0
- package/src/ui/a/SnapScroller/styles.scss +38 -0
- package/src/ui/a/Spinner/Spinner.jsx +1 -1
- package/src/ui/a/Timestamp/Timestamp.jsx +1 -1
- package/src/ui/a/index.js +14 -21
- package/src/ui/b/Button/Button.jsx +10 -2
- package/src/ui/b/Button/styles.scss +65 -19
- package/src/ui/b/Logo/Logo.jsx +42 -42
- package/src/ui/b/Logo/styles.scss +0 -138
- package/src/ui/b/Page/Page.jsx +1 -1
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +2 -2
- package/src/ui/b/Page/common/Section/Section.jsx +1 -51
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +5 -5
- package/src/ui/b/SocialMediaButton/styles.scss +4 -4
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +3 -3
- package/src/ui/b/Title/Title.jsx +1 -1
- package/src/ui/b/index.js +3 -7
- package/src/ui/c/ContentSlides/ContentSlides.jsx +1 -1
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +13 -6
- package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +3 -2
- package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +2 -2
- package/src/ui/c/ContentSlides/common/Slide/Slide.jsx +1 -1
- package/src/ui/c/ContentSlides/styles.scss +12 -6
- package/src/ui/c/{Hero/Hero.jsx → Modal/Modal.jsx} +31 -26
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +89 -0
- package/src/ui/c/Modal/common/ModalHeader/index.js +1 -0
- package/src/ui/c/Modal/common/index.js +1 -0
- package/src/ui/c/Modal/index.js +2 -0
- package/src/ui/c/Modal/styles.scss +46 -0
- package/src/ui/c/Shortener/Shortener.jsx +1 -1
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +121 -0
- package/src/ui/c/SocialMediaShareButton/index.js +2 -0
- package/src/ui/c/SocialMediaShareButton/styles.scss +39 -0
- package/src/ui/c/index.js +2 -1
- package/src/ui/f/FormInput/FormInput.jsx +63 -1
- package/src/ui/f/FormInput/styles.scss +11 -0
- package/src/ui/f/common/Debugger/Debugger.jsx +1 -1
- package/src/ui/f/common/Description/Description.jsx +35 -30
- package/src/ui/f/common/Label/Label.jsx +11 -5
- package/src/ui/f/common/Label/styles.scss +2 -5
- package/src/ui/f/fields/{CheckboxInput/CheckboxInput.jsx → Checkbox/Checkbox.jsx} +44 -33
- package/src/ui/f/fields/Checkbox/index.js +2 -0
- package/src/ui/f/fields/Checkbox/styles.scss +14 -0
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +10 -4
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +11 -3
- package/src/ui/f/fields/ChoicesInput/styles.scss +19 -4
- package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +153 -0
- package/src/ui/f/fields/QueryChoices/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +235 -0
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +241 -0
- package/src/ui/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/Menu/Menu.jsx +103 -0
- package/src/ui/f/fields/QueryCombobox/common/Menu/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +340 -0
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/index.js +3 -0
- package/src/ui/f/fields/QueryCombobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/styles.scss +91 -0
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +213 -0
- package/src/ui/f/fields/QuerySelect/index.js +2 -0
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +55 -20
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +9 -3
- package/src/ui/f/fields/RatingsInput/styles.scss +29 -20
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +73 -9
- package/src/ui/f/fields/SelectInput/styles.scss +33 -13
- package/src/ui/f/fields/TextInput/TextInput.jsx +45 -11
- package/src/ui/f/fields/TextInput/styles.scss +16 -7
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +50 -22
- package/src/ui/f/fields/TextareaInput/styles.scss +19 -6
- package/src/ui/f/fields/index.js +4 -3
- package/src/ui/form-reset.scss +1 -1
- package/src/ui/form.scss +2 -2
- package/src/ui/index.js +2 -0
- package/src/ui/test/QueryLoader/QueryLoader.jsx +41 -0
- package/src/ui/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +68 -0
- package/src/ui/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.jsx +51 -0
- package/src/ui/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
- package/src/ui/test/QueryLoader/common/index.js +1 -0
- package/src/ui/test/QueryLoader/index.js +2 -0
- package/src/ui/test/index.js +1 -0
- package/src/ui/utils/hooks/index.js +2 -0
- package/src/ui/utils/hooks/useDynamicPosition.js +104 -0
- package/src/ui/utils/hooks/useWindowSize.js +32 -0
- package/src/ui/utils/index.js +1 -0
- package/stylelint.config.js +1 -43
- package/.githooks/pre-commit +0 -5
- package/.github/workflows/push-main-branches.yaml +0 -89
- package/.github/workflows/push-pr.yaml +0 -83
- package/.github/workflows.old/push-production.yaml +0 -34
- package/.github/workflows.old/push-staging.yaml +0 -34
- package/.github/workflows.old/test-publish.no +0 -63
- package/.github/workflows.old/test-publish.yaml +0 -68
- package/dist/cjs/a/ContentCard/styles.scss +0 -78
- package/dist/cjs/a/CustomerLogos/CustomerLogos.js +0 -86
- package/dist/cjs/a/CustomerLogos/index.js +0 -15
- package/dist/cjs/a/CustomerLogos/styles.scss +0 -41
- package/dist/cjs/a/CustomerStat/CustomerStat.js +0 -87
- package/dist/cjs/a/CustomerStat/styles.scss +0 -16
- package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +0 -70
- package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +0 -66
- package/dist/cjs/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -66
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
- package/dist/cjs/a/DashboardNavbar/common/index.js +0 -21
- package/dist/cjs/a/DashboardNavbar/index.js +0 -15
- package/dist/cjs/a/DashboardNavbar/styles.scss +0 -14
- package/dist/cjs/a/FeaturedOn/FeaturedOn.js +0 -88
- package/dist/cjs/a/FeaturedOn/index.js +0 -15
- package/dist/cjs/a/FeaturedOn/styles.scss +0 -41
- package/dist/cjs/a/GradientBackground/GradientBackground.js +0 -140
- package/dist/cjs/a/GradientBackground/index.js +0 -15
- package/dist/cjs/a/GradientBackground/styles.scss +0 -191
- package/dist/cjs/a/OvalIllustration/OvalIllustration.js +0 -102
- package/dist/cjs/a/OvalIllustration/index.js +0 -15
- package/dist/cjs/a/OvalIllustration/styles.scss +0 -105
- package/dist/cjs/a/Shapes/Shapes.js +0 -163
- package/dist/cjs/a/Shapes/styles.scss +0 -221
- package/dist/cjs/a/TeamInfo/TeamInfo.js +0 -102
- package/dist/cjs/a/TeamInfo/index.js +0 -15
- package/dist/cjs/a/TeamInfo/styles.scss +0 -58
- package/dist/cjs/b/Card/Card.js +0 -67
- package/dist/cjs/b/Card/common/Group/Group.js +0 -71
- package/dist/cjs/b/Card/common/Group/styles.scss +0 -61
- package/dist/cjs/b/Card/common/index.js +0 -13
- package/dist/cjs/b/Card/styles.scss +0 -12
- package/dist/cjs/b/Metrics/Metrics.js +0 -89
- package/dist/cjs/b/Metrics/index.js +0 -15
- package/dist/cjs/b/Metrics/styles.scss +0 -91
- package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +0 -119
- package/dist/cjs/b/QuestionDropdown/index.js +0 -15
- package/dist/cjs/b/QuestionDropdown/styles.scss +0 -95
- package/dist/cjs/b/Segment/Segment.js +0 -79
- package/dist/cjs/b/Segment/index.js +0 -15
- package/dist/cjs/b/Segment/styles.scss +0 -26
- package/dist/cjs/c/AcceptCookies/index.js +0 -15
- package/dist/cjs/c/AcceptCookies/styles.scss +0 -49
- package/dist/cjs/c/BlogCategoryButton/index.js +0 -15
- package/dist/cjs/c/BlogContext/ContextProvider.js +0 -63
- package/dist/cjs/c/BlogContext/index.js +0 -31
- package/dist/cjs/c/BlogContext/useBlog.js +0 -16
- package/dist/cjs/c/BlogPost/BlogPost.js +0 -147
- package/dist/cjs/c/BlogPost/index.js +0 -15
- package/dist/cjs/c/BlogPost/styles.scss +0 -33
- package/dist/cjs/c/BlogPostsList/common/Card/Card.js +0 -170
- package/dist/cjs/c/BlogPostsList/index.js +0 -15
- package/dist/cjs/c/BlogPostsList/styles.scss +0 -72
- package/dist/cjs/c/Hero/styles.scss +0 -41
- package/dist/cjs/c/SiteFooter/SiteFooter.js +0 -73
- package/dist/cjs/c/SiteFooter/common/Section/Section.js +0 -95
- package/dist/cjs/c/SiteFooter/common/Section/index.js +0 -15
- package/dist/cjs/c/SiteFooter/common/index.js +0 -13
- package/dist/cjs/c/SiteFooter/index.js +0 -15
- package/dist/cjs/c/SiteFooter/styles.scss +0 -34
- package/dist/cjs/c/SiteHeaderCTA/index.js +0 -15
- package/dist/cjs/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/cjs/c/SiteMission/SiteMission.js +0 -113
- package/dist/cjs/c/SiteMission/styles.scss +0 -30
- package/dist/cjs/c/SiteNavigation/SiteNavigation.js +0 -130
- package/dist/cjs/c/SiteNavigation/index.js +0 -15
- package/dist/cjs/c/SiteNavigation/styles.scss +0 -118
- package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -98
- package/dist/cjs/c/SiteOnboardingStep/index.js +0 -15
- package/dist/cjs/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/cjs/c/SitePricing/SitePricing.js +0 -108
- package/dist/cjs/c/SitePricing/styles.scss +0 -73
- package/dist/cjs/c/SiteServices/SiteServices.js +0 -211
- package/dist/cjs/c/SiteServices/styles.scss +0 -138
- package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +0 -84
- package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +0 -15
- package/dist/cjs/c/TeamGallery/common/index.js +0 -13
- package/dist/cjs/c/TeamGallery/styles.scss +0 -100
- package/dist/cjs/c/Testimonials/Testimonials.js +0 -119
- package/dist/cjs/c/Testimonials/index.js +0 -15
- package/dist/cjs/c/Testimonials/styles.scss +0 -112
- package/dist/cjs/experimental/GradientBackground/GradientBackground.js +0 -98
- package/dist/cjs/experimental/GradientBackground/index.js +0 -15
- package/dist/cjs/experimental/GradientBackground/styles.scss +0 -64
- package/dist/cjs/experimental/index.js +0 -13
- package/dist/cjs/f/fields/CheckboxInput/index.js +0 -15
- package/dist/cjs/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/cjs/f/fields/RadioInput/RadioInput.js +0 -110
- package/dist/cjs/f/fields/RadioInput/index.js +0 -15
- package/dist/cjs/f/fields/RadioInput/styles.scss +0 -26
- package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +0 -129
- package/dist/cjs/f/fields/TaskRecommendation/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -131
- package/dist/cjs/f/fields/TaskRecommendationInput/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/cjs/f/fields/TextArea/TextArea.js +0 -141
- package/dist/cjs/f/fields/TextArea/index.js +0 -15
- package/dist/cjs/f/fields/TextArea/styles.scss +0 -19
- package/dist/es/a/ContentCard/common/Section/Section.js +0 -60
- package/dist/es/a/ContentCard/common/index.js +0 -1
- package/dist/es/a/ContentCard/index.js +0 -2
- package/dist/es/a/ContentCard/styles.scss +0 -78
- package/dist/es/a/CustomerLogos/CustomerLogos.js +0 -70
- package/dist/es/a/CustomerLogos/index.js +0 -2
- package/dist/es/a/CustomerLogos/styles.scss +0 -41
- package/dist/es/a/CustomerStat/CustomerStat.js +0 -71
- package/dist/es/a/CustomerStat/index.js +0 -2
- package/dist/es/a/CustomerStat/styles.scss +0 -16
- package/dist/es/a/DashboardNavbar/DashboardNavbar.js +0 -53
- package/dist/es/a/DashboardNavbar/common/NavItem/NavItem.js +0 -48
- package/dist/es/a/DashboardNavbar/common/NavItem/index.js +0 -2
- package/dist/es/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
- package/dist/es/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -48
- package/dist/es/a/DashboardNavbar/common/NavProfile/index.js +0 -2
- package/dist/es/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
- package/dist/es/a/DashboardNavbar/common/index.js +0 -2
- package/dist/es/a/DashboardNavbar/index.js +0 -2
- package/dist/es/a/DashboardNavbar/styles.scss +0 -14
- package/dist/es/a/FeaturedOn/FeaturedOn.js +0 -72
- package/dist/es/a/FeaturedOn/index.js +0 -2
- package/dist/es/a/FeaturedOn/styles.scss +0 -41
- package/dist/es/a/GradientBackground/GradientBackground.js +0 -118
- package/dist/es/a/GradientBackground/index.js +0 -2
- package/dist/es/a/GradientBackground/styles.scss +0 -191
- package/dist/es/a/OvalIllustration/OvalIllustration.js +0 -86
- package/dist/es/a/OvalIllustration/index.js +0 -2
- package/dist/es/a/OvalIllustration/styles.scss +0 -105
- package/dist/es/a/Shapes/Shapes.js +0 -141
- package/dist/es/a/Shapes/styles.scss +0 -221
- package/dist/es/a/SiteContext/index.js +0 -5
- package/dist/es/a/TeamInfo/TeamInfo.js +0 -86
- package/dist/es/a/TeamInfo/styles.scss +0 -58
- package/dist/es/b/Card/Card.js +0 -49
- package/dist/es/b/Card/common/Group/Group.js +0 -53
- package/dist/es/b/Card/common/Group/index.js +0 -2
- package/dist/es/b/Card/common/Group/styles.scss +0 -61
- package/dist/es/b/Card/common/index.js +0 -1
- package/dist/es/b/Card/index.js +0 -2
- package/dist/es/b/Card/styles.scss +0 -12
- package/dist/es/b/Metrics/Metrics.js +0 -72
- package/dist/es/b/Metrics/styles.scss +0 -91
- package/dist/es/b/QuestionDropdown/QuestionDropdown.js +0 -104
- package/dist/es/b/QuestionDropdown/index.js +0 -2
- package/dist/es/b/QuestionDropdown/styles.scss +0 -95
- package/dist/es/b/Segment/Segment.js +0 -61
- package/dist/es/b/Segment/index.js +0 -2
- package/dist/es/b/Segment/styles.scss +0 -26
- package/dist/es/c/AcceptCookies/AcceptCookies.js +0 -117
- package/dist/es/c/AcceptCookies/index.js +0 -2
- package/dist/es/c/AcceptCookies/styles.scss +0 -49
- package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +0 -68
- package/dist/es/c/BlogCategoryButton/index.js +0 -2
- package/dist/es/c/BlogContext/BlogContextProvider.js +0 -45
- package/dist/es/c/BlogContext/Context.js +0 -2
- package/dist/es/c/BlogContext/ContextProvider.js +0 -45
- package/dist/es/c/BlogContext/index.js +0 -4
- package/dist/es/c/BlogContext/useBlog.js +0 -3
- package/dist/es/c/BlogPost/BlogPost.js +0 -128
- package/dist/es/c/BlogPost/index.js +0 -2
- package/dist/es/c/BlogPost/styles.scss +0 -33
- package/dist/es/c/BlogPostsList/common/Card/Card.js +0 -143
- package/dist/es/c/BlogPostsList/common/index.js +0 -1
- package/dist/es/c/BlogPostsList/index.js +0 -2
- package/dist/es/c/BlogPostsList/styles.scss +0 -72
- package/dist/es/c/Hero/Hero.js +0 -72
- package/dist/es/c/Hero/index.js +0 -2
- package/dist/es/c/Hero/styles.scss +0 -41
- package/dist/es/c/SiteFooter/SiteFooter.js +0 -56
- package/dist/es/c/SiteFooter/common/Section/Section.js +0 -73
- package/dist/es/c/SiteFooter/common/Section/index.js +0 -2
- package/dist/es/c/SiteFooter/common/index.js +0 -1
- package/dist/es/c/SiteFooter/index.js +0 -2
- package/dist/es/c/SiteFooter/styles.scss +0 -34
- package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -92
- package/dist/es/c/SiteHeaderCTA/index.js +0 -2
- package/dist/es/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/es/c/SiteMission/SiteMission.js +0 -96
- package/dist/es/c/SiteMission/index.js +0 -2
- package/dist/es/c/SiteMission/styles.scss +0 -30
- package/dist/es/c/SiteNavigation/SiteNavigation.js +0 -111
- package/dist/es/c/SiteNavigation/index.js +0 -2
- package/dist/es/c/SiteNavigation/styles.scss +0 -118
- package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -81
- package/dist/es/c/SiteOnboardingStep/index.js +0 -2
- package/dist/es/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/es/c/SitePricing/SitePricing.js +0 -91
- package/dist/es/c/SitePricing/index.js +0 -2
- package/dist/es/c/SitePricing/styles.scss +0 -73
- package/dist/es/c/SiteServices/SiteServices.js +0 -195
- package/dist/es/c/SiteServices/index.js +0 -2
- package/dist/es/c/SiteServices/styles.scss +0 -138
- package/dist/es/c/TeamGallery/TeamGallery.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/index.js +0 -2
- package/dist/es/c/TeamGallery/common/index.js +0 -1
- package/dist/es/c/TeamGallery/index.js +0 -2
- package/dist/es/c/TeamGallery/styles.scss +0 -100
- package/dist/es/c/Testimonials/Testimonials.js +0 -99
- package/dist/es/c/Testimonials/index.js +0 -2
- package/dist/es/c/Testimonials/styles.scss +0 -112
- package/dist/es/experimental/GradientBackground/GradientBackground.js +0 -76
- package/dist/es/experimental/GradientBackground/index.js +0 -2
- package/dist/es/experimental/GradientBackground/styles.scss +0 -64
- package/dist/es/experimental/index.js +0 -1
- package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +0 -85
- package/dist/es/f/fields/CheckboxInput/index.js +0 -2
- package/dist/es/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/es/f/fields/RadioInput/RadioInput.js +0 -90
- package/dist/es/f/fields/RadioInput/index.js +0 -2
- package/dist/es/f/fields/RadioInput/styles.scss +0 -26
- package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +0 -111
- package/dist/es/f/fields/TaskRecommendation/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -111
- package/dist/es/f/fields/TaskRecommendationInput/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/es/f/fields/TextArea/TextArea.js +0 -124
- package/dist/es/f/fields/TextArea/index.js +0 -2
- package/dist/es/f/fields/TextArea/styles.scss +0 -19
- package/scripts/postinstall.js +0 -1
- package/scripts/upgrade.sh +0 -10
- package/src/stories/a/ContentCard.stories.jsx +0 -158
- package/src/stories/a/CustomerLogos.stories.jsx +0 -35
- package/src/stories/a/CustomerStat.stories.jsx +0 -22
- package/src/stories/a/DashboardNavbar.stories.jsx +0 -57
- package/src/stories/a/FeaturedOn.stories.jsx +0 -33
- package/src/stories/a/OvalIllustration.stories.jsx +0 -36
- package/src/stories/a/Shapes.stories.jsx +0 -125
- package/src/stories/a/TeamInfo.stories.jsx +0 -31
- package/src/stories/b/Card.stories.jsx +0 -36
- package/src/stories/b/Metrics.stories.jsx +0 -62
- package/src/stories/b/QuestionDropdown.stories.jsx +0 -62
- package/src/stories/b/Segment.stories.jsx +0 -34
- package/src/stories/c/Hero.stories.jsx +0 -46
- package/src/stories/f/CheckboxInput.stories.jsx +0 -37
- package/src/stories/f/RadioInput.stories.jsx +0 -37
- package/src/stories/f/TaskRecommendationInput.stories.jsx +0 -38
- package/src/ui/a/ContentCard/common/Section/Section.jsx +0 -79
- package/src/ui/a/ContentCard/common/Section/index.js +0 -2
- package/src/ui/a/ContentCard/common/index.js +0 -1
- package/src/ui/a/ContentCard/index.js +0 -2
- package/src/ui/a/ContentCard/styles.scss +0 -78
- package/src/ui/a/CustomerLogos/CustomerLogos.jsx +0 -92
- package/src/ui/a/CustomerLogos/index.js +0 -2
- package/src/ui/a/CustomerLogos/styles.scss +0 -41
- package/src/ui/a/CustomerStat/index.js +0 -2
- package/src/ui/a/CustomerStat/styles.scss +0 -16
- package/src/ui/a/DashboardNavbar/DashboardNavbar.jsx +0 -74
- package/src/ui/a/DashboardNavbar/common/NavItem/NavItem.jsx +0 -64
- package/src/ui/a/DashboardNavbar/common/NavItem/index.js +0 -2
- package/src/ui/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
- package/src/ui/a/DashboardNavbar/common/NavProfile/NavProfile.jsx +0 -64
- package/src/ui/a/DashboardNavbar/common/NavProfile/index.js +0 -2
- package/src/ui/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
- package/src/ui/a/DashboardNavbar/common/index.js +0 -2
- package/src/ui/a/DashboardNavbar/index.js +0 -2
- package/src/ui/a/DashboardNavbar/styles.scss +0 -14
- package/src/ui/a/FeaturedOn/FeaturedOn.jsx +0 -95
- package/src/ui/a/FeaturedOn/index.js +0 -2
- package/src/ui/a/FeaturedOn/styles.scss +0 -41
- package/src/ui/a/OvalIllustration/OvalIllustration.jsx +0 -108
- package/src/ui/a/OvalIllustration/index.js +0 -2
- package/src/ui/a/OvalIllustration/styles.scss +0 -105
- package/src/ui/a/Shapes/Shapes.jsx +0 -181
- package/src/ui/a/Shapes/styles.scss +0 -221
- package/src/ui/a/SiteContext/index.js +0 -5
- package/src/ui/a/TeamInfo/TeamInfo.jsx +0 -99
- package/src/ui/a/TeamInfo/index.js +0 -2
- package/src/ui/a/TeamInfo/styles.scss +0 -58
- package/src/ui/b/Card/Card.jsx +0 -63
- package/src/ui/b/Card/common/Group/Group.jsx +0 -70
- package/src/ui/b/Card/common/Group/index.js +0 -2
- package/src/ui/b/Card/common/Group/styles.scss +0 -61
- package/src/ui/b/Card/common/index.js +0 -1
- package/src/ui/b/Card/index.js +0 -2
- package/src/ui/b/Card/styles.scss +0 -12
- package/src/ui/b/Metrics/index.js +0 -2
- package/src/ui/b/Metrics/styles.scss +0 -91
- package/src/ui/b/QuestionDropdown/QuestionDropdown.jsx +0 -112
- package/src/ui/b/QuestionDropdown/index.js +0 -2
- package/src/ui/b/QuestionDropdown/styles.scss +0 -95
- package/src/ui/b/Segment/Segment.jsx +0 -78
- package/src/ui/b/Segment/index.js +0 -2
- package/src/ui/b/Segment/styles.scss +0 -26
- package/src/ui/c/Hero/index.js +0 -2
- package/src/ui/c/Hero/styles.scss +0 -41
- package/src/ui/f/fields/CheckboxInput/index.js +0 -2
- package/src/ui/f/fields/CheckboxInput/styles.scss +0 -28
- package/src/ui/f/fields/RadioInput/RadioInput.jsx +0 -112
- package/src/ui/f/fields/RadioInput/index.js +0 -2
- package/src/ui/f/fields/RadioInput/styles.scss +0 -26
- package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +0 -130
- package/src/ui/f/fields/TaskRecommendationInput/index.js +0 -2
- package/src/ui/f/fields/TaskRecommendationInput/styles.scss +0 -41
- /package/dist/es/a/{SiteContext → AppContext}/Context.js +0 -0
- /package/dist/es/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
- /package/src/ui/a/{SiteContext → AppContext}/Context.js +0 -0
- /package/src/ui/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
- /package/src/ui/a/{SiteContext → AppContext}/useTheme.js +0 -0
|
@@ -4,31 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
-
|
|
9
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
14
10
|
var _formik = require("formik");
|
|
15
|
-
|
|
16
11
|
var _common = require("../../common");
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
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); }
|
|
21
|
-
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
|
-
var baseClassName = _bem.default.base;
|
|
16
|
+
var baseClassName = _exports.default.base;
|
|
27
17
|
var componentClassName = 'text-area-input';
|
|
18
|
+
|
|
28
19
|
/**
|
|
29
20
|
* This is the component description.
|
|
30
21
|
*/
|
|
31
|
-
|
|
32
22
|
var TextareaInput = _ref => {
|
|
33
23
|
var {
|
|
34
24
|
id,
|
|
@@ -40,112 +30,126 @@ var TextareaInput = _ref => {
|
|
|
40
30
|
labelAsDescription,
|
|
41
31
|
textAreaId,
|
|
42
32
|
rows,
|
|
33
|
+
optional,
|
|
43
34
|
textAreaColor,
|
|
44
35
|
labelColor,
|
|
45
36
|
description,
|
|
46
|
-
disabled
|
|
47
|
-
|
|
37
|
+
disabled,
|
|
38
|
+
placeholder,
|
|
39
|
+
autoComplete,
|
|
40
|
+
resize
|
|
41
|
+
// ...otherProps
|
|
48
42
|
} = _ref;
|
|
49
43
|
(0, React.useLayoutEffect)(() => {
|
|
50
44
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
51
45
|
}, []);
|
|
52
|
-
var [field
|
|
46
|
+
var [field] = (0, _formik.useField)({
|
|
53
47
|
name,
|
|
54
48
|
validate
|
|
55
49
|
});
|
|
56
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
57
51
|
id: id,
|
|
58
|
-
className: [baseClassName, componentClassName, userClassName, "
|
|
59
|
-
style: style
|
|
60
|
-
|
|
52
|
+
className: [baseClassName, componentClassName, userClassName, "y-".concat(textAreaColor)].filter(e => e).join(' '),
|
|
53
|
+
style: style
|
|
54
|
+
// {...otherProps}
|
|
61
55
|
}, /*#__PURE__*/React.createElement(_common.FormLabel, {
|
|
62
|
-
className: [
|
|
63
|
-
name: name
|
|
56
|
+
className: [labelAsDescription ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v'].filter(e => e).join(' '),
|
|
57
|
+
name: name,
|
|
58
|
+
color: labelColor,
|
|
59
|
+
optional: optional
|
|
64
60
|
}, label), /*#__PURE__*/React.createElement("textarea", _extends({
|
|
65
61
|
id: textAreaId,
|
|
66
|
-
className: "textarea
|
|
62
|
+
className: "textarea"
|
|
67
63
|
}, field, {
|
|
64
|
+
style: {
|
|
65
|
+
resize
|
|
66
|
+
},
|
|
67
|
+
placeholder: placeholder,
|
|
68
68
|
rows: rows,
|
|
69
|
-
disabled: disabled
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
className: "v50 mt-v s-1"
|
|
73
|
-
|
|
69
|
+
disabled: disabled,
|
|
70
|
+
autoComplete: autoComplete
|
|
71
|
+
})), /*#__PURE__*/React.createElement(_common.FormDescription, {
|
|
72
|
+
className: "v50 mt-v s-1",
|
|
73
|
+
description: description,
|
|
74
|
+
name: name
|
|
75
|
+
}));
|
|
74
76
|
};
|
|
75
|
-
|
|
76
77
|
TextareaInput.propTypes = {
|
|
77
78
|
/**
|
|
78
79
|
* The HTML id for this element
|
|
79
80
|
*/
|
|
80
81
|
id: _propTypes.default.string,
|
|
81
|
-
|
|
82
82
|
/**
|
|
83
83
|
* The HTML class names for this element
|
|
84
84
|
*/
|
|
85
85
|
className: _propTypes.default.string,
|
|
86
|
-
|
|
87
86
|
/**
|
|
88
87
|
* The React-written, css properties for this element.
|
|
89
88
|
*/
|
|
90
89
|
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
91
|
-
|
|
92
90
|
/**
|
|
93
91
|
* The input name (html - and Formik state)
|
|
94
92
|
*/
|
|
95
93
|
name: _propTypes.default.string.isRequired,
|
|
96
|
-
|
|
97
94
|
/**
|
|
98
95
|
* The input label
|
|
99
96
|
*/
|
|
100
97
|
label: _propTypes.default.string.isRequired,
|
|
101
|
-
|
|
102
98
|
/**
|
|
103
99
|
* The input value validator function
|
|
104
100
|
*/
|
|
105
101
|
validate: _propTypes.default.func,
|
|
106
|
-
|
|
107
102
|
/**
|
|
108
103
|
* If the text area depends on it's label's text as the default description
|
|
109
104
|
*/
|
|
110
105
|
labelAsDescription: _propTypes.default.bool,
|
|
111
|
-
|
|
112
106
|
/**
|
|
113
107
|
* The textarea id
|
|
114
108
|
*/
|
|
115
109
|
textAreaId: _propTypes.default.string,
|
|
116
|
-
|
|
117
110
|
/**
|
|
118
111
|
* The number of rows int the text area
|
|
119
112
|
*/
|
|
120
113
|
rows: _propTypes.default.number,
|
|
121
|
-
|
|
122
114
|
/**
|
|
123
115
|
* Text area base color
|
|
124
116
|
*/
|
|
125
117
|
textAreaColor: _propTypes.default.string,
|
|
126
|
-
|
|
127
118
|
/**
|
|
128
119
|
* Label base color
|
|
129
120
|
*/
|
|
130
121
|
labelColor: _propTypes.default.string,
|
|
131
|
-
|
|
132
122
|
/**
|
|
133
123
|
* Text area description
|
|
134
124
|
*/
|
|
135
125
|
description: _propTypes.default.string,
|
|
136
|
-
|
|
137
126
|
/**
|
|
138
127
|
* Whether the text area should be disabled
|
|
139
128
|
*/
|
|
140
|
-
disabled: _propTypes.default.bool
|
|
129
|
+
disabled: _propTypes.default.bool,
|
|
130
|
+
/**
|
|
131
|
+
* The textarea placeholder text
|
|
132
|
+
*/
|
|
133
|
+
placeholder: _propTypes.default.string,
|
|
134
|
+
/**
|
|
135
|
+
* The autoComplete value that the browser should watch for the input
|
|
136
|
+
*/
|
|
137
|
+
autoComplete: _propTypes.default.string,
|
|
138
|
+
/**
|
|
139
|
+
* Whether to disable or allow only a certain method of resizing the area
|
|
140
|
+
* Textarea docs - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
|
|
141
|
+
*/
|
|
142
|
+
resize: _propTypes.default.string,
|
|
143
|
+
/**
|
|
144
|
+
* Whether the input is optional or not
|
|
145
|
+
*/
|
|
146
|
+
optional: _propTypes.default.bool
|
|
141
147
|
};
|
|
142
148
|
TextareaInput.defaultProps = {
|
|
143
149
|
rows: 3,
|
|
144
|
-
textAreaColor: '
|
|
145
|
-
|
|
146
|
-
|
|
150
|
+
textAreaColor: 'background2',
|
|
151
|
+
disabled: false,
|
|
152
|
+
resize: 'vertical'
|
|
147
153
|
};
|
|
148
|
-
|
|
149
154
|
var _default = /*#__PURE__*/(0, React.memo)(TextareaInput);
|
|
150
|
-
|
|
151
155
|
exports.default = _default;
|
|
@@ -9,7 +9,5 @@ Object.defineProperty(exports, "TextareaInput", {
|
|
|
9
9
|
return _TextareaInput.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _TextareaInput = _interopRequireDefault(require("./TextareaInput"));
|
|
14
|
-
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
@use "@pareto-engineering/bem";
|
|
3
3
|
|
|
4
|
+
$default-padding: .5em;
|
|
5
|
+
|
|
4
6
|
.#{bem.$base}.text-area-input{
|
|
5
7
|
display: flex;
|
|
6
8
|
flex-direction: column;
|
|
7
9
|
|
|
8
10
|
.textarea {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
border: var(--theme-border-style) var(--hard-y);
|
|
12
|
+
background: var(--soft-y);
|
|
13
|
+
color: var(--on-y);
|
|
14
|
+
padding: $default-padding;
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
&::placeholder{
|
|
17
|
+
color: var(--metadata);
|
|
14
18
|
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
19
|
|
|
20
|
+
&:not(:disabled):hover{
|
|
21
|
+
border: var(--theme-border-style) var(--soft-background4);
|
|
22
|
+
}
|
|
18
23
|
|
|
24
|
+
&:disabled {
|
|
25
|
+
background-color: var(--hard-y);
|
|
26
|
+
}
|
|
19
27
|
|
|
28
|
+
&:focus {
|
|
29
|
+
background: var(--soft-background4);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -3,67 +3,66 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "Checkbox", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _Checkbox.Checkbox;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "ChoicesInput", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _ChoicesInput.ChoicesInput;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "QueryChoices", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _QueryChoices.QueryChoices;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "QueryCombobox", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return
|
|
27
|
+
return _QueryCombobox.QueryCombobox;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "QuerySelect", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return
|
|
33
|
+
return _QuerySelect.QuerySelect;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "RatingsInput", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function get() {
|
|
39
|
-
return
|
|
39
|
+
return _RatingsInput.RatingsInput;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
42
|
+
Object.defineProperty(exports, "SelectInput", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function get() {
|
|
45
|
-
return
|
|
45
|
+
return _SelectInput.SelectInput;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "TextInput", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function get() {
|
|
51
|
-
return
|
|
51
|
+
return _TextInput.TextInput;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "TextareaInput", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _TextareaInput.TextareaInput;
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
|
-
|
|
55
60
|
var _TextInput = require("./TextInput");
|
|
56
|
-
|
|
57
61
|
var _SelectInput = require("./SelectInput");
|
|
58
|
-
|
|
59
|
-
var _RadioInput = require("./RadioInput");
|
|
60
|
-
|
|
61
|
-
var _CheckboxInput = require("./CheckboxInput");
|
|
62
|
-
|
|
63
|
-
var _TaskRecommendationInput = require("./TaskRecommendationInput");
|
|
64
|
-
|
|
65
62
|
var _ChoicesInput = require("./ChoicesInput");
|
|
66
|
-
|
|
67
63
|
var _TextareaInput = require("./TextareaInput");
|
|
68
|
-
|
|
69
|
-
var
|
|
64
|
+
var _RatingsInput = require("./RatingsInput");
|
|
65
|
+
var _QueryCombobox = require("./QueryCombobox");
|
|
66
|
+
var _QuerySelect = require("./QuerySelect");
|
|
67
|
+
var _Checkbox = require("./Checkbox");
|
|
68
|
+
var _QueryChoices = require("./QueryChoices");
|
package/dist/cjs/f/index.js
CHANGED
|
@@ -12,9 +12,7 @@ Object.defineProperty(exports, "FormInput", {
|
|
|
12
12
|
return _FormInput.FormInput;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
|
|
16
15
|
var _common = require("./common");
|
|
17
|
-
|
|
18
16
|
Object.keys(_common).forEach(function (key) {
|
|
19
17
|
if (key === "default" || key === "__esModule") return;
|
|
20
18
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -26,9 +24,7 @@ Object.keys(_common).forEach(function (key) {
|
|
|
26
24
|
}
|
|
27
25
|
});
|
|
28
26
|
});
|
|
29
|
-
|
|
30
27
|
var _fields = require("./fields");
|
|
31
|
-
|
|
32
28
|
Object.keys(_fields).forEach(function (key) {
|
|
33
29
|
if (key === "default" || key === "__esModule") return;
|
|
34
30
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -40,5 +36,4 @@ Object.keys(_fields).forEach(function (key) {
|
|
|
40
36
|
}
|
|
41
37
|
});
|
|
42
38
|
});
|
|
43
|
-
|
|
44
39
|
var _FormInput = require("./FormInput");
|
package/dist/cjs/form-reset.scss
CHANGED
package/dist/cjs/form.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use "form-reset.scss";
|
|
2
2
|
|
|
3
|
-
$form-input-border-bottom: 1px solid var(--
|
|
4
|
-
$form-input-on-focus-border-bottom: 1px solid var(--
|
|
3
|
+
$form-input-border-bottom: 1px solid var(--hard-background1);
|
|
4
|
+
$form-input-on-focus-border-bottom: 1px solid var(--soft-main1);
|
|
5
5
|
$form-input-on-error-border-bottom: 1px solid var(--error);
|
|
6
6
|
$label-input-heigth-width: 100%;
|
|
7
7
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
var _r = require("./r");
|
|
8
|
-
|
|
9
7
|
Object.keys(_r).forEach(function (key) {
|
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
|
11
9
|
if (key in exports && exports[key] === _r[key]) return;
|
|
@@ -16,9 +14,7 @@ Object.keys(_r).forEach(function (key) {
|
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
});
|
|
19
|
-
|
|
20
17
|
var _a = require("./a");
|
|
21
|
-
|
|
22
18
|
Object.keys(_a).forEach(function (key) {
|
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
|
24
20
|
if (key in exports && exports[key] === _a[key]) return;
|
|
@@ -29,9 +25,7 @@ Object.keys(_a).forEach(function (key) {
|
|
|
29
25
|
}
|
|
30
26
|
});
|
|
31
27
|
});
|
|
32
|
-
|
|
33
28
|
var _b = require("./b");
|
|
34
|
-
|
|
35
29
|
Object.keys(_b).forEach(function (key) {
|
|
36
30
|
if (key === "default" || key === "__esModule") return;
|
|
37
31
|
if (key in exports && exports[key] === _b[key]) return;
|
|
@@ -42,9 +36,7 @@ Object.keys(_b).forEach(function (key) {
|
|
|
42
36
|
}
|
|
43
37
|
});
|
|
44
38
|
});
|
|
45
|
-
|
|
46
39
|
var _c = require("./c");
|
|
47
|
-
|
|
48
40
|
Object.keys(_c).forEach(function (key) {
|
|
49
41
|
if (key === "default" || key === "__esModule") return;
|
|
50
42
|
if (key in exports && exports[key] === _c[key]) return;
|
|
@@ -55,9 +47,7 @@ Object.keys(_c).forEach(function (key) {
|
|
|
55
47
|
}
|
|
56
48
|
});
|
|
57
49
|
});
|
|
58
|
-
|
|
59
50
|
var _d = require("./d");
|
|
60
|
-
|
|
61
51
|
Object.keys(_d).forEach(function (key) {
|
|
62
52
|
if (key === "default" || key === "__esModule") return;
|
|
63
53
|
if (key in exports && exports[key] === _d[key]) return;
|
|
@@ -68,9 +58,7 @@ Object.keys(_d).forEach(function (key) {
|
|
|
68
58
|
}
|
|
69
59
|
});
|
|
70
60
|
});
|
|
71
|
-
|
|
72
61
|
var _f = require("./f");
|
|
73
|
-
|
|
74
62
|
Object.keys(_f).forEach(function (key) {
|
|
75
63
|
if (key === "default" || key === "__esModule") return;
|
|
76
64
|
if (key in exports && exports[key] === _f[key]) return;
|
|
@@ -80,4 +68,26 @@ Object.keys(_f).forEach(function (key) {
|
|
|
80
68
|
return _f[key];
|
|
81
69
|
}
|
|
82
70
|
});
|
|
71
|
+
});
|
|
72
|
+
var _utils = require("./utils");
|
|
73
|
+
Object.keys(_utils).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _utils[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _utils[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
var _test = require("./test");
|
|
84
|
+
Object.keys(_test).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _test[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _test[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
83
93
|
});
|
|
@@ -4,31 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _reactRouterDom = require("react-router-dom");
|
|
13
|
-
|
|
14
10
|
var _common = require("../common");
|
|
15
|
-
|
|
16
11
|
var _excluded = ["isPrivate"];
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
15
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26
16
|
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; }
|
|
27
|
-
|
|
28
17
|
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; }
|
|
29
|
-
|
|
30
18
|
/* eslint-disable react/no-children-prop */
|
|
31
|
-
|
|
32
19
|
/**
|
|
33
20
|
* **Dependencies : `react-router-dom.Router`,**
|
|
34
21
|
* **`SessionContextProvider` in case you're using PrivateRoutes. **
|
|
@@ -42,10 +29,9 @@ var SwitchRouteMap = _ref => {
|
|
|
42
29
|
return /*#__PURE__*/React.createElement(_reactRouterDom.Switch, {
|
|
43
30
|
children: [...routes.map(_ref2 => {
|
|
44
31
|
var {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
isPrivate
|
|
33
|
+
} = _ref2,
|
|
34
|
+
routeProps = _objectWithoutProperties(_ref2, _excluded);
|
|
49
35
|
return isPrivate ? /*#__PURE__*/React.createElement(_common.PrivateRoute, _extends({
|
|
50
36
|
key: routeProps.path
|
|
51
37
|
}, routeProps)) : /*#__PURE__*/React.createElement(_reactRouterDom.Route, _extends({
|
|
@@ -56,17 +42,15 @@ var SwitchRouteMap = _ref => {
|
|
|
56
42
|
})] : [])]
|
|
57
43
|
});
|
|
58
44
|
};
|
|
59
|
-
|
|
60
45
|
SwitchRouteMap.propTypes = {
|
|
61
46
|
/**
|
|
62
47
|
* The routes to render
|
|
63
48
|
*/
|
|
64
49
|
routes: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
65
|
-
path: _propTypes.default.string.isRequired
|
|
50
|
+
path: _propTypes.default.string.isRequired
|
|
51
|
+
// title:PropTypes.string.isRequired,
|
|
66
52
|
// state:PropTypes.string.isRequired,
|
|
67
|
-
|
|
68
53
|
})).isRequired,
|
|
69
|
-
|
|
70
54
|
/**
|
|
71
55
|
* A component to display in case no route was found.
|
|
72
56
|
* In case you're doing SSR, you might want to use
|
|
@@ -9,7 +9,5 @@ Object.defineProperty(exports, "SwitchRouteMap", {
|
|
|
9
9
|
return _SwitchRouteMap.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _SwitchRouteMap = _interopRequireDefault(require("./SwitchRouteMap"));
|
|
14
|
-
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,30 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _reactRouterDom = require("react-router-dom");
|
|
13
|
-
|
|
14
10
|
var _excluded = ["component", "render", "test"];
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
|
-
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
|
-
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
-
|
|
26
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
-
|
|
28
17
|
// import { SessionContext } from '..'
|
|
29
|
-
var SessionContext = /*#__PURE__*/React.createContext({});
|
|
18
|
+
var SessionContext = /*#__PURE__*/React.createContext({});
|
|
19
|
+
|
|
20
|
+
// Package-level Imports
|
|
30
21
|
// import styleNames from 'style_names.scss'
|
|
22
|
+
|
|
31
23
|
// Component-level imports
|
|
32
24
|
|
|
33
25
|
/**
|
|
@@ -38,20 +30,19 @@ var SessionContext = /*#__PURE__*/React.createContext({}); // Package-level Impo
|
|
|
38
30
|
* Please remember this is a front-end test, and is not equivalent to back-end permission checks.
|
|
39
31
|
* This component is meant to be used alongside back-end checks.
|
|
40
32
|
*/
|
|
41
|
-
|
|
42
33
|
var PrivateRoute = _ref => {
|
|
43
34
|
var {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
component: Component,
|
|
36
|
+
render: _render,
|
|
37
|
+
test
|
|
38
|
+
} = _ref,
|
|
39
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
50
40
|
var {
|
|
51
41
|
currentUserData: currentUser,
|
|
52
42
|
loginPath
|
|
53
43
|
} = (0, React.useContext)(SessionContext);
|
|
54
|
-
var location = (0, _reactRouterDom.useLocation)();
|
|
44
|
+
var location = (0, _reactRouterDom.useLocation)();
|
|
45
|
+
// console.log(me)
|
|
55
46
|
|
|
56
47
|
var isUserAllowed = currentUser && test(currentUser);
|
|
57
48
|
return /*#__PURE__*/React.createElement(_reactRouterDom.Route, _extends({}, rest, {
|
|
@@ -61,7 +52,6 @@ var PrivateRoute = _ref => {
|
|
|
61
52
|
state: {
|
|
62
53
|
from: location
|
|
63
54
|
} // TODO to implement
|
|
64
|
-
|
|
65
55
|
}
|
|
66
56
|
})
|
|
67
57
|
}));
|
|
@@ -72,12 +62,10 @@ PrivateRoute.propTypes = {
|
|
|
72
62
|
* A function that takes the user and returns a boolean.
|
|
73
63
|
*/
|
|
74
64
|
test: _propTypes.default.func,
|
|
75
|
-
|
|
76
65
|
/**
|
|
77
66
|
* Provide a custom rendering function in the "Render Props" pattern
|
|
78
67
|
*/
|
|
79
68
|
render: _propTypes.default.func,
|
|
80
|
-
|
|
81
69
|
/**
|
|
82
70
|
* Which javascript component to render
|
|
83
71
|
*/
|
|
@@ -9,7 +9,5 @@ Object.defineProperty(exports, "PrivateRoute", {
|
|
|
9
9
|
return _PrivateRoute.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _PrivateRoute = _interopRequireDefault(require("./PrivateRoute"));
|
|
14
|
-
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/dist/cjs/r/index.js
CHANGED
|
@@ -12,9 +12,7 @@ Object.defineProperty(exports, "SwitchRouteMap", {
|
|
|
12
12
|
return _SwitchRouteMap.SwitchRouteMap;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
|
|
16
15
|
var _common = require("./common");
|
|
17
|
-
|
|
18
16
|
Object.keys(_common).forEach(function (key) {
|
|
19
17
|
if (key === "default" || key === "__esModule") return;
|
|
20
18
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -26,5 +24,4 @@ Object.keys(_common).forEach(function (key) {
|
|
|
26
24
|
}
|
|
27
25
|
});
|
|
28
26
|
});
|
|
29
|
-
|
|
30
27
|
var _SwitchRouteMap = require("./SwitchRouteMap");
|