@pega/cosmos-react-demos 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +185 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts +8 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -0
- package/lib/build/AppHeader/AppHeader.stories.jsx +65 -0
- package/lib/build/AppHeader/AppHeader.stories.jsx.map +1 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts +50 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/build/AppShell/AppShell.mocks.js +503 -0
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -0
- package/lib/build/AppShell/AppShell.stories.d.ts +12 -0
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/build/AppShell/AppShell.stories.jsx +194 -0
- package/lib/build/AppShell/AppShell.stories.jsx.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +45 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js +291 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +9 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.js +411 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +12 -0
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.stories.jsx +214 -0
- package/lib/build/FlowModeller/FlowModeller.stories.jsx.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +201 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js +1128 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +11 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.jsx +491 -0
- package/lib/build/LifeCycle/LifeCycle.stories.jsx.map +1 -0
- package/lib/build/LifeCycle/utils.d.ts +65 -0
- package/lib/build/LifeCycle/utils.d.ts.map +1 -0
- package/lib/build/LifeCycle/utils.js +218 -0
- package/lib/build/LifeCycle/utils.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +12 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.jsx +126 -0
- package/lib/build/PageTemplates/GalleryPage.stories.jsx.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +26 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.jsx +434 -0
- package/lib/build/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/lib/build/Workbench/Workbench.mocks.d.ts +9 -0
- package/lib/build/Workbench/Workbench.mocks.d.ts.map +1 -0
- package/lib/build/Workbench/Workbench.mocks.js +67 -0
- package/lib/build/Workbench/Workbench.mocks.js.map +1 -0
- package/lib/build/Workbench/Workbench.stories.d.ts +10 -0
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -0
- package/lib/build/Workbench/Workbench.stories.jsx +124 -0
- package/lib/build/Workbench/Workbench.stories.jsx.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +10 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +263 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts +6 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js +113 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts +15 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.jsx +147 -0
- package/lib/core/AppShell/AppShell.mocks.jsx.map +1 -0
- package/lib/core/AppShell/AppShell.stories.d.ts +31 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.stories.jsx +222 -0
- package/lib/core/AppShell/AppShell.stories.jsx.map +1 -0
- package/lib/core/AppShell/AppShell.styles.d.ts +2 -0
- package/lib/core/AppShell/AppShell.styles.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.styles.js +5 -0
- package/lib/core/AppShell/AppShell.styles.js.map +1 -0
- package/lib/core/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -0
- package/lib/core/Avatar/Avatar.stories.jsx +50 -0
- package/lib/core/Avatar/Avatar.stories.jsx.map +1 -0
- package/lib/core/Backdrop/Backdrop.stories.d.ts +7 -0
- package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -0
- package/lib/core/Backdrop/Backdrop.stories.jsx +43 -0
- package/lib/core/Backdrop/Backdrop.stories.jsx.map +1 -0
- package/lib/core/Badges/Alert.stories.d.ts +6 -0
- package/lib/core/Badges/Alert.stories.d.ts.map +1 -0
- package/lib/core/Badges/Alert.stories.jsx +15 -0
- package/lib/core/Badges/Alert.stories.jsx.map +1 -0
- package/lib/core/Badges/Count.stories.d.ts +6 -0
- package/lib/core/Badges/Count.stories.d.ts.map +1 -0
- package/lib/core/Badges/Count.stories.jsx +20 -0
- package/lib/core/Badges/Count.stories.jsx.map +1 -0
- package/lib/core/Badges/Selection.stories.d.ts +6 -0
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -0
- package/lib/core/Badges/Selection.stories.jsx +9 -0
- package/lib/core/Badges/Selection.stories.jsx.map +1 -0
- package/lib/core/Badges/Status.stories.d.ts +6 -0
- package/lib/core/Badges/Status.stories.d.ts.map +1 -0
- package/lib/core/Badges/Status.stories.jsx +18 -0
- package/lib/core/Badges/Status.stories.jsx.map +1 -0
- package/lib/core/Badges/Tag.stories.d.ts +6 -0
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -0
- package/lib/core/Badges/Tag.stories.jsx +9 -0
- package/lib/core/Badges/Tag.stories.jsx.map +1 -0
- package/lib/core/Banner/Banner.stories.d.ts +22 -0
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -0
- package/lib/core/Banner/Banner.stories.jsx +125 -0
- package/lib/core/Banner/Banner.stories.jsx.map +1 -0
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts +6 -0
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -0
- package/lib/core/Boolean/BooleanDisplay.stories.jsx +19 -0
- package/lib/core/Boolean/BooleanDisplay.stories.jsx.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.jsx +29 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js +12 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js.map +1 -0
- package/lib/core/Button/Button.stories.d.ts +12 -0
- package/lib/core/Button/Button.stories.d.ts.map +1 -0
- package/lib/core/Button/Button.stories.jsx +103 -0
- package/lib/core/Button/Button.stories.jsx.map +1 -0
- package/lib/core/Card/Card.stories.d.ts +8 -0
- package/lib/core/Card/Card.stories.d.ts.map +1 -0
- package/lib/core/Card/Card.stories.jsx +55 -0
- package/lib/core/Card/Card.stories.jsx.map +1 -0
- package/lib/core/Card/Card.styles.d.ts +2 -0
- package/lib/core/Card/Card.styles.d.ts.map +1 -0
- package/lib/core/Card/Card.styles.js +5 -0
- package/lib/core/Card/Card.styles.js.map +1 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts +7 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/lib/core/Checkbox/Checkbox.stories.jsx +28 -0
- package/lib/core/Checkbox/Checkbox.stories.jsx.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.jsx +60 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js +9 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +8 -0
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.stories.jsx +91 -0
- package/lib/core/ColorPicker/ColorPicker.stories.jsx.map +1 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +24 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -0
- package/lib/core/ComboBox/ComboBox.mocks.js +54 -0
- package/lib/core/ComboBox/ComboBox.mocks.js.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts +21 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.jsx +323 -0
- package/lib/core/ComboBox/ComboBox.stories.jsx.map +1 -0
- package/lib/core/Configuration/Configuration.stories.d.ts +10 -0
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.stories.jsx +125 -0
- package/lib/core/Configuration/Configuration.stories.jsx.map +1 -0
- package/lib/core/Currency/Currency.stories.d.ts +11 -0
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -0
- package/lib/core/Currency/Currency.stories.jsx +65 -0
- package/lib/core/Currency/Currency.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTime.stories.d.ts +20 -0
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTime.stories.jsx +127 -0
- package/lib/core/DateTime/DateTime.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +7 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.jsx +46 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTimePicker.stories.d.ts +7 -0
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTimePicker.stories.jsx +34 -0
- package/lib/core/DateTime/DateTimePicker.stories.jsx.map +1 -0
- package/lib/core/Drawer/Drawer.stories.d.ts +7 -0
- package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -0
- package/lib/core/Drawer/Drawer.stories.jsx +98 -0
- package/lib/core/Drawer/Drawer.stories.jsx.map +1 -0
- package/lib/core/Drawer/Drawer.styles.d.ts +2 -0
- package/lib/core/Drawer/Drawer.styles.d.ts.map +1 -0
- package/lib/core/Drawer/Drawer.styles.js +11 -0
- package/lib/core/Drawer/Drawer.styles.js.map +1 -0
- package/lib/core/Email/EmailDisplay.stories.d.ts +6 -0
- package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -0
- package/lib/core/Email/EmailDisplay.stories.jsx +19 -0
- package/lib/core/Email/EmailDisplay.stories.jsx.map +1 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +8 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.jsx +52 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -0
- package/lib/core/EmptyState/EmptyState.stories.d.ts +6 -0
- package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/lib/core/EmptyState/EmptyState.stories.jsx +18 -0
- package/lib/core/EmptyState/EmptyState.stories.jsx.map +1 -0
- package/lib/core/ErrorState/ErrorState.stories.d.ts +9 -0
- package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -0
- package/lib/core/ErrorState/ErrorState.stories.jsx +20 -0
- package/lib/core/ErrorState/ErrorState.stories.jsx.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +7 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.jsx +73 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts +4 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js +12 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js.map +1 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +11 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -0
- package/lib/core/FieldGroup/FieldGroup.stories.jsx +52 -0
- package/lib/core/FieldGroup/FieldGroup.stories.jsx.map +1 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +10 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.jsx +183 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +10 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.jsx +54 -0
- package/lib/core/FieldValueList/FieldValueList.stories.jsx.map +1 -0
- package/lib/core/File/FileDisplay.stories.d.ts +13 -0
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -0
- package/lib/core/File/FileDisplay.stories.jsx +100 -0
- package/lib/core/File/FileDisplay.stories.jsx.map +1 -0
- package/lib/core/File/FileInput.stories.d.ts +9 -0
- package/lib/core/File/FileInput.stories.d.ts.map +1 -0
- package/lib/core/File/FileInput.stories.jsx +76 -0
- package/lib/core/File/FileInput.stories.jsx.map +1 -0
- package/lib/core/Flex/Flex.styles.d.ts +10 -0
- package/lib/core/Flex/Flex.styles.d.ts.map +1 -0
- package/lib/core/Flex/Flex.styles.js +41 -0
- package/lib/core/Flex/Flex.styles.js.map +1 -0
- package/lib/core/Flex/FlexContainer.stories.d.ts +20 -0
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -0
- package/lib/core/Flex/FlexContainer.stories.jsx +151 -0
- package/lib/core/Flex/FlexContainer.stories.jsx.map +1 -0
- package/lib/core/Flex/FlexItem.stories.d.ts +13 -0
- package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -0
- package/lib/core/Flex/FlexItem.stories.jsx +71 -0
- package/lib/core/Flex/FlexItem.stories.jsx.map +1 -0
- package/lib/core/Form/Form.stories.d.ts +21 -0
- package/lib/core/Form/Form.stories.d.ts.map +1 -0
- package/lib/core/Form/Form.stories.jsx +196 -0
- package/lib/core/Form/Form.stories.jsx.map +1 -0
- package/lib/core/Grid/Grid.styles.d.ts +6 -0
- package/lib/core/Grid/Grid.styles.d.ts.map +1 -0
- package/lib/core/Grid/Grid.styles.js +36 -0
- package/lib/core/Grid/Grid.styles.js.map +1 -0
- package/lib/core/Grid/GridContainer.stories.d.ts +23 -0
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -0
- package/lib/core/Grid/GridContainer.stories.jsx +161 -0
- package/lib/core/Grid/GridContainer.stories.jsx.map +1 -0
- package/lib/core/Grid/GridItem.stories.d.ts +13 -0
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -0
- package/lib/core/Grid/GridItem.stories.jsx +74 -0
- package/lib/core/Grid/GridItem.stories.jsx.map +1 -0
- package/lib/core/Icon/Icon.stories.d.ts +8 -0
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -0
- package/lib/core/Icon/Icon.stories.jsx +84 -0
- package/lib/core/Icon/Icon.stories.jsx.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts +6 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.jsx +39 -0
- package/lib/core/IconPicker/IconPicker.stories.jsx.map +1 -0
- package/lib/core/Image/Image.stories.d.ts +6 -0
- package/lib/core/Image/Image.stories.d.ts.map +1 -0
- package/lib/core/Image/Image.stories.jsx +9 -0
- package/lib/core/Image/Image.stories.jsx.map +1 -0
- package/lib/core/Input/Input.stories.d.ts +9 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -0
- package/lib/core/Input/Input.stories.jsx +44 -0
- package/lib/core/Input/Input.stories.jsx.map +1 -0
- package/lib/core/Label/Label.stories.d.ts +6 -0
- package/lib/core/Label/Label.stories.d.ts.map +1 -0
- package/lib/core/Label/Label.stories.jsx +15 -0
- package/lib/core/Label/Label.stories.jsx.map +1 -0
- package/lib/core/Lightbox/Lightbox.stories.d.ts +9 -0
- package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -0
- package/lib/core/Lightbox/Lightbox.stories.jsx +106 -0
- package/lib/core/Lightbox/Lightbox.stories.jsx.map +1 -0
- package/lib/core/Link/Link.stories.d.ts +8 -0
- package/lib/core/Link/Link.stories.d.ts.map +1 -0
- package/lib/core/Link/Link.stories.jsx +32 -0
- package/lib/core/Link/Link.stories.jsx.map +1 -0
- package/lib/core/List/CommaSeparatedList.stories.d.ts +6 -0
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -0
- package/lib/core/List/CommaSeparatedList.stories.jsx +33 -0
- package/lib/core/List/CommaSeparatedList.stories.jsx.map +1 -0
- package/lib/core/List/OrderedList.stories.d.ts +10 -0
- package/lib/core/List/OrderedList.stories.d.ts.map +1 -0
- package/lib/core/List/OrderedList.stories.jsx +38 -0
- package/lib/core/List/OrderedList.stories.jsx.map +1 -0
- package/lib/core/List/UnorderedList.stories.d.ts +10 -0
- package/lib/core/List/UnorderedList.stories.d.ts.map +1 -0
- package/lib/core/List/UnorderedList.stories.jsx +38 -0
- package/lib/core/List/UnorderedList.stories.jsx.map +1 -0
- package/lib/core/Location/Location.stories.d.ts +12 -0
- package/lib/core/Location/Location.stories.d.ts.map +1 -0
- package/lib/core/Location/Location.stories.jsx +130 -0
- package/lib/core/Location/Location.stories.jsx.map +1 -0
- package/lib/core/Menu/Menu.mocks.d.ts +4 -0
- package/lib/core/Menu/Menu.mocks.d.ts.map +1 -0
- package/lib/core/Menu/Menu.mocks.js +179 -0
- package/lib/core/Menu/Menu.mocks.js.map +1 -0
- package/lib/core/Menu/Menu.stories.d.ts +17 -0
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -0
- package/lib/core/Menu/Menu.stories.jsx +166 -0
- package/lib/core/Menu/Menu.stories.jsx.map +1 -0
- package/lib/core/Menu/Menu.styles.d.ts +2 -0
- package/lib/core/Menu/Menu.styles.d.ts.map +1 -0
- package/lib/core/Menu/Menu.styles.js +6 -0
- package/lib/core/Menu/Menu.styles.js.map +1 -0
- package/lib/core/MenuButton/MenuButton.stories.d.ts +15 -0
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -0
- package/lib/core/MenuButton/MenuButton.stories.jsx +188 -0
- package/lib/core/MenuButton/MenuButton.stories.jsx.map +1 -0
- package/lib/core/MetaList/MetaList.stories.d.ts +9 -0
- package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -0
- package/lib/core/MetaList/MetaList.stories.jsx +24 -0
- package/lib/core/MetaList/MetaList.stories.jsx.map +1 -0
- package/lib/core/Modal/Modal.mocks.d.ts +4 -0
- package/lib/core/Modal/Modal.mocks.d.ts.map +1 -0
- package/lib/core/Modal/Modal.mocks.jsx +44 -0
- package/lib/core/Modal/Modal.mocks.jsx.map +1 -0
- package/lib/core/Modal/Modal.stories.d.ts +20 -0
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -0
- package/lib/core/Modal/Modal.stories.jsx +305 -0
- package/lib/core/Modal/Modal.stories.jsx.map +1 -0
- package/lib/core/MultiStep/MultiStep.stories.d.ts +6 -0
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -0
- package/lib/core/MultiStep/MultiStep.stories.jsx +56 -0
- package/lib/core/MultiStep/MultiStep.stories.jsx.map +1 -0
- package/lib/core/Number/Number.stories.d.ts +13 -0
- package/lib/core/Number/Number.stories.d.ts.map +1 -0
- package/lib/core/Number/Number.stories.jsx +110 -0
- package/lib/core/Number/Number.stories.jsx.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +3 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.js +10 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.js.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +28 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.stories.jsx +233 -0
- package/lib/core/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +4 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js +31 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -0
- package/lib/core/Pagination/Pagination.stories.d.ts +6 -0
- package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -0
- package/lib/core/Pagination/Pagination.stories.jsx +19 -0
- package/lib/core/Pagination/Pagination.stories.jsx.map +1 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +6 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.jsx +12 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -0
- package/lib/core/Phone/Phone.stories.d.ts +7 -0
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -0
- package/lib/core/Phone/Phone.stories.jsx +42 -0
- package/lib/core/Phone/Phone.stories.jsx.map +1 -0
- package/lib/core/Popover/Popover.stories.d.ts +8 -0
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -0
- package/lib/core/Popover/Popover.stories.jsx +184 -0
- package/lib/core/Popover/Popover.stories.jsx.map +1 -0
- package/lib/core/Progress/Progress.stories.d.ts +7 -0
- package/lib/core/Progress/Progress.stories.d.ts.map +1 -0
- package/lib/core/Progress/Progress.stories.jsx +71 -0
- package/lib/core/Progress/Progress.stories.jsx.map +1 -0
- package/lib/core/Progress/Progress.styles.d.ts +2 -0
- package/lib/core/Progress/Progress.styles.d.ts.map +1 -0
- package/lib/core/Progress/Progress.styles.js +13 -0
- package/lib/core/Progress/Progress.styles.js.map +1 -0
- package/lib/core/RadioButton/RadioButton.stories.d.ts +7 -0
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -0
- package/lib/core/RadioButton/RadioButton.stories.jsx +26 -0
- package/lib/core/RadioButton/RadioButton.stories.jsx.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +62 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +4 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js +9 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +1 -0
- package/lib/core/Rating/Rating.stories.d.ts +6 -0
- package/lib/core/Rating/Rating.stories.d.ts.map +1 -0
- package/lib/core/Rating/Rating.stories.jsx +21 -0
- package/lib/core/Rating/Rating.stories.jsx.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +6 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.jsx +15 -0
- package/lib/core/SearchInput/SearchInput.stories.jsx.map +1 -0
- package/lib/core/Select/Select.stories.d.ts +9 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -0
- package/lib/core/Select/Select.stories.jsx +42 -0
- package/lib/core/Select/Select.stories.jsx.map +1 -0
- package/lib/core/Sentiment/Sentiment.stories.d.ts +14 -0
- package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -0
- package/lib/core/Sentiment/Sentiment.stories.jsx +39 -0
- package/lib/core/Sentiment/Sentiment.stories.jsx.map +1 -0
- package/lib/core/Slider/Slider.stories.d.ts +11 -0
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -0
- package/lib/core/Slider/Slider.stories.jsx +58 -0
- package/lib/core/Slider/Slider.stories.jsx.map +1 -0
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +11 -0
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -0
- package/lib/core/SummaryItem/SummaryItem.stories.jsx +36 -0
- package/lib/core/SummaryItem/SummaryItem.stories.jsx.map +1 -0
- package/lib/core/SummaryList/SummaryList.mocks.d.ts +32 -0
- package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -0
- package/lib/core/SummaryList/SummaryList.mocks.jsx +35 -0
- package/lib/core/SummaryList/SummaryList.mocks.jsx.map +1 -0
- package/lib/core/SummaryList/SummaryList.stories.d.ts +13 -0
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -0
- package/lib/core/SummaryList/SummaryList.stories.jsx +131 -0
- package/lib/core/SummaryList/SummaryList.stories.jsx.map +1 -0
- package/lib/core/Switch/Switch.stories.d.ts +7 -0
- package/lib/core/Switch/Switch.stories.d.ts.map +1 -0
- package/lib/core/Switch/Switch.stories.jsx +26 -0
- package/lib/core/Switch/Switch.stories.jsx.map +1 -0
- package/lib/core/Switch/Switch.styles.d.ts +2 -0
- package/lib/core/Switch/Switch.styles.d.ts.map +1 -0
- package/lib/core/Switch/Switch.styles.js +13 -0
- package/lib/core/Switch/Switch.styles.js.map +1 -0
- package/lib/core/Table/Table.mocks.d.ts +19 -0
- package/lib/core/Table/Table.mocks.d.ts.map +1 -0
- package/lib/core/Table/Table.mocks.jsx +32 -0
- package/lib/core/Table/Table.mocks.jsx.map +1 -0
- package/lib/core/Table/Table.stories.d.ts +14 -0
- package/lib/core/Table/Table.stories.d.ts.map +1 -0
- package/lib/core/Table/Table.stories.jsx +58 -0
- package/lib/core/Table/Table.stories.jsx.map +1 -0
- package/lib/core/Table/Table.styles.d.ts +4 -0
- package/lib/core/Table/Table.styles.d.ts.map +1 -0
- package/lib/core/Table/Table.styles.js +9 -0
- package/lib/core/Table/Table.styles.js.map +1 -0
- package/lib/core/Tabs/Tabs.stories.d.ts +7 -0
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -0
- package/lib/core/Tabs/Tabs.stories.jsx +59 -0
- package/lib/core/Tabs/Tabs.stories.jsx.map +1 -0
- package/lib/core/Text/Text.stories.d.ts +6 -0
- package/lib/core/Text/Text.stories.d.ts.map +1 -0
- package/lib/core/Text/Text.stories.jsx +22 -0
- package/lib/core/Text/Text.stories.jsx.map +1 -0
- package/lib/core/TextArea/TextArea.stories.d.ts +6 -0
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -0
- package/lib/core/TextArea/TextArea.stories.jsx +43 -0
- package/lib/core/TextArea/TextArea.stories.jsx.map +1 -0
- package/lib/core/Toaster/Toaster.stories.d.ts +6 -0
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -0
- package/lib/core/Toaster/Toaster.stories.jsx +17 -0
- package/lib/core/Toaster/Toaster.stories.jsx.map +1 -0
- package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -0
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/lib/core/Tooltip/Tooltip.stories.jsx +18 -0
- package/lib/core/Tooltip/Tooltip.stories.jsx.map +1 -0
- package/lib/core/Tree/Tree.mocks.d.ts +2 -0
- package/lib/core/Tree/Tree.mocks.d.ts.map +1 -0
- package/lib/core/Tree/Tree.mocks.js +20 -0
- package/lib/core/Tree/Tree.mocks.js.map +1 -0
- package/lib/core/Tree/Tree.stories.d.ts +8 -0
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -0
- package/lib/core/Tree/Tree.stories.jsx +89 -0
- package/lib/core/Tree/Tree.stories.jsx.map +1 -0
- package/lib/core/Tree/Tree.styles.d.ts +3 -0
- package/lib/core/Tree/Tree.styles.d.ts.map +1 -0
- package/lib/core/Tree/Tree.styles.js +10 -0
- package/lib/core/Tree/Tree.styles.js.map +1 -0
- package/lib/core/URL/URL.stories.d.ts +6 -0
- package/lib/core/URL/URL.stories.d.ts.map +1 -0
- package/lib/core/URL/URL.stories.jsx +17 -0
- package/lib/core/URL/URL.stories.jsx.map +1 -0
- package/lib/cs/Article/Article.mocks.d.ts +14 -0
- package/lib/cs/Article/Article.mocks.d.ts.map +1 -0
- package/lib/cs/Article/Article.mocks.js +14 -0
- package/lib/cs/Article/Article.mocks.js.map +1 -0
- package/lib/cs/Article/Article.stories.d.ts +15 -0
- package/lib/cs/Article/Article.stories.d.ts.map +1 -0
- package/lib/cs/Article/Article.stories.jsx +126 -0
- package/lib/cs/Article/Article.stories.jsx.map +1 -0
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts +21 -0
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -0
- package/lib/cs/ArticleList/ArticleList.mocks.js +102 -0
- package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -0
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +16 -0
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -0
- package/lib/cs/ArticleList/ArticleList.stories.jsx +110 -0
- package/lib/cs/ArticleList/ArticleList.stories.jsx.map +1 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +45 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.jsx +275 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +57 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +224 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +16 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +110 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +13 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.jsx +188 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -0
- package/lib/cs/DialPad/DialPad.stories.d.ts +9 -0
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -0
- package/lib/cs/DialPad/DialPad.stories.jsx +18 -0
- package/lib/cs/DialPad/DialPad.stories.jsx.map +1 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +11 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +1 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js +20 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +1 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +13 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +356 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.jsx +32 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +14 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.jsx +85 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +13 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js +140 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -0
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -0
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.stories.jsx +314 -0
- package/lib/cs/TaskManager/TaskManager.stories.jsx.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +11 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.jsx +119 -0
- package/lib/dnd/DragDropList/DragDropList.stories.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts +3 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.jsx +34 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +10 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx +145 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +7 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx +62 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -0
- package/lib/social/Chat/Chat.mocks.d.ts +385 -0
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -0
- package/lib/social/Chat/Chat.mocks.js +648 -0
- package/lib/social/Chat/Chat.mocks.js.map +1 -0
- package/lib/social/Chat/Chat.stories.d.ts +25 -0
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -0
- package/lib/social/Chat/Chat.stories.jsx +537 -0
- package/lib/social/Chat/Chat.stories.jsx.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts +20 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.jsx +90 -0
- package/lib/social/Chat/RepeatingView.stories.jsx.map +1 -0
- package/lib/social/Email/Email.mocks.d.ts +87 -0
- package/lib/social/Email/Email.mocks.d.ts.map +1 -0
- package/lib/social/Email/Email.mocks.jsx +349 -0
- package/lib/social/Email/Email.mocks.jsx.map +1 -0
- package/lib/social/Email/Email.stories.d.ts +28 -0
- package/lib/social/Email/Email.stories.d.ts.map +1 -0
- package/lib/social/Email/Email.stories.jsx +798 -0
- package/lib/social/Email/Email.stories.jsx.map +1 -0
- package/lib/social/Feed/Feed.mocks.d.ts +52 -0
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -0
- package/lib/social/Feed/Feed.mocks.jsx +315 -0
- package/lib/social/Feed/Feed.mocks.jsx.map +1 -0
- package/lib/social/Feed/Feed.stories.d.ts +15 -0
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -0
- package/lib/social/Feed/Feed.stories.jsx +146 -0
- package/lib/social/Feed/Feed.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedNewPost.stories.d.ts +17 -0
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedNewPost.stories.jsx +80 -0
- package/lib/social/Feed/FeedNewPost.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedPost.stories.d.ts +9 -0
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedPost.stories.jsx +248 -0
- package/lib/social/Feed/FeedPost.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedReply.stories.d.ts +16 -0
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedReply.stories.jsx +99 -0
- package/lib/social/Feed/FeedReply.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +15 -0
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedReplyInput.stories.jsx +59 -0
- package/lib/social/Feed/FeedReplyInput.stories.jsx.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +6 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx +30 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -0
- package/lib/work/CaseView/Attachments.mocks.d.ts +3 -0
- package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Attachments.mocks.jsx +388 -0
- package/lib/work/CaseView/Attachments.mocks.jsx.map +1 -0
- package/lib/work/CaseView/CaseView.mocks.d.ts +11 -0
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/CaseView.mocks.jsx +126 -0
- package/lib/work/CaseView/CaseView.mocks.jsx.map +1 -0
- package/lib/work/CaseView/CaseView.stories.d.ts +34 -0
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -0
- package/lib/work/CaseView/CaseView.stories.jsx +264 -0
- package/lib/work/CaseView/CaseView.stories.jsx.map +1 -0
- package/lib/work/CaseView/Details.mocks.d.ts +3 -0
- package/lib/work/CaseView/Details.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Details.mocks.jsx +21 -0
- package/lib/work/CaseView/Details.mocks.jsx.map +1 -0
- package/lib/work/CaseView/FileService.mock.d.ts +28 -0
- package/lib/work/CaseView/FileService.mock.d.ts.map +1 -0
- package/lib/work/CaseView/FileService.mock.jsx +139 -0
- package/lib/work/CaseView/FileService.mock.jsx.map +1 -0
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +11 -0
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -0
- package/lib/work/CaseView/MobileCaseView.stories.jsx +27 -0
- package/lib/work/CaseView/MobileCaseView.stories.jsx.map +1 -0
- package/lib/work/CaseView/Pulse.mocks.d.ts +6 -0
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Pulse.mocks.jsx +35 -0
- package/lib/work/CaseView/Pulse.mocks.jsx.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +10 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +195 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts +9 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.jsx +17 -0
- package/lib/work/Confirmation/Confirmation.stories.jsx.map +1 -0
- package/lib/work/Details/Details.stories.d.ts +5 -0
- package/lib/work/Details/Details.stories.d.ts.map +1 -0
- package/lib/work/Details/Details.stories.jsx +65 -0
- package/lib/work/Details/Details.stories.jsx.map +1 -0
- package/lib/work/Glimpse/Glimpse.stories.d.ts +10 -0
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -0
- package/lib/work/Glimpse/Glimpse.stories.jsx +39 -0
- package/lib/work/Glimpse/Glimpse.stories.jsx.map +1 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +8 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -0
- package/lib/work/SearchResults/SearchResults.mocks.jsx +96 -0
- package/lib/work/SearchResults/SearchResults.mocks.jsx.map +1 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts +8 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -0
- package/lib/work/SearchResults/SearchResults.stories.jsx +205 -0
- package/lib/work/SearchResults/SearchResults.stories.jsx.map +1 -0
- package/lib/work/Stages/Stages.stories.d.ts +11 -0
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -0
- package/lib/work/Stages/Stages.stories.jsx +65 -0
- package/lib/work/Stages/Stages.stories.jsx.map +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +9 -0
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.jsx +118 -0
- package/lib/work/Stakeholders/Stakeholders.stories.jsx.map +1 -0
- package/lib/work/Tags/Tags.mocks.d.ts +3 -0
- package/lib/work/Tags/Tags.mocks.d.ts.map +1 -0
- package/lib/work/Tags/Tags.mocks.js +76 -0
- package/lib/work/Tags/Tags.mocks.js.map +1 -0
- package/lib/work/Tags/Tags.stories.d.ts +10 -0
- package/lib/work/Tags/Tags.stories.d.ts.map +1 -0
- package/lib/work/Tags/Tags.stories.jsx +61 -0
- package/lib/work/Tags/Tags.stories.jsx.map +1 -0
- package/lib/work/Tasks/TaskList.stories.d.ts +5 -0
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -0
- package/lib/work/Tasks/TaskList.stories.jsx +17 -0
- package/lib/work/Tasks/TaskList.stories.jsx.map +1 -0
- package/lib/work/Tasks/Tasks.stories.d.ts +9 -0
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -0
- package/lib/work/Tasks/Tasks.stories.jsx +101 -0
- package/lib/work/Tasks/Tasks.stories.jsx.map +1 -0
- package/lib/work/Timeline/Timeline.mocks.d.ts +3 -0
- package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -0
- package/lib/work/Timeline/Timeline.mocks.jsx +129 -0
- package/lib/work/Timeline/Timeline.mocks.jsx.map +1 -0
- package/lib/work/Timeline/Timeline.stories.d.ts +7 -0
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -0
- package/lib/work/Timeline/Timeline.stories.jsx +43 -0
- package/lib/work/Timeline/Timeline.stories.jsx.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { UnorderedListProps } from '@pega/cosmos-react-core';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
interface UnorderedListStoryProps {
|
|
6
|
+
itemsToShow: number;
|
|
7
|
+
heading: UnorderedListProps['heading'];
|
|
8
|
+
}
|
|
9
|
+
export declare const UnorderedListDemo: Story<UnorderedListStoryProps>;
|
|
10
|
+
//# sourceMappingURL=UnorderedList.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnorderedList.stories.d.ts","sourceRoot":"","sources":["../../../src/core/List/UnorderedList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAE,kBAAkB,EAAiB,MAAM,yBAAyB,CAAC;;AAE5E,wBAGU;AAWV,UAAU,uBAAuB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,uBAAuB,CAsB5D,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { UnorderedList } from '@pega/cosmos-react-core';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Core/List',
|
|
5
|
+
component: UnorderedList
|
|
6
|
+
};
|
|
7
|
+
const arr = [
|
|
8
|
+
'Hello',
|
|
9
|
+
['val1', 'val2', 'val3', ['a', 'b', 'c', 'd']],
|
|
10
|
+
'Hi',
|
|
11
|
+
'How are you?',
|
|
12
|
+
'Hey',
|
|
13
|
+
'Whatsup'
|
|
14
|
+
];
|
|
15
|
+
export const UnorderedListDemo = (args) => {
|
|
16
|
+
const [limit, setLimit] = useState(0);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setLimit(args.itemsToShow);
|
|
19
|
+
}, [args.itemsToShow]);
|
|
20
|
+
const handleToggleShow = () => {
|
|
21
|
+
if (limit === args.itemsToShow) {
|
|
22
|
+
setLimit(arr.flat().length);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
setLimit(args.itemsToShow);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return (<UnorderedList onToggleShow={handleToggleShow} heading={args.heading} items={arr.slice(0, limit)} count={arr.flat().length}/>);
|
|
29
|
+
};
|
|
30
|
+
UnorderedListDemo.args = {
|
|
31
|
+
heading: 'List Heading',
|
|
32
|
+
itemsToShow: 3
|
|
33
|
+
};
|
|
34
|
+
UnorderedListDemo.argTypes = {
|
|
35
|
+
heading: { control: { type: 'text' } },
|
|
36
|
+
itemsToShow: { control: { type: 'number' } }
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=UnorderedList.stories.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnorderedList.stories.jsx","sourceRoot":"","sources":["../../../src/core/List/UnorderedList.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAsB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE5E,eAAe;IACb,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,aAAa;CACjB,CAAC;AAEV,MAAM,GAAG,GAAG;IACV,OAAO;IACP,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC9C,IAAI;IACJ,cAAc;IACd,KAAK;IACL,SAAS;CACV,CAAC;AAOF,MAAM,CAAC,MAAM,iBAAiB,GAAmC,CAC/D,IAA6B,EAC7B,EAAE;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACvB,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC5B,IAAI,KAAK,KAAK,IAAI,CAAC,WAAW,EAAE;YAC9B,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;SAC7B;aAAM;YACL,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAC5B;IACH,CAAC,CAAC;IACF,OAAO,CACL,CAAC,aAAa,CACZ,YAAY,CAAC,CAAC,gBAAgB,CAAC,CAC/B,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CACtB,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAC3B,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,EACzB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,IAAI,GAAG;IACvB,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,CAAC;CACf,CAAC;AAEF,iBAAiB,CAAC,QAAQ,GAAG;IAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC7C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useEffect } from 'react';\n\nimport { UnorderedListProps, UnorderedList } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/List',\n component: UnorderedList\n} as Meta;\n\nconst arr = [\n 'Hello',\n ['val1', 'val2', 'val3', ['a', 'b', 'c', 'd']],\n 'Hi',\n 'How are you?',\n 'Hey',\n 'Whatsup'\n];\n\ninterface UnorderedListStoryProps {\n itemsToShow: number;\n heading: UnorderedListProps['heading'];\n}\n\nexport const UnorderedListDemo: Story<UnorderedListStoryProps> = (\n args: UnorderedListStoryProps\n) => {\n const [limit, setLimit] = useState(0);\n useEffect(() => {\n setLimit(args.itemsToShow);\n }, [args.itemsToShow]);\n const handleToggleShow = () => {\n if (limit === args.itemsToShow) {\n setLimit(arr.flat().length);\n } else {\n setLimit(args.itemsToShow);\n }\n };\n return (\n <UnorderedList\n onToggleShow={handleToggleShow}\n heading={args.heading}\n items={arr.slice(0, limit)}\n count={arr.flat().length}\n />\n );\n};\n\nUnorderedListDemo.args = {\n heading: 'List Heading',\n itemsToShow: 3\n};\n\nUnorderedListDemo.argTypes = {\n heading: { control: { type: 'text' } },\n itemsToShow: { control: { type: 'number' } }\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { LocationDisplayProps, LocationInputProps, LocationViewProps } from '@pega/cosmos-react-core';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
interface APIKey {
|
|
6
|
+
apiKey?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const LocationDemo: Story<LocationInputProps & APIKey>;
|
|
9
|
+
export declare const LocationInputDemo: Story<LocationInputProps & APIKey>;
|
|
10
|
+
export declare const LocationViewDemo: Story<LocationViewProps & APIKey>;
|
|
11
|
+
export declare const LocationDisplayDemo: Story<LocationDisplayProps & APIKey>;
|
|
12
|
+
//# sourceMappingURL=Location.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Location.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Location/Location.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAGL,oBAAoB,EAEpB,kBAAkB,EAElB,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;;AAEjC,wBAGU;AAEV,UAAU,MAAM;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,kBAAkB,GAAG,MAAM,CA4C3D,CAAC;AA8BF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,kBAAkB,GAAG,MAAM,CAyBhE,CAAC;AAwBF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,GAAG,MAAM,CAoB9D,CAAC;AAkBF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,oBAAoB,GAAG,MAAM,CAcpE,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { LocationDisplay, LocationInput, LocationView, MapsContext } from '@pega/cosmos-react-core';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Core/Location',
|
|
5
|
+
component: LocationInput
|
|
6
|
+
};
|
|
7
|
+
export const LocationDemo = (args) => {
|
|
8
|
+
const [value, setValue] = useState('Boston, MA');
|
|
9
|
+
const [locationObj, setLocationObj] = useState('Boston, MA');
|
|
10
|
+
const handleClick = ({ latitude, longitude }) => {
|
|
11
|
+
setLocationObj({ latitude, longitude });
|
|
12
|
+
};
|
|
13
|
+
return (<MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>
|
|
14
|
+
<LocationInput showMap defaultToCurrentLocation={args.defaultToCurrentLocation} value={value} label={args.label} labelHidden={args.labelHidden} onChange={inputValue => {
|
|
15
|
+
setValue(inputValue);
|
|
16
|
+
}} location={locationObj} onSelect={selectedValueObj => {
|
|
17
|
+
setValue(selectedValueObj.name);
|
|
18
|
+
if (selectedValueObj.latitude && selectedValueObj.longitude) {
|
|
19
|
+
setLocationObj({
|
|
20
|
+
latitude: selectedValueObj.latitude,
|
|
21
|
+
longitude: selectedValueObj.longitude
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
setLocationObj(selectedValueObj.name);
|
|
26
|
+
}
|
|
27
|
+
}} onClick={handleClick} centerMapOnChange={args.centerMapOnChange} zoomLevel={args.zoomLevel} height={args.height} status={args.status} required={args.required} disabled={args.disabled} readOnly={args.readOnly}/>
|
|
28
|
+
</MapsContext.Provider>);
|
|
29
|
+
};
|
|
30
|
+
LocationDemo.args = {
|
|
31
|
+
apiKey: '',
|
|
32
|
+
defaultToCurrentLocation: false,
|
|
33
|
+
label: 'Pick a location',
|
|
34
|
+
labelHidden: false,
|
|
35
|
+
centerMapOnChange: true,
|
|
36
|
+
zoomLevel: 13,
|
|
37
|
+
height: '25rem',
|
|
38
|
+
status: undefined,
|
|
39
|
+
required: false,
|
|
40
|
+
disabled: false,
|
|
41
|
+
readOnly: false
|
|
42
|
+
};
|
|
43
|
+
LocationDemo.argTypes = {
|
|
44
|
+
apiKey: { control: { type: 'text' } },
|
|
45
|
+
defaultToCurrentLocation: { control: { type: 'boolean' } },
|
|
46
|
+
label: { control: { type: 'text' } },
|
|
47
|
+
labelHidden: { control: { type: 'boolean' } },
|
|
48
|
+
centerMapOnChange: { control: { type: 'boolean' } },
|
|
49
|
+
zoomLevel: { control: { type: 'number' } },
|
|
50
|
+
height: { control: { type: 'text' } },
|
|
51
|
+
status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
|
|
52
|
+
required: { control: { type: 'boolean' } },
|
|
53
|
+
disabled: { control: { type: 'boolean' } },
|
|
54
|
+
readOnly: { control: { type: 'boolean' } }
|
|
55
|
+
};
|
|
56
|
+
export const LocationInputDemo = (args) => {
|
|
57
|
+
const [value, setValue] = useState('');
|
|
58
|
+
return (<MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>
|
|
59
|
+
<LocationInput defaultToCurrentLocation={args.defaultToCurrentLocation} value={value} label={args.label} labelHidden={args.labelHidden} onChange={inputValue => {
|
|
60
|
+
setValue(inputValue);
|
|
61
|
+
}} onSelect={selectedValueObj => {
|
|
62
|
+
setValue(selectedValueObj.name);
|
|
63
|
+
}} status={args.status} required={args.required} disabled={args.disabled} readOnly={args.readOnly}/>
|
|
64
|
+
</MapsContext.Provider>);
|
|
65
|
+
};
|
|
66
|
+
LocationInputDemo.args = {
|
|
67
|
+
apiKey: '',
|
|
68
|
+
defaultToCurrentLocation: false,
|
|
69
|
+
label: 'Pick a location',
|
|
70
|
+
labelHidden: false,
|
|
71
|
+
status: undefined,
|
|
72
|
+
required: false,
|
|
73
|
+
disabled: false,
|
|
74
|
+
readOnly: false
|
|
75
|
+
};
|
|
76
|
+
LocationInputDemo.argTypes = {
|
|
77
|
+
apiKey: { control: { type: 'text' } },
|
|
78
|
+
defaultToCurrentLocation: { control: { type: 'boolean' } },
|
|
79
|
+
label: { control: { type: 'text' } },
|
|
80
|
+
labelHidden: { control: { type: 'boolean' } },
|
|
81
|
+
status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
|
|
82
|
+
required: { control: { type: 'boolean' } },
|
|
83
|
+
disabled: { control: { type: 'boolean' } },
|
|
84
|
+
readOnly: { control: { type: 'boolean' } }
|
|
85
|
+
};
|
|
86
|
+
export const LocationViewDemo = (args) => {
|
|
87
|
+
const [location, setLocation] = useState(args.location);
|
|
88
|
+
const handleClick = ({ latitude, longitude }) => {
|
|
89
|
+
setLocation(`${latitude.toString()},${longitude.toString()}`);
|
|
90
|
+
};
|
|
91
|
+
return (<MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>
|
|
92
|
+
<LocationView location={location} centerMapOnChange={args.centerMapOnChange} zoomLevel={args.zoomLevel} height={args.height} onClick={handleClick}/>
|
|
93
|
+
</MapsContext.Provider>);
|
|
94
|
+
};
|
|
95
|
+
LocationViewDemo.args = {
|
|
96
|
+
apiKey: '',
|
|
97
|
+
location: 'Boston, MA',
|
|
98
|
+
centerMapOnChange: true,
|
|
99
|
+
zoomLevel: 13,
|
|
100
|
+
height: '25rem'
|
|
101
|
+
};
|
|
102
|
+
LocationViewDemo.argTypes = {
|
|
103
|
+
apiKey: { control: { type: 'text' } },
|
|
104
|
+
location: { control: { type: 'text' } },
|
|
105
|
+
centerMapOnChange: { control: { type: 'boolean' } },
|
|
106
|
+
zoomLevel: { control: { type: 'number' } },
|
|
107
|
+
height: { control: { type: 'text' } }
|
|
108
|
+
};
|
|
109
|
+
export const LocationDisplayDemo = (args) => {
|
|
110
|
+
return (<MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>
|
|
111
|
+
<LocationDisplay value={args.value} zoomLevel={args.zoomLevel} height={args.height} variant={args.variant} displayText={args.displayText}/>
|
|
112
|
+
</MapsContext.Provider>);
|
|
113
|
+
};
|
|
114
|
+
LocationDisplayDemo.args = {
|
|
115
|
+
apiKey: '',
|
|
116
|
+
value: 'Boston, MA',
|
|
117
|
+
zoomLevel: 13,
|
|
118
|
+
height: '25rem',
|
|
119
|
+
variant: 'text-map',
|
|
120
|
+
displayText: 'Come visit Boston!'
|
|
121
|
+
};
|
|
122
|
+
LocationDisplayDemo.argTypes = {
|
|
123
|
+
apiKey: { control: { type: 'text' } },
|
|
124
|
+
value: { control: { type: 'text' } },
|
|
125
|
+
zoomLevel: { control: { type: 'number' } },
|
|
126
|
+
height: { control: { type: 'text' } },
|
|
127
|
+
variant: { options: ['text-map', 'map', 'text'], control: { type: 'select' } },
|
|
128
|
+
displayText: { control: { type: 'text' } }
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=Location.stories.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Location.stories.jsx","sourceRoot":"","sources":["../../../src/core/Location/Location.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAEL,eAAe,EAEf,aAAa,EAEb,YAAY,EAEZ,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAEjC,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,aAAa;CACjB,CAAC;AAMV,MAAM,CAAC,MAAM,YAAY,GAAuC,CAC9D,IAAiC,EACjC,EAAE;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAkB,YAAY,CAAC,CAAC;IAE9E,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAA2C,EAAE,EAAE;QACvF,cAAc,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EA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AC,IAAI,CAAC,OAAO,CAAC,CACtB,WAAW,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,EAElC;IAAA,EAAE,WAAW,CAAC,QAAQ,CAAC,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,IAAI,GAAG;IACzB,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,UAAU;IACnB,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,mBAAmB,CAAC,QAAQ,GAAG;IAC7B,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACrC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACrC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC9E,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport {\n LatLng,\n LocationDisplay,\n LocationDisplayProps,\n LocationInput,\n LocationInputProps,\n LocationView,\n LocationViewProps,\n MapsContext\n} from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Core/Location',\n component: LocationInput\n} as Meta;\n\ninterface APIKey {\n apiKey?: string;\n}\n\nexport const LocationDemo: Story<LocationInputProps & APIKey> = (\n args: LocationInputProps & APIKey\n) => {\n const [value, setValue] = useState('Boston, MA');\n const [locationObj, setLocationObj] = useState<LatLng | string>('Boston, MA');\n\n const handleClick = ({ latitude, longitude }: { latitude: number; longitude: number }) => {\n setLocationObj({ latitude, longitude });\n };\n\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationInput\n showMap\n defaultToCurrentLocation={args.defaultToCurrentLocation}\n value={value}\n label={args.label}\n labelHidden={args.labelHidden}\n onChange={inputValue => {\n setValue(inputValue);\n }}\n location={locationObj}\n onSelect={selectedValueObj => {\n setValue(selectedValueObj.name);\n if (selectedValueObj.latitude && selectedValueObj.longitude) {\n setLocationObj({\n latitude: selectedValueObj.latitude,\n longitude: selectedValueObj.longitude\n });\n } else {\n setLocationObj(selectedValueObj.name);\n }\n }}\n onClick={handleClick}\n centerMapOnChange={args.centerMapOnChange}\n zoomLevel={args.zoomLevel}\n height={args.height}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationDemo.args = {\n apiKey: '',\n defaultToCurrentLocation: false,\n label: 'Pick a location',\n labelHidden: false,\n centerMapOnChange: true,\n zoomLevel: 13,\n height: '25rem',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nLocationDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n defaultToCurrentLocation: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n centerMapOnChange: { control: { type: 'boolean' } },\n zoomLevel: { control: { type: 'number' } },\n height: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n\nexport const LocationInputDemo: Story<LocationInputProps & APIKey> = (\n args: LocationInputProps & APIKey\n) => {\n const [value, setValue] = useState('');\n\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationInput\n defaultToCurrentLocation={args.defaultToCurrentLocation}\n value={value}\n label={args.label}\n labelHidden={args.labelHidden}\n onChange={inputValue => {\n setValue(inputValue);\n }}\n onSelect={selectedValueObj => {\n setValue(selectedValueObj.name);\n }}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationInputDemo.args = {\n apiKey: '',\n defaultToCurrentLocation: false,\n label: 'Pick a location',\n labelHidden: false,\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n};\n\nLocationInputDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n defaultToCurrentLocation: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n};\n\nexport const LocationViewDemo: Story<LocationViewProps & APIKey> = (\n args: LocationViewProps & APIKey\n) => {\n const [location, setLocation] = useState(args.location);\n\n const handleClick = ({ latitude, longitude }: { latitude: number; longitude: number }) => {\n setLocation(`${latitude.toString()},${longitude.toString()}`);\n };\n\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationView\n location={location}\n centerMapOnChange={args.centerMapOnChange}\n zoomLevel={args.zoomLevel}\n height={args.height}\n onClick={handleClick}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationViewDemo.args = {\n apiKey: '',\n location: 'Boston, MA',\n centerMapOnChange: true,\n zoomLevel: 13,\n height: '25rem'\n};\n\nLocationViewDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n location: { control: { type: 'text' } },\n centerMapOnChange: { control: { type: 'boolean' } },\n zoomLevel: { control: { type: 'number' } },\n height: { control: { type: 'text' } }\n};\n\nexport const LocationDisplayDemo: Story<LocationDisplayProps & APIKey> = (\n args: LocationDisplayProps & APIKey\n) => {\n return (\n <MapsContext.Provider value={{ name: 'google', apiKey: args.apiKey }}>\n <LocationDisplay\n value={args.value}\n zoomLevel={args.zoomLevel}\n height={args.height}\n variant={args.variant}\n displayText={args.displayText}\n />\n </MapsContext.Provider>\n );\n};\n\nLocationDisplayDemo.args = {\n apiKey: '',\n value: 'Boston, MA',\n zoomLevel: 13,\n height: '25rem',\n variant: 'text-map',\n displayText: 'Come visit Boston!'\n};\n\nLocationDisplayDemo.argTypes = {\n apiKey: { control: { type: 'text' } },\n value: { control: { type: 'text' } },\n zoomLevel: { control: { type: 'number' } },\n height: { control: { type: 'text' } },\n variant: { options: ['text-map', 'map', 'text'], control: { type: 'select' } },\n displayText: { control: { type: 'text' } }\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/Menu/Menu.mocks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,SAAS,CAAC,OAAO,CAyGxC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,SAAS,CAAC,OAAO,CAyEnC,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export const countries = [
|
|
2
|
+
{
|
|
3
|
+
id: '1',
|
|
4
|
+
primary: 'United States of America',
|
|
5
|
+
secondary: ['North America'],
|
|
6
|
+
visual: '🇺🇸',
|
|
7
|
+
items: [
|
|
8
|
+
{
|
|
9
|
+
id: '1-2',
|
|
10
|
+
primary: 'Maine',
|
|
11
|
+
tooltip: 'Maine, the northeasternmost U.S. state, is known for its rocky coastline, maritime history and nature areas like the granite and spruce islands of Acadia National Park. '
|
|
12
|
+
},
|
|
13
|
+
{ id: '1-3', primary: 'Rhode Island' },
|
|
14
|
+
{
|
|
15
|
+
id: '1-1',
|
|
16
|
+
primary: 'Massachusetts',
|
|
17
|
+
items: [
|
|
18
|
+
{
|
|
19
|
+
id: 'group-1-1-b',
|
|
20
|
+
label: 'B',
|
|
21
|
+
items: [
|
|
22
|
+
{ id: '1-1-1', primary: 'Barnstable County' },
|
|
23
|
+
{ id: '1-1-2', primary: 'Berkshire County' },
|
|
24
|
+
{ id: '1-1-3', primary: 'Bristol County' }
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{ id: '1-1-4', primary: 'Dukes County' },
|
|
28
|
+
{ id: '1-1-5', primary: 'Essex County' },
|
|
29
|
+
{ id: '1-1-6', primary: 'Franklin County' },
|
|
30
|
+
{
|
|
31
|
+
id: '1-1-h',
|
|
32
|
+
label: 'H',
|
|
33
|
+
items: [
|
|
34
|
+
{ id: '1-1-7', primary: 'Hampden County' },
|
|
35
|
+
{ id: '1-1-8', primary: 'Hampshire County' }
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{ id: '1-1-9', primary: 'Middlesex County' },
|
|
39
|
+
{
|
|
40
|
+
id: '1-1-n',
|
|
41
|
+
label: 'N',
|
|
42
|
+
items: [
|
|
43
|
+
{ id: '1-1-10', primary: 'Nantucket County' },
|
|
44
|
+
{ id: '1-1-11', primary: 'Norfolk County' }
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{ id: '1-1-12', primary: 'Plymouth County' },
|
|
48
|
+
{ id: '1-1-13', primary: 'Suffolk County' },
|
|
49
|
+
{ id: '1-1-14', primary: 'Worcester County' }
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{ id: '1-4', primary: 'Washington' },
|
|
53
|
+
{ id: '1-5', primary: 'California' },
|
|
54
|
+
{ id: '1-6', primary: 'Alabama' },
|
|
55
|
+
{ id: '1-7', primary: 'Alaska' },
|
|
56
|
+
{ id: '1-8', primary: 'Kentucky' },
|
|
57
|
+
{ id: '1-9', primary: 'Ohio' },
|
|
58
|
+
{ id: '1-10', primary: 'Minnesota' },
|
|
59
|
+
{ id: '1-11', primary: 'Iowa' },
|
|
60
|
+
{
|
|
61
|
+
id: '1-12',
|
|
62
|
+
primary: 'Colorado',
|
|
63
|
+
tooltip: 'Colorado, a western U.S. state, has a diverse landscape of arid desert, Perched a mile above sea level, Denver, Colorado’s capital and largest city, features a vibrant downtown area'
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: '2',
|
|
69
|
+
primary: 'Poland',
|
|
70
|
+
secondary: ['Europe'],
|
|
71
|
+
visual: '🇵🇱',
|
|
72
|
+
items: [
|
|
73
|
+
{
|
|
74
|
+
id: '2-1',
|
|
75
|
+
primary: 'Krakow'
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{ id: '3', primary: 'England', secondary: ['Europe'], visual: '🏴' },
|
|
80
|
+
{ id: '4', primary: 'France', secondary: ['Europe'], visual: '🇫🇷' },
|
|
81
|
+
{ id: '5', primary: 'Germany', secondary: ['Europe'], visual: '🇩🇪' },
|
|
82
|
+
{ id: '6', primary: 'Spain', secondary: ['Europe'], visual: '🇪🇸' },
|
|
83
|
+
{ id: '7', primary: 'Italy', secondary: ['Europe'], visual: '🇮🇹' },
|
|
84
|
+
{ id: '8', primary: 'Mexico', secondary: ['North America'], visual: '🇲🇽' },
|
|
85
|
+
{ id: '9', primary: 'Brasil', secondary: ['South America'], visual: '🇧🇷' },
|
|
86
|
+
{ id: '10', primary: 'Austria', secondary: ['Europe'], visual: '🇦🇹' },
|
|
87
|
+
{ id: '11', primary: 'Belgium', secondary: ['Europe'], visual: '🇧🇪' },
|
|
88
|
+
{ id: '12', primary: 'Chile', secondary: ['South America'], visual: '🇨🇱' },
|
|
89
|
+
{ id: '13', primary: 'Hungary', secondary: ['Europe'], visual: '🇭🇺' },
|
|
90
|
+
{ id: '14', primary: 'Iceland', secondary: ['Europe'], visual: '🇮🇸' },
|
|
91
|
+
{ id: '15', primary: 'Sweden', secondary: ['Europe'], visual: '🇸🇪' },
|
|
92
|
+
{ id: '16', primary: 'Norway', secondary: ['Europe'], visual: '🇳🇴' },
|
|
93
|
+
{ id: '17', primary: 'Netherlands', secondary: ['Europe'], visual: '🇳🇱' },
|
|
94
|
+
{ id: '18', primary: 'Portugal', secondary: ['Europe'], visual: '🇵🇹' },
|
|
95
|
+
{ id: '19', primary: 'Canada', secondary: ['North America'], visual: '🇨🇦' },
|
|
96
|
+
{ id: '20', primary: 'Czech Republic', secondary: ['Europe'], visual: '🇨🇿' },
|
|
97
|
+
{ id: '21', primary: 'Argentina', secondary: ['South America'], visual: '🇦🇷' },
|
|
98
|
+
{ id: '22', primary: 'Denmark', secondary: ['Europe'], visual: '🇩🇰' },
|
|
99
|
+
{ id: '23', primary: 'Estonia', secondary: ['Europe'], visual: '🇪🇪' },
|
|
100
|
+
{ id: '24', primary: 'Finland', secondary: ['Europe'], visual: '🇫🇮' },
|
|
101
|
+
{ id: '25', primary: 'Slovenia', secondary: ['Europe'], visual: '🇸🇮' },
|
|
102
|
+
{ id: '26', primary: 'Slovakia', secondary: ['Europe'], visual: '🇸🇰' },
|
|
103
|
+
{ id: '27', primary: 'Romania', secondary: ['Europe'], visual: '🇷🇴' }
|
|
104
|
+
];
|
|
105
|
+
export const cars = [
|
|
106
|
+
{
|
|
107
|
+
id: 'dodge',
|
|
108
|
+
label: 'Dodge',
|
|
109
|
+
items: [
|
|
110
|
+
{
|
|
111
|
+
id: 'dodge charger',
|
|
112
|
+
primary: 'Charger'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: 'dodge challenger',
|
|
116
|
+
primary: 'Challenger'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 'dodge coronet',
|
|
120
|
+
primary: 'Coronet'
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: 'pontiac',
|
|
126
|
+
label: 'Pontiac',
|
|
127
|
+
items: [
|
|
128
|
+
{
|
|
129
|
+
id: 'gto',
|
|
130
|
+
primary: 'GTO'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 'firebird',
|
|
134
|
+
primary: 'Firebird'
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 'ford',
|
|
140
|
+
label: 'Ford',
|
|
141
|
+
items: [
|
|
142
|
+
{
|
|
143
|
+
id: 'mustang',
|
|
144
|
+
primary: 'Mustang'
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: 'falcon',
|
|
148
|
+
primary: 'Falcon'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'torino',
|
|
152
|
+
primary: 'Torino'
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: 'chevrolet',
|
|
158
|
+
label: 'Chevrolet',
|
|
159
|
+
items: [
|
|
160
|
+
{
|
|
161
|
+
id: 'camaro',
|
|
162
|
+
primary: 'Camaro'
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: 'chevelle',
|
|
166
|
+
primary: 'Chevelle'
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: 'buick gran sport',
|
|
172
|
+
primary: 'Buick Gran Sport'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: 'oldsmobile 442',
|
|
176
|
+
primary: 'Oldsmobile 442'
|
|
177
|
+
}
|
|
178
|
+
];
|
|
179
|
+
//# sourceMappingURL=Menu.mocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.mocks.js","sourceRoot":"","sources":["../../../src/core/Menu/Menu.mocks.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,SAAS,GAAuB;IAC3C;QACE,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,0BAA0B;QACnC,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE,MAAM;QACd,KAAK,EAAE;YACL;gBACE,EAAE,EAAE,KAAK;gBACT,OAAO,EAAE,OAAO;gBA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B;QACtB,OAAO,EAAE,kBAAkB;KAC5B;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,OAAO,EAAE,gBAAgB;KAC1B;CACF,CAAC","sourcesContent":["// cSpell:words camaro chevelle\nimport { MenuProps } from '@pega/cosmos-react-core';\n\nexport const countries: MenuProps['items'] = [\n {\n id: '1',\n primary: 'United States of America',\n secondary: ['North America'],\n visual: '🇺🇸',\n items: [\n {\n id: '1-2',\n primary: 'Maine',\n tooltip:\n 'Maine, the northeasternmost U.S. state, is known for its rocky coastline, maritime history and nature areas like the granite and spruce islands of Acadia National Park. '\n },\n { id: '1-3', primary: 'Rhode Island' },\n {\n id: '1-1',\n primary: 'Massachusetts',\n items: [\n {\n id: 'group-1-1-b',\n label: 'B',\n items: [\n { id: '1-1-1', primary: 'Barnstable County' },\n { id: '1-1-2', primary: 'Berkshire County' },\n { id: '1-1-3', primary: 'Bristol County' }\n ]\n },\n { id: '1-1-4', primary: 'Dukes County' },\n { id: '1-1-5', primary: 'Essex County' },\n { id: '1-1-6', primary: 'Franklin County' },\n {\n id: '1-1-h',\n label: 'H',\n items: [\n { id: '1-1-7', primary: 'Hampden County' },\n { id: '1-1-8', primary: 'Hampshire County' }\n ]\n },\n { id: '1-1-9', primary: 'Middlesex County' },\n {\n id: '1-1-n',\n label: 'N',\n items: [\n { id: '1-1-10', primary: 'Nantucket County' },\n { id: '1-1-11', primary: 'Norfolk County' }\n ]\n },\n { id: '1-1-12', primary: 'Plymouth County' },\n { id: '1-1-13', primary: 'Suffolk County' },\n { id: '1-1-14', primary: 'Worcester County' }\n ]\n },\n { id: '1-4', primary: 'Washington' },\n { id: '1-5', primary: 'California' },\n { id: '1-6', primary: 'Alabama' },\n { id: '1-7', primary: 'Alaska' },\n { id: '1-8', primary: 'Kentucky' },\n { id: '1-9', primary: 'Ohio' },\n { id: '1-10', primary: 'Minnesota' },\n { id: '1-11', primary: 'Iowa' },\n {\n id: '1-12',\n primary: 'Colorado',\n tooltip:\n 'Colorado, a western U.S. state, has a diverse landscape of arid desert, Perched a mile above sea level, Denver, Colorado’s capital and largest city, features a vibrant downtown area'\n }\n ]\n },\n {\n id: '2',\n primary: 'Poland',\n secondary: ['Europe'],\n visual: '🇵🇱',\n items: [\n {\n id: '2-1',\n primary: 'Krakow'\n }\n ]\n },\n { id: '3', primary: 'England', secondary: ['Europe'], visual: '🏴' },\n { id: '4', primary: 'France', secondary: ['Europe'], visual: '🇫🇷' },\n { id: '5', primary: 'Germany', secondary: ['Europe'], visual: '🇩🇪' },\n { id: '6', primary: 'Spain', secondary: ['Europe'], visual: '🇪🇸' },\n { id: '7', primary: 'Italy', secondary: ['Europe'], visual: '🇮🇹' },\n { id: '8', primary: 'Mexico', secondary: ['North America'], visual: '🇲🇽' },\n { id: '9', primary: 'Brasil', secondary: ['South America'], visual: '🇧🇷' },\n { id: '10', primary: 'Austria', secondary: ['Europe'], visual: '🇦🇹' },\n { id: '11', primary: 'Belgium', secondary: ['Europe'], visual: '🇧🇪' },\n { id: '12', primary: 'Chile', secondary: ['South America'], visual: '🇨🇱' },\n { id: '13', primary: 'Hungary', secondary: ['Europe'], visual: '🇭🇺' },\n { id: '14', primary: 'Iceland', secondary: ['Europe'], visual: '🇮🇸' },\n { id: '15', primary: 'Sweden', secondary: ['Europe'], visual: '🇸🇪' },\n { id: '16', primary: 'Norway', secondary: ['Europe'], visual: '🇳🇴' },\n { id: '17', primary: 'Netherlands', secondary: ['Europe'], visual: '🇳🇱' },\n { id: '18', primary: 'Portugal', secondary: ['Europe'], visual: '🇵🇹' },\n { id: '19', primary: 'Canada', secondary: ['North America'], visual: '🇨🇦' },\n { id: '20', primary: 'Czech Republic', secondary: ['Europe'], visual: '🇨🇿' },\n { id: '21', primary: 'Argentina', secondary: ['South America'], visual: '🇦🇷' },\n { id: '22', primary: 'Denmark', secondary: ['Europe'], visual: '🇩🇰' },\n { id: '23', primary: 'Estonia', secondary: ['Europe'], visual: '🇪🇪' },\n { id: '24', primary: 'Finland', secondary: ['Europe'], visual: '🇫🇮' },\n { id: '25', primary: 'Slovenia', secondary: ['Europe'], visual: '🇸🇮' },\n { id: '26', primary: 'Slovakia', secondary: ['Europe'], visual: '🇸🇰' },\n { id: '27', primary: 'Romania', secondary: ['Europe'], visual: '🇷🇴' }\n];\n\nexport const cars: MenuProps['items'] = [\n {\n id: 'dodge',\n label: 'Dodge',\n items: [\n {\n id: 'dodge charger',\n primary: 'Charger'\n },\n {\n id: 'dodge challenger',\n primary: 'Challenger'\n },\n {\n id: 'dodge coronet',\n primary: 'Coronet'\n }\n ]\n },\n {\n id: 'pontiac',\n label: 'Pontiac',\n items: [\n {\n id: 'gto',\n primary: 'GTO'\n },\n {\n id: 'firebird',\n primary: 'Firebird'\n }\n ]\n },\n {\n id: 'ford',\n label: 'Ford',\n items: [\n {\n id: 'mustang',\n primary: 'Mustang'\n },\n {\n id: 'falcon',\n primary: 'Falcon'\n },\n {\n id: 'torino',\n primary: 'Torino'\n }\n ]\n },\n {\n id: 'chevrolet',\n label: 'Chevrolet',\n items: [\n {\n id: 'camaro',\n primary: 'Camaro'\n },\n {\n id: 'chevelle',\n primary: 'Chevelle'\n }\n ]\n },\n {\n id: 'buick gran sport',\n primary: 'Buick Gran Sport'\n },\n {\n id: 'oldsmobile 442',\n primary: 'Oldsmobile 442'\n }\n];\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { MenuProps } from '@pega/cosmos-react-core';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
interface MenuStoryProps extends MenuProps {
|
|
6
|
+
showItemSecondary?: boolean;
|
|
7
|
+
showItemVisual?: boolean;
|
|
8
|
+
showItemCount?: boolean;
|
|
9
|
+
parentSelection?: boolean;
|
|
10
|
+
filterPattern?: 'contains' | 'starts with';
|
|
11
|
+
infiniteScroll?: boolean;
|
|
12
|
+
noItems?: boolean;
|
|
13
|
+
loadMore?: (id?: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const MenuDemo: Story<MenuStoryProps>;
|
|
16
|
+
export declare const FlatMenuDemo: Story<MenuStoryProps>;
|
|
17
|
+
//# sourceMappingURL=Menu.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAOL,SAAS,EAOV,MAAM,yBAAyB,CAAC;;AAKjC,wBA8BU;AAEV,UAAU,cAAe,SAAQ,SAAS;IACxC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,UAAU,GAAG,aAAa,CAAC;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,cAAc,CAgM1C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,cAAc,CAE9C,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { Button, Count, Flex, Menu, menuHelpers, Popover, SearchInput, ToasterContext, createUID, useElement, useOuterEvent } from '@pega/cosmos-react-core';
|
|
3
|
+
import { cars, countries } from './Menu.mocks';
|
|
4
|
+
import { StyledFlag } from './Menu.styles';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Core/Menu',
|
|
7
|
+
component: Menu,
|
|
8
|
+
args: {
|
|
9
|
+
variant: 'drill-down',
|
|
10
|
+
mode: 'action',
|
|
11
|
+
showItemSecondary: true,
|
|
12
|
+
showItemVisual: true,
|
|
13
|
+
showItemCount: true,
|
|
14
|
+
parentSelection: false,
|
|
15
|
+
filterPattern: 'contains',
|
|
16
|
+
infiniteScroll: false,
|
|
17
|
+
noItems: false,
|
|
18
|
+
emptyText: 'No items',
|
|
19
|
+
items: countries
|
|
20
|
+
},
|
|
21
|
+
argTypes: {
|
|
22
|
+
variant: { options: ['drill-down', 'flyout'], control: { type: 'select' } },
|
|
23
|
+
mode: { options: ['action', 'single-select', 'multi-select'], control: { type: 'select' } },
|
|
24
|
+
showItemSecondary: { control: { type: 'boolean' } },
|
|
25
|
+
showItemVisual: { control: { type: 'boolean' } },
|
|
26
|
+
showItemCount: { control: { type: 'boolean' } },
|
|
27
|
+
parentSelection: { control: { type: 'boolean' } },
|
|
28
|
+
filterPattern: { options: ['contains', 'starts with'], control: { type: 'select' } },
|
|
29
|
+
infiniteScroll: { control: { type: 'boolean' } },
|
|
30
|
+
noItems: { control: { type: 'boolean' } },
|
|
31
|
+
emptyText: { control: { type: 'text' } },
|
|
32
|
+
items: { table: { disable: true } },
|
|
33
|
+
loadMore: { table: { disable: true } }
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export const MenuDemo = (args) => {
|
|
37
|
+
const menuID = createUID();
|
|
38
|
+
const searchEleRef = useRef(null);
|
|
39
|
+
const { push } = useContext(ToasterContext);
|
|
40
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
41
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
42
|
+
const [hasMore, setHasMore] = useState(true);
|
|
43
|
+
const [items, setItems] = useState(args.infiniteScroll ? args.items.slice(0, 10) : args.items);
|
|
44
|
+
const [buttonEl, setButtonEl] = useElement(null);
|
|
45
|
+
const [popoverEl, setPopoverEl] = useElement(null);
|
|
46
|
+
const [search, setSearch] = useState('');
|
|
47
|
+
const selections = useMemo(() => menuHelpers.getSelected(items), [items]);
|
|
48
|
+
const searchRegex = useMemo(() => {
|
|
49
|
+
const escapedSearch = search.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&');
|
|
50
|
+
return new RegExp(args.filterPattern === 'contains' ? escapedSearch : `^${escapedSearch}`, 'i');
|
|
51
|
+
}, [search, args.filterPattern]);
|
|
52
|
+
const itemsToRender = useMemo(() => {
|
|
53
|
+
return menuHelpers.mapTree(search
|
|
54
|
+
? menuHelpers.flatten(items).filter(({ primary }) => {
|
|
55
|
+
return searchRegex.test(primary);
|
|
56
|
+
})
|
|
57
|
+
: items, item => {
|
|
58
|
+
let selectable = false;
|
|
59
|
+
if (!item.items || args.parentSelection) {
|
|
60
|
+
selectable = true;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
...item,
|
|
64
|
+
visual: args.showItemVisual && item.visual ? <StyledFlag>{item.visual}</StyledFlag> : undefined,
|
|
65
|
+
count: args.showItemCount && item.items ? item.items.length : undefined,
|
|
66
|
+
secondary: args.showItemSecondary ? item.secondary : undefined,
|
|
67
|
+
selected: selectable ? !!item.selected : undefined,
|
|
68
|
+
tooltip: args.variant === 'flyout' ? item.tooltip : undefined
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
}, [search, items, searchRegex, args.showItemVisual]);
|
|
72
|
+
const resetMenu = useCallback(() => {
|
|
73
|
+
setIsOpen(false);
|
|
74
|
+
setItems(args.items.slice(0, 10));
|
|
75
|
+
setSearch('');
|
|
76
|
+
}, []);
|
|
77
|
+
const onKeydown = useCallback(({ key }) => {
|
|
78
|
+
if (key === 'Escape')
|
|
79
|
+
resetMenu();
|
|
80
|
+
}, [resetMenu]);
|
|
81
|
+
const loadMore = useCallback((expandedItemId) => {
|
|
82
|
+
if (!expandedItemId) {
|
|
83
|
+
setIsLoading(true);
|
|
84
|
+
setTimeout(() => {
|
|
85
|
+
setIsLoading(false);
|
|
86
|
+
setItems(prevItems => {
|
|
87
|
+
const newItems = args.items.slice(prevItems.length, prevItems.length + 10);
|
|
88
|
+
if (newItems.length === 0)
|
|
89
|
+
setHasMore(false);
|
|
90
|
+
return menuHelpers.appendTo(prevItems, newItems, expandedItemId);
|
|
91
|
+
});
|
|
92
|
+
}, 2000);
|
|
93
|
+
}
|
|
94
|
+
args.loadMore?.(expandedItemId);
|
|
95
|
+
}, [items, isLoading, args.loadMore]);
|
|
96
|
+
useOuterEvent('mousedown', [popoverEl, buttonEl], e => {
|
|
97
|
+
if (args.variant === 'flyout') {
|
|
98
|
+
const path = e.composedPath();
|
|
99
|
+
const considerEvent = path.every(el => {
|
|
100
|
+
return !(el instanceof HTMLElement && el.dataset.flyoutMenuParentId === menuID);
|
|
101
|
+
});
|
|
102
|
+
if (considerEvent) {
|
|
103
|
+
resetMenu();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
resetMenu();
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
document.addEventListener('keydown', onKeydown);
|
|
112
|
+
return () => {
|
|
113
|
+
document.removeEventListener('keydown', onKeydown);
|
|
114
|
+
};
|
|
115
|
+
}, []);
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (isOpen) {
|
|
118
|
+
searchEleRef?.current?.focus();
|
|
119
|
+
}
|
|
120
|
+
}, [isOpen, searchEleRef.current]);
|
|
121
|
+
return (<Flex container={{ justify: 'center' }}>
|
|
122
|
+
<Button ref={setButtonEl} onClick={() => setIsOpen(cur => !cur)} variant='primary'>
|
|
123
|
+
Open the MENU
|
|
124
|
+
</Button>
|
|
125
|
+
|
|
126
|
+
<Popover show={isOpen} ref={setPopoverEl} target={buttonEl}>
|
|
127
|
+
<Menu {...args} id={menuID} items={args.noItems ? [] : itemsToRender} accent={search ? searchRegex : undefined} mode={args.variant === 'drill-down' ? args.mode : 'action'} loading={isLoading} emptyText={args.emptyText} variant={args.variant} loadMore={args.infiniteScroll && hasMore ? loadMore : undefined} focusControlEl={searchEleRef.current || undefined} onItemClick={id => {
|
|
128
|
+
if (args.mode === 'single-select' || args.mode === 'multi-select') {
|
|
129
|
+
setItems(cur => menuHelpers.toggleSelected(cur, id, args.mode));
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
const clicked = menuHelpers.getItem(items, id);
|
|
133
|
+
if (clicked) {
|
|
134
|
+
push({
|
|
135
|
+
id: `${Date.now()}`,
|
|
136
|
+
content: `${clicked.primary} added`
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
resetMenu();
|
|
140
|
+
}
|
|
141
|
+
}} header={args.variant === 'drill-down' && (<SearchInput ref={searchEleRef} onSearchChange={setSearch} value={search} role='combobox' searchInputAriaLabel='Start typing to search.'/>)} footer={args.variant === 'flyout' ? (<SearchInput ref={searchEleRef} onSearchChange={setSearch} value={search} role='combobox' searchInputAriaLabel='Start typing to search.'/>) : ((args.mode === 'single-select' || args.mode === 'multi-select') && (<Flex container={{ justify: 'between' }}>
|
|
142
|
+
<Button onClick={resetMenu}>Cancel</Button>
|
|
143
|
+
|
|
144
|
+
<Button variant='primary' disabled={!selections.length} onClick={() => {
|
|
145
|
+
resetMenu();
|
|
146
|
+
push({
|
|
147
|
+
id: `${Date.now()}`,
|
|
148
|
+
content: `${selections.length} item${selections.length !== 1 ? 's' : ''} added`
|
|
149
|
+
});
|
|
150
|
+
}}>
|
|
151
|
+
Add
|
|
152
|
+
{selections.length > 0 && args.mode === 'multi-select' && (<>
|
|
153
|
+
<Count>{selections.length}</Count>
|
|
154
|
+
</>)}
|
|
155
|
+
</Button>
|
|
156
|
+
</Flex>))}/>
|
|
157
|
+
</Popover>
|
|
158
|
+
</Flex>);
|
|
159
|
+
};
|
|
160
|
+
export const FlatMenuDemo = (args) => {
|
|
161
|
+
return <MenuDemo {...args}/>;
|
|
162
|
+
};
|
|
163
|
+
FlatMenuDemo.args = {
|
|
164
|
+
items: cars
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=Menu.stories.jsx.map
|