carbon-react 119.10.0 → 119.10.2

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 (709) hide show
  1. package/esm/__internal__/character-count/character-count.component.js +6 -7
  2. package/esm/__internal__/character-count/character-count.style.js +7 -13
  3. package/esm/__internal__/checkable-input/checkable-input.component.js +31 -32
  4. package/esm/__internal__/checkable-input/checkable-input.style.js +9 -12
  5. package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +13 -14
  6. package/esm/__internal__/field-help/field-help.component.js +11 -14
  7. package/esm/__internal__/field-help/field-help.style.js +5 -8
  8. package/esm/__internal__/fieldset/fieldset.component.js +32 -36
  9. package/esm/__internal__/fieldset/fieldset.style.js +11 -17
  10. package/esm/__internal__/focus-trap/focus-trap.component.js +10 -11
  11. package/esm/__internal__/form-field/form-field.component.js +31 -32
  12. package/esm/__internal__/form-field/form-field.style.js +4 -7
  13. package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.js +8 -11
  14. package/esm/__internal__/full-screen-heading/full-screen-heading.style.js +4 -7
  15. package/esm/__internal__/input/input-presentation.component.js +15 -16
  16. package/esm/__internal__/input/input-presentation.style.js +36 -58
  17. package/esm/__internal__/input/input.component.js +22 -23
  18. package/esm/__internal__/input/input.style.js +12 -21
  19. package/esm/__internal__/input-behaviour/input-behaviour.component.js +3 -4
  20. package/esm/__internal__/input-behaviour/input-group-behaviour.component.js +4 -5
  21. package/esm/__internal__/input-icon-toggle/input-icon-toggle.component.js +22 -24
  22. package/esm/__internal__/input-icon-toggle/input-icon-toggle.style.js +14 -20
  23. package/esm/__internal__/label/label.component.js +34 -37
  24. package/esm/__internal__/label/label.style.js +20 -32
  25. package/esm/__internal__/popover/popover.component.js +10 -11
  26. package/esm/__internal__/popover/popover.style.js +6 -12
  27. package/esm/__internal__/radio-button-mapper/radio-button-mapper.component.js +9 -10
  28. package/esm/__internal__/sticky-footer/sticky-footer.component.js +6 -7
  29. package/esm/__internal__/sticky-footer/sticky-footer.style.js +4 -7
  30. package/esm/__internal__/tooltip-provider/index.js +9 -10
  31. package/esm/__internal__/validation-message/validation-message.component.js +5 -6
  32. package/esm/__internal__/validation-message/validation-message.style.js +4 -7
  33. package/esm/__internal__/validations/validation-icon.component.js +21 -23
  34. package/esm/__internal__/validations/validation-icon.style.js +7 -13
  35. package/esm/__spec_helper__/test-utils.js +17 -26
  36. package/esm/components/accordion/accordion-group/accordion-group.component.js +4 -5
  37. package/esm/components/accordion/accordion.component.js +26 -27
  38. package/esm/components/accordion/accordion.style.js +52 -89
  39. package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +20 -21
  40. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +13 -14
  41. package/esm/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +13 -16
  42. package/esm/components/action-popover/action-popover.component.js +15 -17
  43. package/esm/components/action-popover/action-popover.style.js +45 -69
  44. package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +8 -14
  45. package/esm/components/advanced-color-picker/advanced-color-picker.component.js +30 -35
  46. package/esm/components/advanced-color-picker/advanced-color-picker.style.js +8 -14
  47. package/esm/components/alert/alert.component.js +9 -12
  48. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +17 -20
  49. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +8 -14
  50. package/esm/components/anchor-navigation/anchor-navigation.component.js +7 -11
  51. package/esm/components/badge/badge.component.js +6 -7
  52. package/esm/components/badge/badge.style.js +9 -15
  53. package/esm/components/batch-selection/batch-selection.component.js +7 -8
  54. package/esm/components/batch-selection/batch-selection.style.js +6 -9
  55. package/esm/components/box/box.component.js +39 -60
  56. package/esm/components/breadcrumbs/breadcrumbs.component.js +4 -5
  57. package/esm/components/breadcrumbs/crumb/crumb.component.js +14 -17
  58. package/esm/components/breadcrumbs/crumb/crumb.style.js +4 -7
  59. package/esm/components/button/button.component.js +36 -38
  60. package/esm/components/button/button.style.js +22 -32
  61. package/esm/components/button-bar/button-bar.component.js +17 -20
  62. package/esm/components/button-bar/button-bar.style.js +5 -8
  63. package/esm/components/button-minor/button-minor.component.js +7 -8
  64. package/esm/components/button-minor/button-minor.style.js +19 -31
  65. package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.js +24 -25
  66. package/esm/components/button-toggle/button-toggle-group/button-toggle-group.style.js +12 -21
  67. package/esm/components/button-toggle/button-toggle-icon.component.js +15 -18
  68. package/esm/components/button-toggle/button-toggle.component.js +20 -21
  69. package/esm/components/button-toggle/button-toggle.style.js +33 -57
  70. package/esm/components/carbon-provider/carbon-provider.component.js +6 -7
  71. package/esm/components/carbon-provider/top-modal-context.js +3 -4
  72. package/esm/components/card/card-column/card-column.component.js +7 -10
  73. package/esm/components/card/card-column/card-column.style.js +3 -6
  74. package/esm/components/card/card-footer/card-footer.component.js +6 -7
  75. package/esm/components/card/card-footer/card-footer.style.js +6 -9
  76. package/esm/components/card/card-row/card-row.component.js +5 -6
  77. package/esm/components/card/card-row/card-row.style.js +4 -7
  78. package/esm/components/card/card.component.js +16 -17
  79. package/esm/components/card/card.style.js +11 -14
  80. package/esm/components/carousel/carousel.component.js +11 -12
  81. package/esm/components/carousel/carousel.style.js +8 -14
  82. package/esm/components/carousel/slide/slide.style.js +4 -7
  83. package/esm/components/checkbox/checkbox-group.style.js +8 -14
  84. package/esm/components/checkbox/checkbox.component.js +35 -36
  85. package/esm/components/checkbox/checkbox.style.js +14 -17
  86. package/esm/components/confirm/confirm.component.js +28 -29
  87. package/esm/components/confirm/confirm.style.js +8 -14
  88. package/esm/components/content/content.component.js +10 -11
  89. package/esm/components/content/content.style.js +17 -22
  90. package/esm/components/date/__internal__/date-formats/index.js +7 -9
  91. package/esm/components/date/__internal__/date-picker/date-picker.component.js +11 -12
  92. package/esm/components/date/__internal__/date-picker/day-picker.style.js +3 -6
  93. package/esm/components/date/__internal__/navbar/navbar.component.js +15 -18
  94. package/esm/components/date/__internal__/utils.js +1 -3
  95. package/esm/components/date/__internal__/weekday/weekday.component.js +11 -14
  96. package/esm/components/date/date.component.js +30 -31
  97. package/esm/components/date/date.style.js +12 -18
  98. package/esm/components/date-range/date-range.component.js +15 -16
  99. package/esm/components/date-range/date-range.style.js +3 -6
  100. package/esm/components/decimal/decimal.component.js +18 -19
  101. package/esm/components/definition-list/dd.component.js +4 -5
  102. package/esm/components/definition-list/definition-list.style.js +13 -22
  103. package/esm/components/definition-list/dl.component.js +8 -9
  104. package/esm/components/definition-list/dt.component.js +4 -5
  105. package/esm/components/detail/detail.component.js +18 -21
  106. package/esm/components/detail/detail.style.js +8 -14
  107. package/esm/components/dialog/dialog.component.js +22 -23
  108. package/esm/components/dialog/dialog.style.js +28 -52
  109. package/esm/components/dialog-full-screen/content.style.js +12 -21
  110. package/esm/components/dialog-full-screen/dialog-full-screen.component.js +24 -25
  111. package/esm/components/dialog-full-screen/dialog-full-screen.style.js +7 -13
  112. package/esm/components/dismissible-box/dismissible-box.component.js +19 -22
  113. package/esm/components/dismissible-box/dismissible-box.style.js +5 -8
  114. package/esm/components/draggable/draggable-container.component.js +5 -6
  115. package/esm/components/draggable/draggable-item.component.js +8 -9
  116. package/esm/components/draggable/draggable-item.style.js +3 -6
  117. package/esm/components/draggable/internal/drop-target.component.js +5 -6
  118. package/esm/components/drawer/drawer.component.js +17 -18
  119. package/esm/components/drawer/drawer.style.js +40 -70
  120. package/esm/components/duelling-picklist/duelling-picklist.component.js +9 -10
  121. package/esm/components/duelling-picklist/duelling-picklist.style.js +4 -7
  122. package/esm/components/duelling-picklist/picklist/picklist.component.js +6 -7
  123. package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +10 -11
  124. package/esm/components/duelling-picklist/picklist-group/picklist-group.style.js +9 -15
  125. package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +14 -15
  126. package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +8 -14
  127. package/esm/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +5 -8
  128. package/esm/components/fieldset/fieldset.component.js +6 -7
  129. package/esm/components/fieldset/fieldset.style.js +7 -13
  130. package/esm/components/flat-table/flat-table-body/flat-table-body.component.js +4 -5
  131. package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +10 -12
  132. package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +4 -7
  133. package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.js +18 -19
  134. package/esm/components/flat-table/flat-table-cell/flat-table-cell.style.js +18 -24
  135. package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +13 -14
  136. package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +7 -10
  137. package/esm/components/flat-table/flat-table-head/flat-table-head.component.js +4 -5
  138. package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +14 -15
  139. package/esm/components/flat-table/flat-table-header/flat-table-header.style.js +13 -16
  140. package/esm/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +6 -7
  141. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +22 -23
  142. package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +25 -26
  143. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +18 -19
  144. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +17 -23
  145. package/esm/components/flat-table/flat-table.component.js +17 -18
  146. package/esm/components/flat-table/flat-table.style.js +67 -111
  147. package/esm/components/flat-table/sort/sort.component.js +5 -6
  148. package/esm/components/form/__internal__/form-summary.component.js +9 -11
  149. package/esm/components/form/__internal__/form-summary.style.js +24 -42
  150. package/esm/components/form/form.component.js +17 -18
  151. package/esm/components/form/form.style.js +37 -64
  152. package/esm/components/global-header/global-header.component.js +5 -6
  153. package/esm/components/grid/grid-item/grid-item.style.js +16 -19
  154. package/esm/components/grouped-character/grouped-character.component.js +13 -15
  155. package/esm/components/heading/heading.component.js +16 -17
  156. package/esm/components/heading/heading.style.js +18 -30
  157. package/esm/components/help/help.component.js +17 -18
  158. package/esm/components/help/help.style.js +4 -7
  159. package/esm/components/hr/hr.component.js +6 -7
  160. package/esm/components/i18n-provider/i18n-provider.component.js +6 -9
  161. package/esm/components/icon/icon.component.js +26 -27
  162. package/esm/components/icon/icon.style.js +12 -13
  163. package/esm/components/icon-button/icon-button.component.js +8 -9
  164. package/esm/components/icon-button/icon-button.style.js +4 -7
  165. package/esm/components/image/image.component.js +7 -8
  166. package/esm/components/image/image.style.js +16 -22
  167. package/esm/components/inline-inputs/inline-inputs.component.js +14 -15
  168. package/esm/components/inline-inputs/inline-inputs.style.js +20 -38
  169. package/esm/components/link/link.component.js +22 -24
  170. package/esm/components/link/link.style.js +10 -11
  171. package/esm/components/link-preview/__internal__/placeholder.component.js +9 -18
  172. package/esm/components/link-preview/link-preview.component.js +10 -11
  173. package/esm/components/link-preview/link-preview.style.js +8 -14
  174. package/esm/components/loader/loader-square.style.js +7 -10
  175. package/esm/components/loader/loader.component.js +7 -8
  176. package/esm/components/loader/loader.config.d.ts +1 -1
  177. package/esm/components/loader-bar/loader-bar.component.js +4 -5
  178. package/esm/components/loader-bar/loader-bar.style.js +8 -14
  179. package/esm/components/menu/__internal__/spec-helper/index.js +1 -2
  180. package/esm/components/menu/__internal__/submenu/submenu.component.js +18 -19
  181. package/esm/components/menu/__internal__/submenu/submenu.style.js +20 -29
  182. package/esm/components/menu/menu-divider/menu-divider.component.js +4 -5
  183. package/esm/components/menu/menu-divider/menu-divider.style.js +5 -8
  184. package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +7 -8
  185. package/esm/components/menu/menu-full-screen/menu-full-screen.style.js +11 -17
  186. package/esm/components/menu/menu-item/menu-item.component.js +22 -23
  187. package/esm/components/menu/menu-item/menu-item.style.js +17 -20
  188. package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +5 -6
  189. package/esm/components/menu/menu-segment-title/menu-segment-title.style.js +5 -8
  190. package/esm/components/menu/menu.component.js +5 -6
  191. package/esm/components/menu/menu.style.js +12 -21
  192. package/esm/components/menu/scrollable-block/scrollable-block.component.js +8 -9
  193. package/esm/components/menu/scrollable-block/scrollable-block.style.js +5 -8
  194. package/esm/components/message/message-content/message-content.component.js +5 -6
  195. package/esm/components/message/message-content/message-content.style.js +3 -6
  196. package/esm/components/message/message.component.js +13 -14
  197. package/esm/components/message/message.style.js +7 -13
  198. package/esm/components/message/type-icon/type-icon.component.js +4 -5
  199. package/esm/components/message/type-icon/type-icon.style.js +8 -14
  200. package/esm/components/modal/__internal__/modal-manager.js +4 -8
  201. package/esm/components/modal/modal.component.js +10 -11
  202. package/esm/components/modal/modal.style.js +13 -22
  203. package/esm/components/multi-action-button/multi-action-button.component.js +14 -15
  204. package/esm/components/multi-action-button/multi-action-button.style.js +16 -25
  205. package/esm/components/navigation-bar/fixed-navigation-bar.context.js +7 -8
  206. package/esm/components/navigation-bar/navigation-bar.component.js +11 -12
  207. package/esm/components/navigation-bar/navigation-bar.style.js +12 -18
  208. package/esm/components/note/__internal__/status-icon/status-icon.component.js +4 -5
  209. package/esm/components/note/note.component.js +12 -13
  210. package/esm/components/note/note.style.js +19 -34
  211. package/esm/components/number/number.component.js +7 -8
  212. package/esm/components/numeral-date/numeral-date.component.js +36 -37
  213. package/esm/components/numeral-date/numeral-date.style.js +7 -8
  214. package/esm/components/pager/__internal__/pager-navigation-link.component.js +9 -10
  215. package/esm/components/pager/__internal__/pager-navigation.component.js +16 -17
  216. package/esm/components/pager/pager.component.js +41 -39
  217. package/esm/components/pager/pager.style.js +8 -14
  218. package/esm/components/pages/page/page.component.js +6 -7
  219. package/esm/components/pages/pages.component.js +7 -8
  220. package/esm/components/password/password.component.js +6 -7
  221. package/esm/components/pill/pill.component.js +31 -34
  222. package/esm/components/pill/pill.style.js +11 -12
  223. package/esm/components/pod/pod.component.js +23 -24
  224. package/esm/components/pod/pod.style.js +65 -95
  225. package/esm/components/popover-container/popover-container.component.js +57 -67
  226. package/esm/components/popover-container/popover-container.style.js +6 -10
  227. package/esm/components/portal/portal.js +6 -7
  228. package/esm/components/portrait/portrait-gravatar.component.js +7 -8
  229. package/esm/components/portrait/portrait-initials.component.js +7 -8
  230. package/esm/components/portrait/portrait.component.js +20 -21
  231. package/esm/components/portrait/portrait.style.js +17 -26
  232. package/esm/components/preview/__internal__/preview-placeholder.component.js +7 -8
  233. package/esm/components/preview/__internal__/preview-placeholder.style.js +6 -12
  234. package/esm/components/preview/preview.component.js +6 -7
  235. package/esm/components/profile/profile.component.js +9 -10
  236. package/esm/components/profile/profile.style.js +19 -37
  237. package/esm/components/progress-tracker/progress-tracker.component.js +19 -20
  238. package/esm/components/progress-tracker/progress-tracker.style.js +42 -62
  239. package/esm/components/radio-button/radio-button-group.style.js +5 -8
  240. package/esm/components/radio-button/radio-button.component.js +33 -34
  241. package/esm/components/radio-button/radio-button.style.js +8 -11
  242. package/esm/components/search/search-button.style.js +3 -6
  243. package/esm/components/search/search.component.js +26 -27
  244. package/esm/components/search/search.style.js +10 -11
  245. package/esm/components/select/__internal__/select-text/select-text.component.d.ts +1 -4
  246. package/esm/components/select/__internal__/select-text/select-text.component.js +10 -17
  247. package/esm/components/select/__internal__/select-text/select-text.style.js +8 -11
  248. package/esm/components/select/filterable-select/filterable-select.component.js +40 -42
  249. package/esm/components/select/list-action-button/list-action-button.component.js +4 -5
  250. package/esm/components/select/multi-select/multi-select.component.js +39 -40
  251. package/esm/components/select/multi-select/multi-select.style.js +6 -12
  252. package/esm/components/select/option/option.component.d.ts +2 -2
  253. package/esm/components/select/option/option.component.js +12 -13
  254. package/esm/components/select/option/option.style.js +7 -13
  255. package/esm/components/select/option-group-header/option-group-header.component.js +6 -7
  256. package/esm/components/select/option-row/option-row.component.js +11 -12
  257. package/esm/components/select/option-row/option-row.style.js +7 -13
  258. package/esm/components/select/select-list/select-list-container.style.js +9 -18
  259. package/esm/components/select/select-list/select-list.component.js +30 -32
  260. package/esm/components/select/select-list/select-list.style.js +10 -19
  261. package/esm/components/select/select-textbox/select-textbox.component.js +66 -98
  262. package/esm/components/select/select.style.js +9 -12
  263. package/esm/components/select/simple-select/simple-select.component.js +36 -37
  264. package/esm/components/select/utils/get-next-child-by-text.js +1 -2
  265. package/esm/components/select/utils/with-filter.hoc.js +9 -10
  266. package/esm/components/settings-row/settings-row.component.js +9 -10
  267. package/esm/components/settings-row/settings-row.style.js +4 -7
  268. package/esm/components/show-edit-pod/show-edit-pod.component.js +24 -25
  269. package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +11 -14
  270. package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +4 -7
  271. package/esm/components/sidebar/sidebar.component.js +22 -23
  272. package/esm/components/sidebar/sidebar.style.js +10 -13
  273. package/esm/components/simple-color-picker/simple-color/simple-color.style.js +11 -20
  274. package/esm/components/simple-color-picker/simple-color-picker.component.js +17 -20
  275. package/esm/components/simple-color-picker/simple-color-picker.style.js +9 -13
  276. package/esm/components/split-button/split-button-children.style.js +6 -9
  277. package/esm/components/split-button/split-button-toggle.style.js +7 -10
  278. package/esm/components/split-button/split-button.component.js +15 -16
  279. package/esm/components/step-sequence/step-sequence-item/step-sequence-item.component.js +10 -11
  280. package/esm/components/step-sequence/step-sequence-item/step-sequence-item.style.js +4 -5
  281. package/esm/components/step-sequence/step-sequence.component.js +5 -6
  282. package/esm/components/step-sequence/step-sequence.style.js +4 -7
  283. package/esm/components/switch/__internal__/switch-slider-panel.style.js +5 -8
  284. package/esm/components/switch/__internal__/switch-slider.component.js +10 -11
  285. package/esm/components/switch/__internal__/switch-slider.style.js +10 -13
  286. package/esm/components/switch/switch.component.js +32 -33
  287. package/esm/components/switch/switch.style.js +11 -17
  288. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +28 -29
  289. package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +50 -68
  290. package/esm/components/tabs/__internal__/tabs-header/tabs-header.component.js +14 -18
  291. package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +31 -52
  292. package/esm/components/tabs/tab/tab.component.js +20 -21
  293. package/esm/components/tabs/tab/tab.style.js +5 -8
  294. package/esm/components/tabs/tabs.component.js +18 -20
  295. package/esm/components/tabs/tabs.style.js +6 -9
  296. package/esm/components/text-editor/__internal__/decorators/link-decorator.js +1 -6
  297. package/esm/components/text-editor/__internal__/editor-counter/editor-counter.component.js +17 -20
  298. package/esm/components/text-editor/__internal__/editor-counter/editor-counter.style.js +3 -6
  299. package/esm/components/text-editor/__internal__/editor-link/editor-link.component.js +6 -7
  300. package/esm/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +4 -5
  301. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +12 -13
  302. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +4 -7
  303. package/esm/components/text-editor/__internal__/toolbar/toolbar.component.js +7 -8
  304. package/esm/components/text-editor/__internal__/utils/utils.js +2 -4
  305. package/esm/components/text-editor/text-editor.component.js +15 -16
  306. package/esm/components/text-editor/text-editor.style.js +11 -17
  307. package/esm/components/textarea/textarea.component.js +41 -42
  308. package/esm/components/textarea/textarea.style.js +7 -13
  309. package/esm/components/textbox/__internal__/prefix.style.js +3 -6
  310. package/esm/components/textbox/textbox.component.js +55 -56
  311. package/esm/components/textbox/textbox.style.js +5 -8
  312. package/esm/components/tile/tile-footer/tile-footer.component.js +5 -6
  313. package/esm/components/tile/tile-footer/tile-footer.style.js +4 -7
  314. package/esm/components/tile/tile.component.js +9 -10
  315. package/esm/components/tile/tile.style.js +19 -25
  316. package/esm/components/tile-select/__internal__/accordion/accordion.component.js +6 -7
  317. package/esm/components/tile-select/tile-select-group.component.js +11 -12
  318. package/esm/components/tile-select/tile-select.component.js +25 -26
  319. package/esm/components/tile-select/tile-select.style.js +36 -63
  320. package/esm/components/toast/toast.component.js +14 -15
  321. package/esm/components/toast/toast.style.js +37 -61
  322. package/esm/components/tooltip/tooltip-pointer.style.js +6 -9
  323. package/esm/components/tooltip/tooltip.component.js +28 -37
  324. package/esm/components/tooltip/tooltip.style.js +8 -11
  325. package/esm/components/typography/list.component.js +17 -23
  326. package/esm/components/typography/typography.component.js +36 -43
  327. package/esm/components/vertical-divider/vertical-divider.component.js +7 -8
  328. package/esm/components/vertical-divider/vertical-divider.style.js +11 -20
  329. package/esm/components/vertical-menu/vertical-menu-full-screen.component.js +8 -9
  330. package/esm/components/vertical-menu/vertical-menu-item.component.js +12 -13
  331. package/esm/components/vertical-menu/vertical-menu-trigger.component.js +7 -8
  332. package/esm/components/vertical-menu/vertical-menu.component.js +8 -9
  333. package/esm/components/vertical-menu/vertical-menu.style.js +10 -19
  334. package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.js +1 -4
  335. package/esm/hooks/__internal__/useChildButtons/useChildButtons.js +1 -2
  336. package/esm/hooks/__internal__/useClickAwayListener/useClickAwayListener.js +1 -2
  337. package/esm/hooks/__internal__/useFloating/useFloating.js +14 -16
  338. package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +9 -10
  339. package/esm/hooks/__internal__/useModalAria/useModalAria.js +5 -6
  340. package/esm/hooks/__internal__/useModalManager/useModalManager.js +7 -8
  341. package/esm/hooks/__internal__/useScrollBlock/useScrollBlock.js +17 -23
  342. package/esm/hooks/__internal__/useStableCallback/useStableCallback.js +1 -6
  343. package/esm/locales/en-gb.js +1 -2
  344. package/esm/locales/pl-pl.js +1 -2
  345. package/esm/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +3 -6
  346. package/esm/style/design-tokens/debug-theme.util.js +1 -2
  347. package/esm/style/design-tokens/generate-css-variables.util.js +1 -2
  348. package/esm/style/palette/index.js +7 -10
  349. package/esm/style/utils/color.js +6 -7
  350. package/esm/style/utils/filter-out-styled-system-spacing-props.js +1 -4
  351. package/esm/style/utils/form-style-utils.js +1 -2
  352. package/esm/style/utils/merge-deep.js +2 -8
  353. package/esm/style/utils/mix.js +2 -6
  354. package/esm/style/utils/width.js +5 -8
  355. package/lib/__internal__/character-count/character-count.component.js +6 -7
  356. package/lib/__internal__/character-count/character-count.style.js +7 -13
  357. package/lib/__internal__/checkable-input/checkable-input.component.js +31 -32
  358. package/lib/__internal__/checkable-input/checkable-input.style.js +9 -12
  359. package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +13 -14
  360. package/lib/__internal__/field-help/field-help.component.js +11 -14
  361. package/lib/__internal__/field-help/field-help.style.js +5 -8
  362. package/lib/__internal__/fieldset/fieldset.component.js +32 -36
  363. package/lib/__internal__/fieldset/fieldset.style.js +11 -17
  364. package/lib/__internal__/focus-trap/focus-trap.component.js +10 -11
  365. package/lib/__internal__/form-field/form-field.component.js +31 -32
  366. package/lib/__internal__/form-field/form-field.style.js +4 -7
  367. package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +8 -11
  368. package/lib/__internal__/full-screen-heading/full-screen-heading.style.js +4 -7
  369. package/lib/__internal__/input/input-presentation.component.js +15 -16
  370. package/lib/__internal__/input/input-presentation.style.js +36 -58
  371. package/lib/__internal__/input/input.component.js +22 -23
  372. package/lib/__internal__/input/input.style.js +12 -21
  373. package/lib/__internal__/input-behaviour/input-behaviour.component.js +3 -4
  374. package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +4 -5
  375. package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.js +22 -24
  376. package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.js +14 -20
  377. package/lib/__internal__/label/label.component.js +34 -37
  378. package/lib/__internal__/label/label.style.js +20 -32
  379. package/lib/__internal__/popover/popover.component.js +10 -11
  380. package/lib/__internal__/popover/popover.style.js +6 -12
  381. package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +9 -10
  382. package/lib/__internal__/sticky-footer/sticky-footer.component.js +6 -7
  383. package/lib/__internal__/sticky-footer/sticky-footer.style.js +4 -7
  384. package/lib/__internal__/tooltip-provider/index.js +9 -10
  385. package/lib/__internal__/validation-message/validation-message.component.js +5 -6
  386. package/lib/__internal__/validation-message/validation-message.style.js +4 -7
  387. package/lib/__internal__/validations/validation-icon.component.js +21 -23
  388. package/lib/__internal__/validations/validation-icon.style.js +7 -13
  389. package/lib/__spec_helper__/test-utils.js +17 -26
  390. package/lib/components/accordion/accordion-group/accordion-group.component.js +4 -5
  391. package/lib/components/accordion/accordion.component.js +26 -27
  392. package/lib/components/accordion/accordion.style.js +52 -89
  393. package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +20 -21
  394. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +13 -14
  395. package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +13 -16
  396. package/lib/components/action-popover/action-popover.component.js +15 -17
  397. package/lib/components/action-popover/action-popover.style.js +45 -69
  398. package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +8 -14
  399. package/lib/components/advanced-color-picker/advanced-color-picker.component.js +30 -35
  400. package/lib/components/advanced-color-picker/advanced-color-picker.style.js +8 -14
  401. package/lib/components/alert/alert.component.js +9 -12
  402. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +17 -20
  403. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +8 -14
  404. package/lib/components/anchor-navigation/anchor-navigation.component.js +7 -11
  405. package/lib/components/badge/badge.component.js +6 -7
  406. package/lib/components/badge/badge.style.js +9 -15
  407. package/lib/components/batch-selection/batch-selection.component.js +7 -8
  408. package/lib/components/batch-selection/batch-selection.style.js +6 -9
  409. package/lib/components/box/box.component.js +39 -60
  410. package/lib/components/breadcrumbs/breadcrumbs.component.js +4 -5
  411. package/lib/components/breadcrumbs/crumb/crumb.component.js +14 -17
  412. package/lib/components/breadcrumbs/crumb/crumb.style.js +4 -7
  413. package/lib/components/button/button.component.js +36 -38
  414. package/lib/components/button/button.style.js +22 -32
  415. package/lib/components/button-bar/button-bar.component.js +17 -20
  416. package/lib/components/button-bar/button-bar.style.js +5 -8
  417. package/lib/components/button-minor/button-minor.component.js +7 -8
  418. package/lib/components/button-minor/button-minor.style.js +19 -31
  419. package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +24 -25
  420. package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.js +12 -21
  421. package/lib/components/button-toggle/button-toggle-icon.component.js +15 -18
  422. package/lib/components/button-toggle/button-toggle.component.js +20 -21
  423. package/lib/components/button-toggle/button-toggle.style.js +33 -57
  424. package/lib/components/carbon-provider/carbon-provider.component.js +6 -7
  425. package/lib/components/carbon-provider/top-modal-context.js +3 -4
  426. package/lib/components/card/card-column/card-column.component.js +7 -10
  427. package/lib/components/card/card-column/card-column.style.js +3 -6
  428. package/lib/components/card/card-footer/card-footer.component.js +6 -7
  429. package/lib/components/card/card-footer/card-footer.style.js +6 -9
  430. package/lib/components/card/card-row/card-row.component.js +5 -6
  431. package/lib/components/card/card-row/card-row.style.js +4 -7
  432. package/lib/components/card/card.component.js +16 -17
  433. package/lib/components/card/card.style.js +11 -14
  434. package/lib/components/carousel/carousel.component.js +11 -12
  435. package/lib/components/carousel/carousel.style.js +8 -14
  436. package/lib/components/carousel/slide/slide.style.js +4 -7
  437. package/lib/components/checkbox/checkbox-group.style.js +8 -14
  438. package/lib/components/checkbox/checkbox.component.js +35 -36
  439. package/lib/components/checkbox/checkbox.style.js +14 -17
  440. package/lib/components/confirm/confirm.component.js +28 -29
  441. package/lib/components/confirm/confirm.style.js +8 -14
  442. package/lib/components/content/content.component.js +10 -11
  443. package/lib/components/content/content.style.js +17 -22
  444. package/lib/components/date/__internal__/date-formats/index.js +7 -9
  445. package/lib/components/date/__internal__/date-picker/date-picker.component.js +11 -12
  446. package/lib/components/date/__internal__/date-picker/day-picker.style.js +3 -6
  447. package/lib/components/date/__internal__/navbar/navbar.component.js +15 -18
  448. package/lib/components/date/__internal__/utils.js +1 -3
  449. package/lib/components/date/__internal__/weekday/weekday.component.js +11 -14
  450. package/lib/components/date/date.component.js +30 -31
  451. package/lib/components/date/date.style.js +12 -18
  452. package/lib/components/date-range/date-range.component.js +15 -16
  453. package/lib/components/date-range/date-range.style.js +3 -6
  454. package/lib/components/decimal/decimal.component.js +18 -19
  455. package/lib/components/definition-list/dd.component.js +4 -5
  456. package/lib/components/definition-list/definition-list.style.js +13 -22
  457. package/lib/components/definition-list/dl.component.js +8 -9
  458. package/lib/components/definition-list/dt.component.js +4 -5
  459. package/lib/components/detail/detail.component.js +18 -21
  460. package/lib/components/detail/detail.style.js +8 -14
  461. package/lib/components/dialog/dialog.component.js +22 -23
  462. package/lib/components/dialog/dialog.style.js +28 -52
  463. package/lib/components/dialog-full-screen/content.style.js +12 -21
  464. package/lib/components/dialog-full-screen/dialog-full-screen.component.js +24 -25
  465. package/lib/components/dialog-full-screen/dialog-full-screen.style.js +7 -13
  466. package/lib/components/dismissible-box/dismissible-box.component.js +19 -22
  467. package/lib/components/dismissible-box/dismissible-box.style.js +5 -8
  468. package/lib/components/draggable/draggable-container.component.js +5 -6
  469. package/lib/components/draggable/draggable-item.component.js +8 -9
  470. package/lib/components/draggable/draggable-item.style.js +3 -6
  471. package/lib/components/draggable/internal/drop-target.component.js +5 -6
  472. package/lib/components/drawer/drawer.component.js +17 -18
  473. package/lib/components/drawer/drawer.style.js +40 -70
  474. package/lib/components/duelling-picklist/duelling-picklist.component.js +9 -10
  475. package/lib/components/duelling-picklist/duelling-picklist.style.js +4 -7
  476. package/lib/components/duelling-picklist/picklist/picklist.component.js +6 -7
  477. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +10 -11
  478. package/lib/components/duelling-picklist/picklist-group/picklist-group.style.js +9 -15
  479. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +14 -15
  480. package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +8 -14
  481. package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +5 -8
  482. package/lib/components/fieldset/fieldset.component.js +6 -7
  483. package/lib/components/fieldset/fieldset.style.js +7 -13
  484. package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +4 -5
  485. package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +10 -12
  486. package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +4 -7
  487. package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +18 -19
  488. package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +18 -24
  489. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +13 -14
  490. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +7 -10
  491. package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +4 -5
  492. package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +14 -15
  493. package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +13 -16
  494. package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +6 -7
  495. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +22 -23
  496. package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +25 -26
  497. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +18 -19
  498. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +17 -23
  499. package/lib/components/flat-table/flat-table.component.js +17 -18
  500. package/lib/components/flat-table/flat-table.style.js +67 -111
  501. package/lib/components/flat-table/sort/sort.component.js +5 -6
  502. package/lib/components/form/__internal__/form-summary.component.js +9 -11
  503. package/lib/components/form/__internal__/form-summary.style.js +24 -42
  504. package/lib/components/form/form.component.js +17 -18
  505. package/lib/components/form/form.style.js +37 -64
  506. package/lib/components/global-header/global-header.component.js +5 -6
  507. package/lib/components/grid/grid-item/grid-item.style.js +16 -19
  508. package/lib/components/grouped-character/grouped-character.component.js +13 -15
  509. package/lib/components/heading/heading.component.js +16 -17
  510. package/lib/components/heading/heading.style.js +18 -30
  511. package/lib/components/help/help.component.js +17 -18
  512. package/lib/components/help/help.style.js +4 -7
  513. package/lib/components/hr/hr.component.js +6 -7
  514. package/lib/components/i18n-provider/i18n-provider.component.js +6 -9
  515. package/lib/components/icon/icon.component.js +26 -27
  516. package/lib/components/icon/icon.style.js +12 -13
  517. package/lib/components/icon-button/icon-button.component.js +8 -9
  518. package/lib/components/icon-button/icon-button.style.js +4 -7
  519. package/lib/components/image/image.component.js +7 -8
  520. package/lib/components/image/image.style.js +16 -22
  521. package/lib/components/inline-inputs/inline-inputs.component.js +14 -15
  522. package/lib/components/inline-inputs/inline-inputs.style.js +20 -38
  523. package/lib/components/link/link.component.js +22 -24
  524. package/lib/components/link/link.style.js +10 -11
  525. package/lib/components/link-preview/__internal__/placeholder.component.js +9 -18
  526. package/lib/components/link-preview/link-preview.component.js +10 -11
  527. package/lib/components/link-preview/link-preview.style.js +8 -14
  528. package/lib/components/loader/loader-square.style.js +7 -10
  529. package/lib/components/loader/loader.component.js +7 -8
  530. package/lib/components/loader/loader.config.d.ts +1 -1
  531. package/lib/components/loader-bar/loader-bar.component.js +4 -5
  532. package/lib/components/loader-bar/loader-bar.style.js +8 -14
  533. package/lib/components/menu/__internal__/spec-helper/index.js +1 -2
  534. package/lib/components/menu/__internal__/submenu/submenu.component.js +18 -19
  535. package/lib/components/menu/__internal__/submenu/submenu.style.js +20 -29
  536. package/lib/components/menu/menu-divider/menu-divider.component.js +4 -5
  537. package/lib/components/menu/menu-divider/menu-divider.style.js +5 -8
  538. package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +7 -8
  539. package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +11 -17
  540. package/lib/components/menu/menu-item/menu-item.component.js +22 -23
  541. package/lib/components/menu/menu-item/menu-item.style.js +17 -20
  542. package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +5 -6
  543. package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +5 -8
  544. package/lib/components/menu/menu.component.js +5 -6
  545. package/lib/components/menu/menu.style.js +12 -21
  546. package/lib/components/menu/scrollable-block/scrollable-block.component.js +8 -9
  547. package/lib/components/menu/scrollable-block/scrollable-block.style.js +5 -8
  548. package/lib/components/message/message-content/message-content.component.js +5 -6
  549. package/lib/components/message/message-content/message-content.style.js +3 -6
  550. package/lib/components/message/message.component.js +13 -14
  551. package/lib/components/message/message.style.js +7 -13
  552. package/lib/components/message/type-icon/type-icon.component.js +4 -5
  553. package/lib/components/message/type-icon/type-icon.style.js +8 -14
  554. package/lib/components/modal/__internal__/modal-manager.js +4 -8
  555. package/lib/components/modal/modal.component.js +10 -11
  556. package/lib/components/modal/modal.style.js +13 -22
  557. package/lib/components/multi-action-button/multi-action-button.component.js +14 -15
  558. package/lib/components/multi-action-button/multi-action-button.style.js +16 -25
  559. package/lib/components/navigation-bar/fixed-navigation-bar.context.js +7 -8
  560. package/lib/components/navigation-bar/navigation-bar.component.js +11 -12
  561. package/lib/components/navigation-bar/navigation-bar.style.js +12 -18
  562. package/lib/components/note/__internal__/status-icon/status-icon.component.js +4 -5
  563. package/lib/components/note/note.component.js +12 -13
  564. package/lib/components/note/note.style.js +19 -34
  565. package/lib/components/number/number.component.js +7 -8
  566. package/lib/components/numeral-date/numeral-date.component.js +36 -37
  567. package/lib/components/numeral-date/numeral-date.style.js +7 -8
  568. package/lib/components/pager/__internal__/pager-navigation-link.component.js +9 -10
  569. package/lib/components/pager/__internal__/pager-navigation.component.js +16 -17
  570. package/lib/components/pager/pager.component.js +41 -39
  571. package/lib/components/pager/pager.style.js +8 -14
  572. package/lib/components/pages/page/page.component.js +6 -7
  573. package/lib/components/pages/pages.component.js +7 -8
  574. package/lib/components/password/password.component.js +6 -7
  575. package/lib/components/pill/pill.component.js +31 -34
  576. package/lib/components/pill/pill.style.js +11 -12
  577. package/lib/components/pod/pod.component.js +23 -24
  578. package/lib/components/pod/pod.style.js +65 -95
  579. package/lib/components/popover-container/popover-container.component.js +57 -67
  580. package/lib/components/popover-container/popover-container.style.js +6 -10
  581. package/lib/components/portal/portal.js +6 -7
  582. package/lib/components/portrait/portrait-gravatar.component.js +7 -8
  583. package/lib/components/portrait/portrait-initials.component.js +7 -8
  584. package/lib/components/portrait/portrait.component.js +20 -21
  585. package/lib/components/portrait/portrait.style.js +17 -26
  586. package/lib/components/preview/__internal__/preview-placeholder.component.js +7 -8
  587. package/lib/components/preview/__internal__/preview-placeholder.style.js +6 -12
  588. package/lib/components/preview/preview.component.js +6 -7
  589. package/lib/components/profile/profile.component.js +9 -10
  590. package/lib/components/profile/profile.style.js +19 -37
  591. package/lib/components/progress-tracker/progress-tracker.component.js +19 -20
  592. package/lib/components/progress-tracker/progress-tracker.style.js +42 -62
  593. package/lib/components/radio-button/radio-button-group.style.js +5 -8
  594. package/lib/components/radio-button/radio-button.component.js +33 -34
  595. package/lib/components/radio-button/radio-button.style.js +8 -11
  596. package/lib/components/search/search-button.style.js +3 -6
  597. package/lib/components/search/search.component.js +26 -27
  598. package/lib/components/search/search.style.js +10 -11
  599. package/lib/components/select/__internal__/select-text/select-text.component.d.ts +1 -4
  600. package/lib/components/select/__internal__/select-text/select-text.component.js +10 -17
  601. package/lib/components/select/__internal__/select-text/select-text.style.js +8 -11
  602. package/lib/components/select/filterable-select/filterable-select.component.js +40 -42
  603. package/lib/components/select/list-action-button/list-action-button.component.js +4 -5
  604. package/lib/components/select/multi-select/multi-select.component.js +39 -40
  605. package/lib/components/select/multi-select/multi-select.style.js +6 -12
  606. package/lib/components/select/option/option.component.d.ts +2 -2
  607. package/lib/components/select/option/option.component.js +12 -13
  608. package/lib/components/select/option/option.style.js +7 -13
  609. package/lib/components/select/option-group-header/option-group-header.component.js +6 -7
  610. package/lib/components/select/option-row/option-row.component.js +11 -12
  611. package/lib/components/select/option-row/option-row.style.js +7 -13
  612. package/lib/components/select/select-list/select-list-container.style.js +9 -18
  613. package/lib/components/select/select-list/select-list.component.js +30 -32
  614. package/lib/components/select/select-list/select-list.style.js +10 -19
  615. package/lib/components/select/select-textbox/select-textbox.component.js +65 -97
  616. package/lib/components/select/select.style.js +9 -12
  617. package/lib/components/select/simple-select/simple-select.component.js +36 -37
  618. package/lib/components/select/utils/get-next-child-by-text.js +1 -2
  619. package/lib/components/select/utils/with-filter.hoc.js +9 -10
  620. package/lib/components/settings-row/settings-row.component.js +9 -10
  621. package/lib/components/settings-row/settings-row.style.js +4 -7
  622. package/lib/components/show-edit-pod/show-edit-pod.component.js +24 -25
  623. package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +11 -14
  624. package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +4 -7
  625. package/lib/components/sidebar/sidebar.component.js +22 -23
  626. package/lib/components/sidebar/sidebar.style.js +10 -13
  627. package/lib/components/simple-color-picker/simple-color/simple-color.style.js +11 -20
  628. package/lib/components/simple-color-picker/simple-color-picker.component.js +17 -20
  629. package/lib/components/simple-color-picker/simple-color-picker.style.js +9 -13
  630. package/lib/components/split-button/split-button-children.style.js +6 -9
  631. package/lib/components/split-button/split-button-toggle.style.js +7 -10
  632. package/lib/components/split-button/split-button.component.js +15 -16
  633. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +10 -11
  634. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +4 -5
  635. package/lib/components/step-sequence/step-sequence.component.js +5 -6
  636. package/lib/components/step-sequence/step-sequence.style.js +4 -7
  637. package/lib/components/switch/__internal__/switch-slider-panel.style.js +5 -8
  638. package/lib/components/switch/__internal__/switch-slider.component.js +10 -11
  639. package/lib/components/switch/__internal__/switch-slider.style.js +10 -13
  640. package/lib/components/switch/switch.component.js +32 -33
  641. package/lib/components/switch/switch.style.js +11 -17
  642. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +28 -29
  643. package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +50 -68
  644. package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.js +14 -18
  645. package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +31 -52
  646. package/lib/components/tabs/tab/tab.component.js +20 -21
  647. package/lib/components/tabs/tab/tab.style.js +5 -8
  648. package/lib/components/tabs/tabs.component.js +18 -20
  649. package/lib/components/tabs/tabs.style.js +6 -9
  650. package/lib/components/text-editor/__internal__/decorators/link-decorator.js +1 -6
  651. package/lib/components/text-editor/__internal__/editor-counter/editor-counter.component.js +17 -20
  652. package/lib/components/text-editor/__internal__/editor-counter/editor-counter.style.js +3 -6
  653. package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +6 -7
  654. package/lib/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +4 -5
  655. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +12 -13
  656. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +4 -7
  657. package/lib/components/text-editor/__internal__/toolbar/toolbar.component.js +7 -8
  658. package/lib/components/text-editor/__internal__/utils/utils.js +2 -4
  659. package/lib/components/text-editor/text-editor.component.js +15 -16
  660. package/lib/components/text-editor/text-editor.style.js +11 -17
  661. package/lib/components/textarea/textarea.component.js +41 -42
  662. package/lib/components/textarea/textarea.style.js +7 -13
  663. package/lib/components/textbox/__internal__/prefix.style.js +3 -6
  664. package/lib/components/textbox/textbox.component.js +55 -56
  665. package/lib/components/textbox/textbox.style.js +5 -8
  666. package/lib/components/tile/tile-footer/tile-footer.component.js +5 -6
  667. package/lib/components/tile/tile-footer/tile-footer.style.js +4 -7
  668. package/lib/components/tile/tile.component.js +9 -10
  669. package/lib/components/tile/tile.style.js +19 -25
  670. package/lib/components/tile-select/__internal__/accordion/accordion.component.js +6 -7
  671. package/lib/components/tile-select/tile-select-group.component.js +11 -12
  672. package/lib/components/tile-select/tile-select.component.js +25 -26
  673. package/lib/components/tile-select/tile-select.style.js +36 -63
  674. package/lib/components/toast/toast.component.js +14 -15
  675. package/lib/components/toast/toast.style.js +37 -61
  676. package/lib/components/tooltip/tooltip-pointer.style.js +6 -9
  677. package/lib/components/tooltip/tooltip.component.js +28 -37
  678. package/lib/components/tooltip/tooltip.style.js +8 -11
  679. package/lib/components/typography/list.component.js +17 -23
  680. package/lib/components/typography/typography.component.js +36 -43
  681. package/lib/components/vertical-divider/vertical-divider.component.js +7 -8
  682. package/lib/components/vertical-divider/vertical-divider.style.js +11 -20
  683. package/lib/components/vertical-menu/vertical-menu-full-screen.component.js +8 -9
  684. package/lib/components/vertical-menu/vertical-menu-item.component.js +12 -13
  685. package/lib/components/vertical-menu/vertical-menu-trigger.component.js +7 -8
  686. package/lib/components/vertical-menu/vertical-menu.component.js +8 -9
  687. package/lib/components/vertical-menu/vertical-menu.style.js +10 -19
  688. package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +1 -4
  689. package/lib/hooks/__internal__/useChildButtons/useChildButtons.js +1 -2
  690. package/lib/hooks/__internal__/useClickAwayListener/useClickAwayListener.js +1 -2
  691. package/lib/hooks/__internal__/useFloating/useFloating.js +14 -16
  692. package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +9 -10
  693. package/lib/hooks/__internal__/useModalAria/useModalAria.js +5 -6
  694. package/lib/hooks/__internal__/useModalManager/useModalManager.js +7 -8
  695. package/lib/hooks/__internal__/useScrollBlock/useScrollBlock.js +17 -23
  696. package/lib/hooks/__internal__/useStableCallback/useStableCallback.js +1 -6
  697. package/lib/locales/en-gb.js +1 -2
  698. package/lib/locales/pl-pl.js +1 -2
  699. package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +3 -6
  700. package/lib/style/design-tokens/debug-theme.util.js +1 -2
  701. package/lib/style/design-tokens/generate-css-variables.util.js +1 -2
  702. package/lib/style/palette/index.js +7 -10
  703. package/lib/style/utils/color.js +6 -7
  704. package/lib/style/utils/filter-out-styled-system-spacing-props.js +1 -4
  705. package/lib/style/utils/form-style-utils.js +1 -2
  706. package/lib/style/utils/merge-deep.js +2 -8
  707. package/lib/style/utils/mix.js +2 -6
  708. package/lib/style/utils/width.js +5 -8
  709. package/package.json +18 -9
@@ -59,14 +59,10 @@ let ModalManagerInstance = /*#__PURE__*/function () {
59
59
  }
60
60
  }, {
61
61
  key: "removeModal",
62
- value: function removeModal(modal) {
63
- let triggerRefocusOnClose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
64
- const modalIndex = this.modalList.findIndex(_ref => {
65
- let {
66
- modal: m
67
- } = _ref;
68
- return m === modal;
69
- });
62
+ value: function removeModal(modal, triggerRefocusOnClose = true) {
63
+ const modalIndex = this.modalList.findIndex(({
64
+ modal: m
65
+ }) => m === modal);
70
66
  if (modalIndex === -1) {
71
67
  return;
72
68
  }
@@ -18,17 +18,16 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
18
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
  const ModalContext = /*#__PURE__*/_react.default.createContext({});
20
20
  exports.ModalContext = ModalContext;
21
- const Modal = _ref => {
22
- let {
23
- children,
24
- open,
25
- onCancel,
26
- disableEscKey = false,
27
- disableClose,
28
- enableBackgroundUI = false,
29
- timeout = 300,
30
- ...rest
31
- } = _ref;
21
+ const Modal = ({
22
+ children,
23
+ open,
24
+ onCancel,
25
+ disableEscKey = false,
26
+ disableClose,
27
+ enableBackgroundUI = false,
28
+ timeout = 300,
29
+ ...rest
30
+ }) => {
32
31
  const ref = (0, _react.useRef)(null);
33
32
  const backgroundNodeRef = (0, _react.useRef)(null);
34
33
  const contentNodeRef = (0, _react.useRef)(null);
@@ -19,12 +19,10 @@ const StyledModalBackground = _styledComponents.default.div`
19
19
  right: 0;
20
20
  top: 0;
21
21
 
22
- ${_ref => {
23
- let {
24
- transitionName,
25
- transitionTime
26
- } = _ref;
27
- return (0, _styledComponents.css)`
22
+ ${({
23
+ transitionName,
24
+ transitionTime
25
+ }) => (0, _styledComponents.css)`
28
26
  &.${transitionName}-enter, .${transitionName}-appear {
29
27
  opacity: 0;
30
28
  }
@@ -43,25 +41,19 @@ const StyledModalBackground = _styledComponents.default.div`
43
41
  opacity: 0;
44
42
  transition: opacity ${transitionTime}ms 100ms ease-out;
45
43
  }
46
- `;
47
- }};
44
+ `};
48
45
  `;
49
46
  exports.StyledModalBackground = StyledModalBackground;
50
47
  const StyledModal = _styledComponents.default.div`
51
48
  position: absolute;
52
- z-index: ${_ref2 => {
53
- let {
54
- theme
55
- } = _ref2;
56
- return theme.zIndex.modal;
57
- }};
49
+ z-index: ${({
50
+ theme
51
+ }) => theme.zIndex.modal};
58
52
 
59
- ${_ref3 => {
60
- let {
61
- transitionName,
62
- transitionTime
63
- } = _ref3;
64
- return (0, _styledComponents.css)`
53
+ ${({
54
+ transitionName,
55
+ transitionTime
56
+ }) => (0, _styledComponents.css)`
65
57
  .${transitionName}-enter, .${transitionName}-appear {
66
58
  opacity: 0;
67
59
  }
@@ -80,8 +72,7 @@ const StyledModal = _styledComponents.default.div`
80
72
  opacity: 0;
81
73
  transition: all ${transitionTime}ms ease-out;
82
74
  }
83
- `;
84
- }}
75
+ `}
85
76
  `;
86
77
  exports.StyledModal = StyledModal;
87
78
  StyledModal.defaultProps = {
@@ -17,21 +17,20 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
- const MultiActionButton = _ref => {
21
- let {
22
- align = "left",
23
- disabled,
24
- buttonType,
25
- size,
26
- children,
27
- text,
28
- subtext,
29
- width,
30
- onClick,
31
- "data-element": dataElement,
32
- "data-role": dataRole,
33
- ...rest
34
- } = _ref;
20
+ const MultiActionButton = ({
21
+ align = "left",
22
+ disabled,
23
+ buttonType,
24
+ size,
25
+ children,
26
+ text,
27
+ subtext,
28
+ width,
29
+ onClick,
30
+ "data-element": dataElement,
31
+ "data-role": dataRole,
32
+ ...rest
33
+ }) => {
35
34
  const buttonRef = (0, _react.useRef)(null);
36
35
  const {
37
36
  showAdditionalButtons,
@@ -20,20 +20,17 @@ const StyledMultiActionButton = _styledComponents.default.div`
20
20
  display: inline-block;
21
21
  position: relative;
22
22
 
23
- ${_ref => {
24
- let {
25
- width
26
- } = _ref;
27
- return width && (0, _styledComponents.css)`
23
+ ${({
24
+ width
25
+ }) => width && (0, _styledComponents.css)`
28
26
  ${(0, _width.default)({
29
- width
30
- })}
27
+ width
28
+ })}
31
29
 
32
30
  ${_button.default} {
33
31
  width: 100%
34
32
  justify-content: space-between;
35
- }`;
36
- }}
33
+ }`}
37
34
 
38
35
  & > ${_button.default} {
39
36
  margin: 0;
@@ -55,11 +52,9 @@ const StyledMultiActionButton = _styledComponents.default.div`
55
52
  }
56
53
  }
57
54
 
58
- ${_ref2 => {
59
- let {
60
- displayed
61
- } = _ref2;
62
- return displayed && (0, _styledComponents.css)`
55
+ ${({
56
+ displayed
57
+ }) => displayed && (0, _styledComponents.css)`
63
58
  background-color: var(--colorsActionMajor700);
64
59
  border-color: var(--colorsActionMajor700);
65
60
 
@@ -72,19 +67,16 @@ const StyledMultiActionButton = _styledComponents.default.div`
72
67
  border-color: var(--colorsSemanticFocus500);
73
68
  margin: 0 -1px;
74
69
  }
75
- `;
76
- }}
70
+ `}
77
71
  }
78
72
  `;
79
73
  exports.StyledMultiActionButton = StyledMultiActionButton;
80
74
  const StyledButtonChildrenContainer = _styledComponents.default.div`
81
- ${_ref3 => {
82
- let {
83
- theme,
84
- align,
85
- minWidth
86
- } = _ref3;
87
- return (0, _styledComponents.css)`
75
+ ${({
76
+ theme,
77
+ align,
78
+ minWidth
79
+ }) => (0, _styledComponents.css)`
88
80
  background-color: var(--colorsActionMajorYang100);
89
81
  min-width: ${minWidth}px;
90
82
  white-space: nowrap;
@@ -120,8 +112,7 @@ const StyledButtonChildrenContainer = _styledComponents.default.div`
120
112
  margin-top: 3px;
121
113
  }
122
114
  }
123
- `;
124
- }}
115
+ `}
125
116
  `;
126
117
  exports.StyledButtonChildrenContainer = StyledButtonChildrenContainer;
127
118
  StyledButtonChildrenContainer.defaultProps = {
@@ -10,14 +10,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  const FixedNavigationBarContext = /*#__PURE__*/(0, _react.createContext)({});
13
- const FixedNavigationBarContextProvider = _ref => {
14
- let {
15
- position,
16
- orientation,
17
- offset,
18
- children,
19
- navbarElement
20
- } = _ref;
13
+ const FixedNavigationBarContextProvider = ({
14
+ position,
15
+ orientation,
16
+ offset,
17
+ children,
18
+ navbarElement
19
+ }) => {
21
20
  const [navbarHeight, setNavbarHeight] = (0, _react.useState)(navbarElement?.offsetHeight);
22
21
  const updateHeight = (0, _react.useCallback)(() => setNavbarHeight(navbarElement?.offsetHeight), [navbarElement]);
23
22
  (0, _useResizeObserver.default)({
@@ -12,18 +12,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
- const NavigationBar = _ref => {
16
- let {
17
- navigationType = "light",
18
- isLoading = false,
19
- children,
20
- ariaLabel,
21
- position,
22
- offset = "0",
23
- orientation,
24
- isGlobal,
25
- ...props
26
- } = _ref;
15
+ const NavigationBar = ({
16
+ navigationType = "light",
17
+ isLoading = false,
18
+ children,
19
+ ariaLabel,
20
+ position,
21
+ offset = "0",
22
+ orientation,
23
+ isGlobal,
24
+ ...props
25
+ }) => {
27
26
  const [navbarElement, setNavbarElement] = (0, _react.useState)(null);
28
27
  return /*#__PURE__*/_react.default.createElement(_navigationBar.default, _extends({
29
28
  role: "navigation",
@@ -43,13 +43,11 @@ const StyledNavigationBar = _styledComponents.default.nav`
43
43
  margin-right: 10px;
44
44
  }
45
45
 
46
- ${_ref => {
47
- let {
48
- position,
49
- orientation,
50
- offset
51
- } = _ref;
52
- return position && orientation && (0, _styledComponents.css)`
46
+ ${({
47
+ position,
48
+ orientation,
49
+ offset
50
+ }) => position && orientation && (0, _styledComponents.css)`
53
51
  position: ${position};
54
52
  ${orientation}: ${offset};
55
53
 
@@ -57,16 +55,13 @@ const StyledNavigationBar = _styledComponents.default.nav`
57
55
  box-sizing: border-box;
58
56
  width: 100%;
59
57
  `}
60
- `;
61
- }}
58
+ `}
62
59
 
63
- ${_ref2 => {
64
- let {
65
- navigationType,
66
- theme,
67
- isGlobal
68
- } = _ref2;
69
- return (0, _styledComponents.css)`
60
+ ${({
61
+ navigationType,
62
+ theme,
63
+ isGlobal
64
+ }) => (0, _styledComponents.css)`
70
65
  min-height: 40px;
71
66
  z-index: ${isGlobal ? theme.zIndex.globalNav : theme.zIndex.nav};
72
67
 
@@ -91,8 +86,7 @@ const StyledNavigationBar = _styledComponents.default.nav`
91
86
  border-bottom: var(--borderWidth100) solid
92
87
  var(--colorsComponentsMenuSummerChildAlt500);
93
88
  `}
94
- `;
95
- }}
89
+ `}
96
90
  `;
97
91
  StyledNavigationBar.defaultProps = {
98
92
  theme: _themes.baseTheme
@@ -9,11 +9,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var _statusIcon = _interopRequireDefault(require("./status-icon.style"));
10
10
  var _tooltip = _interopRequireDefault(require("../../../tooltip"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- const StatusIcon = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
13
- let {
14
- tooltipMessage,
15
- children
16
- } = _ref;
12
+ const StatusIcon = /*#__PURE__*/_react.default.forwardRef(({
13
+ tooltipMessage,
14
+ children
15
+ }, ref) => {
17
16
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
18
17
  message: tooltipMessage
19
18
  }, /*#__PURE__*/_react.default.createElement(_statusIcon.default, {
@@ -19,19 +19,18 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
19
19
  function hasExpectedDisplayName(child, displayName) {
20
20
  return child.type.displayName === displayName;
21
21
  }
22
- const Note = _ref => {
23
- let {
24
- createdDate,
25
- inlineControl,
26
- name,
27
- noteContent,
28
- onLinkAdded,
29
- previews,
30
- status,
31
- title,
32
- width = 100,
33
- ...rest
34
- } = _ref;
22
+ const Note = ({
23
+ createdDate,
24
+ inlineControl,
25
+ name,
26
+ noteContent,
27
+ onLinkAdded,
28
+ previews,
29
+ status,
30
+ title,
31
+ width = 100,
32
+ ...rest
33
+ }) => {
35
34
  !(width > 0) ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> width must be greater than 0") : (0, _invariant.default)(false) : void 0;
36
35
  !createdDate ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> createdDate is required") : (0, _invariant.default)(false) : void 0;
37
36
  !noteContent ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> noteContent is required") : (0, _invariant.default)(false) : void 0;
@@ -15,11 +15,9 @@ const StyledNoteContent = _styledComponents.default.div`
15
15
  position: relative;
16
16
  width: 100%;
17
17
 
18
- ${_ref => {
19
- let {
20
- hasPreview
21
- } = _ref;
22
- return (0, _styledComponents.css)`
18
+ ${({
19
+ hasPreview
20
+ }) => (0, _styledComponents.css)`
23
21
  &:not(:last-of-type) {
24
22
  padding-bottom: 24px;
25
23
  }
@@ -44,15 +42,11 @@ const StyledNoteContent = _styledComponents.default.div`
44
42
  ${hasPreview && `
45
43
  margin-top: var(--spacing200);
46
44
  `}
47
- `;
48
- }}
49
-
50
- ${_ref2 => {
51
- let {
52
- hasInlineControl
53
- } = _ref2;
54
- return hasInlineControl && "margin-right: 24px;";
55
- }}
45
+ `}
46
+
47
+ ${({
48
+ hasInlineControl
49
+ }) => hasInlineControl && "margin-right: 24px;"}
56
50
  `;
57
51
  exports.StyledNoteContent = StyledNoteContent;
58
52
  const StyledInlineControl = _styledComponents.default.div`
@@ -68,12 +62,9 @@ const StyledTitle = _styledComponents.default.header`
68
62
  line-height: 21px;
69
63
  padding-bottom: 16px;
70
64
 
71
- ${_ref3 => {
72
- let {
73
- hasInlineControl
74
- } = _ref3;
75
- return hasInlineControl && "margin-right: 24px;";
76
- }}
65
+ ${({
66
+ hasInlineControl
67
+ }) => hasInlineControl && "margin-right: 24px;"}
77
68
  `;
78
69
  exports.StyledTitle = StyledTitle;
79
70
  const StyledFooterContent = _styledComponents.default.div`
@@ -81,11 +72,9 @@ const StyledFooterContent = _styledComponents.default.div`
81
72
  align-items: baseline;
82
73
  font-weight: bold;
83
74
 
84
- ${_ref4 => {
85
- let {
86
- hasName
87
- } = _ref4;
88
- return (0, _styledComponents.css)`
75
+ ${({
76
+ hasName
77
+ }) => (0, _styledComponents.css)`
89
78
  margin-top: var(--spacing200);
90
79
 
91
80
  ${hasName && (0, _styledComponents.css)`
@@ -120,8 +109,7 @@ const StyledFooterContent = _styledComponents.default.div`
120
109
  margin-left: var(--spacing300);
121
110
  }
122
111
  `}
123
- `;
124
- }}
112
+ `}
125
113
  `;
126
114
  exports.StyledFooterContent = StyledFooterContent;
127
115
  const StyledFooter = _styledComponents.default.div`
@@ -131,11 +119,9 @@ const StyledFooter = _styledComponents.default.div`
131
119
  `;
132
120
  exports.StyledFooter = StyledFooter;
133
121
  const StyledNote = _styledComponents.default.div`
134
- ${_ref5 => {
135
- let {
136
- width
137
- } = _ref5;
138
- return (0, _styledComponents.css)`
122
+ ${({
123
+ width
124
+ }) => (0, _styledComponents.css)`
139
125
  background-color: var(--colorsUtilityYang100);
140
126
  border: 1px solid var(--colorsUtilityMajor100);
141
127
  border-radius: var(--borderRadius100);
@@ -150,8 +136,7 @@ const StyledNote = _styledComponents.default.div`
150
136
  box-sizing: border-box;
151
137
  width: auto;
152
138
  }
153
- `;
154
- }}
139
+ `}
155
140
 
156
141
  ${_linkPreview.StyledLinkPreview} {
157
142
  margin: 0px;
@@ -19,14 +19,13 @@ function isValidNumber(value) {
19
19
  const result = regex.test(value);
20
20
  return result;
21
21
  }
22
- const Number = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
23
- let {
24
- onChange,
25
- onKeyDown,
26
- value,
27
- inputRef,
28
- ...rest
29
- } = _ref;
22
+ const Number = /*#__PURE__*/_react.default.forwardRef(({
23
+ onChange,
24
+ onKeyDown,
25
+ value,
26
+ inputRef,
27
+ ...rest
28
+ }, ref) => {
30
29
  const selectionStart = (0, _react.useRef)(null);
31
30
  const selectionEnd = (0, _react.useRef)(null);
32
31
  if (!deprecateInputRefWarnTriggered && inputRef) {
@@ -38,43 +38,42 @@ const validations = {
38
38
  mm: isMonthValid,
39
39
  yyyy: isYearValid
40
40
  };
41
- const NumeralDate = _ref => {
42
- let {
43
- dateFormat = ["dd", "mm", "yyyy"],
44
- defaultValue,
45
- disabled,
46
- error = "",
47
- warning = "",
48
- "data-component": dataComponent,
49
- "data-element": dataElement,
50
- "data-role": dataRole,
51
- info,
52
- id,
53
- name,
54
- onBlur,
55
- onChange,
56
- value,
57
- validationOnLabel = false,
58
- label,
59
- labelInline,
60
- labelWidth,
61
- labelAlign,
62
- labelHelp,
63
- labelSpacing,
64
- fieldHelp,
65
- adaptiveLabelBreakpoint,
66
- required,
67
- readOnly,
68
- size,
69
- enableInternalError,
70
- enableInternalWarning,
71
- tooltipPosition,
72
- helpAriaLabel,
73
- dayRef,
74
- monthRef,
75
- yearRef,
76
- ...rest
77
- } = _ref;
41
+ const NumeralDate = ({
42
+ dateFormat = ["dd", "mm", "yyyy"],
43
+ defaultValue,
44
+ disabled,
45
+ error = "",
46
+ warning = "",
47
+ "data-component": dataComponent,
48
+ "data-element": dataElement,
49
+ "data-role": dataRole,
50
+ info,
51
+ id,
52
+ name,
53
+ onBlur,
54
+ onChange,
55
+ value,
56
+ validationOnLabel = false,
57
+ label,
58
+ labelInline,
59
+ labelWidth,
60
+ labelAlign,
61
+ labelHelp,
62
+ labelSpacing,
63
+ fieldHelp,
64
+ adaptiveLabelBreakpoint,
65
+ required,
66
+ readOnly,
67
+ size,
68
+ enableInternalError,
69
+ enableInternalWarning,
70
+ tooltipPosition,
71
+ helpAriaLabel,
72
+ dayRef,
73
+ monthRef,
74
+ yearRef,
75
+ ...rest
76
+ }) => {
78
77
  const l = (0, _useLocale.default)();
79
78
  const {
80
79
  validationRedesignOptIn
@@ -24,14 +24,13 @@ const StyledNumeralDate = _styledComponents.default.div`
24
24
  `;
25
25
  exports.StyledNumeralDate = StyledNumeralDate;
26
26
  const StyledDateField = _styledComponents.default.div`
27
- ${_ref => {
28
- let {
29
- isStart,
30
- isYearInput,
31
- isEnd,
32
- hasValidationIcon,
33
- isMiddle
34
- } = _ref;
27
+ ${({
28
+ isStart,
29
+ isYearInput,
30
+ isEnd,
31
+ hasValidationIcon,
32
+ isMiddle
33
+ }) => {
35
34
  const yearInputOrError = isYearInput || isEnd && hasValidationIcon;
36
35
  return (0, _styledComponents.css)`
37
36
  ${_inputPresentation.default} {
@@ -11,16 +11,15 @@ var _useLocale = _interopRequireDefault(require("../../../hooks/__internal__/use
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- const PagerNavigationLink = _ref => {
15
- let {
16
- type,
17
- currentPage,
18
- pageCount,
19
- hideDisabledElements,
20
- pageSize,
21
- onClick,
22
- onPagination
23
- } = _ref;
14
+ const PagerNavigationLink = ({
15
+ type,
16
+ currentPage,
17
+ pageCount,
18
+ hideDisabledElements,
19
+ pageSize,
20
+ onClick,
21
+ onPagination
22
+ }) => {
24
23
  const l = (0, _useLocale.default)();
25
24
  const linkRef = (0, _react.useRef)(null);
26
25
  const navLinkConfig = {