@pega/cosmos-react-demos 6.6.0 → 6.6.2
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/package.json +7 -7
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +0 -3
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +0 -15
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -19
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -297
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +0 -5
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +0 -15
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +0 -229
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +0 -10
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +0 -40
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +0 -4
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +0 -233
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +0 -8
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +0 -31
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -9
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +0 -35
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +0 -1
- package/jsx/core/AIButton/AIButton.mocks.d.ts +0 -22
- package/jsx/core/AIButton/AIButton.mocks.d.ts.map +0 -1
- package/jsx/core/AIButton/AIButton.mocks.js +0 -136
- package/jsx/core/AIButton/AIButton.mocks.js.map +0 -1
- package/jsx/core/AIButton/AIButton.stories.d.ts +0 -23
- package/jsx/core/AIButton/AIButton.stories.d.ts.map +0 -1
- package/jsx/core/AIButton/AIButton.stories.jsx +0 -306
- package/jsx/core/AIButton/AIButton.stories.jsx.map +0 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +0 -9
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +0 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +0 -25
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -15
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +0 -132
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +0 -39
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +0 -266
- package/jsx/core/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.styles.d.ts +0 -2
- package/jsx/core/AppShell/AppShell.styles.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.styles.js +0 -5
- package/jsx/core/AppShell/AppShell.styles.js.map +0 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts +0 -15
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +0 -1
- package/jsx/core/Avatar/Avatar.stories.jsx +0 -75
- package/jsx/core/Avatar/Avatar.stories.jsx.map +0 -1
- package/jsx/core/Backdrop/Backdrop.stories.d.ts +0 -7
- package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
- package/jsx/core/Backdrop/Backdrop.stories.jsx +0 -43
- package/jsx/core/Backdrop/Backdrop.stories.jsx.map +0 -1
- package/jsx/core/Badges/Alert.stories.d.ts +0 -6
- package/jsx/core/Badges/Alert.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Alert.stories.jsx +0 -15
- package/jsx/core/Badges/Alert.stories.jsx.map +0 -1
- package/jsx/core/Badges/Count.stories.d.ts +0 -6
- package/jsx/core/Badges/Count.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Count.stories.jsx +0 -20
- package/jsx/core/Badges/Count.stories.jsx.map +0 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +0 -6
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Keyboard.stories.jsx +0 -17
- package/jsx/core/Badges/Keyboard.stories.jsx.map +0 -1
- package/jsx/core/Badges/Selection.stories.d.ts +0 -5
- package/jsx/core/Badges/Selection.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Selection.stories.jsx +0 -9
- package/jsx/core/Badges/Selection.stories.jsx.map +0 -1
- package/jsx/core/Badges/Status.stories.d.ts +0 -11
- package/jsx/core/Badges/Status.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Status.stories.jsx +0 -43
- package/jsx/core/Badges/Status.stories.jsx.map +0 -1
- package/jsx/core/Badges/Tag.stories.d.ts +0 -5
- package/jsx/core/Badges/Tag.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Tag.stories.jsx +0 -9
- package/jsx/core/Badges/Tag.stories.jsx.map +0 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +0 -18
- package/jsx/core/Banner/Banner.mocks.d.ts.map +0 -1
- package/jsx/core/Banner/Banner.mocks.jsx +0 -41
- package/jsx/core/Banner/Banner.mocks.jsx.map +0 -1
- package/jsx/core/Banner/Banner.stories.d.ts +0 -18
- package/jsx/core/Banner/Banner.stories.d.ts.map +0 -1
- package/jsx/core/Banner/Banner.stories.jsx +0 -156
- package/jsx/core/Banner/Banner.stories.jsx.map +0 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.jsx +0 -19
- package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +0 -2
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +0 -8
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -69
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
- package/jsx/core/Button/Button.stories.d.ts +0 -18
- package/jsx/core/Button/Button.stories.d.ts.map +0 -1
- package/jsx/core/Button/Button.stories.jsx +0 -119
- package/jsx/core/Button/Button.stories.jsx.map +0 -1
- package/jsx/core/Card/Card.stories.d.ts +0 -12
- package/jsx/core/Card/Card.stories.d.ts.map +0 -1
- package/jsx/core/Card/Card.stories.jsx +0 -85
- package/jsx/core/Card/Card.stories.jsx.map +0 -1
- package/jsx/core/Card/Card.styles.d.ts +0 -2
- package/jsx/core/Card/Card.styles.d.ts.map +0 -1
- package/jsx/core/Card/Card.styles.js +0 -5
- package/jsx/core/Card/Card.styles.js.map +0 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +0 -23
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -100
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -11
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -99
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +0 -10
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +0 -89
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +0 -4
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.js +0 -11
- package/jsx/core/ColorPicker/ColorPicker.styles.js.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -26
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.jsx +0 -58
- package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +0 -1
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +0 -24
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -369
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +0 -8
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +0 -8
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +0 -9
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx +0 -52
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +0 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -7
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +0 -1
- package/jsx/core/Configuration/Configuration.mocks.jsx +0 -9
- package/jsx/core/Configuration/Configuration.mocks.jsx.map +0 -1
- package/jsx/core/Configuration/Configuration.stories.d.ts +0 -25
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +0 -1
- package/jsx/core/Configuration/Configuration.stories.jsx +0 -196
- package/jsx/core/Configuration/Configuration.stories.jsx.map +0 -1
- package/jsx/core/Configuration/Configuration.styles.d.ts +0 -6
- package/jsx/core/Configuration/Configuration.styles.d.ts.map +0 -1
- package/jsx/core/Configuration/Configuration.styles.js +0 -12
- package/jsx/core/Configuration/Configuration.styles.js.map +0 -1
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +0 -14
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +0 -1
- package/jsx/core/CreditCard/CreditCard.stories.jsx +0 -50
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +0 -1
- package/jsx/core/Currency/Currency.stories.d.ts +0 -19
- package/jsx/core/Currency/Currency.stories.d.ts.map +0 -1
- package/jsx/core/Currency/Currency.stories.jsx +0 -105
- package/jsx/core/Currency/Currency.stories.jsx.map +0 -1
- package/jsx/core/DangerButton/DangerButton.stories.d.ts +0 -6
- package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +0 -1
- package/jsx/core/DangerButton/DangerButton.stories.jsx +0 -17
- package/jsx/core/DangerButton/DangerButton.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +0 -51
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +0 -291
- package/jsx/core/DateTime/DateTime.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +0 -54
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts +0 -7
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx +0 -34
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +0 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +0 -7
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +0 -1
- package/jsx/core/Dialog/Dialog.stories.jsx +0 -15
- package/jsx/core/Dialog/Dialog.stories.jsx.map +0 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -27
- package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +0 -1
- package/jsx/core/Dialog/FormDialog.mocks.jsx +0 -194
- package/jsx/core/Dialog/FormDialog.mocks.jsx.map +0 -1
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -4
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +0 -1
- package/jsx/core/Dialog/InfoDialog.mocks.jsx +0 -64
- package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +0 -1
- package/jsx/core/Drawer/Drawer.stories.d.ts +0 -7
- package/jsx/core/Drawer/Drawer.stories.d.ts.map +0 -1
- package/jsx/core/Drawer/Drawer.stories.jsx +0 -98
- package/jsx/core/Drawer/Drawer.stories.jsx.map +0 -1
- package/jsx/core/Drawer/Drawer.styles.d.ts +0 -2
- package/jsx/core/Drawer/Drawer.styles.d.ts.map +0 -1
- package/jsx/core/Drawer/Drawer.styles.js +0 -11
- package/jsx/core/Drawer/Drawer.styles.js.map +0 -1
- package/jsx/core/Email/EmailDisplay.stories.d.ts +0 -6
- package/jsx/core/Email/EmailDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Email/EmailDisplay.stories.jsx +0 -19
- package/jsx/core/Email/EmailDisplay.stories.jsx.map +0 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +0 -53
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -1
- package/jsx/core/EmptyState/EmptyState.stories.d.ts +0 -6
- package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
- package/jsx/core/EmptyState/EmptyState.stories.jsx +0 -18
- package/jsx/core/EmptyState/EmptyState.stories.jsx.map +0 -1
- package/jsx/core/ErrorState/ErrorState.stories.d.ts +0 -9
- package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
- package/jsx/core/ErrorState/ErrorState.stories.jsx +0 -20
- package/jsx/core/ErrorState/ErrorState.stories.jsx.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -73
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +0 -20
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +0 -93
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -25
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +0 -109
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +0 -12
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -134
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -20
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.jsx +0 -54
- package/jsx/core/FieldValueList/FieldValueList.mocks.jsx.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +0 -11
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx +0 -37
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +0 -2
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.styles.js +0 -8
- package/jsx/core/FieldValueList/FieldValueList.styles.js.map +0 -1
- package/jsx/core/File/FileDisplay.stories.d.ts +0 -20
- package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
- package/jsx/core/File/FileDisplay.stories.jsx +0 -140
- package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
- package/jsx/core/File/FileInput.stories.d.ts +0 -10
- package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
- package/jsx/core/File/FileInput.stories.jsx +0 -103
- package/jsx/core/File/FileInput.stories.jsx.map +0 -1
- package/jsx/core/File/FileService.mock.d.ts +0 -28
- package/jsx/core/File/FileService.mock.d.ts.map +0 -1
- package/jsx/core/File/FileService.mock.jsx +0 -139
- package/jsx/core/File/FileService.mock.jsx.map +0 -1
- package/jsx/core/File/MockFileInput.d.ts +0 -6
- package/jsx/core/File/MockFileInput.d.ts.map +0 -1
- package/jsx/core/File/MockFileInput.jsx +0 -24
- package/jsx/core/File/MockFileInput.jsx.map +0 -1
- package/jsx/core/Flex/Flex.styles.d.ts +0 -10
- package/jsx/core/Flex/Flex.styles.d.ts.map +0 -1
- package/jsx/core/Flex/Flex.styles.js +0 -41
- package/jsx/core/Flex/Flex.styles.js.map +0 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +0 -21
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +0 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx +0 -164
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +0 -1
- package/jsx/core/Flex/FlexItem.stories.d.ts +0 -13
- package/jsx/core/Flex/FlexItem.stories.d.ts.map +0 -1
- package/jsx/core/Flex/FlexItem.stories.jsx +0 -71
- package/jsx/core/Flex/FlexItem.stories.jsx.map +0 -1
- package/jsx/core/Form/Form.mocks.d.ts +0 -14
- package/jsx/core/Form/Form.mocks.d.ts.map +0 -1
- package/jsx/core/Form/Form.mocks.jsx +0 -265
- package/jsx/core/Form/Form.mocks.jsx.map +0 -1
- package/jsx/core/Form/Form.stories.d.ts +0 -25
- package/jsx/core/Form/Form.stories.d.ts.map +0 -1
- package/jsx/core/Form/Form.stories.jsx +0 -106
- package/jsx/core/Form/Form.stories.jsx.map +0 -1
- package/jsx/core/Grid/Grid.styles.d.ts +0 -6
- package/jsx/core/Grid/Grid.styles.d.ts.map +0 -1
- package/jsx/core/Grid/Grid.styles.js +0 -36
- package/jsx/core/Grid/Grid.styles.js.map +0 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +0 -23
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +0 -1
- package/jsx/core/Grid/GridContainer.stories.jsx +0 -168
- package/jsx/core/Grid/GridContainer.stories.jsx.map +0 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +0 -12
- package/jsx/core/Grid/GridItem.stories.d.ts.map +0 -1
- package/jsx/core/Grid/GridItem.stories.jsx +0 -74
- package/jsx/core/Grid/GridItem.stories.jsx.map +0 -1
- package/jsx/core/HTML/HTML.stories.d.ts +0 -6
- package/jsx/core/HTML/HTML.stories.d.ts.map +0 -1
- package/jsx/core/HTML/HTML.stories.jsx +0 -13
- package/jsx/core/HTML/HTML.stories.jsx.map +0 -1
- package/jsx/core/Icon/Icon.mocks.d.ts +0 -26
- package/jsx/core/Icon/Icon.mocks.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.mocks.jsx +0 -32
- package/jsx/core/Icon/Icon.mocks.jsx.map +0 -1
- package/jsx/core/Icon/Icon.stories.d.ts +0 -21
- package/jsx/core/Icon/Icon.stories.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.stories.jsx +0 -112
- package/jsx/core/Icon/Icon.stories.jsx.map +0 -1
- package/jsx/core/Icon/Icon.styles.d.ts +0 -4
- package/jsx/core/Icon/Icon.styles.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.styles.js +0 -25
- package/jsx/core/Icon/Icon.styles.js.map +0 -1
- package/jsx/core/IconPicker/IconPicker.stories.d.ts +0 -6
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -35
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +0 -1
- package/jsx/core/Image/Image.stories.d.ts +0 -5
- package/jsx/core/Image/Image.stories.d.ts.map +0 -1
- package/jsx/core/Image/Image.stories.jsx +0 -9
- package/jsx/core/Image/Image.stories.jsx.map +0 -1
- package/jsx/core/Input/Input.stories.d.ts +0 -20
- package/jsx/core/Input/Input.stories.d.ts.map +0 -1
- package/jsx/core/Input/Input.stories.jsx +0 -159
- package/jsx/core/Input/Input.stories.jsx.map +0 -1
- package/jsx/core/Label/Label.stories.d.ts +0 -10
- package/jsx/core/Label/Label.stories.d.ts.map +0 -1
- package/jsx/core/Label/Label.stories.jsx +0 -33
- package/jsx/core/Label/Label.stories.jsx.map +0 -1
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts +0 -22
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
- package/jsx/core/Lightbox/Lightbox.mocks.js +0 -97
- package/jsx/core/Lightbox/Lightbox.mocks.js.map +0 -1
- package/jsx/core/Lightbox/Lightbox.stories.d.ts +0 -10
- package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +0 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx +0 -70
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
- package/jsx/core/Link/Link.stories.d.ts +0 -13
- package/jsx/core/Link/Link.stories.d.ts.map +0 -1
- package/jsx/core/Link/Link.stories.jsx +0 -43
- package/jsx/core/Link/Link.stories.jsx.map +0 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +0 -6
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx +0 -31
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +0 -1
- package/jsx/core/List/OrderedList.stories.d.ts +0 -10
- package/jsx/core/List/OrderedList.stories.d.ts.map +0 -1
- package/jsx/core/List/OrderedList.stories.jsx +0 -38
- package/jsx/core/List/OrderedList.stories.jsx.map +0 -1
- package/jsx/core/List/UnorderedList.stories.d.ts +0 -10
- package/jsx/core/List/UnorderedList.stories.d.ts.map +0 -1
- package/jsx/core/List/UnorderedList.stories.jsx +0 -38
- package/jsx/core/List/UnorderedList.stories.jsx.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +0 -9
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +0 -58
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +0 -17
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +0 -141
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +0 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts +0 -5
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +0 -1
- package/jsx/core/LiveLog/LiveLog.mocks.jsx +0 -47
- package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +0 -1
- package/jsx/core/LiveLog/LiveLog.stories.d.ts +0 -9
- package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +0 -1
- package/jsx/core/LiveLog/LiveLog.stories.jsx +0 -19
- package/jsx/core/LiveLog/LiveLog.stories.jsx.map +0 -1
- package/jsx/core/Location/Location.stories.d.ts +0 -15
- package/jsx/core/Location/Location.stories.d.ts.map +0 -1
- package/jsx/core/Location/Location.stories.jsx +0 -142
- package/jsx/core/Location/Location.stories.jsx.map +0 -1
- package/jsx/core/Location/locationTestUtils.d.ts +0 -3
- package/jsx/core/Location/locationTestUtils.d.ts.map +0 -1
- package/jsx/core/Location/locationTestUtils.js +0 -29
- package/jsx/core/Location/locationTestUtils.js.map +0 -1
- package/jsx/core/Menu/Menu.mocks.d.ts +0 -4
- package/jsx/core/Menu/Menu.mocks.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.mocks.js +0 -179
- package/jsx/core/Menu/Menu.mocks.js.map +0 -1
- package/jsx/core/Menu/Menu.stories.d.ts +0 -18
- package/jsx/core/Menu/Menu.stories.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.stories.jsx +0 -196
- package/jsx/core/Menu/Menu.stories.jsx.map +0 -1
- package/jsx/core/Menu/Menu.styles.d.ts +0 -2
- package/jsx/core/Menu/Menu.styles.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.styles.js +0 -6
- package/jsx/core/Menu/Menu.styles.js.map +0 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +0 -16
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx +0 -188
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +0 -1
- package/jsx/core/MetaList/MetaList.stories.d.ts +0 -9
- package/jsx/core/MetaList/MetaList.stories.d.ts.map +0 -1
- package/jsx/core/MetaList/MetaList.stories.jsx +0 -24
- package/jsx/core/MetaList/MetaList.stories.jsx.map +0 -1
- package/jsx/core/Modal/Modal.mocks.d.ts +0 -4
- package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.mocks.jsx +0 -44
- package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
- package/jsx/core/Modal/Modal.stories.d.ts +0 -36
- package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.stories.jsx +0 -332
- package/jsx/core/Modal/Modal.stories.jsx.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -70
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +0 -401
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +0 -7
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +0 -133
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +0 -1
- package/jsx/core/NoValue/NoValue.stories.d.ts +0 -6
- package/jsx/core/NoValue/NoValue.stories.d.ts.map +0 -1
- package/jsx/core/NoValue/NoValue.stories.jsx +0 -30
- package/jsx/core/NoValue/NoValue.stories.jsx.map +0 -1
- package/jsx/core/Number/Number.stories.d.ts +0 -19
- package/jsx/core/Number/Number.stories.d.ts.map +0 -1
- package/jsx/core/Number/Number.stories.jsx +0 -303
- package/jsx/core/Number/Number.stories.jsx.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.js +0 -10
- package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +0 -33
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -287
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +0 -5
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +0 -40
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +0 -1
- package/jsx/core/Pagination/Pagination.stories.d.ts +0 -6
- package/jsx/core/Pagination/Pagination.stories.d.ts.map +0 -1
- package/jsx/core/Pagination/Pagination.stories.jsx +0 -19
- package/jsx/core/Pagination/Pagination.stories.jsx.map +0 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +0 -15
- package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
- package/jsx/core/Phone/Phone.stories.d.ts +0 -13
- package/jsx/core/Phone/Phone.stories.d.ts.map +0 -1
- package/jsx/core/Phone/Phone.stories.jsx +0 -52
- package/jsx/core/Phone/Phone.stories.jsx.map +0 -1
- package/jsx/core/Popover/Popover.mocks.d.ts +0 -9
- package/jsx/core/Popover/Popover.mocks.d.ts.map +0 -1
- package/jsx/core/Popover/Popover.mocks.jsx +0 -114
- package/jsx/core/Popover/Popover.mocks.jsx.map +0 -1
- package/jsx/core/Popover/Popover.stories.d.ts +0 -13
- package/jsx/core/Popover/Popover.stories.d.ts.map +0 -1
- package/jsx/core/Popover/Popover.stories.jsx +0 -209
- package/jsx/core/Popover/Popover.stories.jsx.map +0 -1
- package/jsx/core/Progress/Progress.mocks.d.ts +0 -2
- package/jsx/core/Progress/Progress.mocks.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.mocks.js +0 -2
- package/jsx/core/Progress/Progress.mocks.js.map +0 -1
- package/jsx/core/Progress/Progress.stories.d.ts +0 -16
- package/jsx/core/Progress/Progress.stories.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.stories.jsx +0 -124
- package/jsx/core/Progress/Progress.stories.jsx.map +0 -1
- package/jsx/core/Progress/Progress.styles.d.ts +0 -2
- package/jsx/core/Progress/Progress.styles.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.styles.js +0 -14
- package/jsx/core/Progress/Progress.styles.js.map +0 -1
- package/jsx/core/QRCode/QRCode.stories.d.ts +0 -9
- package/jsx/core/QRCode/QRCode.stories.d.ts.map +0 -1
- package/jsx/core/QRCode/QRCode.stories.jsx +0 -17
- package/jsx/core/QRCode/QRCode.stories.jsx.map +0 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +0 -23
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -95
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -12
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -101
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
- package/jsx/core/Rating/Rating.stories.d.ts +0 -13
- package/jsx/core/Rating/Rating.stories.d.ts.map +0 -1
- package/jsx/core/Rating/Rating.stories.jsx +0 -39
- package/jsx/core/Rating/Rating.stories.jsx.map +0 -1
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts +0 -12
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +0 -1
- package/jsx/core/SearchInput/SearchInput.mocks.js +0 -25
- package/jsx/core/SearchInput/SearchInput.mocks.js.map +0 -1
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +0 -7
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -44
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +0 -1
- package/jsx/core/Select/Select.stories.d.ts +0 -18
- package/jsx/core/Select/Select.stories.d.ts.map +0 -1
- package/jsx/core/Select/Select.stories.jsx +0 -83
- package/jsx/core/Select/Select.stories.jsx.map +0 -1
- package/jsx/core/Sentiment/Sentiment.stories.d.ts +0 -20
- package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
- package/jsx/core/Sentiment/Sentiment.stories.jsx +0 -71
- package/jsx/core/Sentiment/Sentiment.stories.jsx.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +0 -6
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx +0 -29
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +0 -2
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.styles.js +0 -16
- package/jsx/core/SkipLinks/SkipLinks.styles.js.map +0 -1
- package/jsx/core/Slider/Slider.stories.d.ts +0 -13
- package/jsx/core/Slider/Slider.stories.d.ts.map +0 -1
- package/jsx/core/Slider/Slider.stories.jsx +0 -78
- package/jsx/core/Slider/Slider.stories.jsx.map +0 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx +0 -36
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +0 -1
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts +0 -20
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
- package/jsx/core/SummaryList/SummaryList.mocks.jsx +0 -48
- package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +0 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +0 -13
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx +0 -131
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +0 -1
- package/jsx/core/SummaryList/mockUsers.d.ts +0 -16
- package/jsx/core/SummaryList/mockUsers.d.ts.map +0 -1
- package/jsx/core/SummaryList/mockUsers.js +0 -904
- package/jsx/core/SummaryList/mockUsers.js.map +0 -1
- package/jsx/core/Switch/Switch.stories.d.ts +0 -14
- package/jsx/core/Switch/Switch.stories.d.ts.map +0 -1
- package/jsx/core/Switch/Switch.stories.jsx +0 -60
- package/jsx/core/Switch/Switch.stories.jsx.map +0 -1
- package/jsx/core/Switch/Switch.styles.d.ts +0 -2
- package/jsx/core/Switch/Switch.styles.d.ts.map +0 -1
- package/jsx/core/Switch/Switch.styles.js +0 -13
- package/jsx/core/Switch/Switch.styles.js.map +0 -1
- package/jsx/core/Table/Table.mocks.d.ts +0 -25
- package/jsx/core/Table/Table.mocks.d.ts.map +0 -1
- package/jsx/core/Table/Table.mocks.jsx +0 -166
- package/jsx/core/Table/Table.mocks.jsx.map +0 -1
- package/jsx/core/Table/Table.stories.d.ts +0 -39
- package/jsx/core/Table/Table.stories.d.ts.map +0 -1
- package/jsx/core/Table/Table.stories.jsx +0 -178
- package/jsx/core/Table/Table.stories.jsx.map +0 -1
- package/jsx/core/Table/Table.styles.d.ts +0 -4
- package/jsx/core/Table/Table.styles.d.ts.map +0 -1
- package/jsx/core/Table/Table.styles.js +0 -9
- package/jsx/core/Table/Table.styles.js.map +0 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +0 -9
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +0 -59
- package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
- package/jsx/core/Text/Text.stories.d.ts +0 -25
- package/jsx/core/Text/Text.stories.d.ts.map +0 -1
- package/jsx/core/Text/Text.stories.jsx +0 -134
- package/jsx/core/Text/Text.stories.jsx.map +0 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +0 -14
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +0 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +0 -71
- package/jsx/core/TextArea/TextArea.stories.jsx.map +0 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +0 -5
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +0 -27
- package/jsx/core/Toaster/Toaster.stories.jsx.map +0 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +0 -11
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx +0 -66
- package/jsx/core/Tooltip/Tooltip.stories.jsx.map +0 -1
- package/jsx/core/Tooltip/Tooltip.styles.d.ts +0 -2
- package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +0 -1
- package/jsx/core/Tooltip/Tooltip.styles.js +0 -23
- package/jsx/core/Tooltip/Tooltip.styles.js.map +0 -1
- package/jsx/core/Tree/Tree.mocks.d.ts +0 -2
- package/jsx/core/Tree/Tree.mocks.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.mocks.js +0 -20
- package/jsx/core/Tree/Tree.mocks.js.map +0 -1
- package/jsx/core/Tree/Tree.stories.d.ts +0 -7
- package/jsx/core/Tree/Tree.stories.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.stories.jsx +0 -95
- package/jsx/core/Tree/Tree.stories.jsx.map +0 -1
- package/jsx/core/Tree/Tree.styles.d.ts +0 -3
- package/jsx/core/Tree/Tree.styles.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.styles.js +0 -10
- package/jsx/core/Tree/Tree.styles.js.map +0 -1
- package/jsx/core/URL/URL.stories.d.ts +0 -6
- package/jsx/core/URL/URL.stories.d.ts.map +0 -1
- package/jsx/core/URL/URL.stories.jsx +0 -17
- package/jsx/core/URL/URL.stories.jsx.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +0 -15
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +0 -33
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +0 -10
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx +0 -55
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +0 -6
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.js +0 -32
- package/jsx/dnd/DragDropList/DragDropList.styles.js.map +0 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +0 -7
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/Demo.jsx +0 -156
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -10
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +0 -26
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -12
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +0 -21
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +0 -14
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/Popover.jsx +0 -51
- package/jsx/dnd/StandardDragDropList/Popover.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -16
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +0 -104
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +0 -5
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +0 -15
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +0 -26
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/mockData.js +0 -77
- package/jsx/dnd/StandardDragDropList/mockData.js.map +0 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -103
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
- package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +0 -11
- package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +0 -82
- package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +0 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts +0 -329
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +0 -1
- package/jsx/rte/Editor/Editor.mocks.jsx +0 -22
- package/jsx/rte/Editor/Editor.mocks.jsx.map +0 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +0 -14
- package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
- package/jsx/rte/Editor/Editor.stories.jsx +0 -159
- package/jsx/rte/Editor/Editor.stories.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -34
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -7
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -108
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -13
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -151
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +0 -52
- package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.mocks.js +0 -767
- package/jsx/social/Chat/Chat.mocks.js.map +0 -1
- package/jsx/social/Chat/Chat.stories.d.ts +0 -55
- package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.stories.jsx +0 -678
- package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
- package/jsx/social/Email/Email.mocks.d.ts +0 -352
- package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
- package/jsx/social/Email/Email.mocks.jsx +0 -1215
- package/jsx/social/Email/Email.mocks.jsx.map +0 -1
- package/jsx/social/Email/Email.stories.d.ts +0 -83
- package/jsx/social/Email/Email.stories.d.ts.map +0 -1
- package/jsx/social/Email/Email.stories.jsx +0 -1219
- package/jsx/social/Email/Email.stories.jsx.map +0 -1
- package/jsx/social/Email/Email.styles.d.ts +0 -3
- package/jsx/social/Email/Email.styles.d.ts.map +0 -1
- package/jsx/social/Email/Email.styles.js +0 -11
- package/jsx/social/Email/Email.styles.js.map +0 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +0 -53
- package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/Feed.mocks.jsx +0 -412
- package/jsx/social/Feed/Feed.mocks.jsx.map +0 -1
- package/jsx/social/Feed/Feed.stories.d.ts +0 -11
- package/jsx/social/Feed/Feed.stories.d.ts.map +0 -1
- package/jsx/social/Feed/Feed.stories.jsx +0 -222
- package/jsx/social/Feed/Feed.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -8
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/FeedNewPost.mocks.jsx +0 -29
- package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +0 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -4
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/FeedPost.mocks.jsx +0 -182
- package/jsx/social/Feed/FeedPost.mocks.jsx.map +0 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -13
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/FeedReply.mocks.jsx +0 -83
- package/jsx/social/Feed/FeedReply.mocks.jsx.map +0 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -30
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
- package/jsx/work/Article/Article.mocks.d.ts +0 -18
- package/jsx/work/Article/Article.mocks.d.ts.map +0 -1
- package/jsx/work/Article/Article.mocks.js +0 -18
- package/jsx/work/Article/Article.mocks.js.map +0 -1
- package/jsx/work/Article/Article.stories.d.ts +0 -18
- package/jsx/work/Article/Article.stories.d.ts.map +0 -1
- package/jsx/work/Article/Article.stories.jsx +0 -243
- package/jsx/work/Article/Article.stories.jsx.map +0 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +0 -12
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +0 -87
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +0 -1
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts +0 -222
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleList.mocks.js +0 -490
- package/jsx/work/ArticleList/ArticleList.mocks.js.map +0 -1
- package/jsx/work/ArticleList/ArticleList.stories.d.ts +0 -15
- package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleList.stories.jsx +0 -517
- package/jsx/work/ArticleList/ArticleList.stories.jsx.map +0 -1
- package/jsx/work/Assignments/Assignments.stories.d.ts +0 -11
- package/jsx/work/Assignments/Assignments.stories.d.ts.map +0 -1
- package/jsx/work/Assignments/Assignments.stories.jsx +0 -64
- package/jsx/work/Assignments/Assignments.stories.jsx.map +0 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -3
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +0 -397
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -117
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +0 -642
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +0 -6
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +0 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +0 -57
- package/jsx/work/CaseView/CaseView.stories.jsx.map +0 -1
- package/jsx/work/CaseView/Details.mocks.d.ts +0 -3
- package/jsx/work/CaseView/Details.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Details.mocks.jsx +0 -21
- package/jsx/work/CaseView/Details.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +0 -7
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +0 -35
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -45
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +0 -166
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -5
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -24
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +0 -4
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +0 -11
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +0 -1
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +0 -13
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +0 -39
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +0 -1
- package/jsx/work/Confirmation/Confirmation.styles.d.ts +0 -2
- package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
- package/jsx/work/Confirmation/Confirmation.styles.js +0 -7
- package/jsx/work/Confirmation/Confirmation.styles.js.map +0 -1
- package/jsx/work/Details/Details.stories.d.ts +0 -10
- package/jsx/work/Details/Details.stories.d.ts.map +0 -1
- package/jsx/work/Details/Details.stories.jsx +0 -109
- package/jsx/work/Details/Details.stories.jsx.map +0 -1
- package/jsx/work/DetailsV2/DetailsV2.stories.d.ts +0 -10
- package/jsx/work/DetailsV2/DetailsV2.stories.d.ts.map +0 -1
- package/jsx/work/DetailsV2/DetailsV2.stories.jsx +0 -215
- package/jsx/work/DetailsV2/DetailsV2.stories.jsx.map +0 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts +0 -5
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx +0 -42
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +0 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -5
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -115
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -1
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +0 -13
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx +0 -56
- package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -3
- package/jsx/work/Predictions/Predictions.mocks.d.ts.map +0 -1
- package/jsx/work/Predictions/Predictions.mocks.jsx +0 -18
- package/jsx/work/Predictions/Predictions.mocks.jsx.map +0 -1
- package/jsx/work/Predictions/Predictions.stories.d.ts +0 -5
- package/jsx/work/Predictions/Predictions.stories.d.ts.map +0 -1
- package/jsx/work/Predictions/Predictions.stories.jsx +0 -53
- package/jsx/work/Predictions/Predictions.stories.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +0 -14
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx +0 -97
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +0 -9
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +0 -242
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.styles.d.ts +0 -5
- package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.styles.js +0 -12
- package/jsx/work/SearchResults/SearchResults.styles.js.map +0 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +0 -14
- package/jsx/work/Stages/Stages.mocks.d.ts.map +0 -1
- package/jsx/work/Stages/Stages.mocks.jsx +0 -40
- package/jsx/work/Stages/Stages.mocks.jsx.map +0 -1
- package/jsx/work/Stages/Stages.stories.d.ts +0 -11
- package/jsx/work/Stages/Stages.stories.d.ts.map +0 -1
- package/jsx/work/Stages/Stages.stories.jsx +0 -45
- package/jsx/work/Stages/Stages.stories.jsx.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +0 -17
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +0 -36
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +0 -8
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +0 -99
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
- package/jsx/work/Tags/Tags.mocks.d.ts +0 -3
- package/jsx/work/Tags/Tags.mocks.d.ts.map +0 -1
- package/jsx/work/Tags/Tags.mocks.js +0 -76
- package/jsx/work/Tags/Tags.mocks.js.map +0 -1
- package/jsx/work/Tags/Tags.stories.d.ts +0 -10
- package/jsx/work/Tags/Tags.stories.d.ts.map +0 -1
- package/jsx/work/Tags/Tags.stories.jsx +0 -66
- package/jsx/work/Tags/Tags.stories.jsx.map +0 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts +0 -5
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +0 -1
- package/jsx/work/Tasks/TaskList.stories.jsx +0 -19
- package/jsx/work/Tasks/TaskList.stories.jsx.map +0 -1
- package/jsx/work/Tasks/Tasks.mocks.d.ts +0 -22
- package/jsx/work/Tasks/Tasks.mocks.d.ts.map +0 -1
- package/jsx/work/Tasks/Tasks.mocks.js +0 -51
- package/jsx/work/Tasks/Tasks.mocks.js.map +0 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +0 -15
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +0 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +0 -79
- package/jsx/work/Tasks/Tasks.stories.jsx.map +0 -1
- package/jsx/work/Timeline/Timeline.mocks.d.ts +0 -3
- package/jsx/work/Timeline/Timeline.mocks.d.ts.map +0 -1
- package/jsx/work/Timeline/Timeline.mocks.jsx +0 -144
- package/jsx/work/Timeline/Timeline.mocks.jsx.map +0 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +0 -78
- package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -24
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/wss/AppShell/AppShell.mocks.jsx +0 -64
- package/jsx/wss/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/wss/AppShell/AppShell.stories.d.ts +0 -19
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/wss/AppShell/AppShell.stories.jsx +0 -96
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/wss/AppShell/AppShell.styles.d.ts +0 -2
- package/jsx/wss/AppShell/AppShell.styles.d.ts.map +0 -1
- package/jsx/wss/AppShell/AppShell.styles.js +0 -5
- package/jsx/wss/AppShell/AppShell.styles.js.map +0 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -13
- package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +0 -1
- package/jsx/wss/CaseView/CaseView.mocks.jsx +0 -34
- package/jsx/wss/CaseView/CaseView.mocks.jsx.map +0 -1
- package/jsx/wss/CaseView/CaseView.stories.d.ts +0 -12
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +0 -1
- package/jsx/wss/CaseView/CaseView.stories.jsx +0 -74
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +0 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +0 -15
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +0 -41
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +0 -11
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +0 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +0 -28
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +0 -1
|
@@ -1,1219 +0,0 @@
|
|
|
1
|
-
import { useState, useRef, useCallback, useEffect, createRef } from 'react';
|
|
2
|
-
import { action } from '@storybook/addon-actions';
|
|
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';
|
|
4
|
-
import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
|
|
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, forwardedContent, getCompositeId, emptyFieldErrorMessage, fieldValidation, emailWorklistItemsMock, contextMenuItemsMock, highlightedEntitiesMock, mockUploadImage, mailDeliverySystemEmail, supportTeamEmail, bodyData, emailAccounts, getTemplate } from './Email.mocks';
|
|
8
|
-
import { StyledEmailCardContent } from './Email.styles';
|
|
9
|
-
registerIcon(filterIcon);
|
|
10
|
-
export default {
|
|
11
|
-
title: 'Social/Email',
|
|
12
|
-
component: EmailComponent
|
|
13
|
-
};
|
|
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);
|
|
27
|
-
}
|
|
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);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}, []);
|
|
41
|
-
return (<Card>
|
|
42
|
-
<StyledEmailCardContent>
|
|
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={args.body ||
|
|
44
|
-
'<div style="font-size: 0.95em;">Hi,<p>I am one of the customer of Indian Overseas Bank, <b><i>Nagercoil</i></b> branch, with code <b><a href="https://www.pega.com" target="_blank"><i>3967</i></a></b>. I have a saving bank account here. My account number is <i>6785420965476</i> with an account balance of ₹97,398.57.</p><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><p>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to send me an new debit card to my address, 22-6-14/A(99M5+RR), Gandhi Road, Hyderabad, as early as possible.<p><br/><p style="font-weight: bold; color: #0fa4ad">Regards,<br/>Laura Stevens</p><img style="width: 100px; margin-left: -8px;" loading="lazy" alt="Pega logo" src="https://www.pega.com/sites/default/files/media/images/2021-10/pega-logo-vertical-positive-rgb-01.png" /></div>'} forwardedContent={args.forwardedContent} entityHighlightMapping={args.enableEntityHighlighting
|
|
45
|
-
? args.entityHighlightMapping || highlightedEntitiesMock
|
|
46
|
-
: undefined} subject={args.subject || 'I lost my debit card'} banner={args.showEmailBanner
|
|
47
|
-
? {
|
|
48
|
-
messages: [
|
|
49
|
-
{
|
|
50
|
-
label: 'Address not found.',
|
|
51
|
-
description: '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'
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
: undefined} onReply={args.onReply || (args.showDraft ? undefined : action('On reply'))} onReplyAll={args.onReplyAll || (args.showDraft ? undefined : action('On reply all'))} onForward={args.onForward || (args.showDraft ? undefined : action('On forward'))} onEditDraft={args.onEditDraft || (args.showDraft ? action('On forward') : undefined)} onDeleteDraft={args.onDeleteDraft || (args.showDraft ? action('On forward') : undefined)} onSuggestionClick={args.onSuggestionClick || action('On Suggested reply clicked')} sentiment={{
|
|
56
|
-
variant: 'neutral'
|
|
57
|
-
}} status={args.showDraft ? 'draft' : undefined} suggestions={mockSuggestedReplies} contextMenu={args.contextMenu ||
|
|
58
|
-
(args.enableContextMenu
|
|
59
|
-
? {
|
|
60
|
-
onItemClick: (selectedValue) => {
|
|
61
|
-
action('onItemClick')(selectedValue);
|
|
62
|
-
contextMenuHandle.current?.setOpen(false);
|
|
63
|
-
},
|
|
64
|
-
onContextMenu: handleRightClick,
|
|
65
|
-
handle: contextMenuHandle
|
|
66
|
-
}
|
|
67
|
-
: undefined)} attachments={[
|
|
68
|
-
{
|
|
69
|
-
id: 'attachment_0',
|
|
70
|
-
value: 'https://pega.com/media/document.doc',
|
|
71
|
-
displayText: 'Policy document'
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 'attachment_1',
|
|
75
|
-
value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
|
|
76
|
-
displayText: 'E-Ticket'
|
|
77
|
-
}
|
|
78
|
-
].map(attachment => {
|
|
79
|
-
return {
|
|
80
|
-
...attachment,
|
|
81
|
-
onDownload: action('On attachment download')
|
|
82
|
-
};
|
|
83
|
-
})}/>
|
|
84
|
-
</StyledEmailCardContent>
|
|
85
|
-
</Card>);
|
|
86
|
-
};
|
|
87
|
-
Email.args = {
|
|
88
|
-
enableEntityHighlighting: false,
|
|
89
|
-
enableContextMenu: false,
|
|
90
|
-
forwardedContent,
|
|
91
|
-
showEmailBanner: false,
|
|
92
|
-
showDraft: false
|
|
93
|
-
};
|
|
94
|
-
Email.argTypes = {
|
|
95
|
-
enableEntityHighlighting: { control: { type: 'boolean' } },
|
|
96
|
-
enableContextMenu: { control: { type: 'boolean' } },
|
|
97
|
-
forwardedContent: { control: { type: 'text' } },
|
|
98
|
-
showEmailBanner: { control: { type: 'boolean' } },
|
|
99
|
-
showDraft: { control: { type: 'boolean' } }
|
|
100
|
-
};
|
|
101
|
-
export const Composer = (args) => {
|
|
102
|
-
const enableSaveAsDraft = args.enableSaveAsDraft !== undefined ? args.enableSaveAsDraft : true;
|
|
103
|
-
const enableResponseTypeToggle = args.enableResponseTypeToggle !== undefined ? args.enableResponseTypeToggle : true;
|
|
104
|
-
const [composerProgress, setComposerProgress] = useState(false);
|
|
105
|
-
const composerHandle = useRef(null);
|
|
106
|
-
const [data, setData] = useState({
|
|
107
|
-
to: { value: toParticipants },
|
|
108
|
-
cc: { value: [] },
|
|
109
|
-
bcc: { value: [] },
|
|
110
|
-
subject: { value: 'Request: Pause service' },
|
|
111
|
-
bodyContent: {
|
|
112
|
-
defaultValue: bodyData
|
|
113
|
-
},
|
|
114
|
-
responseType: 'reply',
|
|
115
|
-
selectedTemplateId: '',
|
|
116
|
-
attachments: emailAttachments,
|
|
117
|
-
bodyContentCurrentValue: ''
|
|
118
|
-
});
|
|
119
|
-
const handleOnChange = (field, value, isProgramatic) => {
|
|
120
|
-
if (field === 'bodyContent') {
|
|
121
|
-
setData(prev => ({
|
|
122
|
-
...prev,
|
|
123
|
-
bodyContentCurrentValue: value,
|
|
124
|
-
bodyContent: {
|
|
125
|
-
defaultValue: value
|
|
126
|
-
}
|
|
127
|
-
}));
|
|
128
|
-
}
|
|
129
|
-
if (['responseType', 'attachments', 'selectedTemplateId'].includes(field)) {
|
|
130
|
-
setData(prev => ({
|
|
131
|
-
...prev,
|
|
132
|
-
[field]: value
|
|
133
|
-
}));
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
setData(prev => {
|
|
137
|
-
return {
|
|
138
|
-
...prev,
|
|
139
|
-
[field]: { error: undefined, value }
|
|
140
|
-
};
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
action('onChange')(field, value, isProgramatic);
|
|
144
|
-
};
|
|
145
|
-
useEffect(() => {
|
|
146
|
-
if (data.responseType === 'reply') {
|
|
147
|
-
setData(prev => {
|
|
148
|
-
return {
|
|
149
|
-
...prev,
|
|
150
|
-
to: {
|
|
151
|
-
...prev.to,
|
|
152
|
-
value: [toParticipants[0]]
|
|
153
|
-
},
|
|
154
|
-
cc: {
|
|
155
|
-
...prev.cc,
|
|
156
|
-
value: []
|
|
157
|
-
},
|
|
158
|
-
bcc: {
|
|
159
|
-
...prev.bcc,
|
|
160
|
-
value: []
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
else if (data.responseType === 'replyAll') {
|
|
166
|
-
setData(prev => {
|
|
167
|
-
return {
|
|
168
|
-
...prev,
|
|
169
|
-
to: {
|
|
170
|
-
...prev.to,
|
|
171
|
-
value: toParticipants
|
|
172
|
-
},
|
|
173
|
-
cc: {
|
|
174
|
-
...prev.cc,
|
|
175
|
-
value: ccParticipants
|
|
176
|
-
},
|
|
177
|
-
bcc: {
|
|
178
|
-
...prev.bcc,
|
|
179
|
-
value: bccParticipants
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
else if (data.responseType === 'forward') {
|
|
185
|
-
setData(prev => {
|
|
186
|
-
return {
|
|
187
|
-
...prev,
|
|
188
|
-
to: {
|
|
189
|
-
...prev.to,
|
|
190
|
-
value: []
|
|
191
|
-
},
|
|
192
|
-
cc: {
|
|
193
|
-
...prev.cc,
|
|
194
|
-
value: []
|
|
195
|
-
},
|
|
196
|
-
bcc: {
|
|
197
|
-
...prev.bcc,
|
|
198
|
-
value: []
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
}, [data.responseType]);
|
|
204
|
-
const onTemplateChange = (templateId) => {
|
|
205
|
-
const selectedTemplate = getTemplate(templateId);
|
|
206
|
-
setComposerProgress({ message: 'Loading template...' });
|
|
207
|
-
setTimeout(() => {
|
|
208
|
-
setComposerProgress(false);
|
|
209
|
-
composerHandle.current?.replaceBodyContent(selectedTemplate?.content || '');
|
|
210
|
-
composerHandle.current?.setCursorLocationToStart?.();
|
|
211
|
-
}, 1000);
|
|
212
|
-
};
|
|
213
|
-
useEffect(() => {
|
|
214
|
-
if (data.selectedTemplateId)
|
|
215
|
-
onTemplateChange(data.selectedTemplateId);
|
|
216
|
-
}, [data.selectedTemplateId]);
|
|
217
|
-
const handleOnSend = () => {
|
|
218
|
-
setData(prev => {
|
|
219
|
-
return {
|
|
220
|
-
...prev,
|
|
221
|
-
to: {
|
|
222
|
-
value: prev.to?.value || [],
|
|
223
|
-
error: data?.to?.value.length === 0 ? emptyFieldErrorMessage : fieldValidation(data?.to?.value)
|
|
224
|
-
},
|
|
225
|
-
cc: {
|
|
226
|
-
value: prev.cc?.value || [],
|
|
227
|
-
error: data.cc === undefined ? undefined : fieldValidation(data.cc.value)
|
|
228
|
-
},
|
|
229
|
-
bcc: {
|
|
230
|
-
value: prev.bcc?.value || [],
|
|
231
|
-
error: data.bcc === undefined ? undefined : fieldValidation(data.bcc.value)
|
|
232
|
-
},
|
|
233
|
-
subject: {
|
|
234
|
-
...prev.subject,
|
|
235
|
-
error: data.subject?.value === '' ? emptyFieldErrorMessage : undefined
|
|
236
|
-
},
|
|
237
|
-
bodyContent: {
|
|
238
|
-
...prev.bodyContent,
|
|
239
|
-
error: data.bodyContentCurrentValue === '' ? emptyFieldErrorMessage : undefined
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
const onImageAdded = (image, id) => {
|
|
245
|
-
action('On Image added');
|
|
246
|
-
setComposerProgress({ message: 'Uploading image' });
|
|
247
|
-
mockUploadImage(image)
|
|
248
|
-
.then(({ src, alt }) => {
|
|
249
|
-
composerHandle.current?.updateImage({ src, alt }, id);
|
|
250
|
-
setComposerProgress(false);
|
|
251
|
-
})
|
|
252
|
-
.catch(() => {
|
|
253
|
-
setComposerProgress(false);
|
|
254
|
-
});
|
|
255
|
-
};
|
|
256
|
-
const pushContentToBody = () => {
|
|
257
|
-
if (args.bodyContentToReplace)
|
|
258
|
-
composerHandle.current?.replaceBodyContent(args.bodyContentToReplace);
|
|
259
|
-
};
|
|
260
|
-
const onEditorInit = () => {
|
|
261
|
-
action('onEditorInit')();
|
|
262
|
-
};
|
|
263
|
-
return (<>
|
|
264
|
-
<EmailComposer handle={composerHandle} progress={composerProgress} onSave={args.onSave || (enableSaveAsDraft ? action('On save') : undefined)} onSend={args.onSend || handleOnSend} onCancel={args.onCancel || action('On cancel')} externalValidator={handleExternalEntry} participants={participants} onChange={args.onChange || handleOnChange} data={args.data || {
|
|
265
|
-
...data,
|
|
266
|
-
responseType: enableResponseTypeToggle ? data.responseType : undefined
|
|
267
|
-
}} templates={templates} onImageAdded={onImageAdded} onEditorInit={onEditorInit}/>
|
|
268
|
-
<Button onClick={pushContentToBody}>Replace body content</Button>
|
|
269
|
-
</>);
|
|
270
|
-
};
|
|
271
|
-
Composer.args = {
|
|
272
|
-
enableResponseTypeToggle: true,
|
|
273
|
-
enableSaveAsDraft: true,
|
|
274
|
-
bodyContentToReplace: 'Hello Eula,<br>Welcome to the world of <b>Awesome product</b>.<br><br>We appreciate your interest in this our <i>Awesome product</i>.<br><br>Please carefully read through the <a href="pega.com">user manual</a> carefully before operating this product.<br>For any queries you can always reach out to us through any of the contact details mentioned on <a href="https://www.pega.com/contact-us">our website</a>.<br><br> Regards,<br>Customer Support<br><span style="font-weight:bold">Awesome Product</span>'
|
|
275
|
-
};
|
|
276
|
-
Composer.argTypes = {
|
|
277
|
-
enableResponseTypeToggle: {
|
|
278
|
-
control: 'boolean'
|
|
279
|
-
},
|
|
280
|
-
enableSaveAsDraft: {
|
|
281
|
-
control: { type: 'boolean' }
|
|
282
|
-
},
|
|
283
|
-
bodyContentToReplace: {
|
|
284
|
-
control: { type: 'text' }
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
export const OutboundEmail = (args) => {
|
|
288
|
-
const { enableResponseTypeToggle = true, enableSaveAsDraft = true } = args;
|
|
289
|
-
const [composerProgress, setComposerProgress] = useState(false);
|
|
290
|
-
const composerHandle = useRef(null);
|
|
291
|
-
const [data, setData] = useState({
|
|
292
|
-
to: { value: [] },
|
|
293
|
-
cc: { value: [] },
|
|
294
|
-
bcc: { value: [] },
|
|
295
|
-
subject: { value: '' },
|
|
296
|
-
selectedTemplateId: '',
|
|
297
|
-
bodyContent: {
|
|
298
|
-
defaultValue: bodyData
|
|
299
|
-
},
|
|
300
|
-
bodyContentCurrentValue: ''
|
|
301
|
-
});
|
|
302
|
-
const handleOnChange = (field, value) => {
|
|
303
|
-
if (field === 'bodyContent') {
|
|
304
|
-
setData(prev => ({
|
|
305
|
-
...prev,
|
|
306
|
-
bodyContentCurrentValue: value
|
|
307
|
-
}));
|
|
308
|
-
}
|
|
309
|
-
else if (['attachments', 'selectedTemplateId'].includes(field)) {
|
|
310
|
-
setData(prev => ({
|
|
311
|
-
...prev,
|
|
312
|
-
[field]: value
|
|
313
|
-
}));
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
setData(prev => {
|
|
317
|
-
return {
|
|
318
|
-
...prev,
|
|
319
|
-
[field]: { error: undefined, value }
|
|
320
|
-
};
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
action('onChange')(field, value);
|
|
324
|
-
};
|
|
325
|
-
const onTemplateChange = (templateId) => {
|
|
326
|
-
const selectedTemplate = getTemplate(templateId);
|
|
327
|
-
setComposerProgress({ message: 'Loading template...' });
|
|
328
|
-
setTimeout(() => {
|
|
329
|
-
setComposerProgress(false);
|
|
330
|
-
composerHandle.current?.replaceBodyContent(selectedTemplate?.content || '');
|
|
331
|
-
composerHandle.current?.setCursorLocationToStart?.();
|
|
332
|
-
}, 1000);
|
|
333
|
-
};
|
|
334
|
-
useEffect(() => {
|
|
335
|
-
if (data.selectedTemplateId)
|
|
336
|
-
onTemplateChange(data.selectedTemplateId);
|
|
337
|
-
}, [data.selectedTemplateId]);
|
|
338
|
-
const handleOnSend = () => {
|
|
339
|
-
setData(prev => {
|
|
340
|
-
return {
|
|
341
|
-
...prev,
|
|
342
|
-
emailAccount: {
|
|
343
|
-
value: prev.emailAccount?.value || '',
|
|
344
|
-
error: data.emailAccount?.value ? undefined : emptyFieldErrorMessage
|
|
345
|
-
},
|
|
346
|
-
to: {
|
|
347
|
-
value: prev.to?.value || [],
|
|
348
|
-
error: data?.to?.value.length === 0 ? emptyFieldErrorMessage : fieldValidation(data?.to?.value)
|
|
349
|
-
},
|
|
350
|
-
cc: {
|
|
351
|
-
value: prev.cc?.value || [],
|
|
352
|
-
error: data.cc === undefined ? undefined : fieldValidation(data.cc.value)
|
|
353
|
-
},
|
|
354
|
-
bcc: {
|
|
355
|
-
value: prev.bcc?.value || [],
|
|
356
|
-
error: data.bcc === undefined ? undefined : fieldValidation(data.bcc.value)
|
|
357
|
-
},
|
|
358
|
-
subject: {
|
|
359
|
-
...prev.subject,
|
|
360
|
-
error: data.subject?.value === '' ? emptyFieldErrorMessage : undefined
|
|
361
|
-
},
|
|
362
|
-
bodyContent: {
|
|
363
|
-
...prev.bodyContent,
|
|
364
|
-
error: data.bodyContentCurrentValue === '' ? emptyFieldErrorMessage : undefined
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
const onImageAdded = (image, id) => {
|
|
370
|
-
action('On Image added');
|
|
371
|
-
setComposerProgress({ message: 'Uploading image' });
|
|
372
|
-
mockUploadImage(image)
|
|
373
|
-
.then(({ src, alt }) => {
|
|
374
|
-
composerHandle.current?.updateImage({ src, alt }, id);
|
|
375
|
-
setComposerProgress(false);
|
|
376
|
-
})
|
|
377
|
-
.catch(() => {
|
|
378
|
-
setComposerProgress(false);
|
|
379
|
-
});
|
|
380
|
-
};
|
|
381
|
-
const onEditorInit = () => {
|
|
382
|
-
action('onEditorInit')();
|
|
383
|
-
};
|
|
384
|
-
return (<EmailComposer handle={composerHandle} progress={composerProgress} onSave={args.onSave || (enableSaveAsDraft ? action('On save') : undefined)} onSend={args.onSend || handleOnSend} onCancel={args.onCancel || action('On cancel')} externalValidator={handleExternalEntry} participants={participants} senderAccounts={emailAccounts} onChange={args.onChange || handleOnChange} data={args.data || {
|
|
385
|
-
...data,
|
|
386
|
-
responseType: enableResponseTypeToggle ? data.responseType : undefined
|
|
387
|
-
}} templates={templates} onImageAdded={onImageAdded} onEditorInit={onEditorInit}/>);
|
|
388
|
-
};
|
|
389
|
-
OutboundEmail.args = {
|
|
390
|
-
enableResponseTypeToggle: false,
|
|
391
|
-
enableSaveAsDraft: false
|
|
392
|
-
};
|
|
393
|
-
OutboundEmail.argTypes = {
|
|
394
|
-
enableResponseTypeToggle: {
|
|
395
|
-
control: 'boolean'
|
|
396
|
-
},
|
|
397
|
-
enableSaveAsDraft: {
|
|
398
|
-
control: { type: 'boolean' }
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
export const Conversation = (args) => {
|
|
402
|
-
const emailArr = [
|
|
403
|
-
{
|
|
404
|
-
id: 'item_0',
|
|
405
|
-
timeStamp: '2021-01-05T09:12',
|
|
406
|
-
from: mockEmails['Laura Stevens'],
|
|
407
|
-
cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
|
|
408
|
-
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
409
|
-
to: [mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']],
|
|
410
|
-
body: '<div> Hi, <br /> <br /> <div>Sure.. Here is your E-Ticket !! </div> <br /><br /> Regards, <br /> Laura Stevens </div>',
|
|
411
|
-
unRead: true,
|
|
412
|
-
onReply: action('On reply'),
|
|
413
|
-
onForward: action('On forward'),
|
|
414
|
-
onSuggestionClick: action('On Suggested reply clicked'),
|
|
415
|
-
suggestions: mockSuggestedReplies
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
id: 'item_1',
|
|
419
|
-
timeStamp: '2021-01-02T03:12',
|
|
420
|
-
from: mockEmails['Sara Davis'],
|
|
421
|
-
cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
|
|
422
|
-
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
423
|
-
to: [mockEmails['Laura Stevens'], mockEmails['John Brown'], mockEmails['Joe Stevens']],
|
|
424
|
-
body: '<div> Hi, <br /> <br /> <div>I’m still at the airport, I need help now!! </div> <br /><br /> Regards, <br /> Sara Davis </div>',
|
|
425
|
-
onReply: action('On reply'),
|
|
426
|
-
onForward: action('On forward'),
|
|
427
|
-
onSuggestionClick: action('On Suggested reply clicked')
|
|
428
|
-
}
|
|
429
|
-
];
|
|
430
|
-
return (<EmailConversation participants={generateEmailConversationParticipants(emailArr)} from={generateEmailConversationParticipants(emailArr, ['from'])[0]} to={generateEmailConversationParticipants(emailArr, ['to'])} id={createUID()} timeStamp={emailArr[0].timeStamp} unReadEmailCount={args.unReadEmailCount !== undefined
|
|
431
|
-
? args.unReadEmailCount
|
|
432
|
-
: emailArr.filter(item => item.unRead).length} emails={args.emails || emailArr} isForwarded={args.isForwarded || false} isCollapsed={args.isCollapsed || false} undelivered={args.undelivered || false} drafts={args.drafts || false}/>);
|
|
433
|
-
};
|
|
434
|
-
export const EmailShellDemo = (args) => {
|
|
435
|
-
const { create } = useModalManager();
|
|
436
|
-
const { push } = useToaster();
|
|
437
|
-
const actions = ['Transfer', 'End conversation'].map(name => ({
|
|
438
|
-
primary: name,
|
|
439
|
-
id: name,
|
|
440
|
-
onClick: action(`Clicked ${name}`)
|
|
441
|
-
}));
|
|
442
|
-
const [composersData, setComposersData] = useState({});
|
|
443
|
-
const [conversationEmails, setConversationEmails] = useState([]);
|
|
444
|
-
const handleResponseTypeChange = (uid, responseType) => {
|
|
445
|
-
if (responseType === 'reply') {
|
|
446
|
-
setComposersData(prev => {
|
|
447
|
-
return {
|
|
448
|
-
...prev,
|
|
449
|
-
[uid]: {
|
|
450
|
-
...prev[uid],
|
|
451
|
-
data: {
|
|
452
|
-
...prev[uid].data,
|
|
453
|
-
to: {
|
|
454
|
-
...prev[uid].data.to,
|
|
455
|
-
value: [toParticipants[0]]
|
|
456
|
-
},
|
|
457
|
-
cc: {
|
|
458
|
-
...prev[uid].data.cc,
|
|
459
|
-
value: []
|
|
460
|
-
},
|
|
461
|
-
bcc: {
|
|
462
|
-
...prev[uid].data.bcc,
|
|
463
|
-
value: []
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
else if (responseType === 'replyAll') {
|
|
471
|
-
setComposersData(prev => {
|
|
472
|
-
return {
|
|
473
|
-
...prev,
|
|
474
|
-
[uid]: {
|
|
475
|
-
...prev[uid],
|
|
476
|
-
data: {
|
|
477
|
-
...prev[uid].data,
|
|
478
|
-
to: {
|
|
479
|
-
...prev[uid].data.to,
|
|
480
|
-
value: toParticipants
|
|
481
|
-
},
|
|
482
|
-
cc: {
|
|
483
|
-
...prev[uid].data.cc,
|
|
484
|
-
value: ccParticipants
|
|
485
|
-
},
|
|
486
|
-
bcc: {
|
|
487
|
-
...prev[uid].data.bcc,
|
|
488
|
-
value: bccParticipants
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
const handleTemplateChange = (uid, templateId) => {
|
|
497
|
-
const selectedTemplate = getTemplate(templateId);
|
|
498
|
-
setComposersData(prev => {
|
|
499
|
-
return {
|
|
500
|
-
...prev,
|
|
501
|
-
[uid]: {
|
|
502
|
-
...prev[uid],
|
|
503
|
-
progress: { message: 'Loading template...' }
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
});
|
|
507
|
-
setTimeout(() => {
|
|
508
|
-
setComposersData(prev => {
|
|
509
|
-
return {
|
|
510
|
-
...prev,
|
|
511
|
-
[uid]: {
|
|
512
|
-
...prev[uid],
|
|
513
|
-
progress: false
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
});
|
|
517
|
-
let currentData = {};
|
|
518
|
-
setComposersData(prev => {
|
|
519
|
-
currentData = prev;
|
|
520
|
-
return prev;
|
|
521
|
-
});
|
|
522
|
-
if (currentData) {
|
|
523
|
-
currentData[uid]?.handle?.current?.replaceBodyContent(selectedTemplate?.content || '');
|
|
524
|
-
}
|
|
525
|
-
}, 1000);
|
|
526
|
-
};
|
|
527
|
-
const handleChange = (uid, field, value) => {
|
|
528
|
-
setComposersData(prevData => {
|
|
529
|
-
if (field === 'bodyContent' && typeof value === 'string') {
|
|
530
|
-
return {
|
|
531
|
-
...prevData,
|
|
532
|
-
[uid]: {
|
|
533
|
-
...prevData[uid],
|
|
534
|
-
bodyContentCurrentValue: value
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
return {
|
|
539
|
-
...prevData,
|
|
540
|
-
[uid]: {
|
|
541
|
-
...prevData[uid],
|
|
542
|
-
data: {
|
|
543
|
-
...prevData[uid].data,
|
|
544
|
-
[field]: ['responseType', 'attachments', 'selectedTemplateId'].includes(field)
|
|
545
|
-
? value
|
|
546
|
-
: {
|
|
547
|
-
error: undefined,
|
|
548
|
-
value
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
});
|
|
554
|
-
if (field === 'responseType' && typeof value === 'string') {
|
|
555
|
-
handleResponseTypeChange(uid, value);
|
|
556
|
-
}
|
|
557
|
-
else if (field === 'selectedTemplateId' && typeof value === 'string') {
|
|
558
|
-
handleTemplateChange(uid, value);
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
const MyModal = ({ currentID }) => {
|
|
562
|
-
const { dismiss } = useModalContext();
|
|
563
|
-
return (<Modal heading='Discard unsaved changes?' actions={<>
|
|
564
|
-
<Button onClick={dismiss}>Go back</Button>
|
|
565
|
-
<div>
|
|
566
|
-
<Button onClick={() => {
|
|
567
|
-
dismiss();
|
|
568
|
-
setComposersData(prev => {
|
|
569
|
-
return {
|
|
570
|
-
...prev,
|
|
571
|
-
[currentID]: {
|
|
572
|
-
...prev[currentID],
|
|
573
|
-
progress: true
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
});
|
|
577
|
-
setTimeout(() => {
|
|
578
|
-
setComposersData(prev => {
|
|
579
|
-
const newComposersData = { ...prev };
|
|
580
|
-
delete newComposersData[currentID];
|
|
581
|
-
return newComposersData;
|
|
582
|
-
});
|
|
583
|
-
push({ content: 'Draft Saved' });
|
|
584
|
-
}, 1000);
|
|
585
|
-
}}>
|
|
586
|
-
Save & close
|
|
587
|
-
</Button>
|
|
588
|
-
<Button variant='primary' onClick={() => {
|
|
589
|
-
dismiss();
|
|
590
|
-
setComposersData(prev => {
|
|
591
|
-
const newComposersData = { ...prev };
|
|
592
|
-
delete newComposersData[currentID];
|
|
593
|
-
return newComposersData;
|
|
594
|
-
});
|
|
595
|
-
}}>
|
|
596
|
-
Discard
|
|
597
|
-
</Button>
|
|
598
|
-
</div>
|
|
599
|
-
</>}>
|
|
600
|
-
<Text variant='primary'>
|
|
601
|
-
You have unsaved changes. You can discard them or go back to keep working.
|
|
602
|
-
</Text>
|
|
603
|
-
</Modal>);
|
|
604
|
-
};
|
|
605
|
-
const handleCancel = (uid) => {
|
|
606
|
-
create(MyModal, { currentID: uid }, { alert: true });
|
|
607
|
-
};
|
|
608
|
-
const handleSend = (uid) => {
|
|
609
|
-
action('Send')();
|
|
610
|
-
setComposersData(prev => {
|
|
611
|
-
return {
|
|
612
|
-
...prev,
|
|
613
|
-
[uid]: {
|
|
614
|
-
...prev[uid],
|
|
615
|
-
progress: true
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
});
|
|
619
|
-
setTimeout(() => {
|
|
620
|
-
setComposersData(prev => {
|
|
621
|
-
const newComposersData = { ...prev };
|
|
622
|
-
delete newComposersData[uid];
|
|
623
|
-
return newComposersData;
|
|
624
|
-
});
|
|
625
|
-
push({ content: 'Email Send' });
|
|
626
|
-
}, 1000);
|
|
627
|
-
};
|
|
628
|
-
const handleSave = (uid) => {
|
|
629
|
-
action('Save')();
|
|
630
|
-
setComposersData(prev => {
|
|
631
|
-
return {
|
|
632
|
-
...prev,
|
|
633
|
-
[uid]: {
|
|
634
|
-
...prev[uid],
|
|
635
|
-
progress: true
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
});
|
|
639
|
-
setTimeout(() => {
|
|
640
|
-
setComposersData(prev => {
|
|
641
|
-
const newComposersData = { ...prev };
|
|
642
|
-
delete newComposersData[uid];
|
|
643
|
-
return newComposersData;
|
|
644
|
-
});
|
|
645
|
-
push({ content: 'Draft Saved' });
|
|
646
|
-
}, 1000);
|
|
647
|
-
};
|
|
648
|
-
const createOrActivateComposer = (id, launchAction, composerProps) => {
|
|
649
|
-
const uid = getCompositeId(id, launchAction);
|
|
650
|
-
if (composersData[uid]) {
|
|
651
|
-
composersData[uid].handle?.current?.activate();
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
setComposersData(prev => {
|
|
655
|
-
const composerHandle = createRef();
|
|
656
|
-
return {
|
|
657
|
-
...prev,
|
|
658
|
-
[uid]: {
|
|
659
|
-
...composerProps,
|
|
660
|
-
bodyContentCurrentValue: composerProps.data.bodyContent.defaultValue,
|
|
661
|
-
handle: composerHandle,
|
|
662
|
-
onChange: (field, value) => handleChange(uid, field, value),
|
|
663
|
-
onCancel: () => handleCancel(uid),
|
|
664
|
-
onSend: () => handleSend(uid),
|
|
665
|
-
onSave: () => handleSave(uid)
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
const emailsData = [
|
|
672
|
-
{
|
|
673
|
-
id: 'item0',
|
|
674
|
-
timeStamp: '2021-01-05T09:12',
|
|
675
|
-
from: participants[0],
|
|
676
|
-
to: participants.slice(0, 2),
|
|
677
|
-
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Laura Stevens </div>',
|
|
678
|
-
unRead: true,
|
|
679
|
-
subject: 'Pause service',
|
|
680
|
-
suggestions: args.hideSuggestions ? undefined : mockSuggestedReplies,
|
|
681
|
-
attachments: [
|
|
682
|
-
{
|
|
683
|
-
id: 'item_1_0',
|
|
684
|
-
value: 'https://pega.com/media/document.doc',
|
|
685
|
-
displayText: 'Policy document'
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
id: 'item_1_1',
|
|
689
|
-
value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
|
|
690
|
-
displayText: 'E-Ticket'
|
|
691
|
-
}
|
|
692
|
-
].map(attachment => {
|
|
693
|
-
return {
|
|
694
|
-
...attachment,
|
|
695
|
-
onDownload: action('On attachment download')
|
|
696
|
-
};
|
|
697
|
-
})
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
id: 'item1',
|
|
701
|
-
timeStamp: '2021-01-02T03:12',
|
|
702
|
-
from: participants[3],
|
|
703
|
-
to: participants.slice(2, 4),
|
|
704
|
-
body: emailBodyContent,
|
|
705
|
-
unRead: true,
|
|
706
|
-
subject: 'Pause service'
|
|
707
|
-
}
|
|
708
|
-
].map(emailData => {
|
|
709
|
-
const emailActionItems = emailDemoActions(emailData.id, emailData.subject, createOrActivateComposer, false, emailData.body);
|
|
710
|
-
return {
|
|
711
|
-
...emailData,
|
|
712
|
-
onReply: (id) => {
|
|
713
|
-
createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
714
|
-
...baseComposerProps,
|
|
715
|
-
data: {
|
|
716
|
-
...baseComposerProps.data,
|
|
717
|
-
responseType: 'reply',
|
|
718
|
-
subject: { value: `Re-${emailData.subject}` || '' }
|
|
719
|
-
},
|
|
720
|
-
externalValidator: handleExternalEntry
|
|
721
|
-
});
|
|
722
|
-
},
|
|
723
|
-
onForward: id => {
|
|
724
|
-
createOrActivateComposer(id, LaunchAction.FORWARD, {
|
|
725
|
-
...baseComposerProps,
|
|
726
|
-
data: {
|
|
727
|
-
...baseComposerProps.data,
|
|
728
|
-
responseType: 'forward',
|
|
729
|
-
subject: { value: `Fw-${emailData.subject}` || '' }
|
|
730
|
-
},
|
|
731
|
-
externalValidator: handleExternalEntry
|
|
732
|
-
});
|
|
733
|
-
},
|
|
734
|
-
onSuggestionClick: (id, suggestionId) => {
|
|
735
|
-
const suggestion = emailData.suggestions?.find(item => item.id === suggestionId);
|
|
736
|
-
createOrActivateComposer(id, LaunchAction.SUGGESTION, {
|
|
737
|
-
...baseComposerProps,
|
|
738
|
-
data: {
|
|
739
|
-
...baseComposerProps.data,
|
|
740
|
-
responseType: 'reply',
|
|
741
|
-
subject: { value: suggestion?.title || '' },
|
|
742
|
-
bodyContent: { defaultValue: suggestion ? suggestion.content : '' },
|
|
743
|
-
selectedTemplateId: suggestionId
|
|
744
|
-
},
|
|
745
|
-
externalValidator: handleExternalEntry
|
|
746
|
-
});
|
|
747
|
-
},
|
|
748
|
-
actions: emailActionItems,
|
|
749
|
-
tags: args.hideSuggestions
|
|
750
|
-
? undefined
|
|
751
|
-
: {
|
|
752
|
-
items: ['Pause service', 'Lost or stolen'],
|
|
753
|
-
label: 'Associated service cases',
|
|
754
|
-
onRemove: action('On Associated service case remove'),
|
|
755
|
-
dismissable: true
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
});
|
|
759
|
-
const DeleteDraft = ({ currentID }) => {
|
|
760
|
-
const { dismiss } = useModalContext();
|
|
761
|
-
return (<Modal heading='Delete draft?' actions={<>
|
|
762
|
-
<Button onClick={dismiss}>Go back</Button>
|
|
763
|
-
|
|
764
|
-
<Button variant='primary' onClick={() => {
|
|
765
|
-
dismiss();
|
|
766
|
-
setConversationEmails(prev => {
|
|
767
|
-
const newEmailConversation = [];
|
|
768
|
-
prev.forEach(arr => {
|
|
769
|
-
const newArr = arr.filter(index => index.id !== currentID);
|
|
770
|
-
if (newArr.length !== 0)
|
|
771
|
-
newEmailConversation.push(newArr);
|
|
772
|
-
});
|
|
773
|
-
return newEmailConversation;
|
|
774
|
-
});
|
|
775
|
-
}}>
|
|
776
|
-
Delete
|
|
777
|
-
</Button>
|
|
778
|
-
</>}>
|
|
779
|
-
<Text>Are you sure that you want to permanently delete the selected message?</Text>
|
|
780
|
-
</Modal>);
|
|
781
|
-
};
|
|
782
|
-
const deleteEmail = (id) => {
|
|
783
|
-
create(DeleteDraft, { currentID: id }, { alert: true });
|
|
784
|
-
};
|
|
785
|
-
useEffect(() => {
|
|
786
|
-
setConversationEmails([
|
|
787
|
-
[
|
|
788
|
-
{
|
|
789
|
-
...emailsData[1],
|
|
790
|
-
id: 'item0',
|
|
791
|
-
from: mailDeliverySystemEmail,
|
|
792
|
-
to: [supportTeamEmail],
|
|
793
|
-
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
|
|
794
|
-
banner: {
|
|
795
|
-
messages: [
|
|
796
|
-
{
|
|
797
|
-
label: 'Address not found.',
|
|
798
|
-
description: '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'
|
|
799
|
-
}
|
|
800
|
-
]
|
|
801
|
-
},
|
|
802
|
-
onReply: undefined,
|
|
803
|
-
onForward: undefined
|
|
804
|
-
},
|
|
805
|
-
{ ...emailsData[1], unRead: false }
|
|
806
|
-
],
|
|
807
|
-
[
|
|
808
|
-
{
|
|
809
|
-
...emailsData[0],
|
|
810
|
-
id: 'item2',
|
|
811
|
-
status: 'draft',
|
|
812
|
-
onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
813
|
-
...baseComposerProps,
|
|
814
|
-
data: {
|
|
815
|
-
...baseComposerProps.data,
|
|
816
|
-
responseType: 'reply',
|
|
817
|
-
subject: { value: `Re-${emailsData[0].subject}` || '' },
|
|
818
|
-
bodyContent: { defaultValue: emailsData[0].body || '' }
|
|
819
|
-
}
|
|
820
|
-
}),
|
|
821
|
-
onDeleteDraft: (id) => deleteEmail(id),
|
|
822
|
-
onReply: undefined,
|
|
823
|
-
onForward: undefined,
|
|
824
|
-
suggestions: undefined,
|
|
825
|
-
unRead: false,
|
|
826
|
-
timeStamp: '2021-01-03T17:15',
|
|
827
|
-
from: mockEmails['Hugh Phillips'],
|
|
828
|
-
to: [mockEmails['Mystery Rey'], ...emailsData[0].to],
|
|
829
|
-
cc: [mockEmails['Adam Gillchrist']],
|
|
830
|
-
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
831
|
-
body: '<div>Hi, <br /> <br /><div>Sure, Our executive will come and check your connection in 24hrs. </div> <br />Regards, <br />Hugh Phillips </div>'
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
...emailsData[1],
|
|
835
|
-
id: 'item3',
|
|
836
|
-
status: 'draft',
|
|
837
|
-
onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
838
|
-
...baseComposerProps,
|
|
839
|
-
data: {
|
|
840
|
-
...baseComposerProps.data,
|
|
841
|
-
responseType: 'reply',
|
|
842
|
-
subject: { value: `Re-${emailsData[0].subject}` || '' },
|
|
843
|
-
bodyContent: { defaultValue: emailsData[0].body || '' }
|
|
844
|
-
}
|
|
845
|
-
}),
|
|
846
|
-
onDeleteDraft: (id) => deleteEmail(id),
|
|
847
|
-
onReply: undefined,
|
|
848
|
-
onForward: undefined,
|
|
849
|
-
suggestions: undefined,
|
|
850
|
-
unRead: false,
|
|
851
|
-
timeStamp: '2021-01-02T14:16',
|
|
852
|
-
from: mockEmails['Mystery Rey'],
|
|
853
|
-
to: [mockEmails['Hugh Phillips']],
|
|
854
|
-
body: '<div>Hi, <br /> <br /><div>Can you fix my internet connection. </div> <br /> <br />Regards, <br />Rey Mystery </div>'
|
|
855
|
-
}
|
|
856
|
-
],
|
|
857
|
-
[
|
|
858
|
-
{
|
|
859
|
-
...emailsData[0],
|
|
860
|
-
id: 'item4',
|
|
861
|
-
unRead: true,
|
|
862
|
-
timeStamp: '2020-12-05T18:18',
|
|
863
|
-
from: mockEmails['Laura Stevens'],
|
|
864
|
-
to: [mockEmails['Sara Davis']],
|
|
865
|
-
body: '<div>Hi, <br /> <br /><div>Sure, Our executive will call you shortly. </div> <br /> <br />Regards, <br />Laura Stevens </div>',
|
|
866
|
-
sentiment: {
|
|
867
|
-
variant: 'positive'
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
...emailsData[1],
|
|
872
|
-
id: 'item5',
|
|
873
|
-
unRead: true,
|
|
874
|
-
timeStamp: '2021-01-04T08:30',
|
|
875
|
-
from: mockEmails['Sara Davis'],
|
|
876
|
-
to: [mockEmails['Laura Stevens']],
|
|
877
|
-
body: '<div>Hi, <br /> <br /><div>Can you show please explain your new mobile plans. </div> <br /> <br />Regards, <br />Sara Davis </div>'
|
|
878
|
-
}
|
|
879
|
-
]
|
|
880
|
-
]);
|
|
881
|
-
}, []);
|
|
882
|
-
const emailConversations = conversationEmails.map((emails, i) => {
|
|
883
|
-
return {
|
|
884
|
-
from: i === 0 ? emails[1].from : generateEmailConversationParticipants(emails, ['from'])[0],
|
|
885
|
-
to: i === 0 ? emails[1].to : emails[0].to,
|
|
886
|
-
id: `item_${i}`,
|
|
887
|
-
timeStamp: emails[0].timeStamp,
|
|
888
|
-
unReadEmailCount: emails.filter(item => item.unRead).length,
|
|
889
|
-
emails,
|
|
890
|
-
sentiment: emails[0].sentiment,
|
|
891
|
-
isForwarded: i !== 2,
|
|
892
|
-
isCollapsed: i !== 0,
|
|
893
|
-
drafts: i === 1,
|
|
894
|
-
undelivered: i === 0
|
|
895
|
-
};
|
|
896
|
-
});
|
|
897
|
-
const singleEmailConversation = [
|
|
898
|
-
{
|
|
899
|
-
from: generateEmailConversationParticipants(emailsData, ['from'])[0],
|
|
900
|
-
to: generateEmailConversationParticipants(emailsData, ['to']),
|
|
901
|
-
id: 'item_0',
|
|
902
|
-
timeStamp: new Date(emailsData[0].timeStamp),
|
|
903
|
-
unReadEmailCount: 1,
|
|
904
|
-
emails: [
|
|
905
|
-
{
|
|
906
|
-
...emailsData[1],
|
|
907
|
-
id: 'item0',
|
|
908
|
-
from: mailDeliverySystemEmail,
|
|
909
|
-
to: [supportTeamEmail],
|
|
910
|
-
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
|
|
911
|
-
banner: {
|
|
912
|
-
messages: [
|
|
913
|
-
{
|
|
914
|
-
label: 'Address not found.',
|
|
915
|
-
description: '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'
|
|
916
|
-
}
|
|
917
|
-
]
|
|
918
|
-
},
|
|
919
|
-
onReply: undefined,
|
|
920
|
-
onForward: undefined
|
|
921
|
-
},
|
|
922
|
-
{ ...emailsData[1], unRead: false }
|
|
923
|
-
]
|
|
924
|
-
}
|
|
925
|
-
];
|
|
926
|
-
return (<>
|
|
927
|
-
<EmailShell headerProps={args.headerProps ||
|
|
928
|
-
(args.showHeader
|
|
929
|
-
? {
|
|
930
|
-
actions: (<Flex container={{
|
|
931
|
-
alignItems: 'center',
|
|
932
|
-
gap: 0
|
|
933
|
-
}}>
|
|
934
|
-
<Button variant='simple' icon>
|
|
935
|
-
<Icon name='filter'/>
|
|
936
|
-
</Button>
|
|
937
|
-
<MenuButton variant='simple' text='More actions' icon='more' iconOnly portal menu={{ items: actions }}/>
|
|
938
|
-
</Flex>),
|
|
939
|
-
subject: 'Pause service'
|
|
940
|
-
}
|
|
941
|
-
: undefined)} autoCollapse={args.autoCollapse} conversations={args.conversations ||
|
|
942
|
-
(args.singleConversation ? singleEmailConversation : emailConversations)}/>
|
|
943
|
-
<>
|
|
944
|
-
{Object.keys(composersData).map(guid => {
|
|
945
|
-
return <EmailComposer key={guid} {...composersData[guid]}/>;
|
|
946
|
-
})}
|
|
947
|
-
</>
|
|
948
|
-
</>);
|
|
949
|
-
};
|
|
950
|
-
EmailShellDemo.args = {
|
|
951
|
-
autoCollapse: true,
|
|
952
|
-
hideSuggestions: false,
|
|
953
|
-
singleConversation: false,
|
|
954
|
-
showHeader: true
|
|
955
|
-
};
|
|
956
|
-
EmailShellDemo.argTypes = {
|
|
957
|
-
autoCollapse: { control: { type: 'boolean' } },
|
|
958
|
-
hideSuggestions: { control: { type: 'boolean' } },
|
|
959
|
-
singleConversation: { control: { type: 'boolean' } },
|
|
960
|
-
showHeader: { control: { type: 'boolean' } }
|
|
961
|
-
};
|
|
962
|
-
export const EntityListDemo = (args) => {
|
|
963
|
-
const itemCounter = useRef(3);
|
|
964
|
-
const timeout = useRef(null);
|
|
965
|
-
const contextMenuHandle = useRef(null);
|
|
966
|
-
const headerProps = {
|
|
967
|
-
icon: 'list-number',
|
|
968
|
-
text: 'Entities'
|
|
969
|
-
};
|
|
970
|
-
const handleRightClick = (e) => {
|
|
971
|
-
action('onContextMenu')(e);
|
|
972
|
-
if (contextMenuHandle.current && args.enableContextMenu) {
|
|
973
|
-
itemCounter.current += 1;
|
|
974
|
-
const { setItems, setOpen, setLoading } = contextMenuHandle.current;
|
|
975
|
-
e.preventDefault();
|
|
976
|
-
setLoading(true);
|
|
977
|
-
setItems([]);
|
|
978
|
-
setOpen(true);
|
|
979
|
-
if (timeout.current) {
|
|
980
|
-
window.clearTimeout(timeout.current);
|
|
981
|
-
}
|
|
982
|
-
timeout.current = window.setTimeout(() => {
|
|
983
|
-
setItems(contextMenuItemsMock);
|
|
984
|
-
setLoading(false);
|
|
985
|
-
}, 1000);
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
useEffect(() => {
|
|
989
|
-
return () => {
|
|
990
|
-
if (timeout.current) {
|
|
991
|
-
window.clearTimeout(timeout.current);
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
|
-
}, []);
|
|
995
|
-
return (<EntityList header={headerProps} content={args.content || EntityListMockData} contextMenu={{
|
|
996
|
-
onItemClick: action('onItemClick'),
|
|
997
|
-
onContextMenu: args.onContextMenu || handleRightClick,
|
|
998
|
-
handle: contextMenuHandle
|
|
999
|
-
}}/>);
|
|
1000
|
-
};
|
|
1001
|
-
EntityListDemo.args = {
|
|
1002
|
-
enableContextMenu: true
|
|
1003
|
-
};
|
|
1004
|
-
EntityListDemo.argTypes = {
|
|
1005
|
-
enableContextMenu: { control: { type: 'boolean' } }
|
|
1006
|
-
};
|
|
1007
|
-
export const EmailSummaryItemDemo = (args) => {
|
|
1008
|
-
return (<EmailSummaryItem id={createUID()} activeParticipants={[
|
|
1009
|
-
{
|
|
1010
|
-
shortName: 'Robert',
|
|
1011
|
-
fullName: 'Robert Downer',
|
|
1012
|
-
emailAddress: 'robert.downey@example.com'
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
shortName: 'Nathan',
|
|
1016
|
-
fullName: 'Nathan Swanson',
|
|
1017
|
-
emailAddress: 'nathan.swanson@example.com'
|
|
1018
|
-
}
|
|
1019
|
-
]} 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) => {
|
|
1020
|
-
action('onSelect')(id);
|
|
1021
|
-
}}/>);
|
|
1022
|
-
};
|
|
1023
|
-
EmailSummaryItemDemo.args = {
|
|
1024
|
-
unreadEmailCount: 0,
|
|
1025
|
-
isActive: false
|
|
1026
|
-
};
|
|
1027
|
-
EmailSummaryItemDemo.argTypes = {
|
|
1028
|
-
unreadEmailCount: { control: { type: 'number' } },
|
|
1029
|
-
isActive: { control: { type: 'boolean' } }
|
|
1030
|
-
};
|
|
1031
|
-
export const EmailSummaryListDemo = (args) => {
|
|
1032
|
-
const INITIAL_CHUNK_SIZE = 9;
|
|
1033
|
-
const APPEND_CHUNK_SIZE = 1;
|
|
1034
|
-
const [allEmailItems, setAllEmailItems] = useState(args.items || emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
|
|
1035
|
-
useEffect(() => {
|
|
1036
|
-
if (args.items)
|
|
1037
|
-
setAllEmailItems(args.items);
|
|
1038
|
-
}, [args.items]);
|
|
1039
|
-
const [categories, setCategories] = useState(emailWorklistItemsMock);
|
|
1040
|
-
const [currentItemId, setCurrentItemId] = useState(emailSummaryItems[0].id);
|
|
1041
|
-
const handleItemClick = (id) => {
|
|
1042
|
-
const index = allEmailItems.findIndex(emailItem => {
|
|
1043
|
-
return emailItem.id === id;
|
|
1044
|
-
});
|
|
1045
|
-
const newEmailItems = [...allEmailItems];
|
|
1046
|
-
newEmailItems.splice(index, 1, { ...allEmailItems[index], unreadEmailCount: 0 });
|
|
1047
|
-
setAllEmailItems(newEmailItems);
|
|
1048
|
-
setCurrentItemId(id);
|
|
1049
|
-
};
|
|
1050
|
-
const onCategoryClick = (id) => {
|
|
1051
|
-
setCategories(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
|
|
1052
|
-
};
|
|
1053
|
-
const [loading, setLoading] = useState(false);
|
|
1054
|
-
const [hasMore, setHasMore] = useState(true);
|
|
1055
|
-
const loadMore = useCallback(() => {
|
|
1056
|
-
if (!loading) {
|
|
1057
|
-
setLoading(true);
|
|
1058
|
-
setTimeout(() => {
|
|
1059
|
-
setLoading(false);
|
|
1060
|
-
setAllEmailItems(prevItems => {
|
|
1061
|
-
const previousItemsLength = prevItems.length;
|
|
1062
|
-
const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
|
|
1063
|
-
if (newItems.length === 0) {
|
|
1064
|
-
setHasMore(false);
|
|
1065
|
-
}
|
|
1066
|
-
return [...prevItems, ...newItems];
|
|
1067
|
-
});
|
|
1068
|
-
}, 1500);
|
|
1069
|
-
}
|
|
1070
|
-
}, [loading]);
|
|
1071
|
-
return (<EmailSummaryList count={args.count
|
|
1072
|
-
? args.count
|
|
1073
|
-
: {
|
|
1074
|
-
total: emailSummaryItems.length,
|
|
1075
|
-
unread: allEmailItems.reduce((result, email) => email.unreadEmailCount ? result + email.unreadEmailCount : result, 0)
|
|
1076
|
-
}} categories={categories} searchQuery={args.searchQuery} 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}/>);
|
|
1077
|
-
};
|
|
1078
|
-
EmailSummaryListDemo.args = {
|
|
1079
|
-
searchQuery: ''
|
|
1080
|
-
};
|
|
1081
|
-
EmailSummaryListDemo.argTypes = {
|
|
1082
|
-
searchQuery: { control: { type: 'text' } }
|
|
1083
|
-
};
|
|
1084
|
-
export const EmailCaseViewDemo = (args) => {
|
|
1085
|
-
const content = <EmailShellDemo />;
|
|
1086
|
-
const utilities = (<Grid container={{ rowGap: 2 }}>
|
|
1087
|
-
<EntityListDemo />
|
|
1088
|
-
<Card>
|
|
1089
|
-
<CardHeader container={{ alignItems: 'center', gap: 1 }}>
|
|
1090
|
-
<Icon name='document-doc'/>
|
|
1091
|
-
<Text variant='h3'>Email header</Text>
|
|
1092
|
-
</CardHeader>
|
|
1093
|
-
<CardContent>
|
|
1094
|
-
<FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
|
|
1095
|
-
</CardContent>
|
|
1096
|
-
</Card>
|
|
1097
|
-
<SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
|
|
1098
|
-
...items,
|
|
1099
|
-
primary: <StyledLabel>{items.primary}</StyledLabel>,
|
|
1100
|
-
secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
|
|
1101
|
-
<Text variant='primary'>{items.secondary.indicator}</Text>
|
|
1102
|
-
<StyledLabel>{items.secondary.value}</StyledLabel>
|
|
1103
|
-
</Flex>)
|
|
1104
|
-
}))} noItemsText='No items'/>
|
|
1105
|
-
</Grid>);
|
|
1106
|
-
return (<AppShellDemo appHeader main={<EmailCaseView header={args.showHeader
|
|
1107
|
-
? {
|
|
1108
|
-
icon: 'mail',
|
|
1109
|
-
title: 'ET-5432'
|
|
1110
|
-
}
|
|
1111
|
-
: undefined} banners={args.showBanners && (<Banner variant='urgent' messages={['Your email could not be delivered due to poor network connection.']}/>)} content={content} utilities={!args.noUtilityView && utilities} utilitiesSummaryItems={!args.noUtilityView
|
|
1112
|
-
? [
|
|
1113
|
-
{ iconName: 'list-number', count: 7, name: 'Entities' },
|
|
1114
|
-
{ iconName: 'document-doc', count: 1, name: 'Email header' },
|
|
1115
|
-
{ iconName: 'headline', count: 4, name: 'Topics' }
|
|
1116
|
-
]
|
|
1117
|
-
: undefined} defaultUtilitiesExpanded/>}/>);
|
|
1118
|
-
};
|
|
1119
|
-
EmailCaseViewDemo.args = {
|
|
1120
|
-
showBanners: false,
|
|
1121
|
-
noUtilityView: false,
|
|
1122
|
-
showHeader: true
|
|
1123
|
-
};
|
|
1124
|
-
EmailCaseViewDemo.argTypes = {
|
|
1125
|
-
showBanners: { control: { type: 'boolean' } },
|
|
1126
|
-
noUtilityView: { control: { type: 'boolean' } },
|
|
1127
|
-
showHeader: { control: { type: 'boolean' } }
|
|
1128
|
-
};
|
|
1129
|
-
EmailCaseViewDemo.parameters = {
|
|
1130
|
-
layout: 'fullscreen'
|
|
1131
|
-
};
|
|
1132
|
-
export const EmailManagerAppShell = (args) => {
|
|
1133
|
-
const INITIAL_CHUNK_SIZE = 9;
|
|
1134
|
-
const APPEND_CHUNK_SIZE = 1;
|
|
1135
|
-
const [emailList, setEmailList] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
|
|
1136
|
-
const [loading, setLoading] = useState(false);
|
|
1137
|
-
const [hasMore, setHasMore] = useState(true);
|
|
1138
|
-
const [currentItemId, setCurrentItemId] = useState(emailSummaryItems[0].id);
|
|
1139
|
-
const handleEmailItemClick = (id) => {
|
|
1140
|
-
const index = emailList.findIndex(emailItem => {
|
|
1141
|
-
return emailItem.id === id;
|
|
1142
|
-
});
|
|
1143
|
-
const newEmailList = [...emailList];
|
|
1144
|
-
newEmailList.splice(index, 1, { ...emailList[index], unreadEmailCount: 0 });
|
|
1145
|
-
setEmailList(newEmailList);
|
|
1146
|
-
setCurrentItemId(id);
|
|
1147
|
-
};
|
|
1148
|
-
const onLoadMore = useCallback(() => {
|
|
1149
|
-
if (!loading) {
|
|
1150
|
-
setLoading(true);
|
|
1151
|
-
setTimeout(() => {
|
|
1152
|
-
setLoading(false);
|
|
1153
|
-
setEmailList(prevItems => {
|
|
1154
|
-
const previousItemsLength = prevItems.length;
|
|
1155
|
-
const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
|
|
1156
|
-
if (newItems.length === 0) {
|
|
1157
|
-
setHasMore(false);
|
|
1158
|
-
}
|
|
1159
|
-
return [...prevItems, ...newItems];
|
|
1160
|
-
});
|
|
1161
|
-
}, 1500);
|
|
1162
|
-
}
|
|
1163
|
-
}, [loading]);
|
|
1164
|
-
const utilities = (<Grid container={{ rowGap: 2 }}>
|
|
1165
|
-
<EntityListDemo />
|
|
1166
|
-
<Card>
|
|
1167
|
-
<CardHeader container={{ alignItems: 'center', gap: 1 }}>
|
|
1168
|
-
<Icon name='document-doc'/>
|
|
1169
|
-
<Text variant='h3'>Email header</Text>
|
|
1170
|
-
</CardHeader>
|
|
1171
|
-
<CardContent>
|
|
1172
|
-
<FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
|
|
1173
|
-
</CardContent>
|
|
1174
|
-
</Card>
|
|
1175
|
-
<SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
|
|
1176
|
-
...items,
|
|
1177
|
-
primary: <StyledLabel>{items.primary}</StyledLabel>,
|
|
1178
|
-
secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
|
|
1179
|
-
<Text variant='primary'>{items.secondary.indicator}</Text>
|
|
1180
|
-
<StyledLabel>{items.secondary.value}</StyledLabel>
|
|
1181
|
-
</Flex>)
|
|
1182
|
-
}))} noItemsText='No items'/>
|
|
1183
|
-
</Grid>);
|
|
1184
|
-
const content = <EmailShellDemo showHeader={false}/>;
|
|
1185
|
-
return (<AppShellDemo appHeader main={<EmailManager header={args.showHeader
|
|
1186
|
-
? {
|
|
1187
|
-
icon: 'mail',
|
|
1188
|
-
title: 'Inbox'
|
|
1189
|
-
}
|
|
1190
|
-
: undefined} list={<EmailSummaryListDemo onItemClick={handleEmailItemClick} items={emailList} onLoadMore={hasMore ? onLoadMore : undefined} loading={loading} currentItemId={currentItemId} searchQuery={args.searchQuery}/>} emailCaseDetails={!args.showEmptyView && (<EmailCaseView banners={args.showCaseViewBanners && (<Banner variant='urgent' messages={[
|
|
1191
|
-
'Your email could not be delivered due to poor network connection.'
|
|
1192
|
-
]}/>)} content={content} utilities={args.showUtilities && utilities} utilitiesSummaryItems={args.showUtilities
|
|
1193
|
-
? [
|
|
1194
|
-
{ iconName: 'list-number', count: 7, name: 'Entities' },
|
|
1195
|
-
{ iconName: 'document-doc', count: 1, name: 'Email header' },
|
|
1196
|
-
{ iconName: 'headline', count: 4, name: 'Topics' }
|
|
1197
|
-
]
|
|
1198
|
-
: undefined} defaultUtilitiesExpanded={false}/>)}/>}/>);
|
|
1199
|
-
};
|
|
1200
|
-
EmailManagerAppShell.args = {
|
|
1201
|
-
enableContextMenu: true,
|
|
1202
|
-
showEmptyView: false,
|
|
1203
|
-
showHeader: true,
|
|
1204
|
-
showCaseViewBanners: false,
|
|
1205
|
-
showUtilities: true,
|
|
1206
|
-
searchQuery: ''
|
|
1207
|
-
};
|
|
1208
|
-
EmailManagerAppShell.argTypes = {
|
|
1209
|
-
enableContextMenu: { control: { type: 'boolean' } },
|
|
1210
|
-
showEmptyView: { control: { type: 'boolean' } },
|
|
1211
|
-
showHeader: { control: { type: 'boolean' } },
|
|
1212
|
-
showCaseViewBanners: { control: { type: 'boolean' } },
|
|
1213
|
-
showUtilities: { control: { type: 'boolean' } },
|
|
1214
|
-
searchQuery: { control: { type: 'text' } }
|
|
1215
|
-
};
|
|
1216
|
-
EmailManagerAppShell.parameters = {
|
|
1217
|
-
layout: 'fullscreen'
|
|
1218
|
-
};
|
|
1219
|
-
//# sourceMappingURL=Email.stories.jsx.map
|