@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,678 +0,0 @@
|
|
|
1
|
-
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
2
|
-
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import { Button, Icon, registerIcon, Text, MenuButton, Flex, Popover, Link, EmojiContext, createUID, useOuterEvent, Select, Option, useElement, useModalManager, useModalContext, Modal, SummaryItem, useToaster, SearchInput, menuHelpers, VisuallyHiddenText, Menu, useEscape, usePrevious } from '@pega/cosmos-react-core';
|
|
4
|
-
import * as arrowMicroDownIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/arrow-micro-down.icon';
|
|
5
|
-
import * as replyIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply.icon';
|
|
6
|
-
import * as replyAllIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply-all.icon';
|
|
7
|
-
import * as forwardIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/forward.icon';
|
|
8
|
-
import { Chat, ChatHeader, ChatComposer, Message, NewMessageSeparatorId, SuggestedReplyPicker, SystemMessage, TypeIndicator, isReplyErrorState, isReplyLoadingState } from '@pega/cosmos-react-social';
|
|
9
|
-
import { ChatMockData, phrasesDisplayNames, phrasesMessages, contextItems as contextItemsMock, BotConversation, ClaimsAgentConversation, LiveChatConversation } from './Chat.mocks';
|
|
10
|
-
registerIcon(forwardIcon, replyIcon, replyAllIcon, arrowMicroDownIcon);
|
|
11
|
-
export default {
|
|
12
|
-
title: 'Social/Chat',
|
|
13
|
-
component: Chat
|
|
14
|
-
};
|
|
15
|
-
export const ChatHeaderDemo = (args) => {
|
|
16
|
-
const [contextItems, setContextItems] = useState([]);
|
|
17
|
-
const [loading, setLoading] = useState(false);
|
|
18
|
-
return (<ChatHeader title={args.title} icon={args.icon || 'chat'} actions={[
|
|
19
|
-
{ id: 'action-1', primary: 'Transfer' },
|
|
20
|
-
{ id: 'action-2', primary: 'End chat' }
|
|
21
|
-
]} sentiment={{
|
|
22
|
-
variant: 'positive',
|
|
23
|
-
'aria-label': 'Sentiment is positive'
|
|
24
|
-
}} customer={args.customer} authenticated={args.authenticated} context={{
|
|
25
|
-
items: contextItems,
|
|
26
|
-
onClick: () => {
|
|
27
|
-
setLoading(true);
|
|
28
|
-
setTimeout(() => {
|
|
29
|
-
setContextItems(contextItemsMock);
|
|
30
|
-
setLoading(false);
|
|
31
|
-
}, 1000);
|
|
32
|
-
},
|
|
33
|
-
loading
|
|
34
|
-
}}/>);
|
|
35
|
-
};
|
|
36
|
-
ChatHeaderDemo.args = {
|
|
37
|
-
title: 'Live chat',
|
|
38
|
-
icon: 'chat',
|
|
39
|
-
customer: 'Ginger Ventura',
|
|
40
|
-
authenticated: true
|
|
41
|
-
};
|
|
42
|
-
ChatHeaderDemo.argTypes = {
|
|
43
|
-
title: { control: { type: 'text' } },
|
|
44
|
-
icon: { control: { type: 'text' }, type: { name: 'string', required: false } },
|
|
45
|
-
customer: { control: { type: 'text' } },
|
|
46
|
-
authenticated: { control: { type: 'boolean' }, type: { name: 'string', required: false } }
|
|
47
|
-
};
|
|
48
|
-
export const MessageDemo = (args) => {
|
|
49
|
-
const actions = [
|
|
50
|
-
{
|
|
51
|
-
text: 'Associate with case',
|
|
52
|
-
id: 'Associate with case',
|
|
53
|
-
onClick: () => {
|
|
54
|
-
action('Associate with case');
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
text: 'Download',
|
|
59
|
-
id: 'Download',
|
|
60
|
-
onClick: () => {
|
|
61
|
-
action('Download');
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
const attachments = [
|
|
66
|
-
{
|
|
67
|
-
id: '2499167340',
|
|
68
|
-
name: 'Location',
|
|
69
|
-
icon: 'document',
|
|
70
|
-
meta: 'PNG 0.1 MB',
|
|
71
|
-
thumbnail: 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg',
|
|
72
|
-
actions
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: '2499167341',
|
|
76
|
-
name: 'FAQ with detailed terms and conditions of the policy',
|
|
77
|
-
icon: 'document-pdf',
|
|
78
|
-
meta: 'PDF 0.7 MB',
|
|
79
|
-
actions
|
|
80
|
-
}
|
|
81
|
-
];
|
|
82
|
-
const mediaPageLinks = [
|
|
83
|
-
{
|
|
84
|
-
id: '2499167349',
|
|
85
|
-
href: 'https://collaborate.pega.com/',
|
|
86
|
-
title: 'Ask the expert'
|
|
87
|
-
}
|
|
88
|
-
];
|
|
89
|
-
return (<Message attachments={args.showAttachments ? attachments : undefined} mediaPageLinks={args.showMediaPageLinks ? mediaPageLinks : undefined} avatarInfo={args.direction === 'in' && args.senderType !== 'bot'
|
|
90
|
-
? {
|
|
91
|
-
name: 'John Brown',
|
|
92
|
-
imageSrc: args.showAvatarImage
|
|
93
|
-
? 'https://pegasystems.github.io/uplus-wss/insurance/img/option-1.jpg'
|
|
94
|
-
: undefined
|
|
95
|
-
}
|
|
96
|
-
: undefined} timestamp={args.showTimestamp ? args.timestamp : undefined} status={args.showStatus ? args.status : undefined} message={args.message} direction={args.direction} senderType={args.senderType} senderId={createUID()} agentVariant={args.agentVariant} messageHeader={args.showHeader ? { content: args.headerContent, meta: args.headerMeta } : undefined}/>);
|
|
97
|
-
};
|
|
98
|
-
MessageDemo.args = {
|
|
99
|
-
direction: 'in',
|
|
100
|
-
senderType: 'customer',
|
|
101
|
-
agentVariant: 0,
|
|
102
|
-
message: 'Hi, Welcome to u-plus. How can I help you ?',
|
|
103
|
-
showStatus: true,
|
|
104
|
-
status: 'delivered',
|
|
105
|
-
showTimestamp: true,
|
|
106
|
-
timestamp: '1:44 PM',
|
|
107
|
-
showHeader: false,
|
|
108
|
-
headerContent: 'Public Reply',
|
|
109
|
-
headerMeta: 'I-12345',
|
|
110
|
-
showAvatarImage: false,
|
|
111
|
-
showAttachments: false,
|
|
112
|
-
showMediaPageLinks: false
|
|
113
|
-
};
|
|
114
|
-
MessageDemo.argTypes = {
|
|
115
|
-
direction: { options: ['in', 'out'], control: { type: 'inline-radio' } },
|
|
116
|
-
senderType: { options: ['agent', 'customer', 'bot'], control: { type: 'inline-radio' } },
|
|
117
|
-
agentVariant: { type: 'number' },
|
|
118
|
-
message: { type: 'string' },
|
|
119
|
-
showTimestamp: { type: 'boolean' },
|
|
120
|
-
timestamp: { control: 'text' },
|
|
121
|
-
showStatus: { type: 'boolean' },
|
|
122
|
-
status: {
|
|
123
|
-
options: ['delivered', 'opened', 'undeliverable', 'sent'],
|
|
124
|
-
control: { type: 'inline-radio' }
|
|
125
|
-
},
|
|
126
|
-
showHeader: { control: 'boolean' },
|
|
127
|
-
headerContent: { control: 'text' },
|
|
128
|
-
headerMeta: { control: 'text' },
|
|
129
|
-
showAvatarImage: { control: 'boolean' },
|
|
130
|
-
showAttachments: { control: 'boolean' },
|
|
131
|
-
showMediaPageLinks: { control: 'boolean' }
|
|
132
|
-
};
|
|
133
|
-
export const SystemMessageDemo = (args) => (<SystemMessage message={args.message} timestamp={args.timestamp} variant={args.variant}/>);
|
|
134
|
-
SystemMessageDemo.args = {
|
|
135
|
-
message: 'John Brown has joined',
|
|
136
|
-
variant: 'secondary',
|
|
137
|
-
timestamp: '10:00 AM'
|
|
138
|
-
};
|
|
139
|
-
SystemMessageDemo.argTypes = {
|
|
140
|
-
message: { control: { type: 'text' } },
|
|
141
|
-
variant: { options: ['primary', 'secondary'], control: { type: 'select' } },
|
|
142
|
-
timestamp: { control: { type: 'text' } }
|
|
143
|
-
};
|
|
144
|
-
export const TypeIndicatorDemo = (args) => {
|
|
145
|
-
return (<TypeIndicator avatarInfo={{ name: 'John Brown' }} message={args.message} senderId='johnBrown' senderType='agent'/>);
|
|
146
|
-
};
|
|
147
|
-
TypeIndicatorDemo.args = {
|
|
148
|
-
message: ''
|
|
149
|
-
};
|
|
150
|
-
TypeIndicatorDemo.argTypes = {
|
|
151
|
-
message: { control: { type: 'text' } }
|
|
152
|
-
};
|
|
153
|
-
export const SuggestedReplyPickerDemo = (args) => {
|
|
154
|
-
const [suggestedRepliesCollapsed, setSuggestedRepliesCollapsed] = useState(false);
|
|
155
|
-
const [currentReplyId, setCurrentReplyId] = useState(ChatMockData?.suggestedReplies?.[0]?.id || '');
|
|
156
|
-
const renderReplies = args.singleSuggestedReply
|
|
157
|
-
? [ChatMockData.suggestedReplies[0]]
|
|
158
|
-
: ChatMockData.suggestedReplies;
|
|
159
|
-
return (<SuggestedReplyPicker replies={args.noSuggestedReplies ? [] : renderReplies} onSelect={suggestedReply => {
|
|
160
|
-
if (!isReplyErrorState(suggestedReply) && !isReplyLoadingState(suggestedReply))
|
|
161
|
-
action(`Suggested reply picked ${suggestedReply.message}`)();
|
|
162
|
-
}} collapsed={suggestedRepliesCollapsed} onExpandCollapse={() => {
|
|
163
|
-
setSuggestedRepliesCollapsed(prev => !prev);
|
|
164
|
-
}} currentReplyId={currentReplyId} onReplyChange={setCurrentReplyId} showNotification={args.showNotification} onSend={() => action('Send suggested reply')} disabled={args.disableButton}/>);
|
|
165
|
-
};
|
|
166
|
-
SuggestedReplyPickerDemo.args = {
|
|
167
|
-
showNotification: false,
|
|
168
|
-
singleSuggestedReply: false,
|
|
169
|
-
noSuggestedReplies: false,
|
|
170
|
-
disableButton: false
|
|
171
|
-
};
|
|
172
|
-
SuggestedReplyPickerDemo.argTypes = {
|
|
173
|
-
showNotification: { type: 'boolean' },
|
|
174
|
-
singleSuggestedReply: { type: 'boolean' },
|
|
175
|
-
noSuggestedReplies: { type: 'boolean' },
|
|
176
|
-
disableButton: { type: 'boolean' }
|
|
177
|
-
};
|
|
178
|
-
export const ChatComposerDemo = (args) => (<ChatComposer maxAttachments={args.maxAttachments} attachments={ChatMockData.defaultAttachments} maxLength={256} placeholder='Type here to send message' onSend={() => { }} onSuggestReplyClick={args.showSuggestReplyButton ? action('Suggest reply clicked') : undefined}>
|
|
179
|
-
<MenuButton text='Phrases' menu={{ items: [] }}/>
|
|
180
|
-
<MenuButton text='Page Push' menu={{ items: [] }}/>
|
|
181
|
-
</ChatComposer>);
|
|
182
|
-
ChatComposerDemo.args = {
|
|
183
|
-
maxAttachments: 2,
|
|
184
|
-
showSuggestReplyButton: false
|
|
185
|
-
};
|
|
186
|
-
ChatComposerDemo.argTypes = {
|
|
187
|
-
maxAttachments: { control: { type: 'number' } },
|
|
188
|
-
showSuggestReplyButton: { control: { type: 'boolean' } }
|
|
189
|
-
};
|
|
190
|
-
export const StandardChat = (args) => {
|
|
191
|
-
const ChatMockDataClone = useMemo(() => {
|
|
192
|
-
return JSON.parse(JSON.stringify(ChatMockData));
|
|
193
|
-
}, [ChatMockData]);
|
|
194
|
-
const Channels = {
|
|
195
|
-
label: 'Channel',
|
|
196
|
-
options: {
|
|
197
|
-
LiveChat: {
|
|
198
|
-
title: 'Live chat',
|
|
199
|
-
icon: 'chat'
|
|
200
|
-
},
|
|
201
|
-
Twitter: {
|
|
202
|
-
title: 'Twitter chat',
|
|
203
|
-
icon: 'twitter'
|
|
204
|
-
},
|
|
205
|
-
Facebook: {
|
|
206
|
-
title: 'Facebook messenger',
|
|
207
|
-
icon: 'facebook'
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
const { chatMessages: mockChatMessagesJson, defaultAttachments, suggestedReplies } = ChatMockDataClone;
|
|
212
|
-
const { create } = useModalManager();
|
|
213
|
-
const MyModal = () => {
|
|
214
|
-
const { dismiss } = useModalContext();
|
|
215
|
-
const { push } = useToaster();
|
|
216
|
-
return (<Modal heading='Associate with case' actions={<>
|
|
217
|
-
<Button onClick={() => {
|
|
218
|
-
dismiss();
|
|
219
|
-
push({ content: 'Cancelled' });
|
|
220
|
-
}}>
|
|
221
|
-
Cancel
|
|
222
|
-
</Button>
|
|
223
|
-
<Button variant='primary' onClick={() => {
|
|
224
|
-
dismiss();
|
|
225
|
-
push({ content: 'Successfully Submitted!!' });
|
|
226
|
-
}}>
|
|
227
|
-
Submit
|
|
228
|
-
</Button>
|
|
229
|
-
</>} center>
|
|
230
|
-
<Flex container={{ gap: 2, direction: 'column' }}>
|
|
231
|
-
<SummaryItem primary={<Text variant='secondary'>Security policy</Text>} secondary={<Text variant='secondary'>PNG - 6.1MB</Text>} visual={<Icon name='document-doc'/>}/>
|
|
232
|
-
<Select label='Select a service case' style={{ width: '15rem' }}>
|
|
233
|
-
<Option value=''>Select…</Option>
|
|
234
|
-
<Option value='Make payment' selected>
|
|
235
|
-
Make payment
|
|
236
|
-
</Option>
|
|
237
|
-
<Option value='Facilities'>Facilities</Option>
|
|
238
|
-
</Select>
|
|
239
|
-
</Flex>
|
|
240
|
-
</Modal>);
|
|
241
|
-
};
|
|
242
|
-
const onAssociateWithCase = () => {
|
|
243
|
-
create(MyModal);
|
|
244
|
-
};
|
|
245
|
-
const actions = [
|
|
246
|
-
{
|
|
247
|
-
text: 'Associate with case',
|
|
248
|
-
id: 'Associate with case',
|
|
249
|
-
onClick: () => {
|
|
250
|
-
action('Associate with case');
|
|
251
|
-
onAssociateWithCase();
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
text: 'Download',
|
|
256
|
-
id: 'Download',
|
|
257
|
-
onClick: () => {
|
|
258
|
-
action('Download');
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
];
|
|
262
|
-
const mockChatMessages = useMemo(() => {
|
|
263
|
-
return [
|
|
264
|
-
...mockChatMessagesJson.map(message => {
|
|
265
|
-
const { messagePrivacy, ...restMessageData } = message;
|
|
266
|
-
if (messagePrivacy) {
|
|
267
|
-
restMessageData.messageHeader = {
|
|
268
|
-
content: <span>{messagePrivacy}</span>,
|
|
269
|
-
meta: <Link href='/'>I-12345</Link>
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
if (restMessageData.attachments) {
|
|
273
|
-
restMessageData.attachments = restMessageData.attachments.map((item) => {
|
|
274
|
-
return {
|
|
275
|
-
...item,
|
|
276
|
-
actions
|
|
277
|
-
};
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
return restMessageData;
|
|
281
|
-
})
|
|
282
|
-
];
|
|
283
|
-
}, []);
|
|
284
|
-
const conversationRef = useRef(null);
|
|
285
|
-
const timers = useRef([]);
|
|
286
|
-
useEffect(() => {
|
|
287
|
-
return () => {
|
|
288
|
-
timers.current.forEach(clearTimeout);
|
|
289
|
-
};
|
|
290
|
-
}, []);
|
|
291
|
-
const [attachments, setAttachments] = useState(defaultAttachments);
|
|
292
|
-
const [unreadMessageCount, setUnreadMessageCount] = useState(0);
|
|
293
|
-
const [chatMessages, setChatMessages] = useState(LiveChatConversation.map(message => {
|
|
294
|
-
if (message.type === 'message' && message.attachments) {
|
|
295
|
-
message.attachments = message.attachments.map((item) => {
|
|
296
|
-
return {
|
|
297
|
-
...item,
|
|
298
|
-
actions
|
|
299
|
-
};
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
return message;
|
|
303
|
-
}));
|
|
304
|
-
const [contextItems, setContextItems] = useState([]);
|
|
305
|
-
const [contextLoading, setContextLoading] = useState(false);
|
|
306
|
-
const [suggestedRepliesCollapsed, setSuggestedRepliesCollapsed] = useState(false);
|
|
307
|
-
const [disableSuggestReply, setDisableSuggestReply] = useState(false);
|
|
308
|
-
const onDeleteAttachment = useCallback((name) => {
|
|
309
|
-
setAttachments(prevAttachments => prevAttachments.filter(item => item.name !== name));
|
|
310
|
-
}, [setAttachments]);
|
|
311
|
-
useEffect(() => {
|
|
312
|
-
setAttachments(defaultAttachments.map((item) => {
|
|
313
|
-
return {
|
|
314
|
-
...item,
|
|
315
|
-
onDelete: onDeleteAttachment
|
|
316
|
-
};
|
|
317
|
-
}));
|
|
318
|
-
}, [defaultAttachments]);
|
|
319
|
-
const prevState = usePrevious(chatMessages);
|
|
320
|
-
useEffect(() => {
|
|
321
|
-
if (chatMessages &&
|
|
322
|
-
prevState &&
|
|
323
|
-
chatMessages.filter(({ senderType }) => senderType === 'customer').length >
|
|
324
|
-
prevState.filter(({ senderType }) => senderType === 'customer').length)
|
|
325
|
-
setDisableSuggestReply(false);
|
|
326
|
-
}, [chatMessages]);
|
|
327
|
-
useEffect(() => {
|
|
328
|
-
setDisableSuggestReply(false);
|
|
329
|
-
}, [args.genAIErrorState]);
|
|
330
|
-
const appendMessage = (message) => {
|
|
331
|
-
const incrementUnreadMessageCount = conversationRef.current?.isScrolledToLatest();
|
|
332
|
-
setChatMessages(prevChatMessages => {
|
|
333
|
-
const newMockMessage = {
|
|
334
|
-
...message
|
|
335
|
-
};
|
|
336
|
-
newMockMessage.id = `m-${message.id ? message.id : prevChatMessages.length}`;
|
|
337
|
-
if (!incrementUnreadMessageCount &&
|
|
338
|
-
prevChatMessages.filter(({ id }) => id === NewMessageSeparatorId).length === 0) {
|
|
339
|
-
return [
|
|
340
|
-
...prevChatMessages,
|
|
341
|
-
{
|
|
342
|
-
id: NewMessageSeparatorId,
|
|
343
|
-
type: 'system',
|
|
344
|
-
message: 'New messages',
|
|
345
|
-
variant: 'primary'
|
|
346
|
-
},
|
|
347
|
-
newMockMessage
|
|
348
|
-
];
|
|
349
|
-
}
|
|
350
|
-
return [...prevChatMessages, newMockMessage];
|
|
351
|
-
});
|
|
352
|
-
if (!incrementUnreadMessageCount) {
|
|
353
|
-
setUnreadMessageCount(prevCount => prevCount + 1);
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
useEffect(() => {
|
|
357
|
-
if (args.simulateConversation) {
|
|
358
|
-
const timeOutId = setTimeout(() => {
|
|
359
|
-
if (mockChatMessages.length) {
|
|
360
|
-
appendMessage(mockChatMessages.shift());
|
|
361
|
-
}
|
|
362
|
-
}, 1500);
|
|
363
|
-
return () => {
|
|
364
|
-
clearTimeout(timeOutId);
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
}, [chatMessages, args.simulateConversation]);
|
|
368
|
-
const chatBanner = {
|
|
369
|
-
messages: ['This is a public interaction and any responses will be public and visible'],
|
|
370
|
-
variant: 'warning'
|
|
371
|
-
};
|
|
372
|
-
const bodyProps = {
|
|
373
|
-
unreadMessageCount,
|
|
374
|
-
handle: conversationRef,
|
|
375
|
-
transcripts: [
|
|
376
|
-
{ id: createUID(), messages: BotConversation },
|
|
377
|
-
{ id: createUID(), messages: ClaimsAgentConversation }
|
|
378
|
-
],
|
|
379
|
-
liveChat: !args.simulateConversation && args.typingIndicator
|
|
380
|
-
? [
|
|
381
|
-
...chatMessages,
|
|
382
|
-
{
|
|
383
|
-
id: 'typingMessage',
|
|
384
|
-
type: 'typing',
|
|
385
|
-
avatarInfo: {
|
|
386
|
-
name: 'Ginger Ventura'
|
|
387
|
-
},
|
|
388
|
-
message: args.message,
|
|
389
|
-
senderId: 'gingerVentura',
|
|
390
|
-
senderType: 'customer'
|
|
391
|
-
}
|
|
392
|
-
]
|
|
393
|
-
: chatMessages,
|
|
394
|
-
onScrollToButtonClick: () => {
|
|
395
|
-
const timeOutId = window.setTimeout(() => {
|
|
396
|
-
setChatMessages(prevChatMessages => prevChatMessages.filter(({ id }) => id !== NewMessageSeparatorId));
|
|
397
|
-
timers.current = timers.current.filter(id => id !== timeOutId);
|
|
398
|
-
}, 5000);
|
|
399
|
-
timers.current.push(timeOutId);
|
|
400
|
-
setUnreadMessageCount(0);
|
|
401
|
-
},
|
|
402
|
-
loadMore: action('Load more'),
|
|
403
|
-
offset: 5,
|
|
404
|
-
loading: args.loading
|
|
405
|
-
};
|
|
406
|
-
const chatComposerImperativeHandleRef = useRef(null);
|
|
407
|
-
const [mountPopover, setMountPopover] = useState(false);
|
|
408
|
-
const specialKeysConfig = {
|
|
409
|
-
keys: ['//'],
|
|
410
|
-
onSpecialKey: (e, key) => {
|
|
411
|
-
action(`Event is ${e}`)();
|
|
412
|
-
action(`Typed special key is ${key}`)();
|
|
413
|
-
if (chatComposerImperativeHandleRef.current) {
|
|
414
|
-
setMountPopover(!mountPopover);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
const insertPhrasesMessage = (message) => {
|
|
419
|
-
if (chatComposerImperativeHandleRef.current) {
|
|
420
|
-
chatComposerImperativeHandleRef.current.appendToMessage(message, 'specialKey');
|
|
421
|
-
setMountPopover(false);
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
useOuterEvent('mousedown', [chatComposerImperativeHandleRef?.current?.chatComposerRef?.current], () => {
|
|
425
|
-
setMountPopover(false);
|
|
426
|
-
});
|
|
427
|
-
const [search, setSearch] = useState('');
|
|
428
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
429
|
-
const searchEleRef = useRef(null);
|
|
430
|
-
const [announcement, setAnnouncement] = useState('');
|
|
431
|
-
const searchRegex = useMemo(() => {
|
|
432
|
-
const escapedSearch = search.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&');
|
|
433
|
-
return new RegExp(escapedSearch);
|
|
434
|
-
}, [search]);
|
|
435
|
-
const itemsToRender = useMemo(() => {
|
|
436
|
-
return menuHelpers.mapTree(search
|
|
437
|
-
? menuHelpers.flatten(phrasesDisplayNames).filter(({ primary }) => {
|
|
438
|
-
return searchRegex.test(primary);
|
|
439
|
-
})
|
|
440
|
-
: phrasesDisplayNames, item => {
|
|
441
|
-
return {
|
|
442
|
-
...item
|
|
443
|
-
};
|
|
444
|
-
});
|
|
445
|
-
}, [search, phrasesDisplayNames, searchRegex]);
|
|
446
|
-
useEffect(() => {
|
|
447
|
-
if (isOpen) {
|
|
448
|
-
searchEleRef?.current?.focus();
|
|
449
|
-
}
|
|
450
|
-
}, [isOpen, searchEleRef.current]);
|
|
451
|
-
const menuID = createUID();
|
|
452
|
-
const menuListID = `${menuID}--list`;
|
|
453
|
-
const [buttonEl, setButtonEl] = useElement(null);
|
|
454
|
-
const [popoverEl, setPopoverEl] = useElement(null);
|
|
455
|
-
const [currentReply, setCurrentReply] = useState(suggestedReplies?.[0]?.id || '');
|
|
456
|
-
const [replies, setReplies] = useState(suggestedReplies);
|
|
457
|
-
useOuterEvent('mousedown', [popoverEl, buttonEl], () => {
|
|
458
|
-
setIsOpen(false);
|
|
459
|
-
setSearch('');
|
|
460
|
-
});
|
|
461
|
-
useEscape(() => {
|
|
462
|
-
setIsOpen(false);
|
|
463
|
-
});
|
|
464
|
-
const composerChildren = (<>
|
|
465
|
-
<Button ref={setButtonEl} onClick={() => setIsOpen(cur => !cur)} variant='secondary' disabled={args.disableChat}>
|
|
466
|
-
<Flex container={{ alignItems: 'center', gap: 1 }}>
|
|
467
|
-
<Text>Phrases</Text>
|
|
468
|
-
<Icon name='arrow-micro-down'/>
|
|
469
|
-
</Flex>
|
|
470
|
-
</Button>
|
|
471
|
-
|
|
472
|
-
<Popover show={isOpen} ref={setPopoverEl} target={buttonEl}>
|
|
473
|
-
<Menu id={menuID} listId={menuListID} mode='action' variant='flyout' items={itemsToRender} role='listbox' onItemClick={id => {
|
|
474
|
-
insertPhrasesMessage(phrasesMessages.filter(message => message.id === id)[0].message);
|
|
475
|
-
setAnnouncement('Phrase inserted');
|
|
476
|
-
setIsOpen(false);
|
|
477
|
-
setSearch('');
|
|
478
|
-
}} accent={search ? searchRegex : undefined} focusControlEl={searchEleRef.current || undefined} footer={<SearchInput ref={searchEleRef} onSearchChange={setSearch} value={search} role='searchbox' searchInputAriaLabel='Start typing to search.'/>}/>
|
|
479
|
-
</Popover>
|
|
480
|
-
</>);
|
|
481
|
-
const composerProps = {
|
|
482
|
-
ref: chatComposerImperativeHandleRef,
|
|
483
|
-
maxAttachments: args.maxAttachments,
|
|
484
|
-
attachments: args.showAttachments ? attachments : [],
|
|
485
|
-
specialKeysConfig,
|
|
486
|
-
showEmoji: true,
|
|
487
|
-
disabled: args.disableChat,
|
|
488
|
-
disableSuggestReply,
|
|
489
|
-
onAddAttachment: () => {
|
|
490
|
-
setAttachments([
|
|
491
|
-
...attachments,
|
|
492
|
-
{
|
|
493
|
-
id: `${attachments.length} statement.pdf`,
|
|
494
|
-
name: `${attachments.length} statement.pdf`,
|
|
495
|
-
onDelete: onDeleteAttachment
|
|
496
|
-
}
|
|
497
|
-
]);
|
|
498
|
-
},
|
|
499
|
-
maxLength: args.maxLength,
|
|
500
|
-
placeholder: args.placeholder,
|
|
501
|
-
defaultMessage: args.defaultMessage,
|
|
502
|
-
onSend: (message) => {
|
|
503
|
-
action(`onAppendMessage: ${message}`)();
|
|
504
|
-
appendMessage({
|
|
505
|
-
senderType: 'agent',
|
|
506
|
-
direction: 'out',
|
|
507
|
-
avatarInfo: {
|
|
508
|
-
name: 'Edward Green'
|
|
509
|
-
},
|
|
510
|
-
type: 'message',
|
|
511
|
-
message,
|
|
512
|
-
timeStamp: '2:08'
|
|
513
|
-
});
|
|
514
|
-
},
|
|
515
|
-
onSuggestReplyClick: () => {
|
|
516
|
-
const newReplyId = 'genAI';
|
|
517
|
-
setDisableSuggestReply(true);
|
|
518
|
-
setSuggestedRepliesCollapsed(false);
|
|
519
|
-
setCurrentReply(newReplyId);
|
|
520
|
-
setReplies(prev => {
|
|
521
|
-
return [
|
|
522
|
-
{
|
|
523
|
-
id: newReplyId,
|
|
524
|
-
loading: true,
|
|
525
|
-
type: 'genAIReply'
|
|
526
|
-
},
|
|
527
|
-
...prev.filter(reply => reply.type !== 'genAIReply')
|
|
528
|
-
];
|
|
529
|
-
});
|
|
530
|
-
setTimeout(() => {
|
|
531
|
-
if (args.genAIErrorState === 'No suggestions') {
|
|
532
|
-
setReplies(prev => {
|
|
533
|
-
return [
|
|
534
|
-
{
|
|
535
|
-
id: newReplyId,
|
|
536
|
-
message: 'No suggestions',
|
|
537
|
-
errorType: 'noSuggestions',
|
|
538
|
-
type: 'genAIReply'
|
|
539
|
-
},
|
|
540
|
-
...prev.filter(reply => reply.type !== 'genAIReply')
|
|
541
|
-
];
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
else if (args.genAIErrorState === 'Error') {
|
|
545
|
-
setReplies(prev => {
|
|
546
|
-
return [
|
|
547
|
-
{
|
|
548
|
-
id: newReplyId,
|
|
549
|
-
message: 'Failed to retrieve the data',
|
|
550
|
-
errorType: 'error',
|
|
551
|
-
type: 'genAIReply'
|
|
552
|
-
},
|
|
553
|
-
...prev.filter(reply => reply.type !== 'genAIReply')
|
|
554
|
-
];
|
|
555
|
-
});
|
|
556
|
-
setDisableSuggestReply(false);
|
|
557
|
-
}
|
|
558
|
-
else {
|
|
559
|
-
setReplies(prev => {
|
|
560
|
-
return [
|
|
561
|
-
{
|
|
562
|
-
id: newReplyId,
|
|
563
|
-
message: 'Happy to help. Is there anything else I can help with?',
|
|
564
|
-
confidence: 75,
|
|
565
|
-
type: 'genAIReply'
|
|
566
|
-
},
|
|
567
|
-
...prev.filter(reply => reply.type !== 'genAIReply')
|
|
568
|
-
];
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
}, 1000);
|
|
572
|
-
},
|
|
573
|
-
children: composerChildren
|
|
574
|
-
};
|
|
575
|
-
const suggestedReplyPickerProps = {
|
|
576
|
-
replies,
|
|
577
|
-
onSelect: (suggestedReply) => {
|
|
578
|
-
if (!isReplyErrorState(suggestedReply) && !isReplyLoadingState(suggestedReply))
|
|
579
|
-
chatComposerImperativeHandleRef.current?.appendToMessage(suggestedReply.message, 'cursor');
|
|
580
|
-
},
|
|
581
|
-
collapsed: suggestedRepliesCollapsed,
|
|
582
|
-
onExpandCollapse: () => {
|
|
583
|
-
setSuggestedRepliesCollapsed(prev => !prev);
|
|
584
|
-
},
|
|
585
|
-
showNotification: true,
|
|
586
|
-
currentReplyId: currentReply,
|
|
587
|
-
onReplyChange: id => {
|
|
588
|
-
setCurrentReply(id);
|
|
589
|
-
},
|
|
590
|
-
onSend: (message) => {
|
|
591
|
-
action(`onAppendMessage: ${message}`)();
|
|
592
|
-
appendMessage({
|
|
593
|
-
senderType: 'agent',
|
|
594
|
-
direction: 'out',
|
|
595
|
-
avatarInfo: {
|
|
596
|
-
name: 'Edward Green'
|
|
597
|
-
},
|
|
598
|
-
type: 'message',
|
|
599
|
-
message,
|
|
600
|
-
timeStamp: '2:08'
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
const emojiCtx = useMemo(() => ({
|
|
605
|
-
set: 'google',
|
|
606
|
-
spriteSrcResolver: () => 'https://unpkg.com/emoji-datasource-google@5.0.1/img/google/sheets-256/64.png'
|
|
607
|
-
}), []);
|
|
608
|
-
return (<EmojiContext.Provider value={emojiCtx}>
|
|
609
|
-
<Flex container={{
|
|
610
|
-
justify: 'center'
|
|
611
|
-
}} style={{
|
|
612
|
-
height: args.chatHeight || 'calc(100vh)',
|
|
613
|
-
width: args.chatWidth || '30rem',
|
|
614
|
-
margin: 'auto'
|
|
615
|
-
}}>
|
|
616
|
-
<VisuallyHiddenText aria-live='assertive'>{announcement}</VisuallyHiddenText>
|
|
617
|
-
<Chat header={{
|
|
618
|
-
title: Channels.options[args.selectedChannel || 'LiveChat'].title,
|
|
619
|
-
icon: Channels.options[args.selectedChannel || 'LiveChat'].icon,
|
|
620
|
-
customer: 'Ginger Ventura',
|
|
621
|
-
authenticated: true,
|
|
622
|
-
sentiment: { variant: 'positive' },
|
|
623
|
-
context: {
|
|
624
|
-
items: contextItems,
|
|
625
|
-
onClick: () => {
|
|
626
|
-
setContextLoading(true);
|
|
627
|
-
setTimeout(() => {
|
|
628
|
-
setContextItems(contextItemsMock);
|
|
629
|
-
setContextLoading(false);
|
|
630
|
-
}, 1000);
|
|
631
|
-
},
|
|
632
|
-
loading: contextLoading
|
|
633
|
-
},
|
|
634
|
-
actions: [
|
|
635
|
-
{ id: 'action-1', primary: 'Transfer' },
|
|
636
|
-
{ id: 'action-2', primary: 'End chat' }
|
|
637
|
-
]
|
|
638
|
-
}} banner={args.showChatBanner ? chatBanner : undefined} body={bodyProps} suggestedReplyPicker={suggestedReplyPickerProps} composer={composerProps}/>
|
|
639
|
-
</Flex>
|
|
640
|
-
</EmojiContext.Provider>);
|
|
641
|
-
};
|
|
642
|
-
StandardChat.args = {
|
|
643
|
-
maxAttachments: 2,
|
|
644
|
-
selectedChannel: 'LiveChat',
|
|
645
|
-
showChatBanner: true,
|
|
646
|
-
disableChat: false,
|
|
647
|
-
simulateConversation: false,
|
|
648
|
-
typingIndicator: false,
|
|
649
|
-
message: '',
|
|
650
|
-
placeholder: 'Enter message',
|
|
651
|
-
defaultMessage: 'Greetings! Hope you are having a great time, Please reach out to us for any help, Thanks!',
|
|
652
|
-
maxLength: 280,
|
|
653
|
-
loading: false,
|
|
654
|
-
showAttachments: true,
|
|
655
|
-
genAIErrorState: 'No error'
|
|
656
|
-
};
|
|
657
|
-
StandardChat.argTypes = {
|
|
658
|
-
maxAttachments: { control: { type: 'number' } },
|
|
659
|
-
showAttachments: { control: { type: 'boolean' } },
|
|
660
|
-
selectedChannel: { options: ['LiveChat', 'Twitter', 'Facebook'], control: { type: 'select' } },
|
|
661
|
-
showChatBanner: { control: { type: 'boolean' } },
|
|
662
|
-
disableChat: { control: { type: 'boolean' } },
|
|
663
|
-
simulateConversation: { control: { type: 'boolean' } },
|
|
664
|
-
typingIndicator: { control: { type: 'boolean' } },
|
|
665
|
-
message: { control: { type: 'text' } },
|
|
666
|
-
placeholder: { control: { type: 'text' } },
|
|
667
|
-
defaultMessage: { control: { type: 'text' } },
|
|
668
|
-
maxLength: { control: { type: 'number' } },
|
|
669
|
-
loading: { control: { type: 'boolean' } },
|
|
670
|
-
genAIErrorState: {
|
|
671
|
-
options: ['No error', 'No suggestions', 'Error'],
|
|
672
|
-
control: { type: 'select' }
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
StandardChat.parameters = {
|
|
676
|
-
layout: 'fullscreen'
|
|
677
|
-
};
|
|
678
|
-
//# sourceMappingURL=Chat.stories.jsx.map
|