@kaizen/components 1.59.0 → 1.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codemods/README.md +15 -10
- package/codemods/migrateBrandMomentMoodToVariant/transformBrandMomentMoodToVariant.ts +1 -1
- package/codemods/migrateCardVariantToColor/transformCardVariantToColor.ts +1 -1
- package/codemods/migrateConfirmationModalMoodsToVariant/index.ts +3 -3
- package/codemods/migrateConfirmationModalMoodsToVariant/transformConfirmationModalMoodsToVariant.ts +25 -56
- package/codemods/migrateEmptyStateIllustrationTypeToVariant/transformEmptyStateIllustrationTypeToVariant.ts +1 -1
- package/codemods/migrateInformationTileMoodToVariant/transformInformationTileMoodToVariant.ts +1 -1
- package/codemods/migrateMultiActionTileMoodToVariant/transformMultiActionTileMoodToVariant.ts +1 -1
- package/codemods/migrateNotificationTypeToVariant/migrateNotificationTypeToVariant.ts +1 -1
- package/codemods/migrateProgressBarMoodToColor/transformProgressBarMoodToColor.ts +1 -1
- package/codemods/removeInputEditModalMood/index.ts +2 -2
- package/codemods/removeInputEditModalMood/removeInputEditModalMood.spec.ts +1 -31
- package/codemods/removeInputEditModalMood/removeInputEditModalMood.ts +2 -39
- package/codemods/removePopoverVariant/index.ts +15 -0
- package/codemods/removePopoverVariant/removePopoverVariant.spec.ts +65 -0
- package/codemods/removePopoverVariant/removePopoverVariant.ts +3 -0
- package/codemods/updateGuidanceBlockVariantProp/transformGuidanceBlockVariantProp.spec.ts +2 -2
- package/codemods/utils/removeProps.spec.ts +65 -0
- package/codemods/utils/removeProps.ts +30 -0
- package/dist/cjs/Brand/Brand.cjs +1 -1
- package/dist/cjs/BrandMoment/BrandMoment.cjs +1 -1
- package/dist/cjs/Card/Card.cjs +1 -1
- package/dist/cjs/Card/Card.module.css.cjs +22 -0
- package/dist/cjs/Illustration/subcomponents/Base/Base.cjs +1 -1
- package/dist/cjs/Illustration/subcomponents/VideoPlayer/VideoPlayer.cjs +1 -1
- package/dist/cjs/Notification/ToastNotification/context/ToastNotificationContext.cjs +6 -8
- package/dist/cjs/Popover/Popover.module.scss.cjs +0 -7
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/utils/hostedAssets.cjs +16 -0
- package/dist/cjs/utils/useResizeObserver.cjs +1 -0
- package/dist/esm/Brand/Brand.mjs +1 -1
- package/dist/esm/BrandMoment/BrandMoment.mjs +1 -1
- package/dist/esm/Card/Card.mjs +1 -1
- package/dist/esm/Card/Card.module.css.mjs +20 -0
- package/dist/esm/Illustration/subcomponents/Base/Base.mjs +1 -1
- package/dist/esm/Illustration/subcomponents/VideoPlayer/VideoPlayer.mjs +1 -1
- package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs +6 -8
- package/dist/esm/Popover/Popover.module.scss.mjs +0 -7
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/utils/hostedAssets.mjs +14 -0
- package/dist/esm/utils/useResizeObserver.mjs +1 -0
- package/dist/styles.css +12983 -179
- package/dist/types/LikertScaleLegacy/index.d.ts +1 -0
- package/dist/types/Popover/Popover.d.ts +4 -2
- package/dist/types/utils/hostedAssets.d.ts +10 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/useResizeObserver.d.ts +1 -0
- package/package.json +19 -11
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/AvatarGroup/AvatarGroup.tsx +1 -1
- package/src/Badge/Badge.tsx +1 -1
- package/src/Brand/Brand.tsx +2 -2
- package/src/BrandMoment/BrandMoment.tsx +3 -3
- package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
- package/src/ButtonGroup/ButtonGroup.tsx +1 -1
- package/src/Calendar/CalendarPopover/CalendarPopover.tsx +1 -1
- package/src/Calendar/CalendarRange/CalendarRange.tsx +1 -1
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +1 -1
- package/src/Card/{Card.module.scss → Card.module.css} +6 -14
- package/src/Card/Card.tsx +2 -2
- package/src/Checkbox/Checkbox/Checkbox.tsx +1 -1
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.tsx +1 -1
- package/src/ClearButton/ClearButton.tsx +1 -1
- package/src/Collapsible/Collapsible/Collapsible.tsx +1 -1
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.tsx +1 -1
- package/src/Content/Content.tsx +1 -1
- package/src/DateInput/DateInput/DateInput.tsx +1 -1
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +1 -1
- package/src/Divider/Divider.tsx +1 -1
- package/src/EmptyState/EmptyState.tsx +1 -1
- package/src/ErrorPage/ErrorPage.tsx +1 -1
- package/src/FieldGroup/FieldGroup.tsx +1 -1
- package/src/FieldMessage/FieldMessage.tsx +1 -1
- package/src/Filter/Filter/Filter.tsx +1 -1
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.tsx +1 -1
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.tsx +1 -1
- package/src/Filter/FilterBar/FilterBar.tsx +1 -1
- package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +1 -1
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.tsx +1 -1
- package/src/Filter/FilterDatePicker/hooks/useDateInputHandlers.spec.ts +1 -1
- package/src/Filter/FilterDatePicker/hooks/useDateValidation.spec.ts +1 -2
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.tsx +2 -2
- package/src/Filter/FilterDatePicker/utils/getDateValidationHandler.tsx +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.spec.ts +1 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useStartDateValidation.spec.ts +1 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.tsx +1 -1
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.stories.tsx +1 -1
- package/src/Filter/FilterSelect/FilterSelect.tsx +1 -1
- package/src/Heading/Heading.tsx +1 -1
- package/src/Icon/_docs/Icon.stories.tsx +1 -1
- package/src/Icon/subcomponents/SVG/SVG.tsx +1 -1
- package/src/Illustration/subcomponents/Base/Base.tsx +2 -2
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.tsx +1 -1
- package/src/Illustration/utils/usePausePlay.spec.tsx +1 -2
- package/src/Input/Input/Input.tsx +1 -1
- package/src/Input/InputRange/InputRange.tsx +1 -1
- package/src/Input/InputSearch/InputSearch.tsx +1 -1
- package/src/KaizenProvider/_docs/KaizenProvider.mdx +4 -4
- package/src/Label/Label.tsx +1 -1
- package/src/LabelledMessage/LabelledMessage.tsx +1 -1
- package/src/LikertScaleLegacy/index.ts +1 -0
- package/src/Loading/LoadingGraphic/LoadingGraphic.tsx +1 -1
- package/src/Loading/LoadingHeading/LoadingHeading.tsx +1 -1
- package/src/Loading/LoadingInput/LoadingInput.tsx +1 -1
- package/src/Loading/LoadingParagraph/LoadingParagraph.tsx +1 -1
- package/src/Loading/LoadingSpinner/LoadingSpinner.tsx +1 -1
- package/src/Modal/ConfirmationModal/ConfirmationModal.spec.tsx +1 -1
- package/src/Modal/ContextModal/ContextModal.spec.tsx +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +1 -1
- package/src/Modal/InputEditModal/InputEditModal.spec.tsx +1 -1
- package/src/MultiSelect/MultiSelect.tsx +1 -1
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.tsx +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.tsx +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +1 -1
- package/src/MultiSelect/subcomponents/Popover/Popover.tsx +1 -1
- package/src/Notification/GlobalNotification/GlobalNotification.tsx +1 -1
- package/src/Notification/InlineNotification/InlineNotification.tsx +1 -1
- package/src/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.tsx +1 -1
- package/src/Notification/ToastNotification/_docs/ToastNotification.stories.tsx +33 -0
- package/src/Notification/ToastNotification/context/ToastNotificationContext.tsx +6 -6
- package/src/Notification/ToastNotification/types.ts +1 -1
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +1 -1
- package/src/Pagination/Pagination.tsx +1 -1
- package/src/Popover/Popover.module.scss +4 -26
- package/src/Popover/Popover.tsx +5 -3
- package/src/Popover/_docs/Popover.mdx +0 -3
- package/src/Popover/_docs/Popover.stickersheet.stories.tsx +1 -1
- package/src/Popover/_docs/Popover.stories.tsx +3 -42
- package/src/ProgressBar/ProgressBar.tsx +1 -1
- package/src/Radio/Radio/Radio.tsx +1 -1
- package/src/Radio/RadioGroup/RadioGroup.tsx +1 -1
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.tsx +1 -1
- package/src/RichTextEditor/RichTextContent/RichTextContent.tsx +1 -1
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.tsx +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.tsx +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.tsx +1 -1
- package/src/Skirt/Skirt.tsx +1 -1
- package/src/SplitButton/SplitButton.tsx +2 -2
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.tsx +1 -1
- package/src/Table/Table.tsx +1 -1
- package/src/Tabs/subcomponents/Tab.tsx +1 -1
- package/src/Tabs/subcomponents/TabList.tsx +1 -1
- package/src/Tabs/subcomponents/TabPanel.tsx +1 -1
- package/src/Tabs/subcomponents/TabPanels.tsx +1 -1
- package/src/Text/Text.tsx +1 -1
- package/src/TextArea/TextArea.tsx +1 -1
- package/src/Tile/TileGrid/TileGrid.tsx +1 -1
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
- package/src/TimeField/TimeField.tsx +1 -1
- package/src/TitleBlockZen/TitleBlockZen.spec.tsx +1 -1
- package/src/TitleBlockZen/TitleBlockZen.tsx +1 -1
- package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +1 -1
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
- package/src/VisuallyHidden/VisuallyHidden.tsx +1 -1
- package/src/Well/Well.tsx +1 -1
- package/src/Workflow/Workflow.tsx +1 -1
- package/src/Workflow/subcomponents/Footer/Footer.tsx +1 -1
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.tsx +1 -1
- package/src/Workflow/subcomponents/Footer/components/Root/Root.tsx +1 -1
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.tsx +1 -1
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.tsx +1 -1
- package/src/Workflow/subcomponents/Header/components/Root/Root.tsx +1 -1
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.tsx +1 -1
- package/src/Workflow/subcomponents/Main/Main.tsx +1 -1
- package/src/Workflow/subcomponents/Wrapper/Wrapper.tsx +1 -1
- package/src/__actions__/Button/v3/Button.tsx +1 -1
- package/src/__actions__/Menu/v1/subcomponents/MenuList/MenuList.tsx +1 -1
- package/src/__actions__/Menu/v3/Menu.tsx +1 -1
- package/src/__actions__/Menu/v3/MenuItem.tsx +1 -1
- package/src/__future__/Select/Select.tsx +1 -1
- package/src/__future__/Select/subcomponents/ListBox/ListBox.tsx +1 -1
- package/src/__future__/Select/subcomponents/Option/Option.tsx +1 -1
- package/src/__future__/Select/subcomponents/Overlay/Overlay.tsx +1 -1
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +1 -1
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +1 -1
- package/src/__future__/Tag/Tag/Tag.tsx +1 -1
- package/src/__future__/Workflow/Workflow.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Footer/Footer.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Footer/components/Root/Root.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Header/components/Actions/Actions.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Header/components/Branding/Branding.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Header/components/Root/Root.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Header/components/Titles/Titles.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Main/Main.tsx +1 -1
- package/src/__future__/Workflow/subcomponents/Wrapper/Wrapper.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/OverlayArrow.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/Tooltip.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.stickersheet.stories.tsx +1 -1
- package/src/utils/hostedAssets.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/useResizeObserver.ts +1 -0
- package/dist/cjs/Card/Card.module.scss.cjs +0 -22
- package/dist/esm/Card/Card.module.scss.mjs +0 -20
- package/src/utils/useResizeObserver.spec.tsx +0 -49
- /package/src/BrandMoment/_docs/{ExampleHeaders.scss → ExampleHeaders.module.scss} +0 -0
- /package/src/Filter/FilterMultiSelect/_docs/{FilterMultiSelect.stories.scss → FilterMultiSelect.module.scss} +0 -0
- /package/src/Icon/_docs/{icon.stories.scss → icon.module.scss} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { createSchemaWithAll } from "../RichTextEditor/schema"
|
|
5
5
|
import { EditorContentArray } from "../types"
|
|
6
6
|
import { useRichTextEditor } from "../utils/core"
|
|
@@ -9,7 +9,7 @@ import classnames from "classnames"
|
|
|
9
9
|
import { FieldMessage } from "~components/FieldMessage"
|
|
10
10
|
import { Label } from "~components/Label"
|
|
11
11
|
import { InlineNotification } from "~components/Notification"
|
|
12
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
12
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
13
13
|
import { ToolbarItems, EditorContentArray, EditorRows } from "../types"
|
|
14
14
|
import { useRichTextEditor } from "../utils/core"
|
|
15
15
|
import { createLinkManager } from "../utils/plugins"
|
package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Tooltip } from "~components/__overlays__/Tooltip/v1"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import { ToggleIconButtonMoods } from "./types"
|
|
6
6
|
import styles from "./ToggleIconButton.module.scss"
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { ToolbarSectionProps } from "../ToolbarSection"
|
|
5
5
|
import styles from "./Toolbar.module.scss"
|
|
6
6
|
|
package/src/Skirt/Skirt.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react"
|
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Container } from "~components/Container"
|
|
4
4
|
import { Content, ContentProps } from "~components/Content"
|
|
5
|
-
import { useResizeObserver } from "~utils/useResizeObserver"
|
|
5
|
+
import { useResizeObserver } from "~components/utils/useResizeObserver"
|
|
6
6
|
import styles from "./Skirt.module.scss"
|
|
7
7
|
|
|
8
8
|
const spacing = 24
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Menu } from "~components/__actions__/v2"
|
|
4
|
-
import { DataAttributes } from "~types/DataAttributes"
|
|
5
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { DataAttributes } from "~components/types/DataAttributes"
|
|
5
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import { ActionButton, ActionButtonProps } from "./subcomponents/ActionButton"
|
|
7
7
|
import {
|
|
8
8
|
DropdownButton,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./BaseButton.module.scss"
|
|
5
5
|
|
|
6
6
|
type AnchorAttributes = AnchorHTMLAttributes<HTMLAnchorElement>
|
package/src/Table/Table.tsx
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
SortDescendingIcon,
|
|
9
9
|
} from "~components/Icon"
|
|
10
10
|
import { Tooltip } from "~components/__overlays__/Tooltip/v1"
|
|
11
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
11
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
12
12
|
import styles from "./Table.module.scss"
|
|
13
13
|
|
|
14
14
|
export type TableContainerProps = {
|
|
@@ -9,7 +9,7 @@ import { Tab as ReachTab } from "@reach/tabs"
|
|
|
9
9
|
import classnames from "classnames"
|
|
10
10
|
import { useFocusable } from "react-aria"
|
|
11
11
|
import { Badge } from "~components/Badge"
|
|
12
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
12
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
13
13
|
import styles from "./Tab.module.scss"
|
|
14
14
|
|
|
15
15
|
export type TabProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react"
|
|
2
2
|
import { TabList as ReachTabList } from "@reach/tabs"
|
|
3
3
|
import classnames from "classnames"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./TabList.module.scss"
|
|
6
6
|
|
|
7
7
|
export type TabListProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react"
|
|
2
2
|
import { TabPanel as ReachTabPanel } from "@reach/tabs"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./TabPanel.module.scss"
|
|
5
5
|
|
|
6
6
|
export type TabPanelProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react"
|
|
2
2
|
import { TabPanels as ReachTabPanels } from "@reach/tabs"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
|
|
5
5
|
export type TabPanelsProps = {
|
|
6
6
|
children: ReactNode
|
package/src/Text/Text.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement, HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Text.module.scss"
|
|
5
5
|
|
|
6
6
|
export type TextVariants = "intro-lede" | "body" | "small" | "extra-small"
|
|
@@ -5,7 +5,7 @@ import React, {
|
|
|
5
5
|
useState,
|
|
6
6
|
} from "react"
|
|
7
7
|
import classnames from "classnames"
|
|
8
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
8
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
9
9
|
import styles from "./TextArea.module.scss"
|
|
10
10
|
|
|
11
11
|
export type TextAreaProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactElement } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { InformationTileProps } from "../InformationTile"
|
|
5
5
|
import { MultiActionTileProps } from "../MultiActionTile"
|
|
6
6
|
import styles from "./TileGrid.module.scss"
|
|
@@ -5,7 +5,7 @@ import { ArrowBackwardIcon, InformationIcon } from "~components/Icon"
|
|
|
5
5
|
import { Text } from "~components/Text"
|
|
6
6
|
import { GenericButtonProps } from "~components/__actions__/Button/v1/GenericButton"
|
|
7
7
|
import { IconButton } from "~components/__actions__/v2"
|
|
8
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
8
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
9
9
|
import Action from "./Action"
|
|
10
10
|
import styles from "./GenericTile.module.scss"
|
|
11
11
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import classnames from "classnames"
|
|
10
10
|
import { FieldMessage } from "~components/FieldMessage"
|
|
11
11
|
import { Label } from "~components/Label"
|
|
12
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
12
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
13
13
|
import { TimeSegment } from "./subcomponents/TimeSegment"
|
|
14
14
|
import { StatusType, TimeValue, ValueType } from "./types"
|
|
15
15
|
import styles from "./TimeField.module.scss"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, waitFor, screen, within } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
-
import { mockMatchMedia } from "~utils/useMediaQueries.spec"
|
|
4
|
+
import { mockMatchMedia } from "~components/utils/useMediaQueries.spec"
|
|
5
5
|
import { CustomBreadcrumbProps, SectionTitleRenderProps } from "./types"
|
|
6
6
|
import { TitleBlockZen } from "./index"
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ import { ArrowLeftIcon, ArrowRightIcon, HamburgerIcon } from "~components/Icon"
|
|
|
6
6
|
import { Select } from "~components/Select"
|
|
7
7
|
import { Tag } from "~components/Tag"
|
|
8
8
|
import { IconButton } from "~components/__actions__/v2"
|
|
9
|
-
import { useMediaQueries } from "~utils/useMediaQueries"
|
|
9
|
+
import { useMediaQueries } from "~components/utils/useMediaQueries"
|
|
10
10
|
import { MainActions } from "./subcomponents/MainActions"
|
|
11
11
|
import { MobileActions } from "./subcomponents/MobileActions"
|
|
12
12
|
import { SecondaryActions } from "./subcomponents/SecondaryActions"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
-
import { assetUrl } from "@kaizen/hosted-assets"
|
|
4
3
|
import { AddIcon, StarOnIcon } from "~components/Icon"
|
|
4
|
+
import { assetUrl } from "~components/utils/hostedAssets"
|
|
5
5
|
import { StickerSheet } from "~storybook/components/StickerSheet"
|
|
6
6
|
import { NavigationTab, TitleBlockZen } from "../index"
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { CheckIcon } from "~components/Icon"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./ToggleSwitch.module.scss"
|
|
6
6
|
|
|
7
7
|
export type ToggledStatus = "on" | "off"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./VisuallyHidden.module.scss"
|
|
5
5
|
|
|
6
6
|
export type VisuallyHiddenProps = {
|
package/src/Well/Well.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { WellBorderStyleType, WellVariantType, WellColors } from "./types"
|
|
5
5
|
import styles from "./Well.module.scss"
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./FooterActions.module.scss"
|
|
5
5
|
|
|
6
6
|
export type FooterActionsProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./FooterRoot.module.scss"
|
|
5
5
|
|
|
6
6
|
export type FooterRootProps = OverrideClassName<
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import { Brand, BrandProps } from "~components/Brand"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Branding.module.scss"
|
|
5
5
|
|
|
6
6
|
export type WorflowBrandingProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Root.module.scss"
|
|
5
5
|
|
|
6
6
|
export type HeaderRootProps = OverrideClassName<
|
|
@@ -2,7 +2,7 @@ import React, { HTMLAttributes } from "react"
|
|
|
2
2
|
import { Heading } from "~components/Heading"
|
|
3
3
|
import { Tag, DefaultTagProps } from "~components/Tag"
|
|
4
4
|
import { VisuallyHidden } from "~components/VisuallyHidden"
|
|
5
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
5
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import styles from "./Titles.module.scss"
|
|
7
7
|
|
|
8
8
|
export type WorkflowStatus = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Main.module.scss"
|
|
5
5
|
|
|
6
6
|
export type WorkflowMainProps = OverrideClassName<
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Wrapper.module.scss"
|
|
5
5
|
|
|
6
6
|
export type WorkflowWrapperProps = OverrideClassName<
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ButtonProps as RACButtonProps,
|
|
5
5
|
} from "react-aria-components"
|
|
6
6
|
import { useReversedColors } from "~components/__utilities__/v3"
|
|
7
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
7
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
8
8
|
import styles from "./Button.module.scss"
|
|
9
9
|
|
|
10
10
|
export type ButtonVariants = "default"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes, cloneElement, useId } from "react"
|
|
2
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
2
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
3
3
|
import styles from "./MenuList.module.scss"
|
|
4
4
|
|
|
5
5
|
export type MenuListProps = {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Menu as RACMenu,
|
|
4
4
|
MenuProps as RACMenuProps,
|
|
5
5
|
} from "react-aria-components"
|
|
6
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
6
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
7
7
|
import styles from "./Menu.module.scss"
|
|
8
8
|
|
|
9
9
|
export type MenuProps = Omit<
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MenuItem as RACMenuItem,
|
|
4
4
|
MenuItemProps as RACMenuItemProps,
|
|
5
5
|
} from "react-aria-components"
|
|
6
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
6
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
7
7
|
import styles from "./MenuItem.module.scss"
|
|
8
8
|
|
|
9
9
|
export type MenuItemProps = RACMenuItemProps & {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Popover,
|
|
14
14
|
useFloating,
|
|
15
15
|
} from "~components/MultiSelect/subcomponents/Popover"
|
|
16
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
16
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
17
17
|
import { SelectProvider } from "./context"
|
|
18
18
|
import {
|
|
19
19
|
ListBox,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import { AriaListBoxOptions, useListBox } from "@react-aria/listbox"
|
|
3
3
|
import classnames from "classnames"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import { useSelectContext } from "../../context"
|
|
6
6
|
import { SelectOption, SelectItem } from "../../types"
|
|
7
7
|
import styles from "./ListBox.module.scss"
|
|
@@ -4,7 +4,7 @@ import { useOption } from "@react-aria/listbox"
|
|
|
4
4
|
import { mergeProps } from "@react-aria/utils"
|
|
5
5
|
import classnames from "classnames"
|
|
6
6
|
import { CheckIcon } from "~components/Icon"
|
|
7
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
7
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
8
8
|
import { useSelectContext } from "../../context"
|
|
9
9
|
import { SelectOption, SelectOptionNode } from "../../types"
|
|
10
10
|
import styles from "./Option.module.scss"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import { FocusScope } from "@react-aria/focus"
|
|
3
3
|
import { useOverlay, DismissButton } from "@react-aria/overlays"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import { useSelectContext } from "../../context"
|
|
6
6
|
import { SelectOption } from "../../types"
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import { DOMAttributes, FocusableElement } from "@react-types/shared"
|
|
|
3
3
|
import classnames from "classnames"
|
|
4
4
|
import { ChevronDownIcon, ChevronUpIcon } from "~components/Icon"
|
|
5
5
|
import { Label } from "~components/Label"
|
|
6
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
6
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
7
7
|
import styles from "./SelectToggle.module.scss"
|
|
8
8
|
|
|
9
9
|
export type SelectToggleProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { RemoveTagIcon } from "./RemoveTagIcon"
|
|
5
5
|
import styles from "./RemoveButton.module.scss"
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, HTMLAttributes } from "react"
|
|
2
2
|
import classNames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { TagColors } from "./types"
|
|
5
5
|
import styles from "./Tag.module.scss"
|
|
6
6
|
|
package/src/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./FooterActions.module.scss"
|
|
5
5
|
|
|
6
6
|
export type FooterActionsProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./FooterRoot.module.scss"
|
|
5
5
|
|
|
6
6
|
export type FooterRootProps = OverrideClassName<
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import { Brand, BrandProps } from "~components/Brand"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Branding.module.scss"
|
|
5
5
|
|
|
6
6
|
export type WorflowBrandingProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Root.module.scss"
|
|
5
5
|
|
|
6
6
|
export type HeaderRootProps = OverrideClassName<
|
|
@@ -2,7 +2,7 @@ import React, { HTMLAttributes } from "react"
|
|
|
2
2
|
import { Heading } from "~components/Heading"
|
|
3
3
|
import { Tag, DefaultTagProps } from "~components/Tag"
|
|
4
4
|
import { VisuallyHidden } from "~components/VisuallyHidden"
|
|
5
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
5
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import styles from "./Titles.module.scss"
|
|
7
7
|
|
|
8
8
|
export type WorkflowStatus = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Main.module.scss"
|
|
5
5
|
|
|
6
6
|
export type WorkflowMainProps = OverrideClassName<
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Wrapper.module.scss"
|
|
5
5
|
|
|
6
6
|
export type WorkflowWrapperProps = OverrideClassName<
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
type OverlayArrowProps,
|
|
5
5
|
} from "react-aria-components"
|
|
6
6
|
import { useReversedColors } from "~components/__utilities__/v3"
|
|
7
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
7
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
8
8
|
|
|
9
9
|
import styles from "./OverlayArrow.module.scss"
|
|
10
10
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useContextProps,
|
|
9
9
|
} from "react-aria-components"
|
|
10
10
|
import { useReversedColors } from "~components/__utilities__/v3"
|
|
11
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
11
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
12
12
|
import { OverlayArrow } from "./OverlayArrow"
|
|
13
13
|
import styles from "./Tooltip.module.scss"
|
|
14
14
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { Meta, composeStories } from "@storybook/react"
|
|
3
3
|
import { ReversedColors } from "~components/__utilities__/v3"
|
|
4
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
4
5
|
import { StickerSheetStory } from "~storybook/components/StickerSheet"
|
|
5
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
6
6
|
import * as testStories from "./Tooltip.spec.stories"
|
|
7
7
|
|
|
8
8
|
export default {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Returns the full URL of the asset at `path` managed by the
|
|
5
|
+
* `kaizen-design-system-assets` service.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* assetUrl("some/blob.png") -> "https://<origin>/some/blob.png"
|
|
9
|
+
*
|
|
10
|
+
* @see https://github.com/cultureamp/kaizen-design-system-assets/
|
|
11
|
+
*/
|
|
12
|
+
export const assetUrl = (path: string): string =>
|
|
13
|
+
[ORIGIN_BASE_URL, path].join("/")
|
package/src/utils/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface DOMRectReadOnly {
|
|
|
23
23
|
* @return {Array} An array containing a ref for binding to the observed DOM
|
|
24
24
|
* element, and the current value of the callback-resolved ResizeObserverEntry
|
|
25
25
|
* @callback resolveEntryCallback
|
|
26
|
+
* @deprecated use native `ResizeObserver` DOM API instead
|
|
26
27
|
*/
|
|
27
28
|
export const useResizeObserver = <T, E extends Element = HTMLElement>(
|
|
28
29
|
resolveEntry: (entry: ResizeObserverEntry) => any = defaultCallback
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"wrapper": "Card-module_wrapper__h5MUx",
|
|
5
|
-
"elevated": "Card-module_elevated__m7z8s",
|
|
6
|
-
"blue": "Card-module_blue__3-ogH",
|
|
7
|
-
"gray": "Card-module_gray__laFe8",
|
|
8
|
-
"green": "Card-module_green__FOeLt",
|
|
9
|
-
"orange": "Card-module_orange__hIZPr",
|
|
10
|
-
"purple": "Card-module_purple__7tEwm",
|
|
11
|
-
"red": "Card-module_red__e6deN",
|
|
12
|
-
"white": "Card-module_white__HD1ph",
|
|
13
|
-
"yellow": "Card-module_yellow__j4aX-",
|
|
14
|
-
"default": "Card-module_default__MzW74",
|
|
15
|
-
"informative": "Card-module_informative__4yRSy",
|
|
16
|
-
"positive": "Card-module_positive__KvUqp",
|
|
17
|
-
"cautionary": "Card-module_cautionary__iMWR-",
|
|
18
|
-
"destructive": "Card-module_destructive__9wC8X",
|
|
19
|
-
"assertive": "Card-module_assertive__6d1GM",
|
|
20
|
-
"highlight": "Card-module_highlight__2GSL-"
|
|
21
|
-
};
|
|
22
|
-
module.exports = styles;
|