carbon-react 118.1.0 → 118.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 (346) hide show
  1. package/esm/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
  2. package/esm/__internal__/input/input-presentation.style.js +1 -0
  3. package/esm/__internal__/input/input.style.js +1 -0
  4. package/esm/components/action-popover/action-popover.style.js +3 -0
  5. package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
  6. package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
  7. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
  8. package/esm/components/badge/badge.style.js +1 -1
  9. package/esm/components/batch-selection/batch-selection.style.js +6 -0
  10. package/esm/components/box/box.component.d.ts +3 -0
  11. package/esm/components/box/box.component.js +4 -0
  12. package/esm/components/button/button.style.js +10 -9
  13. package/esm/components/button-bar/button-bar.style.js +19 -0
  14. package/esm/components/button-minor/button-minor.style.js +42 -40
  15. package/esm/components/button-toggle/button-toggle.component.js +2 -1
  16. package/esm/components/button-toggle/button-toggle.style.d.ts +1 -0
  17. package/esm/components/button-toggle/button-toggle.style.js +31 -13
  18. package/esm/components/button-toggle-group/button-toggle-group.style.js +21 -3
  19. package/esm/components/card/__internal__/card-context/index.d.ts +7 -0
  20. package/esm/components/card/__internal__/card-context/index.js +2 -0
  21. package/esm/components/card/card-footer/card-footer.component.js +9 -2
  22. package/esm/components/card/card-footer/card-footer.style.d.ts +2 -1
  23. package/esm/components/card/card-footer/card-footer.style.js +10 -1
  24. package/esm/components/card/card.component.d.ts +3 -2
  25. package/esm/components/card/card.component.js +10 -1
  26. package/esm/components/card/card.style.d.ts +2 -1
  27. package/esm/components/card/card.style.js +3 -1
  28. package/esm/components/carousel/carousel.component.js +1 -1
  29. package/esm/components/carousel/carousel.style.js +4 -2
  30. package/esm/components/carousel/slide/slide.style.js +2 -0
  31. package/esm/components/checkbox/checkbox.style.js +2 -0
  32. package/esm/components/date/__internal__/date-picker/day-picker.style.js +4 -0
  33. package/esm/components/date/__internal__/navbar/button.style.js +2 -0
  34. package/esm/components/dialog/dialog.style.js +5 -0
  35. package/esm/components/dismissible-box/dismissible-box.component.d.ts +1 -1
  36. package/esm/components/dismissible-box/dismissible-box.component.js +4 -1
  37. package/esm/components/drawer/drawer.style.js +1 -0
  38. package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
  39. package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
  40. package/esm/components/flat-table/flat-table.component.js +56 -2
  41. package/esm/components/flat-table/flat-table.style.js +101 -1
  42. package/esm/components/flat-table/sort/sort.style.js +1 -0
  43. package/esm/components/icon-button/icon-button.style.js +1 -0
  44. package/esm/components/inline-inputs/inline-inputs.style.js +18 -0
  45. package/esm/components/link/link.style.js +1 -0
  46. package/esm/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
  47. package/esm/components/link-preview/__internal__/placeholder.component.js +4 -1
  48. package/esm/components/link-preview/link-preview.style.js +1 -0
  49. package/esm/components/loader/loader-square.style.js +5 -0
  50. package/esm/components/loader-bar/loader-bar.style.js +1 -0
  51. package/esm/components/menu/__internal__/submenu/submenu.style.js +13 -0
  52. package/esm/components/menu/menu.style.js +13 -6
  53. package/esm/components/menu/scrollable-block/scrollable-block.style.js +15 -0
  54. package/esm/components/message/message.style.js +2 -0
  55. package/esm/components/multi-action-button/multi-action-button.style.js +4 -0
  56. package/esm/components/note/note.style.js +1 -0
  57. package/esm/components/numeral-date/numeral-date.component.js +2 -0
  58. package/esm/components/numeral-date/numeral-date.style.d.ts +1 -0
  59. package/esm/components/numeral-date/numeral-date.style.js +12 -0
  60. package/esm/components/pager/pager.component.js +5 -5
  61. package/esm/components/pager/pager.style.js +2 -0
  62. package/esm/components/pill/pill.component.d.ts +3 -1
  63. package/esm/components/pill/pill.component.js +1 -0
  64. package/esm/components/pill/pill.style.js +5 -15
  65. package/esm/components/pod/pod.style.js +6 -0
  66. package/esm/components/popover-container/popover-container.style.js +1 -0
  67. package/esm/components/portrait/portrait-gravatar.component.js +1 -1
  68. package/esm/components/portrait/portrait-initials.component.js +1 -1
  69. package/esm/components/portrait/portrait.component.js +1 -1
  70. package/esm/components/portrait/portrait.style.js +1 -3
  71. package/esm/components/profile/profile.component.js +1 -1
  72. package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
  73. package/esm/components/radio-button/radio-button.style.js +1 -1
  74. package/esm/components/search/search-button.style.js +5 -0
  75. package/esm/components/search/search.style.js +7 -0
  76. package/esm/components/select/__internal__/select-list-context.d.ts +7 -0
  77. package/esm/components/select/__internal__/select-text/index.d.ts +2 -0
  78. package/esm/components/select/__internal__/select-text/index.js +1 -0
  79. package/esm/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
  80. package/esm/components/select/__internal__/select-text/select-text.component.js +16 -36
  81. package/esm/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
  82. package/esm/components/select/filterable-select/filterable-select.component.d.ts +65 -0
  83. package/esm/components/select/filterable-select/filterable-select.component.js +568 -102
  84. package/esm/components/select/filterable-select/index.d.ts +2 -1
  85. package/esm/components/select/filterable-select/index.js +1 -0
  86. package/esm/components/select/index.d.ts +6 -0
  87. package/esm/components/select/index.js +6 -6
  88. package/esm/components/select/list-action-button/index.d.ts +2 -0
  89. package/esm/components/select/list-action-button/index.js +1 -0
  90. package/esm/components/select/list-action-button/list-action-button.component.d.ts +7 -0
  91. package/esm/components/select/list-action-button/list-action-button.component.js +9 -6
  92. package/esm/components/select/list-action-button/list-action-button.style.d.ts +2 -0
  93. package/esm/components/select/multi-select/index.d.ts +2 -1
  94. package/esm/components/select/multi-select/index.js +1 -0
  95. package/esm/components/select/multi-select/multi-select.component.d.ts +62 -0
  96. package/esm/components/select/multi-select/multi-select.component.js +575 -104
  97. package/esm/components/select/multi-select/multi-select.style.d.ts +4 -0
  98. package/esm/components/select/multi-select/multi-select.style.js +1 -0
  99. package/esm/components/select/option/index.d.ts +2 -25
  100. package/esm/components/select/option/index.js +1 -0
  101. package/esm/components/select/option/option.component.d.ts +34 -0
  102. package/esm/components/select/option/option.component.js +399 -62
  103. package/esm/components/select/option/option.style.d.ts +6 -0
  104. package/esm/components/select/option/option.style.js +0 -5
  105. package/esm/components/select/option-group-header/index.d.ts +2 -10
  106. package/esm/components/select/option-group-header/index.js +1 -0
  107. package/esm/components/select/option-group-header/option-group-header.component.d.ts +16 -0
  108. package/esm/components/select/option-group-header/option-group-header.component.js +4 -15
  109. package/esm/components/select/option-group-header/option-group-header.style.d.ts +2 -0
  110. package/esm/components/select/option-row/index.d.ts +2 -16
  111. package/esm/components/select/option-row/index.js +1 -0
  112. package/esm/components/select/option-row/option-row.component.d.ts +42 -0
  113. package/esm/components/select/option-row/option-row.component.js +10 -40
  114. package/esm/components/select/option-row/option-row.style.d.ts +6 -0
  115. package/esm/components/select/select-list/index.d.ts +2 -0
  116. package/esm/components/select/select-list/index.js +1 -0
  117. package/esm/components/select/select-list/select-list-container.style.d.ts +6 -0
  118. package/esm/components/select/select-list/select-list-container.style.js +1 -0
  119. package/esm/components/select/select-list/select-list.component.d.ts +64 -0
  120. package/esm/components/select/select-list/select-list.component.js +69 -100
  121. package/esm/components/select/select-list/select-list.style.d.ts +12 -0
  122. package/esm/components/select/select-list/select-list.style.js +2 -2
  123. package/esm/components/select/select-textbox/index.d.ts +2 -1
  124. package/esm/components/select/select-textbox/index.js +1 -0
  125. package/esm/components/select/select-textbox/select-textbox.component.d.ts +81 -0
  126. package/esm/components/select/select-textbox/select-textbox.component.js +567 -142
  127. package/esm/components/select/select.style.d.ts +8 -0
  128. package/esm/components/select/simple-select/index.d.ts +2 -1
  129. package/esm/components/select/simple-select/index.js +1 -0
  130. package/esm/components/select/simple-select/simple-select.component.d.ts +58 -0
  131. package/esm/components/select/simple-select/simple-select.component.js +578 -111
  132. package/esm/components/select/utils/get-next-child-by-text.d.ts +5 -0
  133. package/esm/components/select/utils/get-next-child-by-text.js +20 -17
  134. package/esm/components/select/utils/get-next-index-by-key.d.ts +2 -0
  135. package/esm/components/select/utils/highlight-part-of-text.d.ts +2 -0
  136. package/esm/components/select/utils/highlight-part-of-text.js +10 -3
  137. package/esm/components/select/utils/is-expected-option.d.ts +2 -0
  138. package/esm/components/select/utils/is-expected-option.js +1 -1
  139. package/esm/components/select/utils/is-expected-value.d.ts +1 -0
  140. package/esm/components/select/utils/is-expected-value.js +1 -1
  141. package/esm/components/select/utils/is-navigation-key.d.ts +1 -0
  142. package/esm/components/select/utils/matching-text.style.d.ts +2 -0
  143. package/esm/components/select/utils/with-filter.hoc.d.ts +14 -0
  144. package/esm/components/select/utils/with-filter.hoc.js +59 -41
  145. package/esm/components/split-button/split-button-children.style.d.ts +1 -0
  146. package/esm/components/split-button/split-button-children.style.js +28 -0
  147. package/esm/components/split-button/split-button-toggle.style.js +6 -1
  148. package/esm/components/split-button/split-button.style.js +5 -2
  149. package/esm/components/switch/__internal__/switch-slider.style.js +1 -2
  150. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
  151. package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
  152. package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
  153. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
  154. package/esm/components/text-editor/text-editor.style.js +3 -0
  155. package/esm/components/tile/tile.component.d.ts +3 -1
  156. package/esm/components/tile/tile.component.js +3 -1
  157. package/esm/components/tile/tile.style.d.ts +1 -1
  158. package/esm/components/tile/tile.style.js +4 -1
  159. package/esm/components/tile-select/tile-select.style.d.ts +1 -0
  160. package/esm/components/tile-select/tile-select.style.js +8 -0
  161. package/esm/components/tooltip/tooltip.style.js +1 -0
  162. package/esm/components/vertical-menu/vertical-menu.style.js +1 -0
  163. package/lib/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
  164. package/lib/__internal__/input/input-presentation.style.js +1 -0
  165. package/lib/__internal__/input/input.style.js +1 -0
  166. package/lib/components/action-popover/action-popover.style.js +3 -0
  167. package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
  168. package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
  169. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
  170. package/lib/components/badge/badge.style.js +1 -1
  171. package/lib/components/batch-selection/batch-selection.style.js +6 -0
  172. package/lib/components/box/box.component.d.ts +3 -0
  173. package/lib/components/box/box.component.js +4 -0
  174. package/lib/components/button/button.style.js +10 -9
  175. package/lib/components/button-bar/button-bar.style.js +19 -0
  176. package/lib/components/button-minor/button-minor.style.js +42 -40
  177. package/lib/components/button-toggle/button-toggle.component.js +2 -1
  178. package/lib/components/button-toggle/button-toggle.style.d.ts +1 -0
  179. package/lib/components/button-toggle/button-toggle.style.js +31 -13
  180. package/lib/components/button-toggle-group/button-toggle-group.style.js +21 -3
  181. package/lib/components/card/__internal__/card-context/index.d.ts +7 -0
  182. package/lib/components/card/__internal__/card-context/index.js +14 -0
  183. package/lib/components/card/__internal__/card-context/package.json +6 -0
  184. package/lib/components/card/card-footer/card-footer.component.js +14 -2
  185. package/lib/components/card/card-footer/card-footer.style.d.ts +2 -1
  186. package/lib/components/card/card-footer/card-footer.style.js +10 -1
  187. package/lib/components/card/card.component.d.ts +3 -2
  188. package/lib/components/card/card.component.js +11 -1
  189. package/lib/components/card/card.style.d.ts +2 -1
  190. package/lib/components/card/card.style.js +3 -1
  191. package/lib/components/carousel/carousel.component.js +1 -1
  192. package/lib/components/carousel/carousel.style.js +4 -2
  193. package/lib/components/carousel/slide/slide.style.js +2 -0
  194. package/lib/components/checkbox/checkbox.style.js +2 -0
  195. package/lib/components/date/__internal__/date-picker/day-picker.style.js +4 -0
  196. package/lib/components/date/__internal__/navbar/button.style.js +2 -0
  197. package/lib/components/dialog/dialog.style.js +5 -0
  198. package/lib/components/dismissible-box/dismissible-box.component.d.ts +1 -1
  199. package/lib/components/dismissible-box/dismissible-box.component.js +4 -1
  200. package/lib/components/drawer/drawer.style.js +1 -0
  201. package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
  202. package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
  203. package/lib/components/flat-table/flat-table.component.js +60 -2
  204. package/lib/components/flat-table/flat-table.style.js +102 -1
  205. package/lib/components/flat-table/sort/sort.style.js +1 -0
  206. package/lib/components/icon-button/icon-button.style.js +1 -0
  207. package/lib/components/inline-inputs/inline-inputs.style.js +18 -0
  208. package/lib/components/link/link.style.js +1 -0
  209. package/lib/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
  210. package/lib/components/link-preview/__internal__/placeholder.component.js +6 -1
  211. package/lib/components/link-preview/link-preview.style.js +1 -0
  212. package/lib/components/loader/loader-square.style.js +5 -0
  213. package/lib/components/loader-bar/loader-bar.style.js +1 -0
  214. package/lib/components/menu/__internal__/submenu/submenu.style.js +13 -0
  215. package/lib/components/menu/menu.style.js +13 -6
  216. package/lib/components/menu/scrollable-block/scrollable-block.style.js +18 -0
  217. package/lib/components/message/message.style.js +2 -0
  218. package/lib/components/multi-action-button/multi-action-button.style.js +5 -0
  219. package/lib/components/note/note.style.js +1 -0
  220. package/lib/components/numeral-date/numeral-date.component.js +2 -0
  221. package/lib/components/numeral-date/numeral-date.style.d.ts +1 -0
  222. package/lib/components/numeral-date/numeral-date.style.js +12 -0
  223. package/lib/components/pager/pager.component.js +5 -5
  224. package/lib/components/pager/pager.style.js +2 -0
  225. package/lib/components/pill/pill.component.d.ts +3 -1
  226. package/lib/components/pill/pill.component.js +1 -0
  227. package/lib/components/pill/pill.style.js +5 -15
  228. package/lib/components/pod/pod.style.js +6 -0
  229. package/lib/components/popover-container/popover-container.style.js +1 -0
  230. package/lib/components/portrait/portrait-gravatar.component.js +1 -1
  231. package/lib/components/portrait/portrait-initials.component.js +1 -1
  232. package/lib/components/portrait/portrait.component.js +1 -1
  233. package/lib/components/portrait/portrait.style.js +1 -3
  234. package/lib/components/profile/profile.component.js +1 -1
  235. package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
  236. package/lib/components/radio-button/radio-button.style.js +1 -1
  237. package/lib/components/search/search-button.style.js +5 -0
  238. package/lib/components/search/search.style.js +7 -0
  239. package/lib/components/select/__internal__/select-list-context.d.ts +7 -0
  240. package/lib/components/select/__internal__/select-text/index.d.ts +2 -0
  241. package/lib/components/select/__internal__/select-text/index.js +15 -0
  242. package/lib/components/select/__internal__/select-text/package.json +6 -0
  243. package/lib/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
  244. package/lib/components/select/__internal__/select-text/select-text.component.js +16 -36
  245. package/lib/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
  246. package/lib/components/select/filterable-select/filterable-select.component.d.ts +65 -0
  247. package/lib/components/select/filterable-select/filterable-select.component.js +569 -103
  248. package/lib/components/select/filterable-select/index.d.ts +2 -1
  249. package/lib/components/select/filterable-select/index.js +15 -0
  250. package/lib/components/select/filterable-select/package.json +6 -0
  251. package/lib/components/select/index.d.ts +6 -0
  252. package/lib/components/select/index.js +6 -6
  253. package/lib/components/select/list-action-button/index.d.ts +2 -0
  254. package/lib/components/select/list-action-button/index.js +15 -0
  255. package/lib/components/select/list-action-button/list-action-button.component.d.ts +7 -0
  256. package/lib/components/select/list-action-button/list-action-button.component.js +9 -6
  257. package/lib/components/select/list-action-button/list-action-button.style.d.ts +2 -0
  258. package/lib/components/select/list-action-button/package.json +6 -0
  259. package/lib/components/select/multi-select/index.d.ts +2 -1
  260. package/lib/components/select/multi-select/index.js +15 -0
  261. package/lib/components/select/multi-select/multi-select.component.d.ts +62 -0
  262. package/lib/components/select/multi-select/multi-select.component.js +576 -105
  263. package/lib/components/select/multi-select/multi-select.style.d.ts +4 -0
  264. package/lib/components/select/multi-select/multi-select.style.js +1 -0
  265. package/lib/components/select/multi-select/package.json +6 -0
  266. package/lib/components/select/option/index.d.ts +2 -25
  267. package/lib/components/select/option/index.js +15 -0
  268. package/lib/components/select/option/option.component.d.ts +34 -0
  269. package/lib/components/select/option/option.component.js +399 -62
  270. package/lib/components/select/option/option.style.d.ts +6 -0
  271. package/lib/components/select/option/option.style.js +0 -8
  272. package/lib/components/select/option/package.json +6 -0
  273. package/lib/components/select/option-group-header/index.d.ts +2 -10
  274. package/lib/components/select/option-group-header/index.js +15 -0
  275. package/lib/components/select/option-group-header/option-group-header.component.d.ts +16 -0
  276. package/lib/components/select/option-group-header/option-group-header.component.js +4 -15
  277. package/lib/components/select/option-group-header/option-group-header.style.d.ts +2 -0
  278. package/lib/components/select/option-group-header/package.json +6 -0
  279. package/lib/components/select/option-row/index.d.ts +2 -16
  280. package/lib/components/select/option-row/index.js +15 -0
  281. package/lib/components/select/option-row/option-row.component.d.ts +42 -0
  282. package/lib/components/select/option-row/option-row.component.js +10 -40
  283. package/lib/components/select/option-row/option-row.style.d.ts +6 -0
  284. package/lib/components/select/option-row/package.json +6 -0
  285. package/lib/components/select/select-list/index.d.ts +2 -0
  286. package/lib/components/select/select-list/index.js +15 -0
  287. package/lib/components/select/select-list/package.json +6 -0
  288. package/lib/components/select/select-list/select-list-container.style.d.ts +6 -0
  289. package/lib/components/select/select-list/select-list-container.style.js +1 -0
  290. package/lib/components/select/select-list/select-list.component.d.ts +64 -0
  291. package/lib/components/select/select-list/select-list.component.js +69 -100
  292. package/lib/components/select/select-list/select-list.style.d.ts +12 -0
  293. package/lib/components/select/select-list/select-list.style.js +2 -2
  294. package/lib/components/select/select-textbox/index.d.ts +2 -1
  295. package/lib/components/select/select-textbox/index.js +15 -0
  296. package/lib/components/select/select-textbox/package.json +6 -0
  297. package/lib/components/select/select-textbox/select-textbox.component.d.ts +81 -0
  298. package/lib/components/select/select-textbox/select-textbox.component.js +567 -142
  299. package/lib/components/select/select.style.d.ts +8 -0
  300. package/lib/components/select/simple-select/index.d.ts +2 -1
  301. package/lib/components/select/simple-select/index.js +15 -0
  302. package/lib/components/select/simple-select/package.json +6 -0
  303. package/lib/components/select/simple-select/simple-select.component.d.ts +58 -0
  304. package/lib/components/select/simple-select/simple-select.component.js +579 -113
  305. package/lib/components/select/utils/get-next-child-by-text.d.ts +5 -0
  306. package/lib/components/select/utils/get-next-child-by-text.js +20 -17
  307. package/lib/components/select/utils/get-next-index-by-key.d.ts +2 -0
  308. package/lib/components/select/utils/highlight-part-of-text.d.ts +2 -0
  309. package/lib/components/select/utils/highlight-part-of-text.js +10 -3
  310. package/lib/components/select/utils/is-expected-option.d.ts +2 -0
  311. package/lib/components/select/utils/is-expected-option.js +1 -1
  312. package/lib/components/select/utils/is-expected-value.d.ts +1 -0
  313. package/lib/components/select/utils/is-expected-value.js +1 -1
  314. package/lib/components/select/utils/is-navigation-key.d.ts +1 -0
  315. package/lib/components/select/utils/matching-text.style.d.ts +2 -0
  316. package/lib/components/select/utils/with-filter.hoc.d.ts +14 -0
  317. package/lib/components/select/utils/with-filter.hoc.js +59 -42
  318. package/lib/components/split-button/split-button-children.style.d.ts +1 -0
  319. package/lib/components/split-button/split-button-children.style.js +30 -1
  320. package/lib/components/split-button/split-button-toggle.style.js +6 -1
  321. package/lib/components/split-button/split-button.style.js +5 -2
  322. package/lib/components/switch/__internal__/switch-slider.style.js +1 -2
  323. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
  324. package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
  325. package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
  326. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
  327. package/lib/components/text-editor/text-editor.style.js +3 -0
  328. package/lib/components/tile/tile.component.d.ts +3 -1
  329. package/lib/components/tile/tile.component.js +3 -1
  330. package/lib/components/tile/tile.style.d.ts +1 -1
  331. package/lib/components/tile/tile.style.js +4 -1
  332. package/lib/components/tile-select/tile-select.style.d.ts +1 -0
  333. package/lib/components/tile-select/tile-select.style.js +8 -0
  334. package/lib/components/tooltip/tooltip.style.js +1 -0
  335. package/lib/components/vertical-menu/vertical-menu.style.js +1 -0
  336. package/package.json +1 -1
  337. package/esm/components/select/__internal__/select-text/select-text.d.ts +0 -36
  338. package/esm/components/select/filterable-select/filterable-select.d.ts +0 -71
  339. package/esm/components/select/multi-select/multi-select.d.ts +0 -68
  340. package/esm/components/select/select-textbox/select-textbox.d.ts +0 -72
  341. package/esm/components/select/simple-select/simple-select.d.ts +0 -64
  342. package/lib/components/select/__internal__/select-text/select-text.d.ts +0 -36
  343. package/lib/components/select/filterable-select/filterable-select.d.ts +0 -71
  344. package/lib/components/select/multi-select/multi-select.d.ts +0 -68
  345. package/lib/components/select/select-textbox/select-textbox.d.ts +0 -72
  346. package/lib/components/select/simple-select/simple-select.d.ts +0 -64
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ /**
3
+ * Recreates HTML Select element functionality of finding first match based on typed characters
4
+ * */
5
+ export default function getNextChildByText(textToMatch: string, arrayOfChildren: React.ReactElement[], previousIndex?: number): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -5,20 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = getNextChildByText;
7
7
 
8
- /**
9
- * Recreates HTML Select element functionality of finding first match based on typed characters
10
- * */
11
- function getNextChildByText(textToMatch, arrayOfChildren, previousIndex = -1) {
12
- const lastCharacter = textToMatch.slice(-1);
13
- const isTheSameCharacter = textToMatch.split("").every(character => character === lastCharacter);
14
- let indexOfMatch = findElementStartingWithText(textToMatch, arrayOfChildren);
15
- const listOfMatches = getListOfMatches(arrayOfChildren, lastCharacter);
16
-
17
- if (isTheSameCharacter && listOfMatches.length > 1) {
18
- indexOfMatch = getIndexOfNextElement(listOfMatches, previousIndex);
19
- }
8
+ function findElementStartingWithText(textToMatch, list) {
9
+ return list.findIndex(child => {
10
+ var _child$props$text;
20
11
 
21
- return arrayOfChildren[indexOfMatch];
12
+ return (_child$props$text = child.props.text) === null || _child$props$text === void 0 ? void 0 : _child$props$text.toLowerCase().startsWith(textToMatch.toLowerCase());
13
+ });
22
14
  }
23
15
 
24
16
  function getListOfMatches(arrayOfChildren, lastCharacter) {
@@ -40,9 +32,20 @@ function getIndexOfNextElement(listOfMatches, previousIndex) {
40
32
 
41
33
  return listOfMatches[listOfMatches.indexOf(previousIndex) + 1];
42
34
  }
35
+ /**
36
+ * Recreates HTML Select element functionality of finding first match based on typed characters
37
+ * */
43
38
 
44
- function findElementStartingWithText(textToMatch, list) {
45
- return list.findIndex(child => {
46
- return child.props.text && child.props.text.toLowerCase().startsWith(textToMatch.toLowerCase());
47
- });
39
+
40
+ function getNextChildByText(textToMatch, arrayOfChildren, previousIndex = -1) {
41
+ const lastCharacter = textToMatch.slice(-1);
42
+ const isTheSameCharacter = textToMatch.split("").every(character => character === lastCharacter);
43
+ let indexOfMatch = findElementStartingWithText(textToMatch, arrayOfChildren);
44
+ const listOfMatches = getListOfMatches(arrayOfChildren, lastCharacter);
45
+
46
+ if (isTheSameCharacter && listOfMatches.length > 1) {
47
+ indexOfMatch = getIndexOfNextElement(listOfMatches, previousIndex);
48
+ }
49
+
50
+ return arrayOfChildren[indexOfMatch];
48
51
  }
@@ -0,0 +1,2 @@
1
+ export declare const PAGE_SIZE = 4;
2
+ export default function getNextIndexByKey(key: string, currentIndex: number, lastIndex: number, isLoading?: boolean): number;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function highlightPartOfTextRecursive(child: React.ReactNode, partToHighlight: string): React.ReactNode;
@@ -23,10 +23,11 @@ function highlightPartOfText(text, partToHighlight) {
23
23
 
24
24
  const precedingText = text.substr(0, indexOfFirstMatch);
25
25
  const matchingText = text.substr(indexOfFirstMatch, partToHighlight.length);
26
- let followingText = text.substr(indexOfFirstMatch + partToHighlight.length, text.length);
26
+ const followingText = text.substr(indexOfFirstMatch + partToHighlight.length, text.length);
27
+ let followingTextNode = followingText;
27
28
 
28
29
  if (followingText.length >= partToHighlight.length) {
29
- followingText = highlightPartOfText(followingText, partToHighlight);
30
+ followingTextNode = highlightPartOfText(followingText, partToHighlight);
30
31
  }
31
32
 
32
33
  const newValue = [/*#__PURE__*/_react.default.createElement("span", {
@@ -35,7 +36,7 @@ function highlightPartOfText(text, partToHighlight) {
35
36
  key: "match"
36
37
  }, matchingText), /*#__PURE__*/_react.default.createElement("span", {
37
38
  key: "following"
38
- }, followingText)];
39
+ }, followingTextNode)];
39
40
  return newValue;
40
41
  }
41
42
 
@@ -43,6 +44,12 @@ function highlightPartOfTextRecursive(child, partToHighlight) {
43
44
  if (typeof child === "string") {
44
45
  return highlightPartOfText(child, partToHighlight);
45
46
  }
47
+ /* istanbul ignore if */
48
+
49
+
50
+ if (! /*#__PURE__*/_react.default.isValidElement(child)) {
51
+ return child;
52
+ }
46
53
 
47
54
  const highlightedChildren = _react.default.Children.map(child.props.children, grandChild => highlightPartOfTextRecursive(grandChild, partToHighlight));
48
55
 
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function isExpectedOption(element: React.ReactElement, expectedValue?: string | Record<string, unknown> | null): boolean;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = isExpectedOption;
7
7
 
8
- var _option = _interopRequireDefault(require("../option/option.component"));
8
+ var _option = _interopRequireDefault(require("../option"));
9
9
 
10
10
  var _optionRow = _interopRequireDefault(require("../option-row/option-row.component"));
11
11
 
@@ -0,0 +1 @@
1
+ export default function isExpectedValue(currentValue: string | Record<string, unknown>, expectedValue: string | Record<string, unknown>): boolean;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = isExpectedValue;
7
7
 
8
8
  function isExpectedValue(currentValue, expectedValue) {
9
- if (typeof currentValue === "object" && currentValue.id !== null && currentValue.id !== undefined) {
9
+ if (typeof currentValue === "object" && currentValue.id !== null && currentValue.id !== undefined && typeof expectedValue === "object") {
10
10
  return currentValue.id === expectedValue.id;
11
11
  }
12
12
 
@@ -0,0 +1 @@
1
+ export default function isNavigationKey(key: string): boolean;
@@ -0,0 +1,2 @@
1
+ declare const MatchingText: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export default MatchingText;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ interface WrappedComponentProps {
3
+ filterText?: string;
4
+ isLoading?: boolean;
5
+ multiColumn?: boolean;
6
+ tableHeader?: React.ReactNode;
7
+ children?: React.ReactNode;
8
+ }
9
+ export interface FilteredComponentProps extends WrappedComponentProps {
10
+ noResultsMessage?: string;
11
+ }
12
+ /** Filters wrapped component children based on provided filter text and highlights matching content */
13
+ declare const withFilter: <T extends WrappedComponentProps>(WrappedComponent: React.ComponentType<T>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<FilteredComponentProps & T> & React.RefAttributes<HTMLDivElement>>;
14
+ export default withFilter;
@@ -7,15 +7,13 @@ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
10
  var _useLocale = _interopRequireDefault(require("../../../hooks/__internal__/useLocale"));
13
11
 
14
12
  var _optionRow = _interopRequireDefault(require("../option-row/option-row.style"));
15
13
 
16
14
  var _option = _interopRequireDefault(require("../option/option.style"));
17
15
 
18
- var _option2 = _interopRequireDefault(require("../option/option.component"));
16
+ var _option2 = _interopRequireDefault(require("../option"));
19
17
 
20
18
  var _optionRow2 = _interopRequireDefault(require("../option-row/option-row.component"));
21
19
 
@@ -46,6 +44,11 @@ const filterOptionRows = (optionRow, filterText) => {
46
44
  const cells = _react.default.Children.toArray(optionRow.props.children);
47
45
 
48
46
  const hasText = cells.find(cell => {
47
+ /* istanbul ignore if */
48
+ if (! /*#__PURE__*/_react.default.isValidElement(cell)) {
49
+ return false;
50
+ }
51
+
49
52
  if (typeof cell.props.children === "string") {
50
53
  const processedText = cell.props.children.toLowerCase();
51
54
  const processedValue = filterText.toLowerCase();
@@ -64,15 +67,23 @@ const filterOptionRows = (optionRow, filterText) => {
64
67
  };
65
68
 
66
69
  const filterChildren = filterText => children => {
67
- // eslint-disable-next-line consistent-return
68
70
  const filteredChildren = _react.default.Children.map(children, child => {
71
+ /* istanbul ignore if */
72
+ if (! /*#__PURE__*/_react.default.isValidElement(child)) {
73
+ return null;
74
+ }
75
+
69
76
  if (child.type === _option2.default) {
70
77
  return filterOptions(child, filterText);
71
78
  }
79
+ /* istanbul ignore else */
80
+
72
81
 
73
82
  if (child.type === _optionRow2.default) {
74
83
  return filterOptionRows(child, filterText);
75
84
  }
85
+ /* istanbul ignore next */
86
+
76
87
 
77
88
  return null;
78
89
  });
@@ -80,9 +91,40 @@ const filterChildren = filterText => children => {
80
91
  if (_react.default.Children.count(filteredChildren)) return filteredChildren;
81
92
  return null;
82
93
  };
83
- /** Filters wrapped component children based on provided filter text and highlights matching content */
84
94
 
95
+ function addHighlightedContent(filteredElements, filterText) {
96
+ return _react.default.Children.map(filteredElements, child => {
97
+ let highlightedContent;
98
+ /* istanbul ignore if */
99
+
100
+ if (! /*#__PURE__*/_react.default.isValidElement(child)) {
101
+ return child;
102
+ }
85
103
 
104
+ if (child.type === _option2.default) {
105
+ highlightedContent = (0, _highlightPartOfText.default)(child.props.text, filterText);
106
+ }
107
+
108
+ if (child.type === _optionRow2.default) {
109
+ highlightedContent = _react.default.Children.map(child.props.children, cell => {
110
+ /* istanbul ignore if */
111
+ if (! /*#__PURE__*/_react.default.isValidElement(cell)) {
112
+ return cell;
113
+ }
114
+
115
+ return /*#__PURE__*/_react.default.cloneElement(cell, {
116
+ children: (0, _highlightPartOfText.default)(cell.props.children, filterText)
117
+ });
118
+ });
119
+ }
120
+
121
+ return /*#__PURE__*/_react.default.cloneElement(child, {
122
+ children: highlightedContent
123
+ });
124
+ });
125
+ }
126
+
127
+ /** Filters wrapped component children based on provided filter text and highlights matching content */
86
128
  const withFilter = WrappedComponent => {
87
129
  const FilteredComponent = /*#__PURE__*/_react.default.forwardRef(({
88
130
  children,
@@ -106,8 +148,9 @@ const withFilter = WrappedComponent => {
106
148
  if (multiColumn) {
107
149
  var _tableHeader$props;
108
150
 
109
- const colSpan = _react.default.Children.count(tableHeader === null || tableHeader === void 0 ? void 0 : (_tableHeader$props = tableHeader.props) === null || _tableHeader$props === void 0 ? void 0 : _tableHeader$props.children);
110
-
151
+ const colSpan = /*#__PURE__*/_react.default.isValidElement(tableHeader) ?
152
+ /* istanbul ignore next */
153
+ _react.default.Children.count(tableHeader === null || tableHeader === void 0 ? void 0 : (_tableHeader$props = tableHeader.props) === null || _tableHeader$props === void 0 ? void 0 : _tableHeader$props.children) : 1;
111
154
  return /*#__PURE__*/_react.default.createElement(_optionRow.default, null, /*#__PURE__*/_react.default.createElement("td", {
112
155
  style: {
113
156
  fontWeight: "normal"
@@ -124,45 +167,19 @@ const withFilter = WrappedComponent => {
124
167
 
125
168
  return children;
126
169
  }, [children, filterText, isLoading, multiColumn, noResultsMessage, tableHeader, l]);
127
- return /*#__PURE__*/_react.default.createElement(WrappedComponent, _extends({
128
- filterText: filterText,
129
- isLoading: isLoading,
130
- multiColumn: multiColumn,
131
- tableHeader: tableHeader
132
- }, props, {
170
+ const wrappedComponentProps = {
171
+ filterText,
172
+ isLoading,
173
+ multiColumn,
174
+ tableHeader,
175
+ ...props
176
+ };
177
+ return /*#__PURE__*/_react.default.createElement(WrappedComponent, _extends({}, wrappedComponentProps, {
133
178
  ref: forwardedRef
134
179
  }), getFilteredChildren());
135
180
  });
136
181
 
137
- function addHighlightedContent(filteredElements, filterText) {
138
- return _react.default.Children.map(filteredElements, child => {
139
- let highlightedContent;
140
-
141
- if (child.type === _option2.default) {
142
- highlightedContent = (0, _highlightPartOfText.default)(child.props.text, filterText);
143
- }
144
-
145
- if (child.type === _optionRow2.default) {
146
- highlightedContent = _react.default.Children.map(child.props.children, cell => /*#__PURE__*/_react.default.cloneElement(cell, {
147
- children: (0, _highlightPartOfText.default)(cell.props.children, filterText)
148
- }));
149
- }
150
-
151
- return /*#__PURE__*/_react.default.cloneElement(child, {
152
- children: highlightedContent
153
- });
154
- });
155
- }
156
-
157
- FilteredComponent.propTypes = {
158
- forwardedRef: _propTypes.default.object,
159
- children: _propTypes.default.node,
160
- filterText: _propTypes.default.string,
161
- noResultsMessage: _propTypes.default.string,
162
- isLoading: _propTypes.default.bool,
163
- multiColumn: _propTypes.default.bool,
164
- tableHeader: _propTypes.default.node
165
- };
182
+ FilteredComponent.displayName = "FilteredComponent";
166
183
  return FilteredComponent;
167
184
  };
168
185
 
@@ -1,4 +1,5 @@
1
1
  import { ThemeObject } from "../../style/themes/base";
2
+ export declare const borderRadiusStyling = "\n > {\n &:first-child:last-child {\n border-radius: var(--borderRadius100);\n }\n\n &:first-child:not(:last-child) {\n border-top-left-radius: var(--borderRadius100);\n border-top-right-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius000);\n }\n\n &:not(:first-child):not(:last-child) {\n border-radius: var(--borderRadius000);\n }\n\n &:last-child:not(:first-child) {\n border-top-right-radius: var(--borderRadius000);\n border-top-left-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius100);\n }\n }\n";
2
3
  declare type StyledSplitButtonChildrenContainerProps = {
3
4
  theme: ThemeObject;
4
5
  align: "left" | "right";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = exports.borderRadiusStyling = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
@@ -17,7 +17,34 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
17
17
 
18
18
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
19
 
20
+ const borderRadiusStyling = `
21
+ > {
22
+ &:first-child:last-child {
23
+ border-radius: var(--borderRadius100);
24
+ }
25
+
26
+ &:first-child:not(:last-child) {
27
+ border-top-left-radius: var(--borderRadius100);
28
+ border-top-right-radius: var(--borderRadius100);
29
+ border-bottom-right-radius: var(--borderRadius000);
30
+ border-bottom-left-radius: var(--borderRadius000);
31
+ }
32
+
33
+ &:not(:first-child):not(:last-child) {
34
+ border-radius: var(--borderRadius000);
35
+ }
36
+
37
+ &:last-child:not(:first-child) {
38
+ border-top-right-radius: var(--borderRadius000);
39
+ border-top-left-radius: var(--borderRadius000);
40
+ border-bottom-left-radius: var(--borderRadius100);
41
+ border-bottom-right-radius: var(--borderRadius100);
42
+ }
43
+ }
44
+ `;
45
+ exports.borderRadiusStyling = borderRadiusStyling;
20
46
  const StyledSplitButtonChildrenContainer = _styledComponents.default.div`
47
+ border-radius: var(--borderRadius100);
21
48
  ${({
22
49
  theme,
23
50
  align,
@@ -29,6 +56,8 @@ const StyledSplitButtonChildrenContainer = _styledComponents.default.div`
29
56
  z-index: ${theme.zIndex.popover};
30
57
  box-shadow: var(--boxShadow100);
31
58
 
59
+ ${borderRadiusStyling}
60
+
32
61
  ${_button.default} {
33
62
  border: 1px solid var(--colorsActionMajorTransparent);
34
63
  display: block;
@@ -29,6 +29,9 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
29
29
  displayed,
30
30
  size
31
31
  }) => (0, _styledComponents.css)`
32
+ border-top-left-radius: var(--borderRadius000);
33
+ border-bottom-left-radius: var(--borderRadius000);
34
+
32
35
  ${!disabled && displayed ? (0, _styledComponents.css)`
33
36
  background-color: var(--colorsActionMajor500);
34
37
  border-color: var(--colorsActionMajor500);
@@ -42,7 +45,8 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
42
45
  border-left-color: var(--colorsSemanticFocus500);
43
46
  }
44
47
  ` : ""}
45
- ${!disabled && buttonType === "primary" && `position: relative;
48
+ ${!disabled && buttonType === "primary" && `
49
+ position: relative;
46
50
  &::before {
47
51
  content: '';
48
52
  width: 2px;
@@ -53,6 +57,7 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
53
57
  z-index: 2;
54
58
  }
55
59
  `}
60
+
56
61
  ${buttonType === "secondary" && "border-left-width: 0;"}
57
62
  padding: 0 ${horizontalPaddingSizes[size]}px;
58
63
 
@@ -17,13 +17,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  const StyledSplitButton = _styledComponents.default.div`
19
19
  ${_styledSystem.margin}
20
-
21
20
  display: inline-block;
22
21
  position: relative;
23
22
 
23
+ ${_button.default}:first-of-type {
24
+ border-top-right-radius: var(--borderRadius000);
25
+ border-bottom-right-radius: var(--borderRadius000);
26
+ }
27
+
24
28
  & > ${_button.default} {
25
29
  margin: 0;
26
-
27
30
  &:focus {
28
31
  border: 3px solid var(--colorsSemanticFocus500);
29
32
  outline: none;
@@ -38,7 +38,7 @@ const StyledSwitchSlider = _styledComponents.default.span`
38
38
  width: 64px;
39
39
  min-width: fit-content;
40
40
  z-index: 2;
41
- border-radius: 90px;
41
+ border-radius: var(--borderRadius400);
42
42
  border-style: solid;
43
43
  border-color: var(--colorsActionMinor400);
44
44
  border-width: var(--borderWidth200);
@@ -92,7 +92,6 @@ const StyledSwitchSlider = _styledComponents.default.span`
92
92
  `}
93
93
 
94
94
  ${size === "large" && (0, _styledComponents.css)`
95
- border-radius: 30px;
96
95
  &::before {
97
96
  height: 32px;
98
97
  width: 32px;
@@ -217,6 +217,7 @@ const TabTitle = /*#__PURE__*/_react.default.forwardRef(({
217
217
  href: href,
218
218
  target: "_blank"
219
219
  }), titleChildren) : /*#__PURE__*/_react.default.createElement(_tabTitle.StyledTabTitleButton, _extends({}, titleWrapperProps, {
220
+ type: "button",
220
221
  ref: ref
221
222
  }), titleChildren);
222
223
  return /*#__PURE__*/_react.default.createElement(_tooltipProvider.TooltipProvider, {
@@ -45,6 +45,17 @@ const StyledTitleContent = _styledComponents.default.span`
45
45
  display: flex;
46
46
  width: 100%;
47
47
  justify-content: ${align === "right" ? "flex-end" : "flex-start"};
48
+ border-top-left-radius: var(--borderRadius100);
49
+ border-bottom-left-radius: var(--borderRadius100);
50
+ border-bottom-right-radius: var(--borderRadius000);
51
+ border-top-right-radius: var(--borderRadius000);
52
+ `}
53
+
54
+ ${position === "top" && (0, _styledComponents.css)`
55
+ border-top-left-radius: var(--borderRadius100);
56
+ border-top-right-radius: var(--borderRadius100);
57
+ border-bottom-right-radius: var(--borderRadius000);
58
+ border-bottom-left-radius: var(--borderRadius000);
48
59
  `}
49
60
 
50
61
  ${hasHref && (0, _styledComponents.css)`
@@ -105,8 +116,7 @@ const StyledTitleContent = _styledComponents.default.span`
105
116
  padding: 10px 16px;
106
117
 
107
118
  ${borders && `padding-bottom: 9px;`}
108
- `}
109
-
119
+ `}
110
120
 
111
121
  ${(warning || info) && (0, _styledComponents.css)`
112
122
  outline: 1px solid;
@@ -225,6 +235,8 @@ exports.StyledTitleContent = StyledTitleContent;
225
235
  const tabTitleStyles = (0, _styledComponents.css)`
226
236
  background-color: transparent;
227
237
  display: inline-block;
238
+ border-top-left-radius: var(--borderRadius100);
239
+ border-top-right-radius: var(--borderRadius100);
228
240
  font-weight: bold;
229
241
  position: relative;
230
242
  border: none;
@@ -238,6 +250,14 @@ const tabTitleStyles = (0, _styledComponents.css)`
238
250
  position
239
251
  }) => position === "top" && "white-space: nowrap"};
240
252
 
253
+ ${({
254
+ position
255
+ }) => (0, _styledComponents.css)`
256
+ ${position === "left" && (0, _styledComponents.css)`
257
+ border-top-right-radius: var(--borderRadius000);
258
+ `}
259
+ `}
260
+
241
261
  a:visited {
242
262
  color: inherit;
243
263
  }
@@ -25,6 +25,11 @@ const StyledTabsHeaderWrapper = _styledComponents.default.div`
25
25
  box-sizing: border-box;
26
26
  padding: 3px;
27
27
 
28
+ button[data-element="select-tab"] {
29
+ border-top-left-radius: var(--borderRadius100);
30
+ border-bottom-left-radius: var(--borderRadius100);
31
+ }
32
+
28
33
  ${!isInSidebar && (0, _styledComponents.css)`
29
34
  min-width: 20%;
30
35
  `}
@@ -19,6 +19,7 @@ const StyledToolbarButton = _styledComponents.default.button.attrs({
19
19
  type: "button"
20
20
  })`
21
21
  background-color: inherit;
22
+ border-radius: var(--borderRadius050);
22
23
  border: none;
23
24
  cursor: pointer;
24
25
  width: 32px;
@@ -36,10 +37,12 @@ const StyledToolbarButton = _styledComponents.default.button.attrs({
36
37
  :active {
37
38
  outline: 2px solid var(--colorsSemanticFocus500);
38
39
  outline-offset: -2px;
40
+ border-radius: var(--borderRadius050);
39
41
  }
40
42
 
41
43
  :hover {
42
44
  background-color: var(--colorsActionMinor200);
45
+ border-radius: var(--borderRadius050);
43
46
  }
44
47
 
45
48
  ${isActive && (0, _styledComponents.css)`
@@ -28,6 +28,8 @@ StyledEditorWrapper.defaultProps = {
28
28
  theme: _base.default
29
29
  };
30
30
  const StyledEditorContainer = _styledComponents.default.div`
31
+ border-radius: var(--borderRadius050);
32
+
31
33
  ${({
32
34
  hasError,
33
35
  rows,
@@ -79,6 +81,7 @@ const StyledEditorOutline = _styledComponents.default.div`
79
81
  isFocused,
80
82
  hasError
81
83
  }) => (0, _styledComponents.css)`
84
+ border-radius: var(--borderRadius050);
82
85
  outline: none;
83
86
  min-width: 320px;
84
87
 
@@ -24,6 +24,8 @@ export interface TileProps extends SpaceProps, WidthProps {
24
24
  borderWidth?: Extract<DesignTokensType, `borderWidth${string}`>;
25
25
  /** Sets the border variant that should be used */
26
26
  borderVariant?: "default" | "selected" | "positive" | "negative" | "caution" | "info";
27
+ /** Sets the level of roundness of the corners, "default" is 8px and "large" is 16px */
28
+ roundness?: "default" | "large";
27
29
  }
28
- export declare const Tile: ({ variant, p, children, orientation, width, ...props }: TileProps) => JSX.Element;
30
+ export declare const Tile: ({ variant, p, children, orientation, width, roundness, ...props }: TileProps) => JSX.Element;
29
31
  export default Tile;
@@ -21,6 +21,7 @@ const Tile = ({
21
21
  children,
22
22
  orientation = "horizontal",
23
23
  width,
24
+ roundness = "default",
24
25
  ...props
25
26
  }) => {
26
27
  const isHorizontal = orientation === "horizontal";
@@ -60,7 +61,8 @@ const Tile = ({
60
61
  width: width,
61
62
  "data-component": "tile",
62
63
  isHorizontal: isHorizontal,
63
- p: p
64
+ p: p,
65
+ roundness: roundness
64
66
  }, props), wrappedChildren);
65
67
  };
66
68
 
@@ -6,7 +6,7 @@ interface TileContentProps {
6
6
  width?: string | number;
7
7
  }
8
8
  declare const TileContent: import("styled-components").StyledComponent<"div", any, TileContentProps, never>;
9
- declare const StyledTile: import("styled-components").StyledComponent<"div", any, Pick<TileProps, "width" | "variant" | "borderWidth" | "borderVariant"> & {
9
+ declare const StyledTile: import("styled-components").StyledComponent<"div", any, Pick<TileProps, "width" | "variant" | "roundness" | "borderWidth" | "borderVariant"> & {
10
10
  isHorizontal?: boolean | undefined;
11
11
  } & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
12
12
  export { StyledTile, TileContent };
@@ -102,12 +102,15 @@ const StyledTile = _styledComponents.default.div`
102
102
  borderWidth = "borderWidth100",
103
103
  isHorizontal,
104
104
  variant,
105
- width
105
+ width,
106
+ roundness
106
107
  }) => (0, _styledComponents.css)`
107
108
  ${_styledSystem.space}
108
109
 
109
110
  box-sizing: border-box;
110
111
  border: var(--${borderWidth}) solid ${getBorderColor(borderVariant)};
112
+ border-radius: ${roundness === "default" ? "var(--borderRadius100)" : "var(--borderRadius200)"};
113
+ overflow: hidden;
111
114
 
112
115
  ${variant === "tile" && (0, _styledComponents.css)`
113
116
  background-color: var(--colorsUtilityYang100);
@@ -8,6 +8,7 @@ declare const StyledDescription: import("styled-components").StyledComponent<"p"
8
8
  declare const StyledTileSelect: import("styled-components").StyledComponent<"div", any, {
9
9
  checked?: boolean | undefined;
10
10
  disabled?: boolean | undefined;
11
+ hasAccordion?: boolean | undefined;
11
12
  }, never>;
12
13
  declare const StyledFocusWrapper: import("styled-components").StyledComponent<"div", any, {
13
14
  checked?: boolean | undefined;
@@ -59,6 +59,7 @@ exports.StyledDescription = StyledDescription;
59
59
  const StyledTileSelect = _styledComponents.default.div`
60
60
  background: var(--colorsActionMinorYang100);
61
61
  padding: 24px;
62
+
62
63
  ${({
63
64
  checked
64
65
  }) => checked && (0, _styledComponents.css)`
@@ -85,6 +86,9 @@ const StyledFocusWrapper = _styledComponents.default.div`
85
86
  }) => (0, _styledComponents.css)`
86
87
  position: relative;
87
88
  border: 1px solid var(--colorsActionMinor250);
89
+ border-radius: var(--borderRadius100);
90
+ overflow: hidden;
91
+
88
92
  ${checked && (0, _styledComponents.css)`
89
93
  border-color: var(--colorsActionMajor500);
90
94
  z-index: 10;
@@ -102,6 +106,7 @@ const StyledTileSelectContainer = _styledComponents.default.div`
102
106
 
103
107
  width: 100%;
104
108
  position: relative;
109
+
105
110
  & + & ${StyledFocusWrapper} {
106
111
  margin-top: -1px;
107
112
  }
@@ -127,6 +132,9 @@ const StyledAccordionFooterWrapper = _styledComponents.default.div`
127
132
  z-index: 200;
128
133
  left: -12px;
129
134
 
135
+ border-bottom-right-radius: var(--borderRadius100);
136
+ border-bottom-left-radius: var(--borderRadius100);
137
+
130
138
  ${({
131
139
  accordionExpanded
132
140
  }) => `