carbon-react 151.0.0 → 151.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/esm/__internal__/character-count/character-count.component.js +0 -1
  2. package/esm/__internal__/checkable-input/checkable-input.component.js +0 -419
  3. package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +0 -353
  4. package/esm/__internal__/field-help/field-help.component.js +0 -1
  5. package/esm/__internal__/fieldset/fieldset.component.js +0 -1
  6. package/esm/__internal__/focus-trap/focus-trap.component.js +0 -1
  7. package/esm/__internal__/form-field/form-field.component.js +0 -1
  8. package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.js +0 -1
  9. package/esm/__internal__/full-screen-heading/full-screen-heading.component.js +0 -7
  10. package/esm/__internal__/hint-text/hint-text.component.js +0 -1
  11. package/esm/__internal__/input/input-presentation.component.js +0 -20
  12. package/esm/__internal__/input/input.component.js +0 -410
  13. package/esm/__internal__/input-behaviour/input-behaviour.component.js +0 -1
  14. package/esm/__internal__/input-behaviour/input-group-behaviour.component.js +0 -1
  15. package/esm/__internal__/input-icon-toggle/input-icon-toggle.component.js +0 -1
  16. package/esm/__internal__/label/label.component.js +0 -1
  17. package/esm/__internal__/popover/popover.component.js +0 -1
  18. package/esm/__internal__/radio-button-mapper/radio-button-mapper.component.js +0 -1
  19. package/esm/__internal__/sticky-footer/sticky-footer.component.js +0 -1
  20. package/esm/__internal__/validation-message/validation-message.component.js +0 -1
  21. package/esm/__internal__/validations/validation-icon.component.js +0 -1
  22. package/esm/components/accordion/accordion-group/accordion-group.component.js +0 -1
  23. package/esm/components/accordion/accordion.component.js +1 -647
  24. package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +0 -1
  25. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +0 -23
  26. package/esm/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +0 -1
  27. package/esm/components/action-popover/action-popover.component.js +1 -175
  28. package/esm/components/advanced-color-picker/advanced-color-picker.component.js +0 -1
  29. package/esm/components/alert/alert.component.js +0 -1
  30. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +0 -20
  31. package/esm/components/anchor-navigation/anchor-navigation.component.js +0 -9
  32. package/esm/components/badge/badge.component.js +0 -1
  33. package/esm/components/batch-selection/batch-selection.component.js +0 -1
  34. package/esm/components/box/box.component.js +1 -3788
  35. package/esm/components/breadcrumbs/breadcrumbs.component.js +1 -319
  36. package/esm/components/breadcrumbs/crumb/crumb.component.js +0 -68
  37. package/esm/components/button/button.component.js +0 -343
  38. package/esm/components/button-bar/button-bar.component.js +0 -1
  39. package/esm/components/button-minor/button-minor.component.js +1 -345
  40. package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.js +0 -1
  41. package/esm/components/button-toggle/button-toggle-icon.component.js +0 -1
  42. package/esm/components/button-toggle/button-toggle.component.js +0 -1
  43. package/esm/components/carbon-provider/__internal__/top-modal-provider.component.js +0 -1
  44. package/esm/components/carbon-provider/carbon-provider.component.js +0 -1
  45. package/esm/components/card/card-column/card-column.component.js +0 -1
  46. package/esm/components/card/card-footer/card-footer.component.js +0 -1
  47. package/esm/components/card/card-row/card-row.component.js +0 -1
  48. package/esm/components/card/card.component.js +0 -1
  49. package/esm/components/checkbox/checkbox-group/checkbox-group.component.js +0 -1
  50. package/esm/components/checkbox/checkbox-svg.component.js +0 -1
  51. package/esm/components/checkbox/checkbox.component.js +1 -579
  52. package/esm/components/confirm/confirm.component.js +0 -1
  53. package/esm/components/content/content.component.js +0 -1
  54. package/esm/components/date/__internal__/date-picker/date-picker.component.js +0 -1
  55. package/esm/components/date/__internal__/navbar/navbar.component.js +0 -1
  56. package/esm/components/date/__internal__/weekday/weekday.component.js +0 -1
  57. package/esm/components/date/date.component.js +12 -591
  58. package/esm/components/date-range/date-range.component.js +0 -1
  59. package/esm/components/decimal/decimal.component.js +1 -593
  60. package/esm/components/definition-list/dd/dd.component.js +0 -1
  61. package/esm/components/definition-list/dl.component.js +0 -1
  62. package/esm/components/definition-list/dt/dt.component.js +0 -1
  63. package/esm/components/detail/detail.component.js +0 -1
  64. package/esm/components/dialog/dialog.component.js +1 -69
  65. package/esm/components/dialog-full-screen/dialog-full-screen.component.js +0 -1
  66. package/esm/components/dismissible-box/dismissible-box.component.js +0 -1
  67. package/esm/components/draggable/__internal__/drop-target.component.js +0 -1
  68. package/esm/components/draggable/draggable-container.component.js +0 -164
  69. package/esm/components/draggable/draggable-item/draggable-item.component.js +0 -166
  70. package/esm/components/drawer/drawer.component.js +0 -1
  71. package/esm/components/duelling-picklist/duelling-picklist.component.js +0 -1
  72. package/esm/components/duelling-picklist/picklist/picklist.component.js +0 -1
  73. package/esm/components/duelling-picklist/picklist-divider/picklist-divider.component.js +0 -1
  74. package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +1 -14
  75. package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +1 -18
  76. package/esm/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +0 -1
  77. package/esm/components/fieldset/fieldset.component.js +0 -1
  78. package/esm/components/file-input/__internal__/file-upload-status/file-upload-status.component.js +0 -1
  79. package/esm/components/file-input/file-input.component.js +1 -194
  80. package/esm/components/flat-table/flat-table-body/flat-table-body.component.js +1 -10
  81. package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +0 -1
  82. package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.js +0 -1
  83. package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +0 -1
  84. package/esm/components/flat-table/flat-table-head/flat-table-head.component.js +0 -1
  85. package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +0 -1
  86. package/esm/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +1 -15
  87. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +1 -24
  88. package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +0 -1
  89. package/esm/components/flat-table/flat-table.component.js +0 -1
  90. package/esm/components/flat-table/sort/sort.component.js +0 -1
  91. package/esm/components/form/__internal__/form-summary.component.js +0 -1
  92. package/esm/components/form/form.component.js +0 -1
  93. package/esm/components/form/required-fields-indicator/required-fields-indicator.component.js +0 -1
  94. package/esm/components/global-header/global-header.component.js +0 -1
  95. package/esm/components/grid/grid-container/grid-container.component.js +0 -1
  96. package/esm/components/grid/grid-item/grid-item.component.js +0 -1
  97. package/esm/components/grouped-character/grouped-character.component.js +1 -594
  98. package/esm/components/heading/heading.component.js +0 -1
  99. package/esm/components/help/help.component.js +1 -176
  100. package/esm/components/hr/hr.component.js +1 -166
  101. package/esm/components/i18n-provider/i18n-provider.component.js +0 -1
  102. package/esm/components/icon/icon.component.js +0 -184
  103. package/esm/components/icon-button/icon-button.component.js +0 -324
  104. package/esm/components/image/image.component.js +0 -1
  105. package/esm/components/inline-inputs/inline-inputs.component.js +0 -1
  106. package/esm/components/link/link.component.js +1 -81
  107. package/esm/components/link-preview/__internal__/placeholder.component.js +0 -1
  108. package/esm/components/link-preview/link-preview.component.js +0 -1
  109. package/esm/components/loader/loader.component.js +0 -1
  110. package/esm/components/loader-bar/loader-bar.component.js +0 -1
  111. package/esm/components/loader-spinner/loader-spinner.component.js +0 -1
  112. package/esm/components/loader-star/internal/star.component.js +0 -7
  113. package/esm/components/loader-star/loader-star.component.js +0 -8
  114. package/esm/components/menu/__internal__/submenu/submenu.component.js +0 -122
  115. package/esm/components/menu/menu-divider/menu-divider.component.js +0 -8
  116. package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +0 -1
  117. package/esm/components/menu/menu-item/menu-item.component.js +0 -1
  118. package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +0 -11
  119. package/esm/components/menu/menu.component.js +0 -1
  120. package/esm/components/menu/scrollable-block/scrollable-block.component.js +0 -1
  121. package/esm/components/message/__internal__/message-content/message-content.component.js +0 -1
  122. package/esm/components/message/__internal__/type-icon/type-icon.component.js +0 -1
  123. package/esm/components/message/message.component.js +1 -173
  124. package/esm/components/modal/modal.component.js +0 -1
  125. package/esm/components/multi-action-button/multi-action-button.component.js +1 -646
  126. package/esm/components/navigation-bar/navigation-bar.component.js +1 -1284
  127. package/esm/components/note/__internal__/status-icon/status-icon.component.js +0 -7
  128. package/esm/components/note/note.component.js +0 -1
  129. package/esm/components/number/number.component.js +1 -593
  130. package/esm/components/numeral-date/numeral-date.component.js +0 -1
  131. package/esm/components/pager/__internal__/pager-navigation-link.component.js +0 -1
  132. package/esm/components/pager/__internal__/pager-navigation.component.js +0 -1
  133. package/esm/components/pager/pager.component.js +0 -1
  134. package/esm/components/pages/page/page.component.js +0 -1
  135. package/esm/components/pages/pages.component.js +0 -1
  136. package/esm/components/password/password.component.js +0 -1
  137. package/esm/components/pill/pill.component.js +0 -1
  138. package/esm/components/pod/pod.component.js +0 -178
  139. package/esm/components/popover-container/popover-container.component.js +1 -182
  140. package/esm/components/portrait/portrait.component.js +0 -1
  141. package/esm/components/preview/preview.component.js +0 -1
  142. package/esm/components/profile/profile.component.js +0 -1
  143. package/esm/components/progress-tracker/progress-tracker.component.js +0 -1
  144. package/esm/components/radio-button/radio-button-group/radio-button-group.component.js +0 -1
  145. package/esm/components/radio-button/radio-button-svg.component.js +0 -1
  146. package/esm/components/radio-button/radio-button.component.js +1 -577
  147. package/esm/components/search/search.component.js +1 -185
  148. package/esm/components/select/__internal__/list-action-button/list-action-button.component.js +0 -7
  149. package/esm/components/select/__internal__/select-list/select-list.component.js +0 -34
  150. package/esm/components/select/__internal__/select-textbox/select-textbox.component.js +0 -596
  151. package/esm/components/select/filterable-select/filterable-select.component.js +1 -611
  152. package/esm/components/select/multi-select/multi-select.component.js +1 -609
  153. package/esm/components/select/option/option.component.js +0 -457
  154. package/esm/components/select/option-group-header/option-group-header.component.js +0 -12
  155. package/esm/components/select/option-row/option-row.component.js +0 -16
  156. package/esm/components/select/simple-select/simple-select.component.js +1 -608
  157. package/esm/components/settings-row/settings-row.component.js +0 -1
  158. package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +0 -1
  159. package/esm/components/sidebar/sidebar.component.js +1 -455
  160. package/esm/components/simple-color-picker/simple-color/simple-color.component.js +1 -17
  161. package/esm/components/simple-color-picker/simple-color-picker.component.js +1 -177
  162. package/esm/components/split-button/split-button.component.js +1 -547
  163. package/esm/components/step-flow/step-flow-title/step-flow-title.component.js +0 -1
  164. package/esm/components/step-flow/step-flow.component.js +1 -174
  165. package/esm/components/step-sequence/step-sequence-item/step-sequence-item.component.js +0 -1
  166. package/esm/components/step-sequence/step-sequence.component.js +0 -1
  167. package/esm/components/switch/__internal__/switch-slider.component.js +0 -1
  168. package/esm/components/switch/switch.component.js +1 -580
  169. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +0 -33
  170. package/esm/components/tabs/__internal__/tabs-header/tabs-header.component.js +0 -1
  171. package/esm/components/tabs/tab/tab.component.js +0 -1
  172. package/esm/components/tabs/tabs.component.js +0 -1
  173. package/esm/components/text-editor/__internal__/plugins/AutoLinker/auto-link.component.js +0 -1
  174. package/esm/components/text-editor/__internal__/plugins/CharacterCounter/__test__/character-counter.component.js +0 -1
  175. package/esm/components/text-editor/__internal__/plugins/CharacterCounter/character-counter.component.js +0 -1
  176. package/esm/components/text-editor/__internal__/plugins/ContentEditor/content-editor.component.js +0 -1
  177. package/esm/components/text-editor/__internal__/plugins/LinkPreviewer/link-previewer.component.js +0 -1
  178. package/esm/components/text-editor/__internal__/plugins/Placeholder/placeholder.component.js +0 -1
  179. package/esm/components/text-editor/__internal__/plugins/Toolbar/buttons/bold.component.js +0 -1
  180. package/esm/components/text-editor/__internal__/plugins/Toolbar/buttons/italic.component.js +0 -1
  181. package/esm/components/text-editor/__internal__/plugins/Toolbar/buttons/list.component.js +0 -1
  182. package/esm/components/text-editor/__internal__/plugins/Toolbar/buttons/save.component.js +0 -1
  183. package/esm/components/text-editor/__internal__/plugins/Toolbar/toolbar.component.js +0 -1
  184. package/esm/components/text-editor/__internal__/read-only-rte.component.js +0 -1
  185. package/esm/components/text-editor/text-editor.component.js +0 -1
  186. package/esm/components/textarea/textarea.component.js +1 -587
  187. package/esm/components/textbox/textbox.component.js +1 -593
  188. package/esm/components/tile/flex-tile-cell/flex-tile-cell.component.js +1 -3788
  189. package/esm/components/tile/flex-tile-container/flex-tile-container.component.js +1 -110
  190. package/esm/components/tile/flex-tile-divider/flex-tile-divider.component.js +0 -1
  191. package/esm/components/tile/tile-content/tile-content.component.js +0 -1
  192. package/esm/components/tile/tile-footer/tile-footer.component.js +0 -1
  193. package/esm/components/tile/tile-header/tile-header.component.js +0 -1
  194. package/esm/components/tile/tile.component.js +0 -1
  195. package/esm/components/tile-select/__internal__/accordion/accordion.component.js +0 -1
  196. package/esm/components/tile-select/tile-select-group/tile-select-group.component.js +0 -1
  197. package/esm/components/tile-select/tile-select.component.js +0 -182
  198. package/esm/components/time/__internal__/time-toggle/time-toggle.component.js +0 -1
  199. package/esm/components/time/time.component.js +0 -212
  200. package/esm/components/toast/toast.component.js +1 -24
  201. package/esm/components/tooltip/tooltip.component.js +1 -28
  202. package/esm/components/typography/list.component.js +0 -1
  203. package/esm/components/typography/typography.component.js +0 -1
  204. package/esm/components/vertical-divider/vertical-divider.component.js +1 -322
  205. package/esm/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +0 -1
  206. package/esm/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js +0 -1
  207. package/esm/components/vertical-menu/vertical-menu-trigger/vertical-menu-trigger.component.js +0 -1
  208. package/esm/components/vertical-menu/vertical-menu.component.js +0 -1
  209. package/lib/__internal__/character-count/character-count.component.js +0 -1
  210. package/lib/__internal__/checkable-input/checkable-input.component.js +0 -419
  211. package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +0 -353
  212. package/lib/__internal__/field-help/field-help.component.js +0 -1
  213. package/lib/__internal__/fieldset/fieldset.component.js +0 -1
  214. package/lib/__internal__/focus-trap/focus-trap.component.js +0 -1
  215. package/lib/__internal__/form-field/form-field.component.js +0 -1
  216. package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +0 -1
  217. package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +0 -7
  218. package/lib/__internal__/hint-text/hint-text.component.js +0 -1
  219. package/lib/__internal__/input/input-presentation.component.js +0 -20
  220. package/lib/__internal__/input/input.component.js +0 -410
  221. package/lib/__internal__/input-behaviour/input-behaviour.component.js +0 -1
  222. package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +0 -1
  223. package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.js +0 -1
  224. package/lib/__internal__/label/label.component.js +0 -1
  225. package/lib/__internal__/popover/popover.component.js +0 -1
  226. package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +0 -2
  227. package/lib/__internal__/sticky-footer/sticky-footer.component.js +0 -1
  228. package/lib/__internal__/validation-message/validation-message.component.js +0 -1
  229. package/lib/__internal__/validations/validation-icon.component.js +0 -1
  230. package/lib/components/accordion/accordion-group/accordion-group.component.js +0 -1
  231. package/lib/components/accordion/accordion.component.js +0 -645
  232. package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +0 -1
  233. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +0 -23
  234. package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +0 -1
  235. package/lib/components/action-popover/action-popover.component.js +0 -173
  236. package/lib/components/advanced-color-picker/advanced-color-picker.component.js +0 -1
  237. package/lib/components/alert/alert.component.js +0 -1
  238. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +0 -20
  239. package/lib/components/anchor-navigation/anchor-navigation.component.js +0 -9
  240. package/lib/components/badge/badge.component.js +0 -2
  241. package/lib/components/batch-selection/batch-selection.component.js +0 -1
  242. package/lib/components/box/box.component.js +0 -3786
  243. package/lib/components/breadcrumbs/breadcrumbs.component.js +0 -317
  244. package/lib/components/breadcrumbs/crumb/crumb.component.js +0 -68
  245. package/lib/components/button/button.component.js +0 -343
  246. package/lib/components/button-bar/button-bar.component.js +0 -1
  247. package/lib/components/button-minor/button-minor.component.js +0 -343
  248. package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +0 -1
  249. package/lib/components/button-toggle/button-toggle-icon.component.js +0 -1
  250. package/lib/components/button-toggle/button-toggle.component.js +0 -1
  251. package/lib/components/carbon-provider/__internal__/top-modal-provider.component.js +0 -1
  252. package/lib/components/carbon-provider/carbon-provider.component.js +0 -1
  253. package/lib/components/card/card-column/card-column.component.js +0 -1
  254. package/lib/components/card/card-footer/card-footer.component.js +0 -1
  255. package/lib/components/card/card-row/card-row.component.js +0 -1
  256. package/lib/components/card/card.component.js +0 -1
  257. package/lib/components/checkbox/checkbox-group/checkbox-group.component.js +0 -1
  258. package/lib/components/checkbox/checkbox-svg.component.js +0 -1
  259. package/lib/components/checkbox/checkbox.component.js +0 -577
  260. package/lib/components/confirm/confirm.component.js +0 -1
  261. package/lib/components/content/content.component.js +0 -1
  262. package/lib/components/date/__internal__/date-picker/date-picker.component.js +0 -1
  263. package/lib/components/date/__internal__/navbar/navbar.component.js +0 -1
  264. package/lib/components/date/__internal__/weekday/weekday.component.js +0 -1
  265. package/lib/components/date/date.component.js +11 -589
  266. package/lib/components/date-range/date-range.component.js +0 -1
  267. package/lib/components/decimal/decimal.component.js +0 -591
  268. package/lib/components/definition-list/dd/dd.component.js +0 -1
  269. package/lib/components/definition-list/dl.component.js +0 -1
  270. package/lib/components/definition-list/dt/dt.component.js +0 -1
  271. package/lib/components/detail/detail.component.js +0 -1
  272. package/lib/components/dialog/dialog.component.js +0 -67
  273. package/lib/components/dialog-full-screen/dialog-full-screen.component.js +0 -1
  274. package/lib/components/dismissible-box/dismissible-box.component.js +0 -1
  275. package/lib/components/draggable/__internal__/drop-target.component.js +0 -1
  276. package/lib/components/draggable/draggable-container.component.js +0 -164
  277. package/lib/components/draggable/draggable-item/draggable-item.component.js +0 -166
  278. package/lib/components/drawer/drawer.component.js +0 -1
  279. package/lib/components/duelling-picklist/duelling-picklist.component.js +0 -1
  280. package/lib/components/duelling-picklist/picklist/picklist.component.js +0 -1
  281. package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.js +0 -1
  282. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +0 -12
  283. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +0 -16
  284. package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +0 -1
  285. package/lib/components/fieldset/fieldset.component.js +0 -1
  286. package/lib/components/file-input/__internal__/file-upload-status/file-upload-status.component.js +0 -1
  287. package/lib/components/file-input/file-input.component.js +0 -192
  288. package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +0 -8
  289. package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +0 -1
  290. package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +0 -1
  291. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +0 -1
  292. package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +0 -1
  293. package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +0 -1
  294. package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +0 -13
  295. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +0 -22
  296. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +0 -1
  297. package/lib/components/flat-table/flat-table.component.js +0 -1
  298. package/lib/components/flat-table/sort/sort.component.js +0 -1
  299. package/lib/components/form/__internal__/form-summary.component.js +0 -1
  300. package/lib/components/form/form.component.js +0 -1
  301. package/lib/components/form/required-fields-indicator/required-fields-indicator.component.js +0 -1
  302. package/lib/components/global-header/global-header.component.js +0 -1
  303. package/lib/components/grid/grid-container/grid-container.component.js +0 -1
  304. package/lib/components/grid/grid-item/grid-item.component.js +0 -1
  305. package/lib/components/grouped-character/grouped-character.component.js +0 -592
  306. package/lib/components/heading/heading.component.js +0 -1
  307. package/lib/components/help/help.component.js +0 -174
  308. package/lib/components/hr/hr.component.js +0 -164
  309. package/lib/components/i18n-provider/i18n-provider.component.js +0 -1
  310. package/lib/components/icon/icon.component.js +0 -184
  311. package/lib/components/icon-button/icon-button.component.js +0 -324
  312. package/lib/components/image/image.component.js +0 -1
  313. package/lib/components/inline-inputs/inline-inputs.component.js +0 -1
  314. package/lib/components/link/link.component.js +0 -79
  315. package/lib/components/link-preview/__internal__/placeholder.component.js +0 -1
  316. package/lib/components/link-preview/link-preview.component.js +0 -1
  317. package/lib/components/loader/loader.component.js +0 -1
  318. package/lib/components/loader-bar/loader-bar.component.js +0 -1
  319. package/lib/components/loader-spinner/loader-spinner.component.js +0 -1
  320. package/lib/components/loader-star/internal/star.component.js +0 -7
  321. package/lib/components/loader-star/loader-star.component.js +0 -8
  322. package/lib/components/menu/__internal__/submenu/submenu.component.js +0 -122
  323. package/lib/components/menu/menu-divider/menu-divider.component.js +0 -8
  324. package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +0 -1
  325. package/lib/components/menu/menu-item/menu-item.component.js +0 -1
  326. package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +0 -11
  327. package/lib/components/menu/menu.component.js +0 -1
  328. package/lib/components/menu/scrollable-block/scrollable-block.component.js +0 -1
  329. package/lib/components/message/__internal__/message-content/message-content.component.js +0 -1
  330. package/lib/components/message/__internal__/type-icon/type-icon.component.js +0 -1
  331. package/lib/components/message/message.component.js +0 -171
  332. package/lib/components/modal/modal.component.js +0 -1
  333. package/lib/components/multi-action-button/multi-action-button.component.js +0 -644
  334. package/lib/components/navigation-bar/navigation-bar.component.js +0 -1282
  335. package/lib/components/note/__internal__/status-icon/status-icon.component.js +0 -7
  336. package/lib/components/note/note.component.js +0 -1
  337. package/lib/components/number/number.component.js +0 -591
  338. package/lib/components/numeral-date/numeral-date.component.js +0 -1
  339. package/lib/components/pager/__internal__/pager-navigation-link.component.js +0 -1
  340. package/lib/components/pager/__internal__/pager-navigation.component.js +0 -1
  341. package/lib/components/pager/pager.component.js +0 -1
  342. package/lib/components/pages/page/page.component.js +0 -1
  343. package/lib/components/pages/pages.component.js +0 -1
  344. package/lib/components/password/password.component.js +0 -1
  345. package/lib/components/pill/pill.component.js +0 -1
  346. package/lib/components/pod/pod.component.js +0 -178
  347. package/lib/components/popover-container/popover-container.component.js +0 -180
  348. package/lib/components/portrait/portrait.component.js +0 -1
  349. package/lib/components/preview/preview.component.js +0 -1
  350. package/lib/components/profile/profile.component.js +0 -1
  351. package/lib/components/progress-tracker/progress-tracker.component.js +0 -1
  352. package/lib/components/radio-button/radio-button-group/radio-button-group.component.js +0 -1
  353. package/lib/components/radio-button/radio-button-svg.component.js +0 -1
  354. package/lib/components/radio-button/radio-button.component.js +0 -575
  355. package/lib/components/search/search.component.js +0 -183
  356. package/lib/components/select/__internal__/list-action-button/list-action-button.component.js +0 -7
  357. package/lib/components/select/__internal__/select-list/select-list.component.js +0 -34
  358. package/lib/components/select/__internal__/select-textbox/select-textbox.component.js +0 -596
  359. package/lib/components/select/filterable-select/filterable-select.component.js +0 -609
  360. package/lib/components/select/multi-select/multi-select.component.js +0 -607
  361. package/lib/components/select/option/option.component.js +0 -457
  362. package/lib/components/select/option-group-header/option-group-header.component.js +0 -12
  363. package/lib/components/select/option-row/option-row.component.js +0 -16
  364. package/lib/components/select/simple-select/simple-select.component.js +0 -606
  365. package/lib/components/settings-row/settings-row.component.js +0 -1
  366. package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +0 -1
  367. package/lib/components/sidebar/sidebar.component.js +0 -453
  368. package/lib/components/simple-color-picker/simple-color/simple-color.component.js +0 -15
  369. package/lib/components/simple-color-picker/simple-color-picker.component.js +0 -175
  370. package/lib/components/split-button/split-button.component.js +0 -545
  371. package/lib/components/step-flow/step-flow-title/step-flow-title.component.js +0 -1
  372. package/lib/components/step-flow/step-flow.component.js +0 -172
  373. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +0 -1
  374. package/lib/components/step-sequence/step-sequence.component.js +0 -1
  375. package/lib/components/switch/__internal__/switch-slider.component.js +0 -1
  376. package/lib/components/switch/switch.component.js +0 -578
  377. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +0 -33
  378. package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.js +0 -1
  379. package/lib/components/tabs/tab/tab.component.js +0 -1
  380. package/lib/components/tabs/tabs.component.js +0 -1
  381. package/lib/components/text-editor/__internal__/plugins/AutoLinker/auto-link.component.js +0 -1
  382. package/lib/components/text-editor/__internal__/plugins/CharacterCounter/__test__/character-counter.component.js +0 -2
  383. package/lib/components/text-editor/__internal__/plugins/CharacterCounter/character-counter.component.js +0 -1
  384. package/lib/components/text-editor/__internal__/plugins/ContentEditor/content-editor.component.js +0 -1
  385. package/lib/components/text-editor/__internal__/plugins/LinkPreviewer/link-previewer.component.js +0 -1
  386. package/lib/components/text-editor/__internal__/plugins/Placeholder/placeholder.component.js +0 -1
  387. package/lib/components/text-editor/__internal__/plugins/Toolbar/buttons/bold.component.js +0 -1
  388. package/lib/components/text-editor/__internal__/plugins/Toolbar/buttons/italic.component.js +0 -1
  389. package/lib/components/text-editor/__internal__/plugins/Toolbar/buttons/list.component.js +0 -1
  390. package/lib/components/text-editor/__internal__/plugins/Toolbar/buttons/save.component.js +0 -1
  391. package/lib/components/text-editor/__internal__/plugins/Toolbar/toolbar.component.js +0 -1
  392. package/lib/components/text-editor/__internal__/read-only-rte.component.js +0 -2
  393. package/lib/components/text-editor/text-editor.component.js +0 -1
  394. package/lib/components/textarea/textarea.component.js +0 -585
  395. package/lib/components/textbox/textbox.component.js +0 -591
  396. package/lib/components/tile/flex-tile-cell/flex-tile-cell.component.js +0 -3786
  397. package/lib/components/tile/flex-tile-container/flex-tile-container.component.js +0 -108
  398. package/lib/components/tile/flex-tile-divider/flex-tile-divider.component.js +0 -1
  399. package/lib/components/tile/tile-content/tile-content.component.js +0 -1
  400. package/lib/components/tile/tile-footer/tile-footer.component.js +0 -1
  401. package/lib/components/tile/tile-header/tile-header.component.js +0 -1
  402. package/lib/components/tile/tile.component.js +0 -1
  403. package/lib/components/tile-select/__internal__/accordion/accordion.component.js +0 -1
  404. package/lib/components/tile-select/tile-select-group/tile-select-group.component.js +0 -1
  405. package/lib/components/tile-select/tile-select.component.js +0 -182
  406. package/lib/components/time/__internal__/time-toggle/time-toggle.component.js +0 -1
  407. package/lib/components/time/time.component.js +0 -212
  408. package/lib/components/toast/toast.component.js +0 -22
  409. package/lib/components/tooltip/tooltip.component.js +0 -26
  410. package/lib/components/typography/list.component.js +0 -1
  411. package/lib/components/typography/typography.component.js +0 -1
  412. package/lib/components/vertical-divider/vertical-divider.component.js +0 -320
  413. package/lib/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +0 -1
  414. package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js +0 -1
  415. package/lib/components/vertical-menu/vertical-menu-trigger/vertical-menu-trigger.component.js +0 -1
  416. package/lib/components/vertical-menu/vertical-menu.component.js +0 -1
  417. package/package.json +1 -3
@@ -1,6 +1,5 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useState, useCallback, useContext, useRef } from "react";
3
- import PropTypes from "prop-types";
4
3
  import Box from "../box";
5
4
  import CheckableInput from "../../__internal__/checkable-input";
6
5
  import Label from "../../__internal__/label";
@@ -15,7 +14,7 @@ import SwitchSlider from "./__internal__/switch-slider.component";
15
14
  import guid from "../../__internal__/utils/helpers/guid";
16
15
  import HintText from "../../__internal__/hint-text";
17
16
  let deprecateUncontrolledWarnTriggered = false;
18
- const Switch = /*#__PURE__*/React.forwardRef(({
17
+ export const Switch = /*#__PURE__*/React.forwardRef(({
19
18
  autoFocus,
20
19
  id,
21
20
  label,
@@ -240,583 +239,5 @@ const Switch = /*#__PURE__*/React.forwardRef(({
240
239
  color: isDarkBackground ? "var(--colorsUtilityYang100)" : "var(--colorsUtilityYin090)"
241
240
  }, rest.fieldHelp));
242
241
  });
243
- if (process.env.NODE_ENV !== "production") {
244
- Switch.propTypes = {
245
- "about": PropTypes.string,
246
- "accept": PropTypes.string,
247
- "accessKey": PropTypes.string,
248
- "adaptiveLabelBreakpoint": PropTypes.number,
249
- "alt": PropTypes.string,
250
- "aria-activedescendant": PropTypes.string,
251
- "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
252
- "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
253
- "aria-braillelabel": PropTypes.string,
254
- "aria-brailleroledescription": PropTypes.string,
255
- "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
256
- "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
257
- "aria-colcount": PropTypes.number,
258
- "aria-colindex": PropTypes.number,
259
- "aria-colindextext": PropTypes.string,
260
- "aria-colspan": PropTypes.number,
261
- "aria-controls": PropTypes.string,
262
- "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
263
- "aria-describedby": PropTypes.string,
264
- "aria-description": PropTypes.string,
265
- "aria-details": PropTypes.string,
266
- "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
267
- "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
268
- "aria-errormessage": PropTypes.string,
269
- "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
270
- "aria-flowto": PropTypes.string,
271
- "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
272
- "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
273
- "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
274
- "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
275
- "aria-keyshortcuts": PropTypes.string,
276
- "aria-label": PropTypes.string,
277
- "aria-labelledby": PropTypes.string,
278
- "aria-level": PropTypes.number,
279
- "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
280
- "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
281
- "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
282
- "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
283
- "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
284
- "aria-owns": PropTypes.string,
285
- "aria-placeholder": PropTypes.string,
286
- "aria-posinset": PropTypes.number,
287
- "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
288
- "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
289
- "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
290
- "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
291
- "aria-roledescription": PropTypes.string,
292
- "aria-rowcount": PropTypes.number,
293
- "aria-rowindex": PropTypes.number,
294
- "aria-rowindextext": PropTypes.string,
295
- "aria-rowspan": PropTypes.number,
296
- "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
297
- "aria-setsize": PropTypes.number,
298
- "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
299
- "aria-valuemax": PropTypes.number,
300
- "aria-valuemin": PropTypes.number,
301
- "aria-valuenow": PropTypes.number,
302
- "aria-valuetext": PropTypes.string,
303
- "ariaDescribedBy": PropTypes.string,
304
- "ariaLabelledBy": PropTypes.string,
305
- "autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
306
- "__@iterator": PropTypes.func.isRequired,
307
- "anchor": PropTypes.func.isRequired,
308
- "at": PropTypes.func.isRequired,
309
- "big": PropTypes.func.isRequired,
310
- "blink": PropTypes.func.isRequired,
311
- "bold": PropTypes.func.isRequired,
312
- "charAt": PropTypes.func.isRequired,
313
- "charCodeAt": PropTypes.func.isRequired,
314
- "codePointAt": PropTypes.func.isRequired,
315
- "concat": PropTypes.func.isRequired,
316
- "endsWith": PropTypes.func.isRequired,
317
- "fixed": PropTypes.func.isRequired,
318
- "fontcolor": PropTypes.func.isRequired,
319
- "fontsize": PropTypes.func.isRequired,
320
- "includes": PropTypes.func.isRequired,
321
- "indexOf": PropTypes.func.isRequired,
322
- "italics": PropTypes.func.isRequired,
323
- "lastIndexOf": PropTypes.func.isRequired,
324
- "length": PropTypes.number.isRequired,
325
- "link": PropTypes.func.isRequired,
326
- "localeCompare": PropTypes.func.isRequired,
327
- "match": PropTypes.func.isRequired,
328
- "matchAll": PropTypes.func.isRequired,
329
- "normalize": PropTypes.func.isRequired,
330
- "padEnd": PropTypes.func.isRequired,
331
- "padStart": PropTypes.func.isRequired,
332
- "repeat": PropTypes.func.isRequired,
333
- "replace": PropTypes.func.isRequired,
334
- "search": PropTypes.func.isRequired,
335
- "slice": PropTypes.func.isRequired,
336
- "small": PropTypes.func.isRequired,
337
- "split": PropTypes.func.isRequired,
338
- "startsWith": PropTypes.func.isRequired,
339
- "strike": PropTypes.func.isRequired,
340
- "sub": PropTypes.func.isRequired,
341
- "substr": PropTypes.func.isRequired,
342
- "substring": PropTypes.func.isRequired,
343
- "sup": PropTypes.func.isRequired,
344
- "toLocaleLowerCase": PropTypes.func.isRequired,
345
- "toLocaleUpperCase": PropTypes.func.isRequired,
346
- "toLowerCase": PropTypes.func.isRequired,
347
- "toString": PropTypes.func.isRequired,
348
- "toUpperCase": PropTypes.func.isRequired,
349
- "trim": PropTypes.func.isRequired,
350
- "trimEnd": PropTypes.func.isRequired,
351
- "trimLeft": PropTypes.func.isRequired,
352
- "trimRight": PropTypes.func.isRequired,
353
- "trimStart": PropTypes.func.isRequired,
354
- "valueOf": PropTypes.func.isRequired
355
- })]),
356
- "autoComplete": PropTypes.any,
357
- "autoCorrect": PropTypes.string,
358
- "autoFocus": PropTypes.bool,
359
- "autoSave": PropTypes.string,
360
- "capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
361
- "checked": PropTypes.bool,
362
- "children": PropTypes.node,
363
- "className": PropTypes.string,
364
- "color": PropTypes.string,
365
- "content": PropTypes.string,
366
- "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "plaintext-only", "true"]), PropTypes.bool]),
367
- "contextMenu": PropTypes.string,
368
- "dangerouslySetInnerHTML": PropTypes.shape({
369
- "__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
370
- }),
371
- "data-element": PropTypes.string,
372
- "data-role": PropTypes.string,
373
- "datatype": PropTypes.string,
374
- "defaultChecked": PropTypes.bool,
375
- "defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
376
- "dir": PropTypes.string,
377
- "disabled": PropTypes.bool,
378
- "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
379
- "enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
380
- "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
381
- "fieldHelp": PropTypes.node,
382
- "fieldHelpInline": PropTypes.bool,
383
- "form": PropTypes.string,
384
- "formAction": PropTypes.string,
385
- "formEncType": PropTypes.string,
386
- "formMethod": PropTypes.string,
387
- "formNoValidate": PropTypes.bool,
388
- "formTarget": PropTypes.string,
389
- "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
390
- "helpAriaLabel": PropTypes.string,
391
- "hidden": PropTypes.bool,
392
- "id": PropTypes.string,
393
- "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
394
- "inlist": PropTypes.any,
395
- "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
396
- "inputWidth": PropTypes.number,
397
- "is": PropTypes.string,
398
- "isDarkBackground": PropTypes.bool,
399
- "isOptional": PropTypes.bool,
400
- "itemID": PropTypes.string,
401
- "itemProp": PropTypes.string,
402
- "itemRef": PropTypes.string,
403
- "itemScope": PropTypes.bool,
404
- "itemType": PropTypes.string,
405
- "label": PropTypes.node,
406
- "labelHelp": PropTypes.node,
407
- "labelInline": PropTypes.bool,
408
- "labelSpacing": PropTypes.oneOf([1, 2]),
409
- "labelWidth": PropTypes.number,
410
- "lang": PropTypes.string,
411
- "list": PropTypes.string,
412
- "loading": PropTypes.bool,
413
- "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
414
- "__@toStringTag": PropTypes.string.isRequired,
415
- "description": PropTypes.string,
416
- "toString": PropTypes.func.isRequired,
417
- "valueOf": PropTypes.func.isRequired
418
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
419
- "__@toStringTag": PropTypes.string.isRequired,
420
- "description": PropTypes.string,
421
- "toString": PropTypes.func.isRequired,
422
- "valueOf": PropTypes.func.isRequired
423
- }), PropTypes.string]),
424
- "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
425
- "__@toStringTag": PropTypes.string.isRequired,
426
- "description": PropTypes.string,
427
- "toString": PropTypes.func.isRequired,
428
- "valueOf": PropTypes.func.isRequired
429
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
430
- "__@toStringTag": PropTypes.string.isRequired,
431
- "description": PropTypes.string,
432
- "toString": PropTypes.func.isRequired,
433
- "valueOf": PropTypes.func.isRequired
434
- }), PropTypes.string]),
435
- "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
436
- "__@toStringTag": PropTypes.string.isRequired,
437
- "description": PropTypes.string,
438
- "toString": PropTypes.func.isRequired,
439
- "valueOf": PropTypes.func.isRequired
440
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
441
- "__@toStringTag": PropTypes.string.isRequired,
442
- "description": PropTypes.string,
443
- "toString": PropTypes.func.isRequired,
444
- "valueOf": PropTypes.func.isRequired
445
- }), PropTypes.string]),
446
- "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
447
- "__@toStringTag": PropTypes.string.isRequired,
448
- "description": PropTypes.string,
449
- "toString": PropTypes.func.isRequired,
450
- "valueOf": PropTypes.func.isRequired
451
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
452
- "__@toStringTag": PropTypes.string.isRequired,
453
- "description": PropTypes.string,
454
- "toString": PropTypes.func.isRequired,
455
- "valueOf": PropTypes.func.isRequired
456
- }), PropTypes.string]),
457
- "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
458
- "__@toStringTag": PropTypes.string.isRequired,
459
- "description": PropTypes.string,
460
- "toString": PropTypes.func.isRequired,
461
- "valueOf": PropTypes.func.isRequired
462
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
463
- "__@toStringTag": PropTypes.string.isRequired,
464
- "description": PropTypes.string,
465
- "toString": PropTypes.func.isRequired,
466
- "valueOf": PropTypes.func.isRequired
467
- }), PropTypes.string]),
468
- "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
469
- "__@toStringTag": PropTypes.string.isRequired,
470
- "description": PropTypes.string,
471
- "toString": PropTypes.func.isRequired,
472
- "valueOf": PropTypes.func.isRequired
473
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
474
- "__@toStringTag": PropTypes.string.isRequired,
475
- "description": PropTypes.string,
476
- "toString": PropTypes.func.isRequired,
477
- "valueOf": PropTypes.func.isRequired
478
- }), PropTypes.string]),
479
- "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
480
- "__@toStringTag": PropTypes.string.isRequired,
481
- "description": PropTypes.string,
482
- "toString": PropTypes.func.isRequired,
483
- "valueOf": PropTypes.func.isRequired
484
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
485
- "__@toStringTag": PropTypes.string.isRequired,
486
- "description": PropTypes.string,
487
- "toString": PropTypes.func.isRequired,
488
- "valueOf": PropTypes.func.isRequired
489
- }), PropTypes.string]),
490
- "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
491
- "__@toStringTag": PropTypes.string.isRequired,
492
- "description": PropTypes.string,
493
- "toString": PropTypes.func.isRequired,
494
- "valueOf": PropTypes.func.isRequired
495
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
496
- "__@toStringTag": PropTypes.string.isRequired,
497
- "description": PropTypes.string,
498
- "toString": PropTypes.func.isRequired,
499
- "valueOf": PropTypes.func.isRequired
500
- }), PropTypes.string]),
501
- "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
502
- "maxLength": PropTypes.number,
503
- "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
504
- "__@toStringTag": PropTypes.string.isRequired,
505
- "description": PropTypes.string,
506
- "toString": PropTypes.func.isRequired,
507
- "valueOf": PropTypes.func.isRequired
508
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
509
- "__@toStringTag": PropTypes.string.isRequired,
510
- "description": PropTypes.string,
511
- "toString": PropTypes.func.isRequired,
512
- "valueOf": PropTypes.func.isRequired
513
- }), PropTypes.string]),
514
- "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
515
- "minLength": PropTypes.number,
516
- "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
517
- "__@toStringTag": PropTypes.string.isRequired,
518
- "description": PropTypes.string,
519
- "toString": PropTypes.func.isRequired,
520
- "valueOf": PropTypes.func.isRequired
521
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
522
- "__@toStringTag": PropTypes.string.isRequired,
523
- "description": PropTypes.string,
524
- "toString": PropTypes.func.isRequired,
525
- "valueOf": PropTypes.func.isRequired
526
- }), PropTypes.string]),
527
- "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
528
- "__@toStringTag": PropTypes.string.isRequired,
529
- "description": PropTypes.string,
530
- "toString": PropTypes.func.isRequired,
531
- "valueOf": PropTypes.func.isRequired
532
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
533
- "__@toStringTag": PropTypes.string.isRequired,
534
- "description": PropTypes.string,
535
- "toString": PropTypes.func.isRequired,
536
- "valueOf": PropTypes.func.isRequired
537
- }), PropTypes.string]),
538
- "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
539
- "__@toStringTag": PropTypes.string.isRequired,
540
- "description": PropTypes.string,
541
- "toString": PropTypes.func.isRequired,
542
- "valueOf": PropTypes.func.isRequired
543
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
544
- "__@toStringTag": PropTypes.string.isRequired,
545
- "description": PropTypes.string,
546
- "toString": PropTypes.func.isRequired,
547
- "valueOf": PropTypes.func.isRequired
548
- }), PropTypes.string]),
549
- "multiple": PropTypes.bool,
550
- "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
551
- "__@toStringTag": PropTypes.string.isRequired,
552
- "description": PropTypes.string,
553
- "toString": PropTypes.func.isRequired,
554
- "valueOf": PropTypes.func.isRequired
555
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
556
- "__@toStringTag": PropTypes.string.isRequired,
557
- "description": PropTypes.string,
558
- "toString": PropTypes.func.isRequired,
559
- "valueOf": PropTypes.func.isRequired
560
- }), PropTypes.string]),
561
- "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
562
- "__@toStringTag": PropTypes.string.isRequired,
563
- "description": PropTypes.string,
564
- "toString": PropTypes.func.isRequired,
565
- "valueOf": PropTypes.func.isRequired
566
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
567
- "__@toStringTag": PropTypes.string.isRequired,
568
- "description": PropTypes.string,
569
- "toString": PropTypes.func.isRequired,
570
- "valueOf": PropTypes.func.isRequired
571
- }), PropTypes.string]),
572
- "name": PropTypes.string,
573
- "nonce": PropTypes.string,
574
- "onAbort": PropTypes.func,
575
- "onAbortCapture": PropTypes.func,
576
- "onAnimationEnd": PropTypes.func,
577
- "onAnimationEndCapture": PropTypes.func,
578
- "onAnimationIteration": PropTypes.func,
579
- "onAnimationIterationCapture": PropTypes.func,
580
- "onAnimationStart": PropTypes.func,
581
- "onAnimationStartCapture": PropTypes.func,
582
- "onAuxClick": PropTypes.func,
583
- "onAuxClickCapture": PropTypes.func,
584
- "onBeforeInput": PropTypes.func,
585
- "onBeforeInputCapture": PropTypes.func,
586
- "onBlur": PropTypes.func,
587
- "onBlurCapture": PropTypes.func,
588
- "onCanPlay": PropTypes.func,
589
- "onCanPlayCapture": PropTypes.func,
590
- "onCanPlayThrough": PropTypes.func,
591
- "onCanPlayThroughCapture": PropTypes.func,
592
- "onChange": PropTypes.func,
593
- "onChangeCapture": PropTypes.func,
594
- "onClick": PropTypes.func,
595
- "onClickCapture": PropTypes.func,
596
- "onCompositionEnd": PropTypes.func,
597
- "onCompositionEndCapture": PropTypes.func,
598
- "onCompositionStart": PropTypes.func,
599
- "onCompositionStartCapture": PropTypes.func,
600
- "onCompositionUpdate": PropTypes.func,
601
- "onCompositionUpdateCapture": PropTypes.func,
602
- "onContextMenu": PropTypes.func,
603
- "onContextMenuCapture": PropTypes.func,
604
- "onCopy": PropTypes.func,
605
- "onCopyCapture": PropTypes.func,
606
- "onCut": PropTypes.func,
607
- "onCutCapture": PropTypes.func,
608
- "onDoubleClick": PropTypes.func,
609
- "onDoubleClickCapture": PropTypes.func,
610
- "onDrag": PropTypes.func,
611
- "onDragCapture": PropTypes.func,
612
- "onDragEnd": PropTypes.func,
613
- "onDragEndCapture": PropTypes.func,
614
- "onDragEnter": PropTypes.func,
615
- "onDragEnterCapture": PropTypes.func,
616
- "onDragExit": PropTypes.func,
617
- "onDragExitCapture": PropTypes.func,
618
- "onDragLeave": PropTypes.func,
619
- "onDragLeaveCapture": PropTypes.func,
620
- "onDragOver": PropTypes.func,
621
- "onDragOverCapture": PropTypes.func,
622
- "onDragStart": PropTypes.func,
623
- "onDragStartCapture": PropTypes.func,
624
- "onDrop": PropTypes.func,
625
- "onDropCapture": PropTypes.func,
626
- "onDurationChange": PropTypes.func,
627
- "onDurationChangeCapture": PropTypes.func,
628
- "onEmptied": PropTypes.func,
629
- "onEmptiedCapture": PropTypes.func,
630
- "onEncrypted": PropTypes.func,
631
- "onEncryptedCapture": PropTypes.func,
632
- "onEnded": PropTypes.func,
633
- "onEndedCapture": PropTypes.func,
634
- "onError": PropTypes.func,
635
- "onErrorCapture": PropTypes.func,
636
- "onFocus": PropTypes.func,
637
- "onFocusCapture": PropTypes.func,
638
- "onGotPointerCapture": PropTypes.func,
639
- "onGotPointerCaptureCapture": PropTypes.func,
640
- "onInput": PropTypes.func,
641
- "onInputCapture": PropTypes.func,
642
- "onInvalid": PropTypes.func,
643
- "onInvalidCapture": PropTypes.func,
644
- "onKeyDown": PropTypes.func,
645
- "onKeyDownCapture": PropTypes.func,
646
- "onKeyPress": PropTypes.func,
647
- "onKeyPressCapture": PropTypes.func,
648
- "onKeyUp": PropTypes.func,
649
- "onKeyUpCapture": PropTypes.func,
650
- "onLoad": PropTypes.func,
651
- "onLoadCapture": PropTypes.func,
652
- "onLoadedData": PropTypes.func,
653
- "onLoadedDataCapture": PropTypes.func,
654
- "onLoadedMetadata": PropTypes.func,
655
- "onLoadedMetadataCapture": PropTypes.func,
656
- "onLoadStart": PropTypes.func,
657
- "onLoadStartCapture": PropTypes.func,
658
- "onLostPointerCapture": PropTypes.func,
659
- "onLostPointerCaptureCapture": PropTypes.func,
660
- "onMouseDown": PropTypes.func,
661
- "onMouseDownCapture": PropTypes.func,
662
- "onMouseEnter": PropTypes.func,
663
- "onMouseLeave": PropTypes.func,
664
- "onMouseMove": PropTypes.func,
665
- "onMouseMoveCapture": PropTypes.func,
666
- "onMouseOut": PropTypes.func,
667
- "onMouseOutCapture": PropTypes.func,
668
- "onMouseOver": PropTypes.func,
669
- "onMouseOverCapture": PropTypes.func,
670
- "onMouseUp": PropTypes.func,
671
- "onMouseUpCapture": PropTypes.func,
672
- "onPaste": PropTypes.func,
673
- "onPasteCapture": PropTypes.func,
674
- "onPause": PropTypes.func,
675
- "onPauseCapture": PropTypes.func,
676
- "onPlay": PropTypes.func,
677
- "onPlayCapture": PropTypes.func,
678
- "onPlaying": PropTypes.func,
679
- "onPlayingCapture": PropTypes.func,
680
- "onPointerCancel": PropTypes.func,
681
- "onPointerCancelCapture": PropTypes.func,
682
- "onPointerDown": PropTypes.func,
683
- "onPointerDownCapture": PropTypes.func,
684
- "onPointerEnter": PropTypes.func,
685
- "onPointerLeave": PropTypes.func,
686
- "onPointerMove": PropTypes.func,
687
- "onPointerMoveCapture": PropTypes.func,
688
- "onPointerOut": PropTypes.func,
689
- "onPointerOutCapture": PropTypes.func,
690
- "onPointerOver": PropTypes.func,
691
- "onPointerOverCapture": PropTypes.func,
692
- "onPointerUp": PropTypes.func,
693
- "onPointerUpCapture": PropTypes.func,
694
- "onProgress": PropTypes.func,
695
- "onProgressCapture": PropTypes.func,
696
- "onRateChange": PropTypes.func,
697
- "onRateChangeCapture": PropTypes.func,
698
- "onReset": PropTypes.func,
699
- "onResetCapture": PropTypes.func,
700
- "onResize": PropTypes.func,
701
- "onResizeCapture": PropTypes.func,
702
- "onScroll": PropTypes.func,
703
- "onScrollCapture": PropTypes.func,
704
- "onSeeked": PropTypes.func,
705
- "onSeekedCapture": PropTypes.func,
706
- "onSeeking": PropTypes.func,
707
- "onSeekingCapture": PropTypes.func,
708
- "onSelect": PropTypes.func,
709
- "onSelectCapture": PropTypes.func,
710
- "onStalled": PropTypes.func,
711
- "onStalledCapture": PropTypes.func,
712
- "onSubmit": PropTypes.func,
713
- "onSubmitCapture": PropTypes.func,
714
- "onSuspend": PropTypes.func,
715
- "onSuspendCapture": PropTypes.func,
716
- "onTimeUpdate": PropTypes.func,
717
- "onTimeUpdateCapture": PropTypes.func,
718
- "onTouchCancel": PropTypes.func,
719
- "onTouchCancelCapture": PropTypes.func,
720
- "onTouchEnd": PropTypes.func,
721
- "onTouchEndCapture": PropTypes.func,
722
- "onTouchMove": PropTypes.func,
723
- "onTouchMoveCapture": PropTypes.func,
724
- "onTouchStart": PropTypes.func,
725
- "onTouchStartCapture": PropTypes.func,
726
- "onTransitionEnd": PropTypes.func,
727
- "onTransitionEndCapture": PropTypes.func,
728
- "onVolumeChange": PropTypes.func,
729
- "onVolumeChangeCapture": PropTypes.func,
730
- "onWaiting": PropTypes.func,
731
- "onWaitingCapture": PropTypes.func,
732
- "onWheel": PropTypes.func,
733
- "onWheelCapture": PropTypes.func,
734
- "pattern": PropTypes.string,
735
- "placeholder": PropTypes.string,
736
- "prefix": PropTypes.string,
737
- "property": PropTypes.string,
738
- "radioGroup": PropTypes.string,
739
- "readOnly": PropTypes.bool,
740
- "rel": PropTypes.string,
741
- "required": PropTypes.bool,
742
- "resource": PropTypes.string,
743
- "results": PropTypes.number,
744
- "rev": PropTypes.string,
745
- "reverse": PropTypes.bool,
746
- "role": PropTypes.oneOfType([PropTypes.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), PropTypes.shape({
747
- "__@iterator": PropTypes.func.isRequired,
748
- "anchor": PropTypes.func.isRequired,
749
- "at": PropTypes.func.isRequired,
750
- "big": PropTypes.func.isRequired,
751
- "blink": PropTypes.func.isRequired,
752
- "bold": PropTypes.func.isRequired,
753
- "charAt": PropTypes.func.isRequired,
754
- "charCodeAt": PropTypes.func.isRequired,
755
- "codePointAt": PropTypes.func.isRequired,
756
- "concat": PropTypes.func.isRequired,
757
- "endsWith": PropTypes.func.isRequired,
758
- "fixed": PropTypes.func.isRequired,
759
- "fontcolor": PropTypes.func.isRequired,
760
- "fontsize": PropTypes.func.isRequired,
761
- "includes": PropTypes.func.isRequired,
762
- "indexOf": PropTypes.func.isRequired,
763
- "italics": PropTypes.func.isRequired,
764
- "lastIndexOf": PropTypes.func.isRequired,
765
- "length": PropTypes.number.isRequired,
766
- "link": PropTypes.func.isRequired,
767
- "localeCompare": PropTypes.func.isRequired,
768
- "match": PropTypes.func.isRequired,
769
- "matchAll": PropTypes.func.isRequired,
770
- "normalize": PropTypes.func.isRequired,
771
- "padEnd": PropTypes.func.isRequired,
772
- "padStart": PropTypes.func.isRequired,
773
- "repeat": PropTypes.func.isRequired,
774
- "replace": PropTypes.func.isRequired,
775
- "search": PropTypes.func.isRequired,
776
- "slice": PropTypes.func.isRequired,
777
- "small": PropTypes.func.isRequired,
778
- "split": PropTypes.func.isRequired,
779
- "startsWith": PropTypes.func.isRequired,
780
- "strike": PropTypes.func.isRequired,
781
- "sub": PropTypes.func.isRequired,
782
- "substr": PropTypes.func.isRequired,
783
- "substring": PropTypes.func.isRequired,
784
- "sup": PropTypes.func.isRequired,
785
- "toLocaleLowerCase": PropTypes.func.isRequired,
786
- "toLocaleUpperCase": PropTypes.func.isRequired,
787
- "toLowerCase": PropTypes.func.isRequired,
788
- "toString": PropTypes.func.isRequired,
789
- "toUpperCase": PropTypes.func.isRequired,
790
- "trim": PropTypes.func.isRequired,
791
- "trimEnd": PropTypes.func.isRequired,
792
- "trimLeft": PropTypes.func.isRequired,
793
- "trimRight": PropTypes.func.isRequired,
794
- "trimStart": PropTypes.func.isRequired,
795
- "valueOf": PropTypes.func.isRequired
796
- })]),
797
- "security": PropTypes.string,
798
- "size": PropTypes.oneOf(["large", "small"]),
799
- "slot": PropTypes.string,
800
- "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
801
- "src": PropTypes.string,
802
- "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
803
- "style": PropTypes.object,
804
- "suppressContentEditableWarning": PropTypes.bool,
805
- "suppressHydrationWarning": PropTypes.bool,
806
- "tabIndex": PropTypes.number,
807
- "title": PropTypes.string,
808
- "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
809
- "translate": PropTypes.oneOf(["no", "yes"]),
810
- "typeof": PropTypes.string,
811
- "unselectable": PropTypes.oneOf(["off", "on"]),
812
- "validationIconId": PropTypes.string,
813
- "validationOnLabel": PropTypes.bool,
814
- "value": PropTypes.string,
815
- "vocab": PropTypes.string,
816
- "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
817
- "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
818
- };
819
- }
820
- export { Switch };
821
242
  Switch.displayName = "Switch";
822
243
  export default Switch;
@@ -1,6 +1,5 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useRef, useState, useContext } from "react";
3
- import PropTypes from "prop-types";
4
3
  import { StyledTabTitleButton, StyledTabTitleLink, StyledTitleContent, StyledLayoutWrapper, StyledSelectedIndicator, StyledVerticalIndicator } from "./tab-title.style";
5
4
  import tagComponent from "../../../../__internal__/utils/helpers/tags/tags";
6
5
  import ValidationIcon from "../../../../__internal__/validations/validation-icon.component";
@@ -209,37 +208,5 @@ const TabTitle = /*#__PURE__*/React.forwardRef(({
209
208
  id: `${id}-message`
210
209
  }, screenReaderMessage));
211
210
  });
212
- if (process.env.NODE_ENV !== "production") {
213
- TabTitle.propTypes = {
214
- "align": PropTypes.oneOf(["left", "right"]),
215
- "alternateStyling": PropTypes.bool,
216
- "borders": PropTypes.bool,
217
- "children": PropTypes.node,
218
- "className": PropTypes.string,
219
- "customLayout": PropTypes.node,
220
- "data-role": PropTypes.string,
221
- "dataTabId": PropTypes.string,
222
- "error": PropTypes.bool,
223
- "errorMessage": PropTypes.string,
224
- "href": PropTypes.string,
225
- "id": PropTypes.string,
226
- "info": PropTypes.bool,
227
- "infoMessage": PropTypes.string,
228
- "isInSidebar": PropTypes.bool,
229
- "isTabSelected": PropTypes.bool,
230
- "noLeftBorder": PropTypes.bool,
231
- "noRightBorder": PropTypes.bool,
232
- "onClick": PropTypes.func.isRequired,
233
- "onKeyDown": PropTypes.func.isRequired,
234
- "position": PropTypes.oneOf(["left", "top"]),
235
- "siblings": PropTypes.node,
236
- "size": PropTypes.oneOf(["default", "large"]),
237
- "tabIndex": PropTypes.number,
238
- "title": PropTypes.string,
239
- "titlePosition": PropTypes.oneOf(["after", "before"]),
240
- "warning": PropTypes.bool,
241
- "warningMessage": PropTypes.string
242
- };
243
- }
244
211
  TabTitle.displayName = "TabTitle";
245
212
  export default TabTitle;
@@ -1,5 +1,4 @@
1
1
  import React, { useCallback, useEffect, useRef, useState } from "react";
2
- import PropTypes from "prop-types";
3
2
  import useResizeObserver from "../../../../hooks/__internal__/useResizeObserver";
4
3
  import StyledIcon from "../../../icon/icon.style";
5
4
  import { StyledTabsHeaderWrapper, StyledTabsHeaderList, StyledVerticalTabsWrapper, StyledWrapper, StyledNavigationButtonWrapper, StyledNavigationButton, StyledContainer, StyledBottomBorder } from "./tabs-header.style";
@@ -1,6 +1,5 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useCallback, useEffect, useState } from "react";
3
- import PropTypes from "prop-types";
4
3
  import StyledTab from "./tab.style";
5
4
  import tagComponent from "../../../__internal__/utils/helpers/tags/tags";
6
5
  import TabContext from "./__internal__/tab.context";