@pareto-engineering/design-system 4.0.0-alpha.4 → 4.0.0-alpha.41
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/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +90 -0
- package/dist/cjs/a/AnimatedBlobs/index.js +13 -0
- package/dist/cjs/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +60 -0
- package/dist/cjs/a/AnimatedGradient/index.js +13 -0
- package/dist/cjs/a/AnimatedGradient/styles.scss +14 -0
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +528 -0
- package/dist/cjs/a/AppContext/ContextProvider.js +0 -2
- package/dist/cjs/a/AppContext/useTheme.js +0 -4
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +59 -0
- package/dist/cjs/a/BlurOverlay/index.js +13 -0
- package/dist/cjs/a/BlurOverlay/styles.scss +31 -0
- package/dist/cjs/a/ContentTree/ContentTree.js +11 -5
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +12 -5
- package/dist/cjs/a/ContentTree/styles.scss +34 -11
- package/dist/cjs/a/Conversation/Conversation.js +12 -17
- package/dist/cjs/a/Conversation/common/Message/Message.js +15 -12
- package/dist/cjs/a/Conversation/styles.scss +56 -124
- package/dist/cjs/a/DotInfo/DotInfo.js +2 -2
- package/dist/cjs/a/Figure/Figure.js +2 -2
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/cjs/a/IconList/IconList.js +2 -2
- package/dist/cjs/a/IconList/common/Item/Item.js +1 -1
- package/dist/cjs/a/Label/Label.js +14 -6
- package/dist/cjs/a/Label/styles.scss +4 -4
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/cjs/a/MetaCard/MetaCard.js +65 -0
- package/dist/cjs/a/MetaCard/index.js +13 -0
- package/dist/cjs/a/MetaCard/styles.scss +45 -0
- package/dist/cjs/a/People/People.js +2 -2
- package/dist/cjs/a/People/common/Person/Person.js +5 -5
- package/dist/cjs/a/People/styles.scss +10 -4
- package/dist/cjs/a/Popover/Popover.js +4 -4
- package/dist/cjs/a/Popover/styles.scss +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +2 -2
- package/dist/cjs/a/Quote/Quote.js +2 -2
- package/dist/cjs/a/SVG/SVG.js +2 -2
- package/dist/cjs/a/SnapScroller/SnapScroller.js +2 -2
- package/dist/cjs/a/SnapScroller/styles.scss +30 -9
- package/dist/cjs/a/Spinner/Spinner.js +2 -2
- package/dist/cjs/a/TextSteps/TextSteps.js +70 -0
- package/dist/cjs/a/TextSteps/index.js +13 -0
- package/dist/cjs/a/TextSteps/styles.scss +29 -0
- package/dist/cjs/a/Timestamp/Timestamp.js +2 -2
- package/dist/cjs/a/Tip/Tip.js +72 -0
- package/dist/cjs/a/Tip/index.js +13 -0
- package/dist/cjs/a/Tip/styles.scss +22 -0
- package/dist/cjs/a/index.js +43 -1
- package/dist/cjs/b/Button/Button.js +21 -8
- package/dist/cjs/b/Button/common/Group/Group.js +57 -0
- package/dist/cjs/b/Button/common/Group/index.js +13 -0
- package/dist/cjs/b/Button/common/Group/styles.scss +11 -0
- package/dist/cjs/b/Button/common/index.js +12 -0
- package/dist/cjs/b/Button/styles.scss +38 -8
- package/dist/cjs/b/Card/Card.js +74 -0
- package/dist/cjs/b/Card/common/Group/Group.js +73 -0
- package/dist/cjs/b/Card/common/Group/index.js +13 -0
- package/dist/cjs/b/Card/common/Group/styles.scss +38 -0
- package/dist/cjs/b/Card/common/Section/Section.js +59 -0
- package/dist/cjs/b/Card/common/Section/index.js +13 -0
- package/dist/cjs/b/Card/common/index.js +19 -0
- package/dist/cjs/b/Card/index.js +13 -0
- package/dist/cjs/b/Card/styles.scss +57 -0
- package/dist/cjs/b/Logo/Logo.js +2 -2
- package/dist/cjs/b/Page/Page.js +16 -6
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +4 -2
- package/dist/cjs/b/Page/common/Section/Section.js +13 -3
- package/dist/cjs/b/Page/styles.scss +25 -4
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +2 -2
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -15
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +19 -31
- package/dist/cjs/b/ThemeSelector/styles.scss +2 -7
- package/dist/cjs/b/Title/Title.js +5 -3
- package/dist/cjs/b/index.js +8 -1
- package/dist/cjs/c/ContentSlides/ContentSlides.js +3 -3
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -3
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +0 -2
- package/dist/cjs/c/ContentSlides/styles.scss +2 -2
- package/dist/cjs/c/Modal/Modal.js +3 -3
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +9 -13
- package/dist/cjs/c/Shortener/Shortener.js +2 -2
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
- package/dist/cjs/f/FormInput/FormInput.js +8 -4
- package/dist/cjs/f/common/Debugger/Debugger.js +2 -2
- package/dist/cjs/f/common/Description/Description.js +2 -2
- package/dist/cjs/f/common/InputWrapper/InputWrapper.js +74 -0
- package/dist/cjs/f/common/InputWrapper/index.js +13 -0
- package/dist/cjs/f/common/InputWrapper/styles.scss +13 -0
- package/dist/cjs/f/common/Label/Label.js +20 -6
- package/dist/cjs/f/common/Label/styles.scss +8 -2
- package/dist/cjs/f/common/index.js +8 -1
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +42 -12
- package/dist/cjs/f/fields/Checkbox/styles.scss +6 -8
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +57 -26
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +2 -2
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +52 -43
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +191 -0
- package/dist/cjs/f/fields/EditorInput/common/Toolbar.js +193 -0
- package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +19 -0
- package/dist/cjs/f/fields/EditorInput/common/index.js +20 -0
- package/dist/cjs/f/fields/EditorInput/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/styles.scss +119 -0
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +164 -0
- package/dist/cjs/f/fields/LinkInput/index.js +13 -0
- package/dist/cjs/f/fields/LinkInput/styles.scss +89 -0
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +27 -3
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +37 -7
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +44 -17
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +36 -26
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +64 -29
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +17 -3
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +43 -21
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +5 -5
- package/dist/cjs/f/fields/RatingsInput/styles.scss +6 -13
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +47 -17
- package/dist/cjs/f/fields/SelectInput/styles.scss +60 -26
- package/dist/cjs/f/fields/TextInput/TextInput.js +50 -17
- package/dist/cjs/f/fields/TextInput/styles.scss +56 -20
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +45 -24
- package/dist/cjs/f/fields/TextareaInput/styles.scss +42 -25
- package/dist/cjs/f/fields/index.js +15 -1
- package/dist/cjs/form.scss +1 -1
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +1 -1
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +1 -1
- package/dist/cjs/test/QueryLoader/QueryLoader.js +2 -0
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +82 -0
- package/dist/es/a/AnimatedBlobs/index.js +1 -0
- package/dist/es/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +52 -0
- package/dist/es/a/AnimatedGradient/index.js +1 -0
- package/dist/es/a/AnimatedGradient/styles.scss +14 -0
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +492 -0
- package/dist/es/a/AppContext/useTheme.js +0 -4
- package/dist/es/a/BlurOverlay/BlurOverlay.js +51 -0
- package/dist/es/a/BlurOverlay/index.js +2 -0
- package/dist/es/a/BlurOverlay/styles.scss +31 -0
- package/dist/es/a/ContentTree/ContentTree.js +11 -5
- package/dist/es/a/ContentTree/common/Tree/Tree.js +12 -5
- package/dist/es/a/ContentTree/styles.scss +34 -11
- package/dist/es/a/Conversation/Conversation.js +12 -17
- package/dist/es/a/Conversation/common/Message/Message.js +15 -12
- package/dist/es/a/Conversation/styles.scss +56 -124
- package/dist/es/a/DotInfo/DotInfo.js +2 -2
- package/dist/es/a/Figure/Figure.js +2 -2
- package/dist/es/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/es/a/IconList/IconList.js +2 -2
- package/dist/es/a/Label/Label.js +14 -6
- package/dist/es/a/Label/styles.scss +4 -4
- package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/es/a/MetaCard/MetaCard.js +57 -0
- package/dist/es/a/MetaCard/index.js +1 -0
- package/dist/es/a/MetaCard/styles.scss +45 -0
- package/dist/es/a/People/People.js +2 -2
- package/dist/es/a/People/common/Person/Person.js +5 -5
- package/dist/es/a/People/styles.scss +10 -4
- package/dist/es/a/Popover/Popover.js +4 -4
- package/dist/es/a/Popover/styles.scss +1 -1
- package/dist/es/a/ProgressBar/ProgressBar.js +2 -2
- package/dist/es/a/Quote/Quote.js +2 -2
- package/dist/es/a/SVG/SVG.js +2 -2
- package/dist/es/a/SnapScroller/SnapScroller.js +2 -2
- package/dist/es/a/SnapScroller/styles.scss +30 -9
- package/dist/es/a/Spinner/Spinner.js +2 -2
- package/dist/es/a/TextSteps/TextSteps.js +61 -0
- package/dist/es/a/TextSteps/index.js +1 -0
- package/dist/es/a/TextSteps/styles.scss +29 -0
- package/dist/es/a/Timestamp/Timestamp.js +2 -2
- package/dist/es/a/Tip/Tip.js +64 -0
- package/dist/es/a/Tip/index.js +2 -0
- package/dist/es/a/Tip/styles.scss +22 -0
- package/dist/es/a/index.js +7 -1
- package/dist/es/b/Button/Button.js +21 -7
- package/dist/es/b/Button/common/Group/Group.js +49 -0
- package/dist/es/b/Button/common/Group/index.js +1 -0
- package/dist/es/b/Button/common/Group/styles.scss +11 -0
- package/dist/es/b/Button/common/index.js +1 -0
- package/dist/es/b/Button/styles.scss +38 -8
- package/dist/es/b/Card/Card.js +66 -0
- package/dist/es/b/Card/common/Group/Group.js +65 -0
- package/dist/es/b/Card/common/Group/index.js +1 -0
- package/dist/es/b/Card/common/Group/styles.scss +38 -0
- package/dist/es/b/Card/common/Section/Section.js +48 -0
- package/dist/es/b/Card/common/Section/index.js +1 -0
- package/dist/es/b/Card/common/index.js +2 -0
- package/dist/es/b/Card/index.js +1 -0
- package/dist/es/b/Card/styles.scss +57 -0
- package/dist/es/b/Logo/Logo.js +2 -2
- package/dist/es/b/Page/Page.js +16 -5
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +4 -2
- package/dist/es/b/Page/common/Section/Section.js +12 -2
- package/dist/es/b/Page/styles.scss +25 -4
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +2 -2
- package/dist/es/b/SocialMediaButton/styles.scss +1 -15
- package/dist/es/b/ThemeSelector/ThemeSelector.js +19 -32
- package/dist/es/b/ThemeSelector/styles.scss +2 -7
- package/dist/es/b/Title/Title.js +18 -12
- package/dist/es/b/index.js +2 -1
- package/dist/es/c/ContentSlides/ContentSlides.js +3 -3
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
- package/dist/es/c/ContentSlides/styles.scss +2 -2
- package/dist/es/c/Modal/Modal.js +3 -3
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/es/c/Modal/styles.scss +9 -13
- package/dist/es/c/Shortener/Shortener.js +2 -2
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
- package/dist/es/f/FormInput/FormInput.js +9 -3
- package/dist/es/f/common/Debugger/Debugger.js +2 -2
- package/dist/es/f/common/Description/Description.js +2 -2
- package/dist/es/f/common/InputWrapper/InputWrapper.js +66 -0
- package/dist/es/f/common/InputWrapper/index.js +2 -0
- package/dist/es/f/common/InputWrapper/styles.scss +13 -0
- package/dist/es/f/common/Label/Label.js +20 -6
- package/dist/es/f/common/Label/styles.scss +8 -2
- package/dist/es/f/common/index.js +2 -1
- package/dist/es/f/fields/Checkbox/Checkbox.js +43 -13
- package/dist/es/f/fields/Checkbox/styles.scss +6 -8
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +58 -27
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
- package/dist/es/f/fields/ChoicesInput/styles.scss +52 -43
- package/dist/es/f/fields/EditorInput/EditorInput.js +186 -0
- package/dist/es/f/fields/EditorInput/common/Toolbar.js +182 -0
- package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +11 -0
- package/dist/es/f/fields/EditorInput/common/index.js +2 -0
- package/dist/es/f/fields/EditorInput/index.js +2 -0
- package/dist/es/f/fields/EditorInput/styles.scss +119 -0
- package/dist/es/f/fields/LinkInput/LinkInput.js +156 -0
- package/dist/es/f/fields/LinkInput/index.js +2 -0
- package/dist/es/f/fields/LinkInput/styles.scss +89 -0
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +26 -2
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +37 -7
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +43 -16
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +35 -25
- package/dist/es/f/fields/QueryCombobox/styles.scss +64 -29
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +17 -3
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +44 -22
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +4 -4
- package/dist/es/f/fields/RatingsInput/styles.scss +6 -13
- package/dist/es/f/fields/SelectInput/SelectInput.js +48 -18
- package/dist/es/f/fields/SelectInput/styles.scss +60 -26
- package/dist/es/f/fields/TextInput/TextInput.js +51 -18
- package/dist/es/f/fields/TextInput/styles.scss +56 -20
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +46 -25
- package/dist/es/f/fields/TextareaInput/styles.scss +42 -25
- package/dist/es/f/fields/index.js +3 -1
- package/dist/es/form.scss +1 -1
- package/package.json +19 -16
- package/src/stories/a/BlurOverlay.stories.jsx +39 -0
- package/src/stories/a/Conversation.stories.jsx +11 -42
- package/src/stories/a/MetaCard.stories.jsx +35 -0
- package/src/stories/a/People.stories.jsx +22 -2
- package/src/stories/a/Quote.stories.jsx +1 -1
- package/src/stories/a/SnapScroller.stories.jsx +2 -2
- package/src/stories/a/Spinner.stories.jsx +1 -1
- package/src/stories/a/TextSteps.stories.jsx +19 -0
- package/src/stories/a/Tip.stories.jsx +28 -0
- package/src/stories/b/{Button.stories.jsx → Button/Button.stories.jsx} +18 -0
- package/src/stories/b/Button/Group.stories.jsx +35 -0
- package/src/stories/b/Card/Card.stories.jsx +59 -0
- package/src/stories/b/Card/Group.stories.jsx +59 -0
- package/src/stories/b/Page.stories.jsx +19 -3
- package/src/stories/b/ThemeSelector.stories.jsx +1 -1
- package/src/stories/b/Title.stories.jsx +1 -1
- package/src/stories/c/ContentSlides.stories.jsx +1 -1
- package/src/stories/colors.js +22 -10
- package/src/stories/f/Checkbox.stories.jsx +22 -7
- package/src/stories/f/ChoicesInput.stories.jsx +21 -7
- package/src/stories/f/EditorInput.stories.jsx +88 -0
- package/src/stories/f/LinkInput.stories.jsx +100 -0
- package/src/stories/f/QueryChoices.stories.jsx +20 -4
- package/src/stories/f/QueryCombobox.stories.jsx +25 -13
- package/src/stories/f/QuerySelect.stories.jsx +20 -5
- package/src/stories/f/RatingsInput.stories.jsx +16 -2
- package/src/stories/f/SelectInput.stories.jsx +27 -5
- package/src/stories/f/TextInput.stories.jsx +33 -12
- package/src/stories/f/TextareaInput.stories.jsx +16 -2
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +102 -0
- package/src/ui/a/AnimatedBlobs/index.js +1 -0
- package/src/ui/a/AnimatedBlobs/styles.scss +87 -0
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +73 -0
- package/src/ui/a/AnimatedGradient/index.js +1 -0
- package/src/ui/a/AnimatedGradient/styles.scss +14 -0
- package/src/ui/a/AnimatedGradient/webGIRenderer.js +541 -0
- package/src/ui/a/AppContext/useTheme.js +0 -4
- package/src/ui/a/BlurOverlay/BlurOverlay.jsx +75 -0
- package/src/ui/a/BlurOverlay/index.js +2 -0
- package/src/ui/a/BlurOverlay/styles.scss +31 -0
- package/src/ui/a/ContentTree/ContentTree.jsx +10 -6
- package/src/ui/a/ContentTree/common/Tree/Tree.jsx +19 -7
- package/src/ui/a/ContentTree/styles.scss +34 -11
- package/src/ui/a/Conversation/Conversation.jsx +16 -20
- package/src/ui/a/Conversation/common/Message/Message.jsx +18 -11
- package/src/ui/a/Conversation/styles.scss +56 -124
- package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
- package/src/ui/a/Figure/Figure.jsx +2 -2
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
- package/src/ui/a/IconList/IconList.jsx +2 -2
- package/src/ui/a/Label/Label.jsx +13 -4
- package/src/ui/a/Label/styles.scss +4 -4
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
- package/src/ui/a/MetaCard/MetaCard.jsx +81 -0
- package/src/ui/a/MetaCard/index.js +1 -0
- package/src/ui/a/MetaCard/styles.scss +45 -0
- package/src/ui/a/People/People.jsx +2 -2
- package/src/ui/a/People/common/Person/Person.jsx +5 -5
- package/src/ui/a/People/styles.scss +10 -4
- package/src/ui/a/Popover/Popover.jsx +4 -4
- package/src/ui/a/Popover/styles.scss +1 -1
- package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
- package/src/ui/a/Quote/Quote.jsx +2 -2
- package/src/ui/a/SVG/SVG.jsx +2 -2
- package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
- package/src/ui/a/SnapScroller/styles.scss +30 -9
- package/src/ui/a/Spinner/Spinner.jsx +2 -2
- package/src/ui/a/TextSteps/TextSteps.jsx +87 -0
- package/src/ui/a/TextSteps/index.js +1 -0
- package/src/ui/a/TextSteps/styles.scss +29 -0
- package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
- package/src/ui/a/Tip/Tip.jsx +88 -0
- package/src/ui/a/Tip/index.js +2 -0
- package/src/ui/a/Tip/styles.scss +22 -0
- package/src/ui/a/index.js +6 -0
- package/src/ui/b/Button/Button.jsx +26 -7
- package/src/ui/b/Button/common/Group/Group.jsx +71 -0
- package/src/ui/b/Button/common/Group/index.js +1 -0
- package/src/ui/b/Button/common/Group/styles.scss +11 -0
- package/src/ui/b/Button/common/index.js +1 -0
- package/src/ui/b/Button/styles.scss +38 -8
- package/src/ui/b/Card/Card.jsx +94 -0
- package/src/ui/b/Card/common/Group/Group.jsx +91 -0
- package/src/ui/b/Card/common/Group/index.js +1 -0
- package/src/ui/b/Card/common/Group/styles.scss +38 -0
- package/src/ui/b/Card/common/Section/Section.jsx +70 -0
- package/src/ui/b/Card/common/Section/index.js +1 -0
- package/src/ui/b/Card/common/index.js +2 -0
- package/src/ui/b/Card/index.js +1 -0
- package/src/ui/b/Card/styles.scss +57 -0
- package/src/ui/b/Logo/Logo.jsx +2 -2
- package/src/ui/b/Page/Page.jsx +13 -3
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +2 -3
- package/src/ui/b/Page/common/Section/Section.jsx +16 -1
- package/src/ui/b/Page/styles.scss +25 -4
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
- package/src/ui/b/SocialMediaButton/styles.scss +1 -15
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +12 -30
- package/src/ui/b/ThemeSelector/styles.scss +2 -7
- package/src/ui/b/Title/Title.jsx +30 -23
- package/src/ui/b/index.js +1 -0
- package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +1 -1
- package/src/ui/c/ContentSlides/styles.scss +2 -2
- package/src/ui/c/Modal/Modal.jsx +3 -3
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +1 -1
- package/src/ui/c/Modal/styles.scss +9 -13
- package/src/ui/c/Shortener/Shortener.jsx +2 -2
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
- package/src/ui/f/FormInput/FormInput.jsx +14 -2
- package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
- package/src/ui/f/common/Description/Description.jsx +2 -2
- package/src/ui/f/common/InputWrapper/InputWrapper.jsx +89 -0
- package/src/ui/f/common/InputWrapper/index.js +2 -0
- package/src/ui/f/common/InputWrapper/styles.scss +13 -0
- package/src/ui/f/common/Label/Label.jsx +20 -4
- package/src/ui/f/common/Label/styles.scss +8 -2
- package/src/ui/f/common/index.js +1 -0
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +67 -29
- package/src/ui/f/fields/Checkbox/styles.scss +6 -8
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +85 -50
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +10 -3
- package/src/ui/f/fields/ChoicesInput/styles.scss +52 -43
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +237 -0
- package/src/ui/f/fields/EditorInput/common/Toolbar.jsx +254 -0
- package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +16 -0
- package/src/ui/f/fields/EditorInput/common/index.jsx +2 -0
- package/src/ui/f/fields/EditorInput/index.js +2 -0
- package/src/ui/f/fields/EditorInput/styles.scss +119 -0
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +197 -0
- package/src/ui/f/fields/LinkInput/index.js +2 -0
- package/src/ui/f/fields/LinkInput/styles.scss +89 -0
- package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +28 -0
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +39 -4
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +68 -38
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +81 -66
- package/src/ui/f/fields/QueryCombobox/styles.scss +64 -29
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +16 -1
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +57 -30
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +4 -4
- package/src/ui/f/fields/RatingsInput/styles.scss +6 -13
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +90 -51
- package/src/ui/f/fields/SelectInput/styles.scss +60 -26
- package/src/ui/f/fields/TextInput/TextInput.jsx +71 -35
- package/src/ui/f/fields/TextInput/styles.scss +56 -20
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +67 -45
- package/src/ui/f/fields/TextareaInput/styles.scss +42 -25
- package/src/ui/f/fields/index.js +2 -0
- package/src/ui/form.scss +1 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +14551 -6190
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
|
|
9
|
+
var _LexicalTreeView = require("@lexical/react/LexicalTreeView");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
const TreeViewPlugin = () => {
|
|
12
|
+
const [editor] = (0, _LexicalComposerContext.useLexicalComposerContext)();
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement(_LexicalTreeView.TreeView, {
|
|
14
|
+
viewClassName: "tree-view-output",
|
|
15
|
+
editor: editor
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
var _default = TreeViewPlugin;
|
|
19
|
+
exports.default = _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Toolbar", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Toolbar.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "TreeViewPlugin", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _TreeViewPlugin.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _Toolbar = _interopRequireDefault(require("./Toolbar"));
|
|
19
|
+
var _TreeViewPlugin = _interopRequireDefault(require("./TreeViewPlugin"));
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "EditorInput", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _EditorInput.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _EditorInput = _interopRequireDefault(require("./EditorInput"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
/* stylelint-disable max-nesting-depth -- required here */
|
|
3
|
+
|
|
4
|
+
@use "@pareto-engineering/bem";
|
|
5
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
6
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
|
+
|
|
8
|
+
$default-gap: calc(var(--gap) / 2);
|
|
9
|
+
$default-padding: .55em .75em;
|
|
10
|
+
$default-border: 1px solid var(--outline-inputs);
|
|
11
|
+
$default-input-border-radius: var(--theme-default-input-border-radius);
|
|
12
|
+
$default-border: var(--theme-default-input-border);
|
|
13
|
+
$focus-border: var(--theme-focus-input-border);
|
|
14
|
+
$active-background: var(--hard-background-inputs);
|
|
15
|
+
$default-background: var(--background-inputs);
|
|
16
|
+
$disabled-background: var(--background-inputs-30);
|
|
17
|
+
|
|
18
|
+
.#{bem.$base}.editor-input {
|
|
19
|
+
&.#{bem.$base}.input-wrapper {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
|
|
23
|
+
> .#{bem.$base}.toolbar {
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: $default-gap;
|
|
26
|
+
margin-bottom: .25em;
|
|
27
|
+
|
|
28
|
+
> .group {
|
|
29
|
+
> button {
|
|
30
|
+
background: $default-background;
|
|
31
|
+
border: $default-border;
|
|
32
|
+
padding: $default-padding;
|
|
33
|
+
|
|
34
|
+
&.active {
|
|
35
|
+
background-color: $active-background;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.flip {
|
|
41
|
+
transform: scaleX(-1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:not(.disabled) {
|
|
46
|
+
&:hover,
|
|
47
|
+
&:focus,
|
|
48
|
+
&:active {
|
|
49
|
+
> .textarea {
|
|
50
|
+
border: $focus-border;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.disabled {
|
|
56
|
+
> .textarea {
|
|
57
|
+
background: $disabled-background;
|
|
58
|
+
color: var(--metadata);
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
> .content-editable {
|
|
64
|
+
background: $default-background;
|
|
65
|
+
border: $default-border;
|
|
66
|
+
border-radius: $default-input-border-radius;
|
|
67
|
+
color: var(--y);
|
|
68
|
+
height: var(--rows);
|
|
69
|
+
outline: none;
|
|
70
|
+
overflow: auto;
|
|
71
|
+
padding: $default-padding;
|
|
72
|
+
resize: var(--resize);
|
|
73
|
+
width: 100%;
|
|
74
|
+
|
|
75
|
+
li:has(ol, ul) {
|
|
76
|
+
list-style-type: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
p,
|
|
80
|
+
span,
|
|
81
|
+
strong,
|
|
82
|
+
em,
|
|
83
|
+
li {
|
|
84
|
+
&.underlined {
|
|
85
|
+
text-decoration: underline;
|
|
86
|
+
|
|
87
|
+
&.strikethrough {
|
|
88
|
+
text-decoration: underline line-through;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.strikethrough {
|
|
93
|
+
text-decoration: line-through;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.italic {
|
|
97
|
+
font-style: italic;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:first-child {
|
|
102
|
+
margin-top: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&::placeholder {
|
|
106
|
+
color: var(--metadata);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
> .tree-view-output {
|
|
112
|
+
background: $default-background;
|
|
113
|
+
border: $default-border;
|
|
114
|
+
border-radius: $default-input-border-radius;
|
|
115
|
+
max-height: 20em;
|
|
116
|
+
overflow: auto;
|
|
117
|
+
padding: $default-padding;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
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 _formik = require("formik");
|
|
11
|
+
var _common = require("../../common");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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); }
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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; } /* @pareto-engineering/generator-front 1.0.12 */
|
|
16
|
+
// Local Definitions
|
|
17
|
+
|
|
18
|
+
const baseClassName = _exports.default.base;
|
|
19
|
+
const componentClassName = 'link-input';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* This is the component description.
|
|
23
|
+
*/
|
|
24
|
+
const LinkInput = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
id,
|
|
27
|
+
className: userClassName,
|
|
28
|
+
style,
|
|
29
|
+
name,
|
|
30
|
+
label,
|
|
31
|
+
color,
|
|
32
|
+
labelColor,
|
|
33
|
+
validate,
|
|
34
|
+
description,
|
|
35
|
+
disabled,
|
|
36
|
+
placeholder,
|
|
37
|
+
optional,
|
|
38
|
+
autoComplete,
|
|
39
|
+
labelSpan,
|
|
40
|
+
desktopLabelSpan,
|
|
41
|
+
inputSpan,
|
|
42
|
+
desktopInputSpan
|
|
43
|
+
// ...otherProps
|
|
44
|
+
} = _ref;
|
|
45
|
+
(0, React.useInsertionEffect)(() => {
|
|
46
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
47
|
+
}, []);
|
|
48
|
+
const [field] = (0, _formik.useField)({
|
|
49
|
+
name,
|
|
50
|
+
validate
|
|
51
|
+
});
|
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_common.FormLabel, {
|
|
53
|
+
name: name,
|
|
54
|
+
color: labelColor,
|
|
55
|
+
optional: optional,
|
|
56
|
+
columnSpan: labelSpan,
|
|
57
|
+
desktopColumnSpan: desktopLabelSpan
|
|
58
|
+
// {...otherProps}
|
|
59
|
+
}, label), /*#__PURE__*/React.createElement(_common.InputWrapper, {
|
|
60
|
+
id: id,
|
|
61
|
+
className: [baseClassName, componentClassName, userClassName, `y-${color}`].filter(e => e).join(' '),
|
|
62
|
+
style: style,
|
|
63
|
+
columnSpan: inputSpan,
|
|
64
|
+
desktopColumnSpan: desktopInputSpan
|
|
65
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: "input-link-wrapper"
|
|
67
|
+
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
68
|
+
id: name,
|
|
69
|
+
className: "input",
|
|
70
|
+
type: "text",
|
|
71
|
+
disabled: disabled,
|
|
72
|
+
placeholder: placeholder,
|
|
73
|
+
autoComplete: autoComplete
|
|
74
|
+
}, field)), /*#__PURE__*/React.createElement("a", {
|
|
75
|
+
href: field.value,
|
|
76
|
+
target: "_blank",
|
|
77
|
+
rel: "noopener noreferrer"
|
|
78
|
+
}, "\u2192")), /*#__PURE__*/React.createElement(_common.FormDescription, {
|
|
79
|
+
className: "s-1",
|
|
80
|
+
description: description,
|
|
81
|
+
name: name
|
|
82
|
+
})));
|
|
83
|
+
};
|
|
84
|
+
LinkInput.propTypes = {
|
|
85
|
+
/**
|
|
86
|
+
* The HTML id for this element
|
|
87
|
+
*/
|
|
88
|
+
id: _propTypes.default.string,
|
|
89
|
+
/**
|
|
90
|
+
* The HTML class names for this element
|
|
91
|
+
*/
|
|
92
|
+
className: _propTypes.default.string,
|
|
93
|
+
/**
|
|
94
|
+
* The React-written, css properties for this element.
|
|
95
|
+
*/
|
|
96
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
97
|
+
/**
|
|
98
|
+
* The input name (html - and Formik state)
|
|
99
|
+
*/
|
|
100
|
+
name: _propTypes.default.string.isRequired,
|
|
101
|
+
/**
|
|
102
|
+
* The input label
|
|
103
|
+
*/
|
|
104
|
+
label: _propTypes.default.string.isRequired,
|
|
105
|
+
/**
|
|
106
|
+
* The input label color
|
|
107
|
+
*/
|
|
108
|
+
labelColor: _propTypes.default.string,
|
|
109
|
+
/**
|
|
110
|
+
* The input field validator function
|
|
111
|
+
*/
|
|
112
|
+
validate: _propTypes.default.func,
|
|
113
|
+
/**
|
|
114
|
+
* If the slide will only have one input
|
|
115
|
+
*/
|
|
116
|
+
oneInputLabel: _propTypes.default.bool,
|
|
117
|
+
/**
|
|
118
|
+
* Input description
|
|
119
|
+
*/
|
|
120
|
+
description: _propTypes.default.string,
|
|
121
|
+
/**
|
|
122
|
+
* Whether the text input should be disabled
|
|
123
|
+
*/
|
|
124
|
+
disabled: _propTypes.default.bool,
|
|
125
|
+
/**
|
|
126
|
+
* The placeholder text for the input
|
|
127
|
+
*/
|
|
128
|
+
placeholder: _propTypes.default.string,
|
|
129
|
+
/**
|
|
130
|
+
* The text input color
|
|
131
|
+
*/
|
|
132
|
+
color: _propTypes.default.string,
|
|
133
|
+
/**
|
|
134
|
+
* Whether the input is optional or not
|
|
135
|
+
*/
|
|
136
|
+
optional: _propTypes.default.bool,
|
|
137
|
+
/**
|
|
138
|
+
* The autoComplete value that the browser should watch for the input
|
|
139
|
+
* `https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete`
|
|
140
|
+
*/
|
|
141
|
+
autoComplete: _propTypes.default.string,
|
|
142
|
+
/**
|
|
143
|
+
* The number of columns the label should span
|
|
144
|
+
*/
|
|
145
|
+
labelSpan: _propTypes.default.number,
|
|
146
|
+
/**
|
|
147
|
+
* The number of columns the input should span
|
|
148
|
+
*/
|
|
149
|
+
inputSpan: _propTypes.default.number,
|
|
150
|
+
/**
|
|
151
|
+
* The number of columns the label should span on desktop
|
|
152
|
+
*/
|
|
153
|
+
desktopLabelSpan: _propTypes.default.number,
|
|
154
|
+
/**
|
|
155
|
+
* The number of columns the input should span on desktop
|
|
156
|
+
*/
|
|
157
|
+
desktopInputSpan: _propTypes.default.number
|
|
158
|
+
};
|
|
159
|
+
LinkInput.defaultProps = {
|
|
160
|
+
color: 'paragraph',
|
|
161
|
+
disabled: false
|
|
162
|
+
};
|
|
163
|
+
var _default = /*#__PURE__*/(0, React.memo)(LinkInput);
|
|
164
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "LinkInput", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _LinkInput.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _LinkInput = _interopRequireDefault(require("./LinkInput"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
/* stylelint-disable max-nesting-depth -- required here */
|
|
3
|
+
|
|
4
|
+
@use "@pareto-engineering/bem";
|
|
5
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
6
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
|
+
|
|
8
|
+
$default-padding: .55em .75em;
|
|
9
|
+
$default-symbol-left: 1em;
|
|
10
|
+
$default-padding-with-symbol:
|
|
11
|
+
.55em
|
|
12
|
+
calc($default-symbol-left - 1em)
|
|
13
|
+
.55em
|
|
14
|
+
calc($default-symbol-left + 1em);
|
|
15
|
+
$default-input-border-radius: var(--theme-default-input-border-radius);
|
|
16
|
+
$default-border: var(--theme-default-input-border);
|
|
17
|
+
$hover-border: var(--theme-hover-input-border);
|
|
18
|
+
$focus-border: var(--theme-focus-input-border);
|
|
19
|
+
$default-background: var(--background-inputs);
|
|
20
|
+
$disabled-background: var(--background-inputs-30);
|
|
21
|
+
|
|
22
|
+
.#{bem.$base}.link-input {
|
|
23
|
+
&.#{bem.$base}.input-wrapper {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
&.has-symbol {
|
|
29
|
+
&::before {
|
|
30
|
+
color: var(--y);
|
|
31
|
+
content: var(--symbol);
|
|
32
|
+
left: $default-symbol-left;
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 50%;
|
|
35
|
+
transform: translate(-50%, -50%);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input {
|
|
39
|
+
padding: $default-padding-with-symbol;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
> .input-link-wrapper {
|
|
44
|
+
display: flex;
|
|
45
|
+
gap: calc(var(--gap) / 2);
|
|
46
|
+
|
|
47
|
+
> a {
|
|
48
|
+
align-self: center;
|
|
49
|
+
border: 1px solid var(--interactive);
|
|
50
|
+
border-radius: var(--theme-default-input-border-radius);
|
|
51
|
+
padding: .5em;
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: var(--interactive);
|
|
55
|
+
color: var(--on-interactive);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
> input {
|
|
60
|
+
background-color: $default-background;
|
|
61
|
+
border: $default-border;
|
|
62
|
+
border-radius: $default-input-border-radius;
|
|
63
|
+
color: var(--y);
|
|
64
|
+
outline: none;
|
|
65
|
+
padding: $default-padding;
|
|
66
|
+
width: 100%;
|
|
67
|
+
|
|
68
|
+
&::placeholder {
|
|
69
|
+
color: var(--metadata);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:disabled {
|
|
73
|
+
background-color: $disabled-background;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:not(:disabled) {
|
|
77
|
+
&:hover,
|
|
78
|
+
&:active {
|
|
79
|
+
border: $hover-border;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:focus {
|
|
83
|
+
border: $focus-border;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -12,7 +12,7 @@ var _ChoicesInput = require("../ChoicesInput");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
function _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); }
|
|
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); } /* @pareto-engineering/generator-front 1.0.12 */
|
|
16
16
|
/**
|
|
17
17
|
* This is the component description.
|
|
18
18
|
*/
|
|
@@ -25,6 +25,10 @@ const QueryChoices = _ref => {
|
|
|
25
25
|
validate,
|
|
26
26
|
loadingOption,
|
|
27
27
|
extraVariables,
|
|
28
|
+
labelSpan,
|
|
29
|
+
desktopLabelSpan,
|
|
30
|
+
inputSpan,
|
|
31
|
+
desktopInputSpan,
|
|
28
32
|
...otherProps
|
|
29
33
|
} = _ref;
|
|
30
34
|
const [,, helpers] = (0, _formik.useField)({
|
|
@@ -80,7 +84,11 @@ const QueryChoices = _ref => {
|
|
|
80
84
|
return /*#__PURE__*/React.createElement(_ChoicesInput.ChoicesInput, _extends({
|
|
81
85
|
name: name,
|
|
82
86
|
validate: validate,
|
|
83
|
-
options: options
|
|
87
|
+
options: options,
|
|
88
|
+
labelSpan: labelSpan,
|
|
89
|
+
desktopLabelSpan: desktopLabelSpan,
|
|
90
|
+
inputSpan: inputSpan,
|
|
91
|
+
desktopInputSpan: desktopInputSpan
|
|
84
92
|
}, otherProps));
|
|
85
93
|
};
|
|
86
94
|
QueryChoices.propTypes = {
|
|
@@ -124,7 +132,23 @@ QueryChoices.propTypes = {
|
|
|
124
132
|
* The extra variables that might be required to be used in the query to fetch
|
|
125
133
|
* select options.
|
|
126
134
|
*/
|
|
127
|
-
extraVariables: _propTypes.default.objectOf(_propTypes.default.string)
|
|
135
|
+
extraVariables: _propTypes.default.objectOf(_propTypes.default.string),
|
|
136
|
+
/**
|
|
137
|
+
* The number of columns the label should span
|
|
138
|
+
*/
|
|
139
|
+
labelSpan: _propTypes.default.number,
|
|
140
|
+
/**
|
|
141
|
+
* The number of columns the input should span
|
|
142
|
+
*/
|
|
143
|
+
inputSpan: _propTypes.default.number,
|
|
144
|
+
/**
|
|
145
|
+
* The number of columns the label should span on desktop
|
|
146
|
+
*/
|
|
147
|
+
desktopLabelSpan: _propTypes.default.number,
|
|
148
|
+
/**
|
|
149
|
+
* The number of columns the input should span on desktop
|
|
150
|
+
*/
|
|
151
|
+
desktopInputSpan: _propTypes.default.number
|
|
128
152
|
};
|
|
129
153
|
QueryChoices.defaultProps = {
|
|
130
154
|
loadingOption: {
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _common = require("./common");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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; } /* @pareto-engineering/generator-front 1.0.12 */ // Local Definitions
|
|
15
15
|
/**
|
|
16
16
|
* This is the component description.
|
|
17
17
|
*/
|
|
@@ -24,6 +24,7 @@ const QueryCombobox = _ref => {
|
|
|
24
24
|
multiple,
|
|
25
25
|
name,
|
|
26
26
|
label,
|
|
27
|
+
labelColor,
|
|
27
28
|
color,
|
|
28
29
|
optional,
|
|
29
30
|
description,
|
|
@@ -34,10 +35,14 @@ const QueryCombobox = _ref => {
|
|
|
34
35
|
optionsKeyMap,
|
|
35
36
|
minLength,
|
|
36
37
|
transformSearch,
|
|
37
|
-
validate
|
|
38
|
+
validate,
|
|
39
|
+
labelSpan,
|
|
40
|
+
desktopLabelSpan,
|
|
41
|
+
inputSpan,
|
|
42
|
+
desktopInputSpan
|
|
38
43
|
// ...otherProps
|
|
39
44
|
} = _ref;
|
|
40
|
-
(0, React.
|
|
45
|
+
(0, React.useInsertionEffect)(() => {
|
|
41
46
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
42
47
|
}, []);
|
|
43
48
|
const [, meta, helpers] = (0, _formik.useField)({
|
|
@@ -102,6 +107,7 @@ const QueryCombobox = _ref => {
|
|
|
102
107
|
disabled,
|
|
103
108
|
name,
|
|
104
109
|
label,
|
|
110
|
+
labelColor,
|
|
105
111
|
optional,
|
|
106
112
|
description,
|
|
107
113
|
setValue,
|
|
@@ -110,7 +116,11 @@ const QueryCombobox = _ref => {
|
|
|
110
116
|
isFetching,
|
|
111
117
|
className,
|
|
112
118
|
minLength,
|
|
113
|
-
transformSearch
|
|
119
|
+
transformSearch,
|
|
120
|
+
labelSpan,
|
|
121
|
+
desktopLabelSpan,
|
|
122
|
+
inputSpan,
|
|
123
|
+
desktopInputSpan
|
|
114
124
|
};
|
|
115
125
|
const Input = multiple ? _common.MultipleCombobox : _common.Combobox;
|
|
116
126
|
return /*#__PURE__*/React.createElement(Input, comboboxProps);
|
|
@@ -136,6 +146,10 @@ QueryCombobox.propTypes = {
|
|
|
136
146
|
* The label of the custom select input
|
|
137
147
|
*/
|
|
138
148
|
label: _propTypes.default.string,
|
|
149
|
+
/**
|
|
150
|
+
* The label color of the custom select input
|
|
151
|
+
*/
|
|
152
|
+
labelColor: _propTypes.default.string,
|
|
139
153
|
/**
|
|
140
154
|
* The custom select input description
|
|
141
155
|
*/
|
|
@@ -145,7 +159,7 @@ QueryCombobox.propTypes = {
|
|
|
145
159
|
*/
|
|
146
160
|
disabled: _propTypes.default.bool,
|
|
147
161
|
/**
|
|
148
|
-
* The base color of the
|
|
162
|
+
* The base color of the tiles
|
|
149
163
|
*/
|
|
150
164
|
color: _propTypes.default.string,
|
|
151
165
|
/**
|
|
@@ -194,7 +208,23 @@ QueryCombobox.propTypes = {
|
|
|
194
208
|
/*
|
|
195
209
|
* Whether the input is optional or not
|
|
196
210
|
*/
|
|
197
|
-
optional: _propTypes.default.bool
|
|
211
|
+
optional: _propTypes.default.bool,
|
|
212
|
+
/**
|
|
213
|
+
* The number of columns the label should span
|
|
214
|
+
*/
|
|
215
|
+
labelSpan: _propTypes.default.number,
|
|
216
|
+
/**
|
|
217
|
+
* The number of columns the input should span
|
|
218
|
+
*/
|
|
219
|
+
inputSpan: _propTypes.default.number,
|
|
220
|
+
/**
|
|
221
|
+
* The number of columns the label should span on desktop
|
|
222
|
+
*/
|
|
223
|
+
desktopLabelSpan: _propTypes.default.number,
|
|
224
|
+
/**
|
|
225
|
+
* The number of columns the input should span on desktop
|
|
226
|
+
*/
|
|
227
|
+
desktopInputSpan: _propTypes.default.number
|
|
198
228
|
};
|
|
199
229
|
QueryCombobox.defaultProps = {
|
|
200
230
|
optionsKeyMap: {
|
|
@@ -202,7 +232,7 @@ QueryCombobox.defaultProps = {
|
|
|
202
232
|
getLabel: node => node.name
|
|
203
233
|
},
|
|
204
234
|
multiple: false,
|
|
205
|
-
color: '
|
|
235
|
+
color: 'interactive',
|
|
206
236
|
searchVariable: 'search',
|
|
207
237
|
transformSearch: search => search,
|
|
208
238
|
minLength: 2,
|