@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,2 @@
1
+ import { a as AccordionBody, c as AccordionItemDef, i as AccordionHeaderProps, l as AccordionProps, n as AccordionItemProps, o as AccordionBodyProps, r as AccordionHeader, s as Accordion, t as AccordionItem } from "./chunks/index-Dcc_W6Kv.js";
2
+ export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps };
@@ -0,0 +1 @@
1
+ "use client";import{i as e,n as t,r as n,t as r}from"./chunks/accordion-okRicuG5.js";export{r as Accordion,e as AccordionBody,n as AccordionHeader,t as AccordionItem};
@@ -0,0 +1,2 @@
1
+ import { a as Autocomplete, i as AutocompleteGroupProps, n as AutocompleteItemProps, o as AutocompleteProps, r as AutocompleteGroup, t as AutocompleteItem } from "./chunks/index-tOodmT36.js";
2
+ export { Autocomplete, AutocompleteGroup, type AutocompleteGroupProps, AutocompleteItem, type AutocompleteItemProps, type AutocompleteProps };
@@ -0,0 +1 @@
1
+ "use client";import{n as e,r as t,t as n}from"./chunks/autocomplete-B0xTc6kg.js";export{n as Autocomplete,t as AutocompleteGroup,e as AutocompleteItem};
@@ -0,0 +1,2 @@
1
+ import { a as AvatarImageProps, i as AvatarImage, n as AvatarStackItemDef, o as Avatar, r as AvatarStackProps, s as AvatarProps, t as AvatarStack } from "./chunks/index-D9PZHY_I.js";
2
+ export { Avatar, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarStack, type AvatarStackItemDef, type AvatarStackProps };
package/dist/avatar.js ADDED
@@ -0,0 +1 @@
1
+ "use client";import{n as e,r as t,t as n}from"./chunks/avatar-Bjm0DlPO.js";export{e as Avatar,t as AvatarImage,n as AvatarStack};
@@ -0,0 +1,2 @@
1
+ import { n as BadgeProps, t as Badge } from "./chunks/index-Dh5CaHTP.js";
2
+ export { Badge, type BadgeProps };
package/dist/badge.js ADDED
@@ -0,0 +1 @@
1
+ "use client";import{t as e}from"./chunks/badge-Bj8mf8lu.js";export{e as Badge};
@@ -0,0 +1,2 @@
1
+ import { a as BreadcrumbProps, i as BreadcrumbItemDef, n as BreadcrumbItemProps, r as Breadcrumb, t as BreadcrumbItem } from "./chunks/index-DtbUXxjz.js";
2
+ export { Breadcrumb, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps };
@@ -0,0 +1 @@
1
+ "use client";import{n as e,t}from"./chunks/breadcrumb-DDxnx_iS.js";export{t as Breadcrumb,e as BreadcrumbItem};
@@ -0,0 +1,2 @@
1
+ import { i as ButtonGroupProps, n as ButtonToolbarProps, r as ButtonGroup, t as ButtonToolbar } from "./chunks/index-C61tPIJ-.js";
2
+ export { ButtonGroup, type ButtonGroupProps, ButtonToolbar, type ButtonToolbarProps };
@@ -0,0 +1 @@
1
+ "use client";import{n as e,t}from"./chunks/button-group-CPZYA6aZ.js";export{e as ButtonGroup,t as ButtonToolbar};
@@ -0,0 +1,3 @@
1
+ import "./chunks/focus-ring-SR_LwaN7.js";
2
+ import { n as ButtonProps, t as Button } from "./chunks/Button-Cptd4Yk7.js";
3
+ export { Button, type ButtonProps };
package/dist/button.js ADDED
@@ -0,0 +1 @@
1
+ "use client";import"./chunks/focus-ring-SR_LwaN7.js";import{t as e}from"./chunks/Button-I0aUy5h-.js";export{e as Button};
@@ -0,0 +1,3 @@
1
+ import { n as CalendarLabels, t as DateRangePreset } from "./chunks/dateRangePresets-R1FtA1zp.js";
2
+ import { a as CalendarProps, i as CalendarMultipleProps, n as RangeCalendarProps, o as CalendarSingleProps, r as Calendar, t as RangeCalendar } from "./chunks/index-DB_ToPdz.js";
3
+ export { Calendar, type CalendarLabels, type CalendarMultipleProps, type CalendarProps, type CalendarSingleProps, type DateRangePreset, RangeCalendar, type RangeCalendarProps };
@@ -0,0 +1 @@
1
+ "use client";import"./chunks/focus-ring-SR_LwaN7.js";import{n as e,t}from"./chunks/RangeCalendar-COnSfurr.js";export{e as Calendar,t as RangeCalendar};
package/dist/card.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { S as CardProps, _ as CardFooter, a as CardSubtitle, b as CardBodyProps, c as CardLinkProps, d as CardImage, f as CardImageProps, g as CardGroupProps, h as CardGroup, i as CardTextProps, l as CardImageOverlay, m as CardHeaderProps, n as CardTitleProps, o as CardSubtitleProps, p as CardHeader, r as CardText, s as CardLink, t as CardTitle, u as CardImageOverlayProps, v as CardFooterProps, x as Card, y as CardBody } from "./chunks/index-ClT3E_hv.js";
2
+ export { Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardGroup, type CardGroupProps, CardHeader, type CardHeaderProps, CardImage, CardImageOverlay, type CardImageOverlayProps, type CardImageProps, CardLink, type CardLinkProps, type CardProps, CardSubtitle, type CardSubtitleProps, CardText, type CardTextProps, CardTitle, type CardTitleProps };
package/dist/card.js ADDED
@@ -0,0 +1 @@
1
+ "use client";import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./chunks/card-DfF2K_5p.js";export{e as Card,n as CardBody,u as CardFooter,r as CardGroup,s as CardHeader,i as CardImage,a as CardImageOverlay,l as CardLink,t as CardSubtitle,c as CardText,o as CardTitle};
@@ -0,0 +1,2 @@
1
+ import { _ as CarouselSlideDetail, a as CarouselItem, c as CarouselInnerProps, d as CarouselControlPrev, f as CarouselControlPrevProps, g as CarouselProps, h as Carousel, i as CarouselOverlayProps, l as CarouselIndicators, m as CarouselControlNextProps, n as CarouselPlayPauseProps, o as CarouselItemProps, p as CarouselControlNext, r as CarouselOverlay, s as CarouselInner, t as CarouselPlayPause, u as CarouselIndicatorsProps, v as CarouselTransition, y as CarouselEnds } from "./chunks/index-dh3TKanY.js";
2
+ export { Carousel, CarouselControlNext, type CarouselControlNextProps, CarouselControlPrev, type CarouselControlPrevProps, type CarouselEnds, CarouselIndicators, type CarouselIndicatorsProps, CarouselInner, type CarouselInnerProps, CarouselItem, type CarouselItemProps, CarouselOverlay, type CarouselOverlayProps, CarouselPlayPause, type CarouselPlayPauseProps, type CarouselProps, type CarouselSlideDetail, type CarouselTransition };
@@ -0,0 +1 @@
1
+ "use client";import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./chunks/carousel-DEvwcA7H.js";export{t as Carousel,o as CarouselControlNext,i as CarouselControlPrev,e as CarouselIndicators,n as CarouselInner,a as CarouselItem,r as CarouselOverlay,s as CarouselPlayPause};
@@ -0,0 +1,3 @@
1
+ import { t as ButtonObject } from "./chunks/renderFormCheck-CYWG-Rbt.js";
2
+ import { i as CheckboxProps, n as CheckboxGroupProps, r as Checkbox, t as CheckboxGroup } from "./chunks/index-DJJocp_q.js";
3
+ export { type ButtonObject, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps };
@@ -0,0 +1 @@
1
+ "use client";import{n as e,t}from"./chunks/checkbox-BFPS0pD6.js";export{e as Checkbox,t as CheckboxGroup};
@@ -0,0 +1,2 @@
1
+ import { n as ChipInputProps, t as ChipInput } from "./chunks/index-B8uaSJA9.js";
2
+ export { ChipInput, type ChipInputProps };
@@ -0,0 +1 @@
1
+ "use client";import{t as e}from"./chunks/chip-input-CB1lE6vP.js";export{e as ChipInput};
package/dist/chip.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { n as ChipProps, t as Chip } from "./chunks/index-COsIPd8L.js";
2
+ export { Chip, type ChipProps };
package/dist/chip.js ADDED
@@ -0,0 +1 @@
1
+ "use client";import"./chunks/focus-ring-SR_LwaN7.js";import{t as e}from"./chunks/Chip-D0Cw0mAr.js";export{e as Chip};
@@ -0,0 +1,65 @@
1
+ import { r as PolymorphicRefWithFallback, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
2
+ import { a as Shapes, n as ContextColor, r as ContextStyle } from "./types-CS_40Txv.js";
3
+ import { ElementType, MouseEventHandler, ReactElement } from "react";
4
+ //#region src/components/button/Button.d.ts
5
+ type ButtonOwnProps<C extends ElementType> = {
6
+ /**
7
+ * A string of all className you want applied to the base component.
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Sets the color of the component to one of Chassis context colors.
12
+ */
13
+ color?: ContextColor;
14
+ /**
15
+ * Component used for the root node. Either a string to use a HTML element or a component.
16
+ */
17
+ component?: C;
18
+ /**
19
+ * Toggle the disabled state for the component.
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * The href attribute specifies the URL of the page the link goes to.
24
+ */
25
+ href?: string;
26
+ /**
27
+ * Fires on click. Typed for every element `component` can actually render (`button`, `a`,
28
+ * `input`, or a custom component), rather than narrowed to `HTMLButtonElement` alone.
29
+ */
30
+ onClick?: MouseEventHandler<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>;
31
+ /**
32
+ * Marks the button as pressed for toggle-style usage (e.g. a formatting toolbar button).
33
+ * Applies the `.active` class and sets `aria-pressed` so assistive technology announces
34
+ * "button, pressed" rather than treating the button as a navigation link.
35
+ */
36
+ pressed?: boolean;
37
+ /**
38
+ * Select the shape of the component.
39
+ */
40
+ shape?: Shapes;
41
+ /**
42
+ * Size the component sm or lg.
43
+ */
44
+ size?: 'sm' | 'lg';
45
+ /**
46
+ * Specifies the type of button. Always specify the type attribute for the `<button>` element.
47
+ * Different browsers may use different default types for the `<button>` element.
48
+ */
49
+ type?: 'button' | 'submit' | 'reset';
50
+ /**
51
+ * Set the button style variant. Same as `ContextStyle`, but `solid` (the unmodified default
52
+ * look) doesn't apply as a class, and `link` — button-specific, not a context color — makes
53
+ * the button look and behave like a hyperlink while keeping its `color`.
54
+ */
55
+ variant?: Exclude<ContextStyle, 'solid'> | 'link';
56
+ };
57
+ type ButtonProps<C extends ElementType = 'button'> = PolymorphicComponentProps<C, ButtonOwnProps<C>>;
58
+ type ButtonComponent = (<C extends ElementType = 'button'>(props: ButtonProps<C> & {
59
+ ref?: PolymorphicRefWithFallback<C, HTMLButtonElement | HTMLAnchorElement>;
60
+ }) => ReactElement | null) & {
61
+ displayName?: string;
62
+ };
63
+ declare const Button: ButtonComponent;
64
+ //#endregion
65
+ export { ButtonProps as n, Button as t };
@@ -0,0 +1 @@
1
+ import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useButtonSemantics-CILM_lhi.js";import{t as n}from"./useDisabledAnchorGuard-Cz58UCXy.js";import r from"react";import i from"classnames";import{mergeProps as a}from"react-aria";function o({children:e,className:o,color:s=`primary`,component:c,disabled:l,href:u,onClick:d,pressed:f,shape:p,size:m,type:h=`button`,variant:g,..._},v){let y=c??(u?`a`:`button`),b=y===`a`,x=typeof y!=`string`,S=i(`button`,s,{outline:g===`outline`,smooth:g===`smooth`,link:g===`link`,active:f,disabled:y!==`button`&&l},m,p,o),C=n(b,l,d),{buttonProps:w,forkedRef:T}=t(v,{disabled:l,onClick:d}),E={className:S,"aria-pressed":f,onClick:C};return y===`button`?r.createElement(`button`,{..._,...E,type:h,disabled:l,ref:v},e):y===`input`?r.createElement(`input`,{..._,...E,type:h,disabled:l,ref:v}):b?r.createElement(`a`,{..._,...E,href:u,...l&&{"aria-disabled":!0,tabIndex:-1},ref:v},e):r.createElement(y,{...x?{disabled:l,onClick:d,..._}:a(_,w),className:S,"aria-pressed":f,...u&&{href:u},ref:x?v:T},e)}const s=e(o,`Button`);export{s as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useButtonSemantics-CILM_lhi.js";import{t as n}from"./useDisabledAnchorGuard-Cz58UCXy.js";import r from"react";import i from"classnames";import{mergeProps as a}from"react-aria";function o({children:e,className:o,color:s,component:c,disabled:l,href:u,onClick:d,pressed:f,size:p,type:m=`button`,variant:h,...g},_){let v=c??(u?`a`:`span`),y=v===`button`,b=v===`a`,x=i(`chip`,s,p,{outline:h===`outline`,smooth:h===`smooth`,active:f,disabled:!y&&l},o),S=n(!y,l,d),C=g.role!==void 0,w=!y&&!b&&!!d&&!C,{buttonProps:T,forkedRef:E}=t(_,{disabled:l,onClick:d});return y?r.createElement(`button`,{...g,"aria-pressed":f,className:x,disabled:l,onClick:S,ref:_,type:m},e):b?r.createElement(`a`,{...g,"aria-pressed":f,className:x,href:u,onClick:S,...l&&{"aria-disabled":!0,tabIndex:-1},ref:_},e):r.createElement(v,{...a(g,w?T:{}),"aria-pressed":f,className:x,...!w&&{onClick:S},...l&&{"aria-disabled":!0},...u&&{href:u},ref:w?E:_},e)}const s=e(o,`Chip`);export{s as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useButtonSemantics-CILM_lhi.js";import{t as n}from"./useDisabledAnchorGuard-Cz58UCXy.js";import r from"react";import i from"classnames";import{mergeProps as a}from"react-aria";function o({children:e,className:o,color:s,component:c,disabled:l,href:u,label:d,onClick:f,size:p,type:m=`button`,variant:h,...g},_){let v=c??`button`,y=typeof v!=`string`,b=y?o:i(`close-button`,{context:s||h,disabled:v!==`button`&&l},s,h,p,o),x=d??(e==null?`Close`:void 0),S=n(v===`a`,l,f),{buttonProps:C,forkedRef:w}=t(_,{disabled:l,onClick:f});if(v===`button`)return r.createElement(`button`,{className:b,"aria-label":x,...g,type:m,disabled:l,onClick:S,ref:_},e);if(v===`a`)return r.createElement(`a`,{className:b,"aria-label":x,...g,href:u,onClick:S,...l&&{"aria-disabled":!0,tabIndex:-1},ref:_},e);let T=v;return r.createElement(T,{className:b,"aria-label":x,...y?{color:s,size:p,variant:h,disabled:l,onClick:f,...g}:a(g,C),ref:y?_:w},e)}const s=e(o,`CloseButton`);export{s as t};
@@ -0,0 +1,54 @@
1
+ import { ReactNode } from "react";
2
+ import { Key as Key$1 } from "react-stately";
3
+ //#region src/components/combobox/ComboboxGroup.d.ts
4
+ interface ComboboxGroupProps {
5
+ /**
6
+ * Items belonging to this group.
7
+ */
8
+ children: ReactNode;
9
+ /**
10
+ * Header content for the group (`.menu-header`).
11
+ */
12
+ label: ReactNode;
13
+ }
14
+ declare const ComboboxGroup: {
15
+ (_props: ComboboxGroupProps): null;
16
+ displayName: string;
17
+ };
18
+ //#endregion
19
+ //#region src/components/combobox/ComboboxItem.d.ts
20
+ interface ComboboxItemProps {
21
+ /**
22
+ * Content of the option. Used as the filter/typeahead text when `textValue` isn't set — pass
23
+ * `textValue` explicitly whenever `children` isn't a plain string (e.g. it wraps an icon or
24
+ * other rich markup), since it can't otherwise be derived from rich content.
25
+ */
26
+ children: ReactNode;
27
+ /**
28
+ * Secondary line of text rendered below `children` (`.menu-item-description`).
29
+ */
30
+ description?: ReactNode;
31
+ /**
32
+ * Prevents the option from being selected, focused, or otherwise interacted with.
33
+ */
34
+ disabled?: boolean;
35
+ /**
36
+ * Icon rendered at the option's leading edge (`.menu-item-icon`).
37
+ */
38
+ icon?: ReactNode;
39
+ /**
40
+ * Identifies this option. Submitted as the value when this option is selected.
41
+ */
42
+ id: Key$1;
43
+ /**
44
+ * Text used for filtering and typeahead. Required when `children` isn't a plain string —
45
+ * falls back to `children` itself when omitted and `children` is a string.
46
+ */
47
+ textValue?: string;
48
+ }
49
+ declare const ComboboxItem: {
50
+ (_props: ComboboxItemProps): null;
51
+ displayName: string;
52
+ };
53
+ //#endregion
54
+ export { ComboboxGroupProps as i, ComboboxItemProps as n, ComboboxGroup as r, ComboboxItem as t };
@@ -0,0 +1 @@
1
+ import{t as e}from"./iconSlot-BmWxJh27.js";import{t}from"./renderMenuItemContent-CmqT3YUQ.js";import n,{useRef as r}from"react";import i from"classnames";import{useListBox as a,useOption as o}from"react-aria";import{Item as s,Section as c}from"react-stately";const l=e=>null;l.displayName=`ComboboxItem`;const u=e=>e.entryType===`group`,d=(e,{Group:t,Item:r})=>{let i=[];return n.Children.forEach(e,(e,a)=>{if(n.isValidElement(e)){if(e.type===t){let t=e.props,o=[];n.Children.forEach(t.children,e=>{n.isValidElement(e)&&e.type===r&&o.push(e)}),i.push({entryType:`group`,key:`group-${a}`,label:t.label,items:o});return}e.type===r&&i.push(e)}}),i},f=e=>{let t=[],r=null;return e.forEach(e=>{if(e.type===`divider`)return;if(e.type===`header`){r={entryType:`group`,key:e.id,label:e.label,items:[]},t.push(r);return}let i=n.createElement(l,{key:e.id,id:e.id,disabled:e.disabled,icon:e.icon,description:e.description,textValue:e.textValue},e.label);r?r.items.push(i):t.push(i)}),t},p=e=>e.reduce((e,t)=>{let n=u(t)?t.items:[t];return e.concat(n.filter(e=>e.props.disabled).map(e=>e.props.id))},[]),m=e=>n.createElement(s,{key:e.props.id,textValue:e.props.textValue??(typeof e.props.children==`string`?e.props.children:void 0)},t({icon:e.props.icon,label:e.props.children,description:e.props.description})),h=e=>u(e)?n.createElement(c,{key:e.key,title:e.label,items:e.items},m):m(e),g={"--cx-icon-color":`var(--cx-item-hover-icon-color)`,"--cx-item-fg-color":`var(--cx-item-hover-fg-color)`,"--cx-item-bg-color":`var(--cx-item-hover-bg-color)`},_=e=>e?g:void 0,v=({listBoxProps:e,listBoxRef:t,state:r})=>{let{listBoxProps:i}=a(e,r,t);return n.createElement(`div`,{...i,ref:t},[...r.collection].map(e=>e.type===`section`?n.createElement(y,{key:e.key,node:e,state:r}):n.createElement(b,{key:e.key,item:e,state:r})))},y=({node:e,state:t})=>{let r=[...t.collection.getChildren(e.key)];return r.length===0?null:n.createElement(n.Fragment,null,n.createElement(`div`,{className:`menu-header`,role:`presentation`},e.rendered),r.map(e=>n.createElement(b,{key:e.key,item:e,state:t})))},b=({item:t,state:a})=>{let s=r(null),{optionProps:c,isSelected:l,isDisabled:u,isFocused:d}=o({key:t.key},a,s);return n.createElement(`div`,{className:i(`menu-item`,{selected:l,disabled:u}),style:_(d),...c,ref:s},t.rendered,l&&n.createElement(e,{icon:`check`,className:`menu-item-check`}))};export{p as a,h as i,d as n,l as o,f as r,v as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";function r({children:e,className:r,component:i,invalid:a,tooltip:o,valid:s,...c},l){let u=i??`div`,d=n({[`invalid-${o?`tooltip`:`feedback`}`]:a,[`valid-${o?`tooltip`:`feedback`}`]:s},r);return t.createElement(u,{className:d,...c,ref:l},e)}const i=e(r,`FormFeedback`);function a({children:e,className:r,component:i,...a},o){let s=i??`div`,c=n(`form-help`,r);return t.createElement(s,{className:c,...a,ref:o},e)}const o=e(a,`FormHelp`);export{i as n,o as t};
@@ -0,0 +1 @@
1
+ import e,{forwardRef as t}from"react";import n from"classnames";const r=t(({children:t,className:r,customClassName:i,...a},o)=>{let s=i||n(`form-label`,r);return e.createElement(`label`,{className:s,...a,ref:o},t)});r.displayName=`FormLabel`;export{r as t};
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r}from"react";import i from"classnames";const a={check:`check-solid`,previous:`chevron-left-outline`,next:`chevron-right-outline`,menu:`bars-outline`,play:`play-solid`,pause:`pause-solid`},o=t({}),s=()=>r(o),c=n((t,n)=>{let r=s(),{name:a,className:o,font:c=r.font??!1,size:l,sprite:u=r.sprite??``,style:d,title:f,...p}=t,m=l==null?d:{"--cx-icon-size":typeof l==`number`?`${l}px`:l,...d},h=i(`icon`,{[`${r.fontPrefix??`cx-`}${a}`]:c},r.className,o);return c?e.createElement(`span`,{className:h,role:f?`img`:void 0,"aria-hidden":!f||void 0,"aria-label":f,style:m,ref:n,...p}):e.createElement(`svg`,{className:h,width:l??24,height:l??24,role:f?`img`:void 0,"aria-hidden":!f||void 0,style:m,ref:n,...p},f&&e.createElement(`title`,null,f),e.createElement(`use`,{href:`${u}#${a}`}))});c.displayName=`Icon`;export{o as i,s as n,a as r,c as t};
@@ -0,0 +1,36 @@
1
+ import React, { HTMLAttributes, SVGAttributes } from "react";
2
+ //#region src/components/icon/Icon.d.ts
3
+ interface IconOwnProps {
4
+ /**
5
+ * Icon name, e.g. `folder-tree`. Matches an id in the SVG sprite, or a `cx-{name}` font glyph
6
+ * class in `font` mode (see `IconProvider`'s `fontPrefix`).
7
+ */
8
+ name: string;
9
+ /**
10
+ * A string of all className you want applied to the component.
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Icon size: a number of pixels, or any CSS length (`'1.25rem'`, `'1em'`). Sets chassis-css's
15
+ * `--cx-icon-size` on the icon, so it applies in `font` mode too. Leave unset to keep the size
16
+ * chassis-css gives icons in context (inside a button, an input, a navbar toggler, ...).
17
+ */
18
+ size?: number | string;
19
+ /**
20
+ * Accessible name. When set, the icon is exposed to assistive tech instead of hidden.
21
+ */
22
+ title?: string;
23
+ /**
24
+ * URL of the SVG sprite file. Defaults to `IconProvider`'s `sprite`, or to none — a sprite
25
+ * embedded in the page, referenced as `#name`. Ignored in `font` mode.
26
+ */
27
+ sprite?: string;
28
+ }
29
+ type IconProps = (IconOwnProps & {
30
+ font: true;
31
+ } & Omit<HTMLAttributes<HTMLSpanElement>, keyof IconOwnProps>) | (IconOwnProps & {
32
+ font?: false;
33
+ } & Omit<SVGAttributes<SVGSVGElement>, keyof IconOwnProps>);
34
+ declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
35
+ //#endregion
36
+ export { IconProps as n, Icon as t };
@@ -0,0 +1,69 @@
1
+ import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
2
+ import { n as ContextColor } from "./types-CS_40Txv.js";
3
+ import { ElementType, MouseEventHandler, ReactElement } from "react";
4
+ //#region src/components/link/Link.d.ts
5
+ type LinkOwnProps<C extends ElementType> = {
6
+ /**
7
+ * Toggle the active state for the component.
8
+ */
9
+ active?: boolean;
10
+ /**
11
+ * A string of all className you want applied to the component.
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Sets the link color to one of Chassis context colors, including its interactive
16
+ * (`:hover`/`:focus`/`:active`/`:visited`) states.
17
+ */
18
+ color?: ContextColor;
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
+ * Toggle the disabled state for the component.
25
+ */
26
+ disabled?: boolean;
27
+ /**
28
+ * The href attribute specifies the URL of the page the link goes to. Only meaningful when
29
+ * `component` resolves to (or accepts) `'a'`. Declared explicitly here — rather than left to
30
+ * flow through generically from whatever `C` is — so consumers that wrap `Link` (`MenuItem`,
31
+ * `ListItem`, `NavLink`) can read it with a concrete type regardless of `component`.
32
+ */
33
+ href?: string;
34
+ /**
35
+ * Fires on click.
36
+ */
37
+ onClick?: MouseEventHandler<HTMLElement>;
38
+ /**
39
+ * Aligns a leading or trailing icon with the link text using flexbox, with a gap between
40
+ * them and an offset underline. Icons need to be passed as `children` alongside the text.
41
+ * Named `iconLink` rather than `icon` to avoid colliding with components (e.g. `MenuItem`)
42
+ * that already have their own, differently-typed `icon` prop for the icon content itself.
43
+ */
44
+ iconLink?: boolean;
45
+ /**
46
+ * Removes the foreground color override, so the link inherits its color from the nearest
47
+ * ancestor instead of the default link color.
48
+ */
49
+ reset?: boolean;
50
+ /**
51
+ * Expands the link's click target to fill its positioned ancestor (the nearest ancestor with
52
+ * a `position` other than `static`).
53
+ */
54
+ stretched?: boolean;
55
+ /**
56
+ * Specifies the type of button. Only applies when `component="button"`. Different browsers may
57
+ * use different default types for the `<button>` element, so always specify it explicitly.
58
+ */
59
+ type?: 'button' | 'submit' | 'reset';
60
+ };
61
+ type LinkProps<C extends ElementType = 'a'> = PolymorphicComponentProps<C, LinkOwnProps<C>>;
62
+ type LinkComponent = (<C extends ElementType = 'a'>(props: LinkProps<C> & {
63
+ ref?: PolymorphicRef<C>;
64
+ }) => ReactElement | null) & {
65
+ displayName?: string;
66
+ };
67
+ declare const Link: LinkComponent;
68
+ //#endregion
69
+ export { LinkProps as n, Link as t };
@@ -0,0 +1 @@
1
+ import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useButtonSemantics-CILM_lhi.js";import{t as n}from"./useDisabledAnchorGuard-Cz58UCXy.js";import r from"react";import i from"classnames";import{mergeProps as a}from"react-aria";function o({children:e,active:o,className:s,color:c,component:l,disabled:u,iconLink:d,onClick:f,reset:p,stretched:m,type:h=`button`,...g},_){let v=l??`a`,y=i(c&&`link-${c}`,{"icon-link":d,"fg-reset":p,"stretched-link":m},{active:o,disabled:u},s),b=v===`a`||v===`button`,x=typeof v!=`string`,S=n(v===`a`,u,f),C=!b&&!x&&!!f,{buttonProps:w,forkedRef:T}=t(_,{disabled:u,onClick:f});return r.createElement(v,{...a(g,C?w:{}),className:y,...o&&{"aria-current":`page`},...v===`a`&&u&&{"aria-disabled":!0,tabIndex:-1},...!C&&{onClick:S},...v===`button`&&{disabled:u,type:h},ref:C?T:_},e)}const s=e(o,`Link`);export{s as t};
@@ -0,0 +1,82 @@
1
+ import { ReactNode } from "react";
2
+ import { Key as Key$1 } from "react-stately";
3
+ //#region src/components/menu/MenuItemDef.d.ts
4
+ interface MenuItemDef {
5
+ /**
6
+ * Discriminates this entry from `MenuHeaderDef`/`MenuDividerDef` in a `MenuItemsDef`
7
+ * array. Omit for a normal item — it's the default.
8
+ */
9
+ type?: 'item';
10
+ /**
11
+ * React key for this item.
12
+ */
13
+ id: Key$1;
14
+ /**
15
+ * Label content for the item.
16
+ */
17
+ label: ReactNode;
18
+ /**
19
+ * Text used for filtering/typeahead. Required when `label` isn't a plain string — components
20
+ * that filter (e.g. `Combobox`, `Autocomplete`) can't derive it from rich content.
21
+ */
22
+ textValue?: string;
23
+ /**
24
+ * URL for the item, when it acts as a link.
25
+ */
26
+ href?: string;
27
+ /**
28
+ * Callback fired when the item is activated.
29
+ */
30
+ onClick?: () => void;
31
+ /**
32
+ * Marks the item as disabled — it can't be clicked or reached via the keyboard.
33
+ */
34
+ disabled?: boolean;
35
+ /**
36
+ * Marks the item as the current selection in a choice list.
37
+ */
38
+ selected?: boolean;
39
+ /**
40
+ * Icon rendered at the item's leading edge (`.menu-item-icon`).
41
+ */
42
+ icon?: ReactNode;
43
+ /**
44
+ * Secondary line of text rendered below the label (`.menu-item-description`).
45
+ */
46
+ description?: ReactNode;
47
+ }
48
+ interface MenuHeaderDef {
49
+ /**
50
+ * Discriminates this entry as a non-interactive group header.
51
+ */
52
+ type: 'header';
53
+ /**
54
+ * React key for this entry.
55
+ */
56
+ id: Key$1;
57
+ /**
58
+ * Header content.
59
+ */
60
+ label: ReactNode;
61
+ }
62
+ interface MenuDividerDef {
63
+ /**
64
+ * Discriminates this entry as a divider.
65
+ */
66
+ type: 'divider';
67
+ /**
68
+ * React key for this entry.
69
+ */
70
+ id: Key$1;
71
+ }
72
+ /**
73
+ * A flat array of item/header/divider definitions for data-driven rendering — headers and
74
+ * dividers are interleaved with items in authoring order, matching how chassis-css itself
75
+ * renders grouped items (flat DOM siblings under `.menu`, no wrapping element per group).
76
+ *
77
+ * Covers flat items, headers, and dividers only — nested/recursive submenus aren't
78
+ * representable here. Compose with `children`/`MenuSubmenu` directly for those.
79
+ */
80
+ type MenuItemsDef = (MenuItemDef | MenuHeaderDef | MenuDividerDef)[];
81
+ //#endregion
82
+ export { MenuItemsDef as i, MenuHeaderDef as n, MenuItemDef as r, MenuDividerDef as t };
@@ -0,0 +1 @@
1
+ import{t as e}from"./focus-ring-SR_LwaN7.js";import{t}from"./useForkedRef-DVEfT-KI.js";import n,{createContext as r,forwardRef as i,useContext as a,useEffect as o,useMemo as s,useRef as c,useState as l}from"react";import u from"classnames";import{mergeProps as d,useButton as f,useCalendar as p,useCalendarCell as m,useCalendarGrid as h,useDateFormatter as g,useLocale as _,useRangeCalendar as v}from"react-aria";import{flushSync as y}from"react-dom";import{useCalendarState as b,useRangeCalendarState as x}from"react-stately";import{createCalendar as S,getLocalTimeZone as C,isSameDay as w,isToday as T,isWeekend as E,toCalendarDate as D,today as O}from"@internationalized/date";const k=(e,t,n)=>!!(e.isDisabled||e.maxValue&&t.compare(D(e.maxValue))>0||e.minValue&&n.compare(D(e.minValue))<0),A={previousYears:`Previous years`,nextYears:`Next years`,selectYear:`Select year`,selectMonth:`Select month`,month:`Month`,year:`Year`,calendar:`Calendar`,clear:`Clear`},j=r(A),M=()=>a(j),N=({children:e,labels:t})=>{let r=a(j),i=s(()=>t?{...r,...t}:r,[r,t]);return n.createElement(j.Provider,{value:i},e)},P=({announce:e=!0,monthStart:t,onBack:r,onSelect:i,state:a})=>{let o=M(),s=g({calendar:t.calendar.identifier,month:`short`,timeZone:a.timeZone}),c=g({calendar:t.calendar.identifier,timeZone:a.timeZone,year:`numeric`}),l=t.calendar.getMonthsInYear(t),d=[...Array(l).keys()].map(e=>{let n=t.set({day:1,month:e+1});return{date:n,formatted:s.format(n.toDate(a.timeZone))}});return n.createElement(n.Fragment,null,n.createElement(`div`,{className:`datepicker-header`},n.createElement(`div`,{className:`datepicker-header-content`},n.createElement(`button`,{className:`datepicker-month`,onClick:r,type:`button`},c.format(t.toDate(a.timeZone))))),e&&n.createElement(`span`,{role:`status`,className:`visually-hidden`},`${o.selectMonth}, ${c.format(t.toDate(a.timeZone))}`),n.createElement(`div`,{className:`datepicker-content`},n.createElement(`div`,{"aria-label":c.format(t.toDate(a.timeZone)),className:`datepicker-months`,role:`group`},d.map(e=>{let r=e.date.month===t.month,o=k(a,e.date,e.date.add({months:1}).subtract({days:1}));return n.createElement(`button`,{"aria-current":r?`true`:void 0,className:u(`datepicker-months-month`,{selected:r}),disabled:o,key:e.date.month,onClick:()=>i(e.date),type:`button`},e.formatted)}))))},F=({announce:e=!0,monthStart:t,onBack:r,onSelect:i,state:a})=>{let o=M(),s=g({calendar:t.calendar.identifier,timeZone:a.timeZone,year:`numeric`}),[c,d]=l(()=>t.year),f=[...Array(15).keys()].map(e=>{let n=t.set({year:c+e}),r=n.set({day:1,month:1}),i=r.add({years:1}).subtract({days:1});return{date:n,formatted:s.format(n.toDate(a.timeZone)),yearEnd:i,yearStart:r}}),p=f[0],m=f[f.length-1],h=p.yearStart,_=m.yearEnd,v=`${p.formatted} – ${m.formatted}`,y=a.isDisabled||a.minValue!=null&&h.subtract({days:1}).compare(D(a.minValue))<0,b=a.isDisabled||a.maxValue!=null&&_.add({days:1}).compare(D(a.maxValue))>0;return n.createElement(n.Fragment,null,n.createElement(`div`,{className:`datepicker-header`},n.createElement(`button`,{"aria-label":o.previousYears,className:`datepicker-arrow datepicker-arrow-prev`,disabled:y,onClick:()=>d(e=>e-15),type:`button`}),n.createElement(`div`,{className:`datepicker-header-content`},n.createElement(`button`,{className:`datepicker-year`,onClick:r,type:`button`},v)),n.createElement(`button`,{"aria-label":o.nextYears,className:`datepicker-arrow datepicker-arrow-next`,disabled:b,onClick:()=>d(e=>e+15),type:`button`})),e&&n.createElement(`span`,{role:`status`,className:`visually-hidden`},`${o.selectYear}, ${v}`),n.createElement(`div`,{className:`datepicker-content`},n.createElement(`div`,{"aria-label":v,className:`datepicker-years`,role:`group`},f.map(e=>{let r=e.date.year===t.year,o=k(a,e.yearStart,e.yearEnd);return n.createElement(`button`,{"aria-current":r?`true`:void 0,className:u(`datepicker-years-year`,{selected:r}),disabled:o,key:e.date.year,onClick:()=>i(e.date),type:`button`},e.formatted)}))))},I=(e,t)=>{let{start:n,end:r}=e.visibleRange;if(t.compare(n)===0)return;let i=e.visibleDuration.months||1,a=t.compare(n)>0;if(a?t.compare(r)>0:t.add({months:i-1}).compare(n)<0){e.setFocusedDate(L(t,a,i));return}let o=a?t.add({months:i}):t.subtract({months:i});y(()=>{e.setFocusedDate(L(o,a,i))}),e.setFocusedDate(L(t,!a,i))},L=(e,t,n)=>t?e:e.add({months:n-1}),R=({children:e,monthIndex:t=0,monthStart:r,nextArrow:i,onViewChange:a,prevArrow:s,state:u})=>{let d=M(),[f,p]=l(`days`),m=c(null),h=c(!0),_=e=>{p(e),a?.(e)};o(()=>{if(h.current){h.current=!1;return}let e=m.current;e&&(f===`days`?e.querySelector(`.datepicker-date-btn[tabindex="0"]`):e.querySelector(`.datepicker-months-month.selected, .datepicker-years-year.selected`)??e.querySelector(`.datepicker-months-month, .datepicker-years-year`))?.focus()},[f]);let v=g({calendar:r.calendar.identifier,month:`long`,timeZone:u.timeZone}),y=g({calendar:r.calendar.identifier,timeZone:u.timeZone,year:`numeric`}),b=e=>{I(u,e.subtract({months:t})),_(`days`)};return n.createElement(`div`,{className:`datepicker-column`,ref:m},f===`months`&&n.createElement(P,{announce:t===0,monthStart:r,onBack:()=>_(`days`),onSelect:b,state:u}),f===`years`&&n.createElement(F,{announce:t===0,monthStart:r,onBack:()=>_(`days`),onSelect:b,state:u}),f===`days`&&n.createElement(n.Fragment,null,n.createElement(`div`,{className:`datepicker-header`},s,n.createElement(`div`,{className:`datepicker-header-content`},n.createElement(`button`,{"aria-label":`${d.month}: ${v.format(r.toDate(u.timeZone))}`,className:`datepicker-month`,disabled:u.isDisabled,onClick:()=>_(`months`),type:`button`},v.format(r.toDate(u.timeZone))),n.createElement(`button`,{"aria-label":`${d.year}: ${y.format(r.toDate(u.timeZone))}`,className:`datepicker-year`,disabled:u.isDisabled,onClick:()=>_(`years`),type:`button`},y.format(r.toDate(u.timeZone)))),i),t===0&&n.createElement(`span`,{role:`status`,className:`visually-hidden`},`${v.format(r.toDate(u.timeZone))} ${y.format(r.toDate(u.timeZone))}`),e))},z=({firstDayOfWeek:e,renderCell:t,startDate:r,state:i})=>{let{gridProps:a,headerProps:o,weekDays:s,weeksInMonth:c}=h({firstDayOfWeek:e,startDate:r},i);return n.createElement(`div`,{...a,className:`datepicker-content`},n.createElement(`div`,{...o,className:`datepicker-week`,role:`row`},s.map((e,t)=>n.createElement(`span`,{className:`datepicker-week-day`,key:t,role:`columnheader`},e))),n.createElement(`div`,{className:`datepicker-dates`},[...Array(c).keys()].map(e=>{let a=i.getDatesInWeek(e,r);return n.createElement(`div`,{className:`datepicker-dates-row`,key:e,role:`row`},a.map((e,r)=>e?n.createElement(n.Fragment,{key:e.toString()},t(e,r,a)):n.createElement(`div`,{className:`datepicker-date`,key:r,role:`gridcell`})))})))},B=({arrows:e,firstDayOfWeek:t,monthIndex:r,onViewChange:i,renderCell:a,state:o})=>{let s=o.visibleRange.start.add({months:r});return n.createElement(n.Fragment,null,n.createElement(R,{monthIndex:r,monthStart:s,nextArrow:e?.next,onViewChange:i,prevArrow:e?.prev,state:o},n.createElement(z,{firstDayOfWeek:t,renderCell:a,startDate:s,state:o})))},V=({buttonProps:e,direction:t})=>{let r=c(null),{buttonProps:i}=f(e,r);return n.createElement(`button`,{...i,className:`datepicker-arrow datepicker-arrow-${t}`,ref:r,type:`button`})},H=(e,t)=>{if(!e?.length&&!t)return;let n=e?.length?new Set(e):null;return e=>!!n?.has(e.toString())||!!t?.(e)},U=i((e,r)=>{let{autoFocus:i,className:a,defaultValue:o,disabled:f,firstDayOfWeek:m=`mon`,isDateUnavailable:h,labels:g,maxValue:v,minValue:y,onChange:x,selectionMode:w=`single`,unavailableDates:T,value:E,visibleMonths:D=1,...k}=e,{locale:A}=_(),j=c(null),M=t(j,r),P=s(()=>H(T,h),[T,h]),[F,I]=l({}),L=Object.values(F).some(e=>e!==`days`),U=e=>{x?.(e)},G=E,K=o,q=G===void 0?K:G,J=w===`multiple`&&Array.isArray(q)&&q.length===0?O(C()):void 0,Y=b({autoFocus:i,createCalendar:S,defaultFocusedValue:J,defaultValue:K,firstDayOfWeek:m,isDateUnavailable:P,isDisabled:f,locale:A,maxValue:v,minValue:y,onChange:U,pageBehavior:`single`,selectionMode:w,value:G,visibleDuration:{months:D}}),X={"aria-label":k[`aria-label`],"aria-labelledby":k[`aria-labelledby`],autoFocus:i,defaultFocusedValue:J,defaultValue:K,isDateUnavailable:P,isDisabled:f,maxValue:v,minValue:y,onChange:U,selectionMode:w,value:G},{calendarProps:Z,prevButtonProps:ee,nextButtonProps:te}=p(X,Y),Q=n.createElement(V,{buttonProps:ee,direction:`prev`}),$=n.createElement(V,{buttonProps:te,direction:`next`});return n.createElement(N,{labels:g},n.createElement(`div`,{...d(Z,k),className:u(`datepicker`,a),"data-cx-inline":`true`,ref:M},D===1?n.createElement(R,{monthStart:Y.visibleRange.start,nextArrow:$,prevArrow:Q,state:Y},n.createElement(z,{firstDayOfWeek:m,renderCell:e=>n.createElement(W,{date:e,locale:A,state:Y}),state:Y})):n.createElement(n.Fragment,null,!L&&n.createElement(`div`,{className:`datepicker-controls`},Q,$),n.createElement(`div`,{className:`datepicker-grid`},[...Array(D).keys()].map(e=>n.createElement(B,{firstDayOfWeek:m,key:e,monthIndex:e,onViewChange:t=>I(n=>({...n,[e]:t})),renderCell:e=>n.createElement(W,{date:e,locale:A,state:Y}),state:Y}))))))});U.displayName=`Calendar`;const W=({date:e,locale:t,state:r})=>{let i=c(null),{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:d,isUnavailable:f,formattedDate:p}=m({date:e},r,i),h=T(e,C());return n.createElement(`div`,{...a,"aria-current":h?`date`:void 0,className:u(`datepicker-date`,{"datepicker-date-selected":s,"datepicker-date-today":h,"datepicker-date-outside":l,"datepicker-date-disabled":d,"datepicker-date-unavailable":f,"datepicker-date-weekend":E(e,t)})},n.createElement(`button`,{...o,type:`button`,className:`datepicker-date-btn`,ref:i},p))},G=i(({autoFocus:e,className:r,defaultValue:i,disabled:a,firstDayOfWeek:o=`mon`,isDateUnavailable:f,labels:p,maxValue:m,minValue:h,onChange:g,presets:y,unavailableDates:b,value:C,visibleMonths:w=1,...T},E)=>{let{locale:D}=_(),O=c(null),k=t(O,E),A=s(()=>H(b,f),[b,f]),j=y&&y.length>0?y:null,[M,P]=l({}),F=Object.values(M).some(e=>e!==`days`),I=x({autoFocus:e,createCalendar:S,defaultValue:i,firstDayOfWeek:o,isDateUnavailable:A,isDisabled:a,locale:D,maxValue:m,minValue:h,onChange:g,pageBehavior:`single`,value:C,visibleDuration:{months:w}}),L={"aria-label":T[`aria-label`],"aria-labelledby":T[`aria-labelledby`],autoFocus:e,defaultValue:i,isDateUnavailable:A,isDisabled:a,maxValue:m,minValue:h,onChange:g,value:C},{calendarProps:R,prevButtonProps:z,nextButtonProps:U}=v(L,I,O),W=n.createElement(V,{buttonProps:z,direction:`prev`}),G=n.createElement(V,{buttonProps:U,direction:`next`}),q=w===1?{next:G,prev:W}:null,Y=e=>{I.setValue(e)};return n.createElement(N,{labels:p},n.createElement(`div`,{...d(R,T),className:u(`datepicker`,r),"data-cx-inline":`true`,ref:k},n.createElement(`div`,{className:`datepicker-grid`},j&&n.createElement(J,{onSelect:Y,presets:j,value:I.value}),n.createElement(`div`,{className:`datepicker-body`},w>1&&!F&&n.createElement(`div`,{className:`datepicker-controls`},W,G),n.createElement(`div`,{className:`datepicker-grid`},[...Array(w).keys()].map(e=>n.createElement(B,{arrows:e===0?q:null,firstDayOfWeek:o,key:e,monthIndex:e,onViewChange:t=>P(n=>({...n,[e]:t})),renderCell:(e,t,r)=>n.createElement(K,{date:e,isFirstInRow:t===0,isLastInRow:t===r.length-1,locale:D,state:I}),state:I})))))))});G.displayName=`RangeCalendar`;const K=({date:t,isFirstInRow:r,isLastInRow:i,locale:a,state:o})=>{let s=c(null),{cellProps:l,buttonProps:f,isSelected:p,isOutsideVisibleRange:h,isDisabled:g,isUnavailable:_,formattedDate:v}=m({date:t},o,s),{highlightedRange:y}=o,b=!!(y&&w(t,y.start)),x=!!(y&&w(t,y.end)),S=T(t,C());return n.createElement(`div`,{...l,"aria-current":S?`date`:void 0,className:u(`datepicker-date`,{"datepicker-date-today":S,"datepicker-date-in-range":p,"datepicker-date-range-start":p&&(b||r),"datepicker-date-range-end":p&&(x||i),"datepicker-date-outside":h,"datepicker-date-disabled":g,"datepicker-date-unavailable":_,"datepicker-date-weekend":E(t,a)})},n.createElement(`button`,{...d(f,{onPointerEnter:()=>{o.anchorDate&&s.current&&e(s.current)}}),type:`button`,className:u(`datepicker-date-btn`,{"datepicker-date-range-start":b,"datepicker-date-range-end":x}),ref:s},v))},q=(e,t)=>w(e.start,t.start)&&w(e.end,t.end),J=({onSelect:e,presets:t,value:r})=>n.createElement(`ul`,{className:`datepicker-presets`},t.map(t=>{let i=!!(r&&q(r,t.range));return n.createElement(`li`,{key:t.label},n.createElement(`button`,{"aria-current":i?`true`:void 0,className:u(`datepicker-preset`,{selected:i}),onClick:()=>e(t.range),type:`button`},t.label))}));export{A as a,N as i,U as n,M as o,H as r,G as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{r as e,t}from"./polymorphic-CACPOv1_.js";import n,{createContext as r,forwardRef as i,useContext as a,useId as o,useRef as s,useState as c}from"react";import l from"classnames";function u({children:e,className:t,component:r,...i},a){let o=r??`div`;return n.createElement(o,{className:l(`accordion-body`,t),...i,ref:a},e)}const d=t(u,`AccordionBody`),f=i(({children:e,className:t,...r},i)=>n.createElement(`summary`,{className:l(t)||void 0,...r,ref:i},n.createElement(`span`,{className:`accordion-title`},e)));f.displayName=`AccordionHeader`;const p=r({}),m=i(({children:t,alwaysOpen:r,className:i,name:o,open:s,itemKey:c,...u},d)=>{e(c!==void 0,`AccordionItem: the itemKey prop is deprecated and no longer used — the native <details> element manages its own state. It will be removed in a future major version.`);let f=a(p),m=r??f.alwaysOpen,h=o??f.name,g=m?{}:{name:h};return n.createElement(`details`,{className:l(`accordion-item`,i),open:s,...g,...u,ref:d},t)});m.displayName=`AccordionItem`;const h=i(({children:e,alwaysOpen:t=!1,caretEnd:r,className:i,defaultExpandedKeys:a,expandedKeys:u,flush:h,items:g,name:_,onExpandedChange:v,size:y,...b},x)=>{let S=o(),C=_??S,w=l(`accordion`,{flush:h,"caret-end":r},y,i),T=u!==void 0,E=T||a!==void 0||v!==void 0,[D,O]=c(()=>a??g?.filter(e=>e.open).map((e,t)=>e.id??t)??[]),k=T?u:D,A=s(new Map),j=(e,t)=>n=>{if(t?.(n),!g)return;let r=g.map((e,t)=>e.id??t).filter(e=>A.current.get(e)?.open);T?n.currentTarget.open=u.includes(e):O(r),v?.(r)},M=g?g.map((e,t)=>{let r=e.id??t;return n.createElement(m,{key:r,className:e.className,open:E?k.includes(r):e.open,name:e.name,alwaysOpen:e.alwaysOpen,onToggle:j(r,e.onToggle),ref:e=>{A.current.set(r,e)}},n.createElement(f,null,e.header),n.createElement(d,null,e.body))}):e;return n.createElement(`div`,{className:w,...b,ref:x},n.createElement(p.Provider,{value:{alwaysOpen:t,name:C}},M))});h.displayName=`Accordion`;export{d as i,m as n,f as r,h as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{r as e}from"./useFloatingOverlay-CcmDZKMK.js";import{t}from"./useFormField-BOqmBTC4.js";import{i as n,r as ee,t as te}from"./overlayPlacement-BtS90IVf.js";import{a as ne,i as r,n as i,r as a,t as o}from"./ComboboxListBox-BhO8uRNg.js";import{t as s}from"./renderFormField-wiaxvvLG.js";import c,{useEffect as l,useMemo as u,useRef as d}from"react";import f from"classnames";import{mergeProps as p,useButton as m,useComboBox as h,useFilter as g,useOverlayPosition as _}from"react-aria";import{createPortal as v}from"react-dom";import{useComboBoxState as y}from"react-stately";const b=e=>null;b.displayName=`AutocompleteGroup`;const x=e=>null;x.displayName=`AutocompleteItem`;const S=e=>{if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]},C=e=>e==null?[]:Array.isArray(e)?e:[e],w=({children:w,className:re,defaultValue:ie,disabled:T,help:E,id:ae,invalid:D,invalidFeedback:O,items:k,label:A,multiple:j=!1,name:M,noResultsText:N=`No results found`,onChange:P,placeholder:F,searchPlaceholder:I,size:L,valid:R,validFeedback:z,value:B,...V})=>{let H=u(()=>k?a(k):i(w,{Group:b,Item:x}),[k,w]),U=u(()=>ne(H),[H]),{contains:W}=g({sensitivity:`base`}),G=y({children:r,defaultItems:H,disabledKeys:U,defaultFilter:W,selectionMode:j?`multiple`:`single`,defaultValue:S(ie),value:S(B),onChange:e=>{let t=C(e);P?.(j?t:t[0]??null)},allowsEmptyCollection:!0,menuTrigger:`manual`}),K=d(null),q=d(null),J=d(null),Y=d(null),{describedBy:oe,feedbackId:se,helpId:ce,inputId:le,labelId:ue,labelledBy:X}=t({ariaDescribedBy:V[`aria-describedby`],ariaLabelledBy:V[`aria-labelledby`],help:E,id:ae,invalid:D,invalidFeedback:O,label:A,valid:R,validFeedback:z}),{buttonProps:de,inputProps:fe,listBoxProps:pe}=h({"aria-label":V[`aria-label`],"aria-labelledby":X,buttonRef:K,id:le,inputRef:q,listBoxRef:J,popoverRef:Y,isDisabled:T,placeholder:I},G),{buttonProps:me}=m({...de,elementType:`div`,isDisabled:T,excludeFromTabOrder:!1},K),Z=d(G.isOpen);l(()=>{G.isOpen&&!Z.current?q.current?.focus():!G.isOpen&&Z.current&&K.current?.focus(),Z.current=G.isOpen},[G.isOpen]),l(()=>{if(!G.isOpen)return;let e=K.current;for(;e&&e!==document.body;)e.removeAttribute(`aria-hidden`),e=e.parentElement},[G.isOpen]);let{overlayProps:Q,placement:he}=_({targetRef:K,overlayRef:Y,placement:n(`bottom-start`),offset:2,isOpen:G.isOpen,onClose:null}),ge=e({close:G.close,isOpen:G.isOpen,open:G.open,triggerRef:K}),{menuStyle:_e,placementAttr:ve}=ee(Q.style,`bottom-start`,he),ye={...te,..._e},be=e=>G.selectionManager.toggleSelection(e),xe=p(fe,{onKeyDown:e=>{if(!j||e.key!==`Backspace`||e.currentTarget.value!==``)return;let t=G.selectedItems[G.selectedItems.length-1];t&&be(t.key)}}),$=G.selectedItems.length>0,Se=$?G.selectedItems.length===1?G.selectedItems[0]?.textValue??``:`${G.selectedItems.length} selected`:F;return s({children:c.createElement(c.Fragment,null,c.createElement(`div`,{className:f(`form-input`,`combobox`,{sm:L===`sm`,lg:L===`lg`,disabled:T},{"is-invalid":D,"is-valid":R},re),...V,...me,"aria-label":V[`aria-label`],"aria-labelledby":X,"aria-describedby":oe,"aria-invalid":D||void 0,ref:K},c.createElement(`span`,{className:f(`combobox-value`,{"combobox-placeholder":!$})},Se)),typeof window<`u`&&v(c.createElement(`div`,{className:f(`menu`,{show:G.isOpen}),"data-cx-placement":ve,style:ye,hidden:!G.isOpen,ref:Y},c.createElement(`div`,{className:`combobox-search`},c.createElement(`input`,{autoComplete:`off`,className:`form-input combobox-search-input sm`,...xe,ref:q})),c.createElement(o,{state:G,listBoxProps:pe,listBoxRef:J}),G.collection.size===0&&c.createElement(`div`,{className:`combobox-no-results`},N)),ge??document.body),M&&(j?C(G.value).map(e=>c.createElement(`input`,{key:e,type:`hidden`,name:M,value:e,disabled:T})):c.createElement(`input`,{type:`hidden`,name:M,value:C(G.value)[0]??``,disabled:T}))),help:E,ids:{feedback:se,help:ce,label:ue},invalid:D,invalidFeedback:O,label:A,valid:R,validFeedback:z})};w.displayName=`Autocomplete`;export{x as n,b as r,w as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./Link-Cq7FNWpm.js";import{t as n}from"./badge-Bj8mf8lu.js";import r,{forwardRef as i}from"react";import a from"classnames";const o=i(({className:e,...t},n)=>{let i=a(`avatar-image`,e);return r.createElement(`img`,{className:i,...t,ref:n})});o.displayName=`AvatarImage`;function s({children:e,className:i,color:s,disabled:c,smooth:l,size:u,component:d,src:f,alt:p=`Profile picture`,href:m,status:h,statusLabel:g,..._},v){let y=d??(m?`a`:`span`),b=y===`a`||y===`button`,x=a(`avatar`,s,u,{smooth:l},!b&&{disabled:c},i),S=b?t:y;return r.createElement(S,{className:x,...b&&{component:y},disabled:c,href:m,...y===`button`&&{type:`button`},..._,ref:v},f?r.createElement(o,{src:f,alt:p}):e,h&&r.createElement(n,{color:h,circle:!0},r.createElement(`span`,{className:`visually-hidden`},g??h)))}const c=e(s,`Avatar`);function l({children:e,className:t,component:n,items:i,size:o,...s},l){let u=n??`div`,d=a(`avatar-stack`,o,t);return r.createElement(u,{className:d,...s,ref:l},i?.map(({key:e,content:t,...n},i)=>r.createElement(c,{key:e??i,...n},t)),e)}const u=e(l,`AvatarStack`);export{c as n,o as r,u as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";function r({children:e,className:r,color:i,variant:a,component:o,position:s,circle:c,size:l,...u},d){let f=o??`span`,p=n(`badge`,i,l,{outline:a===`outline`,smooth:a===`smooth`,"position-absolute translate-middle":s,"top-0":s?.includes(`top`),"top-100":s?.includes(`bottom`),"start-100":s?.includes(`end`),"start-0":s?.includes(`start`)},{circle:c},r);return t.createElement(f,{className:p,...u,ref:d},e)}const i=e(r,`Badge`);export{i as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./Link-Cq7FNWpm.js";import t,{forwardRef as n}from"react";import r from"classnames";const i=n(({children:n,active:i,className:a,href:o,...s},c)=>{let l=r(`breadcrumb-item`,{active:i},a);return t.createElement(`li`,{className:l,...i&&{"aria-current":`page`},...s,ref:c},o?t.createElement(e,{href:o},n):n)});i.displayName=`BreadcrumbItem`;const a=n(({"aria-label":e=`breadcrumb`,children:n,className:a,items:o,...s},c)=>{let l=r(`breadcrumb`,a),u=o?o.map((e,n)=>{let r=n===o.length-1;return t.createElement(i,{key:n,active:r,href:r?void 0:e.href},e.label)}):null;return t.createElement(`nav`,{"aria-label":e},t.createElement(`ol`,{className:l,...s,ref:c},u??n))});a.displayName=`Breadcrumb`;export{i as n,a as t};
@@ -0,0 +1,5 @@
1
+ //#region src/utils/breakpoints.d.ts
2
+ type Span = 'auto' | number | string | boolean;
3
+ type FlexDirection = 'row' | 'column';
4
+ //#endregion
5
+ export { Span as n, FlexDirection as t };
@@ -0,0 +1 @@
1
+ const e=[`sm`,`md`,`lg`,`xl`,`2xl`];function t(t,n,r){let i=r?e.filter(e=>r[e]).flatMap(e=>t(r[e],`${e}:`)):[];return[...t(n,``),...i]}const n=(e,t)=>[e&&`${t}flex-${e}`];export{n,t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";function r({children:e,className:r,component:i,size:a,vertical:o,...s},c){let l=i??`div`,u=n(`button-group`,{vertical:o},a,r);return t.createElement(l,{className:u,...s,ref:c},e)}const i=e(r,`ButtonGroup`);function a({children:e,className:r,component:i,...a},o){let s=i??`div`,c=n(`button-toolbar`,r);return t.createElement(s,{className:c,...a,ref:o},e)}const o=e(a,`ButtonToolbar`);export{i as n,o as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./Link-Cq7FNWpm.js";import{n,t as r}from"./breakpoints-o_2Ev7ir.js";import{t as i}from"./spacingClassName-DVhk8m3P.js";import a from"react";import o from"classnames";function s({children:e,className:t,component:s,direction:c,gap:l,responsive:u,...d},f){let p=s??`div`,m=o(`card-body`,r(n,c,u),i(`gap`,l),t);return a.createElement(p,{className:m,...d,ref:f},e)}const c=e(s,`CardBody`);function l({children:e,className:t,component:n,...r},i){let s=n??`div`,c=o(`card-footer`,t);return a.createElement(s,{className:c,...r,ref:i},e)}const u=e(l,`CardFooter`),d=(e,t)=>[e?`${t}card-image-${e}`:t===``?`card-image`:null];function f({children:e,className:t,component:n,orientation:i,responsive:s,...c},l){let u=n??`img`,f=o(r(d,i,s),t);return a.createElement(u,{className:f,...c,ref:l},e)}const p=e(f,`CardImage`);function m({children:e,component:t,className:n,...r},i){let s=t??`h6`,c=o(`card-subtitle`,n);return a.createElement(s,{className:c,...r,ref:i},e)}const h=e(m,`CardSubtitle`);function g({children:e,component:t,className:n,...r},i){let s=t??`p`,c=o(`card-text`,n);return a.createElement(s,{className:c,...r,ref:i},e)}const _=e(g,`CardText`);function v({children:e,component:t,className:n,...r},i){let s=t??`h5`,c=o(`card-title`,n);return a.createElement(s,{className:c,...r,ref:i},e)}const y=e(v,`CardTitle`);function b({children:e,className:t,color:i,component:s,direction:l,footer:d,image:f,imageAlt:m,imageOrientation:g=`top`,responsive:v,size:b,subtitle:x,text:S,title:C,variant:w,...T},E){let D=s??`div`,O=o(`card`,i,{context:!!i,solid:w===`solid`,smooth:w===`smooth`,outline:w===`outline`,sm:b===`sm`,lg:b===`lg`},r(n,l,v),t),k=f!=null||C!=null||x!=null||d!=null||S!=null,A=C!=null||x!=null||S!=null||e!=null,j=typeof f==`string`?a.createElement(p,{orientation:g,src:f,alt:m??``}):f;return a.createElement(D,{className:O,...T,ref:E},k?a.createElement(a.Fragment,null,f!=null&&g===`top`&&j,A&&a.createElement(c,null,C!=null&&a.createElement(y,null,C),x!=null&&a.createElement(h,null,x),S!=null&&a.createElement(_,null,S),e),f!=null&&g===`bottom`&&j,d!=null&&a.createElement(u,null,d)):e)}const x=e(b,`Card`);function S({children:e,className:t,component:n,...r},i){let s=n??`div`,c=o(`card-group`,t);return a.createElement(s,{className:c,...r,ref:i},e)}const C=e(S,`CardGroup`);function w({children:e,className:t,component:n,...r},i){let s=n??`div`,c=o(`card-header`,t);return a.createElement(s,{className:c,...r,ref:i},e)}const T=e(w,`CardHeader`);function E({children:e,className:t,component:n,...r},i){let s=n??`div`,c=o(`card-overlay`,t);return a.createElement(s,{className:c,...r,ref:i},e)}const D=e(E,`CardImageOverlay`);function O({children:e,className:n,...r},i){let s=o(`card-link`,n);return a.createElement(t,{className:s,...r,ref:i},e)}const k=e(O,`CardLink`);export{x as a,h as c,c as d,C as i,p as l,D as n,y as o,T as r,_ as s,k as t,u};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{r as e,t}from"./polymorphic-CACPOv1_.js";import{t as n}from"./useForkedRef-DVEfT-KI.js";import{n as r,t as i}from"./direction-CPhdeL3A.js";import{t as a}from"./useIsomorphicLayoutEffect-BbqRwuqn.js";import{t as o}from"./focusRedirect-BrvK3U_o.js";import{t as s}from"./iconSlot-BmWxJh27.js";import c,{createContext as l,forwardRef as u,useCallback as d,useContext as f,useEffect as p,useRef as m,useState as h}from"react";import g from"classnames";const _=new WeakSet;function ee(e){_.add(e)}function te(e){if(!e)return!1;let t=_.has(e);return _.delete(e),t}const v=l(null),y=()=>{let e=f(v);if(!e)throw Error(`Carousel sub-components must be rendered inside a Carousel`);return e};function b(e){return Array.from(e.querySelectorAll(`:scope > .carousel-item:not(.carousel-item-clone)`))}function x(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function ne(e){if(!e)return!1;let t=e.getBoundingClientRect();return t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.bottom>0&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.right>0}function S(e,t,n){let r=e.getBoundingClientRect(),a=t.getBoundingClientRect();if(n)return a.left+a.width/2-(r.left+r.width/2);let o=Number.parseFloat(getComputedStyle(e).scrollPaddingInlineStart)||0;return i(e)?a.right-(r.right-o):a.left-(r.left+o)}function C(e){return e.scrollWidth-e.clientWidth>0}const w=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2;function re(e,t,n){if(x()||typeof requestAnimationFrame>`u`)return e.scrollTo({left:t,behavior:`instant`}),n(),()=>{};let r=e.scrollLeft,i=t-r,a=null,o=null,s=!1,c=()=>{s||(s=!0,o!==null&&cancelAnimationFrame(o),clearTimeout(u),e.scrollTo({left:t,behavior:`instant`}),n())},l=t=>{if(s)return;a===null&&(a=t);let n=Math.min((t-a)/300,1);if(e.scrollTo({left:r+i*w(n),behavior:`instant`}),n<1){o=requestAnimationFrame(l);return}c()},u=setTimeout(c,500);return o=requestAnimationFrame(l),()=>{s||(s=!0,o!==null&&cancelAnimationFrame(o),clearTimeout(u))}}function ie(e,t,n){return Number.isNaN(e)||t===0?null:e<0?n?t-1:null:e>t-1?n?0:null:e}function ae(e,t,n){let r=t>e;return n?r?`right`:`left`:r?`left`:`right`}function oe(e,t){return t?e?`right`:`left`:e?`left`:`right`}function se(e,t,n,r,i){if(n||t<2||r||i)return!1;let a=getComputedStyle(e),o=e=>Number.parseFloat(a.getPropertyValue(e))||0;return(o(`--cx-carousel-items`)||1)===1&&o(`--cx-carousel-items-peek`)===0}const T=u(({children:t,activeIndex:s,auto:l,autoplay:u=!1,center:f,className:_,defaultActiveIndex:ee=0,ends:y=`loop`,interval:w=5e3,items:T,itemsGap:E,itemsPeek:D,keyboard:ce=!0,onKeyDown:le,onMouseEnter:ue,onMouseLeave:de,onSlid:O,onSlide:k,pause:A=`hover`,style:fe,transition:j=`scroll`,...pe},me)=>{e(s!==void 0&&!k&&!O,"Carousel: `activeIndex` is set (controlled) but neither `onSlide` nor `onSlid` is — nothing feeds the new index back to your state, so the carousel will visually freeze on click/swipe/autoplay. Pass `onSlide` or `onSlid` and update `activeIndex` from it.");let M=m(null),he=n(me,M),[N,ge]=h(null),_e=d(e=>ge(e),[]),[P,ve]=r(s,ee),F=m(P);a(()=>{F.current=P},[P]);let[I,ye]=h(0),L=m(I);a(()=>{L.current=I},[I]);let[R,be]=h(u),[xe,Se]=h(!1),[z,Ce]=h(!0),[B,we]=h(!1),V=m(!1),H=m(!1),U=m(!1),W=m(null),G=m(null),K=m(new Map),q=m(null),Te=m(!1),Ee=m(!1),De=m(!1),[Oe,ke]=h(``),J=m(!1),Y=m({from:P,to:P,direction:`left`}),Ae=m(new Set),je=m(new Set),X=j===`fade`,Z=Math.max(1,T??1),Me=y!==`stop`,Ne=e=>{F.current=e,ve(e)};a(()=>{let e=Math.max(0,I-Z);Ce(P<=0),we(P>=e)},[P,I,Z]),p(()=>{if(!N)return;let e=()=>{if(V.current||!C(N))return;let e=N.scrollWidth-N.clientWidth,t=N.scrollLeft,n=i(N)?Math.max(-e,Math.min(0,t)):Math.max(0,Math.min(e,t)),r=Math.abs(n);Ce(r<=1),we(r>=e-1)};return N.addEventListener(`scroll`,e,{passive:!0}),()=>N.removeEventListener(`scroll`,e)},[N]),a(()=>{if(!N)return;let e=()=>{let e=b(N);if(ye(e.length),G.current?.disconnect(),G.current=null,K.current=new Map,!(X||typeof IntersectionObserver>`u`)){G.current=new IntersectionObserver(e=>{for(let t of e)K.current.set(t.target,t.isIntersecting?t.intersectionRatio:0);if(V.current||H.current)return;let t=b(N).map(e=>K.current.get(e)??0),n=Math.max(0,...t),r=F.current;if(n>0){let e=t.findIndex(e=>e>=n-.05);e!==-1&&(r=e)}if(r!==F.current){let e=F.current,t={from:e,to:r,direction:ae(e,r,i(N))};Y.current=t,k?.(t),U.current=!0,Ne(r)}},{root:N,threshold:[0,.25,.5,.75,1]});for(let t of e)G.current.observe(t)}};e();let t=new MutationObserver(e);return t.observe(N,{childList:!0}),()=>{t.disconnect(),G.current?.disconnect()}},[N,X]),a(()=>{if(!N)return;let e=b(N);for(let[t,n]of e.entries())n.classList.toggle(`active`,t===P),n.setAttribute(`aria-roledescription`,`slide`),n.setAttribute(`aria-label`,`${t+1} of ${e.length}`)},[N,P,I]),a(()=>{if(U.current){U.current=!1;return}if(!N||V.current||X)return;let e=b(N)[P];if(!e||!C(N))return;let t=!Te.current;Te.current=!0;let n=S(N,e,!!f);Math.abs(n)<1||(W.current?.(),H.current=!0,N.style.scrollSnapType=`none`,t?(N.scrollTo({left:N.scrollLeft+n,behavior:`instant`}),N.style.scrollSnapType=``,H.current=!1,W.current=null):(J.current=!0,W.current=re(N,N.scrollLeft+n,()=>{N.style.scrollSnapType=``,H.current=!1,W.current=null,J.current=!1,O?.(Y.current)})))},[N,P,I,f,X]),p(()=>{if(!Ee.current){Ee.current=!0;return}J.current||O?.(Y.current)},[P]),p(()=>{if(!De.current){De.current=!0;return}ke(`Slide ${P+1} of ${I}`)},[P]),p(()=>()=>{q.current&&clearTimeout(q.current),G.current?.disconnect(),W.current?.()},[]);let Pe=e=>{let t=N;if(!t)return;W.current?.(),H.current=!1;let n=b(t),r=n.length-1,a=F.current,o=e?0:r,s=oe(e,i(t));k?.({from:a,to:o,direction:s}),V.current=!0;let c=()=>{Y.current={from:a,to:o,direction:s},Ne(o),V.current=!1},l=e?n[0]:n[r],u=n[a],d=n[o];if(!C(t)||!l||!u||!d){c();return}let p=l.cloneNode(!0);p.classList.add(`carousel-item-clone`),p.classList.remove(`active`),p.removeAttribute(`id`);for(let e of Array.from(p.querySelectorAll(`[id]`)))e.removeAttribute(`id`);p.setAttribute(`aria-hidden`,`true`),p.setAttribute(`inert`,``),t.style.scrollSnapType=`none`,e?t.append(p):(t.prepend(p),t.scrollTo({left:t.scrollLeft+S(t,u,!!f),behavior:`instant`}));let m=S(t,p,!!f);re(t,t.scrollLeft+m,()=>{p.remove();let e=S(t,d,!!f);t.scrollTo({left:t.scrollLeft+e,behavior:`instant`}),t.style.scrollSnapType=``,c()})},Fe=e=>{if(V.current)return;let t=L.current;if(t===0)return;let n=Math.max(0,t-Z);if(y===`loop`&&!X&&!x()&&M.current&&se(M.current,t,X,!!f,!!l)){if(e>n){Pe(!0);return}if(e<0){Pe(!1);return}}let r=ie(e,n+1,Me),a=F.current;if(r===null||r===a)return;let o=ae(a,e,N?i(N):!1);k?.({from:a,to:r,direction:o}),Y.current={from:a,to:r,direction:o},Ne(r)},Ie=()=>Fe(F.current+1),Le=()=>Fe(F.current-1),Re=e=>Fe(e),Q=()=>{q.current&&clearTimeout(q.current),q.current=null,Se(!1)},ze=(e=F.current)=>{q.current&&clearTimeout(q.current);let t=(N?b(N):[])[e]?.dataset.interval,n=t&&!Number.isNaN(Number(t))?Number(t):w;M.current?.style.setProperty(`--cx-carousel-interval`,`${n}ms`),q.current=setTimeout(()=>{let t=L.current,n=Math.max(0,t-Z),r=ie(F.current+1,n+1,Me);if(!(typeof document>`u`||document.visibilityState===`visible`&&ne(M.current))){ze(e);return}if(Ie(),r===null){Q();return}ze(r)},n)},Be=()=>{ze(),Se(!0)},$=()=>{be(!1),Q()},Ve=()=>{if(R){$();return}be(!0),Be()};p(()=>{if(N)return R&&Be(),()=>Q()},[N]),p(()=>{if(!N)return;let e=()=>$();return N.addEventListener(`pointerdown`,e),()=>N.removeEventListener(`pointerdown`,e)},[N]),p(()=>{if(y!==`stop`)return;let e=document.activeElement,t=z&&!!e&&Ae.current.has(e),n=B&&!!e&&je.current.has(e);if(!t&&!n)return;let r=t?je.current:Ae.current,i=(t?!B:!z)?Array.from(r)[0]:null,a=te(e);if(i){o(i,a,{preventScroll:!0});return}N&&(N.hasAttribute(`tabindex`)||N.setAttribute(`tabindex`,`-1`),o(N,a,{preventScroll:!0}))},[z,B,y,N]);let He=d((e,t)=>{let n=e===`prev`?Ae.current:je.current;return n.add(t),()=>{n.delete(t)}},[]),Ue=e=>{le?.(e),ce&&(e.target.closest(`input, textarea, select, [contenteditable="true"]`)||(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),$(),e.key===`ArrowLeft`?Le():Ie()))},We=e=>{ue?.(e),A===`hover`&&Q()},Ge=e=>{de?.(e),A===`hover`&&R&&Be()},Ke={activeIndex:P,atEnd:B,atStart:z,ends:y,itemCount:I,itemsVisible:Z,next:()=>{$(),Ie()},playing:R,prev:()=>{$(),Le()},registerControl:He,registerViewport:_e,to:e=>{$(),Re(e)},togglePlayPause:Ve},qe=g(`carousel`,{"carousel-fade":X,"carousel-center":f,"carousel-auto":l,"carousel-playing":xe},_),Je={...fe,...T!=null&&{"--cx-carousel-items":T},...E!=null&&{"--cx-carousel-items-gap":E},...D!=null&&{"--cx-carousel-items-peek":D}};return c.createElement(`div`,{role:`region`,"aria-roledescription":`carousel`,className:qe,style:Je,onKeyDown:Ue,onMouseEnter:We,onMouseLeave:Ge,...pe,ref:he},c.createElement(v.Provider,{value:Ke},t),c.createElement(`span`,{role:`status`,className:`visually-hidden`},Oe))});T.displayName=`Carousel`;const E=u(({children:e,className:t,direction:r,disabled:i,icon:a,label:o,onClick:l,...u},d)=>{let{atEnd:f,atStart:h,ends:_,next:te,prev:v,registerControl:b}=y(),x=m(null),ne=n(d,x);p(()=>{let e=x.current;if(e)return b(r,e)},[b,r]);let S=r===`next`?f:h,C=r===`next`?te:v,w=i||_===`stop`&&S;return c.createElement(`button`,{type:`button`,className:g(`button sm icon-only`,t),disabled:w,onClick:e=>{l?.(e),e.detail!==0&&ee(e.currentTarget),C()},...u,ref:ne},e??c.createElement(c.Fragment,null,c.createElement(s,{icon:r===`next`?`next`:`previous`,override:a,className:`directional-icon`}),c.createElement(`span`,{className:`visually-hidden`},o)))});E.displayName=`CarouselControlButton`;const D=u(({label:e=`Next slide`,...t},n)=>c.createElement(E,{...t,direction:`next`,label:e,ref:n}));D.displayName=`CarouselControlNext`;const ce=u(({label:e=`Previous slide`,...t},n)=>c.createElement(E,{...t,direction:`prev`,label:e,ref:n}));ce.displayName=`CarouselControlPrev`;const le=u(({className:e,label:t=e=>`Slide ${e}`,...n},r)=>{let{activeIndex:i,itemCount:a,itemsVisible:o,to:s}=y(),l=g(`carousel-indicators`,e),u=a===0?0:Math.max(1,a-o+1);return c.createElement(`ol`,{className:l,...n,ref:r},Array.from({length:u},(e,t)=>t).map(e=>c.createElement(`li`,{key:e},c.createElement(`button`,{type:`button`,className:e===i?`active`:void 0,"aria-current":e===i?`true`:void 0,"aria-label":t(e+1),onClick:()=>s(e)}))))});le.displayName=`CarouselIndicators`;function ue({children:e,className:t,component:r,...i},a){let{registerViewport:o}=y(),s=r??`div`,l=n(a,o),u=g(`carousel-inner`,t);return c.createElement(s,{className:u,...i,ref:l},e)}const de=t(ue,`CarouselInner`);function O({children:e,className:t,component:n,interval:r,...i},a){let o=n??`div`,s=g(`carousel-item`,t);return c.createElement(o,{className:s,"data-interval":r,...i,ref:a},e)}const k=t(O,`CarouselItem`);function A({children:e,className:t,component:n,...r},i){let a=n??`div`,o=g(`carousel-overlay`,t);return c.createElement(a,{className:o,...r,ref:i},e)}const fe=t(A,`CarouselOverlay`),j=u(({children:e,className:t,onClick:n,pauseIcon:r,pauseLabel:i=`Pause`,playIcon:a,playLabel:o=`Play`,...l},u)=>{let{playing:d,togglePlayPause:f}=y(),p=g(`carousel-control-play-pause button sm icon-only`,{paused:!d},t);return c.createElement(`button`,{type:`button`,className:p,"aria-label":d?i:o,onClick:e=>{n?.(e),f()},...l,ref:u},e??c.createElement(c.Fragment,null,c.createElement(s,{icon:`pause`,override:r,className:`carousel-icon-pause`}),c.createElement(s,{icon:`play`,override:a,className:`carousel-icon-play`})))});j.displayName=`CarouselPlayPause`;export{le as a,T as c,de as i,fe as n,ce as o,k as r,D as s,j as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{n as e,r as t}from"./polymorphic-CACPOv1_.js";import{t as n}from"./useForkedRef-DVEfT-KI.js";import{n as r,t as i}from"./FormHelp-Be2PQL0y.js";import{t as a}from"./validationClassName-gRGs4KBm.js";import{t as o}from"./renderFormCheck-BXBs6_ov.js";import{t as s}from"./flex-BTvpgaRv.js";import c,{createContext as l,forwardRef as u,useContext as d,useEffect as f,useRef as p}from"react";import m from"classnames";import{useCheckbox as h,useCheckboxGroup as g,useCheckboxGroupItem as _}from"react-aria";import{useCheckboxGroupState as v,useToggleState as y}from"react-stately";const b=l(null),x=u(({button:e,children:t,className:r,color:i,defaultSelected:s,disabled:l,id:u,indeterminate:d,invalid:f,isSelected:g,label:_,onChange:v,size:b,valid:x,...S},C)=>{let w=p(null),T=n(C,w),E=y({defaultSelected:s,isDisabled:l,isSelected:g,onChange:v}),D=_??t,{inputProps:O}=h({...S,children:D,isDisabled:l,isIndeterminate:d,isInvalid:f,value:S.value},E,w),k=m(a(f,x));return o({button:e,className:r,color:i,input:c.createElement(`input`,{...O,className:k,id:u,ref:T}),invalid:f,label:D,size:b,valid:x})});x.displayName=`CheckboxStandalone`;const S=u(({button:r,children:i,className:s,color:l,defaultSelected:u,disabled:d,groupState:h,groupValid:g,id:v,indeterminate:y,invalid:b,isSelected:x,label:S,onChange:C,size:w,valid:T,...E},D)=>{let O=b??h.isInvalid,k=T??g,A=p(null),j=n(D,A);f(()=>{e(!E.value,"Checkbox: a `value` prop is required when rendered inside a CheckboxGroup."),t(u!==void 0||x!==void 0||C!==void 0,"Checkbox: `defaultSelected`, `isSelected`, and `onChange` are ignored inside a CheckboxGroup — selection is owned by the group's `value`/`defaultValue`/`onChange`.")},[]);let M=S??i,{inputProps:N}=_({...E,children:M,isDisabled:d,isIndeterminate:y,isInvalid:O,value:E.value},h,A),P=m(a(O,k));return o({button:r,className:s,color:l,input:c.createElement(`input`,{...N,className:P,id:v,ref:j}),invalid:O,label:M,size:w,valid:k})});S.displayName=`CheckboxGroupItem`;const C=u((e,t)=>{let n=d(b);return n?c.createElement(S,{...e,groupState:n.state,groupValid:n.valid,ref:t}):c.createElement(x,{...e,ref:t})});C.displayName=`Checkbox`;const w=u(({children:e,className:t,defaultValue:n,description:o,disabled:l,errorMessage:u,invalid:d,label:f,name:p,onChange:h,orientation:_,required:y,valid:x,value:S,...C},w)=>{let T={...C,defaultValue:n,description:o,errorMessage:u,isDisabled:l,isInvalid:d,isRequired:y,label:f,name:p,onChange:h,value:S},E=v(T),{groupProps:D,labelProps:O,descriptionProps:k,errorMessageProps:A}=g(T,E),j=m(`form-field`,a(d,x),t),M=c.createElement(b.Provider,{value:{state:E,valid:x}},e);return c.createElement(`fieldset`,{...C,...D,className:j,ref:w},f&&c.createElement(`legend`,{className:`form-label`,...O},f),_===`horizontal`?c.createElement(s,{gap:`md`},M):M,o&&c.createElement(i,k,o),d&&u&&c.createElement(r,{invalid:!0,...A},u))});w.displayName=`CheckboxGroup`;export{C as n,w as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,t as n}from"./direction-CPhdeL3A.js";import{t as r}from"./useFormField-BOqmBTC4.js";import{t as i}from"./renderFormField-wiaxvvLG.js";import{t as a}from"./CloseButton-DJM7FRKh.js";import{t as o}from"./validationClassName-gRGs4KBm.js";import{t as s}from"./Chip-D0Cw0mAr.js";import c,{forwardRef as l,useMemo as u,useRef as d,useState as f}from"react";import p from"classnames";import{useButton as m,useTag as h,useTagGroup as g,useTextField as _}from"react-aria";import{Item as v,useListState as ee}from"react-stately";const te=({chipVariant:e,disabled:t,groupRef:n,props:r,size:i,state:a})=>{let{gridProps:o}=g(r,a,n);return c.createElement(`div`,{...o,style:{display:`contents`},ref:n},[...a.collection].map(n=>c.createElement(y,{chipVariant:e,disabled:t,item:n,key:n.key,size:i,state:a})))},y=({chipVariant:e,disabled:t,item:n,size:r,state:i})=>{let o=d(null),{rowProps:l,gridCellProps:u,removeButtonProps:f,allowsRemoving:g}=h({item:n},i,o),_=d(null),{buttonProps:v}=m(f,_);return c.createElement(s,{...l,className:p(e,{active:i.selectionManager.isSelected(n.key)}),component:`div`,disabled:t,ref:o,size:r},c.createElement(`div`,{...u,style:{display:`contents`}},n.rendered,g&&c.createElement(a,{...v,ref:_})))},b=e=>{let t=new Map;return e.map(e=>{let n=t.get(e)??0;return t.set(e,n+1),n===0?e:`${e}\u0000${n}`})},x=l(({allowDuplicates:a=!1,"aria-describedby":s,"aria-label":l,"aria-labelledby":m,chipVariant:h=`default`,className:g,defaultValue:y,disabled:x,help:S,id:ne,invalid:C,invalidFeedback:w,label:T,maxChips:E,name:D,onChange:O,placeholder:k,separator:A=`,`,size:j,valid:M,validFeedback:N,value:P,...F},I)=>{let[L,R]=t(P,y??[],O),z=u(()=>b(L),[L]),B=(e,t)=>t!==``&&(a||!e.includes(t)),V=e=>{let t=e.trim();B(L,t)&&(E!=null&&L.length>=E||R([...L,t]))},re=e=>{let t=new Set(e);R(L.filter((e,n)=>!t.has(z[n])))},H=u(()=>L.map((e,t)=>({id:z[t],value:e})),[L,z]),U=ee({children:e=>c.createElement(v,{key:e.id,textValue:e.value},e.value),disabledKeys:x?H.map(e=>e.id):void 0,items:H,selectionMode:`multiple`}),W=d(null),G=d(null),K=e(I,G),q=d(null),[J,Y]=f(``),X=e=>{if(L.length===0)return;let t=z[z.length-1];e?U.selectionManager.extendSelection(t):U.selectionManager.replaceSelection(t);let n=W.current?.querySelectorAll(`[role="row"]`);n?.[n.length-1]?.focus()},ie=e=>{if(!x){if(A&&e.key===A){e.preventDefault(),V(J),Y(``);return}switch(e.key){case`Enter`:e.preventDefault(),V(J),Y(``);break;case`Backspace`:case`Delete`:J===``&&(e.preventDefault(),X(!1));break;case`ArrowLeft`:case`ArrowRight`:{let t=q.current;if(!t)break;e.key===`ArrowLeft`!==n(t)&&t.selectionStart===0&&t.selectionEnd===0&&(e.preventDefault(),X(e.shiftKey));break}case`Escape`:Y(``),U.selectionManager.clearSelection(),q.current?.blur()}}},ae=e=>{if(x||!A)return;let t=e.clipboardData.getData(`text`);if(!t.includes(A))return;e.preventDefault();let n=t.split(A),r=L,i=0;for(;i<n.length-1&&!(E!=null&&r.length>=E);i++){let e=n[i].trim();B(r,e)&&(r=[...r,e])}r!==L&&R(r),Y(n.slice(i).join(A))},{describedBy:oe,feedbackId:se,helpId:ce,inputId:Z,labelId:le,labelledBy:Q}=r({ariaDescribedBy:s,ariaLabelledBy:m,help:S,id:ne,invalid:C,invalidFeedback:w,label:T,valid:M,validFeedback:N}),{inputProps:$}=_({"aria-describedby":oe,"aria-label":l??(m||T?void 0:`Add value`),"aria-labelledby":Q,id:Z,isDisabled:x,isInvalid:C,onChange:Y,onFocus:()=>U.selectionManager.clearSelection(),onKeyDown:ie,placeholder:k,value:J},q);return i({children:c.createElement(`div`,{className:p(`form-input`,`chip-input`,j,{disabled:x},o(C,M),g),...F,ref:K},c.createElement(te,{chipVariant:h,disabled:x,groupRef:W,props:{"aria-label":l,"aria-labelledby":Q,onRemove:x?void 0:re},size:j,state:U}),c.createElement(`input`,{...$,className:`ghost-input`,onPaste:ae,ref:q}),D&&H.map(e=>c.createElement(`input`,{disabled:x,key:e.id,name:D,type:`hidden`,value:e.value}))),help:S,ids:{feedback:se,help:ce,input:Z,label:le},invalid:C,invalidFeedback:w,label:T,valid:M,validFeedback:N})});x.displayName=`ChipInput`;export{x as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import t,{forwardRef as n,useRef as r,useState as i}from"react";import a from"classnames";import{CSSTransition as o}from"react-transition-group";const s=n(({children:n,className:s,horizontal:c,onHide:l,onShow:u,visible:d,...f},p)=>{let[m,h]=i(),[g,_]=i(),v=r(null),y=e(p,v),b=e=>e===`entering`?`collapsing`:e===`entered`?`collapse show`:e===`exiting`?`collapsing`:`collapse`,x=()=>{if(u&&u(),c){v.current&&_(v.current.scrollWidth);return}v.current&&h(v.current.scrollHeight)},S=()=>{if(c){_(0);return}h(0)},C=()=>{if(c){v.current&&_(v.current.scrollWidth);return}v.current&&h(v.current.scrollHeight)},w=()=>{if(l&&l(),c){_(0);return}h(0)},T=()=>{if(c){_(0);return}h(0)},E=a({"collapse-horizontal":c},s);return t.createElement(o,{in:d,nodeRef:v,onEntering:x,onEntered:S,onExit:C,onExiting:w,onExited:T,timeout:350},e=>{let r=b(e),i=m===0?null:{height:m},o=g===0?null:{width:g};return t.createElement(`div`,{className:a(E,r),style:{...i,...o},...f,ref:y},n)})});s.displayName=`Collapse`;export{s as t};
@@ -0,0 +1 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useFormField-BOqmBTC4.js";import{t}from"./renderFormField-wiaxvvLG.js";import{t as n}from"./validationClassName-gRGs4KBm.js";import r,{forwardRef as i}from"react";import a from"classnames";const o=i(({className:i,help:o,id:s,invalid:c,invalidFeedback:l,label:u,size:d,valid:f,validFeedback:p,...m},h)=>{let{describedBy:g,feedbackId:_,helpId:v,inputId:y}=e({ariaDescribedBy:m[`aria-describedby`],help:o,id:s,invalid:c,invalidFeedback:l,valid:f,validFeedback:p}),b=a(`form-input`,d,n(c,f),i);return t({children:r.createElement(`input`,{...m,"aria-describedby":g,"aria-invalid":c||void 0,className:b,id:y,ref:h,type:`color`}),help:o,ids:{feedback:_,help:v,input:y},invalid:c,invalidFeedback:l,label:u,valid:f,validFeedback:p})});o.displayName=`ColorInput`;export{o as t};