@pega/cosmos-react-demos 3.0.0-dev.1.0 → 3.0.0-dev.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.jsx +6 -1
- 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 +8 -0
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +110 -28
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +159 -154
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +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 +106 -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 +46 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +335 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +169 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +99 -277
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +14 -27
- package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +59 -56
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +17 -2
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +6 -0
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +28 -2
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts +5 -0
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.jsx +27 -2
- package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
- package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
- package/jsx/core/Badges/Selection.stories.d.ts +2 -3
- package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
- package/jsx/core/Badges/Status.stories.d.ts +5 -0
- package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Status.stories.jsx +25 -1
- package/jsx/core/Badges/Status.stories.jsx.map +1 -1
- package/jsx/core/Badges/Tag.stories.d.ts +2 -3
- package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +12 -19
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +24 -3
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
- package/jsx/core/Button/Button.stories.d.ts +10 -3
- package/jsx/core/Button/Button.stories.d.ts.map +1 -1
- package/jsx/core/Button/Button.stories.jsx +36 -7
- package/jsx/core/Button/Button.stories.jsx.map +1 -1
- package/jsx/core/Card/Card.stories.d.ts +6 -2
- package/jsx/core/Card/Card.stories.d.ts.map +1 -1
- package/jsx/core/Card/Card.stories.jsx +30 -1
- package/jsx/core/Card/Card.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +12 -0
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +54 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
- package/jsx/core/Configuration/Configuration.stories.d.ts +19 -3
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.stories.jsx +96 -21
- package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
- package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
- package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.styles.js +12 -0
- package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +11 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx +45 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
- package/jsx/core/Currency/Currency.stories.d.ts +7 -4
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx +30 -12
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +2 -1
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx +16 -38
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
- package/jsx/core/File/FileInput.stories.jsx +1 -1
- package/jsx/core/File/FileInput.stories.jsx.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.jsx +2 -2
- package/jsx/core/Form/Form.mocks.jsx.map +1 -1
- package/jsx/core/Form/Form.stories.d.ts +10 -0
- package/jsx/core/Form/Form.stories.d.ts.map +1 -1
- package/jsx/core/Form/Form.stories.jsx +42 -2
- package/jsx/core/Form/Form.stories.jsx.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +1 -2
- package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
- package/jsx/core/HTML/HTML.stories.d.ts +6 -0
- package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
- package/jsx/core/HTML/HTML.stories.jsx +13 -0
- package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
- package/jsx/core/Icon/Icon.stories.d.ts +5 -6
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +5 -27
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/Icon/Icon.styles.d.ts +4 -0
- package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
- package/jsx/core/Icon/Icon.styles.js +25 -0
- package/jsx/core/Icon/Icon.styles.js.map +1 -0
- package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
- package/jsx/core/Image/Image.stories.d.ts +2 -3
- package/jsx/core/Image/Image.stories.d.ts.map +1 -1
- package/jsx/core/Image/Image.stories.jsx.map +1 -1
- package/jsx/core/Input/Input.stories.d.ts +9 -0
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx +40 -1
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Label/Label.stories.d.ts +4 -0
- package/jsx/core/Label/Label.stories.d.ts.map +1 -1
- package/jsx/core/Label/Label.stories.jsx +18 -1
- package/jsx/core/Label/Label.stories.jsx.map +1 -1
- package/jsx/core/Link/Link.stories.d.ts +1 -11
- package/jsx/core/Link/Link.stories.d.ts.map +1 -1
- package/jsx/core/Link/Link.stories.jsx.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +87 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.mocks.jsx +3 -3
- package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +10 -5
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx +34 -43
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStep/MultiStep.stories.d.ts +2 -3
- package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
- package/jsx/core/MultiStep/MultiStep.stories.jsx.map +1 -1
- package/jsx/core/Number/Number.stories.d.ts +10 -6
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx +38 -19
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx +3 -1
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/Progress/Progress.stories.d.ts +4 -0
- package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
- package/jsx/core/Progress/Progress.stories.jsx +22 -1
- package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +12 -0
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +53 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/Rating/Rating.stories.d.ts +4 -0
- package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
- package/jsx/core/Rating/Rating.stories.jsx +18 -1
- package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -0
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +30 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts +8 -0
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx +35 -1
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/Sentiment/Sentiment.stories.d.ts +6 -0
- package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
- package/jsx/core/Sentiment/Sentiment.stories.jsx +32 -1
- package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
- package/jsx/core/Slider/Slider.stories.d.ts +4 -3
- package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.jsx +1 -1
- package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
- package/jsx/core/Switch/Switch.stories.d.ts +7 -0
- package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
- package/jsx/core/Switch/Switch.stories.jsx +34 -1
- package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
- package/jsx/core/Table/Table.mocks.d.ts +6 -0
- package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
- package/jsx/core/Table/Table.mocks.jsx +134 -0
- package/jsx/core/Table/Table.mocks.jsx.map +1 -1
- package/jsx/core/Table/Table.stories.d.ts +25 -0
- package/jsx/core/Table/Table.stories.d.ts.map +1 -1
- package/jsx/core/Table/Table.stories.jsx +120 -1
- package/jsx/core/Table/Table.stories.jsx.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +10 -2
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +39 -1
- package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
- package/jsx/core/Text/Text.stories.d.ts +19 -0
- package/jsx/core/Text/Text.stories.d.ts.map +1 -1
- package/jsx/core/Text/Text.stories.jsx +112 -1
- package/jsx/core/Text/Text.stories.jsx.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +5 -0
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +22 -1
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
- package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +8 -6
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx +28 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts +1 -2
- package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.jsx +2 -2
- package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
- package/jsx/cs/Article/Article.stories.d.ts +4 -13
- package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
- package/jsx/cs/Article/Article.stories.jsx.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx +2 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +15 -42
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
- package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +20 -5
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +11 -11
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +7 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +6 -5
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +26 -30
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
- package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
- package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx +3 -21
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +18 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +6 -7
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +7 -5
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
- package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
- package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.styles.js +22 -0
- package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
- package/jsx/social/Email/Email.mocks.d.ts +172 -2
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +766 -0
- package/jsx/social/Email/Email.mocks.jsx.map +1 -0
- package/jsx/social/Email/Email.stories.d.ts +19 -25
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +156 -418
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.styles.d.ts +4 -0
- package/jsx/social/Email/Email.styles.d.ts.map +1 -0
- package/jsx/social/Email/Email.styles.js +14 -0
- package/jsx/social/Email/Email.styles.js.map +1 -0
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +6 -11
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +24 -19
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
- package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
- package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +7 -7
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Details.mocks.jsx +1 -1
- package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +3 -175
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +3 -3
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +21 -16
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
- package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/lib/build/AppHeader/AppHeader.stories.js +7 -2
- 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 +8 -0
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
- package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
- package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +81 -27
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +8 -10
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +147 -138
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +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 +106 -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 +46 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +308 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +151 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/lib/build/Workbench/Workbench.stories.js +26 -39
- package/lib/build/Workbench/Workbench.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +59 -57
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js +17 -2
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/core/AppShell/AppShell.mocks.js +5 -5
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +6 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js +33 -9
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Avatar/Avatar.stories.d.ts +5 -0
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js +30 -7
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Backdrop/Backdrop.stories.js +2 -2
- package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
- package/lib/core/Badges/Alert.stories.js +1 -1
- package/lib/core/Badges/Alert.stories.js.map +1 -1
- package/lib/core/Badges/Count.stories.js +1 -1
- package/lib/core/Badges/Count.stories.js.map +1 -1
- package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
- package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/lib/core/Badges/Keyboard.stories.js +16 -0
- package/lib/core/Badges/Keyboard.stories.js.map +1 -0
- package/lib/core/Badges/Selection.stories.d.ts +2 -3
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
- package/lib/core/Badges/Selection.stories.js +1 -1
- package/lib/core/Badges/Selection.stories.js.map +1 -1
- package/lib/core/Badges/Status.stories.d.ts +5 -0
- package/lib/core/Badges/Status.stories.d.ts.map +1 -1
- package/lib/core/Badges/Status.stories.js +24 -2
- package/lib/core/Badges/Status.stories.js.map +1 -1
- package/lib/core/Badges/Tag.stories.d.ts +2 -3
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
- package/lib/core/Badges/Tag.stories.js +1 -1
- package/lib/core/Badges/Tag.stories.js.map +1 -1
- package/lib/core/Banner/Banner.mocks.js +1 -1
- package/lib/core/Banner/Banner.mocks.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +12 -19
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +30 -13
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/Button/Button.stories.d.ts +10 -3
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.js +35 -8
- package/lib/core/Button/Button.stories.js.map +1 -1
- package/lib/core/Card/Card.stories.d.ts +6 -2
- package/lib/core/Card/Card.stories.d.ts.map +1 -1
- package/lib/core/Card/Card.stories.js +22 -4
- package/lib/core/Card/Card.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +12 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js +54 -3
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +3 -3
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -2
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
- package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.js +6 -6
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.mocks.js +6 -0
- package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
- package/lib/core/Configuration/Configuration.stories.d.ts +19 -3
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.stories.js +71 -24
- package/lib/core/Configuration/Configuration.stories.js.map +1 -1
- package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
- package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.styles.js +12 -0
- package/lib/core/Configuration/Configuration.styles.js.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts +11 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.js +46 -0
- package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
- package/lib/core/Currency/Currency.stories.d.ts +7 -4
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.js +32 -14
- package/lib/core/Currency/Currency.stories.js.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js +12 -10
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
- package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
- package/lib/core/Drawer/Drawer.stories.js +4 -4
- package/lib/core/Drawer/Drawer.stories.js.map +1 -1
- package/lib/core/Email/EmailDisplay.stories.js +1 -1
- package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
- package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
- package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
- package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
- package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js +25 -37
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/File/FileInput.stories.d.ts.map +1 -1
- package/lib/core/File/FileInput.stories.js +3 -3
- package/lib/core/File/FileInput.stories.js.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.js +7 -7
- package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
- package/lib/core/Flex/FlexItem.stories.js +3 -3
- package/lib/core/Flex/FlexItem.stories.js.map +1 -1
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js +5 -5
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/Form/Form.stories.d.ts +10 -0
- package/lib/core/Form/Form.stories.d.ts.map +1 -1
- package/lib/core/Form/Form.stories.js +47 -9
- package/lib/core/Form/Form.stories.js.map +1 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridContainer.stories.js +9 -9
- package/lib/core/Grid/GridContainer.stories.js.map +1 -1
- package/lib/core/Grid/GridItem.stories.d.ts +1 -2
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridItem.stories.js +3 -3
- package/lib/core/Grid/GridItem.stories.js.map +1 -1
- package/lib/core/HTML/HTML.stories.d.ts +6 -0
- package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
- package/lib/core/HTML/HTML.stories.js +14 -0
- package/lib/core/HTML/HTML.stories.js.map +1 -0
- package/lib/core/Icon/Icon.mocks.js +1 -1
- package/lib/core/Icon/Icon.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +5 -6
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +12 -35
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/Icon/Icon.styles.d.ts +4 -0
- package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
- package/lib/core/Icon/Icon.styles.js +25 -0
- package/lib/core/Icon/Icon.styles.js.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.js +2 -2
- package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
- package/lib/core/Image/Image.stories.d.ts +2 -3
- package/lib/core/Image/Image.stories.d.ts.map +1 -1
- package/lib/core/Image/Image.stories.js +1 -1
- package/lib/core/Image/Image.stories.js.map +1 -1
- package/lib/core/Input/Input.stories.d.ts +9 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js +39 -2
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Label/Label.stories.d.ts +4 -0
- package/lib/core/Label/Label.stories.d.ts.map +1 -1
- package/lib/core/Label/Label.stories.js +17 -2
- package/lib/core/Label/Label.stories.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js +3 -3
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/Link/Link.stories.d.ts +1 -11
- package/lib/core/Link/Link.stories.d.ts.map +1 -1
- package/lib/core/Link/Link.stories.js +3 -3
- package/lib/core/Link/Link.stories.js.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
- package/lib/core/List/OrderedList.stories.js +1 -1
- package/lib/core/List/OrderedList.stories.js.map +1 -1
- package/lib/core/List/UnorderedList.stories.js +1 -1
- package/lib/core/List/UnorderedList.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +6 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js +79 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
- package/lib/core/Location/Location.stories.js +4 -4
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Menu/Menu.stories.js +5 -5
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.js +9 -9
- package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
- package/lib/core/MetaList/MetaList.stories.js +3 -3
- package/lib/core/MetaList/MetaList.stories.js.map +1 -1
- package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/lib/core/Modal/Modal.mocks.js +11 -11
- package/lib/core/Modal/Modal.mocks.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +10 -5
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js +40 -35
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStep/MultiStep.stories.d.ts +2 -3
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -1
- package/lib/core/MultiStep/MultiStep.stories.js +3 -3
- package/lib/core/MultiStep/MultiStep.stories.js.map +1 -1
- package/lib/core/Number/Number.stories.d.ts +10 -6
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js +41 -22
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/lib/core/Pagination/Pagination.stories.js +1 -1
- package/lib/core/Pagination/Pagination.stories.js.map +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.js +4 -2
- package/lib/core/Phone/Phone.stories.js.map +1 -1
- package/lib/core/Popover/Popover.stories.d.ts +1 -1
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.js +2 -2
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/Progress/Progress.stories.d.ts +4 -0
- package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
- package/lib/core/Progress/Progress.stories.js +20 -3
- package/lib/core/Progress/Progress.stories.js.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +12 -0
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js +53 -3
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +3 -3
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/Rating/Rating.stories.d.ts +4 -0
- package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
- package/lib/core/Rating/Rating.stories.js +17 -2
- package/lib/core/Rating/Rating.stories.js.map +1 -1
- package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
- package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.js +30 -1
- package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts +8 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js +29 -2
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.d.ts +6 -0
- package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.js +30 -3
- package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
- package/lib/core/Slider/Slider.stories.d.ts +4 -3
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.js +2 -2
- package/lib/core/Slider/Slider.stories.js.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
- package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
- package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.js +5 -5
- package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
- package/lib/core/Switch/Switch.stories.d.ts +7 -0
- package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
- package/lib/core/Switch/Switch.stories.js +34 -3
- package/lib/core/Switch/Switch.stories.js.map +1 -1
- package/lib/core/Table/Table.mocks.d.ts +6 -0
- package/lib/core/Table/Table.mocks.d.ts.map +1 -1
- package/lib/core/Table/Table.mocks.js +135 -1
- package/lib/core/Table/Table.mocks.js.map +1 -1
- package/lib/core/Table/Table.stories.d.ts +25 -0
- package/lib/core/Table/Table.stories.d.ts.map +1 -1
- package/lib/core/Table/Table.stories.js +118 -6
- package/lib/core/Table/Table.stories.js.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +10 -2
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.js +32 -3
- package/lib/core/Tabs/Tabs.stories.js.map +1 -1
- package/lib/core/Text/Text.stories.d.ts +19 -0
- package/lib/core/Text/Text.stories.d.ts.map +1 -1
- package/lib/core/Text/Text.stories.js +103 -3
- package/lib/core/Text/Text.stories.js.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +5 -0
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.js +21 -2
- package/lib/core/TextArea/TextArea.stories.js.map +1 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/lib/core/Toaster/Toaster.stories.js +15 -19
- package/lib/core/Toaster/Toaster.stories.js.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -6
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.js +21 -2
- package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/lib/core/Tree/Tree.stories.d.ts +1 -2
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.js +5 -5
- package/lib/core/Tree/Tree.stories.js.map +1 -1
- package/lib/core/URL/URL.stories.js +1 -1
- package/lib/core/URL/URL.stories.js.map +1 -1
- package/lib/cs/Article/Article.stories.d.ts +4 -13
- package/lib/cs/Article/Article.stories.d.ts.map +1 -1
- package/lib/cs/Article/Article.stories.js +9 -9
- package/lib/cs/Article/Article.stories.js.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
- package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +3 -37
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.js +24 -37
- package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +3 -2
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +22 -7
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
- package/lib/cs/DialPad/DialPad.stories.js +1 -1
- package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +26 -26
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +7 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +6 -5
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +34 -38
- package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
- package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
- package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/lib/rte/Editor/Editor.mocks.js +26 -0
- package/lib/rte/Editor/Editor.mocks.js.map +1 -0
- package/lib/rte/Editor/Editor.stories.d.ts +7 -8
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js +8 -28
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +6 -7
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +31 -31
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.mocks.js +11 -0
- package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/lib/social/Chat/RepeatingView.stories.js +18 -48
- package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.styles.js +22 -0
- package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
- package/lib/social/Email/Email.mocks.d.ts +172 -2
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +420 -1
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +19 -25
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +148 -440
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Email/Email.styles.d.ts +4 -0
- package/lib/social/Email/Email.styles.d.ts.map +1 -0
- package/lib/social/Email/Email.styles.js +14 -0
- package/lib/social/Email/Email.styles.js.map +1 -0
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +40 -40
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +6 -11
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +30 -25
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.js +2 -2
- package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.stories.js +37 -27
- package/lib/social/Feed/FeedPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.stories.js +25 -20
- package/lib/social/Feed/FeedReply.stories.js.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
- package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js +15 -15
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +8 -8
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +28 -28
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Details.mocks.js +2 -2
- package/lib/work/CaseView/Details.mocks.js.map +1 -1
- package/lib/work/CaseView/FileService.mock.js +1 -1
- package/lib/work/CaseView/FileService.mock.js.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.js +3 -3
- package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +5 -175
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js +4 -4
- package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +56 -53
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.js +3 -3
- package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
- package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js +12 -12
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.stories.js +2 -2
- package/lib/work/Stages/Stages.stories.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Tags/Tags.stories.js +1 -1
- package/lib/work/Tags/Tags.stories.js.map +1 -1
- package/lib/work/Tasks/TaskList.stories.js +3 -3
- package/lib/work/Tasks/TaskList.stories.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +11 -11
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.js +8 -8
- package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.stories.js +24 -3
- package/lib/work/Timeline/Timeline.stories.js.map +1 -1
- package/package.json +22 -18
- package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
- package/jsx/social/Email/Email.mocks.js +0 -348
- package/jsx/social/Email/Email.mocks.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageTemplates.mocks.jsx","sourceRoot":"","sources":["../../../src/build/PageTemplates/PageTemplates.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EACV,MAAM,EACN,UAAU,EACV,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAQ,EACR,cAAc,EACd,IAAI,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W,CAAC,cAAc,CAAC,CAAC;iBAC7B;YACH,CAAC;YACD,KAAK,EAAE;gBACL;oBACE,KAAK,EAAE,cAAc;oBACrB,EAAE,EAAE,UAAU;iBACf;gBACD;oBACE,KAAK,EAAE,UAAU;oBACjB,EAAE,EAAE,UAAU;iBACf;gBACD;oBACE,KAAK,EAAE,SAAS;oBAChB,EAAE,EAAE,SAAS;iBACd;aACF;YACD,MAAM,EAAE;gBACN,aAAa,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC;aAC3C;SACF,CAAC,EAEN;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n FormEvent,\n ChangeEvent,\n FocusEvent,\n useReducer,\n useRef,\n useContext,\n useState\n} from 'react';\nimport styled from 'styled-components';\n\nimport {\n Button,\n Flex,\n Form,\n Input,\n CheckboxGroup,\n RadioButtonGroup,\n RadioButton,\n Checkbox,\n Select,\n Option,\n TextArea,\n ToasterContext,\n Text,\n FormControlProps,\n useTheme,\n BuildTheme,\n Configuration,\n StandardTree,\n StandardTreeProps,\n treeHelpers\n} from '@pega/cosmos-react-core';\nimport { RichTextEditor, RichTextEditorState } from '@pega/cosmos-react-rte';\nimport { AppShell, AppShellProps } from '@pega/cosmos-react-build';\n\nimport { FileInputDemo } from '../../core/File/FileInput.stories';\nimport { dataPages, ObjectSelectComp } from '../ObjectSelect/ObjectSelect.mocks';\nimport {\n treeList,\n recordMenuList,\n appExplorerMenuList,\n branchesMenuList\n} from '../AppShell/AppShell.mocks';\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\nexport interface AppShellStory {\n main?: AppShellProps['main'];\n hideNavigation?: boolean;\n}\n\n// Get initial field properties\nexport const initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter first and last name',\n validator() {\n if (!this.value) return false;\n return /^[a-z]+\\s[a-z]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'email',\n required: true,\n error: 'Enter a @pega.com address',\n validator() {\n if (!this.value) return false;\n return /^\\S+@pega\\.com$/.test(this.value);\n }\n },\n {\n ...common,\n name: 'notes',\n required: true,\n help: 'See how fast you can type 20 characters go',\n error: 'You need to tell us more than 20 characters',\n validator() {\n if (!this.value) return false;\n return this.value.length >= 20;\n }\n }\n ];\n};\n\n// Handles setting of state for all fields\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const OneColumnForm = (props: any) => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useContext(ToasterContext);\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Form\n actions={actions}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ maxWidth: '37.5rem' }}\n >\n <Text variant='h4' as='h4'>\n Demo Form\n </Text>\n <Flex container={{ direction: 'column', gap: 2 }} item={{ grow: 1 }}>\n <Input\n name='name'\n label='Name'\n value={name.value}\n required={name.required}\n status={name.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n autoComplete='off'\n />\n\n <Input\n name='email'\n value={email.value}\n type='email'\n label='Email'\n required={email.required}\n status={email.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n autoComplete='off'\n />\n\n <CheckboxGroup name='visited' label='Places you have worked'>\n {['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (\n <Checkbox\n key={office}\n label={office}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </CheckboxGroup>\n\n <RadioButtonGroup name='meetings' label='Do you enjoy early morning meetings?'>\n {['Yes', \"No...no I don't\"].map(option => (\n <RadioButton\n key={option}\n label={option}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </RadioButtonGroup>\n\n <Select label='What would you like to eat?' info='FYI: options are limited'>\n <Option>choose meal...</Option>\n <Option>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <ObjectSelectComp\n label='Date page'\n info='Choose a when condition from list'\n items={dataPages}\n onChange={() => {}}\n onPreview={() => props.previewCallback()}\n />\n\n <TextArea\n name='notes'\n required={notes.required}\n label='Meeting Notes'\n status={notes.status}\n info={notes.info || notes.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n />\n <RichTextEditor\n label='Detailed meeting notes'\n info='The rich text editor can be used in forms, comments, and documents'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n ref={editorRef}\n />\n\n <FileInputDemo />\n </Flex>\n </Form>\n );\n};\n\nexport const PreviewMainContent = () => {\n const {\n base: { palette }\n } = useTheme();\n const StyledRegion = styled.div`\n min-height: 120vh;\n border: dotted 0.1rem ${palette['border-line']};\n background: ${palette.skeleton};\n `;\n\n return (\n <Flex as={StyledRegion} container={{ alignItems: 'center', justify: 'center' }}>\n <Text>This is a react region</Text>\n </Flex>\n );\n};\n\nexport const AppShellWithMenuNavigation = ({ main, hideNavigation }: AppShellStory) => {\n const [currentNodeId, setCurrentNodeId] = useState<string | undefined>();\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(treeList);\n\n const onNodeClick = (id: string) => {\n const clickedNode = treeHelpers.getNode(allNodes, id);\n\n if (!clickedNode?.nodes) {\n setCurrentNodeId(id);\n return;\n }\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, id, node => {\n return {\n ...node,\n expanded: !node.expanded\n };\n })\n );\n\n return (\n <StandardTree\n nodes={recordMenuList}\n onNodeClick={onNodeClick}\n currentNodeId={currentNodeId}\n />\n );\n };\n\n const appHeader = {\n brand: {\n name: 'AppStudioX',\n visual: {\n icon: 'pegasus'\n }\n },\n utils: {\n avatar: { name: 'Alan' },\n search: {\n placeholder: 'Search anything, anywhere'\n },\n branch: {\n text: 'Alpha branch',\n items: [\n {\n primary: 'Commit to branch',\n id: 'commitToBranch',\n onClick: () => {}\n },\n {\n primary: 'Merge branch',\n id: 'mergeBranch',\n onClick: () => {}\n },\n {\n primary: 'View branch',\n id: 'viewBranch',\n onClick: () => {}\n },\n {\n primary: 'Switch branch',\n id: 'switchBranch',\n onClick: () => {}\n },\n {\n primary: 'Add branch',\n id: 'addBranch',\n onClick: () => {}\n },\n {\n primary: 'View all branches',\n id: 'viewAllBranches',\n onClick: () => {}\n }\n ]\n },\n action: {\n id: 'preview',\n text: 'Preview',\n onClick: () => {}\n }\n },\n links: [\n {\n id: '1',\n name: 'Applications',\n onClick: () => {}\n },\n {\n id: '2',\n name: 'Shared resources',\n onClick: () => {}\n },\n {\n id: '3',\n name: 'Teams',\n onClick: () => {}\n },\n {\n id: '4',\n name: 'AI & Analytics',\n onClick: () => {}\n },\n {\n id: '5',\n name: 'Deploy',\n onClick: () => {}\n }\n ]\n };\n\n return (\n <Configuration theme={BuildTheme}>\n <AppShell\n main={main}\n appHeader={appHeader}\n hideNav={hideNavigation}\n appInfo={{\n text: 'xCompass',\n visual: {\n icon: 'compass',\n backgroundColor: '#20AA50'\n }\n }}\n navigation={{\n nodes: allNodes,\n currentNodeId,\n onNodeClick\n }}\n utils={{\n onItemClick: id => {\n if (id === 'explorer') {\n setAllNodes(appExplorerMenuList);\n }\n\n if (id === 'branches') {\n setAllNodes(branchesMenuList);\n }\n\n if (id === 'records') {\n setAllNodes(recordMenuList);\n }\n },\n items: [\n {\n label: 'App Explorer',\n id: 'explorer'\n },\n {\n label: 'Branches',\n id: 'branches'\n },\n {\n label: 'Records',\n id: 'records'\n }\n ],\n drawer: {\n onBeforeClose: () => setAllNodes(treeList)\n }\n }}\n />\n </Configuration>\n );\n};\n"]}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import { MouseEvent } from 'react';
|
|
3
3
|
import { StatusProps, PageTemplateProps } from '@pega/cosmos-react-core';
|
|
4
|
-
import {
|
|
4
|
+
import { AppShellStory } from './PageTemplates.mocks';
|
|
5
5
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
6
6
|
export default _default;
|
|
7
7
|
export interface PageTemplatesStoryProps extends PageTemplateProps {
|
|
8
|
-
template
|
|
8
|
+
template?: 'one column' | 'two column' | 'three column' | 'four column' | 'wide narrow' | 'narrow wide' | 'wide wide narrow' | 'narrow wide wide' | 'narrow wide narrow' | 'tabbed';
|
|
9
9
|
showBreadcrumbs?: boolean;
|
|
10
10
|
pathData?: string;
|
|
11
11
|
showActions?: boolean;
|
|
12
12
|
showBanners?: boolean;
|
|
13
13
|
subTitle?: string;
|
|
14
|
-
|
|
15
|
-
branchName?: string;
|
|
14
|
+
showStatus?: boolean;
|
|
16
15
|
statusVariant?: StatusProps['variant'];
|
|
17
|
-
statusLabel
|
|
16
|
+
statusLabel?: string;
|
|
18
17
|
showEditButton?: boolean;
|
|
19
18
|
onEdit?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
20
19
|
}
|
|
21
|
-
interface AppShellStory {
|
|
22
|
-
main: AppShellProps['main'];
|
|
23
|
-
hideNavigation?: boolean;
|
|
24
|
-
}
|
|
25
20
|
export declare const PageTemplatesDemo: Story<PageTemplatesStoryProps & AppShellStory>;
|
|
26
21
|
//# sourceMappingURL=PageTemplates.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageTemplates.stories.d.ts","sourceRoot":"","sources":["../../../src/build/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"PageTemplates.stories.d.ts","sourceRoot":"","sources":["../../../src/build/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAiC,UAAU,EAAE,MAAM,OAAO,CAAC;AAGlE,OAAO,EAUL,WAAW,EACX,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAGL,aAAa,EAEd,MAAM,uBAAuB,CAAC;;AAE/B,wBAKU;AAEV,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,CAAC,EACL,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,aAAa,GACb,aAAa,GACb,aAAa,GACb,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,QAAQ,CAAC;IACb,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACrD;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,uBAAuB,GAAG,aAAa,CAiQ5E,CAAC"}
|
|
@@ -1,260 +1,17 @@
|
|
|
1
|
-
import { useState, useMemo,
|
|
1
|
+
import { useState, useMemo, useContext } from 'react';
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import { Button, Banner,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { WorkbenchDemo } from '@pega/cosmos-react-demos/lib/build/Workbench/Workbench.stories';
|
|
9
|
-
import { appExplorerMenuList, branchesMenuList, recordMenuList, treeList } from '@pega/cosmos-react-demos/lib/build/AppShell/AppShell.mocks';
|
|
3
|
+
import { Button, Banner, Configuration, Modal, ModalManagerContext, BuildTheme, Flex, Text, Actions } from '@pega/cosmos-react-core';
|
|
4
|
+
import { TabbedPage, OneColumnPage, ObjectPreview } from '@pega/cosmos-react-build';
|
|
5
|
+
import { TableDemo } from '../../core/Table/Table.stories';
|
|
6
|
+
import { WorkbenchDemo } from '../Workbench/Workbench.stories';
|
|
7
|
+
import { OneColumnForm, AppShellWithMenuNavigation, PreviewMainContent } from './PageTemplates.mocks';
|
|
10
8
|
export default {
|
|
11
9
|
title: 'Build/PageTemplates',
|
|
12
10
|
parameters: {
|
|
13
11
|
layout: 'fullscreen'
|
|
14
12
|
}
|
|
15
13
|
};
|
|
16
|
-
const initFields = () => {
|
|
17
|
-
const common = { value: undefined, status: undefined };
|
|
18
|
-
return [
|
|
19
|
-
{
|
|
20
|
-
...common,
|
|
21
|
-
name: 'name',
|
|
22
|
-
required: true,
|
|
23
|
-
error: 'Please enter first and last name',
|
|
24
|
-
validator() {
|
|
25
|
-
if (!this.value)
|
|
26
|
-
return false;
|
|
27
|
-
return /^[a-z]+\s[a-z]+$/i.test(this.value);
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
...common,
|
|
32
|
-
name: 'email',
|
|
33
|
-
required: true,
|
|
34
|
-
error: 'Enter a @pega.com address',
|
|
35
|
-
validator() {
|
|
36
|
-
if (!this.value)
|
|
37
|
-
return false;
|
|
38
|
-
return /^\S+@pega\.com$/.test(this.value);
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
...common,
|
|
43
|
-
name: 'notes',
|
|
44
|
-
required: true,
|
|
45
|
-
help: 'See how fast you can type 20 characters go',
|
|
46
|
-
error: 'You need to tell us more than 20 characters',
|
|
47
|
-
validator() {
|
|
48
|
-
if (!this.value)
|
|
49
|
-
return false;
|
|
50
|
-
return this.value.length >= 20;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
};
|
|
55
|
-
const fieldReducer = (fields, { target, type }) => {
|
|
56
|
-
return fields.map(field => {
|
|
57
|
-
if (field.name === target.name) {
|
|
58
|
-
field.value = target.value;
|
|
59
|
-
if (type === 'blur' || field.status === 'error') {
|
|
60
|
-
if ((field.required || field.value) && !field.validator()) {
|
|
61
|
-
field.status = 'error';
|
|
62
|
-
field.info = field.error;
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
field.status = undefined;
|
|
66
|
-
field.info = field.help;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return field;
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
const OneColumnForm = () => {
|
|
74
|
-
const editorRef = useRef(null);
|
|
75
|
-
const [fields, setField] = useReducer(fieldReducer, undefined, initFields);
|
|
76
|
-
const { push } = useContext(ToasterContext);
|
|
77
|
-
const name = fields.find(field => field.name === 'name');
|
|
78
|
-
const email = fields.find(field => field.name === 'email');
|
|
79
|
-
const notes = fields.find(field => field.name === 'notes');
|
|
80
|
-
if (!name || !email || !notes)
|
|
81
|
-
return null;
|
|
82
|
-
const canSubmit = fields.every(field => field.value && field.validator());
|
|
83
|
-
const actions = (<>
|
|
84
|
-
<Button name='Cancel' variant='secondary' onClick={() => {
|
|
85
|
-
push({ content: 'Form cancelled!' });
|
|
86
|
-
}}>
|
|
87
|
-
Cancel
|
|
88
|
-
</Button>
|
|
89
|
-
<Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>
|
|
90
|
-
Submit
|
|
91
|
-
</Button>
|
|
92
|
-
</>);
|
|
93
|
-
const onImageAdded = (image, id) => {
|
|
94
|
-
const src = URL.createObjectURL(image);
|
|
95
|
-
editorRef.current?.appendImage({ src, alt: image.name }, id);
|
|
96
|
-
};
|
|
97
|
-
return (<Form actions={actions} onSubmit={(e) => {
|
|
98
|
-
e.preventDefault();
|
|
99
|
-
push({ content: 'Form submitted!' });
|
|
100
|
-
}} style={{ maxWidth: '37.5rem' }}>
|
|
101
|
-
<Text variant='h4' as='h4'>
|
|
102
|
-
Demo Form
|
|
103
|
-
</Text>
|
|
104
|
-
<Flex container={{ direction: 'column', gap: 2 }} item={{ grow: 1 }}>
|
|
105
|
-
<Input name='name' label='Name' value={name.value} required={name.required} status={name.status} info='some help text here' onChange={(e) => setField({ ...e })} onBlur={(e) => setField({ ...e })} autoComplete='off'/>
|
|
106
|
-
|
|
107
|
-
<Input name='email' value={email.value} type='email' label='Email' required={email.required} status={email.status} info='some help text here' onChange={(e) => setField({ ...e })} onBlur={(e) => setField({ ...e })} autoComplete='off'/>
|
|
108
|
-
|
|
109
|
-
<CheckboxGroup name='visited' label='Places you have worked'>
|
|
110
|
-
{['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (<Checkbox key={office} label={office} onChange={(e) => setField({ ...e })}/>))}
|
|
111
|
-
</CheckboxGroup>
|
|
112
|
-
|
|
113
|
-
<RadioButtonGroup name='meetings' label='Do you enjoy early morning meetings?'>
|
|
114
|
-
{['Yes', "No...no I don't"].map(option => (<RadioButton key={option} label={option} onChange={(e) => setField({ ...e })}/>))}
|
|
115
|
-
</RadioButtonGroup>
|
|
116
|
-
|
|
117
|
-
<Select label='What would you like to eat?' info='FYI: options are limited'>
|
|
118
|
-
<Option>choose meal...</Option>
|
|
119
|
-
<Option>Pizza</Option>
|
|
120
|
-
<Option>Sandwich</Option>
|
|
121
|
-
<Option>Salad</Option>
|
|
122
|
-
</Select>
|
|
123
|
-
|
|
124
|
-
<TextArea name='notes' required={notes.required} label='Meeting Notes' status={notes.status} info={notes.info || notes.help} onChange={(e) => setField({ ...e })} onBlur={(e) => setField({ ...e })}/>
|
|
125
|
-
<RichTextEditor label='Detailed meeting notes' info='The rich text editor can be used in forms, comments, and documents' toolbar={[
|
|
126
|
-
'inline-styling',
|
|
127
|
-
'headers',
|
|
128
|
-
'tables',
|
|
129
|
-
'links',
|
|
130
|
-
'images',
|
|
131
|
-
'lists',
|
|
132
|
-
'cut-copy-paste',
|
|
133
|
-
'indentation'
|
|
134
|
-
]} onImageAdded={onImageAdded} ref={editorRef}/>
|
|
135
|
-
|
|
136
|
-
<FileInputDemo />
|
|
137
|
-
</Flex>
|
|
138
|
-
</Form>);
|
|
139
|
-
};
|
|
140
|
-
const AppShellWithMenuNavigation = (args) => {
|
|
141
|
-
const [currentNodeId, setCurrentNodeId] = useState();
|
|
142
|
-
const [allNodes, setAllNodes] = useState(treeList);
|
|
143
|
-
const onNodeClick = (id) => {
|
|
144
|
-
const clickedNode = treeHelpers.getNode(allNodes, id);
|
|
145
|
-
if (!clickedNode?.nodes) {
|
|
146
|
-
setCurrentNodeId(id);
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
setAllNodes(tree => treeHelpers.mapNode(tree, id, node => {
|
|
150
|
-
return {
|
|
151
|
-
...node,
|
|
152
|
-
expanded: !node.expanded
|
|
153
|
-
};
|
|
154
|
-
}));
|
|
155
|
-
return (<StandardTree nodes={recordMenuList} onNodeClick={onNodeClick} currentNodeId={currentNodeId}/>);
|
|
156
|
-
};
|
|
157
|
-
const appHeader = {
|
|
158
|
-
brand: {
|
|
159
|
-
name: 'AppStudioX'
|
|
160
|
-
},
|
|
161
|
-
utils: {
|
|
162
|
-
avatar: { name: 'Alan' },
|
|
163
|
-
search: {
|
|
164
|
-
placeholder: 'Search anything, anywhere'
|
|
165
|
-
},
|
|
166
|
-
branchName: 'test',
|
|
167
|
-
actions: [
|
|
168
|
-
{
|
|
169
|
-
primary: 'Switch branch',
|
|
170
|
-
id: 'switchbranch',
|
|
171
|
-
onClick: action('Clicked switchbranch')
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
primary: 'Create branch',
|
|
175
|
-
id: 'createbranch',
|
|
176
|
-
onClick: action('Clicked createbranch')
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
links: [
|
|
181
|
-
{
|
|
182
|
-
id: '1',
|
|
183
|
-
name: 'Applications',
|
|
184
|
-
onClick: action('Clicked Applications')
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: '2',
|
|
188
|
-
name: 'Shared resources',
|
|
189
|
-
onClick: action('Clicked Shared resources')
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
id: '3',
|
|
193
|
-
name: 'Teams',
|
|
194
|
-
onClick: () => { }
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
id: '4',
|
|
198
|
-
name: 'AI & Analytics',
|
|
199
|
-
onClick: action('Clicked AI & Analytics')
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
id: '5',
|
|
203
|
-
name: 'Deploy',
|
|
204
|
-
onClick: action('Clicked Deploy')
|
|
205
|
-
}
|
|
206
|
-
]
|
|
207
|
-
};
|
|
208
|
-
return (<Configuration theme={BuildTheme}>
|
|
209
|
-
<AppShell main={args.main} appHeader={appHeader} hideNav={args.hideNavigation} appInfo={{
|
|
210
|
-
text: 'xCompass',
|
|
211
|
-
visual: {
|
|
212
|
-
icon: {
|
|
213
|
-
name: 'compass',
|
|
214
|
-
bgColor: '#20AA50'
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}} navigation={{
|
|
218
|
-
nodes: allNodes,
|
|
219
|
-
currentNodeId,
|
|
220
|
-
onNodeClick
|
|
221
|
-
}} utils={{
|
|
222
|
-
onItemClick: id => {
|
|
223
|
-
if (id === 'explorer') {
|
|
224
|
-
setAllNodes(appExplorerMenuList);
|
|
225
|
-
}
|
|
226
|
-
if (id === 'branches') {
|
|
227
|
-
setAllNodes(branchesMenuList);
|
|
228
|
-
}
|
|
229
|
-
if (id === 'records') {
|
|
230
|
-
setAllNodes(recordMenuList);
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
items: [
|
|
234
|
-
{
|
|
235
|
-
label: 'App Explorer',
|
|
236
|
-
id: 'explorer'
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
label: 'Branches',
|
|
240
|
-
id: 'branches'
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: 'Records',
|
|
244
|
-
id: 'records'
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
drawer: {
|
|
248
|
-
onBeforeClose: () => setAllNodes(treeList)
|
|
249
|
-
}
|
|
250
|
-
}}/>
|
|
251
|
-
</Configuration>);
|
|
252
|
-
};
|
|
253
14
|
export const PageTemplatesDemo = (args) => {
|
|
254
|
-
const [currentTabId, setCurrentTabId] = useState('accounts');
|
|
255
|
-
const [content, setContent] = useState(<>
|
|
256
|
-
<TableDemo />
|
|
257
|
-
</>);
|
|
258
15
|
const { create } = useContext(ModalManagerContext);
|
|
259
16
|
const getPath = () => {
|
|
260
17
|
if (args.showBreadcrumbs) {
|
|
@@ -284,20 +41,17 @@ export const PageTemplatesDemo = (args) => {
|
|
|
284
41
|
]}/>
|
|
285
42
|
</Flex>) : undefined;
|
|
286
43
|
const banners = args.showBanners ? (<Banner id='warning-banner' variant='warning' messages={['This is a warning banner. You have been warned!']}/>) : undefined;
|
|
287
|
-
const mainContent =
|
|
288
|
-
<OneColumnForm />
|
|
289
|
-
</Flex>);
|
|
44
|
+
const mainContent = <OneColumnForm />;
|
|
290
45
|
const modal = () => (<Configuration theme={BuildTheme}>
|
|
291
46
|
<Modal heading='This is the Modal heading' autoWidth={false} center stretch={false}>
|
|
292
47
|
<Text>This is the content of the Modal.</Text>
|
|
293
48
|
</Modal>
|
|
294
49
|
</Configuration>);
|
|
295
50
|
const pageTemplateProps = useMemo(() => {
|
|
296
|
-
const
|
|
297
|
-
const status = args.showBranch
|
|
51
|
+
const status = args.showStatus
|
|
298
52
|
? {
|
|
299
|
-
type: args.statusVariant,
|
|
300
|
-
label: args.statusLabel
|
|
53
|
+
type: args.statusVariant || 'pending',
|
|
54
|
+
label: args.statusLabel || 'private change'
|
|
301
55
|
}
|
|
302
56
|
: undefined;
|
|
303
57
|
return {
|
|
@@ -305,7 +59,6 @@ export const PageTemplatesDemo = (args) => {
|
|
|
305
59
|
actions,
|
|
306
60
|
banners,
|
|
307
61
|
path: getPath(),
|
|
308
|
-
branchName,
|
|
309
62
|
status,
|
|
310
63
|
metadata: [
|
|
311
64
|
{ id: '1', name: 'ID', value: 'InterestRate' },
|
|
@@ -356,39 +109,110 @@ export const PageTemplatesDemo = (args) => {
|
|
|
356
109
|
}
|
|
357
110
|
};
|
|
358
111
|
}, [args]);
|
|
112
|
+
const [tabs, setTabs] = useState([
|
|
113
|
+
{ id: 'accounts', name: 'Accounts', content: <TableDemo /> },
|
|
114
|
+
{ id: 'form', name: 'Form', content: null },
|
|
115
|
+
{ id: 'workbench', name: 'Workbench', content: null }
|
|
116
|
+
]);
|
|
359
117
|
let demo;
|
|
118
|
+
const [openDrawer, setOpenDrawer] = useState(false);
|
|
360
119
|
switch (args.template) {
|
|
361
120
|
case 'one column':
|
|
362
121
|
demo = <OneColumnPage a={mainContent} {...pageTemplateProps}/>;
|
|
363
122
|
break;
|
|
364
123
|
case 'tabbed':
|
|
365
124
|
default:
|
|
366
|
-
demo = (
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
{ id: 'form', name: 'Form' },
|
|
370
|
-
{ id: 'workbench', name: 'Workbench' }
|
|
371
|
-
],
|
|
125
|
+
demo = (<>
|
|
126
|
+
<TabbedPage tabs={{
|
|
127
|
+
tabs,
|
|
372
128
|
type: 'horizontal',
|
|
373
|
-
currentTabId,
|
|
374
129
|
onTabClick: id => {
|
|
375
|
-
setCurrentTabId(id);
|
|
376
130
|
switch (id) {
|
|
377
131
|
case 'form':
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
132
|
+
if (tabs[1].content === null) {
|
|
133
|
+
const updatedTabs = [...tabs];
|
|
134
|
+
updatedTabs[1].content = (<OneColumnForm previewCallback={() => {
|
|
135
|
+
setOpenDrawer(true);
|
|
136
|
+
}}/>);
|
|
137
|
+
setTabs(updatedTabs);
|
|
138
|
+
}
|
|
384
139
|
break;
|
|
385
140
|
case 'workbench':
|
|
386
|
-
|
|
141
|
+
if (tabs[2].content === null) {
|
|
142
|
+
const updatedTabs = [...tabs];
|
|
143
|
+
updatedTabs[2].content = <WorkbenchDemo />;
|
|
144
|
+
setTabs(updatedTabs);
|
|
145
|
+
}
|
|
387
146
|
break;
|
|
388
147
|
default:
|
|
389
148
|
}
|
|
390
149
|
}
|
|
391
|
-
}} {...pageTemplateProps}/>
|
|
150
|
+
}} {...pageTemplateProps}/>
|
|
151
|
+
<ObjectPreview open={openDrawer} onDismiss={() => setOpenDrawer(false)} header={{
|
|
152
|
+
title: 'Interest rate',
|
|
153
|
+
metadata: [
|
|
154
|
+
{ id: '1', name: 'ID', value: 'InterestRate' },
|
|
155
|
+
{ id: '2', name: 'Rule type', value: 'Field' },
|
|
156
|
+
{
|
|
157
|
+
id: '3',
|
|
158
|
+
name: 'Scope',
|
|
159
|
+
value: 'O1XPTI-CCompass-Work-MortgageRequest'
|
|
160
|
+
},
|
|
161
|
+
{ id: '4', name: 'Application', value: 'XCompass' }
|
|
162
|
+
],
|
|
163
|
+
additionalInfo: {
|
|
164
|
+
title: 'Interest rate',
|
|
165
|
+
description: 'Interest rate for the savings account',
|
|
166
|
+
fields: [
|
|
167
|
+
{
|
|
168
|
+
id: '1',
|
|
169
|
+
name: 'Id',
|
|
170
|
+
value: 'InterestRate'
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: '2',
|
|
174
|
+
name: 'Rule type',
|
|
175
|
+
value: 'Field'
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: '3',
|
|
179
|
+
name: 'Scope',
|
|
180
|
+
value: 'O1XPTI-CCompass-Work-MortgageRequest'
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: '4',
|
|
184
|
+
name: 'Branch',
|
|
185
|
+
value: 'xCompass (Main)'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: '5',
|
|
189
|
+
name: 'Application',
|
|
190
|
+
value: 'XCompass'
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
onEdit: () => { }
|
|
194
|
+
}
|
|
195
|
+
}} content={<PreviewMainContent />} primaryAction={{
|
|
196
|
+
id: 'PA',
|
|
197
|
+
text: 'Save',
|
|
198
|
+
onClick: () => { }
|
|
199
|
+
}} secondaryAction={{
|
|
200
|
+
id: 'SA',
|
|
201
|
+
text: 'Open rule',
|
|
202
|
+
onClick: () => { }
|
|
203
|
+
}} additionalActions={{
|
|
204
|
+
items: [
|
|
205
|
+
{
|
|
206
|
+
id: '1',
|
|
207
|
+
text: 'Page action 1'
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: '2',
|
|
211
|
+
text: 'Page action 2'
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}}/>
|
|
215
|
+
</>);
|
|
392
216
|
break;
|
|
393
217
|
}
|
|
394
218
|
return (<AppShellWithMenuNavigation main={demo} hideNavigation={args.hideNavigation}/>);
|
|
@@ -402,10 +226,9 @@ PageTemplatesDemo.args = {
|
|
|
402
226
|
pathData: 'Home,xCompass,Fields',
|
|
403
227
|
showActions: true,
|
|
404
228
|
showBanners: false,
|
|
405
|
-
|
|
229
|
+
showStatus: true,
|
|
406
230
|
statusVariant: 'pending',
|
|
407
231
|
statusLabel: 'private change',
|
|
408
|
-
branchName: 'xCompass (Main)',
|
|
409
232
|
showEditButton: true,
|
|
410
233
|
onEdit: action('Clicked edit button in popover')
|
|
411
234
|
};
|
|
@@ -421,13 +244,12 @@ PageTemplatesDemo.argTypes = {
|
|
|
421
244
|
pathData: { control: { type: 'text' } },
|
|
422
245
|
showActions: { control: { type: 'boolean' } },
|
|
423
246
|
showBanners: { control: { type: 'boolean' } },
|
|
424
|
-
|
|
247
|
+
showStatus: { control: { type: 'boolean' } },
|
|
425
248
|
statusVariant: {
|
|
426
249
|
options: ['success', 'urgent', 'warn', 'pending', 'info'],
|
|
427
250
|
control: { type: 'select' }
|
|
428
251
|
},
|
|
429
252
|
statusLabel: { control: { type: 'text' } },
|
|
430
|
-
branchName: { control: { type: 'text' } },
|
|
431
253
|
showEditButton: { control: { type: 'boolean' } },
|
|
432
254
|
onEdit: { table: { disable: true } }
|
|
433
255
|
};
|