@pega/cosmos-react-demos 2.1.3 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/jsx/build/AppHeader/AppHeader.stories.d.ts +0 -8
- package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
- package/jsx/build/AppHeader/AppHeader.stories.jsx +0 -65
- package/jsx/build/AppHeader/AppHeader.stories.jsx.map +0 -1
- package/jsx/build/AppShell/AppShell.mocks.d.ts +0 -50
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.mocks.js +0 -503
- package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts +0 -12
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +0 -194
- package/jsx/build/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +0 -9
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.js +0 -411
- package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +0 -12
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +0 -214
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +0 -201
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +0 -1128
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +0 -491
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/utils.d.ts +0 -65
- package/jsx/build/LifeCycle/utils.d.ts.map +0 -1
- package/jsx/build/LifeCycle/utils.js +0 -218
- package/jsx/build/LifeCycle/utils.js.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +0 -12
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +0 -126
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +0 -26
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +0 -434
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/jsx/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.js +0 -67
- package/jsx/build/Workbench/Workbench.mocks.js.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +0 -10
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +0 -124
- package/jsx/build/Workbench/Workbench.stories.jsx.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -10
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -263
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +0 -113
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
- package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -15
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +0 -147
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +0 -31
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +0 -222
- package/jsx/core/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.styles.d.ts +0 -2
- package/jsx/core/AppShell/AppShell.styles.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.styles.js +0 -5
- package/jsx/core/AppShell/AppShell.styles.js.map +0 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts +0 -10
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +0 -1
- package/jsx/core/Avatar/Avatar.stories.jsx +0 -50
- package/jsx/core/Avatar/Avatar.stories.jsx.map +0 -1
- package/jsx/core/Backdrop/Backdrop.stories.d.ts +0 -7
- package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
- package/jsx/core/Backdrop/Backdrop.stories.jsx +0 -43
- package/jsx/core/Backdrop/Backdrop.stories.jsx.map +0 -1
- package/jsx/core/Badges/Alert.stories.d.ts +0 -6
- package/jsx/core/Badges/Alert.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Alert.stories.jsx +0 -15
- package/jsx/core/Badges/Alert.stories.jsx.map +0 -1
- package/jsx/core/Badges/Count.stories.d.ts +0 -6
- package/jsx/core/Badges/Count.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Count.stories.jsx +0 -20
- package/jsx/core/Badges/Count.stories.jsx.map +0 -1
- package/jsx/core/Badges/Selection.stories.d.ts +0 -6
- package/jsx/core/Badges/Selection.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Selection.stories.jsx +0 -9
- package/jsx/core/Badges/Selection.stories.jsx.map +0 -1
- package/jsx/core/Badges/Status.stories.d.ts +0 -6
- package/jsx/core/Badges/Status.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Status.stories.jsx +0 -18
- package/jsx/core/Badges/Status.stories.jsx.map +0 -1
- package/jsx/core/Badges/Tag.stories.d.ts +0 -6
- package/jsx/core/Badges/Tag.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Tag.stories.jsx +0 -9
- package/jsx/core/Badges/Tag.stories.jsx.map +0 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +0 -18
- package/jsx/core/Banner/Banner.mocks.d.ts.map +0 -1
- package/jsx/core/Banner/Banner.mocks.jsx +0 -41
- package/jsx/core/Banner/Banner.mocks.jsx.map +0 -1
- package/jsx/core/Banner/Banner.stories.d.ts +0 -22
- package/jsx/core/Banner/Banner.stories.d.ts.map +0 -1
- package/jsx/core/Banner/Banner.stories.jsx +0 -87
- package/jsx/core/Banner/Banner.stories.jsx.map +0 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.jsx +0 -19
- package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -7
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -29
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
- package/jsx/core/Button/Button.stories.d.ts +0 -12
- package/jsx/core/Button/Button.stories.d.ts.map +0 -1
- package/jsx/core/Button/Button.stories.jsx +0 -103
- package/jsx/core/Button/Button.stories.jsx.map +0 -1
- package/jsx/core/Card/Card.stories.d.ts +0 -8
- package/jsx/core/Card/Card.stories.d.ts.map +0 -1
- package/jsx/core/Card/Card.stories.jsx +0 -55
- package/jsx/core/Card/Card.stories.jsx.map +0 -1
- package/jsx/core/Card/Card.styles.d.ts +0 -2
- package/jsx/core/Card/Card.styles.d.ts.map +0 -1
- package/jsx/core/Card/Card.styles.js +0 -5
- package/jsx/core/Card/Card.styles.js.map +0 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +0 -7
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -28
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -7
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -60
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +0 -8
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +0 -91
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -24
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.js +0 -54
- package/jsx/core/ComboBox/ComboBox.mocks.js.map +0 -1
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +0 -21
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -323
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +0 -1
- package/jsx/core/Configuration/Configuration.stories.d.ts +0 -10
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +0 -1
- package/jsx/core/Configuration/Configuration.stories.jsx +0 -125
- package/jsx/core/Configuration/Configuration.stories.jsx.map +0 -1
- package/jsx/core/Currency/Currency.stories.d.ts +0 -11
- package/jsx/core/Currency/Currency.stories.d.ts.map +0 -1
- package/jsx/core/Currency/Currency.stories.jsx +0 -65
- package/jsx/core/Currency/Currency.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +0 -20
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +0 -127
- package/jsx/core/DateTime/DateTime.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +0 -47
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts +0 -7
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx +0 -34
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +0 -1
- package/jsx/core/Drawer/Drawer.stories.d.ts +0 -7
- package/jsx/core/Drawer/Drawer.stories.d.ts.map +0 -1
- package/jsx/core/Drawer/Drawer.stories.jsx +0 -98
- package/jsx/core/Drawer/Drawer.stories.jsx.map +0 -1
- package/jsx/core/Drawer/Drawer.styles.d.ts +0 -2
- package/jsx/core/Drawer/Drawer.styles.d.ts.map +0 -1
- package/jsx/core/Drawer/Drawer.styles.js +0 -11
- package/jsx/core/Drawer/Drawer.styles.js.map +0 -1
- package/jsx/core/Email/EmailDisplay.stories.d.ts +0 -6
- package/jsx/core/Email/EmailDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Email/EmailDisplay.stories.jsx +0 -19
- package/jsx/core/Email/EmailDisplay.stories.jsx.map +0 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +0 -52
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -1
- package/jsx/core/EmptyState/EmptyState.stories.d.ts +0 -6
- package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
- package/jsx/core/EmptyState/EmptyState.stories.jsx +0 -18
- package/jsx/core/EmptyState/EmptyState.stories.jsx.map +0 -1
- package/jsx/core/ErrorState/ErrorState.stories.d.ts +0 -9
- package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
- package/jsx/core/ErrorState/ErrorState.stories.jsx +0 -20
- package/jsx/core/ErrorState/ErrorState.stories.jsx.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -73
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +0 -11
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +0 -52
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -21
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +0 -36
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +0 -10
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -150
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +0 -10
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx +0 -54
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +0 -1
- package/jsx/core/File/FileDisplay.stories.d.ts +0 -20
- package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
- package/jsx/core/File/FileDisplay.stories.jsx +0 -135
- package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
- package/jsx/core/File/FileInput.stories.d.ts +0 -9
- package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
- package/jsx/core/File/FileInput.stories.jsx +0 -76
- package/jsx/core/File/FileInput.stories.jsx.map +0 -1
- package/jsx/core/Flex/Flex.styles.d.ts +0 -10
- package/jsx/core/Flex/Flex.styles.d.ts.map +0 -1
- package/jsx/core/Flex/Flex.styles.js +0 -41
- package/jsx/core/Flex/Flex.styles.js.map +0 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +0 -22
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +0 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx +0 -164
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +0 -1
- package/jsx/core/Flex/FlexItem.stories.d.ts +0 -13
- package/jsx/core/Flex/FlexItem.stories.d.ts.map +0 -1
- package/jsx/core/Flex/FlexItem.stories.jsx +0 -71
- package/jsx/core/Flex/FlexItem.stories.jsx.map +0 -1
- package/jsx/core/Form/Form.mocks.d.ts +0 -8
- package/jsx/core/Form/Form.mocks.d.ts.map +0 -1
- package/jsx/core/Form/Form.mocks.jsx +0 -138
- package/jsx/core/Form/Form.mocks.jsx.map +0 -1
- package/jsx/core/Form/Form.stories.d.ts +0 -14
- package/jsx/core/Form/Form.stories.d.ts.map +0 -1
- package/jsx/core/Form/Form.stories.jsx +0 -62
- package/jsx/core/Form/Form.stories.jsx.map +0 -1
- package/jsx/core/Grid/Grid.styles.d.ts +0 -6
- package/jsx/core/Grid/Grid.styles.d.ts.map +0 -1
- package/jsx/core/Grid/Grid.styles.js +0 -36
- package/jsx/core/Grid/Grid.styles.js.map +0 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +0 -24
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +0 -1
- package/jsx/core/Grid/GridContainer.stories.jsx +0 -168
- package/jsx/core/Grid/GridContainer.stories.jsx.map +0 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +0 -13
- package/jsx/core/Grid/GridItem.stories.d.ts.map +0 -1
- package/jsx/core/Grid/GridItem.stories.jsx +0 -74
- package/jsx/core/Grid/GridItem.stories.jsx.map +0 -1
- package/jsx/core/Icon/Icon.mocks.d.ts +0 -3
- package/jsx/core/Icon/Icon.mocks.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.mocks.jsx +0 -9
- package/jsx/core/Icon/Icon.mocks.jsx.map +0 -1
- package/jsx/core/Icon/Icon.stories.d.ts +0 -9
- package/jsx/core/Icon/Icon.stories.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.stories.jsx +0 -90
- package/jsx/core/Icon/Icon.stories.jsx.map +0 -1
- package/jsx/core/IconPicker/IconPicker.stories.d.ts +0 -6
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -38
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +0 -1
- package/jsx/core/Image/Image.stories.d.ts +0 -6
- package/jsx/core/Image/Image.stories.d.ts.map +0 -1
- package/jsx/core/Image/Image.stories.jsx +0 -9
- package/jsx/core/Image/Image.stories.jsx.map +0 -1
- package/jsx/core/Input/Input.stories.d.ts +0 -9
- package/jsx/core/Input/Input.stories.d.ts.map +0 -1
- package/jsx/core/Input/Input.stories.jsx +0 -44
- package/jsx/core/Input/Input.stories.jsx.map +0 -1
- package/jsx/core/Label/Label.stories.d.ts +0 -6
- package/jsx/core/Label/Label.stories.d.ts.map +0 -1
- package/jsx/core/Label/Label.stories.jsx +0 -15
- package/jsx/core/Label/Label.stories.jsx.map +0 -1
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts +0 -15
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
- package/jsx/core/Lightbox/Lightbox.mocks.js +0 -59
- package/jsx/core/Lightbox/Lightbox.mocks.js.map +0 -1
- package/jsx/core/Lightbox/Lightbox.stories.d.ts +0 -10
- package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +0 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx +0 -55
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
- package/jsx/core/Link/Link.stories.d.ts +0 -18
- package/jsx/core/Link/Link.stories.d.ts.map +0 -1
- package/jsx/core/Link/Link.stories.jsx +0 -49
- package/jsx/core/Link/Link.stories.jsx.map +0 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +0 -6
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx +0 -31
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +0 -1
- package/jsx/core/List/OrderedList.stories.d.ts +0 -10
- package/jsx/core/List/OrderedList.stories.d.ts.map +0 -1
- package/jsx/core/List/OrderedList.stories.jsx +0 -38
- package/jsx/core/List/OrderedList.stories.jsx.map +0 -1
- package/jsx/core/List/UnorderedList.stories.d.ts +0 -10
- package/jsx/core/List/UnorderedList.stories.d.ts.map +0 -1
- package/jsx/core/List/UnorderedList.stories.jsx +0 -38
- package/jsx/core/List/UnorderedList.stories.jsx.map +0 -1
- package/jsx/core/Location/Location.stories.d.ts +0 -12
- package/jsx/core/Location/Location.stories.d.ts.map +0 -1
- package/jsx/core/Location/Location.stories.jsx +0 -130
- package/jsx/core/Location/Location.stories.jsx.map +0 -1
- package/jsx/core/Menu/Menu.mocks.d.ts +0 -4
- package/jsx/core/Menu/Menu.mocks.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.mocks.js +0 -179
- package/jsx/core/Menu/Menu.mocks.js.map +0 -1
- package/jsx/core/Menu/Menu.stories.d.ts +0 -16
- package/jsx/core/Menu/Menu.stories.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.stories.jsx +0 -164
- package/jsx/core/Menu/Menu.stories.jsx.map +0 -1
- package/jsx/core/Menu/Menu.styles.d.ts +0 -2
- package/jsx/core/Menu/Menu.styles.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.styles.js +0 -6
- package/jsx/core/Menu/Menu.styles.js.map +0 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +0 -15
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx +0 -188
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +0 -1
- package/jsx/core/MetaList/MetaList.stories.d.ts +0 -9
- package/jsx/core/MetaList/MetaList.stories.d.ts.map +0 -1
- package/jsx/core/MetaList/MetaList.stories.jsx +0 -24
- package/jsx/core/MetaList/MetaList.stories.jsx.map +0 -1
- package/jsx/core/Modal/Modal.mocks.d.ts +0 -4
- package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.mocks.jsx +0 -44
- package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
- package/jsx/core/Modal/Modal.stories.d.ts +0 -20
- package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.stories.jsx +0 -305
- package/jsx/core/Modal/Modal.stories.jsx.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
- package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
- package/jsx/core/Number/Number.stories.d.ts +0 -13
- package/jsx/core/Number/Number.stories.d.ts.map +0 -1
- package/jsx/core/Number/Number.stories.jsx +0 -110
- package/jsx/core/Number/Number.stories.jsx.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.js +0 -10
- package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +0 -31
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -233
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +0 -4
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +0 -31
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +0 -1
- package/jsx/core/Pagination/Pagination.stories.d.ts +0 -6
- package/jsx/core/Pagination/Pagination.stories.d.ts.map +0 -1
- package/jsx/core/Pagination/Pagination.stories.jsx +0 -19
- package/jsx/core/Pagination/Pagination.stories.jsx.map +0 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +0 -15
- package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
- package/jsx/core/Phone/Phone.stories.d.ts +0 -7
- package/jsx/core/Phone/Phone.stories.d.ts.map +0 -1
- package/jsx/core/Phone/Phone.stories.jsx +0 -42
- package/jsx/core/Phone/Phone.stories.jsx.map +0 -1
- package/jsx/core/Popover/Popover.stories.d.ts +0 -7
- package/jsx/core/Popover/Popover.stories.d.ts.map +0 -1
- package/jsx/core/Popover/Popover.stories.jsx +0 -182
- package/jsx/core/Popover/Popover.stories.jsx.map +0 -1
- package/jsx/core/Progress/Progress.stories.d.ts +0 -7
- package/jsx/core/Progress/Progress.stories.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.stories.jsx +0 -71
- package/jsx/core/Progress/Progress.stories.jsx.map +0 -1
- package/jsx/core/Progress/Progress.styles.d.ts +0 -2
- package/jsx/core/Progress/Progress.styles.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.styles.js +0 -13
- package/jsx/core/Progress/Progress.styles.js.map +0 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +0 -7
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -26
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -7
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -62
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
- package/jsx/core/Rating/Rating.stories.d.ts +0 -9
- package/jsx/core/Rating/Rating.stories.d.ts.map +0 -1
- package/jsx/core/Rating/Rating.stories.jsx +0 -21
- package/jsx/core/Rating/Rating.stories.jsx.map +0 -1
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +0 -6
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -15
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +0 -1
- package/jsx/core/Select/Select.stories.d.ts +0 -9
- package/jsx/core/Select/Select.stories.d.ts.map +0 -1
- package/jsx/core/Select/Select.stories.jsx +0 -42
- package/jsx/core/Select/Select.stories.jsx.map +0 -1
- package/jsx/core/Sentiment/Sentiment.stories.d.ts +0 -14
- package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
- package/jsx/core/Sentiment/Sentiment.stories.jsx +0 -39
- package/jsx/core/Sentiment/Sentiment.stories.jsx.map +0 -1
- package/jsx/core/Slider/Slider.stories.d.ts +0 -11
- package/jsx/core/Slider/Slider.stories.d.ts.map +0 -1
- package/jsx/core/Slider/Slider.stories.jsx +0 -58
- package/jsx/core/Slider/Slider.stories.jsx.map +0 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx +0 -36
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +0 -1
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts +0 -32
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
- package/jsx/core/SummaryList/SummaryList.mocks.jsx +0 -35
- package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +0 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +0 -13
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx +0 -131
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +0 -1
- package/jsx/core/Switch/Switch.stories.d.ts +0 -7
- package/jsx/core/Switch/Switch.stories.d.ts.map +0 -1
- package/jsx/core/Switch/Switch.stories.jsx +0 -26
- package/jsx/core/Switch/Switch.stories.jsx.map +0 -1
- package/jsx/core/Switch/Switch.styles.d.ts +0 -2
- package/jsx/core/Switch/Switch.styles.d.ts.map +0 -1
- package/jsx/core/Switch/Switch.styles.js +0 -13
- package/jsx/core/Switch/Switch.styles.js.map +0 -1
- package/jsx/core/Table/Table.mocks.d.ts +0 -19
- package/jsx/core/Table/Table.mocks.d.ts.map +0 -1
- package/jsx/core/Table/Table.mocks.jsx +0 -32
- package/jsx/core/Table/Table.mocks.jsx.map +0 -1
- package/jsx/core/Table/Table.stories.d.ts +0 -14
- package/jsx/core/Table/Table.stories.d.ts.map +0 -1
- package/jsx/core/Table/Table.stories.jsx +0 -58
- package/jsx/core/Table/Table.stories.jsx.map +0 -1
- package/jsx/core/Table/Table.styles.d.ts +0 -4
- package/jsx/core/Table/Table.styles.d.ts.map +0 -1
- package/jsx/core/Table/Table.styles.js +0 -9
- package/jsx/core/Table/Table.styles.js.map +0 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +0 -7
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +0 -59
- package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
- package/jsx/core/Text/Text.stories.d.ts +0 -6
- package/jsx/core/Text/Text.stories.d.ts.map +0 -1
- package/jsx/core/Text/Text.stories.jsx +0 -22
- package/jsx/core/Text/Text.stories.jsx.map +0 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +0 -6
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +0 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +0 -43
- package/jsx/core/TextArea/TextArea.stories.jsx.map +0 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +0 -6
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +0 -22
- package/jsx/core/Toaster/Toaster.stories.jsx.map +0 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +0 -8
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx +0 -18
- package/jsx/core/Tooltip/Tooltip.stories.jsx.map +0 -1
- package/jsx/core/Tree/Tree.mocks.d.ts +0 -2
- package/jsx/core/Tree/Tree.mocks.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.mocks.js +0 -20
- package/jsx/core/Tree/Tree.mocks.js.map +0 -1
- package/jsx/core/Tree/Tree.stories.d.ts +0 -8
- package/jsx/core/Tree/Tree.stories.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.stories.jsx +0 -89
- package/jsx/core/Tree/Tree.stories.jsx.map +0 -1
- package/jsx/core/Tree/Tree.styles.d.ts +0 -3
- package/jsx/core/Tree/Tree.styles.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.styles.js +0 -10
- package/jsx/core/Tree/Tree.styles.js.map +0 -1
- package/jsx/core/URL/URL.stories.d.ts +0 -6
- package/jsx/core/URL/URL.stories.d.ts.map +0 -1
- package/jsx/core/URL/URL.stories.jsx +0 -17
- package/jsx/core/URL/URL.stories.jsx.map +0 -1
- package/jsx/cs/Article/Article.mocks.d.ts +0 -14
- package/jsx/cs/Article/Article.mocks.d.ts.map +0 -1
- package/jsx/cs/Article/Article.mocks.js +0 -14
- package/jsx/cs/Article/Article.mocks.js.map +0 -1
- package/jsx/cs/Article/Article.stories.d.ts +0 -15
- package/jsx/cs/Article/Article.stories.d.ts.map +0 -1
- package/jsx/cs/Article/Article.stories.jsx +0 -126
- package/jsx/cs/Article/Article.stories.jsx.map +0 -1
- package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +0 -21
- package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +0 -1
- package/jsx/cs/ArticleList/ArticleList.mocks.js +0 -102
- package/jsx/cs/ArticleList/ArticleList.mocks.js.map +0 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts +0 -16
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +0 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx +0 -110
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +0 -45
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +0 -275
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -57
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js +0 -224
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -16
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +0 -110
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -13
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -188
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/jsx/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.jsx +0 -18
- package/jsx/cs/DialPad/DialPad.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -13
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -356
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -8
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +0 -32
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -14
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -85
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +0 -13
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +0 -140
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +0 -8
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +0 -314
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +0 -11
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx +0 -119
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +0 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +0 -11
- package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
- package/jsx/rte/Editor/Editor.stories.jsx +0 -119
- package/jsx/rte/Editor/Editor.stories.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -34
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -10
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -145
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -8
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -79
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +0 -385
- package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.mocks.js +0 -648
- package/jsx/social/Chat/Chat.mocks.js.map +0 -1
- package/jsx/social/Chat/Chat.stories.d.ts +0 -34
- package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.stories.jsx +0 -490
- package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
- package/jsx/social/Chat/RepeatingView.stories.d.ts +0 -20
- package/jsx/social/Chat/RepeatingView.stories.d.ts.map +0 -1
- package/jsx/social/Chat/RepeatingView.stories.jsx +0 -90
- package/jsx/social/Chat/RepeatingView.stories.jsx.map +0 -1
- package/jsx/social/Email/Email.mocks.d.ts +0 -87
- package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
- package/jsx/social/Email/Email.mocks.jsx +0 -349
- package/jsx/social/Email/Email.mocks.jsx.map +0 -1
- package/jsx/social/Email/Email.stories.d.ts +0 -28
- package/jsx/social/Email/Email.stories.d.ts.map +0 -1
- package/jsx/social/Email/Email.stories.jsx +0 -798
- package/jsx/social/Email/Email.stories.jsx.map +0 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +0 -52
- package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/Feed.mocks.jsx +0 -315
- package/jsx/social/Feed/Feed.mocks.jsx.map +0 -1
- package/jsx/social/Feed/Feed.stories.d.ts +0 -15
- package/jsx/social/Feed/Feed.stories.d.ts.map +0 -1
- package/jsx/social/Feed/Feed.stories.jsx +0 -146
- package/jsx/social/Feed/Feed.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts +0 -17
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx +0 -80
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts +0 -9
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +0 -248
- package/jsx/social/Feed/FeedPost.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +0 -16
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +0 -99
- package/jsx/social/Feed/FeedReply.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts +0 -15
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx +0 -59
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +0 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -29
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -3
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +0 -388
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -11
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +0 -126
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +0 -34
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +0 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +0 -264
- package/jsx/work/CaseView/CaseView.stories.jsx.map +0 -1
- package/jsx/work/CaseView/Details.mocks.d.ts +0 -3
- package/jsx/work/CaseView/Details.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Details.mocks.jsx +0 -21
- package/jsx/work/CaseView/Details.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/FileService.mock.d.ts +0 -28
- package/jsx/work/CaseView/FileService.mock.d.ts.map +0 -1
- package/jsx/work/CaseView/FileService.mock.jsx +0 -143
- package/jsx/work/CaseView/FileService.mock.jsx.map +0 -1
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts +0 -11
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +0 -1
- package/jsx/work/CaseView/MobileCaseView.stories.jsx +0 -27
- package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +0 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +0 -6
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +0 -35
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -10
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -195
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -1
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +0 -9
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +0 -28
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +0 -1
- package/jsx/work/Confirmation/Confirmation.styles.d.ts +0 -2
- package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
- package/jsx/work/Confirmation/Confirmation.styles.js +0 -7
- package/jsx/work/Confirmation/Confirmation.styles.js.map +0 -1
- package/jsx/work/Details/Details.stories.d.ts +0 -5
- package/jsx/work/Details/Details.stories.d.ts.map +0 -1
- package/jsx/work/Details/Details.stories.jsx +0 -65
- package/jsx/work/Details/Details.stories.jsx.map +0 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts +0 -10
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx +0 -39
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +0 -8
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx +0 -96
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +0 -8
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +0 -199
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.styles.d.ts +0 -5
- package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.styles.js +0 -12
- package/jsx/work/SearchResults/SearchResults.styles.js.map +0 -1
- package/jsx/work/Stages/Stages.stories.d.ts +0 -11
- package/jsx/work/Stages/Stages.stories.d.ts.map +0 -1
- package/jsx/work/Stages/Stages.stories.jsx +0 -65
- package/jsx/work/Stages/Stages.stories.jsx.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +0 -17
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +0 -32
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +0 -6
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +0 -90
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
- package/jsx/work/Tags/Tags.mocks.d.ts +0 -3
- package/jsx/work/Tags/Tags.mocks.d.ts.map +0 -1
- package/jsx/work/Tags/Tags.mocks.js +0 -76
- package/jsx/work/Tags/Tags.mocks.js.map +0 -1
- package/jsx/work/Tags/Tags.stories.d.ts +0 -10
- package/jsx/work/Tags/Tags.stories.d.ts.map +0 -1
- package/jsx/work/Tags/Tags.stories.jsx +0 -61
- package/jsx/work/Tags/Tags.stories.jsx.map +0 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts +0 -5
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +0 -1
- package/jsx/work/Tasks/TaskList.stories.jsx +0 -17
- package/jsx/work/Tasks/TaskList.stories.jsx.map +0 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +0 -9
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +0 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +0 -101
- package/jsx/work/Tasks/Tasks.stories.jsx.map +0 -1
- package/jsx/work/Timeline/Timeline.mocks.d.ts +0 -3
- package/jsx/work/Timeline/Timeline.mocks.d.ts.map +0 -1
- package/jsx/work/Timeline/Timeline.mocks.jsx +0 -129
- package/jsx/work/Timeline/Timeline.mocks.jsx.map +0 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +0 -7
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +0 -43
- package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
- package/lib/build/AppHeader/AppHeader.stories.d.ts +0 -8
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +0 -1
- package/lib/build/AppHeader/AppHeader.stories.js +0 -66
- package/lib/build/AppHeader/AppHeader.stories.js.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +0 -50
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.js +0 -503
- package/lib/build/AppShell/AppShell.mocks.js.map +0 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +0 -12
- package/lib/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.stories.js +0 -192
- package/lib/build/AppShell/AppShell.stories.js.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +0 -9
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +0 -411
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +0 -12
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +0 -197
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +0 -201
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +0 -1128
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +0 -511
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +0 -1
- package/lib/build/LifeCycle/utils.d.ts +0 -65
- package/lib/build/LifeCycle/utils.d.ts.map +0 -1
- package/lib/build/LifeCycle/utils.js +0 -218
- package/lib/build/LifeCycle/utils.js.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +0 -12
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +0 -127
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +0 -26
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +0 -388
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/lib/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.js +0 -67
- package/lib/build/Workbench/Workbench.mocks.js.map +0 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +0 -10
- package/lib/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.stories.js +0 -114
- package/lib/build/Workbench/Workbench.stories.js.map +0 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -10
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +0 -166
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +0 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js +0 -113
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
- package/lib/core/AppShell/AppShell.mocks.d.ts +0 -15
- package/lib/core/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/lib/core/AppShell/AppShell.mocks.js +0 -142
- package/lib/core/AppShell/AppShell.mocks.js.map +0 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +0 -33
- package/lib/core/AppShell/AppShell.stories.d.ts.map +0 -1
- package/lib/core/AppShell/AppShell.stories.js +0 -191
- package/lib/core/AppShell/AppShell.stories.js.map +0 -1
- package/lib/core/AppShell/AppShell.styles.d.ts +0 -2
- package/lib/core/AppShell/AppShell.styles.d.ts.map +0 -1
- package/lib/core/AppShell/AppShell.styles.js +0 -5
- package/lib/core/AppShell/AppShell.styles.js.map +0 -1
- package/lib/core/Avatar/Avatar.stories.d.ts +0 -10
- package/lib/core/Avatar/Avatar.stories.d.ts.map +0 -1
- package/lib/core/Avatar/Avatar.stories.js +0 -51
- package/lib/core/Avatar/Avatar.stories.js.map +0 -1
- package/lib/core/Backdrop/Backdrop.stories.d.ts +0 -7
- package/lib/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
- package/lib/core/Backdrop/Backdrop.stories.js +0 -26
- package/lib/core/Backdrop/Backdrop.stories.js.map +0 -1
- package/lib/core/Badges/Alert.stories.d.ts +0 -6
- package/lib/core/Badges/Alert.stories.d.ts.map +0 -1
- package/lib/core/Badges/Alert.stories.js +0 -16
- package/lib/core/Badges/Alert.stories.js.map +0 -1
- package/lib/core/Badges/Count.stories.d.ts +0 -6
- package/lib/core/Badges/Count.stories.d.ts.map +0 -1
- package/lib/core/Badges/Count.stories.js +0 -21
- package/lib/core/Badges/Count.stories.js.map +0 -1
- package/lib/core/Badges/Selection.stories.d.ts +0 -6
- package/lib/core/Badges/Selection.stories.d.ts.map +0 -1
- package/lib/core/Badges/Selection.stories.js +0 -10
- package/lib/core/Badges/Selection.stories.js.map +0 -1
- package/lib/core/Badges/Status.stories.d.ts +0 -6
- package/lib/core/Badges/Status.stories.d.ts.map +0 -1
- package/lib/core/Badges/Status.stories.js +0 -19
- package/lib/core/Badges/Status.stories.js.map +0 -1
- package/lib/core/Badges/Tag.stories.d.ts +0 -6
- package/lib/core/Badges/Tag.stories.d.ts.map +0 -1
- package/lib/core/Badges/Tag.stories.js +0 -10
- package/lib/core/Badges/Tag.stories.js.map +0 -1
- package/lib/core/Banner/Banner.mocks.d.ts +0 -18
- package/lib/core/Banner/Banner.mocks.d.ts.map +0 -1
- package/lib/core/Banner/Banner.mocks.js +0 -36
- package/lib/core/Banner/Banner.mocks.js.map +0 -1
- package/lib/core/Banner/Banner.stories.d.ts +0 -22
- package/lib/core/Banner/Banner.stories.d.ts.map +0 -1
- package/lib/core/Banner/Banner.stories.js +0 -81
- package/lib/core/Banner/Banner.stories.js.map +0 -1
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js +0 -20
- package/lib/core/Boolean/BooleanDisplay.stories.js.map +0 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -7
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +0 -28
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +0 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
- package/lib/core/Button/Button.stories.d.ts +0 -12
- package/lib/core/Button/Button.stories.d.ts.map +0 -1
- package/lib/core/Button/Button.stories.js +0 -64
- package/lib/core/Button/Button.stories.js.map +0 -1
- package/lib/core/Card/Card.stories.d.ts +0 -8
- package/lib/core/Card/Card.stories.d.ts.map +0 -1
- package/lib/core/Card/Card.stories.js +0 -32
- package/lib/core/Card/Card.stories.js.map +0 -1
- package/lib/core/Card/Card.styles.d.ts +0 -2
- package/lib/core/Card/Card.styles.d.ts.map +0 -1
- package/lib/core/Card/Card.styles.js +0 -5
- package/lib/core/Card/Card.styles.js.map +0 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +0 -7
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/lib/core/Checkbox/Checkbox.stories.js +0 -29
- package/lib/core/Checkbox/Checkbox.stories.js.map +0 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -7
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +0 -32
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +0 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +0 -8
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js +0 -76
- package/lib/core/ColorPicker/ColorPicker.stories.js.map +0 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +0 -24
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
- package/lib/core/ComboBox/ComboBox.mocks.js +0 -54
- package/lib/core/ComboBox/ComboBox.mocks.js.map +0 -1
- package/lib/core/ComboBox/ComboBox.stories.d.ts +0 -31
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
- package/lib/core/ComboBox/ComboBox.stories.js +0 -376
- package/lib/core/ComboBox/ComboBox.stories.js.map +0 -1
- package/lib/core/Configuration/Configuration.stories.d.ts +0 -10
- package/lib/core/Configuration/Configuration.stories.d.ts.map +0 -1
- package/lib/core/Configuration/Configuration.stories.js +0 -75
- package/lib/core/Configuration/Configuration.stories.js.map +0 -1
- package/lib/core/Currency/Currency.stories.d.ts +0 -11
- package/lib/core/Currency/Currency.stories.d.ts.map +0 -1
- package/lib/core/Currency/Currency.stories.js +0 -66
- package/lib/core/Currency/Currency.stories.js.map +0 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +0 -20
- package/lib/core/DateTime/DateTime.stories.d.ts.map +0 -1
- package/lib/core/DateTime/DateTime.stories.js +0 -128
- package/lib/core/DateTime/DateTime.stories.js.map +0 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js +0 -48
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +0 -1
- package/lib/core/DateTime/DateTimePicker.stories.d.ts +0 -7
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
- package/lib/core/DateTime/DateTimePicker.stories.js +0 -35
- package/lib/core/DateTime/DateTimePicker.stories.js.map +0 -1
- package/lib/core/Drawer/Drawer.stories.d.ts +0 -7
- package/lib/core/Drawer/Drawer.stories.d.ts.map +0 -1
- package/lib/core/Drawer/Drawer.stories.js +0 -71
- package/lib/core/Drawer/Drawer.stories.js.map +0 -1
- package/lib/core/Drawer/Drawer.styles.d.ts +0 -2
- package/lib/core/Drawer/Drawer.styles.d.ts.map +0 -1
- package/lib/core/Drawer/Drawer.styles.js +0 -11
- package/lib/core/Drawer/Drawer.styles.js.map +0 -1
- package/lib/core/Email/EmailDisplay.stories.d.ts +0 -6
- package/lib/core/Email/EmailDisplay.stories.d.ts.map +0 -1
- package/lib/core/Email/EmailDisplay.stories.js +0 -20
- package/lib/core/Email/EmailDisplay.stories.js.map +0 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.js +0 -42
- package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +0 -1
- package/lib/core/EmptyState/EmptyState.stories.d.ts +0 -6
- package/lib/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
- package/lib/core/EmptyState/EmptyState.stories.js +0 -19
- package/lib/core/EmptyState/EmptyState.stories.js.map +0 -1
- package/lib/core/ErrorState/ErrorState.stories.d.ts +0 -9
- package/lib/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
- package/lib/core/ErrorState/ErrorState.stories.js +0 -21
- package/lib/core/ErrorState/ErrorState.stories.js.map +0 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +0 -28
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +0 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +0 -11
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js +0 -22
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +0 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -21
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.js +0 -38
- package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +0 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +0 -10
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.js +0 -106
- package/lib/core/FieldGroup/FieldGroupList.stories.js.map +0 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +0 -10
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
- package/lib/core/FieldValueList/FieldValueList.stories.js +0 -51
- package/lib/core/FieldValueList/FieldValueList.stories.js.map +0 -1
- package/lib/core/File/FileDisplay.stories.d.ts +0 -20
- package/lib/core/File/FileDisplay.stories.d.ts.map +0 -1
- package/lib/core/File/FileDisplay.stories.js +0 -126
- package/lib/core/File/FileDisplay.stories.js.map +0 -1
- package/lib/core/File/FileInput.stories.d.ts +0 -9
- package/lib/core/File/FileInput.stories.d.ts.map +0 -1
- package/lib/core/File/FileInput.stories.js +0 -78
- package/lib/core/File/FileInput.stories.js.map +0 -1
- package/lib/core/Flex/Flex.styles.d.ts +0 -10
- package/lib/core/Flex/Flex.styles.d.ts.map +0 -1
- package/lib/core/Flex/Flex.styles.js +0 -41
- package/lib/core/Flex/Flex.styles.js.map +0 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +0 -22
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +0 -1
- package/lib/core/Flex/FlexContainer.stories.js +0 -82
- package/lib/core/Flex/FlexContainer.stories.js.map +0 -1
- package/lib/core/Flex/FlexItem.stories.d.ts +0 -13
- package/lib/core/Flex/FlexItem.stories.d.ts.map +0 -1
- package/lib/core/Flex/FlexItem.stories.js +0 -41
- package/lib/core/Flex/FlexItem.stories.js.map +0 -1
- package/lib/core/Form/Form.mocks.d.ts +0 -8
- package/lib/core/Form/Form.mocks.d.ts.map +0 -1
- package/lib/core/Form/Form.mocks.js +0 -97
- package/lib/core/Form/Form.mocks.js.map +0 -1
- package/lib/core/Form/Form.stories.d.ts +0 -14
- package/lib/core/Form/Form.stories.d.ts.map +0 -1
- package/lib/core/Form/Form.stories.js +0 -52
- package/lib/core/Form/Form.stories.js.map +0 -1
- package/lib/core/Grid/Grid.styles.d.ts +0 -6
- package/lib/core/Grid/Grid.styles.d.ts.map +0 -1
- package/lib/core/Grid/Grid.styles.js +0 -36
- package/lib/core/Grid/Grid.styles.js.map +0 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +0 -24
- package/lib/core/Grid/GridContainer.stories.d.ts.map +0 -1
- package/lib/core/Grid/GridContainer.stories.js +0 -115
- package/lib/core/Grid/GridContainer.stories.js.map +0 -1
- package/lib/core/Grid/GridItem.stories.d.ts +0 -13
- package/lib/core/Grid/GridItem.stories.d.ts.map +0 -1
- package/lib/core/Grid/GridItem.stories.js +0 -36
- package/lib/core/Grid/GridItem.stories.js.map +0 -1
- package/lib/core/Icon/Icon.mocks.d.ts +0 -3
- package/lib/core/Icon/Icon.mocks.d.ts.map +0 -1
- package/lib/core/Icon/Icon.mocks.js +0 -10
- package/lib/core/Icon/Icon.mocks.js.map +0 -1
- package/lib/core/Icon/Icon.stories.d.ts +0 -9
- package/lib/core/Icon/Icon.stories.d.ts.map +0 -1
- package/lib/core/Icon/Icon.stories.js +0 -82
- package/lib/core/Icon/Icon.stories.js.map +0 -1
- package/lib/core/IconPicker/IconPicker.stories.d.ts +0 -6
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
- package/lib/core/IconPicker/IconPicker.stories.js +0 -39
- package/lib/core/IconPicker/IconPicker.stories.js.map +0 -1
- package/lib/core/Image/Image.stories.d.ts +0 -6
- package/lib/core/Image/Image.stories.d.ts.map +0 -1
- package/lib/core/Image/Image.stories.js +0 -10
- package/lib/core/Image/Image.stories.js.map +0 -1
- package/lib/core/Input/Input.stories.d.ts +0 -9
- package/lib/core/Input/Input.stories.d.ts.map +0 -1
- package/lib/core/Input/Input.stories.js +0 -45
- package/lib/core/Input/Input.stories.js.map +0 -1
- package/lib/core/Label/Label.stories.d.ts +0 -6
- package/lib/core/Label/Label.stories.d.ts.map +0 -1
- package/lib/core/Label/Label.stories.js +0 -16
- package/lib/core/Label/Label.stories.js.map +0 -1
- package/lib/core/Lightbox/Lightbox.mocks.d.ts +0 -15
- package/lib/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
- package/lib/core/Lightbox/Lightbox.mocks.js +0 -67
- package/lib/core/Lightbox/Lightbox.mocks.js.map +0 -1
- package/lib/core/Lightbox/Lightbox.stories.d.ts +0 -10
- package/lib/core/Lightbox/Lightbox.stories.d.ts.map +0 -1
- package/lib/core/Lightbox/Lightbox.stories.js +0 -51
- package/lib/core/Lightbox/Lightbox.stories.js.map +0 -1
- package/lib/core/Link/Link.stories.d.ts +0 -18
- package/lib/core/Link/Link.stories.d.ts.map +0 -1
- package/lib/core/Link/Link.stories.js +0 -30
- package/lib/core/Link/Link.stories.js.map +0 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +0 -6
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
- package/lib/core/List/CommaSeparatedList.stories.js +0 -32
- package/lib/core/List/CommaSeparatedList.stories.js.map +0 -1
- package/lib/core/List/OrderedList.stories.d.ts +0 -10
- package/lib/core/List/OrderedList.stories.d.ts.map +0 -1
- package/lib/core/List/OrderedList.stories.js +0 -39
- package/lib/core/List/OrderedList.stories.js.map +0 -1
- package/lib/core/List/UnorderedList.stories.d.ts +0 -10
- package/lib/core/List/UnorderedList.stories.d.ts.map +0 -1
- package/lib/core/List/UnorderedList.stories.js +0 -39
- package/lib/core/List/UnorderedList.stories.js.map +0 -1
- package/lib/core/Location/Location.stories.d.ts +0 -12
- package/lib/core/Location/Location.stories.d.ts.map +0 -1
- package/lib/core/Location/Location.stories.js +0 -123
- package/lib/core/Location/Location.stories.js.map +0 -1
- package/lib/core/Menu/Menu.mocks.d.ts +0 -4
- package/lib/core/Menu/Menu.mocks.d.ts.map +0 -1
- package/lib/core/Menu/Menu.mocks.js +0 -179
- package/lib/core/Menu/Menu.mocks.js.map +0 -1
- package/lib/core/Menu/Menu.stories.d.ts +0 -16
- package/lib/core/Menu/Menu.stories.d.ts.map +0 -1
- package/lib/core/Menu/Menu.stories.js +0 -148
- package/lib/core/Menu/Menu.stories.js.map +0 -1
- package/lib/core/Menu/Menu.styles.d.ts +0 -2
- package/lib/core/Menu/Menu.styles.d.ts.map +0 -1
- package/lib/core/Menu/Menu.styles.js +0 -6
- package/lib/core/Menu/Menu.styles.js.map +0 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +0 -15
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
- package/lib/core/MenuButton/MenuButton.stories.js +0 -185
- package/lib/core/MenuButton/MenuButton.stories.js.map +0 -1
- package/lib/core/MetaList/MetaList.stories.d.ts +0 -9
- package/lib/core/MetaList/MetaList.stories.d.ts.map +0 -1
- package/lib/core/MetaList/MetaList.stories.js +0 -20
- package/lib/core/MetaList/MetaList.stories.js.map +0 -1
- package/lib/core/Modal/Modal.mocks.d.ts +0 -4
- package/lib/core/Modal/Modal.mocks.d.ts.map +0 -1
- package/lib/core/Modal/Modal.mocks.js +0 -36
- package/lib/core/Modal/Modal.mocks.js.map +0 -1
- package/lib/core/Modal/Modal.stories.d.ts +0 -20
- package/lib/core/Modal/Modal.stories.d.ts.map +0 -1
- package/lib/core/Modal/Modal.stories.js +0 -232
- package/lib/core/Modal/Modal.stories.js.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.js +0 -36
- package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
- package/lib/core/Number/Number.stories.d.ts +0 -13
- package/lib/core/Number/Number.stories.d.ts.map +0 -1
- package/lib/core/Number/Number.stories.js +0 -111
- package/lib/core/Number/Number.stories.js.map +0 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.js +0 -10
- package/lib/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +0 -31
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +0 -226
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +0 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +0 -4
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
- package/lib/core/PageTemplates/PageTemplates.styles.js +0 -31
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +0 -1
- package/lib/core/Pagination/Pagination.stories.d.ts +0 -6
- package/lib/core/Pagination/Pagination.stories.d.ts.map +0 -1
- package/lib/core/Pagination/Pagination.stories.js +0 -20
- package/lib/core/Pagination/Pagination.stories.js.map +0 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js +0 -16
- package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +0 -1
- package/lib/core/Phone/Phone.stories.d.ts +0 -7
- package/lib/core/Phone/Phone.stories.d.ts.map +0 -1
- package/lib/core/Phone/Phone.stories.js +0 -43
- package/lib/core/Phone/Phone.stories.js.map +0 -1
- package/lib/core/Popover/Popover.stories.d.ts +0 -7
- package/lib/core/Popover/Popover.stories.d.ts.map +0 -1
- package/lib/core/Popover/Popover.stories.js +0 -95
- package/lib/core/Popover/Popover.stories.js.map +0 -1
- package/lib/core/Progress/Progress.stories.d.ts +0 -7
- package/lib/core/Progress/Progress.stories.d.ts.map +0 -1
- package/lib/core/Progress/Progress.stories.js +0 -64
- package/lib/core/Progress/Progress.stories.js.map +0 -1
- package/lib/core/Progress/Progress.styles.d.ts +0 -2
- package/lib/core/Progress/Progress.styles.d.ts.map +0 -1
- package/lib/core/Progress/Progress.styles.js +0 -13
- package/lib/core/Progress/Progress.styles.js.map +0 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +0 -7
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
- package/lib/core/RadioButton/RadioButton.stories.js +0 -27
- package/lib/core/RadioButton/RadioButton.stories.js.map +0 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -7
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +0 -34
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +0 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
- package/lib/core/Rating/Rating.stories.d.ts +0 -9
- package/lib/core/Rating/Rating.stories.d.ts.map +0 -1
- package/lib/core/Rating/Rating.stories.js +0 -22
- package/lib/core/Rating/Rating.stories.js.map +0 -1
- package/lib/core/SearchInput/SearchInput.stories.d.ts +0 -6
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
- package/lib/core/SearchInput/SearchInput.stories.js +0 -16
- package/lib/core/SearchInput/SearchInput.stories.js.map +0 -1
- package/lib/core/Select/Select.stories.d.ts +0 -9
- package/lib/core/Select/Select.stories.d.ts.map +0 -1
- package/lib/core/Select/Select.stories.js +0 -38
- package/lib/core/Select/Select.stories.js.map +0 -1
- package/lib/core/Sentiment/Sentiment.stories.d.ts +0 -14
- package/lib/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
- package/lib/core/Sentiment/Sentiment.stories.js +0 -40
- package/lib/core/Sentiment/Sentiment.stories.js.map +0 -1
- package/lib/core/Slider/Slider.stories.d.ts +0 -11
- package/lib/core/Slider/Slider.stories.d.ts.map +0 -1
- package/lib/core/Slider/Slider.stories.js +0 -59
- package/lib/core/Slider/Slider.stories.js.map +0 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
- package/lib/core/SummaryItem/SummaryItem.stories.js +0 -32
- package/lib/core/SummaryItem/SummaryItem.stories.js.map +0 -1
- package/lib/core/SummaryList/SummaryList.mocks.d.ts +0 -32
- package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
- package/lib/core/SummaryList/SummaryList.mocks.js +0 -34
- package/lib/core/SummaryList/SummaryList.mocks.js.map +0 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +0 -13
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
- package/lib/core/SummaryList/SummaryList.stories.js +0 -126
- package/lib/core/SummaryList/SummaryList.stories.js.map +0 -1
- package/lib/core/Switch/Switch.stories.d.ts +0 -7
- package/lib/core/Switch/Switch.stories.d.ts.map +0 -1
- package/lib/core/Switch/Switch.stories.js +0 -25
- package/lib/core/Switch/Switch.stories.js.map +0 -1
- package/lib/core/Switch/Switch.styles.d.ts +0 -2
- package/lib/core/Switch/Switch.styles.d.ts.map +0 -1
- package/lib/core/Switch/Switch.styles.js +0 -13
- package/lib/core/Switch/Switch.styles.js.map +0 -1
- package/lib/core/Table/Table.mocks.d.ts +0 -19
- package/lib/core/Table/Table.mocks.d.ts.map +0 -1
- package/lib/core/Table/Table.mocks.js +0 -30
- package/lib/core/Table/Table.mocks.js.map +0 -1
- package/lib/core/Table/Table.stories.d.ts +0 -14
- package/lib/core/Table/Table.stories.d.ts.map +0 -1
- package/lib/core/Table/Table.stories.js +0 -54
- package/lib/core/Table/Table.stories.js.map +0 -1
- package/lib/core/Table/Table.styles.d.ts +0 -4
- package/lib/core/Table/Table.styles.d.ts.map +0 -1
- package/lib/core/Table/Table.styles.js +0 -9
- package/lib/core/Table/Table.styles.js.map +0 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +0 -7
- package/lib/core/Tabs/Tabs.stories.d.ts.map +0 -1
- package/lib/core/Tabs/Tabs.stories.js +0 -42
- package/lib/core/Tabs/Tabs.stories.js.map +0 -1
- package/lib/core/Text/Text.stories.d.ts +0 -6
- package/lib/core/Text/Text.stories.d.ts.map +0 -1
- package/lib/core/Text/Text.stories.js +0 -21
- package/lib/core/Text/Text.stories.js.map +0 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +0 -6
- package/lib/core/TextArea/TextArea.stories.d.ts.map +0 -1
- package/lib/core/TextArea/TextArea.stories.js +0 -44
- package/lib/core/TextArea/TextArea.stories.js.map +0 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +0 -6
- package/lib/core/Toaster/Toaster.stories.d.ts.map +0 -1
- package/lib/core/Toaster/Toaster.stories.js +0 -30
- package/lib/core/Toaster/Toaster.stories.js.map +0 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +0 -8
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/lib/core/Tooltip/Tooltip.stories.js +0 -11
- package/lib/core/Tooltip/Tooltip.stories.js.map +0 -1
- package/lib/core/Tree/Tree.mocks.d.ts +0 -2
- package/lib/core/Tree/Tree.mocks.d.ts.map +0 -1
- package/lib/core/Tree/Tree.mocks.js +0 -22
- package/lib/core/Tree/Tree.mocks.js.map +0 -1
- package/lib/core/Tree/Tree.stories.d.ts +0 -8
- package/lib/core/Tree/Tree.stories.d.ts.map +0 -1
- package/lib/core/Tree/Tree.stories.js +0 -85
- package/lib/core/Tree/Tree.stories.js.map +0 -1
- package/lib/core/Tree/Tree.styles.d.ts +0 -3
- package/lib/core/Tree/Tree.styles.d.ts.map +0 -1
- package/lib/core/Tree/Tree.styles.js +0 -10
- package/lib/core/Tree/Tree.styles.js.map +0 -1
- package/lib/core/URL/URL.stories.d.ts +0 -6
- package/lib/core/URL/URL.stories.d.ts.map +0 -1
- package/lib/core/URL/URL.stories.js +0 -18
- package/lib/core/URL/URL.stories.js.map +0 -1
- package/lib/cs/Article/Article.mocks.d.ts +0 -14
- package/lib/cs/Article/Article.mocks.d.ts.map +0 -1
- package/lib/cs/Article/Article.mocks.js +0 -14
- package/lib/cs/Article/Article.mocks.js.map +0 -1
- package/lib/cs/Article/Article.stories.d.ts +0 -15
- package/lib/cs/Article/Article.stories.d.ts.map +0 -1
- package/lib/cs/Article/Article.stories.js +0 -85
- package/lib/cs/Article/Article.stories.js.map +0 -1
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts +0 -21
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +0 -1
- package/lib/cs/ArticleList/ArticleList.mocks.js +0 -102
- package/lib/cs/ArticleList/ArticleList.mocks.js.map +0 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +0 -16
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +0 -1
- package/lib/cs/ArticleList/ArticleList.stories.js +0 -83
- package/lib/cs/ArticleList/ArticleList.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +0 -45
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.js +0 -240
- package/lib/cs/CSCaseView/CSAppShell.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -57
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +0 -224
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -16
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +0 -110
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -13
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +0 -193
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.js +0 -17
- package/lib/cs/DialPad/DialPad.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -13
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +0 -335
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -8
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +0 -31
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -14
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +0 -86
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +0 -13
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +0 -140
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +0 -8
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +0 -299
- package/lib/cs/TaskManager/TaskManager.stories.js.map +0 -1
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +0 -11
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
- package/lib/dnd/DragDropList/DragDropList.stories.js +0 -113
- package/lib/dnd/DragDropList/DragDropList.stories.js.map +0 -1
- package/lib/rte/Editor/Editor.stories.d.ts +0 -11
- package/lib/rte/Editor/Editor.stories.d.ts.map +0 -1
- package/lib/rte/Editor/Editor.stories.js +0 -100
- package/lib/rte/Editor/Editor.stories.js.map +0 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +0 -36
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +0 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -10
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js +0 -114
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +0 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -8
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js +0 -66
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +0 -1
- package/lib/social/Chat/Chat.mocks.d.ts +0 -385
- package/lib/social/Chat/Chat.mocks.d.ts.map +0 -1
- package/lib/social/Chat/Chat.mocks.js +0 -648
- package/lib/social/Chat/Chat.mocks.js.map +0 -1
- package/lib/social/Chat/Chat.stories.d.ts +0 -54
- package/lib/social/Chat/Chat.stories.d.ts.map +0 -1
- package/lib/social/Chat/Chat.stories.js +0 -435
- package/lib/social/Chat/Chat.stories.js.map +0 -1
- package/lib/social/Chat/RepeatingView.stories.d.ts +0 -20
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +0 -1
- package/lib/social/Chat/RepeatingView.stories.js +0 -89
- package/lib/social/Chat/RepeatingView.stories.js.map +0 -1
- package/lib/social/Email/Email.mocks.d.ts +0 -87
- package/lib/social/Email/Email.mocks.d.ts.map +0 -1
- package/lib/social/Email/Email.mocks.js +0 -350
- package/lib/social/Email/Email.mocks.js.map +0 -1
- package/lib/social/Email/Email.stories.d.ts +0 -28
- package/lib/social/Email/Email.stories.d.ts.map +0 -1
- package/lib/social/Email/Email.stories.js +0 -845
- package/lib/social/Email/Email.stories.js.map +0 -1
- package/lib/social/Feed/Feed.mocks.d.ts +0 -52
- package/lib/social/Feed/Feed.mocks.d.ts.map +0 -1
- package/lib/social/Feed/Feed.mocks.js +0 -307
- package/lib/social/Feed/Feed.mocks.js.map +0 -1
- package/lib/social/Feed/Feed.stories.d.ts +0 -15
- package/lib/social/Feed/Feed.stories.d.ts.map +0 -1
- package/lib/social/Feed/Feed.stories.js +0 -145
- package/lib/social/Feed/Feed.stories.js.map +0 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts +0 -17
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedNewPost.stories.js +0 -82
- package/lib/social/Feed/FeedNewPost.stories.js.map +0 -1
- package/lib/social/Feed/FeedPost.stories.d.ts +0 -9
- package/lib/social/Feed/FeedPost.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedPost.stories.js +0 -239
- package/lib/social/Feed/FeedPost.stories.js.map +0 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +0 -16
- package/lib/social/Feed/FeedReply.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedReply.stories.js +0 -95
- package/lib/social/Feed/FeedReply.stories.js.map +0 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +0 -15
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +0 -60
- package/lib/social/Feed/FeedReplyInput.stories.js.map +0 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +0 -30
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +0 -1
- package/lib/work/CaseView/Attachments.mocks.d.ts +0 -3
- package/lib/work/CaseView/Attachments.mocks.d.ts.map +0 -1
- package/lib/work/CaseView/Attachments.mocks.js +0 -373
- package/lib/work/CaseView/Attachments.mocks.js.map +0 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +0 -11
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +0 -1
- package/lib/work/CaseView/CaseView.mocks.js +0 -116
- package/lib/work/CaseView/CaseView.mocks.js.map +0 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +0 -34
- package/lib/work/CaseView/CaseView.stories.d.ts.map +0 -1
- package/lib/work/CaseView/CaseView.stories.js +0 -276
- package/lib/work/CaseView/CaseView.stories.js.map +0 -1
- package/lib/work/CaseView/Details.mocks.d.ts +0 -3
- package/lib/work/CaseView/Details.mocks.d.ts.map +0 -1
- package/lib/work/CaseView/Details.mocks.js +0 -7
- package/lib/work/CaseView/Details.mocks.js.map +0 -1
- package/lib/work/CaseView/FileService.mock.d.ts +0 -28
- package/lib/work/CaseView/FileService.mock.d.ts.map +0 -1
- package/lib/work/CaseView/FileService.mock.js +0 -162
- package/lib/work/CaseView/FileService.mock.js.map +0 -1
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +0 -11
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +0 -1
- package/lib/work/CaseView/MobileCaseView.stories.js +0 -28
- package/lib/work/CaseView/MobileCaseView.stories.js.map +0 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +0 -6
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +0 -1
- package/lib/work/CaseView/Pulse.mocks.js +0 -25
- package/lib/work/CaseView/Pulse.mocks.js.map +0 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -10
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +0 -194
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +0 -1
- package/lib/work/Confirmation/Confirmation.stories.d.ts +0 -9
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
- package/lib/work/Confirmation/Confirmation.stories.js +0 -26
- package/lib/work/Confirmation/Confirmation.stories.js.map +0 -1
- package/lib/work/Confirmation/Confirmation.styles.d.ts +0 -2
- package/lib/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
- package/lib/work/Confirmation/Confirmation.styles.js +0 -7
- package/lib/work/Confirmation/Confirmation.styles.js.map +0 -1
- package/lib/work/Details/Details.stories.d.ts +0 -5
- package/lib/work/Details/Details.stories.d.ts.map +0 -1
- package/lib/work/Details/Details.stories.js +0 -62
- package/lib/work/Details/Details.stories.js.map +0 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts +0 -10
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
- package/lib/work/Glimpse/Glimpse.stories.js +0 -40
- package/lib/work/Glimpse/Glimpse.stories.js.map +0 -1
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +0 -8
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
- package/lib/work/SearchResults/SearchResults.mocks.js +0 -97
- package/lib/work/SearchResults/SearchResults.mocks.js.map +0 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +0 -8
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
- package/lib/work/SearchResults/SearchResults.stories.js +0 -192
- package/lib/work/SearchResults/SearchResults.stories.js.map +0 -1
- package/lib/work/SearchResults/SearchResults.styles.d.ts +0 -5
- package/lib/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
- package/lib/work/SearchResults/SearchResults.styles.js +0 -12
- package/lib/work/SearchResults/SearchResults.styles.js.map +0 -1
- package/lib/work/Stages/Stages.stories.d.ts +0 -11
- package/lib/work/Stages/Stages.stories.d.ts.map +0 -1
- package/lib/work/Stages/Stages.stories.js +0 -64
- package/lib/work/Stages/Stages.stories.js.map +0 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts +0 -22
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js +0 -36
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +0 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +0 -6
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js +0 -111
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +0 -1
- package/lib/work/Tags/Tags.mocks.d.ts +0 -3
- package/lib/work/Tags/Tags.mocks.d.ts.map +0 -1
- package/lib/work/Tags/Tags.mocks.js +0 -76
- package/lib/work/Tags/Tags.mocks.js.map +0 -1
- package/lib/work/Tags/Tags.stories.d.ts +0 -10
- package/lib/work/Tags/Tags.stories.d.ts.map +0 -1
- package/lib/work/Tags/Tags.stories.js +0 -62
- package/lib/work/Tags/Tags.stories.js.map +0 -1
- package/lib/work/Tasks/TaskList.stories.d.ts +0 -5
- package/lib/work/Tasks/TaskList.stories.d.ts.map +0 -1
- package/lib/work/Tasks/TaskList.stories.js +0 -18
- package/lib/work/Tasks/TaskList.stories.js.map +0 -1
- package/lib/work/Tasks/Tasks.stories.d.ts +0 -9
- package/lib/work/Tasks/Tasks.stories.d.ts.map +0 -1
- package/lib/work/Tasks/Tasks.stories.js +0 -80
- package/lib/work/Tasks/Tasks.stories.js.map +0 -1
- package/lib/work/Timeline/Timeline.mocks.d.ts +0 -3
- package/lib/work/Timeline/Timeline.mocks.d.ts.map +0 -1
- package/lib/work/Timeline/Timeline.mocks.js +0 -117
- package/lib/work/Timeline/Timeline.mocks.js.map +0 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +0 -7
- package/lib/work/Timeline/Timeline.stories.d.ts.map +0 -1
- package/lib/work/Timeline/Timeline.stories.js +0 -44
- package/lib/work/Timeline/Timeline.stories.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropList.stories.d.ts","sourceRoot":"","sources":["../../../src/dnd/DragDropList/DragDropList.stories.tsx"],"names":[],"mappings":";;;;;;;;AAcA,wBAME;AAiHF,eAAO,MAAM,gBAAgB,mBAgE5B,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useState } from 'react';
|
|
3
|
-
import { action } from '@storybook/addon-actions';
|
|
4
|
-
import { optionsKnob } from '@storybook/addon-knobs';
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { Button, Flex, createUID } from '@pega/cosmos-react-core';
|
|
7
|
-
import { DragDropManager, DragDropList } from '@pega/cosmos-react-dnd';
|
|
8
|
-
export default {
|
|
9
|
-
title: 'DnD/DragDropList',
|
|
10
|
-
component: DragDropList,
|
|
11
|
-
parameters: {
|
|
12
|
-
layout: 'fullscreen'
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
// Helper function to create demo arrays
|
|
16
|
-
const createMockDataArray = (length, type, listId) => {
|
|
17
|
-
return Array.from({ length }, (_, i) => {
|
|
18
|
-
const id = `${i}`;
|
|
19
|
-
return {
|
|
20
|
-
type,
|
|
21
|
-
id: createUID(),
|
|
22
|
-
data: {
|
|
23
|
-
content: `Item ${listId}:${id}`,
|
|
24
|
-
color: `hsl(${(i * 360) / length}deg, 100%, 66%)`
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
// styled demo list component
|
|
30
|
-
const StyledEmptyItem = styled.li `
|
|
31
|
-
display: grid;
|
|
32
|
-
padding: 1rem;
|
|
33
|
-
gap: 1rem;
|
|
34
|
-
`;
|
|
35
|
-
// Demo component used to render list items
|
|
36
|
-
const EmptyItem = () => {
|
|
37
|
-
return _jsx(StyledEmptyItem, { children: "No Items" }, void 0);
|
|
38
|
-
};
|
|
39
|
-
// styled demo list component
|
|
40
|
-
const StyledDemoDragDropList = styled.ul `
|
|
41
|
-
list-style: none;
|
|
42
|
-
position: relative;
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
flex-grow: 1;
|
|
46
|
-
padding: 0.5rem;
|
|
47
|
-
`;
|
|
48
|
-
// styled demo list item component
|
|
49
|
-
const StyledDemoDragDropListItem = styled.li `
|
|
50
|
-
border: 0.0625rem dashed gray;
|
|
51
|
-
margin: 0.5rem;
|
|
52
|
-
padding: 0.5rem;
|
|
53
|
-
background: white;
|
|
54
|
-
cursor: ${({ useDragHandle }) => (useDragHandle ? 'auto' : 'move')};
|
|
55
|
-
transition: transform 0.3s;
|
|
56
|
-
|
|
57
|
-
.handle {
|
|
58
|
-
background: pink;
|
|
59
|
-
width: 1rem;
|
|
60
|
-
height: 1rem;
|
|
61
|
-
display: inline-block;
|
|
62
|
-
margin-right: 0.0625rem;
|
|
63
|
-
cursor: move;
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
// Demo component used to render list items
|
|
67
|
-
const DemoListItem = ({ id, type, dragRef, data, isDragging, ...restProps }) => {
|
|
68
|
-
return (_jsx(StyledDemoDragDropListItem, { ref: dragRef, style: {
|
|
69
|
-
opacity: isDragging ? '0.5' : undefined,
|
|
70
|
-
backgroundColor: data?.color ?? 'white'
|
|
71
|
-
}, ...restProps, children: data?.content }, void 0));
|
|
72
|
-
};
|
|
73
|
-
const pullModes = {
|
|
74
|
-
remove: 'remove',
|
|
75
|
-
clone: 'clone'
|
|
76
|
-
};
|
|
77
|
-
const pushModes = {
|
|
78
|
-
insert: 'insert',
|
|
79
|
-
prepend: 'prepend',
|
|
80
|
-
append: 'append',
|
|
81
|
-
sort: 'sort'
|
|
82
|
-
};
|
|
83
|
-
const sort = (a, b) => {
|
|
84
|
-
return a.data.content.localeCompare(b.data.content);
|
|
85
|
-
};
|
|
86
|
-
const itemType = Symbol('');
|
|
87
|
-
const mockDataArrayA = createMockDataArray(10, itemType, 'A');
|
|
88
|
-
const mockDataArrayB = createMockDataArray(4, itemType, 'B');
|
|
89
|
-
// -----------------------------------------------------------------------------
|
|
90
|
-
// DragDropList
|
|
91
|
-
// -----------------------------------------------------------------------------
|
|
92
|
-
export const DragDropListDemo = () => {
|
|
93
|
-
const pullMode = optionsKnob('Pull Mode', pullModes, 'remove', { display: 'inline-radio' });
|
|
94
|
-
const pushMode = optionsKnob('Push Mode', pushModes, 'insert', { display: 'inline-radio' });
|
|
95
|
-
const [arrayA, setArrayA] = useState(mockDataArrayA);
|
|
96
|
-
const [arrayB, setArrayB] = useState(mockDataArrayB);
|
|
97
|
-
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: useCallback(() => {
|
|
98
|
-
setArrayA(items => {
|
|
99
|
-
return [...items, ...createMockDataArray(1, itemType, 'A-new')];
|
|
100
|
-
});
|
|
101
|
-
}, []), children: "Add to List A" }, void 0), _jsx(Button, { onClick: useCallback(() => {
|
|
102
|
-
setArrayB(items => {
|
|
103
|
-
return [...items, ...createMockDataArray(1, itemType, 'B-new')];
|
|
104
|
-
});
|
|
105
|
-
}, []), children: "Add to List B" }, void 0), _jsx(DragDropManager, { children: _jsxs(Flex, { container: true, style: { minHeight: '100vh' }, children: [_jsx(DragDropList, { as: StyledDemoDragDropList, id: 'list1', accept: itemType, pullMode: pullMode, pushMode: pushMode === 'sort' ? sort : pushMode, items: arrayA, itemRenderer: DemoListItem, emptyRenderer: EmptyItem, onChange: newArray => {
|
|
106
|
-
setArrayA(newArray);
|
|
107
|
-
action('List A changed')(newArray);
|
|
108
|
-
}, style: { background: 'palegreen' } }, void 0), _jsx(DragDropList, { as: StyledDemoDragDropList, id: 'list2', accept: itemType, pullMode: pullMode, pushMode: pushMode === 'sort' ? sort : pushMode, items: arrayB, itemRenderer: DemoListItem, emptyRenderer: EmptyItem, onChange: newArray => {
|
|
109
|
-
setArrayB(newArray);
|
|
110
|
-
action('List B changed')(newArray);
|
|
111
|
-
}, style: { background: 'lightblue' } }, void 0)] }, void 0) }, void 0)] }, void 0));
|
|
112
|
-
};
|
|
113
|
-
//# sourceMappingURL=DragDropList.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropList.stories.js","sourceRoot":"","sources":["../../../src/dnd/DragDropList/DragDropList.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACL,eAAe,EAGf,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAA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AEF,KAAC,YAAY,IACX,EAAE,EAAE,sBAAsB,EAC1B,EAAE,EAAC,OAAO,EACV,MAAM,EAAE,QAAQ,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAC/C,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,SAAS,EACxB,QAAQ,EAAE,QAAQ,CAAC,EAAE;gCACnB,SAAS,CAAC,QAAQ,CAAC,CAAC;gCACpB,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;4BACrC,CAAC,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,WAClC,YACG,WACS,YACjB,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useState } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { optionsKnob } from '@storybook/addon-knobs';\nimport styled from 'styled-components';\n\nimport { Button, Flex, createUID } from '@pega/cosmos-react-core';\nimport {\n DragDropManager,\n DraggableItem,\n DraggableProps,\n DragDropList,\n ItemRendererProps\n} from '@pega/cosmos-react-dnd';\n\nexport default {\n title: 'DnD/DragDropList',\n component: DragDropList,\n parameters: {\n layout: 'fullscreen'\n }\n};\n\ninterface ItemData {\n content: string;\n color: string;\n}\n\n// Helper function to create demo arrays\nconst createMockDataArray = (\n length: number,\n type: DraggableProps['type'],\n listId: string\n): DraggableItem<ItemData>[] => {\n return Array.from({ length }, (_, i) => {\n const id = `${i}`;\n return {\n type,\n id: createUID(),\n data: {\n content: `Item ${listId}:${id}`,\n color: `hsl(${(i * 360) / length}deg, 100%, 66%)`\n }\n };\n });\n};\n\n// styled demo list component\nconst StyledEmptyItem = styled.li`\n display: grid;\n padding: 1rem;\n gap: 1rem;\n`;\n\n// Demo component used to render list items\nconst EmptyItem = () => {\n return <StyledEmptyItem>No Items</StyledEmptyItem>;\n};\n\n// styled demo list component\nconst StyledDemoDragDropList = styled.ul`\n list-style: none;\n position: relative;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n padding: 0.5rem;\n`;\n\n// styled demo list item component\nconst StyledDemoDragDropListItem = styled.li<{ [key: string]: any }>`\n border: 0.0625rem dashed gray;\n margin: 0.5rem;\n padding: 0.5rem;\n background: white;\n cursor: ${({ useDragHandle }) => (useDragHandle ? 'auto' : 'move')};\n transition: transform 0.3s;\n\n .handle {\n background: pink;\n width: 1rem;\n height: 1rem;\n display: inline-block;\n margin-right: 0.0625rem;\n cursor: move;\n }\n`;\n\n// Demo component used to render list items\nconst DemoListItem = ({\n id,\n type,\n dragRef,\n data,\n isDragging,\n ...restProps\n}: ItemRendererProps<ItemData>) => {\n return (\n <StyledDemoDragDropListItem\n ref={dragRef}\n style={{\n opacity: isDragging ? '0.5' : undefined,\n backgroundColor: data?.color ?? 'white'\n }}\n {...restProps}\n >\n {data?.content}\n </StyledDemoDragDropListItem>\n );\n};\n\nconst pullModes = {\n remove: 'remove',\n clone: 'clone'\n} as const;\n\nconst pushModes = {\n insert: 'insert',\n prepend: 'prepend',\n append: 'append',\n sort: 'sort'\n} as const;\n\nconst sort = (a: DraggableItem<ItemData>, b: DraggableItem<ItemData>): number => {\n return a.data!.content.localeCompare(b.data!.content);\n};\n\nconst itemType = Symbol('');\nconst mockDataArrayA = createMockDataArray(10, itemType, 'A');\nconst mockDataArrayB = createMockDataArray(4, itemType, 'B');\n\n// -----------------------------------------------------------------------------\n// DragDropList\n// -----------------------------------------------------------------------------\nexport const DragDropListDemo = () => {\n const pullMode = optionsKnob('Pull Mode', pullModes, 'remove', { display: 'inline-radio' });\n const pushMode = optionsKnob('Push Mode', pushModes, 'insert', { display: 'inline-radio' });\n\n const [arrayA, setArrayA] = useState(mockDataArrayA);\n const [arrayB, setArrayB] = useState(mockDataArrayB);\n\n return (\n <>\n <Button\n onClick={useCallback(() => {\n setArrayA(items => {\n return [...items, ...createMockDataArray(1, itemType, 'A-new')];\n });\n }, [])}\n >\n Add to List A\n </Button>\n <Button\n onClick={useCallback(() => {\n setArrayB(items => {\n return [...items, ...createMockDataArray(1, itemType, 'B-new')];\n });\n }, [])}\n >\n Add to List B\n </Button>\n <DragDropManager>\n <Flex container style={{ minHeight: '100vh' }}>\n <DragDropList\n as={StyledDemoDragDropList}\n id='list1'\n accept={itemType}\n pullMode={pullMode}\n pushMode={pushMode === 'sort' ? sort : pushMode}\n items={arrayA}\n itemRenderer={DemoListItem}\n emptyRenderer={EmptyItem}\n onChange={newArray => {\n setArrayA(newArray);\n action('List A changed')(newArray);\n }}\n style={{ background: 'palegreen' }}\n />\n\n <DragDropList\n as={StyledDemoDragDropList}\n id='list2'\n accept={itemType}\n pullMode={pullMode}\n pushMode={pushMode === 'sort' ? sort : pushMode}\n items={arrayB}\n itemRenderer={DemoListItem}\n emptyRenderer={EmptyItem}\n onChange={newArray => {\n setArrayB(newArray);\n action('List B changed')(newArray);\n }}\n style={{ background: 'lightblue' }}\n />\n </Flex>\n </DragDropManager>\n </>\n );\n};\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Meta } from '@storybook/react';
|
|
3
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const EditorDemo: () => JSX.Element;
|
|
6
|
-
export declare const EmptyEditorDemo: () => JSX.Element;
|
|
7
|
-
export declare const ReadonlyFormField: () => JSX.Element;
|
|
8
|
-
export declare const CustomComponentDemo: () => JSX.Element;
|
|
9
|
-
export declare const RichTextEditorWithLogs: () => JSX.Element;
|
|
10
|
-
export declare const RichTextEditorHtmlParsingDemo: () => JSX.Element;
|
|
11
|
-
//# sourceMappingURL=Editor.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/Editor/Editor.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;;AAiBxC,wBAGU;AAIV,eAAO,MAAM,UAAU,mBAmBtB,CAAC;AAEF,eAAO,MAAM,eAAe,mBAmB3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBAc7B,CAAC;AA4BF,eAAO,MAAM,mBAAmB,mBA6B/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,mBAkClC,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBA8BzC,CAAC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useRef } from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
|
-
import { action } from '@storybook/addon-actions';
|
|
5
|
-
import { Button, Card, CardContent, CardFooter, Flex, Text, TextArea } from '@pega/cosmos-react-core';
|
|
6
|
-
import { Editor } from '@pega/cosmos-react-rte';
|
|
7
|
-
export default {
|
|
8
|
-
title: 'RTE/Editor',
|
|
9
|
-
component: Editor
|
|
10
|
-
};
|
|
11
|
-
const label = 'Form field label';
|
|
12
|
-
export const EditorDemo = () => {
|
|
13
|
-
const editorRef = useRef(null);
|
|
14
|
-
const onImageAdded = (image, id) => {
|
|
15
|
-
const src = URL.createObjectURL(image);
|
|
16
|
-
editorRef.current?.appendImage({ src, alt: image.name }, id);
|
|
17
|
-
};
|
|
18
|
-
return (_jsx(Editor, { ref: editorRef, label: label, toolbar: ['inline-styling', 'lists', 'indentation', 'images', 'links'], onFocus: action('Editor focused'), onBlur: action('Editor blurred'), onImageAdded: onImageAdded, defaultValue: '<body><p>Hi mom <a href="https://google.com">link</a></p></body>' }, void 0));
|
|
19
|
-
};
|
|
20
|
-
export const EmptyEditorDemo = () => {
|
|
21
|
-
const editorRef = useRef(null);
|
|
22
|
-
const onImageAdded = (image, id) => {
|
|
23
|
-
const src = URL.createObjectURL(image);
|
|
24
|
-
editorRef.current?.appendImage({ src, alt: image.name }, id);
|
|
25
|
-
};
|
|
26
|
-
return (_jsx(Editor, { ref: editorRef, label: label, toolbar: ['inline-styling', 'lists', 'indentation', 'images', 'links'], onImageAdded: onImageAdded, onFocus: action('Editor has focus'), onBlur: action('Editor has blurred'), placeholder: 'Type some stuff in here' }, void 0));
|
|
27
|
-
};
|
|
28
|
-
export const ReadonlyFormField = () => {
|
|
29
|
-
return (_jsx(Editor, { label: label, readOnly: true, defaultValue: `<article class="main-page-content" lang="en-US"><h1>HTML: HyperText Markup Language</h1><div><p><strong>HTML</strong> (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (<a href="/en-US/docs/Web/CSS">CSS</a>) or functionality/behavior (<a href="/en-US/docs/Web/JavaScript">JavaScript</a>).</p>
|
|
30
|
-
<p>"Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.</p>
|
|
31
|
-
<p>HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as <a href="/en-US/docs/Web/HTML/Element/head"><code><head></code></a>, <a href="/en-US/docs/Web/HTML/Element/title"><code><title></code></a>, <a href="/en-US/docs/Web/HTML/Element/body"><code><body></code></a>, <a href="/en-US/docs/Web/HTML/Element/header"><code><header></code></a>, <a href="/en-US/docs/Web/HTML/Element/footer"><code><footer></code></a>, <a href="/en-US/docs/Web/HTML/Element/article"><code><article></code></a>, <a href="/en-US/docs/Web/HTML/Element/section"><code><section></code></a>, <a href="/en-US/docs/Web/HTML/Element/p"><code><p></code></a>, <a href="/en-US/docs/Web/HTML/Element/div"><code><div></code></a>, <a href="/en-US/docs/Web/HTML/Element/span"><code><span></code></a>, <a href="/en-US/docs/Web/HTML/Element/img"><code><img></code></a>, <a href="/en-US/docs/Web/HTML/Element/aside"><code><aside></code></a>, <a href="/en-US/docs/Web/HTML/Element/audio"><code><audio></code></a>, <a href="/en-US/docs/Web/HTML/Element/canvas"><code><canvas></code></a>, <a href="/en-US/docs/Web/HTML/Element/datalist"><code><datalist></code></a>, <a href="/en-US/docs/Web/HTML/Element/details"><code><details></code></a>, <a href="/en-US/docs/Web/HTML/Element/embed"><code><embed></code></a>, <a href="/en-US/docs/Web/HTML/Element/nav"><code><nav></code></a>, <a href="/en-US/docs/Web/HTML/Element/output"><code><output></code></a>, <a href="/en-US/docs/Web/HTML/Element/progress"><code><progress></code></a>, <a href="/en-US/docs/Web/HTML/Element/video"><code><video></code></a>, <a href="/en-US/docs/Web/HTML/Element/ul"><code><ul></code></a>, <a href="/en-US/docs/Web/HTML/Element/ol"><code><ol></code></a>, <a href="/en-US/docs/Web/HTML/Element/li"><code><li></code></a> and many others.</p>
|
|
32
|
-
<p>An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by "<code><</code>" and "<code>></code>". The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <code><title></code> tag can be written as <code><Title></code>, <code><TITLE></code>, or in any other way.</p>
|
|
33
|
-
|
|
34
|
-
<div id="on-github" class="on-github"><h3>Found a problem with this page?</h3><ul><li><a href="https://github.com/mdn/content/edit/main/files/en-us/web/html/index.md" title="You're going to need to sign in to GitHub first (Opens in a new tab)" target="_blank" rel="noopener noreferrer">Edit on <b>GitHub</b></a></li><li><a href="https://github.com/mdn/content/blob/main/files/en-us/web/html/index.md" title="Folder: en-us/web/html (Opens in a new tab)" target="_blank" rel="noopener noreferrer">Source on <b>GitHub</b></a></li><li><a href="https://github.com/mdn/content/issues/new?body=MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A%0A%23%23%23%23+What+information+was+incorrect%2C+unhelpful%2C+or+incomplete%3F%0A%0A%0A%23%23%23%23+Specific+section+or+headline%3F%0A%0A%0A%23%23%23%23+What+did+you+expect+to+see%3F%0A%0A%0A%23%23%23%23+Did+you+test+this%3F+If+so%2C+how%3F%0A%0A%0A%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EMDN+Content+page+report+details%3C%2Fsummary%3E%0A%0A*+Folder%3A+%60en-us%2Fweb%2Fhtml%60%0A*+MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A*+GitHub+URL%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fblob%2Fmain%2Ffiles%2Fen-us%2Fweb%2Fhtml%2Findex.md%0A*+Last+commit%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fcommit%2F775662998e66813a612e3ff27e02f2ada867bc17%0A*+Document+last+modified%3A+2021-10-03T00%3A01%3A51.000Z%0A%0A%3C%2Fdetails%3E&title=Issue+with+%22HTML%3A+HyperText+Markup+Language%22%3A+%28short+summary+here+please%29&labels=needs-triage%2CContent%3AHTML" title="This will take you to https://github.com/mdn/content to file a new issue" target="_blank" rel="noopener noreferrer">Report a problem with this content on <b>GitHub</b></a></li><li>Want to fix the problem yourself? See <a href="https://github.com/mdn/content/blob/main/README.md" target="_blank" rel="noopener noreferrer">our Contribution guide</a>.</li></ul></div>
|
|
35
|
-
` }, void 0));
|
|
36
|
-
};
|
|
37
|
-
const PegaCustom = ({ children }) => {
|
|
38
|
-
return (_jsx("p", { style: { color: 'blue', textTransform: 'uppercase' },
|
|
39
|
-
// eslint-disable-next-line react/no-danger
|
|
40
|
-
dangerouslySetInnerHTML: { __html: children } }, void 0));
|
|
41
|
-
};
|
|
42
|
-
class PegaCustomElement extends HTMLElement {
|
|
43
|
-
removeElements() {
|
|
44
|
-
while (this.firstChild) {
|
|
45
|
-
this.removeChild(this.firstChild);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
connectedCallback() {
|
|
49
|
-
const inner = this.innerHTML;
|
|
50
|
-
this.removeElements();
|
|
51
|
-
const mountPoint = document.createElement('span');
|
|
52
|
-
this.appendChild(mountPoint);
|
|
53
|
-
ReactDOM.render(_jsx(PegaCustom, { children: inner }, void 0), mountPoint);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export const CustomComponentDemo = () => {
|
|
57
|
-
const editorRef = useRef(null);
|
|
58
|
-
const [editor, setEditor] = useState({});
|
|
59
|
-
const onCustomAction = () => {
|
|
60
|
-
editor.insertContent('<pega-custom>Inserted from toolbar</pega-custom>');
|
|
61
|
-
};
|
|
62
|
-
return (_jsx(Editor, { ref: editorRef, label: label, toolbar: ['inline-styling', 'lists', 'indentation', 'links', 'images'], defaultValue: '<body><p>Hi mom <a href="https://google.com">link</a></p><pega-custom>Hello from custom element.</pega-custom><p>hi</p></body>', customComponents: [{ customElement: PegaCustomElement, name: 'pega-custom' }], customActions: [
|
|
63
|
-
{
|
|
64
|
-
icon: 'pega',
|
|
65
|
-
text: 'Insert a custom element',
|
|
66
|
-
onMouseDown: () => {
|
|
67
|
-
onCustomAction();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
], onInit: initializedEditor => {
|
|
71
|
-
setEditor(initializedEditor);
|
|
72
|
-
} }, void 0));
|
|
73
|
-
};
|
|
74
|
-
export const RichTextEditorWithLogs = () => {
|
|
75
|
-
const editorRef = useRef(null);
|
|
76
|
-
const [content, setContent] = useState();
|
|
77
|
-
const onImageAdded = (image, id) => {
|
|
78
|
-
const src = URL.createObjectURL(image);
|
|
79
|
-
editorRef.current?.appendImage({ src, alt: image.name }, id);
|
|
80
|
-
};
|
|
81
|
-
const showContent = (type) => {
|
|
82
|
-
if (type === 'html')
|
|
83
|
-
setContent(editorRef.current?.getHtml());
|
|
84
|
-
else if (type === 'plain_text')
|
|
85
|
-
setContent(editorRef.current?.getPlainText());
|
|
86
|
-
else if (type === 'rich_text')
|
|
87
|
-
setContent(editorRef.current?.getRichText());
|
|
88
|
-
};
|
|
89
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(Editor, { ref: editorRef, toolbar: ['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation'], onImageAdded: onImageAdded, label: 'Rich text editor with logs', info: 'Click on the buttons below to show the different formatted outputs of the RTE' }, void 0), _jsxs(Flex, { container: { gap: 1 }, children: [_jsx(Button, { onClick: () => showContent('html'), children: "Show HTML" }, void 0), _jsx(Button, { onClick: () => showContent('plain_text'), children: "Show plain text" }, void 0), _jsx(Button, { onClick: () => showContent('rich_text'), children: "Show rich text" }, void 0)] }, void 0), _jsx(Text, { children: content }, void 0)] }, void 0));
|
|
90
|
-
};
|
|
91
|
-
export const RichTextEditorHtmlParsingDemo = () => {
|
|
92
|
-
const [html, setHtml] = useState('<p>Hello world!</p>');
|
|
93
|
-
const rteRef = useRef(null);
|
|
94
|
-
const onImageAdded = (image, id) => {
|
|
95
|
-
const src = URL.createObjectURL(image);
|
|
96
|
-
rteRef.current?.appendImage({ src, alt: image.name }, id);
|
|
97
|
-
};
|
|
98
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsxs(Card, { children: [_jsx(CardContent, { children: _jsx(TextArea, { value: html, onChange: e => setHtml(e.target.value) }, void 0) }, void 0), _jsx(CardFooter, { children: _jsx(Button, { onClick: () => rteRef.current?.insertHtml(html.trim(), true), children: "Overwrite RTE with new HTML" }, void 0) }, void 0)] }, void 0), _jsx(Editor, { defaultValue: html, onImageAdded: onImageAdded, ref: rteRef, label: label, toolbar: ['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation'] }, void 0)] }, void 0));
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=Editor.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.stories.js","sourceRoot":"","sources":["../../../src/rte/Editor/Editor.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EA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C,WAC3F,YACG,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState, useRef } from 'react';\nimport ReactDOM from 'react-dom';\nimport { action } from '@storybook/addon-actions';\nimport { Editor as TinymceEditor } from 'tinymce';\n\nimport {\n Button,\n Card,\n CardContent,\n CardFooter,\n Flex,\n Text,\n TextArea\n} from '@pega/cosmos-react-core';\nimport { EditorState, Editor } from '@pega/cosmos-react-rte';\n\nexport default {\n title: 'RTE/Editor',\n component: Editor\n} as Meta;\n\nconst label = 'Form field label';\n\nexport const EditorDemo = () => {\n const editorRef = useRef<EditorState>(null);\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 <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'images', 'links']}\n onFocus={action('Editor focused')}\n onBlur={action('Editor blurred')}\n onImageAdded={onImageAdded}\n defaultValue='<body><p>Hi mom <a href=\"https://google.com\">link</a></p></body>'\n />\n );\n};\n\nexport const EmptyEditorDemo = () => {\n const editorRef = useRef<EditorState>(null);\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 <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'images', 'links']}\n onImageAdded={onImageAdded}\n onFocus={action('Editor has focus')}\n onBlur={action('Editor has blurred')}\n placeholder='Type some stuff in here'\n />\n );\n};\n\nexport const ReadonlyFormField = () => {\n return (\n <Editor\n label={label}\n readOnly\n defaultValue={`<article class=\"main-page-content\" lang=\"en-US\"><h1>HTML: HyperText Markup Language</h1><div><p><strong>HTML</strong> (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (<a href=\"/en-US/docs/Web/CSS\">CSS</a>) or functionality/behavior (<a href=\"/en-US/docs/Web/JavaScript\">JavaScript</a>).</p>\n <p>\"Hypertext\" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.</p>\n <p>HTML uses \"markup\" to annotate text, images, and other content for display in a Web browser. HTML markup includes special \"elements\" such as <a href=\"/en-US/docs/Web/HTML/Element/head\"><code><head></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/title\"><code><title></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/body\"><code><body></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/header\"><code><header></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/footer\"><code><footer></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/article\"><code><article></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/section\"><code><section></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/p\"><code><p></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/div\"><code><div></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/span\"><code><span></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/img\"><code><img></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/aside\"><code><aside></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/audio\"><code><audio></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/canvas\"><code><canvas></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/datalist\"><code><datalist></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/details\"><code><details></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/embed\"><code><embed></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/nav\"><code><nav></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/output\"><code><output></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/progress\"><code><progress></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/video\"><code><video></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/ul\"><code><ul></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/ol\"><code><ol></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/li\"><code><li></code></a> and many others.</p>\n <p>An HTML element is set off from other text in a document by \"tags\", which consist of the element name surrounded by \"<code><</code>\" and \"<code>></code>\". The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <code><title></code> tag can be written as <code><Title></code>, <code><TITLE></code>, or in any other way.</p>\n\n <div id=\"on-github\" class=\"on-github\"><h3>Found a problem with this page?</h3><ul><li><a href=\"https://github.com/mdn/content/edit/main/files/en-us/web/html/index.md\" title=\"You're going to need to sign in to GitHub first (Opens in a new tab)\" target=\"_blank\" rel=\"noopener noreferrer\">Edit on <b>GitHub</b></a></li><li><a href=\"https://github.com/mdn/content/blob/main/files/en-us/web/html/index.md\" title=\"Folder: en-us/web/html (Opens in a new tab)\" target=\"_blank\" rel=\"noopener noreferrer\">Source on <b>GitHub</b></a></li><li><a href=\"https://github.com/mdn/content/issues/new?body=MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A%0A%23%23%23%23+What+information+was+incorrect%2C+unhelpful%2C+or+incomplete%3F%0A%0A%0A%23%23%23%23+Specific+section+or+headline%3F%0A%0A%0A%23%23%23%23+What+did+you+expect+to+see%3F%0A%0A%0A%23%23%23%23+Did+you+test+this%3F+If+so%2C+how%3F%0A%0A%0A%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EMDN+Content+page+report+details%3C%2Fsummary%3E%0A%0A*+Folder%3A+%60en-us%2Fweb%2Fhtml%60%0A*+MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A*+GitHub+URL%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fblob%2Fmain%2Ffiles%2Fen-us%2Fweb%2Fhtml%2Findex.md%0A*+Last+commit%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fcommit%2F775662998e66813a612e3ff27e02f2ada867bc17%0A*+Document+last+modified%3A+2021-10-03T00%3A01%3A51.000Z%0A%0A%3C%2Fdetails%3E&title=Issue+with+%22HTML%3A+HyperText+Markup+Language%22%3A+%28short+summary+here+please%29&labels=needs-triage%2CContent%3AHTML\" title=\"This will take you to https://github.com/mdn/content to file a new issue\" target=\"_blank\" rel=\"noopener noreferrer\">Report a problem with this content on <b>GitHub</b></a></li><li>Want to fix the problem yourself? See <a href=\"https://github.com/mdn/content/blob/main/README.md\" target=\"_blank\" rel=\"noopener noreferrer\">our Contribution guide</a>.</li></ul></div>\n `}\n />\n );\n};\n\nconst PegaCustom = ({ children }: { children: string }) => {\n return (\n <p\n style={{ color: 'blue', textTransform: 'uppercase' }}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{ __html: children }}\n />\n );\n};\n\nclass PegaCustomElement extends HTMLElement {\n removeElements() {\n while (this.firstChild) {\n this.removeChild(this.firstChild);\n }\n }\n\n connectedCallback() {\n const inner = this.innerHTML;\n this.removeElements();\n const mountPoint = document.createElement('span');\n this.appendChild(mountPoint);\n ReactDOM.render(<PegaCustom>{inner}</PegaCustom>, mountPoint);\n }\n}\n\nexport const CustomComponentDemo = () => {\n const editorRef = useRef<EditorState>(null);\n const [editor, setEditor] = useState({} as TinymceEditor);\n\n const onCustomAction = () => {\n editor.insertContent('<pega-custom>Inserted from toolbar</pega-custom>');\n };\n\n return (\n <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'links', 'images']}\n defaultValue='<body><p>Hi mom <a href=\"https://google.com\">link</a></p><pega-custom>Hello from custom element.</pega-custom><p>hi</p></body>'\n customComponents={[{ customElement: PegaCustomElement, name: 'pega-custom' }]}\n customActions={[\n {\n icon: 'pega',\n text: 'Insert a custom element',\n onMouseDown: () => {\n onCustomAction();\n }\n }\n ]}\n onInit={initializedEditor => {\n setEditor(initializedEditor);\n }}\n />\n );\n};\n\nexport const RichTextEditorWithLogs = () => {\n const editorRef = useRef<EditorState>(null);\n const [content, setContent] = useState<string | undefined>();\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 const showContent = (type: 'html' | 'plain_text' | 'rich_text') => {\n if (type === 'html') setContent(editorRef.current?.getHtml());\n else if (type === 'plain_text') setContent(editorRef.current?.getPlainText());\n else if (type === 'rich_text') setContent(editorRef.current?.getRichText());\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Editor\n ref={editorRef}\n toolbar={['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation']}\n onImageAdded={onImageAdded}\n label='Rich text editor with logs'\n info='Click on the buttons below to show the different formatted outputs of the RTE'\n />\n\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => showContent('html')}>Show HTML</Button>\n <Button onClick={() => showContent('plain_text')}>Show plain text</Button>\n <Button onClick={() => showContent('rich_text')}>Show rich text</Button>\n </Flex>\n\n <Text>{content}</Text>\n </Flex>\n );\n};\n\nexport const RichTextEditorHtmlParsingDemo = () => {\n const [html, setHtml] = useState('<p>Hello world!</p>');\n const rteRef = useRef<EditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea value={html} onChange={e => setHtml(e.target.value)} />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <Editor\n defaultValue={html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label={label}\n toolbar={['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation']}\n />\n </Flex>\n );\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.mocks.d.ts","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGhE,eAAO,MAAM,SAAS,EAAE,aAAa,EA+BpC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Avatar } from '@pega/cosmos-react-core';
|
|
3
|
-
// cspell:disable
|
|
4
|
-
export const demoUsers = [
|
|
5
|
-
{
|
|
6
|
-
id: 'turnc',
|
|
7
|
-
primary: 'Cindy Turner',
|
|
8
|
-
secondary: ['Lead Engineer'],
|
|
9
|
-
visual: _jsx(Avatar, { size: 'l', name: 'Cindy Turner' }, void 0)
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: 'deans',
|
|
13
|
-
primary: 'Seth DeAngelo',
|
|
14
|
-
secondary: ['Senior Software Engineer', 'Backend Developer'],
|
|
15
|
-
visual: _jsx(Avatar, { size: 'l', name: 'Seth DeAngelo' }, void 0)
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: 'moorj',
|
|
19
|
-
primary: 'Janet Moore',
|
|
20
|
-
secondary: ['Backend Developer'],
|
|
21
|
-
visual: _jsx(Avatar, { size: 'l', name: 'Janet Moore' }, void 0)
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: 'thomd',
|
|
25
|
-
primary: 'Dean Thomas',
|
|
26
|
-
secondary: ['Designer'],
|
|
27
|
-
visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }, void 0)
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'hathb',
|
|
31
|
-
primary: 'Bob Hathoway',
|
|
32
|
-
secondary: ['Lead Designer', 'Product Owner'],
|
|
33
|
-
visual: _jsx(Avatar, { size: 'l', name: 'Bob Hathoway' }, void 0)
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
//# sourceMappingURL=RichTextEditor.mocks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.mocks.js","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAiB,MAAM,yBAAyB,CAAC;AAEhE,iBAAiB;AACjB,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,cAAc,WAAG;KAChD;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;QAC5D,MAAM,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,eAAe,WAAG;KACjD;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,CAAC,mBAAmB,CAAC;QAChC,MAAM,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,aAAa,WAAG;KAC/C;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,MAAM,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,aAAa,WAAG;KAC/C;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;QAC7C,MAAM,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,cAAc,WAAG;KAChD;CACF,CAAC","sourcesContent":["import { Avatar, MenuItemProps } from '@pega/cosmos-react-core';\n\n// cspell:disable\nexport const demoUsers: MenuItemProps[] = [\n {\n id: 'turnc',\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />\n },\n {\n id: 'deans',\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />\n },\n {\n id: 'moorj',\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />\n },\n {\n id: 'thomd',\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />\n },\n {\n id: 'hathb',\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />\n }\n];\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Meta, Story } from '@storybook/react';
|
|
3
|
-
import { RichTextEditorProps } from '@pega/cosmos-react-rte';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const RichTextEditorDemo: Story<RichTextEditorProps>;
|
|
7
|
-
export declare const RichTextEditorWithLogs: () => JSX.Element;
|
|
8
|
-
export declare const RichTextEditorMDDemo: Story<RichTextEditorProps>;
|
|
9
|
-
export declare const RichTextEditorHtmlParsingDemo: () => JSX.Element;
|
|
10
|
-
//# sourceMappingURL=RichTextEditor.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAa/C,OAAO,EAAkB,mBAAmB,EAAuB,MAAM,wBAAwB,CAAC;;AAIlG,wBAqBU;AAEV,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,mBAAmB,CAkDzD,CAAC;AAEF,eAAO,MAAM,sBAAsB,mBA2ClC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,mBAAmB,CAuC3D,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBAuCzC,CAAC"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useRef } from 'react';
|
|
3
|
-
import { Button, Flex, Text, Card, CardContent, CardFooter, TextArea } from '@pega/cosmos-react-core';
|
|
4
|
-
import { RichTextEditor } from '@pega/cosmos-react-rte';
|
|
5
|
-
import { demoUsers } from './RichTextEditor.mocks';
|
|
6
|
-
export default {
|
|
7
|
-
title: 'RTE/RichTextEditor',
|
|
8
|
-
component: RichTextEditor,
|
|
9
|
-
args: {
|
|
10
|
-
label: 'Rich text editor',
|
|
11
|
-
labelHidden: false,
|
|
12
|
-
info: 'The rich text editor can be used in forms, comments, and documents',
|
|
13
|
-
status: undefined,
|
|
14
|
-
required: false,
|
|
15
|
-
disabled: false,
|
|
16
|
-
readOnly: false
|
|
17
|
-
},
|
|
18
|
-
argTypes: {
|
|
19
|
-
label: { control: { type: 'text' } },
|
|
20
|
-
labelHidden: { control: { type: 'boolean' } },
|
|
21
|
-
info: { control: { type: 'text' } },
|
|
22
|
-
status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
|
|
23
|
-
required: { control: { type: 'boolean' } },
|
|
24
|
-
disabled: { control: { type: 'boolean' } },
|
|
25
|
-
readOnly: { control: { type: 'boolean' } }
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export const RichTextEditorDemo = (args) => {
|
|
29
|
-
const editorRef = useRef(null);
|
|
30
|
-
const onImageAdded = (image, id) => {
|
|
31
|
-
const src = URL.createObjectURL(image);
|
|
32
|
-
editorRef.current?.appendImage({ src, alt: image.name }, id);
|
|
33
|
-
};
|
|
34
|
-
const overwriteText = () => {
|
|
35
|
-
editorRef.current?.insertHtml('<p>Hello world!</p>', true);
|
|
36
|
-
};
|
|
37
|
-
const insertText = () => {
|
|
38
|
-
editorRef.current?.insertText('Hi mom!');
|
|
39
|
-
};
|
|
40
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(RichTextEditor, { ref: editorRef, toolbar: [
|
|
41
|
-
'inline-styling',
|
|
42
|
-
'headers',
|
|
43
|
-
'tables',
|
|
44
|
-
'links',
|
|
45
|
-
'images',
|
|
46
|
-
'lists',
|
|
47
|
-
'cut-copy-paste',
|
|
48
|
-
'indentation'
|
|
49
|
-
], onImageAdded: onImageAdded, label: args.label, labelHidden: args.labelHidden, info: args.info, status: args.status, required: args.required, disabled: args.disabled, readOnly: args.readOnly, defaultValue: '<body><!-- I will break the RTE --><p> Life is stress free.</p><p> Life is stress free.</p></body>' }, void 0), _jsxs(Flex, { container: { gap: 1 }, children: [_jsx(Button, { onClick: overwriteText, children: "Overwrite RTE value with 'Hello world!' HTML" }, void 0), _jsx(Button, { onClick: insertText, label: 'RTE Must be focused for insert text to work', children: "Insert 'Hi mom!'" }, void 0)] }, void 0)] }, void 0));
|
|
50
|
-
};
|
|
51
|
-
export const RichTextEditorWithLogs = () => {
|
|
52
|
-
const editorRef = useRef(null);
|
|
53
|
-
const [content, setContent] = useState();
|
|
54
|
-
const onImageAdded = (image, id) => {
|
|
55
|
-
const src = URL.createObjectURL(image);
|
|
56
|
-
editorRef.current?.appendImage({ src, alt: image.name }, id);
|
|
57
|
-
};
|
|
58
|
-
const showContent = (type) => {
|
|
59
|
-
if (type === 'html')
|
|
60
|
-
setContent(editorRef.current?.getHtml());
|
|
61
|
-
else if (type === 'plain_text')
|
|
62
|
-
setContent(editorRef.current?.getPlainText());
|
|
63
|
-
else if (type === 'rich_text')
|
|
64
|
-
setContent(editorRef.current?.getRichText());
|
|
65
|
-
};
|
|
66
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(RichTextEditor, { ref: editorRef, toolbar: [
|
|
67
|
-
'inline-styling',
|
|
68
|
-
'headers',
|
|
69
|
-
'tables',
|
|
70
|
-
'links',
|
|
71
|
-
'images',
|
|
72
|
-
'lists',
|
|
73
|
-
'cut-copy-paste',
|
|
74
|
-
'indentation'
|
|
75
|
-
], onImageAdded: onImageAdded, label: 'Rich text editor with logs', info: 'Click on the buttons below to show the different formatted outputs of the RTE' }, void 0), _jsxs(Flex, { container: { gap: 1 }, children: [_jsx(Button, { onClick: () => showContent('html'), children: "Show HTML" }, void 0), _jsx(Button, { onClick: () => showContent('plain_text'), children: "Show plain text" }, void 0), _jsx(Button, { onClick: () => showContent('rich_text'), children: "Show rich text" }, void 0)] }, void 0), _jsx(Text, { children: content }, void 0)] }, void 0));
|
|
76
|
-
};
|
|
77
|
-
export const RichTextEditorMDDemo = (args) => {
|
|
78
|
-
const [users, setUsers] = useState(demoUsers);
|
|
79
|
-
const searchUsers = (event) => {
|
|
80
|
-
if (event.trigger === '@') {
|
|
81
|
-
setUsers(demoUsers.filter(user => {
|
|
82
|
-
return user.primary.toLowerCase().includes(event.search.toLowerCase());
|
|
83
|
-
}));
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
return (_jsx(RichTextEditor, { searchTriggers: [{ trigger: '@', regex: '[a-zA-Z]*(?: [a-zA-Z]*)?' }], onSearch: searchUsers, getSearchItemReplacement: (id) => {
|
|
87
|
-
const item = demoUsers.find(({ id: itemId }) => itemId === id);
|
|
88
|
-
if (!item)
|
|
89
|
-
return undefined;
|
|
90
|
-
return {
|
|
91
|
-
markdown: `@${item.id}:${item.primary}:user:`,
|
|
92
|
-
text: item.primary
|
|
93
|
-
};
|
|
94
|
-
}, menu: users.length ? { items: users } : undefined, autoFocus: true, markdownOnly: true, label: args.label, labelHidden: args.labelHidden, info: args.info, status: args.status, required: args.required, disabled: args.disabled, readOnly: args.readOnly }, void 0));
|
|
95
|
-
};
|
|
96
|
-
export const RichTextEditorHtmlParsingDemo = () => {
|
|
97
|
-
const [html, setHtml] = useState('<p>Hello world!</p>');
|
|
98
|
-
const rteRef = useRef(null);
|
|
99
|
-
const onImageAdded = (image, id) => {
|
|
100
|
-
const src = URL.createObjectURL(image);
|
|
101
|
-
rteRef.current?.appendImage({ src, alt: image.name }, id);
|
|
102
|
-
};
|
|
103
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsxs(Card, { children: [_jsx(CardContent, { children: _jsx(TextArea, { value: html, onChange: e => setHtml(e.target.value) }, void 0) }, void 0), _jsx(CardFooter, { children: _jsx(Button, { onClick: () => rteRef.current?.insertHtml(html.trim(), true), children: "Overwrite RTE with new HTML" }, void 0) }, void 0)] }, void 0), _jsx(RichTextEditor, { defaultValue: html, onImageAdded: onImageAdded, ref: rteRef, label: 'Rich text editor', toolbar: [
|
|
104
|
-
'inline-styling',
|
|
105
|
-
'headers',
|
|
106
|
-
'tables',
|
|
107
|
-
'links',
|
|
108
|
-
'images',
|
|
109
|
-
'lists',
|
|
110
|
-
'cut-copy-paste',
|
|
111
|
-
'indentation'
|
|
112
|
-
] }, void 0)] }, void 0));
|
|
113
|
-
};
|
|
114
|
-
//# sourceMappingURL=RichTextEditor.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.stories.js","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EACL,MAAM,EACN,IAAI,EAEJ,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,UAAU,EACV,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAA4C,MAAM,wBAAwB,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;A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AC,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,oDAE3D,WACE,YACR,EACP,KAAC,cAAc,IACb,YAAY,EAAE,IAAI,EAClB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,MAAM,EACX,KAAK,EAAC,kBAAkB,EACxB,OAAO,EAAE;oBACP,gBAAgB;oBAChB,SAAS;oBACT,QAAQ;oBACR,OAAO;oBACP,QAAQ;oBACR,OAAO;oBACP,gBAAgB;oBAChB,aAAa;iBACd,WACD,YACG,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useRef } from 'react';\n\nimport {\n Button,\n Flex,\n MenuItemProps,\n Text,\n Card,\n CardContent,\n CardFooter,\n TextArea\n} from '@pega/cosmos-react-core';\nimport { RichTextEditor, RichTextEditorProps, RichTextEditorState } from '@pega/cosmos-react-rte';\n\nimport { demoUsers } from './RichTextEditor.mocks';\n\nexport default {\n title: 'RTE/RichTextEditor',\n component: RichTextEditor,\n args: {\n label: 'Rich text editor',\n labelHidden: false,\n info: 'The rich text editor can be used in forms, comments, and documents',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n },\n argTypes: {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const RichTextEditorDemo: Story<RichTextEditorProps> = (args: RichTextEditorProps) => {\n const editorRef = useRef<RichTextEditorState>(null);\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 const overwriteText = () => {\n editorRef.current?.insertHtml('<p>Hello world!</p>', true);\n };\n\n const insertText = () => {\n editorRef.current?.insertText('Hi mom!');\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\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 label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n defaultValue='<body><!-- I will break the RTE --><p> Life is stress free.</p><p> Life is stress free.</p></body>'\n />\n <Flex container={{ gap: 1 }}>\n <Button onClick={overwriteText}>\n Overwrite RTE value with 'Hello world!' HTML\n </Button>\n <Button onClick={insertText} label='RTE Must be focused for insert text to work'>\n Insert 'Hi mom!'\n </Button>\n </Flex>\n </Flex>\n );\n};\n\nexport const RichTextEditorWithLogs = () => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [content, setContent] = useState<string | undefined>();\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 const showContent = (type: 'html' | 'plain_text' | 'rich_text') => {\n if (type === 'html') setContent(editorRef.current?.getHtml());\n else if (type === 'plain_text') setContent(editorRef.current?.getPlainText());\n else if (type === 'rich_text') setContent(editorRef.current?.getRichText());\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\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 label='Rich text editor with logs'\n info='Click on the buttons below to show the different formatted outputs of the RTE'\n />\n\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => showContent('html')}>Show HTML</Button>\n <Button onClick={() => showContent('plain_text')}>Show plain text</Button>\n <Button onClick={() => showContent('rich_text')}>Show rich text</Button>\n </Flex>\n\n <Text>{content}</Text>\n </Flex>\n );\n};\n\nexport const RichTextEditorMDDemo: Story<RichTextEditorProps> = (args: RichTextEditorProps) => {\n const [users, setUsers] = useState<MenuItemProps[]>(demoUsers);\n\n const searchUsers = (event: { search: string; trigger: string }) => {\n if (event.trigger === '@') {\n setUsers(\n demoUsers.filter(user => {\n return user.primary.toLowerCase().includes(event.search.toLowerCase());\n })\n );\n }\n };\n\n return (\n <RichTextEditor\n searchTriggers={[{ trigger: '@', regex: '[a-zA-Z]*(?: [a-zA-Z]*)?' }]}\n onSearch={searchUsers}\n getSearchItemReplacement={(id: string) => {\n const item = demoUsers.find(({ id: itemId }) => itemId === id);\n\n if (!item) return undefined;\n\n return {\n markdown: `@${item.id}:${item.primary}:user:`,\n text: item.primary\n };\n }}\n menu={users.length ? { items: users } : undefined}\n autoFocus\n markdownOnly\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nexport const RichTextEditorHtmlParsingDemo = () => {\n const [html, setHtml] = useState('<p>Hello world!</p>');\n const rteRef = useRef<RichTextEditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea value={html} onChange={e => setHtml(e.target.value)} />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <RichTextEditor\n defaultValue={html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label='Rich text editor'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n />\n </Flex>\n );\n};\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Meta } from '@storybook/react';
|
|
3
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const RichTextViewerDemo: () => JSX.Element;
|
|
6
|
-
export declare const RichTextViewerHTMLDemo: () => JSX.Element;
|
|
7
|
-
export declare const RichTextViewerMDDemo: () => JSX.Element;
|
|
8
|
-
//# sourceMappingURL=RichTextViewer.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextViewer.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextViewer.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;;AAcxC,wBAGU;AAEV,eAAO,MAAM,kBAAkB,mBAuB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,mBAuBlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBA4DhC,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useState } from 'react';
|
|
3
|
-
import { Flex, Link } from '@pega/cosmos-react-core';
|
|
4
|
-
import { HashtagButtonConfig, MentionButtonConfig } from '@pega/cosmos-react-social';
|
|
5
|
-
import { RichTextEditor, RichTextViewer } from '@pega/cosmos-react-rte';
|
|
6
|
-
import { demoUsers } from './RichTextEditor.mocks';
|
|
7
|
-
export default {
|
|
8
|
-
title: 'RTE/RichTextViewer',
|
|
9
|
-
component: RichTextViewer
|
|
10
|
-
};
|
|
11
|
-
export const RichTextViewerDemo = () => {
|
|
12
|
-
const editorRef = useRef(null);
|
|
13
|
-
const [content, setContent] = useState('[]');
|
|
14
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(RichTextEditor, { ref: editorRef, toolbar: [
|
|
15
|
-
'inline-styling',
|
|
16
|
-
'headers',
|
|
17
|
-
'tables',
|
|
18
|
-
'links',
|
|
19
|
-
'lists',
|
|
20
|
-
'cut-copy-paste',
|
|
21
|
-
'indentation'
|
|
22
|
-
], onChange: () => setContent(editorRef.current?.getRichText() || '') }, void 0), _jsx(RichTextViewer, { content: content, type: 'richtext' }, void 0)] }, void 0));
|
|
23
|
-
};
|
|
24
|
-
export const RichTextViewerHTMLDemo = () => {
|
|
25
|
-
const editorRef = useRef(null);
|
|
26
|
-
const [content, setContent] = useState('');
|
|
27
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(RichTextEditor, { ref: editorRef, toolbar: [
|
|
28
|
-
'inline-styling',
|
|
29
|
-
'headers',
|
|
30
|
-
'tables',
|
|
31
|
-
'links',
|
|
32
|
-
'lists',
|
|
33
|
-
'cut-copy-paste',
|
|
34
|
-
'indentation'
|
|
35
|
-
], onChange: () => setContent(editorRef.current?.getHtml() || '') }, void 0), _jsx(RichTextViewer, { content: content, type: 'html' }, void 0)] }, void 0));
|
|
36
|
-
};
|
|
37
|
-
export const RichTextViewerMDDemo = () => {
|
|
38
|
-
const LinkComponent = ({ token }) => {
|
|
39
|
-
return (_jsx(Link, { href: token.href, previewable: true, children: token.text }, void 0));
|
|
40
|
-
};
|
|
41
|
-
const editorRef = useRef(null);
|
|
42
|
-
const [content, setContent] = useState('');
|
|
43
|
-
const [users, setUsers] = useState(demoUsers);
|
|
44
|
-
const searchUsers = (event) => {
|
|
45
|
-
if (event.trigger === '@') {
|
|
46
|
-
setUsers(demoUsers.filter(user => {
|
|
47
|
-
return user.primary.toLowerCase().includes(event.search.toLowerCase());
|
|
48
|
-
}));
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
return (_jsxs(Flex, { container: { direction: 'column', gap: 2 }, children: [_jsx(RichTextEditor, { ref: editorRef, searchTriggers: [{ trigger: '@', regex: '[a-zA-Z]*(?: [a-zA-Z]*)?' }], onSearch: searchUsers, getSearchItemReplacement: (id) => {
|
|
52
|
-
const item = demoUsers.find(({ id: itemId }) => itemId === id);
|
|
53
|
-
if (!item)
|
|
54
|
-
return undefined;
|
|
55
|
-
return {
|
|
56
|
-
markdown: `@${item.id}:${item.primary}:user:`,
|
|
57
|
-
text: item.primary
|
|
58
|
-
};
|
|
59
|
-
}, menu: users.length ? { items: users } : undefined, autoFocus: true, markdownOnly: true, defaultValue: '# Try writing some of your own markdown and see how it renders!\n\nYou can interact with mentions such as @deans:Seth DeAngelo:user:\n\nThere is built in support for #tags: as well!\n\nComponent renderings can also be conditionally overwritten: [Link](https://www.google.com) -- [Link with preview](https://www.pega.com)', onChange: () => setContent(editorRef.current?.getPlainText() || '') }, void 0), _jsx(RichTextViewer, { content: content, type: 'markdown', interactionRenderers: [MentionButtonConfig, HashtagButtonConfig], markdownMap: {
|
|
60
|
-
link: (linkToken) => {
|
|
61
|
-
if (linkToken.href?.includes('www.pega.com'))
|
|
62
|
-
return LinkComponent;
|
|
63
|
-
}
|
|
64
|
-
} }, void 0)] }, void 0));
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=RichTextViewer.stories.js.map
|