carbon-react 138.2.2 → 140.0.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 (463) hide show
  1. package/esm/__internal__/fieldset/fieldset.component.js +1 -1
  2. package/esm/__internal__/focus-trap/focus-trap.component.js +2 -2
  3. package/esm/__internal__/form-field/form-field.component.js +1 -1
  4. package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.d.ts +1 -1
  5. package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.js +1 -1
  6. package/esm/__internal__/form-spacing-provider/index.d.ts +2 -2
  7. package/esm/__internal__/form-spacing-provider/index.js +1 -1
  8. package/esm/__internal__/input/input-presentation.component.js +1 -1
  9. package/esm/__internal__/input/input.component.js +1 -1
  10. package/esm/__internal__/popover/popover.component.js +1 -1
  11. package/esm/__internal__/utils/helpers/events/events.d.ts +1 -1
  12. package/esm/components/action-popover/action-popover-item/action-popover-item.component.d.ts +1 -1
  13. package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +1 -1
  14. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +1 -1
  15. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +1 -1
  16. package/esm/components/action-popover/action-popover.component.d.ts +1 -1
  17. package/esm/components/action-popover/action-popover.component.js +1 -1
  18. package/esm/components/button/button.component.js +1 -1
  19. package/esm/components/button-bar/__internal__/button-bar.context.d.ts +13 -0
  20. package/esm/components/button-bar/button-bar.component.d.ts +1 -11
  21. package/esm/components/button-bar/button-bar.component.js +1 -1
  22. package/esm/components/button-minor/button-minor.component.js +1 -1
  23. package/esm/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +16 -0
  24. package/esm/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.js +9 -0
  25. package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.d.ts +0 -14
  26. package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.js +3 -10
  27. package/esm/components/button-toggle/button-toggle.component.js +1 -1
  28. package/esm/components/carbon-provider/__internal__/new-validation.context.d.ts +14 -0
  29. package/esm/components/carbon-provider/__internal__/top-modal-provider.component.d.ts +5 -0
  30. package/esm/components/carbon-provider/{top-modal-context.js → __internal__/top-modal-provider.component.js} +5 -6
  31. package/esm/components/carbon-provider/__internal__/top-modal.context.d.ts +6 -0
  32. package/esm/components/carbon-provider/__internal__/top-modal.context.js +4 -0
  33. package/esm/components/carbon-provider/carbon-provider.component.d.ts +2 -9
  34. package/esm/components/carbon-provider/carbon-provider.component.js +4 -4
  35. package/esm/components/card/__internal__/{card-context/index.d.ts → card.context.d.ts} +1 -1
  36. package/esm/components/card/card-footer/card-footer.component.d.ts +1 -1
  37. package/esm/components/card/card-footer/card-footer.component.js +1 -1
  38. package/esm/components/card/card-footer/card-footer.style.d.ts +1 -1
  39. package/esm/components/card/card-row/card-row.component.js +1 -1
  40. package/esm/components/card/card.component.d.ts +1 -1
  41. package/esm/components/card/card.component.js +1 -1
  42. package/esm/components/card/card.style.d.ts +1 -1
  43. package/esm/components/checkbox/checkbox-group/__internal__/checkbox-group.context.d.ts +4 -0
  44. package/esm/components/checkbox/checkbox-group/__internal__/checkbox-group.context.js +2 -0
  45. package/esm/components/checkbox/checkbox-group/checkbox-group.component.d.ts +0 -1
  46. package/esm/components/checkbox/checkbox-group/checkbox-group.component.js +2 -2
  47. package/esm/components/checkbox/checkbox.component.js +2 -2
  48. package/esm/components/date/date.component.d.ts +1 -1
  49. package/esm/components/date/date.component.js +1 -1
  50. package/esm/components/date-range/__internal__/date-range.context.js +2 -0
  51. package/esm/components/date-range/date-range.component.js +1 -1
  52. package/esm/components/date-range/index.d.ts +1 -1
  53. package/esm/components/dialog/dialog.component.d.ts +1 -1
  54. package/esm/components/dialog/dialog.component.js +11 -12
  55. package/esm/components/drawer/__internal__/drawer-sidebar.context.d.ts +6 -0
  56. package/esm/components/drawer/__internal__/drawer-sidebar.context.js +4 -0
  57. package/esm/components/drawer/drawer.component.d.ts +4 -6
  58. package/esm/components/drawer/drawer.component.js +13 -7
  59. package/esm/components/drawer/index.d.ts +2 -2
  60. package/esm/components/drawer/index.js +1 -1
  61. package/esm/components/duelling-picklist/duelling-picklist.component.js +1 -1
  62. package/esm/components/duelling-picklist/picklist/picklist.component.js +1 -1
  63. package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +1 -1
  64. package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +1 -1
  65. package/esm/components/fieldset/fieldset.component.js +1 -1
  66. package/esm/components/flat-table/__internal__/flat-table.context.d.ts +7 -0
  67. package/esm/components/flat-table/__internal__/flat-table.context.js +4 -0
  68. package/esm/components/flat-table/__internal__/use-table-cell.js +3 -3
  69. package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +1 -1
  70. package/esm/components/flat-table/flat-table-head/__internal__/flat-table-head.context.d.ts +6 -0
  71. package/esm/components/flat-table/flat-table-head/__internal__/flat-table-head.context.js +4 -0
  72. package/esm/components/flat-table/flat-table-head/flat-table-head.component.d.ts +0 -4
  73. package/esm/components/flat-table/flat-table-head/flat-table-head.component.js +1 -3
  74. package/esm/components/flat-table/flat-table-header/flat-table-header-utils.d.ts +1 -1
  75. package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +2 -2
  76. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +5 -5
  77. package/esm/components/flat-table/flat-table.component.d.ts +0 -4
  78. package/esm/components/flat-table/flat-table.component.js +3 -5
  79. package/esm/components/flat-table/flat-table.style.d.ts +1 -1
  80. package/esm/components/flat-table/sort/sort.component.js +2 -2
  81. package/esm/components/form/form.component.js +2 -2
  82. package/esm/components/icon/icon.component.js +1 -1
  83. package/esm/components/link/link.component.js +1 -1
  84. package/esm/components/menu/__internal__/submenu/submenu.component.js +2 -2
  85. package/esm/components/menu/__internal__/submenu/submenu.style.d.ts +1 -1
  86. package/esm/components/menu/menu-divider/menu-divider.component.js +1 -1
  87. package/esm/components/menu/menu-divider/menu-divider.style.d.ts +1 -1
  88. package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +1 -1
  89. package/esm/components/menu/menu-full-screen/menu-full-screen.style.d.ts +1 -1
  90. package/esm/components/menu/menu-item/menu-item.component.js +1 -1
  91. package/esm/components/menu/menu-item/menu-item.style.d.ts +1 -1
  92. package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +1 -1
  93. package/esm/components/menu/menu-segment-title/menu-segment-title.style.d.ts +1 -1
  94. package/esm/components/menu/menu.component.d.ts +1 -1
  95. package/esm/components/menu/menu.component.js +1 -1
  96. package/esm/components/menu/scrollable-block/scrollable-block.component.js +1 -1
  97. package/esm/components/menu/scrollable-block/scrollable-block.style.d.ts +1 -1
  98. package/esm/components/modal/__internal__/modal.context.d.ts +8 -0
  99. package/esm/components/modal/__internal__/modal.context.js +2 -0
  100. package/esm/components/modal/index.d.ts +2 -2
  101. package/esm/components/modal/index.js +1 -1
  102. package/esm/components/modal/modal.component.d.ts +2 -8
  103. package/esm/components/modal/modal.component.js +6 -1
  104. package/{lib/components/navigation-bar → esm/components/navigation-bar/__internal__}/fixed-navigation-bar.context.d.ts +1 -1
  105. package/esm/components/navigation-bar/{fixed-navigation-bar.context.js → __internal__/fixed-navigation-bar.context.js} +1 -1
  106. package/esm/components/navigation-bar/navigation-bar.component.js +1 -1
  107. package/esm/components/note/note.component.js +1 -1
  108. package/esm/components/numeral-date/__internal__/numeral-date.context.js +2 -0
  109. package/esm/components/numeral-date/numeral-date.component.js +2 -2
  110. package/esm/components/pill/pill.style.js +7 -6
  111. package/esm/components/popover-container/popover-container.component.js +1 -1
  112. package/esm/components/portal/__internal__/portal.context.d.ts +6 -0
  113. package/esm/components/portal/__internal__/portal.context.js +2 -0
  114. package/esm/components/portal/portal.d.ts +0 -4
  115. package/esm/components/portal/portal.js +1 -1
  116. package/esm/components/portrait/portrait.component.js +1 -1
  117. package/esm/components/radio-button/radio-button-group/radio-button-group.component.js +1 -1
  118. package/esm/components/radio-button/radio-button.component.js +1 -1
  119. package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.js +2 -2
  120. package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.js +1 -1
  121. package/esm/components/select/{select-list → __internal__/select-list}/select-list.component.js +8 -8
  122. package/esm/components/select/{select-list → __internal__/select-list}/select-list.style.js +1 -1
  123. package/esm/components/select/__internal__/select-text/select-text.component.d.ts +0 -8
  124. package/{lib/components/select → esm/components/select/__internal__}/select-textbox/select-textbox.component.d.ts +3 -3
  125. package/esm/components/select/{select-textbox → __internal__/select-textbox}/select-textbox.component.js +5 -5
  126. package/esm/components/select/{utils → __internal__/utils}/is-expected-option.js +2 -2
  127. package/esm/components/select/{utils → __internal__/utils}/with-filter.hoc.js +5 -5
  128. package/esm/components/select/filterable-select/filterable-select.component.d.ts +1 -1
  129. package/esm/components/select/filterable-select/filterable-select.component.js +5 -5
  130. package/esm/components/select/multi-select/multi-select.component.d.ts +1 -1
  131. package/esm/components/select/multi-select/multi-select.component.js +6 -6
  132. package/esm/components/select/option/option.component.js +1 -1
  133. package/esm/components/select/option-row/option-row.component.js +1 -1
  134. package/esm/components/select/simple-select/simple-select.component.d.ts +1 -1
  135. package/esm/components/select/simple-select/simple-select.component.js +5 -5
  136. package/esm/components/sidebar/__internal__/sidebar.context.d.ts +6 -0
  137. package/esm/components/sidebar/__internal__/sidebar.context.js +2 -0
  138. package/esm/components/sidebar/index.d.ts +1 -1
  139. package/esm/components/sidebar/index.js +1 -1
  140. package/esm/components/sidebar/sidebar.component.d.ts +0 -4
  141. package/esm/components/sidebar/sidebar.component.js +1 -1
  142. package/esm/components/switch/switch.component.js +1 -1
  143. package/esm/components/tabs/__internal__/tab-title/index.d.ts +1 -1
  144. package/esm/components/tabs/__internal__/tab-title/index.js +1 -1
  145. package/esm/components/tabs/__internal__/tab-title/tab-title.component.d.ts +0 -4
  146. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +1 -1
  147. package/esm/components/tabs/__internal__/tab-title/tab-title.context.d.ts +6 -0
  148. package/esm/components/tabs/__internal__/tab-title/tab-title.context.js +2 -0
  149. package/esm/components/tabs/tab/__internal__/tab.context.d.ts +8 -0
  150. package/esm/components/tabs/tab/__internal__/tab.context.js +2 -0
  151. package/esm/components/tabs/tab/index.d.ts +2 -2
  152. package/esm/components/tabs/tab/index.js +1 -1
  153. package/esm/components/tabs/tab/tab.component.d.ts +0 -7
  154. package/esm/components/tabs/tab/tab.component.js +1 -2
  155. package/esm/components/tabs/tabs.component.js +1 -1
  156. package/esm/components/text-editor/__internal__/editor-link/editor-link.component.js +1 -1
  157. package/esm/components/text-editor/__internal__/editor.context.d.ts +6 -0
  158. package/esm/components/text-editor/__internal__/editor.context.js +2 -0
  159. package/esm/components/text-editor/text-editor.component.d.ts +0 -4
  160. package/esm/components/text-editor/text-editor.component.js +2 -2
  161. package/esm/components/textarea/textarea.component.js +1 -1
  162. package/esm/components/textbox/textbox.component.js +2 -2
  163. package/esm/components/tile/tile-content/tile-content.component.js +1 -1
  164. package/esm/components/tile/tile.component.js +1 -1
  165. package/esm/components/vertical-divider/vertical-divider.component.js +2 -0
  166. package/esm/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +1 -1
  167. package/esm/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.d.ts +5 -0
  168. package/esm/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.js +4 -0
  169. package/esm/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js +2 -4
  170. package/esm/hooks/__internal__/useModalAria/useModalAria.js +1 -1
  171. package/lib/__internal__/fieldset/fieldset.component.js +2 -2
  172. package/lib/__internal__/focus-trap/focus-trap.component.js +4 -4
  173. package/lib/__internal__/form-field/form-field.component.js +2 -2
  174. package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.d.ts +1 -1
  175. package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +2 -2
  176. package/lib/__internal__/form-spacing-provider/index.d.ts +2 -2
  177. package/lib/__internal__/form-spacing-provider/index.js +2 -2
  178. package/lib/__internal__/input/input-presentation.component.js +2 -2
  179. package/lib/__internal__/input/input.component.js +2 -2
  180. package/lib/__internal__/popover/popover.component.js +2 -2
  181. package/lib/__internal__/utils/helpers/events/events.d.ts +1 -1
  182. package/lib/components/action-popover/action-popover-item/action-popover-item.component.d.ts +1 -1
  183. package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +2 -2
  184. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +1 -1
  185. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -2
  186. package/lib/components/action-popover/action-popover.component.d.ts +1 -1
  187. package/lib/components/action-popover/action-popover.component.js +2 -2
  188. package/lib/components/button/button.component.js +2 -2
  189. package/lib/components/button-bar/__internal__/button-bar.context.d.ts +13 -0
  190. package/lib/components/button-bar/button-bar.component.d.ts +1 -11
  191. package/lib/components/button-bar/button-bar.component.js +3 -3
  192. package/lib/components/button-minor/button-minor.component.js +2 -2
  193. package/lib/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +16 -0
  194. package/lib/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.js +16 -0
  195. package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.d.ts +0 -14
  196. package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +5 -12
  197. package/lib/components/button-toggle/button-toggle.component.js +2 -2
  198. package/lib/components/carbon-provider/__internal__/new-validation.context.d.ts +14 -0
  199. package/lib/components/carbon-provider/__internal__/top-modal-provider.component.d.ts +5 -0
  200. package/lib/components/carbon-provider/{top-modal-context.js → __internal__/top-modal-provider.component.js} +8 -8
  201. package/lib/components/carbon-provider/__internal__/top-modal.context.d.ts +6 -0
  202. package/lib/components/carbon-provider/__internal__/top-modal.context.js +11 -0
  203. package/lib/components/carbon-provider/carbon-provider.component.d.ts +2 -9
  204. package/lib/components/carbon-provider/carbon-provider.component.js +6 -6
  205. package/lib/components/card/__internal__/{card-context/index.d.ts → card.context.d.ts} +1 -1
  206. package/lib/components/card/card-footer/card-footer.component.d.ts +1 -1
  207. package/lib/components/card/card-footer/card-footer.component.js +2 -2
  208. package/lib/components/card/card-footer/card-footer.style.d.ts +1 -1
  209. package/lib/components/card/card-row/card-row.component.js +2 -2
  210. package/lib/components/card/card.component.d.ts +1 -1
  211. package/lib/components/card/card.component.js +5 -5
  212. package/lib/components/card/card.style.d.ts +1 -1
  213. package/lib/components/checkbox/checkbox-group/__internal__/checkbox-group.context.d.ts +4 -0
  214. package/lib/components/checkbox/checkbox-group/__internal__/checkbox-group.context.js +9 -0
  215. package/lib/components/checkbox/checkbox-group/checkbox-group.component.d.ts +0 -1
  216. package/lib/components/checkbox/checkbox-group/checkbox-group.component.js +6 -6
  217. package/lib/components/checkbox/checkbox.component.js +4 -4
  218. package/lib/components/date/date.component.d.ts +1 -1
  219. package/lib/components/date/date.component.js +1 -1
  220. package/lib/components/date-range/__internal__/date-range.context.js +9 -0
  221. package/lib/components/date-range/date-range.component.js +1 -1
  222. package/lib/components/date-range/index.d.ts +1 -1
  223. package/lib/components/dialog/dialog.component.d.ts +1 -1
  224. package/lib/components/dialog/dialog.component.js +11 -12
  225. package/lib/components/drawer/__internal__/drawer-sidebar.context.d.ts +6 -0
  226. package/lib/components/drawer/__internal__/drawer-sidebar.context.js +11 -0
  227. package/lib/components/drawer/drawer.component.d.ts +4 -6
  228. package/lib/components/drawer/drawer.component.js +22 -9
  229. package/lib/components/drawer/index.d.ts +2 -2
  230. package/lib/components/drawer/index.js +2 -9
  231. package/lib/components/duelling-picklist/duelling-picklist.component.js +1 -1
  232. package/lib/components/duelling-picklist/picklist/picklist.component.js +1 -1
  233. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +1 -1
  234. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +1 -1
  235. package/lib/components/fieldset/fieldset.component.js +2 -2
  236. package/lib/components/flat-table/__internal__/flat-table.context.d.ts +7 -0
  237. package/lib/components/flat-table/__internal__/flat-table.context.js +11 -0
  238. package/lib/components/flat-table/__internal__/use-table-cell.js +4 -4
  239. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +2 -2
  240. package/lib/components/flat-table/flat-table-head/__internal__/flat-table-head.context.d.ts +6 -0
  241. package/lib/components/flat-table/flat-table-head/__internal__/flat-table-head.context.js +11 -0
  242. package/lib/components/flat-table/flat-table-head/flat-table-head.component.d.ts +0 -4
  243. package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +3 -5
  244. package/lib/components/flat-table/flat-table-header/flat-table-header-utils.d.ts +1 -1
  245. package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +2 -2
  246. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +8 -8
  247. package/lib/components/flat-table/flat-table.component.d.ts +0 -4
  248. package/lib/components/flat-table/flat-table.component.js +5 -7
  249. package/lib/components/flat-table/flat-table.style.d.ts +1 -1
  250. package/lib/components/flat-table/sort/sort.component.js +2 -2
  251. package/lib/components/form/form.component.js +4 -4
  252. package/lib/components/icon/icon.component.js +2 -2
  253. package/lib/components/link/link.component.js +1 -1
  254. package/lib/components/menu/__internal__/submenu/submenu.component.js +2 -2
  255. package/lib/components/menu/__internal__/submenu/submenu.style.d.ts +1 -1
  256. package/lib/components/menu/menu-divider/menu-divider.component.js +1 -1
  257. package/lib/components/menu/menu-divider/menu-divider.style.d.ts +1 -1
  258. package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +1 -1
  259. package/lib/components/menu/menu-full-screen/menu-full-screen.style.d.ts +1 -1
  260. package/lib/components/menu/menu-item/menu-item.component.js +1 -1
  261. package/lib/components/menu/menu-item/menu-item.style.d.ts +1 -1
  262. package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +1 -1
  263. package/lib/components/menu/menu-segment-title/menu-segment-title.style.d.ts +1 -1
  264. package/lib/components/menu/menu.component.d.ts +1 -1
  265. package/lib/components/menu/menu.component.js +1 -1
  266. package/lib/components/menu/scrollable-block/scrollable-block.component.js +1 -1
  267. package/lib/components/menu/scrollable-block/scrollable-block.style.d.ts +1 -1
  268. package/lib/components/modal/__internal__/modal.context.d.ts +8 -0
  269. package/lib/components/modal/__internal__/modal.context.js +9 -0
  270. package/lib/components/modal/index.d.ts +2 -2
  271. package/lib/components/modal/index.js +2 -9
  272. package/lib/components/modal/modal.component.d.ts +2 -8
  273. package/lib/components/modal/modal.component.js +8 -3
  274. package/{esm/components/navigation-bar → lib/components/navigation-bar/__internal__}/fixed-navigation-bar.context.d.ts +1 -1
  275. package/lib/components/navigation-bar/{fixed-navigation-bar.context.js → __internal__/fixed-navigation-bar.context.js} +1 -1
  276. package/lib/components/navigation-bar/navigation-bar.component.js +1 -1
  277. package/lib/components/note/note.component.js +2 -2
  278. package/lib/components/numeral-date/__internal__/numeral-date.context.js +9 -0
  279. package/lib/components/numeral-date/numeral-date.component.js +4 -4
  280. package/lib/components/pill/pill.style.js +7 -6
  281. package/lib/components/popover-container/popover-container.component.js +2 -2
  282. package/lib/components/portal/__internal__/portal.context.d.ts +6 -0
  283. package/lib/components/portal/__internal__/portal.context.js +9 -0
  284. package/lib/components/portal/portal.d.ts +0 -4
  285. package/lib/components/portal/portal.js +3 -3
  286. package/lib/components/portrait/portrait.component.js +2 -2
  287. package/lib/components/radio-button/radio-button-group/radio-button-group.component.js +2 -2
  288. package/lib/components/radio-button/radio-button.component.js +2 -2
  289. package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.js +2 -2
  290. package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.js +1 -1
  291. package/lib/components/select/__internal__/list-action-button/package.json +6 -0
  292. package/lib/components/select/__internal__/select-list/package.json +6 -0
  293. package/lib/components/select/{select-list → __internal__/select-list}/select-list.component.js +9 -9
  294. package/lib/components/select/{select-list → __internal__/select-list}/select-list.style.js +1 -1
  295. package/lib/components/select/__internal__/select-text/select-text.component.d.ts +0 -8
  296. package/lib/components/select/__internal__/select-textbox/package.json +6 -0
  297. package/{esm/components/select → lib/components/select/__internal__}/select-textbox/select-textbox.component.d.ts +3 -3
  298. package/lib/components/select/{select-textbox → __internal__/select-textbox}/select-textbox.component.js +6 -6
  299. package/lib/components/select/{utils → __internal__/utils}/is-expected-option.js +2 -2
  300. package/lib/components/select/{utils → __internal__/utils}/with-filter.hoc.js +5 -5
  301. package/lib/components/select/filterable-select/filterable-select.component.d.ts +1 -1
  302. package/lib/components/select/filterable-select/filterable-select.component.js +5 -5
  303. package/lib/components/select/multi-select/multi-select.component.d.ts +1 -1
  304. package/lib/components/select/multi-select/multi-select.component.js +6 -6
  305. package/lib/components/select/option/option.component.js +2 -2
  306. package/lib/components/select/option-row/option-row.component.js +2 -2
  307. package/lib/components/select/simple-select/simple-select.component.d.ts +1 -1
  308. package/lib/components/select/simple-select/simple-select.component.js +5 -5
  309. package/lib/components/sidebar/__internal__/sidebar.context.d.ts +6 -0
  310. package/lib/components/sidebar/__internal__/sidebar.context.js +9 -0
  311. package/lib/components/sidebar/index.d.ts +1 -1
  312. package/lib/components/sidebar/index.js +2 -9
  313. package/lib/components/sidebar/sidebar.component.d.ts +0 -4
  314. package/lib/components/sidebar/sidebar.component.js +3 -3
  315. package/lib/components/switch/switch.component.js +2 -2
  316. package/lib/components/tabs/__internal__/tab-title/index.d.ts +1 -1
  317. package/lib/components/tabs/__internal__/tab-title/index.js +2 -9
  318. package/lib/components/tabs/__internal__/tab-title/tab-title.component.d.ts +0 -4
  319. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +3 -3
  320. package/lib/components/tabs/__internal__/tab-title/tab-title.context.d.ts +6 -0
  321. package/lib/components/tabs/__internal__/tab-title/tab-title.context.js +9 -0
  322. package/lib/components/tabs/tab/__internal__/tab.context.d.ts +8 -0
  323. package/lib/components/tabs/tab/__internal__/tab.context.js +9 -0
  324. package/lib/components/tabs/tab/index.d.ts +2 -2
  325. package/lib/components/tabs/tab/index.js +2 -9
  326. package/lib/components/tabs/tab/tab.component.d.ts +0 -7
  327. package/lib/components/tabs/tab/tab.component.js +3 -3
  328. package/lib/components/tabs/tabs.component.js +2 -2
  329. package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +2 -2
  330. package/lib/components/text-editor/__internal__/editor.context.d.ts +6 -0
  331. package/lib/components/text-editor/__internal__/editor.context.js +9 -0
  332. package/lib/components/text-editor/text-editor.component.d.ts +0 -4
  333. package/lib/components/text-editor/text-editor.component.js +5 -5
  334. package/lib/components/textarea/textarea.component.js +2 -2
  335. package/lib/components/textbox/textbox.component.js +4 -4
  336. package/lib/components/tile/tile-content/tile-content.component.js +2 -2
  337. package/lib/components/tile/tile.component.js +2 -2
  338. package/lib/components/vertical-divider/vertical-divider.component.js +2 -0
  339. package/lib/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +1 -1
  340. package/lib/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.d.ts +5 -0
  341. package/lib/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.js +11 -0
  342. package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js +4 -6
  343. package/lib/hooks/__internal__/useModalAria/useModalAria.js +2 -2
  344. package/package.json +1 -1
  345. package/esm/__spec_helper__/enzyme-snapshot-helper.js +0 -22
  346. package/esm/__spec_helper__/expect.d.ts +0 -8
  347. package/esm/__spec_helper__/expect.js +0 -28
  348. package/esm/__spec_helper__/index.d.ts +0 -1
  349. package/esm/__spec_helper__/index.js +0 -12
  350. package/esm/__spec_helper__/select-test-utils.d.ts +0 -3
  351. package/esm/__spec_helper__/select-test-utils.js +0 -39
  352. package/esm/__spec_helper__/test-utils.d.ts +0 -51
  353. package/esm/__spec_helper__/test-utils.js +0 -358
  354. package/esm/components/carbon-provider/top-modal-context.d.ts +0 -9
  355. package/lib/__spec_helper__/enzyme-snapshot-helper.js +0 -29
  356. package/lib/__spec_helper__/expect.d.ts +0 -8
  357. package/lib/__spec_helper__/expect.js +0 -30
  358. package/lib/__spec_helper__/index.d.ts +0 -1
  359. package/lib/__spec_helper__/index.js +0 -15
  360. package/lib/__spec_helper__/package.json +0 -6
  361. package/lib/__spec_helper__/select-test-utils.d.ts +0 -3
  362. package/lib/__spec_helper__/select-test-utils.js +0 -46
  363. package/lib/__spec_helper__/test-utils.d.ts +0 -51
  364. package/lib/__spec_helper__/test-utils.js +0 -391
  365. package/lib/components/carbon-provider/top-modal-context.d.ts +0 -9
  366. package/lib/components/card/__internal__/card-context/package.json +0 -6
  367. package/lib/components/select/list-action-button/package.json +0 -6
  368. package/lib/components/select/select-list/package.json +0 -6
  369. package/lib/components/select/select-textbox/package.json +0 -6
  370. /package/esm/__internal__/form-spacing-provider/{form-spacing-context.d.ts → form-spacing.context.d.ts} +0 -0
  371. /package/esm/__internal__/form-spacing-provider/{form-spacing-context.js → form-spacing.context.js} +0 -0
  372. /package/esm/components/action-popover/{action-popover-context.d.ts → __internal__/action-popover.context.d.ts} +0 -0
  373. /package/esm/components/action-popover/{action-popover-context.js → __internal__/action-popover.context.js} +0 -0
  374. /package/esm/components/{date-range/date-range.context.js → button-bar/__internal__/button-bar.context.js} +0 -0
  375. /package/esm/components/{numeral-date/numeral-date-context.js → carbon-provider/__internal__/new-validation.context.js} +0 -0
  376. /package/esm/components/card/__internal__/{card-context/index.js → card.context.js} +0 -0
  377. /package/esm/components/date-range/{date-range.context.d.ts → __internal__/date-range.context.d.ts} +0 -0
  378. /package/esm/components/duelling-picklist/{duelling-picklist.context.d.ts → __internal__/duelling-picklist.context.d.ts} +0 -0
  379. /package/esm/components/duelling-picklist/{duelling-picklist.context.js → __internal__/duelling-picklist.context.js} +0 -0
  380. /package/esm/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.d.ts → flat-table-row.context.d.ts} +0 -0
  381. /package/esm/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.js → flat-table-row.context.js} +0 -0
  382. /package/esm/components/menu/{menu.context.d.ts → __internal__/menu.context.d.ts} +0 -0
  383. /package/esm/components/menu/{menu.context.js → __internal__/menu.context.js} +0 -0
  384. /package/esm/components/numeral-date/{numeral-date-context.d.ts → __internal__/numeral-date.context.d.ts} +0 -0
  385. /package/esm/components/select/{list-action-button → __internal__/list-action-button}/index.d.ts +0 -0
  386. /package/esm/components/select/{list-action-button → __internal__/list-action-button}/index.js +0 -0
  387. /package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.d.ts +0 -0
  388. /package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.d.ts +0 -0
  389. /package/esm/components/select/{select-list → __internal__/select-list}/index.d.ts +0 -0
  390. /package/esm/components/select/{select-list → __internal__/select-list}/index.js +0 -0
  391. /package/esm/components/select/{select-list → __internal__/select-list}/select-list.component.d.ts +0 -0
  392. /package/esm/components/select/__internal__/{select-list-context.d.ts → select-list/select-list.context.d.ts} +0 -0
  393. /package/esm/components/select/__internal__/{select-list-context.js → select-list/select-list.context.js} +0 -0
  394. /package/esm/components/select/{select-list → __internal__/select-list}/select-list.style.d.ts +0 -0
  395. /package/esm/components/select/{select-textbox → __internal__/select-textbox}/index.d.ts +0 -0
  396. /package/esm/components/select/{select-textbox → __internal__/select-textbox}/index.js +0 -0
  397. /package/esm/components/select/{select-textbox/select-textbox-context.d.ts → __internal__/select-textbox/select-textbox.context.d.ts} +0 -0
  398. /package/esm/components/select/{select-textbox/select-textbox-context.js → __internal__/select-textbox/select-textbox.context.js} +0 -0
  399. /package/esm/components/select/{utils → __internal__/utils}/get-next-child-by-text.d.ts +0 -0
  400. /package/esm/components/select/{utils → __internal__/utils}/get-next-child-by-text.js +0 -0
  401. /package/esm/components/select/{utils → __internal__/utils}/get-next-index-by-key.d.ts +0 -0
  402. /package/esm/components/select/{utils → __internal__/utils}/get-next-index-by-key.js +0 -0
  403. /package/esm/components/select/{utils → __internal__/utils}/highlight-part-of-text.d.ts +0 -0
  404. /package/esm/components/select/{utils → __internal__/utils}/highlight-part-of-text.js +0 -0
  405. /package/esm/components/select/{utils → __internal__/utils}/is-expected-option.d.ts +0 -0
  406. /package/esm/components/select/{utils → __internal__/utils}/is-expected-value.d.ts +0 -0
  407. /package/esm/components/select/{utils → __internal__/utils}/is-expected-value.js +0 -0
  408. /package/esm/components/select/{utils → __internal__/utils}/is-navigation-key.d.ts +0 -0
  409. /package/esm/components/select/{utils → __internal__/utils}/is-navigation-key.js +0 -0
  410. /package/esm/components/select/{utils → __internal__/utils}/matching-text.style.d.ts +0 -0
  411. /package/esm/components/select/{utils → __internal__/utils}/matching-text.style.js +0 -0
  412. /package/esm/components/select/{utils → __internal__/utils}/with-filter.hoc.d.ts +0 -0
  413. /package/esm/components/tile/__internal__/{tile-context.d.ts → tile.context.d.ts} +0 -0
  414. /package/esm/components/tile/__internal__/{tile-context.js → tile.context.js} +0 -0
  415. /package/esm/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.d.ts → __internal__/vertical-menu-full-screen.context.d.ts} +0 -0
  416. /package/esm/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.js → __internal__/vertical-menu-full-screen.context.js} +0 -0
  417. /package/lib/__internal__/form-spacing-provider/{form-spacing-context.d.ts → form-spacing.context.d.ts} +0 -0
  418. /package/lib/__internal__/form-spacing-provider/{form-spacing-context.js → form-spacing.context.js} +0 -0
  419. /package/lib/components/action-popover/{action-popover-context.d.ts → __internal__/action-popover.context.d.ts} +0 -0
  420. /package/lib/components/action-popover/{action-popover-context.js → __internal__/action-popover.context.js} +0 -0
  421. /package/lib/components/{date-range/date-range.context.js → button-bar/__internal__/button-bar.context.js} +0 -0
  422. /package/lib/components/{numeral-date/numeral-date-context.js → carbon-provider/__internal__/new-validation.context.js} +0 -0
  423. /package/lib/components/card/__internal__/{card-context/index.js → card.context.js} +0 -0
  424. /package/lib/components/date-range/{date-range.context.d.ts → __internal__/date-range.context.d.ts} +0 -0
  425. /package/lib/components/duelling-picklist/{duelling-picklist.context.d.ts → __internal__/duelling-picklist.context.d.ts} +0 -0
  426. /package/lib/components/duelling-picklist/{duelling-picklist.context.js → __internal__/duelling-picklist.context.js} +0 -0
  427. /package/lib/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.d.ts → flat-table-row.context.d.ts} +0 -0
  428. /package/lib/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.js → flat-table-row.context.js} +0 -0
  429. /package/lib/components/menu/{menu.context.d.ts → __internal__/menu.context.d.ts} +0 -0
  430. /package/lib/components/menu/{menu.context.js → __internal__/menu.context.js} +0 -0
  431. /package/lib/components/numeral-date/{numeral-date-context.d.ts → __internal__/numeral-date.context.d.ts} +0 -0
  432. /package/lib/components/select/{list-action-button → __internal__/list-action-button}/index.d.ts +0 -0
  433. /package/lib/components/select/{list-action-button → __internal__/list-action-button}/index.js +0 -0
  434. /package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.d.ts +0 -0
  435. /package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.d.ts +0 -0
  436. /package/lib/components/select/{select-list → __internal__/select-list}/index.d.ts +0 -0
  437. /package/lib/components/select/{select-list → __internal__/select-list}/index.js +0 -0
  438. /package/lib/components/select/{select-list → __internal__/select-list}/select-list.component.d.ts +0 -0
  439. /package/lib/components/select/__internal__/{select-list-context.d.ts → select-list/select-list.context.d.ts} +0 -0
  440. /package/lib/components/select/__internal__/{select-list-context.js → select-list/select-list.context.js} +0 -0
  441. /package/lib/components/select/{select-list → __internal__/select-list}/select-list.style.d.ts +0 -0
  442. /package/lib/components/select/{select-textbox → __internal__/select-textbox}/index.d.ts +0 -0
  443. /package/lib/components/select/{select-textbox → __internal__/select-textbox}/index.js +0 -0
  444. /package/lib/components/select/{select-textbox/select-textbox-context.d.ts → __internal__/select-textbox/select-textbox.context.d.ts} +0 -0
  445. /package/lib/components/select/{select-textbox/select-textbox-context.js → __internal__/select-textbox/select-textbox.context.js} +0 -0
  446. /package/lib/components/select/{utils → __internal__/utils}/get-next-child-by-text.d.ts +0 -0
  447. /package/lib/components/select/{utils → __internal__/utils}/get-next-child-by-text.js +0 -0
  448. /package/lib/components/select/{utils → __internal__/utils}/get-next-index-by-key.d.ts +0 -0
  449. /package/lib/components/select/{utils → __internal__/utils}/get-next-index-by-key.js +0 -0
  450. /package/lib/components/select/{utils → __internal__/utils}/highlight-part-of-text.d.ts +0 -0
  451. /package/lib/components/select/{utils → __internal__/utils}/highlight-part-of-text.js +0 -0
  452. /package/lib/components/select/{utils → __internal__/utils}/is-expected-option.d.ts +0 -0
  453. /package/lib/components/select/{utils → __internal__/utils}/is-expected-value.d.ts +0 -0
  454. /package/lib/components/select/{utils → __internal__/utils}/is-expected-value.js +0 -0
  455. /package/lib/components/select/{utils → __internal__/utils}/is-navigation-key.d.ts +0 -0
  456. /package/lib/components/select/{utils → __internal__/utils}/is-navigation-key.js +0 -0
  457. /package/lib/components/select/{utils → __internal__/utils}/matching-text.style.d.ts +0 -0
  458. /package/lib/components/select/{utils → __internal__/utils}/matching-text.style.js +0 -0
  459. /package/lib/components/select/{utils → __internal__/utils}/with-filter.hoc.d.ts +0 -0
  460. /package/lib/components/tile/__internal__/{tile-context.d.ts → tile.context.d.ts} +0 -0
  461. /package/lib/components/tile/__internal__/{tile-context.js → tile.context.js} +0 -0
  462. /package/lib/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.d.ts → __internal__/vertical-menu-full-screen.context.d.ts} +0 -0
  463. /package/lib/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.js → __internal__/vertical-menu-full-screen.context.js} +0 -0
@@ -1,12 +1,6 @@
1
1
  import React from "react";
2
2
  import { TagProps } from "../../__internal__/utils/helpers/tags";
3
- export interface ModalContextProps {
4
- isInModal?: boolean;
5
- isAnimationComplete?: boolean;
6
- triggerRefocusFlag?: boolean;
7
- }
8
- export declare const ModalContext: React.Context<ModalContextProps>;
9
- export interface ModalProps extends TagProps {
3
+ export interface ModalProps extends Omit<TagProps, "data-component"> {
10
4
  /** Custom class name */
11
5
  className?: string;
12
6
  /** Modal content */
@@ -28,5 +22,5 @@ export interface ModalProps extends TagProps {
28
22
  /** Manually override the internal modal stacking order to set this as top */
29
23
  topModalOverride?: boolean;
30
24
  }
31
- declare const Modal: ({ children, open, onCancel, disableEscKey, disableClose, enableBackgroundUI, timeout, topModalOverride, ...rest }: ModalProps) => React.JSX.Element;
25
+ declare const Modal: ({ children, "data-element": dataElement, "data-role": dataRole, open, onCancel, disableEscKey, disableClose, enableBackgroundUI, timeout, topModalOverride, ...rest }: ModalProps) => React.JSX.Element;
32
26
  export default Modal;
@@ -7,9 +7,11 @@ import Portal from "../portal";
7
7
  import Events from "../../__internal__/utils/helpers/events";
8
8
  import useModalManager from "../../hooks/__internal__/useModalManager";
9
9
  import { StyledModal, StyledModalBackground } from "./modal.style";
10
- export const ModalContext = /*#__PURE__*/React.createContext({});
10
+ import ModalContext from "./__internal__/modal.context";
11
11
  const Modal = ({
12
12
  children,
13
+ "data-element": dataElement,
14
+ "data-role": dataRole = "modal",
13
15
  open,
14
16
  onCancel,
15
17
  disableEscKey = false,
@@ -70,6 +72,9 @@ const Modal = ({
70
72
  content = children;
71
73
  }
72
74
  return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(StyledModal, _extends({
75
+ "data-component": "modal",
76
+ "data-element": dataElement,
77
+ "data-role": dataRole,
73
78
  "data-state": open ? "open" : "closed",
74
79
  transitionName: "modal",
75
80
  transitionTime: timeout,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { NavigationBarProps } from ".";
2
+ import { NavigationBarProps } from "..";
3
3
  declare type FixedNavigationBarContextProps = {
4
4
  submenuMaxHeight?: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React, { createContext, useState, useCallback, useEffect } from "react";
2
- import useResizeObserver from "../../hooks/__internal__/useResizeObserver/useResizeObserver";
2
+ import useResizeObserver from "../../../hooks/__internal__/useResizeObserver/useResizeObserver";
3
3
  const FixedNavigationBarContext = /*#__PURE__*/createContext({});
4
4
  export const FixedNavigationBarContextProvider = ({
5
5
  position,
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import React, { useRef } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import StyledNavigationBar from "./navigation-bar.style";
5
- import { FixedNavigationBarContextProvider } from "./fixed-navigation-bar.context";
5
+ import { FixedNavigationBarContextProvider } from "./__internal__/fixed-navigation-bar.context";
6
6
  const NavigationBar = ({
7
7
  navigationType = "light",
8
8
  isLoading = false,
@@ -7,7 +7,7 @@ import { StyledNote, StyledNoteContent, StyledNoteMain, StyledInlineControl, Sty
7
7
  import StatusIcon from "./__internal__/status-icon";
8
8
  import { ActionPopover } from "../action-popover";
9
9
  import { getDecoratedValue } from "../text-editor/__internal__/utils";
10
- import { EditorContext } from "../text-editor/text-editor.component";
10
+ import EditorContext from "../text-editor/__internal__/editor.context";
11
11
  import LinkPreview from "../link-preview";
12
12
  function hasExpectedDisplayName(child, displayName) {
13
13
  return child.type.displayName === displayName;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default /*#__PURE__*/React.createContext({});
@@ -15,8 +15,8 @@ import useLocale from "../../hooks/__internal__/useLocale";
15
15
  import FormField from "../../__internal__/form-field";
16
16
  import { InputGroupBehaviour } from "../../__internal__/input-behaviour";
17
17
  import { TooltipProvider } from "../../__internal__/tooltip-provider";
18
- import { NewValidationContext } from "../carbon-provider/carbon-provider.component";
19
- import NumeralDateContext from "./numeral-date-context";
18
+ import NewValidationContext from "../carbon-provider/__internal__/new-validation.context";
19
+ import NumeralDateContext from "./__internal__/numeral-date.context";
20
20
  import FormSpacingProvider from "../../__internal__/form-spacing-provider";
21
21
  import Logger from "../../__internal__/utils/logger";
22
22
  let deprecateUncontrolledWarnTriggered = false;
@@ -4,6 +4,7 @@ import { margin } from "styled-system";
4
4
  import styleConfig from "./pill.style.config";
5
5
  import { baseTheme } from "../../style/themes";
6
6
  import StyledIcon from "../icon/icon.style";
7
+ import StyledIconButton from "../icon-button/icon-button.style";
7
8
  import { toColor } from "../../style/utils/color";
8
9
  import getColorValue from "../../style/utils/get-color-value";
9
10
  const StyledPill = styled.span`
@@ -45,7 +46,7 @@ const StyledPill = styled.span`
45
46
  }
46
47
  } catch (e) {
47
48
  // eslint-disable-next-line no-console
48
- console.error(e);
49
+ console.error(`Error: [Pill] - Could not parse the string '${borderColor}', please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.`);
49
50
  }
50
51
  return css`
51
52
  font-size: 12px;
@@ -126,7 +127,7 @@ const StyledPill = styled.span`
126
127
  `}
127
128
 
128
129
  ${isDeletable && css`
129
- button {
130
+ ${StyledIconButton} {
130
131
  -webkit-appearance: none;
131
132
  ${!theme.roundedCornersOptOut && css`
132
133
  border-radius: var(--borderRadius000);
@@ -187,7 +188,7 @@ const StyledPill = styled.span`
187
188
  ${size === "S" && css`
188
189
  padding: 0 22px 0 8px;
189
190
 
190
- button {
191
+ ${StyledIconButton} {
191
192
  padding: 0;
192
193
  line-height: 16px;
193
194
 
@@ -207,7 +208,7 @@ const StyledPill = styled.span`
207
208
  ${size === "M" && css`
208
209
  padding: 0 28px 0 8px;
209
210
 
210
- button {
211
+ ${StyledIconButton} {
211
212
  width: 24px;
212
213
  padding: 0;
213
214
  line-height: 15px;
@@ -221,7 +222,7 @@ const StyledPill = styled.span`
221
222
  ${size === "L" && css`
222
223
  padding: 0 32px 0 8px;
223
224
 
224
- button {
225
+ ${StyledIconButton} {
225
226
  width: 28px;
226
227
  padding: 0;
227
228
  line-height: 16px;
@@ -235,7 +236,7 @@ const StyledPill = styled.span`
235
236
  ${size === "XL" && css`
236
237
  padding: 0 36px 0 12px;
237
238
 
238
- button {
239
+ ${StyledIconButton} {
239
240
  width: 32px;
240
241
  padding: 0;
241
242
  line-height: 18px;
@@ -12,7 +12,7 @@ import { filterStyledSystemPaddingProps } from "../../style/utils";
12
12
  import useClickAwayListener from "../../hooks/__internal__/useClickAwayListener";
13
13
  import Events from "../../__internal__/utils/helpers/events";
14
14
  import FocusTrap from "../../__internal__/focus-trap";
15
- import { ModalContext } from "../modal";
15
+ import ModalContext from "../modal/__internal__/modal.context";
16
16
  import useFocusPortalContent from "../../hooks/__internal__/useFocusPortalContent";
17
17
  import tagComponent from "../../__internal__/utils/helpers/tags/tags";
18
18
  export const renderOpen = ({
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export interface PortalContextProps {
3
+ renderInRoot?: boolean;
4
+ }
5
+ declare const _default: React.Context<PortalContextProps>;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default /*#__PURE__*/React.createContext({});
@@ -1,8 +1,4 @@
1
1
  import React from "react";
2
- interface PortalContextProps {
3
- renderInRoot?: boolean;
4
- }
5
- export declare const PortalContext: React.Context<PortalContextProps>;
6
2
  export interface PortalProps {
7
3
  /** The content of the portal. */
8
4
  children?: React.ReactNode;
@@ -4,7 +4,7 @@ import styled, { css } from "styled-components";
4
4
  import guid from "../../__internal__/utils/helpers/guid";
5
5
  import CarbonScopedTokensProvider from "../../style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component";
6
6
  import StyledPortalEntrance from "./portal.style";
7
- export const PortalContext = /*#__PURE__*/React.createContext({});
7
+ import PortalContext from "./__internal__/portal.context";
8
8
  const Container = styled.div`
9
9
  ${({
10
10
  theme
@@ -8,7 +8,7 @@ import tagComponent from "../../__internal__/utils/helpers/tags/tags";
8
8
  import { PORTRAIT_SIZE_PARAMS } from "./portrait.config";
9
9
  import { StyledCustomImg, StyledIcon, StyledPortraitContainer, StyledPortraitInitials, StyledPortraitGravatar } from "./portrait.style";
10
10
  import { filterStyledSystemMarginProps } from "../../style/utils";
11
- import { NewValidationContext as RoundedCornersOptOutContext } from "../carbon-provider/carbon-provider.component";
11
+ import RoundedCornersOptOutContext from "../carbon-provider/__internal__/new-validation.context";
12
12
  const Portrait = ({
13
13
  alt,
14
14
  name,
@@ -9,7 +9,7 @@ import useIsAboveBreakpoint from "../../../hooks/__internal__/useIsAboveBreakpoi
9
9
  import { filterStyledSystemMarginProps } from "../../../style/utils";
10
10
  import { TooltipProvider } from "../../../__internal__/tooltip-provider";
11
11
  import Logger from "../../../__internal__/utils/logger";
12
- import { NewValidationContext } from "../../carbon-provider/carbon-provider.component";
12
+ import NewValidationContext from "../../carbon-provider/__internal__/new-validation.context";
13
13
  import ValidationMessage from "../../../__internal__/validation-message/validation-message.component";
14
14
  import Box from "../../box";
15
15
  import { ErrorBorder } from "../../textbox/textbox.style";
@@ -7,7 +7,7 @@ import CheckableInput from "../../__internal__/checkable-input/checkable-input.c
7
7
  import RadioButtonSvg from "./radio-button-svg.component";
8
8
  import { filterStyledSystemMarginProps } from "../../style/utils";
9
9
  import { TooltipProvider } from "../../__internal__/tooltip-provider";
10
- import { NewValidationContext } from "../carbon-provider/carbon-provider.component";
10
+ import NewValidationContext from "../carbon-provider/__internal__/new-validation.context";
11
11
  const RadioButton = /*#__PURE__*/React.forwardRef(({
12
12
  autoFocus,
13
13
  checked,
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
  import StyledListActionButtonWrapper from "./list-action-button.style";
4
- import useLocale from "../../../hooks/__internal__/useLocale";
5
- import Button from "../../button";
4
+ import useLocale from "../../../../hooks/__internal__/useLocale";
5
+ import Button from "../../../button";
6
6
  const ListActionButton = /*#__PURE__*/React.forwardRef(({
7
7
  listActionButton,
8
8
  onListAction
@@ -1,5 +1,5 @@
1
1
  import styled from "styled-components";
2
- import StyledButton from "../../button/button.style";
2
+ import StyledButton from "../../../button/button.style";
3
3
  const StyledListActionButtonWrapper = styled.div`
4
4
  padding-top: var(--spacing100);
5
5
  padding-bottom: var(--spacing100);
@@ -4,19 +4,19 @@ import PropTypes from "prop-types";
4
4
  import { flip, offset, size } from "@floating-ui/dom";
5
5
  import { useVirtualizer, defaultRangeExtractor } from "@tanstack/react-virtual";
6
6
  import findLastIndex from "lodash/findLastIndex";
7
- import usePrevious from "../../../hooks/__internal__/usePrevious";
8
- import useScrollBlock from "../../../hooks/__internal__/useScrollBlock";
9
- import useModalManager from "../../../hooks/__internal__/useModalManager";
7
+ import usePrevious from "../../../../hooks/__internal__/usePrevious";
8
+ import useScrollBlock from "../../../../hooks/__internal__/useScrollBlock";
9
+ import useModalManager from "../../../../hooks/__internal__/useModalManager";
10
10
  import { StyledSelectList, StyledSelectLoaderContainer, StyledSelectListTable, StyledSelectListTableHeader, StyledSelectListTableBody, StyledSelectListContainer, StyledScrollableContainer } from "./select-list.style";
11
- import Popover from "../../../__internal__/popover";
12
- import OptionRow from "../option-row/option-row.component";
11
+ import Popover from "../../../../__internal__/popover";
12
+ import OptionRow from "../../option-row/option-row.component";
13
13
  import getNextChildByText from "../utils/get-next-child-by-text";
14
14
  import getNextIndexByKey from "../utils/get-next-index-by-key";
15
15
  import isNavigationKey from "../utils/is-navigation-key";
16
16
  import ListActionButton from "../list-action-button";
17
- import Loader from "../../loader";
18
- import Option from "../option";
19
- import SelectListContext from "../__internal__/select-list-context";
17
+ import Loader from "../../../loader";
18
+ import Option from "../../option";
19
+ import SelectListContext from "./select-list.context";
20
20
  const TABLE_HEADER_HEIGHT = 48;
21
21
  const SCROLL_OPTIONS = {
22
22
  behavior: "auto",
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
- import { baseTheme } from "../../../style/themes";
2
+ import { baseTheme } from "../../../../style/themes";
3
3
  const StyledSelectList = styled.ul`
4
4
  ${({
5
5
  listHeight
@@ -4,16 +4,8 @@ export interface SelectTextProps {
4
4
  disabled?: boolean;
5
5
  /** Value to be displayed */
6
6
  formattedValue?: string;
7
- /** Label id passed from Select component */
8
- labelId?: string;
9
- /** If true, the list is displayed */
10
- isOpen?: boolean;
11
- /** Callback function for when the Select Textbox loses it's focus. */
12
- onBlur?: (ev: React.FocusEvent<HTMLElement>) => void;
13
7
  /** Callback function for when the component is clicked. */
14
8
  onClick?: (ev: React.MouseEvent<HTMLElement>) => void;
15
- /** Callback function for when the Select Textbox is focused. */
16
- onFocus?: (ev: React.FocusEvent<HTMLElement>) => void;
17
9
  /** Callback function for when the key is pressed when focused on Select Text. */
18
10
  /** Callback function for when the left mouse key is pressed when focused on Select Text. */
19
11
  onMouseDown?: (ev: React.MouseEvent<HTMLElement>) => void;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { CommonTextboxProps } from "../../textbox";
3
- import { ValidationProps } from "../../../__internal__/validations";
4
- import { CustomSelectChangeEvent } from "../simple-select/simple-select.component";
2
+ import { CommonTextboxProps } from "../../../textbox";
3
+ import { ValidationProps } from "../../../../__internal__/validations";
4
+ import { CustomSelectChangeEvent } from "../../simple-select/simple-select.component";
5
5
  export interface FormInputPropTypes extends ValidationProps, Omit<CommonTextboxProps, "onClick" | "onChange"> {
6
6
  /** Breakpoint for adaptive label (inline labels change to top aligned). Enables the adaptive behaviour when set */
7
7
  adaptiveLabelBreakpoint?: number;
@@ -2,11 +2,11 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import React, { useMemo } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import { offset, size as sizeMiddleware } from "@floating-ui/dom";
5
- import useFloating from "../../../hooks/__internal__/useFloating";
6
- import Textbox from "../../textbox";
7
- import SelectText from "../__internal__/select-text";
8
- import useLocale from "../../../hooks/__internal__/useLocale";
9
- import { SelectTextboxContext } from "./select-textbox-context";
5
+ import useFloating from "../../../../hooks/__internal__/useFloating";
6
+ import Textbox from "../../../textbox";
7
+ import SelectText from "../select-text";
8
+ import useLocale from "../../../../hooks/__internal__/useLocale";
9
+ import { SelectTextboxContext } from "./select-textbox.context";
10
10
  const floatingMiddleware = [offset(({
11
11
  rects
12
12
  }) => ({
@@ -1,5 +1,5 @@
1
- import Option from "../option";
2
- import OptionRow from "../option-row/option-row.component";
1
+ import Option from "../../option";
2
+ import OptionRow from "../../option-row/option-row.component";
3
3
  import isExpectedValue from "./is-expected-value";
4
4
  export default function isExpectedOption(element, expectedValue) {
5
5
  if (element.type !== Option && element.type !== OptionRow) {
@@ -1,10 +1,10 @@
1
1
  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); }
2
2
  import React, { useCallback } from "react";
3
- import useLocale from "../../../hooks/__internal__/useLocale";
4
- import StyledOptionRow from "../option-row/option-row.style";
5
- import StyledOption from "../option/option.style";
6
- import Option from "../option";
7
- import OptionRow from "../option-row/option-row.component";
3
+ import useLocale from "../../../../hooks/__internal__/useLocale";
4
+ import StyledOptionRow from "../../option-row/option-row.style";
5
+ import StyledOption from "../../option/option.style";
6
+ import Option from "../../option";
7
+ import OptionRow from "../../option-row/option-row.component";
8
8
  import highlightPartOfText from "./highlight-part-of-text";
9
9
  const filterOptions = (option, filterText) => {
10
10
  const processedText = option.props.text?.toLowerCase();
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Side } from "@floating-ui/dom";
3
3
  import { ButtonProps } from "../../button";
4
- import { FormInputPropTypes } from "../select-textbox";
4
+ import { FormInputPropTypes } from "../__internal__/select-textbox";
5
5
  export interface FilterableSelectProps extends Omit<FormInputPropTypes, "defaultValue" | "value"> {
6
6
  /** Prop to specify the aria-label attribute of the component input */
7
7
  "aria-label"?: string;
@@ -3,13 +3,13 @@ import React, { useState, useEffect, useRef, useCallback } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import invariant from "invariant";
5
5
  import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
6
- import SelectTextbox from "../select-textbox";
6
+ import SelectTextbox from "../__internal__/select-textbox";
7
7
  import guid from "../../../__internal__/utils/helpers/guid";
8
- import withFilter from "../utils/with-filter.hoc";
8
+ import withFilter from "../__internal__/utils/with-filter.hoc";
9
9
  import StyledSelect from "../select.style";
10
- import SelectList from "../select-list/select-list.component";
11
- import isExpectedOption from "../utils/is-expected-option";
12
- import isNavigationKey from "../utils/is-navigation-key";
10
+ import SelectList from "../__internal__/select-list/select-list.component";
11
+ import isExpectedOption from "../__internal__/utils/is-expected-option";
12
+ import isNavigationKey from "../__internal__/utils/is-navigation-key";
13
13
  import Logger from "../../../__internal__/utils/logger";
14
14
  import useStableCallback from "../../../hooks/__internal__/useStableCallback";
15
15
  import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Side } from "@floating-ui/dom";
3
- import { FormInputPropTypes } from "../select-textbox";
3
+ import { FormInputPropTypes } from "../__internal__/select-textbox";
4
4
  export interface MultiSelectProps extends Omit<FormInputPropTypes, "defaultValue" | "value"> {
5
5
  /** Prop to specify the aria-label attribute of the component input */
6
6
  "aria-label"?: string;
@@ -3,15 +3,15 @@ import React, { useState, useEffect, useRef, useCallback, useMemo } from "react"
3
3
  import PropTypes from "prop-types";
4
4
  import invariant from "invariant";
5
5
  import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
6
- import SelectTextbox from "../select-textbox";
6
+ import SelectTextbox from "../__internal__/select-textbox";
7
7
  import guid from "../../../__internal__/utils/helpers/guid";
8
- import withFilter from "../utils/with-filter.hoc";
9
- import SelectList from "../select-list/select-list.component";
8
+ import withFilter from "../__internal__/utils/with-filter.hoc";
9
+ import SelectList from "../__internal__/select-list/select-list.component";
10
10
  import { StyledSelectPillContainer, StyledSelectMultiSelect, StyledAccessibilityLabelContainer } from "./multi-select.style";
11
11
  import Pill from "../../pill";
12
- import isExpectedOption from "../utils/is-expected-option";
13
- import isExpectedValue from "../utils/is-expected-value";
14
- import isNavigationKey from "../utils/is-navigation-key";
12
+ import isExpectedOption from "../__internal__/utils/is-expected-option";
13
+ import isExpectedValue from "../__internal__/utils/is-expected-value";
14
+ import isNavigationKey from "../__internal__/utils/is-navigation-key";
15
15
  import Logger from "../../../__internal__/utils/logger";
16
16
  import useStableCallback from "../../../hooks/__internal__/useStableCallback";
17
17
  import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
@@ -3,7 +3,7 @@ import React, { useContext, useRef } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import guid from "../../../__internal__/utils/helpers/guid";
5
5
  import StyledOption from "./option.style";
6
- import SelectListContext from "../__internal__/select-list-context";
6
+ import SelectListContext from "../__internal__/select-list/select-list.context";
7
7
  const Option = /*#__PURE__*/React.forwardRef(({
8
8
  text,
9
9
  children,
@@ -3,7 +3,7 @@ import React, { useContext, useRef } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import guid from "../../../__internal__/utils/helpers/guid";
5
5
  import StyledOptionRow from "./option-row.style";
6
- import SelectListContext from "../__internal__/select-list-context";
6
+ import SelectListContext from "../__internal__/select-list/select-list.context";
7
7
  const OptionRow = /*#__PURE__*/React.forwardRef(({
8
8
  id,
9
9
  text,
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Side } from "@floating-ui/dom";
3
- import { FormInputPropTypes } from "../select-textbox";
3
+ import { FormInputPropTypes } from "../__internal__/select-textbox";
4
4
  export interface OptionData {
5
5
  text?: string;
6
6
  value?: string | Record<string, unknown>;
@@ -4,12 +4,12 @@ import PropTypes from "prop-types";
4
4
  import invariant from "invariant";
5
5
  import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
6
6
  import StyledSelect from "../select.style";
7
- import SelectTextbox from "../select-textbox";
8
- import SelectList from "../select-list/select-list.component";
7
+ import SelectTextbox from "../__internal__/select-textbox";
8
+ import SelectList from "../__internal__/select-list/select-list.component";
9
9
  import guid from "../../../__internal__/utils/helpers/guid";
10
- import getNextChildByText from "../utils/get-next-child-by-text";
11
- import isExpectedOption from "../utils/is-expected-option";
12
- import isNavigationKey from "../utils/is-navigation-key";
10
+ import getNextChildByText from "../__internal__/utils/get-next-child-by-text";
11
+ import isExpectedOption from "../__internal__/utils/is-expected-option";
12
+ import isNavigationKey from "../__internal__/utils/is-navigation-key";
13
13
  import Logger from "../../../__internal__/utils/logger";
14
14
  import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
15
15
  import useInputAccessibility from "../../../hooks/__internal__/useInputAccessibility/useInputAccessibility";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export interface SidebarContextProps {
3
+ isInSidebar?: boolean;
4
+ }
5
+ declare const _default: React.Context<SidebarContextProps>;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default /*#__PURE__*/React.createContext({});
@@ -1,2 +1,2 @@
1
- export { default, SidebarContext } from "./sidebar.component";
1
+ export { default } from "./sidebar.component";
2
2
  export type { SidebarProps } from "./sidebar.component";
@@ -1 +1 @@
1
- export { default, SidebarContext } from "./sidebar.component";
1
+ export { default } from "./sidebar.component";
@@ -5,10 +5,6 @@ import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
5
5
  declare type CustomRefObject<T> = {
6
6
  current?: T | null;
7
7
  };
8
- export interface SidebarContextProps {
9
- isInSidebar?: boolean;
10
- }
11
- export declare const SidebarContext: React.Context<SidebarContextProps>;
12
8
  export interface SidebarProps extends PaddingProps, TagProps, WidthProps, Pick<ModalProps, "topModalOverride"> {
13
9
  /** Prop to specify the aria-describedby property of the component */
14
10
  "aria-describedby"?: string;
@@ -12,10 +12,10 @@ import createGuid from "../../__internal__/utils/helpers/guid";
12
12
  import useLocale from "../../hooks/__internal__/useLocale";
13
13
  import { filterStyledSystemPaddingProps } from "../../style/utils";
14
14
  import useModalAria from "../../hooks/__internal__/useModalAria/useModalAria";
15
+ import SidebarContext from "./__internal__/sidebar.context";
15
16
 
16
17
  // TODO FE-5408 will investigate why React.RefObject<T> produces a failed prop type when current = null
17
18
 
18
- export const SidebarContext = /*#__PURE__*/React.createContext({});
19
19
  const Sidebar = /*#__PURE__*/React.forwardRef(({
20
20
  "aria-describedby": ariaDescribedBy,
21
21
  "aria-label": ariaLabel,
@@ -7,7 +7,7 @@ import useIsAboveBreakpoint from "../../hooks/__internal__/useIsAboveBreakpoint"
7
7
  import { TooltipProvider } from "../../__internal__/tooltip-provider";
8
8
  import Logger from "../../__internal__/utils/logger";
9
9
  import useFormSpacing from "../../hooks/__internal__/useFormSpacing";
10
- import { NewValidationContext } from "../carbon-provider/carbon-provider.component";
10
+ import NewValidationContext from "../carbon-provider/__internal__/new-validation.context";
11
11
  import ValidationMessage from "../../__internal__/validation-message/validation-message.component";
12
12
  import Box from "../box";
13
13
  import Label from "../../__internal__/label";
@@ -1,2 +1,2 @@
1
- export { default, TabTitleContext } from "./tab-title.component";
1
+ export { default } from "./tab-title.component";
2
2
  export type { TabTitleProps } from "./tab-title.component";
@@ -1 +1 @@
1
- export { default, TabTitleContext } from "./tab-title.component";
1
+ export { default } from "./tab-title.component";
@@ -1,7 +1,4 @@
1
1
  import React from "react";
2
- interface TabTitleContextProps {
3
- isInTab?: boolean;
4
- }
5
2
  export interface TabTitleProps {
6
3
  /** Identifier used for testing purposes */
7
4
  "data-role"?: string;
@@ -33,6 +30,5 @@ export interface TabTitleProps {
33
30
  onClick: (ev: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
34
31
  onKeyDown: (ev: React.KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
35
32
  }
36
- export declare const TabTitleContext: React.Context<TabTitleContextProps>;
37
33
  declare const TabTitle: React.ForwardRefExoticComponent<TabTitleProps & React.RefAttributes<HTMLElement>>;
38
34
  export default TabTitle;
@@ -7,7 +7,7 @@ import ValidationIcon from "../../../../__internal__/validations/validation-icon
7
7
  import Icon from "../../../icon";
8
8
  import Events from "../../../../__internal__/utils/helpers/events";
9
9
  import { TooltipProvider } from "../../../../__internal__/tooltip-provider";
10
- export const TabTitleContext = /*#__PURE__*/React.createContext({});
10
+ import TabTitleContext from "./tab-title.context";
11
11
  const TabTitle = /*#__PURE__*/React.forwardRef(({
12
12
  isTabSelected,
13
13
  dataTabId,
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface TabTitleContextProps {
3
+ isInTab?: boolean;
4
+ }
5
+ declare const _default: React.Context<TabTitleContextProps>;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default /*#__PURE__*/React.createContext({});
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export interface TabContextProps {
3
+ setError?: (childId: string, error?: boolean | string) => void;
4
+ setWarning?: (childId: string, warning?: boolean | string) => void;
5
+ setInfo?: (childId: string, info?: boolean | string) => void;
6
+ }
7
+ declare const _default: React.Context<TabContextProps>;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default /*#__PURE__*/React.createContext({});
@@ -1,2 +1,2 @@
1
- export { default, TabContext } from "./tab.component";
2
- export type { TabProps, TabContextProps } from "./tab.component";
1
+ export { default } from "./tab.component";
2
+ export type { TabProps } from "./tab.component";