@pega/cosmos-react-demos 3.0.0-dev.3.0 → 3.0.0-dev.30.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/jsx/build/AppHeader/AppHeader.stories.d.ts +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -76
- package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
- package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
- package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
- package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +5 -3
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +39 -2
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +523 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +339 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +186 -34
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +267 -152
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +146 -18
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
- package/jsx/build/LifeCycle/utils.js +5 -4
- package/jsx/build/LifeCycle/utils.js.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +396 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +258 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +97 -271
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +204 -18
- package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +99 -65
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
- package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +3 -0
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +49 -13
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
- package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
- package/jsx/core/Badges/Selection.stories.d.ts +2 -3
- package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
- package/jsx/core/Badges/Tag.stories.d.ts +2 -3
- package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +6 -18
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +2 -10
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
- package/jsx/core/Button/Button.stories.d.ts +2 -3
- package/jsx/core/Button/Button.stories.d.ts.map +1 -1
- package/jsx/core/Button/Button.stories.jsx +6 -6
- package/jsx/core/Button/Button.stories.jsx.map +1 -1
- package/jsx/core/Card/Card.stories.d.ts +1 -2
- package/jsx/core/Card/Card.stories.d.ts.map +1 -1
- package/jsx/core/Card/Card.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +26 -7
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +12 -13
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +40 -8
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
- package/jsx/core/Configuration/Configuration.stories.d.ts +2 -3
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.stories.jsx +2 -18
- package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
- package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
- package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.styles.js +12 -0
- package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +14 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx +52 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
- package/jsx/core/Currency/Currency.stories.d.ts +7 -2
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx +28 -7
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +41 -10
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +190 -18
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
- package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +8 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +16 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +55 -88
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.js +8 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.js.map +1 -0
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx +16 -39
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.jsx +7 -6
- package/jsx/core/Form/Form.mocks.jsx.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
- package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
- package/jsx/core/HTML/HTML.stories.d.ts +6 -0
- package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
- package/jsx/core/HTML/HTML.stories.jsx +13 -0
- package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
- package/jsx/core/Icon/Icon.stories.d.ts +5 -6
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +5 -27
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/Icon/Icon.styles.d.ts +4 -0
- package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
- package/jsx/core/Icon/Icon.styles.js +25 -0
- package/jsx/core/Icon/Icon.styles.js.map +1 -0
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +7 -10
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
- package/jsx/core/Image/Image.stories.d.ts +2 -3
- package/jsx/core/Image/Image.stories.d.ts.map +1 -1
- package/jsx/core/Image/Image.stories.jsx.map +1 -1
- package/jsx/core/Input/Input.stories.d.ts +2 -0
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx +78 -2
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
- package/jsx/core/Link/Link.stories.d.ts +1 -11
- package/jsx/core/Link/Link.stories.d.ts.map +1 -1
- package/jsx/core/Link/Link.stories.jsx +2 -1
- package/jsx/core/Link/Link.stories.jsx.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +12 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +102 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
- package/jsx/core/Location/Location.stories.d.ts +4 -1
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +13 -6
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Location/locationTestUtils.d.ts +3 -0
- package/jsx/core/Location/locationTestUtils.d.ts.map +1 -0
- package/jsx/core/Location/locationTestUtils.js +29 -0
- package/jsx/core/Location/locationTestUtils.js.map +1 -0
- package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.stories.jsx +7 -6
- package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +19 -5
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx +55 -27
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
- package/jsx/core/Number/Number.stories.d.ts +9 -3
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx +212 -24
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +21 -43
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts +4 -1
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx +12 -3
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx +6 -6
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +22 -5
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts +1 -0
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx +10 -3
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx +29 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.js +16 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.js.map +1 -0
- package/jsx/core/Slider/Slider.stories.d.ts +4 -3
- package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.jsx +1 -1
- package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx +4 -4
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +5 -2
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +3 -3
- package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +3 -7
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
- package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
- package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts +1 -2
- package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.jsx +16 -2
- package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
- package/jsx/cs/Article/Article.stories.d.ts +4 -13
- package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
- package/jsx/cs/Article/Article.stories.jsx.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx +3 -2
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +211 -93
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +5 -5
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -6
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +15 -7
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +93 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -6
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +122 -48
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js +9 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
- package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
- package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
- package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx +3 -21
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +19 -2
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +15 -2
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +5 -6
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +6 -7
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +96 -14
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
- package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
- package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.styles.js +22 -0
- package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
- package/jsx/social/Email/Email.mocks.d.ts +216 -3
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +945 -0
- package/jsx/social/Email/Email.mocks.jsx.map +1 -0
- package/jsx/social/Email/Email.stories.d.ts +59 -26
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +885 -669
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.styles.d.ts +3 -0
- package/jsx/social/Email/Email.styles.d.ts.map +1 -0
- package/jsx/social/Email/Email.styles.js +11 -0
- package/jsx/social/Email/Email.styles.js.map +1 -0
- package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx +10 -5
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +8 -12
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +32 -22
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx +4 -3
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +42 -31
- package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +28 -23
- package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx +4 -3
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx +81 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx +69 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
- package/jsx/tools/DevTools/DevTools.mocks.d.ts +3 -0
- package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
- package/jsx/tools/DevTools/DevTools.mocks.js +3 -0
- package/jsx/tools/DevTools/DevTools.mocks.js.map +1 -0
- package/jsx/tools/DevTools/DevTools.stories.d.ts +10 -0
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -0
- package/jsx/tools/DevTools/DevTools.stories.jsx +35 -0
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +153 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +5 -4
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +5 -6
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +74 -2
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +200 -11
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +4 -30
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +53 -230
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +2 -2
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -174
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -8
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +67 -64
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +6 -0
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx +39 -38
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +74 -44
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
- package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/jsx/work/Stages/Stages.mocks.jsx +40 -0
- package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
- package/jsx/work/Stages/Stages.stories.d.ts +1 -1
- package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.stories.jsx +12 -46
- package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
- package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +21 -11
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
- package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +35 -0
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx +75 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts +19 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx +68 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.js +5 -0
- package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +13 -0
- package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/jsx/wss/CaseView/CaseView.mocks.jsx +34 -0
- package/jsx/wss/CaseView/CaseView.mocks.jsx.map +1 -0
- package/jsx/wss/CaseView/CaseView.stories.d.ts +12 -0
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -0
- package/jsx/wss/CaseView/CaseView.stories.jsx +69 -0
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +48 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/lib/build/AppHeader/AppHeader.stories.js +100 -76
- package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.js +32 -0
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.stories.js +22 -45
- package/lib/build/AppShell/AppShell.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +5 -3
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +40 -3
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/FieldSelector.js +1 -1
- package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +524 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +336 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +158 -33
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +256 -137
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +146 -18
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
- package/lib/build/LifeCycle/utils.d.ts.map +1 -1
- package/lib/build/LifeCycle/utils.js +5 -4
- package/lib/build/LifeCycle/utils.js.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +369 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +242 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +114 -252
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/lib/build/Workbench/Workbench.stories.js +210 -29
- package/lib/build/Workbench/Workbench.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +78 -62
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/lib/core/AppShell/AppShell.mocks.js +10 -10
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +3 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js +56 -20
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js +6 -6
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Backdrop/Backdrop.stories.js +2 -2
- package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
- package/lib/core/Badges/Alert.stories.js +1 -1
- package/lib/core/Badges/Alert.stories.js.map +1 -1
- package/lib/core/Badges/Count.stories.js +1 -1
- package/lib/core/Badges/Count.stories.js.map +1 -1
- package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
- package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/lib/core/Badges/Keyboard.stories.js +16 -0
- package/lib/core/Badges/Keyboard.stories.js.map +1 -0
- package/lib/core/Badges/Selection.stories.d.ts +2 -3
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
- package/lib/core/Badges/Selection.stories.js +1 -1
- package/lib/core/Badges/Selection.stories.js.map +1 -1
- package/lib/core/Badges/Status.stories.js +2 -2
- package/lib/core/Badges/Status.stories.js.map +1 -1
- package/lib/core/Badges/Tag.stories.d.ts +2 -3
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
- package/lib/core/Badges/Tag.stories.js +1 -1
- package/lib/core/Badges/Tag.stories.js.map +1 -1
- package/lib/core/Banner/Banner.mocks.js +1 -1
- package/lib/core/Banner/Banner.mocks.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +6 -18
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +11 -22
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/Button/Button.stories.d.ts +2 -3
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.js +8 -8
- package/lib/core/Button/Button.stories.js.map +1 -1
- package/lib/core/Card/Card.stories.d.ts +1 -2
- package/lib/core/Card/Card.stories.d.ts.map +1 -1
- package/lib/core/Card/Card.stories.js +4 -4
- package/lib/core/Card/Card.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js +26 -7
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +41 -5
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js +17 -18
- package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js +46 -14
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
- package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.mocks.js +6 -0
- package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
- package/lib/core/Configuration/Configuration.stories.d.ts +2 -3
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.stories.js +13 -25
- package/lib/core/Configuration/Configuration.stories.js.map +1 -1
- package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
- package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.styles.js +12 -0
- package/lib/core/Configuration/Configuration.styles.js.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts +14 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.js +53 -0
- package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
- package/lib/core/Currency/Currency.stories.d.ts +7 -2
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.js +29 -8
- package/lib/core/Currency/Currency.stories.js.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +41 -10
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js +191 -18
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
- package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
- package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
- package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/lib/core/Dialog/Dialog.stories.js +47 -0
- package/lib/core/Dialog/Dialog.stories.js.map +1 -0
- package/lib/core/Drawer/Drawer.stories.js +4 -4
- package/lib/core/Drawer/Drawer.stories.js.map +1 -1
- package/lib/core/Email/EmailDisplay.stories.js +1 -1
- package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
- package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +8 -4
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js +15 -3
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
- package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.js +58 -67
- package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.js +35 -5
- package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
- package/lib/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.styles.js +8 -0
- package/lib/core/FieldValueList/FieldValueList.styles.js.map +1 -0
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js +25 -38
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/File/FileInput.stories.js +2 -2
- package/lib/core/File/FileInput.stories.js.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.js +7 -7
- package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
- package/lib/core/Flex/FlexItem.stories.js +3 -3
- package/lib/core/Flex/FlexItem.stories.js.map +1 -1
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js +6 -6
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/Form/Form.stories.js +8 -8
- package/lib/core/Form/Form.stories.js.map +1 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridContainer.stories.js +9 -9
- package/lib/core/Grid/GridContainer.stories.js.map +1 -1
- package/lib/core/Grid/GridItem.stories.d.ts +1 -2
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridItem.stories.js +3 -3
- package/lib/core/Grid/GridItem.stories.js.map +1 -1
- package/lib/core/HTML/HTML.stories.d.ts +6 -0
- package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
- package/lib/core/HTML/HTML.stories.js +14 -0
- package/lib/core/HTML/HTML.stories.js.map +1 -0
- package/lib/core/Icon/Icon.mocks.js +1 -1
- package/lib/core/Icon/Icon.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +5 -6
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +12 -35
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/Icon/Icon.styles.d.ts +4 -0
- package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
- package/lib/core/Icon/Icon.styles.js +25 -0
- package/lib/core/Icon/Icon.styles.js.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.js +8 -11
- package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
- package/lib/core/Image/Image.stories.d.ts +2 -3
- package/lib/core/Image/Image.stories.d.ts.map +1 -1
- package/lib/core/Image/Image.stories.js +1 -1
- package/lib/core/Image/Image.stories.js.map +1 -1
- package/lib/core/Input/Input.stories.d.ts +2 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js +80 -4
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Label/Label.stories.js +2 -2
- package/lib/core/Label/Label.stories.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js +3 -3
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/Link/Link.stories.d.ts +1 -11
- package/lib/core/Link/Link.stories.d.ts.map +1 -1
- package/lib/core/Link/Link.stories.js +4 -3
- package/lib/core/Link/Link.stories.js.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
- package/lib/core/List/OrderedList.stories.js +1 -1
- package/lib/core/List/OrderedList.stories.js.map +1 -1
- package/lib/core/List/UnorderedList.stories.js +1 -1
- package/lib/core/List/UnorderedList.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +12 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js +94 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
- package/lib/core/Location/Location.stories.d.ts +4 -1
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +16 -9
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Location/locationTestUtils.d.ts +3 -0
- package/lib/core/Location/locationTestUtils.d.ts.map +1 -0
- package/lib/core/Location/locationTestUtils.js +30 -0
- package/lib/core/Location/locationTestUtils.js.map +1 -0
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/core/Menu/Menu.stories.js +10 -9
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.js +9 -9
- package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
- package/lib/core/MetaList/MetaList.stories.js +3 -3
- package/lib/core/MetaList/MetaList.stories.js.map +1 -1
- package/lib/core/Modal/Modal.mocks.js +8 -8
- package/lib/core/Modal/Modal.mocks.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +19 -5
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js +81 -53
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
- package/lib/core/Number/Number.stories.d.ts +9 -3
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js +213 -25
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +35 -57
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/lib/core/Pagination/Pagination.stories.js +1 -1
- package/lib/core/Pagination/Pagination.stories.js.map +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts +4 -1
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.js +13 -4
- package/lib/core/Phone/Phone.stories.js.map +1 -1
- package/lib/core/Popover/Popover.stories.d.ts +1 -1
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.js +2 -2
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/Progress/Progress.stories.js +3 -3
- package/lib/core/Progress/Progress.stories.js.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js +22 -5
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +41 -5
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/Rating/Rating.stories.js +2 -2
- package/lib/core/Rating/Rating.stories.js.map +1 -1
- package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
- package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.js +29 -15
- package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts +1 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js +12 -5
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.js +2 -2
- package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.stories.js +28 -0
- package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
- package/lib/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.styles.js +16 -0
- package/lib/core/SkipLinks/SkipLinks.styles.js.map +1 -0
- package/lib/core/Slider/Slider.stories.d.ts +4 -3
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.js +2 -2
- package/lib/core/Slider/Slider.stories.js.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
- package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
- package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.js +9 -9
- package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
- package/lib/core/Switch/Switch.stories.js +3 -3
- package/lib/core/Switch/Switch.stories.js.map +1 -1
- package/lib/core/Table/Table.mocks.js +1 -1
- package/lib/core/Table/Table.mocks.js.map +1 -1
- package/lib/core/Table/Table.stories.js +9 -9
- package/lib/core/Table/Table.stories.js.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +5 -2
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.js +3 -3
- package/lib/core/Tabs/Tabs.stories.js.map +1 -1
- package/lib/core/Text/Text.stories.js +2 -2
- package/lib/core/Text/Text.stories.js.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.js +11 -4
- package/lib/core/TextArea/TextArea.stories.js.map +1 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/lib/core/Toaster/Toaster.stories.js +5 -5
- package/lib/core/Toaster/Toaster.stories.js.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +3 -7
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.js +2 -2
- package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.d.ts +1 -2
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.js +21 -5
- package/lib/core/Tree/Tree.stories.js.map +1 -1
- package/lib/core/URL/URL.stories.js +1 -1
- package/lib/core/URL/URL.stories.js.map +1 -1
- package/lib/cs/Article/Article.stories.d.ts +4 -13
- package/lib/cs/Article/Article.stories.d.ts.map +1 -1
- package/lib/cs/Article/Article.stories.js +9 -9
- package/lib/cs/Article/Article.stories.js.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
- package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +212 -98
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
- package/lib/cs/DialPad/DialPad.stories.js +1 -1
- package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +20 -20
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -6
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +32 -22
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +93 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -6
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +130 -56
- package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.styles.js +9 -0
- package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
- package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Demo.js +151 -0
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.js +33 -0
- package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.js +78 -0
- package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/lib/rte/Editor/Editor.mocks.js +26 -0
- package/lib/rte/Editor/Editor.mocks.js.map +1 -0
- package/lib/rte/Editor/Editor.stories.d.ts +7 -8
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js +8 -28
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js +14 -7
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +15 -2
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +5 -6
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +6 -7
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +98 -36
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.mocks.js +11 -0
- package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/lib/social/Chat/RepeatingView.stories.js +18 -48
- package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.styles.js +22 -0
- package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
- package/lib/social/Email/Email.mocks.d.ts +216 -3
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +551 -0
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +59 -26
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +861 -714
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Email/Email.styles.d.ts +3 -0
- package/lib/social/Email/Email.styles.d.ts.map +1 -0
- package/lib/social/Email/Email.styles.js +11 -0
- package/lib/social/Email/Email.styles.js.map +1 -0
- package/lib/social/Feed/Feed.mocks.d.ts +13 -18
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +45 -40
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +8 -12
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +38 -28
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.js +5 -4
- package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.stories.js +47 -36
- package/lib/social/Feed/FeedPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.stories.js +31 -26
- package/lib/social/Feed/FeedReply.stories.js.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +5 -4
- package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js +75 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.js +78 -0
- package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
- package/lib/tools/DevTools/DevTools.mocks.d.ts +3 -0
- package/lib/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
- package/lib/tools/DevTools/DevTools.mocks.js +3 -0
- package/lib/tools/DevTools/DevTools.mocks.js.map +1 -0
- package/lib/tools/DevTools/DevTools.stories.d.ts +10 -0
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -0
- package/lib/tools/DevTools/DevTools.stories.js +31 -0
- package/lib/tools/DevTools/DevTools.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js +154 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +5 -4
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js +20 -21
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +74 -2
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +197 -18
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +4 -30
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +48 -240
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Details.mocks.js +1 -1
- package/lib/work/CaseView/Details.mocks.js.map +1 -1
- package/lib/work/CaseView/FileService.mock.js +1 -1
- package/lib/work/CaseView/FileService.mock.js.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.js +3 -3
- package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -174
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js +12 -8
- package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +14 -59
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.js +3 -3
- package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +6 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.js +43 -42
- package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js +83 -53
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.mocks.d.ts +14 -0
- package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/lib/work/Stages/Stages.mocks.js +39 -0
- package/lib/work/Stages/Stages.mocks.js.map +1 -0
- package/lib/work/Stages/Stages.stories.d.ts +1 -1
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
- package/lib/work/Stages/Stages.stories.js +12 -44
- package/lib/work/Stages/Stages.stories.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js +2 -2
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Tags/Tags.stories.js +1 -1
- package/lib/work/Tags/Tags.stories.js.map +1 -1
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/lib/work/Tasks/TaskList.stories.js +6 -4
- package/lib/work/Tasks/TaskList.stories.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +29 -17
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.js +8 -8
- package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.stories.js +24 -3
- package/lib/work/Timeline/Timeline.stories.js.map +1 -1
- package/lib/wss/AppShell/AppShell.mocks.d.ts +35 -0
- package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.mocks.js +70 -0
- package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts +19 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.js +70 -0
- package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.js +5 -0
- package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
- package/lib/wss/CaseView/CaseView.mocks.d.ts +13 -0
- package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/lib/wss/CaseView/CaseView.mocks.js +35 -0
- package/lib/wss/CaseView/CaseView.mocks.js.map +1 -0
- package/lib/wss/CaseView/CaseView.stories.d.ts +12 -0
- package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -0
- package/lib/wss/CaseView/CaseView.stories.js +70 -0
- package/lib/wss/CaseView/CaseView.stories.js.map +1 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.js +41 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
- package/package.json +22 -19
- package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
- package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +0 -45
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +0 -275
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -57
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js +0 -224
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
- package/jsx/social/Email/Email.mocks.js +0 -395
- package/jsx/social/Email/Email.mocks.js.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.js +0 -36
- package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +0 -45
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.js +0 -240
- package/lib/cs/CSCaseView/CSAppShell.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -57
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +0 -224
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
|
@@ -1,170 +1,70 @@
|
|
|
1
|
-
import { useState, useRef,
|
|
1
|
+
import { useState, useRef, useCallback, useEffect, createRef } from 'react';
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import {
|
|
4
|
-
import styled, { css } from 'styled-components';
|
|
5
|
-
import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, hasProp, Flex, Button, ModalManagerContext, Modal, menuHelpers, defaultThemeProp, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel } from '@pega/cosmos-react-core';
|
|
3
|
+
import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, Flex, Button, menuHelpers, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel, Modal, useModalManager, useModalContext, useToaster, Banner } from '@pega/cosmos-react-core';
|
|
6
4
|
import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
|
|
7
|
-
import { Email, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList } from '@pega/cosmos-react-social';
|
|
8
|
-
import {
|
|
5
|
+
import { Email as EmailComponent, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList, EmailManager, EmailCaseView } from '@pega/cosmos-react-social';
|
|
6
|
+
import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
|
|
7
|
+
import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, EntityListMockData, viewAnalysisEmailHeaderMock, topicListMock, generateEmailConversationParticipants, templates, handleExternalEntry, emailDemoActions, LaunchAction, baseComposerProps, sentiment, emailSummaryItems, mockEmails, mockSuggestedReplies, mockEmailBodyTemplates, forwardedContent, getCompositeId, emptyFieldErrorMessage, fieldValidation, emailWorklistItemsMock, contextMenuItemsMock, highlightedEntitiesMock, mockUploadImage, mailDeliverySystemEmail, supportTeamEmail } from './Email.mocks';
|
|
8
|
+
import { StyledEmailCardContent } from './Email.styles';
|
|
9
9
|
registerIcon(filterIcon);
|
|
10
10
|
export default {
|
|
11
11
|
title: 'Social/Email',
|
|
12
|
-
component:
|
|
12
|
+
component: EmailComponent
|
|
13
13
|
};
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
participants,
|
|
28
|
-
externalValidator: handleExternalEntry,
|
|
29
|
-
to: {
|
|
30
|
-
reply: toParticipants.slice(0, 1),
|
|
31
|
-
replyAll: toParticipants
|
|
32
|
-
},
|
|
33
|
-
cc: ccParticipants,
|
|
34
|
-
subject: '',
|
|
35
|
-
bodyContent: '',
|
|
36
|
-
onSend: action('On Send'),
|
|
37
|
-
onCancel: () => {
|
|
38
|
-
action('cancelled email composing');
|
|
39
|
-
},
|
|
40
|
-
templates
|
|
41
|
-
};
|
|
42
|
-
var LaunchAction;
|
|
43
|
-
(function (LaunchAction) {
|
|
44
|
-
LaunchAction[LaunchAction["REPLY"] = 0] = "REPLY";
|
|
45
|
-
LaunchAction[LaunchAction["REPLYALL"] = 1] = "REPLYALL";
|
|
46
|
-
LaunchAction[LaunchAction["SUGGESTION"] = 2] = "SUGGESTION";
|
|
47
|
-
LaunchAction[LaunchAction["FORWARD"] = 3] = "FORWARD";
|
|
48
|
-
})(LaunchAction || (LaunchAction = {}));
|
|
49
|
-
const composerModals = {};
|
|
50
|
-
const getCompositeId = (id, launchAction) => {
|
|
51
|
-
return `${id}-${launchAction}`;
|
|
52
|
-
};
|
|
53
|
-
const handleComposerCancel = (compositeID) => {
|
|
54
|
-
composerModals[compositeID]?.dismissModal();
|
|
55
|
-
composerModals[compositeID]?.unMountModal();
|
|
56
|
-
delete composerModals[compositeID];
|
|
57
|
-
};
|
|
58
|
-
const launchEmailComposer = (id, launchAction, composerProps, create) => {
|
|
59
|
-
const compositeId = getCompositeId(id, launchAction);
|
|
60
|
-
const composerRef = createRef();
|
|
61
|
-
const modalControls = create(() => {
|
|
62
|
-
return (<Modal heading={composerProps.subject} options={{ id: { compositeId } }}>
|
|
63
|
-
<EmailComposer {...composerProps} ref={composerRef} onCancel={() => handleComposerCancel(compositeId)}/>
|
|
64
|
-
</Modal>);
|
|
65
|
-
}, { center: true }, { minimizable: true, maximizable: true, dockable: true });
|
|
66
|
-
composerModals[compositeId] = {
|
|
67
|
-
dismissModal: modalControls.dismiss,
|
|
68
|
-
unMountModal: modalControls.unmount,
|
|
69
|
-
composerRef
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
const emailActions = (<MenuButton text='Email actions' variant='simple' icon='more' iconOnly menu={{
|
|
73
|
-
items: [
|
|
74
|
-
{
|
|
75
|
-
id: createUID(),
|
|
76
|
-
primary: 'Reply',
|
|
77
|
-
onClick: action('On reply')
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: createUID(),
|
|
81
|
-
primary: 'Reply all',
|
|
82
|
-
onClick: action('On reply all')
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: createUID(),
|
|
86
|
-
primary: 'Forward',
|
|
87
|
-
onClick: action('Forward')
|
|
14
|
+
export const Email = (args) => {
|
|
15
|
+
const contextMenuHandle = useRef(null);
|
|
16
|
+
const timeout = useRef(null);
|
|
17
|
+
const handleRightClick = (id, e) => {
|
|
18
|
+
action('onContextMenu')(id, e);
|
|
19
|
+
if (contextMenuHandle.current && args.enableContextMenu) {
|
|
20
|
+
const { setItems, setOpen, setLoading } = contextMenuHandle.current;
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
setLoading(true);
|
|
23
|
+
setItems([]);
|
|
24
|
+
setOpen(true);
|
|
25
|
+
if (timeout.current) {
|
|
26
|
+
clearTimeout(timeout.current);
|
|
88
27
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
...baseComposerProps,
|
|
100
|
-
onTemplateChange,
|
|
101
|
-
responseType: 'reply',
|
|
102
|
-
subject: `Re-${subject}` || ''
|
|
103
|
-
}, create)
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: createUID(),
|
|
107
|
-
primary: 'Reply all',
|
|
108
|
-
onClick: () => launchEmailComposer(id, LaunchAction.REPLYALL, {
|
|
109
|
-
...baseComposerProps,
|
|
110
|
-
onTemplateChange,
|
|
111
|
-
responseType: 'replyAll',
|
|
112
|
-
cc: [],
|
|
113
|
-
subject: `Re-${subject}` || ''
|
|
114
|
-
}, create)
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: createUID(),
|
|
118
|
-
primary: 'Forward',
|
|
119
|
-
onClick: () => launchEmailComposer(id, LaunchAction.FORWARD, {
|
|
120
|
-
...baseComposerProps,
|
|
121
|
-
onTemplateChange,
|
|
122
|
-
responseType: 'forward',
|
|
123
|
-
subject: `Fw-${subject}` || ''
|
|
124
|
-
}, create)
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
}}/>);
|
|
128
|
-
};
|
|
129
|
-
const generateEmailConversationParticipants = (emails, fields) => {
|
|
130
|
-
let l;
|
|
131
|
-
if (fields) {
|
|
132
|
-
l = [...fields];
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
l = ['from', 'to', 'cc', 'bcc'];
|
|
136
|
-
}
|
|
137
|
-
const emailUsers = emails.map(emailItem => {
|
|
138
|
-
return l.map(n => {
|
|
139
|
-
if (hasProp(emailItem, n)) {
|
|
140
|
-
return emailItem[n];
|
|
28
|
+
timeout.current = window.setTimeout(() => {
|
|
29
|
+
setItems(contextMenuItemsMock);
|
|
30
|
+
setLoading(false);
|
|
31
|
+
}, 1000);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
return () => {
|
|
36
|
+
if (timeout.current) {
|
|
37
|
+
window.clearTimeout(timeout.current);
|
|
141
38
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
});
|
|
145
|
-
return [...new Set(Array.from(emailUsers).flat(2))];
|
|
146
|
-
};
|
|
147
|
-
const StyledEmailCardContent = styled(CardContent)(({ theme }) => {
|
|
148
|
-
return css `
|
|
149
|
-
&&&& {
|
|
150
|
-
padding: calc(2 * ${theme.base.spacing}) 0;
|
|
151
|
-
}
|
|
152
|
-
`;
|
|
153
|
-
});
|
|
154
|
-
StyledEmailCardContent.defaultProps = defaultThemeProp;
|
|
155
|
-
export const email = () => {
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
156
41
|
return (<Card>
|
|
157
42
|
<StyledEmailCardContent>
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
43
|
+
<EmailComponent id={createUID()} timeStamp='2021-01-05T09:12' from={mockEmails['Laura Stevens']} cc={[mockEmails['Adam Gillchrist'], mockEmails['John Paul']]} bcc={[mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']]} to={[mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']]} body='<div>Hi,<br/><p>I am one of the customer of Indian Overseas Bank, <b><i>Nagercoil</i></b> branch, with code <b><a href="www.google.com"><i>3967</i></a></b>. I have a saving bank account here. My account number is <i>6785420965476</i>.</p><br/><p>I have been given a debit cum ATM card from this bank and the same has been lost when I was traveling from Nagercoil to Trichy by Bus on Jan 04, 2021. I remember that my ATM card number was 1920 6746 8653 1256.</p><br/>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to give me an new debit card as early as possible.<br/><br/>Regards,<br/>Laura Stevens</div>' forwardedContent={args.forwardedContent} entityHighlightMapping={args.enableEntityHighlighting ? highlightedEntitiesMock : undefined} subject='I lost my debit card' banner={args.showEmailBanner
|
|
44
|
+
? {
|
|
45
|
+
id: 'banner_1',
|
|
46
|
+
heading: 'Address not found ',
|
|
47
|
+
messages: [
|
|
48
|
+
'550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
: undefined} onReply={args.showDraft ? undefined : action('On reply')} onReplyAll={args.showDraft ? undefined : action('On reply all')} onForward={args.showDraft ? undefined : action('On forward')} onEditDraft={args.showDraft ? action('On forward') : undefined} onDeleteDraft={args.showDraft ? action('On forward') : undefined} onSuggestionClick={action('On Suggested reply clicked')} sentiment={{
|
|
52
|
+
variant: 'neutral'
|
|
53
|
+
}} status={args.showDraft ? 'draft' : undefined} suggestions={mockSuggestedReplies} contextMenu={{
|
|
54
|
+
onItemClick: (selectedValue) => {
|
|
55
|
+
action('onItemClick')(selectedValue);
|
|
56
|
+
contextMenuHandle.current?.setOpen(false);
|
|
57
|
+
},
|
|
58
|
+
onContextMenu: handleRightClick,
|
|
59
|
+
handle: contextMenuHandle
|
|
60
|
+
}} attachments={[
|
|
161
61
|
{
|
|
162
|
-
id:
|
|
62
|
+
id: 'attachment_0',
|
|
163
63
|
value: 'https://pega.com/media/document.doc',
|
|
164
64
|
displayText: 'Policy document'
|
|
165
65
|
},
|
|
166
66
|
{
|
|
167
|
-
id:
|
|
67
|
+
id: 'attachment_1',
|
|
168
68
|
value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
|
|
169
69
|
displayText: 'E-Ticket'
|
|
170
70
|
}
|
|
@@ -178,115 +78,191 @@ export const email = () => {
|
|
|
178
78
|
</StyledEmailCardContent>
|
|
179
79
|
</Card>);
|
|
180
80
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
text: 'Entities'
|
|
188
|
-
};
|
|
189
|
-
const itemsToRender = topicListMock.map(items => {
|
|
190
|
-
return {
|
|
191
|
-
...items,
|
|
192
|
-
primary: <StyledLabel>{items.primary}</StyledLabel>,
|
|
193
|
-
secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
|
|
194
|
-
<Text variant='primary'>{items.secondary.indicator}</Text>
|
|
195
|
-
<StyledLabel>{items.secondary.value}</StyledLabel>
|
|
196
|
-
</Flex>)
|
|
197
|
-
};
|
|
198
|
-
});
|
|
199
|
-
return (<StyledViewAnalysis>
|
|
200
|
-
<Grid container={{ rowGap: 2 }}>
|
|
201
|
-
<EntityList header={headerProps} content={EntityListMockData}/>
|
|
202
|
-
|
|
203
|
-
<Card>
|
|
204
|
-
<CardHeader container={{ alignItems: 'center', gap: 1 }}>
|
|
205
|
-
<Icon name='document-doc'/>
|
|
206
|
-
<Text variant='h3'>Email header</Text>
|
|
207
|
-
</CardHeader>
|
|
208
|
-
<CardContent>
|
|
209
|
-
<FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
|
|
210
|
-
</CardContent>
|
|
211
|
-
</Card>
|
|
212
|
-
|
|
213
|
-
<SummaryList name='Topics' icon='headline' items={itemsToRender} noItemsText='No items'/>
|
|
214
|
-
</Grid>
|
|
215
|
-
</StyledViewAnalysis>);
|
|
81
|
+
Email.args = {
|
|
82
|
+
enableEntityHighlighting: false,
|
|
83
|
+
enableContextMenu: false,
|
|
84
|
+
forwardedContent,
|
|
85
|
+
showEmailBanner: false,
|
|
86
|
+
showDraft: false
|
|
216
87
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
88
|
+
Email.argTypes = {
|
|
89
|
+
enableEntityHighlighting: { control: { type: 'boolean' } },
|
|
90
|
+
enableContextMenu: { control: { type: 'boolean' } },
|
|
91
|
+
forwardedContent: { control: { type: 'text' } },
|
|
92
|
+
showEmailBanner: { control: { type: 'boolean' } },
|
|
93
|
+
showDraft: { control: { type: 'boolean' } }
|
|
94
|
+
};
|
|
95
|
+
export const Composer = (args) => {
|
|
96
|
+
const { enableResponseTypeToggle = true, enableSaveAsDraft = true } = args;
|
|
97
|
+
const [composerProgress, setComposerProgress] = useState(false);
|
|
98
|
+
const composerHandle = useRef(null);
|
|
99
|
+
const [data, setData] = useState({
|
|
100
|
+
to: { value: toParticipants },
|
|
101
|
+
cc: { value: [] },
|
|
102
|
+
bcc: { value: [] },
|
|
103
|
+
subject: { value: 'Request: Pause service' },
|
|
104
|
+
bodyContent: {
|
|
105
|
+
defaultValue: 'Hi, Hope you are doing well'
|
|
106
|
+
},
|
|
107
|
+
responseType: 'reply',
|
|
108
|
+
selectedTemplateId: '',
|
|
109
|
+
attachments: emailAttachments,
|
|
110
|
+
bodyContentCurrentValue: ''
|
|
111
|
+
});
|
|
112
|
+
const handleOnChange = (field, value) => {
|
|
113
|
+
if (field === 'bodyContent') {
|
|
114
|
+
setData(prev => ({
|
|
115
|
+
...prev,
|
|
116
|
+
bodyContentCurrentValue: value
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
else if (['responseType', 'attachments', 'selectedTemplateId'].includes(field)) {
|
|
120
|
+
setData(prev => ({
|
|
121
|
+
...prev,
|
|
122
|
+
[field]: value
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
setData(prev => {
|
|
127
|
+
return {
|
|
128
|
+
...prev,
|
|
129
|
+
[field]: { error: undefined, value }
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
action('onChange')(field, value);
|
|
134
|
+
};
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
if (data.responseType === 'reply') {
|
|
137
|
+
setData(prev => {
|
|
138
|
+
return {
|
|
139
|
+
...prev,
|
|
140
|
+
to: {
|
|
141
|
+
...prev.to,
|
|
142
|
+
value: [toParticipants[0]]
|
|
143
|
+
},
|
|
144
|
+
cc: {
|
|
145
|
+
...prev.cc,
|
|
146
|
+
value: []
|
|
147
|
+
},
|
|
148
|
+
bcc: {
|
|
149
|
+
...prev.bcc,
|
|
150
|
+
value: []
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
else if (data.responseType === 'replyAll') {
|
|
156
|
+
setData(prev => {
|
|
157
|
+
return {
|
|
158
|
+
...prev,
|
|
159
|
+
to: {
|
|
160
|
+
...prev.to,
|
|
161
|
+
value: toParticipants
|
|
162
|
+
},
|
|
163
|
+
cc: {
|
|
164
|
+
...prev.cc,
|
|
165
|
+
value: ccParticipants
|
|
166
|
+
},
|
|
167
|
+
bcc: {
|
|
168
|
+
...prev.bcc,
|
|
169
|
+
value: bccParticipants
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
else if (data.responseType === 'forward') {
|
|
175
|
+
setData(prev => {
|
|
176
|
+
return {
|
|
177
|
+
...prev,
|
|
178
|
+
to: {
|
|
179
|
+
...prev.to,
|
|
180
|
+
value: []
|
|
181
|
+
},
|
|
182
|
+
cc: {
|
|
183
|
+
...prev.cc,
|
|
184
|
+
value: []
|
|
185
|
+
},
|
|
186
|
+
bcc: {
|
|
187
|
+
...prev.bcc,
|
|
188
|
+
value: []
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}, [data.responseType]);
|
|
194
|
+
const onTemplateChange = (id) => {
|
|
195
|
+
const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === id);
|
|
196
|
+
setComposerProgress({ message: 'Loading template...' });
|
|
197
|
+
setTimeout(() => {
|
|
198
|
+
setComposerProgress(false);
|
|
199
|
+
composerHandle.current?.replaceBodyContent(selectedTemplate?.content || '');
|
|
200
|
+
}, 1000);
|
|
201
|
+
};
|
|
202
|
+
useEffect(() => {
|
|
203
|
+
if (data.selectedTemplateId)
|
|
204
|
+
onTemplateChange(data.selectedTemplateId);
|
|
205
|
+
}, [data.selectedTemplateId]);
|
|
206
|
+
const handleOnSend = () => {
|
|
207
|
+
setData(prev => {
|
|
208
|
+
return {
|
|
209
|
+
...prev,
|
|
210
|
+
to: {
|
|
211
|
+
value: prev.to?.value || [],
|
|
212
|
+
error: data?.to?.value.length === 0 ? emptyFieldErrorMessage : fieldValidation(data?.to?.value)
|
|
250
213
|
},
|
|
251
|
-
{
|
|
252
|
-
value:
|
|
253
|
-
|
|
254
|
-
name: 'AccountNumber',
|
|
255
|
-
variant: 3,
|
|
256
|
-
description: 'Account Number'
|
|
214
|
+
cc: {
|
|
215
|
+
value: prev.cc?.value || [],
|
|
216
|
+
error: data.cc === undefined ? undefined : fieldValidation(data.cc.value)
|
|
257
217
|
},
|
|
258
|
-
{
|
|
259
|
-
value:
|
|
260
|
-
|
|
261
|
-
name: 'CardNumber',
|
|
262
|
-
variant: 4,
|
|
263
|
-
description: 'Card Number'
|
|
218
|
+
bcc: {
|
|
219
|
+
value: prev.bcc?.value || [],
|
|
220
|
+
error: data.bcc === undefined ? undefined : fieldValidation(data.bcc.value)
|
|
264
221
|
},
|
|
265
|
-
{
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
name: 'CardType',
|
|
269
|
-
variant: 5,
|
|
270
|
-
description: 'Card Type'
|
|
222
|
+
subject: {
|
|
223
|
+
...prev.subject,
|
|
224
|
+
error: data.subject?.value === '' ? emptyFieldErrorMessage : undefined
|
|
271
225
|
},
|
|
272
|
-
{
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
name: 'Date',
|
|
276
|
-
variant: 6,
|
|
277
|
-
description: 'Date'
|
|
226
|
+
bodyContent: {
|
|
227
|
+
...prev.bodyContent,
|
|
228
|
+
error: data.bodyContentCurrentValue === '' ? emptyFieldErrorMessage : undefined
|
|
278
229
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
230
|
+
};
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
const onImageAdded = (image, id) => {
|
|
234
|
+
action('On Image added');
|
|
235
|
+
setComposerProgress({ message: 'Uploading image' });
|
|
236
|
+
mockUploadImage(image)
|
|
237
|
+
.then(({ src, alt }) => {
|
|
238
|
+
composerHandle.current?.updateImage({ src, alt }, id);
|
|
239
|
+
setComposerProgress(false);
|
|
240
|
+
})
|
|
241
|
+
.catch(() => {
|
|
242
|
+
setComposerProgress(false);
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
return (<EmailComposer handle={composerHandle} progress={composerProgress} onSave={enableSaveAsDraft ? action('On save') : undefined} onSend={handleOnSend} onCancel={action('On cancel')} externalValidator={handleExternalEntry} participants={participants} onChange={handleOnChange} data={{
|
|
246
|
+
...data,
|
|
247
|
+
responseType: enableResponseTypeToggle ? data.responseType : undefined
|
|
248
|
+
}} templates={templates} onImageAdded={onImageAdded}/>);
|
|
285
249
|
};
|
|
286
|
-
|
|
250
|
+
Composer.args = {
|
|
251
|
+
enableResponseTypeToggle: true,
|
|
252
|
+
enableSaveAsDraft: true
|
|
253
|
+
};
|
|
254
|
+
Composer.argTypes = {
|
|
255
|
+
enableResponseTypeToggle: {
|
|
256
|
+
control: 'boolean'
|
|
257
|
+
},
|
|
258
|
+
enableSaveAsDraft: {
|
|
259
|
+
control: { type: 'boolean' }
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
export const Conversation = () => {
|
|
287
263
|
const emailArr = [
|
|
288
264
|
{
|
|
289
|
-
id:
|
|
265
|
+
id: 'item_0',
|
|
290
266
|
timeStamp: '2021-01-05T09:12',
|
|
291
267
|
from: mockEmails['Laura Stevens'],
|
|
292
268
|
cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
|
|
@@ -297,11 +273,10 @@ export const emailConversation = () => {
|
|
|
297
273
|
onReply: action('On reply'),
|
|
298
274
|
onForward: action('On forward'),
|
|
299
275
|
onSuggestionClick: action('On Suggested reply clicked'),
|
|
300
|
-
actions: emailActions,
|
|
301
276
|
suggestions: mockSuggestedReplies
|
|
302
277
|
},
|
|
303
278
|
{
|
|
304
|
-
id:
|
|
279
|
+
id: 'item_1',
|
|
305
280
|
timeStamp: '2021-01-02T03:12',
|
|
306
281
|
from: mockEmails['Sara Davis'],
|
|
307
282
|
cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
|
|
@@ -310,90 +285,266 @@ export const emailConversation = () => {
|
|
|
310
285
|
body: '<div> Hi, <br /> <br /> <div>I’m still at the airport, I need help now!! </div> <br /><br /> Regards, <br /> Sara Davis </div>',
|
|
311
286
|
onReply: action('On reply'),
|
|
312
287
|
onForward: action('On forward'),
|
|
313
|
-
onSuggestionClick: action('On Suggested reply clicked')
|
|
314
|
-
actions: emailActions
|
|
288
|
+
onSuggestionClick: action('On Suggested reply clicked')
|
|
315
289
|
}
|
|
316
290
|
];
|
|
317
291
|
return (<EmailConversation participants={generateEmailConversationParticipants(emailArr)} from={generateEmailConversationParticipants(emailArr, ['from'])[0]} to={generateEmailConversationParticipants(emailArr, ['to'])} id={createUID()} timeStamp={emailArr[0].timeStamp} unReadEmailCount={emailArr.filter(item => item.unRead).length} emails={emailArr}/>);
|
|
318
292
|
};
|
|
319
|
-
export const
|
|
320
|
-
const
|
|
321
|
-
const
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
|
|
293
|
+
export const EmailShellDemo = (args) => {
|
|
294
|
+
const { create } = useModalManager();
|
|
295
|
+
const { push } = useToaster();
|
|
296
|
+
const actions = ['Transfer', 'End conversation'].map(name => ({
|
|
297
|
+
primary: name,
|
|
298
|
+
id: name,
|
|
299
|
+
onClick: action(`Clicked ${name}`)
|
|
300
|
+
}));
|
|
301
|
+
const [composersData, setComposersData] = useState({});
|
|
302
|
+
const [conversationEmails, setConversationEmails] = useState([]);
|
|
303
|
+
const handleResponseTypeChange = (uid, responseType) => {
|
|
304
|
+
if (responseType === 'reply') {
|
|
305
|
+
setComposersData(prev => {
|
|
306
|
+
return {
|
|
307
|
+
...prev,
|
|
308
|
+
[uid]: {
|
|
309
|
+
...prev[uid],
|
|
310
|
+
data: {
|
|
311
|
+
...prev[uid].data,
|
|
312
|
+
to: {
|
|
313
|
+
...prev[uid].data.to,
|
|
314
|
+
value: [toParticipants[0]]
|
|
315
|
+
},
|
|
316
|
+
cc: {
|
|
317
|
+
...prev[uid].data.cc,
|
|
318
|
+
value: []
|
|
319
|
+
},
|
|
320
|
+
bcc: {
|
|
321
|
+
...prev[uid].data.bcc,
|
|
322
|
+
value: []
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
else if (responseType === 'replyAll') {
|
|
330
|
+
setComposersData(prev => {
|
|
331
|
+
return {
|
|
332
|
+
...prev,
|
|
333
|
+
[uid]: {
|
|
334
|
+
...prev[uid],
|
|
335
|
+
data: {
|
|
336
|
+
...prev[uid].data,
|
|
337
|
+
to: {
|
|
338
|
+
...prev[uid].data.to,
|
|
339
|
+
value: toParticipants
|
|
340
|
+
},
|
|
341
|
+
cc: {
|
|
342
|
+
...prev[uid].data.cc,
|
|
343
|
+
value: ccParticipants
|
|
344
|
+
},
|
|
345
|
+
bcc: {
|
|
346
|
+
...prev[uid].data.bcc,
|
|
347
|
+
value: bccParticipants
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
}
|
|
325
354
|
};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
reply: [participants[7].emailAddress],
|
|
330
|
-
replyAll: toParticipants,
|
|
331
|
-
forward: []
|
|
332
|
-
}} cc={ccParticipants} bcc={bccParticipants} responseType='reply' subject='Request: Pause service' templates={templates} onTemplateChange={onTemplateChange} bodyContent='Hi, Hope you are doing well' onImageAdded={action('On Image added')} attachments={attachments.map(attachment => {
|
|
355
|
+
const handleTemplateIdChange = (uid, templateId) => {
|
|
356
|
+
const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === templateId);
|
|
357
|
+
setComposersData(prev => {
|
|
333
358
|
return {
|
|
334
|
-
...
|
|
335
|
-
|
|
336
|
-
|
|
359
|
+
...prev,
|
|
360
|
+
[uid]: {
|
|
361
|
+
...prev[uid],
|
|
362
|
+
progress: { message: 'Loading template...' }
|
|
337
363
|
}
|
|
338
364
|
};
|
|
339
|
-
})
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
primary: 'Sorry, please give us some time',
|
|
348
|
-
id: 'Sorry',
|
|
349
|
-
onClick: action('Sorry, please give us some time!')
|
|
365
|
+
});
|
|
366
|
+
setTimeout(() => {
|
|
367
|
+
setComposersData(prev => {
|
|
368
|
+
return {
|
|
369
|
+
...prev,
|
|
370
|
+
[uid]: {
|
|
371
|
+
...prev[uid],
|
|
372
|
+
progress: false
|
|
350
373
|
}
|
|
351
|
-
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
374
|
+
};
|
|
375
|
+
});
|
|
376
|
+
let currentData = {};
|
|
377
|
+
setComposersData(prev => {
|
|
378
|
+
currentData = prev;
|
|
379
|
+
return prev;
|
|
380
|
+
});
|
|
381
|
+
if (currentData) {
|
|
382
|
+
currentData[uid]?.handle?.current?.replaceBodyContent(selectedTemplate?.content || '');
|
|
383
|
+
}
|
|
384
|
+
}, 1000);
|
|
385
|
+
};
|
|
386
|
+
const handleChange = (uid, field, value) => {
|
|
387
|
+
setComposersData(prevData => {
|
|
388
|
+
if (field === 'bodyContent') {
|
|
389
|
+
return {
|
|
390
|
+
...prevData,
|
|
391
|
+
[uid]: {
|
|
392
|
+
...prevData[uid],
|
|
393
|
+
bodyContentCurrentValue: value
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
...prevData,
|
|
399
|
+
[uid]: {
|
|
400
|
+
...prevData[uid],
|
|
401
|
+
data: {
|
|
402
|
+
...prevData[uid].data,
|
|
403
|
+
[field]: ['responseType', 'attachments', 'selectedTemplateId'].includes(field)
|
|
404
|
+
? value
|
|
405
|
+
: {
|
|
406
|
+
error: undefined,
|
|
407
|
+
value
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
});
|
|
413
|
+
if (field === 'responseType') {
|
|
414
|
+
handleResponseTypeChange(uid, value);
|
|
415
|
+
}
|
|
416
|
+
else if (field === 'selectedTemplateId') {
|
|
417
|
+
handleTemplateIdChange(uid, value);
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
const MyModal = ({ currentID }) => {
|
|
421
|
+
const { dismiss } = useModalContext();
|
|
422
|
+
return (<Modal heading='Discard unsaved changes?' actions={<>
|
|
423
|
+
<Button onClick={dismiss}>Go back</Button>
|
|
424
|
+
<div>
|
|
425
|
+
<Button onClick={() => {
|
|
426
|
+
dismiss();
|
|
427
|
+
setComposersData(prev => {
|
|
358
428
|
return {
|
|
359
|
-
|
|
429
|
+
...prev,
|
|
430
|
+
[currentID]: {
|
|
431
|
+
...prev[currentID],
|
|
432
|
+
progress: true
|
|
433
|
+
}
|
|
360
434
|
};
|
|
361
|
-
})
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
435
|
+
});
|
|
436
|
+
setTimeout(() => {
|
|
437
|
+
setComposersData(prev => {
|
|
438
|
+
const newComposersData = { ...prev };
|
|
439
|
+
delete newComposersData[currentID];
|
|
440
|
+
return newComposersData;
|
|
441
|
+
});
|
|
442
|
+
push({ content: 'Draft Saved' });
|
|
443
|
+
}, 1000);
|
|
444
|
+
}}>
|
|
445
|
+
Save & close
|
|
446
|
+
</Button>
|
|
447
|
+
<Button variant='primary' onClick={() => {
|
|
448
|
+
dismiss();
|
|
449
|
+
setComposersData(prev => {
|
|
450
|
+
const newComposersData = { ...prev };
|
|
451
|
+
delete newComposersData[currentID];
|
|
452
|
+
return newComposersData;
|
|
453
|
+
});
|
|
454
|
+
}}>
|
|
455
|
+
Discard
|
|
456
|
+
</Button>
|
|
457
|
+
</div>
|
|
458
|
+
</>}>
|
|
459
|
+
<Text variant='primary'>
|
|
460
|
+
You have unsaved changes. You can discard them or go back to keep working.
|
|
461
|
+
</Text>
|
|
462
|
+
</Modal>);
|
|
463
|
+
};
|
|
464
|
+
const handleCancel = (uid) => {
|
|
465
|
+
create(MyModal, { currentID: uid }, { alert: true });
|
|
466
|
+
};
|
|
467
|
+
const handleSend = (uid) => {
|
|
468
|
+
action('Send')();
|
|
469
|
+
setComposersData(prev => {
|
|
470
|
+
return {
|
|
471
|
+
...prev,
|
|
472
|
+
[uid]: {
|
|
473
|
+
...prev[uid],
|
|
474
|
+
progress: true
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
});
|
|
478
|
+
setTimeout(() => {
|
|
479
|
+
setComposersData(prev => {
|
|
480
|
+
const newComposersData = { ...prev };
|
|
481
|
+
delete newComposersData[uid];
|
|
482
|
+
return newComposersData;
|
|
483
|
+
});
|
|
484
|
+
push({ content: 'Email Send' });
|
|
485
|
+
}, 1000);
|
|
486
|
+
};
|
|
487
|
+
const handleSave = (uid) => {
|
|
488
|
+
action('Save')();
|
|
489
|
+
setComposersData(prev => {
|
|
490
|
+
return {
|
|
491
|
+
...prev,
|
|
492
|
+
[uid]: {
|
|
493
|
+
...prev[uid],
|
|
494
|
+
progress: true
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
});
|
|
498
|
+
setTimeout(() => {
|
|
499
|
+
setComposersData(prev => {
|
|
500
|
+
const newComposersData = { ...prev };
|
|
501
|
+
delete newComposersData[uid];
|
|
502
|
+
return newComposersData;
|
|
503
|
+
});
|
|
504
|
+
push({ content: 'Draft Saved' });
|
|
505
|
+
}, 1000);
|
|
506
|
+
};
|
|
507
|
+
const createOrActivateComposer = (id, launchAction, composerProps) => {
|
|
508
|
+
const uid = getCompositeId(id, launchAction);
|
|
509
|
+
if (composersData[uid]) {
|
|
510
|
+
composersData[uid].handle?.current?.activate();
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
setComposersData(prev => {
|
|
514
|
+
const composerHandle = createRef();
|
|
515
|
+
return {
|
|
516
|
+
...prev,
|
|
517
|
+
[uid]: {
|
|
518
|
+
...composerProps,
|
|
519
|
+
bodyContentCurrentValue: composerProps.data.bodyContent.defaultValue,
|
|
520
|
+
handle: composerHandle,
|
|
521
|
+
onChange: (field, value) => handleChange(uid, field, value),
|
|
522
|
+
onCancel: () => handleCancel(uid),
|
|
523
|
+
onSend: () => handleSend(uid),
|
|
524
|
+
onSave: () => handleSave(uid)
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
});
|
|
528
|
+
}
|
|
372
529
|
};
|
|
373
|
-
const actions = array('Actions', ['Transfer', 'End conversation']).map(name => ({
|
|
374
|
-
primary: name,
|
|
375
|
-
id: name,
|
|
376
|
-
onClick: action(`Clicked ${name}`)
|
|
377
|
-
}));
|
|
378
|
-
const { create } = useContext(ModalManagerContext);
|
|
379
530
|
const emailsData = [
|
|
380
531
|
{
|
|
381
|
-
id:
|
|
532
|
+
id: 'item0',
|
|
382
533
|
timeStamp: '2021-01-05T09:12',
|
|
383
534
|
from: participants[0],
|
|
384
535
|
to: participants.slice(0, 2),
|
|
385
536
|
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Laura Stevens </div>',
|
|
386
537
|
unRead: true,
|
|
387
538
|
subject: 'Pause service',
|
|
388
|
-
suggestions: hideSuggestions ? undefined : mockSuggestedReplies,
|
|
539
|
+
suggestions: args.hideSuggestions ? undefined : mockSuggestedReplies,
|
|
389
540
|
attachments: [
|
|
390
541
|
{
|
|
391
|
-
id:
|
|
542
|
+
id: 'item_1_0',
|
|
392
543
|
value: 'https://pega.com/media/document.doc',
|
|
393
544
|
displayText: 'Policy document'
|
|
394
545
|
},
|
|
395
546
|
{
|
|
396
|
-
id:
|
|
547
|
+
id: 'item_1_1',
|
|
397
548
|
value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
|
|
398
549
|
displayText: 'E-Ticket'
|
|
399
550
|
}
|
|
@@ -406,7 +557,7 @@ export const EmailDemo = ({ hideSuggestions }) => {
|
|
|
406
557
|
})
|
|
407
558
|
},
|
|
408
559
|
{
|
|
409
|
-
id:
|
|
560
|
+
id: 'item1',
|
|
410
561
|
timeStamp: '2021-01-02T03:12',
|
|
411
562
|
from: participants[3],
|
|
412
563
|
to: participants.slice(2, 4),
|
|
@@ -415,41 +566,47 @@ export const EmailDemo = ({ hideSuggestions }) => {
|
|
|
415
566
|
subject: 'Pause service'
|
|
416
567
|
}
|
|
417
568
|
].map(emailData => {
|
|
418
|
-
const emailActionItems = emailDemoActions(
|
|
569
|
+
const emailActionItems = emailDemoActions(emailData.id, emailData.subject, createOrActivateComposer, false, emailData.body);
|
|
419
570
|
return {
|
|
420
571
|
...emailData,
|
|
421
|
-
onReply: id => {
|
|
422
|
-
|
|
572
|
+
onReply: (id) => {
|
|
573
|
+
createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
423
574
|
...baseComposerProps,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
575
|
+
data: {
|
|
576
|
+
...baseComposerProps.data,
|
|
577
|
+
responseType: 'reply',
|
|
578
|
+
subject: { value: `Re-${emailData.subject}` || '' }
|
|
579
|
+
},
|
|
580
|
+
externalValidator: handleExternalEntry
|
|
581
|
+
});
|
|
429
582
|
},
|
|
430
583
|
onForward: id => {
|
|
431
|
-
|
|
584
|
+
createOrActivateComposer(id, LaunchAction.FORWARD, {
|
|
432
585
|
...baseComposerProps,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
586
|
+
data: {
|
|
587
|
+
...baseComposerProps.data,
|
|
588
|
+
responseType: 'forward',
|
|
589
|
+
subject: { value: `Fw-${emailData.subject}` || '' }
|
|
590
|
+
},
|
|
591
|
+
externalValidator: handleExternalEntry
|
|
592
|
+
});
|
|
438
593
|
},
|
|
439
594
|
onSuggestionClick: (id, suggestionId) => {
|
|
440
595
|
const suggestion = emailData.suggestions?.find(item => item.id === suggestionId);
|
|
441
|
-
|
|
596
|
+
createOrActivateComposer(id, LaunchAction.SUGGESTION, {
|
|
442
597
|
...baseComposerProps,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
598
|
+
data: {
|
|
599
|
+
...baseComposerProps.data,
|
|
600
|
+
responseType: 'reply',
|
|
601
|
+
subject: { value: suggestion?.title || '' },
|
|
602
|
+
bodyContent: { defaultValue: suggestion ? suggestion.content : '' },
|
|
603
|
+
selectedTemplateId: suggestion?.id
|
|
604
|
+
},
|
|
605
|
+
externalValidator: handleExternalEntry
|
|
606
|
+
});
|
|
450
607
|
},
|
|
451
608
|
actions: emailActionItems,
|
|
452
|
-
tags: hideSuggestions
|
|
609
|
+
tags: args.hideSuggestions
|
|
453
610
|
? undefined
|
|
454
611
|
: {
|
|
455
612
|
items: ['Pause service', 'Lost or stolen'],
|
|
@@ -459,98 +616,252 @@ export const EmailDemo = ({ hideSuggestions }) => {
|
|
|
459
616
|
}
|
|
460
617
|
};
|
|
461
618
|
});
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
{
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
619
|
+
const DeleteDraft = ({ currentID }) => {
|
|
620
|
+
const { dismiss } = useModalContext();
|
|
621
|
+
return (<Modal heading='Delete draft?' actions={<>
|
|
622
|
+
<Button onClick={dismiss}>Go back</Button>
|
|
623
|
+
|
|
624
|
+
<Button variant='primary' onClick={() => {
|
|
625
|
+
dismiss();
|
|
626
|
+
setConversationEmails(prev => {
|
|
627
|
+
const newEmailConversation = [];
|
|
628
|
+
prev.forEach(arr => {
|
|
629
|
+
const newArr = arr.filter(index => index.id !== currentID);
|
|
630
|
+
if (newArr.length !== 0)
|
|
631
|
+
newEmailConversation.push(newArr);
|
|
632
|
+
});
|
|
633
|
+
return newEmailConversation;
|
|
634
|
+
});
|
|
635
|
+
}}>
|
|
636
|
+
Delete
|
|
637
|
+
</Button>
|
|
638
|
+
</>}>
|
|
639
|
+
<Text>Are you sure that you want to permanently delete the selected message?</Text>
|
|
640
|
+
</Modal>);
|
|
641
|
+
};
|
|
642
|
+
const deleteEmail = (id) => {
|
|
643
|
+
create(DeleteDraft, { currentID: id }, { alert: true });
|
|
644
|
+
};
|
|
645
|
+
useEffect(() => {
|
|
646
|
+
setConversationEmails([
|
|
647
|
+
[
|
|
648
|
+
{
|
|
649
|
+
...emailsData[1],
|
|
650
|
+
id: 'item0',
|
|
651
|
+
from: mailDeliverySystemEmail,
|
|
652
|
+
to: [supportTeamEmail],
|
|
653
|
+
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
|
|
654
|
+
banner: {
|
|
655
|
+
id: 'banner_1',
|
|
656
|
+
heading: 'Address not found ',
|
|
657
|
+
messages: [
|
|
658
|
+
'550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
onReply: undefined,
|
|
662
|
+
onForward: undefined
|
|
663
|
+
},
|
|
664
|
+
{ ...emailsData[1], unRead: false }
|
|
665
|
+
],
|
|
666
|
+
[
|
|
667
|
+
{
|
|
668
|
+
...emailsData[0],
|
|
669
|
+
id: 'item2',
|
|
670
|
+
status: 'draft',
|
|
671
|
+
onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
672
|
+
...baseComposerProps,
|
|
673
|
+
data: {
|
|
674
|
+
...baseComposerProps.data,
|
|
675
|
+
responseType: 'reply',
|
|
676
|
+
subject: { value: `Re-${emailsData[0].subject}` || '' },
|
|
677
|
+
bodyContent: { defaultValue: emailsData[0].body || '' }
|
|
678
|
+
}
|
|
679
|
+
}),
|
|
680
|
+
onDeleteDraft: (id) => deleteEmail(id),
|
|
681
|
+
onReply: undefined,
|
|
682
|
+
onForward: undefined,
|
|
683
|
+
suggestions: undefined,
|
|
684
|
+
unRead: false,
|
|
685
|
+
timeStamp: '2021-01-03T17:15',
|
|
686
|
+
from: mockEmails['Hugh Phillips'],
|
|
687
|
+
to: [mockEmails['Mystery Rey'], ...emailsData[0].to],
|
|
688
|
+
cc: [mockEmails['Adam Gillchrist']],
|
|
689
|
+
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
690
|
+
body: '<div>Hi, <br /> <br /><div>Sure, Our executive will come and check your connection in 24hrs. </div> <br />Regards, <br />Hugh Phillips </div>'
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
...emailsData[1],
|
|
694
|
+
id: 'item3',
|
|
695
|
+
status: 'draft',
|
|
696
|
+
onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
697
|
+
...baseComposerProps,
|
|
698
|
+
data: {
|
|
699
|
+
...baseComposerProps.data,
|
|
700
|
+
responseType: 'reply',
|
|
701
|
+
subject: { value: `Re-${emailsData[0].subject}` || '' },
|
|
702
|
+
bodyContent: { defaultValue: emailsData[0].body || '' }
|
|
703
|
+
}
|
|
704
|
+
}),
|
|
705
|
+
onDeleteDraft: (id) => deleteEmail(id),
|
|
706
|
+
onReply: undefined,
|
|
707
|
+
onForward: undefined,
|
|
708
|
+
suggestions: undefined,
|
|
709
|
+
unRead: false,
|
|
710
|
+
timeStamp: '2021-01-02T14:16',
|
|
711
|
+
from: mockEmails['Mystery Rey'],
|
|
712
|
+
to: [mockEmails['Hugh Phillips']],
|
|
713
|
+
body: '<div>Hi, <br /> <br /><div>Can you fix my internet connection. </div> <br /> <br />Regards, <br />Rey Mystery </div>'
|
|
493
714
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
715
|
+
],
|
|
716
|
+
[
|
|
717
|
+
{
|
|
718
|
+
...emailsData[0],
|
|
719
|
+
id: 'item4',
|
|
720
|
+
unRead: true,
|
|
721
|
+
timeStamp: '2020-12-05T18:18',
|
|
722
|
+
from: mockEmails['Laura Stevens'],
|
|
723
|
+
to: [mockEmails['Sara Davis']],
|
|
724
|
+
body: '<div>Hi, <br /> <br /><div>Sure, Our executive will call you shortly. </div> <br /> <br />Regards, <br />Laura Stevens </div>',
|
|
725
|
+
sentiment: {
|
|
726
|
+
variant: 'positive'
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
...emailsData[1],
|
|
731
|
+
id: 'item5',
|
|
732
|
+
unRead: true,
|
|
733
|
+
timeStamp: '2021-01-04T08:30',
|
|
734
|
+
from: mockEmails['Sara Davis'],
|
|
735
|
+
to: [mockEmails['Laura Stevens']],
|
|
736
|
+
body: '<div>Hi, <br /> <br /><div>Can you show please explain your new mobile plans. </div> <br /> <br />Regards, <br />Sara Davis </div>'
|
|
737
|
+
}
|
|
738
|
+
]
|
|
739
|
+
]);
|
|
740
|
+
}, []);
|
|
741
|
+
const emailConversations = conversationEmails.map((emails, i) => {
|
|
505
742
|
return {
|
|
506
|
-
from: generateEmailConversationParticipants(emails, ['from'])[0],
|
|
507
|
-
to: emails[0].to,
|
|
508
|
-
id:
|
|
743
|
+
from: i === 0 ? emails[1].from : generateEmailConversationParticipants(emails, ['from'])[0],
|
|
744
|
+
to: i === 0 ? emails[1].to : emails[0].to,
|
|
745
|
+
id: `item_${i}`,
|
|
509
746
|
timeStamp: emails[0].timeStamp,
|
|
510
747
|
unReadEmailCount: emails.filter(item => item.unRead).length,
|
|
511
748
|
emails,
|
|
512
749
|
sentiment: emails[0].sentiment,
|
|
513
750
|
isForwarded: i !== 2,
|
|
514
|
-
isCollapsed: i !== 0
|
|
751
|
+
isCollapsed: i !== 0,
|
|
752
|
+
drafts: i === 1,
|
|
753
|
+
undelivered: i === 0
|
|
515
754
|
};
|
|
516
755
|
});
|
|
517
756
|
const singleEmailConversation = [
|
|
518
757
|
{
|
|
519
758
|
from: generateEmailConversationParticipants(emailsData, ['from'])[0],
|
|
520
759
|
to: generateEmailConversationParticipants(emailsData, ['to']),
|
|
521
|
-
id:
|
|
760
|
+
id: 'item_0',
|
|
522
761
|
timeStamp: new Date(emailsData[0].timeStamp),
|
|
523
|
-
unReadEmailCount:
|
|
524
|
-
emails:
|
|
762
|
+
unReadEmailCount: 1,
|
|
763
|
+
emails: [
|
|
764
|
+
{
|
|
765
|
+
...emailsData[1],
|
|
766
|
+
id: 'item0',
|
|
767
|
+
from: mailDeliverySystemEmail,
|
|
768
|
+
to: [supportTeamEmail],
|
|
769
|
+
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
|
|
770
|
+
banner: {
|
|
771
|
+
id: 'banner_1',
|
|
772
|
+
heading: 'Address not found ',
|
|
773
|
+
messages: [
|
|
774
|
+
'550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
onReply: undefined,
|
|
778
|
+
onForward: undefined
|
|
779
|
+
},
|
|
780
|
+
{ ...emailsData[1], unRead: false }
|
|
781
|
+
]
|
|
525
782
|
}
|
|
526
783
|
];
|
|
527
|
-
return (
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
784
|
+
return (<>
|
|
785
|
+
<EmailShell headerProps={args.showHeader
|
|
786
|
+
? {
|
|
787
|
+
actions: (<Flex container={{
|
|
788
|
+
alignItems: 'center',
|
|
789
|
+
gap: 0
|
|
790
|
+
}}>
|
|
791
|
+
<Button variant='simple' icon>
|
|
792
|
+
<Icon name='filter'/>
|
|
793
|
+
</Button>
|
|
794
|
+
<MenuButton variant='simple' text='More actions' icon='more' iconOnly portal menu={{ items: actions }}/>
|
|
795
|
+
</Flex>),
|
|
796
|
+
subject: 'Pause service'
|
|
797
|
+
}
|
|
798
|
+
: undefined} autoCollapse={args.autoCollapse} conversations={args.singleConversation ? singleEmailConversation : emailConversations}/>
|
|
799
|
+
<>
|
|
800
|
+
{Object.keys(composersData).map(guid => {
|
|
801
|
+
return <EmailComposer key={guid} {...composersData[guid]}/>;
|
|
802
|
+
})}
|
|
803
|
+
</>
|
|
804
|
+
</>);
|
|
543
805
|
};
|
|
544
|
-
|
|
545
|
-
|
|
806
|
+
EmailShellDemo.args = {
|
|
807
|
+
autoCollapse: true,
|
|
808
|
+
hideSuggestions: false,
|
|
809
|
+
singleConversation: false,
|
|
810
|
+
showHeader: true
|
|
546
811
|
};
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
812
|
+
EmailShellDemo.argTypes = {
|
|
813
|
+
autoCollapse: { control: { type: 'boolean' } },
|
|
814
|
+
hideSuggestions: { control: { type: 'boolean' } },
|
|
815
|
+
singleConversation: { control: { type: 'boolean' } },
|
|
816
|
+
showHeader: { control: { type: 'boolean' } }
|
|
550
817
|
};
|
|
551
|
-
export const
|
|
552
|
-
const
|
|
553
|
-
|
|
818
|
+
export const EntityListDemo = (args) => {
|
|
819
|
+
const itemCounter = useRef(3);
|
|
820
|
+
const timeout = useRef(null);
|
|
821
|
+
const contextMenuHandle = useRef(null);
|
|
822
|
+
const headerProps = {
|
|
823
|
+
icon: 'list-number',
|
|
824
|
+
text: 'Entities'
|
|
825
|
+
};
|
|
826
|
+
const handleRightClick = (e) => {
|
|
827
|
+
action('onContextMenu')(e);
|
|
828
|
+
if (contextMenuHandle.current && args.enableContextMenu) {
|
|
829
|
+
itemCounter.current += 1;
|
|
830
|
+
const { setItems, setOpen, setLoading } = contextMenuHandle.current;
|
|
831
|
+
e.preventDefault();
|
|
832
|
+
setLoading(true);
|
|
833
|
+
setItems([]);
|
|
834
|
+
setOpen(true);
|
|
835
|
+
if (timeout.current) {
|
|
836
|
+
window.clearTimeout(timeout.current);
|
|
837
|
+
}
|
|
838
|
+
timeout.current = window.setTimeout(() => {
|
|
839
|
+
setItems(contextMenuItemsMock);
|
|
840
|
+
setLoading(false);
|
|
841
|
+
}, 1000);
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
useEffect(() => {
|
|
845
|
+
return () => {
|
|
846
|
+
if (timeout.current) {
|
|
847
|
+
window.clearTimeout(timeout.current);
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
}, []);
|
|
851
|
+
return (<EntityList header={headerProps} content={EntityListMockData} contextMenu={{
|
|
852
|
+
onItemClick: action('onItemClick'),
|
|
853
|
+
onContextMenu: args.onContextMenu || handleRightClick,
|
|
854
|
+
handle: contextMenuHandle
|
|
855
|
+
}}/>);
|
|
856
|
+
};
|
|
857
|
+
EntityListDemo.args = {
|
|
858
|
+
enableContextMenu: true
|
|
859
|
+
};
|
|
860
|
+
EntityListDemo.argTypes = {
|
|
861
|
+
enableContextMenu: { control: { type: 'boolean' } }
|
|
862
|
+
};
|
|
863
|
+
export const EmailSummaryItemDemo = (args) => {
|
|
864
|
+
return (<EmailSummaryItem id={createUID()} activeParticipants={[
|
|
554
865
|
{
|
|
555
866
|
shortName: 'Robert',
|
|
556
867
|
fullName: 'Robert Downer',
|
|
@@ -561,266 +872,24 @@ export const EmailSummaryItemDemo = () => {
|
|
|
561
872
|
fullName: 'Nathan Swanson',
|
|
562
873
|
emailAddress: 'nathan.swanson@example.com'
|
|
563
874
|
}
|
|
564
|
-
]} message='I have a quick question on traveling to India. How do I reach Hyderabad?' timeStamp={new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24))} topic='Missing Luggage' sentiment={sentiment} urgency={10} unreadEmailCount={
|
|
565
|
-
|
|
875
|
+
]} message='I have a quick question on traveling to India. How do I reach Hyderabad?' timeStamp={new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24))} topic='Missing Luggage' sentiment={sentiment} urgency={10} unreadEmailCount={args.unreadEmailCount} active={args.isActive} onSelect={(id) => {
|
|
876
|
+
action('onSelect')(id);
|
|
566
877
|
}}/>);
|
|
567
878
|
};
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
id: createUID(),
|
|
585
|
-
activeParticipants: [
|
|
586
|
-
{
|
|
587
|
-
shortName: 'Nathan',
|
|
588
|
-
fullName: 'Nathan Swanson',
|
|
589
|
-
emailAddress: 'nathan.swanson@example.com'
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
message: 'My luggage did not drive!',
|
|
593
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
594
|
-
topic: 'Missing Luggage',
|
|
595
|
-
sentiment,
|
|
596
|
-
urgency: 10,
|
|
597
|
-
unreadEmailCount: 2
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
id: createUID(),
|
|
601
|
-
activeParticipants: [
|
|
602
|
-
{ shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
|
|
603
|
-
],
|
|
604
|
-
message: 'Re: How much is a flight to Florida. Is there a discount going on?',
|
|
605
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
606
|
-
topic: 'Travel request',
|
|
607
|
-
sentiment,
|
|
608
|
-
urgency: 65,
|
|
609
|
-
unreadEmailCount: 1
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
id: createUID(),
|
|
613
|
-
activeParticipants: [
|
|
614
|
-
{ shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
|
|
615
|
-
],
|
|
616
|
-
message: 'Re: Should I purchase travel insurance? How often do we need it?',
|
|
617
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
618
|
-
topic: 'Travel request',
|
|
619
|
-
sentiment,
|
|
620
|
-
urgency: 85,
|
|
621
|
-
unreadEmailCount: 6
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
id: createUID(),
|
|
625
|
-
activeParticipants: [
|
|
626
|
-
{ shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
|
|
627
|
-
],
|
|
628
|
-
message: 'My next vacation',
|
|
629
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
630
|
-
topic: 'Travel request',
|
|
631
|
-
sentiment,
|
|
632
|
-
urgency: 45
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
id: createUID(),
|
|
636
|
-
activeParticipants: [
|
|
637
|
-
{ shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
|
|
638
|
-
{ shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
|
|
639
|
-
{ shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
|
|
640
|
-
],
|
|
641
|
-
message: 'Airport questions',
|
|
642
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
643
|
-
topic: 'Travel request',
|
|
644
|
-
sentiment,
|
|
645
|
-
urgency: 35
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
id: createUID(),
|
|
649
|
-
activeParticipants: [
|
|
650
|
-
{ shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
|
|
651
|
-
{ shortName: 'Robert', fullName: 'Robert ', emailAddress: 'robert.downey@example.com' }
|
|
652
|
-
],
|
|
653
|
-
message: 'I have a quick question on travel',
|
|
654
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
655
|
-
topic: 'Travel request',
|
|
656
|
-
sentiment,
|
|
657
|
-
urgency: 85
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
id: createUID(),
|
|
661
|
-
activeParticipants: [
|
|
662
|
-
{
|
|
663
|
-
shortName: 'Nathan',
|
|
664
|
-
fullName: 'Nathan Swanson',
|
|
665
|
-
emailAddress: 'nathan.swanson@example.com'
|
|
666
|
-
}
|
|
667
|
-
],
|
|
668
|
-
message: 'My luggage did not drive!',
|
|
669
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
670
|
-
topic: 'Missing Luggage',
|
|
671
|
-
sentiment,
|
|
672
|
-
urgency: 10
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
id: createUID(),
|
|
676
|
-
activeParticipants: [
|
|
677
|
-
{ shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
|
|
678
|
-
],
|
|
679
|
-
message: 'Re: How much is a flight to Florida',
|
|
680
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
681
|
-
topic: 'Travel request',
|
|
682
|
-
sentiment,
|
|
683
|
-
urgency: 65
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
id: createUID(),
|
|
687
|
-
activeParticipants: [
|
|
688
|
-
{ shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
|
|
689
|
-
],
|
|
690
|
-
message: 'Re: Should I purchase travel insurance',
|
|
691
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
692
|
-
topic: 'Travel request',
|
|
693
|
-
sentiment,
|
|
694
|
-
urgency: 85
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
id: createUID(),
|
|
698
|
-
activeParticipants: [
|
|
699
|
-
{ shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
|
|
700
|
-
],
|
|
701
|
-
message: 'My next vacation',
|
|
702
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
703
|
-
topic: 'Travel request',
|
|
704
|
-
sentiment,
|
|
705
|
-
urgency: 45
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
id: createUID(),
|
|
709
|
-
activeParticipants: [
|
|
710
|
-
{ shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
|
|
711
|
-
{ shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
|
|
712
|
-
{ shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
|
|
713
|
-
],
|
|
714
|
-
message: 'Airport questions',
|
|
715
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
716
|
-
topic: 'Travel request',
|
|
717
|
-
sentiment,
|
|
718
|
-
urgency: 35
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
id: createUID(),
|
|
722
|
-
activeParticipants: [
|
|
723
|
-
{ shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
|
|
724
|
-
{ shortName: 'Robert', fullName: 'Robert ', emailAddress: 'robert.downey@example.com' }
|
|
725
|
-
],
|
|
726
|
-
message: 'I have a quick question on travel',
|
|
727
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
728
|
-
topic: 'Travel request',
|
|
729
|
-
sentiment,
|
|
730
|
-
urgency: 85
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
id: createUID(),
|
|
734
|
-
activeParticipants: [
|
|
735
|
-
{
|
|
736
|
-
shortName: 'Nathan',
|
|
737
|
-
fullName: 'Nathan Swanson',
|
|
738
|
-
emailAddress: 'nathan.swanson@example.com'
|
|
739
|
-
}
|
|
740
|
-
],
|
|
741
|
-
message: 'My luggage did not drive!',
|
|
742
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
743
|
-
topic: 'Missing Luggage',
|
|
744
|
-
sentiment,
|
|
745
|
-
urgency: 10
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
id: createUID(),
|
|
749
|
-
activeParticipants: [
|
|
750
|
-
{ shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
|
|
751
|
-
],
|
|
752
|
-
message: 'Re: How much is a flight to Florida',
|
|
753
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
754
|
-
topic: 'Travel request',
|
|
755
|
-
sentiment,
|
|
756
|
-
urgency: 65
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
id: createUID(),
|
|
760
|
-
activeParticipants: [
|
|
761
|
-
{ shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
|
|
762
|
-
],
|
|
763
|
-
message: 'Re: Should I purchase travel insurance',
|
|
764
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
765
|
-
topic: 'Travel request',
|
|
766
|
-
sentiment,
|
|
767
|
-
urgency: 85
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
id: createUID(),
|
|
771
|
-
activeParticipants: [
|
|
772
|
-
{ shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
|
|
773
|
-
],
|
|
774
|
-
message: 'My next vacation',
|
|
775
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
776
|
-
topic: 'Travel request',
|
|
777
|
-
sentiment,
|
|
778
|
-
urgency: 45
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
id: createUID(),
|
|
782
|
-
activeParticipants: [
|
|
783
|
-
{ shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
|
|
784
|
-
{ shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
|
|
785
|
-
{ shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
|
|
786
|
-
],
|
|
787
|
-
message: 'Airport questions',
|
|
788
|
-
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
789
|
-
topic: 'Travel request',
|
|
790
|
-
sentiment,
|
|
791
|
-
urgency: 35
|
|
792
|
-
}
|
|
793
|
-
];
|
|
794
|
-
export const EmailSummaryListDemo = () => {
|
|
795
|
-
const emailSummaryListRef = useRef(null);
|
|
796
|
-
const [allEmailItems, setAllEmailItems] = useState(emailSummaryItems);
|
|
797
|
-
const [categories, setCategories] = useState([
|
|
798
|
-
{
|
|
799
|
-
id: createUID(),
|
|
800
|
-
primary: 'Default worklist',
|
|
801
|
-
selected: false
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
id: createUID(),
|
|
805
|
-
primary: 'Authors',
|
|
806
|
-
selected: false
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
id: createUID(),
|
|
810
|
-
primary: 'Administrators',
|
|
811
|
-
selected: false
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
id: createUID(),
|
|
815
|
-
primary: 'Managers',
|
|
816
|
-
selected: false
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
id: createUID(),
|
|
820
|
-
primary: 'Users',
|
|
821
|
-
selected: false
|
|
822
|
-
}
|
|
823
|
-
]);
|
|
879
|
+
EmailSummaryItemDemo.args = {
|
|
880
|
+
unreadEmailCount: 0,
|
|
881
|
+
isActive: false
|
|
882
|
+
};
|
|
883
|
+
EmailSummaryItemDemo.argTypes = {
|
|
884
|
+
unreadEmailCount: { control: { type: 'number' } },
|
|
885
|
+
isActive: { control: { type: 'boolean' } }
|
|
886
|
+
};
|
|
887
|
+
export const EmailSummaryListDemo = (args) => {
|
|
888
|
+
const INITIAL_CHUNK_SIZE = 9;
|
|
889
|
+
const APPEND_CHUNK_SIZE = 1;
|
|
890
|
+
const [allEmailItems, setAllEmailItems] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
|
|
891
|
+
const [categories, setCategories] = useState(emailWorklistItemsMock);
|
|
892
|
+
const [currentItemId, setCurrentItemId] = useState(emailSummaryItems[0].id);
|
|
824
893
|
const handleItemClick = (id) => {
|
|
825
894
|
const index = allEmailItems.findIndex(emailItem => {
|
|
826
895
|
return emailItem.id === id;
|
|
@@ -828,13 +897,160 @@ export const EmailSummaryListDemo = () => {
|
|
|
828
897
|
const newEmailItems = [...allEmailItems];
|
|
829
898
|
newEmailItems.splice(index, 1, { ...allEmailItems[index], unreadEmailCount: 0 });
|
|
830
899
|
setAllEmailItems(newEmailItems);
|
|
900
|
+
setCurrentItemId(id);
|
|
831
901
|
};
|
|
832
902
|
const onCategoryClick = (id) => {
|
|
833
903
|
setCategories(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
|
|
834
904
|
};
|
|
835
|
-
|
|
905
|
+
const [loading, setLoading] = useState(false);
|
|
906
|
+
const [hasMore, setHasMore] = useState(true);
|
|
907
|
+
const loadMore = useCallback(() => {
|
|
908
|
+
if (!loading) {
|
|
909
|
+
setLoading(true);
|
|
910
|
+
setTimeout(() => {
|
|
911
|
+
setLoading(false);
|
|
912
|
+
setAllEmailItems(prevItems => {
|
|
913
|
+
const previousItemsLength = prevItems.length;
|
|
914
|
+
const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
|
|
915
|
+
if (newItems.length === 0) {
|
|
916
|
+
setHasMore(false);
|
|
917
|
+
}
|
|
918
|
+
return [...prevItems, ...newItems];
|
|
919
|
+
});
|
|
920
|
+
}, 1500);
|
|
921
|
+
}
|
|
922
|
+
}, [loading]);
|
|
923
|
+
return (<EmailSummaryList unreadEmailCount={99} categories={categories} items={args.items || allEmailItems} onItemClick={args.onItemClick || handleItemClick} onCategoryClick={onCategoryClick} onLoadMore={args.onLoadMore || (hasMore ? loadMore : undefined)} loading={args.loading || loading} emptyMessage='No emails.' currentItemId={args.currentItemId || currentItemId}/>);
|
|
924
|
+
};
|
|
925
|
+
export const EmailCaseViewDemo = (args) => {
|
|
926
|
+
const content = <EmailShellDemo />;
|
|
927
|
+
const utilities = (<Grid container={{ rowGap: 2 }}>
|
|
928
|
+
<EntityListDemo />
|
|
929
|
+
<Card>
|
|
930
|
+
<CardHeader container={{ alignItems: 'center', gap: 1 }}>
|
|
931
|
+
<Icon name='document-doc'/>
|
|
932
|
+
<Text variant='h3'>Email header</Text>
|
|
933
|
+
</CardHeader>
|
|
934
|
+
<CardContent>
|
|
935
|
+
<FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
|
|
936
|
+
</CardContent>
|
|
937
|
+
</Card>
|
|
938
|
+
<SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
|
|
939
|
+
...items,
|
|
940
|
+
primary: <StyledLabel>{items.primary}</StyledLabel>,
|
|
941
|
+
secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
|
|
942
|
+
<Text variant='primary'>{items.secondary.indicator}</Text>
|
|
943
|
+
<StyledLabel>{items.secondary.value}</StyledLabel>
|
|
944
|
+
</Flex>)
|
|
945
|
+
}))} noItemsText='No items'/>
|
|
946
|
+
</Grid>);
|
|
947
|
+
return (<AppShellDemo appHeader main={<EmailCaseView header={args.showHeader
|
|
948
|
+
? {
|
|
949
|
+
icon: 'mail',
|
|
950
|
+
title: 'ET-5432'
|
|
951
|
+
}
|
|
952
|
+
: undefined} banners={args.showBanners && (<Banner id='error' variant='urgent' heading='Error' messages={['Your email could not be delivered due to poor network connection.']}/>)} content={content} utilities={!args.noUtilityView && utilities} utilitiesSummaryItems={!args.noUtilityView
|
|
953
|
+
? [
|
|
954
|
+
{ iconName: 'list-number', count: 7 },
|
|
955
|
+
{ iconName: 'document-doc', count: 1 },
|
|
956
|
+
{ iconName: 'headline', count: 4 }
|
|
957
|
+
]
|
|
958
|
+
: undefined} defaultUtilitiesExpanded/>}/>);
|
|
959
|
+
};
|
|
960
|
+
EmailCaseViewDemo.args = {
|
|
961
|
+
showBanners: false,
|
|
962
|
+
noUtilityView: false,
|
|
963
|
+
showHeader: true
|
|
964
|
+
};
|
|
965
|
+
EmailCaseViewDemo.argTypes = {
|
|
966
|
+
showBanners: { control: { type: 'boolean' } },
|
|
967
|
+
noUtilityView: { control: { type: 'boolean' } },
|
|
968
|
+
showHeader: { control: { type: 'boolean' } }
|
|
969
|
+
};
|
|
970
|
+
EmailCaseViewDemo.parameters = {
|
|
971
|
+
layout: 'fullscreen'
|
|
972
|
+
};
|
|
973
|
+
export const EmailManagerAppShell = (args) => {
|
|
974
|
+
const INITIAL_CHUNK_SIZE = 9;
|
|
975
|
+
const APPEND_CHUNK_SIZE = 1;
|
|
976
|
+
const [emailList, setEmailList] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
|
|
977
|
+
const [loading, setLoading] = useState(false);
|
|
978
|
+
const [hasMore, setHasMore] = useState(true);
|
|
979
|
+
const handleEmailItemClick = (id) => {
|
|
980
|
+
const index = emailList.findIndex(emailItem => {
|
|
981
|
+
return emailItem.id === id;
|
|
982
|
+
});
|
|
983
|
+
const newEmailList = [...emailList];
|
|
984
|
+
newEmailList.splice(index, 1, { ...emailList[index], unreadEmailCount: 0 });
|
|
985
|
+
setEmailList(newEmailList);
|
|
986
|
+
};
|
|
987
|
+
const onLoadMore = useCallback(() => {
|
|
988
|
+
if (!loading) {
|
|
989
|
+
setLoading(true);
|
|
990
|
+
setTimeout(() => {
|
|
991
|
+
setLoading(false);
|
|
992
|
+
setEmailList(prevItems => {
|
|
993
|
+
const previousItemsLength = prevItems.length;
|
|
994
|
+
const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
|
|
995
|
+
if (newItems.length === 0) {
|
|
996
|
+
setHasMore(false);
|
|
997
|
+
}
|
|
998
|
+
return [...prevItems, ...newItems];
|
|
999
|
+
});
|
|
1000
|
+
}, 1500);
|
|
1001
|
+
}
|
|
1002
|
+
}, [loading]);
|
|
1003
|
+
const utilities = (<Grid container={{ rowGap: 2 }}>
|
|
1004
|
+
<EntityListDemo />
|
|
1005
|
+
<Card>
|
|
1006
|
+
<CardHeader container={{ alignItems: 'center', gap: 1 }}>
|
|
1007
|
+
<Icon name='document-doc'/>
|
|
1008
|
+
<Text variant='h3'>Email header</Text>
|
|
1009
|
+
</CardHeader>
|
|
1010
|
+
<CardContent>
|
|
1011
|
+
<FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
|
|
1012
|
+
</CardContent>
|
|
1013
|
+
</Card>
|
|
1014
|
+
<SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
|
|
1015
|
+
...items,
|
|
1016
|
+
primary: <StyledLabel>{items.primary}</StyledLabel>,
|
|
1017
|
+
secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
|
|
1018
|
+
<Text variant='primary'>{items.secondary.indicator}</Text>
|
|
1019
|
+
<StyledLabel>{items.secondary.value}</StyledLabel>
|
|
1020
|
+
</Flex>)
|
|
1021
|
+
}))} noItemsText='No items'/>
|
|
1022
|
+
</Grid>);
|
|
1023
|
+
const content = <EmailShellDemo showHeader={false}/>;
|
|
1024
|
+
return (<AppShellDemo appHeader main={<EmailManager header={args.showHeader
|
|
1025
|
+
? {
|
|
1026
|
+
icon: 'mail',
|
|
1027
|
+
title: 'Inbox'
|
|
1028
|
+
}
|
|
1029
|
+
: undefined} list={<EmailSummaryListDemo onItemClick={handleEmailItemClick} items={emailList} onLoadMore={hasMore ? onLoadMore : undefined} loading={loading}/>} emailCaseDetails={!args.showEmptyView && (<EmailCaseView banners={args.showCaseViewBanners && (<Banner id='error' variant='urgent' heading='Error' messages={[
|
|
1030
|
+
'Your email could not be delivered due to poor network connection.'
|
|
1031
|
+
]}/>)} content={content} utilities={args.showUtilities && utilities} utilitiesSummaryItems={args.showUtilities
|
|
1032
|
+
? [
|
|
1033
|
+
{ iconName: 'list-number', count: 7 },
|
|
1034
|
+
{ iconName: 'document-doc', count: 1 },
|
|
1035
|
+
{ iconName: 'headline', count: 4 }
|
|
1036
|
+
]
|
|
1037
|
+
: undefined} defaultUtilitiesExpanded={false}/>)}/>}/>);
|
|
1038
|
+
};
|
|
1039
|
+
EmailManagerAppShell.args = {
|
|
1040
|
+
enableContextMenu: true,
|
|
1041
|
+
showEmptyView: false,
|
|
1042
|
+
showHeader: true,
|
|
1043
|
+
showCaseViewBanners: false,
|
|
1044
|
+
showUtilities: true
|
|
1045
|
+
};
|
|
1046
|
+
EmailManagerAppShell.argTypes = {
|
|
1047
|
+
enableContextMenu: { control: { type: 'boolean' } },
|
|
1048
|
+
showEmptyView: { control: { type: 'boolean' } },
|
|
1049
|
+
showHeader: { control: { type: 'boolean' } },
|
|
1050
|
+
showCaseViewBanners: { control: { type: 'boolean' } },
|
|
1051
|
+
showUtilities: { control: { type: 'boolean' } }
|
|
836
1052
|
};
|
|
837
|
-
|
|
1053
|
+
EmailManagerAppShell.parameters = {
|
|
838
1054
|
layout: 'fullscreen'
|
|
839
1055
|
};
|
|
840
1056
|
//# sourceMappingURL=Email.stories.jsx.map
|