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>>;
@@ -1,17 +1,9 @@
1
- /**
2
- * Recreates HTML Select element functionality of finding first match based on typed characters
3
- * */
4
- export default function getNextChildByText(textToMatch, arrayOfChildren, previousIndex = -1) {
5
- const lastCharacter = textToMatch.slice(-1);
6
- const isTheSameCharacter = textToMatch.split("").every(character => character === lastCharacter);
7
- let indexOfMatch = findElementStartingWithText(textToMatch, arrayOfChildren);
8
- const listOfMatches = getListOfMatches(arrayOfChildren, lastCharacter);
9
-
10
- if (isTheSameCharacter && listOfMatches.length > 1) {
11
- indexOfMatch = getIndexOfNextElement(listOfMatches, previousIndex);
12
- }
1
+ function findElementStartingWithText(textToMatch, list) {
2
+ return list.findIndex(child => {
3
+ var _child$props$text;
13
4
 
14
- return arrayOfChildren[indexOfMatch];
5
+ return (_child$props$text = child.props.text) === null || _child$props$text === void 0 ? void 0 : _child$props$text.toLowerCase().startsWith(textToMatch.toLowerCase());
6
+ });
15
7
  }
16
8
 
17
9
  function getListOfMatches(arrayOfChildren, lastCharacter) {
@@ -33,9 +25,20 @@ function getIndexOfNextElement(listOfMatches, previousIndex) {
33
25
 
34
26
  return listOfMatches[listOfMatches.indexOf(previousIndex) + 1];
35
27
  }
28
+ /**
29
+ * Recreates HTML Select element functionality of finding first match based on typed characters
30
+ * */
36
31
 
37
- function findElementStartingWithText(textToMatch, list) {
38
- return list.findIndex(child => {
39
- return child.props.text && child.props.text.toLowerCase().startsWith(textToMatch.toLowerCase());
40
- });
32
+
33
+ export default function getNextChildByText(textToMatch, arrayOfChildren, previousIndex = -1) {
34
+ const lastCharacter = textToMatch.slice(-1);
35
+ const isTheSameCharacter = textToMatch.split("").every(character => character === lastCharacter);
36
+ let indexOfMatch = findElementStartingWithText(textToMatch, arrayOfChildren);
37
+ const listOfMatches = getListOfMatches(arrayOfChildren, lastCharacter);
38
+
39
+ if (isTheSameCharacter && listOfMatches.length > 1) {
40
+ indexOfMatch = getIndexOfNextElement(listOfMatches, previousIndex);
41
+ }
42
+
43
+ return arrayOfChildren[indexOfMatch];
41
44
  }
@@ -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;
@@ -13,10 +13,11 @@ function highlightPartOfText(text, partToHighlight) {
13
13
 
14
14
  const precedingText = text.substr(0, indexOfFirstMatch);
15
15
  const matchingText = text.substr(indexOfFirstMatch, partToHighlight.length);
16
- let followingText = text.substr(indexOfFirstMatch + partToHighlight.length, text.length);
16
+ const followingText = text.substr(indexOfFirstMatch + partToHighlight.length, text.length);
17
+ let followingTextNode = followingText;
17
18
 
18
19
  if (followingText.length >= partToHighlight.length) {
19
- followingText = highlightPartOfText(followingText, partToHighlight);
20
+ followingTextNode = highlightPartOfText(followingText, partToHighlight);
20
21
  }
21
22
 
22
23
  const newValue = [/*#__PURE__*/React.createElement("span", {
@@ -25,7 +26,7 @@ function highlightPartOfText(text, partToHighlight) {
25
26
  key: "match"
26
27
  }, matchingText), /*#__PURE__*/React.createElement("span", {
27
28
  key: "following"
28
- }, followingText)];
29
+ }, followingTextNode)];
29
30
  return newValue;
30
31
  }
31
32
 
@@ -33,6 +34,12 @@ export default function highlightPartOfTextRecursive(child, partToHighlight) {
33
34
  if (typeof child === "string") {
34
35
  return highlightPartOfText(child, partToHighlight);
35
36
  }
37
+ /* istanbul ignore if */
38
+
39
+
40
+ if (! /*#__PURE__*/React.isValidElement(child)) {
41
+ return child;
42
+ }
36
43
 
37
44
  const highlightedChildren = React.Children.map(child.props.children, grandChild => highlightPartOfTextRecursive(grandChild, partToHighlight));
38
45
  return /*#__PURE__*/React.cloneElement(child, {
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function isExpectedOption(element: React.ReactElement, expectedValue?: string | Record<string, unknown> | null): boolean;
@@ -1,4 +1,4 @@
1
- import Option from "../option/option.component";
1
+ import Option from "../option";
2
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) {
@@ -0,0 +1 @@
1
+ export default function isExpectedValue(currentValue: string | Record<string, unknown>, expectedValue: string | Record<string, unknown>): boolean;
@@ -1,5 +1,5 @@
1
1
  export default function isExpectedValue(currentValue, expectedValue) {
2
- if (typeof currentValue === "object" && currentValue.id !== null && currentValue.id !== undefined) {
2
+ if (typeof currentValue === "object" && currentValue.id !== null && currentValue.id !== undefined && typeof expectedValue === "object") {
3
3
  return currentValue.id === expectedValue.id;
4
4
  }
5
5
 
@@ -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;
@@ -1,11 +1,10 @@
1
1
  function _extends() { _extends = Object.assign || 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
 
3
3
  import React, { useCallback } from "react";
4
- import PropTypes from "prop-types";
5
4
  import useLocale from "../../../hooks/__internal__/useLocale";
6
5
  import StyledOptionRow from "../option-row/option-row.style";
7
6
  import StyledOption from "../option/option.style";
8
- import Option from "../option/option.component";
7
+ import Option from "../option";
9
8
  import OptionRow from "../option-row/option-row.component";
10
9
  import highlightPartOfText from "./highlight-part-of-text";
11
10
 
@@ -25,6 +24,11 @@ const filterOptions = (option, filterText) => {
25
24
  const filterOptionRows = (optionRow, filterText) => {
26
25
  const cells = React.Children.toArray(optionRow.props.children);
27
26
  const hasText = cells.find(cell => {
27
+ /* istanbul ignore if */
28
+ if (! /*#__PURE__*/React.isValidElement(cell)) {
29
+ return false;
30
+ }
31
+
28
32
  if (typeof cell.props.children === "string") {
29
33
  const processedText = cell.props.children.toLowerCase();
30
34
  const processedValue = filterText.toLowerCase();
@@ -43,24 +47,63 @@ const filterOptionRows = (optionRow, filterText) => {
43
47
  };
44
48
 
45
49
  const filterChildren = filterText => children => {
46
- // eslint-disable-next-line consistent-return
47
50
  const filteredChildren = React.Children.map(children, child => {
51
+ /* istanbul ignore if */
52
+ if (! /*#__PURE__*/React.isValidElement(child)) {
53
+ return null;
54
+ }
55
+
48
56
  if (child.type === Option) {
49
57
  return filterOptions(child, filterText);
50
58
  }
59
+ /* istanbul ignore else */
60
+
51
61
 
52
62
  if (child.type === OptionRow) {
53
63
  return filterOptionRows(child, filterText);
54
64
  }
65
+ /* istanbul ignore next */
66
+
55
67
 
56
68
  return null;
57
69
  });
58
70
  if (React.Children.count(filteredChildren)) return filteredChildren;
59
71
  return null;
60
72
  };
61
- /** Filters wrapped component children based on provided filter text and highlights matching content */
62
73
 
74
+ function addHighlightedContent(filteredElements, filterText) {
75
+ return React.Children.map(filteredElements, child => {
76
+ let highlightedContent;
77
+ /* istanbul ignore if */
78
+
79
+ if (! /*#__PURE__*/React.isValidElement(child)) {
80
+ return child;
81
+ }
82
+
83
+ if (child.type === Option) {
84
+ highlightedContent = highlightPartOfText(child.props.text, filterText);
85
+ }
86
+
87
+ if (child.type === OptionRow) {
88
+ highlightedContent = React.Children.map(child.props.children, cell => {
89
+ /* istanbul ignore if */
90
+ if (! /*#__PURE__*/React.isValidElement(cell)) {
91
+ return cell;
92
+ }
93
+
94
+ return /*#__PURE__*/React.cloneElement(cell, {
95
+ children: highlightPartOfText(cell.props.children, filterText)
96
+ });
97
+ });
98
+ }
99
+
100
+ return /*#__PURE__*/React.cloneElement(child, {
101
+ children: highlightedContent
102
+ });
103
+ });
104
+ }
63
105
 
106
+ /** Filters wrapped component children based on provided filter text and highlights matching content */
64
107
  const withFilter = WrappedComponent => {
65
108
  const FilteredComponent = /*#__PURE__*/React.forwardRef(({
66
109
  children,
@@ -84,7 +127,9 @@ const withFilter = WrappedComponent => {
84
127
  if (multiColumn) {
85
128
  var _tableHeader$props;
86
129
 
87
- const colSpan = React.Children.count(tableHeader === null || tableHeader === void 0 ? void 0 : (_tableHeader$props = tableHeader.props) === null || _tableHeader$props === void 0 ? void 0 : _tableHeader$props.children);
130
+ const colSpan = /*#__PURE__*/React.isValidElement(tableHeader) ?
131
+ /* istanbul ignore next */
132
+ React.Children.count(tableHeader === null || tableHeader === void 0 ? void 0 : (_tableHeader$props = tableHeader.props) === null || _tableHeader$props === void 0 ? void 0 : _tableHeader$props.children) : 1;
88
133
  return /*#__PURE__*/React.createElement(StyledOptionRow, null, /*#__PURE__*/React.createElement("td", {
89
134
  style: {
90
135
  fontWeight: "normal"
@@ -101,45 +146,18 @@ const withFilter = WrappedComponent => {
101
146
 
102
147
  return children;
103
148
  }, [children, filterText, isLoading, multiColumn, noResultsMessage, tableHeader, l]);
104
- return /*#__PURE__*/React.createElement(WrappedComponent, _extends({
105
- filterText: filterText,
106
- isLoading: isLoading,
107
- multiColumn: multiColumn,
108
- tableHeader: tableHeader
109
- }, props, {
149
+ const wrappedComponentProps = {
150
+ filterText,
151
+ isLoading,
152
+ multiColumn,
153
+ tableHeader,
154
+ ...props
155
+ };
156
+ return /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, wrappedComponentProps, {
110
157
  ref: forwardedRef
111
158
  }), getFilteredChildren());
112
159
  });
113
-
114
- function addHighlightedContent(filteredElements, filterText) {
115
- return React.Children.map(filteredElements, child => {
116
- let highlightedContent;
117
-
118
- if (child.type === Option) {
119
- highlightedContent = highlightPartOfText(child.props.text, filterText);
120
- }
121
-
122
- if (child.type === OptionRow) {
123
- highlightedContent = React.Children.map(child.props.children, cell => /*#__PURE__*/React.cloneElement(cell, {
124
- children: highlightPartOfText(cell.props.children, filterText)
125
- }));
126
- }
127
-
128
- return /*#__PURE__*/React.cloneElement(child, {
129
- children: highlightedContent
130
- });
131
- });
132
- }
133
-
134
- FilteredComponent.propTypes = {
135
- forwardedRef: PropTypes.object,
136
- children: PropTypes.node,
137
- filterText: PropTypes.string,
138
- noResultsMessage: PropTypes.string,
139
- isLoading: PropTypes.bool,
140
- multiColumn: PropTypes.bool,
141
- tableHeader: PropTypes.node
142
- };
160
+ FilteredComponent.displayName = "FilteredComponent";
143
161
  return FilteredComponent;
144
162
  };
145
163
 
@@ -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";
@@ -1,7 +1,33 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import BaseTheme from "../../style/themes/base";
3
3
  import StyledButton from "../button/button.style";
4
+ export const borderRadiusStyling = `
5
+ > {
6
+ &:first-child:last-child {
7
+ border-radius: var(--borderRadius100);
8
+ }
9
+
10
+ &:first-child:not(:last-child) {
11
+ border-top-left-radius: var(--borderRadius100);
12
+ border-top-right-radius: var(--borderRadius100);
13
+ border-bottom-right-radius: var(--borderRadius000);
14
+ border-bottom-left-radius: var(--borderRadius000);
15
+ }
16
+
17
+ &:not(:first-child):not(:last-child) {
18
+ border-radius: var(--borderRadius000);
19
+ }
20
+
21
+ &:last-child:not(:first-child) {
22
+ border-top-right-radius: var(--borderRadius000);
23
+ border-top-left-radius: var(--borderRadius000);
24
+ border-bottom-left-radius: var(--borderRadius100);
25
+ border-bottom-right-radius: var(--borderRadius100);
26
+ }
27
+ }
28
+ `;
4
29
  const StyledSplitButtonChildrenContainer = styled.div`
30
+ border-radius: var(--borderRadius100);
5
31
  ${({
6
32
  theme,
7
33
  align,
@@ -13,6 +39,8 @@ const StyledSplitButtonChildrenContainer = styled.div`
13
39
  z-index: ${theme.zIndex.popover};
14
40
  box-shadow: var(--boxShadow100);
15
41
 
42
+ ${borderRadiusStyling}
43
+
16
44
  ${StyledButton} {
17
45
  border: 1px solid var(--colorsActionMajorTransparent);
18
46
  display: block;
@@ -13,6 +13,9 @@ const StyledSplitButtonToggle = styled(StyledButton)`
13
13
  displayed,
14
14
  size
15
15
  }) => css`
16
+ border-top-left-radius: var(--borderRadius000);
17
+ border-bottom-left-radius: var(--borderRadius000);
18
+
16
19
  ${!disabled && displayed ? css`
17
20
  background-color: var(--colorsActionMajor500);
18
21
  border-color: var(--colorsActionMajor500);
@@ -26,7 +29,8 @@ const StyledSplitButtonToggle = styled(StyledButton)`
26
29
  border-left-color: var(--colorsSemanticFocus500);
27
30
  }
28
31
  ` : ""}
29
- ${!disabled && buttonType === "primary" && `position: relative;
32
+ ${!disabled && buttonType === "primary" && `
33
+ position: relative;
30
34
  &::before {
31
35
  content: '';
32
36
  width: 2px;
@@ -37,6 +41,7 @@ const StyledSplitButtonToggle = styled(StyledButton)`
37
41
  z-index: 2;
38
42
  }
39
43
  `}
44
+
40
45
  ${buttonType === "secondary" && "border-left-width: 0;"}
41
46
  padding: 0 ${horizontalPaddingSizes[size]}px;
42
47
 
@@ -4,13 +4,16 @@ import StyledButton from "../button/button.style";
4
4
  import baseTheme from "../../style/themes/base";
5
5
  const StyledSplitButton = styled.div`
6
6
  ${margin}
7
-
8
7
  display: inline-block;
9
8
  position: relative;
10
9
 
10
+ ${StyledButton}:first-of-type {
11
+ border-top-right-radius: var(--borderRadius000);
12
+ border-bottom-right-radius: var(--borderRadius000);
13
+ }
14
+
11
15
  & > ${StyledButton} {
12
16
  margin: 0;
13
-
14
17
  &:focus {
15
18
  border: 3px solid var(--colorsSemanticFocus500);
16
19
  outline: none;
@@ -22,7 +22,7 @@ const StyledSwitchSlider = styled.span`
22
22
  width: 64px;
23
23
  min-width: fit-content;
24
24
  z-index: 2;
25
- border-radius: 90px;
25
+ border-radius: var(--borderRadius400);
26
26
  border-style: solid;
27
27
  border-color: var(--colorsActionMinor400);
28
28
  border-width: var(--borderWidth200);
@@ -76,7 +76,6 @@ const StyledSwitchSlider = styled.span`
76
76
  `}
77
77
 
78
78
  ${size === "large" && css`
79
- border-radius: 30px;
80
79
  &::before {
81
80
  height: 32px;
82
81
  width: 32px;
@@ -190,6 +190,7 @@ const TabTitle = /*#__PURE__*/React.forwardRef(({
190
190
  href: href,
191
191
  target: "_blank"
192
192
  }), titleChildren) : /*#__PURE__*/React.createElement(StyledTabTitleButton, _extends({}, titleWrapperProps, {
193
+ type: "button",
193
194
  ref: ref
194
195
  }), titleChildren);
195
196
  return /*#__PURE__*/React.createElement(TooltipProvider, {
@@ -29,6 +29,17 @@ const StyledTitleContent = styled.span`
29
29
  display: flex;
30
30
  width: 100%;
31
31
  justify-content: ${align === "right" ? "flex-end" : "flex-start"};
32
+ border-top-left-radius: var(--borderRadius100);
33
+ border-bottom-left-radius: var(--borderRadius100);
34
+ border-bottom-right-radius: var(--borderRadius000);
35
+ border-top-right-radius: var(--borderRadius000);
36
+ `}
37
+
38
+ ${position === "top" && css`
39
+ border-top-left-radius: var(--borderRadius100);
40
+ border-top-right-radius: var(--borderRadius100);
41
+ border-bottom-right-radius: var(--borderRadius000);
42
+ border-bottom-left-radius: var(--borderRadius000);
32
43
  `}
33
44
 
34
45
  ${hasHref && css`
@@ -89,8 +100,7 @@ const StyledTitleContent = styled.span`
89
100
  padding: 10px 16px;
90
101
 
91
102
  ${borders && `padding-bottom: 9px;`}
92
- `}
93
-
103
+ `}
94
104
 
95
105
  ${(warning || info) && css`
96
106
  outline: 1px solid;
@@ -208,6 +218,8 @@ const StyledTitleContent = styled.span`
208
218
  const tabTitleStyles = css`
209
219
  background-color: transparent;
210
220
  display: inline-block;
221
+ border-top-left-radius: var(--borderRadius100);
222
+ border-top-right-radius: var(--borderRadius100);
211
223
  font-weight: bold;
212
224
  position: relative;
213
225
  border: none;
@@ -221,6 +233,14 @@ const tabTitleStyles = css`
221
233
  position
222
234
  }) => position === "top" && "white-space: nowrap"};
223
235
 
236
+ ${({
237
+ position
238
+ }) => css`
239
+ ${position === "left" && css`
240
+ border-top-right-radius: var(--borderRadius000);
241
+ `}
242
+ `}
243
+
224
244
  a:visited {
225
245
  color: inherit;
226
246
  }
@@ -10,6 +10,11 @@ const StyledTabsHeaderWrapper = styled.div`
10
10
  box-sizing: border-box;
11
11
  padding: 3px;
12
12
 
13
+ button[data-element="select-tab"] {
14
+ border-top-left-radius: var(--borderRadius100);
15
+ border-bottom-left-radius: var(--borderRadius100);
16
+ }
17
+
13
18
  ${!isInSidebar && css`
14
19
  min-width: 20%;
15
20
  `}
@@ -4,6 +4,7 @@ const StyledToolbarButton = styled.button.attrs({
4
4
  type: "button"
5
5
  })`
6
6
  background-color: inherit;
7
+ border-radius: var(--borderRadius050);
7
8
  border: none;
8
9
  cursor: pointer;
9
10
  width: 32px;
@@ -21,10 +22,12 @@ const StyledToolbarButton = styled.button.attrs({
21
22
  :active {
22
23
  outline: 2px solid var(--colorsSemanticFocus500);
23
24
  outline-offset: -2px;
25
+ border-radius: var(--borderRadius050);
24
26
  }
25
27
 
26
28
  :hover {
27
29
  background-color: var(--colorsActionMinor200);
30
+ border-radius: var(--borderRadius050);
28
31
  }
29
32
 
30
33
  ${isActive && css`
@@ -10,6 +10,8 @@ StyledEditorWrapper.defaultProps = {
10
10
  theme: baseTheme
11
11
  };
12
12
  const StyledEditorContainer = styled.div`
13
+ border-radius: var(--borderRadius050);
14
+
13
15
  ${({
14
16
  hasError,
15
17
  rows,
@@ -60,6 +62,7 @@ const StyledEditorOutline = styled.div`
60
62
  isFocused,
61
63
  hasError
62
64
  }) => css`
65
+ border-radius: var(--borderRadius050);
63
66
  outline: none;
64
67
  min-width: 320px;
65
68
 
@@ -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;
@@ -10,6 +10,7 @@ const Tile = ({
10
10
  children,
11
11
  orientation = "horizontal",
12
12
  width,
13
+ roundness = "default",
13
14
  ...props
14
15
  }) => {
15
16
  const isHorizontal = orientation === "horizontal";
@@ -47,7 +48,8 @@ const Tile = ({
47
48
  width: width,
48
49
  "data-component": "tile",
49
50
  isHorizontal: isHorizontal,
50
- p: p
51
+ p: p,
52
+ roundness: roundness
51
53
  }, props), wrappedChildren);
52
54
  };
53
55
 
@@ -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 };
@@ -85,12 +85,15 @@ const StyledTile = styled.div`
85
85
  borderWidth = "borderWidth100",
86
86
  isHorizontal,
87
87
  variant,
88
- width
88
+ width,
89
+ roundness
89
90
  }) => css`
90
91
  ${space}
91
92
 
92
93
  box-sizing: border-box;
93
94
  border: var(--${borderWidth}) solid ${getBorderColor(borderVariant)};
95
+ border-radius: ${roundness === "default" ? "var(--borderRadius100)" : "var(--borderRadius200)"};
96
+ overflow: hidden;
94
97
 
95
98
  ${variant === "tile" && css`
96
99
  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;
@@ -35,6 +35,7 @@ const StyledDescription = styled.p`
35
35
  const StyledTileSelect = styled.div`
36
36
  background: var(--colorsActionMinorYang100);
37
37
  padding: 24px;
38
+
38
39
  ${({
39
40
  checked
40
41
  }) => checked && css`
@@ -60,6 +61,9 @@ const StyledFocusWrapper = styled.div`
60
61
  }) => css`
61
62
  position: relative;
62
63
  border: 1px solid var(--colorsActionMinor250);
64
+ border-radius: var(--borderRadius100);
65
+ overflow: hidden;
66
+
63
67
  ${checked && css`
64
68
  border-color: var(--colorsActionMajor500);
65
69
  z-index: 10;
@@ -76,6 +80,7 @@ const StyledTileSelectContainer = styled.div`
76
80
 
77
81
  width: 100%;
78
82
  position: relative;
83
+
79
84
  & + & ${StyledFocusWrapper} {
80
85
  margin-top: -1px;
81
86
  }
@@ -99,6 +104,9 @@ const StyledAccordionFooterWrapper = styled.div`
99
104
  z-index: 200;
100
105
  left: -12px;
101
106
 
107
+ border-bottom-right-radius: var(--borderRadius100);
108
+ border-bottom-left-radius: var(--borderRadius100);
109
+
102
110
  ${({
103
111
  accordionExpanded
104
112
  }) => `
@@ -28,6 +28,7 @@ const StyledTooltip = styled.div`
28
28
  right: auto;
29
29
  max-width: 300px;
30
30
  width: max-content;
31
+ border-radius: var(--borderRadius050);
31
32
  position: absolute;
32
33
  animation: ${fadeIn} 0.2s linear;
33
34
  z-index: ${theme.zIndex.popover}; // TODO (tokens): implement elevation tokens - FE-4437
@@ -41,6 +41,7 @@ export const StyledVerticalMenuItem = styled.div`
41
41
  }) => active && css`
42
42
  &:before {
43
43
  background: var(--colorsComponentsLeftnavWinterStandardSelected);
44
+ border-radius: var(--borderRadius100);
44
45
  content: "";
45
46
  height: calc(100% - 16px);
46
47
  left: 24px;
@@ -1 +1 @@
1
- export default function filterObjectProperties(originalObject: any, keyList: any): {};
1
+ export default function filterObjectProperties<T extends object>(originalObject: T, keyList: string[]): Partial<T>;