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