@pega/cosmos-react-demos 3.0.0-dev.3.0 → 3.0.0-dev.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsx/build/AppHeader/AppHeader.stories.d.ts +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -76
- package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
- package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
- package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
- package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +5 -3
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +39 -2
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +523 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +339 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +186 -34
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +267 -152
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +146 -18
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
- package/jsx/build/LifeCycle/utils.js +5 -4
- package/jsx/build/LifeCycle/utils.js.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +396 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +258 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +97 -271
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +204 -18
- package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +99 -65
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
- package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +3 -0
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +49 -13
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
- package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
- package/jsx/core/Badges/Selection.stories.d.ts +2 -3
- package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
- package/jsx/core/Badges/Tag.stories.d.ts +2 -3
- package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +6 -18
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +2 -10
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
- package/jsx/core/Button/Button.stories.d.ts +2 -3
- package/jsx/core/Button/Button.stories.d.ts.map +1 -1
- package/jsx/core/Button/Button.stories.jsx +6 -6
- package/jsx/core/Button/Button.stories.jsx.map +1 -1
- package/jsx/core/Card/Card.stories.d.ts +1 -2
- package/jsx/core/Card/Card.stories.d.ts.map +1 -1
- package/jsx/core/Card/Card.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +26 -7
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +12 -13
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +40 -8
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
- package/jsx/core/Configuration/Configuration.stories.d.ts +2 -3
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.stories.jsx +2 -18
- package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
- package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
- package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.styles.js +12 -0
- package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +14 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx +52 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
- package/jsx/core/Currency/Currency.stories.d.ts +7 -2
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx +28 -7
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +41 -10
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +190 -18
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
- package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +8 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +16 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +55 -88
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.js +8 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.js.map +1 -0
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx +16 -39
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.jsx +7 -6
- package/jsx/core/Form/Form.mocks.jsx.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
- package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
- package/jsx/core/HTML/HTML.stories.d.ts +6 -0
- package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
- package/jsx/core/HTML/HTML.stories.jsx +13 -0
- package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
- package/jsx/core/Icon/Icon.stories.d.ts +5 -6
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +5 -27
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/Icon/Icon.styles.d.ts +4 -0
- package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
- package/jsx/core/Icon/Icon.styles.js +25 -0
- package/jsx/core/Icon/Icon.styles.js.map +1 -0
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +7 -10
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
- package/jsx/core/Image/Image.stories.d.ts +2 -3
- package/jsx/core/Image/Image.stories.d.ts.map +1 -1
- package/jsx/core/Image/Image.stories.jsx.map +1 -1
- package/jsx/core/Input/Input.stories.d.ts +2 -0
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx +78 -2
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
- package/jsx/core/Link/Link.stories.d.ts +1 -11
- package/jsx/core/Link/Link.stories.d.ts.map +1 -1
- package/jsx/core/Link/Link.stories.jsx +2 -1
- package/jsx/core/Link/Link.stories.jsx.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +12 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +102 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
- package/jsx/core/Location/Location.stories.d.ts +4 -1
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +13 -6
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Location/locationTestUtils.d.ts +3 -0
- package/jsx/core/Location/locationTestUtils.d.ts.map +1 -0
- package/jsx/core/Location/locationTestUtils.js +29 -0
- package/jsx/core/Location/locationTestUtils.js.map +1 -0
- package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.stories.jsx +7 -6
- package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +19 -5
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx +55 -27
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
- package/jsx/core/Number/Number.stories.d.ts +9 -3
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx +212 -24
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +21 -43
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts +4 -1
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx +12 -3
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx +6 -6
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +22 -5
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts +1 -0
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx +10 -3
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx +29 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.js +16 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.js.map +1 -0
- package/jsx/core/Slider/Slider.stories.d.ts +4 -3
- package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.jsx +1 -1
- package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx +4 -4
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +5 -2
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +3 -3
- package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +3 -7
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
- package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
- package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts +1 -2
- package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.jsx +16 -2
- package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
- package/jsx/cs/Article/Article.stories.d.ts +4 -13
- package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
- package/jsx/cs/Article/Article.stories.jsx.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx +3 -2
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +211 -93
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +5 -5
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -6
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +15 -7
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +93 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -6
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +122 -48
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js +9 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
- package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
- package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
- package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx +3 -21
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +19 -2
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +15 -2
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +5 -6
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +6 -7
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +96 -14
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
- package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
- package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.styles.js +22 -0
- package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
- package/jsx/social/Email/Email.mocks.d.ts +216 -3
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +945 -0
- package/jsx/social/Email/Email.mocks.jsx.map +1 -0
- package/jsx/social/Email/Email.stories.d.ts +59 -26
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +885 -669
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.styles.d.ts +3 -0
- package/jsx/social/Email/Email.styles.d.ts.map +1 -0
- package/jsx/social/Email/Email.styles.js +11 -0
- package/jsx/social/Email/Email.styles.js.map +1 -0
- package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx +10 -5
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +8 -12
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +32 -22
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx +4 -3
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +42 -31
- package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +28 -23
- package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx +4 -3
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx +81 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx +69 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
- package/jsx/tools/DevTools/DevTools.mocks.d.ts +3 -0
- package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
- package/jsx/tools/DevTools/DevTools.mocks.js +3 -0
- package/jsx/tools/DevTools/DevTools.mocks.js.map +1 -0
- package/jsx/tools/DevTools/DevTools.stories.d.ts +10 -0
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -0
- package/jsx/tools/DevTools/DevTools.stories.jsx +35 -0
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +153 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +5 -4
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +5 -6
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +74 -2
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +200 -11
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +4 -30
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +53 -230
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +2 -2
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -174
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -8
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +67 -64
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +6 -0
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx +39 -38
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +74 -44
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
- package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/jsx/work/Stages/Stages.mocks.jsx +40 -0
- package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
- package/jsx/work/Stages/Stages.stories.d.ts +1 -1
- package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.stories.jsx +12 -46
- package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
- package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +21 -11
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
- package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +35 -0
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx +75 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts +19 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx +68 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.js +5 -0
- package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +13 -0
- package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/jsx/wss/CaseView/CaseView.mocks.jsx +34 -0
- package/jsx/wss/CaseView/CaseView.mocks.jsx.map +1 -0
- package/jsx/wss/CaseView/CaseView.stories.d.ts +12 -0
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -0
- package/jsx/wss/CaseView/CaseView.stories.jsx +69 -0
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +48 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/lib/build/AppHeader/AppHeader.stories.js +100 -76
- package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.js +32 -0
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.stories.js +22 -45
- package/lib/build/AppShell/AppShell.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +5 -3
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +40 -3
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/FieldSelector.js +1 -1
- package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +524 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +336 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +158 -33
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +256 -137
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +146 -18
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
- package/lib/build/LifeCycle/utils.d.ts.map +1 -1
- package/lib/build/LifeCycle/utils.js +5 -4
- package/lib/build/LifeCycle/utils.js.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +369 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +242 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +114 -252
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/lib/build/Workbench/Workbench.stories.js +210 -29
- package/lib/build/Workbench/Workbench.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +78 -62
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/lib/core/AppShell/AppShell.mocks.js +10 -10
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +3 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js +56 -20
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js +6 -6
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Backdrop/Backdrop.stories.js +2 -2
- package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
- package/lib/core/Badges/Alert.stories.js +1 -1
- package/lib/core/Badges/Alert.stories.js.map +1 -1
- package/lib/core/Badges/Count.stories.js +1 -1
- package/lib/core/Badges/Count.stories.js.map +1 -1
- package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
- package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/lib/core/Badges/Keyboard.stories.js +16 -0
- package/lib/core/Badges/Keyboard.stories.js.map +1 -0
- package/lib/core/Badges/Selection.stories.d.ts +2 -3
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
- package/lib/core/Badges/Selection.stories.js +1 -1
- package/lib/core/Badges/Selection.stories.js.map +1 -1
- package/lib/core/Badges/Status.stories.js +2 -2
- package/lib/core/Badges/Status.stories.js.map +1 -1
- package/lib/core/Badges/Tag.stories.d.ts +2 -3
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
- package/lib/core/Badges/Tag.stories.js +1 -1
- package/lib/core/Badges/Tag.stories.js.map +1 -1
- package/lib/core/Banner/Banner.mocks.js +1 -1
- package/lib/core/Banner/Banner.mocks.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +6 -18
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +11 -22
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/Button/Button.stories.d.ts +2 -3
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.js +8 -8
- package/lib/core/Button/Button.stories.js.map +1 -1
- package/lib/core/Card/Card.stories.d.ts +1 -2
- package/lib/core/Card/Card.stories.d.ts.map +1 -1
- package/lib/core/Card/Card.stories.js +4 -4
- package/lib/core/Card/Card.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js +26 -7
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +41 -5
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js +17 -18
- package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js +46 -14
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
- package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.mocks.js +6 -0
- package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
- package/lib/core/Configuration/Configuration.stories.d.ts +2 -3
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.stories.js +13 -25
- package/lib/core/Configuration/Configuration.stories.js.map +1 -1
- package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
- package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.styles.js +12 -0
- package/lib/core/Configuration/Configuration.styles.js.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts +14 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.js +53 -0
- package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
- package/lib/core/Currency/Currency.stories.d.ts +7 -2
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.js +29 -8
- package/lib/core/Currency/Currency.stories.js.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +41 -10
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js +191 -18
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
- package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
- package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
- package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/lib/core/Dialog/Dialog.stories.js +47 -0
- package/lib/core/Dialog/Dialog.stories.js.map +1 -0
- package/lib/core/Drawer/Drawer.stories.js +4 -4
- package/lib/core/Drawer/Drawer.stories.js.map +1 -1
- package/lib/core/Email/EmailDisplay.stories.js +1 -1
- package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
- package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +8 -4
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js +15 -3
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
- package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.js +58 -67
- package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.js +35 -5
- package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
- package/lib/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.styles.js +8 -0
- package/lib/core/FieldValueList/FieldValueList.styles.js.map +1 -0
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js +25 -38
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/File/FileInput.stories.js +2 -2
- package/lib/core/File/FileInput.stories.js.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.js +7 -7
- package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
- package/lib/core/Flex/FlexItem.stories.js +3 -3
- package/lib/core/Flex/FlexItem.stories.js.map +1 -1
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js +6 -6
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/Form/Form.stories.js +8 -8
- package/lib/core/Form/Form.stories.js.map +1 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridContainer.stories.js +9 -9
- package/lib/core/Grid/GridContainer.stories.js.map +1 -1
- package/lib/core/Grid/GridItem.stories.d.ts +1 -2
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridItem.stories.js +3 -3
- package/lib/core/Grid/GridItem.stories.js.map +1 -1
- package/lib/core/HTML/HTML.stories.d.ts +6 -0
- package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
- package/lib/core/HTML/HTML.stories.js +14 -0
- package/lib/core/HTML/HTML.stories.js.map +1 -0
- package/lib/core/Icon/Icon.mocks.js +1 -1
- package/lib/core/Icon/Icon.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +5 -6
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +12 -35
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/Icon/Icon.styles.d.ts +4 -0
- package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
- package/lib/core/Icon/Icon.styles.js +25 -0
- package/lib/core/Icon/Icon.styles.js.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.js +8 -11
- package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
- package/lib/core/Image/Image.stories.d.ts +2 -3
- package/lib/core/Image/Image.stories.d.ts.map +1 -1
- package/lib/core/Image/Image.stories.js +1 -1
- package/lib/core/Image/Image.stories.js.map +1 -1
- package/lib/core/Input/Input.stories.d.ts +2 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js +80 -4
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Label/Label.stories.js +2 -2
- package/lib/core/Label/Label.stories.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js +3 -3
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/Link/Link.stories.d.ts +1 -11
- package/lib/core/Link/Link.stories.d.ts.map +1 -1
- package/lib/core/Link/Link.stories.js +4 -3
- package/lib/core/Link/Link.stories.js.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
- package/lib/core/List/OrderedList.stories.js +1 -1
- package/lib/core/List/OrderedList.stories.js.map +1 -1
- package/lib/core/List/UnorderedList.stories.js +1 -1
- package/lib/core/List/UnorderedList.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +12 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js +94 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
- package/lib/core/Location/Location.stories.d.ts +4 -1
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +16 -9
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Location/locationTestUtils.d.ts +3 -0
- package/lib/core/Location/locationTestUtils.d.ts.map +1 -0
- package/lib/core/Location/locationTestUtils.js +30 -0
- package/lib/core/Location/locationTestUtils.js.map +1 -0
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/core/Menu/Menu.stories.js +10 -9
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.js +9 -9
- package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
- package/lib/core/MetaList/MetaList.stories.js +3 -3
- package/lib/core/MetaList/MetaList.stories.js.map +1 -1
- package/lib/core/Modal/Modal.mocks.js +8 -8
- package/lib/core/Modal/Modal.mocks.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +19 -5
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js +81 -53
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
- package/lib/core/Number/Number.stories.d.ts +9 -3
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js +213 -25
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +35 -57
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/lib/core/Pagination/Pagination.stories.js +1 -1
- package/lib/core/Pagination/Pagination.stories.js.map +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts +4 -1
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.js +13 -4
- package/lib/core/Phone/Phone.stories.js.map +1 -1
- package/lib/core/Popover/Popover.stories.d.ts +1 -1
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.js +2 -2
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/Progress/Progress.stories.js +3 -3
- package/lib/core/Progress/Progress.stories.js.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js +22 -5
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +41 -5
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/Rating/Rating.stories.js +2 -2
- package/lib/core/Rating/Rating.stories.js.map +1 -1
- package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
- package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.js +29 -15
- package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts +1 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js +12 -5
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.js +2 -2
- package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.stories.js +28 -0
- package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
- package/lib/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.styles.js +16 -0
- package/lib/core/SkipLinks/SkipLinks.styles.js.map +1 -0
- package/lib/core/Slider/Slider.stories.d.ts +4 -3
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.js +2 -2
- package/lib/core/Slider/Slider.stories.js.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
- package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
- package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.js +9 -9
- package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
- package/lib/core/Switch/Switch.stories.js +3 -3
- package/lib/core/Switch/Switch.stories.js.map +1 -1
- package/lib/core/Table/Table.mocks.js +1 -1
- package/lib/core/Table/Table.mocks.js.map +1 -1
- package/lib/core/Table/Table.stories.js +9 -9
- package/lib/core/Table/Table.stories.js.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +5 -2
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.js +3 -3
- package/lib/core/Tabs/Tabs.stories.js.map +1 -1
- package/lib/core/Text/Text.stories.js +2 -2
- package/lib/core/Text/Text.stories.js.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.js +11 -4
- package/lib/core/TextArea/TextArea.stories.js.map +1 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/lib/core/Toaster/Toaster.stories.js +5 -5
- package/lib/core/Toaster/Toaster.stories.js.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +3 -7
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.js +2 -2
- package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.d.ts +1 -2
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.js +21 -5
- package/lib/core/Tree/Tree.stories.js.map +1 -1
- package/lib/core/URL/URL.stories.js +1 -1
- package/lib/core/URL/URL.stories.js.map +1 -1
- package/lib/cs/Article/Article.stories.d.ts +4 -13
- package/lib/cs/Article/Article.stories.d.ts.map +1 -1
- package/lib/cs/Article/Article.stories.js +9 -9
- package/lib/cs/Article/Article.stories.js.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
- package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +212 -98
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
- package/lib/cs/DialPad/DialPad.stories.js +1 -1
- package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +20 -20
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -6
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +32 -22
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +93 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -6
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +130 -56
- package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.styles.js +9 -0
- package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
- package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Demo.js +151 -0
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.js +33 -0
- package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.js +78 -0
- package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/lib/rte/Editor/Editor.mocks.js +26 -0
- package/lib/rte/Editor/Editor.mocks.js.map +1 -0
- package/lib/rte/Editor/Editor.stories.d.ts +7 -8
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js +8 -28
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js +14 -7
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +15 -2
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +5 -6
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +6 -7
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +98 -36
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.mocks.js +11 -0
- package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/lib/social/Chat/RepeatingView.stories.js +18 -48
- package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.styles.js +22 -0
- package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
- package/lib/social/Email/Email.mocks.d.ts +216 -3
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +551 -0
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +59 -26
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +861 -714
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Email/Email.styles.d.ts +3 -0
- package/lib/social/Email/Email.styles.d.ts.map +1 -0
- package/lib/social/Email/Email.styles.js +11 -0
- package/lib/social/Email/Email.styles.js.map +1 -0
- package/lib/social/Feed/Feed.mocks.d.ts +13 -18
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +45 -40
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +8 -12
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +38 -28
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.js +5 -4
- package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.stories.js +47 -36
- package/lib/social/Feed/FeedPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.stories.js +31 -26
- package/lib/social/Feed/FeedReply.stories.js.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +5 -4
- package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js +75 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.js +78 -0
- package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
- package/lib/tools/DevTools/DevTools.mocks.d.ts +3 -0
- package/lib/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
- package/lib/tools/DevTools/DevTools.mocks.js +3 -0
- package/lib/tools/DevTools/DevTools.mocks.js.map +1 -0
- package/lib/tools/DevTools/DevTools.stories.d.ts +10 -0
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -0
- package/lib/tools/DevTools/DevTools.stories.js +31 -0
- package/lib/tools/DevTools/DevTools.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js +154 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +5 -4
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js +20 -21
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +74 -2
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +197 -18
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +4 -30
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +48 -240
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Details.mocks.js +1 -1
- package/lib/work/CaseView/Details.mocks.js.map +1 -1
- package/lib/work/CaseView/FileService.mock.js +1 -1
- package/lib/work/CaseView/FileService.mock.js.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.js +3 -3
- package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -174
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js +12 -8
- package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +14 -59
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.js +3 -3
- package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +6 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.js +43 -42
- package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js +83 -53
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.mocks.d.ts +14 -0
- package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/lib/work/Stages/Stages.mocks.js +39 -0
- package/lib/work/Stages/Stages.mocks.js.map +1 -0
- package/lib/work/Stages/Stages.stories.d.ts +1 -1
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
- package/lib/work/Stages/Stages.stories.js +12 -44
- package/lib/work/Stages/Stages.stories.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js +2 -2
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Tags/Tags.stories.js +1 -1
- package/lib/work/Tags/Tags.stories.js.map +1 -1
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/lib/work/Tasks/TaskList.stories.js +6 -4
- package/lib/work/Tasks/TaskList.stories.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +29 -17
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.js +8 -8
- package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.stories.js +24 -3
- package/lib/work/Timeline/Timeline.stories.js.map +1 -1
- package/lib/wss/AppShell/AppShell.mocks.d.ts +35 -0
- package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.mocks.js +70 -0
- package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts +19 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.js +70 -0
- package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.js +5 -0
- package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
- package/lib/wss/CaseView/CaseView.mocks.d.ts +13 -0
- package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/lib/wss/CaseView/CaseView.mocks.js +35 -0
- package/lib/wss/CaseView/CaseView.mocks.js.map +1 -0
- package/lib/wss/CaseView/CaseView.stories.d.ts +12 -0
- package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -0
- package/lib/wss/CaseView/CaseView.stories.js +70 -0
- package/lib/wss/CaseView/CaseView.stories.js.map +1 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.js +41 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
- package/package.json +22 -19
- package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
- package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +0 -45
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +0 -275
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -57
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js +0 -224
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
- package/jsx/social/Email/Email.mocks.js +0 -395
- package/jsx/social/Email/Email.mocks.js.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.js +0 -36
- package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +0 -45
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.js +0 -240
- package/lib/cs/CSCaseView/CSAppShell.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -57
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +0 -224
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedPost.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,MAAM,EACN,WAAW,EACX,IAAI,EAEJ,OAAO,EAEP,KAAK,EAEL,MAAM,EACP,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,EACJ,QAAQ,EAET,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEpB,MAAM,cAAc,CAAC;AAEtB,eAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,QAAQ;CACZ,CAAC;AAEV,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,QAAQ,GAAG,aAAa,EACxB,QAAQ,GAAG,aAAa,EACxB,OAAO,EACP,QAAQ,EACR,UAAU,EACV,WAAW,EAAE,eAAe,EAC5B,OAAO,EACP,WAAW,EAAE,IAAI,EACjB,UAAU,EACV,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,aAAa,EACxB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,UAAU,GAAG,IAAI,EACC,EAAE,EAAE;IAC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YACT,IAAI,EAAE,WAAW;YACjB,GAAG,EAAE,YAAY;YACjB,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,QAAQ;SAClB;QACD;YACE,EAAE,EAAE,KAAK;YACT,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,YAAY;YACjB,OAAO,EAAE,CACP,EACE;UAAA,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,CACtB;UAAA,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,CACzB;QAAA,GAAG,CACJ;YACD,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,KAAK;SACf;KACF,CAAC;IAEF,MAAM,OAAO,GAAuC;QAClD,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QACnC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE;QAC3C,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;QACzC,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QACrC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE;KAClE,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CACH,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAC3D,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAG,CAAC,CAAC,EACzF,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState } from 'react';\n\nimport {\n Avatar,\n CardContent,\n Link,\n MenuItemProps,\n Popover,\n SummaryListItem,\n Table,\n ColumnProps,\n useUID\n} from '@pega/cosmos-react-core';\nimport {\n HashtagButtonConfig,\n MentionButtonConfig,\n Feed,\n FeedPost,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { Glimpse, GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { FeedReplyDemo } from './FeedReply.stories';\nimport {\n generatedLikes,\n caseMentions,\n userMentions,\n availableRecipients,\n FeedPostDemoProps\n} from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedPost',\n component: FeedPost\n} as Meta;\n\nexport const FeedPostDemo = ({\n fullname = 'Katie Smith',\n username = 'katie_smith',\n content,\n postType,\n recipients,\n attachments: postAttachments,\n replies,\n timeElapsed: time,\n userStatus,\n likes: userLikes,\n likeCount: userLikeCount,\n onDelete = () => {},\n renderFeed = true\n}: FeedPostDemoProps) => {\n const defaultContent = postAttachments\n ? ''\n : 'This post mentions @deans:Seth DeAngelo:user: and also contains a tag! #cosmos:';\n\n const defaultReplies = Array.from(Array(12).keys(), index => {\n return (\n <FeedReplyDemo\n key={`reply-story-${index + 1}`}\n fullname={fullname}\n content={`This is reply number ${index + 1}!`}\n renderFeed={false}\n />\n );\n });\n\n const key = useUID();\n const [postContent, setPostContent] = useState(content || defaultContent);\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n\n const [likes, setLikes] = useState<SummaryListItem[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState<number>(\n userLikeCount || (renderFeed ? generatedLikes.length : 0)\n );\n const [recipientsList, setRecipientsList] = useState<MenuItemProps[]>([]);\n const [edited, setEdited] = useState(false);\n const [timeElapsed, setTimeElapsed] = useState(time || '4 days ago');\n\n const [popoverOpen, setPopoverOpen] = useState(false);\n const [popoverTarget, setPopoverTarget] = useState<Element>();\n\n const [extraReplies, setExtraReplies] = useState<any[]>([]);\n const [replyAttachments, setReplyAttachments] = useState<AttachedFiles[]>([]);\n const [replyCount, setReplyCount] = useState<number>(\n replies ? replies.length : defaultReplies.length\n );\n const [repliesLoading, setRepliesLoading] = useState(false);\n const [repliesShown, setRepliesShown] = useState(3);\n\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n const [allRecipientsVisible, setAllRecipientsVisible] = useState(false);\n\n const onShowMoreReplies = () => {\n setRepliesLoading(true);\n setTimeout(() => {\n setRepliesShown(curr => {\n if (curr + 3 <= defaultReplies.length) return curr + 3;\n return defaultReplies.length;\n });\n setRepliesLoading(false);\n }, 1000);\n };\n\n const onShowLessReplies = () => {\n setRepliesLoading(true);\n setTimeout(() => {\n setRepliesShown(3);\n setRepliesLoading(false);\n }, 1000);\n };\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual }) => {\n return {\n id,\n primary,\n secondary,\n visual\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n file.onDelete = () => {\n setReplyAttachments?.(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setReplyAttachments(files);\n };\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes(userLikes || (renderFeed ? generatedLikes : []));\n };\n\n const generateNewLike = () => {\n setTimeout(() => {\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was added after the onLoadMore callback triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n };\n\n const getInitialRecipients = () => {\n if (recipientsList.length) return;\n\n setRecipientsList(\n recipients ||\n availableRecipients.slice(0, !allRecipientsVisible ? 10 : availableRecipients.length)\n );\n };\n\n const getAllRecipients = () => {\n setTimeout(() => {\n setAllRecipientsVisible(true);\n setRecipientsList(recipients || availableRecipients);\n }, 1000);\n };\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const post = (\n <>\n <FeedPost\n id={key}\n key={key}\n info={{\n fullname,\n username,\n timeElapsed,\n content: postContent,\n postType,\n recipients: recipientsList,\n recipientsCount: recipients ? recipients.length : availableRecipients.length,\n attachments: postAttachments,\n liked,\n postContext: renderFeed ? (\n <Link href='https://www.pega.com' target='_blank'>\n Pega\n </Link>\n ) : undefined,\n userStatus\n }}\n interactionInfo={{\n likeLabel: 'Like',\n likes,\n likeCount: likeCount >= 10 ? likeCount + 1 : likeCount,\n commentLabel: 'Comment'\n }}\n maxContentHeight={80}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n onRecipientInteraction={getInitialRecipients}\n onLoadMoreRecipients={!allRecipientsVisible ? getAllRecipients : undefined}\n onUserClick={(_, clickEvent) => {\n if (clickEvent) {\n setPopoverTarget(clickEvent.target as Element);\n setPopoverOpen(curr => !curr);\n }\n }}\n menuItems={[\n { primary: 'Custom action', id: 'custom', onClick: () => {} },\n { primary: 'Delete', id: 'delete', onClick: onDelete }\n ]}\n onEditSubmit={({ value }) => {\n setPostContent(value);\n setEdited(true);\n setTimeElapsed('Just now');\n }}\n edited={edited}\n replies={\n replies\n ? [...replies, ...extraReplies]\n : [...defaultReplies.slice(-repliesShown), ...extraReplies]\n }\n replyCount={replyCount}\n repliesLoading={repliesLoading}\n onShowMoreReplies={onShowMoreReplies}\n onShowLessReplies={repliesShown > 3 ? onShowLessReplies : undefined}\n replyInput={{\n commentLabel: 'Send Comment',\n attachments: replyAttachments,\n onFilesAdded,\n onSubmit: replyEvent => {\n setReplyAttachments([]);\n\n replyEvent.attachments.forEach(file => {\n delete file.onDelete;\n file.onPreview = () => {};\n file.onDownload = () => {};\n });\n\n setExtraReplies(oldReplies => [\n ...oldReplies,\n <FeedReplyDemo\n key={`replies-${oldReplies.length}`}\n fullname='Demo User'\n username='demo_user'\n content={replyEvent.value}\n attachments={replyEvent.attachments}\n timeElapsed='Just now'\n renderFeed={false}\n />\n ]);\n setReplyCount(oldReplyCount => oldReplyCount + 1);\n replyEvent.clear();\n },\n placeholder: 'Add a comment'\n }}\n />\n {popoverTarget && (\n <Popover show={popoverOpen} target={popoverTarget} placement='bottom' portal>\n <CardContent>{fullname}</CardContent>\n </Popover>\n )}\n </>\n );\n\n return renderFeed ? (\n <Feed\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n onMentionClick={onMentionClick}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[post]}\n />\n ) : (\n post\n );\n};\n\nexport const FeedPostWithPresence = () => {\n return <FeedPostDemo userStatus='active' />;\n};\n\nexport const FeedPostWithJSX = () => {\n const data = [\n {\n id: '123',\n name: 'Jane Smith',\n dob: '12/31/1990',\n address: 'Boston, MA',\n email: 'jsmith@email.com',\n balance: '$2,200'\n },\n {\n id: '456',\n name: 'Joe Smith',\n dob: '01/01/1980',\n address: '',\n email: 'joe.smith@email.com',\n balance: '$1,350'\n },\n {\n id: '789',\n name: 'Mirian Lou',\n dob: '02/29/1985',\n address: (\n <>\n <div>100 Main St.</div>\n <div>Cambridge, MA</div>\n </>\n ),\n email: '',\n balance: '$10'\n }\n ];\n\n const columns: ColumnProps<typeof data[number]>[] = [\n { renderer: 'name', label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n { renderer: 'email', label: 'Email' },\n { renderer: 'balance', label: 'Account Balance', align: 'right' }\n ];\n\n return (\n <Feed\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[<FeedPostDemo content={<Table columns={columns} data={data} />} replies={[]} />]}\n />\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"FeedPost.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EACL,MAAM,EACN,WAAW,EACX,IAAI,EAEJ,OAAO,EAEP,KAAK,EAEL,MAAM,EACP,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,EACJ,QAAQ,EAET,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEpB,MAAM,cAAc,CAAC;AAEtB,eAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,QAAQ;CACZ,CAAC;AAEV,MAAM,CAAC,MAAM,YAAY,GAA6B,CAAC,EACrD,QAAQ,GA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,GAAG,CACtB;UAAA,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,CACzB;QAAA,GAAG,CACJ;YACD,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,KAAK;SACf;KACF,CAAC;IAEF,MAAM,OAAO,GAAuC;QAClD,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QACnC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE;QAC3C,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;QACzC,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QACrC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE;KAClE,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,OAAO,CACb,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAC3D,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAG,CAAC,CAAC,EACzF,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useCallback, useState } from 'react';\n\nimport {\n Avatar,\n CardContent,\n Link,\n MenuItemProps,\n Popover,\n SummaryListItem,\n Table,\n ColumnProps,\n useUID\n} from '@pega/cosmos-react-core';\nimport {\n HashtagButtonConfig,\n MentionButtonConfig,\n Feed,\n FeedPost,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { Glimpse, GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { FeedReplyDemo } from './FeedReply.stories';\nimport {\n generatedLikes,\n caseMentions,\n userMentions,\n availableRecipients,\n FeedPostDemoProps\n} from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedPost',\n component: FeedPost\n} as Meta;\n\nexport const FeedPostDemo: Story<FeedPostDemoProps> = ({\n fullname = 'Demo User',\n username = 'demo_user',\n content,\n postType,\n recipients,\n attachments: postAttachments,\n replies,\n postTimestamp = new Date(2022, 0, 1),\n userStatus,\n likes: userLikes,\n likeCount: userLikeCount,\n onDelete = () => {},\n renderFeed = true\n}: FeedPostDemoProps) => {\n const defaultContent = postAttachments\n ? ''\n : 'This post mentions @[deans]:[Seth DeAngelo]:[user]: and also contains a tag! #cosmos:';\n\n const defaultReplies = Array.from(Array(12).keys(), index => {\n return (\n <FeedReplyDemo\n key={`reply-story-${index + 1}`}\n fullname={fullname}\n content={`This is reply number ${index + 1}!`}\n renderFeed={false}\n />\n );\n });\n\n const key = useUID();\n const [postContent, setPostContent] = useState(content || defaultContent);\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n\n const [likes, setLikes] = useState<SummaryListItem[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState<number>(\n userLikeCount || (renderFeed ? generatedLikes.length : 0)\n );\n const [recipientsList, setRecipientsList] = useState<MenuItemProps[]>([]);\n const [edited, setEdited] = useState(false);\n const [editTimestamp, setEditTimestamp] = useState(new Date());\n\n const [popoverOpen, setPopoverOpen] = useState(false);\n const [popoverTarget, setPopoverTarget] = useState<Element>();\n\n const [extraReplies, setExtraReplies] = useState<any[]>([]);\n const [replyAttachments, setReplyAttachments] = useState<AttachedFiles[]>([]);\n const [replyCount, setReplyCount] = useState<number>(\n replies ? replies.length : defaultReplies.length\n );\n const [repliesLoading, setRepliesLoading] = useState(false);\n const [repliesShown, setRepliesShown] = useState(3);\n\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n const [allRecipientsVisible, setAllRecipientsVisible] = useState(false);\n\n const onShowMoreReplies = () => {\n setRepliesLoading(true);\n setTimeout(() => {\n setRepliesShown(curr => {\n if (curr + 3 <= defaultReplies.length) return curr + 3;\n return defaultReplies.length;\n });\n setRepliesLoading(false);\n }, 1000);\n };\n\n const onShowLessReplies = () => {\n setRepliesLoading(true);\n setTimeout(() => {\n setRepliesShown(3);\n setRepliesLoading(false);\n }, 1000);\n };\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual, href }) => {\n return {\n id,\n primary,\n secondary,\n visual,\n href\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n file.onDelete = () => {\n setReplyAttachments?.(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setReplyAttachments(files);\n };\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes(userLikes || (renderFeed ? generatedLikes : []));\n };\n\n const [likesLoading, setLikesLoading] = useState(false);\n\n const generateNewLike = useCallback(() => {\n if (!likesLoading) {\n setLikesLoading(true);\n setTimeout(() => {\n setLikesLoading(false);\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was added after the onLoadMore callback triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n }\n }, [likesLoading]);\n\n const getInitialRecipients = () => {\n if (recipientsList.length) return;\n\n setRecipientsList(\n recipients ||\n availableRecipients.slice(0, !allRecipientsVisible ? 10 : availableRecipients.length)\n );\n };\n\n const [recipientsLoading, setRecipientsLoading] = useState(false);\n\n const getAllRecipients = () => {\n if (!recipientsLoading) {\n setRecipientsLoading(true);\n setTimeout(() => {\n setRecipientsLoading(false);\n setAllRecipientsVisible(true);\n setRecipientsList(recipients || availableRecipients);\n }, 1000);\n }\n };\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const post = (\n <>\n <FeedPost\n id={key}\n key={key}\n info={{\n fullname,\n username,\n postTimestamp,\n content: postContent,\n postType,\n recipients: recipientsList,\n recipientsCount: recipients ? recipients.length : availableRecipients.length,\n attachments: postAttachments,\n liked,\n postContext: renderFeed ? (\n <Link href='https://www.pega.com' target='_blank'>\n Pega\n </Link>\n ) : undefined,\n userStatus\n }}\n interactionInfo={{\n likeLabel: 'Like',\n likes,\n likeCount: likeCount >= 10 ? likeCount + 1 : likeCount,\n commentLabel: 'Comment'\n }}\n maxContentHeight={80}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n likesLoading={likesLoading}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n onRecipientInteraction={getInitialRecipients}\n recipientsLoading={recipientsLoading}\n onLoadMoreRecipients={!allRecipientsVisible ? getAllRecipients : undefined}\n onUserClick={(_, clickEvent) => {\n if (clickEvent) {\n setPopoverTarget(clickEvent.target as Element);\n setPopoverOpen(curr => !curr);\n }\n }}\n menuItems={[\n { primary: 'Custom action', id: 'custom', onClick: () => {} },\n { primary: 'Delete', id: 'delete', onClick: onDelete }\n ]}\n onEditSubmit={({ value }) => {\n setPostContent(value);\n setEdited(true);\n setEditTimestamp(new Date());\n }}\n edited={edited}\n editTimestamp={editTimestamp}\n replies={\n replies\n ? [...replies, ...extraReplies]\n : [...defaultReplies.slice(-repliesShown), ...extraReplies]\n }\n replyCount={replyCount}\n repliesLoading={repliesLoading}\n onShowMoreReplies={onShowMoreReplies}\n onShowLessReplies={repliesShown > 3 ? onShowLessReplies : undefined}\n replyInput={{\n commentLabel: 'Send Comment',\n attachments: replyAttachments,\n onFilesAdded,\n onSubmit: replyEvent => {\n setReplyAttachments([]);\n\n replyEvent.attachments.forEach(file => {\n delete file.onDelete;\n file.onPreview = () => {};\n file.onDownload = () => {};\n });\n\n setExtraReplies(oldReplies => [\n ...oldReplies,\n <FeedReplyDemo\n key={`replies-${oldReplies.length}`}\n fullname='Demo User'\n username='demo_user'\n content={replyEvent.value}\n attachments={replyEvent.attachments}\n postTimestamp={new Date()}\n renderFeed={false}\n />\n ]);\n setReplyCount(oldReplyCount => oldReplyCount + 1);\n replyEvent.clear();\n },\n placeholder: 'Add a comment'\n }}\n />\n {popoverTarget && (\n <Popover show={popoverOpen} target={popoverTarget} placement='bottom' portal>\n <CardContent>{fullname}</CardContent>\n </Popover>\n )}\n </>\n );\n\n return renderFeed ? (\n <Feed\n title='Pulse'\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n onMentionClick={onMentionClick}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[post]}\n />\n ) : (\n post\n );\n};\n\nexport const FeedPostWithPresence: Story = () => {\n return <FeedPostDemo userStatus='active' />;\n};\n\nexport const FeedPostWithJSX: Story = () => {\n const data = [\n {\n id: '123',\n name: 'Jane Smith',\n dob: '12/31/1990',\n address: 'Boston, MA',\n email: 'jsmith@email.com',\n balance: '$2,200'\n },\n {\n id: '456',\n name: 'Joe Smith',\n dob: '01/01/1980',\n address: '',\n email: 'joe.smith@email.com',\n balance: '$1,350'\n },\n {\n id: '789',\n name: 'Mirian Lou',\n dob: '02/29/1985',\n address: (\n <>\n <div>100 Main St.</div>\n <div>Cambridge, MA</div>\n </>\n ),\n email: '',\n balance: '$10'\n }\n ];\n\n const columns: ColumnProps<typeof data[number]>[] = [\n { renderer: 'name', label: 'Name' },\n { renderer: 'dob', label: 'Date of Birth' },\n { renderer: 'address', label: 'Address' },\n { renderer: 'email', label: 'Email' },\n { renderer: 'balance', label: 'Account Balance', align: 'right' }\n ];\n\n return (\n <Feed\n title='Pulse'\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[<FeedPostDemo content={<Table columns={columns} data={data} />} replies={[]} />]}\n />\n );\n};\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { Meta } from '@storybook/react';
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
2
|
import { FeedReplyProps } from '@pega/cosmos-react-social';
|
|
4
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
4
|
export default _default;
|
|
6
|
-
|
|
7
|
-
fullname?:
|
|
8
|
-
username?:
|
|
9
|
-
content?:
|
|
5
|
+
interface FeedReplyDemoProps {
|
|
6
|
+
fullname?: FeedReplyProps['info']['fullname'];
|
|
7
|
+
username?: FeedReplyProps['info']['username'];
|
|
8
|
+
content?: FeedReplyProps['info']['content'];
|
|
10
9
|
attachments?: FeedReplyProps['info']['attachments'];
|
|
11
|
-
|
|
10
|
+
postTimestamp?: FeedReplyProps['info']['postTimestamp'];
|
|
12
11
|
userStatus?: FeedReplyProps['info']['userStatus'];
|
|
13
|
-
renderFeed?: boolean
|
|
14
|
-
}
|
|
15
|
-
export declare const
|
|
12
|
+
renderFeed?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const FeedReplyDemo: Story<FeedReplyDemoProps>;
|
|
15
|
+
export declare const FeedReplyWithPresence: Story;
|
|
16
16
|
//# sourceMappingURL=FeedReply.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedReply.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeedReply.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAGL,cAAc,EAGf,MAAM,2BAA2B,CAAC;;AAKnC,wBAGU;AAEV,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACpD,aAAa,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC;IACxD,UAAU,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,kBAAkB,CAqInD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAEnC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
1
|
+
import { useState, useCallback } from 'react';
|
|
2
2
|
import { Avatar, CardContent, Popover, useUID } from '@pega/cosmos-react-core';
|
|
3
3
|
import { Feed, FeedReply, HashtagButtonConfig, MentionButtonConfig } from '@pega/cosmos-react-social';
|
|
4
4
|
import { Glimpse } from '@pega/cosmos-react-work';
|
|
@@ -7,17 +7,17 @@ export default {
|
|
|
7
7
|
title: 'Social/Feed/FeedReply',
|
|
8
8
|
component: FeedReply
|
|
9
9
|
};
|
|
10
|
-
export const FeedReplyDemo = ({ fullname = '
|
|
10
|
+
export const FeedReplyDemo = ({ fullname = 'Demo User', username = 'demo_user', content, attachments, postTimestamp = new Date(2022, 0, 1), userStatus, renderFeed = true }) => {
|
|
11
11
|
const defaultContent = attachments
|
|
12
12
|
? ''
|
|
13
|
-
: 'This reply mentions @deans:Seth DeAngelo:user: and also contains a tag! #cosmos:';
|
|
13
|
+
: 'This reply mentions @[deans]:[Seth DeAngelo]:[user]: and also contains a tag! #cosmos:';
|
|
14
14
|
const key = useUID();
|
|
15
15
|
const [likes, setLikes] = useState([]);
|
|
16
16
|
const [liked, setLiked] = useState(false);
|
|
17
17
|
const [likeCount, setLikeCount] = useState(renderFeed ? generatedLikes.length : 0);
|
|
18
18
|
const [replyContent, setReplyContent] = useState(content || defaultContent);
|
|
19
19
|
const [edited, setEdited] = useState(false);
|
|
20
|
-
const [
|
|
20
|
+
const [editTimestamp, setEditTimestamp] = useState(new Date());
|
|
21
21
|
const [popoverOpen, setPopoverOpen] = useState(false);
|
|
22
22
|
const [popoverTarget, setPopoverTarget] = useState();
|
|
23
23
|
const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);
|
|
@@ -26,20 +26,25 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
|
|
|
26
26
|
return;
|
|
27
27
|
setLikes(renderFeed ? generatedLikes : []);
|
|
28
28
|
};
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
const [likesLoading, setLikesLoading] = useState(false);
|
|
30
|
+
const generateNewLike = useCallback(() => {
|
|
31
|
+
if (!likesLoading) {
|
|
32
|
+
setLikesLoading(true);
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
setLikesLoading(false);
|
|
35
|
+
setLikes(oldLikes => [
|
|
36
|
+
...oldLikes,
|
|
37
|
+
{
|
|
38
|
+
primary: 'Generated Like',
|
|
39
|
+
secondary: ['This like was added after the onLoadMore callback triggered'],
|
|
40
|
+
visual: <Avatar size='l' name='Generated Like'/>,
|
|
41
|
+
id: 'generatedLike'
|
|
42
|
+
}
|
|
43
|
+
]);
|
|
44
|
+
setAdditionalLikeAdded(true);
|
|
45
|
+
}, 1000);
|
|
46
|
+
}
|
|
47
|
+
}, [likesLoading]);
|
|
43
48
|
const onMentionClick = ({ id, type }) => {
|
|
44
49
|
if (type === 'user') {
|
|
45
50
|
const user = userMentions.find(mention => mention.id === id);
|
|
@@ -49,7 +54,7 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
|
|
|
49
54
|
};
|
|
50
55
|
const reply = (<>
|
|
51
56
|
<FeedReply id={key} key={key} info={{
|
|
52
|
-
|
|
57
|
+
postTimestamp,
|
|
53
58
|
content: replyContent,
|
|
54
59
|
attachments,
|
|
55
60
|
username,
|
|
@@ -65,8 +70,8 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
|
|
|
65
70
|
}} maxContentHeight={40} menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => { } }]} onEditSubmit={({ value }) => {
|
|
66
71
|
setReplyContent(value);
|
|
67
72
|
setEdited(true);
|
|
68
|
-
|
|
69
|
-
}} edited={edited} onCommentClick={() => { }} onLikeClick={({ user }) => {
|
|
73
|
+
setEditTimestamp(new Date());
|
|
74
|
+
}} edited={edited} editTimestamp={editTimestamp} onCommentClick={() => { }} onLikeClick={({ user }) => {
|
|
70
75
|
const userLikedIndex = likes.findIndex(x => x.id === user.id);
|
|
71
76
|
if (userLikedIndex !== -1) {
|
|
72
77
|
setLikes(oldLikes => {
|
|
@@ -81,7 +86,7 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
|
|
|
81
86
|
setLikeCount(curr => curr + 1);
|
|
82
87
|
}
|
|
83
88
|
setLiked(curr => !curr);
|
|
84
|
-
}} onLikeCountInteraction={getInitialLikes} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} onUserClick={(_, clickEvent) => {
|
|
89
|
+
}} onLikeCountInteraction={getInitialLikes} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} likesLoading={likesLoading} onUserClick={(_, clickEvent) => {
|
|
85
90
|
if (clickEvent) {
|
|
86
91
|
setPopoverTarget(clickEvent.target);
|
|
87
92
|
setPopoverOpen(curr => !curr);
|
|
@@ -91,7 +96,7 @@ export const FeedReplyDemo = ({ fullname = 'Katie Smith', username = 'katie_smit
|
|
|
91
96
|
<CardContent>{fullname}</CardContent>
|
|
92
97
|
</Popover>)}
|
|
93
98
|
</>);
|
|
94
|
-
return renderFeed ? (<Feed onMentionClick={onMentionClick} interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]} userInfo={{ username: 'demo_user', fullname: 'Demo User' }} posts={[reply]}/>) : (reply);
|
|
99
|
+
return renderFeed ? (<Feed title='Pulse' onMentionClick={onMentionClick} interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]} userInfo={{ username: 'demo_user', fullname: 'Demo User' }} posts={[reply]}/>) : (reply);
|
|
95
100
|
};
|
|
96
101
|
export const FeedReplyWithPresence = () => {
|
|
97
102
|
return <FeedReplyDemo userStatus='active'/>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedReply.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.stories.tsx"],"names":[],"mappings":"AACA,OAAO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oBAAoB,CAAC,CAAC,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CACjE,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAC3D,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EACf,CACH,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAG,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Avatar, CardContent, Popover, SummaryListItem, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedReply,\n FeedReplyProps,\n HashtagButtonConfig,\n MentionButtonConfig\n} from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\n\nimport { generatedLikes, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedReply',\n component: FeedReply\n} as Meta;\n\nexport const FeedReplyDemo = ({\n fullname = 'Katie Smith',\n username = 'katie_smith',\n content,\n attachments,\n timeElapsed: time,\n userStatus,\n renderFeed = true\n}: {\n fullname?: FeedReplyProps['info']['fullname'];\n username?: FeedReplyProps['info']['username'];\n content?: FeedReplyProps['info']['content'];\n attachments?: FeedReplyProps['info']['attachments'];\n timeElapsed?: FeedReplyProps['info']['timeElapsed'];\n userStatus?: FeedReplyProps['info']['userStatus'];\n renderFeed?: boolean;\n}) => {\n const defaultContent = attachments\n ? ''\n : 'This reply mentions @deans:Seth DeAngelo:user: and also contains a tag! #cosmos:';\n\n const key = useUID();\n const [likes, setLikes] = useState<SummaryListItem[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState(renderFeed ? generatedLikes.length : 0);\n const [replyContent, setReplyContent] = useState(content || defaultContent);\n const [edited, setEdited] = useState(false);\n const [timeElapsed, setTimeElapsed] = useState(time || '3 days ago');\n const [popoverOpen, setPopoverOpen] = useState(false);\n const [popoverTarget, setPopoverTarget] = useState<Element>();\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes(renderFeed ? generatedLikes : []);\n };\n\n const generateNewLike = () => {\n setTimeout(() => {\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was added after the onLoadMore callback triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n };\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const reply = (\n <>\n <FeedReply\n id={key}\n key={key}\n info={{\n timeElapsed,\n content: replyContent,\n attachments,\n username,\n fullname,\n fullnameLabel: `${fullname}'s Profile`,\n liked,\n userStatus\n }}\n interactionInfo={{\n likes,\n likeCount: likeCount >= 10 ? likeCount + 1 : likeCount,\n likeLabel: 'Like',\n commentLabel: 'Comment'\n }}\n maxContentHeight={40}\n menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => {} }]}\n onEditSubmit={({ value }) => {\n setReplyContent(value);\n setEdited(true);\n setTimeElapsed('Just now');\n }}\n edited={edited}\n onCommentClick={() => {}}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n onUserClick={(_, clickEvent) => {\n if (clickEvent) {\n setPopoverTarget(clickEvent.target as Element);\n setPopoverOpen(curr => !curr);\n }\n }}\n />\n {popoverTarget && (\n <Popover show={popoverOpen} target={popoverTarget} placement='bottom' portal>\n <CardContent>{fullname}</CardContent>\n </Popover>\n )}\n </>\n );\n\n return renderFeed ? (\n <Feed\n onMentionClick={onMentionClick}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[reply]}\n />\n ) : (\n reply\n );\n};\n\nexport const FeedReplyWithPresence = () => {\n return <FeedReplyDemo userStatus='active' />;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"FeedReply.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAmB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACL,IAAI,EACJ,SAAS,EAET,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5D,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,SAAS;CACb,CAAC;AAYV,MAAM,CAAC,MAAM,aAAa,GAA8B,CAAC,EACvD,QAAQ,GAAG,WAAW,EACtB,QAAQ,GAAG,WAAW,EACtB,OAAO,EACP,WAAW,EACX,aAAa,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EACpC,UAAU,EACV,UAAU,GAAG,IAAI,EACE,EAAE,EAAE;IACvB,MAAM,cAAc,GAAG,WAAW;QAChC,CAAC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AAM,qBAAqB,GAAU,GAAG,EAAE;IAC/C,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAG,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useCallback } from 'react';\n\nimport { Avatar, CardContent, Popover, SummaryListItem, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedReply,\n FeedReplyProps,\n HashtagButtonConfig,\n MentionButtonConfig\n} from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\n\nimport { generatedLikes, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedReply',\n component: FeedReply\n} as Meta;\n\ninterface FeedReplyDemoProps {\n fullname?: FeedReplyProps['info']['fullname'];\n username?: FeedReplyProps['info']['username'];\n content?: FeedReplyProps['info']['content'];\n attachments?: FeedReplyProps['info']['attachments'];\n postTimestamp?: FeedReplyProps['info']['postTimestamp'];\n userStatus?: FeedReplyProps['info']['userStatus'];\n renderFeed?: boolean;\n}\n\nexport const FeedReplyDemo: Story<FeedReplyDemoProps> = ({\n fullname = 'Demo User',\n username = 'demo_user',\n content,\n attachments,\n postTimestamp = new Date(2022, 0, 1),\n userStatus,\n renderFeed = true\n}: FeedReplyDemoProps) => {\n const defaultContent = attachments\n ? ''\n : 'This reply mentions @[deans]:[Seth DeAngelo]:[user]: and also contains a tag! #cosmos:';\n\n const key = useUID();\n const [likes, setLikes] = useState<SummaryListItem[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState(renderFeed ? generatedLikes.length : 0);\n const [replyContent, setReplyContent] = useState(content || defaultContent);\n const [edited, setEdited] = useState(false);\n const [editTimestamp, setEditTimestamp] = useState(new Date());\n const [popoverOpen, setPopoverOpen] = useState(false);\n const [popoverTarget, setPopoverTarget] = useState<Element>();\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes(renderFeed ? generatedLikes : []);\n };\n\n const [likesLoading, setLikesLoading] = useState(false);\n\n const generateNewLike = useCallback(() => {\n if (!likesLoading) {\n setLikesLoading(true);\n setTimeout(() => {\n setLikesLoading(false);\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was added after the onLoadMore callback triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n }\n }, [likesLoading]);\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const reply = (\n <>\n <FeedReply\n id={key}\n key={key}\n info={{\n postTimestamp,\n content: replyContent,\n attachments,\n username,\n fullname,\n fullnameLabel: `${fullname}'s Profile`,\n liked,\n userStatus\n }}\n interactionInfo={{\n likes,\n likeCount: likeCount >= 10 ? likeCount + 1 : likeCount,\n likeLabel: 'Like',\n commentLabel: 'Comment'\n }}\n maxContentHeight={40}\n menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => {} }]}\n onEditSubmit={({ value }) => {\n setReplyContent(value);\n setEdited(true);\n setEditTimestamp(new Date());\n }}\n edited={edited}\n editTimestamp={editTimestamp}\n onCommentClick={() => {}}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n likesLoading={likesLoading}\n onUserClick={(_, clickEvent) => {\n if (clickEvent) {\n setPopoverTarget(clickEvent.target as Element);\n setPopoverOpen(curr => !curr);\n }\n }}\n />\n {popoverTarget && (\n <Popover show={popoverOpen} target={popoverTarget} placement='bottom' portal>\n <CardContent>{fullname}</CardContent>\n </Popover>\n )}\n </>\n );\n\n return renderFeed ? (\n <Feed\n title='Pulse'\n onMentionClick={onMentionClick}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[reply]}\n />\n ) : (\n reply\n );\n};\n\nexport const FeedReplyWithPresence: Story = () => {\n return <FeedReplyDemo userStatus='active' />;\n};\n"]}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { FeedReplyInputProps, AttachedFiles } from '@pega/cosmos-react-social';
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { FeedReplyInputProps } from '@pega/cosmos-react-social';
|
|
4
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
4
|
export default _default;
|
|
6
|
-
|
|
7
|
-
onSubmit?:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
clear: () => void;
|
|
12
|
-
}) => void) | undefined;
|
|
13
|
-
renderFeed?: boolean | undefined;
|
|
14
|
-
}) => JSX.Element;
|
|
5
|
+
interface FeedReplyInputDemoProps {
|
|
6
|
+
onSubmit?: FeedReplyInputProps['onSubmit'];
|
|
7
|
+
renderFeed?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const FeedReplyInputDemo: Story<FeedReplyInputDemoProps>;
|
|
15
10
|
//# sourceMappingURL=FeedReplyInput.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedReplyInput.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeedReplyInput.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAGL,mBAAmB,EAEpB,MAAM,2BAA2B,CAAC;;AAKnC,wBAGU;AAEV,UAAU,uBAAuB;IAC/B,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,uBAAuB,CA0F7D,CAAC"}
|
|
@@ -19,12 +19,13 @@ export const FeedReplyInputDemo = ({ onSubmit, renderFeed = true }) => {
|
|
|
19
19
|
const searchWords = search.toLowerCase().split(' ');
|
|
20
20
|
return !!searchWords.every((word) => names.find((name) => name.startsWith(word)));
|
|
21
21
|
})
|
|
22
|
-
.map(({ id, primary, secondary, visual }) => {
|
|
22
|
+
.map(({ id, primary, secondary, visual, href }) => {
|
|
23
23
|
return {
|
|
24
24
|
id,
|
|
25
25
|
primary,
|
|
26
26
|
secondary,
|
|
27
|
-
visual
|
|
27
|
+
visual,
|
|
28
|
+
href
|
|
28
29
|
};
|
|
29
30
|
});
|
|
30
31
|
setSearchResults(mentions);
|
|
@@ -54,6 +55,6 @@ export const FeedReplyInputDemo = ({ onSubmit, renderFeed = true }) => {
|
|
|
54
55
|
setAttachments([]);
|
|
55
56
|
replyEvent.clear();
|
|
56
57
|
}}/>);
|
|
57
|
-
return renderFeed ? (<Feed searchTypes={['user', 'case']} onDecoratorSearch={onSearch} searchResults={searchResults} userInfo={{ username: 'demo_user', fullname: 'Demo User' }} posts={[replyInput]}/>) : (replyInput);
|
|
58
|
+
return renderFeed ? (<Feed title='Pulse' searchTypes={['user', 'case']} onDecoratorSearch={onSearch} searchResults={searchResults} userInfo={{ username: 'demo_user', fullname: 'Demo User' }} posts={[replyInput]}/>) : (replyInput);
|
|
58
59
|
};
|
|
59
60
|
//# sourceMappingURL=FeedReplyInput.stories.jsx.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedReplyInput.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAiB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,IAAI,EACJ,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,cAAc;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"FeedReplyInput.stories.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReplyInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAiB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,IAAI,EACJ,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAe;IACb,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,cAAc;CAClB,CAAC;AAOV,MAAM,CAAC,MAAM,kBAAkB,GAAmC,CAAC,EACjE,QAAQ,EACR,UAAU,GAAG,IAAI,EACO,EAAE,EAAE;IAC5B,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACxE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IAEpE,MAAM,QAAQ,GAAG,CAAC,EAChB,IAAI,EACJ,MAAM,EACN,WAAW,EAKZ,EAAE,EAAE;QACH,IAAI,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AAQ,EAAE,WAAW,EAAE,CAAC,CAC3D,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,EACpB,CACH,CAAC,CAAC,CAAC,CACF,UAAU,CACX,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { MenuItemProps, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedReplyInput,\n FeedReplyInputProps,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { caseMentions, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedReplyInput',\n component: FeedReplyInput\n} as Meta;\n\ninterface FeedReplyInputDemoProps {\n onSubmit?: FeedReplyInputProps['onSubmit'];\n renderFeed?: boolean;\n}\n\nexport const FeedReplyInputDemo: Story<FeedReplyInputDemoProps> = ({\n onSubmit,\n renderFeed = true\n}: FeedReplyInputDemoProps) => {\n const key = useUID();\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n const [attachments, setAttachments] = useState<AttachedFiles[]>([]);\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual, href }) => {\n return {\n id,\n primary,\n secondary,\n visual,\n href\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n file.onDelete = () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setAttachments(files);\n };\n\n const replyInput = (\n <FeedReplyInput\n id={key}\n commentLabel='Send Comment'\n attachments={attachments}\n placeholder='Add a comment'\n onFilesAdded={onFilesAdded}\n onSubmit={replyEvent => {\n onSubmit?.(replyEvent);\n setAttachments([]);\n replyEvent.clear();\n }}\n />\n );\n\n return renderFeed ? (\n <Feed\n title='Pulse'\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n posts={[replyInput]}\n />\n ) : (\n replyInput\n );\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldSummaryProps } from '@pega/cosmos-react-tools';
|
|
2
|
+
import { StandardTreeProps } from '@pega/cosmos-react-core';
|
|
3
|
+
export declare const allNodes: StandardTreeProps['nodes'];
|
|
4
|
+
export declare const childNodes: StandardTreeProps['nodes'];
|
|
5
|
+
export declare const getDetailsData: (id: string, cb?: (id: string) => void) => FieldSummaryProps | undefined;
|
|
6
|
+
//# sourceMappingURL=Clipboard.mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clipboard.mocks.d.ts","sourceRoot":"","sources":["../../../src/tools/Clipboard/Clipboard.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAyB,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEnF,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAsB/C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAajD,CAAC;AAUF,eAAO,MAAM,cAAc,EAAE,CAC3B,EAAE,EAAE,MAAM,EACV,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,KACtB,iBAAiB,GAAG,SA0CxB,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Actions, Button, Flex } from '@pega/cosmos-react-core';
|
|
2
|
+
export const allNodes = [
|
|
3
|
+
{
|
|
4
|
+
id: 'dataPage',
|
|
5
|
+
label: 'Data Pages',
|
|
6
|
+
nodes: [
|
|
7
|
+
{
|
|
8
|
+
id: 'D_pzPreferenceStore',
|
|
9
|
+
label: 'D_pzPreferenceStore',
|
|
10
|
+
nodes: []
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 'D_creditScore',
|
|
14
|
+
label: 'D_Credit Score',
|
|
15
|
+
nodes: []
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'systemPage',
|
|
21
|
+
label: 'System Pages',
|
|
22
|
+
nodes: []
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
export const childNodes = [
|
|
26
|
+
{
|
|
27
|
+
id: 'pxDPParameters',
|
|
28
|
+
label: 'pxDPParameters'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'pyDevicePreviewSettings',
|
|
32
|
+
label: 'pyDevicePreviewSettings'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'pySourcePage',
|
|
36
|
+
label: 'pySourcePage'
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
const primaryData = [
|
|
40
|
+
{ id: 'field1', name: 'pxCommitDateTime', value: '20220303T121437.913 GMT' },
|
|
41
|
+
{ id: 'field2', name: 'pxInsName', value: 'John.smith' },
|
|
42
|
+
{ id: 'field3', name: 'pxObjClass', value: 'Data-Preference-Operator' },
|
|
43
|
+
{ id: 'field4', name: 'pzInsKey', value: 'DATA-PREFERENCE-OPERATOR JOHN SMITH' }
|
|
44
|
+
];
|
|
45
|
+
export const getDetailsData = (id, cb) => {
|
|
46
|
+
const embeddedData = [
|
|
47
|
+
{ id: 'pxDPParameters', name: 'pxDPParameters', onClick: cb },
|
|
48
|
+
{ id: 'pyDevicePreviewSettings', name: 'pyDevicePreviewSettings', onClick: cb },
|
|
49
|
+
{ id: 'pySourcePage', name: 'pySourcePage', onClick: cb }
|
|
50
|
+
];
|
|
51
|
+
const response = {
|
|
52
|
+
primary: id,
|
|
53
|
+
secondary: [
|
|
54
|
+
{ id: '1', name: 'ID', value: 'InterestRate' },
|
|
55
|
+
{ id: '2', name: 'Rule type', value: 'Field' },
|
|
56
|
+
{
|
|
57
|
+
id: '3',
|
|
58
|
+
name: 'Scope',
|
|
59
|
+
value: 'O1XPTI-CCompass-Work-MortgageRequest'
|
|
60
|
+
},
|
|
61
|
+
{ id: '4', name: 'Application', value: 'XCompass' }
|
|
62
|
+
],
|
|
63
|
+
actions: (<Flex container>
|
|
64
|
+
<Button aria-label={`${id}-Secondary action`} variant='secondary'>
|
|
65
|
+
Secondary action
|
|
66
|
+
</Button>
|
|
67
|
+
<Button aria-label={`${id}-Primary action`} variant='primary'>
|
|
68
|
+
Primary action
|
|
69
|
+
</Button>
|
|
70
|
+
<Actions menuAt={1} items={[
|
|
71
|
+
{
|
|
72
|
+
id: '1',
|
|
73
|
+
text: 'Secondary action 2'
|
|
74
|
+
}
|
|
75
|
+
]}/>
|
|
76
|
+
</Flex>),
|
|
77
|
+
fields: id === 'D_pzPreferenceStore' ? [...primaryData, ...embeddedData] : primaryData
|
|
78
|
+
};
|
|
79
|
+
return id === 'systemPage' || id === 'dataPage' ? undefined : response;
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=Clipboard.mocks.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clipboard.mocks.jsx","sourceRoot":"","sources":["../../../src/tools/Clipboard/Clipboard.mocks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAqB,MAAM,yBAAyB,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K,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AACzE,CAAC,CAAC","sourcesContent":["import { FieldSummaryProps } from '@pega/cosmos-react-tools';\nimport { Actions, Button, Flex, StandardTreeProps } from '@pega/cosmos-react-core';\n\nexport const allNodes: StandardTreeProps['nodes'] = [\n {\n id: 'dataPage',\n label: 'Data Pages',\n nodes: [\n {\n id: 'D_pzPreferenceStore',\n label: 'D_pzPreferenceStore',\n nodes: []\n },\n {\n id: 'D_creditScore',\n label: 'D_Credit Score',\n nodes: []\n }\n ]\n },\n {\n id: 'systemPage',\n label: 'System Pages',\n nodes: []\n }\n];\n\nexport const childNodes: StandardTreeProps['nodes'] = [\n {\n id: 'pxDPParameters',\n label: 'pxDPParameters'\n },\n {\n id: 'pyDevicePreviewSettings',\n label: 'pyDevicePreviewSettings'\n },\n {\n id: 'pySourcePage',\n label: 'pySourcePage'\n }\n];\n\nconst primaryData = [\n { id: 'field1', name: 'pxCommitDateTime', value: '20220303T121437.913 GMT' },\n { id: 'field2', name: 'pxInsName', value: 'John.smith' },\n { id: 'field3', name: 'pxObjClass', value: 'Data-Preference-Operator' },\n { id: 'field4', name: 'pzInsKey', value: 'DATA-PREFERENCE-OPERATOR JOHN SMITH' }\n];\n\n// cSpell:words XPTI\nexport const getDetailsData: (\n id: string,\n cb?: (id: string) => void\n) => FieldSummaryProps | undefined = (id, cb) => {\n const embeddedData = [\n { id: 'pxDPParameters', name: 'pxDPParameters', onClick: cb },\n { id: 'pyDevicePreviewSettings', name: 'pyDevicePreviewSettings', onClick: cb },\n { id: 'pySourcePage', name: 'pySourcePage', onClick: cb }\n ];\n\n const response = {\n primary: id,\n secondary: [\n { id: '1', name: 'ID', value: 'InterestRate' },\n { id: '2', name: 'Rule type', value: 'Field' },\n {\n id: '3',\n name: 'Scope',\n value: 'O1XPTI-CCompass-Work-MortgageRequest'\n },\n { id: '4', name: 'Application', value: 'XCompass' }\n ],\n actions: (\n <Flex container>\n <Button aria-label={`${id}-Secondary action`} variant='secondary'>\n Secondary action\n </Button>\n <Button aria-label={`${id}-Primary action`} variant='primary'>\n Primary action\n </Button>\n <Actions\n menuAt={1}\n items={[\n {\n id: '1',\n text: 'Secondary action 2'\n }\n ]}\n />\n </Flex>\n ),\n fields: id === 'D_pzPreferenceStore' ? [...primaryData, ...embeddedData] : primaryData\n };\n\n return id === 'systemPage' || id === 'dataPage' ? undefined : response;\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { ClipboardProps } from '@pega/cosmos-react-tools';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ClipboardViewerDemo: Story<ClipboardProps>;
|
|
6
|
+
//# sourceMappingURL=Clipboard.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clipboard.stories.d.ts","sourceRoot":"","sources":["../../../src/tools/Clipboard/Clipboard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAa,cAAc,EAAqB,MAAM,0BAA0B,CAAC;;AAKxF,wBAMU;AAEV,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,cAAc,CAuFrD,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { Clipboard } from '@pega/cosmos-react-tools';
|
|
3
|
+
import { treeHelpers } from '@pega/cosmos-react-core';
|
|
4
|
+
import { allNodes, childNodes, getDetailsData } from './Clipboard.mocks';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Tools/Clipboard',
|
|
7
|
+
component: Clipboard,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'fullscreen'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export const ClipboardViewerDemo = () => {
|
|
13
|
+
const [nodes, setNodes] = useState(allNodes);
|
|
14
|
+
const [currentNodeId, setCurrentNodeId] = useState(allNodes[0].id);
|
|
15
|
+
const [pageDetails, setPageDetails] = useState();
|
|
16
|
+
const timeouts = [];
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
return () => {
|
|
19
|
+
timeouts.forEach((timeout) => {
|
|
20
|
+
clearTimeout(timeout);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
}, []);
|
|
24
|
+
const updatePageDetails = (id, cb) => {
|
|
25
|
+
setPageDetails({ primary: '', fields: [], loading: true });
|
|
26
|
+
const response = getDetailsData(id, cb);
|
|
27
|
+
timeouts.push(setTimeout(() => setPageDetails(response), 1300));
|
|
28
|
+
};
|
|
29
|
+
const updateActiveParentNode = (id) => {
|
|
30
|
+
setNodes(tree => treeHelpers.mapNode(tree, id, node => {
|
|
31
|
+
return {
|
|
32
|
+
...node,
|
|
33
|
+
expanded: !node.expanded,
|
|
34
|
+
loading: node.nodes?.length === 0
|
|
35
|
+
};
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
const loadChildNodes = (id) => {
|
|
39
|
+
timeouts.push(setTimeout(() => {
|
|
40
|
+
setNodes(tree => treeHelpers.mapNode(tree, id, node => node.nodes?.length === 0
|
|
41
|
+
? {
|
|
42
|
+
...node,
|
|
43
|
+
loading: false,
|
|
44
|
+
nodes: id === 'D_pzPreferenceStore' ? childNodes : undefined
|
|
45
|
+
}
|
|
46
|
+
: node));
|
|
47
|
+
}, 1000));
|
|
48
|
+
};
|
|
49
|
+
const onNodeClick = (nodeId, e) => {
|
|
50
|
+
const node = treeHelpers.getNode(nodes, nodeId);
|
|
51
|
+
setCurrentNodeId(nodeId);
|
|
52
|
+
if (node?.nodes && node?.nodes?.length >= 0) {
|
|
53
|
+
updateActiveParentNode(nodeId);
|
|
54
|
+
}
|
|
55
|
+
loadChildNodes(nodeId);
|
|
56
|
+
if (['ArrowRight', 'ArrowLeft'].includes(e.key))
|
|
57
|
+
return;
|
|
58
|
+
updatePageDetails(nodeId, id => {
|
|
59
|
+
onNodeClick(id, e);
|
|
60
|
+
setNodes(tree => treeHelpers.expandTo(tree, nodeId));
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
return (<Clipboard navigation={{
|
|
64
|
+
nodes,
|
|
65
|
+
currentNodeId,
|
|
66
|
+
onNodeClick
|
|
67
|
+
}} content={pageDetails} lastUpdated='Last updated: Less than a minute ago'/>);
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=Clipboard.stories.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clipboard.stories.jsx","sourceRoot":"","sources":["../../../src/tools/Clipboard/Clipboard.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEzE,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAEV,MAAM,CAAC,MAAM,mBAAmB,GAA0B,GAAG,EAAE;IAC7D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACnE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAiC,CAAC;IAChF,MAAM,QAAQ,GAAoC,EAAE,CAAC;IAErD,SAAS,CAAC,GAAG,EAAE;QAC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E,KAAK;oBACd,KAAK,EAAE,EAAE,KAAK,qBAAqB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;iBAC7D;gBACH,CAAC,CAAC,IAAI,CACT,CACF,CAAC;QACJ,CAAC,EAAE,IAAI,CAAC,CACT,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,CAAuD,EAAE,EAAE;QAE9F,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAChD,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAGzB,IAAI,IAAI,EAAE,KAAK,IAAI,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC,EAAE;YAC3C,sBAAsB,CAAC,MAAM,CAAC,CAAC;SAChC;QAGD,cAAc,CAAC,MAAM,CAAC,CAAC;QAGvB,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAE,CAAmB,CAAC,GAAG,CAAC;YAAE,OAAO;QAG3E,iBAAiB,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;YAC7B,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YACnB,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,SAAS,CACR,UAAU,CAAC,CAAC;YACV,KAAK;YACL,aAAa;YACb,WAAW;SACZ,CAAC,CACF,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,WAAW,CAAC,sCAAsC,EAClD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Story, Meta } from '@storybook/react';\nimport { useState, MouseEvent, KeyboardEvent, useEffect } from 'react';\n\nimport { Clipboard, ClipboardProps, FieldSummaryProps } from '@pega/cosmos-react-tools';\nimport { treeHelpers } from '@pega/cosmos-react-core';\n\nimport { allNodes, childNodes, getDetailsData } from './Clipboard.mocks';\n\nexport default {\n title: 'Tools/Clipboard',\n component: Clipboard,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport const ClipboardViewerDemo: Story<ClipboardProps> = () => {\n const [nodes, setNodes] = useState(allNodes);\n const [currentNodeId, setCurrentNodeId] = useState(allNodes[0].id);\n const [pageDetails, setPageDetails] = useState<FieldSummaryProps | undefined>();\n const timeouts: ReturnType<typeof setTimeout>[] = [];\n\n useEffect(() => {\n return () => {\n timeouts.forEach((timeout: ReturnType<typeof setTimeout>) => {\n clearTimeout(timeout);\n });\n };\n }, []);\n\n // Update main content based on id\n const updatePageDetails = (id: string, cb?: (id: string) => void) => {\n setPageDetails({ primary: '', fields: [], loading: true });\n const response = getDetailsData(id, cb);\n timeouts.push(setTimeout(() => setPageDetails(response), 1300));\n };\n\n // set loading and expanded to selected node if it is a parent\n const updateActiveParentNode = (id: string) => {\n setNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n expanded: !node.expanded,\n loading: node.nodes?.length === 0\n };\n })\n );\n };\n\n // get child nodes for the parent and set loading to false\n const loadChildNodes = (id: string) => {\n timeouts.push(\n setTimeout(() => {\n setNodes(tree =>\n treeHelpers.mapNode(tree, id, node =>\n node.nodes?.length === 0\n ? {\n ...node,\n loading: false,\n nodes: id === 'D_pzPreferenceStore' ? childNodes : undefined\n }\n : node\n )\n );\n }, 1000)\n );\n };\n\n const onNodeClick = (nodeId: string, e: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => {\n // get clicked node details and set it as active\n const node = treeHelpers.getNode(nodes, nodeId);\n setCurrentNodeId(nodeId);\n\n // expand node if it is a parent and shows loading indicator for child\n if (node?.nodes && node?.nodes?.length >= 0) {\n updateActiveParentNode(nodeId);\n }\n\n // get child nodes and set new nodes to state\n loadChildNodes(nodeId);\n\n // Do not change maincontent if tree is navigated using arrow buttons\n if (['ArrowRight', 'ArrowLeft'].includes((e as KeyboardEvent).key)) return;\n\n // set main content based on active node\n updatePageDetails(nodeId, id => {\n onNodeClick(id, e);\n setNodes(tree => treeHelpers.expandTo(tree, nodeId));\n });\n };\n\n return (\n <Clipboard\n navigation={{\n nodes,\n currentNodeId,\n onNodeClick\n }}\n content={pageDetails}\n lastUpdated='Last updated: Less than a minute ago'\n />\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevTools.mocks.d.ts","sourceRoot":"","sources":["../../../src/tools/DevTools/DevTools.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,cAAc,EACf,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,cAAc,EAAE,CAAC"}
|