@chassis-ui/react 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/dist/accordion.d.ts +2 -0
  2. package/dist/accordion.js +1 -0
  3. package/dist/autocomplete.d.ts +2 -0
  4. package/dist/autocomplete.js +1 -0
  5. package/dist/avatar.d.ts +2 -0
  6. package/dist/avatar.js +1 -0
  7. package/dist/badge.d.ts +2 -0
  8. package/dist/badge.js +1 -0
  9. package/dist/breadcrumb.d.ts +2 -0
  10. package/dist/breadcrumb.js +1 -0
  11. package/dist/button-group.d.ts +2 -0
  12. package/dist/button-group.js +1 -0
  13. package/dist/button.d.ts +3 -0
  14. package/dist/button.js +1 -0
  15. package/dist/calendar.d.ts +3 -0
  16. package/dist/calendar.js +1 -0
  17. package/dist/card.d.ts +2 -0
  18. package/dist/card.js +1 -0
  19. package/dist/carousel.d.ts +2 -0
  20. package/dist/carousel.js +1 -0
  21. package/dist/checkbox.d.ts +3 -0
  22. package/dist/checkbox.js +1 -0
  23. package/dist/chip-input.d.ts +2 -0
  24. package/dist/chip-input.js +1 -0
  25. package/dist/chip.d.ts +2 -0
  26. package/dist/chip.js +1 -0
  27. package/dist/chunks/Button-Cptd4Yk7.d.ts +65 -0
  28. package/dist/chunks/Button-I0aUy5h-.js +1 -0
  29. package/dist/chunks/Chip-D0Cw0mAr.js +1 -0
  30. package/dist/chunks/CloseButton-DJM7FRKh.js +1 -0
  31. package/dist/chunks/ComboboxItem-C9TpoJOI.d.ts +54 -0
  32. package/dist/chunks/ComboboxListBox-BhO8uRNg.js +1 -0
  33. package/dist/chunks/FormHelp-Be2PQL0y.js +1 -0
  34. package/dist/chunks/FormLabel-CYcQiFUI.js +1 -0
  35. package/dist/chunks/Icon-BIwkD-kx.js +1 -0
  36. package/dist/chunks/Icon-CioraWLF.d.ts +36 -0
  37. package/dist/chunks/Link-B0Y1xgYi.d.ts +69 -0
  38. package/dist/chunks/Link-Cq7FNWpm.js +1 -0
  39. package/dist/chunks/MenuItemDef-D0VDtYIQ.d.ts +82 -0
  40. package/dist/chunks/RangeCalendar-COnSfurr.js +1 -0
  41. package/dist/chunks/accordion-okRicuG5.js +1 -0
  42. package/dist/chunks/autocomplete-B0xTc6kg.js +1 -0
  43. package/dist/chunks/avatar-Bjm0DlPO.js +1 -0
  44. package/dist/chunks/badge-Bj8mf8lu.js +1 -0
  45. package/dist/chunks/breadcrumb-DDxnx_iS.js +1 -0
  46. package/dist/chunks/breakpoints-SLMTNHF9.d.ts +5 -0
  47. package/dist/chunks/breakpoints-o_2Ev7ir.js +1 -0
  48. package/dist/chunks/button-group-CPZYA6aZ.js +1 -0
  49. package/dist/chunks/card-DfF2K_5p.js +1 -0
  50. package/dist/chunks/carousel-DEvwcA7H.js +1 -0
  51. package/dist/chunks/checkbox-BFPS0pD6.js +1 -0
  52. package/dist/chunks/chip-input-CB1lE6vP.js +1 -0
  53. package/dist/chunks/collapse-WifcChO8.js +1 -0
  54. package/dist/chunks/color-input-CyRaLR_G.js +1 -0
  55. package/dist/chunks/combobox-DWEj-Sv7.js +1 -0
  56. package/dist/chunks/datagrid-nbnNThsT.js +2 -0
  57. package/dist/chunks/dateRangePresets-R1FtA1zp.d.ts +41 -0
  58. package/dist/chunks/datepicker-CslLKMm1.js +1 -0
  59. package/dist/chunks/dialogTransition-i9vw0i2Z.js +1 -0
  60. package/dist/chunks/direction-CPhdeL3A.js +1 -0
  61. package/dist/chunks/drawer-zReFjoJG.js +1 -0
  62. package/dist/chunks/file-input-RRqZSzjH.js +1 -0
  63. package/dist/chunks/flex-BTvpgaRv.js +1 -0
  64. package/dist/chunks/floating-input-CIC9Lm2a.js +1 -0
  65. package/dist/chunks/focus-ring-SR_LwaN7.js +1 -0
  66. package/dist/chunks/focusRedirect-BrvK3U_o.js +1 -0
  67. package/dist/chunks/form-GpdAyWWi.js +1 -0
  68. package/dist/chunks/form-field-BjQ9SIjx.js +1 -0
  69. package/dist/chunks/grid-CuFw89yV.js +1 -0
  70. package/dist/chunks/icon-mxYpL5nL.js +1 -0
  71. package/dist/chunks/iconConfig-Bu6Pt9o3.d.ts +69 -0
  72. package/dist/chunks/iconSlot-BmWxJh27.js +1 -0
  73. package/dist/chunks/index--0_IpTDT.d.ts +17 -0
  74. package/dist/chunks/index-6uob77s9.d.ts +80 -0
  75. package/dist/chunks/index-8PhBSbNQ.d.ts +93 -0
  76. package/dist/chunks/index-B0-8n-Gs.d.ts +105 -0
  77. package/dist/chunks/index-B8uaSJA9.d.ts +95 -0
  78. package/dist/chunks/index-BA-raEMm.d.ts +28 -0
  79. package/dist/chunks/index-BDfh8YBc.d.ts +39 -0
  80. package/dist/chunks/index-BKMW0rkw.d.ts +80 -0
  81. package/dist/chunks/index-BO9jLOIb.d.ts +58 -0
  82. package/dist/chunks/index-BO_1MN66.d.ts +87 -0
  83. package/dist/chunks/index-BTDgfLxK.d.ts +94 -0
  84. package/dist/chunks/index-BTTeKpiE.d.ts +363 -0
  85. package/dist/chunks/index-BVGGIaPX.d.ts +110 -0
  86. package/dist/chunks/index-Bi8FFadV.d.ts +98 -0
  87. package/dist/chunks/index-Bkj17NEQ.d.ts +50 -0
  88. package/dist/chunks/index-BlgkO3dn.d.ts +280 -0
  89. package/dist/chunks/index-BxTlIaZu.d.ts +301 -0
  90. package/dist/chunks/index-C61tPIJ-.d.ts +50 -0
  91. package/dist/chunks/index-CCXJXToc.d.ts +52 -0
  92. package/dist/chunks/index-CJzKu7QI.d.ts +40 -0
  93. package/dist/chunks/index-COsIPd8L.d.ts +62 -0
  94. package/dist/chunks/index-COsYSDrz.d.ts +109 -0
  95. package/dist/chunks/index-CRfm7W6C.d.ts +230 -0
  96. package/dist/chunks/index-CVUMS0x7.d.ts +73 -0
  97. package/dist/chunks/index-CaQ1JY5D.d.ts +49 -0
  98. package/dist/chunks/index-Cf2n0l0U.d.ts +138 -0
  99. package/dist/chunks/index-CftERHnE.d.ts +24 -0
  100. package/dist/chunks/index-ClT3E_hv.d.ts +302 -0
  101. package/dist/chunks/index-CsMIgBsd.d.ts +39 -0
  102. package/dist/chunks/index-Ctuk1xBU.d.ts +99 -0
  103. package/dist/chunks/index-D2VVO8rx.d.ts +49 -0
  104. package/dist/chunks/index-D949AidR.d.ts +40 -0
  105. package/dist/chunks/index-D9PZHY_I.d.ts +135 -0
  106. package/dist/chunks/index-DAoPg59I.d.ts +80 -0
  107. package/dist/chunks/index-DB_ToPdz.d.ts +202 -0
  108. package/dist/chunks/index-DEb9zXlC.d.ts +210 -0
  109. package/dist/chunks/index-DHGgezXU.d.ts +58 -0
  110. package/dist/chunks/index-DJJocp_q.d.ts +132 -0
  111. package/dist/chunks/index-DKma0jQw.d.ts +104 -0
  112. package/dist/chunks/index-DPV62IdF.d.ts +118 -0
  113. package/dist/chunks/index-DR8sYtvd.d.ts +296 -0
  114. package/dist/chunks/index-Dcc_W6Kv.d.ts +146 -0
  115. package/dist/chunks/index-Dfg4Ftb8.d.ts +68 -0
  116. package/dist/chunks/index-Dfy1YW5j.d.ts +73 -0
  117. package/dist/chunks/index-Dh5CaHTP.d.ts +44 -0
  118. package/dist/chunks/index-DtbUXxjz.d.ts +53 -0
  119. package/dist/chunks/index-Dum6Y9XR.d.ts +187 -0
  120. package/dist/chunks/index-HrKN6s8z.d.ts +66 -0
  121. package/dist/chunks/index-JllMXhVx.d.ts +176 -0
  122. package/dist/chunks/index-XjLvaH4G.d.ts +67 -0
  123. package/dist/chunks/index-dh3TKanY.d.ts +235 -0
  124. package/dist/chunks/index-nklPDKlC.d.ts +137 -0
  125. package/dist/chunks/index-qgZ5VGmc.d.ts +177 -0
  126. package/dist/chunks/index-tOodmT36.d.ts +129 -0
  127. package/dist/chunks/index-t_x6jj7l.d.ts +96 -0
  128. package/dist/chunks/input-adorn-C_EHML68.js +1 -0
  129. package/dist/chunks/input-group-iI7azfvE.js +1 -0
  130. package/dist/chunks/list-CMr-wB9d.js +1 -0
  131. package/dist/chunks/menu-CXUc-Gva.js +1 -0
  132. package/dist/chunks/modal-ByIj71Mq.js +1 -0
  133. package/dist/chunks/nav-BldxFo_B.js +1 -0
  134. package/dist/chunks/navbar-BwcsQuBk.js +1 -0
  135. package/dist/chunks/notification-DdqigVB1.js +1 -0
  136. package/dist/chunks/otp-input-CXe_wkII.js +1 -0
  137. package/dist/chunks/overlayPlacement-B7843a-Q.d.ts +6 -0
  138. package/dist/chunks/overlayPlacement-BtS90IVf.js +1 -0
  139. package/dist/chunks/pagination-BOpEAYW2.js +1 -0
  140. package/dist/chunks/password-strength-BfLiYiGj.js +1 -0
  141. package/dist/chunks/placeholder-pg95KELl.js +1 -0
  142. package/dist/chunks/polymorphic-CACPOv1_.js +1 -0
  143. package/dist/chunks/polymorphic-CVHbTHSN.d.ts +40 -0
  144. package/dist/chunks/popover-BpSfnZzk.js +1 -0
  145. package/dist/chunks/progress-DlrZ71aV.js +1 -0
  146. package/dist/chunks/radio-BV7Sq6D1.js +1 -0
  147. package/dist/chunks/range-input-BN3430j-.js +1 -0
  148. package/dist/chunks/renderFormCheck-BXBs6_ov.js +1 -0
  149. package/dist/chunks/renderFormCheck-CYWG-Rbt.d.ts +23 -0
  150. package/dist/chunks/renderFormField-fBEny6JV.d.ts +14 -0
  151. package/dist/chunks/renderFormField-wiaxvvLG.js +1 -0
  152. package/dist/chunks/renderMenuItemContent-CmqT3YUQ.js +1 -0
  153. package/dist/chunks/select-CclIIux8.js +1 -0
  154. package/dist/chunks/skeleton-CKq76sE_.js +1 -0
  155. package/dist/chunks/spacingClassName-DVhk8m3P.js +1 -0
  156. package/dist/chunks/spinner-BEq4PAlu.js +1 -0
  157. package/dist/chunks/stack-D3retZ-W.js +1 -0
  158. package/dist/chunks/static-table-D0M4oc_t.js +1 -0
  159. package/dist/chunks/stepper-CTa6e8uv.js +1 -0
  160. package/dist/chunks/switch-BmHpq4tL.js +1 -0
  161. package/dist/chunks/table-Fme9GbAR.js +1 -0
  162. package/dist/chunks/tableClassName-CZA2Bse8.js +1 -0
  163. package/dist/chunks/tabs-BnbMJM_b.js +1 -0
  164. package/dist/chunks/text-input-DD3d08Yf.js +1 -0
  165. package/dist/chunks/textarea-C0qQdCcu.js +1 -0
  166. package/dist/chunks/toast-BQhZ2pv5.js +1 -0
  167. package/dist/chunks/tooltip-DHtVAYUo.js +1 -0
  168. package/dist/chunks/triggerElement-BIqA4KqZ.js +1 -0
  169. package/dist/chunks/types-CS_40Txv.d.ts +34 -0
  170. package/dist/chunks/useButtonSemantics-CILM_lhi.js +1 -0
  171. package/dist/chunks/useDialogElement-BRIU60cT.js +1 -0
  172. package/dist/chunks/useDisabledAnchorGuard-Cz58UCXy.js +1 -0
  173. package/dist/chunks/useFloatingOverlay-CcmDZKMK.js +1 -0
  174. package/dist/chunks/useForkedRef-DVEfT-KI.js +1 -0
  175. package/dist/chunks/useFormField-BOqmBTC4.js +1 -0
  176. package/dist/chunks/useIsomorphicLayoutEffect-BbqRwuqn.js +1 -0
  177. package/dist/chunks/useToastRegionQueue-BH6bWZ73.js +1 -0
  178. package/dist/chunks/validationClassName-gRGs4KBm.js +1 -0
  179. package/dist/close-button.d.ts +2 -0
  180. package/dist/close-button.js +1 -0
  181. package/dist/collapse.d.ts +2 -0
  182. package/dist/collapse.js +1 -0
  183. package/dist/color-input.d.ts +2 -0
  184. package/dist/color-input.js +1 -0
  185. package/dist/combobox.d.ts +3 -0
  186. package/dist/combobox.js +1 -0
  187. package/dist/datagrid.d.ts +2 -0
  188. package/dist/datagrid.js +1 -0
  189. package/dist/datepicker.d.ts +2 -0
  190. package/dist/datepicker.js +1 -0
  191. package/dist/drawer.d.ts +2 -0
  192. package/dist/drawer.js +1 -0
  193. package/dist/file-input.d.ts +2 -0
  194. package/dist/file-input.js +1 -0
  195. package/dist/flex.d.ts +2 -0
  196. package/dist/flex.js +1 -0
  197. package/dist/floating-input.d.ts +2 -0
  198. package/dist/floating-input.js +1 -0
  199. package/dist/form-field.d.ts +2 -0
  200. package/dist/form-field.js +1 -0
  201. package/dist/form.d.ts +2 -0
  202. package/dist/form.js +1 -0
  203. package/dist/grid.d.ts +2 -0
  204. package/dist/grid.js +1 -0
  205. package/dist/icon.d.ts +4 -0
  206. package/dist/icon.js +1 -0
  207. package/dist/index.d.ts +72 -6354
  208. package/dist/index.js +1 -2
  209. package/dist/input-adorn.d.ts +2 -0
  210. package/dist/input-adorn.js +1 -0
  211. package/dist/input-group.d.ts +2 -0
  212. package/dist/input-group.js +1 -0
  213. package/dist/link.d.ts +3 -0
  214. package/dist/link.js +1 -0
  215. package/dist/list.d.ts +2 -0
  216. package/dist/list.js +1 -0
  217. package/dist/menu.d.ts +3 -0
  218. package/dist/menu.js +1 -0
  219. package/dist/modal.d.ts +2 -0
  220. package/dist/modal.js +1 -0
  221. package/dist/nav.d.ts +2 -0
  222. package/dist/nav.js +1 -0
  223. package/dist/navbar.d.ts +2 -0
  224. package/dist/navbar.js +1 -0
  225. package/dist/notification.d.ts +2 -0
  226. package/dist/notification.js +1 -0
  227. package/dist/otp-input.d.ts +2 -0
  228. package/dist/otp-input.js +1 -0
  229. package/dist/pagination.d.ts +2 -0
  230. package/dist/pagination.js +1 -0
  231. package/dist/password-strength.d.ts +2 -0
  232. package/dist/password-strength.js +1 -0
  233. package/dist/placeholder.d.ts +2 -0
  234. package/dist/placeholder.js +1 -0
  235. package/dist/popover.d.ts +2 -0
  236. package/dist/popover.js +1 -0
  237. package/dist/progress.d.ts +2 -0
  238. package/dist/progress.js +1 -0
  239. package/dist/radio.d.ts +2 -0
  240. package/dist/radio.js +1 -0
  241. package/dist/range-input.d.ts +2 -0
  242. package/dist/range-input.js +1 -0
  243. package/dist/select.d.ts +2 -0
  244. package/dist/select.js +1 -0
  245. package/dist/skeleton.d.ts +2 -0
  246. package/dist/skeleton.js +1 -0
  247. package/dist/spinner.d.ts +2 -0
  248. package/dist/spinner.js +1 -0
  249. package/dist/stack.d.ts +2 -0
  250. package/dist/stack.js +1 -0
  251. package/dist/static-table.d.ts +2 -0
  252. package/dist/static-table.js +1 -0
  253. package/dist/stepper.d.ts +2 -0
  254. package/dist/stepper.js +1 -0
  255. package/dist/style.css +1 -1
  256. package/dist/switch.d.ts +2 -0
  257. package/dist/switch.js +1 -0
  258. package/dist/table.d.ts +2 -0
  259. package/dist/table.js +1 -0
  260. package/dist/tabs.d.ts +2 -0
  261. package/dist/tabs.js +1 -0
  262. package/dist/text-input.d.ts +2 -0
  263. package/dist/text-input.js +1 -0
  264. package/dist/textarea.d.ts +2 -0
  265. package/dist/textarea.js +1 -0
  266. package/dist/toast.d.ts +2 -0
  267. package/dist/toast.js +1 -0
  268. package/dist/tooltip.d.ts +2 -0
  269. package/dist/tooltip.js +1 -0
  270. package/package.json +62 -4
  271. package/src/components/accordion/index.ts +4 -0
  272. package/src/components/autocomplete/index.ts +4 -0
  273. package/src/components/avatar/index.ts +4 -0
  274. package/src/components/badge/index.ts +4 -0
  275. package/src/components/breadcrumb/index.ts +4 -0
  276. package/src/components/button/index.ts +4 -0
  277. package/src/components/button-group/index.ts +4 -0
  278. package/src/components/calendar/index.ts +4 -0
  279. package/src/components/card/index.ts +4 -0
  280. package/src/components/carousel/CarouselControlButton.tsx +11 -4
  281. package/src/components/carousel/CarouselControlNext.tsx +6 -0
  282. package/src/components/carousel/CarouselControlPrev.tsx +6 -0
  283. package/src/components/carousel/CarouselPlayPause.tsx +27 -4
  284. package/src/components/carousel/index.ts +4 -0
  285. package/src/components/checkbox/Checkbox.tsx +19 -4
  286. package/src/components/checkbox/index.ts +4 -0
  287. package/src/components/chip/index.ts +4 -0
  288. package/src/components/chip-input/index.ts +4 -0
  289. package/src/components/close-button/index.ts +4 -0
  290. package/src/components/collapse/index.ts +4 -0
  291. package/src/components/color-input/index.ts +4 -0
  292. package/src/components/combobox/ComboboxListBox.tsx +2 -2
  293. package/src/components/combobox/index.ts +4 -0
  294. package/src/components/datagrid/index.ts +4 -0
  295. package/src/components/datepicker/index.ts +4 -0
  296. package/src/components/drawer/index.ts +8 -0
  297. package/src/components/file-input/index.ts +4 -0
  298. package/src/components/flex/index.ts +4 -0
  299. package/src/components/floating-input/index.ts +4 -0
  300. package/src/components/form/index.ts +4 -0
  301. package/src/components/form-field/index.ts +4 -0
  302. package/src/components/grid/index.ts +4 -0
  303. package/src/components/icon/Icon.tsx +69 -38
  304. package/src/components/icon/IconProvider.tsx +40 -0
  305. package/src/components/icon/index.ts +7 -0
  306. package/src/components/input-adorn/index.ts +4 -0
  307. package/src/components/input-group/index.ts +4 -0
  308. package/src/components/link/index.ts +4 -0
  309. package/src/components/list/index.ts +4 -0
  310. package/src/components/menu/index.ts +4 -0
  311. package/src/components/modal/index.ts +8 -0
  312. package/src/components/nav/index.ts +4 -0
  313. package/src/components/navbar/NavbarToggler.tsx +9 -3
  314. package/src/components/navbar/index.ts +4 -0
  315. package/src/components/notification/Notification.tsx +6 -5
  316. package/src/components/notification/index.ts +8 -0
  317. package/src/components/otp-input/index.ts +4 -0
  318. package/src/components/pagination/Pagination.tsx +16 -3
  319. package/src/components/pagination/index.ts +8 -0
  320. package/src/components/password-strength/index.ts +4 -0
  321. package/src/components/placeholder/index.ts +4 -0
  322. package/src/components/popover/index.ts +4 -0
  323. package/src/components/progress/index.ts +4 -0
  324. package/src/components/radio/Radio.tsx +13 -3
  325. package/src/components/radio/index.ts +4 -0
  326. package/src/components/range-input/index.ts +4 -0
  327. package/src/components/select/index.ts +4 -0
  328. package/src/components/skeleton/SkeletonLoader.tsx +13 -6
  329. package/src/components/skeleton/index.ts +4 -0
  330. package/src/components/spinner/index.ts +4 -0
  331. package/src/components/stack/index.ts +4 -0
  332. package/src/components/static-table/StaticTable.tsx +78 -0
  333. package/src/components/static-table/index.ts +8 -0
  334. package/src/components/stepper/index.ts +4 -0
  335. package/src/components/switch/Switch.tsx +16 -3
  336. package/src/components/switch/index.ts +4 -0
  337. package/src/components/table/Table.tsx +14 -22
  338. package/src/components/table/index.ts +4 -0
  339. package/src/components/tabs/index.ts +4 -0
  340. package/src/components/text-input/index.ts +4 -0
  341. package/src/components/textarea/index.ts +4 -0
  342. package/src/components/toast/Toast.tsx +2 -1
  343. package/src/components/toast/ToastHeader.tsx +4 -3
  344. package/src/components/toast/index.ts +8 -0
  345. package/src/components/tooltip/index.ts +4 -0
  346. package/src/hooks/useIconConfig.ts +6 -0
  347. package/src/index.ts +24 -4
  348. package/src/utils/iconConfig.ts +88 -0
  349. package/src/utils/iconSlot.tsx +41 -0
  350. package/src/utils/polymorphic.ts +49 -2
  351. package/src/utils/renderMenuItemContent.tsx +4 -9
  352. package/src/utils/slot.tsx +78 -0
  353. package/src/utils/tableClassName.ts +93 -0
@@ -0,0 +1,296 @@
1
+ import "./focus-ring-SR_LwaN7.js";
2
+ import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
3
+ import { i as MenuItemsDef } from "./MenuItemDef-D0VDtYIQ.js";
4
+ import { a as Shapes, n as ContextColor, r as ContextStyle } from "./types-CS_40Txv.js";
5
+ import { t as Button } from "./Button-Cptd4Yk7.js";
6
+ import { n as LinkProps } from "./Link-B0Y1xgYi.js";
7
+ import { t as Placement } from "./overlayPlacement-B7843a-Q.js";
8
+ import React, { ButtonHTMLAttributes, ElementType, Fragment, HTMLAttributes, ReactElement, ReactNode } from "react";
9
+ import "react-aria";
10
+ //#region src/components/menu/Menu.d.ts
11
+ type MenuFocusStrategy = 'first' | 'last';
12
+ type MenuAutoClose = boolean | 'inside' | 'outside';
13
+ type MenuOwnProps<C extends ElementType> = {
14
+ /**
15
+ * Controls which clicks close the menu. `true` closes on any click inside or outside.
16
+ * `false` requires a programmatic `visible` change. `'inside'` closes only on click inside
17
+ * the menu. `'outside'` closes only on click outside the menu.
18
+ */
19
+ autoClose?: MenuAutoClose;
20
+ /**
21
+ * A string of all className you want applied to the base component.
22
+ */
23
+ className?: string;
24
+ /**
25
+ * Component used for the root node. Either a string to use a HTML element or a component.
26
+ * Defaults to `Fragment` — `MenuToggle`/`MenuList` render with no wrapping element, so
27
+ * they land as direct children of whatever contains the `Menu`. This matters inside
28
+ * `ButtonGroup`/`InputGroup`, whose CSS expects the toggle button and menu panel as direct
29
+ * children rather than nested inside an intermediate node.
30
+ *
31
+ * Pass an actual element (e.g. `"div"`, or `"li"` for a navbar item) to opt back into a
32
+ * wrapper — needed if you want to apply `className`/`style`/other rest props to a container
33
+ * around the whole menu, for semantic wrapping like a nav `<li>`, or for `reference="parent"`,
34
+ * which positions off this wrapper and has nothing to measure against without one.
35
+ */
36
+ component?: C;
37
+ /**
38
+ * Teleports the menu panel to a container element on open. Accepts an element reference, or
39
+ * `true` to append to `document.body`.
40
+ */
41
+ container?: boolean | Element;
42
+ /**
43
+ * Distance between the menu and its reference element, as `[skidding, distance]` in pixels.
44
+ */
45
+ offset?: [number, number];
46
+ /**
47
+ * Callback fired when the menu requests to be hidden.
48
+ */
49
+ onHide?: () => void;
50
+ /**
51
+ * Callback fired after the menu finishes hiding.
52
+ */
53
+ onHidden?: () => void;
54
+ /**
55
+ * Callback fired when the menu requests to be shown.
56
+ */
57
+ onShow?: () => void;
58
+ /**
59
+ * Callback fired after the menu finishes showing.
60
+ */
61
+ onShown?: () => void;
62
+ /**
63
+ * Initial placement. Chassis will flip it to keep the menu in view.
64
+ *
65
+ * @type 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'
66
+ */
67
+ placement?: Placement;
68
+ /**
69
+ * Reference element used for positioning. `'toggle'` uses the trigger. `'parent'` uses this
70
+ * component's own rendered element, useful for split buttons and button groups.
71
+ */
72
+ reference?: 'toggle' | 'parent';
73
+ /**
74
+ * Toggle the visibility of the menu component.
75
+ */
76
+ visible?: boolean;
77
+ };
78
+ type MenuProps<C extends ElementType = typeof Fragment> = PolymorphicComponentProps<C, MenuOwnProps<C>>;
79
+ type MenuComponent = (<C extends ElementType = typeof Fragment>(props: MenuProps<C> & {
80
+ ref?: PolymorphicRef<C>;
81
+ }) => ReactElement | null) & {
82
+ displayName?: string;
83
+ };
84
+ declare const Menu: MenuComponent;
85
+ //#endregion
86
+ //#region src/components/menu/MenuDivider.d.ts
87
+ interface MenuDividerProps extends HTMLAttributes<HTMLHRElement> {
88
+ /**
89
+ * A string of all className you want applied to the component.
90
+ */
91
+ className?: string;
92
+ }
93
+ declare const MenuDivider: React.ForwardRefExoticComponent<MenuDividerProps & React.RefAttributes<HTMLHRElement>>;
94
+ //#endregion
95
+ //#region src/components/menu/MenuHeader.d.ts
96
+ type MenuHeaderOwnProps<C extends ElementType> = {
97
+ /**
98
+ * A string of all className you want applied to the component.
99
+ */
100
+ className?: string;
101
+ /**
102
+ * Component used for the root node. Either a string to use a HTML element or a component.
103
+ */
104
+ component?: C;
105
+ /**
106
+ * ARIA role applied to the root node. Defaults to `'presentation'` — see the render function
107
+ * for why.
108
+ */
109
+ role?: React.AriaRole;
110
+ };
111
+ type MenuHeaderProps<C extends ElementType = 'h4'> = PolymorphicComponentProps<C, MenuHeaderOwnProps<C>>;
112
+ type MenuHeaderComponent = (<C extends ElementType = 'h4'>(props: MenuHeaderProps<C> & {
113
+ ref?: PolymorphicRef<C>;
114
+ }) => ReactElement | null) & {
115
+ displayName?: string;
116
+ };
117
+ declare const MenuHeader: MenuHeaderComponent;
118
+ //#endregion
119
+ //#region src/components/menu/MenuItem.d.ts
120
+ type MenuItemOwnProps = {
121
+ /**
122
+ * A string of all className you want applied to the component.
123
+ */
124
+ className?: string;
125
+ /**
126
+ * Secondary line of text rendered below `children` (`.menu-item-description`).
127
+ */
128
+ description?: ReactNode;
129
+ /**
130
+ * Icon rendered at the item's leading edge (`.menu-item-icon`).
131
+ */
132
+ icon?: ReactNode;
133
+ /**
134
+ * Marks the item as the current selection in a choice list. Renders in a heavier font weight.
135
+ * Combine with a manually-composed `.menu-item-check` icon (in `children`, or via `icon` on a
136
+ * plain, non-selection item) to also show a checkmark — this prop alone doesn't add one, so
137
+ * existing font-weight-only usage keeps rendering unchanged.
138
+ */
139
+ selected?: boolean;
140
+ };
141
+ type MenuItemProps<C extends ElementType = 'a'> = LinkProps<C> & MenuItemOwnProps;
142
+ type MenuItemComponent = (<C extends ElementType = 'a'>(props: MenuItemProps<C> & {
143
+ ref?: PolymorphicRef<C>;
144
+ }) => ReactElement | null) & {
145
+ displayName?: string;
146
+ };
147
+ declare const MenuItem: MenuItemComponent;
148
+ //#endregion
149
+ //#region src/components/menu/MenuList.d.ts
150
+ type MenuListOwnProps<C extends ElementType> = {
151
+ /**
152
+ * A string of all className you want applied to the base component.
153
+ */
154
+ className?: string;
155
+ /**
156
+ * Component used for the root node. Either a string to use a HTML element or a component.
157
+ */
158
+ component?: C;
159
+ /**
160
+ * Array of item/header/divider definitions for data-driven rendering. When provided, children
161
+ * are ignored. Covers flat items, headers, and dividers only — for nested submenus, compose
162
+ * with `children` and `MenuSubmenu` instead.
163
+ */
164
+ items?: MenuItemsDef;
165
+ };
166
+ type MenuListProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, MenuListOwnProps<C>>;
167
+ type MenuListComponent = (<C extends ElementType = 'div'>(props: MenuListProps<C> & {
168
+ ref?: PolymorphicRef<C>;
169
+ }) => ReactElement | null) & {
170
+ displayName?: string;
171
+ };
172
+ declare const MenuList: MenuListComponent;
173
+ //#endregion
174
+ //#region src/components/menu/MenuText.d.ts
175
+ type MenuTextOwnProps<C extends ElementType> = {
176
+ /**
177
+ * A string of all className you want applied to the component.
178
+ */
179
+ className?: string;
180
+ /**
181
+ * Component used for the root node. Either a string to use a HTML element or a component.
182
+ */
183
+ component?: C;
184
+ };
185
+ type MenuTextProps<C extends ElementType = 'span'> = PolymorphicComponentProps<C, MenuTextOwnProps<C>>;
186
+ type MenuTextComponent = (<C extends ElementType = 'span'>(props: MenuTextProps<C> & {
187
+ ref?: PolymorphicRef<C>;
188
+ }) => ReactElement | null) & {
189
+ displayName?: string;
190
+ };
191
+ declare const MenuText: MenuTextComponent;
192
+ //#endregion
193
+ //#region src/components/menu/MenuToggle.d.ts
194
+ type MenuToggleOwnProps<C extends ElementType> = {
195
+ /**
196
+ * Toggle the active state for the component.
197
+ */
198
+ active?: boolean;
199
+ /**
200
+ * A string of all className you want applied to the base component.
201
+ */
202
+ className?: string;
203
+ /**
204
+ * Sets the color of the component to one of Chassis context colors. Only applies to the
205
+ * default `Button` root.
206
+ */
207
+ color?: ContextColor;
208
+ /**
209
+ * Component used for the root node — the trigger element the menu opens from. Defaults to
210
+ * `Button`; swap for e.g. `NavLink` to render a nav-item-style trigger (`.nav-link.caret`)
211
+ * instead of a `.button.caret`. Its own props are type-checked at the call site once passed
212
+ * here.
213
+ */
214
+ component?: C;
215
+ /**
216
+ * Toggle the disabled state for the component.
217
+ */
218
+ disabled?: boolean;
219
+ /**
220
+ * The href attribute specifies the URL of the page the link goes to.
221
+ */
222
+ href?: string;
223
+ /**
224
+ * Select the shape of the component. Only applies to the default `Button` root.
225
+ */
226
+ shape?: Shapes;
227
+ /**
228
+ * Size the component sm or lg. Only applies to the default `Button` root.
229
+ */
230
+ size?: 'sm' | 'lg';
231
+ /**
232
+ * Sets the context style of the component. Only applies to the default `Button` root.
233
+ */
234
+ variant?: ContextStyle;
235
+ };
236
+ type MenuToggleProps<C extends ElementType = typeof Button> = PolymorphicComponentProps<C, MenuToggleOwnProps<C>>;
237
+ type MenuToggleComponent = (<C extends ElementType = typeof Button>(props: MenuToggleProps<C> & {
238
+ ref?: PolymorphicRef<C>;
239
+ }) => ReactElement | null) & {
240
+ displayName?: string;
241
+ };
242
+ declare const MenuToggle: MenuToggleComponent;
243
+ //#endregion
244
+ //#region src/components/menu/MenuSubmenu.d.ts
245
+ interface MenuSubmenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
246
+ /**
247
+ * MenuSubmenu activation mode on hover-capable devices. `'click'` activates on click only.
248
+ * `'hover'` activates on hover only. `'both'` (the default) activates on both. Touch
249
+ * devices always use tap regardless of this setting.
250
+ */
251
+ activation?: 'click' | 'hover' | 'both';
252
+ /**
253
+ * A string of all className you want applied to the base component.
254
+ */
255
+ className?: string;
256
+ /**
257
+ * Prevents the submenu from opening.
258
+ */
259
+ disabled?: boolean;
260
+ /**
261
+ * Distance between the nested menu and the trigger, as `[skidding, distance]` in pixels.
262
+ */
263
+ offset?: [number, number];
264
+ /**
265
+ * Placement of the nested menu relative to the trigger. Defaults to cascading in the reading
266
+ * direction — `'right-start'` under LTR locales, `'left-start'` under RTL ones (see
267
+ * `useLocale`) — matching native OS/browser submenu behavior. An explicit value always wins
268
+ * over that locale-based default.
269
+ */
270
+ placement?: Placement;
271
+ /**
272
+ * Switches to a view-replacement pattern below the `sm` breakpoint. Pair with a
273
+ * `MenuSubmenuBack` as the first item of the nested menu.
274
+ */
275
+ stacked?: boolean;
276
+ /**
277
+ * Milliseconds before closing the submenu when the pointer leaves it.
278
+ */
279
+ submenuDelay?: number;
280
+ /**
281
+ * Content of the `.menu-item` trigger that opens the submenu.
282
+ */
283
+ trigger: ReactNode;
284
+ }
285
+ declare const MenuSubmenu: React.ForwardRefExoticComponent<MenuSubmenuProps & React.RefAttributes<HTMLDivElement>>;
286
+ //#endregion
287
+ //#region src/components/menu/MenuSubmenuBack.d.ts
288
+ interface MenuSubmenuBackProps extends ButtonHTMLAttributes<HTMLButtonElement> {
289
+ /**
290
+ * A string of all className you want applied to the component.
291
+ */
292
+ className?: string;
293
+ }
294
+ declare const MenuSubmenuBack: React.ForwardRefExoticComponent<MenuSubmenuBackProps & React.RefAttributes<HTMLButtonElement>>;
295
+ //#endregion
296
+ export { Menu as _, MenuToggle as a, MenuProps as b, MenuTextProps as c, MenuItem as d, MenuItemProps as f, MenuDividerProps as g, MenuDivider as h, MenuSubmenuProps as i, MenuList as l, MenuHeaderProps as m, MenuSubmenuBackProps as n, MenuToggleProps as o, MenuHeader as p, MenuSubmenu as r, MenuText as s, MenuSubmenuBack as t, MenuListProps as u, MenuAutoClose as v, MenuFocusStrategy as y };
@@ -0,0 +1,146 @@
1
+ import "./focus-ring-SR_LwaN7.js";
2
+ import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
3
+ import React, { DetailsHTMLAttributes, ElementType, HTMLAttributes, ReactElement, ReactNode } from "react";
4
+ //#region src/components/accordion/Accordion.d.ts
5
+ interface AccordionItemDef {
6
+ /**
7
+ * Let this item stay open when another item opens, overriding the accordion's `alwaysOpen` setting.
8
+ */
9
+ alwaysOpen?: boolean;
10
+ /**
11
+ * Body content, rendered inside a `AccordionBody`.
12
+ */
13
+ body: ReactNode;
14
+ /**
15
+ * A string of all className you want applied to this item.
16
+ */
17
+ className?: string;
18
+ /**
19
+ * Header content, rendered inside a `AccordionHeader`.
20
+ */
21
+ header: ReactNode;
22
+ /**
23
+ * React key for this item. Falls back to its index when omitted.
24
+ */
25
+ id?: number | string;
26
+ /**
27
+ * The group this item shares with other items so only one can be open at a time, overriding the
28
+ * accordion's shared `name`.
29
+ */
30
+ name?: string;
31
+ /**
32
+ * Callback fired when this item's open state changes. Chained after `Accordion`'s own handling
33
+ * of `expandedKeys`/`onExpandedChange`, so it fires regardless of whether those are used.
34
+ */
35
+ onToggle?: (event: React.SyntheticEvent<HTMLDetailsElement>) => void;
36
+ /**
37
+ * Start the item in the open state (uncontrolled). Ignored for items whose key is included in
38
+ * `expandedKeys`/`defaultExpandedKeys` on the parent `Accordion`.
39
+ */
40
+ open?: boolean;
41
+ }
42
+ interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
43
+ /**
44
+ * Make accordion items stay open when another item is opened.
45
+ */
46
+ alwaysOpen?: boolean;
47
+ /**
48
+ * Move the caret icon to the end of the header.
49
+ */
50
+ caretEnd?: boolean;
51
+ /**
52
+ * A string of all className you want applied to the base component.
53
+ */
54
+ className?: string;
55
+ /**
56
+ * The keys of the initially expanded items (uncontrolled). Only applies to items rendered via
57
+ * the `items` prop — a composed `AccordionItem` already supports native controlled `open`/
58
+ * `onToggle` directly.
59
+ */
60
+ defaultExpandedKeys?: Array<number | string>;
61
+ /**
62
+ * The keys of the currently expanded items (controlled). Only applies to items rendered via the
63
+ * `items` prop — a composed `AccordionItem` already supports native controlled `open`/`onToggle`
64
+ * directly.
65
+ */
66
+ expandedKeys?: Array<number | string>;
67
+ /**
68
+ * Removes the default background-context, some borders, and some rounded corners to render accordions edge-to-edge with their parent container.
69
+ */
70
+ flush?: boolean;
71
+ /**
72
+ * Array of item definitions for data-driven rendering. When provided, children are ignored.
73
+ */
74
+ items?: AccordionItemDef[];
75
+ /**
76
+ * The shared group name used by items that don't set their own `name`. Defaults to an auto-generated id.
77
+ */
78
+ name?: string;
79
+ /**
80
+ * Callback fired with the updated set of expanded item keys, reflecting the native `<details>`
81
+ * elements' actual open state (including items the browser closed itself via a shared `name`
82
+ * group). Only fires for items rendered via the `items` prop.
83
+ */
84
+ onExpandedChange?: (keys: Array<number | string>) => void;
85
+ /**
86
+ * Size the component sm or lg.
87
+ */
88
+ size?: 'sm' | 'lg';
89
+ }
90
+ declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
91
+ //#endregion
92
+ //#region src/components/accordion/AccordionBody.d.ts
93
+ type AccordionBodyOwnProps<C extends ElementType> = {
94
+ /**
95
+ * A string of all className you want applied to the base component.
96
+ */
97
+ className?: string;
98
+ /**
99
+ * Component used for the root node. Either a string to use a HTML element or a component.
100
+ */
101
+ component?: C;
102
+ };
103
+ type AccordionBodyProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, AccordionBodyOwnProps<C>>;
104
+ type AccordionBodyComponent = (<C extends ElementType = 'div'>(props: AccordionBodyProps<C> & {
105
+ ref?: PolymorphicRef<C>;
106
+ }) => ReactElement | null) & {
107
+ displayName?: string;
108
+ };
109
+ declare const AccordionBody: AccordionBodyComponent;
110
+ //#endregion
111
+ //#region src/components/accordion/AccordionHeader.d.ts
112
+ interface AccordionHeaderProps extends HTMLAttributes<HTMLElement> {
113
+ /**
114
+ * A string of all className you want applied to the base component.
115
+ */
116
+ className?: string;
117
+ }
118
+ declare const AccordionHeader: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLElement>>;
119
+ //#endregion
120
+ //#region src/components/accordion/AccordionItem.d.ts
121
+ interface AccordionItemProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
122
+ /**
123
+ * Let this item stay open when another item opens, overriding the accordion's `alwaysOpen` setting.
124
+ */
125
+ alwaysOpen?: boolean;
126
+ /**
127
+ * A string of all className you want applied to the base component.
128
+ */
129
+ className?: string;
130
+ /**
131
+ * The group this item shares with other items so only one can be open at a time, overriding the
132
+ * accordion's shared `name`.
133
+ */
134
+ name?: string;
135
+ /**
136
+ * Start the item in the open state.
137
+ */
138
+ open?: boolean;
139
+ /**
140
+ * @deprecated No longer used. The native details element manages its own state.
141
+ */
142
+ itemKey?: number | string;
143
+ }
144
+ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDetailsElement>>;
145
+ //#endregion
146
+ export { AccordionBody as a, AccordionItemDef as c, AccordionHeaderProps as i, AccordionProps as l, AccordionItemProps as n, AccordionBodyProps as o, AccordionHeader as r, Accordion as s, AccordionItem as t };
@@ -0,0 +1,68 @@
1
+ import "./focus-ring-SR_LwaN7.js";
2
+ import React, { ReactNode, TextareaHTMLAttributes } from "react";
3
+ //#region src/components/textarea/Textarea.d.ts
4
+ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'defaultValue' | 'onChange' | 'value'> {
5
+ /**
6
+ * A string of all className you want applied to the component.
7
+ */
8
+ className?: string;
9
+ /**
10
+ * The value of the textarea, uncontrolled.
11
+ */
12
+ defaultValue?: string;
13
+ /**
14
+ * Toggle the disabled state for the component.
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * A description for the field, rendered below the textarea.
19
+ */
20
+ help?: ReactNode;
21
+ /**
22
+ * Set component validation state to invalid.
23
+ */
24
+ invalid?: boolean;
25
+ /**
26
+ * An error message for the field, rendered below the textarea when `invalid` is set.
27
+ */
28
+ invalidFeedback?: ReactNode;
29
+ /**
30
+ * The field's caption, rendered as a `FormLabel` associated with this textarea.
31
+ */
32
+ label?: ReactNode;
33
+ /**
34
+ * Handler that is called when the value changes.
35
+ */
36
+ onChange?: (value: string) => void;
37
+ /**
38
+ * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`.
39
+ */
40
+ plainText?: boolean;
41
+ /**
42
+ * Toggle the readonly state for the component.
43
+ */
44
+ readOnly?: boolean;
45
+ /**
46
+ * The number of visible text lines for the control.
47
+ */
48
+ rows?: number;
49
+ /**
50
+ * Size the component sm or lg.
51
+ */
52
+ size?: 'sm' | 'lg';
53
+ /**
54
+ * Set component validation state to valid.
55
+ */
56
+ valid?: boolean;
57
+ /**
58
+ * A success message for the field, rendered below the textarea when `valid` is set.
59
+ */
60
+ validFeedback?: ReactNode;
61
+ /**
62
+ * The value of the textarea, controlled.
63
+ */
64
+ value?: string;
65
+ }
66
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
67
+ //#endregion
68
+ export { TextareaProps as n, Textarea as t };
@@ -0,0 +1,73 @@
1
+ import { n as ContextColor, t as Breakpoint } from "./types-CS_40Txv.js";
2
+ import React, { ReactNode, TableHTMLAttributes } from "react";
3
+ //#region src/utils/tableClassName.d.ts
4
+ interface TableStyleProps {
5
+ /**
6
+ * Set the vertical alignment of cell content.
7
+ */
8
+ align?: 'bottom' | 'middle' | 'top';
9
+ /**
10
+ * Add borders on all sides of the table and cells.
11
+ */
12
+ bordered?: boolean;
13
+ /**
14
+ * Remove borders on all sides of the table and cells.
15
+ */
16
+ borderless?: boolean;
17
+ /**
18
+ * A string of all className you want applied to the component.
19
+ */
20
+ className?: string;
21
+ /**
22
+ * Sets the color of the component.
23
+ */
24
+ color?: ContextColor;
25
+ /**
26
+ * Enable a hover state on table rows.
27
+ */
28
+ hover?: boolean;
29
+ /**
30
+ * Make any table responsive across all viewports or pick a maximum breakpoint.
31
+ */
32
+ responsive?: boolean | Breakpoint;
33
+ /**
34
+ * Make table more compact by cutting all cell padding.
35
+ */
36
+ sm?: boolean;
37
+ /**
38
+ * Convert rows into stacked label/value blocks below a container width, for tables with too
39
+ * many columns to read comfortably even with horizontal scrolling. `true` always stacks; a
40
+ * breakpoint name stacks only below it. Implies `responsive` when `responsive` isn't set
41
+ * separately, since stacking needs the same `.table-responsive` container-query ancestor.
42
+ */
43
+ stacked?: boolean | Breakpoint;
44
+ /**
45
+ * Add zebra-striping to table rows.
46
+ */
47
+ striped?: boolean;
48
+ }
49
+ //#endregion
50
+ //#region src/components/static-table/StaticTable.d.ts
51
+ interface StaticTableProps extends TableStyleProps, Omit<TableHTMLAttributes<HTMLTableElement>, 'align' | 'color'> {
52
+ /**
53
+ * Content shown above the table, functioning as a heading for it.
54
+ */
55
+ caption?: ReactNode;
56
+ /**
57
+ * The table's own markup — plain `<thead>`/`<tbody>`/`<tfoot>`/`<tr>`/`<th>`/`<td>` elements,
58
+ * rendered as-is.
59
+ */
60
+ children?: ReactNode;
61
+ /**
62
+ * Convert rows into stacked label/value blocks below a container width, for tables with too
63
+ * many columns to read comfortably even with horizontal scrolling. `true` always stacks; a
64
+ * breakpoint name stacks only below it. Implies `responsive` when `responsive` isn't set
65
+ * separately. Unlike `Table`, which derives each cell's label from its column header, a static
66
+ * table has no collection to read labels from — give each `<td>` a `data-cell` attribute with
67
+ * the label to show before its value.
68
+ */
69
+ stacked?: TableStyleProps['stacked'];
70
+ }
71
+ declare const StaticTable: React.ForwardRefExoticComponent<StaticTableProps & React.RefAttributes<HTMLTableElement>>;
72
+ //#endregion
73
+ export { StaticTableProps as n, StaticTable as t };
@@ -0,0 +1,44 @@
1
+ import "./focus-ring-SR_LwaN7.js";
2
+ import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
3
+ import { n as ContextColor, o as Sizing, r as ContextStyle } from "./types-CS_40Txv.js";
4
+ import { ElementType, ReactElement } from "react";
5
+ //#region src/components/badge/Badge.d.ts
6
+ type BadgeOwnProps<C extends ElementType> = {
7
+ /**
8
+ * A string of all className you want applied to the component.
9
+ */
10
+ className?: string;
11
+ /**
12
+ * Sets the color of the component to one of Chassis context colors.
13
+ */
14
+ color?: ContextColor;
15
+ /**
16
+ * Sets the context style of the component. `solid`/`basic` render the default look with no extra class.
17
+ */
18
+ variant?: ContextStyle;
19
+ /**
20
+ * Component used for the root node. Either a string to use a HTML element or a component.
21
+ */
22
+ component?: C;
23
+ /**
24
+ * Position badge in one of the corners of a link or button.
25
+ */
26
+ position?: 'top-start' | 'top-end' | 'bottom-end' | 'bottom-start';
27
+ /**
28
+ * Select the shape of the component.
29
+ */
30
+ circle?: boolean;
31
+ /**
32
+ * Sets the size of the component to one of Chassis component sizes.
33
+ */
34
+ size?: Sizing;
35
+ };
36
+ type BadgeProps<C extends ElementType = 'span'> = PolymorphicComponentProps<C, BadgeOwnProps<C>>;
37
+ type BadgeComponent = (<C extends ElementType = 'span'>(props: BadgeProps<C> & {
38
+ ref?: PolymorphicRef<C>;
39
+ }) => ReactElement | null) & {
40
+ displayName?: string;
41
+ };
42
+ declare const Badge: BadgeComponent;
43
+ //#endregion
44
+ export { BadgeProps as n, Badge as t };
@@ -0,0 +1,53 @@
1
+ import "./focus-ring-SR_LwaN7.js";
2
+ import React, { HTMLAttributes } from "react";
3
+ //#region src/components/breadcrumb/Breadcrumb.d.ts
4
+ interface BreadcrumbItemDef {
5
+ /**
6
+ * Label for the breadcrumb item.
7
+ */
8
+ label: React.ReactNode;
9
+ /**
10
+ * URL for the breadcrumb link. The last item in the array is always rendered as active (no link needed).
11
+ */
12
+ href?: string;
13
+ }
14
+ interface BreadcrumbProps extends HTMLAttributes<HTMLOListElement> {
15
+ /**
16
+ * Accessible name of the wrapping `<nav>` landmark. Defaults to the English `'breadcrumb'`;
17
+ * override it to translate the landmark, or to tell two breadcrumb trails on the same page
18
+ * apart (landmarks of the same role need distinct names to be distinguishable in a screen
19
+ * reader's landmark list).
20
+ *
21
+ * @default 'breadcrumb'
22
+ */
23
+ 'aria-label'?: string;
24
+ /**
25
+ * A string of all className you want applied to the component.
26
+ */
27
+ className?: string;
28
+ /**
29
+ * Array of breadcrumb items for data-driven rendering. The last item is automatically marked active.
30
+ * When provided, children are ignored.
31
+ */
32
+ items?: BreadcrumbItemDef[];
33
+ }
34
+ declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLOListElement>>;
35
+ //#endregion
36
+ //#region src/components/breadcrumb/BreadcrumbItem.d.ts
37
+ interface BreadcrumbItemProps extends HTMLAttributes<HTMLLIElement> {
38
+ /**
39
+ * Toggle the active state for the component.
40
+ */
41
+ active?: boolean;
42
+ /**
43
+ * A string of all className you want applied to the base component.
44
+ */
45
+ className?: string;
46
+ /**
47
+ * The `href` attribute for the inner `<Link>` component.
48
+ */
49
+ href?: string;
50
+ }
51
+ declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
52
+ //#endregion
53
+ export { BreadcrumbProps as a, BreadcrumbItemDef as i, BreadcrumbItemProps as n, Breadcrumb as r, BreadcrumbItem as t };