carbon-react 102.10.1 → 102.13.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 (523) hide show
  1. package/lib/__internal__/DeprecationWarning.d.ts +10 -0
  2. package/lib/__internal__/character-count/character-count.component.d.ts +26 -0
  3. package/lib/__internal__/character-count/character-count.style.d.ts +2 -0
  4. package/lib/__internal__/character-count/index.d.ts +1 -0
  5. package/lib/__internal__/checkable-input/checkable-input-svg-wrapper.style.d.ts +2 -0
  6. package/lib/__internal__/checkable-input/checkable-input.component.d.ts +75 -0
  7. package/lib/__internal__/checkable-input/checkable-input.style.d.ts +2 -0
  8. package/lib/__internal__/checkable-input/hidden-checkable-input.component.d.ts +41 -0
  9. package/lib/__internal__/checkable-input/hidden-checkable-input.style.d.ts +2 -0
  10. package/lib/__internal__/date/index.d.ts +1 -0
  11. package/lib/__internal__/field-help/field-help.component.d.ts +15 -0
  12. package/lib/__internal__/field-help/field-help.style.d.ts +2 -0
  13. package/lib/__internal__/fieldset/fieldset.component.d.ts +35 -0
  14. package/lib/__internal__/fieldset/fieldset.style.d.ts +3 -0
  15. package/lib/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -0
  16. package/lib/__internal__/filter-object-properties/index.d.ts +1 -0
  17. package/lib/__internal__/focus-trap/focus-trap-utils.d.ts +4 -0
  18. package/lib/__internal__/focus-trap/focus-trap.component.d.ts +22 -0
  19. package/lib/__internal__/focus-trap/index.d.ts +1 -0
  20. package/lib/__internal__/form-field/form-field.component.d.ts +63 -0
  21. package/lib/__internal__/form-field/form-field.style.d.ts +3 -0
  22. package/lib/__internal__/full-screen-heading/full-screen-heading.component.d.ts +3 -0
  23. package/lib/__internal__/full-screen-heading/full-screen-heading.style.d.ts +3 -0
  24. package/lib/__internal__/full-screen-heading/index.d.ts +1 -0
  25. package/lib/__internal__/i18n-context/index.d.ts +2 -0
  26. package/lib/__internal__/input/extract-props/extract-props.d.ts +1 -0
  27. package/lib/__internal__/input/extract-props/index.d.ts +1 -0
  28. package/lib/__internal__/input/input-presentation.component.d.ts +28 -0
  29. package/lib/__internal__/input/input-presentation.style.d.ts +9 -0
  30. package/lib/__internal__/input/input-sizes.style.d.ts +34 -0
  31. package/lib/__internal__/input/input.component.d.ts +3 -0
  32. package/lib/__internal__/input/input.style.d.ts +2 -0
  33. package/lib/__internal__/input-behaviour/index.d.ts +2 -0
  34. package/lib/__internal__/input-behaviour/input-behaviour.component.d.ts +11 -0
  35. package/lib/__internal__/input-behaviour/input-group-behaviour.component.d.ts +13 -0
  36. package/lib/__internal__/input-behaviour/useInputBehaviour.d.ts +11 -0
  37. package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.d.ts +38 -0
  38. package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.d.ts +5 -0
  39. package/lib/__internal__/label/icon-wrapper.style.d.ts +2 -0
  40. package/lib/__internal__/label/label.component.d.ts +66 -0
  41. package/lib/__internal__/label/label.style.d.ts +3 -0
  42. package/lib/__internal__/popover/index.d.ts +1 -0
  43. package/lib/__internal__/popover/popover.component.d.ts +22 -0
  44. package/lib/__internal__/sticky-footer/index.d.ts +1 -0
  45. package/lib/__internal__/sticky-footer/sticky-footer.component.d.ts +15 -0
  46. package/lib/__internal__/sticky-footer/sticky-footer.style.d.ts +2 -0
  47. package/lib/__internal__/utils/ether/ether.d.ts +19 -0
  48. package/lib/__internal__/utils/ether/index.d.ts +1 -0
  49. package/lib/__internal__/utils/helpers/browser/browser.d.ts +17 -0
  50. package/lib/__internal__/utils/helpers/browser/index.d.ts +1 -0
  51. package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +7 -0
  52. package/lib/__internal__/utils/helpers/browser-type-check/index.d.ts +1 -0
  53. package/lib/__internal__/utils/helpers/events/composedPath.d.ts +2 -0
  54. package/lib/__internal__/utils/helpers/events/events.d.ts +32 -0
  55. package/lib/__internal__/utils/helpers/events/index.d.ts +1 -0
  56. package/lib/__internal__/utils/helpers/guid/__spec__.d.ts +1 -0
  57. package/lib/__internal__/utils/helpers/guid/guid.d.ts +2 -0
  58. package/lib/__internal__/utils/helpers/immutable/__spec__.d.ts +1 -0
  59. package/lib/__internal__/utils/helpers/immutable/immutable.d.ts +4 -0
  60. package/lib/__internal__/utils/helpers/tags/index.d.ts +1 -0
  61. package/lib/__internal__/utils/helpers/tags/tags-specs/index.d.ts +1 -0
  62. package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +2 -0
  63. package/lib/__internal__/utils/helpers/tags/tags.d.ts +9 -0
  64. package/lib/__internal__/utils/helpers/with-unique-id-props/index.d.ts +1 -0
  65. package/lib/__internal__/utils/logger/index.d.ts +1 -0
  66. package/lib/__internal__/utils/logger/logger.d.ts +9 -0
  67. package/lib/__internal__/validations/validation-icon.component.d.ts +41 -0
  68. package/lib/__internal__/validations/validation-icon.style.d.ts +2 -0
  69. package/lib/__spec_helper__/enzyme-snapshot-helper.d.ts +2 -0
  70. package/lib/__spec_helper__/expect.d.ts +1 -0
  71. package/lib/__spec_helper__/index.d.ts +1 -0
  72. package/lib/__spec_helper__/mock-date-helper.d.ts +1 -0
  73. package/lib/__spec_helper__/mock-resize-observer.d.ts +2 -0
  74. package/lib/__spec_helper__/test-utils.d.ts +33 -0
  75. package/lib/components/accordion/accordion-group/accordion-group.component.d.ts +10 -0
  76. package/lib/components/accordion/accordion.component.d.ts +3 -0
  77. package/lib/components/accordion/accordion.style.d.ts +10 -0
  78. package/lib/components/action-popover/action-popover-context.d.ts +3 -0
  79. package/lib/components/action-popover/action-popover-divider/action-popover-divider.component.d.ts +2 -0
  80. package/lib/components/action-popover/action-popover-item/action-popover-item.component.d.ts +42 -0
  81. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +3 -0
  82. package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.d.ts +19 -0
  83. package/lib/components/action-popover/action-popover.component.d.ts +38 -0
  84. package/lib/components/action-popover/action-popover.style.d.ts +31 -0
  85. package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.d.ts +4 -0
  86. package/lib/components/advanced-color-picker/advanced-color-picker.component.d.ts +55 -0
  87. package/lib/components/advanced-color-picker/advanced-color-picker.style.d.ts +53 -0
  88. package/lib/components/alert/alert.component.d.ts +50 -0
  89. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.d.ts +3 -0
  90. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.d.ts +2 -0
  91. package/lib/components/anchor-navigation/anchor-navigation.component.d.ts +12 -0
  92. package/lib/components/anchor-navigation/anchor-navigation.style.d.ts +3 -0
  93. package/lib/components/anchor-navigation/anchor-section-divider/anchor-section-divider.style.d.ts +4 -0
  94. package/lib/components/app-wrapper/app-wrapper.component.d.ts +21 -0
  95. package/lib/components/app-wrapper/app-wrapper.style.d.ts +2 -0
  96. package/lib/components/badge/badge.component.d.ts +14 -0
  97. package/lib/components/badge/badge.style.d.ts +6 -0
  98. package/lib/components/batch-selection/batch-selection.component.d.ts +22 -0
  99. package/lib/components/batch-selection/batch-selection.style.d.ts +2 -0
  100. package/lib/components/box/box.component.d.ts +7 -0
  101. package/lib/components/button/button-types.style.d.ts +9 -0
  102. package/lib/components/button/button.component.d.ts +17 -0
  103. package/lib/components/button/button.config.d.ts +3 -0
  104. package/lib/components/button/button.style.d.ts +9 -0
  105. package/lib/components/button-bar/button-bar.component.d.ts +16 -0
  106. package/lib/components/button-bar/button-bar.config.d.ts +2 -0
  107. package/lib/components/button-bar/button-bar.style.d.ts +5 -0
  108. package/lib/components/button-toggle/button-toggle-icon.component.d.ts +9 -0
  109. package/lib/components/button-toggle/button-toggle-input.component.d.ts +3 -0
  110. package/lib/components/button-toggle/button-toggle.component.d.ts +48 -0
  111. package/lib/components/button-toggle/button-toggle.style.d.ts +5 -0
  112. package/lib/components/button-toggle-group/__definition__.d.ts +2 -0
  113. package/lib/components/button-toggle-group/__definition__.js +50 -0
  114. package/lib/components/button-toggle-group/button-toggle-group.component.d.ts +86 -0
  115. package/lib/components/button-toggle-group/button-toggle-group.style.d.ts +2 -0
  116. package/lib/components/button-toggle-group/documentation/index.d.ts +1 -0
  117. package/lib/components/carbon-provider/carbon-provider.component.d.ts +12 -0
  118. package/lib/components/card/card-column/card-column.component.d.ts +17 -0
  119. package/lib/components/card/card-column/card-column.style.d.ts +2 -0
  120. package/lib/components/card/card-footer/card-footer.component.d.ts +9 -0
  121. package/lib/components/card/card-footer/card-footer.style.d.ts +2 -0
  122. package/lib/components/card/card-row/card-row.component.d.ts +13 -0
  123. package/lib/components/card/card-row/card-row.style.d.ts +2 -0
  124. package/lib/components/card/card.component.d.ts +27 -0
  125. package/lib/components/card/card.config.d.ts +2 -0
  126. package/lib/components/card/card.style.d.ts +2 -0
  127. package/lib/components/carousel/carousel.component.d.ts +36 -0
  128. package/lib/components/carousel/carousel.style.d.ts +16 -0
  129. package/lib/components/carousel/slide/slide.component.d.ts +8 -0
  130. package/lib/components/carousel/slide/slide.style.d.ts +1 -0
  131. package/lib/components/carousel/slide.config.d.ts +2 -0
  132. package/lib/components/checkbox/checkbox-group.component.d.ts +20 -0
  133. package/lib/components/checkbox/checkbox-svg.component.d.ts +2 -0
  134. package/lib/components/checkbox/checkbox.component.d.ts +109 -0
  135. package/lib/components/checkbox/checkbox.style.d.ts +3 -0
  136. package/lib/components/checkbox/checkbox.style.js +5 -1
  137. package/lib/components/confirm/confirm.component.d.ts +117 -0
  138. package/lib/components/confirm/confirm.config.d.ts +1 -0
  139. package/lib/components/confirm/confirm.style.d.ts +2 -0
  140. package/lib/components/content/content.component.d.ts +23 -0
  141. package/lib/components/content/content.style.d.ts +3 -0
  142. package/lib/components/date/date-picker.component.d.ts +22 -0
  143. package/lib/components/date/date.component.d.ts +57 -0
  144. package/lib/components/date/date.style.d.ts +2 -0
  145. package/lib/components/date/day-picker.style.d.ts +2 -0
  146. package/lib/components/date/navbar/button.style.d.ts +4 -0
  147. package/lib/components/date/navbar/index.d.ts +1 -0
  148. package/lib/components/date/navbar/navbar.component.d.ts +13 -0
  149. package/lib/components/date/navbar/navbar.style.d.ts +2 -0
  150. package/lib/components/date/weekday/abbr.style.d.ts +2 -0
  151. package/lib/components/date/weekday/index.d.ts +1 -0
  152. package/lib/components/date/weekday/weekday.component.d.ts +15 -0
  153. package/lib/components/date/weekday/weekday.style.d.ts +2 -0
  154. package/lib/components/date-range/date-range.component.d.ts +39 -0
  155. package/lib/components/date-range/date-range.style.d.ts +2 -0
  156. package/lib/components/decimal/decimal.component.d.ts +81 -0
  157. package/lib/components/definition-list/__internal__/dl.context.d.ts +3 -0
  158. package/lib/components/definition-list/dd.component.d.ts +8 -0
  159. package/lib/components/definition-list/definition-list.style.d.ts +5 -0
  160. package/lib/components/definition-list/dl.component.d.ts +12 -0
  161. package/lib/components/definition-list/dt.component.d.ts +8 -0
  162. package/lib/components/detail/detail.component.d.ts +17 -0
  163. package/lib/components/detail/detail.style.d.ts +5 -0
  164. package/lib/components/dialog/dialog.component.d.ts +81 -0
  165. package/lib/components/dialog/dialog.config.d.ts +2 -0
  166. package/lib/components/dialog/dialog.style.d.ts +4 -0
  167. package/lib/components/dialog-full-screen/content.style.d.ts +2 -0
  168. package/lib/components/dialog-full-screen/dialog-full-screen.component.d.ts +78 -0
  169. package/lib/components/dialog-full-screen/dialog-full-screen.style.d.ts +2 -0
  170. package/lib/components/dismissible-box/dismissible-box.component.d.ts +11 -0
  171. package/lib/components/dismissible-box/dismissible-box.style.d.ts +3 -0
  172. package/lib/components/draggable/draggable-container.component.d.ts +13 -0
  173. package/lib/components/draggable/draggable-item.component.d.ts +19 -0
  174. package/lib/components/draggable/draggable-item.style.d.ts +4 -0
  175. package/lib/components/drawer/drawer.component.d.ts +39 -0
  176. package/lib/components/drawer/drawer.style.d.ts +10 -0
  177. package/lib/components/duelling-picklist/duelling-picklist.component.d.ts +21 -0
  178. package/lib/components/duelling-picklist/duelling-picklist.context.d.ts +3 -0
  179. package/lib/components/duelling-picklist/duelling-picklist.style.d.ts +7 -0
  180. package/lib/components/duelling-picklist/picklist/picklist.component.d.ts +18 -0
  181. package/lib/components/duelling-picklist/picklist/picklist.style.d.ts +5 -0
  182. package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.d.ts +2 -0
  183. package/lib/components/duelling-picklist/picklist-divider/picklist-divider.style.d.ts +2 -0
  184. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.d.ts +3 -0
  185. package/lib/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +5 -0
  186. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.d.ts +3 -0
  187. package/lib/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +5 -0
  188. package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.d.ts +10 -0
  189. package/lib/components/fieldset/fieldset.component.d.ts +14 -0
  190. package/lib/components/fieldset/fieldset.style.d.ts +3 -0
  191. package/lib/components/flat-table/cell-sizes.style.d.ts +40 -0
  192. package/lib/components/flat-table/flat-table-body/flat-table-body.component.d.ts +3 -0
  193. package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.d.ts +12 -0
  194. package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.d.ts +38 -0
  195. package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.d.ts +2 -0
  196. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.d.ts +26 -0
  197. package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.d.ts +2 -0
  198. package/lib/components/flat-table/flat-table-head/flat-table-head.component.d.ts +10 -0
  199. package/lib/components/flat-table/flat-table-head/flat-table-head.style.d.ts +2 -0
  200. package/lib/components/flat-table/flat-table-header/flat-table-header.component.d.ts +33 -0
  201. package/lib/components/flat-table/flat-table-header/flat-table-header.style.d.ts +2 -0
  202. package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.d.ts +22 -0
  203. package/lib/components/flat-table/flat-table-row/flat-table-row.component.d.ts +3 -0
  204. package/lib/components/flat-table/flat-table-row/flat-table-row.style.d.ts +2 -0
  205. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.d.ts +30 -0
  206. package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.d.ts +2 -0
  207. package/lib/components/flat-table/flat-table.component.d.ts +43 -0
  208. package/lib/components/flat-table/flat-table.config.d.ts +2 -0
  209. package/lib/components/flat-table/flat-table.style.d.ts +4 -0
  210. package/lib/components/flat-table/sort/sort.component.d.ts +14 -0
  211. package/lib/components/flat-table/sort/sort.style.d.ts +2 -0
  212. package/lib/components/form/__internal__/form-summary.component.d.ts +10 -0
  213. package/lib/components/form/__internal__/form-summary.style.d.ts +3 -0
  214. package/lib/components/form/form.component.d.ts +20 -0
  215. package/lib/components/form/form.config.d.ts +1 -0
  216. package/lib/components/form/form.style.d.ts +5 -0
  217. package/lib/components/grid/grid-container/grid-container.component.d.ts +5 -0
  218. package/lib/components/grid/grid-container/grid-container.style.d.ts +2 -0
  219. package/lib/components/grid/grid-item/grid-item.component.d.ts +25 -0
  220. package/lib/components/grid/grid-item/grid-item.style.d.ts +2 -0
  221. package/lib/components/grouped-character/grouped-character.component.d.ts +23 -0
  222. package/lib/components/grouped-character/grouped-character.utils.d.ts +2 -0
  223. package/lib/components/heading/heading.component.d.ts +71 -0
  224. package/lib/components/heading/heading.style.d.ts +16 -0
  225. package/lib/components/help/help.component.d.ts +45 -0
  226. package/lib/components/help/help.config.d.ts +1 -0
  227. package/lib/components/help/help.style.d.ts +2 -0
  228. package/lib/components/hr/hr.component.d.ts +13 -0
  229. package/lib/components/hr/hr.style.d.ts +2 -0
  230. package/lib/components/i18n-provider/i18n-provider.component.d.ts +102 -0
  231. package/lib/components/icon/icon-config.d.ts +26 -0
  232. package/lib/components/icon/icon-unicodes.d.ts +247 -0
  233. package/lib/components/icon/icon.component.d.ts +3 -0
  234. package/lib/components/icon/icon.style.d.ts +2 -0
  235. package/lib/components/icon-button/icon-button.component.d.ts +3 -0
  236. package/lib/components/icon-button/icon-button.style.d.ts +4 -0
  237. package/lib/components/image/image.component.d.ts +2 -0
  238. package/lib/components/inline-inputs/inline-inputs.component.d.ts +22 -0
  239. package/lib/components/inline-inputs/inline-inputs.config.d.ts +1 -0
  240. package/lib/components/inline-inputs/inline-inputs.style.d.ts +4 -0
  241. package/lib/components/link/link.component.d.ts +3 -0
  242. package/lib/components/link/link.config.d.ts +2 -0
  243. package/lib/components/link/link.style.d.ts +2 -0
  244. package/lib/components/link-preview/__internal__/placeholder.component.d.ts +2 -0
  245. package/lib/components/link-preview/link-preview.component.d.ts +29 -0
  246. package/lib/components/link-preview/link-preview.style.d.ts +6 -0
  247. package/lib/components/loader/loader-square.style.d.ts +2 -0
  248. package/lib/components/loader/loader.component.d.ts +23 -0
  249. package/lib/components/loader/loader.config.d.ts +1 -0
  250. package/lib/components/loader/loader.style.d.ts +2 -0
  251. package/lib/components/loader-bar/loader-bar.component.d.ts +11 -0
  252. package/lib/components/loader-bar/loader-bar.config.d.ts +1 -0
  253. package/lib/components/loader-bar/loader-bar.style.d.ts +4 -0
  254. package/lib/components/menu/__internal__/keyboard-navigation/index.d.ts +2 -0
  255. package/lib/components/menu/__internal__/spec-helper/index.d.ts +2 -0
  256. package/lib/components/menu/__internal__/submenu/submenu.component.d.ts +3 -0
  257. package/lib/components/menu/__internal__/submenu/submenu.context.d.ts +3 -0
  258. package/lib/components/menu/__internal__/submenu/submenu.style.d.ts +2 -0
  259. package/lib/components/menu/__internal__/submenu/submenu.style.js +8 -40
  260. package/lib/components/menu/menu-divider/menu-divider.component.d.ts +3 -0
  261. package/lib/components/menu/menu-divider/menu-divider.style.d.ts +2 -0
  262. package/lib/components/menu/menu-divider/menu-divider.style.js +1 -1
  263. package/lib/components/menu/menu-full-screen/menu-full-screen.component.d.ts +17 -0
  264. package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +14 -2
  265. package/lib/components/menu/menu-full-screen/menu-full-screen.style.d.ts +2 -0
  266. package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +2 -10
  267. package/lib/components/menu/menu-item/menu-item.component.d.ts +24 -0
  268. package/lib/components/menu/menu-item/menu-item.style.d.ts +2 -0
  269. package/lib/components/menu/menu-item/menu-item.style.js +26 -92
  270. package/lib/components/menu/menu-segment-title/menu-segment-title.component.d.ts +3 -0
  271. package/lib/components/menu/menu-segment-title/menu-segment-title.style.d.ts +2 -0
  272. package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +2 -10
  273. package/lib/components/menu/menu.component.d.ts +11 -0
  274. package/lib/components/menu/menu.component.js +1 -1
  275. package/lib/components/menu/menu.context.d.ts +5 -0
  276. package/lib/components/menu/menu.context.js +3 -1
  277. package/lib/components/menu/menu.d.ts +3 -2
  278. package/lib/components/menu/menu.style.d.ts +2 -0
  279. package/lib/components/menu/menu.style.js +1 -2
  280. package/lib/components/menu/scrollable-block/scrollable-block.component.d.ts +15 -0
  281. package/lib/components/menu/scrollable-block/scrollable-block.component.js +7 -1
  282. package/lib/components/menu/scrollable-block/scrollable-block.style.d.ts +2 -0
  283. package/lib/components/menu/scrollable-block/scrollable-block.style.js +1 -7
  284. package/lib/components/menu/submenu-block/submenu-block.component.d.ts +12 -0
  285. package/lib/components/menu/submenu-block/submenu-block.style.d.ts +2 -0
  286. package/lib/components/menu/submenu-block/submenu-block.style.js +4 -6
  287. package/lib/components/message/message-content/message-content.component.d.ts +22 -0
  288. package/lib/components/message/message-content/message-content.style.d.ts +2 -0
  289. package/lib/components/message/message.component.d.ts +29 -0
  290. package/lib/components/message/message.style.d.ts +2 -0
  291. package/lib/components/message/type-icon/type-icon.component.d.ts +18 -0
  292. package/lib/components/message/type-icon/type-icon.style.d.ts +2 -0
  293. package/lib/components/modal/__internal__/modal-manager.d.ts +9 -0
  294. package/lib/components/modal/modal.component.d.ts +35 -0
  295. package/lib/components/modal/modal.style.d.ts +2 -0
  296. package/lib/components/mount-in-app/__spec__.d.ts +1 -0
  297. package/lib/components/multi-action-button/multi-action-button.component.d.ts +37 -0
  298. package/lib/components/multi-action-button/multi-action-button.config.d.ts +3 -0
  299. package/lib/components/multi-action-button/multi-action-button.style.d.ts +2 -0
  300. package/lib/components/multi-step-wizard/__spec__.d.ts +1 -0
  301. package/lib/components/multi-step-wizard/multi-step-wizard.d.ts +87 -0
  302. package/lib/components/multi-step-wizard/multi-step-wizard.style.d.ts +2 -0
  303. package/lib/components/multi-step-wizard/step/__spec__.d.ts +1 -0
  304. package/lib/components/multi-step-wizard/step/step.d.ts +160 -0
  305. package/lib/components/multi-step-wizard/step/step.style.d.ts +11 -0
  306. package/lib/components/navigation-bar/navigation-bar.component.d.ts +13 -0
  307. package/lib/components/navigation-bar/navigation-bar.component.js +1 -1
  308. package/lib/components/navigation-bar/navigation-bar.d.ts +1 -1
  309. package/lib/components/navigation-bar/navigation-bar.style.d.ts +2 -0
  310. package/lib/components/navigation-bar/navigation-bar.style.js +15 -2
  311. package/lib/components/note/__internal__/status-with-tooltip/index.d.ts +1 -0
  312. package/lib/components/note/__internal__/status-with-tooltip/status.component.d.ts +3 -0
  313. package/lib/components/note/__internal__/status-with-tooltip/status.style.d.ts +2 -0
  314. package/lib/components/note/note.component.d.ts +30 -0
  315. package/lib/components/note/note.style.d.ts +6 -0
  316. package/lib/components/number/number.component.d.ts +10 -0
  317. package/lib/components/numeral-date/numeral-date.component.d.ts +111 -0
  318. package/lib/components/numeral-date/numeral-date.style.d.ts +2 -0
  319. package/lib/components/pager/__internal__/pager-navigation-link.component.d.ts +20 -0
  320. package/lib/components/pager/__internal__/pager-navigation.component.d.ts +32 -0
  321. package/lib/components/pager/pager.component.d.ts +49 -0
  322. package/lib/components/pager/pager.style.d.ts +11 -0
  323. package/lib/components/pages/page/page.component.d.ts +13 -0
  324. package/lib/components/pages/page/page.style.d.ts +2 -0
  325. package/lib/components/pages/pages.component.d.ts +20 -0
  326. package/lib/components/pages/pages.config.d.ts +2 -0
  327. package/lib/components/pages/pages.style.d.ts +2 -0
  328. package/lib/components/pill/pill.component.d.ts +39 -0
  329. package/lib/components/pill/pill.style.config.d.ts +27 -0
  330. package/lib/components/pill/pill.style.d.ts +2 -0
  331. package/lib/components/pod/pod.component.d.ts +3 -0
  332. package/lib/components/pod/pod.config.d.ts +3 -0
  333. package/lib/components/pod/pod.style.d.ts +13 -0
  334. package/lib/components/popover-container/popover-container.component.d.ts +57 -0
  335. package/lib/components/popover-container/popover-container.style.d.ts +8 -0
  336. package/lib/components/portal/portal.style.d.ts +3 -0
  337. package/lib/components/portrait/portrait-gravatar.component.d.ts +24 -0
  338. package/lib/components/portrait/portrait-initials.component.d.ts +8 -0
  339. package/lib/components/portrait/portrait.component.d.ts +55 -0
  340. package/lib/components/portrait/portrait.config.d.ts +44 -0
  341. package/lib/components/portrait/portrait.style.d.ts +10 -0
  342. package/lib/components/preview/preview.component.d.ts +16 -0
  343. package/lib/components/preview/preview.style.d.ts +3 -0
  344. package/lib/components/profile/profile.component.d.ts +21 -0
  345. package/lib/components/profile/profile.config.d.ts +95 -0
  346. package/lib/components/profile/profile.style.d.ts +6 -0
  347. package/lib/components/progress-tracker/progress-tracker.component.d.ts +27 -0
  348. package/lib/components/progress-tracker/progress-tracker.config.d.ts +3 -0
  349. package/lib/components/progress-tracker/progress-tracker.style.d.ts +5 -0
  350. package/lib/components/radio-button/radio-button-group.component.d.ts +26 -0
  351. package/lib/components/radio-button/radio-button-group.style.d.ts +2 -0
  352. package/lib/components/radio-button/radio-button-mapper.component.d.ts +22 -0
  353. package/lib/components/radio-button/radio-button-svg.component.d.ts +3 -0
  354. package/lib/components/radio-button/radio-button.component.d.ts +5 -0
  355. package/lib/components/radio-button/radio-button.style.d.ts +2 -0
  356. package/lib/components/row/column/column.component.d.ts +30 -0
  357. package/lib/components/row/column/column.style.d.ts +2 -0
  358. package/lib/components/row/row.component.d.ts +24 -0
  359. package/lib/components/row/row.config.d.ts +11 -0
  360. package/lib/components/row/row.style.d.ts +2 -0
  361. package/lib/components/scrollable-list/as-scrollable-list-item.wrapper.d.ts +2 -0
  362. package/lib/components/scrollable-list/index.d.ts +4 -0
  363. package/lib/components/scrollable-list/scrollable-list-item.component.d.ts +2 -0
  364. package/lib/components/scrollable-list/scrollable-list.component.d.ts +44 -0
  365. package/lib/components/scrollable-list/scrollable-list.context.d.ts +3 -0
  366. package/lib/components/scrollable-list/scrollable-list.style.d.ts +2 -0
  367. package/lib/components/scrollable-list/test-utils.d.ts +2 -0
  368. package/lib/components/search/search.component.d.ts +68 -0
  369. package/lib/components/search/search.style.d.ts +4 -0
  370. package/lib/components/select/filterable-select/filterable-select.component.d.ts +3 -0
  371. package/lib/components/select/list-action-button/list-action-button.component.d.ts +3 -0
  372. package/lib/components/select/list-action-button/list-action-button.style.d.ts +2 -0
  373. package/lib/components/select/multi-select/multi-select.component.d.ts +3 -0
  374. package/lib/components/select/multi-select/multi-select.style.d.ts +2 -0
  375. package/lib/components/select/option/option.component.d.ts +3 -0
  376. package/lib/components/select/option/option.style.d.ts +2 -0
  377. package/lib/components/select/option-group-header/option-group-header.component.d.ts +12 -0
  378. package/lib/components/select/option-group-header/option-group-header.style.d.ts +2 -0
  379. package/lib/components/select/option-row/option-row.component.d.ts +3 -0
  380. package/lib/components/select/option-row/option-row.style.d.ts +2 -0
  381. package/lib/components/select/select-list/select-list-container.style.d.ts +2 -0
  382. package/lib/components/select/select-list/select-list.component.d.ts +3 -0
  383. package/lib/components/select/select-list/select-list.style.d.ts +6 -0
  384. package/lib/components/select/select-list/update-list-scroll.d.ts +1 -0
  385. package/lib/components/select/select-textbox/select-textbox.component.d.ts +43 -0
  386. package/lib/components/select/select.style.d.ts +2 -0
  387. package/lib/components/select/simple-select/simple-select.component.d.ts +3 -0
  388. package/lib/components/select/utils/get-next-child-by-text.d.ts +4 -0
  389. package/lib/components/select/utils/get-next-index-by-key.d.ts +1 -0
  390. package/lib/components/select/utils/highlight-part-of-text.d.ts +1 -0
  391. package/lib/components/select/utils/is-expected-option.d.ts +1 -0
  392. package/lib/components/select/utils/is-expected-value.d.ts +1 -0
  393. package/lib/components/select/utils/matching-text.style.d.ts +2 -0
  394. package/lib/components/select/utils/with-filter.hoc.d.ts +4 -0
  395. package/lib/components/settings-row/settings-row.component.d.ts +19 -0
  396. package/lib/components/settings-row/settings-row.style.d.ts +3 -0
  397. package/lib/components/show-edit-pod/delete-button.style.d.ts +3 -0
  398. package/lib/components/show-edit-pod/show-edit-pod.component.d.ts +52 -0
  399. package/lib/components/show-edit-pod/show-edit-pod.config.d.ts +2 -0
  400. package/lib/components/show-edit-pod/show-edit-pod.style.d.ts +3 -0
  401. package/lib/components/sidebar/__internal__/sidebar-header/__definition__.d.ts +2 -0
  402. package/lib/components/sidebar/__internal__/sidebar-header/__definition__.js +25 -0
  403. package/lib/components/sidebar/__internal__/sidebar-header/index.d.ts +1 -0
  404. package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.d.ts +13 -0
  405. package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.d.ts +2 -0
  406. package/lib/components/sidebar/sidebar.component.d.ts +4 -0
  407. package/lib/components/sidebar/sidebar.config.d.ts +11 -0
  408. package/lib/components/sidebar/sidebar.style.d.ts +2 -0
  409. package/lib/components/simple-color-picker/color-sample-box/color-sample-box.component.d.ts +13 -0
  410. package/lib/components/simple-color-picker/color-sample-box/color-sample-box.style.d.ts +2 -0
  411. package/lib/components/simple-color-picker/color-sample-box/index.d.ts +1 -0
  412. package/lib/components/simple-color-picker/simple-color/index.d.ts +1 -0
  413. package/lib/components/simple-color-picker/simple-color/simple-color.component.d.ts +3 -0
  414. package/lib/components/simple-color-picker/simple-color/simple-color.style.d.ts +2 -0
  415. package/lib/components/simple-color-picker/simple-color-input/simple-color-input.style.d.ts +2 -0
  416. package/lib/components/simple-color-picker/simple-color-picker.component.d.ts +22 -0
  417. package/lib/components/simple-color-picker/simple-color-picker.style.d.ts +2 -0
  418. package/lib/components/simple-color-picker/tick-icon/tick-icon.style.d.ts +3 -0
  419. package/lib/components/split-button/split-button-children.style.d.ts +2 -0
  420. package/lib/components/split-button/split-button-toggle.style.d.ts +8 -0
  421. package/lib/components/split-button/split-button.component.d.ts +41 -0
  422. package/lib/components/split-button/split-button.config.d.ts +4 -0
  423. package/lib/components/split-button/split-button.style.d.ts +2 -0
  424. package/lib/components/step-sequence/step-sequence-item/index.d.ts +1 -0
  425. package/lib/components/step-sequence/step-sequence-item/step-sequence-item-content.style.d.ts +2 -0
  426. package/lib/components/step-sequence/step-sequence-item/step-sequence-item-hidden-label.style.d.ts +2 -0
  427. package/lib/components/step-sequence/step-sequence-item/step-sequence-item-indicator.style.d.ts +2 -0
  428. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.d.ts +17 -0
  429. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.d.ts +2 -0
  430. package/lib/components/step-sequence/step-sequence.component.d.ts +13 -0
  431. package/lib/components/step-sequence/step-sequence.config.d.ts +2 -0
  432. package/lib/components/step-sequence/step-sequence.style.d.ts +2 -0
  433. package/lib/components/switch/__internal__/switch-slider-panel.style.d.ts +2 -0
  434. package/lib/components/switch/__internal__/switch-slider.component.d.ts +24 -0
  435. package/lib/components/switch/__internal__/switch-slider.style.d.ts +2 -0
  436. package/lib/components/switch/switch.component.d.ts +123 -0
  437. package/lib/components/switch/switch.style.d.ts +2 -0
  438. package/lib/components/tabs/__internal__/tab-title/tab-title.component.d.ts +3 -0
  439. package/lib/components/tabs/__internal__/tab-title/tab-title.style.d.ts +4 -0
  440. package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +3 -5
  441. package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.d.ts +24 -0
  442. package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +6 -0
  443. package/lib/components/tabs/tab/tab.component.d.ts +40 -0
  444. package/lib/components/tabs/tab/tab.style.d.ts +2 -0
  445. package/lib/components/tabs/tabs.component.d.ts +42 -0
  446. package/lib/components/tabs/tabs.component.js +1 -10
  447. package/lib/components/tabs/tabs.style.d.ts +2 -0
  448. package/lib/components/text-editor/__internal__/decorators/index.d.ts +2 -0
  449. package/lib/components/text-editor/__internal__/decorators/link-decorator.d.ts +7 -0
  450. package/lib/components/text-editor/__internal__/editor-counter/editor-counter.component.d.ts +18 -0
  451. package/lib/components/text-editor/__internal__/editor-counter/editor-counter.style.d.ts +2 -0
  452. package/lib/components/text-editor/__internal__/editor-link/editor-link.component.d.ts +15 -0
  453. package/lib/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +3 -0
  454. package/lib/components/text-editor/__internal__/label-wrapper/label-wrapper.component.d.ts +17 -0
  455. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.d.ts +3 -0
  456. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.d.ts +4 -0
  457. package/lib/components/text-editor/__internal__/toolbar/toolbar.component.d.ts +18 -0
  458. package/lib/components/text-editor/__internal__/toolbar/toolbar.style.d.ts +3 -0
  459. package/lib/components/text-editor/__internal__/utils/index.d.ts +1 -0
  460. package/lib/components/text-editor/__internal__/utils/utils.d.ts +27 -0
  461. package/lib/components/text-editor/text-editor.component.d.ts +6 -0
  462. package/lib/components/text-editor/text-editor.style.d.ts +3 -0
  463. package/lib/components/textarea/textarea.component.d.ts +129 -0
  464. package/lib/components/textarea/textarea.style.d.ts +2 -0
  465. package/lib/components/textbox/__internal__/prefix.style.d.ts +2 -0
  466. package/lib/components/textbox/textbox.component.d.ts +193 -0
  467. package/lib/components/tile/tile-footer/tile-footer.component.d.ts +13 -0
  468. package/lib/components/tile/tile-footer/tile-footer.style.d.ts +2 -0
  469. package/lib/components/tile/tile-footer/tile-footer.style.js +3 -4
  470. package/lib/components/tile/tile.component.d.ts +12 -0
  471. package/lib/components/tile/tile.config.d.ts +2 -0
  472. package/lib/components/tile/tile.style.d.ts +2 -0
  473. package/lib/components/tile/tile.style.js +6 -6
  474. package/lib/components/tile-select/__internal__/accordion/accordion.component.d.ts +16 -0
  475. package/lib/components/tile-select/__internal__/accordion/accordion.style.d.ts +2 -0
  476. package/lib/components/tile-select/__internal__/accordion/index.d.ts +1 -0
  477. package/lib/components/tile-select/tile-select-group.component.d.ts +19 -0
  478. package/lib/components/tile-select/tile-select.component.d.ts +60 -0
  479. package/lib/components/tile-select/tile-select.style.d.ts +15 -0
  480. package/lib/components/toast/toast.component.d.ts +44 -0
  481. package/lib/components/toast/toast.config.d.ts +1 -0
  482. package/lib/components/toast/toast.style.d.ts +7 -0
  483. package/lib/components/tooltip/tooltip-pointer.style.d.ts +2 -0
  484. package/lib/components/tooltip/tooltip.component.d.ts +3 -0
  485. package/lib/components/tooltip/tooltip.config.d.ts +1 -0
  486. package/lib/components/tooltip/tooltip.style.d.ts +2 -0
  487. package/lib/components/typography/list.component.d.ts +25 -0
  488. package/lib/components/typography/typography.component.d.ts +15 -0
  489. package/lib/components/vertical-divider/vertical-divider.component.d.ts +10 -0
  490. package/lib/components/vertical-divider/vertical-divider.style.d.ts +2 -0
  491. package/lib/hooks/__internal__/useCharacterCount/index.d.ts +2 -0
  492. package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +15 -0
  493. package/lib/hooks/__internal__/useLocale/index.d.ts +1 -0
  494. package/lib/style/__spec__.d.ts +1 -0
  495. package/lib/style/color-config/index.js +2 -1
  496. package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.d.ts +6 -0
  497. package/lib/style/design-tokens/carbon-scoped-tokens-provider/index.d.ts +1 -0
  498. package/lib/style/design-tokens/debug-theme.util.d.ts +2 -0
  499. package/lib/style/design-tokens/generate-css-variables.util.d.ts +2 -0
  500. package/lib/style/themes/aegean/aegean-theme.config.d.ts +23 -0
  501. package/lib/style/themes/base/base-theme.config.d.ts +657 -0
  502. package/lib/style/themes/base/base-theme.config.js +37 -1
  503. package/lib/style/themes/base/index.d.ts +2 -2
  504. package/lib/style/themes/medium/index.d.ts +2 -0
  505. package/lib/style/themes/mint/mint-theme.config.d.ts +22 -0
  506. package/lib/style/themes/none/none-theme.config.d.ts +4 -0
  507. package/lib/style/themes/sage/index.d.ts +572 -0
  508. package/lib/style/themes/small/index.d.ts +2 -0
  509. package/lib/style/themes/test-utils.d.ts +1 -0
  510. package/lib/style/utils/add-hex-symbols.d.ts +2 -0
  511. package/lib/style/utils/at-opacity.d.ts +2 -0
  512. package/lib/style/utils/color.d.ts +8 -0
  513. package/lib/style/utils/filter-out-styled-system-spacing-props.d.ts +4 -0
  514. package/lib/style/utils/filter-styled-system-margin-props.d.ts +1 -0
  515. package/lib/style/utils/filter-styled-system-padding-props.d.ts +1 -0
  516. package/lib/style/utils/get-rgb-values.d.ts +3 -0
  517. package/lib/style/utils/index.d.ts +4 -0
  518. package/lib/style/utils/merge-deep.d.ts +12 -0
  519. package/lib/style/utils/mix.d.ts +2 -0
  520. package/lib/style/utils/shade.d.ts +2 -0
  521. package/lib/style/utils/tint.d.ts +2 -0
  522. package/lib/style/utils/width.d.ts +4 -0
  523. package/package.json +19 -8
@@ -41,7 +41,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
41
41
  height: 40px;
42
42
  position: relative;
43
43
  cursor: pointer;
44
- background-color: ${theme.menu.light.background};
44
+ background-color: ${theme.menu[menuType].background};
45
45
 
46
46
  ${!inFullscreenView && (0, _styledComponents.css)`
47
47
  max-width: inherit;
@@ -96,7 +96,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
96
96
  ${_link.StyledLink} [data-component="icon"] {
97
97
  font-weight: 700;
98
98
  text-decoration: none;
99
- color: ${theme.colors.black};
99
+ color: ${theme.menu[menuType].text};
100
100
  }
101
101
 
102
102
  a:hover,
@@ -134,77 +134,19 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
134
134
 
135
135
  ${variant === "alternate" && (0, _styledComponents.css)`
136
136
  &&& {
137
- background-color: ${theme.menu.light.background};
137
+ background-color: ${theme.menu[menuType].alternate};
138
138
  }
139
139
  `}
140
140
 
141
141
  ${selected && (0, _styledComponents.css)`
142
- background-color: ${theme.menu.light.selected};
142
+ background-color: ${theme.menu[menuType].selected};
143
143
  `}
144
144
 
145
- ${menuType === "dark" && (0, _styledComponents.css)`
146
- background-color: ${theme.colors.slate};
145
+ ${isOpen && (0, _styledComponents.css)`
146
+ background-color: ${theme.menu[menuType].submenuBackground};
147
147
  color: ${theme.colors.white};
148
-
149
- a,
150
- a:hover,
151
- a:focus,
152
- button,
153
- button:hover,
154
- [data-component="icon"],
155
- ${_link.StyledLink} [data-component="icon"] {
156
- font-weight: 700;
157
- text-decoration: none;
158
- color: ${theme.colors.white};
159
- background-color: transparent;
160
- }
161
-
162
- ${selected && (0, _styledComponents.css)`
163
- background-color: ${theme.menu.dark.selected};
164
- `}
165
-
166
- [data-component='icon'] {
167
- color: ${theme.colors.white};
168
- }
169
-
170
- ${hasSubmenu && (0, _styledComponents.css)`
171
- ${!href && (0, _styledComponents.css)`
172
- && a:hover,
173
- && button:hover {
174
- background-color: ${theme.menu.dark.submenuBackground};
175
- color: ${theme.colors.white};
176
-
177
- [data-component="icon"] {
178
- color: ${theme.colors.white};
179
- }
180
- }
181
-
182
- && a:focus,
183
- && button:focus {
184
- background-color: ${theme.menu.dark.submenuBackground};
185
- color: ${theme.colors.white};
186
-
187
- a,
188
- button,
189
- [data-component="icon"] {
190
- color: ${theme.colors.white};
191
- }
192
- }
193
- `}
194
-
195
- ${isOpen && (0, _styledComponents.css)`
196
- background-color: ${theme.menu.dark.submenuBackground};
197
- color: ${theme.colors.white};
198
- `}
199
- `}
200
-
201
- ${variant === "alternate" && (0, _styledComponents.css)`
202
- &&& {
203
- background-color: ${theme.colors.slate};
204
- }
205
- `}
206
- `}
207
-
148
+ `}
149
+
208
150
  ${hasSubmenu && (0, _styledComponents.css)`
209
151
  a:hover,
210
152
  button:hover {
@@ -213,35 +155,28 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
213
155
  `}
214
156
  }
215
157
 
216
- ${menuType === "light" && (0, _styledComponents.css)`
217
- ${!href && (0, _styledComponents.css)`
218
- && a:hover,
219
- && b:hover {
220
- background-color: ${theme.colors.white};
221
- color: ${theme.colors.black};
158
+ ${!href && (0, _styledComponents.css)`
159
+ && a:hover,
160
+ && button:hover {
161
+ background-color: ${theme.menu[menuType].submenuBackground};
162
+ color: ${theme.menu[menuType].text};
222
163
 
223
- [data-component="icon"] {
224
- color: ${theme.colors.black};
225
- }
164
+ [data-component="icon"] {
165
+ color: ${theme.menu[menuType].text};
226
166
  }
167
+ }
227
168
 
228
- && a:focus,
229
- && button:focus {
230
- background-color: ${theme.colors.white};
231
- color: ${theme.colors.black};
169
+ && a:focus,
170
+ && button:focus {
171
+ background-color: ${theme.menu[menuType].submenuBackground};
172
+ color: ${theme.menu[menuType].text};
232
173
 
233
- a,
234
- button,
235
- [data-component="icon"] {
236
- color: ${theme.colors.black};
237
- }
174
+ a,
175
+ button,
176
+ [data-component="icon"] {
177
+ color: ${theme.menu[menuType].text};
238
178
  }
239
- `}
240
-
241
- ${isOpen && (0, _styledComponents.css)`
242
- background-color: ${theme.colors.white};
243
- color: ${theme.colors.black};
244
- `}
179
+ }
245
180
  `}
246
181
 
247
182
  ${showDropdownArrow && (0, _styledComponents.css)`
@@ -269,8 +204,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
269
204
  content: "";
270
205
  width: 0;
271
206
  height: 0;
272
- border-top: 5px solid
273
- ${menuType !== "dark" ? theme.colors.slate : theme.colors.white};
207
+ border-top: 5px solid ${theme.menu[menuType].text};
274
208
  border-right: 4px solid transparent;
275
209
  border-bottom: 4px solid transparent;
276
210
  border-left: 4px solid transparent;
@@ -0,0 +1,3 @@
1
+ export default MenuSegmentTitle;
2
+ declare const MenuSegmentTitle: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
+ import React from "react";
@@ -0,0 +1,2 @@
1
+ export default StyledTitle;
2
+ declare const StyledTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -25,16 +25,8 @@ const StyledTitle = _styledComponents.default.div`
25
25
  text-transform: uppercase;
26
26
  line-height: 12px;
27
27
  cursor: default;
28
-
29
- ${menuType === "light" && (0, _styledComponents.css)`
30
- ${variant === "alternate" ? `background: ${theme.menu.light.background};` : ""}
31
- color: ${theme.menu.light.title};
32
- `}
33
-
34
- ${menuType === "dark" && (0, _styledComponents.css)`
35
- ${variant === "alternate" ? `background: ${theme.colors.slate};` : ""}
36
- color: ${theme.menu.dark.title};
37
- `}
28
+ color: ${theme.menu[menuType].title};
29
+ ${variant === "alternate" ? `background: ${theme.menu[menuType].alternate};` : ""};
38
30
  `}
39
31
  `;
40
32
  StyledTitle.defaultProps = {
@@ -0,0 +1,11 @@
1
+ export { MenuContext };
2
+ export default Menu;
3
+ import MenuContext from "./menu.context";
4
+ declare function Menu({ menuType, children, ...rest }: {
5
+ [x: string]: any;
6
+ menuType?: string | undefined;
7
+ children: any;
8
+ }): JSX.Element;
9
+ declare namespace Menu {
10
+ const propTypes: any;
11
+ }
@@ -82,7 +82,7 @@ Menu.propTypes = {
82
82
  ..._propTypes2.default.layout,
83
83
 
84
84
  /** Defines the color scheme of the component */
85
- menuType: _propTypes.default.oneOf(["light", "dark"]),
85
+ menuType: _propTypes.default.oneOf(["light", "dark", "white", "black"]),
86
86
 
87
87
  /** Children elements */
88
88
  children: _propTypes.default.node.isRequired
@@ -0,0 +1,5 @@
1
+ declare var _default: React.Context<{
2
+ menuType: string;
3
+ }>;
4
+ export default _default;
5
+ import React from "react";
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- var _default = /*#__PURE__*/_react.default.createContext({});
12
+ var _default = /*#__PURE__*/_react.default.createContext({
13
+ menuType: "light"
14
+ });
13
15
 
14
16
  exports.default = _default;
@@ -1,8 +1,9 @@
1
1
  import * as React from "react";
2
2
  import { LayoutProps, FlexBoxProps } from "../../utils/helpers/options-helper";
3
3
 
4
+ type menuType = "light" | "dark" | "white" | "black";
4
5
  interface MenuContextProps {
5
- menuType: "light" | "dark";
6
+ menuType: menuType;
6
7
  isFirstElement: boolean;
7
8
  handleKeyDown: (ev, submenuOpen) => void;
8
9
  isFocused: boolean;
@@ -13,7 +14,7 @@ export interface MenuProps extends LayoutProps, FlexBoxProps {
13
14
  /** Children elements */
14
15
  children: React.ReactNode;
15
16
  /** Defines the color scheme of the component */
16
- menuType?: "light" | "dark";
17
+ menuType?: menuType;
17
18
  }
18
19
 
19
20
  declare const MenuContext: React.Context<MenuContextProps>;
@@ -0,0 +1,2 @@
1
+ export const StyledMenuWrapper: import("styled-components").StyledComponent<"ul", any, {}, never>;
2
+ export const StyledMenuItem: import("styled-components").StyledComponent<"li", any, {}, never>;
@@ -32,12 +32,11 @@ const StyledMenuWrapper = _styledComponents.default.ul`
32
32
  menuType,
33
33
  theme
34
34
  }) => (0, _styledComponents.css)`
35
- background-color: ${theme.menu.light.background};
36
35
  display: inline-block;
37
36
  vertical-align: bottom;
37
+ background-color: ${theme.menu[menuType].background};
38
38
 
39
39
  ${menuType === "dark" && (0, _styledComponents.css)`
40
- background-color: ${theme.colors.slate};
41
40
  color: ${theme.colors.white};
42
41
  `}
43
42
  `}
@@ -0,0 +1,15 @@
1
+ export default ScrollableBlock;
2
+ declare function ScrollableBlock({ children, height, variant, ...rest }: {
3
+ [x: string]: any;
4
+ children: any;
5
+ height: any;
6
+ variant?: string | undefined;
7
+ }): JSX.Element;
8
+ declare namespace ScrollableBlock {
9
+ namespace propTypes {
10
+ const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
11
+ const height: PropTypes.Requireable<string | number>;
12
+ const variant: PropTypes.Requireable<string>;
13
+ }
14
+ }
15
+ import PropTypes from "prop-types";
@@ -38,13 +38,19 @@ const ScrollableBlock = ({
38
38
  focusIndex,
39
39
  handleKeyDown
40
40
  } = submenuContext;
41
+ const scrollVariants = {
42
+ light: "light",
43
+ dark: "dark",
44
+ white: "light",
45
+ black: "dark"
46
+ };
41
47
  return /*#__PURE__*/_react.default.createElement(_scrollableBlock.default, _extends({
42
48
  "data-component": "submenu-scrollable-block",
43
49
  menuType: menuContext.menuType,
44
50
  variant: variant
45
51
  }, rest), /*#__PURE__*/_react.default.createElement(_box.default, {
46
52
  overflowY: "scroll",
47
- scrollVariant: menuContext.menuType,
53
+ scrollVariant: scrollVariants[menuContext.menuType],
48
54
  height: height,
49
55
  p: 0
50
56
  }, _react.default.Children.map(children, (child, index) => {
@@ -0,0 +1,2 @@
1
+ export default StyledScrollableBlock;
2
+ declare const StyledScrollableBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -24,14 +24,8 @@ const StyledScrollableBlock = _styledComponents.default.div`
24
24
  theme
25
25
  }) => (0, _styledComponents.css)`
26
26
  && ${_menuItem.default} {
27
- background-color: ${variant === "default" ? theme.colors.white : theme.menu.light.background};
27
+ background-color: ${variant === "default" ? theme.menu[menuType].submenuBackground : theme.menu[menuType].background};
28
28
  }
29
-
30
- ${menuType === "dark" && (0, _styledComponents.css)`
31
- && ${_menuItem.default} {
32
- background-color: ${variant === "default" ? theme.menu.dark.submenuBackground : theme.colors.slate};
33
- }
34
- `}
35
29
  `}
36
30
  `;
37
31
  StyledScrollableBlock.defaultProps = {
@@ -0,0 +1,12 @@
1
+ export default SubmenuBlock;
2
+ declare function SubmenuBlock({ children, variant }: {
3
+ children: any;
4
+ variant?: string | undefined;
5
+ }): JSX.Element;
6
+ declare namespace SubmenuBlock {
7
+ namespace propTypes {
8
+ const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
9
+ const variant: PropTypes.Requireable<string>;
10
+ }
11
+ }
12
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export default StyledSubmenuBlock;
2
+ declare const StyledSubmenuBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -23,13 +23,11 @@ const StyledSubmenuBlock = _styledComponents.default.div`
23
23
  theme,
24
24
  variant
25
25
  }) => (0, _styledComponents.css)`
26
- ${menuType === "dark" && (0, _styledComponents.css)`
27
- background-color: ${theme.menu.dark.submenuBackground};
26
+ background-color: ${theme.menu[menuType].submenuBackground};
28
27
 
29
- ${_menuItem.default} {
30
- background-color: ${variant === "default" ? "transparent" : theme.menu.dark.alternate};
31
- }
32
- `}
28
+ ${_menuItem.default} {
29
+ background-color: ${variant === "default" ? "transparent" : theme.menu[menuType].alternate};
30
+ }
33
31
  `}
34
32
  `;
35
33
  StyledSubmenuBlock.defaultProps = {
@@ -0,0 +1,22 @@
1
+ export default MessageContent;
2
+ declare function MessageContent({ variant, title, transparent, children }: {
3
+ variant: any;
4
+ title: any;
5
+ transparent: any;
6
+ children: any;
7
+ }): JSX.Element;
8
+ declare namespace MessageContent {
9
+ namespace defaultProps {
10
+ const variant: string;
11
+ const transparent: boolean;
12
+ }
13
+ namespace propTypes {
14
+ const variant_1: PropTypes.Requireable<string>;
15
+ export { variant_1 as variant };
16
+ export const title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
+ const transparent_1: PropTypes.Requireable<boolean>;
18
+ export { transparent_1 as transparent };
19
+ export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
20
+ }
21
+ }
22
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export default MessageContentStyle;
2
+ declare const MessageContentStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,29 @@
1
+ export default Message;
2
+ declare function Message({ open, transparent, title, variant, children, onDismiss, id, className, closeButtonAriaLabel, showCloseIcon, ...props }: {
3
+ [x: string]: any;
4
+ open?: boolean | undefined;
5
+ transparent?: boolean | undefined;
6
+ title: any;
7
+ variant?: string | undefined;
8
+ children: any;
9
+ onDismiss: any;
10
+ id: any;
11
+ className: any;
12
+ closeButtonAriaLabel: any;
13
+ showCloseIcon?: boolean | undefined;
14
+ }): false | JSX.Element;
15
+ declare namespace Message {
16
+ namespace propTypes {
17
+ const variant: PropTypes.Requireable<string>;
18
+ const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
19
+ const className: PropTypes.Requireable<string>;
20
+ const id: PropTypes.Requireable<string>;
21
+ const open: PropTypes.Requireable<boolean>;
22
+ const onDismiss: PropTypes.Requireable<(...args: any[]) => any>;
23
+ const title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
24
+ const transparent: PropTypes.Requireable<boolean>;
25
+ const showCloseIcon: PropTypes.Requireable<boolean>;
26
+ const closeButtonAriaLabel: PropTypes.Requireable<string>;
27
+ }
28
+ }
29
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export default MessageStyle;
2
+ declare const MessageStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,18 @@
1
+ export default TypeIcon;
2
+ declare function TypeIcon({ variant, transparent }: {
3
+ variant: any;
4
+ transparent: any;
5
+ }): JSX.Element;
6
+ declare namespace TypeIcon {
7
+ namespace defaultProps {
8
+ const variant: string;
9
+ const transparent: boolean;
10
+ }
11
+ namespace propTypes {
12
+ const variant_1: PropTypes.Requireable<string>;
13
+ export { variant_1 as variant };
14
+ const transparent_1: PropTypes.Requireable<boolean>;
15
+ export { transparent_1 as transparent };
16
+ }
17
+ }
18
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export default TypeIconStyle;
2
+ declare const TypeIconStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,9 @@
1
+ export default ModalManager;
2
+ declare const ModalManager: ModalManagerInstance;
3
+ declare class ModalManagerInstance {
4
+ addModal: (modal: any, setTriggerRefocusFlag: any) => void;
5
+ isTopmost(modal: any): boolean;
6
+ removeModal(modal: any): void;
7
+ clearList(): void;
8
+ #private;
9
+ }
@@ -0,0 +1,35 @@
1
+ export const ModalContext: React.Context<{}>;
2
+ export default Modal;
3
+ import React from "react";
4
+ declare function Modal({ children, open, onCancel, disableEscKey, disableClose, enableBackgroundUI, timeout, ...rest }: {
5
+ [x: string]: any;
6
+ children: any;
7
+ open: any;
8
+ onCancel: any;
9
+ disableEscKey: any;
10
+ disableClose: any;
11
+ enableBackgroundUI: any;
12
+ timeout: any;
13
+ }): JSX.Element;
14
+ declare namespace Modal {
15
+ namespace propTypes {
16
+ const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
+ const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
18
+ const open: PropTypes.Validator<boolean>;
19
+ const enableBackgroundUI: PropTypes.Requireable<boolean>;
20
+ const disableEscKey: PropTypes.Requireable<boolean>;
21
+ const disableClose: PropTypes.Requireable<boolean>;
22
+ const timeout: PropTypes.Requireable<number>;
23
+ }
24
+ namespace defaultProps {
25
+ const onCancel_1: null;
26
+ export { onCancel_1 as onCancel };
27
+ const enableBackgroundUI_1: boolean;
28
+ export { enableBackgroundUI_1 as enableBackgroundUI };
29
+ const disableEscKey_1: boolean;
30
+ export { disableEscKey_1 as disableEscKey };
31
+ const timeout_1: number;
32
+ export { timeout_1 as timeout };
33
+ }
34
+ }
35
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export const StyledModal: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export const StyledModalBackground: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,37 @@
1
+ export default MultiActionButton;
2
+ declare function MultiActionButton({ align, disabled, as, buttonType, size, children, text, subtext, ...rest }: {
3
+ [x: string]: any;
4
+ align?: string | undefined;
5
+ disabled: any;
6
+ as: any;
7
+ buttonType: any;
8
+ size: any;
9
+ children: any;
10
+ text: any;
11
+ subtext: any;
12
+ }): JSX.Element;
13
+ declare namespace MultiActionButton {
14
+ const propTypes: {
15
+ /** Button type: "primary" | "secondary" | "tertiary" */
16
+ buttonType: PropTypes.Requireable<string>;
17
+ /** The additional button to display. */
18
+ children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
19
+ /** Second text child, renders under main text, only when size is "large". */
20
+ subtext: PropTypes.Requireable<string>;
21
+ /** Customizes the appearance, can be set to 'primary', 'secondary' or 'transparent'. */
22
+ as: PropTypes.Requireable<string>;
23
+ /** The text to be displayed in the SplitButton. */
24
+ text: PropTypes.Validator<string>;
25
+ /** Gives the button a disabled state. */
26
+ disabled: PropTypes.Requireable<boolean>;
27
+ /** The size of the MultiActionButton. */
28
+ size: PropTypes.Requireable<string>;
29
+ /** A custom value for the data-element attribute. */
30
+ "data-element": PropTypes.Requireable<string>;
31
+ /** A custom value for the data-element attribute. */
32
+ "data-role": PropTypes.Requireable<string>;
33
+ /** Aligns the button's options */
34
+ align: PropTypes.Requireable<string>;
35
+ };
36
+ }
37
+ import PropTypes from "prop-types";
@@ -0,0 +1,3 @@
1
+ export const MULTI_ACTION_BUTTON_ALIGNMENTS: string[];
2
+ export const MULTI_ACTION_BUTTON_SIZES: string[];
3
+ export const MULTI_ACTION_BUTTON_THEMES: string[];
@@ -0,0 +1,2 @@
1
+ export const StyledButtonChildrenContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export const StyledMultiActionButton: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,87 @@
1
+ export default MultiStepWizard;
2
+ declare class MultiStepWizard extends React.Component<any, any, any> {
3
+ constructor(props: any);
4
+ /**
5
+ * Returns wizard object to child components.
6
+ *
7
+ * @method getChildContext
8
+ * @return {void}
9
+ */
10
+ getChildContext(): void;
11
+ /**
12
+ * Validate step props
13
+ *
14
+ * @method validateStepProps
15
+ * @return {Object}
16
+ */
17
+ validateStepProps: (stepProps: any) => Object;
18
+ /**
19
+ * Get total number of steps
20
+ *
21
+ * @method totalSteps
22
+ * @return {Number}
23
+ */
24
+ get totalSteps(): number;
25
+ /**
26
+ * Moves to the next step.
27
+ *
28
+ * @method next
29
+ * @return {void}
30
+ */
31
+ next: () => void;
32
+ /**
33
+ * Back to the previous step.
34
+ *
35
+ * @method back
36
+ * @return {void}
37
+ */
38
+ back: () => void;
39
+ /**
40
+ * Completes the wizard.
41
+ *
42
+ * @method complete
43
+ * @return {void}
44
+ */
45
+ complete: () => void;
46
+ /**
47
+ * Returns the computed HTML for the wizard's steps.
48
+ *
49
+ * @method wizardStepsHTML
50
+ * @return {Object} JSX
51
+ */
52
+ get wizardStepsHTML(): Object;
53
+ }
54
+ declare namespace MultiStepWizard {
55
+ namespace propTypes {
56
+ const steps: any[];
57
+ const beforeSubmitValidation: Function;
58
+ const className: string;
59
+ const onSubmit: Function;
60
+ const currentStep: number;
61
+ const enableInactiveSteps: boolean;
62
+ const onNext: PropTypes.Requireable<(...args: any[]) => any>;
63
+ const onBack: PropTypes.Requireable<(...args: any[]) => any>;
64
+ const completed: boolean;
65
+ }
66
+ namespace defaultProps {
67
+ const beforeSubmitValidation_1: null;
68
+ export { beforeSubmitValidation_1 as beforeSubmitValidation };
69
+ const className_1: string;
70
+ export { className_1 as className };
71
+ const completed_1: boolean;
72
+ export { completed_1 as completed };
73
+ const currentStep_1: number;
74
+ export { currentStep_1 as currentStep };
75
+ const enableInactiveSteps_1: boolean;
76
+ export { enableInactiveSteps_1 as enableInactiveSteps };
77
+ const onNext_1: null;
78
+ export { onNext_1 as onNext };
79
+ const onBack_1: null;
80
+ export { onBack_1 as onBack };
81
+ }
82
+ namespace childContextTypes {
83
+ const wizard: Object;
84
+ }
85
+ }
86
+ import React from "react";
87
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export const StyledMultiStepWizard: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export const StyledMultiStepWizardContent: import("styled-components").StyledComponent<"div", any, {}, never>;