@pega/cosmos-react-demos 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +185 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts +8 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -0
- package/lib/build/AppHeader/AppHeader.stories.jsx +65 -0
- package/lib/build/AppHeader/AppHeader.stories.jsx.map +1 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts +50 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/build/AppShell/AppShell.mocks.js +503 -0
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -0
- package/lib/build/AppShell/AppShell.stories.d.ts +12 -0
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/build/AppShell/AppShell.stories.jsx +194 -0
- package/lib/build/AppShell/AppShell.stories.jsx.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +45 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js +291 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +9 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.js +411 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +12 -0
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.stories.jsx +214 -0
- package/lib/build/FlowModeller/FlowModeller.stories.jsx.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +201 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js +1128 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +11 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.jsx +491 -0
- package/lib/build/LifeCycle/LifeCycle.stories.jsx.map +1 -0
- package/lib/build/LifeCycle/utils.d.ts +65 -0
- package/lib/build/LifeCycle/utils.d.ts.map +1 -0
- package/lib/build/LifeCycle/utils.js +218 -0
- package/lib/build/LifeCycle/utils.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +12 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.jsx +126 -0
- package/lib/build/PageTemplates/GalleryPage.stories.jsx.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +26 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.jsx +434 -0
- package/lib/build/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/lib/build/Workbench/Workbench.mocks.d.ts +9 -0
- package/lib/build/Workbench/Workbench.mocks.d.ts.map +1 -0
- package/lib/build/Workbench/Workbench.mocks.js +67 -0
- package/lib/build/Workbench/Workbench.mocks.js.map +1 -0
- package/lib/build/Workbench/Workbench.stories.d.ts +10 -0
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -0
- package/lib/build/Workbench/Workbench.stories.jsx +124 -0
- package/lib/build/Workbench/Workbench.stories.jsx.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +10 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +263 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts +6 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js +113 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts +15 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.jsx +147 -0
- package/lib/core/AppShell/AppShell.mocks.jsx.map +1 -0
- package/lib/core/AppShell/AppShell.stories.d.ts +31 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.stories.jsx +222 -0
- package/lib/core/AppShell/AppShell.stories.jsx.map +1 -0
- package/lib/core/AppShell/AppShell.styles.d.ts +2 -0
- package/lib/core/AppShell/AppShell.styles.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.styles.js +5 -0
- package/lib/core/AppShell/AppShell.styles.js.map +1 -0
- package/lib/core/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -0
- package/lib/core/Avatar/Avatar.stories.jsx +50 -0
- package/lib/core/Avatar/Avatar.stories.jsx.map +1 -0
- package/lib/core/Backdrop/Backdrop.stories.d.ts +7 -0
- package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -0
- package/lib/core/Backdrop/Backdrop.stories.jsx +43 -0
- package/lib/core/Backdrop/Backdrop.stories.jsx.map +1 -0
- package/lib/core/Badges/Alert.stories.d.ts +6 -0
- package/lib/core/Badges/Alert.stories.d.ts.map +1 -0
- package/lib/core/Badges/Alert.stories.jsx +15 -0
- package/lib/core/Badges/Alert.stories.jsx.map +1 -0
- package/lib/core/Badges/Count.stories.d.ts +6 -0
- package/lib/core/Badges/Count.stories.d.ts.map +1 -0
- package/lib/core/Badges/Count.stories.jsx +20 -0
- package/lib/core/Badges/Count.stories.jsx.map +1 -0
- package/lib/core/Badges/Selection.stories.d.ts +6 -0
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -0
- package/lib/core/Badges/Selection.stories.jsx +9 -0
- package/lib/core/Badges/Selection.stories.jsx.map +1 -0
- package/lib/core/Badges/Status.stories.d.ts +6 -0
- package/lib/core/Badges/Status.stories.d.ts.map +1 -0
- package/lib/core/Badges/Status.stories.jsx +18 -0
- package/lib/core/Badges/Status.stories.jsx.map +1 -0
- package/lib/core/Badges/Tag.stories.d.ts +6 -0
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -0
- package/lib/core/Badges/Tag.stories.jsx +9 -0
- package/lib/core/Badges/Tag.stories.jsx.map +1 -0
- package/lib/core/Banner/Banner.stories.d.ts +22 -0
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -0
- package/lib/core/Banner/Banner.stories.jsx +125 -0
- package/lib/core/Banner/Banner.stories.jsx.map +1 -0
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts +6 -0
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -0
- package/lib/core/Boolean/BooleanDisplay.stories.jsx +19 -0
- package/lib/core/Boolean/BooleanDisplay.stories.jsx.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.jsx +29 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js +12 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js.map +1 -0
- package/lib/core/Button/Button.stories.d.ts +12 -0
- package/lib/core/Button/Button.stories.d.ts.map +1 -0
- package/lib/core/Button/Button.stories.jsx +103 -0
- package/lib/core/Button/Button.stories.jsx.map +1 -0
- package/lib/core/Card/Card.stories.d.ts +8 -0
- package/lib/core/Card/Card.stories.d.ts.map +1 -0
- package/lib/core/Card/Card.stories.jsx +55 -0
- package/lib/core/Card/Card.stories.jsx.map +1 -0
- package/lib/core/Card/Card.styles.d.ts +2 -0
- package/lib/core/Card/Card.styles.d.ts.map +1 -0
- package/lib/core/Card/Card.styles.js +5 -0
- package/lib/core/Card/Card.styles.js.map +1 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts +7 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/lib/core/Checkbox/Checkbox.stories.jsx +28 -0
- package/lib/core/Checkbox/Checkbox.stories.jsx.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.jsx +60 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js +9 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +8 -0
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.stories.jsx +91 -0
- package/lib/core/ColorPicker/ColorPicker.stories.jsx.map +1 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +24 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -0
- package/lib/core/ComboBox/ComboBox.mocks.js +54 -0
- package/lib/core/ComboBox/ComboBox.mocks.js.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts +21 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.jsx +323 -0
- package/lib/core/ComboBox/ComboBox.stories.jsx.map +1 -0
- package/lib/core/Configuration/Configuration.stories.d.ts +10 -0
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.stories.jsx +125 -0
- package/lib/core/Configuration/Configuration.stories.jsx.map +1 -0
- package/lib/core/Currency/Currency.stories.d.ts +11 -0
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -0
- package/lib/core/Currency/Currency.stories.jsx +65 -0
- package/lib/core/Currency/Currency.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTime.stories.d.ts +20 -0
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTime.stories.jsx +127 -0
- package/lib/core/DateTime/DateTime.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +7 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.jsx +46 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTimePicker.stories.d.ts +7 -0
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTimePicker.stories.jsx +34 -0
- package/lib/core/DateTime/DateTimePicker.stories.jsx.map +1 -0
- package/lib/core/Drawer/Drawer.stories.d.ts +7 -0
- package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -0
- package/lib/core/Drawer/Drawer.stories.jsx +98 -0
- package/lib/core/Drawer/Drawer.stories.jsx.map +1 -0
- package/lib/core/Drawer/Drawer.styles.d.ts +2 -0
- package/lib/core/Drawer/Drawer.styles.d.ts.map +1 -0
- package/lib/core/Drawer/Drawer.styles.js +11 -0
- package/lib/core/Drawer/Drawer.styles.js.map +1 -0
- package/lib/core/Email/EmailDisplay.stories.d.ts +6 -0
- package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -0
- package/lib/core/Email/EmailDisplay.stories.jsx +19 -0
- package/lib/core/Email/EmailDisplay.stories.jsx.map +1 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +8 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.jsx +52 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -0
- package/lib/core/EmptyState/EmptyState.stories.d.ts +6 -0
- package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/lib/core/EmptyState/EmptyState.stories.jsx +18 -0
- package/lib/core/EmptyState/EmptyState.stories.jsx.map +1 -0
- package/lib/core/ErrorState/ErrorState.stories.d.ts +9 -0
- package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -0
- package/lib/core/ErrorState/ErrorState.stories.jsx +20 -0
- package/lib/core/ErrorState/ErrorState.stories.jsx.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +7 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.jsx +73 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts +4 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js +12 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js.map +1 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +11 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -0
- package/lib/core/FieldGroup/FieldGroup.stories.jsx +52 -0
- package/lib/core/FieldGroup/FieldGroup.stories.jsx.map +1 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +10 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.jsx +183 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +10 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.jsx +54 -0
- package/lib/core/FieldValueList/FieldValueList.stories.jsx.map +1 -0
- package/lib/core/File/FileDisplay.stories.d.ts +13 -0
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -0
- package/lib/core/File/FileDisplay.stories.jsx +100 -0
- package/lib/core/File/FileDisplay.stories.jsx.map +1 -0
- package/lib/core/File/FileInput.stories.d.ts +9 -0
- package/lib/core/File/FileInput.stories.d.ts.map +1 -0
- package/lib/core/File/FileInput.stories.jsx +76 -0
- package/lib/core/File/FileInput.stories.jsx.map +1 -0
- package/lib/core/Flex/Flex.styles.d.ts +10 -0
- package/lib/core/Flex/Flex.styles.d.ts.map +1 -0
- package/lib/core/Flex/Flex.styles.js +41 -0
- package/lib/core/Flex/Flex.styles.js.map +1 -0
- package/lib/core/Flex/FlexContainer.stories.d.ts +20 -0
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -0
- package/lib/core/Flex/FlexContainer.stories.jsx +151 -0
- package/lib/core/Flex/FlexContainer.stories.jsx.map +1 -0
- package/lib/core/Flex/FlexItem.stories.d.ts +13 -0
- package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -0
- package/lib/core/Flex/FlexItem.stories.jsx +71 -0
- package/lib/core/Flex/FlexItem.stories.jsx.map +1 -0
- package/lib/core/Form/Form.stories.d.ts +21 -0
- package/lib/core/Form/Form.stories.d.ts.map +1 -0
- package/lib/core/Form/Form.stories.jsx +196 -0
- package/lib/core/Form/Form.stories.jsx.map +1 -0
- package/lib/core/Grid/Grid.styles.d.ts +6 -0
- package/lib/core/Grid/Grid.styles.d.ts.map +1 -0
- package/lib/core/Grid/Grid.styles.js +36 -0
- package/lib/core/Grid/Grid.styles.js.map +1 -0
- package/lib/core/Grid/GridContainer.stories.d.ts +23 -0
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -0
- package/lib/core/Grid/GridContainer.stories.jsx +161 -0
- package/lib/core/Grid/GridContainer.stories.jsx.map +1 -0
- package/lib/core/Grid/GridItem.stories.d.ts +13 -0
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -0
- package/lib/core/Grid/GridItem.stories.jsx +74 -0
- package/lib/core/Grid/GridItem.stories.jsx.map +1 -0
- package/lib/core/Icon/Icon.stories.d.ts +8 -0
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -0
- package/lib/core/Icon/Icon.stories.jsx +84 -0
- package/lib/core/Icon/Icon.stories.jsx.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts +6 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.jsx +39 -0
- package/lib/core/IconPicker/IconPicker.stories.jsx.map +1 -0
- package/lib/core/Image/Image.stories.d.ts +6 -0
- package/lib/core/Image/Image.stories.d.ts.map +1 -0
- package/lib/core/Image/Image.stories.jsx +9 -0
- package/lib/core/Image/Image.stories.jsx.map +1 -0
- package/lib/core/Input/Input.stories.d.ts +9 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -0
- package/lib/core/Input/Input.stories.jsx +44 -0
- package/lib/core/Input/Input.stories.jsx.map +1 -0
- package/lib/core/Label/Label.stories.d.ts +6 -0
- package/lib/core/Label/Label.stories.d.ts.map +1 -0
- package/lib/core/Label/Label.stories.jsx +15 -0
- package/lib/core/Label/Label.stories.jsx.map +1 -0
- package/lib/core/Lightbox/Lightbox.stories.d.ts +9 -0
- package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -0
- package/lib/core/Lightbox/Lightbox.stories.jsx +106 -0
- package/lib/core/Lightbox/Lightbox.stories.jsx.map +1 -0
- package/lib/core/Link/Link.stories.d.ts +8 -0
- package/lib/core/Link/Link.stories.d.ts.map +1 -0
- package/lib/core/Link/Link.stories.jsx +32 -0
- package/lib/core/Link/Link.stories.jsx.map +1 -0
- package/lib/core/List/CommaSeparatedList.stories.d.ts +6 -0
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -0
- package/lib/core/List/CommaSeparatedList.stories.jsx +33 -0
- package/lib/core/List/CommaSeparatedList.stories.jsx.map +1 -0
- package/lib/core/List/OrderedList.stories.d.ts +10 -0
- package/lib/core/List/OrderedList.stories.d.ts.map +1 -0
- package/lib/core/List/OrderedList.stories.jsx +38 -0
- package/lib/core/List/OrderedList.stories.jsx.map +1 -0
- package/lib/core/List/UnorderedList.stories.d.ts +10 -0
- package/lib/core/List/UnorderedList.stories.d.ts.map +1 -0
- package/lib/core/List/UnorderedList.stories.jsx +38 -0
- package/lib/core/List/UnorderedList.stories.jsx.map +1 -0
- package/lib/core/Location/Location.stories.d.ts +12 -0
- package/lib/core/Location/Location.stories.d.ts.map +1 -0
- package/lib/core/Location/Location.stories.jsx +130 -0
- package/lib/core/Location/Location.stories.jsx.map +1 -0
- package/lib/core/Menu/Menu.mocks.d.ts +4 -0
- package/lib/core/Menu/Menu.mocks.d.ts.map +1 -0
- package/lib/core/Menu/Menu.mocks.js +179 -0
- package/lib/core/Menu/Menu.mocks.js.map +1 -0
- package/lib/core/Menu/Menu.stories.d.ts +17 -0
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -0
- package/lib/core/Menu/Menu.stories.jsx +166 -0
- package/lib/core/Menu/Menu.stories.jsx.map +1 -0
- package/lib/core/Menu/Menu.styles.d.ts +2 -0
- package/lib/core/Menu/Menu.styles.d.ts.map +1 -0
- package/lib/core/Menu/Menu.styles.js +6 -0
- package/lib/core/Menu/Menu.styles.js.map +1 -0
- package/lib/core/MenuButton/MenuButton.stories.d.ts +15 -0
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -0
- package/lib/core/MenuButton/MenuButton.stories.jsx +188 -0
- package/lib/core/MenuButton/MenuButton.stories.jsx.map +1 -0
- package/lib/core/MetaList/MetaList.stories.d.ts +9 -0
- package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -0
- package/lib/core/MetaList/MetaList.stories.jsx +24 -0
- package/lib/core/MetaList/MetaList.stories.jsx.map +1 -0
- package/lib/core/Modal/Modal.mocks.d.ts +4 -0
- package/lib/core/Modal/Modal.mocks.d.ts.map +1 -0
- package/lib/core/Modal/Modal.mocks.jsx +44 -0
- package/lib/core/Modal/Modal.mocks.jsx.map +1 -0
- package/lib/core/Modal/Modal.stories.d.ts +20 -0
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -0
- package/lib/core/Modal/Modal.stories.jsx +305 -0
- package/lib/core/Modal/Modal.stories.jsx.map +1 -0
- package/lib/core/MultiStep/MultiStep.stories.d.ts +6 -0
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -0
- package/lib/core/MultiStep/MultiStep.stories.jsx +56 -0
- package/lib/core/MultiStep/MultiStep.stories.jsx.map +1 -0
- package/lib/core/Number/Number.stories.d.ts +13 -0
- package/lib/core/Number/Number.stories.d.ts.map +1 -0
- package/lib/core/Number/Number.stories.jsx +110 -0
- package/lib/core/Number/Number.stories.jsx.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +3 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.js +10 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.js.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +28 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.stories.jsx +233 -0
- package/lib/core/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +4 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js +31 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -0
- package/lib/core/Pagination/Pagination.stories.d.ts +6 -0
- package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -0
- package/lib/core/Pagination/Pagination.stories.jsx +19 -0
- package/lib/core/Pagination/Pagination.stories.jsx.map +1 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +6 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.jsx +12 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -0
- package/lib/core/Phone/Phone.stories.d.ts +7 -0
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -0
- package/lib/core/Phone/Phone.stories.jsx +42 -0
- package/lib/core/Phone/Phone.stories.jsx.map +1 -0
- package/lib/core/Popover/Popover.stories.d.ts +8 -0
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -0
- package/lib/core/Popover/Popover.stories.jsx +184 -0
- package/lib/core/Popover/Popover.stories.jsx.map +1 -0
- package/lib/core/Progress/Progress.stories.d.ts +7 -0
- package/lib/core/Progress/Progress.stories.d.ts.map +1 -0
- package/lib/core/Progress/Progress.stories.jsx +71 -0
- package/lib/core/Progress/Progress.stories.jsx.map +1 -0
- package/lib/core/Progress/Progress.styles.d.ts +2 -0
- package/lib/core/Progress/Progress.styles.d.ts.map +1 -0
- package/lib/core/Progress/Progress.styles.js +13 -0
- package/lib/core/Progress/Progress.styles.js.map +1 -0
- package/lib/core/RadioButton/RadioButton.stories.d.ts +7 -0
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -0
- package/lib/core/RadioButton/RadioButton.stories.jsx +26 -0
- package/lib/core/RadioButton/RadioButton.stories.jsx.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +62 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +4 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js +9 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +1 -0
- package/lib/core/Rating/Rating.stories.d.ts +6 -0
- package/lib/core/Rating/Rating.stories.d.ts.map +1 -0
- package/lib/core/Rating/Rating.stories.jsx +21 -0
- package/lib/core/Rating/Rating.stories.jsx.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +6 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.jsx +15 -0
- package/lib/core/SearchInput/SearchInput.stories.jsx.map +1 -0
- package/lib/core/Select/Select.stories.d.ts +9 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -0
- package/lib/core/Select/Select.stories.jsx +42 -0
- package/lib/core/Select/Select.stories.jsx.map +1 -0
- package/lib/core/Sentiment/Sentiment.stories.d.ts +14 -0
- package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -0
- package/lib/core/Sentiment/Sentiment.stories.jsx +39 -0
- package/lib/core/Sentiment/Sentiment.stories.jsx.map +1 -0
- package/lib/core/Slider/Slider.stories.d.ts +11 -0
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -0
- package/lib/core/Slider/Slider.stories.jsx +58 -0
- package/lib/core/Slider/Slider.stories.jsx.map +1 -0
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +11 -0
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -0
- package/lib/core/SummaryItem/SummaryItem.stories.jsx +36 -0
- package/lib/core/SummaryItem/SummaryItem.stories.jsx.map +1 -0
- package/lib/core/SummaryList/SummaryList.mocks.d.ts +32 -0
- package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -0
- package/lib/core/SummaryList/SummaryList.mocks.jsx +35 -0
- package/lib/core/SummaryList/SummaryList.mocks.jsx.map +1 -0
- package/lib/core/SummaryList/SummaryList.stories.d.ts +13 -0
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -0
- package/lib/core/SummaryList/SummaryList.stories.jsx +131 -0
- package/lib/core/SummaryList/SummaryList.stories.jsx.map +1 -0
- package/lib/core/Switch/Switch.stories.d.ts +7 -0
- package/lib/core/Switch/Switch.stories.d.ts.map +1 -0
- package/lib/core/Switch/Switch.stories.jsx +26 -0
- package/lib/core/Switch/Switch.stories.jsx.map +1 -0
- package/lib/core/Switch/Switch.styles.d.ts +2 -0
- package/lib/core/Switch/Switch.styles.d.ts.map +1 -0
- package/lib/core/Switch/Switch.styles.js +13 -0
- package/lib/core/Switch/Switch.styles.js.map +1 -0
- package/lib/core/Table/Table.mocks.d.ts +19 -0
- package/lib/core/Table/Table.mocks.d.ts.map +1 -0
- package/lib/core/Table/Table.mocks.jsx +32 -0
- package/lib/core/Table/Table.mocks.jsx.map +1 -0
- package/lib/core/Table/Table.stories.d.ts +14 -0
- package/lib/core/Table/Table.stories.d.ts.map +1 -0
- package/lib/core/Table/Table.stories.jsx +58 -0
- package/lib/core/Table/Table.stories.jsx.map +1 -0
- package/lib/core/Table/Table.styles.d.ts +4 -0
- package/lib/core/Table/Table.styles.d.ts.map +1 -0
- package/lib/core/Table/Table.styles.js +9 -0
- package/lib/core/Table/Table.styles.js.map +1 -0
- package/lib/core/Tabs/Tabs.stories.d.ts +7 -0
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -0
- package/lib/core/Tabs/Tabs.stories.jsx +59 -0
- package/lib/core/Tabs/Tabs.stories.jsx.map +1 -0
- package/lib/core/Text/Text.stories.d.ts +6 -0
- package/lib/core/Text/Text.stories.d.ts.map +1 -0
- package/lib/core/Text/Text.stories.jsx +22 -0
- package/lib/core/Text/Text.stories.jsx.map +1 -0
- package/lib/core/TextArea/TextArea.stories.d.ts +6 -0
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -0
- package/lib/core/TextArea/TextArea.stories.jsx +43 -0
- package/lib/core/TextArea/TextArea.stories.jsx.map +1 -0
- package/lib/core/Toaster/Toaster.stories.d.ts +6 -0
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -0
- package/lib/core/Toaster/Toaster.stories.jsx +17 -0
- package/lib/core/Toaster/Toaster.stories.jsx.map +1 -0
- package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -0
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/lib/core/Tooltip/Tooltip.stories.jsx +18 -0
- package/lib/core/Tooltip/Tooltip.stories.jsx.map +1 -0
- package/lib/core/Tree/Tree.mocks.d.ts +2 -0
- package/lib/core/Tree/Tree.mocks.d.ts.map +1 -0
- package/lib/core/Tree/Tree.mocks.js +20 -0
- package/lib/core/Tree/Tree.mocks.js.map +1 -0
- package/lib/core/Tree/Tree.stories.d.ts +8 -0
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -0
- package/lib/core/Tree/Tree.stories.jsx +89 -0
- package/lib/core/Tree/Tree.stories.jsx.map +1 -0
- package/lib/core/Tree/Tree.styles.d.ts +3 -0
- package/lib/core/Tree/Tree.styles.d.ts.map +1 -0
- package/lib/core/Tree/Tree.styles.js +10 -0
- package/lib/core/Tree/Tree.styles.js.map +1 -0
- package/lib/core/URL/URL.stories.d.ts +6 -0
- package/lib/core/URL/URL.stories.d.ts.map +1 -0
- package/lib/core/URL/URL.stories.jsx +17 -0
- package/lib/core/URL/URL.stories.jsx.map +1 -0
- package/lib/cs/Article/Article.mocks.d.ts +14 -0
- package/lib/cs/Article/Article.mocks.d.ts.map +1 -0
- package/lib/cs/Article/Article.mocks.js +14 -0
- package/lib/cs/Article/Article.mocks.js.map +1 -0
- package/lib/cs/Article/Article.stories.d.ts +15 -0
- package/lib/cs/Article/Article.stories.d.ts.map +1 -0
- package/lib/cs/Article/Article.stories.jsx +126 -0
- package/lib/cs/Article/Article.stories.jsx.map +1 -0
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts +21 -0
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -0
- package/lib/cs/ArticleList/ArticleList.mocks.js +102 -0
- package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -0
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +16 -0
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -0
- package/lib/cs/ArticleList/ArticleList.stories.jsx +110 -0
- package/lib/cs/ArticleList/ArticleList.stories.jsx.map +1 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +45 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.jsx +275 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +57 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +224 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +16 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +110 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +13 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.jsx +188 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -0
- package/lib/cs/DialPad/DialPad.stories.d.ts +9 -0
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -0
- package/lib/cs/DialPad/DialPad.stories.jsx +18 -0
- package/lib/cs/DialPad/DialPad.stories.jsx.map +1 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +11 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +1 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js +20 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +1 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +13 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +356 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.jsx +32 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +14 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.jsx +85 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +13 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js +140 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -0
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -0
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.stories.jsx +314 -0
- package/lib/cs/TaskManager/TaskManager.stories.jsx.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +11 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.jsx +119 -0
- package/lib/dnd/DragDropList/DragDropList.stories.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts +3 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.jsx +34 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +10 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx +145 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +7 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx +62 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -0
- package/lib/social/Chat/Chat.mocks.d.ts +385 -0
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -0
- package/lib/social/Chat/Chat.mocks.js +648 -0
- package/lib/social/Chat/Chat.mocks.js.map +1 -0
- package/lib/social/Chat/Chat.stories.d.ts +25 -0
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -0
- package/lib/social/Chat/Chat.stories.jsx +537 -0
- package/lib/social/Chat/Chat.stories.jsx.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts +20 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.jsx +90 -0
- package/lib/social/Chat/RepeatingView.stories.jsx.map +1 -0
- package/lib/social/Email/Email.mocks.d.ts +87 -0
- package/lib/social/Email/Email.mocks.d.ts.map +1 -0
- package/lib/social/Email/Email.mocks.jsx +349 -0
- package/lib/social/Email/Email.mocks.jsx.map +1 -0
- package/lib/social/Email/Email.stories.d.ts +28 -0
- package/lib/social/Email/Email.stories.d.ts.map +1 -0
- package/lib/social/Email/Email.stories.jsx +798 -0
- package/lib/social/Email/Email.stories.jsx.map +1 -0
- package/lib/social/Feed/Feed.mocks.d.ts +52 -0
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -0
- package/lib/social/Feed/Feed.mocks.jsx +315 -0
- package/lib/social/Feed/Feed.mocks.jsx.map +1 -0
- package/lib/social/Feed/Feed.stories.d.ts +15 -0
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -0
- package/lib/social/Feed/Feed.stories.jsx +146 -0
- package/lib/social/Feed/Feed.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedNewPost.stories.d.ts +17 -0
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedNewPost.stories.jsx +80 -0
- package/lib/social/Feed/FeedNewPost.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedPost.stories.d.ts +9 -0
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedPost.stories.jsx +248 -0
- package/lib/social/Feed/FeedPost.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedReply.stories.d.ts +16 -0
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedReply.stories.jsx +99 -0
- package/lib/social/Feed/FeedReply.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +15 -0
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedReplyInput.stories.jsx +59 -0
- package/lib/social/Feed/FeedReplyInput.stories.jsx.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +6 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx +30 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -0
- package/lib/work/CaseView/Attachments.mocks.d.ts +3 -0
- package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Attachments.mocks.jsx +388 -0
- package/lib/work/CaseView/Attachments.mocks.jsx.map +1 -0
- package/lib/work/CaseView/CaseView.mocks.d.ts +11 -0
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/CaseView.mocks.jsx +126 -0
- package/lib/work/CaseView/CaseView.mocks.jsx.map +1 -0
- package/lib/work/CaseView/CaseView.stories.d.ts +34 -0
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -0
- package/lib/work/CaseView/CaseView.stories.jsx +264 -0
- package/lib/work/CaseView/CaseView.stories.jsx.map +1 -0
- package/lib/work/CaseView/Details.mocks.d.ts +3 -0
- package/lib/work/CaseView/Details.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Details.mocks.jsx +21 -0
- package/lib/work/CaseView/Details.mocks.jsx.map +1 -0
- package/lib/work/CaseView/FileService.mock.d.ts +28 -0
- package/lib/work/CaseView/FileService.mock.d.ts.map +1 -0
- package/lib/work/CaseView/FileService.mock.jsx +139 -0
- package/lib/work/CaseView/FileService.mock.jsx.map +1 -0
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +11 -0
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -0
- package/lib/work/CaseView/MobileCaseView.stories.jsx +27 -0
- package/lib/work/CaseView/MobileCaseView.stories.jsx.map +1 -0
- package/lib/work/CaseView/Pulse.mocks.d.ts +6 -0
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Pulse.mocks.jsx +35 -0
- package/lib/work/CaseView/Pulse.mocks.jsx.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +10 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +195 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts +9 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.jsx +17 -0
- package/lib/work/Confirmation/Confirmation.stories.jsx.map +1 -0
- package/lib/work/Details/Details.stories.d.ts +5 -0
- package/lib/work/Details/Details.stories.d.ts.map +1 -0
- package/lib/work/Details/Details.stories.jsx +65 -0
- package/lib/work/Details/Details.stories.jsx.map +1 -0
- package/lib/work/Glimpse/Glimpse.stories.d.ts +10 -0
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -0
- package/lib/work/Glimpse/Glimpse.stories.jsx +39 -0
- package/lib/work/Glimpse/Glimpse.stories.jsx.map +1 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +8 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -0
- package/lib/work/SearchResults/SearchResults.mocks.jsx +96 -0
- package/lib/work/SearchResults/SearchResults.mocks.jsx.map +1 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts +8 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -0
- package/lib/work/SearchResults/SearchResults.stories.jsx +205 -0
- package/lib/work/SearchResults/SearchResults.stories.jsx.map +1 -0
- package/lib/work/Stages/Stages.stories.d.ts +11 -0
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -0
- package/lib/work/Stages/Stages.stories.jsx +65 -0
- package/lib/work/Stages/Stages.stories.jsx.map +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +9 -0
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.jsx +118 -0
- package/lib/work/Stakeholders/Stakeholders.stories.jsx.map +1 -0
- package/lib/work/Tags/Tags.mocks.d.ts +3 -0
- package/lib/work/Tags/Tags.mocks.d.ts.map +1 -0
- package/lib/work/Tags/Tags.mocks.js +76 -0
- package/lib/work/Tags/Tags.mocks.js.map +1 -0
- package/lib/work/Tags/Tags.stories.d.ts +10 -0
- package/lib/work/Tags/Tags.stories.d.ts.map +1 -0
- package/lib/work/Tags/Tags.stories.jsx +61 -0
- package/lib/work/Tags/Tags.stories.jsx.map +1 -0
- package/lib/work/Tasks/TaskList.stories.d.ts +5 -0
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -0
- package/lib/work/Tasks/TaskList.stories.jsx +17 -0
- package/lib/work/Tasks/TaskList.stories.jsx.map +1 -0
- package/lib/work/Tasks/Tasks.stories.d.ts +9 -0
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -0
- package/lib/work/Tasks/Tasks.stories.jsx +101 -0
- package/lib/work/Tasks/Tasks.stories.jsx.map +1 -0
- package/lib/work/Timeline/Timeline.mocks.d.ts +3 -0
- package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -0
- package/lib/work/Timeline/Timeline.mocks.jsx +129 -0
- package/lib/work/Timeline/Timeline.mocks.jsx.map +1 -0
- package/lib/work/Timeline/Timeline.stories.d.ts +7 -0
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -0
- package/lib/work/Timeline/Timeline.stories.jsx +43 -0
- package/lib/work/Timeline/Timeline.stories.jsx.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,798 @@
|
|
|
1
|
+
import { useState, useRef, useContext, createRef } from 'react';
|
|
2
|
+
import { action } from '@storybook/addon-actions';
|
|
3
|
+
import { array, boolean } from '@storybook/addon-knobs';
|
|
4
|
+
import styled, { css } from 'styled-components';
|
|
5
|
+
import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, hasProp, Flex, Button, ModalManagerContext, Modal, menuHelpers, defaultThemeProp } from '@pega/cosmos-react-core';
|
|
6
|
+
import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
|
|
7
|
+
import { RichTextViewer } from '@pega/cosmos-react-rte';
|
|
8
|
+
import { Email, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, ViewAnalysis } from '@pega/cosmos-react-social';
|
|
9
|
+
import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, ViewAnalysisMockData, EmailMockData } from './Email.mocks';
|
|
10
|
+
registerIcon(filterIcon);
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Social/Email',
|
|
13
|
+
component: Email
|
|
14
|
+
};
|
|
15
|
+
const { emails: mockEmails, suggestedReplies: mockSuggestedReplies, emailBodyTemplates: mockEmailBodyTemplates } = EmailMockData;
|
|
16
|
+
const handleExternalEntry = (filterValue) => {
|
|
17
|
+
const pattern = /^[\w.\-_]+@[a-zA-Z]+(\.[a-zA-Z]{2,3}){1,2}$/;
|
|
18
|
+
const matched = filterValue.match(pattern);
|
|
19
|
+
return !!matched?.input;
|
|
20
|
+
};
|
|
21
|
+
const baseComposerProps = {
|
|
22
|
+
participants,
|
|
23
|
+
externalValidator: handleExternalEntry,
|
|
24
|
+
to: {
|
|
25
|
+
reply: toParticipants.slice(0, 1),
|
|
26
|
+
replyAll: toParticipants
|
|
27
|
+
},
|
|
28
|
+
cc: ccParticipants,
|
|
29
|
+
subject: '',
|
|
30
|
+
bodyContent: '',
|
|
31
|
+
onSend: action('On Send'),
|
|
32
|
+
onCancel: () => {
|
|
33
|
+
action('cancelled email composing');
|
|
34
|
+
},
|
|
35
|
+
templates: mockEmailBodyTemplates
|
|
36
|
+
};
|
|
37
|
+
var LaunchAction;
|
|
38
|
+
(function (LaunchAction) {
|
|
39
|
+
LaunchAction[LaunchAction["REPLY"] = 0] = "REPLY";
|
|
40
|
+
LaunchAction[LaunchAction["REPLYALL"] = 1] = "REPLYALL";
|
|
41
|
+
LaunchAction[LaunchAction["SUGGESTION"] = 2] = "SUGGESTION";
|
|
42
|
+
LaunchAction[LaunchAction["FORWARD"] = 3] = "FORWARD";
|
|
43
|
+
})(LaunchAction || (LaunchAction = {}));
|
|
44
|
+
const composerModals = {};
|
|
45
|
+
const getCompositeId = (id, launchAction) => {
|
|
46
|
+
return `${id}-${launchAction}`;
|
|
47
|
+
};
|
|
48
|
+
const handleComposerCancel = (compositeID) => {
|
|
49
|
+
composerModals[compositeID]?.dismissModal();
|
|
50
|
+
composerModals[compositeID]?.unMountModal();
|
|
51
|
+
delete composerModals[compositeID];
|
|
52
|
+
};
|
|
53
|
+
const launchEmailComposer = (id, launchAction, composerProps, create) => {
|
|
54
|
+
const compositeId = getCompositeId(id, launchAction);
|
|
55
|
+
const composerRef = createRef();
|
|
56
|
+
const modalControls = create(() => {
|
|
57
|
+
return (<Modal heading={composerProps.subject} options={{ id: { compositeId } }}>
|
|
58
|
+
<EmailComposer {...composerProps} ref={composerRef} onCancel={() => handleComposerCancel(compositeId)}/>
|
|
59
|
+
</Modal>);
|
|
60
|
+
}, { center: true }, { minimizable: true, maximizable: true, dockable: true });
|
|
61
|
+
composerModals[compositeId] = {
|
|
62
|
+
dismissModal: modalControls.dismiss,
|
|
63
|
+
unMountModal: modalControls.unmount,
|
|
64
|
+
composerRef
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
const emailActions = (<MenuButton text='Email actions' variant='simple' icon='more' iconOnly menu={{
|
|
68
|
+
items: [
|
|
69
|
+
{
|
|
70
|
+
id: createUID(),
|
|
71
|
+
primary: 'Reply',
|
|
72
|
+
onClick: action('On reply')
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: createUID(),
|
|
76
|
+
primary: 'Reply all',
|
|
77
|
+
onClick: action('On reply all')
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: createUID(),
|
|
81
|
+
primary: 'Forward',
|
|
82
|
+
onClick: action('Forward')
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}}/>);
|
|
86
|
+
const emailDemoActions = (create, subject) => {
|
|
87
|
+
const id = createUID();
|
|
88
|
+
return (<MenuButton text='Email actions' variant='simple' icon='more' iconOnly menu={{
|
|
89
|
+
items: [
|
|
90
|
+
{
|
|
91
|
+
id,
|
|
92
|
+
primary: 'Reply',
|
|
93
|
+
onClick: () => launchEmailComposer(id, LaunchAction.REPLY, {
|
|
94
|
+
...baseComposerProps,
|
|
95
|
+
responseType: 'reply',
|
|
96
|
+
subject: `Re-${subject}` || ''
|
|
97
|
+
}, create)
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id,
|
|
101
|
+
primary: 'Reply all',
|
|
102
|
+
onClick: () => launchEmailComposer(id, LaunchAction.REPLYALL, {
|
|
103
|
+
...baseComposerProps,
|
|
104
|
+
responseType: 'replyAll',
|
|
105
|
+
cc: [],
|
|
106
|
+
subject: `Re-${subject}` || ''
|
|
107
|
+
}, create)
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id,
|
|
111
|
+
primary: 'Forward',
|
|
112
|
+
onClick: () => launchEmailComposer(id, LaunchAction.FORWARD, {
|
|
113
|
+
...baseComposerProps,
|
|
114
|
+
responseType: 'forward',
|
|
115
|
+
subject: `Fw-${subject}` || ''
|
|
116
|
+
}, create)
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}}/>);
|
|
120
|
+
};
|
|
121
|
+
const generateEmailConversationParticipants = (emails, fields) => {
|
|
122
|
+
let l;
|
|
123
|
+
if (fields) {
|
|
124
|
+
l = [...fields];
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
l = ['from', 'to', 'cc', 'bcc'];
|
|
128
|
+
}
|
|
129
|
+
const emailUsers = emails.map(emailItem => {
|
|
130
|
+
return l.map(n => {
|
|
131
|
+
if (hasProp(emailItem, n)) {
|
|
132
|
+
return emailItem[n];
|
|
133
|
+
}
|
|
134
|
+
return [];
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
return [...new Set(Array.from(emailUsers).flat(2))];
|
|
138
|
+
};
|
|
139
|
+
const StyledEmailCardContent = styled(CardContent)(({ theme }) => {
|
|
140
|
+
return css `
|
|
141
|
+
&&&& {
|
|
142
|
+
padding: calc(2 * ${theme.base.spacing}) 0;
|
|
143
|
+
}
|
|
144
|
+
`;
|
|
145
|
+
});
|
|
146
|
+
StyledEmailCardContent.defaultProps = defaultThemeProp;
|
|
147
|
+
export const email = () => {
|
|
148
|
+
return (<Card>
|
|
149
|
+
<StyledEmailCardContent>
|
|
150
|
+
<Email 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 /> <br /> <div>Sure.. Here is your E-Ticket(H-765437) !! </div> <br /><br /> Regards, <br /> Laura Stevens </div>' subject='I have a quick question on travel' onReply={action('On reply')} onReplyAll={action('On reply all')} onForward={action('On forward')} onSuggestionClick={action('On Suggested reply clicked')} sentiment={{
|
|
151
|
+
variant: 'positive'
|
|
152
|
+
}} actions={emailActions} suggestions={mockSuggestedReplies} attachments={[
|
|
153
|
+
{
|
|
154
|
+
id: createUID(),
|
|
155
|
+
value: 'https://pega.com/media/document.doc',
|
|
156
|
+
displayText: 'Policy document'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: createUID(),
|
|
160
|
+
value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
|
|
161
|
+
displayText: 'E-Ticket'
|
|
162
|
+
}
|
|
163
|
+
].map(attachment => {
|
|
164
|
+
return {
|
|
165
|
+
...attachment,
|
|
166
|
+
onDownload: action('On attachment download'),
|
|
167
|
+
onPreview: action('On attachment preview')
|
|
168
|
+
};
|
|
169
|
+
})}/>
|
|
170
|
+
</StyledEmailCardContent>
|
|
171
|
+
</Card>);
|
|
172
|
+
};
|
|
173
|
+
const StyledViewAnalysis = styled.div `
|
|
174
|
+
width: 18rem;
|
|
175
|
+
`;
|
|
176
|
+
export const viewAnalysis = () => {
|
|
177
|
+
const content = ViewAnalysisMockData;
|
|
178
|
+
const headerProps = {
|
|
179
|
+
icon: 'list-number',
|
|
180
|
+
text: 'Entities'
|
|
181
|
+
};
|
|
182
|
+
return (<StyledViewAnalysis>
|
|
183
|
+
<ViewAnalysis header={headerProps} content={content}/>
|
|
184
|
+
</StyledViewAnalysis>);
|
|
185
|
+
};
|
|
186
|
+
export const emailEntities = () => {
|
|
187
|
+
const nestedEntities = ['Place: Nagercoil, Hyderabad', 'Location: Nagercoil'];
|
|
188
|
+
return (<Card>
|
|
189
|
+
<StyledEmailCardContent>
|
|
190
|
+
<Email 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, Nagercoil branch, with code 3967. I have a saving bank account here. My account number is 6785420965476.</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>' entityHighlightMapping={boolean('Entity Highlighting', true)
|
|
191
|
+
? [
|
|
192
|
+
{
|
|
193
|
+
value: '3967',
|
|
194
|
+
type: 'system',
|
|
195
|
+
name: 'BranchCode',
|
|
196
|
+
variant: 0,
|
|
197
|
+
description: 'Branch Code'
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
value: 'Laura Stevens',
|
|
201
|
+
type: 'system',
|
|
202
|
+
name: 'Name',
|
|
203
|
+
variant: 1,
|
|
204
|
+
description: 'Name'
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
value: 'Nagercoil',
|
|
208
|
+
type: 'system',
|
|
209
|
+
name: 'Location',
|
|
210
|
+
variant: 2,
|
|
211
|
+
description: nestedEntities
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
value: 'Trichy',
|
|
215
|
+
type: 'system',
|
|
216
|
+
name: 'Location',
|
|
217
|
+
variant: 2,
|
|
218
|
+
description: 'Location'
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
value: '6785420965476',
|
|
222
|
+
type: 'system',
|
|
223
|
+
name: 'AccountNumber',
|
|
224
|
+
variant: 3,
|
|
225
|
+
description: 'Account Number'
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
value: '1920 6746 8653 1256',
|
|
229
|
+
type: 'system',
|
|
230
|
+
name: 'CardNumber',
|
|
231
|
+
variant: 4,
|
|
232
|
+
description: 'Card Number'
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
value: 'Debit Card',
|
|
236
|
+
type: 'system',
|
|
237
|
+
name: 'CardType',
|
|
238
|
+
variant: 5,
|
|
239
|
+
description: 'Card Type'
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
value: 'Jan 04, 2021',
|
|
243
|
+
type: 'system',
|
|
244
|
+
name: 'Date',
|
|
245
|
+
variant: 6,
|
|
246
|
+
description: 'Date'
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
: undefined} subject='I lost my debit card' onReply={action('On reply')} onReplyAll={action('On reply all')} onForward={action('On forward')} onSuggestionClick={action('On Suggested reply clicked')} sentiment={{
|
|
250
|
+
variant: 'neutral'
|
|
251
|
+
}} actions={emailActions} suggestions={mockSuggestedReplies}/>
|
|
252
|
+
</StyledEmailCardContent>
|
|
253
|
+
</Card>);
|
|
254
|
+
};
|
|
255
|
+
export const emailConversation = () => {
|
|
256
|
+
const emailArr = [
|
|
257
|
+
{
|
|
258
|
+
id: createUID(),
|
|
259
|
+
timeStamp: '2021-01-05T09:12',
|
|
260
|
+
from: mockEmails['Laura Stevens'],
|
|
261
|
+
cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
|
|
262
|
+
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
263
|
+
to: [mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']],
|
|
264
|
+
body: (<RichTextViewer content='<div> Hi, <br /> <br /> <div>Sure.. Here is your E-Ticket !! </div> <br /><br /> Regards, <br /> Laura Stevens </div>' type='html'/>),
|
|
265
|
+
unRead: true,
|
|
266
|
+
onReply: action('On reply'),
|
|
267
|
+
onForward: action('On forward'),
|
|
268
|
+
onSuggestionClick: action('On Suggested reply clicked'),
|
|
269
|
+
actions: emailActions,
|
|
270
|
+
suggestions: mockSuggestedReplies
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: createUID(),
|
|
274
|
+
timeStamp: '2021-01-02T03:12',
|
|
275
|
+
from: mockEmails['Sara Davis'],
|
|
276
|
+
cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
|
|
277
|
+
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
278
|
+
to: [mockEmails['Laura Stevens'], mockEmails['John Brown'], mockEmails['Joe Stevens']],
|
|
279
|
+
body: (<RichTextViewer content='<div> Hi, <br /> <br /> <div>I’m still at the airport, I need help now!! </div> <br /><br /> Regards, <br /> Sara Davis </div>' type='html'/>),
|
|
280
|
+
onReply: action('On reply'),
|
|
281
|
+
onForward: action('On forward'),
|
|
282
|
+
onSuggestionClick: action('On Suggested reply clicked'),
|
|
283
|
+
actions: emailActions
|
|
284
|
+
}
|
|
285
|
+
];
|
|
286
|
+
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}/>);
|
|
287
|
+
};
|
|
288
|
+
export const EmailComposerDemo = () => {
|
|
289
|
+
const fileUploadInputRef = useRef(null);
|
|
290
|
+
const [attachments, setAttachments] = useState(emailAttachments);
|
|
291
|
+
return (<Card style={{ width: '30rem' }}>
|
|
292
|
+
<CardContent>
|
|
293
|
+
<EmailComposer onSend={action('On Send')} onCancel={action('On cancel')} externalValidator={handleExternalEntry} participants={participants} to={{
|
|
294
|
+
reply: [participants[7].emailAddress],
|
|
295
|
+
replyAll: toParticipants,
|
|
296
|
+
forward: []
|
|
297
|
+
}} cc={ccParticipants} bcc={bccParticipants} responseType='reply' subject='Request: Pause service' templates={mockEmailBodyTemplates} bodyContent='Hi, Hope you are doing well' onImageAdded={action('On Image added')} attachments={attachments.map(attachment => {
|
|
298
|
+
return {
|
|
299
|
+
...attachment,
|
|
300
|
+
onDelete: name => {
|
|
301
|
+
setAttachments(prevAttachments => prevAttachments.filter(item => item.name !== name));
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
})} footerMoreActions={<MenuButton text='Phrases' placement='top' menu={{
|
|
305
|
+
items: [
|
|
306
|
+
{
|
|
307
|
+
primary: 'Thanks',
|
|
308
|
+
id: 'Thanks',
|
|
309
|
+
onClick: action('Thanks!')
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
primary: 'Sorry, please give us some time',
|
|
313
|
+
id: 'Sorry',
|
|
314
|
+
onClick: action('Sorry, please give us some time!')
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
}}/>}/>
|
|
318
|
+
<input ref={fileUploadInputRef} type='file' style={{ display: 'none' }} onChange={(e) => {
|
|
319
|
+
if (e.target.files) {
|
|
320
|
+
setAttachments(prevAttachments => [
|
|
321
|
+
...prevAttachments,
|
|
322
|
+
...Array.from(e.target.files).map(file => {
|
|
323
|
+
return {
|
|
324
|
+
name: file.name
|
|
325
|
+
};
|
|
326
|
+
})
|
|
327
|
+
]);
|
|
328
|
+
}
|
|
329
|
+
}}/>
|
|
330
|
+
</CardContent>
|
|
331
|
+
</Card>);
|
|
332
|
+
};
|
|
333
|
+
export const EmailDemo = ({ hideSuggestions }) => {
|
|
334
|
+
const actions = array('Actions', ['Transfer', 'End conversation']).map(name => ({
|
|
335
|
+
primary: name,
|
|
336
|
+
id: name,
|
|
337
|
+
onClick: action(`Clicked ${name}`)
|
|
338
|
+
}));
|
|
339
|
+
const { create } = useContext(ModalManagerContext);
|
|
340
|
+
const emailsData = [
|
|
341
|
+
{
|
|
342
|
+
id: createUID(),
|
|
343
|
+
timeStamp: '2021-01-05T09:12',
|
|
344
|
+
from: participants[0],
|
|
345
|
+
to: participants.slice(0, 2),
|
|
346
|
+
body: (<RichTextViewer content='<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Laura Stevens </div>' type='html'/>),
|
|
347
|
+
unRead: true,
|
|
348
|
+
subject: 'Pause service',
|
|
349
|
+
suggestions: hideSuggestions ? undefined : mockSuggestedReplies,
|
|
350
|
+
attachments: [
|
|
351
|
+
{
|
|
352
|
+
id: createUID(),
|
|
353
|
+
value: 'https://pega.com/media/document.doc',
|
|
354
|
+
displayText: 'Policy document'
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
id: createUID(),
|
|
358
|
+
value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
|
|
359
|
+
displayText: 'E-Ticket'
|
|
360
|
+
}
|
|
361
|
+
].map(attachment => {
|
|
362
|
+
return {
|
|
363
|
+
...attachment,
|
|
364
|
+
onDownload: action('On attachment download'),
|
|
365
|
+
onPreview: action('On attachment preview')
|
|
366
|
+
};
|
|
367
|
+
})
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
id: createUID(),
|
|
371
|
+
timeStamp: '2021-01-02T03:12',
|
|
372
|
+
from: participants[3],
|
|
373
|
+
to: participants.slice(2, 4),
|
|
374
|
+
body: emailBodyContent,
|
|
375
|
+
unRead: true,
|
|
376
|
+
subject: 'Pause service'
|
|
377
|
+
}
|
|
378
|
+
].map(emailData => {
|
|
379
|
+
const emailActionItems = emailDemoActions(create, emailData.subject);
|
|
380
|
+
return {
|
|
381
|
+
...emailData,
|
|
382
|
+
onReply: id => {
|
|
383
|
+
launchEmailComposer(id, LaunchAction.REPLY, {
|
|
384
|
+
...baseComposerProps,
|
|
385
|
+
externalValidator: handleExternalEntry,
|
|
386
|
+
responseType: 'reply',
|
|
387
|
+
subject: `Re-${emailData.subject}` || ''
|
|
388
|
+
}, create);
|
|
389
|
+
},
|
|
390
|
+
onForward: id => {
|
|
391
|
+
launchEmailComposer(id, LaunchAction.FORWARD, {
|
|
392
|
+
...baseComposerProps,
|
|
393
|
+
externalValidator: handleExternalEntry,
|
|
394
|
+
responseType: 'forward',
|
|
395
|
+
subject: `Fw-${emailData.subject}` || ''
|
|
396
|
+
}, create);
|
|
397
|
+
},
|
|
398
|
+
onSuggestionClick: (id, suggestionId) => {
|
|
399
|
+
const suggestion = emailData.suggestions?.find(item => item.id === suggestionId);
|
|
400
|
+
launchEmailComposer(id, LaunchAction.SUGGESTION, {
|
|
401
|
+
...baseComposerProps,
|
|
402
|
+
externalValidator: handleExternalEntry,
|
|
403
|
+
responseType: 'reply',
|
|
404
|
+
subject: suggestion?.title || '',
|
|
405
|
+
bodyContent: suggestion ? suggestion.content : '',
|
|
406
|
+
defaultTemplate: suggestion?.title
|
|
407
|
+
}, create);
|
|
408
|
+
},
|
|
409
|
+
actions: emailActionItems,
|
|
410
|
+
tags: hideSuggestions
|
|
411
|
+
? undefined
|
|
412
|
+
: {
|
|
413
|
+
items: ['Pause service', 'Lost or stolen'],
|
|
414
|
+
label: 'Associated service cases',
|
|
415
|
+
onRemove: action('On Associated service case remove'),
|
|
416
|
+
dismissable: true
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
});
|
|
420
|
+
const emailConversations = [
|
|
421
|
+
[...emailsData],
|
|
422
|
+
[
|
|
423
|
+
{
|
|
424
|
+
...emailsData[0],
|
|
425
|
+
timeStamp: '2021-01-03T17:15',
|
|
426
|
+
from: mockEmails['Hugh Phillips'],
|
|
427
|
+
to: [mockEmails['Mystery Rey'], ...emailsData[0].to],
|
|
428
|
+
cc: [mockEmails['Adam Gillchrist']],
|
|
429
|
+
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
430
|
+
body: (<RichTextViewer content='<div>Hi, <br /> <br /><div>Sure, Our executive will come and check your connection in 24hrs. </div> <br />Regards, <br />Hugh Phillips </div>' type='html'/>)
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
...emailsData[1],
|
|
434
|
+
unRead: false,
|
|
435
|
+
timeStamp: '2021-01-02T14:16',
|
|
436
|
+
from: mockEmails['Mystery Rey'],
|
|
437
|
+
to: [mockEmails['Hugh Phillips']],
|
|
438
|
+
body: (<RichTextViewer content='<div>Hi, <br /> <br /><div>Can you fix my internet connection. </div> <br /> <br />Regards, <br />Rey Mystery </div>' type='html'/>)
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
[
|
|
442
|
+
{
|
|
443
|
+
...emailsData[0],
|
|
444
|
+
unRead: false,
|
|
445
|
+
timeStamp: '2020-12-05T18:18',
|
|
446
|
+
from: mockEmails['Laura Stevens'],
|
|
447
|
+
to: [mockEmails['Sara Davis']],
|
|
448
|
+
body: (<RichTextViewer content='<div>Hi, <br /> <br /><div>Sure, Our executive will call you shortly. </div> <br /> <br />Regards, <br />Laura Stevens </div>' type='html'/>),
|
|
449
|
+
sentiment: {
|
|
450
|
+
variant: 'positive'
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
...emailsData[1],
|
|
455
|
+
unRead: false,
|
|
456
|
+
timeStamp: '2021-01-04T08:30',
|
|
457
|
+
from: mockEmails['Sara Davis'],
|
|
458
|
+
to: [mockEmails['Laura Stevens']],
|
|
459
|
+
body: (<RichTextViewer content='<div>Hi, <br /> <br /><div>Can you show please explain your new mobile plans. </div> <br /> <br />Regards, <br />Sara Davis </div>' type='html'/>)
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
].map((emails, i) => {
|
|
463
|
+
return {
|
|
464
|
+
from: generateEmailConversationParticipants(emails, ['from'])[0],
|
|
465
|
+
to: emails[0].to,
|
|
466
|
+
id: createUID(),
|
|
467
|
+
timeStamp: emails[0].timeStamp,
|
|
468
|
+
unReadEmailCount: emails.filter(item => item.unRead).length,
|
|
469
|
+
emails,
|
|
470
|
+
sentiment: emails[0].sentiment,
|
|
471
|
+
isForwarded: i !== 2,
|
|
472
|
+
isCollapsed: i !== 0
|
|
473
|
+
};
|
|
474
|
+
});
|
|
475
|
+
const singleEmailConversation = [
|
|
476
|
+
{
|
|
477
|
+
from: generateEmailConversationParticipants(emailsData, ['from'])[0],
|
|
478
|
+
to: generateEmailConversationParticipants(emailsData, ['to']),
|
|
479
|
+
id: createUID(),
|
|
480
|
+
timeStamp: new Date(emailsData[0].timeStamp),
|
|
481
|
+
unReadEmailCount: emailsData.filter(item => item.unRead).length,
|
|
482
|
+
emails: emailsData
|
|
483
|
+
}
|
|
484
|
+
];
|
|
485
|
+
return (<EmailShell style={{
|
|
486
|
+
height: 'calc(100vh)',
|
|
487
|
+
width: '30rem',
|
|
488
|
+
margin: 'auto'
|
|
489
|
+
}} headerProps={{
|
|
490
|
+
actions: (<Flex container={{
|
|
491
|
+
alignItems: 'center',
|
|
492
|
+
gap: 0
|
|
493
|
+
}}>
|
|
494
|
+
<Button variant='simple' icon>
|
|
495
|
+
<Icon name='filter'/>
|
|
496
|
+
</Button>
|
|
497
|
+
<MenuButton variant='simple' text='More actions' icon='more' iconOnly portal menu={{ items: actions }}/>
|
|
498
|
+
</Flex>),
|
|
499
|
+
subject: 'Pause service'
|
|
500
|
+
}} autoCollapse={boolean('Auto collapse', true)} conversations={boolean('Single conversation', true) ? singleEmailConversation : emailConversations}/>);
|
|
501
|
+
};
|
|
502
|
+
EmailDemo.parameters = {
|
|
503
|
+
layout: 'fullscreen'
|
|
504
|
+
};
|
|
505
|
+
const sentiment = {
|
|
506
|
+
variant: 'negative',
|
|
507
|
+
labelHidden: true
|
|
508
|
+
};
|
|
509
|
+
export const EmailSummaryItemDemo = () => {
|
|
510
|
+
const [active, setActive] = useState(false);
|
|
511
|
+
return (<EmailSummaryItem style={{ width: '25rem' }} id={createUID()} activeParticipants={[
|
|
512
|
+
{
|
|
513
|
+
shortName: 'Robert',
|
|
514
|
+
fullName: 'Robert Downer',
|
|
515
|
+
emailAddress: 'robert.downey@example.com'
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
shortName: 'Nathan',
|
|
519
|
+
fullName: 'Nathan Swanson',
|
|
520
|
+
emailAddress: 'nathan.swanson@example.com'
|
|
521
|
+
}
|
|
522
|
+
]} 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={active ? 0 : 8} active={active} onClick={() => {
|
|
523
|
+
setActive(true);
|
|
524
|
+
}}/>);
|
|
525
|
+
};
|
|
526
|
+
const emailSummaryItems = [
|
|
527
|
+
{
|
|
528
|
+
id: createUID(),
|
|
529
|
+
activeParticipants: [
|
|
530
|
+
{ shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
|
|
531
|
+
{ shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' }
|
|
532
|
+
],
|
|
533
|
+
message: 'I have a quick question on travel',
|
|
534
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
535
|
+
topic: 'Travel request',
|
|
536
|
+
sentiment,
|
|
537
|
+
active: true,
|
|
538
|
+
urgency: 85,
|
|
539
|
+
unreadEmailCount: 4
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
id: createUID(),
|
|
543
|
+
activeParticipants: [
|
|
544
|
+
{
|
|
545
|
+
shortName: 'Nathan',
|
|
546
|
+
fullName: 'Nathan Swanson',
|
|
547
|
+
emailAddress: 'nathan.swanson@example.com'
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
message: 'My luggage did not drive!',
|
|
551
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
552
|
+
topic: 'Missing Luggage',
|
|
553
|
+
sentiment,
|
|
554
|
+
urgency: 10,
|
|
555
|
+
unreadEmailCount: 2
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
id: createUID(),
|
|
559
|
+
activeParticipants: [
|
|
560
|
+
{ shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
|
|
561
|
+
],
|
|
562
|
+
message: 'Re: How much is a flight to Florida. Is there a discount going on?',
|
|
563
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
564
|
+
topic: 'Travel request',
|
|
565
|
+
sentiment,
|
|
566
|
+
urgency: 65,
|
|
567
|
+
unreadEmailCount: 1
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
id: createUID(),
|
|
571
|
+
activeParticipants: [
|
|
572
|
+
{ shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
|
|
573
|
+
],
|
|
574
|
+
message: 'Re: Should I purchase travel insurance? How often do we need it?',
|
|
575
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
576
|
+
topic: 'Travel request',
|
|
577
|
+
sentiment,
|
|
578
|
+
urgency: 85,
|
|
579
|
+
unreadEmailCount: 6
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
id: createUID(),
|
|
583
|
+
activeParticipants: [
|
|
584
|
+
{ shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
|
|
585
|
+
],
|
|
586
|
+
message: 'My next vacation',
|
|
587
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
588
|
+
topic: 'Travel request',
|
|
589
|
+
sentiment,
|
|
590
|
+
urgency: 45
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
id: createUID(),
|
|
594
|
+
activeParticipants: [
|
|
595
|
+
{ shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
|
|
596
|
+
{ shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
|
|
597
|
+
{ shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
|
|
598
|
+
],
|
|
599
|
+
message: 'Airport questions',
|
|
600
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
601
|
+
topic: 'Travel request',
|
|
602
|
+
sentiment,
|
|
603
|
+
urgency: 35
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
id: createUID(),
|
|
607
|
+
activeParticipants: [
|
|
608
|
+
{ shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
|
|
609
|
+
{ shortName: 'Robert', fullName: 'Robert ', emailAddress: 'robert.downey@example.com' }
|
|
610
|
+
],
|
|
611
|
+
message: 'I have a quick question on travel',
|
|
612
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
613
|
+
topic: 'Travel request',
|
|
614
|
+
sentiment,
|
|
615
|
+
urgency: 85
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
id: createUID(),
|
|
619
|
+
activeParticipants: [
|
|
620
|
+
{
|
|
621
|
+
shortName: 'Nathan',
|
|
622
|
+
fullName: 'Nathan Swanson',
|
|
623
|
+
emailAddress: 'nathan.swanson@example.com'
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
message: 'My luggage did not drive!',
|
|
627
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
628
|
+
topic: 'Missing Luggage',
|
|
629
|
+
sentiment,
|
|
630
|
+
urgency: 10
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
id: createUID(),
|
|
634
|
+
activeParticipants: [
|
|
635
|
+
{ shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
|
|
636
|
+
],
|
|
637
|
+
message: 'Re: How much is a flight to Florida',
|
|
638
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
639
|
+
topic: 'Travel request',
|
|
640
|
+
sentiment,
|
|
641
|
+
urgency: 65
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
id: createUID(),
|
|
645
|
+
activeParticipants: [
|
|
646
|
+
{ shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
|
|
647
|
+
],
|
|
648
|
+
message: 'Re: Should I purchase travel insurance',
|
|
649
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
650
|
+
topic: 'Travel request',
|
|
651
|
+
sentiment,
|
|
652
|
+
urgency: 85
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
id: createUID(),
|
|
656
|
+
activeParticipants: [
|
|
657
|
+
{ shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
|
|
658
|
+
],
|
|
659
|
+
message: 'My next vacation',
|
|
660
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
661
|
+
topic: 'Travel request',
|
|
662
|
+
sentiment,
|
|
663
|
+
urgency: 45
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
id: createUID(),
|
|
667
|
+
activeParticipants: [
|
|
668
|
+
{ shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
|
|
669
|
+
{ shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
|
|
670
|
+
{ shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
|
|
671
|
+
],
|
|
672
|
+
message: 'Airport questions',
|
|
673
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
674
|
+
topic: 'Travel request',
|
|
675
|
+
sentiment,
|
|
676
|
+
urgency: 35
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
id: createUID(),
|
|
680
|
+
activeParticipants: [
|
|
681
|
+
{ shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
|
|
682
|
+
{ shortName: 'Robert', fullName: 'Robert ', emailAddress: 'robert.downey@example.com' }
|
|
683
|
+
],
|
|
684
|
+
message: 'I have a quick question on travel',
|
|
685
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
686
|
+
topic: 'Travel request',
|
|
687
|
+
sentiment,
|
|
688
|
+
urgency: 85
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
id: createUID(),
|
|
692
|
+
activeParticipants: [
|
|
693
|
+
{
|
|
694
|
+
shortName: 'Nathan',
|
|
695
|
+
fullName: 'Nathan Swanson',
|
|
696
|
+
emailAddress: 'nathan.swanson@example.com'
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
message: 'My luggage did not drive!',
|
|
700
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
701
|
+
topic: 'Missing Luggage',
|
|
702
|
+
sentiment,
|
|
703
|
+
urgency: 10
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
id: createUID(),
|
|
707
|
+
activeParticipants: [
|
|
708
|
+
{ shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
|
|
709
|
+
],
|
|
710
|
+
message: 'Re: How much is a flight to Florida',
|
|
711
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
712
|
+
topic: 'Travel request',
|
|
713
|
+
sentiment,
|
|
714
|
+
urgency: 65
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
id: createUID(),
|
|
718
|
+
activeParticipants: [
|
|
719
|
+
{ shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
|
|
720
|
+
],
|
|
721
|
+
message: 'Re: Should I purchase travel insurance',
|
|
722
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
723
|
+
topic: 'Travel request',
|
|
724
|
+
sentiment,
|
|
725
|
+
urgency: 85
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
id: createUID(),
|
|
729
|
+
activeParticipants: [
|
|
730
|
+
{ shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
|
|
731
|
+
],
|
|
732
|
+
message: 'My next vacation',
|
|
733
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
734
|
+
topic: 'Travel request',
|
|
735
|
+
sentiment,
|
|
736
|
+
urgency: 45
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
id: createUID(),
|
|
740
|
+
activeParticipants: [
|
|
741
|
+
{ shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
|
|
742
|
+
{ shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
|
|
743
|
+
{ shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
|
|
744
|
+
],
|
|
745
|
+
message: 'Airport questions',
|
|
746
|
+
timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
|
|
747
|
+
topic: 'Travel request',
|
|
748
|
+
sentiment,
|
|
749
|
+
urgency: 35
|
|
750
|
+
}
|
|
751
|
+
];
|
|
752
|
+
export const EmailSummaryListDemo = () => {
|
|
753
|
+
const emailSummaryListRef = useRef(null);
|
|
754
|
+
const [allEmailItems, setAllEmailItems] = useState(emailSummaryItems);
|
|
755
|
+
const [categories, setCategories] = useState([
|
|
756
|
+
{
|
|
757
|
+
id: createUID(),
|
|
758
|
+
primary: 'Default worklist',
|
|
759
|
+
selected: false
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
id: createUID(),
|
|
763
|
+
primary: 'Authors',
|
|
764
|
+
selected: false
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
id: createUID(),
|
|
768
|
+
primary: 'Administrators',
|
|
769
|
+
selected: false
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
id: createUID(),
|
|
773
|
+
primary: 'Managers',
|
|
774
|
+
selected: false
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
id: createUID(),
|
|
778
|
+
primary: 'Users',
|
|
779
|
+
selected: false
|
|
780
|
+
}
|
|
781
|
+
]);
|
|
782
|
+
const handleItemClick = (id) => {
|
|
783
|
+
const index = allEmailItems.findIndex(emailItem => {
|
|
784
|
+
return emailItem.id === id;
|
|
785
|
+
});
|
|
786
|
+
const newEmailItems = [...allEmailItems];
|
|
787
|
+
newEmailItems.splice(index, 1, { ...allEmailItems[index], unreadEmailCount: 0 });
|
|
788
|
+
setAllEmailItems(newEmailItems);
|
|
789
|
+
};
|
|
790
|
+
const onCategoryClick = (id) => {
|
|
791
|
+
setCategories(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
|
|
792
|
+
};
|
|
793
|
+
return (<EmailSummaryList style={{ height: 'calc(100vh)', width: '25rem', margin: 'auto' }} ref={emailSummaryListRef} unreadEmailCount={99} categories={categories} items={allEmailItems} onItemClick={handleItemClick} onCategoryClick={onCategoryClick}/>);
|
|
794
|
+
};
|
|
795
|
+
EmailSummaryListDemo.parameters = {
|
|
796
|
+
layout: 'fullscreen'
|
|
797
|
+
};
|
|
798
|
+
//# sourceMappingURL=Email.stories.jsx.map
|