@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
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _downshift = require("downshift");
|
|
10
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
11
|
+
var _ = require("../../../..");
|
|
12
|
+
var _a = require("../../../../../a");
|
|
13
|
+
var _b = require("../../../../../b");
|
|
14
|
+
var _Menu = require("../Menu");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
+
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; }
|
|
18
|
+
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); }
|
|
19
|
+
var baseClassName = _exports.default.base;
|
|
20
|
+
var componentClassName = 'combobox';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* This is the component description.
|
|
24
|
+
*/
|
|
25
|
+
var Combobox = _ref => {
|
|
26
|
+
var {
|
|
27
|
+
id,
|
|
28
|
+
className: userClassName,
|
|
29
|
+
style,
|
|
30
|
+
label,
|
|
31
|
+
name,
|
|
32
|
+
options: items,
|
|
33
|
+
getOptions,
|
|
34
|
+
setValue,
|
|
35
|
+
description,
|
|
36
|
+
value,
|
|
37
|
+
color,
|
|
38
|
+
minLength,
|
|
39
|
+
isFetching,
|
|
40
|
+
transformSearch,
|
|
41
|
+
disabled,
|
|
42
|
+
optional
|
|
43
|
+
// ...otherProps
|
|
44
|
+
} = _ref;
|
|
45
|
+
var {
|
|
46
|
+
isOpen,
|
|
47
|
+
selectItem,
|
|
48
|
+
selectedItem,
|
|
49
|
+
inputValue,
|
|
50
|
+
setInputValue,
|
|
51
|
+
getLabelProps,
|
|
52
|
+
getMenuProps,
|
|
53
|
+
getInputProps,
|
|
54
|
+
highlightedIndex,
|
|
55
|
+
getComboboxProps,
|
|
56
|
+
getItemProps
|
|
57
|
+
} = (0, _downshift.useCombobox)({
|
|
58
|
+
items,
|
|
59
|
+
initialSelectedItem: value,
|
|
60
|
+
itemToString: item => item ? item.label : '',
|
|
61
|
+
onInputValueChange: _ref2 => {
|
|
62
|
+
var {
|
|
63
|
+
inputValue: searchInputValue
|
|
64
|
+
} = _ref2;
|
|
65
|
+
var transformedInput = transformSearch(searchInputValue);
|
|
66
|
+
if (transformedInput.length > minLength) {
|
|
67
|
+
getOptions(transformedInput);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// If the user has selected an item, we'll set the value of the field
|
|
73
|
+
// or if the combobox state has a selected item, we'll set the value to the formik state
|
|
74
|
+
(0, React.useEffect)(() => {
|
|
75
|
+
if (selectedItem) {
|
|
76
|
+
setValue(selectedItem);
|
|
77
|
+
}
|
|
78
|
+
}, [selectedItem]);
|
|
79
|
+
|
|
80
|
+
// If the formik state has a value, we'll set the selected item to the combobox state
|
|
81
|
+
(0, React.useEffect)(() => {
|
|
82
|
+
if ((value === null || value === void 0 ? void 0 : value.value) !== (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value)) {
|
|
83
|
+
selectItem(value);
|
|
84
|
+
}
|
|
85
|
+
}, [value]);
|
|
86
|
+
var parentRef = (0, React.useRef)(null);
|
|
87
|
+
var resetInputValue = () => setInputValue('');
|
|
88
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
89
|
+
id: id,
|
|
90
|
+
className: [baseClassName, componentClassName, userClassName, "y-".concat(color)].filter(e => e).join(' '),
|
|
91
|
+
style: style,
|
|
92
|
+
ref: parentRef
|
|
93
|
+
}, /*#__PURE__*/React.createElement(_.FormLabel, _extends({}, getLabelProps(), {
|
|
94
|
+
name: name,
|
|
95
|
+
optional: optional
|
|
96
|
+
}), label), /*#__PURE__*/React.createElement("div", _extends({}, getComboboxProps(), {
|
|
97
|
+
className: "input-wrapper"
|
|
98
|
+
}), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(), {
|
|
99
|
+
className: "input",
|
|
100
|
+
disabled: disabled
|
|
101
|
+
})), isFetching && /*#__PURE__*/React.createElement(_a.LoadingCircle, {
|
|
102
|
+
className: "x-main2"
|
|
103
|
+
}), inputValue.length > minLength && !isFetching && /*#__PURE__*/React.createElement(_b.Button, {
|
|
104
|
+
isSimple: true,
|
|
105
|
+
isCompact: true,
|
|
106
|
+
color: "main2",
|
|
107
|
+
onClick: resetInputValue
|
|
108
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
109
|
+
className: "f-icons"
|
|
110
|
+
}, "Y"))), /*#__PURE__*/React.createElement(_a.Popover, {
|
|
111
|
+
isOpen: isOpen,
|
|
112
|
+
parentRef: parentRef
|
|
113
|
+
}, /*#__PURE__*/React.createElement(_Menu.Menu, _extends({
|
|
114
|
+
isOpen: isOpen,
|
|
115
|
+
getItemProps: getItemProps,
|
|
116
|
+
highlightedIndex: highlightedIndex,
|
|
117
|
+
items: items
|
|
118
|
+
}, getMenuProps()))), /*#__PURE__*/React.createElement(_.FormDescription, {
|
|
119
|
+
className: "v50 mt-v s-1",
|
|
120
|
+
description: description,
|
|
121
|
+
name: name
|
|
122
|
+
}));
|
|
123
|
+
};
|
|
124
|
+
Combobox.propTypes = {
|
|
125
|
+
/**
|
|
126
|
+
* The HTML id for this element
|
|
127
|
+
*/
|
|
128
|
+
id: _propTypes.default.string,
|
|
129
|
+
/**
|
|
130
|
+
* The HTML class names for this element
|
|
131
|
+
*/
|
|
132
|
+
className: _propTypes.default.string,
|
|
133
|
+
/**
|
|
134
|
+
* The React-written, css properties for this element.
|
|
135
|
+
*/
|
|
136
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
137
|
+
/**
|
|
138
|
+
* The label of the custom select input
|
|
139
|
+
*/
|
|
140
|
+
label: _propTypes.default.string,
|
|
141
|
+
/**
|
|
142
|
+
* The custom select input options from the backend
|
|
143
|
+
*/
|
|
144
|
+
options: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
145
|
+
value: _propTypes.default.string,
|
|
146
|
+
label: _propTypes.default.string
|
|
147
|
+
})),
|
|
148
|
+
/**
|
|
149
|
+
* The name of the custom select input
|
|
150
|
+
*/
|
|
151
|
+
name: _propTypes.default.string,
|
|
152
|
+
/**
|
|
153
|
+
* The function to fetch the options from the backend
|
|
154
|
+
*/
|
|
155
|
+
getOptions: _propTypes.default.func,
|
|
156
|
+
/**
|
|
157
|
+
* The function to set the value of the custom select input
|
|
158
|
+
*/
|
|
159
|
+
setValue: _propTypes.default.func.isRequired,
|
|
160
|
+
/**
|
|
161
|
+
* The custom select input description
|
|
162
|
+
*/
|
|
163
|
+
description: _propTypes.default.string,
|
|
164
|
+
/**
|
|
165
|
+
* The value of the custom select input
|
|
166
|
+
*/
|
|
167
|
+
value: _propTypes.default.shape({
|
|
168
|
+
value: _propTypes.default.string,
|
|
169
|
+
label: _propTypes.default.string
|
|
170
|
+
}),
|
|
171
|
+
/**
|
|
172
|
+
* The base color of the combobox custom select input
|
|
173
|
+
*/
|
|
174
|
+
color: _propTypes.default.string,
|
|
175
|
+
/**
|
|
176
|
+
* Whether the query getting the combobox options is inFlight
|
|
177
|
+
*/
|
|
178
|
+
isFetching: _propTypes.default.bool.isRequired,
|
|
179
|
+
/**
|
|
180
|
+
* The minimum length of the search input to start fetching the options
|
|
181
|
+
*/
|
|
182
|
+
minLength: _propTypes.default.number,
|
|
183
|
+
/**
|
|
184
|
+
* The function to transform the search input
|
|
185
|
+
*/
|
|
186
|
+
transformSearch: _propTypes.default.func,
|
|
187
|
+
/**
|
|
188
|
+
* Whether the input filed shpuld be disabled
|
|
189
|
+
*/
|
|
190
|
+
disabled: _propTypes.default.bool,
|
|
191
|
+
/**
|
|
192
|
+
* Whether the input is optional or not
|
|
193
|
+
*/
|
|
194
|
+
optional: _propTypes.default.bool
|
|
195
|
+
};
|
|
196
|
+
Combobox.defaultProps = {
|
|
197
|
+
// someProp: false
|
|
198
|
+
};
|
|
199
|
+
var _default = Combobox;
|
|
200
|
+
exports.default = _default;
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "Combobox", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _Combobox.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
var _NavItem = _interopRequireDefault(require("./NavItem"));
|
|
14
|
-
|
|
12
|
+
var _Combobox = _interopRequireDefault(require("./Combobox"));
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,92 +4,84 @@ 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
|
|
13
|
-
|
|
14
|
-
var _b = require("../../b");
|
|
15
|
-
|
|
16
|
-
var _reactRouterDom = require("react-router-dom");
|
|
17
|
-
|
|
18
|
-
var _BlogContext = require("../BlogContext");
|
|
19
|
-
|
|
20
|
-
var _excluded = ["id", "className", "style", "children", "categorySlug"];
|
|
21
|
-
|
|
9
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
|
+
var _excluded = ["id", "className", "style", "items", "isOpen", "highlightedIndex", "getItemProps"];
|
|
22
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
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); }
|
|
25
|
-
|
|
26
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; }
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
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); }
|
|
30
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; }
|
|
31
|
-
|
|
32
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; }
|
|
33
|
-
|
|
34
17
|
// Local Definitions
|
|
35
|
-
|
|
36
|
-
var
|
|
18
|
+
|
|
19
|
+
var baseClassName = _exports.default.base;
|
|
20
|
+
var componentClassName = 'menu';
|
|
21
|
+
|
|
37
22
|
/**
|
|
38
23
|
* This is the component description.
|
|
39
24
|
*/
|
|
40
|
-
|
|
41
|
-
var BlogCategoryButton = _ref => {
|
|
42
|
-
var {
|
|
43
|
-
id,
|
|
44
|
-
className: userClassName,
|
|
45
|
-
style,
|
|
46
|
-
children,
|
|
47
|
-
categorySlug
|
|
48
|
-
} = _ref,
|
|
49
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
50
|
-
|
|
25
|
+
var Menu = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
51
26
|
var {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
27
|
+
id,
|
|
28
|
+
className: userClassName,
|
|
29
|
+
style,
|
|
30
|
+
items,
|
|
31
|
+
isOpen,
|
|
32
|
+
highlightedIndex,
|
|
33
|
+
getItemProps
|
|
34
|
+
} = _ref,
|
|
35
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
59
37
|
id: id,
|
|
60
|
-
isCompact: true,
|
|
61
38
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
62
|
-
style: style
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
39
|
+
style: style,
|
|
40
|
+
ref: ref
|
|
41
|
+
}, otherProps), isOpen && items.map((item, index) => /*#__PURE__*/React.createElement("li", _extends({
|
|
42
|
+
key: item.label
|
|
43
|
+
}, getItemProps({
|
|
44
|
+
item,
|
|
45
|
+
index
|
|
46
|
+
}), {
|
|
47
|
+
className: ['item', highlightedIndex === index && _exports.default.modifierActive].filter(Boolean).join(' ')
|
|
48
|
+
}), /*#__PURE__*/React.createElement("p", null, item.label))));
|
|
49
|
+
});
|
|
50
|
+
Menu.propTypes = {
|
|
67
51
|
/**
|
|
68
52
|
* The HTML id for this element
|
|
69
53
|
*/
|
|
70
54
|
id: _propTypes.default.string,
|
|
71
|
-
|
|
72
55
|
/**
|
|
73
56
|
* The HTML class names for this element
|
|
74
57
|
*/
|
|
75
58
|
className: _propTypes.default.string,
|
|
76
|
-
|
|
77
59
|
/**
|
|
78
60
|
* The React-written, css properties for this element.
|
|
79
61
|
*/
|
|
80
62
|
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
81
|
-
|
|
82
63
|
/**
|
|
83
|
-
* The
|
|
64
|
+
* The items to be displayed in the menu
|
|
84
65
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
66
|
+
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
67
|
+
value: _propTypes.default.string,
|
|
68
|
+
label: _propTypes.default.string
|
|
69
|
+
})),
|
|
70
|
+
/**
|
|
71
|
+
* Whether or not the menu is open
|
|
72
|
+
*/
|
|
73
|
+
isOpen: _propTypes.default.bool,
|
|
74
|
+
/**
|
|
75
|
+
* The index of the highlighted item
|
|
76
|
+
*/
|
|
77
|
+
highlightedIndex: _propTypes.default.number,
|
|
87
78
|
/**
|
|
88
|
-
* The
|
|
79
|
+
* The function to get the item props
|
|
89
80
|
*/
|
|
90
|
-
|
|
81
|
+
getItemProps: _propTypes.default.func
|
|
91
82
|
};
|
|
92
|
-
|
|
83
|
+
Menu.defaultProps = {
|
|
84
|
+
// someProp:false
|
|
93
85
|
};
|
|
94
|
-
var _default =
|
|
86
|
+
var _default = Menu;
|
|
95
87
|
exports.default = _default;
|
package/dist/cjs/{c/BlogPostsList/common/Card → f/fields/QueryCombobox/common/Menu}/index.js
RENAMED
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "Menu", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _Menu.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
var _Card = _interopRequireDefault(require("./Card"));
|
|
14
|
-
|
|
12
|
+
var _Menu = _interopRequireDefault(require("./Menu"));
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
|
+
var _downshift = require("downshift");
|
|
11
|
+
var _b = require("../../../../../b");
|
|
12
|
+
var _a = require("../../../../../a");
|
|
13
|
+
var _ = require("../../../..");
|
|
14
|
+
var _Menu = require("../Menu");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
+
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; }
|
|
18
|
+
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); }
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
+
var baseClassName = _exports.default.base;
|
|
25
|
+
var componentClassName = 'multiple-combobox';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @param {Array[Object]} first - first array to check if it has an item not in the second array.
|
|
29
|
+
* @param {Array[Object]} second - second array to check against the first array.
|
|
30
|
+
*
|
|
31
|
+
* @returns {Boolean} - true if the first array has an item not in the second array.
|
|
32
|
+
*/
|
|
33
|
+
var testIfArraysAreUnique = (first, second) => first.filter(objInFirstArray => !second.some(objInSecondArray => objInFirstArray.value === objInSecondArray.value)).length > 0;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* This is the component description.
|
|
37
|
+
*/
|
|
38
|
+
var MultipleCombobox = _ref => {
|
|
39
|
+
var {
|
|
40
|
+
id,
|
|
41
|
+
className: userClassName,
|
|
42
|
+
style,
|
|
43
|
+
label,
|
|
44
|
+
name,
|
|
45
|
+
optional,
|
|
46
|
+
options: items,
|
|
47
|
+
getOptions,
|
|
48
|
+
setValue,
|
|
49
|
+
description,
|
|
50
|
+
value,
|
|
51
|
+
color,
|
|
52
|
+
isFetching,
|
|
53
|
+
minLength,
|
|
54
|
+
transformSearch,
|
|
55
|
+
disabled
|
|
56
|
+
// ...otherProps
|
|
57
|
+
} = _ref;
|
|
58
|
+
var [searchInputValue, setSearchInputValue] = (0, React.useState)('');
|
|
59
|
+
var {
|
|
60
|
+
getSelectedItemProps,
|
|
61
|
+
getDropdownProps,
|
|
62
|
+
addSelectedItem,
|
|
63
|
+
removeSelectedItem,
|
|
64
|
+
setSelectedItems,
|
|
65
|
+
selectedItems
|
|
66
|
+
} = (0, _downshift.useMultipleSelection)({
|
|
67
|
+
initialSelectedItems: value || []
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @returns {Boolean} - Unique items from the options array so that the combobox
|
|
72
|
+
* shows only the options that are not yet selected.
|
|
73
|
+
*/
|
|
74
|
+
var getFilteredItems = () => items.filter(item => selectedItems.findIndex(e => e.label === item.label) < 0);
|
|
75
|
+
var {
|
|
76
|
+
isOpen,
|
|
77
|
+
getLabelProps,
|
|
78
|
+
getMenuProps,
|
|
79
|
+
getInputProps,
|
|
80
|
+
getComboboxProps,
|
|
81
|
+
highlightedIndex,
|
|
82
|
+
getItemProps,
|
|
83
|
+
inputValue,
|
|
84
|
+
setInputValue
|
|
85
|
+
} = (0, _downshift.useCombobox)({
|
|
86
|
+
searchInputValue,
|
|
87
|
+
defaultHighlightedIndex: 0,
|
|
88
|
+
// after selection, highlight the first item.
|
|
89
|
+
selectedItem: null,
|
|
90
|
+
items: getFilteredItems(),
|
|
91
|
+
circularNavigation: true,
|
|
92
|
+
stateReducer: (state, actionAndChanges) => {
|
|
93
|
+
var {
|
|
94
|
+
changes,
|
|
95
|
+
type
|
|
96
|
+
} = actionAndChanges;
|
|
97
|
+
switch (type) {
|
|
98
|
+
case _downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
|
|
99
|
+
case _downshift.useCombobox.stateChangeTypes.ItemClick:
|
|
100
|
+
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
101
|
+
isOpen: true // keep the menu open after selection.
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
default:
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
return changes;
|
|
108
|
+
},
|
|
109
|
+
onStateChange: _ref2 => {
|
|
110
|
+
var {
|
|
111
|
+
inputValue: newSearchInputValue,
|
|
112
|
+
type,
|
|
113
|
+
selectedItem
|
|
114
|
+
} = _ref2;
|
|
115
|
+
switch (type) {
|
|
116
|
+
case _downshift.useCombobox.stateChangeTypes.InputChange:
|
|
117
|
+
{
|
|
118
|
+
var transformedInput = transformSearch(newSearchInputValue);
|
|
119
|
+
if (transformedInput.length > minLength) {
|
|
120
|
+
getOptions(transformedInput);
|
|
121
|
+
}
|
|
122
|
+
setSearchInputValue(newSearchInputValue);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
case _downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
|
|
126
|
+
case _downshift.useCombobox.stateChangeTypes.ItemClick:
|
|
127
|
+
case _downshift.useCombobox.stateChangeTypes.InputBlur:
|
|
128
|
+
if (selectedItem) {
|
|
129
|
+
setSearchInputValue('');
|
|
130
|
+
addSelectedItem(selectedItem);
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
(0, React.useEffect)(() => {
|
|
139
|
+
if ((selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0) {
|
|
140
|
+
setValue(selectedItems);
|
|
141
|
+
}
|
|
142
|
+
}, [selectedItems]);
|
|
143
|
+
(0, React.useEffect)(() => {
|
|
144
|
+
if ((value === null || value === void 0 ? void 0 : value.length) > 0 && (testIfArraysAreUnique(value, selectedItems) || testIfArraysAreUnique(selectedItems, value))) {
|
|
145
|
+
setSelectedItems(value);
|
|
146
|
+
}
|
|
147
|
+
}, [value]);
|
|
148
|
+
var parentRef = (0, React.useRef)(null);
|
|
149
|
+
var resetInputValue = () => setInputValue('');
|
|
150
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
151
|
+
id: id,
|
|
152
|
+
className: [baseClassName, componentClassName, userClassName, "y-".concat(color)].filter(e => e).join(' '),
|
|
153
|
+
style: style
|
|
154
|
+
}, /*#__PURE__*/React.createElement(_.FormLabel, _extends({}, getLabelProps(), {
|
|
155
|
+
name: name,
|
|
156
|
+
optional: optional
|
|
157
|
+
}), label), (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
158
|
+
className: "selected-items"
|
|
159
|
+
}, selectedItems.map((selectedItem, index) => /*#__PURE__*/React.createElement("div", _extends({
|
|
160
|
+
key: selectedItem.label
|
|
161
|
+
}, getSelectedItemProps({
|
|
162
|
+
selectedItem,
|
|
163
|
+
index
|
|
164
|
+
}), {
|
|
165
|
+
className: "item"
|
|
166
|
+
}), /*#__PURE__*/React.createElement(_b.Button, {
|
|
167
|
+
onClick: e => {
|
|
168
|
+
e.stopPropagation();
|
|
169
|
+
removeSelectedItem(selectedItem);
|
|
170
|
+
},
|
|
171
|
+
isCompact: true,
|
|
172
|
+
isSimple: true,
|
|
173
|
+
color: color
|
|
174
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
175
|
+
className: "v25 mr-v"
|
|
176
|
+
}, selectedItem.label), /*#__PURE__*/React.createElement("span", {
|
|
177
|
+
className: "f-icons close"
|
|
178
|
+
}, "Y"))))), /*#__PURE__*/React.createElement("div", _extends({}, getComboboxProps(), {
|
|
179
|
+
className: "input-wrapper"
|
|
180
|
+
}), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(getDropdownProps({
|
|
181
|
+
preventKeyAction: isOpen
|
|
182
|
+
})), {
|
|
183
|
+
className: "input",
|
|
184
|
+
disabled: disabled
|
|
185
|
+
})), isFetching && /*#__PURE__*/React.createElement(_a.LoadingCircle, {
|
|
186
|
+
className: "x-main2"
|
|
187
|
+
}), inputValue.length > minLength && !isFetching && /*#__PURE__*/React.createElement(_b.Button, {
|
|
188
|
+
isSimple: true,
|
|
189
|
+
isCompact: true,
|
|
190
|
+
color: "main2",
|
|
191
|
+
onClick: resetInputValue
|
|
192
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
193
|
+
className: "f-icons"
|
|
194
|
+
}, "Y"))), /*#__PURE__*/React.createElement(_a.Popover, {
|
|
195
|
+
isOpen: isOpen,
|
|
196
|
+
parentRef: parentRef
|
|
197
|
+
}, /*#__PURE__*/React.createElement(_Menu.Menu, _extends({
|
|
198
|
+
isOpen: isOpen,
|
|
199
|
+
getItemProps: getItemProps,
|
|
200
|
+
highlightedIndex: highlightedIndex,
|
|
201
|
+
items: getFilteredItems()
|
|
202
|
+
}, getMenuProps()))), /*#__PURE__*/React.createElement(_.FormDescription, {
|
|
203
|
+
className: "v50 mt-v s-1",
|
|
204
|
+
description: description,
|
|
205
|
+
name: name
|
|
206
|
+
}));
|
|
207
|
+
};
|
|
208
|
+
MultipleCombobox.propTypes = {
|
|
209
|
+
/**
|
|
210
|
+
* The HTML id for this element
|
|
211
|
+
*/
|
|
212
|
+
id: _propTypes.default.string,
|
|
213
|
+
/**
|
|
214
|
+
* The HTML class names for this element
|
|
215
|
+
*/
|
|
216
|
+
className: _propTypes.default.string,
|
|
217
|
+
/**
|
|
218
|
+
* The React-written, css properties for this element.
|
|
219
|
+
*/
|
|
220
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
221
|
+
/**
|
|
222
|
+
* The label of the custom select input
|
|
223
|
+
*/
|
|
224
|
+
label: _propTypes.default.string,
|
|
225
|
+
/**
|
|
226
|
+
* The custom select input options from the backend
|
|
227
|
+
*/
|
|
228
|
+
options: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
229
|
+
value: _propTypes.default.string,
|
|
230
|
+
label: _propTypes.default.string
|
|
231
|
+
})),
|
|
232
|
+
/**
|
|
233
|
+
* The name of the custom select input
|
|
234
|
+
*/
|
|
235
|
+
name: _propTypes.default.string,
|
|
236
|
+
/**
|
|
237
|
+
* The function to fetch the options from the backend
|
|
238
|
+
*/
|
|
239
|
+
getOptions: _propTypes.default.func,
|
|
240
|
+
/**
|
|
241
|
+
* The function to set the value of the custom select input
|
|
242
|
+
*/
|
|
243
|
+
setValue: _propTypes.default.func.isRequired,
|
|
244
|
+
/**
|
|
245
|
+
* The custom select input description
|
|
246
|
+
*/
|
|
247
|
+
description: _propTypes.default.string,
|
|
248
|
+
/**
|
|
249
|
+
* The value of the custom select input
|
|
250
|
+
*/
|
|
251
|
+
value: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
252
|
+
value: _propTypes.default.string,
|
|
253
|
+
label: _propTypes.default.string
|
|
254
|
+
})),
|
|
255
|
+
/**
|
|
256
|
+
* The base color of the custom select input
|
|
257
|
+
*/
|
|
258
|
+
color: _propTypes.default.string,
|
|
259
|
+
/**
|
|
260
|
+
* Whether the query getting the combobox options is inFlight
|
|
261
|
+
*/
|
|
262
|
+
isFetching: _propTypes.default.bool.isRequired,
|
|
263
|
+
/**
|
|
264
|
+
* The minimum length of the search input to start fetching the options
|
|
265
|
+
*/
|
|
266
|
+
minLength: _propTypes.default.number,
|
|
267
|
+
/**
|
|
268
|
+
* The function to transform the search input
|
|
269
|
+
*/
|
|
270
|
+
transformSearch: _propTypes.default.func,
|
|
271
|
+
/**
|
|
272
|
+
* Whether the input filed shpuld be disabled
|
|
273
|
+
*/
|
|
274
|
+
disabled: _propTypes.default.bool,
|
|
275
|
+
/**
|
|
276
|
+
* Whether the input is optional or not
|
|
277
|
+
*/
|
|
278
|
+
optional: _propTypes.default.bool
|
|
279
|
+
};
|
|
280
|
+
MultipleCombobox.defaultProps = {
|
|
281
|
+
// someProp: false
|
|
282
|
+
};
|
|
283
|
+
var _default = MultipleCombobox;
|
|
284
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "MultipleCombobox", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _MultipleCombobox.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _MultipleCombobox = _interopRequireDefault(require("./MultipleCombobox"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|