@kaizen/components 0.0.0-canary-debug-kaizen-provider-final-20250107212529 → 0.0.0-canary-fix-filter-select-jump-issue-useHasStableYPosition-20250120225815
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/upgradeIconV1/getNewIconPropsFromOldIconName.ts +1 -1
- package/dist/cjs/Avatar/Avatar.cjs +12 -12
- package/dist/cjs/Avatar/Avatar.module.css.cjs +20 -0
- package/dist/cjs/AvatarGroup/AvatarGroup.cjs +5 -5
- package/dist/cjs/AvatarGroup/AvatarGroup.module.css.cjs +11 -0
- package/dist/cjs/Badge/Badge.cjs +4 -4
- package/dist/cjs/Badge/Badge.module.css.cjs +13 -0
- package/dist/cjs/Brand/Brand.cjs +2 -2
- package/dist/cjs/Brand/{Brand.module.scss.cjs → Brand.module.css.cjs} +1 -1
- package/dist/cjs/BrandMoment/BrandMoment.cjs +1 -1
- package/dist/cjs/BrandMoment/BrandMoment.module.css.cjs +29 -0
- package/dist/cjs/Button/GenericButton/GenericButton.cjs +10 -10
- package/dist/cjs/ButtonGroup/ButtonGroup.cjs +1 -1
- package/dist/cjs/ButtonGroup/ButtonGroup.module.css.cjs +9 -0
- package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +4 -4
- package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +3 -3
- package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +2 -2
- package/dist/cjs/Calendar/utils/calculateDisabledDays.cjs +1 -1
- package/dist/cjs/Calendar/utils/isSelectingDayInCalendar.cjs +1 -1
- package/dist/cjs/Calendar/utils/setFocusInCalendar.cjs +1 -1
- package/dist/cjs/Card/Card.cjs +3 -3
- package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +3 -3
- package/dist/cjs/Checkbox/CheckboxField/CheckboxField.cjs +4 -4
- package/dist/cjs/Checkbox/CheckboxGroup/CheckboxGroup.cjs +3 -3
- package/dist/cjs/ClearButton/ClearButton.cjs +1 -1
- package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -4
- package/dist/cjs/Collapsible/CollapsibleGroup/CollapsibleGroup.cjs +3 -3
- package/dist/cjs/DateInput/DateInput/DateInput.cjs +1 -1
- package/dist/cjs/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.cjs +1 -1
- package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +2 -2
- package/dist/cjs/DatePicker/DatePicker.cjs +11 -11
- package/dist/cjs/DatePicker/subcomponents/DateInputField/DateInputField.cjs +3 -3
- package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -5
- package/dist/cjs/DateRangePicker/utils/formatDateRangeValue.cjs +2 -2
- package/dist/cjs/Divider/Divider.cjs +1 -1
- package/dist/cjs/EmptyState/EmptyState.cjs +4 -4
- package/dist/cjs/ErrorPage/ErrorPage.cjs +4 -4
- package/dist/cjs/FieldGroup/FieldGroup.cjs +1 -1
- package/dist/cjs/FieldMessage/FieldMessage.cjs +3 -3
- package/dist/cjs/Filter/Filter/Filter.cjs +4 -4
- package/dist/cjs/Filter/Filter/subcomponents/FilterContents/FilterContents.cjs +1 -1
- package/dist/cjs/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css.cjs +6 -0
- package/dist/cjs/Filter/Filter/subcomponents/FilterPopover/FilterPopover.cjs +3 -3
- package/dist/cjs/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css.cjs +6 -0
- package/dist/cjs/Filter/FilterBar/context/reducer/filterBarStateReducer.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/context/reducer/setupFilterBarState.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css.cjs +7 -0
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.cjs +3 -3
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +3 -3
- package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +2 -2
- package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +3 -3
- package/dist/cjs/Filter/FilterDatePicker/FilterDatePicker.cjs +1 -1
- package/dist/cjs/Filter/FilterDatePicker/hooks/useDateInputHandlers.cjs +6 -6
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.cjs +5 -5
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.cjs +4 -4
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/FilterDateRangePicker.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.cjs +7 -7
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.cjs +18 -18
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.cjs +2 -2
- package/dist/cjs/Filter/FilterDateRangePicker/utils/isCompleteDateRange.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/FilterMultiSelect.cjs +2 -2
- package/dist/cjs/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +3 -3
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.cjs +2 -2
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/FilterTriggerButton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/utils/getTruncatedLabel.cjs +1 -1
- package/dist/cjs/Filter/FilterSelect/FilterSelect.cjs +2 -2
- package/dist/cjs/Filter/FilterSelect/FilterSelect.module.css.cjs +6 -0
- package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +13 -13
- package/dist/cjs/Heading/Heading.cjs +2 -2
- package/dist/cjs/Icon/subcomponents/SVG/SVG.cjs +2 -2
- package/dist/cjs/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.cjs +1 -1
- package/dist/cjs/Illustration/Scene/Scene.cjs +8 -8
- package/dist/cjs/Illustration/subcomponents/Base/Base.cjs +1 -1
- package/dist/cjs/Illustration/subcomponents/VideoPlayer/VideoPlayer.cjs +3 -3
- package/dist/cjs/Input/Input/Input.cjs +3 -3
- package/dist/cjs/Input/InputRange/InputRange.cjs +5 -5
- package/dist/cjs/Input/InputSearch/InputSearch.cjs +5 -5
- package/dist/cjs/KaizenProvider/KaizenProvider.cjs +1 -1
- package/dist/cjs/Label/Label.cjs +5 -5
- package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +9 -9
- package/dist/cjs/LikertScaleLegacy/utils/determineSelectionFromKeyPress.cjs +2 -2
- package/dist/cjs/LinkButton/LinkButton.cjs +6 -6
- package/dist/cjs/Loading/LoadingInput/LoadingInput.cjs +1 -1
- package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.cjs +2 -2
- package/dist/cjs/Menu/Menu.cjs +3 -3
- package/dist/cjs/Menu/subcomponents/MenuDropdown/MenuDropdown.cjs +5 -5
- package/dist/cjs/Menu/subcomponents/MenuList/MenuList.cjs +1 -1
- package/dist/cjs/Menu/subcomponents/StatelessMenu/StatelessMenu.cjs +3 -3
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +5 -5
- package/dist/cjs/Modal/ContextModal/ContextModal.cjs +4 -4
- package/dist/cjs/Modal/GenericModal/GenericModal.cjs +8 -8
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalBody/ModalBody.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.cjs +1 -1
- package/dist/cjs/Modal/InputEditModal/InputEditModal.cjs +4 -4
- package/dist/cjs/MultiSelect/MultiSelect.cjs +3 -3
- package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +1 -1
- package/dist/cjs/MultiSelect/subcomponents/Popover/Popover.cjs +1 -1
- package/dist/cjs/Notification/GlobalNotification/GlobalNotification.cjs +1 -1
- package/dist/cjs/Notification/InlineNotification/InlineNotification.cjs +2 -2
- package/dist/cjs/Notification/ToastNotification/ToastNotification/ToastNotification.cjs +2 -2
- package/dist/cjs/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.cjs +4 -2
- package/dist/cjs/Notification/subcomponents/GenericNotification/GenericNotification.cjs +2 -2
- package/dist/cjs/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +3 -3
- package/dist/cjs/Pagination/Pagination.cjs +1 -1
- package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +2 -2
- package/dist/cjs/Pagination/subcomponents/PaginationLink/PaginationLink.cjs +2 -2
- package/dist/cjs/Popover/Popover.cjs +6 -6
- package/dist/cjs/ProgressBar/ProgressBar.cjs +1 -1
- package/dist/cjs/ProgressBar/subcomponents/Label/Label.cjs +1 -1
- package/dist/cjs/Radio/Radio/Radio.cjs +2 -2
- package/dist/cjs/Radio/RadioField/RadioField.cjs +4 -4
- package/dist/cjs/Radio/RadioGroup/RadioGroup.cjs +3 -3
- package/dist/cjs/RichTextEditor/EditableRichTextContent/EditableRichTextContent.cjs +1 -1
- package/dist/cjs/RichTextEditor/RichTextContent/RichTextContent.cjs +1 -1
- package/dist/cjs/RichTextEditor/RichTextEditor/RichTextEditor.cjs +6 -6
- package/dist/cjs/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.cjs +3 -3
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +12 -12
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/keymap.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/getMarkRange.cjs +2 -2
- package/dist/cjs/RichTextEditor/utils/commands/listIsActive.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/markIsActive.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/removeMark.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/updateMark.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/core/createRichTextEditor.cjs +4 -4
- package/dist/cjs/RichTextEditor/utils/core/state.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/LinkManager.cjs +5 -5
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.cjs +5 -5
- package/dist/cjs/SearchField/SearchField.cjs +3 -3
- package/dist/cjs/Select/Select.cjs +6 -6
- package/dist/cjs/Skirt/Skirt.cjs +2 -2
- package/dist/cjs/Slider/Slider.cjs +3 -3
- package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +1 -1
- package/dist/cjs/Table/Table.cjs +7 -7
- package/dist/cjs/Tabs/subcomponents/Tab.cjs +2 -2
- package/dist/cjs/Tabs/subcomponents/TabList.cjs +1 -1
- package/dist/cjs/Tag/Tag.cjs +4 -4
- package/dist/cjs/Text/Text.cjs +2 -2
- package/dist/cjs/TextArea/TextArea.cjs +7 -7
- package/dist/cjs/TextAreaField/TextAreaField.cjs +5 -5
- package/dist/cjs/TextField/TextField.cjs +3 -3
- package/dist/cjs/Tile/TileGrid/TileGrid.cjs +1 -1
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +4 -4
- package/dist/cjs/TimeField/TimeField.cjs +2 -2
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +13 -13
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +6 -6
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +6 -6
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +1 -1
- package/dist/cjs/TitleBlockZen/subcomponents/Toolbar.cjs +1 -1
- package/dist/cjs/TitleBlockZen/utils.cjs +1 -1
- package/dist/cjs/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +2 -2
- package/dist/cjs/Tooltip/Tooltip.cjs +5 -5
- package/dist/cjs/Tooltip/subcomponents/AppearanceAnim.cjs +1 -1
- package/dist/cjs/Tooltip/utils/isSemanticElement.cjs +1 -1
- package/dist/cjs/Well/Well.cjs +3 -3
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Actions/Actions.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.cjs +1 -1
- package/dist/cjs/__rc__/Button/Button.cjs +6 -6
- package/dist/cjs/__rc__/Button/subcomponents/ButtonContent/ButtonContent.cjs +2 -2
- package/dist/cjs/__rc__/Button/subcomponents/PendingContent/PendingContent.cjs +2 -2
- package/dist/cjs/__rc__/Menu/MenuItem.cjs +3 -3
- package/dist/cjs/__rc__/Select/Select.cjs +5 -5
- package/dist/cjs/__rc__/Select/hooks/useHasStableYPosition.cjs +36 -0
- package/dist/cjs/__rc__/Select/subcomponents/ListBox/ListBox.cjs +6 -7
- package/dist/cjs/__rc__/Select/subcomponents/Option/Option.cjs +1 -1
- package/dist/cjs/__rc__/Select/subcomponents/SelectToggle/SelectToggle.cjs +2 -2
- package/dist/cjs/__rc__/Tabs/subcomponents/Tab/Tab.cjs +3 -6
- package/dist/cjs/__rc__/Tabs/subcomponents/TabList/TabList.cjs +4 -4
- package/dist/cjs/__rc__/Tag/Tag/Tag.cjs +1 -1
- package/dist/cjs/__rc__/Tooltip/Tooltip.cjs +1 -1
- package/dist/cjs/__utilities__/ReversedColors/v3/ReversedColors.cjs +1 -1
- package/dist/cjs/__utilities__/isRTL/isRTL.cjs +1 -1
- package/dist/cjs/utils/mergeClassNames.cjs +2 -2
- package/dist/cjs/utils/useMediaQueries.cjs +1 -1
- package/dist/cjs/utils/useResizeObserver.cjs +1 -1
- package/dist/esm/Avatar/Avatar.mjs +15 -15
- package/dist/esm/Avatar/Avatar.module.css.mjs +18 -0
- package/dist/esm/AvatarGroup/AvatarGroup.mjs +6 -6
- package/dist/esm/AvatarGroup/AvatarGroup.module.css.mjs +9 -0
- package/dist/esm/Badge/Badge.mjs +4 -4
- package/dist/esm/Badge/Badge.module.css.mjs +11 -0
- package/dist/esm/Brand/Brand.mjs +2 -2
- package/dist/esm/Brand/{Brand.module.scss.mjs → Brand.module.css.mjs} +1 -1
- package/dist/esm/BrandMoment/BrandMoment.mjs +6 -6
- package/dist/esm/BrandMoment/BrandMoment.module.css.mjs +27 -0
- package/dist/esm/Button/GenericButton/GenericButton.mjs +12 -12
- package/dist/esm/ButtonGroup/ButtonGroup.mjs +1 -1
- package/dist/esm/ButtonGroup/ButtonGroup.module.css.mjs +7 -0
- package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +4 -4
- package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +3 -3
- package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +2 -2
- package/dist/esm/Calendar/utils/calculateDisabledDays.mjs +1 -1
- package/dist/esm/Calendar/utils/isSelectingDayInCalendar.mjs +1 -1
- package/dist/esm/Calendar/utils/setFocusInCalendar.mjs +1 -1
- package/dist/esm/Card/Card.mjs +3 -3
- package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +3 -3
- package/dist/esm/Checkbox/CheckboxField/CheckboxField.mjs +4 -4
- package/dist/esm/Checkbox/CheckboxGroup/CheckboxGroup.mjs +3 -3
- package/dist/esm/ClearButton/ClearButton.mjs +1 -1
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +6 -6
- package/dist/esm/Collapsible/CollapsibleGroup/CollapsibleGroup.mjs +3 -3
- package/dist/esm/DateInput/DateInput/DateInput.mjs +1 -1
- package/dist/esm/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.mjs +1 -1
- package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +2 -2
- package/dist/esm/DatePicker/DatePicker.mjs +12 -12
- package/dist/esm/DatePicker/subcomponents/DateInputField/DateInputField.mjs +4 -4
- package/dist/esm/DatePicker/utils/validateDate.mjs +3 -3
- package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -5
- package/dist/esm/DateRangePicker/utils/formatDateRangeValue.mjs +2 -2
- package/dist/esm/Divider/Divider.mjs +1 -1
- package/dist/esm/EmptyState/EmptyState.mjs +6 -6
- package/dist/esm/ErrorPage/ErrorPage.mjs +4 -4
- package/dist/esm/FieldGroup/FieldGroup.mjs +1 -1
- package/dist/esm/FieldMessage/FieldMessage.mjs +4 -4
- package/dist/esm/Filter/Filter/Filter.mjs +5 -5
- package/dist/esm/Filter/Filter/subcomponents/FilterContents/FilterContents.mjs +1 -1
- package/dist/esm/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css.mjs +4 -0
- package/dist/esm/Filter/Filter/subcomponents/FilterPopover/FilterPopover.mjs +3 -3
- package/dist/esm/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css.mjs +4 -0
- package/dist/esm/Filter/FilterBar/context/reducer/filterBarStateReducer.mjs +1 -1
- package/dist/esm/Filter/FilterBar/context/reducer/setupFilterBarState.mjs +1 -1
- package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +1 -1
- package/dist/esm/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.mjs +1 -1
- package/dist/esm/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css.mjs +5 -0
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +4 -4
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.mjs +2 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.mjs +2 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +5 -5
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +3 -3
- package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +3 -3
- package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +3 -3
- package/dist/esm/Filter/FilterDatePicker/FilterDatePicker.mjs +1 -1
- package/dist/esm/Filter/FilterDatePicker/hooks/useDateInputHandlers.mjs +6 -6
- package/dist/esm/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.mjs +6 -6
- package/dist/esm/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.mjs +4 -4
- package/dist/esm/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.mjs +1 -1
- package/dist/esm/Filter/FilterDatePicker/utils/getDateValidationHandler.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/FilterDateRangePicker.mjs +2 -2
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.mjs +8 -8
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.mjs +18 -18
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.mjs +2 -2
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/utils/isCompleteDateRange.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/FilterMultiSelect.mjs +2 -2
- package/dist/esm/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.mjs +3 -3
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +3 -3
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.mjs +2 -2
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/FilterTriggerButton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/utils/getTruncatedLabel.mjs +1 -1
- package/dist/esm/Filter/FilterSelect/FilterSelect.mjs +2 -2
- package/dist/esm/Filter/FilterSelect/FilterSelect.module.css.mjs +4 -0
- package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +15 -15
- package/dist/esm/Heading/Heading.mjs +2 -2
- package/dist/esm/Icon/subcomponents/SVG/SVG.mjs +2 -2
- package/dist/esm/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs +1 -1
- package/dist/esm/Illustration/Scene/Scene.mjs +8 -8
- package/dist/esm/Illustration/subcomponents/Base/Base.mjs +3 -3
- package/dist/esm/Illustration/subcomponents/VideoPlayer/VideoPlayer.mjs +3 -3
- package/dist/esm/Input/Input/Input.mjs +3 -3
- package/dist/esm/Input/InputRange/InputRange.mjs +6 -6
- package/dist/esm/Input/InputSearch/InputSearch.mjs +8 -8
- package/dist/esm/KaizenProvider/KaizenProvider.mjs +1 -1
- package/dist/esm/Label/Label.mjs +5 -5
- package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +10 -10
- package/dist/esm/LikertScaleLegacy/utils/determineSelectionFromKeyPress.mjs +2 -2
- package/dist/esm/LinkButton/LinkButton.mjs +6 -6
- package/dist/esm/Loading/LoadingInput/LoadingInput.mjs +1 -1
- package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.mjs +2 -2
- package/dist/esm/Menu/Menu.mjs +3 -3
- package/dist/esm/Menu/subcomponents/MenuDropdown/MenuDropdown.mjs +5 -5
- package/dist/esm/Menu/subcomponents/MenuList/MenuList.mjs +1 -1
- package/dist/esm/Menu/subcomponents/StatelessMenu/StatelessMenu.mjs +4 -4
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +5 -5
- package/dist/esm/Modal/ContextModal/ContextModal.mjs +5 -5
- package/dist/esm/Modal/GenericModal/GenericModal.mjs +9 -9
- package/dist/esm/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalBody/ModalBody.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.mjs +1 -1
- package/dist/esm/Modal/InputEditModal/InputEditModal.mjs +4 -4
- package/dist/esm/MultiSelect/MultiSelect.mjs +4 -4
- package/dist/esm/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.mjs +1 -1
- package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +2 -2
- package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +2 -2
- package/dist/esm/Notification/GlobalNotification/GlobalNotification.mjs +1 -1
- package/dist/esm/Notification/InlineNotification/InlineNotification.mjs +2 -2
- package/dist/esm/Notification/ToastNotification/ToastNotification/ToastNotification.mjs +2 -2
- package/dist/esm/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +6 -4
- package/dist/esm/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.mjs +1 -1
- package/dist/esm/Notification/subcomponents/GenericNotification/GenericNotification.mjs +5 -5
- package/dist/esm/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +3 -3
- package/dist/esm/Pagination/Pagination.mjs +3 -3
- package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +2 -2
- package/dist/esm/Pagination/subcomponents/PaginationLink/PaginationLink.mjs +2 -2
- package/dist/esm/Popover/Popover.mjs +9 -9
- package/dist/esm/ProgressBar/ProgressBar.mjs +2 -2
- package/dist/esm/ProgressBar/subcomponents/Label/Label.mjs +1 -1
- package/dist/esm/Radio/Radio/Radio.mjs +2 -2
- package/dist/esm/Radio/RadioField/RadioField.mjs +4 -4
- package/dist/esm/Radio/RadioGroup/RadioGroup.mjs +3 -3
- package/dist/esm/RichTextEditor/EditableRichTextContent/EditableRichTextContent.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextContent/RichTextContent.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +9 -9
- package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.mjs +3 -3
- package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +12 -12
- package/dist/esm/RichTextEditor/RichTextEditor/utils/keymap.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/getMarkRange.mjs +2 -2
- package/dist/esm/RichTextEditor/utils/commands/listIsActive.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/markIsActive.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/removeMark.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/updateMark.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/core/createRichTextEditor.mjs +4 -4
- package/dist/esm/RichTextEditor/utils/core/state.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/LinkManager.mjs +5 -5
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.mjs +2 -2
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.mjs +5 -5
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/createReactTooltipWrapper.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/validation.mjs +1 -1
- package/dist/esm/SearchField/SearchField.mjs +4 -4
- package/dist/esm/Select/Select.mjs +7 -7
- package/dist/esm/Skirt/Skirt.mjs +2 -2
- package/dist/esm/Slider/Slider.mjs +4 -4
- package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +1 -1
- package/dist/esm/Table/Table.mjs +21 -21
- package/dist/esm/Tabs/subcomponents/Tab.mjs +3 -3
- package/dist/esm/Tabs/subcomponents/TabList.mjs +1 -1
- package/dist/esm/Tag/Tag.mjs +6 -6
- package/dist/esm/Text/Text.mjs +2 -2
- package/dist/esm/TextArea/TextArea.mjs +7 -7
- package/dist/esm/TextAreaField/TextAreaField.mjs +6 -6
- package/dist/esm/TextField/TextField.mjs +6 -6
- package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs +1 -1
- package/dist/esm/Tile/TileGrid/TileGrid.mjs +2 -2
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +8 -8
- package/dist/esm/TimeField/TimeField.mjs +2 -2
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +22 -22
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +11 -11
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +9 -9
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +3 -3
- package/dist/esm/TitleBlockZen/subcomponents/Toolbar.mjs +1 -1
- package/dist/esm/TitleBlockZen/utils.mjs +1 -1
- package/dist/esm/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +2 -2
- package/dist/esm/Tooltip/Tooltip.mjs +6 -6
- package/dist/esm/Tooltip/subcomponents/AppearanceAnim.mjs +1 -1
- package/dist/esm/Tooltip/utils/isSemanticElement.mjs +1 -1
- package/dist/esm/Well/Well.mjs +3 -3
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -2
- package/dist/esm/Workflow/subcomponents/Header/components/Actions/Actions.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.mjs +1 -1
- package/dist/esm/__rc__/Button/Button.mjs +6 -6
- package/dist/esm/__rc__/Button/subcomponents/ButtonContent/ButtonContent.mjs +3 -3
- package/dist/esm/__rc__/Button/subcomponents/PendingContent/PendingContent.mjs +3 -3
- package/dist/esm/__rc__/Menu/MenuItem.mjs +3 -3
- package/dist/esm/__rc__/Select/Select.mjs +8 -8
- package/dist/esm/__rc__/Select/hooks/useHasStableYPosition.mjs +34 -0
- package/dist/esm/__rc__/Select/subcomponents/ListBox/ListBox.mjs +6 -7
- package/dist/esm/__rc__/Select/subcomponents/ListBoxSection/ListBoxSection.mjs +1 -1
- package/dist/esm/__rc__/Select/subcomponents/ListItem/ListItem.mjs +2 -2
- package/dist/esm/__rc__/Select/subcomponents/Option/Option.mjs +1 -1
- package/dist/esm/__rc__/Select/subcomponents/SelectToggle/SelectToggle.mjs +2 -2
- package/dist/esm/__rc__/Select/utils/transformSelectItemToCollectionElement.mjs +2 -2
- package/dist/esm/__rc__/Tabs/subcomponents/Tab/Tab.mjs +3 -6
- package/dist/esm/__rc__/Tabs/subcomponents/TabList/TabList.mjs +4 -4
- package/dist/esm/__rc__/Tag/Tag/Tag.mjs +1 -1
- package/dist/esm/__rc__/Tooltip/Tooltip.mjs +2 -2
- package/dist/esm/__utilities__/ReversedColors/v3/ReversedColors.mjs +1 -1
- package/dist/esm/__utilities__/isRTL/isRTL.mjs +1 -1
- package/dist/esm/utils/getNodeText.mjs +1 -1
- package/dist/esm/utils/mergeClassNames.mjs +2 -2
- package/dist/esm/utils/useMediaQueries.mjs +1 -1
- package/dist/esm/utils/useResizeObserver.mjs +1 -1
- package/dist/styles.css +331 -297
- package/dist/types/__rc__/Select/hooks/useHasStableYPosition.d.ts +5 -0
- package/package.json +11 -11
- package/src/Avatar/Avatar.module.css +138 -0
- package/src/Avatar/Avatar.tsx +6 -3
- package/src/AvatarGroup/AvatarGroup.module.css +57 -0
- package/src/AvatarGroup/AvatarGroup.tsx +1 -1
- package/src/Badge/Badge.module.css +97 -0
- package/src/Badge/Badge.tsx +1 -1
- package/src/Brand/Brand.tsx +1 -1
- package/src/BrandMoment/{BrandMoment.module.scss → BrandMoment.module.css} +29 -50
- package/src/BrandMoment/BrandMoment.tsx +1 -1
- package/src/ButtonGroup/ButtonGroup.module.css +48 -0
- package/src/ButtonGroup/ButtonGroup.tsx +1 -1
- package/src/Content/Content.module.scss +2 -2
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +3 -0
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.tsx +1 -1
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +7 -0
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.tsx +1 -1
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.tsx +1 -1
- package/src/Filter/FilterSelect/FilterSelect.module.css +8 -0
- package/src/Filter/FilterSelect/FilterSelect.tsx +1 -1
- package/src/Filter/FilterSelect/_docs/FilterSelect.stories.tsx +45 -0
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx +5 -2
- package/src/Tile/TileGrid/TileGrid.module.scss +2 -0
- package/src/__rc__/Icon/_docs/Icon--migration-guide.mdx +28 -0
- package/src/__rc__/Icon/_docs/Icon.docs.stories.tsx +38 -0
- package/src/__rc__/Menu/MenuItem.tsx +8 -10
- package/src/__rc__/Select/hooks/useHasStableYPosition.ts +31 -0
- package/src/__rc__/Select/subcomponents/ListBox/ListBox.tsx +5 -6
- package/src/__rc__/Tabs/subcomponents/Tab/Tab.tsx +11 -3
- package/dist/cjs/Avatar/Avatar.module.scss.cjs +0 -20
- package/dist/cjs/AvatarGroup/AvatarGroup.module.scss.cjs +0 -11
- package/dist/cjs/Badge/Badge.module.scss.cjs +0 -14
- package/dist/cjs/BrandMoment/BrandMoment.module.scss.cjs +0 -29
- package/dist/cjs/ButtonGroup/ButtonGroup.module.scss.cjs +0 -9
- package/dist/cjs/Filter/Filter/subcomponents/FilterContents/FilterContents.module.scss.cjs +0 -6
- package/dist/cjs/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.scss.cjs +0 -6
- package/dist/cjs/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.scss.cjs +0 -7
- package/dist/cjs/Filter/FilterSelect/FilterSelect.module.scss.cjs +0 -6
- package/dist/cjs/__utilities__/useIsClientReady/useIsClientReady.cjs +0 -20
- package/dist/esm/Avatar/Avatar.module.scss.mjs +0 -18
- package/dist/esm/AvatarGroup/AvatarGroup.module.scss.mjs +0 -9
- package/dist/esm/Badge/Badge.module.scss.mjs +0 -12
- package/dist/esm/BrandMoment/BrandMoment.module.scss.mjs +0 -27
- package/dist/esm/ButtonGroup/ButtonGroup.module.scss.mjs +0 -7
- package/dist/esm/Filter/Filter/subcomponents/FilterContents/FilterContents.module.scss.mjs +0 -4
- package/dist/esm/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.scss.mjs +0 -4
- package/dist/esm/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.scss.mjs +0 -5
- package/dist/esm/Filter/FilterSelect/FilterSelect.module.scss.mjs +0 -4
- package/dist/esm/__utilities__/useIsClientReady/useIsClientReady.mjs +0 -18
- package/src/Avatar/Avatar.module.scss +0 -169
- package/src/AvatarGroup/AvatarGroup.module.scss +0 -79
- package/src/Badge/Badge.module.scss +0 -113
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.scss +0 -5
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.scss +0 -11
- package/src/Filter/FilterSelect/FilterSelect.module.scss +0 -10
- /package/src/Brand/{Brand.module.scss → Brand.module.css} +0 -0
- /package/src/Filter/FilterBar/subcomponents/ClearAllButton/{ClearAllButton.module.scss → ClearAllButton.module.css} +0 -0
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
.content {
|
|
5
5
|
max-width: $layout-content-max-width;
|
|
6
|
-
|
|
6
|
+
padding: 0 $layout-content-side-margin;
|
|
7
7
|
width: 100%;
|
|
8
8
|
|
|
9
9
|
@media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
|
|
10
|
-
|
|
10
|
+
padding: 0 $content-margin-width-on-medium-and-small;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type HTMLAttributes } from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
4
|
-
import styles from './FilterContents.module.
|
|
4
|
+
import styles from './FilterContents.module.css'
|
|
5
5
|
|
|
6
6
|
export type FilterContentsProps = {
|
|
7
7
|
children: React.ReactNode
|
|
@@ -3,7 +3,7 @@ import { type Options } from '@popperjs/core'
|
|
|
3
3
|
import classnames from 'classnames'
|
|
4
4
|
import { usePopper } from 'react-popper'
|
|
5
5
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
6
|
-
import styles from './FilterPopover.module.
|
|
6
|
+
import styles from './FilterPopover.module.css'
|
|
7
7
|
|
|
8
8
|
export type FilterPopoverProps = {
|
|
9
9
|
children: React.ReactNode
|
|
@@ -3,7 +3,7 @@ import { useIntl } from '@cultureamp/i18n-react-intl'
|
|
|
3
3
|
import classnames from 'classnames'
|
|
4
4
|
import { Button } from '~components/Button'
|
|
5
5
|
import { useFilterBarContext } from '../../context/FilterBarContext'
|
|
6
|
-
import styles from './ClearAllButton.module.
|
|
6
|
+
import styles from './ClearAllButton.module.css'
|
|
7
7
|
|
|
8
8
|
export const ClearAllButton = (): JSX.Element => {
|
|
9
9
|
const { formatMessage } = useIntl()
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* This a temporary fix to increase specificity, until we figure out why this CSS is being compiled later than the padding in the FilterContents sub-component */
|
|
2
|
+
.filterContents.filterContents {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
min-width: 12.25rem; /* 196px */
|
|
5
|
+
max-width: 25rem; /* 400px */
|
|
6
|
+
overflow: auto;
|
|
7
|
+
padding: unset; /* Padding is added by <SelectPopoverContents> */
|
|
8
|
+
}
|
|
@@ -17,7 +17,7 @@ import { getDisabledKeysFromItems } from '~components/__rc__/Select/utils/getDis
|
|
|
17
17
|
import { transformSelectItemToCollectionElement } from '~components/__rc__/Select/utils/transformSelectItemToCollectionElement'
|
|
18
18
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
19
19
|
import { type SelectItem, type SelectOption } from './types'
|
|
20
|
-
import styles from './FilterSelect.module.
|
|
20
|
+
import styles from './FilterSelect.module.css'
|
|
21
21
|
|
|
22
22
|
type OmittedAriaSelectProps =
|
|
23
23
|
| 'label'
|
|
@@ -100,3 +100,48 @@ export const AdditionalProperties: Story = {
|
|
|
100
100
|
},
|
|
101
101
|
name: 'Additional option properties',
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Extend the option type to have additional properties to use for rendering.
|
|
106
|
+
*/
|
|
107
|
+
export const TestPageWithFilterSelect: Story = {
|
|
108
|
+
render: (args) => {
|
|
109
|
+
const [isOpen, setIsOpen] = useState<boolean>(false)
|
|
110
|
+
|
|
111
|
+
return (
|
|
112
|
+
<div>
|
|
113
|
+
<div style={{ color: 'coral', display: 'block', height: '1500px' }}>Content</div>
|
|
114
|
+
<FilterSelect<SelectOption & { isFruit: boolean }>
|
|
115
|
+
{...args}
|
|
116
|
+
label="Custom"
|
|
117
|
+
isOpen={isOpen}
|
|
118
|
+
setIsOpen={setIsOpen}
|
|
119
|
+
items={[
|
|
120
|
+
{ label: 'Bubblegum', value: 'bubblegum', isFruit: false },
|
|
121
|
+
{ label: 'Strawberry', value: 'strawberry', isFruit: true },
|
|
122
|
+
{ label: 'Chocolate', value: 'chocolate', isFruit: false },
|
|
123
|
+
{ label: 'Apple', value: 'apple', isFruit: true },
|
|
124
|
+
{ label: 'Lemon', value: 'lemon', isFruit: true },
|
|
125
|
+
]}
|
|
126
|
+
>
|
|
127
|
+
{({ items }): JSX.Element[] =>
|
|
128
|
+
items.map((item) =>
|
|
129
|
+
item.type === 'item' ? (
|
|
130
|
+
<FilterSelect.Option
|
|
131
|
+
key={item.key}
|
|
132
|
+
item={{
|
|
133
|
+
...item,
|
|
134
|
+
rendered: item.value?.isFruit ? `${item.rendered} (Fruit)` : item.rendered,
|
|
135
|
+
}}
|
|
136
|
+
/>
|
|
137
|
+
) : (
|
|
138
|
+
<FilterSelect.ItemDefaultRender key={item.key} item={item} />
|
|
139
|
+
),
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
</FilterSelect>
|
|
143
|
+
</div>
|
|
144
|
+
)
|
|
145
|
+
},
|
|
146
|
+
name: 'Additional option properties',
|
|
147
|
+
}
|
package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx
CHANGED
|
@@ -3,15 +3,18 @@ import { useToastNotificationContext } from '../context/ToastNotificationContext
|
|
|
3
3
|
import { ToastNotificationsMap } from './subcomponents/ToastNotificationsMap'
|
|
4
4
|
import styles from './ToastNotificationsList.module.scss'
|
|
5
5
|
|
|
6
|
+
const toastNotificationListId = 'toast-notifications-list'
|
|
7
|
+
|
|
6
8
|
export const ToastNotificationsList = (): JSX.Element => {
|
|
7
9
|
const { notifications, removeToastNotification } = useToastNotificationContext()
|
|
8
10
|
const [toastContainer, setToastContainer] = useState<Element | null>(null)
|
|
9
11
|
|
|
10
12
|
useEffect(() => {
|
|
11
|
-
|
|
13
|
+
// this is to ensure that the container is created only once. Regardless of how many KaizenProvider is set up, they will also reuse the same container.
|
|
14
|
+
let container = document.querySelector(`[id="${toastNotificationListId}"]`)
|
|
12
15
|
if (!container) {
|
|
13
16
|
container = document.createElement('div')
|
|
14
|
-
container.setAttribute('
|
|
17
|
+
container.setAttribute('id', toastNotificationListId)
|
|
15
18
|
container.setAttribute('role', 'status')
|
|
16
19
|
container.className = styles.toastNotificationsList
|
|
17
20
|
document.body.appendChild(container)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Canvas, Meta, Controls, Story } from '@storybook/blocks'
|
|
2
|
+
import { ResourceLinks, KAIOInstallation, LinkTo } from '~storybook/components'
|
|
3
|
+
import * as IconStories from './Icon.docs.stories'
|
|
4
|
+
|
|
5
|
+
<Meta title="Components/Icon/Icon (Future)/Migration Guide" />
|
|
6
|
+
|
|
7
|
+
# Icon Migration Guide
|
|
8
|
+
|
|
9
|
+
This is a short guide to assist in migration from the old to new Icon component.
|
|
10
|
+
|
|
11
|
+
## Codemod
|
|
12
|
+
|
|
13
|
+
To assist in migration we have created the `upgradeiconv1` codemod. This will loop through the given directory and update all instances of Icon to the latest implementation. You can refer to this [README](https://github.com/cultureamp/kaizen-design-system/blob/main/packages/components/codemods/README.md#upgradeiconv1) on how to run this within your repository.
|
|
14
|
+
|
|
15
|
+
For more information on the changes to the API, we recommend referring the <LinkTo pageId="components-icon-icon-future-api-specification--docs">API Specification</LinkTo>.
|
|
16
|
+
|
|
17
|
+
## Changes to Icon exportNames
|
|
18
|
+
|
|
19
|
+
The following table outlines the changes to the Icons names and whether the new `isFilled` prop is required. This can be used if you are manually migrating components.
|
|
20
|
+
|
|
21
|
+
Where `N/A` is shown, this indicates that an equivalent icon does not exist or has been made redundant by the new API, ie:
|
|
22
|
+
|
|
23
|
+
- `ActionOffIcon` is not needed as the new `ActionOnIcon` (`flash_on`) can be used with the `isFilled` to handle the toggled states.
|
|
24
|
+
- `ActionOffIconActionOffWhiteIcon` is not needed as the API allows for color to be set via `className` or inherited via it's parent element.
|
|
25
|
+
|
|
26
|
+
You will need to discuss alternative with your design team or reach out in the #help_design_system channel if an equivalent icon does not exist.
|
|
27
|
+
|
|
28
|
+
<Story of={IconStories.IconTableComparison} />
|
|
@@ -15,6 +15,7 @@ import { ToggleSwitchField } from '~components/ToggleSwitch'
|
|
|
15
15
|
import { Button } from '~components/__rc__/Button'
|
|
16
16
|
import { Tag } from '~components/__rc__/Tag'
|
|
17
17
|
import { StickerSheet } from '~storybook/components/StickerSheet'
|
|
18
|
+
import { iconMap } from '../../../../codemods/upgradeIconV1/getNewIconPropsFromOldIconName'
|
|
18
19
|
import { iconDefaultSet } from '../constants'
|
|
19
20
|
import { Icon } from '../index'
|
|
20
21
|
import imgInterfaceDont from './assets/interface-dont.png'
|
|
@@ -476,3 +477,40 @@ export const TooltipDont: Story = {
|
|
|
476
477
|
/>
|
|
477
478
|
),
|
|
478
479
|
}
|
|
480
|
+
|
|
481
|
+
export const IconTableComparison: Story = {
|
|
482
|
+
render: () => {
|
|
483
|
+
return (
|
|
484
|
+
<TableContainer>
|
|
485
|
+
<TableHeader>
|
|
486
|
+
<TableRow>
|
|
487
|
+
<TableHeaderRowCell width={4 / 12} labelText="Old name" />
|
|
488
|
+
<TableHeaderRowCell width={4 / 12} labelText="New name" />
|
|
489
|
+
<TableHeaderRowCell width={4 / 12} labelText="isFilled" />
|
|
490
|
+
</TableRow>
|
|
491
|
+
</TableHeader>
|
|
492
|
+
{Array.from(iconMap).map(([key, value]) => (
|
|
493
|
+
<TableCard key={key}>
|
|
494
|
+
<TableRow>
|
|
495
|
+
<TableRowCell width={4 / 12}>
|
|
496
|
+
<Text tag="div" variant="body">
|
|
497
|
+
{key}
|
|
498
|
+
</Text>
|
|
499
|
+
</TableRowCell>
|
|
500
|
+
<TableRowCell width={4 / 12}>
|
|
501
|
+
<Text tag="div" variant="body">
|
|
502
|
+
{value?.name ?? 'N/A'}
|
|
503
|
+
</Text>
|
|
504
|
+
</TableRowCell>
|
|
505
|
+
<TableRowCell width={4 / 12}>
|
|
506
|
+
<Text tag="div" variant="body">
|
|
507
|
+
{value?.isFilled ? 'true' : value?.name ? 'false' : 'N/A'}
|
|
508
|
+
</Text>
|
|
509
|
+
</TableRowCell>
|
|
510
|
+
</TableRow>
|
|
511
|
+
</TableCard>
|
|
512
|
+
))}
|
|
513
|
+
</TableContainer>
|
|
514
|
+
)
|
|
515
|
+
},
|
|
516
|
+
}
|
|
@@ -26,16 +26,14 @@ export const MenuItem = forwardRef<HTMLDivElement, MenuItemProps>(
|
|
|
26
26
|
textValue={determinedTextValue}
|
|
27
27
|
{...props}
|
|
28
28
|
>
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
)}
|
|
38
|
-
</>
|
|
29
|
+
{typeof children === 'string' && icon ? (
|
|
30
|
+
<div className={styles.flexWrapper}>
|
|
31
|
+
<span className={styles.iconWrapper}>{icon}</span>
|
|
32
|
+
{children}
|
|
33
|
+
</div>
|
|
34
|
+
) : (
|
|
35
|
+
children
|
|
36
|
+
)}
|
|
39
37
|
</RACMenuItem>
|
|
40
38
|
)
|
|
41
39
|
},
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react'
|
|
2
|
+
|
|
3
|
+
/** This is a helper util to resolve the focus jumping issue with future Select and FilterSelect.
|
|
4
|
+
* Due to the floating element's position starting as a negative value on render and then jumping to the correct position, this caused the focus to jump to the top of the page.
|
|
5
|
+
* This now polls to check if the element's position is stable by comparing the first and last position.
|
|
6
|
+
*/
|
|
7
|
+
export const useHasStableYPosition = (ref: React.RefObject<HTMLElement>): boolean => {
|
|
8
|
+
const [isStable, setIsStable] = useState(false)
|
|
9
|
+
const [lastYPosition, setLastYPosition] = useState<number | null>(null)
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const checkPosition = (): void => {
|
|
13
|
+
if (ref.current) {
|
|
14
|
+
const { y } = ref.current.getBoundingClientRect()
|
|
15
|
+
if (lastYPosition === null) {
|
|
16
|
+
setLastYPosition(y)
|
|
17
|
+
} else if (y === lastYPosition) {
|
|
18
|
+
setIsStable(true)
|
|
19
|
+
} else {
|
|
20
|
+
setLastYPosition(y)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const intervalId = setInterval(checkPosition, 1)
|
|
26
|
+
|
|
27
|
+
return () => clearInterval(intervalId)
|
|
28
|
+
}, [ref, lastYPosition])
|
|
29
|
+
|
|
30
|
+
return isStable
|
|
31
|
+
}
|
|
@@ -2,9 +2,9 @@ import React, { useEffect, useRef, type HTMLAttributes, type Key, type ReactNode
|
|
|
2
2
|
import { useListBox, type AriaListBoxOptions } from '@react-aria/listbox'
|
|
3
3
|
import { type SelectState } from '@react-stately/select'
|
|
4
4
|
import classnames from 'classnames'
|
|
5
|
-
import { useIsClientReady } from '~components/__utilities__/useIsClientReady'
|
|
6
5
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
7
6
|
import { useSelectContext } from '../../context'
|
|
7
|
+
import { useHasStableYPosition } from '../../hooks/useHasStableYPosition'
|
|
8
8
|
import { type SelectItem, type SelectOption } from '../../types'
|
|
9
9
|
import styles from './ListBox.module.scss'
|
|
10
10
|
|
|
@@ -47,9 +47,9 @@ export const ListBox = <Option extends SelectOption>({
|
|
|
47
47
|
classNameOverride,
|
|
48
48
|
...restProps
|
|
49
49
|
}: SingleListBoxProps<Option>): JSX.Element => {
|
|
50
|
-
const isClientReady = useIsClientReady()
|
|
51
50
|
const { state } = useSelectContext<Option>()
|
|
52
51
|
const ref = useRef<HTMLUListElement>(null)
|
|
52
|
+
const hasStableYPosition = useHasStableYPosition(ref)
|
|
53
53
|
const { listBoxProps } = useListBox(
|
|
54
54
|
{
|
|
55
55
|
...menuProps,
|
|
@@ -62,23 +62,22 @@ export const ListBox = <Option extends SelectOption>({
|
|
|
62
62
|
)
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* This uses the
|
|
65
|
+
* This uses the hasStableYPosition to determine if the position is stable within the window
|
|
66
66
|
*/
|
|
67
67
|
useEffect(() => {
|
|
68
|
-
if (
|
|
68
|
+
if (hasStableYPosition) {
|
|
69
69
|
const optionKey = getOptionKeyFromCollection(state)
|
|
70
70
|
const focusToElement = safeQuerySelector(`[data-key='${optionKey}']`)
|
|
71
71
|
|
|
72
72
|
if (focusToElement) {
|
|
73
73
|
focusToElement.focus()
|
|
74
74
|
} else {
|
|
75
|
-
// If an element is not found, focus on the listbox. This ensures the list can still be navigated to via keyboard if the keys do not align to the data attributes of the list items.
|
|
76
75
|
ref.current?.focus()
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
// Only run this effect for checking the first successful render
|
|
80
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
81
|
-
}, [
|
|
80
|
+
}, [hasStableYPosition])
|
|
82
81
|
|
|
83
82
|
return (
|
|
84
83
|
<ul
|
|
@@ -29,12 +29,20 @@ export const Tab = (props: TabProps): JSX.Element => {
|
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
31
|
<RACTab data-kz-tab {...tabProps}>
|
|
32
|
-
{(
|
|
32
|
+
{(TabRenderProps) => (
|
|
33
33
|
<>
|
|
34
|
-
{children}
|
|
34
|
+
{typeof children === 'function' ? children(TabRenderProps) : children}
|
|
35
35
|
{badge && (
|
|
36
36
|
<span className={styles.badge}>
|
|
37
|
-
<Badge
|
|
37
|
+
<Badge
|
|
38
|
+
variant={
|
|
39
|
+
TabRenderProps.isSelected ||
|
|
40
|
+
TabRenderProps.isFocusVisible ||
|
|
41
|
+
TabRenderProps.isHovered
|
|
42
|
+
? 'active'
|
|
43
|
+
: 'default'
|
|
44
|
+
}
|
|
45
|
+
>
|
|
38
46
|
{badge}
|
|
39
47
|
</Badge>
|
|
40
48
|
</span>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"wrapper": "Avatar-module_wrapper__LY2q2",
|
|
5
|
-
"small": "Avatar-module_small__PeksS",
|
|
6
|
-
"personal": "Avatar-module_personal__2U7--",
|
|
7
|
-
"otherUser": "Avatar-module_otherUser__b-drl",
|
|
8
|
-
"company": "Avatar-module_company__2qtJE",
|
|
9
|
-
"initials": "Avatar-module_initials__VDY2Q",
|
|
10
|
-
"medium": "Avatar-module_medium__Vy3V8",
|
|
11
|
-
"large": "Avatar-module_large__qiNWs",
|
|
12
|
-
"xlarge": "Avatar-module_xlarge__Vx4IG",
|
|
13
|
-
"xxlarge": "Avatar-module_xxlarge__oOoGq",
|
|
14
|
-
"avatarImage": "Avatar-module_avatarImage__FuULy",
|
|
15
|
-
"loading": "Avatar-module_loading__i9V-D",
|
|
16
|
-
"companyAvatarImage": "Avatar-module_companyAvatarImage__7rlfG",
|
|
17
|
-
"fallbackIcon": "Avatar-module_fallbackIcon__MPWxq",
|
|
18
|
-
"longName": "Avatar-module_longName__31Yuf"
|
|
19
|
-
};
|
|
20
|
-
module.exports = styles;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"AvatarGroup": "AvatarGroup-module_AvatarGroup__bdL0o",
|
|
5
|
-
"AvatarCounter": "AvatarGroup-module_AvatarCounter__PKFzl",
|
|
6
|
-
"small": "AvatarGroup-module_small__7uv8k",
|
|
7
|
-
"AvatarGroupItem": "AvatarGroup-module_AvatarGroupItem__xQol-",
|
|
8
|
-
"medium": "AvatarGroup-module_medium__af52y",
|
|
9
|
-
"large": "AvatarGroup-module_large__HN9Yy"
|
|
10
|
-
};
|
|
11
|
-
module.exports = styles;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"badge": "Badge-module_badge__CRtsW",
|
|
5
|
-
"large": "Badge-module_large__0QOpY",
|
|
6
|
-
"default": "Badge-module_default__k4Kcf",
|
|
7
|
-
"active": "Badge-module_active__-e-i2",
|
|
8
|
-
"reversed": "Badge-module_reversed__OgQLB",
|
|
9
|
-
"dark": "Badge-module_dark__RH34a",
|
|
10
|
-
"dot": "Badge-module_dot__BOKL1",
|
|
11
|
-
"animation": "Badge-module_animation__NTy6C",
|
|
12
|
-
"animationOn": "Badge-module_animationOn__nWK38"
|
|
13
|
-
};
|
|
14
|
-
module.exports = styles;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"body": "BrandMoment-module_body__J4lls",
|
|
5
|
-
"positive": "BrandMoment-module_positive__78wqJ",
|
|
6
|
-
"negative": "BrandMoment-module_negative__atXal",
|
|
7
|
-
"informative": "BrandMoment-module_informative__Qvwcd",
|
|
8
|
-
"success": "BrandMoment-module_success__v503M",
|
|
9
|
-
"warning": "BrandMoment-module_warning__dWih8",
|
|
10
|
-
"container": "BrandMoment-module_container__4ORHI",
|
|
11
|
-
"header": "BrandMoment-module_header__EAP5Q",
|
|
12
|
-
"main": "BrandMoment-module_main__cdWko",
|
|
13
|
-
"mainInner": "BrandMoment-module_mainInner__xsFA6",
|
|
14
|
-
"left": "BrandMoment-module_left__ZHJiM",
|
|
15
|
-
"leftInner": "BrandMoment-module_leftInner__TY5DY",
|
|
16
|
-
"right": "BrandMoment-module_right__B-PR2",
|
|
17
|
-
"rightInner": "BrandMoment-module_rightInner__XvQ5Y",
|
|
18
|
-
"subtitle": "BrandMoment-module_subtitle__z9PL8",
|
|
19
|
-
"title": "BrandMoment-module_title__GrdAR",
|
|
20
|
-
"textBody": "BrandMoment-module_textBody__W6LvQ",
|
|
21
|
-
"secondaryAction": "BrandMoment-module_secondaryAction__d18oJ",
|
|
22
|
-
"actions": "BrandMoment-module_actions__Z3NrK",
|
|
23
|
-
"footer": "BrandMoment-module_footer__vSeX1",
|
|
24
|
-
"footerInner": "BrandMoment-module_footerInner__Wt9Rt",
|
|
25
|
-
"poweredByContainer": "BrandMoment-module_poweredByContainer__OkhVN",
|
|
26
|
-
"footerTextContainer": "BrandMoment-module_footerTextContainer__8iin9",
|
|
27
|
-
"poweredByLogo": "BrandMoment-module_poweredByLogo__w6M7o"
|
|
28
|
-
};
|
|
29
|
-
module.exports = styles;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"buttonGroup": "ButtonGroup-module_buttonGroup__bsy2X",
|
|
5
|
-
"child": "ButtonGroup-module_child__K6AP-",
|
|
6
|
-
"firstChild": "ButtonGroup-module_firstChild__uEn1j",
|
|
7
|
-
"lastChild": "ButtonGroup-module_lastChild__Vicsx"
|
|
8
|
-
};
|
|
9
|
-
module.exports = styles;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* A hook that returns a truthy value indicating if the code can be run on client side.
|
|
7
|
-
* This is a useful hook for determining if the `document` or `window` objects are available.
|
|
8
|
-
*/
|
|
9
|
-
var useIsClientReady = function () {
|
|
10
|
-
var _a = React.useState(false),
|
|
11
|
-
isClientReady = _a[0],
|
|
12
|
-
setIsClientReady = _a[1];
|
|
13
|
-
React.useEffect(function () {
|
|
14
|
-
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
15
|
-
setIsClientReady(true);
|
|
16
|
-
}
|
|
17
|
-
}, []);
|
|
18
|
-
return isClientReady;
|
|
19
|
-
};
|
|
20
|
-
exports.useIsClientReady = useIsClientReady;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
"wrapper": "Avatar-module_wrapper__LY2q2",
|
|
3
|
-
"small": "Avatar-module_small__PeksS",
|
|
4
|
-
"personal": "Avatar-module_personal__2U7--",
|
|
5
|
-
"otherUser": "Avatar-module_otherUser__b-drl",
|
|
6
|
-
"company": "Avatar-module_company__2qtJE",
|
|
7
|
-
"initials": "Avatar-module_initials__VDY2Q",
|
|
8
|
-
"medium": "Avatar-module_medium__Vy3V8",
|
|
9
|
-
"large": "Avatar-module_large__qiNWs",
|
|
10
|
-
"xlarge": "Avatar-module_xlarge__Vx4IG",
|
|
11
|
-
"xxlarge": "Avatar-module_xxlarge__oOoGq",
|
|
12
|
-
"avatarImage": "Avatar-module_avatarImage__FuULy",
|
|
13
|
-
"loading": "Avatar-module_loading__i9V-D",
|
|
14
|
-
"companyAvatarImage": "Avatar-module_companyAvatarImage__7rlfG",
|
|
15
|
-
"fallbackIcon": "Avatar-module_fallbackIcon__MPWxq",
|
|
16
|
-
"longName": "Avatar-module_longName__31Yuf"
|
|
17
|
-
};
|
|
18
|
-
export { styles as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
"AvatarGroup": "AvatarGroup-module_AvatarGroup__bdL0o",
|
|
3
|
-
"AvatarCounter": "AvatarGroup-module_AvatarCounter__PKFzl",
|
|
4
|
-
"small": "AvatarGroup-module_small__7uv8k",
|
|
5
|
-
"AvatarGroupItem": "AvatarGroup-module_AvatarGroupItem__xQol-",
|
|
6
|
-
"medium": "AvatarGroup-module_medium__af52y",
|
|
7
|
-
"large": "AvatarGroup-module_large__HN9Yy"
|
|
8
|
-
};
|
|
9
|
-
export { styles as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
"badge": "Badge-module_badge__CRtsW",
|
|
3
|
-
"large": "Badge-module_large__0QOpY",
|
|
4
|
-
"default": "Badge-module_default__k4Kcf",
|
|
5
|
-
"active": "Badge-module_active__-e-i2",
|
|
6
|
-
"reversed": "Badge-module_reversed__OgQLB",
|
|
7
|
-
"dark": "Badge-module_dark__RH34a",
|
|
8
|
-
"dot": "Badge-module_dot__BOKL1",
|
|
9
|
-
"animation": "Badge-module_animation__NTy6C",
|
|
10
|
-
"animationOn": "Badge-module_animationOn__nWK38"
|
|
11
|
-
};
|
|
12
|
-
export { styles as default };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
"body": "BrandMoment-module_body__J4lls",
|
|
3
|
-
"positive": "BrandMoment-module_positive__78wqJ",
|
|
4
|
-
"negative": "BrandMoment-module_negative__atXal",
|
|
5
|
-
"informative": "BrandMoment-module_informative__Qvwcd",
|
|
6
|
-
"success": "BrandMoment-module_success__v503M",
|
|
7
|
-
"warning": "BrandMoment-module_warning__dWih8",
|
|
8
|
-
"container": "BrandMoment-module_container__4ORHI",
|
|
9
|
-
"header": "BrandMoment-module_header__EAP5Q",
|
|
10
|
-
"main": "BrandMoment-module_main__cdWko",
|
|
11
|
-
"mainInner": "BrandMoment-module_mainInner__xsFA6",
|
|
12
|
-
"left": "BrandMoment-module_left__ZHJiM",
|
|
13
|
-
"leftInner": "BrandMoment-module_leftInner__TY5DY",
|
|
14
|
-
"right": "BrandMoment-module_right__B-PR2",
|
|
15
|
-
"rightInner": "BrandMoment-module_rightInner__XvQ5Y",
|
|
16
|
-
"subtitle": "BrandMoment-module_subtitle__z9PL8",
|
|
17
|
-
"title": "BrandMoment-module_title__GrdAR",
|
|
18
|
-
"textBody": "BrandMoment-module_textBody__W6LvQ",
|
|
19
|
-
"secondaryAction": "BrandMoment-module_secondaryAction__d18oJ",
|
|
20
|
-
"actions": "BrandMoment-module_actions__Z3NrK",
|
|
21
|
-
"footer": "BrandMoment-module_footer__vSeX1",
|
|
22
|
-
"footerInner": "BrandMoment-module_footerInner__Wt9Rt",
|
|
23
|
-
"poweredByContainer": "BrandMoment-module_poweredByContainer__OkhVN",
|
|
24
|
-
"footerTextContainer": "BrandMoment-module_footerTextContainer__8iin9",
|
|
25
|
-
"poweredByLogo": "BrandMoment-module_poweredByLogo__w6M7o"
|
|
26
|
-
};
|
|
27
|
-
export { styles as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A hook that returns a truthy value indicating if the code can be run on client side.
|
|
5
|
-
* This is a useful hook for determining if the `document` or `window` objects are available.
|
|
6
|
-
*/
|
|
7
|
-
var useIsClientReady = function () {
|
|
8
|
-
var _a = useState(false),
|
|
9
|
-
isClientReady = _a[0],
|
|
10
|
-
setIsClientReady = _a[1];
|
|
11
|
-
useEffect(function () {
|
|
12
|
-
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
13
|
-
setIsClientReady(true);
|
|
14
|
-
}
|
|
15
|
-
}, []);
|
|
16
|
-
return isClientReady;
|
|
17
|
-
};
|
|
18
|
-
export { useIsClientReady };
|