@pega/cosmos-react-demos 6.5.3 → 6.6.1
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/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js +1 -1
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -3
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/package.json +7 -7
- 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 -229
- 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 -306
- 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 -15
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +0 -132
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +0 -39
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +0 -266
- 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 -100
- 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 -99
- 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 -11
- 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 -24
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +0 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +0 -369
- 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 -51
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +0 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +0 -291
- 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 -93
- 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 -12
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +0 -134
- 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.stories.d.ts +0 -20
- package/jsx/core/File/FileDisplay.stories.d.ts.map +0 -1
- package/jsx/core/File/FileDisplay.stories.jsx +0 -140
- package/jsx/core/File/FileDisplay.stories.jsx.map +0 -1
- package/jsx/core/File/FileInput.stories.d.ts +0 -10
- package/jsx/core/File/FileInput.stories.d.ts.map +0 -1
- package/jsx/core/File/FileInput.stories.jsx +0 -103
- package/jsx/core/File/FileInput.stories.jsx.map +0 -1
- package/jsx/core/File/FileService.mock.d.ts +0 -28
- package/jsx/core/File/FileService.mock.d.ts.map +0 -1
- package/jsx/core/File/FileService.mock.jsx +0 -139
- 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 -24
- 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 -265
- 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/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.stories.d.ts +0 -6
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +0 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +0 -35
- 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 -22
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +0 -1
- package/jsx/core/Lightbox/Lightbox.mocks.js +0 -97
- 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 -70
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +0 -1
- package/jsx/core/Link/Link.stories.d.ts +0 -13
- package/jsx/core/Link/Link.stories.d.ts.map +0 -1
- package/jsx/core/Link/Link.stories.jsx +0 -43
- 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 -9
- package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +0 -1
- package/jsx/core/LiveLog/LiveLog.stories.jsx +0 -19
- package/jsx/core/LiveLog/LiveLog.stories.jsx.map +0 -1
- package/jsx/core/Location/Location.stories.d.ts +0 -15
- package/jsx/core/Location/Location.stories.d.ts.map +0 -1
- package/jsx/core/Location/Location.stories.jsx +0 -142
- package/jsx/core/Location/Location.stories.jsx.map +0 -1
- package/jsx/core/Location/locationTestUtils.d.ts +0 -3
- package/jsx/core/Location/locationTestUtils.d.ts.map +0 -1
- package/jsx/core/Location/locationTestUtils.js +0 -29
- 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 -179
- 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 -196
- 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 -188
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +0 -1
- package/jsx/core/MetaList/MetaList.stories.d.ts +0 -9
- package/jsx/core/MetaList/MetaList.stories.d.ts.map +0 -1
- package/jsx/core/MetaList/MetaList.stories.jsx +0 -24
- package/jsx/core/MetaList/MetaList.stories.jsx.map +0 -1
- package/jsx/core/Modal/Modal.mocks.d.ts +0 -4
- package/jsx/core/Modal/Modal.mocks.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.mocks.jsx +0 -44
- package/jsx/core/Modal/Modal.mocks.jsx.map +0 -1
- package/jsx/core/Modal/Modal.stories.d.ts +0 -36
- package/jsx/core/Modal/Modal.stories.d.ts.map +0 -1
- package/jsx/core/Modal/Modal.stories.jsx +0 -332
- 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 -401
- 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 -33
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +0 -287
- 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 -95
- 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 -101
- 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 -7
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +0 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +0 -44
- 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 -36
- 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.stories.d.ts +0 -9
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +0 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +0 -59
- package/jsx/core/Tabs/Tabs.stories.jsx.map +0 -1
- package/jsx/core/Text/Text.stories.d.ts +0 -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 -5
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +0 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +0 -27
- 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 -7
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/Demo.jsx +0 -156
- 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 -16
- 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 -5
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +0 -15
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +0 -1
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +0 -26
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +0 -1
- package/jsx/dnd/StandardDragDropList/mockData.js +0 -77
- 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 -329
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +0 -1
- package/jsx/rte/Editor/Editor.mocks.jsx +0 -22
- package/jsx/rte/Editor/Editor.mocks.jsx.map +0 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +0 -14
- package/jsx/rte/Editor/Editor.stories.d.ts.map +0 -1
- package/jsx/rte/Editor/Editor.stories.jsx +0 -159
- 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 -151
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +0 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +0 -52
- package/jsx/social/Chat/Chat.mocks.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.mocks.js +0 -767
- package/jsx/social/Chat/Chat.mocks.js.map +0 -1
- package/jsx/social/Chat/Chat.stories.d.ts +0 -55
- package/jsx/social/Chat/Chat.stories.d.ts.map +0 -1
- package/jsx/social/Chat/Chat.stories.jsx +0 -678
- package/jsx/social/Chat/Chat.stories.jsx.map +0 -1
- package/jsx/social/Email/Email.mocks.d.ts +0 -352
- package/jsx/social/Email/Email.mocks.d.ts.map +0 -1
- package/jsx/social/Email/Email.mocks.jsx +0 -1215
- 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 -1219
- 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 -53
- package/jsx/social/Feed/Feed.mocks.d.ts.map +0 -1
- package/jsx/social/Feed/Feed.mocks.jsx +0 -412
- 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 -222
- 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 -29
- 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 -182
- 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 -243
- 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 -87
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +0 -1
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts +0 -222
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleList.mocks.js +0 -490
- package/jsx/work/ArticleList/ArticleList.mocks.js.map +0 -1
- package/jsx/work/ArticleList/ArticleList.stories.d.ts +0 -15
- package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +0 -1
- package/jsx/work/ArticleList/ArticleList.stories.jsx +0 -517
- 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 -397
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +0 -117
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +0 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +0 -642
- 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 -57
- 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 -35
- 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 -39
- 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 -109
- package/jsx/work/Details/Details.stories.jsx.map +0 -1
- package/jsx/work/DetailsV2/DetailsV2.stories.d.ts +0 -10
- package/jsx/work/DetailsV2/DetailsV2.stories.d.ts.map +0 -1
- package/jsx/work/DetailsV2/DetailsV2.stories.jsx +0 -215
- package/jsx/work/DetailsV2/DetailsV2.stories.jsx.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/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 -13
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx +0 -56
- 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 -45
- 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 -79
- 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 -144
- 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 -78
- package/jsx/work/Timeline/Timeline.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 -15
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +0 -41
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAgGA,eAAO,MAAM,WAAW;UAMhB,MAAM;iBACC,OAAO;;;wBAiMrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;UAMxB,MAAM;iBACC,OAAO;;;
|
|
1
|
+
{"version":3,"file":"Form.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAgGA,eAAO,MAAM,WAAW;UAMhB,MAAM;iBACC,OAAO;;;wBAiMrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;UAMxB,MAAM;iBACC,OAAO;;;wBAiKrB,CAAC"}
|
|
@@ -154,7 +154,7 @@ export const ReadOnlyFormContent = ({ cols, heading, description, showActions })
|
|
|
154
154
|
}, required: true, children: [_jsx(Checkbox, { label: 'Cambridge', readOnly: true }, 'Cambridge'), _jsx(Checkbox, { label: 'Krakow' }, 'Krakow'), _jsx(Checkbox, { label: 'Hyderabad' }, 'Hyderabad'), _jsx(Checkbox, { label: 'Bangalore' }, 'Bangalore')] }) }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsxs(RadioButtonGroup, { name: 'meetings', label: 'Do you enjoy early morning meetings?', additionalInfo: {
|
|
155
155
|
heading: 'Field info',
|
|
156
156
|
content: 'Lorem ipsum dolor set amet.'
|
|
157
|
-
}, readOnly: true,
|
|
157
|
+
}, readOnly: true, required: true, children: [_jsx(RadioButton, { label: 'Yes' }, 'Yes'), _jsx(RadioButton, { label: "No.. no I don't" }, "No.. no I don't")] }) }), _jsxs(Select, { label: 'What would you like to eat?', info: '', additionalInfo: {
|
|
158
158
|
heading: 'Field info',
|
|
159
159
|
content: 'Lorem ipsum dolor set amet.'
|
|
160
160
|
}, readOnly: true, children: [_jsx(Option, { children: "choose meal\u2026" }), _jsx(Option, { selected: true, children: "Pizza" }), _jsx(Option, { children: "Sandwich" }), _jsx(Option, { children: "Salad" })] }), _jsx(Grid, { item: { colStartEnd: '1/-1' }, children: _jsx(TextArea, { readOnly: true, name: 'notes', required: false, label: 'Meeting notes', status: notes.status, info: notes.info || notes.help, value: 'Test copy', additionalInfo: {
|
|
@@ -1 +1 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,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,EAC9B,KAAK,EAAC,WAAW,EACjB,cAAc,EAAE;4BACd,OAAO,EAAE,YAAY;4BACrB,OAAO,EAAE,6BAA6B;yBACvC,GACD,GACG,IACF,GACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useReducer, useRef, useState, useEffect } from 'react';\nimport type { ChangeEvent, FocusEvent, FormEvent } from 'react';\n\nimport {\n Button,\n Checkbox,\n CheckboxGroup,\n Form,\n Grid,\n Input,\n RadioButton,\n RadioButtonGroup,\n Select,\n Option,\n TextArea,\n useToaster,\n usePrevious\n} from '@pega/cosmos-react-core';\nimport type { FormControlProps, DateRangeInputProps } from '@pega/cosmos-react-core';\nimport { Editor as RichTextEditor } from '@pega/cosmos-react-rte';\nimport type { EditorState as RichTextEditorState } from '@pega/cosmos-react-rte';\n\nimport { FileInputDemo } from '../File/FileInput.stories';\nimport { FilterableSingleSelect as ComboboxFilterableStory } from '../ComboBox/ComboBox.stories';\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\n// Get initial field properties\nconst initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter first and last name',\n validator() {\n if (!this.value) return false;\n return /^[a-z]+\\s[a-z]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'email',\n required: true,\n error: 'Enter a @pega.com address',\n validator() {\n if (!this.value) return false;\n return /^\\S+@pega\\.com$/.test(this.value);\n }\n },\n {\n ...common,\n name: 'notes',\n required: true,\n help: 'See how fast you can type 20 characters…go',\n error: 'You need to tell us more than 20 characters',\n validator() {\n if (!this.value) return false;\n return this.value.length >= 20;\n }\n }\n ];\n};\n\n// Handles setting of state for all fields\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const FormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n name='name'\n label='Name'\n value={name.value}\n status={name.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n\n <Input\n name='email'\n value={email.value}\n type='email'\n label='Email'\n required={email.required}\n status={email.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (\n <Checkbox\n key={office}\n label={office}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <Checkbox\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n label='Check me, please'\n required\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Yes', \"No… no I don't\"].map(option => (\n <RadioButton\n key={option}\n label={option}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info='FYI: options are limited'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Option>choose meal…</Option>\n <Option>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n name='notes'\n required={notes.required}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RichTextEditor\n label='Detailed meeting notes'\n info='The rich text editor can be used in forms, comments, and documents'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n ref={editorRef}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n </Grid>\n <Grid item={{ colStartEnd: '1/-1' }}>\n <FileInputDemo label='Meeting attachments' />\n </Grid>\n\n <ComboboxFilterableStory label='Select a user' />\n </Grid>\n </Form>\n );\n};\n\nexport const ReadOnlyFormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const [value, setValue] = useState<DateRangeInputProps['value']>({ start: 1, end: '3' });\n const prev = usePrevious(value);\n useEffect(() => {\n if (prev !== value) setValue(value);\n }, [prev, value]);\n const [fields] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n readOnly\n name='name'\n label='Name'\n value='Test'\n required={false}\n status={name.status}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='places visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you really enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" readOnly />\n </RadioButtonGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='more places visited'\n label='More Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' readOnly />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n allReadOnly\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" />\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info=''\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n >\n <Option>choose meal…</Option>\n <Option selected>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n readOnly\n name='notes'\n required={false}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n value='Test copy'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n </Grid>\n </Form>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Form.mocks.js","sourceRoot":"","sources":["../../../src/core/Form/Form.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhE,OAAO,EACL,MAAM,EACN,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAQjG,+BAA+B;AAC/B,MAAM,UAAU,GAAG,GAAY,EAAE;IAC/B,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IACvD,OAAO;QACL;YACE,GAAG,MAAM;YACT,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,kCAAkC;YACzC,SAAS;gBACP,IAAI,CAAC,IAAI,CAAC,KAAK;oBAAE,OAAO,KAAK,CAAC;gBAC9B,OAAO,mBAAmB,CAAC,IAAI,CAAC,I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Q,mBAER,KAAC,MAAM,oCAAsB,EAC7B,KAAC,MAAM,IAAC,QAAQ,4BAAe,EAC/B,KAAC,MAAM,2BAAkB,EACzB,KAAC,MAAM,wBAAe,IACf,EAET,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,YACjC,KAAC,QAAQ,IACP,QAAQ,QACR,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,KAAK,EACf,KAAK,EAAC,eAAe,EACrB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,EAC9B,KAAK,EAAC,WAAW,EACjB,cAAc,EAAE;4BACd,OAAO,EAAE,YAAY;4BACrB,OAAO,EAAE,6BAA6B;yBACvC,GACD,GACG,IACF,GACF,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useReducer, useRef, useState, useEffect } from 'react';\nimport type { ChangeEvent, FocusEvent, FormEvent } from 'react';\n\nimport {\n Button,\n Checkbox,\n CheckboxGroup,\n Form,\n Grid,\n Input,\n RadioButton,\n RadioButtonGroup,\n Select,\n Option,\n TextArea,\n useToaster,\n usePrevious\n} from '@pega/cosmos-react-core';\nimport type { FormControlProps, DateRangeInputProps } from '@pega/cosmos-react-core';\nimport { Editor as RichTextEditor } from '@pega/cosmos-react-rte';\nimport type { EditorState as RichTextEditorState } from '@pega/cosmos-react-rte';\n\nimport { FileInputDemo } from '../File/FileInput.stories';\nimport { FilterableSingleSelect as ComboboxFilterableStory } from '../ComboBox/ComboBox.stories';\n\ninterface Field extends FormControlProps {\n help?: string;\n error?: string;\n validator: (this: Field) => boolean;\n}\n\n// Get initial field properties\nconst initFields = (): Field[] => {\n const common = { value: undefined, status: undefined };\n return [\n {\n ...common,\n name: 'name',\n required: true,\n error: 'Please enter first and last name',\n validator() {\n if (!this.value) return false;\n return /^[a-z]+\\s[a-z]+$/i.test(this.value);\n }\n },\n {\n ...common,\n name: 'email',\n required: true,\n error: 'Enter a @pega.com address',\n validator() {\n if (!this.value) return false;\n return /^\\S+@pega\\.com$/.test(this.value);\n }\n },\n {\n ...common,\n name: 'notes',\n required: true,\n help: 'See how fast you can type 20 characters…go',\n error: 'You need to tell us more than 20 characters',\n validator() {\n if (!this.value) return false;\n return this.value.length >= 20;\n }\n }\n ];\n};\n\n// Handles setting of state for all fields\nconst fieldReducer = (\n fields: Field[],\n {\n target,\n type\n }:\n | ChangeEvent<HTMLInputElement | HTMLTextAreaElement>\n | FocusEvent<HTMLInputElement | HTMLTextAreaElement>\n) => {\n return fields.map(field => {\n if (field.name === target.name) {\n field.value = target.value;\n if (type === 'blur' || field.status === 'error') {\n if ((field.required || field.value) && !field.validator()) {\n field.status = 'error';\n field.info = field.error;\n } else {\n field.status = undefined;\n field.info = field.help;\n }\n }\n }\n return field;\n });\n};\n\nexport const FormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [fields, setField] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n name='name'\n label='Name'\n value={name.value}\n status={name.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n\n <Input\n name='email'\n value={email.value}\n type='email'\n label='Email'\n required={email.required}\n status={email.status}\n info='some help text here'\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Cambridge', 'Krakow', 'Hyderabad', 'Bangalore'].map(office => (\n <Checkbox\n key={office}\n label={office}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <Checkbox\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n label='Check me, please'\n required\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n {['Yes', \"No… no I don't\"].map(option => (\n <RadioButton\n key={option}\n label={option}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setField({ ...e })}\n />\n ))}\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info='FYI: options are limited'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Option>choose meal…</Option>\n <Option>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n name='notes'\n required={notes.required}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setField({ ...e })}\n onBlur={(e: FocusEvent<HTMLInputElement>) => setField({ ...e })}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RichTextEditor\n label='Detailed meeting notes'\n info='The rich text editor can be used in forms, comments, and documents'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n ref={editorRef}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n />\n </Grid>\n <Grid item={{ colStartEnd: '1/-1' }}>\n <FileInputDemo label='Meeting attachments' />\n </Grid>\n\n <ComboboxFilterableStory label='Select a user' />\n </Grid>\n </Form>\n );\n};\n\nexport const ReadOnlyFormContent = ({\n cols,\n heading,\n description,\n showActions\n}: {\n cols: number;\n showActions: boolean;\n heading?: string;\n description?: string;\n}) => {\n const [value, setValue] = useState<DateRangeInputProps['value']>({ start: 1, end: '3' });\n const prev = usePrevious(value);\n useEffect(() => {\n if (prev !== value) setValue(value);\n }, [prev, value]);\n const [fields] = useReducer(fieldReducer, undefined, initFields);\n const { push } = useToaster();\n\n const name = fields.find(field => field.name === 'name');\n const email = fields.find(field => field.name === 'email');\n const notes = fields.find(field => field.name === 'notes');\n\n if (!name || !email || !notes) return null;\n\n const canSubmit = fields.every(field => field.value && field.validator());\n\n const actions = (\n <>\n <Button\n name='Cancel'\n variant='secondary'\n onClick={() => {\n push({ content: 'Form cancelled!' });\n }}\n >\n Cancel\n </Button>\n <Button name='Submit' type='submit' variant='primary' disabled={!canSubmit}>\n Submit\n </Button>\n </>\n );\n\n return (\n <Form\n actions={showActions ? actions : undefined}\n description={description}\n heading={heading}\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n push({ content: 'Form submitted!' });\n }}\n style={{ margin: 'auto', maxWidth: '37.5rem' }}\n >\n <Grid container={{ gap: 1, cols: `repeat(${cols}, minmax(0, 1fr))` }}>\n <Input\n readOnly\n name='name'\n label='Name'\n value='Test'\n required={false}\n status={name.status}\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='places visited'\n label='Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you really enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" readOnly />\n </RadioButtonGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <CheckboxGroup\n name='more places visited'\n label='More Places you have worked'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n required\n >\n <Checkbox key='Cambridge' label='Cambridge' readOnly />\n <Checkbox key='Krakow' label='Krakow' />\n <Checkbox key='Hyderabad' label='Hyderabad' />\n <Checkbox key='Bangalore' label='Bangalore' />\n </CheckboxGroup>\n </Grid>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <RadioButtonGroup\n name='meetings'\n label='Do you enjoy early morning meetings?'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n required\n >\n <RadioButton key='Yes' label='Yes' />\n <RadioButton key=\"No.. no I don't\" label=\"No.. no I don't\" />\n </RadioButtonGroup>\n </Grid>\n\n <Select\n label='What would you like to eat?'\n info=''\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n readOnly\n >\n <Option>choose meal…</Option>\n <Option selected>Pizza</Option>\n <Option>Sandwich</Option>\n <Option>Salad</Option>\n </Select>\n\n <Grid item={{ colStartEnd: '1/-1' }}>\n <TextArea\n readOnly\n name='notes'\n required={false}\n label='Meeting notes'\n status={notes.status}\n info={notes.info || notes.help}\n value='Test copy'\n additionalInfo={{\n heading: 'Field info',\n content: 'Lorem ipsum dolor set amet.'\n }}\n />\n </Grid>\n </Grid>\n </Form>\n );\n};\n"]}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { StoryFn } from '@storybook/react';
|
|
2
|
-
import type { FocusEventHandler, MouseEventHandler } from 'react';
|
|
3
2
|
import type { RadioCheckGroupProps, OmitStrict } from '@pega/cosmos-react-core';
|
|
4
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
5
4
|
export default _default;
|
|
6
5
|
interface RadioCheckGroupStoryProps extends RadioCheckGroupProps {
|
|
7
6
|
showAdditionalInfo?: boolean;
|
|
8
7
|
showNestedAdditionalInfo?: boolean;
|
|
9
|
-
|
|
10
|
-
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
8
|
+
onClear?: (() => void) | undefined;
|
|
11
9
|
}
|
|
12
10
|
export declare const RadioButtonGroupDemo: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>>;
|
|
13
11
|
export declare const RadioButtonCardGroup: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButtonGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButtonGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioButtonGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButtonGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAUtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;;AAIhF,wBA6BU;AAEV,UAAU,yBAA0B,SAAQ,oBAAoB;IAC9D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACpC;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAmF3F,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAsF3F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButtonGroup.stories.js","sourceRoot":"","sources":["../../../src/core/RadioButtonGroup/RadioButtonGroup.stories.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,UAAU,EACV,cAAc,EACd,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,IAAI,EACL,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEnE,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,gB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AC,UAAU,EAAC,IAAI,YAClD,KAAC,cAAc,IACb,MAAM,EAAE;4BACN,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE;4BAC1D,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE;4BAC9D,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE;yBAC7D,GACD,GACS,EAEf,EAAE,EAAC,YAAY,GACf,IACe,CACpB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { FocusEventHandler, MouseEventHandler } from 'react';\n\nimport {\n FieldGroup,\n FieldValueList,\n Flex,\n RadioButton,\n RadioButtonGroup,\n Text\n} from '@pega/cosmos-react-core';\nimport type { RadioCheckGroupProps, OmitStrict } from '@pega/cosmos-react-core';\n\nimport { Paragraph, StyledImage } from './RadioButtonGroup.styles';\n\nexport default {\n title: 'Core/RadioButtonGroup',\n component: RadioButtonGroup,\n args: {\n label: 'What do you want to eat?',\n labelHidden: false,\n inline: false,\n autoStack: true,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: false,\n showNestedAdditionalInfo: false,\n status: undefined,\n info: 'You must select it'\n },\n argTypes: {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n autoStack: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } },\n showNestedAdditionalInfo: { control: { type: 'boolean' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n info: { control: { type: 'text', label: 'Helper text' } }\n }\n} as Meta;\n\ninterface RadioCheckGroupStoryProps extends RadioCheckGroupProps {\n showAdditionalInfo?: boolean;\n showNestedAdditionalInfo?: boolean;\n onBlur?: FocusEventHandler<HTMLInputElement>;\n onClick?: MouseEventHandler<HTMLInputElement>;\n}\n\nexport const RadioButtonGroupDemo: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return args.showNestedAdditionalInfo ? (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton\n label='Banana'\n id='Banana'\n defaultChecked\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Apple'\n id='Apple'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Mango'\n id='Mango'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Orange'\n id='Orange'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n </RadioButtonGroup>\n ) : (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton label='Banana' id='Banana' defaultChecked />\n <RadioButton label='Apple' id='Apple' />\n <RadioButton label='Mango' id='Mango' />\n <RadioButton label='Orange' id='Orange' />\n </RadioButtonGroup>\n );\n};\n\nexport const RadioButtonCardGroup: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n variant='card'\n label='Which visuals appear satisfying?'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <RadioButton\n additionalInfo={\n args.showNestedAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>A paragraph</Text>\n <Paragraph>\n This is a paragraph of text. It is meant to appear visually satisfying amongst the\n other options in this group.\n </Paragraph>\n </Flex>\n }\n id='paragraph'\n defaultChecked\n />\n <RadioButton\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n </Flex>\n }\n id='space-photo'\n />\n <RadioButton\n label={\n <Flex container={{ gap: 1, alignItems: 'start' }}>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <Paragraph>\n Space is the final frontier. There is so much to discover within Constellation!\n </Paragraph>\n </Flex>\n </Flex>\n }\n id='cosmos'\n />\n <RadioButton\n label={\n <FieldGroup name='Gold service plan' headingTag='h3'>\n <FieldValueList\n fields={[\n { id: 'service', name: 'Service length', value: '1 year' },\n { id: 'monthly-cost', name: 'Monthly cost', value: '$180.00' },\n { id: 'total-cost', name: 'Total cost', value: '$2,160.00' }\n ]}\n />\n </FieldGroup>\n }\n id='phone-plan'\n />\n </RadioButtonGroup>\n );\n};\n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9C,KAAC,WAAW,IACV,GAAG,EAAC,+IAA+I,EACnJ,GAAG,EAAC,OAAO,GACX,EACF,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,aAC9C,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,sBAAa,EAC/B,KAAC,SAAS,kGAEE,IACP,IACF,EAET,EAAE,EAAC,QAAQ,GACX,EACF,KAAC,WAAW,IACV,KAAK,EACH,KAAC,UAAU,IAAC,IAAI,EAAC,mBAAmB,EAAC,UAAU,EAAC,IAAI,YAClD,KAAC,cAAc,IACb,MAAM,EAAE;4BACN,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE;4BAC1D,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE;4BAC9D,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE;yBAC7D,GACD,GACS,EAEf,EAAE,EAAC,YAAY,GACf,IACe,CACpB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport {\n FieldGroup,\n FieldValueList,\n Flex,\n RadioButton,\n RadioButtonGroup,\n Text\n} from '@pega/cosmos-react-core';\nimport type { RadioCheckGroupProps, OmitStrict } from '@pega/cosmos-react-core';\n\nimport { Paragraph, StyledImage } from './RadioButtonGroup.styles';\n\nexport default {\n title: 'Core/RadioButtonGroup',\n component: RadioButtonGroup,\n args: {\n label: 'What do you want to eat?',\n labelHidden: false,\n inline: false,\n autoStack: true,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: false,\n showNestedAdditionalInfo: false,\n status: undefined,\n info: 'You must select it'\n },\n argTypes: {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n autoStack: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } },\n showNestedAdditionalInfo: { control: { type: 'boolean' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n info: { control: { type: 'text', label: 'Helper text' } }\n }\n} as Meta;\n\ninterface RadioCheckGroupStoryProps extends RadioCheckGroupProps {\n showAdditionalInfo?: boolean;\n showNestedAdditionalInfo?: boolean;\n onClear?: (() => void) | undefined;\n}\n\nexport const RadioButtonGroupDemo: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return args.showNestedAdditionalInfo ? (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton\n label='Banana'\n id='Banana'\n defaultChecked\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Apple'\n id='Apple'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Mango'\n id='Mango'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n <RadioButton\n label='Orange'\n id='Orange'\n additionalInfo={{\n content: 'Some additional info'\n }}\n />\n </RadioButtonGroup>\n ) : (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={args.label}\n name='Fruit'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n status={args.status}\n info={args.info}\n onClick={args.onClick}\n onBlur={args.onBlur}\n >\n <RadioButton label='Banana' id='Banana' defaultChecked />\n <RadioButton label='Apple' id='Apple' />\n <RadioButton label='Mango' id='Mango' />\n <RadioButton label='Orange' id='Orange' />\n </RadioButtonGroup>\n );\n};\n\nexport const RadioButtonCardGroup: StoryFn<OmitStrict<RadioCheckGroupStoryProps, 'children'>> = (\n args: OmitStrict<RadioCheckGroupStoryProps, 'children'>\n) => {\n return (\n <RadioButtonGroup\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n variant='card'\n label='Which visuals appear satisfying?'\n labelHidden={args.labelHidden}\n inline={args.inline}\n autoStack={args.autoStack}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n >\n <RadioButton\n additionalInfo={\n args.showNestedAdditionalInfo\n ? {\n content: 'Some additional info'\n }\n : undefined\n }\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>A paragraph</Text>\n <Paragraph>\n This is a paragraph of text. It is meant to appear visually satisfying amongst the\n other options in this group.\n </Paragraph>\n </Flex>\n }\n id='paragraph'\n defaultChecked\n />\n <RadioButton\n label={\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n </Flex>\n }\n id='space-photo'\n />\n <RadioButton\n label={\n <Flex container={{ gap: 1, alignItems: 'start' }}>\n <StyledImage\n src='https://thumbor.forbes.com/thumbor/960x0/https%3A%2F%2Fspecials-images.forbesimg.com%2Fdam%2Fimageserve%2F765877054%2F960x0.jpg%3Ffit%3Dscale'\n alt='space'\n />\n <Flex container={{ direction: 'column', gap: 1 }}>\n <Text variant='h4'>Space</Text>\n <Paragraph>\n Space is the final frontier. There is so much to discover within Constellation!\n </Paragraph>\n </Flex>\n </Flex>\n }\n id='cosmos'\n />\n <RadioButton\n label={\n <FieldGroup name='Gold service plan' headingTag='h3'>\n <FieldValueList\n fields={[\n { id: 'service', name: 'Service length', value: '1 year' },\n { id: 'monthly-cost', name: 'Monthly cost', value: '$180.00' },\n { id: 'total-cost', name: 'Total cost', value: '$2,160.00' }\n ]}\n />\n </FieldGroup>\n }\n id='phone-plan'\n />\n </RadioButtonGroup>\n );\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-demos",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/pegasystems/cosmos-react.git",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"build": "tsc -b tsconfig.build.json && tsc -b tsconfig.build-preserve.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pega/cosmos-react-condition-builder": "6.
|
|
24
|
-
"@pega/cosmos-react-core": "6.
|
|
25
|
-
"@pega/cosmos-react-dnd": "6.
|
|
26
|
-
"@pega/cosmos-react-rte": "6.
|
|
27
|
-
"@pega/cosmos-react-social": "6.
|
|
28
|
-
"@pega/cosmos-react-work": "6.
|
|
23
|
+
"@pega/cosmos-react-condition-builder": "6.6.1",
|
|
24
|
+
"@pega/cosmos-react-core": "6.6.1",
|
|
25
|
+
"@pega/cosmos-react-dnd": "6.6.1",
|
|
26
|
+
"@pega/cosmos-react-rte": "6.6.1",
|
|
27
|
+
"@pega/cosmos-react-social": "6.6.1",
|
|
28
|
+
"@pega/cosmos-react-work": "6.6.1",
|
|
29
29
|
"@storybook/addon-actions": "~7.5.3",
|
|
30
30
|
"@storybook/react": "~7.5.3",
|
|
31
31
|
"@types/dompurify": "^3.0.5",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { DateFunctionsByType, RHSType } from '@pega/cosmos-react-condition-builder';
|
|
2
|
-
export declare const convertRhsTypes: (useLiteralRHSType: boolean, useFieldRHSType: boolean, useRelativeDatesType: boolean, useParameterRHSType: boolean, dateFunctions?: DateFunctionsByType) => Set<RHSType>;
|
|
3
|
-
//# sourceMappingURL=ConditionBuilder.mocks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionBuilder.mocks.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAEzF,eAAO,MAAM,eAAe,sBACP,OAAO,mBACT,OAAO,wBACF,OAAO,uBACR,OAAO,kBACZ,mBAAmB,iBASpC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const convertRhsTypes = (useLiteralRHSType, useFieldRHSType, useRelativeDatesType, useParameterRHSType, dateFunctions) => {
|
|
2
|
-
const setRhsTypes = new Set();
|
|
3
|
-
if (useLiteralRHSType)
|
|
4
|
-
setRhsTypes.add('LITERAL');
|
|
5
|
-
if (useFieldRHSType)
|
|
6
|
-
setRhsTypes.add('FIELD');
|
|
7
|
-
if (dateFunctions)
|
|
8
|
-
setRhsTypes.add('DATE_FUNCTION');
|
|
9
|
-
if (useRelativeDatesType)
|
|
10
|
-
setRhsTypes.add('RELATIVE_DATE');
|
|
11
|
-
if (useParameterRHSType)
|
|
12
|
-
setRhsTypes.add('PARAMETER');
|
|
13
|
-
return setRhsTypes;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=ConditionBuilder.mocks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionBuilder.mocks.js","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,iBAA0B,EAC1B,eAAwB,EACxB,oBAA6B,EAC7B,mBAA4B,EAC5B,aAAmC,EACnC,EAAE;IACF,MAAM,WAAW,GAAiB,IAAI,GAAG,EAAW,CAAC;IACrD,IAAI,iBAAiB;QAAE,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,eAAe;QAAE,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9C,IAAI,aAAa;QAAE,WAAW,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACpD,IAAI,oBAAoB;QAAE,WAAW,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3D,IAAI,mBAAmB;QAAE,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACtD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC","sourcesContent":["import type { DateFunctionsByType, RHSType } from '@pega/cosmos-react-condition-builder';\n\nexport const convertRhsTypes = (\n useLiteralRHSType: boolean,\n useFieldRHSType: boolean,\n useRelativeDatesType: boolean,\n useParameterRHSType: boolean,\n dateFunctions?: DateFunctionsByType\n) => {\n const setRhsTypes: Set<RHSType> = new Set<RHSType>();\n if (useLiteralRHSType) setRhsTypes.add('LITERAL');\n if (useFieldRHSType) setRhsTypes.add('FIELD');\n if (dateFunctions) setRhsTypes.add('DATE_FUNCTION');\n if (useRelativeDatesType) setRhsTypes.add('RELATIVE_DATE');\n if (useParameterRHSType) setRhsTypes.add('PARAMETER');\n return setRhsTypes;\n};\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { StoryFn } from '@storybook/react';
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
3
|
-
export default _default;
|
|
4
|
-
interface ConditionBuilderStoryProps {
|
|
5
|
-
validComparators?: boolean;
|
|
6
|
-
disallowNOT?: boolean;
|
|
7
|
-
renderInPopover?: boolean;
|
|
8
|
-
dateFunctions?: boolean;
|
|
9
|
-
itemDirection?: 'column' | 'row';
|
|
10
|
-
useLiteralRHSType?: boolean;
|
|
11
|
-
useParameterRHSType?: boolean;
|
|
12
|
-
useFieldRHSType?: boolean;
|
|
13
|
-
useRelativeDatesRHSType?: boolean;
|
|
14
|
-
lhsMode?: 'input' | 'label' | 'hidden';
|
|
15
|
-
}
|
|
16
|
-
export declare const DefaultBuilder: StoryFn<ConditionBuilderStoryProps>;
|
|
17
|
-
export declare const FieldConditionDemo: StoryFn<ConditionBuilderStoryProps>;
|
|
18
|
-
export declare const AtomicConditionDemo: StoryFn<ConditionBuilderStoryProps>;
|
|
19
|
-
//# sourceMappingURL=ConditionBuilder.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionBuilder.stories.d.ts","sourceRoot":"","sources":["../../../src/condition-builder/ConditionBuilder/ConditionBuilder.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AA6BtD,wBAGU;AAEV,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;CACxC;AAED,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,0BAA0B,CAgH9D,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,0BAA0B,CAqGlE,CAAC;AAcF,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,0BAA0B,CA4JnE,CAAC"}
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { useRef, useState } from 'react';
|
|
2
|
-
import { Card, CardContent, Text, Button, Popover, useElement, useOuterEvent, Flex, useI18n } from '@pega/cosmos-react-core';
|
|
3
|
-
import { ConditionBuilder, FieldCondition, AtomicCondition, getInitConditionForLhs, isValidCondition, formatCondition } from '@pega/cosmos-react-condition-builder';
|
|
4
|
-
import { demoFields, demoCondition, demoComparators, demoDateFunctions } from './props.mock';
|
|
5
|
-
import { StyledCodeBlock, StyledGrid, StyledList } from './ConditionBuilder.styles';
|
|
6
|
-
import { convertRhsTypes } from './ConditionBuilder.mocks';
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Condition Builder/ConditionBuilder',
|
|
9
|
-
component: ConditionBuilder
|
|
10
|
-
};
|
|
11
|
-
export const DefaultBuilder = (args) => {
|
|
12
|
-
const translate = useI18n();
|
|
13
|
-
const [condition, setCondition] = useState(() => {
|
|
14
|
-
const prevCondition = sessionStorage.getItem('CBDemoCondition');
|
|
15
|
-
if (prevCondition !== null) {
|
|
16
|
-
if (prevCondition === 'undefined') {
|
|
17
|
-
return undefined;
|
|
18
|
-
}
|
|
19
|
-
return JSON.parse(prevCondition);
|
|
20
|
-
}
|
|
21
|
-
return demoCondition;
|
|
22
|
-
});
|
|
23
|
-
const buttonRef = useRef(null);
|
|
24
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
25
|
-
const [popoverEl, setPopoverEl] = useElement(null);
|
|
26
|
-
const hidePopover = () => {
|
|
27
|
-
if (isOpen) {
|
|
28
|
-
setIsOpen(false);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover);
|
|
32
|
-
const hideOnEscape = (e) => {
|
|
33
|
-
if (e.key === 'Escape')
|
|
34
|
-
hidePopover();
|
|
35
|
-
};
|
|
36
|
-
const handle = useRef(null);
|
|
37
|
-
const builderJsx = (<>
|
|
38
|
-
<ConditionBuilder fields={demoFields} condition={condition} validComparators={args.validComparators ? demoComparators : undefined} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE', 'PARAMETER'])} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} disallowNOT={args.disallowNOT} handle={handle}/>
|
|
39
|
-
<Flex container={{ justify: 'end' }}>
|
|
40
|
-
<Button variant='primary' onClick={() => {
|
|
41
|
-
if (handle?.current) {
|
|
42
|
-
const [valid, newCondition] = handle.current.getCondition();
|
|
43
|
-
if (valid) {
|
|
44
|
-
setCondition(newCondition);
|
|
45
|
-
hidePopover();
|
|
46
|
-
sessionStorage.setItem('CBDemoCondition', JSON.stringify(newCondition));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}}>
|
|
50
|
-
Submit
|
|
51
|
-
</Button>
|
|
52
|
-
</Flex>
|
|
53
|
-
</>);
|
|
54
|
-
return (<StyledGrid container={{
|
|
55
|
-
cols: '1fr',
|
|
56
|
-
rowGap: 3
|
|
57
|
-
}}>
|
|
58
|
-
{!args.renderInPopover && builderJsx}
|
|
59
|
-
|
|
60
|
-
{args.renderInPopover && (<>
|
|
61
|
-
<Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
|
|
62
|
-
Open Condition builder
|
|
63
|
-
</Button>
|
|
64
|
-
|
|
65
|
-
<Popover show={isOpen} ref={setPopoverEl} target={buttonRef.current} placement='bottom-start'>
|
|
66
|
-
<Flex container={{ pad: 1, direction: 'column' }}>{builderJsx}</Flex>
|
|
67
|
-
</Popover>
|
|
68
|
-
</>)}
|
|
69
|
-
|
|
70
|
-
<div>
|
|
71
|
-
<Text variant='h4'>Output:</Text>
|
|
72
|
-
<StyledCodeBlock>
|
|
73
|
-
{condition ? JSON.stringify(condition, null, 2) : '(No condition)'}
|
|
74
|
-
</StyledCodeBlock>
|
|
75
|
-
</div>
|
|
76
|
-
|
|
77
|
-
<div>
|
|
78
|
-
<Text variant='h4'>Formatted Output:</Text>
|
|
79
|
-
<StyledCodeBlock>
|
|
80
|
-
{condition ? formatCondition(condition, demoFields, translate) : '(No condition)'}
|
|
81
|
-
</StyledCodeBlock>
|
|
82
|
-
</div>
|
|
83
|
-
</StyledGrid>);
|
|
84
|
-
};
|
|
85
|
-
DefaultBuilder.args = {
|
|
86
|
-
validComparators: false,
|
|
87
|
-
disallowNOT: false,
|
|
88
|
-
renderInPopover: false,
|
|
89
|
-
dateFunctions: true
|
|
90
|
-
};
|
|
91
|
-
DefaultBuilder.argTypes = {
|
|
92
|
-
validComparators: { control: { type: 'boolean' } },
|
|
93
|
-
disallowNOT: { control: { type: 'boolean' } },
|
|
94
|
-
renderInPopover: { control: { type: 'boolean' } },
|
|
95
|
-
dateFunctions: { control: { type: 'boolean' } }
|
|
96
|
-
};
|
|
97
|
-
export const FieldConditionDemo = (args) => {
|
|
98
|
-
const translate = useI18n();
|
|
99
|
-
const [condition, setCondition] = useState(undefined);
|
|
100
|
-
const buttonRef = useRef(null);
|
|
101
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
102
|
-
const [popoverEl, setPopoverEl] = useElement(null);
|
|
103
|
-
const hidePopover = () => {
|
|
104
|
-
if (isOpen) {
|
|
105
|
-
setIsOpen(false);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover);
|
|
109
|
-
const hideOnEscape = (e) => {
|
|
110
|
-
if (e.key === 'Escape')
|
|
111
|
-
hidePopover();
|
|
112
|
-
};
|
|
113
|
-
const handle = useRef(null);
|
|
114
|
-
const builderJsx = (<Flex container={{ direction: 'column', gap: 2 }}>
|
|
115
|
-
<FieldCondition targetField='technicalDetails.lastActivityAt' fields={demoFields} condition={condition} validComparators={args.validComparators ? demoComparators : undefined} validRhsTypes={new Set(['LITERAL', 'FIELD', 'DATE_FUNCTION', 'RELATIVE_DATE'])} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} handle={handle}/>
|
|
116
|
-
|
|
117
|
-
<Flex container={{ justify: 'end' }}>
|
|
118
|
-
<Button name='field-condition-submit' variant='primary' onClick={() => {
|
|
119
|
-
if (!handle.current)
|
|
120
|
-
return;
|
|
121
|
-
const [isValid, c] = handle.current.getCondition();
|
|
122
|
-
if (!isValid)
|
|
123
|
-
return;
|
|
124
|
-
hidePopover();
|
|
125
|
-
setCondition(c);
|
|
126
|
-
}}>
|
|
127
|
-
Submit
|
|
128
|
-
</Button>
|
|
129
|
-
</Flex>
|
|
130
|
-
</Flex>);
|
|
131
|
-
return (<StyledGrid container={{
|
|
132
|
-
cols: 'repeat(2, minmax(0, 1fr))',
|
|
133
|
-
justifyItems: 'stretch',
|
|
134
|
-
alignItems: 'start',
|
|
135
|
-
colGap: 4
|
|
136
|
-
}}>
|
|
137
|
-
{!args.renderInPopover && builderJsx}
|
|
138
|
-
|
|
139
|
-
{args.renderInPopover && (<>
|
|
140
|
-
<Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
|
|
141
|
-
Open Condition builder
|
|
142
|
-
</Button>
|
|
143
|
-
|
|
144
|
-
<Popover show={isOpen} ref={setPopoverEl} target={buttonRef.current} placement='bottom-start'>
|
|
145
|
-
<Flex container={{ pad: 1 }}>{builderJsx}</Flex>
|
|
146
|
-
</Popover>
|
|
147
|
-
</>)}
|
|
148
|
-
|
|
149
|
-
<div>
|
|
150
|
-
<Text variant='h4'>Output:</Text>
|
|
151
|
-
<StyledCodeBlock>
|
|
152
|
-
{condition ? JSON.stringify(condition, null, 2) : '(No condition)'}
|
|
153
|
-
</StyledCodeBlock>
|
|
154
|
-
|
|
155
|
-
<Text variant='h4'>Formatted Output:</Text>
|
|
156
|
-
<StyledCodeBlock>
|
|
157
|
-
{condition ? formatCondition({ condition }, demoFields, translate) : '(No condition)'}
|
|
158
|
-
</StyledCodeBlock>
|
|
159
|
-
</div>
|
|
160
|
-
</StyledGrid>);
|
|
161
|
-
};
|
|
162
|
-
FieldConditionDemo.args = {
|
|
163
|
-
validComparators: false,
|
|
164
|
-
renderInPopover: false,
|
|
165
|
-
dateFunctions: true
|
|
166
|
-
};
|
|
167
|
-
FieldConditionDemo.argTypes = {
|
|
168
|
-
validComparators: { control: { type: 'boolean' } },
|
|
169
|
-
renderInPopover: { control: { type: 'boolean' } },
|
|
170
|
-
dateFunctions: { control: { type: 'boolean' } }
|
|
171
|
-
};
|
|
172
|
-
export const AtomicConditionDemo = (args) => {
|
|
173
|
-
const translate = useI18n();
|
|
174
|
-
const validRHSTypes = convertRhsTypes(!!args.useLiteralRHSType, !!args.useFieldRHSType, !!args.useRelativeDatesRHSType, !!args.useParameterRHSType, args.dateFunctions ? demoDateFunctions : undefined);
|
|
175
|
-
const [submitCondition, setSubmitCondition] = useState(undefined);
|
|
176
|
-
const buttonRef = useRef(null);
|
|
177
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
178
|
-
const [popoverEl, setPopoverEl] = useElement(null);
|
|
179
|
-
const hidePopover = () => {
|
|
180
|
-
if (isOpen) {
|
|
181
|
-
setIsOpen(false);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
useOuterEvent('mousedown', [popoverEl, buttonRef.current], hidePopover);
|
|
185
|
-
const hideOnEscape = (e) => {
|
|
186
|
-
if (e.key === 'Escape')
|
|
187
|
-
hidePopover();
|
|
188
|
-
};
|
|
189
|
-
const [showErrorIndicators, setShowErrorIndicators] = useState(false);
|
|
190
|
-
const [condition, setCondition] = useState(() => submitCondition ||
|
|
191
|
-
getInitConditionForLhs({ field: 'details.age' }, demoFields, validRHSTypes, args.validComparators ? demoComparators : undefined, args.dateFunctions ? demoDateFunctions : undefined));
|
|
192
|
-
const handleSubmission = () => {
|
|
193
|
-
setShowErrorIndicators(false);
|
|
194
|
-
if (isValidCondition(condition, demoFields, true)) {
|
|
195
|
-
if (args.renderInPopover)
|
|
196
|
-
setIsOpen(false);
|
|
197
|
-
setSubmitCondition(condition);
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
setShowErrorIndicators(true);
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
const atomicConditionJSX = (<Flex container={{ direction: 'column', gap: 2 }}>
|
|
204
|
-
<AtomicCondition condition={condition} fields={demoFields} indicateErrors={showErrorIndicators} validComparators={args.validComparators ? demoComparators : undefined} dateFunctions={args.dateFunctions ? demoDateFunctions : undefined} onChange={c => setCondition(c)} itemDirection={args.itemDirection} lhsMode={args.lhsMode} validRhsTypes={validRHSTypes}/>
|
|
205
|
-
<Flex container={{ justify: 'end' }}>
|
|
206
|
-
<Button variant='primary' onClick={handleSubmission}>
|
|
207
|
-
Submit
|
|
208
|
-
</Button>
|
|
209
|
-
</Flex>
|
|
210
|
-
</Flex>);
|
|
211
|
-
return (<StyledGrid container={{
|
|
212
|
-
cols: 'repeat(2, minmax(0, 1fr))',
|
|
213
|
-
justifyItems: 'stretch',
|
|
214
|
-
alignItems: 'start',
|
|
215
|
-
colGap: 4
|
|
216
|
-
}}>
|
|
217
|
-
{!args.renderInPopover && atomicConditionJSX}
|
|
218
|
-
|
|
219
|
-
{args.renderInPopover && (<>
|
|
220
|
-
<Button ref={buttonRef} aria-haspopup aria-expanded={isOpen} onClick={() => setIsOpen(!isOpen)} onKeyDown={hideOnEscape}>
|
|
221
|
-
{`${isOpen ? 'Close' : 'Open'} Atomic Condition`}
|
|
222
|
-
</Button>
|
|
223
|
-
|
|
224
|
-
<Popover show={isOpen} ref={setPopoverEl} target={buttonRef.current} placement='bottom-start'>
|
|
225
|
-
<Flex container={{ pad: 1 }}>{atomicConditionJSX}</Flex>
|
|
226
|
-
</Popover>
|
|
227
|
-
</>)}
|
|
228
|
-
<Card>
|
|
229
|
-
<CardContent>
|
|
230
|
-
<Text variant='h4'>Output:</Text>
|
|
231
|
-
<StyledCodeBlock>
|
|
232
|
-
{submitCondition ? JSON.stringify(submitCondition, null, 2) : '(No condition)'}
|
|
233
|
-
</StyledCodeBlock>
|
|
234
|
-
|
|
235
|
-
<Text variant='h4'>Formatted Output:</Text>
|
|
236
|
-
<StyledCodeBlock>
|
|
237
|
-
{submitCondition
|
|
238
|
-
? formatCondition({ condition: submitCondition }, demoFields, translate)
|
|
239
|
-
: '(No condition)'}
|
|
240
|
-
</StyledCodeBlock>
|
|
241
|
-
<Flex container={{ gap: 1, direction: 'column' }}>
|
|
242
|
-
<Flex container={{ gap: 1, direction: 'column' }}>
|
|
243
|
-
<Text variant='h2' status='error'>
|
|
244
|
-
validRhsTypes Prop Warning
|
|
245
|
-
</Text>
|
|
246
|
-
<Text>
|
|
247
|
-
There are LHS(Left Hand Side Field)/Comparator pairings that <u>require</u> specific
|
|
248
|
-
RHS(Right Hand Side Value) types. Please be mindful of these incompatibilities when
|
|
249
|
-
limiting RHS value types using this prop. We <b>do not</b> support limiting RHS
|
|
250
|
-
field types to incompatible types and it will result in a validation error if you do
|
|
251
|
-
so. The pairings referred to here are as follows:
|
|
252
|
-
</Text>
|
|
253
|
-
</Flex>
|
|
254
|
-
<StyledList>
|
|
255
|
-
<li>
|
|
256
|
-
BOOLEAN LHS Fields coupled with "EQ" or "NEQ" comparators, will <u>always yield</u>{' '}
|
|
257
|
-
a Field RHS
|
|
258
|
-
</li>
|
|
259
|
-
<li>
|
|
260
|
-
Any LHS Fields coupled with "IN" or "NOT_IN" comparators, will <u>always yield</u> a
|
|
261
|
-
Literal RHS (Comma separated list)
|
|
262
|
-
</li>
|
|
263
|
-
</StyledList>
|
|
264
|
-
<Flex container={{ direction: 'column' }}>
|
|
265
|
-
<Text>
|
|
266
|
-
If you would like to limit RHS value types and avoid these incompatibilities, you
|
|
267
|
-
will need to exclude these comparators using the <b>validComparators</b> prop.
|
|
268
|
-
</Text>
|
|
269
|
-
</Flex>
|
|
270
|
-
</Flex>
|
|
271
|
-
</CardContent>
|
|
272
|
-
</Card>
|
|
273
|
-
</StyledGrid>);
|
|
274
|
-
};
|
|
275
|
-
AtomicConditionDemo.args = {
|
|
276
|
-
validComparators: false,
|
|
277
|
-
renderInPopover: false,
|
|
278
|
-
dateFunctions: true,
|
|
279
|
-
itemDirection: 'column',
|
|
280
|
-
useLiteralRHSType: true,
|
|
281
|
-
useParameterRHSType: true,
|
|
282
|
-
useFieldRHSType: true,
|
|
283
|
-
useRelativeDatesRHSType: true,
|
|
284
|
-
lhsMode: 'input'
|
|
285
|
-
};
|
|
286
|
-
AtomicConditionDemo.argTypes = {
|
|
287
|
-
validComparators: { control: { type: 'boolean' } },
|
|
288
|
-
renderInPopover: { control: { type: 'boolean' } },
|
|
289
|
-
dateFunctions: { control: { type: 'boolean' } },
|
|
290
|
-
itemDirection: { options: ['column', 'row'], control: { type: 'select' } },
|
|
291
|
-
useLiteralRHSType: { control: { type: 'boolean' } },
|
|
292
|
-
useParameterRHSType: { control: { type: 'boolean' } },
|
|
293
|
-
useFieldRHSType: { control: { type: 'boolean' } },
|
|
294
|
-
useRelativeDatesRHSType: { control: { type: 'boolean' } },
|
|
295
|
-
lhsMode: { options: ['input', 'label', 'hidden'], control: { type: 'select' } }
|
|
296
|
-
};
|
|
297
|
-
//# sourceMappingURL=ConditionBuilder.stories.jsx.map
|