@kaizen/components 1.58.2 → 1.60.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/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/Avatar/Avatar.cjs +14 -12
- 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/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/Avatar/Avatar.mjs +14 -12
- 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/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/Avatar/Avatar.d.ts +6 -1
- 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.spec.tsx +63 -0
- package/src/Avatar/Avatar.tsx +16 -8
- 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/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
|
@@ -4,8 +4,8 @@ import { ButtonGroup, ButtonGroupProps } from "~components/ButtonGroup"
|
|
|
4
4
|
import { FilterTriggerRef } from "~components/Filter/Filter"
|
|
5
5
|
import { ClearIcon } from "~components/Icon"
|
|
6
6
|
import { Tooltip } from "~components/__overlays__/Tooltip/v1"
|
|
7
|
-
import { DataAttributes } from "~types/DataAttributes"
|
|
8
|
-
import { isRefObject } from "~utils/isRefObject"
|
|
7
|
+
import { DataAttributes } from "~components/types/DataAttributes"
|
|
8
|
+
import { isRefObject } from "~components/utils/isRefObject"
|
|
9
9
|
import { FilterButton, FilterButtonProps } from "../FilterButton"
|
|
10
10
|
import {
|
|
11
11
|
FilterButtonBase,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, forwardRef } 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 "./FilterButtonBase.module.scss"
|
|
5
5
|
|
|
6
6
|
export type FilterButtonBaseProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, FocusEvent, KeyboardEvent } from "react"
|
|
2
|
-
import { renderHook, act } from "@testing-library/react
|
|
2
|
+
import { renderHook, act } from "@testing-library/react"
|
|
3
3
|
import { enAU } from "date-fns/locale"
|
|
4
4
|
import * as isSelectingDayInCalendar from "~components/Calendar/utils/isSelectingDayInCalendar"
|
|
5
5
|
import { useDateInputHandlers } from "./useDateInputHandlers"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { act } from "react"
|
|
2
|
-
import { waitFor } from "@testing-library/react"
|
|
3
|
-
import { renderHook } from "@testing-library/react-hooks"
|
|
2
|
+
import { waitFor, renderHook } from "@testing-library/react"
|
|
4
3
|
import { renderWithIntl } from "~tests"
|
|
5
4
|
import { useDateValidation } from "./useDateValidation"
|
|
6
5
|
|
package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.tsx
CHANGED
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
import { FilterProps } from "~components/Filter/Filter"
|
|
15
15
|
import { useDateValidation } from "~components/Filter/FilterDatePicker/hooks/useDateValidation"
|
|
16
16
|
import { transformDateToInputValue } from "~components/Filter/FilterDatePicker/utils/transformDateToInputValue"
|
|
17
|
-
import { DataAttributes } from "~types/DataAttributes"
|
|
18
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
17
|
+
import { DataAttributes } from "~components/types/DataAttributes"
|
|
18
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
19
19
|
import { useDateInputHandlers } from "../../hooks/useDateInputHandlers"
|
|
20
20
|
import { DateValidationResponse, ValidationMessage } from "../../types"
|
|
21
21
|
import { DateInputField, DateInputFieldProps } from "../DateInputField"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { LabelledMessage } from "~components/LabelledMessage"
|
|
3
|
-
import { getNodeText } from "~utils/getNodeText"
|
|
3
|
+
import { getNodeText } from "~components/utils/getNodeText"
|
|
4
4
|
import { DateValidationResponse, ValidationMessage } from "../types"
|
|
5
5
|
|
|
6
6
|
export type GetDateValidationHandlerArgs = {
|
package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.tsx
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
} from "~components/DateInput"
|
|
10
10
|
import { FieldMessage } from "~components/FieldMessage"
|
|
11
11
|
import { VisuallyHidden } from "~components/VisuallyHidden"
|
|
12
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
13
|
-
import { isRefObject } from "~utils/isRefObject"
|
|
12
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
13
|
+
import { isRefObject } from "~components/utils/isRefObject"
|
|
14
14
|
import {
|
|
15
15
|
DateRangeValidationMessage,
|
|
16
16
|
DateRangeValidationMessageProps,
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
} from "~components/DatePicker/utils/getLocale"
|
|
17
17
|
import { DateValidationResponse } from "~components/Filter/FilterDatePicker"
|
|
18
18
|
import { useDateInputHandlers } from "~components/Filter/FilterDatePicker/hooks/useDateInputHandlers"
|
|
19
|
-
import { DataAttributes } from "~types/DataAttributes"
|
|
20
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
19
|
+
import { DataAttributes } from "~components/types/DataAttributes"
|
|
20
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
21
21
|
import {
|
|
22
22
|
DateRangeInputField,
|
|
23
23
|
DateRangeInputFieldProps,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { act } from "react"
|
|
2
|
-
import { waitFor } from "@testing-library/react"
|
|
3
|
-
import { renderHook } from "@testing-library/react-hooks"
|
|
2
|
+
import { waitFor, renderHook } from "@testing-library/react"
|
|
4
3
|
import { renderWithIntl } from "~tests"
|
|
5
4
|
import { useEndDateValidation } from "./useEndDateValidation"
|
|
6
5
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { act } from "react"
|
|
2
|
-
import { waitFor } from "@testing-library/react"
|
|
3
|
-
import { renderHook } from "@testing-library/react-hooks"
|
|
2
|
+
import { waitFor, renderHook } from "@testing-library/react"
|
|
4
3
|
import { renderWithIntl } from "~tests"
|
|
5
4
|
import { useStartDateValidation } from "./useStartDateValidation"
|
|
6
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { FormattedMessage } from "@cultureamp/i18n-react-intl"
|
|
3
3
|
import { DateValidationResponse } from "~components/Filter/FilterDatePicker"
|
|
4
|
-
import { getNodeText } from "~utils/getNodeText"
|
|
4
|
+
import { getNodeText } from "~components/utils/getNodeText"
|
|
5
5
|
import { isValidRange } from "./isValidRange"
|
|
6
6
|
|
|
7
7
|
export type ValidateEndDateBeforeStartDateArgs = {
|
|
@@ -14,7 +14,7 @@ import { Text } from "~components/Text"
|
|
|
14
14
|
import { TextField } from "~components/TextField"
|
|
15
15
|
import { FilterMultiSelect, getSelectedOptionLabels } from ".."
|
|
16
16
|
import { mockItems } from "./MockData"
|
|
17
|
-
import styles from "./FilterMultiSelect.
|
|
17
|
+
import styles from "./FilterMultiSelect.module.scss"
|
|
18
18
|
|
|
19
19
|
const IS_CHROMATIC = isChromatic()
|
|
20
20
|
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "~components/__future__/Select/subcomponents"
|
|
19
19
|
import { getDisabledKeysFromItems } from "~components/__future__/Select/utils/getDisabledKeysFromItems"
|
|
20
20
|
import { transformSelectItemToCollectionElement } from "~components/__future__/Select/utils/transformSelectItemToCollectionElement"
|
|
21
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
21
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
22
22
|
import { SelectItem, SelectOption } from "./types"
|
|
23
23
|
import styles from "./FilterSelect.module.scss"
|
|
24
24
|
|
package/src/Heading/Heading.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 "./Heading.module.scss"
|
|
5
5
|
|
|
6
6
|
const VARIANTS_24PX_OR_GREATER = ["display-0", "heading-1", "heading-2"]
|
|
@@ -4,7 +4,7 @@ import * as ICONS from "~components/Icon"
|
|
|
4
4
|
import { Text } from "~components/Text"
|
|
5
5
|
import { Tag } from "~components/__future__/Tag"
|
|
6
6
|
import { AddIcon } from "../index"
|
|
7
|
-
import styles from "./icon.
|
|
7
|
+
import styles from "./icon.module.scss"
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
10
|
title: "Components/Icons",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, SVGAttributes } 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 "./SVG.module.scss"
|
|
5
5
|
|
|
6
6
|
type MeaningfulIcon = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
|
+
import { assetUrl } from "~components/utils/hostedAssets"
|
|
5
5
|
import styles from "./Base.module.scss"
|
|
6
6
|
|
|
7
7
|
export type BaseProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { assetUrl } from "@kaizen/hosted-assets"
|
|
4
3
|
import { IconButton } from "~components/__actions__/v2"
|
|
4
|
+
import { assetUrl } from "~components/utils/hostedAssets"
|
|
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, { RefObject, act } from "react"
|
|
2
|
-
import { render } from "@testing-library/react"
|
|
3
|
-
import { renderHook } from "@testing-library/react-hooks"
|
|
2
|
+
import { render, renderHook } from "@testing-library/react"
|
|
4
3
|
import { LaunchIcon, PauseIcon } from "~components/Icon"
|
|
5
4
|
import { usePausePlay, usePausePlayHook } from "./usePausePlay"
|
|
6
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { InputStatus, InputTypes } from "./types"
|
|
5
5
|
import styles from "./Input.module.scss"
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import React, { InputHTMLAttributes, ReactNode, useState } from "react"
|
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Text } from "~components/Text"
|
|
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 "./InputRange.module.scss"
|
|
7
7
|
|
|
8
8
|
export type InputRangeProps = {
|
|
@@ -4,7 +4,7 @@ import classnames from "classnames"
|
|
|
4
4
|
import { ClearButton } from "~components/ClearButton"
|
|
5
5
|
import { SearchIcon } from "~components/Icon/SearchIcon"
|
|
6
6
|
import { LoadingSpinner } from "~components/Loading"
|
|
7
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
7
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
8
8
|
import styles from "./InputSearch.module.scss"
|
|
9
9
|
|
|
10
10
|
export type InputSearchProps = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Meta } from "@storybook/blocks"
|
|
2
2
|
import Highlight from "react-highlight"
|
|
3
|
-
import migrationBonus from "
|
|
4
|
-
import migrationFETBonus from "
|
|
5
|
-
import migrationFETToV1 from "
|
|
6
|
-
import migrationToV1 from "
|
|
3
|
+
import migrationBonus from "./code-diffs/migration-bonus.diff?raw"
|
|
4
|
+
import migrationFETBonus from "./code-diffs/migration-fe-template-bonus.diff?raw"
|
|
5
|
+
import migrationFETToV1 from "./code-diffs/migration-fe-template-to-v1.diff?raw"
|
|
6
|
+
import migrationToV1 from "./code-diffs/migration-to-v1.diff?raw"
|
|
7
7
|
|
|
8
8
|
<Meta title="Components/Kaizen Provider/Installation" />
|
|
9
9
|
|
package/src/Label/Label.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { LabelHTMLAttributes } 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 "./Label.module.scss"
|
|
5
5
|
|
|
6
6
|
type LabelType = "text" | "checkbox" | "toggle" | "radio"
|
|
@@ -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 "./LabelledMessage.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LabelledMessageProps = {
|
|
@@ -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 "./LoadingGraphic.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LoadingGraphicSize =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { HeadingVariants } from "~components/Heading"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./LoadingHeading.module.scss"
|
|
6
6
|
|
|
7
7
|
export type LoadingHeadingProps = {
|
|
@@ -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 "./LoadingInput.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LoadingInputProps = {
|
|
@@ -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 "./LoadingParagraph.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LoadingParagraphProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { VisuallyHidden } from "~components/VisuallyHidden"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./LoadingSpinner.module.scss"
|
|
6
6
|
|
|
7
7
|
export type LoadingSpinnerProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, waitFor } 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 { ConfirmationModal, ConfirmationModalProps } from "./ConfirmationModal"
|
|
6
6
|
|
|
7
7
|
const user = userEvent.setup()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, waitFor } 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 { ContextModal, ContextModalProps } from "./ContextModal"
|
|
6
6
|
|
|
7
7
|
const user = userEvent.setup()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Button, ButtonProps } from "~components/__actions__/v2"
|
|
4
|
-
import { useMediaQueries } from "~utils/useMediaQueries"
|
|
4
|
+
import { useMediaQueries } from "~components/utils/useMediaQueries"
|
|
5
5
|
import { ModalBody } from "../ModalBody/ModalBody"
|
|
6
6
|
import styles from "./ModalFooter.module.scss"
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, waitFor } 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 { InputEditModal, InputEditModalProps } from "./InputEditModal"
|
|
6
6
|
|
|
7
7
|
const user = userEvent.setup()
|
|
@@ -3,7 +3,7 @@ import classnames from "classnames"
|
|
|
3
3
|
import { ReactFocusOnProps } from "react-focus-on/dist/es5/types"
|
|
4
4
|
import { FieldMessage, FieldMessageProps } from "~components/FieldMessage"
|
|
5
5
|
import { Heading } from "~components/Heading"
|
|
6
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
6
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
7
7
|
import {
|
|
8
8
|
MultiSelectOptions,
|
|
9
9
|
MultiSelectOptionsProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef, InputHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { CheckIcon, MinusIcon } from "~components/Icon"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./Checkbox.module.scss"
|
|
6
6
|
|
|
7
7
|
export type CheckedStatus = "checked" | "unchecked" | "indeterminate"
|
|
@@ -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 { MultiSelectOption } from "../../types"
|
|
5
5
|
import { Checkbox, CheckboxProps } from "../Checkbox"
|
|
6
6
|
import styles from "./MultiSelectOptionField.module.scss"
|
|
@@ -2,7 +2,7 @@ import React, { HTMLAttributes } from "react"
|
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Text } from "~components/Text"
|
|
4
4
|
import { VisuallyHidden } from "~components/VisuallyHidden"
|
|
5
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
5
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import { MultiSelectOption } from "../../types"
|
|
7
7
|
import { MultiSelectOptionField } from "../MultiSelectOptionField"
|
|
8
8
|
import styles from "./MultiSelectOptions.module.scss"
|
|
@@ -4,7 +4,7 @@ import { ClearButton } from "~components/ClearButton"
|
|
|
4
4
|
import { FieldMessageProps } from "~components/FieldMessage"
|
|
5
5
|
import { ChevronDownIcon, ChevronUpIcon } from "~components/Icon"
|
|
6
6
|
import { RemovableTag } from "~components/__future__"
|
|
7
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
7
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
8
8
|
import { MultiSelectOption } from "../../types"
|
|
9
9
|
import styles from "./MultiSelectToggle.module.scss"
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import classnames from "classnames"
|
|
14
14
|
import { FocusOn } from "react-focus-on"
|
|
15
15
|
import { ReactFocusOnProps } from "react-focus-on/dist/es5/types"
|
|
16
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
16
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
17
17
|
import styles from "./Popover.module.scss"
|
|
18
18
|
|
|
19
19
|
export type PopoverProps<RT extends ReferenceType = ReferenceType> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { HeadingProps } from "~components/Heading"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import {
|
|
6
6
|
GenericNotification,
|
|
7
7
|
GenericNotificationType,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import { createPortal } from "react-dom"
|
|
3
3
|
import { GenericNotification } from "~components/Notification/subcomponents/GenericNotification"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import { ToastNotificationObj } from "../../../types"
|
|
6
6
|
|
|
7
7
|
export type ToastNotificationsMapProps = {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
NotificationType,
|
|
6
6
|
NotificationVariant,
|
|
7
7
|
} from "~components/Notification/types"
|
|
8
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
8
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
9
9
|
import { CancelButton } from "../CancelButton"
|
|
10
10
|
import { NotificationHeading } from "../NotificationHeading"
|
|
11
11
|
import {
|
|
@@ -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 { DirectionalLink } from "./subcomponents/DirectionalLink"
|
|
5
5
|
import { PaginationLink } from "./subcomponents/PaginationLink"
|
|
6
6
|
import { TruncateIndicator } from "./subcomponents/TruncateIndicator"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@import "~@kaizen/design-tokens/sass/color";
|
|
2
2
|
@import "~@kaizen/design-tokens/sass/border";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
4
3
|
@import "../../styles/utils/button-reset";
|
|
5
4
|
|
|
6
5
|
// Sync with PopoverModern.tsx
|
|
@@ -50,7 +49,7 @@ $large-width: 450px;
|
|
|
50
49
|
filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.1));
|
|
51
50
|
border-radius: $border-solid-border-radius;
|
|
52
51
|
color: $color-purple-800;
|
|
53
|
-
text-align:
|
|
52
|
+
text-align: start;
|
|
54
53
|
padding-block: calc(var(--spacing-12) - var(--border-width))
|
|
55
54
|
calc(var(--spacing-16) - var(--border-width));
|
|
56
55
|
padding-inline: calc(var(--spacing-16) - var(--border-width));
|
|
@@ -123,11 +122,11 @@ $cautionary-box-border-color: var(--color-yellow-700);
|
|
|
123
122
|
|
|
124
123
|
.header {
|
|
125
124
|
position: relative;
|
|
126
|
-
margin-bottom:
|
|
125
|
+
margin-bottom: var(--spacing-6);
|
|
127
126
|
display: flex;
|
|
128
127
|
align-items: center;
|
|
129
128
|
white-space: nowrap;
|
|
130
|
-
padding-
|
|
129
|
+
padding-inline-end: var(--spacing-24);
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
.container {
|
|
@@ -137,7 +136,7 @@ $cautionary-box-border-color: var(--color-yellow-700);
|
|
|
137
136
|
|
|
138
137
|
.icon {
|
|
139
138
|
display: inherit;
|
|
140
|
-
margin-
|
|
139
|
+
margin-inline-end: var(--spacing-6);
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
.informativeIcon {
|
|
@@ -205,7 +204,6 @@ $cautionary-box-border-color: var(--color-yellow-700);
|
|
|
205
204
|
* Hence, the confusion below.
|
|
206
205
|
*/
|
|
207
206
|
|
|
208
|
-
.arrowSideTop,
|
|
209
207
|
[data-popper-placement^="bottom"] .arrowWrapper {
|
|
210
208
|
bottom: 100%;
|
|
211
209
|
left: 50%;
|
|
@@ -216,7 +214,6 @@ $cautionary-box-border-color: var(--color-yellow-700);
|
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
|
|
219
|
-
.arrowSideLeft,
|
|
220
217
|
[data-popper-placement^="left"] .arrowWrapper {
|
|
221
218
|
right: 0;
|
|
222
219
|
margin-right: -10px;
|
|
@@ -226,7 +223,6 @@ $cautionary-box-border-color: var(--color-yellow-700);
|
|
|
226
223
|
}
|
|
227
224
|
}
|
|
228
225
|
|
|
229
|
-
.arrowSideRight,
|
|
230
226
|
[data-popper-placement^="right"] .arrowWrapper {
|
|
231
227
|
left: 0;
|
|
232
228
|
margin-left: -10px;
|
|
@@ -236,29 +232,11 @@ $cautionary-box-border-color: var(--color-yellow-700);
|
|
|
236
232
|
}
|
|
237
233
|
}
|
|
238
234
|
|
|
239
|
-
.arrowSideBottom,
|
|
240
235
|
[data-popper-placement^="top"] .arrowWrapper {
|
|
241
236
|
top: 100%;
|
|
242
237
|
left: 50%;
|
|
243
238
|
}
|
|
244
239
|
|
|
245
|
-
// Legacy component only
|
|
246
|
-
.arrowPositionCenter {
|
|
247
|
-
transform: translateX(-50%);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// Legacy component only
|
|
251
|
-
.arrowPositionStart {
|
|
252
|
-
left: $spacing-md;
|
|
253
|
-
right: auto;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// Legacy component only
|
|
257
|
-
.arrowPositionEnd {
|
|
258
|
-
right: $spacing-md;
|
|
259
|
-
left: auto;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
240
|
.large {
|
|
263
241
|
width: auto;
|
|
264
242
|
max-width: $large-width;
|
package/src/Popover/Popover.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { usePopper } from "react-popper"
|
|
|
4
4
|
import { Heading } from "~components/Heading"
|
|
5
5
|
import { CloseIcon } from "~components/Icon"
|
|
6
6
|
import { Text } from "~components/Text"
|
|
7
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
7
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
8
8
|
import { Placement, PopoverSize, PopoverVariant } from "./types"
|
|
9
9
|
import {
|
|
10
10
|
mapArrowVariantToClass,
|
|
@@ -18,6 +18,9 @@ import styles from "./Popover.module.scss"
|
|
|
18
18
|
|
|
19
19
|
export type PopoverProps = {
|
|
20
20
|
children: React.ReactNode
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated We are no longer supporting different variants for Popover, instead there will only be a single default variant.
|
|
23
|
+
*/
|
|
21
24
|
variant?: PopoverVariant
|
|
22
25
|
placement?: Placement
|
|
23
26
|
size?: PopoverSize
|
|
@@ -26,8 +29,7 @@ export type PopoverProps = {
|
|
|
26
29
|
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void
|
|
27
30
|
singleLine?: boolean
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
30
|
-
* Please avoid using a custom icon unless you have a very good reason to do so.
|
|
32
|
+
* @deprecated This was for customising the icon provided with variants.
|
|
31
33
|
*/
|
|
32
34
|
customIcon?: JSX.Element
|
|
33
35
|
referenceElement: HTMLElement | null
|
|
@@ -58,7 +58,7 @@ const StickerSheetTemplate: StickerSheetStory = {
|
|
|
58
58
|
hasVerticalHeadings
|
|
59
59
|
/>
|
|
60
60
|
<StickerSheet.Body>
|
|
61
|
-
<StickerSheet.Row rowTitle="Variants">
|
|
61
|
+
<StickerSheet.Row rowTitle="Variants (deprecated)">
|
|
62
62
|
<StickerSheet.Cell style={cellStyle}>
|
|
63
63
|
<PopoverWrapper />
|
|
64
64
|
</StickerSheet.Cell>
|