@pareto-engineering/design-system 4.0.0-alpha.9 → 4.0.0
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/.storybook/preview.js +29 -12
- package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +6 -7
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +15 -12
- package/dist/cjs/a/AnimatedGradient/styles.scss +2 -1
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +0 -1
- package/dist/cjs/a/AppContext/Context.js +3 -4
- package/dist/cjs/a/AppContext/ContextProvider.js +6 -6
- package/dist/cjs/a/AppContext/useTheme.js +2 -7
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +58 -0
- package/dist/cjs/{r/common/PrivateRoute → a/BlurOverlay}/index.js +3 -3
- package/dist/cjs/a/BlurOverlay/styles.scss +33 -0
- package/dist/cjs/a/ContentTree/ContentTree.js +16 -9
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +20 -13
- package/dist/cjs/a/ContentTree/common/useContentTree.js +1 -2
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +1 -2
- package/dist/cjs/a/ContentTree/styles.scss +34 -11
- package/dist/cjs/a/Conversation/Context.js +3 -4
- package/dist/cjs/a/Conversation/Conversation.js +18 -22
- package/dist/cjs/a/Conversation/common/Message/Message.js +18 -16
- package/dist/cjs/a/Conversation/styles.scss +56 -124
- package/dist/cjs/a/DatePicker/DatePicker.js +162 -0
- package/dist/cjs/a/DatePicker/index.js +13 -0
- package/dist/cjs/a/DatePicker/styles.scss +380 -0
- package/dist/cjs/a/DotInfo/DotInfo.js +6 -7
- package/dist/cjs/a/Figure/Figure.js +6 -7
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +5 -8
- package/dist/cjs/a/IconList/IconList.js +5 -8
- package/dist/cjs/a/IconList/common/Item/Item.js +4 -5
- package/dist/cjs/a/Label/Label.js +5 -8
- package/dist/cjs/a/Label/styles.scss +5 -5
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +6 -7
- package/dist/cjs/a/MetaCard/MetaCard.js +14 -10
- package/dist/cjs/a/MetaCard/styles.scss +18 -1
- package/dist/cjs/a/People/People.js +8 -7
- package/dist/cjs/a/People/common/Person/Person.js +15 -11
- package/dist/cjs/a/People/styles.scss +10 -4
- package/dist/cjs/a/Popover/Popover.js +12 -10
- package/dist/cjs/a/Popover/styles.scss +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +9 -10
- package/dist/cjs/a/ProgressBar/styles.scss +11 -1
- package/dist/cjs/a/Quote/Quote.js +21 -12
- package/dist/cjs/a/Quote/styles.scss +16 -37
- package/dist/cjs/a/Removable/Removable.js +71 -0
- package/dist/cjs/{c/ContentSlides/common/Navigator → a/Removable}/index.js +3 -3
- package/dist/cjs/a/Removable/styles.scss +33 -0
- package/dist/cjs/a/SVG/SVG.js +8 -10
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +3 -4
- package/dist/cjs/a/SnapScroller/SnapScroller.js +40 -14
- package/dist/cjs/a/SnapScroller/styles.scss +32 -3
- package/dist/cjs/a/Spinner/Spinner.js +6 -7
- package/dist/cjs/a/TextSteps/TextSteps.js +7 -10
- package/dist/cjs/a/TextSteps/styles.scss +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +12 -12
- package/dist/cjs/a/Tip/Tip.js +25 -12
- package/dist/cjs/a/Tip/styles.scss +7 -13
- package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +81 -0
- package/dist/cjs/a/ToggleSwitch/index.js +13 -0
- package/dist/cjs/a/ToggleSwitch/styles.scss +51 -0
- package/dist/cjs/a/Tooltip/Tooltip.js +87 -0
- package/dist/cjs/{c/ContentSlides/common/Sidebar → a/Tooltip}/index.js +3 -3
- package/dist/cjs/a/Tooltip/styles.scss +61 -0
- package/dist/cjs/a/XMLEditor/XMLEditor.js +137 -0
- package/dist/cjs/{c/ContentSlides/common/Slide → a/XMLEditor/common}/index.js +3 -3
- package/dist/cjs/a/XMLEditor/common/theme.js +186 -0
- package/dist/cjs/a/XMLEditor/index.js +13 -0
- package/dist/cjs/a/XMLEditor/styles.scss +24 -0
- package/dist/cjs/a/index.js +43 -1
- package/dist/cjs/b/Button/Button.js +24 -15
- package/dist/cjs/b/Button/common/Group/Group.js +54 -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 +39 -11
- package/dist/cjs/b/Card/Card.js +6 -7
- package/dist/cjs/b/Card/common/Group/Group.js +6 -9
- package/dist/cjs/b/Card/common/Group/styles.scss +0 -7
- package/dist/cjs/b/Card/common/Section/Section.js +4 -5
- package/dist/cjs/b/Card/styles.scss +11 -0
- package/dist/cjs/b/Logo/Logo.js +9 -10
- package/dist/cjs/b/Page/Context.js +3 -4
- package/dist/cjs/b/Page/Page.js +13 -13
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +21 -8
- package/dist/cjs/b/Page/common/Section/Section.js +12 -8
- package/dist/cjs/b/Page/styles.scss +5 -2
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +10 -9
- package/dist/cjs/b/SocialMediaButton/styles.scss +0 -14
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +19 -35
- package/dist/cjs/b/ThemeSelector/styles.scss +44 -6
- package/dist/cjs/b/Title/Title.js +4 -12
- package/dist/cjs/c/Modal/Modal.js +7 -8
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +4 -5
- package/dist/cjs/c/Modal/styles.scss +7 -12
- package/dist/cjs/c/Shortener/Shortener.js +11 -9
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +6 -9
- package/dist/cjs/c/index.js +0 -13
- package/dist/cjs/f/FormInput/FormInput.js +19 -9
- package/dist/cjs/f/common/Debugger/Debugger.js +10 -10
- package/dist/cjs/f/common/Description/Description.js +11 -11
- package/dist/cjs/f/common/Description/styles.scss +1 -2
- package/dist/cjs/f/common/Label/Label.js +7 -9
- package/dist/cjs/f/common/Label/styles.scss +3 -2
- package/dist/cjs/f/common/index.js +18 -1
- package/dist/cjs/f/common/utils/index.js +12 -0
- package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +29 -0
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +31 -14
- package/dist/cjs/f/fields/Checkbox/styles.scss +5 -4
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +42 -34
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +5 -6
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +32 -8
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +236 -0
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +256 -0
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +98 -0
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +94 -0
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
- package/dist/cjs/f/fields/EditorInput/common/StopPropagationPlugin.js +30 -0
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +289 -0
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
- package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +18 -0
- package/dist/cjs/f/fields/EditorInput/common/index.js +48 -0
- package/dist/cjs/f/fields/EditorInput/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/styles.scss +240 -0
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +152 -0
- package/dist/cjs/f/fields/LinkInput/index.js +13 -0
- package/dist/cjs/f/fields/LinkInput/styles.scss +90 -0
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +9 -9
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +45 -16
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +65 -27
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +4 -5
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +88 -37
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +69 -27
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +15 -9
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +20 -18
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +8 -9
- package/dist/cjs/f/fields/RatingsInput/styles.scss +7 -10
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +52 -50
- package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +83 -0
- package/dist/cjs/f/fields/SelectInput/common/Menu/index.js +13 -0
- package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +242 -0
- package/dist/cjs/f/fields/SelectInput/common/Multiple/index.js +13 -0
- package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +115 -0
- package/dist/cjs/f/fields/SelectInput/common/Single/index.js +13 -0
- package/dist/cjs/f/fields/SelectInput/common/index.js +26 -0
- package/dist/cjs/f/fields/SelectInput/styles.scss +163 -32
- package/dist/cjs/f/fields/TextInput/TextInput.js +32 -26
- package/dist/cjs/f/fields/TextInput/styles.scss +59 -22
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +17 -23
- package/dist/cjs/f/fields/TextareaInput/styles.scss +33 -13
- package/dist/cjs/f/fields/index.js +15 -1
- package/dist/cjs/form.scss +1 -1
- package/dist/cjs/g/DragAndDrop/DragAndDrop.js +97 -0
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/DraggableItem.js +80 -0
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/index.js +13 -0
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/styles.scss +12 -0
- package/dist/cjs/g/DragAndDrop/common/index.js +12 -0
- package/dist/cjs/g/DragAndDrop/index.js +13 -0
- package/dist/cjs/g/DragAndDrop/styles.scss +8 -0
- package/dist/cjs/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +137 -0
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +79 -0
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +13 -0
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +9 -0
- package/dist/cjs/g/ExpandableLexicalPreview/common/index.js +12 -0
- package/dist/cjs/g/ExpandableLexicalPreview/index.js +13 -0
- package/dist/cjs/g/ExpandableLexicalPreview/styles.scss +34 -0
- package/dist/cjs/g/index.js +19 -0
- package/dist/cjs/index.js +11 -11
- package/dist/cjs/test/QueryLoader/QueryLoader.js +9 -7
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -1
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +3 -4
- package/dist/cjs/utils/hooks/index.js +7 -0
- package/dist/cjs/utils/hooks/useDynamicPosition.js +1 -2
- package/dist/cjs/utils/hooks/useOutsideClick.js +25 -0
- package/dist/cjs/utils/hooks/useWindowSize.js +1 -2
- package/dist/cjs/utils/index.js +6 -0
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +18 -23
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +8 -7
- package/dist/es/a/AnimatedGradient/styles.scss +2 -1
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +0 -1
- package/dist/es/a/AppContext/useTheme.js +0 -4
- package/dist/es/a/BlurOverlay/BlurOverlay.js +45 -0
- package/dist/es/a/BlurOverlay/index.js +2 -0
- package/dist/es/a/BlurOverlay/styles.scss +33 -0
- package/dist/es/a/ContentTree/ContentTree.js +9 -6
- 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 +18 -28
- package/dist/es/a/Conversation/common/Message/Message.js +15 -12
- package/dist/es/a/Conversation/styles.scss +56 -124
- package/dist/es/a/DatePicker/DatePicker.js +154 -0
- package/dist/es/a/DatePicker/index.js +2 -0
- package/dist/es/a/DatePicker/styles.scss +380 -0
- package/dist/es/a/DotInfo/DotInfo.js +9 -15
- package/dist/es/a/Figure/Figure.js +10 -15
- package/dist/es/a/HamburgerButton/HamburgerButton.js +13 -18
- package/dist/es/a/IconList/IconList.js +10 -15
- package/dist/es/a/Label/Label.js +6 -11
- package/dist/es/a/Label/styles.scss +5 -5
- package/dist/es/a/LoadingCircle/LoadingCircle.js +32 -37
- package/dist/es/a/MetaCard/MetaCard.js +13 -13
- package/dist/es/a/MetaCard/styles.scss +18 -1
- package/dist/es/a/People/People.js +11 -16
- package/dist/es/a/People/common/Person/Person.js +25 -18
- package/dist/es/a/People/styles.scss +10 -4
- package/dist/es/a/Popover/Popover.js +3 -5
- package/dist/es/a/Popover/styles.scss +1 -1
- package/dist/es/a/ProgressBar/ProgressBar.js +14 -19
- package/dist/es/a/ProgressBar/styles.scss +11 -1
- package/dist/es/a/Quote/Quote.js +25 -20
- package/dist/es/a/Quote/styles.scss +16 -37
- package/dist/es/a/Removable/Removable.js +59 -0
- package/dist/es/a/Removable/index.js +2 -0
- package/dist/es/a/Removable/styles.scss +33 -0
- package/dist/es/a/SVG/SVG.js +2 -4
- package/dist/es/a/SnapScroller/SnapScroller.js +34 -10
- package/dist/es/a/SnapScroller/styles.scss +32 -3
- package/dist/es/a/Spinner/Spinner.js +9 -14
- package/dist/es/a/TextSteps/TextSteps.js +16 -21
- package/dist/es/a/TextSteps/styles.scss +1 -1
- package/dist/es/a/Timestamp/Timestamp.js +3 -5
- package/dist/es/a/Tip/Tip.js +24 -15
- package/dist/es/a/Tip/styles.scss +7 -13
- package/dist/es/a/ToggleSwitch/ToggleSwitch.js +69 -0
- package/dist/es/a/ToggleSwitch/index.js +2 -0
- package/dist/es/a/ToggleSwitch/styles.scss +51 -0
- package/dist/es/a/Tooltip/Tooltip.js +75 -0
- package/{src/ui/c/ContentSlides/common/Sidebar → dist/es/a/Tooltip}/index.js +1 -1
- package/dist/es/a/Tooltip/styles.scss +61 -0
- package/dist/es/a/XMLEditor/XMLEditor.js +126 -0
- package/dist/es/a/XMLEditor/common/index.js +1 -0
- package/dist/es/a/XMLEditor/common/theme.js +180 -0
- package/dist/es/a/XMLEditor/index.js +1 -0
- package/dist/es/a/XMLEditor/styles.scss +24 -0
- package/dist/es/a/index.js +7 -1
- package/dist/es/b/Button/Button.js +20 -10
- package/dist/es/b/Button/common/Group/Group.js +44 -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 +39 -11
- package/dist/es/b/Card/Card.js +11 -16
- package/dist/es/b/Card/common/Group/Group.js +2 -5
- package/dist/es/b/Card/common/Group/styles.scss +0 -7
- package/dist/es/b/Card/styles.scss +11 -0
- package/dist/es/b/Logo/Logo.js +2 -5
- package/dist/es/b/Page/Page.js +7 -7
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +15 -2
- package/dist/es/b/Page/common/Section/Section.js +8 -3
- package/dist/es/b/Page/styles.scss +5 -2
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +6 -5
- package/dist/es/b/SocialMediaButton/styles.scss +0 -14
- package/dist/es/b/ThemeSelector/ThemeSelector.js +13 -32
- package/dist/es/b/ThemeSelector/styles.scss +44 -6
- package/dist/es/b/Title/Title.js +11 -21
- package/dist/es/c/Modal/Modal.js +14 -19
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/es/c/Modal/styles.scss +7 -12
- package/dist/es/c/Shortener/Shortener.js +2 -4
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -6
- package/dist/es/c/index.js +0 -1
- package/dist/es/f/FormInput/FormInput.js +15 -5
- package/dist/es/f/common/Debugger/Debugger.js +2 -4
- package/dist/es/f/common/Description/Description.js +6 -8
- package/dist/es/f/common/Description/styles.scss +1 -2
- package/dist/es/f/common/Label/Label.js +8 -15
- package/dist/es/f/common/Label/styles.scss +3 -2
- package/dist/es/f/common/index.js +2 -1
- package/dist/es/f/common/utils/index.js +1 -0
- package/dist/es/f/common/utils/lookUpInputValueFromFetchedOptions.js +20 -0
- package/dist/es/f/fields/Checkbox/Checkbox.js +27 -9
- package/dist/es/f/fields/Checkbox/styles.scss +5 -4
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +52 -46
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
- package/dist/es/f/fields/ChoicesInput/styles.scss +32 -8
- package/dist/es/f/fields/EditorInput/EditorInput.js +225 -0
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +246 -0
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
- package/dist/es/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +87 -0
- package/dist/es/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +81 -0
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
- package/dist/es/f/fields/EditorInput/common/StopPropagationPlugin.js +23 -0
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +277 -0
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
- package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +11 -0
- package/dist/es/f/fields/EditorInput/common/index.js +6 -0
- package/dist/es/f/fields/EditorInput/index.js +2 -0
- package/dist/es/f/fields/EditorInput/styles.scss +240 -0
- package/dist/es/f/fields/LinkInput/LinkInput.js +146 -0
- package/dist/es/f/fields/LinkInput/index.js +2 -0
- package/dist/es/f/fields/LinkInput/styles.scss +90 -0
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +35 -10
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +56 -18
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +78 -27
- package/dist/es/f/fields/QueryCombobox/styles.scss +69 -27
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +7 -1
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +11 -14
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +4 -4
- package/dist/es/f/fields/RatingsInput/styles.scss +7 -10
- package/dist/es/f/fields/SelectInput/SelectInput.js +46 -46
- package/dist/es/f/fields/SelectInput/common/Menu/Menu.js +73 -0
- package/{src/ui/c/ContentSlides/common/Slide → dist/es/f/fields/SelectInput/common/Menu}/index.js +1 -1
- package/dist/es/f/fields/SelectInput/common/Multiple/Multiple.js +233 -0
- package/dist/es/f/fields/SelectInput/common/Multiple/index.js +2 -0
- package/dist/es/f/fields/SelectInput/common/Single/Single.js +107 -0
- package/dist/es/{c/ContentSlides/common/Sidebar → f/fields/SelectInput/common/Single}/index.js +1 -1
- package/dist/es/f/fields/SelectInput/common/index.js +3 -0
- package/dist/es/f/fields/SelectInput/styles.scss +163 -32
- package/dist/es/f/fields/TextInput/TextInput.js +27 -19
- package/dist/es/f/fields/TextInput/styles.scss +59 -22
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +12 -18
- package/dist/es/f/fields/TextareaInput/styles.scss +33 -13
- package/dist/es/f/fields/index.js +3 -1
- package/dist/es/form.scss +1 -1
- package/dist/es/g/DragAndDrop/DragAndDrop.js +88 -0
- package/dist/es/g/DragAndDrop/common/DraggableItem/DraggableItem.js +72 -0
- package/dist/es/g/DragAndDrop/common/DraggableItem/index.js +2 -0
- package/dist/es/g/DragAndDrop/common/DraggableItem/styles.scss +12 -0
- package/dist/es/g/DragAndDrop/common/index.js +1 -0
- package/dist/es/g/DragAndDrop/index.js +2 -0
- package/dist/es/g/DragAndDrop/styles.scss +8 -0
- package/dist/es/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +126 -0
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +70 -0
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +2 -0
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +9 -0
- package/dist/es/g/ExpandableLexicalPreview/common/index.js +1 -0
- package/dist/es/g/ExpandableLexicalPreview/index.js +2 -0
- package/dist/es/g/ExpandableLexicalPreview/styles.scss +34 -0
- package/dist/es/g/index.js +2 -0
- package/dist/es/index.js +1 -1
- package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -1
- package/dist/es/utils/hooks/index.js +2 -1
- package/dist/es/utils/hooks/useOutsideClick.js +19 -0
- package/dist/es/utils/index.js +1 -1
- package/package.json +20 -5
- package/src/stories/StyleGuide/ai-icons.stories.mdx +27 -0
- package/src/stories/StyleGuide/icons.stories.mdx +22 -22
- package/src/stories/a/AppContext.stories.jsx +4 -2
- package/src/stories/a/BlurOverlay.stories.jsx +39 -0
- package/src/stories/a/Conversation.stories.jsx +11 -42
- package/src/stories/a/DatePicker.stories.jsx +96 -0
- package/src/stories/a/People.stories.jsx +22 -2
- package/src/stories/a/ProgressBar.stories.jsx +1 -1
- package/src/stories/a/Quote.stories.jsx +30 -10
- package/src/stories/a/Removable.stories.jsx +22 -0
- package/src/stories/a/SnapScroller.stories.jsx +2 -2
- package/src/stories/a/Spinner.stories.jsx +1 -1
- package/src/stories/a/Tip.stories.jsx +3 -2
- package/src/stories/a/ToggleSwitch.stories.jsx +22 -0
- package/src/stories/a/Tooltip.stories.jsx +75 -0
- package/src/stories/a/XMLEditor.stories.jsx +26 -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/SocialMediaButton.stories.jsx +4 -2
- package/src/stories/b/ThemeSelector.stories.jsx +1 -5
- package/src/stories/b/Title.stories.jsx +1 -1
- package/src/stories/colors.js +26 -28
- package/src/stories/f/Checkbox.stories.jsx +9 -2
- package/src/stories/f/ChoicesInput.stories.jsx +13 -14
- package/src/stories/f/EditorInput.stories.jsx +81 -0
- package/src/stories/f/LinkInput.stories.jsx +93 -0
- package/src/stories/f/QueryChoices.stories.jsx +13 -4
- package/src/stories/f/QueryCombobox.stories.jsx +57 -13
- package/src/stories/f/QuerySelect.stories.jsx +13 -5
- package/src/stories/f/RatingsInput.stories.jsx +9 -2
- package/src/stories/f/SelectInput.stories.jsx +46 -7
- package/src/stories/f/TextInput.stories.jsx +15 -1
- package/src/stories/f/TextareaInput.stories.jsx +9 -2
- package/src/stories/g/DragAndDrop.stories.jsx +114 -0
- package/src/stories/g/ExpandableLexicalPreview.stories.jsx +37 -0
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +25 -31
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +7 -6
- package/src/ui/a/AnimatedGradient/styles.scss +2 -1
- package/src/ui/a/AppContext/useTheme.js +0 -4
- package/src/ui/a/BlurOverlay/BlurOverlay.jsx +69 -0
- package/src/ui/a/BlurOverlay/index.js +2 -0
- package/src/ui/a/BlurOverlay/styles.scss +33 -0
- package/src/ui/a/ContentTree/ContentTree.jsx +9 -9
- 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 +34 -44
- package/src/ui/a/Conversation/common/Message/Message.jsx +18 -11
- package/src/ui/a/Conversation/styles.scss +56 -124
- package/src/ui/a/DatePicker/DatePicker.jsx +201 -0
- package/src/ui/a/DatePicker/index.js +2 -0
- package/src/ui/a/DatePicker/styles.scss +380 -0
- package/src/ui/a/DotInfo/DotInfo.jsx +23 -29
- package/src/ui/a/Figure/Figure.jsx +21 -27
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +27 -33
- package/src/ui/a/IconList/IconList.jsx +22 -28
- package/src/ui/a/Label/Label.jsx +21 -27
- package/src/ui/a/Label/styles.scss +5 -5
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +43 -49
- package/src/ui/a/MetaCard/MetaCard.jsx +25 -24
- package/src/ui/a/MetaCard/styles.scss +18 -1
- package/src/ui/a/People/People.jsx +25 -31
- package/src/ui/a/People/common/Person/Person.jsx +34 -22
- package/src/ui/a/People/styles.scss +10 -4
- package/src/ui/a/Popover/Popover.jsx +4 -6
- package/src/ui/a/Popover/styles.scss +1 -1
- package/src/ui/a/ProgressBar/ProgressBar.jsx +27 -31
- package/src/ui/a/ProgressBar/styles.scss +11 -1
- package/src/ui/a/Quote/Quote.jsx +38 -37
- package/src/ui/a/Quote/styles.scss +16 -37
- package/src/ui/a/Removable/Removable.jsx +78 -0
- package/src/ui/a/Removable/index.js +2 -0
- package/src/ui/a/Removable/styles.scss +33 -0
- package/src/ui/a/SVG/SVG.jsx +3 -5
- package/src/ui/a/SnapScroller/SnapScroller.jsx +28 -6
- package/src/ui/a/SnapScroller/styles.scss +32 -3
- package/src/ui/a/Spinner/Spinner.jsx +19 -25
- package/src/ui/a/TextSteps/TextSteps.jsx +31 -38
- package/src/ui/a/TextSteps/styles.scss +1 -1
- package/src/ui/a/Timestamp/Timestamp.jsx +5 -7
- package/src/ui/a/Tip/Tip.jsx +39 -28
- package/src/ui/a/Tip/styles.scss +7 -13
- package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +93 -0
- package/src/ui/a/ToggleSwitch/index.js +2 -0
- package/src/ui/a/ToggleSwitch/styles.scss +51 -0
- package/src/ui/a/Tooltip/Tooltip.jsx +106 -0
- package/src/ui/a/Tooltip/index.js +2 -0
- package/src/ui/a/Tooltip/styles.scss +61 -0
- package/src/ui/a/XMLEditor/XMLEditor.jsx +200 -0
- package/src/ui/a/XMLEditor/common/index.js +1 -0
- package/src/ui/a/XMLEditor/common/theme.jsx +184 -0
- package/src/ui/a/XMLEditor/index.js +1 -0
- package/src/ui/a/XMLEditor/styles.scss +24 -0
- package/src/ui/a/index.js +6 -0
- package/src/ui/b/Button/Button.jsx +25 -10
- package/src/ui/b/Button/common/Group/Group.jsx +65 -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 +39 -11
- package/src/ui/b/Card/Card.jsx +25 -31
- package/src/ui/b/Card/common/Group/Group.jsx +3 -6
- package/src/ui/b/Card/common/Group/styles.scss +0 -7
- package/src/ui/b/Card/styles.scss +11 -0
- package/src/ui/b/Logo/Logo.jsx +3 -5
- package/src/ui/b/Page/Page.jsx +5 -6
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +20 -3
- package/src/ui/b/Page/common/Section/Section.jsx +10 -3
- package/src/ui/b/Page/styles.scss +5 -2
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +7 -8
- package/src/ui/b/SocialMediaButton/styles.scss +0 -14
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +13 -35
- package/src/ui/b/ThemeSelector/styles.scss +44 -6
- package/src/ui/b/Title/Title.jsx +36 -46
- package/src/ui/c/Modal/Modal.jsx +25 -31
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +1 -1
- package/src/ui/c/Modal/styles.scss +7 -12
- package/src/ui/c/Shortener/Shortener.jsx +3 -5
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -6
- package/src/ui/c/index.js +0 -1
- package/src/ui/f/FormInput/FormInput.jsx +26 -5
- package/src/ui/f/common/Debugger/Debugger.jsx +3 -5
- package/src/ui/f/common/Description/Description.jsx +7 -10
- package/src/ui/f/common/Description/styles.scss +1 -2
- package/src/ui/f/common/Label/Label.jsx +20 -28
- package/src/ui/f/common/Label/styles.scss +3 -2
- package/src/ui/f/common/index.js +1 -0
- package/src/ui/f/common/utils/index.js +1 -0
- package/src/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +23 -0
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +37 -14
- package/src/ui/f/fields/Checkbox/styles.scss +5 -4
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +78 -66
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +10 -3
- package/src/ui/f/fields/ChoicesInput/styles.scss +32 -8
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +286 -0
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.jsx +292 -0
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
- package/src/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.jsx +115 -0
- package/src/ui/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.jsx +134 -0
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
- package/src/ui/f/fields/EditorInput/common/StopPropagationPlugin.jsx +29 -0
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.jsx +417 -0
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
- package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +16 -0
- package/src/ui/f/fields/EditorInput/common/index.js +6 -0
- package/src/ui/f/fields/EditorInput/index.js +2 -0
- package/src/ui/f/fields/EditorInput/styles.scss +240 -0
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +185 -0
- package/src/ui/f/fields/LinkInput/index.js +2 -0
- package/src/ui/f/fields/LinkInput/styles.scss +90 -0
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +41 -12
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +51 -14
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +101 -39
- package/src/ui/f/fields/QueryCombobox/styles.scss +69 -27
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +8 -1
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +13 -18
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +4 -4
- package/src/ui/f/fields/RatingsInput/styles.scss +7 -10
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +50 -48
- package/src/ui/f/fields/SelectInput/common/Menu/Menu.jsx +103 -0
- package/{dist/es/c/ContentSlides/common/Slide → src/ui/f/fields/SelectInput/common/Menu}/index.js +1 -1
- package/src/ui/f/fields/SelectInput/common/Multiple/Multiple.jsx +288 -0
- package/src/ui/f/fields/SelectInput/common/Multiple/index.js +2 -0
- package/src/ui/f/fields/SelectInput/common/Single/Single.jsx +139 -0
- package/src/ui/f/fields/SelectInput/common/Single/index.js +2 -0
- package/src/ui/f/fields/SelectInput/common/index.js +3 -0
- package/src/ui/f/fields/SelectInput/styles.scss +163 -32
- package/src/ui/f/fields/TextInput/TextInput.jsx +35 -26
- package/src/ui/f/fields/TextInput/styles.scss +59 -22
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +22 -31
- package/src/ui/f/fields/TextareaInput/styles.scss +33 -13
- package/src/ui/f/fields/index.js +2 -0
- package/src/ui/form.scss +1 -1
- package/src/ui/g/DragAndDrop/DragAndDrop.jsx +118 -0
- package/src/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.jsx +98 -0
- package/src/ui/g/DragAndDrop/common/DraggableItem/index.js +2 -0
- package/src/ui/g/DragAndDrop/common/DraggableItem/styles.scss +12 -0
- package/src/ui/g/DragAndDrop/common/index.js +1 -0
- package/src/ui/g/DragAndDrop/index.js +2 -0
- package/src/ui/g/DragAndDrop/styles.scss +8 -0
- package/src/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.jsx +180 -0
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.jsx +80 -0
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +2 -0
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +9 -0
- package/src/ui/g/ExpandableLexicalPreview/common/index.js +1 -0
- package/src/ui/g/ExpandableLexicalPreview/index.js +2 -0
- package/src/ui/g/ExpandableLexicalPreview/styles.scss +34 -0
- package/src/ui/g/index.js +2 -0
- package/src/ui/index.js +1 -1
- package/src/ui/utils/hooks/index.js +1 -0
- package/src/ui/utils/hooks/useOutsideClick.js +23 -0
- package/src/ui/utils/index.js +1 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +25444 -8784
- package/tests/mockResizeObserver.js +9 -0
- package/tests/test-setup.js +3 -0
- package/dist/cjs/b/Title/styles.scss +0 -16
- package/dist/cjs/c/ContentSlides/ContentSlides.js +0 -172
- package/dist/cjs/c/ContentSlides/Context.js +0 -11
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +0 -127
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +0 -13
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +0 -129
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +0 -95
- package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +0 -76
- package/dist/cjs/c/ContentSlides/common/index.js +0 -33
- package/dist/cjs/c/ContentSlides/index.js +0 -27
- package/dist/cjs/c/ContentSlides/styles.scss +0 -312
- package/dist/cjs/c/ContentSlides/useContentSlides.js +0 -11
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +0 -59
- package/dist/cjs/r/SwitchRouteMap/index.js +0 -13
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +0 -75
- package/dist/cjs/r/common/index.js +0 -12
- package/dist/cjs/r/index.js +0 -27
- package/dist/es/b/Title/styles.scss +0 -16
- package/dist/es/c/ContentSlides/ContentSlides.js +0 -162
- package/dist/es/c/ContentSlides/Context.js +0 -2
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +0 -116
- package/dist/es/c/ContentSlides/common/HorizontalMenu/index.js +0 -2
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +0 -118
- package/dist/es/c/ContentSlides/common/Navigator/index.js +0 -2
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +0 -84
- package/dist/es/c/ContentSlides/common/Slide/Slide.js +0 -65
- package/dist/es/c/ContentSlides/common/index.js +0 -4
- package/dist/es/c/ContentSlides/index.js +0 -4
- package/dist/es/c/ContentSlides/styles.scss +0 -312
- package/dist/es/c/ContentSlides/useContentSlides.js +0 -3
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +0 -45
- package/dist/es/r/SwitchRouteMap/index.js +0 -2
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +0 -67
- package/dist/es/r/common/PrivateRoute/index.js +0 -2
- package/dist/es/r/common/index.js +0 -1
- package/dist/es/r/index.js +0 -2
- package/src/stories/c/ContentSlides.stories.jsx +0 -214
- package/src/ui/b/Title/styles.scss +0 -16
- package/src/ui/c/ContentSlides/ContentSlides.jsx +0 -216
- package/src/ui/c/ContentSlides/Context.js +0 -3
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +0 -145
- package/src/ui/c/ContentSlides/common/HorizontalMenu/index.js +0 -2
- package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +0 -150
- package/src/ui/c/ContentSlides/common/Navigator/index.js +0 -2
- package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +0 -135
- package/src/ui/c/ContentSlides/common/Slide/Slide.jsx +0 -87
- package/src/ui/c/ContentSlides/common/index.js +0 -4
- package/src/ui/c/ContentSlides/index.js +0 -4
- package/src/ui/c/ContentSlides/styles.scss +0 -312
- package/src/ui/c/ContentSlides/useContentSlides.js +0 -4
- package/src/ui/r/SwitchRouteMap/SwitchRouteMap.jsx +0 -64
- package/src/ui/r/SwitchRouteMap/index.js +0 -2
- package/src/ui/r/common/PrivateRoute/PrivateRoute.jsx +0 -73
- package/src/ui/r/common/PrivateRoute/index.js +0 -2
- package/src/ui/r/common/index.js +0 -1
- package/src/ui/r/index.js +0 -2
|
@@ -21,63 +21,32 @@ export const Base = () => {
|
|
|
21
21
|
const conversations = [
|
|
22
22
|
{
|
|
23
23
|
message:'Hi Camille, please compile an assesment of top 5 firms/brand providers for the listed fields in the US.',
|
|
24
|
-
sender :'
|
|
24
|
+
sender :'Humbl',
|
|
25
25
|
from :'theirs',
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
message:'Hi Morgan! Here is the database we prepared for you.',
|
|
29
|
-
sender :'
|
|
29
|
+
sender :'Camille',
|
|
30
30
|
from :'ours',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
message:'
|
|
34
|
-
sender :'
|
|
33
|
+
message:'That looks amazing',
|
|
34
|
+
sender :'Humbl',
|
|
35
35
|
from :'theirs',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
message:'
|
|
39
|
-
sender :'CAMILLE',
|
|
40
|
-
from :'ours',
|
|
41
|
-
},
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<Conversation>
|
|
46
|
-
{conversations.map((conversation) => (
|
|
47
|
-
<Conversation.Message key={conversation.message} {...conversation} />
|
|
48
|
-
))}
|
|
49
|
-
</Conversation>
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export const WithTriangle = () => {
|
|
54
|
-
const conversations = [
|
|
55
|
-
{
|
|
56
|
-
message:'Hi Camille, please compile an assesment of top 5 firms/brand providers for the listed fields in the US.',
|
|
57
|
-
sender :'HUMBL',
|
|
58
|
-
from :'theirs',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
message:'Hi Morgan! Here is the database we prepared for you.',
|
|
62
|
-
sender :'CAMILLE',
|
|
63
|
-
from :'ours',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
message:'Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.',
|
|
67
|
-
sender :'HUMBL',
|
|
38
|
+
message:'Thank you for the great work, can we also get this information in a spreadsheet?',
|
|
68
39
|
from :'theirs',
|
|
69
40
|
},
|
|
70
41
|
{
|
|
71
42
|
message:'Hi Morgan! Here is the spreadsheet we prepared for you.',
|
|
72
|
-
sender :'
|
|
43
|
+
sender :'Camille',
|
|
73
44
|
from :'ours',
|
|
74
45
|
},
|
|
75
46
|
]
|
|
76
47
|
|
|
77
48
|
return (
|
|
78
|
-
<Conversation
|
|
79
|
-
hasTriangle
|
|
80
|
-
>
|
|
49
|
+
<Conversation>
|
|
81
50
|
{conversations.map((conversation) => (
|
|
82
51
|
<Conversation.Message key={conversation.message} {...conversation} />
|
|
83
52
|
))}
|
|
@@ -89,24 +58,24 @@ export const WithAttachment = () => {
|
|
|
89
58
|
const conversations = [
|
|
90
59
|
{
|
|
91
60
|
message:'Hi Camille, please compile an assesment of top 5 firms/brand providers for the listed fields in the US.',
|
|
92
|
-
sender :'
|
|
61
|
+
sender :'Humbl',
|
|
93
62
|
from :'theirs',
|
|
94
63
|
},
|
|
95
64
|
{
|
|
96
65
|
message :'Hi Morgan! Here is the database we prepared for you.',
|
|
97
|
-
sender :'
|
|
66
|
+
sender :'Camille',
|
|
98
67
|
from :'ours',
|
|
99
68
|
attachment :'spreadsheet.xlsx',
|
|
100
69
|
attachmentColor:'main4',
|
|
101
70
|
},
|
|
102
71
|
{
|
|
103
72
|
message:'Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.',
|
|
104
|
-
sender :'
|
|
73
|
+
sender :'Humbl',
|
|
105
74
|
from :'theirs',
|
|
106
75
|
},
|
|
107
76
|
{
|
|
108
77
|
message :'Hi Morgan! Here is the spreadsheet we prepared for you.',
|
|
109
|
-
sender :'
|
|
78
|
+
sender :'Camille',
|
|
110
79
|
from :'ours',
|
|
111
80
|
attachment :'spreadsheet.xlsx',
|
|
112
81
|
attachmentColor:'main4',
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { useState } from 'react'
|
|
5
|
+
|
|
6
|
+
import { DatePicker } from 'ui'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title :'a/DatePicker',
|
|
10
|
+
component :DatePicker,
|
|
11
|
+
decorators:[
|
|
12
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
13
|
+
],
|
|
14
|
+
argTypes:{
|
|
15
|
+
mode:{
|
|
16
|
+
control:{
|
|
17
|
+
type :'select',
|
|
18
|
+
options:['single', 'multiple', 'range'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
dateFormat:{
|
|
22
|
+
control:{
|
|
23
|
+
type:'text',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
showDebugger:{
|
|
27
|
+
control:{
|
|
28
|
+
type:'boolean',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const today = new Date('2024-03-01T12:00:00Z')
|
|
35
|
+
|
|
36
|
+
const Template = (args) => {
|
|
37
|
+
const [value, setValue] = useState()
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<DatePicker
|
|
41
|
+
selected={value}
|
|
42
|
+
setSelection={setValue}
|
|
43
|
+
{...args}
|
|
44
|
+
today={today}
|
|
45
|
+
/>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const TimeTemplate = ({ timeMode, ...args }) => {
|
|
50
|
+
const [value, setValue] = useState()
|
|
51
|
+
const [timeFrom, setTimeFrom] = useState('00:00')
|
|
52
|
+
const [timeTo, setTimeTo] = useState('23:59')
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<DatePicker
|
|
56
|
+
selected={value}
|
|
57
|
+
setSelection={setValue}
|
|
58
|
+
timeFrom={timeFrom}
|
|
59
|
+
setTimeFrom={setTimeFrom}
|
|
60
|
+
timeTo={timeMode === 'multiple' ? timeTo : undefined}
|
|
61
|
+
setTimeTo={timeMode === 'multiple' ? setTimeTo : undefined}
|
|
62
|
+
today={today}
|
|
63
|
+
{...args}
|
|
64
|
+
/>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Base = Template.bind({})
|
|
69
|
+
Base.args = {}
|
|
70
|
+
|
|
71
|
+
export const MultipleSelection = Template.bind({})
|
|
72
|
+
MultipleSelection.args = {
|
|
73
|
+
mode:'multiple',
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const RangeSelection = Template.bind({})
|
|
77
|
+
RangeSelection.args = {
|
|
78
|
+
mode:'range',
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export const TimeSelection = TimeTemplate.bind({})
|
|
82
|
+
TimeSelection.args = {
|
|
83
|
+
mode :'single',
|
|
84
|
+
timeMode:'single',
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export const TimeRangeSelection = TimeTemplate.bind({})
|
|
88
|
+
TimeRangeSelection.args = {
|
|
89
|
+
mode :'range',
|
|
90
|
+
timeMode:'multiple',
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const WithCustomFooter = Template.bind({})
|
|
94
|
+
WithCustomFooter.args = {
|
|
95
|
+
customFooter:<div>Custom footer</div>,
|
|
96
|
+
}
|
|
@@ -40,7 +40,7 @@ export const Base = () => {
|
|
|
40
40
|
]
|
|
41
41
|
|
|
42
42
|
return (
|
|
43
|
-
<div className="x-
|
|
43
|
+
<div className="x-background-far b-x v1 p-v">
|
|
44
44
|
<People>
|
|
45
45
|
{peopleMap.map((person) => (
|
|
46
46
|
<People.Person key={person.name} {...person} />
|
|
@@ -61,7 +61,27 @@ export const OnePerson = () => {
|
|
|
61
61
|
]
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
|
-
<div className="x-
|
|
64
|
+
<div className="x-background-far b-x v1 p-v">
|
|
65
|
+
<People>
|
|
66
|
+
{peopleMap.map((person) => (
|
|
67
|
+
<People.Person key={person.name} {...person} />
|
|
68
|
+
))}
|
|
69
|
+
</People>
|
|
70
|
+
</div>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const WithoutRole = () => {
|
|
75
|
+
const peopleMap = [
|
|
76
|
+
{
|
|
77
|
+
image:'https://pareto-v1.s3.us-west-2.amazonaws.com/profile-pictures/Camille-Arigo.jpg',
|
|
78
|
+
name :'Camillie Arigo',
|
|
79
|
+
color:'background4',
|
|
80
|
+
},
|
|
81
|
+
]
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<div className="x-background-far b-x v1 p-v">
|
|
65
85
|
<People>
|
|
66
86
|
{peopleMap.map((person) => (
|
|
67
87
|
<People.Person key={person.name} {...person} />
|
|
@@ -13,17 +13,37 @@ export default {
|
|
|
13
13
|
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
14
|
],
|
|
15
15
|
argTypes:{
|
|
16
|
-
|
|
16
|
+
children:{
|
|
17
|
+
control:{
|
|
18
|
+
type:'text',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
source:{
|
|
22
|
+
control:{
|
|
23
|
+
type:'text',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
author:{
|
|
27
|
+
control:{
|
|
28
|
+
type:'text',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
color:{
|
|
32
|
+
control:{
|
|
33
|
+
type:'text',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
17
36
|
},
|
|
18
37
|
}
|
|
19
38
|
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
<Quote
|
|
23
|
-
author="Austen Spoonts"
|
|
24
|
-
>
|
|
25
|
-
Pareto was like having a full-time employee without having to hire somebody.
|
|
26
|
-
That’s how I would explain it. An on-call, on-demand full-time employee.
|
|
27
|
-
</Quote>
|
|
28
|
-
</div>
|
|
39
|
+
const Template = (args) => (
|
|
40
|
+
<Quote {...args} />
|
|
29
41
|
)
|
|
42
|
+
|
|
43
|
+
export const Base = Template.bind({})
|
|
44
|
+
Base.args = {
|
|
45
|
+
children:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.',
|
|
46
|
+
source :'https://example.com',
|
|
47
|
+
author :'John Doe',
|
|
48
|
+
color :'highlighted',
|
|
49
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Removable } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/Removable',
|
|
8
|
+
component :Removable,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:Removable.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
backgroundColor:{ control: 'color' },
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Base = () => (
|
|
21
|
+
<Removable>Sample Removable</Removable>
|
|
22
|
+
)
|
|
@@ -23,7 +23,7 @@ export const Base = () => {
|
|
|
23
23
|
<div
|
|
24
24
|
className="card"
|
|
25
25
|
style={{
|
|
26
|
-
background:'var(--
|
|
26
|
+
background:'var(--background-far)', minWidth:'330px', height:'400px', padding:'var(--u)',
|
|
27
27
|
}}
|
|
28
28
|
>
|
|
29
29
|
{ children }
|
|
@@ -63,7 +63,7 @@ export const NoScrollOnDesktop = () => {
|
|
|
63
63
|
<div
|
|
64
64
|
className="card"
|
|
65
65
|
style={{
|
|
66
|
-
background:'var(--
|
|
66
|
+
background:'var(--background-far)', width:'330px', height:'400px', padding:'var(--u)',
|
|
67
67
|
}}
|
|
68
68
|
>
|
|
69
69
|
{ children }
|
|
@@ -13,7 +13,8 @@ export default {
|
|
|
13
13
|
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
14
|
],
|
|
15
15
|
argTypes:{
|
|
16
|
-
color:{ control: '
|
|
16
|
+
color :{ control: 'text' },
|
|
17
|
+
backgroundColor:{ control: 'text' },
|
|
17
18
|
},
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -24,5 +25,5 @@ const Template = (args) => (
|
|
|
24
25
|
export const Base = Template.bind({})
|
|
25
26
|
Base.args = {
|
|
26
27
|
children:'Remember to wash your vegetables before eating them.',
|
|
27
|
-
color :'
|
|
28
|
+
color :'interactive',
|
|
28
29
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { ToggleSwitch } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/ToggleSwitch',
|
|
8
|
+
component :ToggleSwitch,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:ToggleSwitch.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
size:{ control: 'string' },
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Base = () => (
|
|
21
|
+
<ToggleSwitch />
|
|
22
|
+
)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
import { Tooltip, Button } from 'ui'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title :'a/Tooltip',
|
|
7
|
+
component :Tooltip,
|
|
8
|
+
subcomponents:{
|
|
9
|
+
// Item:Tooltip.Item
|
|
10
|
+
},
|
|
11
|
+
decorators:[
|
|
12
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
13
|
+
],
|
|
14
|
+
argTypes:{
|
|
15
|
+
backgroundColor:{ control: 'color' },
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const Base = {
|
|
20
|
+
args:{
|
|
21
|
+
children:(
|
|
22
|
+
<Button>
|
|
23
|
+
Hover on me!
|
|
24
|
+
</Button>
|
|
25
|
+
),
|
|
26
|
+
content:(
|
|
27
|
+
<div>
|
|
28
|
+
<ul>
|
|
29
|
+
<li>This is the tooltips content</li>
|
|
30
|
+
<li>Style it the way you want!</li>
|
|
31
|
+
<li>It's a tooltip, no interactive elements please</li>
|
|
32
|
+
</ul>
|
|
33
|
+
</div>
|
|
34
|
+
),
|
|
35
|
+
description:'test-tooltip',
|
|
36
|
+
},
|
|
37
|
+
render:(args) => (
|
|
38
|
+
<div
|
|
39
|
+
style={{
|
|
40
|
+
paddingTop :'10rem',
|
|
41
|
+
width :'50%',
|
|
42
|
+
margin :'auto',
|
|
43
|
+
display :'flex',
|
|
44
|
+
flexDirection:'column',
|
|
45
|
+
alignItems :'center',
|
|
46
|
+
}}
|
|
47
|
+
>
|
|
48
|
+
<Tooltip {...args} />
|
|
49
|
+
</div>
|
|
50
|
+
),
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const Left = {
|
|
54
|
+
...Base,
|
|
55
|
+
args:{
|
|
56
|
+
...Base.args,
|
|
57
|
+
position:'left',
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const Right = {
|
|
62
|
+
...Base,
|
|
63
|
+
args:{
|
|
64
|
+
...Base.args,
|
|
65
|
+
position:'right',
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const Top = {
|
|
70
|
+
...Base,
|
|
71
|
+
args:{
|
|
72
|
+
...Base.args,
|
|
73
|
+
position:'top',
|
|
74
|
+
},
|
|
75
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
3
|
+
import { XMLEditor } from 'ui'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title :'a/XMLEditor',
|
|
7
|
+
component :XMLEditor,
|
|
8
|
+
decorators:[
|
|
9
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
10
|
+
],
|
|
11
|
+
argTypes:{},
|
|
12
|
+
controls:{
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const Template = (args) => (
|
|
17
|
+
<div>
|
|
18
|
+
{/* Args as JSON */}
|
|
19
|
+
<pre>{ JSON.stringify(args, null, 2) }</pre>
|
|
20
|
+
</div>
|
|
21
|
+
// TOFIX: Commented out due to issues.
|
|
22
|
+
// <XMLEditor {...args} />
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
export const Base = Template.bind({})
|
|
26
|
+
Base.args = {}
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
isGhost :{ control: { type: 'boolean' } },
|
|
20
20
|
isSimple :{ control: { type: 'boolean' } },
|
|
21
21
|
isAnimated:{ control: { type: 'boolean' } },
|
|
22
|
+
isGradient:{ control: { type: 'boolean' } },
|
|
22
23
|
},
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -57,6 +58,11 @@ Simple.args = {
|
|
|
57
58
|
isSimple:true,
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
export const Gradient = MultipleTemplate.bind({})
|
|
62
|
+
Gradient.args = {
|
|
63
|
+
isGradient:true,
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
export const Compact = MultipleTemplate.bind({})
|
|
61
67
|
Compact.args = {
|
|
62
68
|
isCompact:true,
|
|
@@ -105,3 +111,15 @@ ArrowRightSimple.args = {
|
|
|
105
111
|
arrowDirection:'right',
|
|
106
112
|
isSimple :true,
|
|
107
113
|
}
|
|
114
|
+
|
|
115
|
+
export const DisabledArrowLeft = MultipleTemplate.bind({})
|
|
116
|
+
DisabledArrowLeft.args = {
|
|
117
|
+
arrowDirection:'left',
|
|
118
|
+
disabled :true,
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const DisabledArrowRight = MultipleTemplate.bind({})
|
|
122
|
+
DisabledArrowRight.args = {
|
|
123
|
+
arrowDirection:'right',
|
|
124
|
+
disabled :true,
|
|
125
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Button } from 'ui'
|
|
5
|
+
|
|
6
|
+
import { ALL_COLORS } from 'stories/colors'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title :'b/Button/Group',
|
|
10
|
+
component :Button.Group,
|
|
11
|
+
decorators:[
|
|
12
|
+
// (storyfn) => <Router>{storyfn()}</Router>,
|
|
13
|
+
],
|
|
14
|
+
argTypes:{
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const Template = (args) => (
|
|
19
|
+
<Button.Group {...args}>
|
|
20
|
+
{
|
|
21
|
+
ALL_COLORS.map((colorName) => (
|
|
22
|
+
<Button {...args} color={colorName} key={colorName}>
|
|
23
|
+
This is a
|
|
24
|
+
{' '}
|
|
25
|
+
{colorName}
|
|
26
|
+
{' '}
|
|
27
|
+
button
|
|
28
|
+
</Button>
|
|
29
|
+
))
|
|
30
|
+
}
|
|
31
|
+
</Button.Group>
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
export const Base = Template.bind({})
|
|
35
|
+
Base.args = {}
|
|
@@ -25,6 +25,7 @@ const Template = ({ isTransparent = false, ...rest }) => (
|
|
|
25
25
|
<SocialMediaButton type="twitter" isTransparent={isTransparent} />
|
|
26
26
|
<SocialMediaButton type="instagram" isTransparent={isTransparent} />
|
|
27
27
|
<SocialMediaButton type="linkedin" isTransparent={isTransparent} />
|
|
28
|
+
<SocialMediaButton type="threads" isTransparent={isTransparent} />
|
|
28
29
|
</AppContextProvider>
|
|
29
30
|
)
|
|
30
31
|
|
|
@@ -33,7 +34,7 @@ Base.args = {
|
|
|
33
34
|
config:{
|
|
34
35
|
SITE:{
|
|
35
36
|
NAME :'Pareto',
|
|
36
|
-
CANONICAL :'https://
|
|
37
|
+
CANONICAL :'https://pareto.ai',
|
|
37
38
|
SUPPORT_EMAIL:'support@hellopareto.com',
|
|
38
39
|
TITLE_SUFFIX :'| Pareto',
|
|
39
40
|
},
|
|
@@ -42,9 +43,10 @@ Base.args = {
|
|
|
42
43
|
INSTAGRAM:'https://www.instagram.com/hellopareto',
|
|
43
44
|
TWITTER :'https://www.twitter.com/hellopareto',
|
|
44
45
|
LINKEDIN :'https://www.linkedin.com/company/hellopareto',
|
|
46
|
+
THREADS :'https://www.threads.net/@hellopareto',
|
|
45
47
|
},
|
|
46
48
|
EXTRA:{
|
|
47
|
-
SURVEY:'https://survey.
|
|
49
|
+
SURVEY:'https://survey.pareto.ai',
|
|
48
50
|
},
|
|
49
51
|
},
|
|
50
52
|
}
|
|
@@ -35,14 +35,10 @@ export const Base = () => {
|
|
|
35
35
|
className={
|
|
36
36
|
[
|
|
37
37
|
`ui-${userTheme}`,
|
|
38
|
-
'y-
|
|
38
|
+
'y-background-far b-y',
|
|
39
39
|
].filter((e) => e).join(' ')
|
|
40
40
|
}
|
|
41
41
|
>
|
|
42
|
-
<p>
|
|
43
|
-
Theme :
|
|
44
|
-
{ userTheme }
|
|
45
|
-
</p>
|
|
46
42
|
<ThemeSelector />
|
|
47
43
|
</div>
|
|
48
44
|
)
|
|
@@ -34,7 +34,7 @@ WithSubtitle.args = {
|
|
|
34
34
|
export const Sizes = (props) => (
|
|
35
35
|
['h1', 'h2', 'h3', 'h4', 'h5'].map((size) => (
|
|
36
36
|
<div className="u2 pv-u" key={size}>
|
|
37
|
-
<div className="y-
|
|
37
|
+
<div className="y-background-far b-hard-y">
|
|
38
38
|
<Title
|
|
39
39
|
heading={`This is a title in ${size}`}
|
|
40
40
|
headingAs={size}
|