@pega/cosmos-react-demos 7.11.3 → 7.11.4-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/jsx/build/DynamicInput/DynamicInput.mocks.d.ts +0 -22
- package/jsx/build/DynamicInput/DynamicInput.mocks.d.ts.map +0 -1
- package/jsx/build/DynamicInput/DynamicInput.mocks.js +0 -75
- package/jsx/build/DynamicInput/DynamicInput.mocks.js.map +0 -1
- package/jsx/build/DynamicInput/DynamicInput.stories.d.ts +0 -12
- package/jsx/build/DynamicInput/DynamicInput.stories.d.ts.map +0 -1
- package/jsx/build/DynamicInput/DynamicInput.stories.jsx +0 -326
- package/jsx/build/DynamicInput/DynamicInput.stories.jsx.map +0 -1
- package/jsx/build/FieldReference/FieldReference.mocks.d.ts +0 -22
- package/jsx/build/FieldReference/FieldReference.mocks.d.ts.map +0 -1
- package/jsx/build/FieldReference/FieldReference.mocks.js +0 -727
- package/jsx/build/FieldReference/FieldReference.mocks.js.map +0 -1
- package/jsx/build/FieldReference/FieldReference.stories.d.ts +0 -30
- package/jsx/build/FieldReference/FieldReference.stories.d.ts.map +0 -1
- package/jsx/build/FieldReference/FieldReference.stories.jsx +0 -164
- package/jsx/build/FieldReference/FieldReference.stories.jsx.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +0 -3
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +0 -15
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +0 -19
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +0 -297
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +0 -5
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +0 -15
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +0 -6
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +0 -230
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +0 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +0 -10
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +0 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +0 -40
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +0 -4
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +0 -233
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +0 -8
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +0 -31
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -9
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +0 -35
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +0 -1
- package/jsx/core/AIButton/AIButton.mocks.d.ts +0 -22
- package/jsx/core/AIButton/AIButton.mocks.d.ts.map +0 -1
- package/jsx/core/AIButton/AIButton.mocks.js +0 -136
- package/jsx/core/AIButton/AIButton.mocks.js.map +0 -1
- package/jsx/core/AIButton/AIButton.stories.d.ts +0 -23
- package/jsx/core/AIButton/AIButton.stories.d.ts.map +0 -1
- package/jsx/core/AIButton/AIButton.stories.jsx +0 -318
- package/jsx/core/AIButton/AIButton.stories.jsx.map +0 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +0 -9
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +0 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +0 -25
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -30
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +0 -169
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +0 -40
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +0 -268
- package/jsx/core/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.styles.d.ts +0 -2
- package/jsx/core/AppShell/AppShell.styles.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.styles.js +0 -5
- package/jsx/core/AppShell/AppShell.styles.js.map +0 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts +0 -15
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +0 -1
- package/jsx/core/Avatar/Avatar.stories.jsx +0 -75
- package/jsx/core/Avatar/Avatar.stories.jsx.map +0 -1
- package/jsx/core/Backdrop/Backdrop.stories.d.ts +0 -7
- package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +0 -1
- package/jsx/core/Backdrop/Backdrop.stories.jsx +0 -43
- package/jsx/core/Backdrop/Backdrop.stories.jsx.map +0 -1
- package/jsx/core/Badges/Alert.stories.d.ts +0 -6
- package/jsx/core/Badges/Alert.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Alert.stories.jsx +0 -15
- package/jsx/core/Badges/Alert.stories.jsx.map +0 -1
- package/jsx/core/Badges/Count.stories.d.ts +0 -6
- package/jsx/core/Badges/Count.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Count.stories.jsx +0 -20
- package/jsx/core/Badges/Count.stories.jsx.map +0 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +0 -6
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Keyboard.stories.jsx +0 -17
- package/jsx/core/Badges/Keyboard.stories.jsx.map +0 -1
- package/jsx/core/Badges/Selection.stories.d.ts +0 -5
- package/jsx/core/Badges/Selection.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Selection.stories.jsx +0 -9
- package/jsx/core/Badges/Selection.stories.jsx.map +0 -1
- package/jsx/core/Badges/Status.stories.d.ts +0 -11
- package/jsx/core/Badges/Status.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Status.stories.jsx +0 -43
- package/jsx/core/Badges/Status.stories.jsx.map +0 -1
- package/jsx/core/Badges/Tag.stories.d.ts +0 -5
- package/jsx/core/Badges/Tag.stories.d.ts.map +0 -1
- package/jsx/core/Badges/Tag.stories.jsx +0 -9
- package/jsx/core/Badges/Tag.stories.jsx.map +0 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +0 -18
- package/jsx/core/Banner/Banner.mocks.d.ts.map +0 -1
- package/jsx/core/Banner/Banner.mocks.jsx +0 -41
- package/jsx/core/Banner/Banner.mocks.jsx.map +0 -1
- package/jsx/core/Banner/Banner.stories.d.ts +0 -18
- package/jsx/core/Banner/Banner.stories.d.ts.map +0 -1
- package/jsx/core/Banner/Banner.stories.jsx +0 -156
- package/jsx/core/Banner/Banner.stories.jsx.map +0 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +0 -6
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.jsx +0 -19
- package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +0 -2
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +0 -8
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +0 -69
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js +0 -12
- package/jsx/core/Breadcrumbs/Breadcrumbs.styles.js.map +0 -1
- package/jsx/core/Button/Button.stories.d.ts +0 -18
- package/jsx/core/Button/Button.stories.d.ts.map +0 -1
- package/jsx/core/Button/Button.stories.jsx +0 -119
- package/jsx/core/Button/Button.stories.jsx.map +0 -1
- package/jsx/core/Card/Card.stories.d.ts +0 -12
- package/jsx/core/Card/Card.stories.d.ts.map +0 -1
- package/jsx/core/Card/Card.stories.jsx +0 -85
- package/jsx/core/Card/Card.stories.jsx.map +0 -1
- package/jsx/core/Card/Card.styles.d.ts +0 -2
- package/jsx/core/Card/Card.styles.d.ts.map +0 -1
- package/jsx/core/Card/Card.styles.js +0 -5
- package/jsx/core/Card/Card.styles.js.map +0 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +0 -23
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -104
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -11
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +0 -103
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -4
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js +0 -9
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.js.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +0 -10
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +0 -89
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +0 -4
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +0 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.js +0 -10
- package/jsx/core/ColorPicker/ColorPicker.styles.js.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -26
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.jsx +0 -58
- package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +0 -1
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +0 -25
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -418
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +0 -8
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +0 -8
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +0 -9
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +0 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx +0 -52
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +0 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -7
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +0 -1
- package/jsx/core/Configuration/Configuration.mocks.jsx +0 -9
- package/jsx/core/Configuration/Configuration.mocks.jsx.map +0 -1
- package/jsx/core/Configuration/Configuration.stories.d.ts +0 -25
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +0 -1
- package/jsx/core/Configuration/Configuration.stories.jsx +0 -196
- package/jsx/core/Configuration/Configuration.stories.jsx.map +0 -1
- package/jsx/core/Configuration/Configuration.styles.d.ts +0 -6
- package/jsx/core/Configuration/Configuration.styles.d.ts.map +0 -1
- package/jsx/core/Configuration/Configuration.styles.js +0 -12
- package/jsx/core/Configuration/Configuration.styles.js.map +0 -1
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +0 -14
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +0 -1
- package/jsx/core/CreditCard/CreditCard.stories.jsx +0 -50
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +0 -1
- package/jsx/core/Currency/Currency.stories.d.ts +0 -19
- package/jsx/core/Currency/Currency.stories.d.ts.map +0 -1
- package/jsx/core/Currency/Currency.stories.jsx +0 -105
- package/jsx/core/Currency/Currency.stories.jsx.map +0 -1
- package/jsx/core/DangerButton/DangerButton.stories.d.ts +0 -6
- package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +0 -1
- package/jsx/core/DangerButton/DangerButton.stories.jsx +0 -17
- package/jsx/core/DangerButton/DangerButton.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +0 -54
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +0 -292
- package/jsx/core/DateTime/DateTime.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +0 -7
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +0 -54
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +0 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts +0 -7
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx +0 -34
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +0 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +0 -7
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +0 -1
- package/jsx/core/Dialog/Dialog.stories.jsx +0 -15
- package/jsx/core/Dialog/Dialog.stories.jsx.map +0 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -27
- package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +0 -1
- package/jsx/core/Dialog/FormDialog.mocks.jsx +0 -194
- package/jsx/core/Dialog/FormDialog.mocks.jsx.map +0 -1
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -4
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +0 -1
- package/jsx/core/Dialog/InfoDialog.mocks.jsx +0 -64
- package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +0 -1
- package/jsx/core/Drawer/Drawer.stories.d.ts +0 -7
- package/jsx/core/Drawer/Drawer.stories.d.ts.map +0 -1
- package/jsx/core/Drawer/Drawer.stories.jsx +0 -98
- package/jsx/core/Drawer/Drawer.stories.jsx.map +0 -1
- package/jsx/core/Drawer/Drawer.styles.d.ts +0 -2
- package/jsx/core/Drawer/Drawer.styles.d.ts.map +0 -1
- package/jsx/core/Drawer/Drawer.styles.js +0 -11
- package/jsx/core/Drawer/Drawer.styles.js.map +0 -1
- package/jsx/core/Email/EmailDisplay.stories.d.ts +0 -6
- package/jsx/core/Email/EmailDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Email/EmailDisplay.stories.jsx +0 -19
- package/jsx/core/Email/EmailDisplay.stories.jsx.map +0 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +0 -8
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +0 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +0 -53
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +0 -1
- package/jsx/core/EmptyState/EmptyState.stories.d.ts +0 -6
- package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +0 -1
- package/jsx/core/EmptyState/EmptyState.stories.jsx +0 -18
- package/jsx/core/EmptyState/EmptyState.stories.jsx.map +0 -1
- package/jsx/core/ErrorState/ErrorState.stories.d.ts +0 -9
- package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +0 -1
- package/jsx/core/ErrorState/ErrorState.stories.jsx +0 -20
- package/jsx/core/ErrorState/ErrorState.stories.jsx.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -7
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx +0 -73
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +0 -4
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +0 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js +0 -17
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.js.map +0 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +0 -20
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +0 -94
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -25
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +0 -109
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +0 -13
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -136
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -20
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.jsx +0 -54
- package/jsx/core/FieldValueList/FieldValueList.mocks.jsx.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +0 -11
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx +0 -37
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +0 -2
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +0 -1
- package/jsx/core/FieldValueList/FieldValueList.styles.js +0 -8
- package/jsx/core/FieldValueList/FieldValueList.styles.js.map +0 -1
- package/jsx/core/File/FileDisplay.mocks.d.ts +0 -4
- package/jsx/core/File/FileDisplay.mocks.d.ts.map +0 -1
- package/jsx/core/File/FileDisplay.mocks.js +0 -126
- package/jsx/core/File/FileDisplay.mocks.js.map +0 -1
- package/jsx/core/File/FileDisplay.stories.d.ts +0 -27
- package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
- package/jsx/core/File/FileDisplay.stories.jsx +0 -179
- package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
- package/jsx/core/File/FileInput.stories.d.ts +0 -13
- package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
- package/jsx/core/File/FileInput.stories.jsx +0 -162
- package/jsx/core/File/FileInput.stories.jsx.map +0 -1
- package/jsx/core/File/FileService.mock.d.ts +0 -31
- package/jsx/core/File/FileService.mock.d.ts.map +0 -1
- package/jsx/core/File/FileService.mock.jsx +0 -119
- package/jsx/core/File/FileService.mock.jsx.map +0 -1
- package/jsx/core/File/MockFileInput.d.ts +0 -6
- package/jsx/core/File/MockFileInput.d.ts.map +0 -1
- package/jsx/core/File/MockFileInput.jsx +0 -25
- package/jsx/core/File/MockFileInput.jsx.map +0 -1
- package/jsx/core/Flex/Flex.styles.d.ts +0 -10
- package/jsx/core/Flex/Flex.styles.d.ts.map +0 -1
- package/jsx/core/Flex/Flex.styles.js +0 -41
- package/jsx/core/Flex/Flex.styles.js.map +0 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +0 -21
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +0 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx +0 -164
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +0 -1
- package/jsx/core/Flex/FlexItem.stories.d.ts +0 -13
- package/jsx/core/Flex/FlexItem.stories.d.ts.map +0 -1
- package/jsx/core/Flex/FlexItem.stories.jsx +0 -71
- package/jsx/core/Flex/FlexItem.stories.jsx.map +0 -1
- package/jsx/core/Form/Form.mocks.d.ts +0 -14
- package/jsx/core/Form/Form.mocks.d.ts.map +0 -1
- package/jsx/core/Form/Form.mocks.jsx +0 -276
- package/jsx/core/Form/Form.mocks.jsx.map +0 -1
- package/jsx/core/Form/Form.stories.d.ts +0 -25
- package/jsx/core/Form/Form.stories.d.ts.map +0 -1
- package/jsx/core/Form/Form.stories.jsx +0 -106
- package/jsx/core/Form/Form.stories.jsx.map +0 -1
- package/jsx/core/Fullscreen/Fullscreen.stories.d.ts +0 -5
- package/jsx/core/Fullscreen/Fullscreen.stories.d.ts.map +0 -1
- package/jsx/core/Fullscreen/Fullscreen.stories.jsx +0 -22
- package/jsx/core/Fullscreen/Fullscreen.stories.jsx.map +0 -1
- package/jsx/core/Fullscreen/Fullscreen.styles.d.ts +0 -3
- package/jsx/core/Fullscreen/Fullscreen.styles.d.ts.map +0 -1
- package/jsx/core/Fullscreen/Fullscreen.styles.js +0 -9
- package/jsx/core/Fullscreen/Fullscreen.styles.js.map +0 -1
- package/jsx/core/Grid/Grid.styles.d.ts +0 -6
- package/jsx/core/Grid/Grid.styles.d.ts.map +0 -1
- package/jsx/core/Grid/Grid.styles.js +0 -36
- package/jsx/core/Grid/Grid.styles.js.map +0 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +0 -23
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +0 -1
- package/jsx/core/Grid/GridContainer.stories.jsx +0 -168
- package/jsx/core/Grid/GridContainer.stories.jsx.map +0 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +0 -12
- package/jsx/core/Grid/GridItem.stories.d.ts.map +0 -1
- package/jsx/core/Grid/GridItem.stories.jsx +0 -74
- package/jsx/core/Grid/GridItem.stories.jsx.map +0 -1
- package/jsx/core/HTML/HTML.stories.d.ts +0 -6
- package/jsx/core/HTML/HTML.stories.d.ts.map +0 -1
- package/jsx/core/HTML/HTML.stories.jsx +0 -13
- package/jsx/core/HTML/HTML.stories.jsx.map +0 -1
- package/jsx/core/Icon/Icon.mocks.d.ts +0 -26
- package/jsx/core/Icon/Icon.mocks.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.mocks.jsx +0 -32
- package/jsx/core/Icon/Icon.mocks.jsx.map +0 -1
- package/jsx/core/Icon/Icon.stories.d.ts +0 -21
- package/jsx/core/Icon/Icon.stories.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.stories.jsx +0 -112
- package/jsx/core/Icon/Icon.stories.jsx.map +0 -1
- package/jsx/core/Icon/Icon.styles.d.ts +0 -4
- package/jsx/core/Icon/Icon.styles.d.ts.map +0 -1
- package/jsx/core/Icon/Icon.styles.js +0 -25
- package/jsx/core/Icon/Icon.styles.js.map +0 -1
- package/jsx/core/IconPicker/IconPicker.mocks.d.ts +0 -2
- package/jsx/core/IconPicker/IconPicker.mocks.d.ts.map +0 -1
- package/jsx/core/IconPicker/IconPicker.mocks.js +0 -3
- package/jsx/core/IconPicker/IconPicker.mocks.js.map +0 -1
- package/jsx/core/IconPicker/IconPicker.stories.d.ts +0 -6
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -38
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +0 -1
- package/jsx/core/Image/Image.stories.d.ts +0 -5
- package/jsx/core/Image/Image.stories.d.ts.map +0 -1
- package/jsx/core/Image/Image.stories.jsx +0 -9
- package/jsx/core/Image/Image.stories.jsx.map +0 -1
- package/jsx/core/Input/Input.stories.d.ts +0 -20
- package/jsx/core/Input/Input.stories.d.ts.map +0 -1
- package/jsx/core/Input/Input.stories.jsx +0 -159
- package/jsx/core/Input/Input.stories.jsx.map +0 -1
- package/jsx/core/Label/Label.stories.d.ts +0 -10
- package/jsx/core/Label/Label.stories.d.ts.map +0 -1
- package/jsx/core/Label/Label.stories.jsx +0 -33
- package/jsx/core/Label/Label.stories.jsx.map +0 -1
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts +0 -28
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
- package/jsx/core/Lightbox/Lightbox.mocks.js +0 -118
- 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 -69
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
- package/jsx/core/Link/Link.stories.d.ts +0 -14
- package/jsx/core/Link/Link.stories.d.ts.map +0 -1
- package/jsx/core/Link/Link.stories.jsx +0 -48
- package/jsx/core/Link/Link.stories.jsx.map +0 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +0 -6
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +0 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx +0 -31
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +0 -1
- package/jsx/core/List/OrderedList.stories.d.ts +0 -10
- package/jsx/core/List/OrderedList.stories.d.ts.map +0 -1
- package/jsx/core/List/OrderedList.stories.jsx +0 -38
- package/jsx/core/List/OrderedList.stories.jsx.map +0 -1
- package/jsx/core/List/UnorderedList.stories.d.ts +0 -10
- package/jsx/core/List/UnorderedList.stories.d.ts.map +0 -1
- package/jsx/core/List/UnorderedList.stories.jsx +0 -38
- package/jsx/core/List/UnorderedList.stories.jsx.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +0 -9
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +0 -58
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +0 -17
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +0 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +0 -141
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +0 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts +0 -5
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +0 -1
- package/jsx/core/LiveLog/LiveLog.mocks.jsx +0 -47
- package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +0 -1
- package/jsx/core/LiveLog/LiveLog.stories.d.ts +0 -6
- package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +0 -1
- package/jsx/core/LiveLog/LiveLog.stories.jsx +0 -13
- package/jsx/core/LiveLog/LiveLog.stories.jsx.map +0 -1
- package/jsx/core/Location/Location.stories.d.ts +0 -25
- package/jsx/core/Location/Location.stories.d.ts.map +0 -1
- package/jsx/core/Location/Location.stories.jsx +0 -200
- package/jsx/core/Location/Location.stories.jsx.map +0 -1
- package/jsx/core/Location/locationTestUtils.d.ts +0 -8
- package/jsx/core/Location/locationTestUtils.d.ts.map +0 -1
- package/jsx/core/Location/locationTestUtils.js +0 -73
- package/jsx/core/Location/locationTestUtils.js.map +0 -1
- package/jsx/core/Menu/Menu.mocks.d.ts +0 -4
- package/jsx/core/Menu/Menu.mocks.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.mocks.js +0 -183
- package/jsx/core/Menu/Menu.mocks.js.map +0 -1
- package/jsx/core/Menu/Menu.stories.d.ts +0 -18
- package/jsx/core/Menu/Menu.stories.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.stories.jsx +0 -209
- package/jsx/core/Menu/Menu.stories.jsx.map +0 -1
- package/jsx/core/Menu/Menu.styles.d.ts +0 -2
- package/jsx/core/Menu/Menu.styles.d.ts.map +0 -1
- package/jsx/core/Menu/Menu.styles.js +0 -6
- package/jsx/core/Menu/Menu.styles.js.map +0 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +0 -16
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +0 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx +0 -194
- 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 -45
- package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.mocks.jsx +0 -204
- package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
- package/jsx/core/Modal/Modal.stories.d.ts +0 -12
- package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.stories.jsx +0 -175
- package/jsx/core/Modal/Modal.stories.jsx.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -70
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +0 -408
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +0 -7
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +0 -133
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +0 -1
- package/jsx/core/NoValue/NoValue.stories.d.ts +0 -6
- package/jsx/core/NoValue/NoValue.stories.d.ts.map +0 -1
- package/jsx/core/NoValue/NoValue.stories.jsx +0 -30
- package/jsx/core/NoValue/NoValue.stories.jsx.map +0 -1
- package/jsx/core/Number/Number.stories.d.ts +0 -19
- package/jsx/core/Number/Number.stories.d.ts.map +0 -1
- package/jsx/core/Number/Number.stories.jsx +0 -303
- package/jsx/core/Number/Number.stories.jsx.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +0 -3
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.js +0 -10
- package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +0 -35
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -301
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +0 -5
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +0 -40
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +0 -1
- package/jsx/core/Pagination/Pagination.stories.d.ts +0 -6
- package/jsx/core/Pagination/Pagination.stories.d.ts.map +0 -1
- package/jsx/core/Pagination/Pagination.stories.jsx +0 -19
- package/jsx/core/Pagination/Pagination.stories.jsx.map +0 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +0 -6
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +0 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx +0 -15
- package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +0 -1
- package/jsx/core/Phone/Phone.stories.d.ts +0 -13
- package/jsx/core/Phone/Phone.stories.d.ts.map +0 -1
- package/jsx/core/Phone/Phone.stories.jsx +0 -52
- package/jsx/core/Phone/Phone.stories.jsx.map +0 -1
- package/jsx/core/Popover/Popover.mocks.d.ts +0 -9
- package/jsx/core/Popover/Popover.mocks.d.ts.map +0 -1
- package/jsx/core/Popover/Popover.mocks.jsx +0 -114
- package/jsx/core/Popover/Popover.mocks.jsx.map +0 -1
- package/jsx/core/Popover/Popover.stories.d.ts +0 -13
- package/jsx/core/Popover/Popover.stories.d.ts.map +0 -1
- package/jsx/core/Popover/Popover.stories.jsx +0 -209
- package/jsx/core/Popover/Popover.stories.jsx.map +0 -1
- package/jsx/core/Progress/Progress.mocks.d.ts +0 -2
- package/jsx/core/Progress/Progress.mocks.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.mocks.js +0 -2
- package/jsx/core/Progress/Progress.mocks.js.map +0 -1
- package/jsx/core/Progress/Progress.stories.d.ts +0 -16
- package/jsx/core/Progress/Progress.stories.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.stories.jsx +0 -124
- package/jsx/core/Progress/Progress.stories.jsx.map +0 -1
- package/jsx/core/Progress/Progress.styles.d.ts +0 -2
- package/jsx/core/Progress/Progress.styles.d.ts.map +0 -1
- package/jsx/core/Progress/Progress.styles.js +0 -14
- package/jsx/core/Progress/Progress.styles.js.map +0 -1
- package/jsx/core/QRCode/QRCode.stories.d.ts +0 -9
- package/jsx/core/QRCode/QRCode.stories.d.ts.map +0 -1
- package/jsx/core/QRCode/QRCode.stories.jsx +0 -17
- package/jsx/core/QRCode/QRCode.stories.jsx.map +0 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +0 -23
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +0 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -99
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +0 -14
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +0 -105
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -4
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js +0 -9
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +0 -1
- package/jsx/core/Rating/Rating.stories.d.ts +0 -13
- package/jsx/core/Rating/Rating.stories.d.ts.map +0 -1
- package/jsx/core/Rating/Rating.stories.jsx +0 -39
- package/jsx/core/Rating/Rating.stories.jsx.map +0 -1
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts +0 -12
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +0 -1
- package/jsx/core/SearchInput/SearchInput.mocks.js +0 -25
- package/jsx/core/SearchInput/SearchInput.mocks.js.map +0 -1
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +0 -8
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -63
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +0 -1
- package/jsx/core/Select/Select.stories.d.ts +0 -18
- package/jsx/core/Select/Select.stories.d.ts.map +0 -1
- package/jsx/core/Select/Select.stories.jsx +0 -83
- package/jsx/core/Select/Select.stories.jsx.map +0 -1
- package/jsx/core/Sentiment/Sentiment.stories.d.ts +0 -20
- package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +0 -1
- package/jsx/core/Sentiment/Sentiment.stories.jsx +0 -71
- package/jsx/core/Sentiment/Sentiment.stories.jsx.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +0 -6
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx +0 -29
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +0 -2
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +0 -1
- package/jsx/core/SkipLinks/SkipLinks.styles.js +0 -16
- package/jsx/core/SkipLinks/SkipLinks.styles.js.map +0 -1
- package/jsx/core/Slider/Slider.stories.d.ts +0 -13
- package/jsx/core/Slider/Slider.stories.d.ts.map +0 -1
- package/jsx/core/Slider/Slider.stories.jsx +0 -78
- package/jsx/core/Slider/Slider.stories.jsx.map +0 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +0 -11
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +0 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx +0 -38
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +0 -1
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts +0 -20
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +0 -1
- package/jsx/core/SummaryList/SummaryList.mocks.jsx +0 -48
- package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +0 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +0 -13
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +0 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx +0 -131
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +0 -1
- package/jsx/core/SummaryList/mockUsers.d.ts +0 -16
- package/jsx/core/SummaryList/mockUsers.d.ts.map +0 -1
- package/jsx/core/SummaryList/mockUsers.js +0 -904
- package/jsx/core/SummaryList/mockUsers.js.map +0 -1
- package/jsx/core/Switch/Switch.stories.d.ts +0 -14
- package/jsx/core/Switch/Switch.stories.d.ts.map +0 -1
- package/jsx/core/Switch/Switch.stories.jsx +0 -60
- package/jsx/core/Switch/Switch.stories.jsx.map +0 -1
- package/jsx/core/Switch/Switch.styles.d.ts +0 -2
- package/jsx/core/Switch/Switch.styles.d.ts.map +0 -1
- package/jsx/core/Switch/Switch.styles.js +0 -13
- package/jsx/core/Switch/Switch.styles.js.map +0 -1
- package/jsx/core/Table/Table.mocks.d.ts +0 -25
- package/jsx/core/Table/Table.mocks.d.ts.map +0 -1
- package/jsx/core/Table/Table.mocks.jsx +0 -166
- package/jsx/core/Table/Table.mocks.jsx.map +0 -1
- package/jsx/core/Table/Table.stories.d.ts +0 -39
- package/jsx/core/Table/Table.stories.d.ts.map +0 -1
- package/jsx/core/Table/Table.stories.jsx +0 -178
- package/jsx/core/Table/Table.stories.jsx.map +0 -1
- package/jsx/core/Table/Table.styles.d.ts +0 -4
- package/jsx/core/Table/Table.styles.d.ts.map +0 -1
- package/jsx/core/Table/Table.styles.js +0 -9
- package/jsx/core/Table/Table.styles.js.map +0 -1
- package/jsx/core/Tabs/Tabs.mocks.d.ts +0 -6
- package/jsx/core/Tabs/Tabs.mocks.d.ts.map +0 -1
- package/jsx/core/Tabs/Tabs.mocks.jsx +0 -29
- package/jsx/core/Tabs/Tabs.mocks.jsx.map +0 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +0 -9
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +0 -51
- package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
- package/jsx/core/Text/Text.stories.d.ts +0 -25
- package/jsx/core/Text/Text.stories.d.ts.map +0 -1
- package/jsx/core/Text/Text.stories.jsx +0 -134
- package/jsx/core/Text/Text.stories.jsx.map +0 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +0 -14
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +0 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +0 -71
- package/jsx/core/TextArea/TextArea.stories.jsx.map +0 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +0 -6
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +0 -45
- package/jsx/core/Toaster/Toaster.stories.jsx.map +0 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +0 -11
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx +0 -66
- package/jsx/core/Tooltip/Tooltip.stories.jsx.map +0 -1
- package/jsx/core/Tooltip/Tooltip.styles.d.ts +0 -2
- package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +0 -1
- package/jsx/core/Tooltip/Tooltip.styles.js +0 -23
- package/jsx/core/Tooltip/Tooltip.styles.js.map +0 -1
- package/jsx/core/Tree/Tree.mocks.d.ts +0 -2
- package/jsx/core/Tree/Tree.mocks.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.mocks.js +0 -20
- package/jsx/core/Tree/Tree.mocks.js.map +0 -1
- package/jsx/core/Tree/Tree.stories.d.ts +0 -7
- package/jsx/core/Tree/Tree.stories.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.stories.jsx +0 -95
- package/jsx/core/Tree/Tree.stories.jsx.map +0 -1
- package/jsx/core/Tree/Tree.styles.d.ts +0 -3
- package/jsx/core/Tree/Tree.styles.d.ts.map +0 -1
- package/jsx/core/Tree/Tree.styles.js +0 -10
- package/jsx/core/Tree/Tree.styles.js.map +0 -1
- package/jsx/core/URL/URL.stories.d.ts +0 -6
- package/jsx/core/URL/URL.stories.d.ts.map +0 -1
- package/jsx/core/URL/URL.stories.jsx +0 -17
- package/jsx/core/URL/URL.stories.jsx.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +0 -15
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +0 -33
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +0 -10
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx +0 -55
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +0 -6
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +0 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.js +0 -32
- package/jsx/dnd/DragDropList/DragDropList.styles.js.map +0 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +0 -13
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/Demo.jsx +0 -168
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -10
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +0 -26
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -12
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +0 -21
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +0 -14
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/Popover.jsx +0 -51
- package/jsx/dnd/StandardDragDropList/Popover.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -17
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +0 -104
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +0 -9
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +0 -31
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +0 -25
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/mockData.js +0 -67
- package/jsx/dnd/StandardDragDropList/mockData.js.map +0 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -103
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
- package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +0 -11
- package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +0 -82
- package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +0 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts +0 -334
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +0 -1
- package/jsx/rte/Editor/Editor.mocks.jsx +0 -46
- package/jsx/rte/Editor/Editor.mocks.jsx.map +0 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +0 -15
- package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
- package/jsx/rte/Editor/Editor.stories.jsx +0 -197
- package/jsx/rte/Editor/Editor.stories.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +0 -3
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx +0 -34
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +0 -7
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +0 -108
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +0 -13
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +0 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +0 -155
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +0 -51
- package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.mocks.js +0 -756
- package/jsx/social/Chat/Chat.mocks.js.map +0 -1
- package/jsx/social/Chat/Chat.stories.d.ts +0 -57
- package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.stories.jsx +0 -767
- package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
- package/jsx/social/Email/Email.mocks.d.ts +0 -353
- package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
- package/jsx/social/Email/Email.mocks.jsx +0 -1226
- package/jsx/social/Email/Email.mocks.jsx.map +0 -1
- package/jsx/social/Email/Email.stories.d.ts +0 -83
- package/jsx/social/Email/Email.stories.d.ts.map +0 -1
- package/jsx/social/Email/Email.stories.jsx +0 -1268
- package/jsx/social/Email/Email.stories.jsx.map +0 -1
- package/jsx/social/Email/Email.styles.d.ts +0 -3
- package/jsx/social/Email/Email.styles.d.ts.map +0 -1
- package/jsx/social/Email/Email.styles.js +0 -11
- package/jsx/social/Email/Email.styles.js.map +0 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +0 -55
- package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/Feed.mocks.jsx +0 -433
- package/jsx/social/Feed/Feed.mocks.jsx.map +0 -1
- package/jsx/social/Feed/Feed.stories.d.ts +0 -11
- package/jsx/social/Feed/Feed.stories.d.ts.map +0 -1
- package/jsx/social/Feed/Feed.stories.jsx +0 -223
- package/jsx/social/Feed/Feed.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -8
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/FeedNewPost.mocks.jsx +0 -72
- package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +0 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -4
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/FeedPost.mocks.jsx +0 -192
- package/jsx/social/Feed/FeedPost.mocks.jsx.map +0 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -13
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/FeedReply.mocks.jsx +0 -83
- package/jsx/social/Feed/FeedReply.mocks.jsx.map +0 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +0 -6
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +0 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +0 -30
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +0 -1
- package/jsx/work/Article/Article.mocks.d.ts +0 -18
- package/jsx/work/Article/Article.mocks.d.ts.map +0 -1
- package/jsx/work/Article/Article.mocks.js +0 -18
- package/jsx/work/Article/Article.mocks.js.map +0 -1
- package/jsx/work/Article/Article.stories.d.ts +0 -18
- package/jsx/work/Article/Article.stories.d.ts.map +0 -1
- package/jsx/work/Article/Article.stories.jsx +0 -272
- package/jsx/work/Article/Article.stories.jsx.map +0 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +0 -12
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +0 -143
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +0 -1
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts +0 -223
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleList.mocks.js +0 -652
- package/jsx/work/ArticleList/ArticleList.mocks.js.map +0 -1
- package/jsx/work/ArticleList/ArticleList.stories.d.ts +0 -18
- package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleList.stories.jsx +0 -882
- package/jsx/work/ArticleList/ArticleList.stories.jsx.map +0 -1
- package/jsx/work/Assignments/Assignments.stories.d.ts +0 -11
- package/jsx/work/Assignments/Assignments.stories.d.ts.map +0 -1
- package/jsx/work/Assignments/Assignments.stories.jsx +0 -64
- package/jsx/work/Assignments/Assignments.stories.jsx.map +0 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -3
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +0 -395
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -121
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +0 -693
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +0 -6
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +0 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +0 -65
- package/jsx/work/CaseView/CaseView.stories.jsx.map +0 -1
- package/jsx/work/CaseView/Details.mocks.d.ts +0 -3
- package/jsx/work/CaseView/Details.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Details.mocks.jsx +0 -21
- package/jsx/work/CaseView/Details.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +0 -7
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +0 -36
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -45
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +0 -166
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +0 -5
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +0 -24
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +0 -4
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +0 -11
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +0 -1
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +0 -13
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +0 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +0 -37
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +0 -1
- package/jsx/work/Confirmation/Confirmation.styles.d.ts +0 -2
- package/jsx/work/Confirmation/Confirmation.styles.d.ts.map +0 -1
- package/jsx/work/Confirmation/Confirmation.styles.js +0 -7
- package/jsx/work/Confirmation/Confirmation.styles.js.map +0 -1
- package/jsx/work/Details/Details.stories.d.ts +0 -10
- package/jsx/work/Details/Details.stories.d.ts.map +0 -1
- package/jsx/work/Details/Details.stories.jsx +0 -214
- package/jsx/work/Details/Details.stories.jsx.map +0 -1
- package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts +0 -22
- package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts.map +0 -1
- package/jsx/work/GenAICoach/GenAICoach.mocks.js +0 -124
- package/jsx/work/GenAICoach/GenAICoach.mocks.js.map +0 -1
- package/jsx/work/GenAICoach/GenAICoach.stories.d.ts +0 -19
- package/jsx/work/GenAICoach/GenAICoach.stories.d.ts.map +0 -1
- package/jsx/work/GenAICoach/GenAICoach.stories.jsx +0 -133
- package/jsx/work/GenAICoach/GenAICoach.stories.jsx.map +0 -1
- package/jsx/work/GenAICoach/useGenAICoach.d.ts +0 -5
- package/jsx/work/GenAICoach/useGenAICoach.d.ts.map +0 -1
- package/jsx/work/GenAICoach/useGenAICoach.js +0 -90
- package/jsx/work/GenAICoach/useGenAICoach.js.map +0 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts +0 -5
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +0 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx +0 -42
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +0 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +0 -24
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +0 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx +0 -558
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx.map +0 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +0 -13
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +0 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx +0 -134
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx.map +0 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -5
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +0 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +0 -115
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +0 -1
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx +0 -54
- package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -3
- package/jsx/work/Predictions/Predictions.mocks.d.ts.map +0 -1
- package/jsx/work/Predictions/Predictions.mocks.jsx +0 -18
- package/jsx/work/Predictions/Predictions.mocks.jsx.map +0 -1
- package/jsx/work/Predictions/Predictions.stories.d.ts +0 -5
- package/jsx/work/Predictions/Predictions.stories.d.ts.map +0 -1
- package/jsx/work/Predictions/Predictions.stories.jsx +0 -53
- package/jsx/work/Predictions/Predictions.stories.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +0 -14
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx +0 -97
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +0 -9
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +0 -242
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +0 -1
- package/jsx/work/SearchResults/SearchResults.styles.d.ts +0 -5
- package/jsx/work/SearchResults/SearchResults.styles.d.ts.map +0 -1
- package/jsx/work/SearchResults/SearchResults.styles.js +0 -12
- package/jsx/work/SearchResults/SearchResults.styles.js.map +0 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +0 -14
- package/jsx/work/Stages/Stages.mocks.d.ts.map +0 -1
- package/jsx/work/Stages/Stages.mocks.jsx +0 -40
- package/jsx/work/Stages/Stages.mocks.jsx.map +0 -1
- package/jsx/work/Stages/Stages.stories.d.ts +0 -11
- package/jsx/work/Stages/Stages.stories.d.ts.map +0 -1
- package/jsx/work/Stages/Stages.stories.jsx +0 -48
- package/jsx/work/Stages/Stages.stories.jsx.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +0 -17
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +0 -36
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +0 -8
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +0 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +0 -99
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +0 -1
- package/jsx/work/Tags/Tags.mocks.d.ts +0 -3
- package/jsx/work/Tags/Tags.mocks.d.ts.map +0 -1
- package/jsx/work/Tags/Tags.mocks.js +0 -76
- package/jsx/work/Tags/Tags.mocks.js.map +0 -1
- package/jsx/work/Tags/Tags.stories.d.ts +0 -10
- package/jsx/work/Tags/Tags.stories.d.ts.map +0 -1
- package/jsx/work/Tags/Tags.stories.jsx +0 -66
- package/jsx/work/Tags/Tags.stories.jsx.map +0 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts +0 -5
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +0 -1
- package/jsx/work/Tasks/TaskList.stories.jsx +0 -19
- package/jsx/work/Tasks/TaskList.stories.jsx.map +0 -1
- package/jsx/work/Tasks/Tasks.mocks.d.ts +0 -22
- package/jsx/work/Tasks/Tasks.mocks.d.ts.map +0 -1
- package/jsx/work/Tasks/Tasks.mocks.js +0 -51
- package/jsx/work/Tasks/Tasks.mocks.js.map +0 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +0 -15
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +0 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +0 -88
- 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 -151
- package/jsx/work/Timeline/Timeline.mocks.jsx.map +0 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +0 -85
- package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +0 -12
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +0 -1
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx +0 -29
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx.map +0 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -24
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/wss/AppShell/AppShell.mocks.jsx +0 -64
- package/jsx/wss/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/wss/AppShell/AppShell.stories.d.ts +0 -19
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/wss/AppShell/AppShell.stories.jsx +0 -96
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/wss/AppShell/AppShell.styles.d.ts +0 -2
- package/jsx/wss/AppShell/AppShell.styles.d.ts.map +0 -1
- package/jsx/wss/AppShell/AppShell.styles.js +0 -5
- package/jsx/wss/AppShell/AppShell.styles.js.map +0 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -13
- package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +0 -1
- package/jsx/wss/CaseView/CaseView.mocks.jsx +0 -34
- package/jsx/wss/CaseView/CaseView.mocks.jsx.map +0 -1
- package/jsx/wss/CaseView/CaseView.stories.d.ts +0 -12
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +0 -1
- package/jsx/wss/CaseView/CaseView.stories.jsx +0 -74
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +0 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +0 -16
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +0 -47
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +0 -11
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +0 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +0 -28
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +0 -1
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { useState, useMemo, useEffect } from 'react';
|
|
2
|
-
import { Avatar, Button, Flex, MenuButton, menuHelpers } from '@pega/cosmos-react-core';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Core/MenuButton',
|
|
5
|
-
component: MenuButton,
|
|
6
|
-
args: {
|
|
7
|
-
variant: 'secondary',
|
|
8
|
-
showIcon: true,
|
|
9
|
-
iconOnly: false,
|
|
10
|
-
showArrow: false,
|
|
11
|
-
showItemVisual: true,
|
|
12
|
-
showItemSecondary: true,
|
|
13
|
-
showItemCount: true
|
|
14
|
-
},
|
|
15
|
-
argTypes: {
|
|
16
|
-
text: { control: { type: 'text' } },
|
|
17
|
-
variant: {
|
|
18
|
-
options: ['primary', 'secondary', 'simple', 'link', 'text'],
|
|
19
|
-
control: { type: 'select' }
|
|
20
|
-
},
|
|
21
|
-
showIcon: { control: { type: 'boolean' } },
|
|
22
|
-
iconOnly: { control: { type: 'boolean' } },
|
|
23
|
-
showArrow: {
|
|
24
|
-
control: { type: 'boolean' },
|
|
25
|
-
if: { arg: 'iconOnly', truthy: true }
|
|
26
|
-
},
|
|
27
|
-
showItemVisual: { control: { type: 'boolean' } },
|
|
28
|
-
showItemSecondary: { control: { type: 'boolean' } },
|
|
29
|
-
showItemCount: { control: { type: 'boolean' } }
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export const MenuButtonAction = (args) => {
|
|
33
|
-
const [items, setItems] = useState(() => Array.from({ length: 10 }, (_, i) => {
|
|
34
|
-
return {
|
|
35
|
-
id: `${i}`,
|
|
36
|
-
primary: `Item ${i + 1}`,
|
|
37
|
-
secondary: ['Meta A', 'Meta B', 'Meta C'],
|
|
38
|
-
items: i === 2 ? [{ id: 'sub', primary: 'SubItem' }] : undefined
|
|
39
|
-
};
|
|
40
|
-
}));
|
|
41
|
-
const itemsToRender = useMemo(() => {
|
|
42
|
-
return menuHelpers.mapTree(items, item => {
|
|
43
|
-
return {
|
|
44
|
-
...item,
|
|
45
|
-
visual: args.showItemVisual ? <Avatar name={item.primary}/> : undefined,
|
|
46
|
-
secondary: args.showItemSecondary ? item.secondary : undefined
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
}, [items, args.showItemVisual, args.showItemSecondary]);
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
setItems(cur => {
|
|
52
|
-
return menuHelpers.mapTree(cur, item => {
|
|
53
|
-
return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
}, [args.showItemCount]);
|
|
57
|
-
return (<MenuButton text={args.text} variant={args.variant} icon={args.showIcon ? 'user-list-solid' : undefined} iconOnly={args.iconOnly} showArrow={args.showArrow} menu={{
|
|
58
|
-
mode: 'action',
|
|
59
|
-
items: itemsToRender,
|
|
60
|
-
onItemClick: () => { }
|
|
61
|
-
}}/>);
|
|
62
|
-
};
|
|
63
|
-
MenuButtonAction.args = {
|
|
64
|
-
text: 'Actions'
|
|
65
|
-
};
|
|
66
|
-
export const MenuButtonSingleSelect = (args) => {
|
|
67
|
-
const [items, setItems] = useState(() => Array.from({ length: 10 }, (_, i) => {
|
|
68
|
-
return {
|
|
69
|
-
id: `${i}`,
|
|
70
|
-
primary: `Item ${i + 1}`,
|
|
71
|
-
secondary: ['Meta A', 'Meta B', 'Meta C'],
|
|
72
|
-
selected: false
|
|
73
|
-
};
|
|
74
|
-
}));
|
|
75
|
-
const handleMenuItemClick = (id) => {
|
|
76
|
-
setItems(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
|
|
77
|
-
};
|
|
78
|
-
const itemsToRender = useMemo(() => {
|
|
79
|
-
return menuHelpers.mapTree(items, item => {
|
|
80
|
-
return {
|
|
81
|
-
...item,
|
|
82
|
-
visual: args.showItemVisual ? <Avatar name={item.primary}/> : undefined,
|
|
83
|
-
secondary: args.showItemSecondary ? item.secondary : undefined
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
}, [items, args.showItemVisual, args.showItemSecondary]);
|
|
87
|
-
const buttonText = useMemo(() => {
|
|
88
|
-
const selected = menuHelpers.getSelected(items)[0];
|
|
89
|
-
return selected ? selected.primary : args.text;
|
|
90
|
-
}, [items]);
|
|
91
|
-
useEffect(() => {
|
|
92
|
-
setItems(cur => {
|
|
93
|
-
return menuHelpers.mapTree(cur, item => {
|
|
94
|
-
return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
}, [args.showItemCount]);
|
|
98
|
-
return (<MenuButton text={buttonText} variant={args.variant} icon={args.showIcon ? 'user-list-solid' : undefined} iconOnly={args.iconOnly} showArrow={args.showArrow} menu={{
|
|
99
|
-
mode: 'single-select',
|
|
100
|
-
items: itemsToRender,
|
|
101
|
-
onItemClick: handleMenuItemClick
|
|
102
|
-
}}/>);
|
|
103
|
-
};
|
|
104
|
-
MenuButtonSingleSelect.args = {
|
|
105
|
-
text: 'Select an item'
|
|
106
|
-
};
|
|
107
|
-
export const MenuButtonMultiSelect = (args) => {
|
|
108
|
-
const [items, setItems] = useState(() => Array.from({ length: 10 }, (_, i) => {
|
|
109
|
-
return {
|
|
110
|
-
id: `${i}`,
|
|
111
|
-
primary: `Item ${i + 1}`,
|
|
112
|
-
secondary: ['Meta A', 'Meta B', 'Meta C'],
|
|
113
|
-
selected: false
|
|
114
|
-
};
|
|
115
|
-
}));
|
|
116
|
-
const handleMenuItemClick = (id) => {
|
|
117
|
-
setItems(cur => menuHelpers.toggleSelected(cur, id, 'multi-select'));
|
|
118
|
-
};
|
|
119
|
-
const itemsToRender = useMemo(() => {
|
|
120
|
-
return menuHelpers.mapTree(items, item => {
|
|
121
|
-
return {
|
|
122
|
-
...item,
|
|
123
|
-
visual: args.showItemVisual ? <Avatar name={item.primary}/> : undefined,
|
|
124
|
-
secondary: args.showItemSecondary ? item.secondary : undefined
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
}, [items, args.showItemVisual, args.showItemSecondary]);
|
|
128
|
-
const selectionCount = useMemo(() => menuHelpers.getSelected(items).length, [items]);
|
|
129
|
-
useEffect(() => {
|
|
130
|
-
setItems(cur => {
|
|
131
|
-
return menuHelpers.mapTree(cur, item => {
|
|
132
|
-
return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
}, [args.showItemCount]);
|
|
136
|
-
return (<MenuButton text={args.text} variant={args.variant} icon={args.showIcon ? 'user-list-solid' : undefined} iconOnly={args.iconOnly} showArrow={args.showArrow} count={selectionCount} menu={{
|
|
137
|
-
mode: 'multi-select',
|
|
138
|
-
items: itemsToRender,
|
|
139
|
-
onItemClick: handleMenuItemClick,
|
|
140
|
-
footer: (<Flex container={{ justify: 'center' }}>
|
|
141
|
-
<Button variant='link' disabled={selectionCount <= 0} onClick={() => {
|
|
142
|
-
setItems(cur => {
|
|
143
|
-
return menuHelpers.mapTree(cur, item => {
|
|
144
|
-
return {
|
|
145
|
-
...item,
|
|
146
|
-
selected: false
|
|
147
|
-
};
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
}}>
|
|
151
|
-
Clear
|
|
152
|
-
</Button>
|
|
153
|
-
</Flex>)
|
|
154
|
-
}}/>);
|
|
155
|
-
};
|
|
156
|
-
MenuButtonMultiSelect.args = {
|
|
157
|
-
text: 'Select items'
|
|
158
|
-
};
|
|
159
|
-
export const MenuButtonDisabledItems = (args) => {
|
|
160
|
-
const [items, setItems] = useState(() => Array.from({ length: 10 }, (_, i) => {
|
|
161
|
-
return {
|
|
162
|
-
id: `${i}`,
|
|
163
|
-
primary: `Item ${i + 1}`,
|
|
164
|
-
secondary: ['Meta A', 'Meta B', 'Meta C'],
|
|
165
|
-
selected: false
|
|
166
|
-
};
|
|
167
|
-
}));
|
|
168
|
-
const itemsToRender = useMemo(() => {
|
|
169
|
-
return menuHelpers.mapTree(items, (item, index) => {
|
|
170
|
-
return {
|
|
171
|
-
...item,
|
|
172
|
-
visual: args.showItemVisual ? <Avatar name={item.primary}/> : undefined,
|
|
173
|
-
secondary: args.showItemSecondary ? item.secondary : undefined,
|
|
174
|
-
disabled: (index + 1) % 2 === 0
|
|
175
|
-
};
|
|
176
|
-
});
|
|
177
|
-
}, [items, args.showItemVisual, args.showItemSecondary]);
|
|
178
|
-
useEffect(() => {
|
|
179
|
-
setItems(cur => {
|
|
180
|
-
return menuHelpers.mapTree(cur, item => {
|
|
181
|
-
return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
}, [args.showItemCount]);
|
|
185
|
-
return (<MenuButton text={args.text} variant={args.variant} icon={args.showIcon ? 'user-list-solid' : undefined} iconOnly={args.iconOnly} showArrow={args.showArrow} menu={{
|
|
186
|
-
mode: 'action',
|
|
187
|
-
items: itemsToRender,
|
|
188
|
-
onItemClick: args.onItemClick
|
|
189
|
-
}}/>);
|
|
190
|
-
};
|
|
191
|
-
MenuButtonDisabledItems.args = {
|
|
192
|
-
text: 'Actions'
|
|
193
|
-
};
|
|
194
|
-
//# sourceMappingURL=MenuButton.stories.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MenuButton.stories.jsx","sourceRoot":"","sources":["../../../src/core/MenuButton/MenuButton.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGxF,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE;QACJ,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,KAAK;QAChB,cAAc,EAAE,IAAI;QACpB,iBAAiB,EAAE,IAAI;QACvB,aAAa,EAAE,IAAI;KACpB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACnC,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;YAC3D,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;QACD,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC1C,QA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CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState, useMemo, useEffect } from 'react';\n\nimport { Avatar, Button, Flex, MenuButton, menuHelpers } from '@pega/cosmos-react-core';\nimport type { MenuButtonProps, MenuItemProps, MenuProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/MenuButton',\n component: MenuButton,\n args: {\n variant: 'secondary',\n showIcon: true,\n iconOnly: false,\n showArrow: false,\n showItemVisual: true,\n showItemSecondary: true,\n showItemCount: true\n },\n argTypes: {\n text: { control: { type: 'text' } },\n variant: {\n options: ['primary', 'secondary', 'simple', 'link', 'text'],\n control: { type: 'select' }\n },\n showIcon: { control: { type: 'boolean' } },\n iconOnly: { control: { type: 'boolean' } },\n showArrow: {\n control: { type: 'boolean' },\n if: { arg: 'iconOnly', truthy: true }\n },\n showItemVisual: { control: { type: 'boolean' } },\n showItemSecondary: { control: { type: 'boolean' } },\n showItemCount: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ntype MenuButtonStoryProps = MenuButtonProps & {\n showIcon?: boolean;\n showItemVisual?: boolean;\n showItemSecondary?: boolean;\n showItemCount?: boolean;\n onItemClick?: () => void;\n};\n\nexport const MenuButtonAction: StoryFn<MenuButtonStoryProps> = (args: MenuButtonStoryProps) => {\n const [items, setItems] = useState<MenuProps['items']>(() =>\n Array.from({ length: 10 }, (_, i) => {\n return {\n id: `${i}`,\n primary: `Item ${i + 1}`,\n secondary: ['Meta A', 'Meta B', 'Meta C'],\n items: i === 2 ? [{ id: 'sub', primary: 'SubItem' }] : undefined\n };\n })\n );\n\n const itemsToRender = useMemo(() => {\n return menuHelpers.mapTree(items, item => {\n return {\n ...item,\n visual: args.showItemVisual ? <Avatar name={item.primary} /> : undefined,\n secondary: args.showItemSecondary ? item.secondary : undefined\n };\n });\n }, [items, args.showItemVisual, args.showItemSecondary]);\n\n useEffect(() => {\n setItems(cur => {\n return menuHelpers.mapTree(cur, item => {\n return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };\n });\n });\n }, [args.showItemCount]);\n\n return (\n <MenuButton\n text={args.text}\n variant={args.variant}\n icon={args.showIcon ? 'user-list-solid' : undefined}\n iconOnly={args.iconOnly}\n showArrow={args.showArrow}\n menu={{\n mode: 'action',\n items: itemsToRender,\n onItemClick: () => {}\n }}\n />\n );\n};\n\nMenuButtonAction.args = {\n text: 'Actions'\n};\n\nexport const MenuButtonSingleSelect: StoryFn<MenuButtonStoryProps> = (\n args: MenuButtonStoryProps\n) => {\n const [items, setItems] = useState<MenuProps['items']>(() =>\n Array.from({ length: 10 }, (_, i) => {\n return {\n id: `${i}`,\n primary: `Item ${i + 1}`,\n secondary: ['Meta A', 'Meta B', 'Meta C'],\n selected: false\n };\n })\n );\n const handleMenuItemClick = (id: MenuItemProps['id']) => {\n setItems(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));\n };\n\n const itemsToRender = useMemo(() => {\n return menuHelpers.mapTree(items, item => {\n return {\n ...item,\n visual: args.showItemVisual ? <Avatar name={item.primary} /> : undefined,\n secondary: args.showItemSecondary ? item.secondary : undefined\n };\n });\n }, [items, args.showItemVisual, args.showItemSecondary]);\n\n const buttonText = useMemo(() => {\n const selected = menuHelpers.getSelected(items)[0];\n return selected ? selected.primary : args.text;\n }, [items]);\n\n useEffect(() => {\n setItems(cur => {\n return menuHelpers.mapTree(cur, item => {\n return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };\n });\n });\n }, [args.showItemCount]);\n\n return (\n <MenuButton\n text={buttonText}\n variant={args.variant}\n icon={args.showIcon ? 'user-list-solid' : undefined}\n iconOnly={args.iconOnly}\n showArrow={args.showArrow}\n menu={{\n mode: 'single-select',\n items: itemsToRender,\n onItemClick: handleMenuItemClick\n }}\n />\n );\n};\n\nMenuButtonSingleSelect.args = {\n text: 'Select an item'\n};\n\nexport const MenuButtonMultiSelect: StoryFn<MenuButtonStoryProps> = (\n args: MenuButtonStoryProps\n) => {\n const [items, setItems] = useState<MenuProps['items']>(() =>\n Array.from({ length: 10 }, (_, i) => {\n return {\n id: `${i}`,\n primary: `Item ${i + 1}`,\n secondary: ['Meta A', 'Meta B', 'Meta C'],\n selected: false\n };\n })\n );\n\n const handleMenuItemClick = (id: MenuItemProps['id']) => {\n setItems(cur => menuHelpers.toggleSelected(cur, id, 'multi-select'));\n };\n\n const itemsToRender = useMemo(() => {\n return menuHelpers.mapTree(items, item => {\n return {\n ...item,\n visual: args.showItemVisual ? <Avatar name={item.primary} /> : undefined,\n secondary: args.showItemSecondary ? item.secondary : undefined\n };\n });\n }, [items, args.showItemVisual, args.showItemSecondary]);\n\n const selectionCount = useMemo(() => menuHelpers.getSelected(items).length, [items]);\n\n useEffect(() => {\n setItems(cur => {\n return menuHelpers.mapTree(cur, item => {\n return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };\n });\n });\n }, [args.showItemCount]);\n\n return (\n <MenuButton\n text={args.text}\n variant={args.variant}\n icon={args.showIcon ? 'user-list-solid' : undefined}\n iconOnly={args.iconOnly}\n showArrow={args.showArrow}\n count={selectionCount}\n menu={{\n mode: 'multi-select',\n items: itemsToRender,\n onItemClick: handleMenuItemClick,\n footer: (\n <Flex container={{ justify: 'center' }}>\n <Button\n variant='link'\n disabled={selectionCount <= 0}\n onClick={() => {\n setItems(cur => {\n return menuHelpers.mapTree(cur, item => {\n return {\n ...item,\n selected: false\n };\n });\n });\n }}\n >\n Clear\n </Button>\n </Flex>\n )\n }}\n />\n );\n};\n\nMenuButtonMultiSelect.args = {\n text: 'Select items'\n};\n\nexport const MenuButtonDisabledItems: StoryFn<MenuButtonStoryProps> = (\n args: MenuButtonStoryProps\n) => {\n const [items, setItems] = useState<MenuProps['items']>(() =>\n Array.from({ length: 10 }, (_, i) => {\n return {\n id: `${i}`,\n primary: `Item ${i + 1}`,\n secondary: ['Meta A', 'Meta B', 'Meta C'],\n selected: false\n };\n })\n );\n\n const itemsToRender = useMemo(() => {\n return menuHelpers.mapTree(items, (item, index) => {\n return {\n ...item,\n visual: args.showItemVisual ? <Avatar name={item.primary} /> : undefined,\n secondary: args.showItemSecondary ? item.secondary : undefined,\n disabled: (index + 1) % 2 === 0\n };\n });\n }, [items, args.showItemVisual, args.showItemSecondary]);\n\n useEffect(() => {\n setItems(cur => {\n return menuHelpers.mapTree(cur, item => {\n return { ...item, count: args.showItemCount ? Math.ceil(Math.random() * 10) : undefined };\n });\n });\n }, [args.showItemCount]);\n\n return (\n <MenuButton\n text={args.text}\n variant={args.variant}\n icon={args.showIcon ? 'user-list-solid' : undefined}\n iconOnly={args.iconOnly}\n showArrow={args.showArrow}\n menu={{\n mode: 'action',\n items: itemsToRender,\n onItemClick: args.onItemClick\n }}\n />\n );\n};\n\nMenuButtonDisabledItems.args = {\n text: 'Actions'\n};\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StoryFn } from '@storybook/react';
|
|
2
|
-
import type { MetaListProps } from '@pega/cosmos-react-core';
|
|
3
|
-
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").ReactRenderer, import("@storybook/csf").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
interface MetaListStoryProps {
|
|
6
|
-
wrapItems?: MetaListProps['wrapItems'];
|
|
7
|
-
}
|
|
8
|
-
export declare const MetaListDemo: StoryFn<MetaListStoryProps>;
|
|
9
|
-
//# sourceMappingURL=MetaList.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MetaList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/MetaList/MetaList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAE7D,wBAGU;AAEV,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAgBpD,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Link, MetaList, Status } from '@pega/cosmos-react-core';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Core/MetaList',
|
|
4
|
-
component: MetaList
|
|
5
|
-
};
|
|
6
|
-
export const MetaListDemo = (args) => {
|
|
7
|
-
return (<MetaList wrapItems={args.wrapItems} items={[
|
|
8
|
-
'email@example.com',
|
|
9
|
-
<Status variant='success'>Verified</Status>,
|
|
10
|
-
<>
|
|
11
|
-
Go to{' '}
|
|
12
|
-
<Link href='https://www.pega.com' target='_blank'>
|
|
13
|
-
Pega.com
|
|
14
|
-
</Link>
|
|
15
|
-
</>
|
|
16
|
-
]}/>);
|
|
17
|
-
};
|
|
18
|
-
MetaListDemo.args = {
|
|
19
|
-
wrapItems: true
|
|
20
|
-
};
|
|
21
|
-
MetaListDemo.argTypes = {
|
|
22
|
-
wrapItems: { control: { type: 'boolean' } }
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=MetaList.stories.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MetaList.stories.jsx","sourceRoot":"","sources":["../../../src/core/MetaList/MetaList.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGjE,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,QAAQ;CACZ,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,IAAwB,EAAE,EAAE;IACpF,OAAO,CACL,CAAC,QAAQ,CACP,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAC1B,KAAK,CAAC,CAAC;YACL,mBAAmB;YACnB,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;YAC3C,EACE;eAAK,CAAC,GAAG,CACT;UAAA,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAC/C;;UACF,EAAE,IAAI,CACR;QAAA,GAAG;SACJ,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,IAAI,GAAG;IAClB,SAAS,EAAE,IAAI;CAChB,CAAC;AAEF,YAAY,CAAC,QAAQ,GAAG;IACtB,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { Link, MetaList, Status } from '@pega/cosmos-react-core';\nimport type { MetaListProps } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/MetaList',\n component: MetaList\n} as Meta;\n\ninterface MetaListStoryProps {\n wrapItems?: MetaListProps['wrapItems'];\n}\n\nexport const MetaListDemo: StoryFn<MetaListStoryProps> = (args: MetaListStoryProps) => {\n return (\n <MetaList\n wrapItems={args.wrapItems}\n items={[\n 'email@example.com',\n <Status variant='success'>Verified</Status>,\n <>\n Go to{' '}\n <Link href='https://www.pega.com' target='_blank'>\n Pega.com\n </Link>\n </>\n ]}\n />\n );\n};\n\nMetaListDemo.args = {\n wrapItems: true\n};\n\nMetaListDemo.argTypes = {\n wrapItems: { control: { type: 'boolean' } }\n};\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type KeyboardEvent } from 'react';
|
|
2
|
-
import type { ModalProps, OmitStrict } from '@pega/cosmos-react-core';
|
|
3
|
-
export interface ModalDemoProps {
|
|
4
|
-
autoWidth: ModalProps['autoWidth'];
|
|
5
|
-
center: ModalProps['center'];
|
|
6
|
-
stretch: ModalProps['stretch'];
|
|
7
|
-
defaultMinimized?: boolean;
|
|
8
|
-
onDismiss?: (id: string) => void;
|
|
9
|
-
onMinimize?: (id: string) => void;
|
|
10
|
-
onActivate?: (id: string) => void;
|
|
11
|
-
onRequestDismiss?: () => boolean;
|
|
12
|
-
onRequestMinimize?: () => boolean;
|
|
13
|
-
onRequestActivate?: () => boolean;
|
|
14
|
-
onRequestDock?: () => boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface AlertModalDemoProps extends ModalDemoProps {
|
|
17
|
-
onKeyDown?: (e: KeyboardEvent) => void;
|
|
18
|
-
}
|
|
19
|
-
export interface ModalUpdatesProps extends ModalDemoProps {
|
|
20
|
-
content: string;
|
|
21
|
-
disableButton: boolean;
|
|
22
|
-
heading: string;
|
|
23
|
-
}
|
|
24
|
-
export interface AutoWidthModalContentProps {
|
|
25
|
-
autoWidth: boolean;
|
|
26
|
-
content: ContentType;
|
|
27
|
-
formColumnWidthFixed: boolean;
|
|
28
|
-
stretch?: never;
|
|
29
|
-
center?: never;
|
|
30
|
-
}
|
|
31
|
-
export type ContentType = 'short text' | 'long text' | 'image' | 'table' | 'form (1 column)' | 'form (2 column)' | 'form (3 column)' | 'random';
|
|
32
|
-
export declare const getContent: (contentType: ContentType, formColumnWidthFixed: boolean) => import("react").JSX.Element;
|
|
33
|
-
export declare const ModalDemoMockModal: (args: ModalDemoProps) => import("react").JSX.Element;
|
|
34
|
-
export declare const ModalUpdatesMockModal: (props: ModalUpdatesProps) => import("react").JSX.Element;
|
|
35
|
-
export declare const AlertModalMockModal: (args: AlertModalDemoProps) => import("react").JSX.Element;
|
|
36
|
-
export declare const ProgressStateMockModal: () => import("react").JSX.Element;
|
|
37
|
-
export declare const MinimizableModalModal: (args: ModalDemoProps & {
|
|
38
|
-
count: number;
|
|
39
|
-
}) => import("react").JSX.Element;
|
|
40
|
-
export declare const DockedModalMockModal: (args: ModalDemoProps) => import("react").JSX.Element;
|
|
41
|
-
export declare const AutoWidthModalContentMockModal: (args: OmitStrict<AutoWidthModalContentProps, 'content'> & {
|
|
42
|
-
contentType: ContentType;
|
|
43
|
-
content: ReactNode;
|
|
44
|
-
}) => import("react").JSX.Element;
|
|
45
|
-
//# sourceMappingURL=Modal.mocks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IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAID,MAAM,MAAM,WAAW,GACnB,YAAY,GACZ,WAAW,GACX,OAAO,GACP,OAAO,GACP,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,QAAQ,CAAC;AAab,eAAO,MAAM,UAAU,gBAAiB,WAAW,wBAAwB,OAAO,gCAiCjF,CAAC;AAKF,eAAO,MAAM,kBAAkB,SAAU,cAAc,gCAWtD,CAAC;AAKF,eAAO,MAAM,qBAAqB,UAAW,iBAAiB,gCA6B7D,CAAC;AA+BF,eAAO,MAAM,mBAAmB,SAAU,mBAAmB,gCAkD5D,CAAC;AAKF,eAAO,MAAM,sBAAsB,mCAsElC,CAAC;AAuBF,eAAO,MAAM,qBAAqB,SAAU,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,gCAoC7E,CAAC;AAKF,eAAO,MAAM,oBAAoB,SAAU,cAAc,gCAQxD,CAAC;AAKF,eAAO,MAAM,8BAA8B,SACnC,WAAW,0BAA0B,EAAE,SAAS,CAAC,GAAG;IACxD,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,SAAS,CAAC;CACpB,gCAuCF,CAAC"}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
import { Button, Flex, Input, Modal, Text, cap, useModalContext, useModalManager, useToaster } from '@pega/cosmos-react-core';
|
|
3
|
-
import { ImageDemo } from '../Image/Image.stories';
|
|
4
|
-
import { TableDemo } from '../Table/Table.stories';
|
|
5
|
-
import { FormContent } from '../Form/Form.mocks';
|
|
6
|
-
import { loadingTimeoutMS } from '../Progress/Progress.mocks';
|
|
7
|
-
const getRandomContentType = (contentType) => {
|
|
8
|
-
const contentMap = {
|
|
9
|
-
text: ['short text', 'long text'],
|
|
10
|
-
meta: ['image', 'table'],
|
|
11
|
-
form: ['form (1 column)', 'form (2 column)', 'form (3 column)']
|
|
12
|
-
};
|
|
13
|
-
const options = contentMap[contentType];
|
|
14
|
-
return options[Math.floor(Math.random() * options.length)];
|
|
15
|
-
};
|
|
16
|
-
export const getContent = (contentType, formColumnWidthFixed) => {
|
|
17
|
-
switch (contentType) {
|
|
18
|
-
case 'random':
|
|
19
|
-
return (<Flex container={{ direction: 'column', gap: 4 }}>
|
|
20
|
-
{getContent(getRandomContentType('text'), false)}
|
|
21
|
-
{getContent(getRandomContentType('meta'), false)}
|
|
22
|
-
{getContent(getRandomContentType('form'), formColumnWidthFixed)}
|
|
23
|
-
</Flex>);
|
|
24
|
-
case 'image':
|
|
25
|
-
return <ImageDemo />;
|
|
26
|
-
case 'table':
|
|
27
|
-
return <TableDemo />;
|
|
28
|
-
case 'form (1 column)':
|
|
29
|
-
return <FormContent cols={1} showActions={false}/>;
|
|
30
|
-
case 'form (2 column)':
|
|
31
|
-
return <FormContent cols={2} showActions={false}/>;
|
|
32
|
-
case 'form (3 column)':
|
|
33
|
-
return <FormContent cols={3} showActions={false}/>;
|
|
34
|
-
case 'long text':
|
|
35
|
-
return (<Text>
|
|
36
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec fermentum ipsum ipsum, nec
|
|
37
|
-
sodales risus finibus eget. Proin ornare, ante ac convallis sollicitudin, elit turpis
|
|
38
|
-
venenatis lorem, vitae viverra eros magna non lectus. Duis ac auctor sapien. Donec
|
|
39
|
-
malesuada eros ut libero sodales, malesuada ullamcorper lacus eleifend.
|
|
40
|
-
</Text>);
|
|
41
|
-
case 'short text':
|
|
42
|
-
default:
|
|
43
|
-
return <Text>Lorem ipsum dolor sit amet.</Text>;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export const ModalDemoMockModal = (args) => {
|
|
47
|
-
return (<Modal heading='This is the Modal heading' autoWidth={args.autoWidth} center={args.center} stretch={args.stretch}>
|
|
48
|
-
<Text>This is the content of the Modal.</Text>
|
|
49
|
-
</Modal>);
|
|
50
|
-
};
|
|
51
|
-
export const ModalUpdatesMockModal = (props) => {
|
|
52
|
-
const { update } = useModalContext();
|
|
53
|
-
const actions = (<Button variant='primary' disabled={props.disableButton} onClick={() => {
|
|
54
|
-
update({
|
|
55
|
-
content: 'This Modal has been updated a second time from within the Modal!'
|
|
56
|
-
});
|
|
57
|
-
}}>
|
|
58
|
-
Update Modal
|
|
59
|
-
</Button>);
|
|
60
|
-
return (<Modal {...props} heading={props.heading} actions={actions} autoWidth={props.autoWidth} center={props.center} stretch={props.stretch}>
|
|
61
|
-
<Text>{props.content}</Text>
|
|
62
|
-
</Modal>);
|
|
63
|
-
};
|
|
64
|
-
const AlertModalMockAlert = (props) => {
|
|
65
|
-
const { dismiss } = useModalContext();
|
|
66
|
-
return (<Modal heading='You have unsaved changes!' actions={<>
|
|
67
|
-
<Button onClick={dismiss}>No</Button>
|
|
68
|
-
<Button variant='primary' onClick={() => {
|
|
69
|
-
dismiss();
|
|
70
|
-
props.closeInitialModal();
|
|
71
|
-
}}>
|
|
72
|
-
Yes
|
|
73
|
-
</Button>
|
|
74
|
-
</>}>
|
|
75
|
-
<Text>Are you sure you want to close without saving?</Text>
|
|
76
|
-
</Modal>);
|
|
77
|
-
};
|
|
78
|
-
export const AlertModalMockModal = (args) => {
|
|
79
|
-
const [name, setName] = useState('');
|
|
80
|
-
const { create } = useModalManager();
|
|
81
|
-
const { dismiss } = useModalContext();
|
|
82
|
-
const actions = (<>
|
|
83
|
-
<Button onClick={() => {
|
|
84
|
-
if (name !== '') {
|
|
85
|
-
create(AlertModalMockAlert, { closeInitialModal: dismiss }, { alert: true });
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
dismiss();
|
|
89
|
-
}
|
|
90
|
-
}}>
|
|
91
|
-
Close
|
|
92
|
-
</Button>
|
|
93
|
-
<Button variant='primary' onClick={dismiss} disabled={name === ''}>
|
|
94
|
-
Save
|
|
95
|
-
</Button>
|
|
96
|
-
</>);
|
|
97
|
-
return (<Modal actions={actions} heading='Close the Modal without saving any data to invoke the alert' autoWidth={args.autoWidth} center={args.center} stretch={args.stretch} onRequestDismiss={() => {
|
|
98
|
-
if (name !== '') {
|
|
99
|
-
create(AlertModalMockAlert, { closeInitialModal: dismiss }, { alert: true });
|
|
100
|
-
return false;
|
|
101
|
-
}
|
|
102
|
-
}}>
|
|
103
|
-
<Input label='Name' name='name' onChange={(e) => {
|
|
104
|
-
setName(e.target.value);
|
|
105
|
-
}} onKeyDown={args.onKeyDown} value={name} required/>
|
|
106
|
-
</Modal>);
|
|
107
|
-
};
|
|
108
|
-
export const ProgressStateMockModal = () => {
|
|
109
|
-
const { dismiss } = useModalContext();
|
|
110
|
-
const [transientState, setTransientState] = useState('loading');
|
|
111
|
-
const actions = transientState === 'loading' ? null : (<>
|
|
112
|
-
<Button disabled={!!transientState} onClick={() => {
|
|
113
|
-
if (transientState !== 'submitting') {
|
|
114
|
-
dismiss();
|
|
115
|
-
}
|
|
116
|
-
}}>
|
|
117
|
-
Cancel
|
|
118
|
-
</Button>
|
|
119
|
-
<Button disabled={!!transientState} variant='primary' onClick={() => {
|
|
120
|
-
setTransientState('submitting');
|
|
121
|
-
}}>
|
|
122
|
-
Submit
|
|
123
|
-
</Button>
|
|
124
|
-
</>);
|
|
125
|
-
useEffect(() => {
|
|
126
|
-
let timerID;
|
|
127
|
-
if (transientState === 'loading' || transientState === 'submitting') {
|
|
128
|
-
timerID = window.setTimeout(() => {
|
|
129
|
-
if (transientState === 'loading') {
|
|
130
|
-
setTransientState(null);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
dismiss();
|
|
134
|
-
}
|
|
135
|
-
}, loadingTimeoutMS);
|
|
136
|
-
}
|
|
137
|
-
return () => {
|
|
138
|
-
window.clearTimeout(timerID);
|
|
139
|
-
};
|
|
140
|
-
}, [transientState]);
|
|
141
|
-
return (<Modal progress={(() => {
|
|
142
|
-
if (transientState) {
|
|
143
|
-
return {
|
|
144
|
-
message: `${cap(transientState)}…`
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
})()} heading='Modal progress demo' actions={actions} onRequestDismiss={() => transientState !== 'submitting'}>
|
|
148
|
-
{transientState !== 'loading' && (<Flex container={{ direction: 'column', gap: 2 }}>
|
|
149
|
-
{Array.from({ length: 5 }, (_, i) => (<Input key={i} label={`Field-${i + 1}`}/>))}
|
|
150
|
-
</Flex>)}
|
|
151
|
-
</Modal>);
|
|
152
|
-
};
|
|
153
|
-
const MinimizableModalMockChildModal = (args) => {
|
|
154
|
-
return (<Modal heading={`Modal #${args.count}`} autoWidth={args.autoWidth} onRequestDismiss={() => {
|
|
155
|
-
args.onRequestDismiss?.();
|
|
156
|
-
}}>
|
|
157
|
-
<Text>
|
|
158
|
-
This minimizable modal is triggered from an existing open modal - Modal #{args.parentId}.
|
|
159
|
-
</Text>
|
|
160
|
-
</Modal>);
|
|
161
|
-
};
|
|
162
|
-
export const MinimizableModalModal = (args) => {
|
|
163
|
-
const { create } = useModalManager();
|
|
164
|
-
return (<Modal heading={`Modal #${args.count}`} autoWidth={args.autoWidth} actions={<Button variant='secondary' onClick={() => {
|
|
165
|
-
create(MinimizableModalMockChildModal, { ...args, count: args.count + 0.1, parentId: args.count }, {
|
|
166
|
-
id: `${args.count + 0.1}`,
|
|
167
|
-
minimizable: true,
|
|
168
|
-
onDismiss: args.onDismiss,
|
|
169
|
-
onMinimize: args.onMinimize,
|
|
170
|
-
onActivate: args.onActivate
|
|
171
|
-
});
|
|
172
|
-
}}>
|
|
173
|
-
Create modal
|
|
174
|
-
</Button>} center={args.center} stretch={args.stretch} onRequestDismiss={args.onRequestDismiss} onRequestMinimize={args.onRequestMinimize} onRequestActivate={args.onRequestActivate}>
|
|
175
|
-
<Text>This Modal can be minimized by clicking the minimize button above.</Text>
|
|
176
|
-
</Modal>);
|
|
177
|
-
};
|
|
178
|
-
export const DockedModalMockModal = (args) => {
|
|
179
|
-
const { id } = useModalContext();
|
|
180
|
-
return (<Modal heading={`Modal #${id}`} onRequestDock={args.onRequestDock}>
|
|
181
|
-
<Text>This Modal can be minimized by clicking the minimize button above.</Text>
|
|
182
|
-
</Modal>);
|
|
183
|
-
};
|
|
184
|
-
export const AutoWidthModalContentMockModal = (args) => {
|
|
185
|
-
const { dismiss } = useModalContext();
|
|
186
|
-
const { push } = useToaster();
|
|
187
|
-
return (<Modal heading={`Modal ${args.autoWidth ? 'with' : 'without'} autoWidth`} autoWidth={args.autoWidth} actions={args.contentType.includes('form') || args.contentType === 'random' ? (<>
|
|
188
|
-
<Button name='Cancel' variant='secondary' onClick={() => {
|
|
189
|
-
dismiss();
|
|
190
|
-
push({ content: 'Form cancelled!' });
|
|
191
|
-
}}>
|
|
192
|
-
Cancel
|
|
193
|
-
</Button>
|
|
194
|
-
<Button name='Submit' variant='primary' onClick={() => {
|
|
195
|
-
dismiss();
|
|
196
|
-
push({ content: 'Form submitted!' });
|
|
197
|
-
}}>
|
|
198
|
-
Submit
|
|
199
|
-
</Button>
|
|
200
|
-
</>) : undefined}>
|
|
201
|
-
{args.content}
|
|
202
|
-
</Modal>);
|
|
203
|
-
};
|
|
204
|
-
//# sourceMappingURL=Modal.mocks.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.mocks.jsx","sourceRoot":"","sources":["../../../src/core/Modal/Modal.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoB,SAAS,EAAsC,MAAM,OAAO,CAAC;AAElG,OAAO,EACL,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,IAAI,EACJ,GAAG,EACH,eAAe,EACf,eAAe,EACf,UAAU,EACX,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,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AAE,CAAC;gBACV,IAAI,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC,CAAC;YACvC,CAAC,CAAC,CAEF;;YACF,EAAE,MAAM,CACV;UAAA,GAAG,CACJ,CAAC,CAAC,CAAC,SAAS,CACd,CAED;MAAA,CAAC,IAAI,CAAC,OAAO,CACf;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, type ChangeEvent, useEffect, type ReactNode, type KeyboardEvent } from 'react';\n\nimport {\n Button,\n Flex,\n Input,\n Modal,\n Text,\n cap,\n useModalContext,\n useModalManager,\n useToaster\n} from '@pega/cosmos-react-core';\nimport type { ModalProps, OmitStrict } from '@pega/cosmos-react-core';\n\nimport { ImageDemo } from '../Image/Image.stories';\nimport { TableDemo } from '../Table/Table.stories';\nimport { FormContent } from '../Form/Form.mocks';\nimport { loadingTimeoutMS } from '../Progress/Progress.mocks';\n\nexport interface ModalDemoProps {\n autoWidth: ModalProps['autoWidth'];\n center: ModalProps['center'];\n stretch: ModalProps['stretch'];\n defaultMinimized?: boolean;\n onDismiss?: (id: string) => void;\n onMinimize?: (id: string) => void;\n onActivate?: (id: string) => void;\n onRequestDismiss?: () => boolean;\n onRequestMinimize?: () => boolean;\n onRequestActivate?: () => boolean;\n onRequestDock?: () => boolean;\n}\n\nexport interface AlertModalDemoProps extends ModalDemoProps {\n onKeyDown?: (e: KeyboardEvent) => void;\n}\n\nexport interface ModalUpdatesProps extends ModalDemoProps {\n content: string;\n disableButton: boolean;\n heading: string;\n}\n\nexport interface AutoWidthModalContentProps {\n autoWidth: boolean;\n content: ContentType;\n formColumnWidthFixed: boolean;\n stretch?: never;\n center?: never;\n}\n\ntype ContentSections = 'text' | 'meta' | 'form';\n\nexport type ContentType =\n | 'short text'\n | 'long text'\n | 'image'\n | 'table'\n | 'form (1 column)'\n | 'form (2 column)'\n | 'form (3 column)'\n | 'random';\n\nconst getRandomContentType = (contentType: ContentSections): ContentType => {\n const contentMap: Record<ContentSections, ContentType[]> = {\n text: ['short text', 'long text'],\n meta: ['image', 'table'],\n form: ['form (1 column)', 'form (2 column)', 'form (3 column)']\n };\n const options = contentMap[contentType];\n\n return options[Math.floor(Math.random() * options.length)];\n};\n\nexport const getContent = (contentType: ContentType, formColumnWidthFixed: boolean) => {\n switch (contentType) {\n case 'random':\n return (\n <Flex container={{ direction: 'column', gap: 4 }}>\n {getContent(getRandomContentType('text'), false)}\n {getContent(getRandomContentType('meta'), false)}\n {getContent(getRandomContentType('form'), formColumnWidthFixed)}\n </Flex>\n );\n case 'image':\n return <ImageDemo />;\n case 'table':\n return <TableDemo />;\n case 'form (1 column)':\n return <FormContent cols={1} showActions={false} />;\n case 'form (2 column)':\n return <FormContent cols={2} showActions={false} />;\n case 'form (3 column)':\n return <FormContent cols={3} showActions={false} />;\n case 'long text':\n return (\n <Text>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec fermentum ipsum ipsum, nec\n sodales risus finibus eget. Proin ornare, ante ac convallis sollicitudin, elit turpis\n venenatis lorem, vitae viverra eros magna non lectus. Duis ac auctor sapien. Donec\n malesuada eros ut libero sodales, malesuada ullamcorper lacus eleifend.\n </Text>\n );\n case 'short text':\n default:\n return <Text>Lorem ipsum dolor sit amet.</Text>;\n }\n};\n\n// ---------------------------------------------------------------------------------------------------------------------\n// ModalDemo story mocks\n// ---------------------------------------------------------------------------------------------------------------------\nexport const ModalDemoMockModal = (args: ModalDemoProps) => {\n return (\n <Modal\n heading='This is the Modal heading'\n autoWidth={args.autoWidth}\n center={args.center}\n stretch={args.stretch}\n >\n <Text>This is the content of the Modal.</Text>\n </Modal>\n );\n};\n\n// ---------------------------------------------------------------------------------------------------------------------\n// ModalUpdates story mocks\n// ---------------------------------------------------------------------------------------------------------------------\nexport const ModalUpdatesMockModal = (props: ModalUpdatesProps) => {\n const { update } = useModalContext();\n\n const actions = (\n <Button\n variant='primary'\n disabled={props.disableButton}\n onClick={() => {\n update({\n content: 'This Modal has been updated a second time from within the Modal!'\n });\n }}\n >\n Update Modal\n </Button>\n );\n\n return (\n <Modal\n {...props}\n heading={props.heading}\n actions={actions}\n autoWidth={props.autoWidth}\n center={props.center}\n stretch={props.stretch}\n >\n <Text>{props.content}</Text>\n </Modal>\n );\n};\n\n// ---------------------------------------------------------------------------------------------------------------------\n// AlertModal story mocks\n// ---------------------------------------------------------------------------------------------------------------------\nconst AlertModalMockAlert = (props: { closeInitialModal: () => void }) => {\n const { dismiss } = useModalContext();\n\n return (\n <Modal\n heading='You have unsaved changes!'\n actions={\n <>\n <Button onClick={dismiss}>No</Button>\n <Button\n variant='primary'\n onClick={() => {\n dismiss();\n props.closeInitialModal();\n }}\n >\n Yes\n </Button>\n </>\n }\n >\n <Text>Are you sure you want to close without saving?</Text>\n </Modal>\n );\n};\n\nexport const AlertModalMockModal = (args: AlertModalDemoProps) => {\n const [name, setName] = useState('');\n const { create } = useModalManager();\n const { dismiss } = useModalContext();\n\n const actions = (\n <>\n <Button\n onClick={() => {\n if (name !== '') {\n create(AlertModalMockAlert, { closeInitialModal: dismiss }, { alert: true });\n } else {\n dismiss();\n }\n }}\n >\n Close\n </Button>\n <Button variant='primary' onClick={dismiss} disabled={name === ''}>\n Save\n </Button>\n </>\n );\n\n return (\n <Modal\n actions={actions}\n heading='Close the Modal without saving any data to invoke the alert'\n autoWidth={args.autoWidth}\n center={args.center}\n stretch={args.stretch}\n onRequestDismiss={() => {\n if (name !== '') {\n create(AlertModalMockAlert, { closeInitialModal: dismiss }, { alert: true });\n return false;\n }\n }}\n >\n <Input\n label='Name'\n name='name'\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setName(e.target.value);\n }}\n onKeyDown={args.onKeyDown}\n value={name}\n required\n />\n </Modal>\n );\n};\n\n// ---------------------------------------------------------------------------------------------------------------------\n// ProgressState story mocks\n// ---------------------------------------------------------------------------------------------------------------------\nexport const ProgressStateMockModal = () => {\n const { dismiss } = useModalContext();\n\n const [transientState, setTransientState] = useState<'loading' | 'submitting' | null>('loading');\n\n const actions =\n transientState === 'loading' ? null : (\n <>\n <Button\n disabled={!!transientState}\n onClick={() => {\n if (transientState !== 'submitting') {\n dismiss();\n }\n }}\n >\n Cancel\n </Button>\n <Button\n disabled={!!transientState}\n variant='primary'\n onClick={() => {\n setTransientState('submitting');\n }}\n >\n Submit\n </Button>\n </>\n );\n\n useEffect(() => {\n let timerID: number;\n\n if (transientState === 'loading' || transientState === 'submitting') {\n timerID = window.setTimeout(() => {\n if (transientState === 'loading') {\n setTransientState(null);\n } else {\n dismiss();\n }\n }, loadingTimeoutMS);\n }\n\n return () => {\n window.clearTimeout(timerID);\n };\n }, [transientState]);\n\n return (\n <Modal\n progress={(() => {\n if (transientState) {\n return {\n message: `${cap(transientState)}…`\n };\n }\n })()}\n heading='Modal progress demo'\n actions={actions}\n onRequestDismiss={() => transientState !== 'submitting'}\n >\n {transientState !== 'loading' && (\n <Flex container={{ direction: 'column', gap: 2 }}>\n {Array.from({ length: 5 }, (_, i) => (\n <Input key={i} label={`Field-${i + 1}`} />\n ))}\n </Flex>\n )}\n </Modal>\n );\n};\n\n// ---------------------------------------------------------------------------------------------------------------------\n// MinimizableModal story mocks\n// ---------------------------------------------------------------------------------------------------------------------\nconst MinimizableModalMockChildModal = (\n args: ModalDemoProps & { count: number; parentId: number }\n) => {\n return (\n <Modal\n heading={`Modal #${args.count}`}\n autoWidth={args.autoWidth}\n onRequestDismiss={() => {\n args.onRequestDismiss?.();\n }}\n >\n <Text>\n This minimizable modal is triggered from an existing open modal - Modal #{args.parentId}.\n </Text>\n </Modal>\n );\n};\n\nexport const MinimizableModalModal = (args: ModalDemoProps & { count: number }) => {\n const { create } = useModalManager();\n\n return (\n <Modal\n heading={`Modal #${args.count}`}\n autoWidth={args.autoWidth}\n actions={\n <Button\n variant='secondary'\n onClick={() => {\n create(\n MinimizableModalMockChildModal,\n { ...args, count: args.count + 0.1, parentId: args.count },\n {\n id: `${args.count + 0.1}`,\n minimizable: true,\n onDismiss: args.onDismiss,\n onMinimize: args.onMinimize,\n onActivate: args.onActivate\n }\n );\n }}\n >\n Create modal\n </Button>\n }\n center={args.center}\n stretch={args.stretch}\n onRequestDismiss={args.onRequestDismiss}\n onRequestMinimize={args.onRequestMinimize}\n onRequestActivate={args.onRequestActivate}\n >\n <Text>This Modal can be minimized by clicking the minimize button above.</Text>\n </Modal>\n );\n};\n\n// ---------------------------------------------------------------------------------------------------------------------\n// DockedModal story mocks\n// ---------------------------------------------------------------------------------------------------------------------\nexport const DockedModalMockModal = (args: ModalDemoProps) => {\n const { id } = useModalContext();\n\n return (\n <Modal heading={`Modal #${id}`} onRequestDock={args.onRequestDock}>\n <Text>This Modal can be minimized by clicking the minimize button above.</Text>\n </Modal>\n );\n};\n\n// ---------------------------------------------------------------------------------------------------------------------\n// AutoWidthModalContent story mocks\n// ---------------------------------------------------------------------------------------------------------------------\nexport const AutoWidthModalContentMockModal = (\n args: OmitStrict<AutoWidthModalContentProps, 'content'> & {\n contentType: ContentType;\n content: ReactNode;\n }\n) => {\n const { dismiss } = useModalContext();\n const { push } = useToaster();\n\n return (\n <Modal\n heading={`Modal ${args.autoWidth ? 'with' : 'without'} autoWidth`}\n autoWidth={args.autoWidth}\n actions={\n args.contentType.includes('form') || args.contentType === 'random' ? (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n dismiss();\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button\n name='Submit'\n variant='primary'\n onClick={() => {\n dismiss();\n push({ content: 'Form submitted!' });\n }}\n >\n Submit\n </Button>\n </>\n ) : undefined\n }\n >\n {args.content}\n </Modal>\n );\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { StoryFn } from '@storybook/react';
|
|
2
|
-
import type { AlertModalDemoProps, AutoWidthModalContentProps, ModalDemoProps, ModalUpdatesProps } from './Modal.mocks';
|
|
3
|
-
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").ReactRenderer, import("@storybook/csf").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const ModalDemo: StoryFn<ModalDemoProps>;
|
|
6
|
-
export declare const ModalUpdates: StoryFn<ModalUpdatesProps>;
|
|
7
|
-
export declare const AlertModal: StoryFn<AlertModalDemoProps>;
|
|
8
|
-
export declare const ProgressState: StoryFn;
|
|
9
|
-
export declare const MinimizableModal: StoryFn<ModalDemoProps>;
|
|
10
|
-
export declare const DockedModal: StoryFn<ModalDemoProps>;
|
|
11
|
-
export declare const AutoWidthModalContent: StoryFn<AutoWidthModalContentProps>;
|
|
12
|
-
//# sourceMappingURL=Modal.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Modal/Modal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAiBtD,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,cAAc,EACd,iBAAiB,EAClB,MAAM,eAAe,CAAC;;AAEvB,wBA8BU;AAEV,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,cAAc,CAiB7C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,iBAAiB,CA8BnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,mBAAmB,CAkBnD,CAAC;AAUF,eAAO,MAAM,aAAa,EAAE,OAY3B,CAAC;AAQF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,cAAc,CAyBpD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,cAAc,CAmB/C,CAAC;AAQF,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,0BAA0B,CAmBrE,CAAC"}
|