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
@@ -75,32 +75,31 @@ const verticalBorderColor = colorTheme => {
75
75
  }
76
76
  };
77
77
  const StyledFlatTableRow = _styledComponents.default.tr`
78
- ${_ref => {
79
- let {
80
- bgColor,
81
- horizontalBorderColor,
82
- horizontalBorderSize,
83
- stickyOffset,
84
- isRowInteractive,
85
- isFirstColumnInteractive,
86
- lhsRowHeaderIndex,
87
- rhsRowHeaderIndex,
88
- totalChildren,
89
- firstCellIndex,
90
- colorTheme,
91
- expandable,
92
- selected,
93
- highlighted,
94
- isExpanded,
95
- isInSidebar,
96
- isSubRow,
97
- isFirstSubRow,
98
- size,
99
- theme,
100
- applyBorderLeft,
101
- isDragging,
102
- draggable
103
- } = _ref;
78
+ ${({
79
+ bgColor,
80
+ horizontalBorderColor,
81
+ horizontalBorderSize,
82
+ stickyOffset,
83
+ isRowInteractive,
84
+ isFirstColumnInteractive,
85
+ lhsRowHeaderIndex,
86
+ rhsRowHeaderIndex,
87
+ totalChildren,
88
+ firstCellIndex,
89
+ colorTheme,
90
+ expandable,
91
+ selected,
92
+ highlighted,
93
+ isExpanded,
94
+ isInSidebar,
95
+ isSubRow,
96
+ isFirstSubRow,
97
+ size,
98
+ theme,
99
+ applyBorderLeft,
100
+ isDragging,
101
+ draggable
102
+ }) => {
104
103
  const backgroundColor = bgColor ? (0, _color.toColor)(theme, bgColor) : undefined;
105
104
  const customBorderColor = horizontalBorderColor ? (0, _color.toColor)(theme, horizontalBorderColor) : undefined;
106
105
  const colorOfSelected = isInSidebar ? "var(--colorsUtilityMajor150)" : "var(--colorsUtilityMajor075)";
@@ -14,25 +14,24 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
14
14
  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); }
15
15
  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; }
16
16
  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); }
17
- const FlatTableRowHeader = _ref => {
18
- let {
19
- align = "left",
20
- children,
21
- width,
22
- py,
23
- px,
24
- expandable = false,
25
- onClick,
26
- onKeyDown,
27
- leftPosition,
28
- rightPosition,
29
- truncate,
30
- title,
31
- stickyAlignment = "left",
32
- colspan,
33
- rowspan,
34
- ...rest
35
- } = _ref;
17
+ const FlatTableRowHeader = ({
18
+ align = "left",
19
+ children,
20
+ width,
21
+ py,
22
+ px,
23
+ expandable = false,
24
+ onClick,
25
+ onKeyDown,
26
+ leftPosition,
27
+ rightPosition,
28
+ truncate,
29
+ title,
30
+ stickyAlignment = "left",
31
+ colspan,
32
+ rowspan,
33
+ ...rest
34
+ }) => {
36
35
  const id = (0, _react.useRef)((0, _guid.default)());
37
36
  const [tabIndex, setTabIndex] = (0, _react.useState)(-1);
38
37
  const {
@@ -17,20 +17,18 @@ const verticalBorderSizes = {
17
17
  large: "4px"
18
18
  };
19
19
  const StyledFlatTableRowHeader = _styledComponents.default.th`
20
- ${_ref => {
21
- let {
22
- align,
23
- theme,
24
- width,
25
- leftPosition,
26
- rightPosition,
27
- truncate,
28
- expandable,
29
- verticalBorder,
30
- verticalBorderColor,
31
- stickyAlignment
32
- } = _ref;
33
- return (0, _styledComponents.css)`
20
+ ${({
21
+ align,
22
+ theme,
23
+ width,
24
+ leftPosition,
25
+ rightPosition,
26
+ truncate,
27
+ expandable,
28
+ verticalBorder,
29
+ verticalBorderColor,
30
+ stickyAlignment
31
+ }) => (0, _styledComponents.css)`
34
32
  background-color: var(--colorsUtilityYang100);
35
33
  border: 1px solid var(--colorsUtilityMajor100);
36
34
  border-top: none;
@@ -84,23 +82,19 @@ const StyledFlatTableRowHeader = _styledComponents.default.th`
84
82
  ${expandable && (0, _styledComponents.css)`
85
83
  white-space: nowrap;
86
84
  `}
87
- `;
88
- }}
85
+ `}
89
86
  `;
90
87
  exports.StyledFlatTableRowHeader = StyledFlatTableRowHeader;
91
88
  StyledFlatTableRowHeader.defaultProps = {
92
89
  theme: _base.default
93
90
  };
94
91
  const StyledFlatTableRowHeaderContent = _styledComponents.default.div`
95
- ${_ref2 => {
96
- let {
97
- expandable
98
- } = _ref2;
99
- return expandable && (0, _styledComponents.css)`
92
+ ${({
93
+ expandable
94
+ }) => expandable && (0, _styledComponents.css)`
100
95
  display: flex;
101
96
  align-items: center;
102
97
  line-height: 1em;
103
- `;
104
- }}
98
+ `}
105
99
  `;
106
100
  exports.StyledFlatTableRowHeaderContent = StyledFlatTableRowHeaderContent;
@@ -18,24 +18,23 @@ const FlatTableThemeContext = /*#__PURE__*/_react.default.createContext({
18
18
  });
19
19
  exports.FlatTableThemeContext = FlatTableThemeContext;
20
20
  const FOCUSABLE_ROW_AND_CELL_QUERY = "tbody tr, tbody tr td, tbody tr th";
21
- const FlatTable = _ref => {
22
- let {
23
- caption,
24
- children,
25
- hasStickyHead,
26
- colorTheme = "dark",
27
- footer,
28
- hasStickyFooter = false,
29
- height,
30
- isZebra,
31
- size = "medium",
32
- hasMaxHeight = false,
33
- ariaDescribedby,
34
- minHeight,
35
- overflowX,
36
- width,
37
- ...rest
38
- } = _ref;
21
+ const FlatTable = ({
22
+ caption,
23
+ children,
24
+ hasStickyHead,
25
+ colorTheme = "dark",
26
+ footer,
27
+ hasStickyFooter = false,
28
+ height,
29
+ isZebra,
30
+ size = "medium",
31
+ hasMaxHeight = false,
32
+ ariaDescribedby,
33
+ minHeight,
34
+ overflowX,
35
+ width,
36
+ ...rest
37
+ }) => {
39
38
  const wrapperRef = (0, _react.useRef)(null);
40
39
  const tableRef = (0, _react.useRef)(null);
41
40
  const [hasVerticalScrollbar, setHasVerticalScrollbar] = (0, _react.useState)(false);
@@ -22,17 +22,14 @@ const HEADER_OVERLAY_INCREMENT = 3;
22
22
  const STICKY_FOOTER_OVERLAY_INCREMENT = 1;
23
23
  const ROW_HEADER_OVERLAY_INCREMENT = 5;
24
24
  const StyledTableContainer = _styledComponents.default.div`
25
- ${_ref => {
26
- let {
27
- width,
28
- overflowX
29
- } = _ref;
30
- return width && (0, _styledComponents.css)`
25
+ ${({
26
+ width,
27
+ overflowX
28
+ }) => width && (0, _styledComponents.css)`
31
29
  width: ${width};
32
30
 
33
31
  ${overflowX && `overflow-x: ${overflowX};`}
34
- `;
35
- }}
32
+ `}
36
33
  `;
37
34
  exports.StyledTableContainer = StyledTableContainer;
38
35
  const StyledFlatTable = _styledComponents.default.table`
@@ -46,11 +43,9 @@ const StyledFlatTable = _styledComponents.default.table`
46
43
  border-top-right-radius: var(--borderRadius100);
47
44
  }
48
45
 
49
- ${_ref2 => {
50
- let {
51
- caption
52
- } = _ref2;
53
- return caption && (0, _styledComponents.css)`
46
+ ${({
47
+ caption
48
+ }) => caption && (0, _styledComponents.css)`
54
49
  caption {
55
50
  clip: rect(1px, 1px, 1px, 1px);
56
51
  height: 1px;
@@ -59,13 +54,11 @@ const StyledFlatTable = _styledComponents.default.table`
59
54
  position: absolute;
60
55
  top: -99999px;
61
56
  }
62
- `;
63
- }}
57
+ `}
64
58
 
65
- ${_ref3 => {
66
- let {
67
- size
68
- } = _ref3;
59
+ ${({
60
+ size
61
+ }) => {
69
62
  const {
70
63
  height,
71
64
  fontSize,
@@ -87,11 +80,9 @@ const StyledFlatTable = _styledComponents.default.table`
87
80
  `;
88
81
  }}
89
82
 
90
- ${_ref4 => {
91
- let {
92
- isZebra
93
- } = _ref4;
94
- return isZebra && (0, _styledComponents.css)`
83
+ ${({
84
+ isZebra
85
+ }) => isZebra && (0, _styledComponents.css)`
95
86
  ${_flatTableRow.default}:nth-child(2n) {
96
87
  ${_flatTableRowHeader.StyledFlatTableRowHeader},
97
88
  ${_flatTableCell.StyledFlatTableCell},
@@ -106,29 +97,23 @@ const StyledFlatTable = _styledComponents.default.table`
106
97
  background-color: var(--colorsUtilityMajor025);
107
98
  }
108
99
  }
109
- `;
110
- }}
100
+ `}
111
101
  `;
112
102
  exports.StyledFlatTable = StyledFlatTable;
113
103
  const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
114
104
  border-top-left-radius: var(--borderRadius100);
115
105
  border-top-right-radius: var(--borderRadius100);
116
- ${_ref5 => {
117
- let {
118
- hasStickyFooter,
119
- hasHorizontalScrollbar
120
- } = _ref5;
121
- return !hasStickyFooter && !hasHorizontalScrollbar && (0, _styledComponents.css)`
106
+ ${({
107
+ hasStickyFooter,
108
+ hasHorizontalScrollbar
109
+ }) => !hasStickyFooter && !hasHorizontalScrollbar && (0, _styledComponents.css)`
122
110
  border-bottom-left-radius: var(--borderRadius100);
123
111
  border-bottom-right-radius: var(--borderRadius100);
124
- `;
125
- }}
112
+ `}
126
113
 
127
- ${_ref6 => {
128
- let {
129
- isInSidebar
130
- } = _ref6;
131
- return (0, _styledComponents.css)`
114
+ ${({
115
+ isInSidebar
116
+ }) => (0, _styledComponents.css)`
132
117
  box-sizing: border-box;
133
118
 
134
119
  :focus {
@@ -144,13 +129,11 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
144
129
  }
145
130
 
146
131
  ${isInSidebar ? "min-width: fit-content" : `box-shadow: inset 0px 0px 0px 1px var(--colorsUtilityMajor100)`};
147
- `;
148
- }}
132
+ `}
149
133
 
150
- ${_ref7 => {
151
- let {
152
- colorTheme
153
- } = _ref7;
134
+ ${({
135
+ colorTheme
136
+ }) => {
154
137
  switch (colorTheme) {
155
138
  case "light":
156
139
  return (0, _styledComponents.css)`
@@ -219,11 +202,9 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
219
202
  }
220
203
  }}
221
204
 
222
- ${_ref8 => {
223
- let {
224
- isInSidebar
225
- } = _ref8;
226
- return isInSidebar && (0, _styledComponents.css)`
205
+ ${({
206
+ isInSidebar
207
+ }) => isInSidebar && (0, _styledComponents.css)`
227
208
  ${_flatTableHead.default} {
228
209
  background-color: var(--colorsUtilityMajor040);
229
210
  }
@@ -234,33 +215,26 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
234
215
  color: var(--colorsUtilityYin090);
235
216
  border-bottom-color: var(--colorsUtilityMajor100);
236
217
  }
237
- `;
238
- }}
218
+ `}
239
219
 
240
- ${_ref9 => {
241
- let {
242
- hasStickyHead,
243
- theme
244
- } = _ref9;
245
- return hasStickyHead && (0, _styledComponents.css)`
220
+ ${({
221
+ hasStickyHead,
222
+ theme
223
+ }) => hasStickyHead && (0, _styledComponents.css)`
246
224
  ${_flatTableHead.default} {
247
225
  position: sticky;
248
226
  top: 0;
249
227
  left: 0;
250
228
  z-index: ${theme.zIndex.overlay + ROW_HEADER_OVERLAY_INCREMENT};
251
229
  }
252
- `;
253
- }}
230
+ `}
254
231
 
255
232
  ${_flatTableHead.default} ${_flatTableRowHeader.StyledFlatTableRowHeader},
256
233
  ${_flatTableHeader.default}.isSticky,
257
234
  ${_flatTableHead.default} ${_flatTableCheckbox.default}.isSticky {
258
- z-index: ${_ref10 => {
259
- let {
260
- theme
261
- } = _ref10;
262
- return theme.zIndex.overlay + ROW_HEADER_OVERLAY_INCREMENT;
263
- }};
235
+ z-index: ${({
236
+ theme
237
+ }) => theme.zIndex.overlay + ROW_HEADER_OVERLAY_INCREMENT};
264
238
  }
265
239
 
266
240
  thead ${_flatTableHeader.default}.isSticky, ${_flatTableCheckbox.default}.isSticky {
@@ -268,12 +242,9 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
268
242
  }
269
243
 
270
244
  ${_flatTableHeader.default}, ${_flatTableCheckbox.default} {
271
- z-index: ${_ref11 => {
272
- let {
273
- theme
274
- } = _ref11;
275
- return theme.zIndex.overlay + HEADER_OVERLAY_INCREMENT;
276
- }};
245
+ z-index: ${({
246
+ theme
247
+ }) => theme.zIndex.overlay + HEADER_OVERLAY_INCREMENT};
277
248
  }
278
249
 
279
250
  thead {
@@ -281,16 +252,13 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
281
252
  th:first-of-type {
282
253
  border-top-left-radius: var(--borderRadius100);
283
254
  }
284
- ${_ref12 => {
285
- let {
286
- hasVerticalScrollbar
287
- } = _ref12;
288
- return !hasVerticalScrollbar && (0, _styledComponents.css)`
255
+ ${({
256
+ hasVerticalScrollbar
257
+ }) => !hasVerticalScrollbar && (0, _styledComponents.css)`
289
258
  th:last-of-type {
290
259
  border-top-right-radius: var(--borderRadius100);
291
260
  }
292
- `;
293
- }}
261
+ `}
294
262
  }
295
263
  }
296
264
 
@@ -299,36 +267,28 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
299
267
  ${_flatTableCell.StyledFlatTableCell}.isSticky,
300
268
  tbody
301
269
  ${_flatTableCheckbox.default}.isSticky {
302
- z-index: ${_ref13 => {
303
- let {
304
- theme
305
- } = _ref13;
306
- return theme.zIndex.overlay;
307
- }};
270
+ z-index: ${({
271
+ theme
272
+ }) => theme.zIndex.overlay};
308
273
  }
309
274
 
310
- ${_ref14 => {
311
- let {
312
- footer
313
- } = _ref14;
314
- return footer && (0, _styledComponents.css)`
275
+ ${({
276
+ footer
277
+ }) => footer && (0, _styledComponents.css)`
315
278
  tr:last-child:focus {
316
279
  :after {
317
280
  border-bottom-left-radius: var(--borderRadius000);
318
281
  border-bottom-right-radius: var(--borderRadius000);
319
282
  }
320
- `;
321
- }}
283
+ `}
322
284
 
323
- ${_ref15 => {
324
- let {
325
- footer,
326
- firstColRowSpanIndex,
327
- lastColRowSpanIndex,
328
- hasHorizontalScrollbar,
329
- hasVerticalScrollbar
330
- } = _ref15;
331
- return !footer && (0, _styledComponents.css)`
285
+ ${({
286
+ footer,
287
+ firstColRowSpanIndex,
288
+ lastColRowSpanIndex,
289
+ hasHorizontalScrollbar,
290
+ hasVerticalScrollbar
291
+ }) => !footer && (0, _styledComponents.css)`
332
292
  tbody {
333
293
  ${firstColRowSpanIndex >= 0 && (0, _styledComponents.css)`
334
294
  ${_flatTableRow.default}:nth-of-type(${firstColRowSpanIndex + 1}) {
@@ -363,20 +323,17 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
363
323
  `}
364
324
  }
365
325
  }
366
- `;
367
- }}
326
+ `}
368
327
  `;
369
328
  exports.StyledFlatTableWrapper = StyledFlatTableWrapper;
370
329
  StyledFlatTableWrapper.defaultProps = {
371
330
  theme: _themes.baseTheme
372
331
  };
373
332
  const StyledFlatTableFooter = _styledComponents.default.div`
374
- ${_ref16 => {
375
- let {
376
- hasStickyFooter,
377
- theme
378
- } = _ref16;
379
- return hasStickyFooter && (0, _styledComponents.css)`
333
+ ${({
334
+ hasStickyFooter,
335
+ theme
336
+ }) => hasStickyFooter && (0, _styledComponents.css)`
380
337
  position: sticky;
381
338
  bottom: 0px;
382
339
  z-index: ${theme.zIndex.overlay + STICKY_FOOTER_OVERLAY_INCREMENT};
@@ -385,8 +342,7 @@ const StyledFlatTableFooter = _styledComponents.default.div`
385
342
  border-bottom-left-radius: var(--borderRadius000);
386
343
  border-bottom-right-radius: var(--borderRadius000);
387
344
  }
388
- `;
389
- }}
345
+ `}
390
346
  `;
391
347
  exports.StyledFlatTableFooter = StyledFlatTableFooter;
392
348
  StyledFlatTableFooter.defaultProps = {
@@ -13,12 +13,11 @@ var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
14
  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); }
15
15
  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; }
16
- const Sort = _ref => {
17
- let {
18
- children,
19
- onClick,
20
- sortType
21
- } = _ref;
16
+ const Sort = ({
17
+ children,
18
+ onClick,
19
+ sortType
20
+ }) => {
22
21
  const id = (0, _react.useRef)((0, _guid.default)());
23
22
  const onKeyDown = e => {
24
23
  if (_events.default.isEnterOrSpaceKey(e)) {
@@ -13,12 +13,11 @@ 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 Summary = _ref => {
17
- let {
18
- type,
19
- errorCount = 0,
20
- warningCount = 0
21
- } = _ref;
16
+ const Summary = ({
17
+ type,
18
+ errorCount = 0,
19
+ warningCount = 0
20
+ }) => {
22
21
  const l = (0, _useLocale.default)();
23
22
  const messages = {
24
23
  errorCount,
@@ -36,11 +35,10 @@ const Summary = _ref => {
36
35
  return null;
37
36
  };
38
37
  exports.Summary = Summary;
39
- const FormSummary = _ref2 => {
40
- let {
41
- fullWidth,
42
- ...props
43
- } = _ref2;
38
+ const FormSummary = ({
39
+ fullWidth,
40
+ ...props
41
+ }) => {
44
42
  return /*#__PURE__*/_react.default.createElement(_formSummary.StyledFormSummary, {
45
43
  showSummary: !!(props.errorCount || props.warningCount),
46
44
  "data-element": "form-summary",
@@ -19,26 +19,20 @@ const StyledFormSummary = _styledComponents.default.div`
19
19
  padding: 8px;
20
20
  white-space: nowrap;
21
21
 
22
- ${_ref => {
23
- let {
24
- fullWidth
25
- } = _ref;
26
- return fullWidth && (0, _styledComponents.css)`
22
+ ${({
23
+ fullWidth
24
+ }) => fullWidth && (0, _styledComponents.css)`
27
25
  display: flex;
28
26
  flex-wrap: wrap;
29
27
  width: 100%;
30
28
  justify-content: flex-start;
31
- `;
32
- }}
29
+ `}
33
30
 
34
- ${_ref2 => {
35
- let {
36
- showSummary
37
- } = _ref2;
38
- return showSummary && (0, _styledComponents.css)`
31
+ ${({
32
+ showSummary
33
+ }) => showSummary && (0, _styledComponents.css)`
39
34
  background-color: var(--colorsUtilityMajor025);
40
- `;
41
- }}
35
+ `}
42
36
  ${_button.default} {
43
37
  margin-right: 0;
44
38
  }
@@ -58,41 +52,29 @@ const StyledInternalSummary = _styledComponents.default.div`
58
52
  &:last-of-type {
59
53
  margin-right: 16px;
60
54
  }
61
- ${_ref3 => {
62
- let {
63
- type
64
- } = _ref3;
65
- return type === "warning" && (0, _styledComponents.css)`
55
+ ${({
56
+ type
57
+ }) => type === "warning" && (0, _styledComponents.css)`
66
58
  color: var(--colorsSemanticCaution650);
67
- `;
68
- }}
69
- ${_ref4 => {
70
- let {
71
- type
72
- } = _ref4;
73
- return type === "error" && (0, _styledComponents.css)`
59
+ `}
60
+ ${({
61
+ type
62
+ }) => type === "error" && (0, _styledComponents.css)`
74
63
  color: var(--colorsSemanticNegative600);
75
- `;
76
- }}
64
+ `}
77
65
 
78
66
  ${_icon.default} {
79
67
  margin-right: 4px;
80
- ${_ref5 => {
81
- let {
82
- type
83
- } = _ref5;
84
- return type === "warning" && (0, _styledComponents.css)`
68
+ ${({
69
+ type
70
+ }) => type === "warning" && (0, _styledComponents.css)`
85
71
  color: var(--colorsSemanticCaution650);
86
- `;
87
- }}
88
- ${_ref6 => {
89
- let {
90
- type
91
- } = _ref6;
92
- return type === "error" && (0, _styledComponents.css)`
72
+ `}
73
+ ${({
74
+ type
75
+ }) => type === "error" && (0, _styledComponents.css)`
93
76
  color: var(--colorsSemanticNegative600);
94
- `;
95
- }}
77
+ `}
96
78
  }
97
79
  `;
98
80
  exports.StyledInternalSummary = StyledInternalSummary;