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
@@ -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>;
@@ -46,6 +46,7 @@ const InputPresentationStyle = styled.div`
46
46
  align-items: stretch;
47
47
  background: var(--colorsUtilityYang100);
48
48
  border: 1px solid var(--colorsUtilityMajor300);
49
+ border-radius: var(--borderRadius050);
49
50
  box-sizing: border-box;
50
51
  cursor: text;
51
52
  display: flex;
@@ -2,6 +2,7 @@ import styled, { css } from "styled-components";
2
2
  const StyledInput = styled.input`
3
3
  background: transparent;
4
4
  border: none;
5
+ border-radius: var(--borderRadius050);
5
6
  color: var(--colorsUtilityYin090);
6
7
  flex-grow: 1;
7
8
  font-size: var(--fontSizes100);
@@ -12,6 +12,7 @@ const Menu = styled.div`
12
12
  padding: var(--spacing100) 0;
13
13
  box-shadow: var(--boxShadow100);
14
14
  position: absolute;
15
+ border-radius: var(--borderRadius100);
15
16
  background-color: var(--colorsUtilityYang100);
16
17
  z-index: ${({
17
18
  theme
@@ -41,6 +42,7 @@ const StyledMenuItem = styled.button`
41
42
  &:focus {
42
43
  outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
43
44
  z-index: 1;
45
+ border-radius: var(--borderRadius000);
44
46
  }
45
47
 
46
48
  ${({
@@ -93,6 +95,7 @@ const ButtonIcon = styled(Icon)`
93
95
  const StyledButtonIcon = styled.div`
94
96
  &:focus {
95
97
  outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
98
+ border-radius: var(--borderRadius050);
96
99
  }
97
100
  `;
98
101
  const MenuItemIcon = styled(Icon)`
@@ -11,6 +11,7 @@ const StyledAdvancedColorPickerCell = styled.button.attrs({
11
11
  color
12
12
  }) => color && css`
13
13
  background-color: ${color};
14
+ border-radius: var(--borderRadius050);
14
15
  `}
15
16
 
16
17
  ${({
@@ -27,6 +27,7 @@ const StyledAdvancedColorPickerPreview = styled.div`
27
27
  height: 25px;
28
28
  margin-bottom: 15px;
29
29
  border: 1px solid var(--colorsUtilityYin090);
30
+ border-radius: var(--borderRadius050);
30
31
 
31
32
  ${({
32
33
  color
@@ -11,15 +11,19 @@ const StyledNavigationItem = styled.li`
11
11
  border-left: var(--sizing050) solid var(--colorsActionMinor100);
12
12
  font-weight: 700;
13
13
  padding: 12px 24px;
14
+ border-top-right-radius: var(--borderRadius100);
15
+ border-bottom-right-radius: var(--borderRadius100);
14
16
 
15
17
  &:focus {
16
18
  outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
17
19
  }
18
20
 
19
21
  &:hover {
20
- background-color: ${({
22
+ ${({
21
23
  isSelected
22
- }) => !isSelected && "var(--colorsActionMinor100)"};
24
+ }) => !isSelected && css`
25
+ background-color: var(--colorsActionMinor100);
26
+ `};
23
27
  }
24
28
 
25
29
  ${({
@@ -4,7 +4,7 @@ import Button from "../button";
4
4
  import Icon from "../icon";
5
5
  const commonStyles = `
6
6
  overflow: hidden;
7
- border-radius: 50%;
7
+ border-radius: var(--borderRadiusCircle);
8
8
  position: absolute;
9
9
  top: -11px;
10
10
  right: -11px;
@@ -9,6 +9,7 @@ const StyledBatchSelection = styled.div`
9
9
  }) => css`
10
10
  align-items: center;
11
11
  display: inline-flex;
12
+ border-radius: var(--borderRadius100);
12
13
 
13
14
  ${hidden && "opacity: 0;"}
14
15
 
@@ -42,12 +43,17 @@ const StyledBatchSelection = styled.div`
42
43
 
43
44
  ${StyledIconButton}:hover {
44
45
  background-color: var(--colorsActionMajor500);
46
+ border-radius: var(--borderRadius100);
45
47
 
46
48
  ${StyledIcon} {
47
49
  color: var(--colorsActionMajorYang100);
48
50
  }
49
51
  }
50
52
 
53
+ ${StyledIconButton}:focus {
54
+ border-radius: var(--borderRadius100);
55
+ }
56
+
51
57
  ${disabled && css`
52
58
  background: transparent;
53
59
  color: var(--colorsUtilityYin030);
@@ -9,6 +9,7 @@ export declare type AllowedNumericalValues = typeof GAP_VALUES[number];
9
9
  export declare type Gap = AllowedNumericalValues | string;
10
10
  declare type DesignTokensType = keyof typeof DesignTokens;
11
11
  declare type BoxShadowsType = Extract<DesignTokensType, `boxShadow${string}`>;
12
+ declare type BorderRadiusType = Extract<DesignTokensType, `borderRadius${string}`>;
12
13
  export interface BoxProps extends SpaceProps, LayoutProps, FlexboxProps, ColorProps, Omit<PositionProps, "zIndex"> {
13
14
  as?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
14
15
  /** String to set Box content break strategy. Note "anywhere" is not supported in Safari */
@@ -27,6 +28,8 @@ export interface BoxProps extends SpaceProps, LayoutProps, FlexboxProps, ColorPr
27
28
  rowGap?: Gap;
28
29
  /** Design Token for Box Shadow. Note: please check that the box shadow design token you are using is compatible with the Box component. */
29
30
  boxShadow?: BoxShadowsType;
31
+ /** Design Token for Border Radius. Note: please check that the border radius design token you are using is compatible with the Box component. */
32
+ borderRadius?: BorderRadiusType;
30
33
  }
31
34
  export declare const Box: import("styled-components").StyledComponent<"div", any, BoxProps, never>;
32
35
  export default Box;
@@ -34,6 +34,10 @@ export const Box = styled.div`
34
34
  ${flexbox}
35
35
  ${calculatePosition}
36
36
 
37
+ ${({
38
+ borderRadius = "borderRadius000"
39
+ }) => `border-radius: var(--${borderRadius});`}
40
+
37
41
  ${({
38
42
  color,
39
43
  bg,
@@ -39,14 +39,6 @@ function stylingForType({
39
39
  destructive
40
40
  }) {
41
41
  return css`
42
- border: 2px solid transparent;
43
- box-sizing: border-box;
44
- font-weight: 600;
45
- text-decoration: none;
46
- &:focus {
47
- outline: solid 3px var(--colorsSemanticFocus500);
48
- }
49
-
50
42
  ${buttonTypes(disabled, destructive)[buttonType]};
51
43
 
52
44
  ${size === "small" && css`
@@ -77,11 +69,20 @@ const StyledButton = styled.button`
77
69
  align-items: center;
78
70
  cursor: ${disabled ? "not-allowed" : "pointer"};
79
71
  display: inline-flex;
80
- border-radius: 0;
81
72
  ${noWrap ? "white-space: nowrap;" : "flex-flow: wrap;"}
82
73
  justify-content: center;
83
74
  vertical-align: middle;
84
75
  outline-offset: 0;
76
+ border: 2px solid transparent;
77
+ box-sizing: border-box;
78
+ font-weight: 600;
79
+ text-decoration: none;
80
+ border-radius: var(--borderRadius400);
81
+
82
+ &:focus {
83
+ outline: solid 3px var(--colorsSemanticFocus500);
84
+ }
85
+
85
86
  ${stylingForType}
86
87
  `}
87
88
 
@@ -26,20 +26,38 @@ const StyledButtonBar = styled.div`
26
26
  margin: 0;
27
27
  border: 2px solid var(--colorsActionMajor500);
28
28
 
29
+ :not(:first-child):not(:last-child) {
30
+ border-radius: var(--borderRadius000);
31
+ }
32
+
33
+ :first-child:not(:last-child) {
34
+ border-top-right-radius: var(--borderRadius000);
35
+ border-bottom-right-radius: var(--borderRadius000);
36
+ }
37
+
38
+ :last-child:not(:first-child) {
39
+ border-top-left-radius: var(--borderRadius000);
40
+ border-bottom-left-radius: var(--borderRadius000);
41
+ }
42
+
29
43
  &:not(:last-of-type) {
30
44
  border-right-color: transparent;
31
45
  }
46
+
32
47
  &:not(:first-of-type) {
33
48
  margin-left: -2px;
34
49
  }
50
+
35
51
  &:focus {
36
52
  position: relative;
37
53
  z-index: 2;
38
54
  border-right-color: var(--colorsActionMajor500);
39
55
  }
56
+
40
57
  &:hover {
41
58
  background-color: var(--colorsActionMajor600);
42
59
  border-color: var(--colorsActionMajor600);
60
+
43
61
  & + button {
44
62
  border-left-color: var(--colorsActionMajor600);
45
63
  }
@@ -47,6 +65,7 @@ const StyledButtonBar = styled.div`
47
65
  color: white;
48
66
  }
49
67
  }
68
+
50
69
  & ${StyledIcon} {
51
70
  color: var(--colorsActionMajor500);
52
71
  }
@@ -5,17 +5,19 @@ import StyledLoaderSquare from "../loader/loader-square.style";
5
5
 
6
6
  function makeColors(color) {
7
7
  return `
8
- color: ${color};
9
- ${StyledIcon} {
10
8
  color: ${color};
11
- }
12
- ${StyledLoaderSquare} {
13
- background-color: ${color};
14
- }
9
+ ${StyledIcon} {
10
+ color: ${color};
11
+ }
12
+ ${StyledLoaderSquare} {
13
+ background-color: ${color};
14
+ }
15
15
  `;
16
16
  }
17
17
 
18
18
  const StyledButtonMinor = styled(Button)`
19
+ border-radius: var(--borderRadius050);
20
+
19
21
  ${({
20
22
  children
21
23
  }) => !children && css`
@@ -30,54 +32,54 @@ const StyledButtonMinor = styled(Button)`
30
32
  disabled
31
33
  }) => !destructive && !disabled && css`
32
34
  ${buttonType === "primary" && `
33
- background: var(--colorsActionMinor500);
34
- border-color: var(--colorsActionMinorTransparent);
35
- ${makeColors("var(--colorsActionMinorYang100)")}
36
- &:hover {
37
- background: var(--colorsActionMinor600);
38
- }
39
- `}
35
+ background: var(--colorsActionMinor500);
36
+ border-color: var(--colorsActionMinorTransparent);
37
+ ${makeColors("var(--colorsActionMinorYang100)")}
38
+ &:hover {
39
+ background: var(--colorsActionMinor600);
40
+ }
41
+ `}
40
42
 
41
43
  ${buttonType === "secondary" && `
42
- background: transparent;
43
- padding: var(--spacing100);
44
- border-color: var(--colorsActionMinor500);
45
- ${makeColors("var(--colorsActionMinor500)")}
46
- &:hover {
47
- color: var(--colorsActionMinorYang100);
48
- background: var(--colorsActionMinor600);
49
- }
50
- `}
44
+ background: transparent;
45
+ padding: var(--spacing100);
46
+ border-color: var(--colorsActionMinor500);
47
+ ${makeColors("var(--colorsActionMinor500)")}
48
+ &:hover {
49
+ color: var(--colorsActionMinorYang100);
50
+ background: var(--colorsActionMinor600);
51
+ }
52
+ `}
51
53
 
52
54
  ${buttonType === "tertiary" && `
53
- background: transparent;
54
- padding: var(--spacing100);
55
- ${makeColors("var(--colorsActionMinor500)")}
56
- &:hover {
57
- color: var(--colorsActionMinorYang100);
58
- background: var(--colorsActionMinor600);
59
- }
60
- `}
55
+ background: transparent;
56
+ padding: var(--spacing100);
57
+ ${makeColors("var(--colorsActionMinor500)")}
58
+ &:hover {
59
+ color: var(--colorsActionMinorYang100);
60
+ background: var(--colorsActionMinor600);
61
+ }
62
+ `}
61
63
  `}
62
64
 
63
65
  ${({
64
66
  size
65
67
  }) => css`
66
68
  ${size === "small" && `
67
- min-height: 32px;
68
- padding: var(--spacing000) var(--spacing100) var(--spacing000)
69
- var(--spacing100);
70
- `}
69
+ min-height: 32px;
70
+ padding: var(--spacing000) var(--spacing100) var(--spacing000)
71
+ var(--spacing100);
72
+ `}
71
73
 
72
74
  ${size === "medium" && `
73
- padding-left: var(--spacing150);
74
- padding-right: var(--spacing150);
75
- `}
75
+ padding-left: var(--spacing150);
76
+ padding-right: var(--spacing150);
77
+ `}
76
78
 
77
79
  ${size === "large" && `
78
- padding-left: var(--spacing200);
79
- padding-right: var(--spacing200);
80
- `}
80
+ padding-left: var(--spacing200);
81
+ padding-right: var(--spacing200);
82
+ `}
81
83
  `}
82
84
  `;
83
85
  export default StyledButtonMinor;
@@ -83,7 +83,8 @@ const ButtonToggle = ({
83
83
  htmlFor: inputGuid,
84
84
  onMouseEnter: onMouseEnter,
85
85
  onMouseLeave: onMouseLeave,
86
- size: size
86
+ size: size,
87
+ grouped: grouped
87
88
  }, /*#__PURE__*/React.createElement(StyledButtonToggleContentWrapper, null, icon, children)));
88
89
  };
89
90
 
@@ -10,6 +10,7 @@ export interface StyledButtonToggleLabelProps {
10
10
  disabled?: boolean;
11
11
  /** ButtonToggle size */
12
12
  size: "small" | "medium" | "large";
13
+ grouped?: boolean;
13
14
  }
14
15
  declare const StyledButtonToggleLabel: import("styled-components").StyledComponent<"label", any, StyledButtonToggleLabelProps, never>;
15
16
  export interface StyledButtonToggleIconProps {
@@ -38,6 +38,7 @@ const StyledButtonToggleLabel = styled.label`
38
38
  position: relative;
39
39
  box-sizing: border-box;
40
40
  max-width: 100%;
41
+
41
42
  ${({
42
43
  size
43
44
  }) => css`
@@ -47,19 +48,15 @@ const StyledButtonToggleLabel = styled.label`
47
48
  `}
48
49
  font-weight: 700;
49
50
  cursor: pointer;
50
-
51
51
  border: 1px solid var(--colorsActionMinor500);
52
-
53
52
  ${StyledIcon} {
54
53
  color: var(--colorsActionMinor500);
55
54
  }
56
-
57
55
  input:checked ~ && {
58
56
  background-color: var(--colorsActionMinor300);
59
57
  color: var(--colorsActionMinor600);
60
58
  cursor: auto;
61
59
  }
62
-
63
60
  input:focus ~ & {
64
61
  outline: 3px solid var(--colorsSemanticFocus500);
65
62
  z-index: 100;
@@ -69,12 +66,10 @@ const StyledButtonToggleLabel = styled.label`
69
66
  background-color: var(--colorsActionMinor200);
70
67
  border-color: var(--colorsActionMinor500);
71
68
  color: var(--colorsActionMinor500);
72
-
73
69
  ${StyledIcon} {
74
70
  color: var(--colorsActionMinor500);
75
71
  }
76
72
  }
77
-
78
73
  ${({
79
74
  buttonIcon,
80
75
  buttonIconSize,
@@ -82,19 +77,16 @@ const StyledButtonToggleLabel = styled.label`
82
77
  }) => buttonIcon && buttonIconSize === "large" && css`
83
78
  height: ${heightLargeIconConfig[size]}px;
84
79
  padding: 0 ${paddingLargeIconConfig[size]}px;
85
-
86
80
  ${StyledButtonToggleContentWrapper} {
87
81
  flex-direction: column;
88
82
  }
89
83
  `}
90
-
91
84
  ${({
92
85
  disabled
93
86
  }) => disabled && css`
94
87
  & {
95
88
  border-color: var(--colorsActionDisabled500);
96
89
  color: var(--colorsActionMinorYin030);
97
-
98
90
  ${StyledIcon} {
99
91
  color: var(--colorsActionMinorYin030);
100
92
  }
@@ -110,24 +102,20 @@ const StyledButtonToggleIcon = styled.div`
110
102
  ${({
111
103
  hasContent
112
104
  }) => hasContent && `margin-right: 8px;`}
113
-
114
105
  ${({
115
106
  buttonIconSize
116
107
  }) => buttonIconSize === "large" && css`
117
108
  margin-right: 0;
118
-
119
109
  ${StyledIcon} {
120
110
  margin-right: 0;
121
111
  margin-bottom: 8px;
122
112
  height: ${`${iconFontSizes.largeIcon}px`};
123
113
  width: ${`${iconFontSizes.largeIcon}px`};
124
114
  }
125
-
126
115
  ${StyledIcon}::before {
127
116
  font-size: ${`${iconFontSizes[`${buttonIconSize}Icon`]}px`};
128
117
  line-height: ${`${iconFontSizes[`${buttonIconSize}Icon`]}px`};
129
118
  }
130
-
131
119
  .carbon-icon__svg--credit-card-slash {
132
120
  margin-left: 6px;
133
121
  }
@@ -137,6 +125,36 @@ const StyledButtonToggle = styled.div`
137
125
  display: inline-block;
138
126
  vertical-align: middle;
139
127
 
128
+ ${({
129
+ grouped
130
+ }) => css`
131
+ ${!grouped && css`
132
+ &&&& {
133
+ ${StyledButtonToggleLabel} {
134
+ border-radius: var(--borderRadius400);
135
+ }
136
+ }
137
+ `}
138
+
139
+ ${grouped && css`
140
+ &&&& {
141
+ :first-of-type {
142
+ ${StyledButtonToggleLabel} {
143
+ border-top-left-radius: var(--borderRadius400);
144
+ border-bottom-left-radius: var(--borderRadius400);
145
+ }
146
+ }
147
+
148
+ :last-of-type {
149
+ ${StyledButtonToggleLabel} {
150
+ border-top-right-radius: var(--borderRadius400);
151
+ border-bottom-right-radius: var(--borderRadius400);
152
+ }
153
+ }
154
+ }
155
+ `}
156
+ `}
157
+
140
158
  &:not(:first-of-type) {
141
159
  margin-left: 8px;
142
160
  }
@@ -4,6 +4,24 @@ import ValidationIconStyle from "../../__internal__/validations/validation-icon.
4
4
  const StyledButtonToggleGroup = styled.div`
5
5
  display: flex;
6
6
 
7
+ ${StyledButtonToggleLabel}:not(:first-of-type):not(:last-of-type) {
8
+ border-radius: var(--borderRadius000);
9
+ }
10
+
11
+ ${StyledButtonToggle}:first-of-type ${StyledButtonToggleLabel} {
12
+ border-top-left-radius: var(--borderRadius400);
13
+ border-bottom-left-radius: var(--borderRadius400);
14
+ border-top-right-radius: var(--borderRadius000);
15
+ border-bottom-right-radius: var(--borderRadius000);
16
+ }
17
+
18
+ ${StyledButtonToggle}:last-of-type ${StyledButtonToggleLabel} {
19
+ border-top-left-radius: var(--borderRadius000);
20
+ border-bottom-left-radius: var(--borderRadius000);
21
+ border-top-right-radius: var(--borderRadius400);
22
+ border-bottom-right-radius: var(--borderRadius400);
23
+ }
24
+
7
25
  ${({
8
26
  fullWidth
9
27
  }) => fullWidth && css`
@@ -13,20 +31,20 @@ const StyledButtonToggleGroup = styled.div`
13
31
  ${StyledButtonToggle} {
14
32
  flex: auto;
15
33
  }
16
- `};
34
+ `}
17
35
 
18
36
  ${({
19
37
  inputWidth
20
38
  }) => inputWidth && css`
21
39
  width: ${`${inputWidth}%`};
22
- `};
40
+ `}
23
41
 
24
42
  ${StyledButtonToggleLabel} {
25
43
  ${({
26
44
  info
27
45
  }) => info && css`
28
46
  border-color: var(--colorsSemanticInfo500);
29
- `};
47
+ `}
30
48
  ${({
31
49
  warning
32
50
  }) => warning && css`
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export interface CardContextProps {
3
+ /** Sets the level of roundness of the corners, "default" is 8px and "large" is 16px */
4
+ roundness?: "default" | "large";
5
+ }
6
+ declare const _default: React.Context<CardContextProps>;
7
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default /*#__PURE__*/React.createContext({});
@@ -1,9 +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
- import React from "react";
3
+ import React, { useContext } from "react";
4
4
  import PropTypes from "prop-types";
5
5
  import { filterStyledSystemMarginProps, filterStyledSystemPaddingProps } from "../../../style/utils";
6
6
  import StyledCardFooter from "./card-footer.style";
7
+ import CardContext from "../__internal__/card-context";
7
8
 
8
9
  const CardFooter = ({
9
10
  spacing = "medium",
@@ -11,12 +12,17 @@ const CardFooter = ({
11
12
  variant = "default",
12
13
  ...rest
13
14
  }) => {
15
+ const {
16
+ roundness
17
+ } = useContext(CardContext);
14
18
  return /*#__PURE__*/React.createElement(StyledCardFooter, _extends({
15
19
  key: "card-footer",
16
20
  "data-element": "card-footer",
17
21
  spacing: spacing,
18
22
  variant: variant
19
- }, filterStyledSystemMarginProps(rest), filterStyledSystemPaddingProps(rest)), children);
23
+ }, filterStyledSystemMarginProps(rest), filterStyledSystemPaddingProps(rest), {
24
+ roundness: roundness
25
+ }), children);
20
26
  };
21
27
 
22
28
  CardFooter.propTypes = {
@@ -329,6 +335,7 @@ CardFooter.propTypes = {
329
335
  "toString": PropTypes.func.isRequired,
330
336
  "valueOf": PropTypes.func.isRequired
331
337
  }), PropTypes.string]),
338
+ "roundness": PropTypes.oneOf(["default", "large"]),
332
339
  "spacing": PropTypes.oneOf(["large", "medium", "small"]),
333
340
  "variant": PropTypes.oneOf(["default", "transparent"])
334
341
  };
@@ -1,6 +1,7 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  import { CardSpacing } from "../card.config";
3
- export interface StyledCardFooterProps extends SpaceProps {
3
+ import { CardContextProps } from "../__internal__/card-context";
4
+ export interface StyledCardFooterProps extends SpaceProps, CardContextProps {
4
5
  /** Predefined size of CardFooter for applying padding. For more granular control, this prop can be over-ridden by the spacing props from styled-system */
5
6
  spacing: CardSpacing;
6
7
  /** Specify styling variant to render */
@@ -16,7 +16,8 @@ const StyledCardFooter = styled.div`
16
16
 
17
17
  ${({
18
18
  spacing,
19
- variant
19
+ variant,
20
+ roundness = "default"
20
21
  }) => css`
21
22
  background-color: ${variant === "transparent" ? "transparent" : "var(--colorsUtilityMajor025)"};
22
23
  border-top: var(--colorsUtilityMajor100);
@@ -26,6 +27,14 @@ const StyledCardFooter = styled.div`
26
27
  font-weight: 700;
27
28
  margin: ${marginSizes[spacing]};
28
29
  display: flex;
30
+ ${roundness === "default" && css`
31
+ border-bottom-left-radius: var(--borderRadius100);
32
+ border-bottom-right-radius: var(--borderRadius100);
33
+ `}
34
+ ${roundness === "large" && css`
35
+ border-bottom-left-radius: var(--borderRadius200);
36
+ border-bottom-right-radius: var(--borderRadius200);
37
+ `}
29
38
 
30
39
  ${StyledCardColumn} {
31
40
  margin: 0;
@@ -1,10 +1,11 @@
1
1
  import React from "react";
2
2
  import { MarginProps } from "styled-system";
3
3
  import * as DesignTokens from "@sage/design-tokens/js/base/common";
4
+ import { CardContextProps } from "./__internal__/card-context";
4
5
  import { CardSpacing } from "./card.config";
5
6
  declare type DesignTokensType = keyof typeof DesignTokens;
6
7
  declare type BoxShadowsType = Extract<DesignTokensType, `boxShadow${string}`>;
7
- export interface CardProps extends MarginProps {
8
+ export interface CardProps extends MarginProps, CardContextProps {
8
9
  /** Identifier used for testing purposes, applied to the root element of the component. */
9
10
  "data-element"?: string;
10
11
  /** Identifier used for testing purposes, applied to the root element of the component. */
@@ -34,7 +35,7 @@ export interface CardProps extends MarginProps {
34
35
  hoverBoxShadow?: BoxShadowsType;
35
36
  }
36
37
  declare const Card: {
37
- ({ "data-element": dataElement, "data-role": dataRole, dataRole: oldDataRole, action, children, cardWidth, draggable, height, interactive, spacing, boxShadow, hoverBoxShadow, ...rest }: CardProps): JSX.Element;
38
+ ({ "data-element": dataElement, "data-role": dataRole, dataRole: oldDataRole, action, children, cardWidth, draggable, height, interactive, spacing, boxShadow, hoverBoxShadow, roundness, ...rest }: CardProps): JSX.Element;
38
39
  displayName: string;
39
40
  };
40
41
  export default Card;