@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.
Files changed (274) hide show
  1. package/codemods/README.md +5 -0
  2. package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +255 -0
  3. package/codemods/upgradeIconV1/index.ts +33 -0
  4. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.spec.ts +83 -0
  5. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.ts +53 -0
  6. package/codemods/upgradeIconV1/transformIcon.spec.ts +181 -0
  7. package/codemods/upgradeIconV1/transformIcon.ts +115 -0
  8. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.spec.ts +81 -0
  9. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.ts +41 -0
  10. package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +306 -0
  11. package/codemods/upgradeIconV1/upgradeIconV1.ts +94 -0
  12. package/codemods/utils/createProp.spec.ts +83 -0
  13. package/codemods/utils/createProp.ts +51 -0
  14. package/codemods/utils/getKaioTagName.spec.ts +85 -0
  15. package/codemods/utils/getKaioTagName.ts +129 -0
  16. package/codemods/utils/index.ts +3 -1
  17. package/codemods/utils/transformComponentsInDir.ts +32 -16
  18. package/codemods/utils/transformSource.ts +10 -5
  19. package/codemods/utils/updateJsxElementWithNewProps.ts +4 -3
  20. package/codemods/utils/updateKaioImports.spec.ts +223 -0
  21. package/codemods/utils/updateKaioImports.ts +233 -0
  22. package/dist/cjs/Avatar/Avatar.cjs +16 -13
  23. package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +9 -7
  24. package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +9 -7
  25. package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +9 -7
  26. package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +5 -11
  27. package/dist/cjs/ClearButton/ClearButton.cjs +5 -4
  28. package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -7
  29. package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +5 -4
  30. package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -4
  31. package/dist/cjs/ErrorPage/ErrorPage.cjs +9 -7
  32. package/dist/cjs/FieldMessage/FieldMessage.cjs +5 -11
  33. package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +4 -5
  34. package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +4 -7
  35. package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +5 -5
  36. package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +4 -4
  37. package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +5 -4
  38. package/dist/cjs/Illustration/utils/usePausePlay.cjs +5 -8
  39. package/dist/cjs/Input/InputSearch/InputSearch.cjs +4 -3
  40. package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +5 -6
  41. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +31 -26
  42. package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +4 -5
  43. package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +7 -17
  44. package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +4 -7
  45. package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +4 -3
  46. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +33 -38
  47. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.cjs +6 -0
  48. package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +11 -19
  49. package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +4 -5
  50. package/dist/cjs/Popover/Popover.cjs +5 -4
  51. package/dist/cjs/Popover/utils/classMappers.cjs +21 -16
  52. package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +29 -25
  53. package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +10 -12
  54. package/dist/cjs/Select/Select.cjs +8 -10
  55. package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +4 -4
  56. package/dist/cjs/Table/Table.cjs +11 -10
  57. package/dist/cjs/Tag/Tag.cjs +21 -17
  58. package/dist/cjs/TextField/TextField.cjs +5 -4
  59. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +8 -7
  60. package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +9 -12
  61. package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +7 -7
  62. package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +10 -15
  63. package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +7 -7
  64. package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +5 -5
  65. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +13 -18
  66. package/dist/cjs/__future__/Icon/Icon.cjs +47 -0
  67. package/dist/cjs/__future__/Icon/Icon.module.css.cjs +10 -0
  68. package/dist/cjs/__future__/Icon/constants.cjs +8 -0
  69. package/dist/cjs/__future__/Select/subcomponents/Option/Option.cjs +4 -5
  70. package/dist/cjs/__future__/Select/subcomponents/SelectToggle/SelectToggle.cjs +5 -9
  71. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveButton.cjs +4 -3
  72. package/dist/cjs/future.cjs +2 -0
  73. package/dist/esm/Avatar/Avatar.mjs +16 -13
  74. package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +9 -7
  75. package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +9 -7
  76. package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +9 -7
  77. package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +5 -11
  78. package/dist/esm/ClearButton/ClearButton.mjs +5 -4
  79. package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +5 -8
  80. package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +5 -4
  81. package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -4
  82. package/dist/esm/ErrorPage/ErrorPage.mjs +10 -8
  83. package/dist/esm/FieldMessage/FieldMessage.mjs +6 -12
  84. package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +4 -5
  85. package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +5 -8
  86. package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +5 -5
  87. package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +4 -4
  88. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +5 -4
  89. package/dist/esm/Illustration/utils/usePausePlay.mjs +5 -8
  90. package/dist/esm/Input/InputSearch/InputSearch.mjs +4 -3
  91. package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +5 -6
  92. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +31 -26
  93. package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +4 -5
  94. package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +7 -17
  95. package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +5 -8
  96. package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +4 -3
  97. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +33 -38
  98. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.mjs +4 -0
  99. package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +11 -19
  100. package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +4 -5
  101. package/dist/esm/Popover/Popover.mjs +5 -4
  102. package/dist/esm/Popover/utils/classMappers.mjs +21 -16
  103. package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +33 -29
  104. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +10 -12
  105. package/dist/esm/Select/Select.mjs +9 -11
  106. package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +4 -4
  107. package/dist/esm/Table/Table.mjs +11 -10
  108. package/dist/esm/Tag/Tag.mjs +21 -17
  109. package/dist/esm/TextField/TextField.mjs +5 -4
  110. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +8 -7
  111. package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +9 -12
  112. package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +7 -7
  113. package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +13 -18
  114. package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +7 -7
  115. package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +5 -5
  116. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +16 -21
  117. package/dist/esm/__future__/Icon/Icon.mjs +38 -0
  118. package/dist/esm/__future__/Icon/Icon.module.css.mjs +8 -0
  119. package/dist/esm/__future__/Icon/constants.mjs +6 -0
  120. package/dist/esm/__future__/Select/subcomponents/Option/Option.mjs +4 -5
  121. package/dist/esm/__future__/Select/subcomponents/SelectToggle/SelectToggle.mjs +6 -10
  122. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveButton.mjs +4 -3
  123. package/dist/esm/future.mjs +1 -0
  124. package/dist/styles.css +585 -561
  125. package/dist/types/__future__/Icon/Icon.d.ts +21 -0
  126. package/dist/types/__future__/Icon/constants.d.ts +5 -0
  127. package/dist/types/__future__/Icon/index.d.ts +1 -0
  128. package/dist/types/__future__/Icon/types.d.ts +4 -0
  129. package/dist/types/__future__/index.d.ts +1 -0
  130. package/package.json +10 -10
  131. package/src/Avatar/Avatar.module.scss +6 -8
  132. package/src/Avatar/Avatar.tsx +14 -5
  133. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +6 -10
  134. package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
  135. package/src/Calendar/CalendarRange/CalendarRange.tsx +7 -3
  136. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +7 -3
  137. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +7 -3
  138. package/src/Calendar/baseCalendarClassNames.module.scss +0 -4
  139. package/src/Checkbox/Checkbox/Checkbox.module.scss +0 -8
  140. package/src/Checkbox/Checkbox/Checkbox.tsx +6 -8
  141. package/src/ClearButton/ClearButton.tsx +2 -2
  142. package/src/Collapsible/Collapsible/Collapsible.tsx +5 -6
  143. package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +2 -2
  144. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +2 -7
  145. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +2 -2
  146. package/src/DateRangePicker/DateRangePicker.tsx +2 -2
  147. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +8 -2
  148. package/src/EmptyState/_docs/EmptyState.stories.tsx +4 -2
  149. package/src/ErrorPage/ErrorPage.tsx +5 -3
  150. package/src/FieldMessage/FieldMessage.tsx +6 -14
  151. package/src/Filter/FilterBar/FilterBar.spec.tsx +12 -12
  152. package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +2 -2
  153. package/src/Filter/FilterButton/FilterButton/FilterButton.module.scss +1 -1
  154. package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +5 -6
  155. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
  156. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +0 -1
  157. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +2 -1
  158. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +2 -2
  159. package/src/Filter/FilterSelect/FilterSelect.spec.tsx +4 -5
  160. package/src/GuidanceBlock/GuidanceBlock.tsx +6 -2
  161. package/src/Icon/_docs/{Icon.stories.tsx → Icon.docs.stories.tsx} +1 -1
  162. package/src/Icon/_docs/Icon.mdx +1 -2
  163. package/src/Icon/_docs/Icon.stickersheet.stories.tsx +1 -1
  164. package/src/Illustration/utils/usePausePlay.tsx +7 -5
  165. package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +7 -5
  166. package/src/Input/Input/_docs/Input.stories.tsx +5 -3
  167. package/src/Input/InputSearch/InputSearch.tsx +2 -2
  168. package/src/Label/Label.module.scss +4 -0
  169. package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +2 -2
  170. package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +2 -2
  171. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +2 -0
  172. package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +32 -35
  173. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +2 -2
  174. package/src/MultiSelect/MultiSelect.spec.tsx +7 -3
  175. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +0 -6
  176. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +10 -9
  177. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +11 -7
  178. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +5 -7
  179. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +2 -2
  180. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +2 -0
  181. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +3 -0
  182. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +22 -16
  183. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +0 -4
  184. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +13 -12
  185. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.scss +0 -1
  186. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +2 -2
  187. package/src/Popover/Popover.module.scss +3 -3
  188. package/src/Popover/Popover.tsx +2 -2
  189. package/src/Popover/utils/classMappers.tsx +6 -11
  190. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +7 -7
  191. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +2 -2
  192. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +7 -4
  193. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +18 -12
  194. package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +25 -18
  195. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +4 -8
  196. package/src/Select/Select.module.scss +2 -0
  197. package/src/Select/Select.tsx +10 -7
  198. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +4 -5
  199. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +2 -2
  200. package/src/Table/Table.tsx +4 -8
  201. package/src/Table/_docs/Table.stickersheet.stories.tsx +4 -4
  202. package/src/Table/_docs/Table.stories.tsx +3 -3
  203. package/src/Tag/Tag.module.scss +2 -0
  204. package/src/Tag/Tag.tsx +7 -13
  205. package/src/Text/Text.module.scss +2 -0
  206. package/src/TextField/TextField.spec.tsx +9 -4
  207. package/src/TextField/TextField.tsx +2 -2
  208. package/src/TextField/_docs/TextField.stories.tsx +4 -3
  209. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +3 -3
  210. package/src/TitleBlockZen/TitleBlockZen.module.scss +1 -0
  211. package/src/TitleBlockZen/TitleBlockZen.spec.tsx +1 -1
  212. package/src/TitleBlockZen/TitleBlockZen.tsx +6 -9
  213. package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +5 -5
  214. package/src/TitleBlockZen/subcomponents/MainActions.tsx +5 -3
  215. package/src/TitleBlockZen/subcomponents/MobileActions.tsx +13 -16
  216. package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +3 -3
  217. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -3
  218. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +2 -2
  219. package/src/Workflow/_docs/Workflow.stories.tsx +4 -5
  220. package/src/Workflow/_docs/WorkflowHeader.stories.tsx +4 -5
  221. package/src/Workflow/_docs/controls/controls.tsx +4 -4
  222. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +6 -31
  223. package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +5 -5
  224. package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +6 -5
  225. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +6 -6
  226. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +4 -4
  227. package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +6 -5
  228. package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +4 -4
  229. package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +3 -3
  230. package/src/__actions__/Menu/v1/_docs/Menu.stories.tsx +3 -3
  231. package/src/__actions__/Menu/v1/_docs/MenuContentExample.tsx +6 -6
  232. package/src/__actions__/Menu/v1/_docs/examples.tsx +5 -5
  233. package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +3 -3
  234. package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +1 -3
  235. package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +46 -45
  236. package/src/__actions__/Menu/v3/_docs/Menu.mdx +1 -1
  237. package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +21 -23
  238. package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -15
  239. package/src/__future__/Icon/Icon.module.css +35 -0
  240. package/src/__future__/Icon/Icon.spec.tsx +36 -0
  241. package/src/__future__/Icon/Icon.tsx +85 -0
  242. package/src/__future__/Icon/_docs/Icon--api-specification.mdx +98 -0
  243. package/src/__future__/Icon/_docs/Icon--usage-guidelines.mdx +145 -0
  244. package/src/__future__/Icon/_docs/Icon.docs.module.css +17 -0
  245. package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +524 -0
  246. package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +126 -0
  247. package/src/__future__/Icon/_docs/assets/interface-dont.png +0 -0
  248. package/src/__future__/Icon/_docs/assets/tooltip-dont.png +0 -0
  249. package/src/__future__/Icon/constants.ts +149 -0
  250. package/src/__future__/Icon/index.ts +1 -0
  251. package/src/__future__/Icon/material-symbols-metadata.json +3370 -0
  252. package/src/__future__/Icon/types.ts +11 -0
  253. package/src/__future__/Select/subcomponents/Option/Option.tsx +2 -2
  254. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +1 -1
  255. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +6 -9
  256. package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +0 -77
  257. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +0 -56
  258. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +2 -12
  259. package/src/__future__/Tag/Tag/Tag.module.scss +1 -1
  260. package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +6 -17
  261. package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +5 -2
  262. package/src/__future__/Tag/Tag/_docs/Tag.stories.tsx +13 -6
  263. package/src/__future__/index.ts +1 -0
  264. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +10 -10
  265. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +7 -4
  266. package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +4 -11
  267. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +10 -10
  268. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +3 -3
  269. package/codemods/utils/getTagName.spec.ts +0 -24
  270. package/codemods/utils/getTagName.ts +0 -32
  271. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.cjs +0 -23
  272. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.mjs +0 -15
  273. package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.d.ts +0 -2
  274. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.tsx +0 -21
@@ -11,10 +11,9 @@ import 'date-fns';
11
11
  import { isDisabledDate } from '../Calendar/utils/isDisabledDate.mjs';
12
12
  import { CalendarPopover } from '../Calendar/CalendarPopover/CalendarPopover.mjs';
13
13
  import { LegacyCalendarRange } from '../Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs';
14
- import '../Icon/subcomponents/SVG/SVG.mjs';
15
- import { DateStartIcon } from '../Icon/DateStartIcon.mjs';
16
14
  import { Label } from '../Label/Label.mjs';
17
15
  import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.mjs';
16
+ import { Icon } from '../__future__/Icon/Icon.mjs';
18
17
  import styles from './DateRangePicker.module.scss.mjs';
19
18
 
20
19
  /**
@@ -117,8 +116,10 @@ const DateRangePicker = /*#__PURE__*/function () {
117
116
  "aria-label": (selectedDateRange === null || selectedDateRange === void 0 ? void 0 : selectedDateRange.from) ? "Change date: ".concat(value) : "Choose date"
118
117
  }, inputProps), /*#__PURE__*/React.createElement("div", {
119
118
  className: styles.startIconAdornment
120
- }, /*#__PURE__*/React.createElement(DateStartIcon, {
121
- role: "presentation"
119
+ }, /*#__PURE__*/React.createElement(Icon, {
120
+ name: "today",
121
+ isPresentational: true,
122
+ isFilled: true
122
123
  })), /*#__PURE__*/React.createElement("span", {
123
124
  className: styles.value
124
125
  }, (selectedDateRange === null || selectedDateRange === void 0 ? void 0 : selectedDateRange.from) ? value : undefined))), isOpen && ( /*#__PURE__*/React.createElement(FocusOn, {
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  import { useIntl, FormattedMessage } from '@cultureamp/i18n-react-intl';
4
4
  import classnames from 'classnames';
5
5
  import { BrandMoment } from '../BrandMoment/BrandMoment.mjs';
6
- import '../Icon/subcomponents/SVG/SVG.mjs';
7
- import { ArrowRightIcon } from '../Icon/ArrowRightIcon.mjs';
8
- import { EmailIcon } from '../Icon/EmailIcon.mjs';
9
6
  import '../Illustration/subcomponents/Base/Base.mjs';
10
7
  import '../Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs';
11
8
  import { BrandMomentError } from '../Illustration/Scene/Scene.mjs';
12
9
  import { Text } from '../Text/Text.mjs';
10
+ import { Icon } from '../__future__/Icon/Icon.mjs';
13
11
  import { useErrorMessages } from './hooks/useErrorMessages.mjs';
14
12
  import styles from './ErrorPage.module.scss.mjs';
15
13
  var getMailToHref = function (code) {
@@ -62,9 +60,11 @@ const ErrorPage = /*#__PURE__*/function () {
62
60
  }),
63
61
  variant: "warning",
64
62
  primaryAction: __assign(__assign({}, actions.primary), {
65
- icon: /*#__PURE__*/React.createElement(ArrowRightIcon, {
66
- role: "presentation"
67
- }),
63
+ icon: ( /*#__PURE__*/React.createElement(Icon, {
64
+ name: "arrow_forward",
65
+ isPresentational: true,
66
+ shouldMirrorInRTL: true
67
+ })),
68
68
  iconPosition: "end",
69
69
  label: formatMessage({
70
70
  id: "kzErrorPage.goToHome",
@@ -73,8 +73,10 @@ const ErrorPage = /*#__PURE__*/function () {
73
73
  })
74
74
  }),
75
75
  secondaryAction: __assign(__assign({}, actions.secondary), {
76
- icon: /*#__PURE__*/React.createElement(EmailIcon, {
77
- role: "presentation"
76
+ icon: /*#__PURE__*/React.createElement(Icon, {
77
+ name: "mail",
78
+ isPresentational: true,
79
+ isFilled: true
78
80
  }),
79
81
  label: formatMessage({
80
82
  id: "kzErrorPage",
@@ -1,10 +1,8 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
- import '../Icon/subcomponents/SVG/SVG.mjs';
5
- import { CautionWhiteIcon } from '../Icon/CautionWhiteIcon.mjs';
6
- import { ExclamationWhiteIcon } from '../Icon/ExclamationWhiteIcon.mjs';
7
4
  import { Text } from '../Text/Text.mjs';
5
+ import { Icon } from '../__future__/Icon/Icon.mjs';
8
6
  import styles from './FieldMessage.module.scss.mjs';
9
7
  const FieldMessage = /*#__PURE__*/function () {
10
8
  const FieldMessage = function (_a) {
@@ -22,15 +20,11 @@ const FieldMessage = /*#__PURE__*/function () {
22
20
  className: classnames(styles.message, styles[status], classNameOverride, reversed && styles.reversed, position === "bottom" && styles.positionBottom, position === "top" && styles.positionTop)
23
21
  }, restProps), (status === "error" || status === "caution") && ( /*#__PURE__*/React.createElement("span", {
24
22
  className: styles.warningIcon
25
- }, status === "error" ? ( /*#__PURE__*/React.createElement(ExclamationWhiteIcon, {
26
- role: "img",
27
- inheritSize: false,
28
- "aria-label": "".concat(status, " message")
29
- })) : ( /*#__PURE__*/React.createElement(CautionWhiteIcon, {
30
- role: "img",
31
- inheritSize: false,
32
- "aria-label": "".concat(status, " message")
33
- })))), /*#__PURE__*/React.createElement("div", {
23
+ }, /*#__PURE__*/React.createElement(Icon, {
24
+ name: status === "error" ? "error" : "warning",
25
+ isFilled: true,
26
+ alt: "".concat(status, " message")
27
+ }))), /*#__PURE__*/React.createElement("div", {
34
28
  className: styles.message
35
29
  }, /*#__PURE__*/React.createElement(Text, {
36
30
  variant: "small",
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from '@cultureamp/i18n-react-intl';
3
- import 'tslib';
4
- import '../../../../Icon/subcomponents/SVG/SVG.mjs';
5
- import { AddIcon } from '../../../../Icon/AddIcon.mjs';
3
+ import { Icon } from '../../../../__future__/Icon/Icon.mjs';
6
4
  import { useFilterBarContext } from '../../context/FilterBarContext.mjs';
7
5
  import { Menu } from '../../../../__actions__/Menu/v1/Menu.mjs';
8
6
  import { MenuList } from '../../../../__actions__/Menu/v1/subcomponents/MenuList/MenuList.mjs';
@@ -25,8 +23,9 @@ const AddFiltersMenu = /*#__PURE__*/function () {
25
23
  label: menuButtonLabel,
26
24
  secondary: true,
27
25
  disabled: inactiveFilters.length === 0,
28
- icon: /*#__PURE__*/React.createElement(AddIcon, {
29
- role: "presentation"
26
+ icon: /*#__PURE__*/React.createElement(Icon, {
27
+ name: "add",
28
+ isPresentational: true
30
29
  })
31
30
  })
32
31
  }, /*#__PURE__*/React.createElement(MenuList, null, inactiveFilters.map(function (_a) {
@@ -1,9 +1,7 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import classnames from 'classnames';
4
- import '../../../Icon/subcomponents/SVG/SVG.mjs';
5
- import { ChevronDownIcon } from '../../../Icon/ChevronDownIcon.mjs';
6
- import { ChevronUpIcon } from '../../../Icon/ChevronUpIcon.mjs';
4
+ import { Icon } from '../../../__future__/Icon/Icon.mjs';
7
5
  import { isRefObject } from '../../../utils/isRefObject.mjs';
8
6
  import { FilterButtonBase } from '../subcomponents/FilterButtonBase/FilterButtonBase.mjs';
9
7
  import styles from './FilterButton.module.scss.mjs';
@@ -29,11 +27,10 @@ const FilterButton = /*#__PURE__*/function () {
29
27
  className: styles.hasSelectedValues
30
28
  }, /*#__PURE__*/React.createElement("span", null, label), /*#__PURE__*/React.createElement("span", {
31
29
  className: styles.labelSeparator
32
- }, ":")), /*#__PURE__*/React.createElement("span", null, selectedValuesLabel))) : label), isOpen ? ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
33
- role: "presentation"
34
- })) : ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
35
- role: "presentation"
36
- })));
30
+ }, ":")), /*#__PURE__*/React.createElement("span", null, selectedValuesLabel))) : label), /*#__PURE__*/React.createElement(Icon, {
31
+ name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
32
+ isPresentational: true
33
+ }));
37
34
  });
38
35
  FilterButton.displayName = "FilterButton";
39
36
  return FilterButton;
@@ -2,8 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import { useIntl } from '@cultureamp/i18n-react-intl';
4
4
  import { ButtonGroup } from '../../../ButtonGroup/ButtonGroup.mjs';
5
- import '../../../Icon/subcomponents/SVG/SVG.mjs';
6
- import { ClearIcon } from '../../../Icon/ClearIcon.mjs';
5
+ import { Icon } from '../../../__future__/Icon/Icon.mjs';
7
6
  import { Tooltip } from '../../../__overlays__/Tooltip/v1/index.mjs';
8
7
  import { isRefObject } from '../../../utils/isRefObject.mjs';
9
8
  import { FilterButton } from '../FilterButton/FilterButton.mjs';
@@ -33,9 +32,10 @@ const FilterButtonRemovable = /*#__PURE__*/function () {
33
32
  position: "below"
34
33
  }, /*#__PURE__*/React.createElement(FilterButtonBase, __assign({
35
34
  ref: removeButtonRef
36
- }, removeButtonProps), /*#__PURE__*/React.createElement(ClearIcon, {
37
- role: "img",
38
- "aria-label": removeButtonLabel
35
+ }, removeButtonProps), /*#__PURE__*/React.createElement(Icon, {
36
+ name: "cancel",
37
+ alt: removeButtonLabel,
38
+ isFilled: true
39
39
  }))));
40
40
  });
41
41
  FilterButtonRemovable.displayName = "FilterButtonRemovable";
@@ -5,9 +5,8 @@ import { useOption } from '@react-aria/listbox';
5
5
  import { mergeProps } from '@react-aria/utils';
6
6
  import classnames from 'classnames';
7
7
  import { Badge } from '../../../../Badge/Badge.mjs';
8
- import '../../../../Icon/subcomponents/SVG/SVG.mjs';
9
- import { CheckIcon } from '../../../../Icon/CheckIcon.mjs';
10
8
  import { VisuallyHidden } from '../../../../VisuallyHidden/VisuallyHidden.mjs';
9
+ import { Icon } from '../../../../__future__/Icon/Icon.mjs';
11
10
  import '../../context/MenuTriggerProvider/MenuTriggerProvider.mjs';
12
11
  import { useSelectionContext } from '../../context/SelectionProvider/SelectionProvider.mjs';
13
12
  import styles from './MultiSelectOption.module.scss.mjs';
@@ -38,8 +37,9 @@ const MultiSelectOption = /*#__PURE__*/function () {
38
37
  "aria-describedby": ((_c = item.value) === null || _c === void 0 ? void 0 : _c.count) ? countElementId : undefined
39
38
  }), /*#__PURE__*/React.createElement("span", {
40
39
  className: classnames(styles.icon, isSelected && styles.isSelected)
41
- }, isSelected && /*#__PURE__*/React.createElement(CheckIcon, {
42
- role: "presentation"
40
+ }, isSelected && /*#__PURE__*/React.createElement(Icon, {
41
+ name: "check",
42
+ isPresentational: true
43
43
  })), item.rendered, ((_d = item.value) === null || _d === void 0 ? void 0 : _d.count) && ( /*#__PURE__*/React.createElement("span", {
44
44
  id: countElementId,
45
45
  className: styles.badgeContainer
@@ -3,9 +3,8 @@ import React, { useState, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import Media from 'react-media';
5
5
  import { Heading } from '../Heading/Heading.mjs';
6
- import '../Icon/subcomponents/SVG/SVG.mjs';
7
- import { ArrowForwardIcon } from '../Icon/ArrowForwardIcon.mjs';
8
6
  import { Text } from '../Text/Text.mjs';
7
+ import { Icon } from '../__future__/Icon/Icon.mjs';
9
8
  import { Tooltip } from '../__overlays__/Tooltip/v1/index.mjs';
10
9
  import styles from './GuidanceBlock.module.scss.mjs';
11
10
  import { Button } from '../__actions__/Button/v1/Button/Button.mjs';
@@ -127,8 +126,10 @@ const GuidanceBlock = /*#__PURE__*/function () {
127
126
  }, /*#__PURE__*/React.createElement(WithTooltip, {
128
127
  tooltipProps: actions.primary.tooltip
129
128
  }, /*#__PURE__*/React.createElement(Button, __assign({
130
- icon: withActionButtonArrow ? ( /*#__PURE__*/React.createElement(ArrowForwardIcon, {
131
- role: "presentation"
129
+ icon: withActionButtonArrow ? ( /*#__PURE__*/React.createElement(Icon, {
130
+ name: "arrow_forward",
131
+ isPresentational: true,
132
+ shouldMirrorInRTL: true
132
133
  })) : undefined,
133
134
  iconPosition: "end"
134
135
  }, actions.primary, {
@@ -1,8 +1,5 @@
1
1
  import React, { useState } from 'react';
2
- import 'tslib';
3
- import '../../Icon/subcomponents/SVG/SVG.mjs';
4
- import { LaunchIcon } from '../../Icon/LaunchIcon.mjs';
5
- import { PauseIcon } from '../../Icon/PauseIcon.mjs';
2
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
6
3
  var usePausePlay = function (videoRef) {
7
4
  var _a = useState(false),
8
5
  isPaused = _a[0],
@@ -18,10 +15,10 @@ var usePausePlay = function (videoRef) {
18
15
  videoRef.current.pause();
19
16
  }
20
17
  },
21
- icon: isPaused ? ( /*#__PURE__*/React.createElement(LaunchIcon, {
22
- role: "presentation"
23
- })) : ( /*#__PURE__*/React.createElement(PauseIcon, {
24
- role: "presentation"
18
+ icon: ( /*#__PURE__*/React.createElement(Icon, {
19
+ name: isPaused ? "play_circle" : "pause",
20
+ isPresentational: true,
21
+ isFilled: true
25
22
  })),
26
23
  label: isPaused ? "Play animation" : "Pause animation"
27
24
  };
@@ -3,12 +3,12 @@ import React, { useRef } from 'react';
3
3
  import { useIntl } from '@cultureamp/i18n-react-intl';
4
4
  import classnames from 'classnames';
5
5
  import { ClearButton } from '../../ClearButton/ClearButton.mjs';
6
- import { SearchIcon } from '../../Icon/SearchIcon.mjs';
7
6
  import '../../Loading/LoadingGraphic/LoadingGraphic.mjs';
8
7
  import '../../Loading/LoadingHeading/LoadingHeading.mjs';
9
8
  import '../../Loading/LoadingInput/LoadingInput.mjs';
10
9
  import '../../Loading/LoadingParagraph/LoadingParagraph.mjs';
11
10
  import { LoadingSpinner } from '../../Loading/LoadingSpinner/LoadingSpinner.mjs';
11
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
12
12
  import styles from './InputSearch.module.scss.mjs';
13
13
  const InputSearch = /*#__PURE__*/function () {
14
14
  const InputSearch = function (props) {
@@ -44,8 +44,9 @@ const InputSearch = /*#__PURE__*/function () {
44
44
  accessibilityLabel: "",
45
45
  size: "sm",
46
46
  classNameOverride: styles.loadingSpinner
47
- })) : ( /*#__PURE__*/React.createElement(SearchIcon, {
48
- role: "presentation"
47
+ })) : ( /*#__PURE__*/React.createElement(Icon, {
48
+ name: "search",
49
+ isPresentational: true
49
50
  }))), /*#__PURE__*/React.createElement("input", __assign({
50
51
  ref: inputRef,
51
52
  type: "search",
@@ -1,16 +1,15 @@
1
1
  import React, { useState, createRef } from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { FieldMessage } from '../FieldMessage/FieldMessage.mjs';
4
- import 'tslib';
5
- import '../Icon/subcomponents/SVG/SVG.mjs';
6
- import { CheckIcon } from '../Icon/CheckIcon.mjs';
7
4
  import { Text } from '../Text/Text.mjs';
5
+ import { Icon } from '../__future__/Icon/Icon.mjs';
8
6
  import determineSelectionFromKeyPress from './utils/determineSelectionFromKeyPress.mjs';
9
7
  import styles from './LikertScaleLegacy.module.scss.mjs';
10
8
  var SelectedItemIcon = function () {
11
- return /*#__PURE__*/React.createElement(CheckIcon, {
12
- role: "presentation",
13
- classNameOverride: styles.check
9
+ return /*#__PURE__*/React.createElement(Icon, {
10
+ name: "check",
11
+ isPresentational: true,
12
+ className: styles.check
14
13
  });
15
14
  };
16
15
  /**
@@ -2,11 +2,6 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { Heading } from '../../Heading/Heading.mjs';
5
- import '../../Icon/subcomponents/SVG/SVG.mjs';
6
- import { CautionWhiteIcon } from '../../Icon/CautionWhiteIcon.mjs';
7
- import { ExclamationWhiteIcon } from '../../Icon/ExclamationWhiteIcon.mjs';
8
- import { InformationWhiteIcon } from '../../Icon/InformationWhiteIcon.mjs';
9
- import { SuccessWhiteIcon } from '../../Icon/SuccessWhiteIcon.mjs';
10
5
  import { Assertive, Positive, Negative, Informative, Cautionary } from '../../Illustration/Spot/Spot.mjs';
11
6
  import '../../Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs';
12
7
  import '../../Illustration/Scene/Scene.mjs';
@@ -17,37 +12,47 @@ import { ModalFooter } from '../GenericModal/subcomponents/ModalFooter/ModalFoot
17
12
  import { ModalHeader } from '../GenericModal/subcomponents/ModalHeader/ModalHeader.mjs';
18
13
  import { ModalAccessibleLabel } from '../GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.mjs';
19
14
  import { ModalBody } from '../GenericModal/subcomponents/ModalBody/ModalBody.mjs';
15
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
20
16
  import styles from './ConfirmationModal.module.scss.mjs';
21
- var getIcon = function (variantName, isProminent) {
17
+ var getIconName = function (variantName) {
22
18
  switch (variantName) {
23
19
  case "cautionary":
24
- return isProminent ? ( /*#__PURE__*/React.createElement(Cautionary, null)) : ( /*#__PURE__*/React.createElement(CautionWhiteIcon, {
25
- inheritSize: true,
26
- role: "presentation"
27
- }));
20
+ return "warning";
28
21
  case "informative":
29
- return isProminent ? ( /*#__PURE__*/React.createElement(Informative, null)) : ( /*#__PURE__*/React.createElement(InformationWhiteIcon, {
30
- inheritSize: true,
31
- role: "presentation"
32
- }));
22
+ return "info";
33
23
  case "negative":
34
24
  case "warning":
35
- return isProminent ? ( /*#__PURE__*/React.createElement(Negative, null)) : ( /*#__PURE__*/React.createElement(ExclamationWhiteIcon, {
36
- inheritSize: true,
37
- role: "presentation"
38
- }));
25
+ return "error";
39
26
  case "positive":
40
27
  case "success":
41
- return isProminent ? ( /*#__PURE__*/React.createElement(Positive, null)) : ( /*#__PURE__*/React.createElement(SuccessWhiteIcon, {
42
- inheritSize: true,
43
- role: "presentation"
44
- }));
28
+ return "check_circle";
45
29
  case "assertive":
46
- return isProminent ? ( /*#__PURE__*/React.createElement(Assertive, null)) : ( /*#__PURE__*/React.createElement(ExclamationWhiteIcon, {
47
- inheritSize: true,
48
- role: "presentation"
49
- }));
30
+ return "error";
31
+ }
32
+ };
33
+ var getIcon = function (variantName, isProminent) {
34
+ if (isProminent) {
35
+ switch (variantName) {
36
+ case "cautionary":
37
+ return /*#__PURE__*/React.createElement(Cautionary, null);
38
+ case "informative":
39
+ return /*#__PURE__*/React.createElement(Informative, null);
40
+ case "negative":
41
+ case "warning":
42
+ return /*#__PURE__*/React.createElement(Negative, null);
43
+ case "positive":
44
+ case "success":
45
+ return /*#__PURE__*/React.createElement(Positive, null);
46
+ case "assertive":
47
+ return /*#__PURE__*/React.createElement(Assertive, null);
48
+ }
50
49
  }
50
+ var iconName = getIconName(variantName);
51
+ return /*#__PURE__*/React.createElement(Icon, {
52
+ name: iconName,
53
+ isPresentational: true,
54
+ isFilled: true
55
+ });
51
56
  };
52
57
  /**
53
58
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093114/Modal Guidance} |
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- import 'tslib';
3
- import '../../../../Icon/subcomponents/SVG/SVG.mjs';
4
- import { CloseIcon } from '../../../../Icon/CloseIcon.mjs';
2
+ import { Icon } from '../../../../__future__/Icon/Icon.mjs';
5
3
  import { ModalBody } from '../ModalBody/ModalBody.mjs';
6
4
  import styles from './ModalHeader.module.scss.mjs';
7
5
  import { IconButton } from '../../../../__actions__/Button/v1/IconButton/IconButton.mjs';
@@ -14,8 +12,9 @@ const ModalHeader = /*#__PURE__*/function () {
14
12
  className: styles.dismissButton
15
13
  }, /*#__PURE__*/React.createElement(IconButton, {
16
14
  label: "Dismiss",
17
- icon: /*#__PURE__*/React.createElement(CloseIcon, {
18
- role: "presentation"
15
+ icon: /*#__PURE__*/React.createElement(Icon, {
16
+ name: "close",
17
+ isPresentational: true
19
18
  }),
20
19
  reversed: reversed,
21
20
  onClick: onDismiss,
@@ -1,25 +1,15 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React, { useRef, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
- import '../../../Icon/subcomponents/SVG/SVG.mjs';
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 renderIcon = function (status) {
9
- switch (status) {
10
- case "indeterminate":
11
- return /*#__PURE__*/React.createElement(MinusIcon, {
12
- role: "presentation",
13
- classNameOverride: styles.icon
14
- });
15
- case "checked":
16
- return /*#__PURE__*/React.createElement(CheckIcon, {
17
- role: "presentation",
18
- classNameOverride: styles.icon
19
- });
20
- default:
21
- return null;
22
- }
7
+ if (status === "unchecked") return null;
8
+ return /*#__PURE__*/React.createElement(Icon, {
9
+ name: status === "checked" ? "check" : "remove",
10
+ isPresentational: true,
11
+ className: styles.icon
12
+ });
23
13
  };
24
14
  const Checkbox = /*#__PURE__*/function () {
25
15
  const Checkbox = function (_a) {
@@ -2,11 +2,9 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef, useId } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { ClearButton } from '../../../ClearButton/ClearButton.mjs';
5
- import '../../../Icon/subcomponents/SVG/SVG.mjs';
6
- import { ChevronDownIcon } from '../../../Icon/ChevronDownIcon.mjs';
7
- import { ChevronUpIcon } from '../../../Icon/ChevronUpIcon.mjs';
8
5
  import styles from './MultiSelectToggle.module.scss.mjs';
9
6
  import { RemovableTag } from '../../../__future__/Tag/RemovableTag/RemovableTag.mjs';
7
+ import { Icon } from '../../../__future__/Icon/Icon.mjs';
10
8
  const MultiSelectToggle = /*#__PURE__*/function () {
11
9
  const MultiSelectToggle = /*#__PURE__*/forwardRef(function (_a, ref) {
12
10
  var onClick = _a.onClick,
@@ -38,11 +36,10 @@ const MultiSelectToggle = /*#__PURE__*/function () {
38
36
  e.stopPropagation();
39
37
  onClick(e);
40
38
  }
41
- }, isOpen ? ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
42
- role: "presentation"
43
- })) : ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
44
- role: "presentation"
45
- }))), /*#__PURE__*/React.createElement("div", {
39
+ }, /*#__PURE__*/React.createElement(Icon, {
40
+ name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
41
+ isPresentational: true
42
+ })), /*#__PURE__*/React.createElement("div", {
46
43
  className: classnames(styles.selectedItemsContainer, selectedOptions.length && styles.hasSelectedItems)
47
44
  }, selectedOptions.length > 0 && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("ul", {
48
45
  role: "list",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CloseIcon } from '../../../Icon/CloseIcon.mjs';
2
+ import { Icon } from '../../../__future__/Icon/Icon.mjs';
3
3
  import styles from '../GenericNotification/GenericNotification.module.scss.mjs';
4
4
  const CancelButton = /*#__PURE__*/function () {
5
5
  const CancelButton = function (_a) {
@@ -10,8 +10,9 @@ const CancelButton = /*#__PURE__*/function () {
10
10
  onClick: onClick,
11
11
  "data-testid": "close-button",
12
12
  "aria-label": "Close notification"
13
- }, /*#__PURE__*/React.createElement(CloseIcon, {
14
- role: "presentation"
13
+ }, /*#__PURE__*/React.createElement(Icon, {
14
+ name: "close",
15
+ isPresentational: true
15
16
  }));
16
17
  };
17
18
  CancelButton.displayName = "CancelButton";
@@ -1,42 +1,42 @@
1
1
  import React from 'react';
2
- import { CautionIcon } from '../../../Icon/CautionIcon.mjs';
3
- import { ExclamationIcon } from '../../../Icon/ExclamationIcon.mjs';
4
- import { InformationIcon } from '../../../Icon/InformationIcon.mjs';
5
- import { SecurityTipIcon } from '../../../Icon/SecurityTipIcon.mjs';
6
- import { SuccessIcon } from '../../../Icon/SuccessIcon.mjs';
2
+ import styles from './NotificationIcon.module.css.mjs';
3
+ import { Icon } from '../../../__future__/Icon/Icon.mjs';
4
+ var NotificationIcon = function (_a) {
5
+ var name = _a.name;
6
+ return /*#__PURE__*/React.createElement(Icon, {
7
+ name: name,
8
+ isFilled: true,
9
+ isPresentational: true,
10
+ className: styles.notificationIcon
11
+ });
12
+ };
7
13
  const NotificationIconType = /*#__PURE__*/function () {
8
14
  const NotificationIconType = function (_a) {
9
15
  var type = _a.type;
10
16
  switch (type) {
11
17
  case "positive":
12
- return /*#__PURE__*/React.createElement(SuccessIcon, {
13
- role: "presentation",
14
- inheritSize: true
18
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
19
+ name: "check_circle"
15
20
  });
16
21
  case "negative":
17
- return /*#__PURE__*/React.createElement(ExclamationIcon, {
18
- role: "presentation",
19
- inheritSize: true
22
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
23
+ name: "error"
20
24
  });
21
25
  case "cautionary":
22
- return /*#__PURE__*/React.createElement(CautionIcon, {
23
- role: "presentation",
24
- inheritSize: true
26
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
27
+ name: "warning"
25
28
  });
26
29
  case "informative":
27
- return /*#__PURE__*/React.createElement(InformationIcon, {
28
- role: "presentation",
29
- inheritSize: true
30
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
31
+ name: "info"
30
32
  });
31
33
  case "security":
32
- return /*#__PURE__*/React.createElement(SecurityTipIcon, {
33
- role: "presentation",
34
- inheritSize: true
34
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
35
+ name: "privacy_tip"
35
36
  });
36
37
  default:
37
- return /*#__PURE__*/React.createElement(InformationIcon, {
38
- role: "presentation",
39
- inheritSize: true
38
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
39
+ name: "info"
40
40
  });
41
41
  }
42
42
  };
@@ -48,29 +48,24 @@ const NotificationIconVariant = /*#__PURE__*/function () {
48
48
  var variant = _a.variant;
49
49
  switch (variant) {
50
50
  case "success":
51
- return /*#__PURE__*/React.createElement(SuccessIcon, {
52
- role: "presentation",
53
- inheritSize: true
51
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
52
+ name: "check_circle"
54
53
  });
55
54
  case "warning":
56
- return /*#__PURE__*/React.createElement(ExclamationIcon, {
57
- role: "presentation",
58
- inheritSize: true
55
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
56
+ name: "error"
59
57
  });
60
58
  case "cautionary":
61
- return /*#__PURE__*/React.createElement(CautionIcon, {
62
- role: "presentation",
63
- inheritSize: true
59
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
60
+ name: "warning"
64
61
  });
65
62
  case "informative":
66
- return /*#__PURE__*/React.createElement(InformationIcon, {
67
- role: "presentation",
68
- inheritSize: true
63
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
64
+ name: "info"
69
65
  });
70
66
  case "security":
71
- return /*#__PURE__*/React.createElement(SecurityTipIcon, {
72
- role: "presentation",
73
- inheritSize: true
67
+ return /*#__PURE__*/React.createElement(NotificationIcon, {
68
+ name: "privacy_tip"
74
69
  });
75
70
  }
76
71
  };
@@ -0,0 +1,4 @@
1
+ var styles = {
2
+ "notificationIcon": "NotificationIcon-module_notificationIcon__4xH0m"
3
+ };
4
+ export { styles as default };