@kaizen/components 1.55.2 → 1.56.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/dist/cjs/BrandMoment/BrandMoment.cjs +1 -2
- package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +1 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +4 -7
- package/dist/cjs/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.cjs +1 -2
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.cjs +1 -2
- package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +1 -2
- package/dist/cjs/Icon/subcomponents/SVG/SVG.cjs +3 -2
- package/dist/cjs/Illustration/subcomponents/VideoPlayer/VideoPlayer.cjs +1 -2
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.cjs +1 -2
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +1 -2
- package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +1 -1
- package/dist/cjs/Pagination/subcomponents/PaginationLink/PaginationLink.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/core/createRichTextEditor.cjs +2 -1
- package/dist/cjs/SplitButton/SplitButton.cjs +1 -5
- package/dist/cjs/Tile/subcomponents/GenericTile/Action.cjs +1 -2
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +1 -2
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +1 -2
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +4 -7
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +3 -5
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +4 -7
- package/dist/cjs/TitleBlockZen/subcomponents/TitleBlockMenuItem.cjs +1 -5
- package/dist/cjs/{Button → __actions__/Button/v1}/GenericButton/GenericButton.cjs +6 -6
- package/dist/cjs/__actions__/Button/v1/GenericButton/GenericButton.module.scss.cjs +28 -0
- package/dist/cjs/__actions__/Button/v3/Button.cjs +28 -0
- package/dist/cjs/__actions__/Button/v3/Button.module.scss.cjs +9 -0
- package/dist/cjs/__actions__/Menu/v1/index.cjs +20 -0
- package/dist/cjs/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.module.scss.cjs +7 -0
- package/dist/cjs/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/MenuHeading.cjs +1 -1
- package/dist/cjs/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/MenuHeading.module.scss.cjs +1 -1
- package/dist/cjs/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.module.scss.cjs +12 -0
- package/dist/cjs/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/MenuList.module.scss.cjs +1 -1
- package/dist/cjs/__actions__/Menu/v1/subcomponents/StatelessMenu/StatelessMenu.module.scss.cjs +6 -0
- package/dist/cjs/__actions__/Menu/v3/Menu.cjs +26 -0
- package/dist/cjs/__actions__/Menu/v3/Menu.module.scss.cjs +6 -0
- package/dist/cjs/__actions__/Menu/v3/MenuItem.cjs +30 -0
- package/dist/cjs/__actions__/Menu/v3/MenuItem.module.scss.cjs +7 -0
- package/dist/cjs/__actions__/Menu/v3/MenuTrigger.cjs +19 -0
- package/dist/cjs/actionsV1.cjs +12 -0
- package/dist/cjs/actionsV2.cjs +18 -0
- package/dist/cjs/actionsV3.cjs +10 -0
- package/dist/cjs/index.cjs +10 -14
- package/dist/esm/BrandMoment/BrandMoment.mjs +1 -2
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +1 -2
- package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +4 -7
- package/dist/esm/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.mjs +1 -2
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.mjs +1 -2
- package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +1 -2
- package/dist/esm/Icon/subcomponents/SVG/SVG.mjs +3 -2
- package/dist/esm/Illustration/subcomponents/VideoPlayer/VideoPlayer.mjs +1 -2
- package/dist/esm/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.mjs +1 -2
- package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +1 -2
- package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +1 -1
- package/dist/esm/Pagination/subcomponents/PaginationLink/PaginationLink.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/core/createRichTextEditor.mjs +2 -1
- package/dist/esm/SplitButton/SplitButton.mjs +1 -5
- package/dist/esm/Tile/subcomponents/GenericTile/Action.mjs +1 -2
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +1 -2
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +1 -2
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +4 -7
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +3 -5
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +4 -7
- package/dist/esm/TitleBlockZen/subcomponents/TitleBlockMenuItem.mjs +1 -5
- package/dist/esm/{Button → __actions__/Button/v1}/GenericButton/GenericButton.mjs +6 -6
- package/dist/esm/__actions__/Button/v1/GenericButton/GenericButton.module.scss.mjs +26 -0
- package/dist/esm/__actions__/Button/v3/Button.mjs +20 -0
- package/dist/esm/__actions__/Button/v3/Button.module.scss.mjs +7 -0
- package/dist/esm/__actions__/Menu/v1/index.mjs +14 -0
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.module.scss.mjs +5 -0
- package/dist/esm/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/MenuHeading.mjs +1 -1
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuHeading/MenuHeading.module.scss.mjs +4 -0
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.module.scss.mjs +10 -0
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuList/MenuList.module.scss.mjs +4 -0
- package/dist/esm/__actions__/Menu/v1/subcomponents/StatelessMenu/StatelessMenu.module.scss.mjs +4 -0
- package/dist/esm/__actions__/Menu/v3/Menu.mjs +18 -0
- package/dist/esm/__actions__/Menu/v3/Menu.module.scss.mjs +4 -0
- package/dist/esm/__actions__/Menu/v3/MenuItem.mjs +22 -0
- package/dist/esm/__actions__/Menu/v3/MenuItem.module.scss.mjs +5 -0
- package/dist/esm/__actions__/Menu/v3/MenuTrigger.mjs +11 -0
- package/dist/esm/actionsV1.mjs +3 -0
- package/dist/esm/actionsV2.mjs +8 -0
- package/dist/esm/actionsV3.mjs +4 -0
- package/dist/esm/index.mjs +3 -7
- package/dist/styles.css +12 -9
- package/dist/types/BrandMoment/BrandMoment.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.d.ts +1 -1
- package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +1 -1
- package/dist/types/Icon/subcomponents/SVG/SVG.d.ts +2 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.d.ts +1 -1
- package/dist/types/Pagination/subcomponents/DirectionalLink/DirectionalLink.d.ts +1 -1
- package/dist/types/Pagination/subcomponents/PaginationLink/PaginationLink.d.ts +1 -1
- package/dist/types/Tile/subcomponents/GenericTile/GenericTile.d.ts +1 -1
- package/dist/types/TitleBlockZen/subcomponents/MobileActions.d.ts +1 -1
- package/dist/types/TitleBlockZen/subcomponents/Toolbar.d.ts +1 -2
- package/dist/types/TitleBlockZen/types.d.ts +1 -2
- package/dist/types/__actions__/Button/v2/Button/index.d.ts +1 -0
- package/dist/types/__actions__/Button/v2/GenericButton/index.d.ts +1 -0
- package/dist/types/__actions__/Button/v2/IconButton/index.d.ts +1 -0
- package/dist/types/__actions__/Button/v2/index.d.ts +3 -0
- package/dist/types/__actions__/Button/v3/Button.d.ts +11 -0
- package/dist/types/__actions__/Button/v3/index.d.ts +1 -0
- package/dist/types/{Menu → __actions__/Menu/v1}/Menu.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/index.d.ts +30 -0
- package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/MenuHeading.d.ts +1 -1
- package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/MenuList.d.ts +1 -1
- package/dist/types/__actions__/Menu/v2/index.d.ts +6 -0
- package/dist/types/__actions__/Menu/v3/Menu.d.ts +7 -0
- package/dist/types/__actions__/Menu/v3/MenuItem.d.ts +17 -0
- package/dist/types/__actions__/Menu/v3/MenuTrigger.d.ts +6 -0
- package/dist/types/__actions__/Menu/v3/SubmenuTrigger.d.ts +8 -0
- package/dist/types/__actions__/Menu/v3/index.d.ts +3 -0
- package/dist/types/__actions__/v1.d.ts +2 -0
- package/dist/types/__actions__/v2.d.ts +2 -0
- package/dist/types/__actions__/v3.d.ts +2 -0
- package/dist/types/index.d.ts +2 -2
- package/package.json +29 -29
- package/src/BrandMoment/BrandMoment.tsx +1 -1
- package/src/BrandMoment/_docs/ExampleHeaders.tsx +1 -1
- package/src/Collapsible/Collapsible/Collapsible.tsx +1 -1
- package/src/DatePicker/_docs/DatePicker.stories.tsx +1 -1
- package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +1 -1
- package/src/EmptyState/_docs/EmptyState.stories.tsx +1 -1
- package/src/ErrorPage/ErrorPage.spec.tsx +142 -0
- package/src/ErrorPage/_docs/ErrorPage.stickersheet.stories.tsx +8 -26
- package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +1 -2
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.tsx +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.tsx +1 -1
- package/src/GuidanceBlock/GuidanceBlock.tsx +1 -1
- package/src/Icon/subcomponents/SVG/SVG.tsx +4 -1
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.tsx +1 -1
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +1 -1
- package/src/Modal/ContextModal/ContextModal.tsx +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +1 -1
- package/src/Modal/InputEditModal/InputEditModal.tsx +1 -1
- package/src/Notification/ToastNotification/_docs/ToastNotification.stories.tsx +1 -1
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +2 -2
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +4 -1
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +2 -2
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.tsx +4 -1
- package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.stories.tsx +1 -1
- package/src/RichTextEditor/utils/core/createRichTextEditor.ts +3 -1
- package/src/SplitButton/SplitButton.spec.tsx +1 -1
- package/src/SplitButton/SplitButton.tsx +1 -1
- package/src/SplitButton/_docs/SplitButton.stickersheet.stories.tsx +1 -1
- package/src/SplitButton/_docs/SplitButton.stories.tsx +1 -1
- package/src/Tabs/_docs/Tabs.stories.tsx +1 -1
- package/src/Tile/subcomponents/GenericTile/Action.tsx +1 -1
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +2 -2
- package/src/TitleBlockZen/TitleBlockZen.tsx +1 -1
- package/src/TitleBlockZen/subcomponents/MainActions.tsx +1 -2
- package/src/TitleBlockZen/subcomponents/MobileActions.tsx +6 -2
- package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +1 -2
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.tsx +1 -1
- package/src/TitleBlockZen/subcomponents/Toolbar.tsx +1 -2
- package/src/TitleBlockZen/types.ts +5 -2
- package/src/Workflow/_docs/Workflow.stories.tsx +1 -1
- package/src/Workflow/_docs/WorkflowFooter.stories.tsx +1 -1
- package/src/Workflow/_docs/WorkflowHeader.stories.tsx +1 -1
- package/src/Workflow/_docs/controls/controls.tsx +1 -1
- package/src/{Button → __actions__/Button/v1}/Button/Button.module.scss +1 -1
- package/src/{Button → __actions__/Button/v1}/Button/_docs/Button.mdx +2 -2
- package/src/{Button → __actions__/Button/v1}/Button/_docs/Button.stickersheet.stories.tsx +1 -1
- package/src/{Button → __actions__/Button/v1}/Button/_docs/Button.stories.tsx +1 -1
- package/src/{Button → __actions__/Button/v1}/GenericButton/GenericButton.module.scss +2 -2
- package/src/{Button → __actions__/Button/v1}/IconButton/_docs/IconButton.mdx +2 -2
- package/src/{Button → __actions__/Button/v1}/IconButton/_docs/IconButton.stickersheet.stories.tsx +2 -2
- package/src/{Button → __actions__/Button/v1}/IconButton/_docs/IconButton.stories.tsx +1 -1
- package/src/{Button → __actions__/Button/v1}/utils/_variables.scss +2 -2
- package/src/__actions__/Button/v2/Button/_docs/Button.mdx +98 -0
- package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +170 -0
- package/src/__actions__/Button/v2/Button/index.ts +1 -0
- package/src/__actions__/Button/v2/GenericButton/index.ts +1 -0
- package/src/__actions__/Button/v2/IconButton/_docs/IconButton.mdx +24 -0
- package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +37 -0
- package/src/__actions__/Button/v2/IconButton/index.ts +1 -0
- package/src/__actions__/Button/v2/index.ts +3 -0
- package/src/__actions__/Button/v3/Button.module.scss +104 -0
- package/src/__actions__/Button/v3/Button.tsx +44 -0
- package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +173 -0
- package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +76 -0
- package/src/__actions__/Button/v3/_docs/Button.mdx +41 -0
- package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +193 -0
- package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +135 -0
- package/src/__actions__/Button/v3/_docs/Button.stories.tsx +98 -0
- package/src/__actions__/Button/v3/index.ts +1 -0
- package/src/{Menu → __actions__/Menu/v1}/Menu.spec.tsx +1 -1
- package/src/{Menu → __actions__/Menu/v1}/Menu.tsx +1 -1
- package/src/__actions__/Menu/v1/_docs/Menu.mdx +29 -0
- package/src/{Menu → __actions__/Menu/v1}/_docs/Menu.stickersheet.stories.tsx +2 -2
- package/src/{Menu → __actions__/Menu/v1}/_docs/Menu.stories.tsx +2 -2
- package/src/{Menu → __actions__/Menu/v1}/_docs/examples.tsx +1 -1
- package/src/__actions__/Menu/v1/index.ts +35 -0
- package/src/{Menu → __actions__/Menu/v2}/_docs/Menu.mdx +2 -2
- package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +54 -0
- package/src/__actions__/Menu/v2/index.ts +6 -0
- package/src/__actions__/Menu/v3/Menu.module.scss +32 -0
- package/src/__actions__/Menu/v3/Menu.tsx +28 -0
- package/src/__actions__/Menu/v3/MenuItem.module.scss +34 -0
- package/src/__actions__/Menu/v3/MenuItem.tsx +32 -0
- package/src/__actions__/Menu/v3/MenuTrigger.tsx +14 -0
- package/src/__actions__/Menu/v3/SubmenuTrigger.tsx +18 -0
- package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +98 -0
- package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +280 -0
- package/src/__actions__/Menu/v3/_docs/Menu.mdx +202 -0
- package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +269 -0
- package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +69 -0
- package/src/__actions__/Menu/v3/index.ts +3 -0
- package/src/__actions__/v1.ts +2 -0
- package/src/__actions__/v2.ts +2 -0
- package/src/__actions__/v3.ts +2 -0
- package/src/__future__/Workflow/_docs/Workflow.stories.tsx +1 -1
- package/src/__future__/Workflow/_docs/WorkflowFooter.stories.tsx +1 -1
- package/src/__future__/Workflow/_docs/WorkflowHeader.stories.tsx +1 -1
- package/src/__future__/Workflow/_docs/controls/controls.tsx +1 -1
- package/src/__overlays__/Tooltip/v1/Tooltip.spec.tsx +1 -1
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +1 -1
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +1 -1
- package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.stories.tsx +1 -1
- package/src/index.ts +2 -2
- package/v1/actions/package.json +5 -0
- package/v2/actions/package.json +5 -0
- package/v3/actions/package.json +5 -0
- package/dist/cjs/Button/GenericButton/GenericButton.module.scss.cjs +0 -28
- package/dist/cjs/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss.cjs +0 -7
- package/dist/cjs/Menu/subcomponents/MenuItem/MenuItem.module.scss.cjs +0 -12
- package/dist/cjs/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss.cjs +0 -6
- package/dist/esm/Button/GenericButton/GenericButton.module.scss.mjs +0 -26
- package/dist/esm/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss.mjs +0 -5
- package/dist/esm/Menu/subcomponents/MenuHeading/MenuHeading.module.scss.mjs +0 -4
- package/dist/esm/Menu/subcomponents/MenuItem/MenuItem.module.scss.mjs +0 -10
- package/dist/esm/Menu/subcomponents/MenuList/MenuList.module.scss.mjs +0 -4
- package/dist/esm/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss.mjs +0 -4
- package/dist/types/Menu/index.d.ts +0 -5
- package/src/Menu/index.ts +0 -5
- /package/dist/cjs/{Button → __actions__/Button/v1}/Button/Button.cjs +0 -0
- /package/dist/cjs/{Button → __actions__/Button/v1}/IconButton/IconButton.cjs +0 -0
- /package/dist/cjs/{Menu → __actions__/Menu/v1}/Menu.cjs +0 -0
- /package/dist/cjs/{Menu → __actions__/Menu/v1}/subcomponents/MenuDropdown/MenuDropdown.cjs +0 -0
- /package/dist/cjs/{Menu → __actions__/Menu/v1}/subcomponents/MenuItem/MenuItem.cjs +0 -0
- /package/dist/cjs/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/MenuList.cjs +0 -0
- /package/dist/cjs/{Menu → __actions__/Menu/v1}/subcomponents/StatelessMenu/StatelessMenu.cjs +0 -0
- /package/dist/esm/{Button → __actions__/Button/v1}/Button/Button.mjs +0 -0
- /package/dist/esm/{Button → __actions__/Button/v1}/IconButton/IconButton.mjs +0 -0
- /package/dist/esm/{Menu → __actions__/Menu/v1}/Menu.mjs +0 -0
- /package/dist/esm/{Menu → __actions__/Menu/v1}/subcomponents/MenuDropdown/MenuDropdown.mjs +0 -0
- /package/dist/esm/{Menu → __actions__/Menu/v1}/subcomponents/MenuItem/MenuItem.mjs +0 -0
- /package/dist/esm/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/MenuList.mjs +0 -0
- /package/dist/esm/{Menu → __actions__/Menu/v1}/subcomponents/StatelessMenu/StatelessMenu.mjs +0 -0
- /package/dist/types/{Button → __actions__/Button/v1}/Button/Button.d.ts +0 -0
- /package/dist/types/{Button → __actions__/Button/v1}/Button/index.d.ts +0 -0
- /package/dist/types/{Button → __actions__/Button/v1}/GenericButton/GenericButton.d.ts +0 -0
- /package/dist/types/{Button → __actions__/Button/v1}/GenericButton/index.d.ts +0 -0
- /package/dist/types/{Button → __actions__/Button/v1}/IconButton/IconButton.d.ts +0 -0
- /package/dist/types/{Button → __actions__/Button/v1}/IconButton/index.d.ts +0 -0
- /package/dist/types/{Button → __actions__/Button/v1}/index.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/_docs/MenuContentExample.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/_docs/examples.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuDropdown/MenuDropdown.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuDropdown/index.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/index.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuItem/MenuItem.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuItem/index.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/index.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/StatelessMenu/StatelessMenu.d.ts +0 -0
- /package/dist/types/{Menu → __actions__/Menu/v1}/subcomponents/StatelessMenu/index.d.ts +0 -0
- /package/src/{Button → __actions__/Button/v1}/Button/Button.tsx +0 -0
- /package/src/{Button → __actions__/Button/v1}/Button/index.ts +0 -0
- /package/src/{Button → __actions__/Button/v1}/GenericButton/GenericButton.spec.tsx +0 -0
- /package/src/{Button → __actions__/Button/v1}/GenericButton/GenericButton.tsx +0 -0
- /package/src/{Button → __actions__/Button/v1}/GenericButton/index.ts +0 -0
- /package/src/{Button → __actions__/Button/v1}/IconButton/IconButton.module.scss +0 -0
- /package/src/{Button → __actions__/Button/v1}/IconButton/IconButton.spec.tsx +0 -0
- /package/src/{Button → __actions__/Button/v1}/IconButton/IconButton.tsx +0 -0
- /package/src/{Button → __actions__/Button/v1}/IconButton/index.ts +0 -0
- /package/src/{Button → __actions__/Button/v1}/index.ts +0 -0
- /package/src/{Button → __actions__/Button/v1}/utils/_mixins.scss +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/_docs/MenuContentExample.tsx +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuDropdown/MenuDropdown.module.scss +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuDropdown/MenuDropdown.tsx +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuDropdown/index.ts +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/MenuHeading.module.scss +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/MenuHeading.tsx +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuHeading/index.ts +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuItem/MenuItem.module.scss +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuItem/MenuItem.tsx +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuItem/index.ts +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/MenuList.module.scss +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/MenuList.spec.tsx +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/MenuList.tsx +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/MenuList/index.ts +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/StatelessMenu/StatelessMenu.module.scss +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/StatelessMenu/StatelessMenu.tsx +0 -0
- /package/src/{Menu → __actions__/Menu/v1}/subcomponents/StatelessMenu/index.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { OverrideClassName } from "
|
|
2
|
+
import { OverrideClassName } from "../../../../../types/OverrideClassName";
|
|
3
3
|
export type MenuListProps = {
|
|
4
4
|
heading?: JSX.Element;
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "../v1/Menu";
|
|
2
|
+
export * from "../v1/subcomponents/MenuList";
|
|
3
|
+
export * from "../v1/subcomponents/MenuDropdown";
|
|
4
|
+
export * from "../v1/subcomponents/MenuItem";
|
|
5
|
+
export * from "../v1/subcomponents/MenuHeading";
|
|
6
|
+
export * from "../v1/subcomponents/StatelessMenu";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MenuProps as RACMenuProps } from "react-aria-components";
|
|
3
|
+
export type MenuProps = Omit<RACMenuProps<HTMLDivElement>, "selectionMode" | "disallowEmptySelection" | "selectedKeys" | "defaultSelectedKeys">;
|
|
4
|
+
/**
|
|
5
|
+
* A menu displays a list of actions or options that a user can choose.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { MenuItemProps as RACMenuItemProps } from "react-aria-components";
|
|
3
|
+
export type MenuItemProps = RACMenuItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Provides positioning for an icon to the left of the menu item content
|
|
6
|
+
*/
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A MenuItem represents an individual action in a Menu.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MenuItem: React.ForwardRefExoticComponent<RACMenuItemProps<object> & {
|
|
13
|
+
/**
|
|
14
|
+
* Provides positioning for an icon to the left of the menu item content
|
|
15
|
+
*/
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MenuTriggerProps as RACMenuTriggerProps } from "react-aria-components";
|
|
2
|
+
export type MenuTriggerProps = Omit<RACMenuTriggerProps, "trigger">;
|
|
3
|
+
/**
|
|
4
|
+
* A MenuTrigger adds open/close functionality when wrapping a Button and a Popover (with a Menu inside of the Popover)
|
|
5
|
+
*/
|
|
6
|
+
export declare const MenuTrigger: (props: MenuTriggerProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SubmenuTriggerProps as RACSubmenuTriggerProps } from "react-aria-components";
|
|
3
|
+
export type SubmenuTriggerProps = RACSubmenuTriggerProps;
|
|
4
|
+
export declare const SubmenuTriggerContext: React.Context<object | null>;
|
|
5
|
+
/**
|
|
6
|
+
* A SubmenuTrigger creates a nested Menu triggered by a MenuItem
|
|
7
|
+
*/
|
|
8
|
+
export declare const SubmenuTrigger: (props: SubmenuTriggerProps) => JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from "./AvatarGroup";
|
|
|
3
3
|
export * from "./Badge";
|
|
4
4
|
export * from "./Brand";
|
|
5
5
|
export * from "./BrandMoment";
|
|
6
|
-
export * from "./Button";
|
|
7
6
|
export * from "./ButtonGroup";
|
|
8
7
|
export * from "./Calendar";
|
|
9
8
|
export * from "./Card";
|
|
@@ -31,7 +30,6 @@ export * from "./Label";
|
|
|
31
30
|
export * from "./LabelledMessage";
|
|
32
31
|
export * from "./LikertScaleLegacy";
|
|
33
32
|
export * from "./Loading";
|
|
34
|
-
export * from "./Menu";
|
|
35
33
|
export * from "./Modal";
|
|
36
34
|
export * from "./MultiSelect";
|
|
37
35
|
export * from "./Notification";
|
|
@@ -61,3 +59,5 @@ export * from "./VisuallyHidden";
|
|
|
61
59
|
export * from "./Well";
|
|
62
60
|
export * from "./Workflow";
|
|
63
61
|
export * from "./__overlays__/Tooltip/v1";
|
|
62
|
+
export * from "./__actions__/Menu/v1";
|
|
63
|
+
export * from "./__actions__/Button/v1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.56.0",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@floating-ui/react-dom": "^2.1.1",
|
|
33
33
|
"@headlessui/react": "<=1.5.0",
|
|
34
|
-
"@internationalized/date": "^3.5.
|
|
34
|
+
"@internationalized/date": "^3.5.5",
|
|
35
35
|
"@popperjs/core": "^2.11.8",
|
|
36
36
|
"@reach/tabs": "^0.18.0",
|
|
37
|
-
"@react-aria/button": "^3.9.
|
|
38
|
-
"@react-aria/datepicker": "^3.
|
|
39
|
-
"@react-aria/focus": "^3.
|
|
40
|
-
"@react-aria/i18n": "^3.
|
|
41
|
-
"@react-aria/listbox": "^3.
|
|
42
|
-
"@react-aria/menu": "^3.
|
|
43
|
-
"@react-aria/overlays": "^3.
|
|
44
|
-
"@react-aria/select": "^3.14.
|
|
45
|
-
"@react-aria/utils": "^3.
|
|
46
|
-
"@react-stately/collections": "^3.10.
|
|
47
|
-
"@react-stately/datepicker": "^3.
|
|
48
|
-
"@react-stately/list": "^3.10.
|
|
49
|
-
"@react-stately/menu": "^3.
|
|
50
|
-
"@react-stately/select": "^3.6.
|
|
51
|
-
"@react-types/shared": "^3.
|
|
37
|
+
"@react-aria/button": "^3.9.7",
|
|
38
|
+
"@react-aria/datepicker": "^3.11.1",
|
|
39
|
+
"@react-aria/focus": "^3.18.1",
|
|
40
|
+
"@react-aria/i18n": "^3.12.1",
|
|
41
|
+
"@react-aria/listbox": "^3.13.1",
|
|
42
|
+
"@react-aria/menu": "^3.15.1",
|
|
43
|
+
"@react-aria/overlays": "^3.23.1",
|
|
44
|
+
"@react-aria/select": "^3.14.7",
|
|
45
|
+
"@react-aria/utils": "^3.25.1",
|
|
46
|
+
"@react-stately/collections": "^3.10.9",
|
|
47
|
+
"@react-stately/datepicker": "^3.10.1",
|
|
48
|
+
"@react-stately/list": "^3.10.7",
|
|
49
|
+
"@react-stately/menu": "^3.8.1",
|
|
50
|
+
"@react-stately/select": "^3.6.6",
|
|
51
|
+
"@react-types/shared": "^3.24.1",
|
|
52
52
|
"classnames": "^2.5.1",
|
|
53
53
|
"date-fns": "^3.6.0",
|
|
54
54
|
"lodash.debounce": "^4.0.8",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"prosemirror-history": "^1.4.1",
|
|
58
58
|
"prosemirror-inputrules": "^1.4.0",
|
|
59
59
|
"prosemirror-keymap": "^1.2.2",
|
|
60
|
-
"prosemirror-model": "^1.22.
|
|
60
|
+
"prosemirror-model": "^1.22.2",
|
|
61
61
|
"prosemirror-schema-basic": "^1.2.3",
|
|
62
62
|
"prosemirror-schema-list": "^1.4.1",
|
|
63
63
|
"prosemirror-state": "^1.4.3",
|
|
64
64
|
"prosemirror-transform": "^1.9.0",
|
|
65
65
|
"prosemirror-utils": "^1.2.2",
|
|
66
|
-
"prosemirror-view": "^1.33.
|
|
66
|
+
"prosemirror-view": "^1.33.9",
|
|
67
67
|
"react-animate-height": "^3.2.3",
|
|
68
|
-
"react-aria": "^3.
|
|
69
|
-
"react-aria-components": "^1.
|
|
70
|
-
"react-day-picker": "
|
|
68
|
+
"react-aria": "^3.34.1",
|
|
69
|
+
"react-aria-components": "^1.3.1",
|
|
70
|
+
"react-day-picker": "8.10.1",
|
|
71
71
|
"react-focus-lock": "^2.12.1",
|
|
72
72
|
"react-focus-on": "^3.9.3",
|
|
73
73
|
"react-media": "^1.10.0",
|
|
@@ -83,25 +83,25 @@
|
|
|
83
83
|
"react-day-picker": "Version locked until a11y gets fixed (https://github.com/gpbl/react-day-picker/pull/1708)"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@cultureamp/frontend-apis": "^9.
|
|
87
|
-
"@cultureamp/i18n-react-intl": "^2.5.
|
|
86
|
+
"@cultureamp/frontend-apis": "^9.7.0",
|
|
87
|
+
"@cultureamp/i18n-react-intl": "^2.5.9",
|
|
88
88
|
"@types/lodash.debounce": "^4.0.9",
|
|
89
89
|
"@types/react-dom": "^18.3.0",
|
|
90
90
|
"@types/react-textfit": "^1.1.4",
|
|
91
91
|
"@types/uuid": "^10.0.0",
|
|
92
92
|
"autoprefixer": "^10.4.19",
|
|
93
93
|
"concat-cli": "^4.0.0",
|
|
94
|
-
"query-string": "^9.
|
|
94
|
+
"query-string": "^9.1.0",
|
|
95
95
|
"react-intl": "^6.6.8",
|
|
96
|
-
"rollup": "^4.
|
|
96
|
+
"rollup": "^4.19.0",
|
|
97
97
|
"sass": "^1.77.8",
|
|
98
98
|
"serialize-query-params": "^2.0.2",
|
|
99
99
|
"svgo": "^3.3.2",
|
|
100
|
-
"ts-jest": "^29.2.
|
|
100
|
+
"ts-jest": "^29.2.3",
|
|
101
101
|
"tslib": "^2.6.3",
|
|
102
102
|
"tsx": "^4.16.2",
|
|
103
103
|
"@kaizen/design-tokens": "10.5.0",
|
|
104
|
-
"@kaizen/package-bundler": "1.1.
|
|
104
|
+
"@kaizen/package-bundler": "1.1.3"
|
|
105
105
|
},
|
|
106
106
|
"devDependenciesComments": {
|
|
107
107
|
"postcss": "Installed in root",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"postcss-preset-env": "Installed in root"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"@cultureamp/i18n-react-intl": "^2.5.
|
|
112
|
+
"@cultureamp/i18n-react-intl": "^2.5.9",
|
|
113
113
|
"react": "^18.3.1",
|
|
114
114
|
"react-intl": "^6.6.8"
|
|
115
115
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement, HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { assetUrl } from "@kaizen/hosted-assets"
|
|
4
|
-
import { Button, ButtonProps } from "~components/Button"
|
|
5
4
|
import { Heading } from "~components/Heading"
|
|
6
5
|
import { SceneProps } from "~components/Illustration"
|
|
7
6
|
import { Text } from "~components/Text"
|
|
7
|
+
import { Button, ButtonProps } from "~components/__actions__/v2"
|
|
8
8
|
import { OverrideClassName } from "~types/OverrideClassName"
|
|
9
9
|
import { useMediaQueries } from "~utils/useMediaQueries"
|
|
10
10
|
import styles from "./BrandMoment.module.scss"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { assetUrl } from "@kaizen/hosted-assets"
|
|
3
|
-
import { Button } from "~components/Button"
|
|
4
3
|
import { CloseIcon } from "~components/Icon"
|
|
4
|
+
import { Button } from "~components/__actions__/v2"
|
|
5
5
|
import styles from "./ExampleHeaders.scss"
|
|
6
6
|
|
|
7
7
|
export const MinimalBasic = (): JSX.Element => (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { HTMLAttributes, useId, useState } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import AnimateHeight from "react-animate-height"
|
|
4
|
-
import { IconButton } from "~components/Button"
|
|
5
4
|
import { Heading } from "~components/Heading"
|
|
6
5
|
import { ChevronUpIcon, ChevronDownIcon } from "~components/Icon"
|
|
6
|
+
import { IconButton } from "~components/__actions__/v2"
|
|
7
7
|
import { OverrideClassName } from "~types/OverrideClassName"
|
|
8
8
|
import { Sticky } from "../types"
|
|
9
9
|
import styles from "./Collapsible.module.scss"
|
|
@@ -3,11 +3,11 @@ import { action } from "@storybook/addon-actions"
|
|
|
3
3
|
import { Meta, StoryObj } from "@storybook/react"
|
|
4
4
|
import { userEvent, within, expect } from "@storybook/test"
|
|
5
5
|
import Highlight from "react-highlight"
|
|
6
|
-
import { Button } from "~components/Button"
|
|
7
6
|
import { defaultMonthControls } from "~components/Calendar/_docs/controls/defaultMonthControls"
|
|
8
7
|
import { weekStartsOnControls } from "~components/Calendar/_docs/controls/weekStartsOnControls"
|
|
9
8
|
import { FieldMessageStatus } from "~components/FieldMessage"
|
|
10
9
|
import { Text } from "~components/Text"
|
|
10
|
+
import { Button } from "~components/__actions__/v2"
|
|
11
11
|
import { DatePicker, ValidationResponse } from "../index"
|
|
12
12
|
import { datePickerLocaleControls } from "./controls/datePickerLocaleControls"
|
|
13
13
|
import { disabledDayMatchersControls } from "./controls/disabledDayMatchersControls"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { Meta, StoryFn } from "@storybook/react"
|
|
3
3
|
import isChromatic from "chromatic"
|
|
4
|
-
import { Button } from "~components/Button"
|
|
5
4
|
import { ChevronRightIcon } from "~components/Icon"
|
|
5
|
+
import { Button } from "~components/__actions__/v2"
|
|
6
6
|
import {
|
|
7
7
|
StickerSheet,
|
|
8
8
|
StickerSheetStory,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
-
import { Button } from "~components/Button"
|
|
4
3
|
import { ChevronRightIcon } from "~components/Icon"
|
|
4
|
+
import { Button } from "~components/__actions__/v2"
|
|
5
5
|
import { EmptyState } from "../index"
|
|
6
6
|
import styles from "./EmptyState.stories.module.scss"
|
|
7
7
|
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { screen, waitFor } from "@testing-library/react"
|
|
3
|
+
import { renderWithIntl } from "~tests"
|
|
4
|
+
import { ErrorPage } from "./ErrorPage"
|
|
5
|
+
|
|
6
|
+
describe("<ErrorPage />", () => {
|
|
7
|
+
beforeAll(() => {
|
|
8
|
+
window.HTMLMediaElement.prototype.load = jest.fn()
|
|
9
|
+
window.HTMLMediaElement.prototype.play = jest
|
|
10
|
+
.fn()
|
|
11
|
+
.mockResolvedValue(undefined)
|
|
12
|
+
window.HTMLMediaElement.prototype.pause = jest.fn()
|
|
13
|
+
window.matchMedia = jest.fn().mockImplementation(() => ({
|
|
14
|
+
media: "",
|
|
15
|
+
onchange: null,
|
|
16
|
+
addListener: jest.fn(),
|
|
17
|
+
removeListener: jest.fn(),
|
|
18
|
+
addEventListener: jest.fn(),
|
|
19
|
+
removeEventListener: jest.fn(),
|
|
20
|
+
matches: false,
|
|
21
|
+
}))
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
it("shows the correct content for error 400", async () => {
|
|
25
|
+
renderWithIntl(<ErrorPage code="400" />)
|
|
26
|
+
await waitFor(() => {
|
|
27
|
+
expect(screen.getByText("Problem loading page")).toBeVisible()
|
|
28
|
+
expect(
|
|
29
|
+
screen.getByText(
|
|
30
|
+
"Problem loading page right now. Try again or head home."
|
|
31
|
+
)
|
|
32
|
+
).toBeVisible()
|
|
33
|
+
expect(screen.getByText("Error code 400")).toBeVisible()
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
it("shows the correct content for error 401", async () => {
|
|
38
|
+
renderWithIntl(<ErrorPage code="401" />)
|
|
39
|
+
await waitFor(() => {
|
|
40
|
+
expect(screen.getByText("You can't view this page")).toBeVisible()
|
|
41
|
+
expect(
|
|
42
|
+
screen.getByText(
|
|
43
|
+
"Sorry but we can't verify if you're able to view this page. Go back and try again, or head to Home"
|
|
44
|
+
)
|
|
45
|
+
).toBeVisible()
|
|
46
|
+
expect(screen.getByText("Error code 401")).toBeVisible()
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
it("shows the correct content for error 403", async () => {
|
|
51
|
+
renderWithIntl(<ErrorPage code="403" />)
|
|
52
|
+
await waitFor(() => {
|
|
53
|
+
expect(screen.getByText("You can't view this page")).toBeVisible()
|
|
54
|
+
expect(
|
|
55
|
+
screen.getByText(
|
|
56
|
+
"Sorry but it looks like you don’t have permission to view this page. Go back and try again, or head to Home"
|
|
57
|
+
)
|
|
58
|
+
).toBeVisible()
|
|
59
|
+
expect(screen.getByText("Error code 403")).toBeVisible()
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
it("shows the correct content for error 404", async () => {
|
|
64
|
+
renderWithIntl(<ErrorPage code="404" />)
|
|
65
|
+
await waitFor(() => {
|
|
66
|
+
expect(screen.getByText("Page not found")).toBeVisible()
|
|
67
|
+
expect(
|
|
68
|
+
screen.getByText(
|
|
69
|
+
"Sorry but we can't find the page you're looking for. Go back and try again, or head to Home"
|
|
70
|
+
)
|
|
71
|
+
).toBeVisible()
|
|
72
|
+
expect(screen.getByText("Error code 404")).toBeVisible()
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
it("shows the correct content for error 422", async () => {
|
|
77
|
+
renderWithIntl(<ErrorPage code="422" />)
|
|
78
|
+
await waitFor(() => {
|
|
79
|
+
expect(screen.getByText("Change couldn't be made")).toBeVisible()
|
|
80
|
+
expect(
|
|
81
|
+
screen.getByText(
|
|
82
|
+
"Sorry but your change couldn't be made. Go back and try again, or head to Home"
|
|
83
|
+
)
|
|
84
|
+
).toBeVisible()
|
|
85
|
+
expect(screen.getByText("Error code 422")).toBeVisible()
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
it("shows the correct content for error 500", async () => {
|
|
90
|
+
renderWithIntl(<ErrorPage code="500" />)
|
|
91
|
+
await waitFor(() => {
|
|
92
|
+
expect(
|
|
93
|
+
screen.getByText("Something's gone wrong on our side")
|
|
94
|
+
).toBeVisible()
|
|
95
|
+
expect(
|
|
96
|
+
screen.getByText(
|
|
97
|
+
"Sorry there's an issue with our system and this page can't be displayed. Go back and try again, or head to Home"
|
|
98
|
+
)
|
|
99
|
+
).toBeVisible()
|
|
100
|
+
expect(screen.getByText("Error code 500")).toBeVisible()
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
it("shows the correct content for error 502", async () => {
|
|
105
|
+
renderWithIntl(<ErrorPage code="502" />)
|
|
106
|
+
await waitFor(() => {
|
|
107
|
+
expect(screen.getByText("You can't view this page")).toBeVisible()
|
|
108
|
+
expect(
|
|
109
|
+
screen.getByText(
|
|
110
|
+
"Sorry about this. The best thing to do is go back and try again."
|
|
111
|
+
)
|
|
112
|
+
).toBeVisible()
|
|
113
|
+
expect(screen.getByText("Error code 502")).toBeVisible()
|
|
114
|
+
})
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
it("shows the correct content for error 503", async () => {
|
|
118
|
+
renderWithIntl(<ErrorPage code="503" />)
|
|
119
|
+
await waitFor(() => {
|
|
120
|
+
expect(screen.getByText("You can't view this page")).toBeVisible()
|
|
121
|
+
expect(
|
|
122
|
+
screen.getByText(
|
|
123
|
+
"Sorry about this. The best thing to do is go back and try again."
|
|
124
|
+
)
|
|
125
|
+
).toBeVisible()
|
|
126
|
+
expect(screen.getByText("Error code 503")).toBeVisible()
|
|
127
|
+
})
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
it("shows the correct content for error 504", async () => {
|
|
131
|
+
renderWithIntl(<ErrorPage code="504" />)
|
|
132
|
+
await waitFor(() => {
|
|
133
|
+
expect(screen.getByText("You can't view this page")).toBeVisible()
|
|
134
|
+
expect(
|
|
135
|
+
screen.getByText(
|
|
136
|
+
"Sorry about this. The best thing to do is go back and try again."
|
|
137
|
+
)
|
|
138
|
+
).toBeVisible()
|
|
139
|
+
expect(screen.getByText("Error code 504")).toBeVisible()
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
})
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
StickerSheet,
|
|
5
5
|
StickerSheetStory,
|
|
6
6
|
} from "~storybook/components/StickerSheet"
|
|
7
|
-
import { ErrorPage
|
|
7
|
+
import { ErrorPage } from "../ErrorPage"
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
title: "Pages/Error Page",
|
|
@@ -30,34 +30,16 @@ export default {
|
|
|
30
30
|
},
|
|
31
31
|
} satisfies Meta
|
|
32
32
|
|
|
33
|
-
const ERROR_CODES = [
|
|
34
|
-
"400",
|
|
35
|
-
"401",
|
|
36
|
-
"403",
|
|
37
|
-
"404",
|
|
38
|
-
"422",
|
|
39
|
-
"500",
|
|
40
|
-
"502",
|
|
41
|
-
"503",
|
|
42
|
-
"504",
|
|
43
|
-
] satisfies Array<ErrorPageProps["code"]>
|
|
44
|
-
|
|
45
33
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
46
34
|
render: ({ isReversed }) => (
|
|
47
35
|
<>
|
|
48
|
-
|
|
49
|
-
<StickerSheet
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
>
|
|
54
|
-
|
|
55
|
-
<StickerSheet.Row>
|
|
56
|
-
<ErrorPage code={code} />
|
|
57
|
-
</StickerSheet.Row>
|
|
58
|
-
</StickerSheet.Body>
|
|
59
|
-
</StickerSheet>
|
|
60
|
-
))}
|
|
36
|
+
<StickerSheet heading="ErrorPage" isReversed={isReversed}>
|
|
37
|
+
<StickerSheet.Body>
|
|
38
|
+
<StickerSheet.Row>
|
|
39
|
+
<ErrorPage code="400" />
|
|
40
|
+
</StickerSheet.Row>
|
|
41
|
+
</StickerSheet.Body>
|
|
42
|
+
</StickerSheet>
|
|
61
43
|
|
|
62
44
|
<StickerSheet heading="Custom error" isReversed={isReversed}>
|
|
63
45
|
<StickerSheet.Body>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { useIntl } from "@cultureamp/i18n-react-intl"
|
|
3
|
-
import { Button } from "~components/Button"
|
|
4
3
|
import { AddIcon } from "~components/Icon"
|
|
5
|
-
import { Menu, MenuList, MenuItem } from "~components/
|
|
4
|
+
import { Menu, MenuList, MenuItem, Button } from "~components/__actions__/v2"
|
|
6
5
|
import { useFilterBarContext } from "../../context/FilterBarContext"
|
|
7
6
|
|
|
8
7
|
export const AddFiltersMenu = (): JSX.Element => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { useIntl } from "@cultureamp/i18n-react-intl"
|
|
3
|
-
import { Button } from "~components/
|
|
3
|
+
import { Button } from "~components/__actions__/v2"
|
|
4
4
|
import { useFilterBarContext } from "../../context/FilterBarContext"
|
|
5
5
|
import styles from "./ClearAllButton.module.scss"
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react"
|
|
2
2
|
import classNames from "classnames"
|
|
3
3
|
import Media from "react-media"
|
|
4
|
-
import { Button, ButtonProps } from "~components/Button"
|
|
5
4
|
import { Heading, HeadingProps } from "~components/Heading"
|
|
6
5
|
import { ArrowForwardIcon } from "~components/Icon"
|
|
7
6
|
import { SceneProps, SpotProps } from "~components/Illustration"
|
|
8
7
|
import { Text } from "~components/Text"
|
|
8
|
+
import { Button, ButtonProps } from "~components/__actions__/v2"
|
|
9
9
|
import { Tooltip, TooltipProps } from "~components/__overlays__/Tooltip/v1"
|
|
10
10
|
import { VariantType } from "./types"
|
|
11
11
|
import styles from "./GuidanceBlock.module.scss"
|
|
@@ -15,6 +15,7 @@ type DecorativeIcon = {
|
|
|
15
15
|
|
|
16
16
|
export type BaseSVGProps = {
|
|
17
17
|
inheritSize?: boolean
|
|
18
|
+
shouldFlipOnRtl?: boolean
|
|
18
19
|
} & OverrideClassName<SVGAttributes<SVGElement>> &
|
|
19
20
|
(MeaningfulIcon | DecorativeIcon)
|
|
20
21
|
|
|
@@ -31,12 +32,14 @@ export const SVG = ({
|
|
|
31
32
|
viewBox = "0 0 20 20",
|
|
32
33
|
classNameOverride,
|
|
33
34
|
children,
|
|
35
|
+
shouldFlipOnRtl,
|
|
34
36
|
...restProps
|
|
35
37
|
}: SVGProps): JSX.Element => {
|
|
36
38
|
const classes = classnames(
|
|
37
39
|
styles.icon,
|
|
38
40
|
classNameOverride,
|
|
39
|
-
inheritSize && styles.inheritSize
|
|
41
|
+
inheritSize && styles.inheritSize,
|
|
42
|
+
shouldFlipOnRtl && styles.flipOnRtl
|
|
40
43
|
)
|
|
41
44
|
|
|
42
45
|
if (role === "presentation") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { assetUrl } from "@kaizen/hosted-assets"
|
|
4
|
-
import { IconButton } from "~components/
|
|
4
|
+
import { IconButton } from "~components/__actions__/v2"
|
|
5
5
|
import { canPlayWebm } from "../../utils/canPlayWebm"
|
|
6
6
|
import { usePausePlay } from "../../utils/usePausePlay"
|
|
7
7
|
import styles from "../Base/Base.module.scss"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { ButtonProps } from "~components/Button"
|
|
4
3
|
import { Heading } from "~components/Heading"
|
|
5
4
|
import {
|
|
6
5
|
CautionWhiteIcon,
|
|
@@ -23,6 +22,7 @@ import {
|
|
|
23
22
|
ModalAccessibleLabel,
|
|
24
23
|
ModalBody,
|
|
25
24
|
} from "~components/Modal/GenericModal"
|
|
25
|
+
import { ButtonProps } from "~components/__actions__/v2"
|
|
26
26
|
import styles from "./ConfirmationModal.module.scss"
|
|
27
27
|
|
|
28
28
|
export type ConfirmationModalProps = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { ButtonProps } from "~components/Button"
|
|
4
3
|
import { Heading } from "~components/Heading"
|
|
5
4
|
import {
|
|
6
5
|
GenericModal,
|
|
@@ -9,6 +8,7 @@ import {
|
|
|
9
8
|
ModalAccessibleLabel,
|
|
10
9
|
ModalBody,
|
|
11
10
|
} from "~components/Modal/GenericModal"
|
|
11
|
+
import { ButtonProps } from "~components/__actions__/v2"
|
|
12
12
|
import styles from "./ContextModal.module.scss"
|
|
13
13
|
|
|
14
14
|
export type ContextModalSecondaryActionProps =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { Button, ButtonProps } from "~components/
|
|
3
|
+
import { Button, ButtonProps } from "~components/__actions__/v2"
|
|
4
4
|
import { useMediaQueries } from "~utils/useMediaQueries"
|
|
5
5
|
import { ModalBody } from "../ModalBody/ModalBody"
|
|
6
6
|
import styles from "./ModalFooter.module.scss"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import { IconButton } from "~components/Button"
|
|
3
2
|
import { CloseIcon } from "~components/Icon"
|
|
3
|
+
import { IconButton } from "~components/__actions__/v2"
|
|
4
4
|
import { ModalBody } from "../ModalBody"
|
|
5
5
|
import styles from "./ModalHeader.module.scss"
|
|
6
6
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { ButtonProps } from "~components/Button"
|
|
4
3
|
import { Heading } from "~components/Heading"
|
|
5
4
|
import {
|
|
6
5
|
GenericModal,
|
|
@@ -9,6 +8,7 @@ import {
|
|
|
9
8
|
ModalAccessibleLabel,
|
|
10
9
|
ModalBody,
|
|
11
10
|
} from "~components/Modal/GenericModal"
|
|
11
|
+
import { ButtonProps } from "~components/__actions__/v2"
|
|
12
12
|
import styles from "./InputEditModal.module.scss"
|
|
13
13
|
|
|
14
14
|
export type InputEditModalProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useId } from "react"
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
-
import { Button } from "~components/
|
|
3
|
+
import { Button } from "~components/__actions__/v2"
|
|
4
4
|
import { ToastNotification, useToastNotification } from "../index"
|
|
5
5
|
|
|
6
6
|
const meta = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import "~@kaizen/design-tokens/sass/border";
|
|
2
2
|
@import "~@kaizen/design-tokens/sass/color";
|
|
3
|
-
@import "../../../Button/utils/mixins";
|
|
4
|
-
@import "../../../Button/utils/variables";
|
|
3
|
+
@import "../../../__actions__/Button/v1/utils/mixins";
|
|
4
|
+
@import "../../../__actions__/Button/v1/utils/variables";
|
|
5
5
|
|
|
6
6
|
%directional-link {
|
|
7
7
|
[dir="rtl"] & {
|