@kaizen/components 0.0.0-canary-fix-select-focus-add-small-delay-20241013230007 → 0.0.0-canary-codemod-tsx-20241030002309

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 (360) hide show
  1. package/bin/codemod.sh +2 -2
  2. package/codemods/README.md +12 -4
  3. package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +255 -0
  4. package/codemods/upgradeIconV1/index.ts +33 -0
  5. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.spec.ts +83 -0
  6. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.ts +53 -0
  7. package/codemods/upgradeIconV1/transformIcon.spec.ts +181 -0
  8. package/codemods/upgradeIconV1/transformIcon.ts +115 -0
  9. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.spec.ts +81 -0
  10. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.ts +41 -0
  11. package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +306 -0
  12. package/codemods/upgradeIconV1/upgradeIconV1.ts +94 -0
  13. package/codemods/utils/createProp.spec.ts +83 -0
  14. package/codemods/utils/createProp.ts +51 -0
  15. package/codemods/utils/getKaioTagName.spec.ts +85 -0
  16. package/codemods/utils/getKaioTagName.ts +129 -0
  17. package/codemods/utils/index.ts +3 -1
  18. package/codemods/utils/transformComponentsInDir.ts +32 -16
  19. package/codemods/utils/transformSource.ts +10 -5
  20. package/codemods/utils/updateJsxElementWithNewProps.ts +4 -3
  21. package/codemods/utils/updateKaioImports.spec.ts +223 -0
  22. package/codemods/utils/updateKaioImports.ts +233 -0
  23. package/dist/cjs/Avatar/Avatar.cjs +16 -13
  24. package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +9 -7
  25. package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +9 -7
  26. package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +9 -7
  27. package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +5 -11
  28. package/dist/cjs/ClearButton/ClearButton.cjs +5 -4
  29. package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -7
  30. package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +5 -4
  31. package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -4
  32. package/dist/cjs/ErrorPage/ErrorPage.cjs +9 -7
  33. package/dist/cjs/FieldMessage/FieldMessage.cjs +5 -11
  34. package/dist/cjs/Filter/FilterBar/context/FilterBarContext.cjs +17 -2
  35. package/dist/cjs/Filter/FilterBar/context/reducer/filterBarStateReducer.cjs +4 -0
  36. package/dist/cjs/Filter/FilterBar/context/reducer/setupFilterBarState.cjs +2 -1
  37. package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +16 -6
  38. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs +12 -1
  39. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.cjs +13 -2
  40. package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +4 -7
  41. package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +5 -5
  42. package/dist/cjs/Filter/FilterMultiSelect/FilterMultiSelect.cjs +4 -2
  43. package/dist/cjs/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.cjs +4 -2
  44. package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +4 -4
  45. package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +5 -4
  46. package/dist/cjs/Illustration/utils/usePausePlay.cjs +5 -8
  47. package/dist/cjs/Input/InputSearch/InputSearch.cjs +4 -3
  48. package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +5 -6
  49. package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.cjs +6 -42
  50. package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.module.css.cjs +10 -0
  51. package/dist/cjs/Loading/LoadingSpinner/subcomponents/SpinnerIcon.cjs +80 -0
  52. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +31 -26
  53. package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +4 -5
  54. package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +7 -17
  55. package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +4 -7
  56. package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +4 -3
  57. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +33 -38
  58. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.cjs +6 -0
  59. package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +11 -19
  60. package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +4 -5
  61. package/dist/cjs/Popover/Popover.cjs +5 -4
  62. package/dist/cjs/Popover/utils/classMappers.cjs +21 -16
  63. package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +29 -25
  64. package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +10 -12
  65. package/dist/cjs/Select/Select.cjs +8 -10
  66. package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +4 -4
  67. package/dist/cjs/Table/Table.cjs +11 -10
  68. package/dist/cjs/Tag/Tag.cjs +21 -17
  69. package/dist/cjs/TextArea/TextArea.cjs +20 -52
  70. package/dist/cjs/TextArea/TextArea.module.css.cjs +14 -0
  71. package/dist/cjs/TextField/TextField.cjs +7 -6
  72. package/dist/cjs/TextField/TextField.module.scss.cjs +4 -6
  73. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +8 -7
  74. package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +9 -12
  75. package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +7 -7
  76. package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +10 -15
  77. package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +7 -7
  78. package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +5 -5
  79. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +13 -18
  80. package/dist/cjs/__future__/Icon/Icon.cjs +47 -0
  81. package/dist/cjs/__future__/Icon/Icon.module.css.cjs +10 -0
  82. package/dist/cjs/__future__/Icon/constants.cjs +8 -0
  83. package/dist/cjs/__future__/Select/subcomponents/ListBox/ListBox.cjs +7 -10
  84. package/dist/cjs/__future__/Select/subcomponents/Option/Option.cjs +4 -5
  85. package/dist/cjs/__future__/Select/subcomponents/SelectToggle/SelectToggle.cjs +5 -9
  86. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveButton.cjs +4 -3
  87. package/dist/cjs/future.cjs +2 -0
  88. package/dist/esm/Avatar/Avatar.mjs +16 -13
  89. package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +9 -7
  90. package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +9 -7
  91. package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +9 -7
  92. package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +5 -11
  93. package/dist/esm/ClearButton/ClearButton.mjs +5 -4
  94. package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +5 -8
  95. package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +5 -4
  96. package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -4
  97. package/dist/esm/ErrorPage/ErrorPage.mjs +10 -8
  98. package/dist/esm/FieldMessage/FieldMessage.mjs +6 -12
  99. package/dist/esm/Filter/FilterBar/context/FilterBarContext.mjs +17 -2
  100. package/dist/esm/Filter/FilterBar/context/reducer/filterBarStateReducer.mjs +4 -0
  101. package/dist/esm/Filter/FilterBar/context/reducer/setupFilterBarState.mjs +2 -1
  102. package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +17 -7
  103. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +13 -2
  104. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +14 -3
  105. package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +5 -8
  106. package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +5 -5
  107. package/dist/esm/Filter/FilterMultiSelect/FilterMultiSelect.mjs +4 -2
  108. package/dist/esm/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs +4 -2
  109. package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +4 -4
  110. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +5 -4
  111. package/dist/esm/Illustration/utils/usePausePlay.mjs +5 -8
  112. package/dist/esm/Input/InputSearch/InputSearch.mjs +4 -3
  113. package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +5 -6
  114. package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.mjs +6 -42
  115. package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.module.css.mjs +8 -0
  116. package/dist/esm/Loading/LoadingSpinner/subcomponents/SpinnerIcon.mjs +72 -0
  117. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +31 -26
  118. package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +4 -5
  119. package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +7 -17
  120. package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +5 -8
  121. package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +4 -3
  122. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +33 -38
  123. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.mjs +4 -0
  124. package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +11 -19
  125. package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +4 -5
  126. package/dist/esm/Popover/Popover.mjs +5 -4
  127. package/dist/esm/Popover/utils/classMappers.mjs +21 -16
  128. package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +33 -29
  129. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +10 -12
  130. package/dist/esm/Select/Select.mjs +9 -11
  131. package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +4 -4
  132. package/dist/esm/Table/Table.mjs +11 -10
  133. package/dist/esm/Tag/Tag.mjs +21 -17
  134. package/dist/esm/TextArea/TextArea.mjs +21 -53
  135. package/dist/esm/TextArea/TextArea.module.css.mjs +12 -0
  136. package/dist/esm/TextField/TextField.mjs +7 -6
  137. package/dist/esm/TextField/TextField.module.scss.mjs +4 -6
  138. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +8 -7
  139. package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +9 -12
  140. package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +7 -7
  141. package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +13 -18
  142. package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +7 -7
  143. package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +5 -5
  144. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +16 -21
  145. package/dist/esm/__future__/Icon/Icon.mjs +38 -0
  146. package/dist/esm/__future__/Icon/Icon.module.css.mjs +8 -0
  147. package/dist/esm/__future__/Icon/constants.mjs +6 -0
  148. package/dist/esm/__future__/Select/subcomponents/ListBox/ListBox.mjs +7 -10
  149. package/dist/esm/__future__/Select/subcomponents/Option/Option.mjs +4 -5
  150. package/dist/esm/__future__/Select/subcomponents/SelectToggle/SelectToggle.mjs +6 -10
  151. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveButton.mjs +4 -3
  152. package/dist/esm/future.mjs +1 -0
  153. package/dist/styles.css +1026 -1699
  154. package/dist/types/Filter/FilterBar/context/FilterBarContext.d.ts +2 -0
  155. package/dist/types/Filter/FilterBar/context/reducer/filterBarStateReducer.d.ts +3 -0
  156. package/dist/types/Filter/FilterBar/context/types.d.ts +1 -0
  157. package/dist/types/Filter/FilterMultiSelect/FilterMultiSelect.d.ts +2 -1
  158. package/dist/types/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.d.ts +2 -1
  159. package/dist/types/Loading/LoadingSpinner/LoadingSpinner.d.ts +2 -2
  160. package/dist/types/Loading/LoadingSpinner/subcomponents/SpinnerIcon.d.ts +5 -0
  161. package/dist/types/Loading/LoadingSpinner/subcomponents/index.d.ts +1 -0
  162. package/dist/types/TextArea/TextArea.d.ts +4 -0
  163. package/dist/types/__future__/Icon/Icon.d.ts +21 -0
  164. package/dist/types/__future__/Icon/constants.d.ts +5 -0
  165. package/dist/types/__future__/Icon/index.d.ts +1 -0
  166. package/dist/types/__future__/Icon/types.d.ts +4 -0
  167. package/dist/types/__future__/index.d.ts +1 -0
  168. package/package.json +34 -35
  169. package/src/Avatar/Avatar.module.scss +10 -12
  170. package/src/Avatar/Avatar.tsx +14 -5
  171. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +6 -10
  172. package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
  173. package/src/Calendar/CalendarRange/CalendarRange.tsx +7 -3
  174. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +7 -3
  175. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +7 -3
  176. package/src/Calendar/baseCalendarClassNames.module.scss +0 -4
  177. package/src/Checkbox/Checkbox/Checkbox.module.scss +2 -10
  178. package/src/Checkbox/Checkbox/Checkbox.tsx +6 -8
  179. package/src/ClearButton/ClearButton.tsx +2 -2
  180. package/src/Collapsible/Collapsible/Collapsible.tsx +5 -6
  181. package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +2 -2
  182. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +2 -7
  183. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +2 -2
  184. package/src/DateRangePicker/DateRangePicker.tsx +2 -2
  185. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +8 -2
  186. package/src/EmptyState/_docs/EmptyState.stories.tsx +4 -2
  187. package/src/ErrorPage/ErrorPage.tsx +5 -3
  188. package/src/FieldMessage/FieldMessage.tsx +6 -14
  189. package/src/Filter/FilterBar/FilterBar.spec.tsx +99 -12
  190. package/src/Filter/FilterBar/context/FilterBarContext.tsx +11 -2
  191. package/src/Filter/FilterBar/context/reducer/filterBarStateReducer.ts +7 -0
  192. package/src/Filter/FilterBar/context/reducer/setupFilterBarState.ts +1 -0
  193. package/src/Filter/FilterBar/context/types.ts +1 -0
  194. package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +14 -4
  195. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.tsx +10 -2
  196. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.tsx +18 -3
  197. package/src/Filter/FilterButton/FilterButton/FilterButton.module.scss +1 -1
  198. package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +5 -6
  199. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
  200. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +0 -1
  201. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +2 -1
  202. package/src/Filter/FilterMultiSelect/FilterMultiSelect.tsx +3 -1
  203. package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.tsx +4 -1
  204. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +2 -2
  205. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +9 -10
  206. package/src/Filter/FilterSelect/FilterSelect.spec.tsx +4 -5
  207. package/src/GuidanceBlock/GuidanceBlock.module.scss +4 -5
  208. package/src/GuidanceBlock/GuidanceBlock.tsx +6 -2
  209. package/src/Icon/_docs/{Icon.stories.tsx → Icon.docs.stories.tsx} +1 -1
  210. package/src/Icon/_docs/Icon.mdx +1 -2
  211. package/src/Icon/_docs/Icon.stickersheet.stories.tsx +1 -1
  212. package/src/Icon/bin/update-icons.sh +1 -1
  213. package/src/Illustration/utils/usePausePlay.tsx +7 -5
  214. package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +7 -5
  215. package/src/Input/Input/_docs/Input.stories.tsx +5 -3
  216. package/src/Input/InputRange/InputRange.module.scss +4 -4
  217. package/src/Input/InputSearch/InputSearch.module.scss +21 -21
  218. package/src/Input/InputSearch/InputSearch.tsx +2 -2
  219. package/src/Label/Label.module.scss +4 -0
  220. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +7 -8
  221. package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +2 -2
  222. package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +2 -2
  223. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +32 -0
  224. package/src/Loading/LoadingSpinner/LoadingSpinner.tsx +10 -54
  225. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.mdx +7 -2
  226. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stickersheet.stories.tsx +2 -1
  227. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stories.tsx +19 -0
  228. package/src/Loading/LoadingSpinner/subcomponents/SpinnerIcon.tsx +87 -0
  229. package/src/Loading/LoadingSpinner/subcomponents/index.ts +1 -0
  230. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +2 -0
  231. package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +32 -35
  232. package/src/Modal/ContextModal/ContextModal.module.scss +4 -4
  233. package/src/Modal/GenericModal/GenericModal.module.scss +8 -8
  234. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +2 -2
  235. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +2 -2
  236. package/src/Modal/InputEditModal/InputEditModal.module.scss +4 -4
  237. package/src/MultiSelect/MultiSelect.spec.tsx +7 -3
  238. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +0 -6
  239. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +10 -9
  240. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +11 -7
  241. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +5 -7
  242. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +2 -2
  243. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +9 -8
  244. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +3 -0
  245. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +22 -16
  246. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +0 -4
  247. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +13 -12
  248. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.scss +0 -1
  249. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +2 -2
  250. package/src/Popover/Popover.module.scss +3 -3
  251. package/src/Popover/Popover.tsx +2 -2
  252. package/src/Popover/utils/classMappers.tsx +6 -11
  253. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +2 -2
  254. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +7 -7
  255. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +2 -2
  256. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +7 -4
  257. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +18 -12
  258. package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +25 -18
  259. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +4 -8
  260. package/src/Select/Select.module.scss +9 -7
  261. package/src/Select/Select.tsx +10 -7
  262. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +4 -5
  263. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +2 -2
  264. package/src/Table/Table.module.scss +11 -7
  265. package/src/Table/Table.tsx +4 -8
  266. package/src/Table/_docs/Table.stickersheet.stories.tsx +4 -4
  267. package/src/Table/_docs/Table.stories.tsx +3 -3
  268. package/src/Tag/Tag.module.scss +2 -0
  269. package/src/Tag/Tag.tsx +7 -13
  270. package/src/Text/Text.module.scss +2 -0
  271. package/src/TextArea/TextArea.module.css +142 -0
  272. package/src/TextArea/TextArea.tsx +25 -53
  273. package/src/TextField/TextField.module.scss +10 -36
  274. package/src/TextField/TextField.spec.tsx +9 -4
  275. package/src/TextField/TextField.tsx +4 -6
  276. package/src/TextField/_docs/TextField.stickersheet.stories.tsx +9 -1
  277. package/src/TextField/_docs/TextField.stories.tsx +4 -3
  278. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +7 -8
  279. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +3 -3
  280. package/src/TitleBlockZen/TitleBlockZen.module.scss +15 -21
  281. package/src/TitleBlockZen/TitleBlockZen.spec.tsx +1 -1
  282. package/src/TitleBlockZen/TitleBlockZen.tsx +6 -9
  283. package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +5 -5
  284. package/src/TitleBlockZen/subcomponents/MainActions.tsx +5 -3
  285. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +2 -2
  286. package/src/TitleBlockZen/subcomponents/MobileActions.tsx +13 -16
  287. package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +3 -3
  288. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -3
  289. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +2 -2
  290. package/src/Workflow/_docs/Workflow.stories.tsx +4 -5
  291. package/src/Workflow/_docs/WorkflowHeader.stories.tsx +4 -5
  292. package/src/Workflow/_docs/controls/controls.tsx +4 -4
  293. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +6 -31
  294. package/src/__actions__/Button/v1/Button/_docs/Button.mdx +1 -1
  295. package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +6 -6
  296. package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +7 -6
  297. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +7 -7
  298. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +5 -5
  299. package/src/__actions__/Button/v2/Button/_docs/Button.mdx +1 -1
  300. package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +7 -6
  301. package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +5 -5
  302. package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +1 -1
  303. package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +1 -1
  304. package/src/__actions__/Button/v3/_docs/Button.mdx +1 -1
  305. package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +1 -1
  306. package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +3 -3
  307. package/src/__actions__/Button/v3/_docs/Button.stories.tsx +1 -1
  308. package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +3 -3
  309. package/src/__actions__/Menu/v1/_docs/Menu.stories.tsx +3 -3
  310. package/src/__actions__/Menu/v1/_docs/MenuContentExample.tsx +6 -6
  311. package/src/__actions__/Menu/v1/_docs/examples.tsx +5 -5
  312. package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +3 -3
  313. package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +1 -3
  314. package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +46 -45
  315. package/src/__actions__/Menu/v3/_docs/Menu.mdx +1 -1
  316. package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +21 -23
  317. package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -15
  318. package/src/__future__/Icon/Icon.module.css +35 -0
  319. package/src/__future__/Icon/Icon.spec.tsx +36 -0
  320. package/src/__future__/Icon/Icon.tsx +85 -0
  321. package/src/__future__/Icon/_docs/Icon--api-specification.mdx +98 -0
  322. package/src/__future__/Icon/_docs/Icon--usage-guidelines.mdx +145 -0
  323. package/src/__future__/Icon/_docs/Icon.docs.module.css +17 -0
  324. package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +524 -0
  325. package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +126 -0
  326. package/src/__future__/Icon/_docs/assets/interface-dont.png +0 -0
  327. package/src/__future__/Icon/_docs/assets/tooltip-dont.png +0 -0
  328. package/src/__future__/Icon/constants.ts +149 -0
  329. package/src/__future__/Icon/index.ts +1 -0
  330. package/src/__future__/Icon/material-symbols-metadata.json +3370 -0
  331. package/src/__future__/Icon/types.ts +11 -0
  332. package/src/__future__/Select/subcomponents/ListBox/ListBox.tsx +4 -7
  333. package/src/__future__/Select/subcomponents/Option/Option.tsx +2 -2
  334. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +1 -1
  335. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +6 -9
  336. package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +0 -77
  337. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +1 -58
  338. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +2 -12
  339. package/src/__future__/Tag/Tag/Tag.module.scss +1 -1
  340. package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +6 -17
  341. package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +5 -2
  342. package/src/__future__/Tag/Tag/_docs/Tag.stories.tsx +13 -6
  343. package/src/__future__/index.ts +1 -0
  344. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +10 -10
  345. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +7 -4
  346. package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +4 -11
  347. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +10 -10
  348. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +3 -3
  349. package/codemods/utils/getTagName.spec.ts +0 -24
  350. package/codemods/utils/getTagName.ts +0 -32
  351. package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.module.scss.cjs +0 -7
  352. package/dist/cjs/TextArea/TextArea.module.scss.cjs +0 -13
  353. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.cjs +0 -23
  354. package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.module.scss.mjs +0 -5
  355. package/dist/esm/TextArea/TextArea.module.scss.mjs +0 -11
  356. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.mjs +0 -15
  357. package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.d.ts +0 -2
  358. package/src/Loading/LoadingSpinner/LoadingSpinner.module.scss +0 -16
  359. package/src/TextArea/TextArea.module.scss +0 -137
  360. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.tsx +0 -21
@@ -1,11 +1,8 @@
1
1
  import { __assign } from 'tslib';
2
2
  import React from 'react';
3
- import '../../../../../../Icon/subcomponents/SVG/SVG.mjs';
4
- import { EditIcon } from '../../../../../../Icon/EditIcon.mjs';
5
- import { ExternalLinkIcon } from '../../../../../../Icon/ExternalLinkIcon.mjs';
6
- import { RemoveLinkIcon } from '../../../../../../Icon/RemoveLinkIcon.mjs';
7
3
  import { usePopover } from '../../../../../../Popover/Popover.mjs';
8
4
  import { Text } from '../../../../../../Text/Text.mjs';
5
+ import { Icon } from '../../../../../../__future__/Icon/Icon.mjs';
9
6
  import { Positioner } from './Positioner.mjs';
10
7
  import styles from './LinkPopover.module.scss.mjs';
11
8
  const LinkPopover = /*#__PURE__*/function () {
@@ -23,8 +20,9 @@ const LinkPopover = /*#__PURE__*/function () {
23
20
  size: "large"
24
21
  }, /*#__PURE__*/React.createElement("div", {
25
22
  className: styles.popoverContent
26
- }, /*#__PURE__*/React.createElement(ExternalLinkIcon, {
27
- role: "presentation"
23
+ }, /*#__PURE__*/React.createElement(Icon, {
24
+ name: "open_in_new",
25
+ isPresentational: true
28
26
  }), /*#__PURE__*/React.createElement("div", {
29
27
  className: styles.popoverLinkContainer
30
28
  }, /*#__PURE__*/React.createElement(Text, {
@@ -38,14 +36,14 @@ const LinkPopover = /*#__PURE__*/function () {
38
36
  rel: "noopener noreferrer"
39
37
  }, href))), /*#__PURE__*/React.createElement("div", {
40
38
  className: styles.popoverActions
41
- }, /*#__PURE__*/React.createElement(EditIcon, {
42
- role: "img",
39
+ }, /*#__PURE__*/React.createElement(Icon, {
40
+ name: "edit",
43
41
  onClick: onEdit,
44
- "aria-label": "Edit link"
45
- })), /*#__PURE__*/React.createElement(RemoveLinkIcon, {
46
- role: "img",
42
+ alt: "Edit link"
43
+ })), /*#__PURE__*/React.createElement(Icon, {
44
+ name: "link_off",
47
45
  onClick: onRemove,
48
- "aria-label": "Remove link"
46
+ alt: "Remove link"
49
47
  }))));
50
48
  };
51
49
  LinkPopover.displayName = "LinkPopover";
@@ -4,12 +4,9 @@ import classnames from 'classnames';
4
4
  import ReactSelect, { components } from 'react-select';
5
5
  import Async from 'react-select/async';
6
6
  import { FieldMessage } from '../FieldMessage/FieldMessage.mjs';
7
- import '../Icon/subcomponents/SVG/SVG.mjs';
8
- import { ChevronDownIcon } from '../Icon/ChevronDownIcon.mjs';
9
- import { ChevronUpIcon } from '../Icon/ChevronUpIcon.mjs';
10
- import { ClearIcon } from '../Icon/ClearIcon.mjs';
11
7
  import { Label } from '../Label/Label.mjs';
12
8
  import { Tag } from '../Tag/Tag.mjs';
9
+ import { Icon } from '../__future__/Icon/Icon.mjs';
13
10
  import styles from './Select.module.scss.mjs';
14
11
 
15
12
  /**
@@ -118,11 +115,10 @@ var Placeholder = function (props) {
118
115
  var DropdownIndicator = function (props) {
119
116
  return /*#__PURE__*/React.createElement(components.DropdownIndicator, __assign({}, props, {
120
117
  className: styles.dropdownIndicator
121
- }), props.selectProps.menuIsOpen ? ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
122
- role: "presentation"
123
- })) : ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
124
- role: "presentation"
125
- })));
118
+ }), /*#__PURE__*/React.createElement(Icon, {
119
+ name: props.selectProps.menuIsOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
120
+ isPresentational: true
121
+ }));
126
122
  };
127
123
  var LoadingMessage = function (props) {
128
124
  return /*#__PURE__*/React.createElement(components.LoadingMessage, __assign({}, props, {
@@ -186,8 +182,10 @@ var ValueContainer = function (props) {
186
182
  var ClearIndicator = function (props) {
187
183
  return /*#__PURE__*/React.createElement(components.ClearIndicator, __assign({}, props, {
188
184
  className: styles.clearIndicator
189
- }), /*#__PURE__*/React.createElement(ClearIcon, {
190
- role: "presentation"
185
+ }), /*#__PURE__*/React.createElement(Icon, {
186
+ name: "cancel",
187
+ isPresentational: true,
188
+ isFilled: true
191
189
  }));
192
190
  };
193
191
  export { AsyncSelect, Select };
@@ -2,8 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { useIntl } from '@cultureamp/i18n-react-intl';
4
4
  import classnames from 'classnames';
5
- import '../../../Icon/subcomponents/SVG/SVG.mjs';
6
- import { ChevronDownIcon } from '../../../Icon/ChevronDownIcon.mjs';
5
+ import { Icon } from '../../../__future__/Icon/Icon.mjs';
7
6
  import { BaseButton } from '../BaseButton/BaseButton.mjs';
8
7
  import styles from './DropdownButton.module.scss.mjs';
9
8
  const DropdownButton = /*#__PURE__*/function () {
@@ -18,8 +17,9 @@ const DropdownButton = /*#__PURE__*/function () {
18
17
  defaultMessage: "Additional actions",
19
18
  description: "Label for a dropdown menu holding additional actions"
20
19
  }),
21
- icon: /*#__PURE__*/React.createElement(ChevronDownIcon, {
22
- role: "presentation"
20
+ icon: /*#__PURE__*/React.createElement(Icon, {
21
+ name: "keyboard_arrow_down",
22
+ isPresentational: true
23
23
  }),
24
24
  classNameOverride: classnames(styles.dropdownButton, classNameOverride)
25
25
  }, restProps));
@@ -5,10 +5,7 @@ import { Checkbox } from '../Checkbox/Checkbox/Checkbox.mjs';
5
5
  import '../Checkbox/CheckboxField/CheckboxField.mjs';
6
6
  import '../Checkbox/CheckboxGroup/CheckboxGroup.mjs';
7
7
  import { Heading } from '../Heading/Heading.mjs';
8
- import '../Icon/subcomponents/SVG/SVG.mjs';
9
- import { ExclamationIcon } from '../Icon/ExclamationIcon.mjs';
10
- import { SortAscendingIcon } from '../Icon/SortAscendingIcon.mjs';
11
- import { SortDescendingIcon } from '../Icon/SortDescendingIcon.mjs';
8
+ import { Icon } from '../__future__/Icon/Icon.mjs';
12
9
  import { Tooltip } from '../__overlays__/Tooltip/v1/index.mjs';
13
10
  import styles from './Table.module.scss.mjs';
14
11
 
@@ -100,8 +97,10 @@ var TableHeaderRowCell = function (_a) {
100
97
  "aria-label": checkboxLabel
101
98
  }))), tooltipInfo != null && !isTooltipIconHidden ? ( /*#__PURE__*/React.createElement("div", {
102
99
  className: styles.headerRowCellTooltipIcon
103
- }, /*#__PURE__*/React.createElement(ExclamationIcon, {
104
- role: "presentation"
100
+ }, /*#__PURE__*/React.createElement(Icon, {
101
+ name: "error",
102
+ isPresentational: true,
103
+ isFilled: true
105
104
  }))) : null, !icon ? ( /*#__PURE__*/React.createElement(Heading, {
106
105
  tag: "div",
107
106
  variant: "heading-6",
@@ -109,10 +108,12 @@ var TableHeaderRowCell = function (_a) {
109
108
  classNameOverride: styles.headerRowCellLabel
110
109
  }, labelText)) : null, (sorting || isHovered && sortingArrowsOnHover) && ( /*#__PURE__*/React.createElement("div", {
111
110
  className: classnames(align === "center" && styles.headerRowCellIconAlignCenter, align === "end" && styles.headerRowCellIconAlignEnd, reversed && styles.whiteText)
112
- }, sorting === "ascending" || sortingArrowsOnHover === "ascending" ? ( /*#__PURE__*/React.createElement(SortAscendingIcon, {
113
- role: "presentation"
114
- })) : ( /*#__PURE__*/React.createElement(SortDescendingIcon, {
115
- role: "presentation"
111
+ }, sorting === "ascending" || sortingArrowsOnHover === "ascending" ? ( /*#__PURE__*/React.createElement(Icon, {
112
+ name: "arrow_drop_up",
113
+ isPresentational: true
114
+ })) : ( /*#__PURE__*/React.createElement(Icon, {
115
+ name: "arrow_drop_down",
116
+ isPresentational: true
116
117
  })))));
117
118
  cellContents = href ? ( /*#__PURE__*/React.createElement("a", {
118
119
  className: classnames(styles.headerRowCellButton, reversed && styles.headerRowCellButtonReversed),
@@ -3,12 +3,8 @@ import React from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { Avatar } from '../Avatar/Avatar.mjs';
5
5
  import '../Icon/subcomponents/SVG/SVG.mjs';
6
- import { CautionIcon } from '../Icon/CautionIcon.mjs';
7
- import { ClearIcon } from '../Icon/ClearIcon.mjs';
8
- import { ExclamationIcon } from '../Icon/ExclamationIcon.mjs';
9
- import { InformationIcon } from '../Icon/InformationIcon.mjs';
10
6
  import { LiveIcon } from '../Icon/LiveIcon.mjs';
11
- import { SuccessIcon } from '../Icon/SuccessIcon.mjs';
7
+ import { Icon } from '../__future__/Icon/Icon.mjs';
12
8
  import styles from './Tag.module.scss.mjs';
13
9
  var isJSXElement = function (imageElementOrAvatarProps) {
14
10
  return "props" in imageElementOrAvatarProps;
@@ -48,26 +44,34 @@ const Tag = /*#__PURE__*/function () {
48
44
  case "validationPositive":
49
45
  return /*#__PURE__*/React.createElement("span", {
50
46
  className: styles.validationIcon
51
- }, /*#__PURE__*/React.createElement(SuccessIcon, {
52
- role: "presentation"
47
+ }, /*#__PURE__*/React.createElement(Icon, {
48
+ name: "check_circle",
49
+ isPresentational: true,
50
+ isFilled: true
53
51
  }));
54
52
  case "validationNegative":
55
53
  return /*#__PURE__*/React.createElement("span", {
56
54
  className: styles.validationIcon
57
- }, /*#__PURE__*/React.createElement(ExclamationIcon, {
58
- role: "presentation"
55
+ }, /*#__PURE__*/React.createElement(Icon, {
56
+ name: "error",
57
+ isPresentational: true,
58
+ isFilled: true
59
59
  }));
60
60
  case "validationCautionary":
61
61
  return /*#__PURE__*/React.createElement("span", {
62
62
  className: styles.validationIcon
63
- }, /*#__PURE__*/React.createElement(CautionIcon, {
64
- role: "presentation"
63
+ }, /*#__PURE__*/React.createElement(Icon, {
64
+ name: "warning",
65
+ isPresentational: true,
66
+ isFilled: true
65
67
  }));
66
68
  case "validationInformative":
67
69
  return /*#__PURE__*/React.createElement("span", {
68
70
  className: styles.validationIcon
69
- }, /*#__PURE__*/React.createElement(InformationIcon, {
70
- role: "presentation"
71
+ }, /*#__PURE__*/React.createElement(Icon, {
72
+ name: "info",
73
+ isPresentational: true,
74
+ isFilled: true
71
75
  }));
72
76
  case "profile":
73
77
  return /*#__PURE__*/React.createElement("span", {
@@ -89,10 +93,10 @@ const Tag = /*#__PURE__*/function () {
89
93
  onMouseLeave: onMouseLeave
90
94
  }, /*#__PURE__*/React.createElement("div", {
91
95
  className: styles.iconWrapper
92
- }, /*#__PURE__*/React.createElement(ClearIcon, {
93
- inheritSize: true,
94
- role: "img",
95
- "aria-label": "Dismiss"
96
+ }, /*#__PURE__*/React.createElement(Icon, {
97
+ name: "cancel",
98
+ alt: "Dismiss",
99
+ isFilled: true
96
100
  }))))), variant === "statusLive" && ( /*#__PURE__*/React.createElement("span", {
97
101
  className: styles.liveIcon
98
102
  }, /*#__PURE__*/React.createElement(LiveIcon, {
@@ -1,80 +1,48 @@
1
1
  import { __rest, __assign } from 'tslib';
2
- import React, { useState, useRef, useEffect } from 'react';
2
+ import React, { useState, useRef } from 'react';
3
3
  import classnames from 'classnames';
4
- import styles from './TextArea.module.scss.mjs';
4
+ import styles from './TextArea.module.css.mjs';
5
5
  const TextArea = /*#__PURE__*/function () {
6
6
  const TextArea = function (_a) {
7
+ var _b, _c;
7
8
  var propsTextAreaRef = _a.textAreaRef,
8
- _b = _a.status,
9
- status = _b === void 0 ? "default" : _b,
10
- _c = _a.autogrow,
11
- autogrow = _c === void 0 ? false : _c,
12
- _d = _a.reversed,
13
- reversed = _d === void 0 ? false : _d,
14
- _e = _a.rows,
15
- rows = _e === void 0 ? 3 : _e,
9
+ _d = _a.status,
10
+ status = _d === void 0 ? "default" : _d,
11
+ _e = _a.autogrow,
12
+ autogrow = _e === void 0 ? false : _e,
13
+ _f = _a.reversed,
14
+ reversed = _f === void 0 ? false : _f,
15
+ _g = _a.rows,
16
+ rows = _g === void 0 ? 3 : _g,
16
17
  defaultValue = _a.defaultValue,
17
18
  value = _a.value,
18
19
  disabled = _a.disabled,
19
20
  propsOnChange = _a.onChange,
20
21
  restProps = __rest(_a, ["textAreaRef", "status", "autogrow", "reversed", "rows", "defaultValue", "value", "disabled", "onChange"]);
21
- var _f = useState("auto"),
22
- textAreaHeight = _f[0],
23
- setTextAreaHeight = _f[1];
24
- var _g = useState("auto"),
25
- parentHeight = _g[0],
26
- setParentHeight = _g[1];
27
- var _h = useState(autogrow ? defaultValue : undefined),
22
+ var _h = useState(autogrow && !value ? defaultValue : undefined),
28
23
  internalValue = _h[0],
29
24
  setInternalValue = _h[1];
30
25
  // ^ holds an internal state of the value so that autogrow can still work with uncontrolled textareas
31
- // essentially forces the textarea into an (interally) controlled mode if autogrow is true
26
+ // essentially forces the textarea into an (interally) controlled mode if autogrow is true and mode is uncontrolled
27
+ var controlledValue = value || internalValue;
32
28
  var textAreaRef = propsTextAreaRef || useRef(null);
33
- useEffect(function () {
34
- if (!autogrow) return;
35
- var scrollHeight = textAreaRef.current.scrollHeight;
36
- if (scrollHeight < 1) return;
37
- var borderWidth = textAreaRef.current ? parseInt(getComputedStyle(textAreaRef.current).borderTopWidth, 10) : 0;
38
- var newHeight = scrollHeight + borderWidth * 2;
39
- setParentHeight("".concat(newHeight, "px"));
40
- setTextAreaHeight("".concat(newHeight, "px"));
41
- }, [internalValue]);
42
- var onChange = !autogrow ? undefined : function (event) {
43
- setTextAreaHeight("auto");
44
- // ^ this is required to avoid the textarea height from building up indefinitely
45
- // see https://medium.com/@lucasalgus/creating-a-custom-auto-resize-textarea-component-for-your-react-web-application-6959c0ad68bc#2dee
29
+ var onChange = function (event) {
30
+ propsOnChange && propsOnChange(event);
46
31
  setInternalValue(event.target.value);
47
- if (propsOnChange) {
48
- propsOnChange(event);
49
- }
50
- };
51
- var getWrapperStyle = function () {
52
- return autogrow ? {
53
- minHeight: parentHeight
54
- } : undefined;
55
32
  };
56
- var getTextAreaStyle = function () {
57
- return autogrow ? {
58
- height: textAreaHeight
59
- } : undefined;
60
- };
61
- var controlledValue = value || internalValue;
62
33
  return /*#__PURE__*/React.createElement("div", {
63
- className: styles.wrapper,
64
- style: getWrapperStyle()
34
+ className: classnames(styles.wrapper, (_b = {}, _b[styles.wrapperAutogrow] = autogrow, _b)),
35
+ "data-value": autogrow ? controlledValue : undefined
65
36
  }, /*#__PURE__*/React.createElement("textarea", __assign({
66
- className: classnames(styles.textarea, styles[status], reversed ? styles.reversed : styles.default, disabled && styles.disabled),
37
+ className: classnames(styles.textarea, styles[status], reversed ? styles.reversed : styles.default, (_c = {}, _c[styles.disabled] = disabled, _c[styles.textareaAutogrow] = autogrow, _c)),
67
38
  rows: rows,
68
- onChange: onChange || propsOnChange,
39
+ onChange: onChange,
69
40
  value: controlledValue,
70
41
  defaultValue: controlledValue ? undefined : defaultValue,
71
42
  // ^ React throws a warning if you specify both a value and a defaultValue
72
43
  ref: textAreaRef,
73
- style: getTextAreaStyle(),
74
44
  disabled: disabled
75
- }, restProps)), /*#__PURE__*/React.createElement("div", {
76
- className: styles.focusRing
77
- }));
45
+ }, restProps)));
78
46
  };
79
47
  TextArea.displayName = "TextArea";
80
48
  return TextArea;
@@ -0,0 +1,12 @@
1
+ var styles = {
2
+ "wrapper": "TextArea-module_wrapper__FHfMG",
3
+ "wrapperAutogrow": "TextArea-module_wrapperAutogrow__f46bL",
4
+ "textarea": "TextArea-module_textarea__Ht-1a",
5
+ "textareaAutogrow": "TextArea-module_textareaAutogrow__ReEar",
6
+ "default": "TextArea-module_default__e1cis",
7
+ "error": "TextArea-module_error__bBmvS",
8
+ "caution": "TextArea-module_caution__aj4nR",
9
+ "disabled": "TextArea-module_disabled__XY39a",
10
+ "reversed": "TextArea-module_reversed__r-W3e"
11
+ };
12
+ export { styles as default };
@@ -3,12 +3,11 @@ import React, { useId } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { FieldGroup } from '../FieldGroup/FieldGroup.mjs';
5
5
  import { FieldMessage } from '../FieldMessage/FieldMessage.mjs';
6
- import '../Icon/subcomponents/SVG/SVG.mjs';
7
- import { SuccessIcon } from '../Icon/SuccessIcon.mjs';
8
6
  import { Input } from '../Input/Input/Input.mjs';
9
7
  import '../Input/InputRange/InputRange.mjs';
10
8
  import '../Input/InputSearch/InputSearch.mjs';
11
9
  import { Label } from '../Label/Label.mjs';
10
+ import { Icon } from '../__future__/Icon/Icon.mjs';
12
11
  import styles from './TextField.module.scss.mjs';
13
12
 
14
13
  /**
@@ -39,7 +38,7 @@ const TextField = /*#__PURE__*/function () {
39
38
  id: "".concat(id, "-field-group"),
40
39
  "data-testid": "".concat(id, "-field-group"),
41
40
  inline: inline,
42
- classNameOverride: classnames(styles.withLabel, disabled && styles.withDisabled)
41
+ classNameOverride: classnames(reversed && styles.reversed)
43
42
  }, /*#__PURE__*/React.createElement(Label, {
44
43
  id: "".concat(id, "-field-label"),
45
44
  "data-testid": "".concat(id, "-field-label"),
@@ -57,9 +56,11 @@ const TextField = /*#__PURE__*/function () {
57
56
  status: status,
58
57
  startIconAdornment: icon,
59
58
  endIconAdornment: status === "success" && ( /*#__PURE__*/React.createElement("div", {
60
- className: classnames(styles.success, disabled && styles.disabled)
61
- }, /*#__PURE__*/React.createElement(SuccessIcon, {
62
- role: "presentation"
59
+ className: classnames(styles.icon, styles.success, disabled && styles.disabled)
60
+ }, /*#__PURE__*/React.createElement(Icon, {
61
+ name: "check_circle",
62
+ isPresentational: true,
63
+ isFilled: true
63
64
  })))
64
65
  }, restProps)), validationMessage && ( /*#__PURE__*/React.createElement("div", {
65
66
  className: classnames(styles.message, disabled && styles.disabled)
@@ -1,11 +1,9 @@
1
1
  var styles = {
2
2
  "input": "TextField-module_input__CEokl",
3
- "success": "TextField-module_success__pMLcV",
3
+ "icon": "TextField-module_icon__wFK4Q",
4
4
  "fade-0-to-1": "TextField-module_fade-0-to-1__Ac-99",
5
- "withReversed": "TextField-module_withReversed__agi-Q",
6
- "disabled": "TextField-module_disabled__gS8tk",
7
- "error": "TextField-module_error__7S-f2",
8
- "caution": "TextField-module_caution__3gzHk",
9
- "message": "TextField-module_message__bQOgK"
5
+ "success": "TextField-module_success__pMLcV",
6
+ "reversed": "TextField-module_reversed__qW9r1",
7
+ "disabled": "TextField-module_disabled__gS8tk"
10
8
  };
11
9
  export { styles as default };
@@ -2,10 +2,8 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { useState } 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 { ArrowBackwardIcon } from '../../../Icon/ArrowBackwardIcon.mjs';
7
- import { InformationIcon } from '../../../Icon/InformationIcon.mjs';
8
5
  import { Text } from '../../../Text/Text.mjs';
6
+ import { Icon } from '../../../__future__/Icon/Icon.mjs';
9
7
  import styles from './GenericTile.module.scss.mjs';
10
8
  import { IconButton } from '../../../__actions__/Button/v1/IconButton/IconButton.mjs';
11
9
  import { Button } from '../../../__actions__/Button/v1/Button/Button.mjs';
@@ -46,8 +44,10 @@ const GenericTile = /*#__PURE__*/function () {
46
44
  className: styles.informationBtn
47
45
  }, /*#__PURE__*/React.createElement(IconButton, {
48
46
  label: "Information",
49
- icon: /*#__PURE__*/React.createElement(InformationIcon, {
50
- role: "presentation"
47
+ icon: /*#__PURE__*/React.createElement(Icon, {
48
+ name: "info",
49
+ isPresentational: true,
50
+ isFilled: true
51
51
  }),
52
52
  onClick: function () {
53
53
  return setIsFlipped(true);
@@ -85,8 +85,9 @@ const GenericTile = /*#__PURE__*/function () {
85
85
  className: styles.informationBtn
86
86
  }, /*#__PURE__*/React.createElement(IconButton, {
87
87
  label: "Information",
88
- icon: /*#__PURE__*/React.createElement(ArrowBackwardIcon, {
89
- role: "presentation"
88
+ icon: /*#__PURE__*/React.createElement(Icon, {
89
+ name: "arrow_back",
90
+ isPresentational: true
90
91
  }),
91
92
  onClick: function () {
92
93
  return setIsFlipped(false);
@@ -3,12 +3,9 @@ import React from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { Avatar } from '../Avatar/Avatar.mjs';
5
5
  import { Heading } from '../Heading/Heading.mjs';
6
- import '../Icon/subcomponents/SVG/SVG.mjs';
7
- import { ArrowLeftIcon } from '../Icon/ArrowLeftIcon.mjs';
8
- import { ArrowRightIcon } from '../Icon/ArrowRightIcon.mjs';
9
- import { HamburgerIcon } from '../Icon/HamburgerIcon.mjs';
10
6
  import { Select } from '../Select/Select.mjs';
11
7
  import { Tag } from '../Tag/Tag.mjs';
8
+ import { Icon } from '../__future__/Icon/Icon.mjs';
12
9
  import { useMediaQueries } from '../utils/useMediaQueries.mjs';
13
10
  import { MainActions } from './subcomponents/MainActions.mjs';
14
11
  import { MobileActions } from './subcomponents/MobileActions.mjs';
@@ -103,15 +100,14 @@ var Breadcrumb = function (_a) {
103
100
  handleClick = breadcrumb.handleClick,
104
101
  text = breadcrumb.text,
105
102
  render = breadcrumb.render;
106
- var icon = textDirection === "rtl" ? ( /*#__PURE__*/React.createElement(ArrowRightIcon, {
107
- role: "presentation"
108
- })) : ( /*#__PURE__*/React.createElement(ArrowLeftIcon, {
109
- role: "presentation"
110
- }));
111
103
  var InnerContents = function () {
112
104
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
113
105
  className: styles.circle
114
- }, icon), /*#__PURE__*/React.createElement("span", {
106
+ }, /*#__PURE__*/React.createElement(Icon, {
107
+ name: "arrow_back",
108
+ isPresentational: true,
109
+ shouldMirrorInRTL: true
110
+ })), /*#__PURE__*/React.createElement("span", {
115
111
  className: styles.breadcrumbTextLink,
116
112
  "data-automation-id": textAutomationId,
117
113
  "data-testid": textAutomationId
@@ -231,8 +227,9 @@ const TitleBlockZen = /*#__PURE__*/function () {
231
227
  className: styles.hamburger
232
228
  }, /*#__PURE__*/React.createElement(IconButton, {
233
229
  onClick: handleHamburgerClick,
234
- icon: /*#__PURE__*/React.createElement(HamburgerIcon, {
235
- role: "presentation"
230
+ icon: /*#__PURE__*/React.createElement(Icon, {
231
+ name: "menu",
232
+ isPresentational: true
236
233
  }),
237
234
  label: "Open menu",
238
235
  reversed: isReversed(variant)
@@ -1,8 +1,6 @@
1
1
  import { __assign, __spreadArray } from 'tslib';
2
2
  import React from 'react';
3
- import '../../Icon/subcomponents/SVG/SVG.mjs';
4
- import { ChevronDownIcon } from '../../Icon/ChevronDownIcon.mjs';
5
- import { MeatballsIcon } from '../../Icon/MeatballsIcon.mjs';
3
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
6
4
  import { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from '../constants.mjs';
7
5
  import { isMenuGroupNotButton } from '../utils.mjs';
8
6
  import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
@@ -45,8 +43,9 @@ const MainActions = /*#__PURE__*/function () {
45
43
  label: primaryAction.label,
46
44
  primary: true,
47
45
  reversed: reversed,
48
- icon: /*#__PURE__*/React.createElement(ChevronDownIcon, {
49
- role: "presentation"
46
+ icon: /*#__PURE__*/React.createElement(Icon, {
47
+ name: "keyboard_arrow_down",
48
+ isPresentational: true
50
49
  }),
51
50
  iconPosition: "end",
52
51
  "data-automation-id": "title-block-primary-action-button",
@@ -87,8 +86,9 @@ const MainActions = /*#__PURE__*/function () {
87
86
  id: TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID,
88
87
  label: "Open secondary menu",
89
88
  reversed: reversed,
90
- icon: /*#__PURE__*/React.createElement(MeatballsIcon, {
91
- role: "presentation"
89
+ icon: /*#__PURE__*/React.createElement(Icon, {
90
+ name: "more_horiz",
91
+ isPresentational: true
92
92
  })
93
93
  })
94
94
  }, /*#__PURE__*/React.createElement(MenuList, null, overflowMenuItems.map(function (menuItem, idx) {
@@ -2,9 +2,7 @@ import { __assign } from 'tslib';
2
2
  import React, { useState, useCallback, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { FocusOn } from 'react-focus-on';
5
- import '../../Icon/subcomponents/SVG/SVG.mjs';
6
- import { ChevronDownIcon } from '../../Icon/ChevronDownIcon.mjs';
7
- import { ChevronUpIcon } from '../../Icon/ChevronUpIcon.mjs';
5
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
8
6
  import { TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID } from '../constants.mjs';
9
7
  import { isMenuGroupNotButton, convertSecondaryActionsToMenuItems } from '../utils.mjs';
10
8
  import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
@@ -191,11 +189,10 @@ var DrawerHandle = function (_a) {
191
189
  "aria-expanded": isOpen
192
190
  }, primaryAction.label, /*#__PURE__*/React.createElement("span", {
193
191
  className: styles.mobileActionsChevronSquare
194
- }, isOpen ? ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
195
- role: "presentation"
196
- })) : ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
197
- role: "presentation"
198
- })))));
192
+ }, /*#__PURE__*/React.createElement(Icon, {
193
+ name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
194
+ isPresentational: true
195
+ }))));
199
196
  }
200
197
  // If the primary action is a button, or has no onClick/href/action
201
198
  return /*#__PURE__*/React.createElement("div", {
@@ -212,11 +209,10 @@ var DrawerHandle = function (_a) {
212
209
  "aria-expanded": isOpen,
213
210
  id: TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID,
214
211
  "aria-label": "Other actions"
215
- }, isOpen ? ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
216
- role: "presentation"
217
- })) : ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
218
- role: "presentation"
219
- })))));
212
+ }, /*#__PURE__*/React.createElement(Icon, {
213
+ name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
214
+ isPresentational: true
215
+ }))));
220
216
  }
221
217
  // if there are default/secondary actions but no primary action
222
218
  if (showDrawer) {
@@ -231,11 +227,10 @@ var DrawerHandle = function (_a) {
231
227
  id: TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID
232
228
  }, renderDrawerHandleLabel("Other actions"), /*#__PURE__*/React.createElement("span", {
233
229
  className: styles.mobileActionsChevronSquare
234
- }, isOpen ? ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
235
- role: "presentation"
236
- })) : ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
237
- role: "presentation"
238
- })))));
230
+ }, /*#__PURE__*/React.createElement(Icon, {
231
+ name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
232
+ isPresentational: true
233
+ }))));
239
234
  }
240
235
  return null;
241
236
  };
@@ -1,8 +1,6 @@
1
1
  import { __assign, __spreadArray } from 'tslib';
2
2
  import React from 'react';
3
- import '../../Icon/subcomponents/SVG/SVG.mjs';
4
- import { ChevronDownIcon } from '../../Icon/ChevronDownIcon.mjs';
5
- import { MeatballsIcon } from '../../Icon/MeatballsIcon.mjs';
3
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
6
4
  import styles from '../TitleBlockZen.module.scss.mjs';
7
5
  import { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from '../constants.mjs';
8
6
  import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
@@ -18,8 +16,9 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
18
16
  button: /*#__PURE__*/React.createElement(IconButton, {
19
17
  label: "Open secondary menu",
20
18
  reversed: reversed,
21
- icon: /*#__PURE__*/React.createElement(MeatballsIcon, {
22
- role: "presentation"
19
+ icon: /*#__PURE__*/React.createElement(Icon, {
20
+ name: "more_horiz",
21
+ isPresentational: true
23
22
  }),
24
23
  id: TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID
25
24
  })
@@ -50,8 +49,9 @@ const SecondaryActions = /*#__PURE__*/function () {
50
49
  secondary: true,
51
50
  label: action.label,
52
51
  reversed: reversed,
53
- icon: /*#__PURE__*/React.createElement(ChevronDownIcon, {
54
- role: "presentation"
52
+ icon: /*#__PURE__*/React.createElement(Icon, {
53
+ name: "keyboard_arrow_down",
54
+ isPresentational: true
55
55
  }),
56
56
  iconPosition: "end"
57
57
  })
@@ -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/subcomponents/SVG/SVG.mjs';
5
- import { CheckIcon } from '../../Icon/CheckIcon.mjs';
4
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
6
5
  import styles from './ToggleSwitch.module.scss.mjs';
7
6
  const ToggleSwitch = /*#__PURE__*/function () {
8
7
  const ToggleSwitch = function (_a) {
@@ -22,9 +21,10 @@ const ToggleSwitch = /*#__PURE__*/function () {
22
21
  className: styles.track
23
22
  }, /*#__PURE__*/React.createElement("span", {
24
23
  className: styles.thumb
25
- }, /*#__PURE__*/React.createElement(CheckIcon, {
26
- classNameOverride: styles.checkIcon,
27
- role: "presentation"
24
+ }, /*#__PURE__*/React.createElement(Icon, {
25
+ name: "check",
26
+ isPresentational: true,
27
+ className: styles.checkIcon
28
28
  }))));
29
29
  };
30
30
  ToggleSwitch.displayName = "ToggleSwitch";