@kaizen/components 1.66.0 → 1.67.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 +5 -0
- package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +255 -0
- package/codemods/upgradeIconV1/index.ts +33 -0
- package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.spec.ts +83 -0
- package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.ts +53 -0
- package/codemods/upgradeIconV1/transformIcon.spec.ts +181 -0
- package/codemods/upgradeIconV1/transformIcon.ts +115 -0
- package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.spec.ts +81 -0
- package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.ts +41 -0
- package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +306 -0
- package/codemods/upgradeIconV1/upgradeIconV1.ts +94 -0
- package/codemods/utils/createProp.spec.ts +83 -0
- package/codemods/utils/createProp.ts +51 -0
- package/codemods/utils/getKaioTagName.spec.ts +85 -0
- package/codemods/utils/getKaioTagName.ts +129 -0
- package/codemods/utils/index.ts +3 -1
- package/codemods/utils/transformComponentsInDir.ts +32 -16
- package/codemods/utils/transformSource.ts +10 -5
- package/codemods/utils/updateJsxElementWithNewProps.ts +4 -3
- package/codemods/utils/updateKaioImports.spec.ts +223 -0
- package/codemods/utils/updateKaioImports.ts +233 -0
- package/dist/cjs/Avatar/Avatar.cjs +16 -13
- package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +9 -7
- package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +9 -7
- package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +9 -7
- package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +5 -11
- package/dist/cjs/ClearButton/ClearButton.cjs +5 -4
- package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -7
- package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +5 -4
- package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -4
- package/dist/cjs/ErrorPage/ErrorPage.cjs +9 -7
- package/dist/cjs/FieldMessage/FieldMessage.cjs +5 -11
- package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +4 -5
- package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +4 -7
- package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +5 -5
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +4 -4
- package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +5 -4
- package/dist/cjs/Illustration/utils/usePausePlay.cjs +5 -8
- package/dist/cjs/Input/InputSearch/InputSearch.cjs +4 -3
- package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +5 -6
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +31 -26
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +4 -5
- package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +7 -17
- package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +4 -7
- package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +4 -3
- package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +33 -38
- package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.cjs +6 -0
- package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +11 -19
- package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +4 -5
- package/dist/cjs/Popover/Popover.cjs +5 -4
- package/dist/cjs/Popover/utils/classMappers.cjs +21 -16
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +29 -25
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +10 -12
- package/dist/cjs/Select/Select.cjs +8 -10
- package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +4 -4
- package/dist/cjs/Table/Table.cjs +11 -10
- package/dist/cjs/Tag/Tag.cjs +21 -17
- package/dist/cjs/TextField/TextField.cjs +5 -4
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +8 -7
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +9 -12
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +7 -7
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +10 -15
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +7 -7
- package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +5 -5
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +13 -18
- package/dist/cjs/__future__/Icon/Icon.cjs +47 -0
- package/dist/cjs/__future__/Icon/Icon.module.css.cjs +10 -0
- package/dist/cjs/__future__/Icon/constants.cjs +8 -0
- package/dist/cjs/__future__/Select/subcomponents/Option/Option.cjs +4 -5
- package/dist/cjs/__future__/Select/subcomponents/SelectToggle/SelectToggle.cjs +5 -9
- package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveButton.cjs +4 -3
- package/dist/cjs/future.cjs +2 -0
- package/dist/esm/Avatar/Avatar.mjs +16 -13
- package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +9 -7
- package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +9 -7
- package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +9 -7
- package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +5 -11
- package/dist/esm/ClearButton/ClearButton.mjs +5 -4
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +5 -8
- package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +5 -4
- package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -4
- package/dist/esm/ErrorPage/ErrorPage.mjs +10 -8
- package/dist/esm/FieldMessage/FieldMessage.mjs +6 -12
- package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +4 -5
- package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +5 -8
- package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +5 -5
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +4 -4
- package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +5 -4
- package/dist/esm/Illustration/utils/usePausePlay.mjs +5 -8
- package/dist/esm/Input/InputSearch/InputSearch.mjs +4 -3
- package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +5 -6
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +31 -26
- package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +4 -5
- package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +7 -17
- package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +5 -8
- package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +4 -3
- package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +33 -38
- package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.mjs +4 -0
- package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +11 -19
- package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +4 -5
- package/dist/esm/Popover/Popover.mjs +5 -4
- package/dist/esm/Popover/utils/classMappers.mjs +21 -16
- package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +33 -29
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +10 -12
- package/dist/esm/Select/Select.mjs +9 -11
- package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +4 -4
- package/dist/esm/Table/Table.mjs +11 -10
- package/dist/esm/Tag/Tag.mjs +21 -17
- package/dist/esm/TextField/TextField.mjs +5 -4
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +8 -7
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +9 -12
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +7 -7
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +13 -18
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +7 -7
- package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +5 -5
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +16 -21
- package/dist/esm/__future__/Icon/Icon.mjs +38 -0
- package/dist/esm/__future__/Icon/Icon.module.css.mjs +8 -0
- package/dist/esm/__future__/Icon/constants.mjs +6 -0
- package/dist/esm/__future__/Select/subcomponents/Option/Option.mjs +4 -5
- package/dist/esm/__future__/Select/subcomponents/SelectToggle/SelectToggle.mjs +6 -10
- package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveButton.mjs +4 -3
- package/dist/esm/future.mjs +1 -0
- package/dist/styles.css +585 -561
- package/dist/types/__future__/Icon/Icon.d.ts +21 -0
- package/dist/types/__future__/Icon/constants.d.ts +5 -0
- package/dist/types/__future__/Icon/index.d.ts +1 -0
- package/dist/types/__future__/Icon/types.d.ts +4 -0
- package/dist/types/__future__/index.d.ts +1 -0
- package/package.json +10 -10
- package/src/Avatar/Avatar.module.scss +6 -8
- package/src/Avatar/Avatar.tsx +14 -5
- package/src/BrandMoment/_docs/BrandMoment.stories.tsx +6 -10
- package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
- package/src/Calendar/CalendarRange/CalendarRange.tsx +7 -3
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +7 -3
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +7 -3
- package/src/Calendar/baseCalendarClassNames.module.scss +0 -4
- package/src/Checkbox/Checkbox/Checkbox.module.scss +0 -8
- package/src/Checkbox/Checkbox/Checkbox.tsx +6 -8
- package/src/ClearButton/ClearButton.tsx +2 -2
- package/src/Collapsible/Collapsible/Collapsible.tsx +5 -6
- package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +2 -2
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +2 -7
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +2 -2
- package/src/DateRangePicker/DateRangePicker.tsx +2 -2
- package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +8 -2
- package/src/EmptyState/_docs/EmptyState.stories.tsx +4 -2
- package/src/ErrorPage/ErrorPage.tsx +5 -3
- package/src/FieldMessage/FieldMessage.tsx +6 -14
- package/src/Filter/FilterBar/FilterBar.spec.tsx +12 -12
- package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +2 -2
- package/src/Filter/FilterButton/FilterButton/FilterButton.module.scss +1 -1
- package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +5 -6
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +0 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +2 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +2 -2
- package/src/Filter/FilterSelect/FilterSelect.spec.tsx +4 -5
- package/src/GuidanceBlock/GuidanceBlock.tsx +6 -2
- package/src/Icon/_docs/{Icon.stories.tsx → Icon.docs.stories.tsx} +1 -1
- package/src/Icon/_docs/Icon.mdx +1 -2
- package/src/Icon/_docs/Icon.stickersheet.stories.tsx +1 -1
- package/src/Illustration/utils/usePausePlay.tsx +7 -5
- package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +7 -5
- package/src/Input/Input/_docs/Input.stories.tsx +5 -3
- package/src/Input/InputSearch/InputSearch.tsx +2 -2
- package/src/Label/Label.module.scss +4 -0
- package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +2 -2
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +2 -2
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +2 -0
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +32 -35
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +2 -2
- package/src/MultiSelect/MultiSelect.spec.tsx +7 -3
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +0 -6
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +10 -9
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +11 -7
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +5 -7
- package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +2 -2
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +2 -0
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +3 -0
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +22 -16
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +0 -4
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +13 -12
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.scss +0 -1
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +2 -2
- package/src/Popover/Popover.module.scss +3 -3
- package/src/Popover/Popover.tsx +2 -2
- package/src/Popover/utils/classMappers.tsx +6 -11
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +7 -7
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +2 -2
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +7 -4
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +18 -12
- package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +25 -18
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +4 -8
- package/src/Select/Select.module.scss +2 -0
- package/src/Select/Select.tsx +10 -7
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +4 -5
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +2 -2
- package/src/Table/Table.tsx +4 -8
- package/src/Table/_docs/Table.stickersheet.stories.tsx +4 -4
- package/src/Table/_docs/Table.stories.tsx +3 -3
- package/src/Tag/Tag.module.scss +2 -0
- package/src/Tag/Tag.tsx +7 -13
- package/src/Text/Text.module.scss +2 -0
- package/src/TextField/TextField.spec.tsx +9 -4
- package/src/TextField/TextField.tsx +2 -2
- package/src/TextField/_docs/TextField.stories.tsx +4 -3
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +3 -3
- package/src/TitleBlockZen/TitleBlockZen.module.scss +1 -0
- package/src/TitleBlockZen/TitleBlockZen.spec.tsx +1 -1
- package/src/TitleBlockZen/TitleBlockZen.tsx +6 -9
- package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +5 -5
- package/src/TitleBlockZen/subcomponents/MainActions.tsx +5 -3
- package/src/TitleBlockZen/subcomponents/MobileActions.tsx +13 -16
- package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +3 -3
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -3
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +2 -2
- package/src/Workflow/_docs/Workflow.stories.tsx +4 -5
- package/src/Workflow/_docs/WorkflowHeader.stories.tsx +4 -5
- package/src/Workflow/_docs/controls/controls.tsx +4 -4
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +6 -31
- package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +5 -5
- package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +6 -5
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +6 -6
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +4 -4
- package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +6 -5
- package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +4 -4
- package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +3 -3
- package/src/__actions__/Menu/v1/_docs/Menu.stories.tsx +3 -3
- package/src/__actions__/Menu/v1/_docs/MenuContentExample.tsx +6 -6
- package/src/__actions__/Menu/v1/_docs/examples.tsx +5 -5
- package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +3 -3
- package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +1 -3
- package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +46 -45
- package/src/__actions__/Menu/v3/_docs/Menu.mdx +1 -1
- package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +21 -23
- package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -15
- package/src/__future__/Icon/Icon.module.css +35 -0
- package/src/__future__/Icon/Icon.spec.tsx +36 -0
- package/src/__future__/Icon/Icon.tsx +85 -0
- package/src/__future__/Icon/_docs/Icon--api-specification.mdx +98 -0
- package/src/__future__/Icon/_docs/Icon--usage-guidelines.mdx +145 -0
- package/src/__future__/Icon/_docs/Icon.docs.module.css +17 -0
- package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +524 -0
- package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +126 -0
- package/src/__future__/Icon/_docs/assets/interface-dont.png +0 -0
- package/src/__future__/Icon/_docs/assets/tooltip-dont.png +0 -0
- package/src/__future__/Icon/constants.ts +149 -0
- package/src/__future__/Icon/index.ts +1 -0
- package/src/__future__/Icon/material-symbols-metadata.json +3370 -0
- package/src/__future__/Icon/types.ts +11 -0
- package/src/__future__/Select/subcomponents/Option/Option.tsx +2 -2
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +1 -1
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +6 -9
- package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +0 -77
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +0 -56
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +2 -12
- package/src/__future__/Tag/Tag/Tag.module.scss +1 -1
- package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +6 -17
- package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +5 -2
- package/src/__future__/Tag/Tag/_docs/Tag.stories.tsx +13 -6
- package/src/__future__/index.ts +1 -0
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +10 -10
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +7 -4
- package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +4 -11
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +10 -10
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +3 -3
- package/codemods/utils/getTagName.spec.ts +0 -24
- package/codemods/utils/getTagName.ts +0 -32
- package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.cjs +0 -23
- package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.mjs +0 -15
- package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.d.ts +0 -2
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.tsx +0 -21
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
require('../../Icon/
|
|
6
|
-
var ChevronDownIcon = require('../../Icon/ChevronDownIcon.cjs');
|
|
7
|
-
var MeatballsIcon = require('../../Icon/MeatballsIcon.cjs');
|
|
5
|
+
var Icon = require('../../__future__/Icon/Icon.cjs');
|
|
8
6
|
var constants = require('../constants.cjs');
|
|
9
7
|
var utils = require('../utils.cjs');
|
|
10
8
|
var TitleBlockMenuItem = require('./TitleBlockMenuItem.cjs');
|
|
@@ -52,8 +50,9 @@ var MainActions = function (_a) {
|
|
|
52
50
|
label: primaryAction.label,
|
|
53
51
|
primary: true,
|
|
54
52
|
reversed: reversed,
|
|
55
|
-
icon: React__default.default.createElement(
|
|
56
|
-
|
|
53
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
54
|
+
name: "keyboard_arrow_down",
|
|
55
|
+
isPresentational: true
|
|
57
56
|
}),
|
|
58
57
|
iconPosition: "end",
|
|
59
58
|
"data-automation-id": "title-block-primary-action-button",
|
|
@@ -94,8 +93,9 @@ var MainActions = function (_a) {
|
|
|
94
93
|
id: constants.TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID,
|
|
95
94
|
label: "Open secondary menu",
|
|
96
95
|
reversed: reversed,
|
|
97
|
-
icon: React__default.default.createElement(
|
|
98
|
-
|
|
96
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
97
|
+
name: "more_horiz",
|
|
98
|
+
isPresentational: true
|
|
99
99
|
})
|
|
100
100
|
})
|
|
101
101
|
}, React__default.default.createElement(MenuList.MenuList, null, overflowMenuItems.map(function (menuItem, idx) {
|
|
@@ -4,9 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var reactFocusOn = require('react-focus-on');
|
|
7
|
-
require('../../Icon/
|
|
8
|
-
var ChevronDownIcon = require('../../Icon/ChevronDownIcon.cjs');
|
|
9
|
-
var ChevronUpIcon = require('../../Icon/ChevronUpIcon.cjs');
|
|
7
|
+
var Icon = require('../../__future__/Icon/Icon.cjs');
|
|
10
8
|
var constants = require('../constants.cjs');
|
|
11
9
|
var utils = require('../utils.cjs');
|
|
12
10
|
var TitleBlockMenuItem = require('./TitleBlockMenuItem.cjs');
|
|
@@ -200,10 +198,9 @@ var DrawerHandle = function (_a) {
|
|
|
200
198
|
"aria-expanded": isOpen
|
|
201
199
|
}, primaryAction.label, React__default.default.createElement("span", {
|
|
202
200
|
className: MobileActions_module.mobileActionsChevronSquare
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
role: "presentation"
|
|
201
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
202
|
+
name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
203
|
+
isPresentational: true
|
|
207
204
|
}))));
|
|
208
205
|
}
|
|
209
206
|
// If the primary action is a button, or has no onClick/href/action
|
|
@@ -221,10 +218,9 @@ var DrawerHandle = function (_a) {
|
|
|
221
218
|
"aria-expanded": isOpen,
|
|
222
219
|
id: constants.TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID,
|
|
223
220
|
"aria-label": "Other actions"
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
role: "presentation"
|
|
221
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
222
|
+
name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
223
|
+
isPresentational: true
|
|
228
224
|
})));
|
|
229
225
|
}
|
|
230
226
|
// if there are default/secondary actions but no primary action
|
|
@@ -240,10 +236,9 @@ var DrawerHandle = function (_a) {
|
|
|
240
236
|
id: constants.TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID
|
|
241
237
|
}, renderDrawerHandleLabel("Other actions"), React__default.default.createElement("span", {
|
|
242
238
|
className: MobileActions_module.mobileActionsChevronSquare
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
role: "presentation"
|
|
239
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
240
|
+
name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
241
|
+
isPresentational: true
|
|
247
242
|
}))));
|
|
248
243
|
}
|
|
249
244
|
return null;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
require('../../Icon/
|
|
6
|
-
var ChevronDownIcon = require('../../Icon/ChevronDownIcon.cjs');
|
|
7
|
-
var MeatballsIcon = require('../../Icon/MeatballsIcon.cjs');
|
|
5
|
+
var Icon = require('../../__future__/Icon/Icon.cjs');
|
|
8
6
|
var TitleBlockZen_module = require('../TitleBlockZen.module.scss.cjs');
|
|
9
7
|
var constants = require('../constants.cjs');
|
|
10
8
|
var TitleBlockMenuItem = require('./TitleBlockMenuItem.cjs');
|
|
@@ -26,8 +24,9 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
|
|
|
26
24
|
button: React__default.default.createElement(IconButton.IconButton, {
|
|
27
25
|
label: "Open secondary menu",
|
|
28
26
|
reversed: reversed,
|
|
29
|
-
icon: React__default.default.createElement(
|
|
30
|
-
|
|
27
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
28
|
+
name: "more_horiz",
|
|
29
|
+
isPresentational: true
|
|
31
30
|
}),
|
|
32
31
|
id: constants.TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID
|
|
33
32
|
})
|
|
@@ -57,8 +56,9 @@ var SecondaryActions = function (_a) {
|
|
|
57
56
|
secondary: true,
|
|
58
57
|
label: action.label,
|
|
59
58
|
reversed: reversed,
|
|
60
|
-
icon: React__default.default.createElement(
|
|
61
|
-
|
|
59
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
60
|
+
name: "keyboard_arrow_down",
|
|
61
|
+
isPresentational: true
|
|
62
62
|
}),
|
|
63
63
|
iconPosition: "end"
|
|
64
64
|
})
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
require('../../Icon/
|
|
7
|
-
var CheckIcon = require('../../Icon/CheckIcon.cjs');
|
|
6
|
+
var Icon = require('../../__future__/Icon/Icon.cjs');
|
|
8
7
|
var ToggleSwitch_module = require('./ToggleSwitch.module.scss.cjs');
|
|
9
8
|
function _interopDefault(e) {
|
|
10
9
|
return e && e.__esModule ? e : {
|
|
@@ -30,9 +29,10 @@ var ToggleSwitch = function (_a) {
|
|
|
30
29
|
className: ToggleSwitch_module.track
|
|
31
30
|
}, React__default.default.createElement("span", {
|
|
32
31
|
className: ToggleSwitch_module.thumb
|
|
33
|
-
}, React__default.default.createElement(
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
33
|
+
name: "check",
|
|
34
|
+
isPresentational: true,
|
|
35
|
+
className: ToggleSwitch_module.checkIcon
|
|
36
36
|
}))));
|
|
37
37
|
};
|
|
38
38
|
ToggleSwitch.displayName = "ToggleSwitch";
|
package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs
CHANGED
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
require('../../../../../Icon/subcomponents/SVG/SVG.cjs');
|
|
7
|
-
var IndicatorActiveIcon = require('../../../../../Icon/IndicatorActiveIcon.cjs');
|
|
8
|
-
var IndicatorInactiveIcon = require('../../../../../Icon/IndicatorInactiveIcon.cjs');
|
|
9
|
-
var SuccessIcon = require('../../../../../Icon/SuccessIcon.cjs');
|
|
10
6
|
var VisuallyHidden = require('../../../../../VisuallyHidden/VisuallyHidden.cjs');
|
|
7
|
+
var Icon = require('../../../../../__future__/Icon/Icon.cjs');
|
|
11
8
|
var ProgressStepper_module = require('./ProgressStepper.module.css.cjs');
|
|
12
9
|
function _interopDefault(e) {
|
|
13
10
|
return e && e.__esModule ? e : {
|
|
@@ -19,32 +16,30 @@ var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
|
19
16
|
var getStepStatus = function (isComplete, isCurrentStep, step, index) {
|
|
20
17
|
if (isComplete) {
|
|
21
18
|
return {
|
|
22
|
-
icon: React__default.default.createElement(
|
|
19
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
23
20
|
key: index,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
name: "check_circle",
|
|
22
|
+
isPresentational: true,
|
|
23
|
+
isFilled: true
|
|
27
24
|
}),
|
|
28
25
|
accessibleName: "Completed: ".concat(step.label)
|
|
29
26
|
};
|
|
30
27
|
}
|
|
31
28
|
if (isCurrentStep) {
|
|
32
29
|
return {
|
|
33
|
-
icon: React__default.default.createElement(
|
|
30
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
34
31
|
key: index,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
classNameOverride: "active"
|
|
32
|
+
name: "radio_button_checked",
|
|
33
|
+
isPresentational: true
|
|
38
34
|
}),
|
|
39
35
|
accessibleName: "Current: ".concat(step.label)
|
|
40
36
|
};
|
|
41
37
|
}
|
|
42
38
|
return {
|
|
43
|
-
icon: React__default.default.createElement(
|
|
39
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
44
40
|
key: index,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
role: "presentation"
|
|
41
|
+
name: "radio_button_unchecked",
|
|
42
|
+
isPresentational: true
|
|
48
43
|
}),
|
|
49
44
|
accessibleName: "Not started: ".concat(step.label)
|
|
50
45
|
};
|
|
@@ -70,7 +65,7 @@ var ProgressStepper = function (_a) {
|
|
|
70
65
|
var isCompletedStep = index < currentStepIndex || isComplete;
|
|
71
66
|
var _c = getStepStatus(isCompletedStep, isCurrentStep, step, index),
|
|
72
67
|
accessibleName = _c.accessibleName,
|
|
73
|
-
|
|
68
|
+
icon = _c.icon;
|
|
74
69
|
return React__default.default.createElement("li", {
|
|
75
70
|
className: ProgressStepper_module.step,
|
|
76
71
|
key: "".concat(step.id),
|
|
@@ -84,7 +79,7 @@ var ProgressStepper = function (_a) {
|
|
|
84
79
|
className: ProgressStepper_module.stepIndicator
|
|
85
80
|
}, React__default.default.createElement("span", {
|
|
86
81
|
className: classnames__default.default(ProgressStepper_module.stepIcon, (_b = {}, _b[ProgressStepper_module.isCompleted] = isCompletedStep, _b))
|
|
87
|
-
},
|
|
82
|
+
}, icon)), index < steps.length - 1 && React__default.default.createElement("div", {
|
|
88
83
|
className: classnames__default.default([ProgressStepper_module.stepDivider, isCompletedStep && ProgressStepper_module.completedStep])
|
|
89
84
|
})));
|
|
90
85
|
})), React__default.default.createElement("span", {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classnames = require('classnames');
|
|
6
|
+
var constants = require('./constants.cjs');
|
|
7
|
+
var Icon_module = require('./Icon.module.css.cjs');
|
|
8
|
+
function _interopDefault(e) {
|
|
9
|
+
return e && e.__esModule ? e : {
|
|
10
|
+
default: e
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
14
|
+
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
15
|
+
var MaterialIcon = function (_a) {
|
|
16
|
+
var children = _a.children,
|
|
17
|
+
isFilled = _a.isFilled,
|
|
18
|
+
isPresentational = _a.isPresentational,
|
|
19
|
+
alt = _a.alt,
|
|
20
|
+
className = _a.className,
|
|
21
|
+
restProps = tslib.__rest(_a, ["children", "isFilled", "isPresentational", "alt", "className"]);
|
|
22
|
+
return React__default.default.createElement("span", tslib.__assign({
|
|
23
|
+
className: classnames__default.default("material-symbols-outlined", Icon_module.icon, isFilled && Icon_module.filled, className),
|
|
24
|
+
"aria-hidden": isPresentational,
|
|
25
|
+
role: isPresentational ? undefined : "img",
|
|
26
|
+
"aria-label": alt
|
|
27
|
+
}, restProps), children);
|
|
28
|
+
};
|
|
29
|
+
var Icon = function (_a) {
|
|
30
|
+
var name = _a.name,
|
|
31
|
+
shouldMirrorInRTL = _a.shouldMirrorInRTL,
|
|
32
|
+
restProps = tslib.__rest(_a, ["name", "shouldMirrorInRTL"]);
|
|
33
|
+
if (!shouldMirrorInRTL) {
|
|
34
|
+
return React__default.default.createElement(MaterialIcon, tslib.__assign({}, restProps), name);
|
|
35
|
+
}
|
|
36
|
+
if (Object.keys(constants.handledRtlIcons).includes(name)) {
|
|
37
|
+
return React__default.default.createElement(MaterialIcon, tslib.__assign({}, restProps), React__default.default.createElement("span", {
|
|
38
|
+
className: Icon_module.iconLTR
|
|
39
|
+
}, name), React__default.default.createElement("span", {
|
|
40
|
+
className: Icon_module.iconRTL
|
|
41
|
+
}, constants.handledRtlIcons[name]));
|
|
42
|
+
}
|
|
43
|
+
return React__default.default.createElement(MaterialIcon, tslib.__assign({}, restProps, {
|
|
44
|
+
className: classnames__default.default(Icon_module.shouldMirrorInRTL, restProps.className)
|
|
45
|
+
}), name);
|
|
46
|
+
};
|
|
47
|
+
exports.Icon = Icon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {
|
|
4
|
+
"icon": "Icon-module_icon__CkmHY",
|
|
5
|
+
"filled": "Icon-module_filled__-VArQ",
|
|
6
|
+
"shouldMirrorInRTL": "Icon-module_shouldMirrorInRTL__kxncF",
|
|
7
|
+
"iconLTR": "Icon-module_iconLTR__b3GoB",
|
|
8
|
+
"iconRTL": "Icon-module_iconRTL__lpVw5"
|
|
9
|
+
};
|
|
10
|
+
module.exports = styles;
|
|
@@ -4,8 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var reactAria = require('react-aria');
|
|
7
|
-
require('
|
|
8
|
-
var CheckIcon = require('../../../../Icon/CheckIcon.cjs');
|
|
7
|
+
var Icon = require('../../../Icon/Icon.cjs');
|
|
9
8
|
var SelectContext = require('../../context/SelectContext.cjs');
|
|
10
9
|
var Option_module = require('./Option.module.scss.cjs');
|
|
11
10
|
function _interopDefault(e) {
|
|
@@ -50,9 +49,9 @@ var Option = function (_a) {
|
|
|
50
49
|
"aria-label": item.textValue
|
|
51
50
|
}), item.rendered, React__default.default.createElement("span", {
|
|
52
51
|
className: classnames__default.default(Option_module.icon, isSelected && Option_module.isSelected)
|
|
53
|
-
}, isSelected && React__default.default.createElement(
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
}, isSelected && React__default.default.createElement(Icon.Icon, {
|
|
53
|
+
name: "check",
|
|
54
|
+
isPresentational: true
|
|
56
55
|
})));
|
|
57
56
|
};
|
|
58
57
|
Option.displayName = "Option";
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
require('../../../../Icon/subcomponents/SVG/SVG.cjs');
|
|
7
|
-
var ChevronDownIcon = require('../../../../Icon/ChevronDownIcon.cjs');
|
|
8
|
-
var ChevronUpIcon = require('../../../../Icon/ChevronUpIcon.cjs');
|
|
9
6
|
var Label = require('../../../../Label/Label.cjs');
|
|
7
|
+
var Icon = require('../../../Icon/Icon.cjs');
|
|
10
8
|
var SelectToggle_module = require('./SelectToggle.module.scss.cjs');
|
|
11
9
|
function _interopDefault(e) {
|
|
12
10
|
return e && e.__esModule ? e : {
|
|
@@ -41,12 +39,10 @@ var SelectToggle = React__default.default.forwardRef(function (_a, ref) {
|
|
|
41
39
|
className: classnames__default.default(SelectToggle_module.selectToggle, (value === null || value === undefined) && SelectToggle_module.placeholder, status === "error" && SelectToggle_module.error, status === "caution" && SelectToggle_module.caution, isDisabled && SelectToggle_module.disabled, isReversed && SelectToggle_module.reversed, classNameOverride)
|
|
42
40
|
}), React__default.default.createElement("span", tslib.__assign({}, valueProps, {
|
|
43
41
|
className: SelectToggle_module.value
|
|
44
|
-
}), value !== null && value !== void 0 ? value : placeholder),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
role: "presentation",
|
|
49
|
-
classNameOverride: SelectToggle_module.icon
|
|
42
|
+
}), value !== null && value !== void 0 ? value : placeholder), React__default.default.createElement(Icon.Icon, {
|
|
43
|
+
name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
44
|
+
isPresentational: true,
|
|
45
|
+
className: SelectToggle_module.icon
|
|
50
46
|
})));
|
|
51
47
|
});
|
|
52
48
|
SelectToggle.displayName = "SelectToggle";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
var
|
|
6
|
+
var Icon = require('../../../Icon/Icon.cjs');
|
|
7
7
|
var RemoveButton_module = require('./RemoveButton.module.scss.cjs');
|
|
8
8
|
function _interopDefault(e) {
|
|
9
9
|
return e && e.__esModule ? e : {
|
|
@@ -23,8 +23,9 @@ var RemoveButton = function (_a) {
|
|
|
23
23
|
"aria-label": ariaLabel,
|
|
24
24
|
className: classnames__default.default(RemoveButton_module.removeButton, classNameOverride),
|
|
25
25
|
onClick: onClick
|
|
26
|
-
}, restProps), React__default.default.createElement(
|
|
27
|
-
|
|
26
|
+
}, restProps), React__default.default.createElement(Icon.Icon, {
|
|
27
|
+
name: "close",
|
|
28
|
+
isPresentational: true
|
|
28
29
|
}));
|
|
29
30
|
};
|
|
30
31
|
RemoveButton.displayName = "RemoveButton";
|
package/dist/cjs/future.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var Icon = require('./__future__/Icon/Icon.cjs');
|
|
3
4
|
var Select = require('./__future__/Select/Select.cjs');
|
|
4
5
|
var RemovableTag = require('./__future__/Tag/RemovableTag/RemovableTag.cjs');
|
|
5
6
|
var Tag = require('./__future__/Tag/Tag/Tag.cjs');
|
|
@@ -7,6 +8,7 @@ var Tabs = require('./__future__/Tabs/Tabs.cjs');
|
|
|
7
8
|
var Tab = require('./__future__/Tabs/subcomponents/Tab/Tab.cjs');
|
|
8
9
|
var TabList = require('./__future__/Tabs/subcomponents/TabList/TabList.cjs');
|
|
9
10
|
var TabPanel = require('./__future__/Tabs/subcomponents/TabPanel/TabPanel.cjs');
|
|
11
|
+
exports.Icon = Icon.Icon;
|
|
10
12
|
exports.Select = Select.Select;
|
|
11
13
|
exports.RemovableTag = RemovableTag.RemovableTag;
|
|
12
14
|
exports.Tag = Tag.Tag;
|
|
@@ -2,8 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Textfit } from 'react-textfit';
|
|
5
|
-
import '../Icon/
|
|
6
|
-
import { UserIcon } from '../Icon/UserIcon.mjs';
|
|
5
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
7
6
|
import styles from './Avatar.module.scss.mjs';
|
|
8
7
|
var getInitials = function (fullName, max2Characters) {
|
|
9
8
|
if (max2Characters === void 0) {
|
|
@@ -19,17 +18,21 @@ var getMaxFontSizePixels = function (size) {
|
|
|
19
18
|
if (size === "xlarge" || size === "xxlarge") return 34;
|
|
20
19
|
return 22;
|
|
21
20
|
};
|
|
22
|
-
var
|
|
21
|
+
var FallbackIcon = function (_a) {
|
|
22
|
+
var alt = _a.alt;
|
|
23
23
|
if (alt) {
|
|
24
|
-
return /*#__PURE__*/React.createElement(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
25
|
+
name: "person",
|
|
26
|
+
alt: alt,
|
|
27
|
+
isFilled: true,
|
|
28
|
+
className: styles.fallbackIcon
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
return /*#__PURE__*/React.createElement(
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
32
|
+
name: "person",
|
|
33
|
+
isPresentational: true,
|
|
34
|
+
isFilled: true,
|
|
35
|
+
className: styles.fallbackIcon
|
|
33
36
|
});
|
|
34
37
|
};
|
|
35
38
|
var renderInitials = function (fullName, alt, size, disableInitials) {
|
|
@@ -42,9 +45,9 @@ var renderInitials = function (fullName, alt, size, disableInitials) {
|
|
|
42
45
|
var initials = getInitials(fullName);
|
|
43
46
|
var isLongName = initials.length > 2 && size !== "small";
|
|
44
47
|
var renderFallback = disableInitials || initials === "";
|
|
45
|
-
return renderFallback ? ( /*#__PURE__*/React.createElement(
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
+
return renderFallback ? ( /*#__PURE__*/React.createElement(FallbackIcon, {
|
|
49
|
+
alt: alt
|
|
50
|
+
})) : ( /*#__PURE__*/React.createElement("abbr", {
|
|
48
51
|
className: classnames(styles.initials, isLongName && styles.longName),
|
|
49
52
|
title: alt
|
|
50
53
|
}, isLongName ? (
|
|
@@ -2,9 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useRef, useEffect } from 'react';
|
|
3
3
|
import { enAU } from 'date-fns/locale';
|
|
4
4
|
import { DayPicker } from 'react-day-picker';
|
|
5
|
-
import '../../Icon/
|
|
6
|
-
import { ArrowBackwardIcon } from '../../Icon/ArrowBackwardIcon.mjs';
|
|
7
|
-
import { ArrowForwardIcon } from '../../Icon/ArrowForwardIcon.mjs';
|
|
5
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
8
6
|
import { baseCalendarClassNames } from '../baseCalendarClassNames.mjs';
|
|
9
7
|
import 'date-fns';
|
|
10
8
|
import { isInvalidDate } from '../utils/isInvalidDate.mjs';
|
|
@@ -48,13 +46,17 @@ const CalendarRange = /*#__PURE__*/function () {
|
|
|
48
46
|
classNames: classNames,
|
|
49
47
|
components: {
|
|
50
48
|
IconRight: function () {
|
|
51
|
-
return /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
49
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
50
|
+
name: "arrow_forward",
|
|
51
|
+
isPresentational: true,
|
|
52
|
+
shouldMirrorInRTL: true
|
|
53
53
|
});
|
|
54
54
|
},
|
|
55
55
|
IconLeft: function () {
|
|
56
|
-
return /*#__PURE__*/React.createElement(
|
|
57
|
-
|
|
56
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
57
|
+
name: "arrow_back",
|
|
58
|
+
isPresentational: true,
|
|
59
|
+
shouldMirrorInRTL: true
|
|
58
60
|
});
|
|
59
61
|
}
|
|
60
62
|
},
|
|
@@ -2,9 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useRef, useEffect } from 'react';
|
|
3
3
|
import { enAU } from 'date-fns/locale';
|
|
4
4
|
import { DayPicker } from 'react-day-picker';
|
|
5
|
-
import '../../Icon/
|
|
6
|
-
import { ArrowBackwardIcon } from '../../Icon/ArrowBackwardIcon.mjs';
|
|
7
|
-
import { ArrowForwardIcon } from '../../Icon/ArrowForwardIcon.mjs';
|
|
5
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
8
6
|
import { baseCalendarClassNames } from '../baseCalendarClassNames.mjs';
|
|
9
7
|
import 'date-fns';
|
|
10
8
|
import { isInvalidDate } from '../utils/isInvalidDate.mjs';
|
|
@@ -45,13 +43,17 @@ const CalendarSingle = /*#__PURE__*/function () {
|
|
|
45
43
|
classNames: classNames,
|
|
46
44
|
components: {
|
|
47
45
|
IconRight: function () {
|
|
48
|
-
return /*#__PURE__*/React.createElement(
|
|
49
|
-
|
|
46
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
name: "arrow_forward",
|
|
48
|
+
isPresentational: true,
|
|
49
|
+
shouldMirrorInRTL: true
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
52
|
IconLeft: function () {
|
|
53
|
-
return /*#__PURE__*/React.createElement(
|
|
54
|
-
|
|
53
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
54
|
+
name: "arrow_back",
|
|
55
|
+
isPresentational: true,
|
|
56
|
+
shouldMirrorInRTL: true
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
59
|
},
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DayPicker } from 'react-day-picker';
|
|
4
|
-
import '../../Icon/
|
|
5
|
-
import { ArrowBackwardIcon } from '../../Icon/ArrowBackwardIcon.mjs';
|
|
6
|
-
import { ArrowForwardIcon } from '../../Icon/ArrowForwardIcon.mjs';
|
|
4
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
7
5
|
import { baseCalendarClassNames } from '../baseCalendarClassNames.mjs';
|
|
8
6
|
import { DayOfWeek } from '../enums.mjs';
|
|
9
7
|
import 'date-fns';
|
|
@@ -43,13 +41,17 @@ const LegacyCalendarRange = /*#__PURE__*/function () {
|
|
|
43
41
|
classNames: classNames,
|
|
44
42
|
components: {
|
|
45
43
|
IconRight: function () {
|
|
46
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
-
|
|
44
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
45
|
+
name: "arrow_forward",
|
|
46
|
+
isPresentational: true,
|
|
47
|
+
shouldMirrorInRTL: true
|
|
48
48
|
});
|
|
49
49
|
},
|
|
50
50
|
IconLeft: function () {
|
|
51
|
-
return /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
51
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
52
|
+
name: "arrow_back",
|
|
53
|
+
isPresentational: true,
|
|
54
|
+
shouldMirrorInRTL: true
|
|
53
55
|
});
|
|
54
56
|
}
|
|
55
57
|
},
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../../Icon/
|
|
5
|
-
import { CheckIcon } from '../../Icon/CheckIcon.mjs';
|
|
6
|
-
import { MinusIcon } from '../../Icon/MinusIcon.mjs';
|
|
4
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
7
5
|
import styles from './Checkbox.module.scss.mjs';
|
|
8
6
|
var renderCheckOrMixedIcon = function (status, reversed) {
|
|
9
7
|
if (status === "off") return;
|
|
10
|
-
return /*#__PURE__*/React.createElement(
|
|
8
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
9
|
+
name: status === "on" ? "check" : "remove",
|
|
10
|
+
isPresentational: true,
|
|
11
11
|
className: classnames(styles.icon, reversed && styles.reversed)
|
|
12
|
-
}
|
|
13
|
-
role: "presentation",
|
|
14
|
-
inheritSize: true
|
|
15
|
-
})) : ( /*#__PURE__*/React.createElement(MinusIcon, {
|
|
16
|
-
role: "presentation",
|
|
17
|
-
inheritSize: true
|
|
18
|
-
})));
|
|
12
|
+
});
|
|
19
13
|
};
|
|
20
14
|
var getCheckedFromStatus = function (checkedStatus) {
|
|
21
15
|
return checkedStatus === "on";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../Icon/
|
|
5
|
-
import { ClearIcon } from '../Icon/ClearIcon.mjs';
|
|
4
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
6
5
|
import styles from './ClearButton.module.scss.mjs';
|
|
7
6
|
const ClearButton = /*#__PURE__*/function () {
|
|
8
7
|
const ClearButton = function (_a) {
|
|
@@ -14,8 +13,10 @@ const ClearButton = /*#__PURE__*/function () {
|
|
|
14
13
|
type: "button",
|
|
15
14
|
"aria-label": "clear",
|
|
16
15
|
className: classnames(styles.clearButton, isReversed ? styles.reversed : styles.default, classNameOverride)
|
|
17
|
-
}, restProps), /*#__PURE__*/React.createElement(
|
|
18
|
-
|
|
16
|
+
}, restProps), /*#__PURE__*/React.createElement(Icon, {
|
|
17
|
+
name: "cancel",
|
|
18
|
+
isPresentational: true,
|
|
19
|
+
isFilled: true
|
|
19
20
|
}));
|
|
20
21
|
};
|
|
21
22
|
ClearButton.displayName = "ClearButton";
|
|
@@ -3,9 +3,7 @@ import React, { useState, useId } from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import AnimateHeight from 'react-animate-height';
|
|
5
5
|
import { Heading } from '../../Heading/Heading.mjs';
|
|
6
|
-
import '../../Icon/
|
|
7
|
-
import { ChevronDownIcon } from '../../Icon/ChevronDownIcon.mjs';
|
|
8
|
-
import { ChevronUpIcon } from '../../Icon/ChevronUpIcon.mjs';
|
|
6
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
9
7
|
import styles from './Collapsible.module.scss.mjs';
|
|
10
8
|
import { IconButton } from '../../__actions__/Button/v1/IconButton/IconButton.mjs';
|
|
11
9
|
const Collapsible = /*#__PURE__*/function () {
|
|
@@ -65,11 +63,10 @@ const Collapsible = /*#__PURE__*/function () {
|
|
|
65
63
|
tag: "span"
|
|
66
64
|
}, title))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconButton, {
|
|
67
65
|
label: title,
|
|
68
|
-
icon:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
})),
|
|
66
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
67
|
+
name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
68
|
+
isPresentational: true
|
|
69
|
+
}),
|
|
73
70
|
type: "button",
|
|
74
71
|
"aria-expanded": isOpen,
|
|
75
72
|
"aria-controls": sectionId,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../../Icon/
|
|
5
|
-
import { DateStartIcon } from '../../Icon/DateStartIcon.mjs';
|
|
4
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
6
5
|
import { isRefObject } from '../../utils/isRefObject.mjs';
|
|
7
6
|
import { DateInput } from '../DateInput/DateInput.mjs';
|
|
8
7
|
import styles from './DateInputWithIconButton.module.scss.mjs';
|
|
@@ -23,8 +22,10 @@ const DateInputWithIconButton = /*#__PURE__*/function () {
|
|
|
23
22
|
"aria-disabled": disabled,
|
|
24
23
|
disabled: disabled,
|
|
25
24
|
className: classnames(styles.iconButton, restProps["aria-expanded"] && styles.calendarActive, disabled && styles.disabled)
|
|
26
|
-
}, /*#__PURE__*/React.createElement(
|
|
27
|
-
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
26
|
+
name: "today",
|
|
27
|
+
isPresentational: true,
|
|
28
|
+
isFilled: true
|
|
28
29
|
}));
|
|
29
30
|
return /*#__PURE__*/React.createElement(DateInput, __assign({
|
|
30
31
|
ref: inputRef,
|