@equisoft/design-elements-react 9.9.7-snapshot.20260114204630 → 9.10.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 (325) hide show
  1. package/dist/bundle.js +3106 -3013
  2. package/dist/bundle.js.LICENSE.txt +14 -15
  3. package/dist/components/accordion/accordion-item.d.ts +3 -3
  4. package/dist/components/accordion/accordion.d.ts +3 -3
  5. package/dist/components/accordion/index.d.ts +2 -1
  6. package/dist/components/avatar/avatar.d.ts +2 -2
  7. package/dist/components/badge/badge.d.ts +3 -2
  8. package/dist/components/bento-menu-button/bento-menu-button.d.ts +2 -1
  9. package/dist/components/bento-menu-button/product-group.d.ts +1 -1
  10. package/dist/components/breadcrumb/breadcrumb.d.ts +5 -4
  11. package/dist/components/breadcrumb/use-breadcrumb-layout-effect.d.ts +2 -2
  12. package/dist/components/breadcrumb/use-breadcrumb-overflow.d.ts +1 -1
  13. package/dist/components/breadcrumb/use-breadcrumb-routes.d.ts +2 -2
  14. package/dist/components/buttons/abstract/abstract-button.d.ts +1 -10
  15. package/dist/components/buttons/abstract/{styles.d.ts → styled.d.ts} +4 -3
  16. package/dist/components/buttons/abstract/types.d.ts +7 -0
  17. package/dist/components/buttons/button.d.ts +1 -41
  18. package/dist/components/buttons/icon-button.d.ts +5 -5
  19. package/dist/components/buttons/index.d.ts +5 -5
  20. package/dist/components/buttons/search-button.d.ts +3 -3
  21. package/dist/components/buttons/styled.d.ts +6 -6
  22. package/dist/components/buttons/types.d.ts +40 -0
  23. package/dist/components/card/card.d.ts +3 -2
  24. package/dist/components/card-link/card-link.d.ts +4 -3
  25. package/dist/components/checkbox-group/checkbox-group.d.ts +11 -11
  26. package/dist/components/chooser-button/chooser-button.d.ts +2 -1
  27. package/dist/components/chooser-button/styles/choose.d.ts +1 -0
  28. package/dist/components/chooser-button-group/chooser-button-group.d.ts +4 -3
  29. package/dist/components/combobox/combobox.d.ts +10 -21
  30. package/dist/components/date-picker/calendar-header.d.ts +3 -3
  31. package/dist/components/date-picker/date-picker.d.ts +6 -5
  32. package/dist/components/date-picker/utils/datepicker-utils.d.ts +6 -2
  33. package/dist/components/design-system.d.ts +3 -4
  34. package/dist/components/device-context-provider/device-context-provider.d.ts +2 -2
  35. package/dist/components/disclosure/disclosure.d.ts +8 -7
  36. package/dist/components/dropdown-list/dropdown-list-option.d.ts +4 -0
  37. package/dist/components/dropdown-list/dropdown-list.d.ts +8 -7
  38. package/dist/components/dropdown-list/utils/dropdown-list-utils.d.ts +9 -0
  39. package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -1
  40. package/dist/components/dropdown-menu/list-items/external-item.d.ts +3 -3
  41. package/dist/components/dropdown-menu/list-items/group-item.d.ts +4 -4
  42. package/dist/components/dropdown-menu/list-items/index.d.ts +3 -3
  43. package/dist/components/dropdown-menu/list-items/item-content.d.ts +4 -4
  44. package/dist/components/dropdown-menu/list-items/label-item.d.ts +2 -2
  45. package/dist/components/dropdown-menu/list-items/nav-item.d.ts +4 -4
  46. package/dist/components/dropdown-menu-button/dropdown-menu-button.d.ts +15 -23
  47. package/dist/components/dropdown-navigation/dropdown-navigation.d.ts +6 -5
  48. package/dist/components/error-summary/error-summary.d.ts +6 -5
  49. package/dist/components/external-link/external-link.d.ts +3 -3
  50. package/dist/components/feedbacks/invalid-field.d.ts +4 -3
  51. package/dist/components/field-container/field-container.d.ts +2 -2
  52. package/dist/components/fieldset/fieldset.d.ts +1 -16
  53. package/dist/components/fieldset/index.d.ts +1 -2
  54. package/dist/components/fieldset/legend.d.ts +2 -12
  55. package/dist/components/fieldset/styled.d.ts +9 -0
  56. package/dist/components/fieldset/types.d.ts +17 -0
  57. package/dist/components/global-banner/global-banner.d.ts +2 -1
  58. package/dist/components/global-header/global-header.d.ts +3 -2
  59. package/dist/components/global-navigation/global-navigation.d.ts +20 -0
  60. package/dist/components/heading/heading.d.ts +4 -4
  61. package/dist/components/icon/icon.d.ts +2 -2
  62. package/dist/components/internationalization-provider/internationalization-provider.d.ts +1 -1
  63. package/dist/components/label/label.d.ts +3 -3
  64. package/dist/components/legend/legend.d.ts +12 -0
  65. package/dist/components/link/index.d.ts +0 -1
  66. package/dist/components/link/link.d.ts +1 -1
  67. package/dist/components/link/types.d.ts +5 -5
  68. package/dist/components/listbox/listbox-option.d.ts +5 -0
  69. package/dist/components/listbox/listbox.d.ts +2 -10
  70. package/dist/components/lozenge/lozenge.d.ts +4 -3
  71. package/dist/components/menu/menu.d.ts +5 -3
  72. package/dist/components/menu-button/menu-button.d.ts +4 -4
  73. package/dist/components/modal/dialog/modal-dialog.d.ts +3 -20
  74. package/dist/components/modal/dialog/styled.d.ts +3 -3
  75. package/dist/components/modal/dialog/types.d.ts +19 -0
  76. package/dist/components/modal/index.d.ts +0 -4
  77. package/dist/components/modal/modal.d.ts +1 -1
  78. package/dist/components/modal/styled.d.ts +1 -1
  79. package/dist/components/modal/use-modal.d.ts +2 -1
  80. package/dist/components/money-input/money-input.d.ts +3 -3
  81. package/dist/components/nav-list/nav-list-item.d.ts +2 -2
  82. package/dist/components/nav-list/nav-list-option.d.ts +1 -1
  83. package/dist/components/nav-list/nav-list.d.ts +1 -0
  84. package/dist/components/numeric-input/numeric-input.d.ts +5 -5
  85. package/dist/components/pagination/pagination.d.ts +4 -3
  86. package/dist/components/pagination/util/pagination-util.d.ts +2 -1
  87. package/dist/components/password-creation-input/password-creation-input.d.ts +4 -3
  88. package/dist/components/password-creation-input/password-rule.d.ts +2 -2
  89. package/dist/components/password-creation-input/password-strength-container.d.ts +2 -2
  90. package/dist/components/password-creation-input/password-strength-meter.d.ts +2 -2
  91. package/dist/components/password-input/password-input.d.ts +4 -3
  92. package/dist/components/phone-input/phone-input.d.ts +4 -3
  93. package/dist/components/progress-circle/circle.d.ts +9 -0
  94. package/dist/components/progress-circle/progress-circle.d.ts +12 -0
  95. package/dist/components/progress-circular/progress-circular.d.ts +2 -2
  96. package/dist/components/progress-indicator/bar.d.ts +9 -0
  97. package/dist/components/progress-indicator/progress-indicator.d.ts +13 -1
  98. package/dist/components/progress-tracker/progress-tracker.d.ts +4 -3
  99. package/dist/components/radio-button/radio-button.d.ts +2 -1
  100. package/dist/components/radio-button/radio-input.d.ts +2 -1
  101. package/dist/components/radio-button-group/radio-button-group.d.ts +9 -8
  102. package/dist/components/radio-card-group/radio-card-group.d.ts +4 -3
  103. package/dist/components/radio-card-group/radio-card.d.ts +2 -2
  104. package/dist/components/radio-card-group/styled-components.d.ts +1 -1
  105. package/dist/components/route-link/route-link.d.ts +5 -5
  106. package/dist/components/screen-reader-only-text/ScreenReaderOnlyText.d.ts +4 -3
  107. package/dist/components/search/search-contextual.d.ts +2 -1
  108. package/dist/components/search/search-global.d.ts +2 -2
  109. package/dist/components/search/search-input.d.ts +2 -2
  110. package/dist/components/sectional-banner/sectional-banner.d.ts +6 -5
  111. package/dist/components/segmented-control/segmented-control.d.ts +5 -4
  112. package/dist/components/shadow-wrapper/shadow-wrapper.d.ts +2 -1
  113. package/dist/components/side-drawer/side-drawer.d.ts +1 -1
  114. package/dist/components/skip-link/skip-link.d.ts +2 -2
  115. package/dist/components/slider/slider.d.ts +3 -3
  116. package/dist/components/slider/value-tooltip.d.ts +2 -2
  117. package/dist/components/spinner/{index.d.ts → spinner.d.ts} +1 -4
  118. package/dist/components/status/status.d.ts +9 -0
  119. package/dist/components/stepper-input/stepper-buttons.d.ts +2 -2
  120. package/dist/components/stepper-input/stepper-input.d.ts +5 -5
  121. package/dist/components/table/index.d.ts +2 -3
  122. package/dist/components/table/table-footer.d.ts +1 -1
  123. package/dist/components/table/table-row.d.ts +1 -1
  124. package/dist/components/table/table.d.ts +4 -7
  125. package/dist/components/table/types.d.ts +3 -3
  126. package/dist/components/tabs/tab-button.d.ts +15 -1
  127. package/dist/components/tabs/tab-panel.d.ts +9 -2
  128. package/dist/components/tabs/tabs.d.ts +7 -7
  129. package/dist/components/tag/tag.d.ts +3 -3
  130. package/dist/components/tag/toggle-tag.d.ts +1 -1
  131. package/dist/components/text-area/text-area.d.ts +4 -4
  132. package/dist/components/text-input/index.d.ts +2 -4
  133. package/dist/components/text-input/styles/inputs.d.ts +2 -2
  134. package/dist/components/text-input/text-input.d.ts +2 -2
  135. package/dist/components/theme-wrapper/theme-wrapper.d.ts +2 -2
  136. package/dist/components/toast/toast-container.d.ts +4 -4
  137. package/dist/components/toast/toasts-container.d.ts +2 -2
  138. package/dist/components/toggle-switch/toggle-switch.d.ts +4 -3
  139. package/dist/components/toggletip/toggletip.d.ts +1 -1
  140. package/dist/components/user-profile/user-profile.d.ts +5 -4
  141. package/dist/components/visually-hidden/visuallyhidden.d.ts +2 -0
  142. package/dist/hooks/use-list-select.d.ts +1 -3
  143. package/dist/hooks/use-scroll-into-view.d.ts +1 -2
  144. package/dist/hooks/use-theme.d.ts +1 -1
  145. package/dist/hooks/use-toast.d.ts +1 -1
  146. package/dist/hooks/use-toasts.d.ts +1 -1
  147. package/dist/i18n/translations.d.ts +0 -26
  148. package/dist/index.d.ts +81 -2
  149. package/dist/theme.js +1 -1
  150. package/dist/themes/build-theme.d.ts +1 -1
  151. package/dist/themes/index.d.ts +0 -1
  152. package/dist/themes/theme.d.ts +8 -13
  153. package/dist/themes/tokens/alias-tokens.d.ts +47 -195
  154. package/dist/themes/tokens/component/accordion-tokens.d.ts +8 -3
  155. package/dist/themes/tokens/component/avatar-tokens.d.ts +8 -3
  156. package/dist/themes/tokens/component/badge-tokens.d.ts +8 -3
  157. package/dist/themes/tokens/component/bento-menu-button-tokens.d.ts +8 -3
  158. package/dist/themes/tokens/component/breadcrumb-tokens.d.ts +8 -3
  159. package/dist/themes/tokens/component/button-tokens.d.ts +8 -3
  160. package/dist/themes/tokens/component/card-tokens.d.ts +8 -3
  161. package/dist/themes/tokens/component/carousel-tokens.d.ts +8 -3
  162. package/dist/themes/tokens/component/checkbox-tokens.d.ts +8 -3
  163. package/dist/themes/tokens/component/chooser-tokens.d.ts +8 -3
  164. package/dist/themes/tokens/component/combobox-tokens.d.ts +8 -3
  165. package/dist/themes/tokens/component/datepicker-tokens.d.ts +8 -3
  166. package/dist/themes/tokens/component/disclosure-tokens.d.ts +8 -3
  167. package/dist/themes/tokens/component/dropdown-list-tokens.d.ts +8 -3
  168. package/dist/themes/tokens/component/dropdown-menu-tokens.d.ts +8 -3
  169. package/dist/themes/tokens/component/field-tokens.d.ts +8 -3
  170. package/dist/themes/tokens/component/focus-tokens.d.ts +8 -3
  171. package/dist/themes/tokens/component/global-banner-tokens.d.ts +8 -3
  172. package/dist/themes/tokens/component/global-header-tokens.d.ts +8 -3
  173. package/dist/themes/tokens/component/global-navigation-tokens.d.ts +8 -0
  174. package/dist/themes/tokens/component/heading-tokens.d.ts +8 -3
  175. package/dist/themes/tokens/component/label-tokens.d.ts +8 -3
  176. package/dist/themes/tokens/component/legend-tokens.d.ts +8 -3
  177. package/dist/themes/tokens/component/link-tokens.d.ts +8 -3
  178. package/dist/themes/tokens/component/listbox-tokens.d.ts +8 -3
  179. package/dist/themes/tokens/component/lozenge-tokens.d.ts +8 -3
  180. package/dist/themes/tokens/component/menu-tokens.d.ts +8 -3
  181. package/dist/themes/tokens/component/modal-tokens.d.ts +8 -3
  182. package/dist/themes/tokens/component/nav-list-tokens.d.ts +8 -3
  183. package/dist/themes/tokens/component/numeric-input-tokens.d.ts +8 -3
  184. package/dist/themes/tokens/component/pagination-tokens.d.ts +8 -3
  185. package/dist/themes/tokens/component/password-input-tokens.d.ts +8 -3
  186. package/dist/themes/tokens/component/phone-input-tokens.d.ts +8 -3
  187. package/dist/themes/tokens/component/progress-circular-tokens.d.ts +8 -3
  188. package/dist/themes/tokens/component/progress-tokens.d.ts +8 -3
  189. package/dist/themes/tokens/component/radio-button-group-tokens.d.ts +8 -3
  190. package/dist/themes/tokens/component/radio-card-tokens.d.ts +8 -3
  191. package/dist/themes/tokens/component/search-input-tokens.d.ts +8 -3
  192. package/dist/themes/tokens/component/sectional-banner-tokens.d.ts +8 -3
  193. package/dist/themes/tokens/component/segmented-control-tokens.d.ts +8 -3
  194. package/dist/themes/tokens/component/side-drawer-tokens.d.ts +8 -3
  195. package/dist/themes/tokens/component/slider-tokens.d.ts +8 -3
  196. package/dist/themes/tokens/component/spinner-tokens.d.ts +8 -3
  197. package/dist/themes/tokens/component/status-tokens.d.ts +8 -0
  198. package/dist/themes/tokens/component/stepper-tokens.d.ts +8 -3
  199. package/dist/themes/tokens/component/tab-tokens.d.ts +8 -3
  200. package/dist/themes/tokens/component/table-tokens.d.ts +8 -3
  201. package/dist/themes/tokens/component/tag-tokens.d.ts +8 -3
  202. package/dist/themes/tokens/component/text-area-tokens.d.ts +8 -3
  203. package/dist/themes/tokens/component/text-input-tokens.d.ts +8 -3
  204. package/dist/themes/tokens/component/toast-tokens.d.ts +8 -3
  205. package/dist/themes/tokens/component/toggle-switch-tokens.d.ts +8 -3
  206. package/dist/themes/tokens/component/toggletip-tokens.d.ts +8 -3
  207. package/dist/themes/tokens/component/tooltip-tokens.d.ts +8 -3
  208. package/dist/themes/tokens/component-tokens.d.ts +66 -705
  209. package/dist/themes/tokens/index.d.ts +0 -1
  210. package/dist/themes/tokens/ref/color-utility-tokens.d.ts +6 -0
  211. package/dist/themes/tokens/ref/palette-tokens.d.ts +6 -3
  212. package/dist/themes/tokens/ref/text-attributes-tokens.d.ts +6 -0
  213. package/dist/themes/tokens/ref-tokens.d.ts +9 -209
  214. package/dist/utility-types.d.ts +1 -0
  215. package/dist/utils/component-classes.d.ts +0 -1
  216. package/dist/utils/css-state.d.ts +1 -4
  217. package/dist/utils/dom.d.ts +1 -1
  218. package/package.json +64 -64
  219. package/dist/components/avatar/index.d.ts +0 -2
  220. package/dist/components/badge/index.d.ts +0 -2
  221. package/dist/components/bento-menu-button/index.d.ts +0 -3
  222. package/dist/components/breadcrumb/index.d.ts +0 -2
  223. package/dist/components/buttons/abstract/index.d.ts +0 -2
  224. package/dist/components/card/index.d.ts +0 -2
  225. package/dist/components/card-link/index.d.ts +0 -2
  226. package/dist/components/carousel/index.d.ts +0 -2
  227. package/dist/components/checkbox/index.d.ts +0 -2
  228. package/dist/components/checkbox-group/index.d.ts +0 -2
  229. package/dist/components/chooser-button/chooser-label.d.ts +0 -1
  230. package/dist/components/chooser-button/index.d.ts +0 -2
  231. package/dist/components/chooser-button-group/index.d.ts +0 -2
  232. package/dist/components/combobox/index.d.ts +0 -2
  233. package/dist/components/date-picker/index.d.ts +0 -3
  234. package/dist/components/date-picker/utils/index.d.ts +0 -1
  235. package/dist/components/device-context-provider/index.d.ts +0 -2
  236. package/dist/components/disclosure/index.d.ts +0 -2
  237. package/dist/components/dropdown-list/index.d.ts +0 -2
  238. package/dist/components/dropdown-menu/index.d.ts +0 -3
  239. package/dist/components/dropdown-menu-button/dropdown-menu-button-classes.d.ts +0 -7
  240. package/dist/components/dropdown-menu-button/index.d.ts +0 -3
  241. package/dist/components/dropdown-navigation/index.d.ts +0 -2
  242. package/dist/components/error-summary/index.d.ts +0 -2
  243. package/dist/components/external-link/index.d.ts +0 -2
  244. package/dist/components/feedbacks/index.d.ts +0 -2
  245. package/dist/components/field-container/index.d.ts +0 -2
  246. package/dist/components/filters/filter-multi.d.ts +0 -17
  247. package/dist/components/filters/filter-option.d.ts +0 -5
  248. package/dist/components/filters/filter-single.d.ts +0 -14
  249. package/dist/components/filters/index.d.ts +0 -5
  250. package/dist/components/filters/internal/clear-filters.d.ts +0 -6
  251. package/dist/components/filters/internal/filter-dropdown-button.d.ts +0 -12
  252. package/dist/components/filters/internal/list-container.d.ts +0 -17
  253. package/dist/components/filters/internal/use-list-filter.d.ts +0 -15
  254. package/dist/components/filters/internal/use.search.d.ts +0 -11
  255. package/dist/components/global-banner/index.d.ts +0 -2
  256. package/dist/components/global-header/index.d.ts +0 -3
  257. package/dist/components/heading/index.d.ts +0 -2
  258. package/dist/components/icon/index.d.ts +0 -2
  259. package/dist/components/index.d.ts +0 -73
  260. package/dist/components/internationalization-provider/index.d.ts +0 -2
  261. package/dist/components/label/index.d.ts +0 -2
  262. package/dist/components/listbox/index.d.ts +0 -2
  263. package/dist/components/listbox/listbox-tag.d.ts +0 -18
  264. package/dist/components/listbox/utils/index.d.ts +0 -1
  265. package/dist/components/listbox/utils/listbox-utils.d.ts +0 -34
  266. package/dist/components/lozenge/index.d.ts +0 -2
  267. package/dist/components/menu/index.d.ts +0 -2
  268. package/dist/components/menu-button/index.d.ts +0 -2
  269. package/dist/components/modal/dialog/index.d.ts +0 -2
  270. package/dist/components/nav-list/index.d.ts +0 -3
  271. package/dist/components/pagination/index.d.ts +0 -2
  272. package/dist/components/pagination/util/index.d.ts +0 -1
  273. package/dist/components/password-creation-input/index.d.ts +0 -4
  274. package/dist/components/password-input/index.d.ts +0 -2
  275. package/dist/components/phone-input/index.d.ts +0 -2
  276. package/dist/components/progress-circular/index.d.ts +0 -2
  277. package/dist/components/progress-indicator/index.d.ts +0 -1
  278. package/dist/components/progress-tracker/index.d.ts +0 -2
  279. package/dist/components/radio-button/index.d.ts +0 -2
  280. package/dist/components/radio-button-group/index.d.ts +0 -2
  281. package/dist/components/radio-card-group/index.d.ts +0 -4
  282. package/dist/components/route-link/index.d.ts +0 -2
  283. package/dist/components/route-link/styles/index.d.ts +0 -1
  284. package/dist/components/screen-reader-only-text/index.d.ts +0 -2
  285. package/dist/components/search/index.d.ts +0 -4
  286. package/dist/components/sectional-banner/index.d.ts +0 -2
  287. package/dist/components/segmented-control/index.d.ts +0 -2
  288. package/dist/components/shadow-wrapper/index.d.ts +0 -2
  289. package/dist/components/side-drawer/index.d.ts +0 -2
  290. package/dist/components/skip-link/index.d.ts +0 -2
  291. package/dist/components/slider/index.d.ts +0 -2
  292. package/dist/components/stepper-input/index.d.ts +0 -2
  293. package/dist/components/table/table-caption.d.ts +0 -14
  294. package/dist/components/table/utils/index.d.ts +0 -1
  295. package/dist/components/tabs/index.d.ts +0 -2
  296. package/dist/components/tabs/tabs-classes.d.ts +0 -5
  297. package/dist/components/tabs/types.d.ts +0 -30
  298. package/dist/components/tag/index.d.ts +0 -4
  299. package/dist/components/text-area/index.d.ts +0 -2
  300. package/dist/components/text-input/styles/index.d.ts +0 -1
  301. package/dist/components/theme-wrapper/index.d.ts +0 -2
  302. package/dist/components/toast/index.d.ts +0 -3
  303. package/dist/components/toggle-switch/index.d.ts +0 -2
  304. package/dist/components/toggletip/index.d.ts +0 -2
  305. package/dist/components/tooltip/index.d.ts +0 -2
  306. package/dist/components/user-profile/index.d.ts +0 -2
  307. package/dist/components/visually-hidden/index.d.ts +0 -2
  308. package/dist/components/visually-hidden/visually-hidden.d.ts +0 -3
  309. package/dist/hooks/use-dropdown/index.d.ts +0 -2
  310. package/dist/hooks/use-dropdown/use-dropdown.d.ts +0 -20
  311. package/dist/themes/tokens/alias/color-tokens.d.ts +0 -3
  312. package/dist/themes/tokens/alias/text-tokens.d.ts +0 -3
  313. package/dist/themes/tokens/component/caption-tokens.d.ts +0 -3
  314. package/dist/themes/tokens/component/filter-tokens.d.ts +0 -3
  315. package/dist/themes/tokens/component/progress-indicator-tokens.d.ts +0 -3
  316. package/dist/themes/tokens/ref/text-tokens.d.ts +0 -3
  317. package/dist/themes/tokens/ref/utility-tokens.d.ts +0 -3
  318. package/dist/themes/tokens/tokens.d.ts +0 -11
  319. package/dist/utils/css-values/box-shadow.d.ts +0 -11
  320. package/dist/utils/css-values/box-shadow.test.d.ts +0 -1
  321. package/dist/utils/css-values/index.d.ts +0 -2
  322. package/dist/utils/css-values/size.d.ts +0 -5
  323. package/dist/utils/css-values/size.test.d.ts +0 -1
  324. /package/dist/components/{listbox/utils/listbox-utils.test.d.ts → dropdown-list/utils/dropdown-list-utils.test.d.ts} +0 -0
  325. /package/dist/components/visually-hidden/{visually-hidden.style.d.ts → styles/visuallyhidden.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
- import { type Breakpoints } from '../../legacy-constants/breakpoints';
2
+ import { Breakpoints } from '../../legacy-constants/breakpoints';
3
3
  export type DeviceType = 'desktop' | 'tablet' | 'mobile';
4
4
  export interface DeviceContextProviderProps {
5
5
  staticDevice?: DeviceType;
@@ -12,7 +12,7 @@ export interface DeviceContextProps {
12
12
  breakpoints: Breakpoints;
13
13
  }
14
14
  /**
15
- * @internal Use {@link DesignSystem} instead
15
+ * @deprecated Use {@link DesignSystem} instead
16
16
  */
17
17
  export declare const DeviceContextProvider: FunctionComponent<PropsWithChildren<DeviceContextProviderProps>>;
18
18
  export declare function useDeviceContext(): DeviceContextProps;
@@ -1,15 +1,16 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
- import { type ButtonProps, type ButtonSize } from '../buttons';
3
- import { type IconName } from '../icon';
4
- export type DisclosureButtonProps = Omit<ButtonProps, 'onClick'> & {
2
+ import { Size, ButtonProps } from '../buttons';
3
+ import { IconName } from '../icon/icon';
4
+ export type ButtonPropsWithoutOnClick = Omit<ButtonProps, 'onClick'> & {
5
5
  iconName?: IconName;
6
- size?: ButtonSize;
6
+ size?: Size;
7
7
  };
8
- export interface DisclosureProps {
8
+ interface DisclosureWidgetProps {
9
9
  idContent?: string;
10
- buttonProps: DisclosureButtonProps;
10
+ buttonProps: ButtonPropsWithoutOnClick;
11
11
  }
12
12
  export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
13
13
  $expanded: boolean;
14
14
  }, never>;
15
- export declare const Disclosure: FunctionComponent<PropsWithChildren<DisclosureProps>>;
15
+ export declare const Disclosure: FunctionComponent<PropsWithChildren<DisclosureWidgetProps>>;
16
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ListboxOption } from '../listbox/listbox';
2
+ export interface DropdownListOption extends ListboxOption {
3
+ label: string;
4
+ }
@@ -1,10 +1,11 @@
1
- import { FC } from 'react';
2
- import { type IconName } from '../icon';
3
- import { type ListboxOption } from '../listbox';
4
- import { type ToggletipProps } from '../toggletip';
5
- import { type TooltipProps } from '../tooltip';
1
+ import { VoidFunctionComponent } from 'react';
2
+ import { IconName } from '../icon/icon';
3
+ import { ToggletipProps } from '../toggletip/toggletip';
4
+ import { TooltipProps } from '../tooltip/tooltip';
5
+ import { DropdownListOption } from './dropdown-list-option';
6
6
  type Value = string | string[];
7
- export interface DropdownListOption extends ListboxOption {
7
+ export interface TagValue {
8
+ id?: string;
8
9
  label: string;
9
10
  }
10
11
  export interface DropdownListProps<M extends boolean | undefined> {
@@ -64,5 +65,5 @@ export interface DropdownListProps<M extends boolean | undefined> {
64
65
  */
65
66
  onChange?(option: M extends true ? DropdownListOption[] : DropdownListOption): void;
66
67
  }
67
- export declare const DropdownList: FC<DropdownListProps<boolean | undefined>>;
68
+ export declare const DropdownList: VoidFunctionComponent<DropdownListProps<boolean | undefined>>;
68
69
  export {};
@@ -0,0 +1,9 @@
1
+ import { DropdownListOption } from '../dropdown-list-option';
2
+ export declare function optionsAreEqual(option: DropdownListOption, optionToCompare: DropdownListOption): boolean;
3
+ export declare function addUniqueOption(newOption: DropdownListOption, options?: DropdownListOption[]): DropdownListOption[];
4
+ export declare function removeOption(optionToRemove: DropdownListOption, options?: DropdownListOption[]): DropdownListOption[];
5
+ export declare function isOptionEnabled(option: DropdownListOption): boolean;
6
+ export declare function disableNonSelectedOptions(options: DropdownListOption[], selectedOptions: DropdownListOption[]): DropdownListOption[];
7
+ export declare function getDefaultOptions(value: string | string[] | undefined, options: DropdownListOption[], multiselect?: boolean): DropdownListOption[] | undefined;
8
+ export declare function getOptionLabel(option: DropdownListOption): string;
9
+ export declare function isOptionSelected(option: DropdownListOption, selectedOptions?: DropdownListOption[]): boolean;
@@ -1,9 +1,10 @@
1
1
  import { KeyboardEvent, ReactElement } from 'react';
2
- import { type GroupItemProps } from './list-items';
2
+ import { GroupItemProps } from './list-items';
3
3
  export interface DropdownMenuProps {
4
4
  children?: ReactElement<GroupItemProps> | ReactElement<GroupItemProps>[];
5
5
  id?: string;
6
6
  className?: string;
7
+ hidden?: boolean;
7
8
  onKeyDown?(event: KeyboardEvent): void;
8
9
  }
9
10
  export declare const DropdownMenu: import("react").ForwardRefExoticComponent<DropdownMenuProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
- import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
3
- import { type ExternalLinkProps } from '../../external-link';
2
+ import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
3
+ import { ExternalLinkProps } from '../../external-link/external-link';
4
4
  export interface ExternalItemProps extends ExternalLinkProps {
5
5
  label: string;
6
6
  href: string;
@@ -11,6 +11,6 @@ export interface ExternalItemProps extends ExternalLinkProps {
11
11
  interface ExternalItemsStyledProps extends ExternalItemProps {
12
12
  $device: DeviceContextProps;
13
13
  }
14
- export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").FC<ExternalLinkProps>, import("styled-components").DefaultTheme, ExternalItemsStyledProps, never>;
14
+ export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<ExternalLinkProps>, import("styled-components").DefaultTheme, ExternalItemsStyledProps, never>;
15
15
  export declare const ExternalItem: ({ href, label, disabled, target, onClick, }: ExternalItemProps) => ReactElement;
16
16
  export {};
@@ -1,6 +1,6 @@
1
- import { type FC, ReactElement } from 'react';
2
- import { type HeadingProps } from '../../heading';
3
- import { type NavItemProps } from './nav-item';
1
+ import { ReactElement, VoidFunctionComponent } from 'react';
2
+ import { HeadingProps } from '../../heading/heading';
3
+ import { NavItemProps } from './nav-item';
4
4
  export interface GroupItemProps {
5
5
  id?: string;
6
6
  children: ReactElement<NavItemProps> | ReactElement<NavItemProps>[];
@@ -8,4 +8,4 @@ export interface GroupItemProps {
8
8
  label?: string;
9
9
  }
10
10
  export declare const StyledHeading: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>, import("styled-components").DefaultTheme, HeadingProps, never>;
11
- export declare const GroupItem: FC<GroupItemProps>;
11
+ export declare const GroupItem: VoidFunctionComponent<GroupItemProps>;
@@ -1,5 +1,5 @@
1
- export { ExternalItem, type ExternalItemProps } from './external-item';
2
- export { GroupItem, type GroupItemProps } from './group-item';
1
+ export { ExternalItem, ExternalItemProps } from './external-item';
2
+ export { GroupItem, GroupItemProps } from './group-item';
3
3
  export { ItemContent } from './item-content';
4
4
  export { LabelItem } from './label-item';
5
- export { NavItem, type NavItemProps } from './nav-item';
5
+ export { NavItem, NavItemProps } from './nav-item';
@@ -1,6 +1,6 @@
1
- import { type FC } from 'react';
2
- import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
3
- import { type IconName } from '../../icon';
1
+ import { VoidFunctionComponent } from 'react';
2
+ import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
3
+ import { IconName } from '../../icon/icon';
4
4
  export interface ItemContentProps {
5
5
  device: DeviceContextProps;
6
6
  smallLabel?: boolean;
@@ -9,4 +9,4 @@ export interface ItemContentProps {
9
9
  label: string;
10
10
  lozenge?: string;
11
11
  }
12
- export declare const ItemContent: FC<ItemContentProps>;
12
+ export declare const ItemContent: VoidFunctionComponent<ItemContentProps>;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
- import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
3
- import { type IconName } from '../../icon';
2
+ import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
3
+ import { IconName } from '../../icon/icon';
4
4
  interface LabelItemProps {
5
5
  description?: string;
6
6
  iconName?: IconName;
@@ -1,7 +1,7 @@
1
1
  import { MouseEvent } from 'react';
2
- import { type NavLinkProps } from 'react-router-dom';
3
- import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
4
- import { type IconName } from '../../icon';
2
+ import { NavLinkProps } from 'react-router-dom';
3
+ import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
4
+ import { IconName } from '../../icon/icon';
5
5
  export interface NavItemProps {
6
6
  value: string;
7
7
  href: string;
@@ -24,6 +24,6 @@ interface LinkProps {
24
24
  }
25
25
  export declare const StyledNavItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<NavLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, import("styled-components").DefaultTheme, LinkProps & NavLinkProps, never>;
26
26
  export declare const HtmlLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, LinkProps, never>;
27
- export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").FC<import("../../external-link").ExternalLinkProps>, import("styled-components").DefaultTheme, LinkProps, never>;
27
+ export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../../external-link/external-link").ExternalLinkProps>, import("styled-components").DefaultTheme, LinkProps, never>;
28
28
  export declare const NavItem: import("react").ForwardRefExoticComponent<NavItemProps & import("react").RefAttributes<HTMLAnchorElement>>;
29
29
  export {};
@@ -1,46 +1,38 @@
1
- import { FC, ReactElement, RefObject } from 'react';
2
- import { AvatarProps } from '../avatar';
3
- import { type ButtonType } from '../buttons';
4
- import { type GroupItemProps } from '../dropdown-menu';
5
- import { type IconProps } from '../icon';
6
- interface StyledListboxProps {
7
- $left?: number | string;
8
- $top?: number | string;
9
- }
10
- export declare const StyledDropdownMenu: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../dropdown-menu").DropdownMenuProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, StyledListboxProps, never>;
11
- export type DropdownMenuCloseFunction = () => void;
12
- export interface DropdownMenuButtonProps {
13
- align?: 'left' | 'right';
1
+ import { ReactElement, RefObject, VoidFunctionComponent } from 'react';
2
+ import { AvatarProps } from '../avatar/avatar';
3
+ import { ButtonType } from '../buttons/types';
4
+ import { GroupItemProps } from '../dropdown-menu/list-items';
5
+ import { IconProps } from '../icon/icon';
6
+ export declare const StyledDropdownMenu: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../dropdown-menu/dropdown-menu").DropdownMenuProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
7
+ interface MenuButtonProps {
8
+ label?: string;
9
+ title?: string;
14
10
  /**
15
11
  * Sets nav's description
16
12
  * @default 'Menu'
17
13
  * */
18
14
  ariaLabel?: string;
15
+ /** Set wrapper element tag */
16
+ tag?: 'div' | 'nav';
19
17
  buttonAriaLabel?: string;
20
- buttonType?: ButtonType;
21
18
  className?: string;
22
19
  /**
23
20
  * Sets menu open by default
24
21
  * @default false
25
22
  * */
26
23
  defaultOpen?: boolean;
27
- dropdownMenuId?: string;
28
- dropdownMenuWidth?: 'auto' | 'initial' | 'reference' | number;
29
24
  /**
30
25
  * Sets chevron icon
31
26
  * @default true
32
27
  * */
33
28
  hasCaret?: boolean;
34
- firstItemRef?: RefObject<HTMLElement>;
29
+ buttonType?: ButtonType;
30
+ inverted?: boolean;
35
31
  icon?: ReactElement<IconProps | AvatarProps>;
36
32
  id?: string;
37
- inverted?: boolean;
38
- label?: string;
39
- title?: string;
40
- /** Set wrapper element tag */
41
- tag?: 'div' | 'nav';
33
+ firstItemRef?: RefObject<HTMLAnchorElement>;
42
34
  onMenuVisibilityChanged?(isOpen: boolean): void;
43
35
  render?(close: () => void): ReactElement<GroupItemProps> | ReactElement<GroupItemProps>[];
44
36
  }
45
- export declare const DropdownMenuButton: FC<DropdownMenuButtonProps>;
37
+ export declare const DropdownMenuButton: VoidFunctionComponent<MenuButtonProps>;
46
38
  export {};
@@ -1,8 +1,8 @@
1
1
  import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
2
- import { type ButtonType } from '../buttons';
3
- import { type IconName } from '../icon';
4
- import { type NavListOption } from '../nav-list';
5
- export interface DropdownNavigationProps {
2
+ import { ButtonType } from '../buttons/types';
3
+ import { IconName } from '../icon/icon';
4
+ import { NavListOption } from '../nav-list/nav-list-option';
5
+ interface NavButtonProps {
6
6
  /**
7
7
  * Sets nav's description
8
8
  * @default 'Menu'
@@ -33,4 +33,5 @@ export interface DropdownNavigationProps {
33
33
  onDropdownVisibilityChanged?(isOpen: boolean): void;
34
34
  onLinkSelected?(option: NavListOption): void;
35
35
  }
36
- export declare const DropdownNavigation: FunctionComponent<PropsWithChildren<DropdownNavigationProps>>;
36
+ export declare const DropdownNavigation: FunctionComponent<PropsWithChildren<NavButtonProps>>;
37
+ export {};
@@ -1,15 +1,15 @@
1
- import { type FC, RefObject } from 'react';
2
- export type ErrorSummaryHeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
1
+ import { RefObject, VoidFunctionComponent } from 'react';
2
+ type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
3
  export interface ErrorMessage {
4
4
  text: string;
5
5
  target: RefObject<HTMLElement> | string;
6
6
  }
7
- export interface ErrorSummaryProps {
7
+ interface ErrorSummaryProps {
8
8
  className?: string;
9
9
  /**
10
10
  * @default h2
11
11
  */
12
- headingTag?: ErrorSummaryHeadingTag;
12
+ headingTag?: HeadingTag;
13
13
  /**
14
14
  * Array of objects with a `text` attribute containing the error message and a `target`
15
15
  * referencing the target input that will get the focus when clicking the error. The
@@ -17,4 +17,5 @@ export interface ErrorSummaryProps {
17
17
  */
18
18
  messages: ErrorMessage[];
19
19
  }
20
- export declare const ErrorSummary: FC<ErrorSummaryProps>;
20
+ export declare const ErrorSummary: VoidFunctionComponent<ErrorSummaryProps>;
21
+ export {};
@@ -1,5 +1,5 @@
1
- import { type FC, MouseEvent } from 'react';
2
- import { type IconName } from '../icon';
1
+ import { MouseEvent, VoidFunctionComponent } from 'react';
2
+ import { IconName } from '../icon/icon';
3
3
  export interface ExternalLinkProps {
4
4
  className?: string;
5
5
  disabled?: boolean;
@@ -12,4 +12,4 @@ export interface ExternalLinkProps {
12
12
  /**
13
13
  * @deprecated This component is deprecated and will be removed in future releases. Use Link instead.
14
14
  */
15
- export declare const ExternalLink: FC<ExternalLinkProps>;
15
+ export declare const ExternalLink: VoidFunctionComponent<ExternalLinkProps>;
@@ -1,7 +1,8 @@
1
- import { type FC } from 'react';
2
- export interface InvalidFieldProps {
1
+ import { VoidFunctionComponent } from 'react';
2
+ interface InvalidFieldProps {
3
3
  controlId: string;
4
4
  feedbackMsg: string;
5
5
  noIcon?: boolean;
6
6
  }
7
- export declare const InvalidField: FC<InvalidFieldProps>;
7
+ declare const InvalidField: VoidFunctionComponent<InvalidFieldProps>;
8
+ export { InvalidField };
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
- import { type ToggletipProps } from '../toggletip';
3
- import { type TooltipProps } from '../tooltip';
2
+ import { ToggletipProps } from '../toggletip/toggletip';
3
+ import { TooltipProps } from '../tooltip/tooltip';
4
4
  export interface FieldContainerProps {
5
5
  className?: string;
6
6
  fieldId: string;
@@ -1,17 +1,2 @@
1
- import { FieldsetHTMLAttributes, ReactNode } from 'react';
2
- import { type LegendProps } from './legend';
3
- type BaseFieldsetProps = Pick<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'disabled' | 'id' | 'aria-disabled' | 'aria-label' | 'role'>;
4
- export type FieldsetOrientation = 'horizontal' | 'vertical';
5
- export type FieldsetLegendProps = Omit<LegendProps, 'children'> & {
6
- text: string;
7
- };
8
- export interface FieldsetProps extends BaseFieldsetProps {
9
- legend?: FieldsetLegendProps;
10
- orientation?: FieldsetOrientation;
11
- children: ReactNode;
12
- }
13
- export declare const StyledFieldset: import("styled-components").StyledComponent<"fieldset", import("styled-components").DefaultTheme, {
14
- $orientation: FieldsetProps["orientation"];
15
- }, never>;
1
+ import { FieldsetProps } from './types';
16
2
  export declare const Fieldset: import("react").ForwardRefExoticComponent<FieldsetProps & import("react").RefAttributes<HTMLFieldSetElement>>;
17
- export {};
@@ -1,2 +1 @@
1
- export { Fieldset } from './fieldset';
2
- export type { FieldsetLegendProps, FieldsetOrientation, FieldsetProps } from './fieldset';
1
+ export * from './fieldset';
@@ -1,13 +1,3 @@
1
- import { type FC, HTMLAttributes } from 'react';
2
- export type LegendSize = 'small' | 'medium' | 'large';
3
- export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
4
- className?: string;
5
- size?: LegendSize;
6
- bold?: boolean;
7
- }
8
- export declare const StyledLegend: import("styled-components").StyledComponent<"legend", import("styled-components").DefaultTheme, {
9
- $size: LegendProps["size"];
10
- $bold: LegendProps["bold"];
11
- $isMobile: boolean;
12
- }, never>;
1
+ import { FC } from 'react';
2
+ import { LegendProps } from './types';
13
3
  export declare const Legend: FC<LegendProps>;
@@ -0,0 +1,9 @@
1
+ import { FieldsetProps, LegendProps } from './types';
2
+ export declare const StyledLegend: import("styled-components").StyledComponent<"legend", import("styled-components").DefaultTheme, {
3
+ $size: LegendProps["size"];
4
+ $bold: LegendProps["bold"];
5
+ $isMobile: boolean;
6
+ }, never>;
7
+ export declare const StyledFieldset: import("styled-components").StyledComponent<"fieldset", import("styled-components").DefaultTheme, {
8
+ $orientation: FieldsetProps["orientation"];
9
+ }, never>;
@@ -0,0 +1,17 @@
1
+ import { FieldsetHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
+ export type LegendSize = 'small' | 'medium' | 'large';
3
+ export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
4
+ className?: string;
5
+ size?: LegendSize;
6
+ bold?: boolean;
7
+ }
8
+ export type FieldsetOrientation = 'horizontal' | 'vertical';
9
+ type BaseFieldsetProps = Pick<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'disabled' | 'id' | 'aria-disabled' | 'aria-label' | 'role'>;
10
+ export interface FieldsetProps extends BaseFieldsetProps {
11
+ legend?: Omit<LegendProps, 'children'> & {
12
+ text: string;
13
+ };
14
+ orientation?: FieldsetOrientation;
15
+ children: ReactNode;
16
+ }
17
+ export {};
@@ -4,7 +4,7 @@ export interface ActionButton {
4
4
  label: string;
5
5
  onClick(event: MouseEvent<HTMLButtonElement>): void;
6
6
  }
7
- export interface GlobalBannerProps {
7
+ interface GlobalBannerProps {
8
8
  actionButton?: ActionButton;
9
9
  secondaryActionButton?: ActionButton;
10
10
  className?: string;
@@ -20,3 +20,4 @@ export interface GlobalBannerProps {
20
20
  type?: GlobalBannerType;
21
21
  }
22
22
  export declare const GlobalBanner: import("react").ForwardRefExoticComponent<GlobalBannerProps & import("react").RefAttributes<HTMLElement>>;
23
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
2
- import { type SkipLinkProps } from '../skip-link';
2
+ import { SkipLinkProps } from '../skip-link/skip-link';
3
3
  import { LogoName } from './logo';
4
- export interface GlobalHeaderProps {
4
+ interface GlobalHeaderProps {
5
5
  /** Set the app name to get the proper logos */
6
6
  appName?: LogoName;
7
7
  /** Sets app title which appears next to logo on desktop */
@@ -21,3 +21,4 @@ export interface GlobalHeaderProps {
21
21
  usesReactRouter?: boolean;
22
22
  }
23
23
  export declare const GlobalHeader: FunctionComponent<PropsWithChildren<GlobalHeaderProps>>;
24
+ export {};
@@ -0,0 +1,20 @@
1
+ import { VoidFunctionComponent } from 'react';
2
+ import { IconButtonProps } from '../buttons/icon-button';
3
+ import { IconName } from '../icon/icon';
4
+ export interface GlobalNavigationItem {
5
+ end?: boolean;
6
+ href: string;
7
+ iconName: IconName;
8
+ name: string;
9
+ onClick?(): void;
10
+ }
11
+ interface GlobalNavigationProps {
12
+ className?: string;
13
+ coreActionButton?: IconButtonProps;
14
+ /** Item has an icon name, a name, and a href */
15
+ mainItems: GlobalNavigationItem[];
16
+ /** Item has an icon name, a name, and a href */
17
+ footerItems: GlobalNavigationItem[];
18
+ }
19
+ export declare const GlobalNavigation: VoidFunctionComponent<GlobalNavigationProps>;
20
+ export {};
@@ -1,13 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- export type HeadingType = 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall' | 'subtitle';
3
- export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
2
+ export type Type = 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall' | 'subtitle';
3
+ export type Tag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
4
  export interface HeadingProps {
5
5
  bold?: boolean;
6
6
  children?: ReactNode;
7
7
  className?: string;
8
8
  id?: string;
9
9
  noMargin?: boolean;
10
- tag?: HeadingTag;
11
- type: HeadingType;
10
+ tag?: Tag;
11
+ type: Type;
12
12
  }
13
13
  export declare const Heading: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -1,4 +1,4 @@
1
- import { type FC } from 'react';
1
+ import { VoidFunctionComponent } from 'react';
2
2
  declare const iconMapping: {
3
3
  readonly alertCircle: any;
4
4
  readonly alertFilled: any;
@@ -95,5 +95,5 @@ export interface IconProps {
95
95
  color?: string;
96
96
  role?: string;
97
97
  }
98
- export declare const Icon: FC<IconProps>;
98
+ export declare const Icon: VoidFunctionComponent<IconProps>;
99
99
  export {};
@@ -10,7 +10,7 @@ interface IntlContextProps {
10
10
  i18n: i18nType;
11
11
  }
12
12
  /**
13
- * @internal Use {@link DesignSystem} instead
13
+ * @deprecated Use {@link DesignSystem} instead
14
14
  */
15
15
  export declare const IntlProvider: FunctionComponent<PropsWithChildren<IntlProviderProps>>;
16
16
  export declare function useIntlContext(): IntlContextProps;
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
- import { type ToggletipProps } from '../toggletip';
3
- import { type TooltipProps } from '../tooltip';
4
- export interface LabelProps {
2
+ import { ToggletipProps } from '../toggletip/toggletip';
3
+ import { TooltipProps } from '../tooltip/tooltip';
4
+ interface LabelProps {
5
5
  className?: string;
6
6
  forId: string;
7
7
  id?: string;
@@ -0,0 +1,12 @@
1
+ import { VoidFunctionComponent } from 'react';
2
+ export interface LegendItem {
3
+ name: string;
4
+ description: string;
5
+ color?: string;
6
+ }
7
+ interface LegendProps {
8
+ className?: string;
9
+ items: LegendItem[];
10
+ }
11
+ export declare const Legend: VoidFunctionComponent<LegendProps>;
12
+ export {};
@@ -1,2 +1 @@
1
1
  export { Link } from './link';
2
- export type { LinkButtonProps, LinkProps } from './types';
@@ -1,3 +1,3 @@
1
- import { type FC } from 'react';
1
+ import { FC } from 'react';
2
2
  import { LinkProps } from './types';
3
3
  export declare const Link: FC<LinkProps>;
@@ -1,9 +1,9 @@
1
- import { type AnchorHTMLAttributes } from 'react';
2
- import { Link as ReactRouterLink, NavLink, type NavLinkProps } from 'react-router-dom';
3
- import { type ButtonProps } from '../buttons';
4
- import { type IconName } from '../icon';
1
+ import { AnchorHTMLAttributes } from 'react';
2
+ import { NavLink, Link as ReactRouterLink, NavLinkProps } from 'react-router-dom';
3
+ import { ButtonProps } from '../buttons';
4
+ import { IconName } from '../icon/icon';
5
5
  type BaseLinkProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'id' | 'className' | 'onClick' | 'aria-disabled' | 'aria-label' | 'target' | 'children' | 'href' | 'rel' | 'onFocus' | 'onBlur' | 'onKeyDown'> & Pick<NavLinkProps, 'end'>;
6
- export type LinkButtonProps = Pick<ButtonProps, 'autofocus' | 'buttonType' | 'disabled' | 'focusable' | 'inverted' | 'size' | 'title' | 'type'>;
6
+ type LinkButtonProps = Pick<ButtonProps, 'autofocus' | 'buttonType' | 'disabled' | 'focusable' | 'inverted' | 'size' | 'title' | 'type'>;
7
7
  export interface LinkProps extends BaseLinkProps {
8
8
  disabled?: boolean;
9
9
  /** Button Link Variant */
@@ -0,0 +1,5 @@
1
+ type Value = string | string[];
2
+ export declare function findOptionsByValue<T extends {
3
+ value: string;
4
+ }>(options: T[], searchValue?: Value | undefined): T[];
5
+ export {};
@@ -1,4 +1,4 @@
1
- import { ForwardRefExoticComponent, KeyboardEvent, RefAttributes, type RefObject } from 'react';
1
+ import { ForwardRefExoticComponent, KeyboardEvent, RefAttributes } from 'react';
2
2
  type Value = string | string[];
3
3
  export interface ListboxOption {
4
4
  disabled?: boolean;
@@ -11,7 +11,6 @@ export interface ListboxProps {
11
11
  id?: string;
12
12
  options: ListboxOption[];
13
13
  className?: string;
14
- containerRef?: RefObject<HTMLElement>;
15
14
  /**
16
15
  * The default selected option. You may specify an array of strings when using multiselect feature.
17
16
  */
@@ -21,11 +20,6 @@ export interface ListboxProps {
21
20
  * @default true
22
21
  */
23
22
  focusable?: boolean;
24
- /**
25
- * Set to true to enable keyboard navigation managed by the listbox
26
- * @default Same value as focusable
27
- */
28
- keyboardNav?: boolean;
29
23
  /**
30
24
  * Activates multiple selection feature
31
25
  * @default false
@@ -56,7 +50,5 @@ export interface ListboxProps {
56
50
  */
57
51
  onOptionClick?(option?: ListboxOption): void;
58
52
  }
59
- export interface ListboxRef extends HTMLDivElement {
60
- }
61
- export declare const Listbox: ForwardRefExoticComponent<ListboxProps & RefAttributes<ListboxRef>>;
53
+ export declare const Listbox: ForwardRefExoticComponent<ListboxProps & RefAttributes<HTMLDivElement>>;
62
54
  export {};
@@ -1,10 +1,11 @@
1
1
  import { FunctionComponent, PropsWithChildren } from 'react';
2
- import { type IconName } from '../icon';
2
+ import { IconName } from '../icon/icon';
3
3
  export type LozengeVariant = 'neutral' | 'success' | 'alert' | 'warning' | 'info' | 'discovery';
4
- export interface LozengeProps {
4
+ interface Props {
5
5
  className?: string;
6
6
  variant?: LozengeVariant;
7
7
  icon?: IconName;
8
8
  subtle?: boolean;
9
9
  }
10
- export declare const Lozenge: FunctionComponent<PropsWithChildren<LozengeProps>>;
10
+ export declare const Lozenge: FunctionComponent<PropsWithChildren<Props>>;
11
+ export {};