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
@@ -16,24 +16,23 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  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); }
17
17
  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; }
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
- const Form = _ref => {
20
- let {
21
- children,
22
- saveButton,
23
- leftSideButtons,
24
- rightSideButtons,
25
- errorCount,
26
- warningCount,
27
- onSubmit,
28
- buttonAlignment = "right",
29
- stickyFooter,
30
- fieldSpacing = 3,
31
- noValidate = true,
32
- height,
33
- fullWidthButtons = false,
34
- footerPadding = {},
35
- ...rest
36
- } = _ref;
19
+ const Form = ({
20
+ children,
21
+ saveButton,
22
+ leftSideButtons,
23
+ rightSideButtons,
24
+ errorCount,
25
+ warningCount,
26
+ onSubmit,
27
+ buttonAlignment = "right",
28
+ stickyFooter,
29
+ fieldSpacing = 3,
30
+ noValidate = true,
31
+ height,
32
+ fullWidthButtons = false,
33
+ footerPadding = {},
34
+ ...rest
35
+ }) => {
37
36
  const {
38
37
  isInSidebar
39
38
  } = (0, _react.useContext)(_sidebar.SidebarContext);
@@ -15,40 +15,32 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
  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); }
16
16
  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; }
17
17
  const StyledFormContent = _styledComponents.default.div`
18
- ${_ref => {
19
- let {
20
- stickyFooter,
21
- isInModal
22
- } = _ref;
23
- return (0, _styledComponents.css)`
18
+ ${({
19
+ stickyFooter,
20
+ isInModal
21
+ }) => (0, _styledComponents.css)`
24
22
  ${stickyFooter && (0, _styledComponents.css)`
25
23
  overflow-y: ${isInModal ? "auto" : "inherit"};
26
24
  flex: 1;
27
25
  `}
28
- `;
29
- }}
26
+ `}
30
27
  `;
31
28
  exports.StyledFormContent = StyledFormContent;
32
29
  const StyledFormFooter = _styledComponents.default.div`
33
30
  align-items: center;
34
31
  display: flex;
35
32
 
36
- ${_ref2 => {
37
- let {
38
- buttonAlignment
39
- } = _ref2;
40
- return buttonAlignment === "right" && (0, _styledComponents.css)`
33
+ ${({
34
+ buttonAlignment
35
+ }) => buttonAlignment === "right" && (0, _styledComponents.css)`
41
36
  justify-content: flex-end;
42
- `;
43
- }}
37
+ `}
44
38
 
45
- ${_ref3 => {
46
- let {
47
- stickyFooter,
48
- fullWidthButtons,
49
- isInModal
50
- } = _ref3;
51
- return (0, _styledComponents.css)`
39
+ ${({
40
+ stickyFooter,
41
+ fullWidthButtons,
42
+ isInModal
43
+ }) => (0, _styledComponents.css)`
52
44
  ${!stickyFooter && (0, _styledComponents.css)`
53
45
  margin-top: 48px;
54
46
  `}
@@ -70,8 +62,7 @@ const StyledFormFooter = _styledComponents.default.div`
70
62
  flex-direction: column;
71
63
  align-items: stretch;
72
64
  `}
73
- `;
74
- }}
65
+ `}
75
66
 
76
67
  ${_styledSystem.padding}
77
68
  `;
@@ -85,14 +76,11 @@ const HEIGHT_SPACING = 216;
85
76
  const StyledForm = _styledComponents.default.form`
86
77
  ${_styledSystem.space}
87
78
 
88
- ${_ref4 => {
89
- let {
90
- height
91
- } = _ref4;
92
- return height && (0, _styledComponents.css)`
79
+ ${({
80
+ height
81
+ }) => height && (0, _styledComponents.css)`
93
82
  height: ${height};
94
- `;
95
- }}
83
+ `}
96
84
 
97
85
  ${_textarea.default}
98
86
  ${_formField.default} {
@@ -103,13 +91,11 @@ const StyledForm = _styledComponents.default.form`
103
91
  margin-bottom: 0px;
104
92
  }
105
93
 
106
- ${_ref5 => {
107
- let {
108
- stickyFooter,
109
- isInModal,
110
- isInSidebar
111
- } = _ref5;
112
- return stickyFooter && (0, _styledComponents.css)`
94
+ ${({
95
+ stickyFooter,
96
+ isInModal,
97
+ isInSidebar
98
+ }) => stickyFooter && (0, _styledComponents.css)`
113
99
  display: flex;
114
100
  flex-direction: column;
115
101
  position: relative;
@@ -121,24 +107,17 @@ const StyledForm = _styledComponents.default.form`
121
107
  ${isInSidebar && (0, _styledComponents.css)`
122
108
  min-height: 100%;
123
109
  `}
124
- `;
125
- }}
110
+ `}
126
111
  `;
127
112
  exports.StyledForm = StyledForm;
128
113
  const StyledRightButtons = _styledComponents.default.div`
129
114
  display: flex;
130
- ${_ref6 => {
131
- let {
132
- fullWidthButtons
133
- } = _ref6;
134
- return fullWidthButtons ? `margin-left: 0px;` : `margin-left: 16px;`;
135
- }}
136
- ${_ref7 => {
137
- let {
138
- buttonAlignment
139
- } = _ref7;
140
- return buttonAlignment === "left" && "flex-grow: 1";
141
- }};
115
+ ${({
116
+ fullWidthButtons
117
+ }) => fullWidthButtons ? `margin-left: 0px;` : `margin-left: 16px;`}
118
+ ${({
119
+ buttonAlignment
120
+ }) => buttonAlignment === "left" && "flex-grow: 1"};
142
121
 
143
122
  ${_button.default}:last-child {
144
123
  margin-right: 0;
@@ -153,18 +132,12 @@ exports.StyledFullWidthButtons = StyledFullWidthButtons;
153
132
  const StyledLeftButtons = _styledComponents.default.div`
154
133
  display: flex;
155
134
  justify-content: flex-end;
156
- ${_ref8 => {
157
- let {
158
- fullWidthButtons
159
- } = _ref8;
160
- return fullWidthButtons ? `margin-right: 0px;` : `margin-right: 16px;`;
161
- }}
162
- ${_ref9 => {
163
- let {
164
- buttonAlignment
165
- } = _ref9;
166
- return buttonAlignment === "right" && "flex-grow: 1";
167
- }};
135
+ ${({
136
+ fullWidthButtons
137
+ }) => fullWidthButtons ? `margin-right: 0px;` : `margin-right: 16px;`}
138
+ ${({
139
+ buttonAlignment
140
+ }) => buttonAlignment === "right" && "flex-grow: 1"};
168
141
 
169
142
  ${_button.default}:last-child {
170
143
  margin-right: 0;
@@ -31,12 +31,11 @@ const StyledLogo = (0, _styledComponents.default)(_box.default)`
31
31
  margin-left: var(--spacing500);
32
32
  }
33
33
  `;
34
- const GlobalHeader = _ref => {
35
- let {
36
- children,
37
- logo,
38
- ...rest
39
- } = _ref;
34
+ const GlobalHeader = ({
35
+ children,
36
+ logo,
37
+ ...rest
38
+ }) => {
40
39
  return /*#__PURE__*/_react.default.createElement(_navigationBar.default, _extends({
41
40
  isGlobal: true
42
41
  }, rest), logo && /*#__PURE__*/_react.default.createElement(StyledLogo, {
@@ -75,31 +75,28 @@ const StyledGridItem = _styledComponents.default.div`
75
75
  margin: 0;
76
76
  ${_styledSystem.padding}
77
77
 
78
- ${_ref => {
79
- let {
80
- alignSelf,
81
- justifySelf,
82
- gridArea = "auto / 1 / auto / 13",
83
- gridColumn,
84
- gridRow,
85
- responsiveSettings
86
- } = _ref;
87
- return (0, _styledComponents.css)`
78
+ ${({
79
+ alignSelf,
80
+ justifySelf,
81
+ gridArea = "auto / 1 / auto / 13",
82
+ gridColumn,
83
+ gridRow,
84
+ responsiveSettings
85
+ }) => (0, _styledComponents.css)`
88
86
  ${(0, _styledSystem.flexbox)({
89
- alignSelf,
90
- justifySelf
91
- })}
87
+ alignSelf,
88
+ justifySelf
89
+ })}
92
90
  ${(0, _styledSystem.grid)({
93
- gridArea,
94
- gridColumn,
95
- gridRow
96
- })};
91
+ gridArea,
92
+ gridColumn,
93
+ gridRow
94
+ })};
97
95
 
98
96
  ${responsiveSettings && (0, _styledComponents.css)`
99
97
  ${responsiveGridItem(responsiveSettings)};
100
98
  `}
101
- `;
102
- }}
99
+ `}
103
100
  `;
104
101
  var _default = StyledGridItem;
105
102
  exports.default = _default;
@@ -13,10 +13,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
13
13
  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); }
14
14
  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; }
15
15
  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); }
16
- const buildCustomTarget = (_ref, value) => {
17
- let {
18
- target
19
- } = _ref;
16
+ const buildCustomTarget = ({
17
+ target
18
+ }, value) => {
20
19
  const {
21
20
  name,
22
21
  id
@@ -33,17 +32,16 @@ const buildCustomTarget = (_ref, value) => {
33
32
  };
34
33
  let deprecateInputRefWarnTriggered = false;
35
34
  let deprecateUncontrolledWarnTriggered = false;
36
- const GroupedCharacter = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
37
- let {
38
- defaultValue,
39
- groups,
40
- onBlur,
41
- onChange,
42
- separator: rawSeparator,
43
- value: externalValue,
44
- inputRef,
45
- ...rest
46
- } = _ref2;
35
+ const GroupedCharacter = /*#__PURE__*/_react.default.forwardRef(({
36
+ defaultValue,
37
+ groups,
38
+ onBlur,
39
+ onChange,
40
+ separator: rawSeparator,
41
+ value: externalValue,
42
+ inputRef,
43
+ ...rest
44
+ }, ref) => {
47
45
  const [internalValue, setInternalValue] = (0, _react.useState)(defaultValue || "");
48
46
  const isControlled = externalValue !== undefined;
49
47
  const separator = rawSeparator.substring(0, 1); // Ensure max length is 1
@@ -12,23 +12,22 @@ var _heading = require("./heading.style");
12
12
  var _useLocale = _interopRequireDefault(require("../../hooks/__internal__/useLocale"));
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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 Heading = _ref => {
16
- let {
17
- children,
18
- backLink,
19
- divider = true,
20
- help,
21
- helpAriaLabel,
22
- helpLink,
23
- pills,
24
- separator = false,
25
- subheader,
26
- subtitleId,
27
- headingType = "h1",
28
- title,
29
- titleId,
30
- ...rest
31
- } = _ref;
15
+ const Heading = ({
16
+ children,
17
+ backLink,
18
+ divider = true,
19
+ help,
20
+ helpAriaLabel,
21
+ helpLink,
22
+ pills,
23
+ separator = false,
24
+ subheader,
25
+ subtitleId,
26
+ headingType = "h1",
27
+ title,
28
+ titleId,
29
+ ...rest
30
+ }) => {
32
31
  const getHelp = () => {
33
32
  return /*#__PURE__*/_react.default.createElement(_heading.StyledHeaderHelp, {
34
33
  "data-element": "help",
@@ -30,13 +30,11 @@ const StyledHeaderContent = _styledComponents.default.div`
30
30
  `;
31
31
  exports.StyledHeaderContent = StyledHeaderContent;
32
32
  const StyledHeader = _styledComponents.default.div`
33
- ${_ref => {
34
- let {
35
- divider,
36
- subheader,
37
- hasBackLink
38
- } = _ref;
39
- return (0, _styledComponents.css)`
33
+ ${({
34
+ divider,
35
+ subheader,
36
+ hasBackLink
37
+ }) => (0, _styledComponents.css)`
40
38
  ${subheader && (0, _styledComponents.css)`
41
39
  margin-bottom: 16px;
42
40
  `}
@@ -53,8 +51,7 @@ const StyledHeader = _styledComponents.default.div`
53
51
  display: grid;
54
52
  grid-template-columns: min-content auto;
55
53
  `}
56
- `;
57
- }}
54
+ `}
58
55
  `;
59
56
  exports.StyledHeader = StyledHeader;
60
57
  const StyledHeadingBackButton = (0, _styledComponents.default)(_link.default)`
@@ -87,14 +84,11 @@ const StyledHeadingBackButton = (0, _styledComponents.default)(_link.default)`
87
84
  exports.StyledHeadingBackButton = StyledHeadingBackButton;
88
85
  const StyledHeadingTitle = (0, _styledComponents.default)(_typography.default)`
89
86
  line-height: 32px;
90
- ${_ref2 => {
91
- let {
92
- withMargin
93
- } = _ref2;
94
- return withMargin ? (0, _styledComponents.css)`
87
+ ${({
88
+ withMargin
89
+ }) => withMargin ? (0, _styledComponents.css)`
95
90
  margin-right: 16px;
96
- ` : null;
97
- }}
91
+ ` : null}
98
92
  `;
99
93
  exports.StyledHeadingTitle = StyledHeadingTitle;
100
94
  const StyledHeadingPills = _styledComponents.default.span`
@@ -107,24 +101,18 @@ const StyledSubHeader = _styledComponents.default.div`
107
101
  margin-top: 5px;
108
102
  grid-row: 2;
109
103
 
110
- ${_ref3 => {
111
- let {
112
- hasBackLink
113
- } = _ref3;
114
- return hasBackLink && (0, _styledComponents.css)`
104
+ ${({
105
+ hasBackLink
106
+ }) => hasBackLink && (0, _styledComponents.css)`
115
107
  grid-column: 2;
116
- `;
117
- }}
108
+ `}
118
109
 
119
- ${_ref4 => {
120
- let {
121
- hasSeparator
122
- } = _ref4;
123
- return hasSeparator && (0, _styledComponents.css)`
110
+ ${({
111
+ hasSeparator
112
+ }) => hasSeparator && (0, _styledComponents.css)`
124
113
  grid-row: 3;
125
114
  margin-top: 0px;
126
- `;
127
- }}
115
+ `}
128
116
  `;
129
117
  exports.StyledSubHeader = StyledSubHeader;
130
118
  const StyledHeadingIcon = (0, _styledComponents.default)(_icon.default)`
@@ -17,24 +17,23 @@ 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 Help = _ref => {
21
- let {
22
- as,
23
- ariaLabel = "help",
24
- children,
25
- className,
26
- href,
27
- helpId,
28
- isFocused,
29
- tabIndex = 0,
30
- tooltipBgColor,
31
- tooltipFontColor,
32
- tooltipFlipOverrides,
33
- tooltipId,
34
- tooltipPosition = "top",
35
- type = "help",
36
- ...rest
37
- } = _ref;
20
+ const Help = ({
21
+ as,
22
+ ariaLabel = "help",
23
+ children,
24
+ className,
25
+ href,
26
+ helpId,
27
+ isFocused,
28
+ tabIndex = 0,
29
+ tooltipBgColor,
30
+ tooltipFontColor,
31
+ tooltipFlipOverrides,
32
+ tooltipId,
33
+ tooltipPosition = "top",
34
+ type = "help",
35
+ ...rest
36
+ }) => {
38
37
  const defaultTooltipId = (0, _react.useRef)((0, _guid.default)());
39
38
  const helpElement = (0, _react.useRef)(null);
40
39
  const [isTooltipVisible, updateTooltipVisible] = (0, _react.useState)(false);
@@ -28,14 +28,11 @@ const StyledHelp = _styledComponents.default.div`
28
28
  color: var(--colorsUtilityYin065);
29
29
  }
30
30
 
31
- ${_ref => {
32
- let {
33
- href
34
- } = _ref;
35
- return href && (0, _styledComponents.css)`
31
+ ${({
32
+ href
33
+ }) => href && (0, _styledComponents.css)`
36
34
  cursor: pointer;
37
- `;
38
- }}
35
+ `}
39
36
 
40
37
  &:focus ${_icon.default},
41
38
  &:hover ${_icon.default} {
@@ -10,13 +10,12 @@ var _hr = _interopRequireDefault(require("./hr.style"));
10
10
  var _useIsAboveBreakpoint = _interopRequireDefault(require("../../hooks/__internal__/useIsAboveBreakpoint"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  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); }
13
- const Hr = _ref => {
14
- let {
15
- adaptiveMxBreakpoint,
16
- ml,
17
- mr,
18
- ...rest
19
- } = _ref;
13
+ const Hr = ({
14
+ adaptiveMxBreakpoint,
15
+ ml,
16
+ mr,
17
+ ...rest
18
+ }) => {
20
19
  const largeScreen = (0, _useIsAboveBreakpoint.default)(adaptiveMxBreakpoint);
21
20
  let marginLeft = ml;
22
21
  let marginRight = mr;
@@ -10,15 +10,12 @@ var _merge = _interopRequireDefault(require("lodash/merge"));
10
10
  var _i18nContext = _interopRequireDefault(require("../../__internal__/i18n-context"));
11
11
  var _enGb = _interopRequireDefault(require("../../locales/en-gb"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- const I18nProvider = _ref => {
14
- let {
15
- locale,
16
- children
17
- } = _ref;
18
- return locale ? /*#__PURE__*/_react.default.createElement(_i18nContext.default.Provider, {
19
- value: (0, _merge.default)({}, _enGb.default, locale)
20
- }, children) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
21
- };
13
+ const I18nProvider = ({
14
+ locale,
15
+ children
16
+ }) => locale ? /*#__PURE__*/_react.default.createElement(_i18nContext.default.Provider, {
17
+ value: (0, _merge.default)({}, _enGb.default, locale)
18
+ }, children) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
22
19
  exports.I18nProvider = I18nProvider;
23
20
  var _default = I18nProvider;
24
21
  exports.default = _default;
@@ -17,33 +17,32 @@ var _tabTitle = require("../tabs/__internal__/tab-title");
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
  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); }
19
19
  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; }
20
- const Icon = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
21
- let {
22
- "aria-hidden": ariaHidden,
23
- ariaLabel,
24
- bg,
25
- bgShape,
26
- bgSize = "small",
27
- className,
28
- color,
29
- disabled,
30
- focusable = true,
31
- fontSize = "small",
32
- id,
33
- inputSize,
34
- isPartOfInput,
35
- tabIndex,
36
- tooltipMessage,
37
- tooltipPosition,
38
- tooltipVisible,
39
- tooltipBgColor,
40
- tooltipFontColor,
41
- tooltipFlipOverrides,
42
- tooltipId,
43
- type,
44
- role,
45
- ...rest
46
- } = _ref;
20
+ const Icon = /*#__PURE__*/_react.default.forwardRef(({
21
+ "aria-hidden": ariaHidden,
22
+ ariaLabel,
23
+ bg,
24
+ bgShape,
25
+ bgSize = "small",
26
+ className,
27
+ color,
28
+ disabled,
29
+ focusable = true,
30
+ fontSize = "small",
31
+ id,
32
+ inputSize,
33
+ isPartOfInput,
34
+ tabIndex,
35
+ tooltipMessage,
36
+ tooltipPosition,
37
+ tooltipVisible,
38
+ tooltipBgColor,
39
+ tooltipFontColor,
40
+ tooltipFlipOverrides,
41
+ tooltipId,
42
+ type,
43
+ role,
44
+ ...rest
45
+ }, ref) => {
47
46
  const flipBehaviourCheck = Array.isArray(tooltipFlipOverrides) && tooltipFlipOverrides.every(override => _iconConfig.ICON_TOOLTIP_POSITIONS.includes(override));
48
47
  if (tooltipFlipOverrides) {
49
48
  !flipBehaviourCheck ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, `The tooltipFlipOverrides prop supplied to \`Icon\` must be an array containing some or all of ["top", "bottom", "left", "right"].`) : (0, _invariant.default)(false) : void 0;
@@ -23,19 +23,18 @@ function adjustIconBgSize(fontSize, bgSize) {
23
23
  return bgSize ? _iconConfig.default.backgroundSize[bgSize] : undefined;
24
24
  }
25
25
  const StyledIcon = _styledComponents.default.span`
26
- ${_ref => {
27
- let {
28
- theme,
29
- color,
30
- bg,
31
- isInteractive,
32
- bgSize,
33
- bgShape,
34
- type,
35
- fontSize,
36
- disabled,
37
- hasTooltip
38
- } = _ref;
26
+ ${({
27
+ theme,
28
+ color,
29
+ bg,
30
+ isInteractive,
31
+ bgSize,
32
+ bgShape,
33
+ type,
34
+ fontSize,
35
+ disabled,
36
+ hasTooltip
37
+ }) => {
39
38
  let finalColor;
40
39
  let finalHoverColor;
41
40
  let bgColor;