@chassis-ui/react 0.5.1 → 0.6.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 (356) hide show
  1. package/README.md +4 -3
  2. package/dist/accordion.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/autocomplete.d.ts +1 -1
  5. package/dist/autocomplete.js +1 -1
  6. package/dist/avatar.js +1 -1
  7. package/dist/badge.js +1 -1
  8. package/dist/breadcrumb.js +1 -1
  9. package/dist/button-group.js +1 -1
  10. package/dist/button.js +1 -1
  11. package/dist/calendar.js +1 -1
  12. package/dist/card.js +1 -1
  13. package/dist/carousel.js +1 -1
  14. package/dist/checkbox.d.ts +1 -1
  15. package/dist/checkbox.js +1 -1
  16. package/dist/chip-input.js +1 -1
  17. package/dist/chip.js +1 -1
  18. package/dist/chunks/Button-Cjenm3ku.js +2 -0
  19. package/dist/chunks/Button-Cjenm3ku.js.map +1 -0
  20. package/dist/chunks/{Chip-C7QlFCvx.js → Chip-CXuYhjc3.js} +2 -2
  21. package/dist/chunks/{Chip-C7QlFCvx.js.map → Chip-CXuYhjc3.js.map} +1 -1
  22. package/dist/chunks/CloseButton-CAQ--0sB.js +2 -0
  23. package/dist/chunks/CloseButton-CAQ--0sB.js.map +1 -0
  24. package/dist/chunks/{DateField-4cdcwt0v.js → DateField-G1TP9ayt.js} +2 -2
  25. package/dist/chunks/{DateField-4cdcwt0v.js.map → DateField-G1TP9ayt.js.map} +1 -1
  26. package/dist/chunks/{FormHelp-B1eSoack.js → FormHelp-2U3P8C6b.js} +2 -2
  27. package/dist/chunks/{FormHelp-B1eSoack.js.map → FormHelp-2U3P8C6b.js.map} +1 -1
  28. package/dist/chunks/Link-B3SX50Od.js +2 -0
  29. package/dist/chunks/Link-B3SX50Od.js.map +1 -0
  30. package/dist/chunks/Menu-DBN4Mxak.js +2 -0
  31. package/dist/chunks/Menu-DBN4Mxak.js.map +1 -0
  32. package/dist/chunks/MenuToggle-DHzKm1Ed.js +2 -0
  33. package/dist/chunks/MenuToggle-DHzKm1Ed.js.map +1 -0
  34. package/dist/chunks/{RangeCalendar-mM3OeTlU.js → RangeCalendar-DRcg1Hp3.js} +2 -2
  35. package/dist/chunks/{RangeCalendar-mM3OeTlU.js.map → RangeCalendar-DRcg1Hp3.js.map} +1 -1
  36. package/dist/chunks/{VisuallyHidden-CGv-mBuQ.js → VisuallyHidden-24WfUCsJ.js} +2 -2
  37. package/dist/chunks/{VisuallyHidden-CGv-mBuQ.js.map → VisuallyHidden-24WfUCsJ.js.map} +1 -1
  38. package/dist/chunks/{accordion-BZlX2uk8.js → accordion-DiYPbV_r.js} +2 -2
  39. package/dist/chunks/{accordion-BZlX2uk8.js.map → accordion-DiYPbV_r.js.map} +1 -1
  40. package/dist/chunks/alert-oSKrhxkI.js +2 -0
  41. package/dist/chunks/{alert-DSLg5MBb.js.map → alert-oSKrhxkI.js.map} +1 -1
  42. package/dist/chunks/autocomplete-wjDWeWDh.js +2 -0
  43. package/dist/chunks/autocomplete-wjDWeWDh.js.map +1 -0
  44. package/dist/chunks/{avatar-BQBbcnk6.js → avatar-CvcvC9KA.js} +2 -2
  45. package/dist/chunks/{avatar-BQBbcnk6.js.map → avatar-CvcvC9KA.js.map} +1 -1
  46. package/dist/chunks/{badge-Ths1Qn1a.js → badge-D7XgWBXc.js} +2 -2
  47. package/dist/chunks/{badge-Ths1Qn1a.js.map → badge-D7XgWBXc.js.map} +1 -1
  48. package/dist/chunks/{breadcrumb-BTiQikk-.js → breadcrumb-DxCHVppV.js} +2 -2
  49. package/dist/chunks/{breadcrumb-BTiQikk-.js.map → breadcrumb-DxCHVppV.js.map} +1 -1
  50. package/dist/chunks/{button-group-CefkGeYL.js → button-group-CXMj0D4r.js} +2 -2
  51. package/dist/chunks/{button-group-CefkGeYL.js.map → button-group-CXMj0D4r.js.map} +1 -1
  52. package/dist/chunks/{card-CEQgHIaL.js → card-C6lPZs5J.js} +2 -2
  53. package/dist/chunks/{card-CEQgHIaL.js.map → card-C6lPZs5J.js.map} +1 -1
  54. package/dist/chunks/carousel-Ka9OA-HJ.js +2 -0
  55. package/dist/chunks/carousel-Ka9OA-HJ.js.map +1 -0
  56. package/dist/chunks/checkbox-5jv0YWoi.js +2 -0
  57. package/dist/chunks/checkbox-5jv0YWoi.js.map +1 -0
  58. package/dist/chunks/chip-input-D8EaNujM.js +2 -0
  59. package/dist/chunks/chip-input-D8EaNujM.js.map +1 -0
  60. package/dist/chunks/{collapse-CBi3RWTf.js → collapse-Bc7fnmyU.js} +2 -2
  61. package/dist/chunks/{collapse-CBi3RWTf.js.map → collapse-Bc7fnmyU.js.map} +1 -1
  62. package/dist/chunks/color-input-DBOd4Jba.js +2 -0
  63. package/dist/chunks/color-input-DBOd4Jba.js.map +1 -0
  64. package/dist/chunks/combobox-DByuUtwh.js +2 -0
  65. package/dist/chunks/{combobox-DNqR4d3V.js.map → combobox-DByuUtwh.js.map} +1 -1
  66. package/dist/chunks/context-HDVxTNPi.js.map +1 -1
  67. package/dist/chunks/context-menu-CGOGliw6.js +2 -0
  68. package/dist/chunks/context-menu-CGOGliw6.js.map +1 -0
  69. package/dist/chunks/datagrid-Dv_9uFef.js +2 -0
  70. package/dist/chunks/datagrid-Dv_9uFef.js.map +1 -0
  71. package/dist/chunks/datepicker-DuYmXiSe.js +2 -0
  72. package/dist/chunks/datepicker-DuYmXiSe.js.map +1 -0
  73. package/dist/chunks/dialogTitle-DMBvXZLT.js +2 -0
  74. package/dist/chunks/dialogTitle-DMBvXZLT.js.map +1 -0
  75. package/dist/chunks/{divider-C1-NoKMV.js → divider-DbWmMSrn.js} +2 -2
  76. package/dist/chunks/{divider-C1-NoKMV.js.map → divider-DbWmMSrn.js.map} +1 -1
  77. package/dist/chunks/drawer-DPxF30qn.js +2 -0
  78. package/dist/chunks/drawer-DPxF30qn.js.map +1 -0
  79. package/dist/chunks/file-input-B5YaBXjI.js +2 -0
  80. package/dist/chunks/file-input-B5YaBXjI.js.map +1 -0
  81. package/dist/chunks/{flex-C2jV5LyV.js → flex-C6CbAkVJ.js} +2 -2
  82. package/dist/chunks/{flex-C2jV5LyV.js.map → flex-C6CbAkVJ.js.map} +1 -1
  83. package/dist/chunks/floating-input-B9YAJ9d4.js +2 -0
  84. package/dist/chunks/floating-input-B9YAJ9d4.js.map +1 -0
  85. package/dist/chunks/{form-field-Bcx96ezd.js → form-field-D74QY_wP.js} +2 -2
  86. package/dist/chunks/{form-field-Bcx96ezd.js.map → form-field-D74QY_wP.js.map} +1 -1
  87. package/dist/chunks/grid-BCVkow3u.js +2 -0
  88. package/dist/chunks/grid-BCVkow3u.js.map +1 -0
  89. package/dist/chunks/{index-5qsV1-cc.d.ts → index--DV9l24Q.d.ts} +18 -14
  90. package/dist/chunks/{index-BAvt_oPe.d.ts → index-B2d_pjjy.d.ts} +6 -5
  91. package/dist/chunks/{index-CbcFEGCh.d.ts → index-BIWaMOr6.d.ts} +9 -2
  92. package/dist/chunks/{index-3JVLrDHv.d.ts → index-BMAdUGiM.d.ts} +7 -1
  93. package/dist/chunks/{index-Cpifcw5a.d.ts → index-BzYAMLX1.d.ts} +44 -4
  94. package/dist/chunks/{index-BbZzaApz.d.ts → index-C9RqZNjk.d.ts} +7 -1
  95. package/dist/chunks/{index-D0Dhs7YI.d.ts → index-CHtvpvUh.d.ts} +6 -1
  96. package/dist/chunks/{index-Bl-_sC4y.d.ts → index-CSmHNy8M.d.ts} +8 -2
  97. package/dist/chunks/{index-Davd7Cue.d.ts → index-CXzKYWtS.d.ts} +3 -2
  98. package/dist/chunks/{index-OnB4_h6x.d.ts → index-DV_JBDoF.d.ts} +2 -2
  99. package/dist/chunks/{index-Es9I0fIS.d.ts → index-DjmN2hBX.d.ts} +2 -2
  100. package/dist/chunks/{index-UjmJQRaG.d.ts → index-DyB9XXLJ.d.ts} +3 -3
  101. package/dist/chunks/{index-CSRGr7pU.d.ts → index-JCnEw-55.d.ts} +2 -6
  102. package/dist/chunks/{index-Ctf5hLue.d.ts → index-Me921MYl.d.ts} +15 -13
  103. package/dist/chunks/{index-C-IrFdKe.d.ts → index-OgWCTy2Y.d.ts} +2 -2
  104. package/dist/chunks/{index-BZpHSGlk.d.ts → index-bZRQGwY7.d.ts} +7 -2
  105. package/dist/chunks/{index-Cm3rPbI1.d.ts → index-qJGkO-ni.d.ts} +3 -3
  106. package/dist/chunks/{input-adorn-DV9tuWXh.js → input-adorn-D0E3Afdf.js} +2 -2
  107. package/dist/chunks/{input-adorn-DV9tuWXh.js.map → input-adorn-D0E3Afdf.js.map} +1 -1
  108. package/dist/chunks/{input-group-YB_zoKud.js → input-group-paIBtI1R.js} +2 -2
  109. package/dist/chunks/{input-group-YB_zoKud.js.map → input-group-paIBtI1R.js.map} +1 -1
  110. package/dist/chunks/{list-BPBZR66Y.js → list-Ch6vxaUs.js} +2 -2
  111. package/dist/chunks/{list-BPBZR66Y.js.map → list-Ch6vxaUs.js.map} +1 -1
  112. package/dist/chunks/menu-DTe27h5q.js +2 -0
  113. package/dist/chunks/{menu-Bqlhottl.js.map → menu-DTe27h5q.js.map} +1 -1
  114. package/dist/chunks/modal-BDQe7xyy.js +2 -0
  115. package/dist/chunks/modal-BDQe7xyy.js.map +1 -0
  116. package/dist/chunks/nativeFormReset-DgsRU9SA.js +2 -0
  117. package/dist/chunks/nativeFormReset-DgsRU9SA.js.map +1 -0
  118. package/dist/chunks/nav-DDI8Dv28.js +2 -0
  119. package/dist/chunks/nav-DDI8Dv28.js.map +1 -0
  120. package/dist/chunks/{nav-overflow-GWARvoQZ.js → nav-overflow-BxAhoMh3.js} +2 -2
  121. package/dist/chunks/{nav-overflow-GWARvoQZ.js.map → nav-overflow-BxAhoMh3.js.map} +1 -1
  122. package/dist/chunks/{navOverflow-C_QJmkPM.js → navOverflow-eSROB_mV.js} +2 -2
  123. package/dist/chunks/{navOverflow-C_QJmkPM.js.map → navOverflow-eSROB_mV.js.map} +1 -1
  124. package/dist/chunks/{navVariant-D4wiKS8I.js → navVariant-Bm5k8CY3.js} +2 -2
  125. package/dist/chunks/{navVariant-D4wiKS8I.js.map → navVariant-Bm5k8CY3.js.map} +1 -1
  126. package/dist/chunks/{navbar-C7dO0YRs.js → navbar-BYMKe2yW.js} +2 -2
  127. package/dist/chunks/{navbar-C7dO0YRs.js.map → navbar-BYMKe2yW.js.map} +1 -1
  128. package/dist/chunks/{notification-oIrUtDhl.js → notification-C1Sd4X7M.js} +2 -2
  129. package/dist/chunks/{notification-oIrUtDhl.js.map → notification-C1Sd4X7M.js.map} +1 -1
  130. package/dist/chunks/{number-field-ChPTSBwI.js → number-field-BIApgIlR.js} +2 -2
  131. package/dist/chunks/{number-field-ChPTSBwI.js.map → number-field-BIApgIlR.js.map} +1 -1
  132. package/dist/chunks/otp-input-CCkfFZID.js +2 -0
  133. package/dist/chunks/otp-input-CCkfFZID.js.map +1 -0
  134. package/dist/chunks/overlayPlacement-D2vfhhg3.js +2 -0
  135. package/dist/chunks/overlayPlacement-D2vfhhg3.js.map +1 -0
  136. package/dist/chunks/{pagination-Dvz8lccd.js → pagination-WINUPT_P.js} +2 -2
  137. package/dist/chunks/pagination-WINUPT_P.js.map +1 -0
  138. package/dist/chunks/placeholder-9rTlnMso.js +2 -0
  139. package/dist/chunks/{placeholder-SPoVRkKE.js.map → placeholder-9rTlnMso.js.map} +1 -1
  140. package/dist/chunks/polymorphic-mAKwlLiW.js +2 -0
  141. package/dist/chunks/{polymorphic-CZIFszAy.js.map → polymorphic-mAKwlLiW.js.map} +1 -1
  142. package/dist/chunks/popover-CrAJTevL.js +2 -0
  143. package/dist/chunks/popover-CrAJTevL.js.map +1 -0
  144. package/dist/chunks/{progress-CiSJDNwx.js → progress-CAqSu3jc.js} +2 -2
  145. package/dist/chunks/{progress-CiSJDNwx.js.map → progress-CAqSu3jc.js.map} +1 -1
  146. package/dist/chunks/{radio-C42F_5OD.js → radio-XlINMnQm.js} +2 -2
  147. package/dist/chunks/{radio-C42F_5OD.js.map → radio-XlINMnQm.js.map} +1 -1
  148. package/dist/chunks/range-input-tyImJHKI.js +2 -0
  149. package/dist/chunks/range-input-tyImJHKI.js.map +1 -0
  150. package/dist/chunks/{renderFormField-_6WswnEX.js → renderFormField-CaZ8-xrn.js} +2 -2
  151. package/dist/chunks/{renderFormField-_6WswnEX.js.map → renderFormField-CaZ8-xrn.js.map} +1 -1
  152. package/dist/chunks/{search-field-OFsb3t4L.js → search-field-CIYtMraB.js} +2 -2
  153. package/dist/chunks/{search-field-OFsb3t4L.js.map → search-field-CIYtMraB.js.map} +1 -1
  154. package/dist/chunks/select-CkucgA6H.js +2 -0
  155. package/dist/chunks/select-CkucgA6H.js.map +1 -0
  156. package/dist/chunks/{skeleton-B2blJGWj.js → skeleton-CXFwCjB9.js} +2 -2
  157. package/dist/chunks/{skeleton-B2blJGWj.js.map → skeleton-CXFwCjB9.js.map} +1 -1
  158. package/dist/chunks/slot-DagH0Gxq.js +2 -0
  159. package/dist/chunks/slot-DagH0Gxq.js.map +1 -0
  160. package/dist/chunks/{spinner-D8lQCW4u.js → spinner-BLQiCoQd.js} +2 -2
  161. package/dist/chunks/{spinner-D8lQCW4u.js.map → spinner-BLQiCoQd.js.map} +1 -1
  162. package/dist/chunks/{stack-DtzW54UK.js → stack-OItr30SC.js} +2 -2
  163. package/dist/chunks/{stack-DtzW54UK.js.map → stack-OItr30SC.js.map} +1 -1
  164. package/dist/chunks/{stepper-tSA84huJ.js → stepper-BLjW7UnC.js} +2 -2
  165. package/dist/chunks/{stepper-tSA84huJ.js.map → stepper-BLjW7UnC.js.map} +1 -1
  166. package/dist/chunks/switch-nt7aXQDX.js +2 -0
  167. package/dist/chunks/switch-nt7aXQDX.js.map +1 -0
  168. package/dist/chunks/table-KtPHx4FG.js +2 -0
  169. package/dist/chunks/table-KtPHx4FG.js.map +1 -0
  170. package/dist/chunks/{tabs-DMFSLjnV.js → tabs-Dh5kH5Ik.js} +2 -2
  171. package/dist/chunks/{tabs-DMFSLjnV.js.map → tabs-Dh5kH5Ik.js.map} +1 -1
  172. package/dist/chunks/{text-input-CR73x-8D.js → text-input-D3jBYiLn.js} +2 -2
  173. package/dist/chunks/{text-input-CR73x-8D.js.map → text-input-D3jBYiLn.js.map} +1 -1
  174. package/dist/chunks/{textarea-C-1cMyH4.js → textarea-2BJCzT97.js} +2 -2
  175. package/dist/chunks/{textarea-C-1cMyH4.js.map → textarea-2BJCzT97.js.map} +1 -1
  176. package/dist/chunks/{time-field-CbCfOQZz.js → time-field-ClPbatW3.js} +2 -2
  177. package/dist/chunks/{time-field-CbCfOQZz.js.map → time-field-ClPbatW3.js.map} +1 -1
  178. package/dist/chunks/toast-D5-58Ch1.js +2 -0
  179. package/dist/chunks/toast-D5-58Ch1.js.map +1 -0
  180. package/dist/chunks/tooltip-TGFFlOJL.js +2 -0
  181. package/dist/chunks/tooltip-TGFFlOJL.js.map +1 -0
  182. package/dist/chunks/tree-BO0WSxQa.js +2 -0
  183. package/dist/chunks/tree-BO0WSxQa.js.map +1 -0
  184. package/dist/chunks/useButtonSemantics-DN3OIXtG.js +2 -0
  185. package/dist/chunks/useButtonSemantics-DN3OIXtG.js.map +1 -0
  186. package/dist/chunks/{useDialogElement-BfygWBPZ.js → useDialogElement-yEgUSejP.js} +2 -2
  187. package/dist/chunks/useDialogElement-yEgUSejP.js.map +1 -0
  188. package/dist/chunks/{useFormField-DH2tlc3e.js → useFormField-q21MOgh8.js} +2 -2
  189. package/dist/chunks/{useFormField-DH2tlc3e.js.map → useFormField-q21MOgh8.js.map} +1 -1
  190. package/dist/chunks/useFormReset-BK5Yb24_.js +2 -0
  191. package/dist/chunks/useFormReset-BK5Yb24_.js.map +1 -0
  192. package/dist/chunks/useHeldBack-o-CsPcSe.js +2 -0
  193. package/dist/chunks/useHeldBack-o-CsPcSe.js.map +1 -0
  194. package/dist/chunks/{useOpenStateProps-BhjSQ3f6.js → useOpenStateProps-CdSO1nmI.js} +2 -2
  195. package/dist/chunks/{useOpenStateProps-BhjSQ3f6.js.map → useOpenStateProps-CdSO1nmI.js.map} +1 -1
  196. package/dist/chunks/useOverlayMaxHeight-5UnurH0W.js +2 -0
  197. package/dist/chunks/useOverlayMaxHeight-5UnurH0W.js.map +1 -0
  198. package/dist/chunks/{useRequiredValueInput-gYN8I-LY.js → useRequiredValueInput-CL7AIgqz.js} +2 -2
  199. package/dist/chunks/{useRequiredValueInput-gYN8I-LY.js.map → useRequiredValueInput-CL7AIgqz.js.map} +1 -1
  200. package/dist/chunks/useSelectionForMode-B_oTWvEy.js +2 -0
  201. package/dist/chunks/useSelectionForMode-B_oTWvEy.js.map +1 -0
  202. package/dist/chunks/useToastRegionQueue-QHa4v7k6.js +2 -0
  203. package/dist/chunks/useToastRegionQueue-QHa4v7k6.js.map +1 -0
  204. package/dist/chunks/useTransitionState-WEw9C0yn.js +2 -0
  205. package/dist/chunks/useTransitionState-WEw9C0yn.js.map +1 -0
  206. package/dist/chunks/{visibleState-CWyQak65.js → visibleState-DVyxSMUT.js} +2 -2
  207. package/dist/chunks/{visibleState-CWyQak65.js.map → visibleState-DVyxSMUT.js.map} +1 -1
  208. package/dist/close-button.js +1 -1
  209. package/dist/collapse.js +1 -1
  210. package/dist/color-input.d.ts +1 -1
  211. package/dist/color-input.js +1 -1
  212. package/dist/combobox.js +1 -1
  213. package/dist/context-menu.js +1 -1
  214. package/dist/datagrid.d.ts +1 -1
  215. package/dist/datagrid.js +1 -1
  216. package/dist/datepicker.js +1 -1
  217. package/dist/divider.js +1 -1
  218. package/dist/drawer.d.ts +1 -1
  219. package/dist/drawer.js +1 -1
  220. package/dist/file-input.d.ts +1 -1
  221. package/dist/file-input.js +1 -1
  222. package/dist/flex.js +1 -1
  223. package/dist/floating-input.d.ts +1 -1
  224. package/dist/floating-input.js +1 -1
  225. package/dist/form-field.js +1 -1
  226. package/dist/form.js +1 -1
  227. package/dist/grid.js +1 -1
  228. package/dist/index.d.ts +19 -19
  229. package/dist/index.js +1 -1
  230. package/dist/input-adorn.js +1 -1
  231. package/dist/input-group.js +1 -1
  232. package/dist/link.js +1 -1
  233. package/dist/list.js +1 -1
  234. package/dist/menu.js +1 -1
  235. package/dist/modal.d.ts +1 -1
  236. package/dist/modal.js +1 -1
  237. package/dist/nav-overflow.js +1 -1
  238. package/dist/nav.d.ts +1 -1
  239. package/dist/nav.js +1 -1
  240. package/dist/navbar.js +1 -1
  241. package/dist/notification.js +1 -1
  242. package/dist/number-field.js +1 -1
  243. package/dist/otp-input.d.ts +1 -1
  244. package/dist/otp-input.js +1 -1
  245. package/dist/pagination.d.ts +1 -1
  246. package/dist/pagination.js +1 -1
  247. package/dist/placeholder.js +1 -1
  248. package/dist/popover.js +1 -1
  249. package/dist/progress.js +1 -1
  250. package/dist/radio.d.ts +1 -1
  251. package/dist/radio.js +1 -1
  252. package/dist/range-input.d.ts +1 -1
  253. package/dist/range-input.js +1 -1
  254. package/dist/search-field.js +1 -1
  255. package/dist/select.d.ts +1 -1
  256. package/dist/select.js +1 -1
  257. package/dist/skeleton.js +1 -1
  258. package/dist/spinner.js +1 -1
  259. package/dist/stack.js +1 -1
  260. package/dist/stepper.js +1 -1
  261. package/dist/style.css +1 -1
  262. package/dist/switch.d.ts +1 -1
  263. package/dist/switch.js +1 -1
  264. package/dist/table.d.ts +1 -1
  265. package/dist/table.js +1 -1
  266. package/dist/tabs.js +1 -1
  267. package/dist/text-input.js +1 -1
  268. package/dist/textarea.js +1 -1
  269. package/dist/time-field.js +1 -1
  270. package/dist/toast.d.ts +1 -1
  271. package/dist/toast.js +1 -1
  272. package/dist/tooltip.js +1 -1
  273. package/dist/tree.js +1 -1
  274. package/dist/visually-hidden.js +1 -1
  275. package/package.json +11 -11
  276. package/dist/chunks/Button-ZU-x1uN_.js +0 -2
  277. package/dist/chunks/Button-ZU-x1uN_.js.map +0 -1
  278. package/dist/chunks/CloseButton-BPUI5iGX.js +0 -2
  279. package/dist/chunks/CloseButton-BPUI5iGX.js.map +0 -1
  280. package/dist/chunks/Link-DE8NSAXJ.js +0 -2
  281. package/dist/chunks/Link-DE8NSAXJ.js.map +0 -1
  282. package/dist/chunks/Menu-BiE9CzNk.js +0 -2
  283. package/dist/chunks/Menu-BiE9CzNk.js.map +0 -1
  284. package/dist/chunks/MenuToggle-W-ZSHFwF.js +0 -2
  285. package/dist/chunks/MenuToggle-W-ZSHFwF.js.map +0 -1
  286. package/dist/chunks/alert-DSLg5MBb.js +0 -2
  287. package/dist/chunks/autocomplete-Btcsjrh3.js +0 -2
  288. package/dist/chunks/autocomplete-Btcsjrh3.js.map +0 -1
  289. package/dist/chunks/carousel-DC-UGc6W.js +0 -2
  290. package/dist/chunks/carousel-DC-UGc6W.js.map +0 -1
  291. package/dist/chunks/checkbox-ko6CdtoT.js +0 -2
  292. package/dist/chunks/checkbox-ko6CdtoT.js.map +0 -1
  293. package/dist/chunks/chip-input-CugY8EOc.js +0 -2
  294. package/dist/chunks/chip-input-CugY8EOc.js.map +0 -1
  295. package/dist/chunks/color-input-C4zMWlvm.js +0 -2
  296. package/dist/chunks/color-input-C4zMWlvm.js.map +0 -1
  297. package/dist/chunks/combobox-DNqR4d3V.js +0 -2
  298. package/dist/chunks/context-menu-D3DNFN-P.js +0 -2
  299. package/dist/chunks/context-menu-D3DNFN-P.js.map +0 -1
  300. package/dist/chunks/datagrid-n9vFeXN1.js +0 -2
  301. package/dist/chunks/datagrid-n9vFeXN1.js.map +0 -1
  302. package/dist/chunks/datepicker-DqztYJD6.js +0 -2
  303. package/dist/chunks/datepicker-DqztYJD6.js.map +0 -1
  304. package/dist/chunks/drawer-CRv9jmbp.js +0 -2
  305. package/dist/chunks/drawer-CRv9jmbp.js.map +0 -1
  306. package/dist/chunks/file-input-D_Gl1h-T.js +0 -2
  307. package/dist/chunks/file-input-D_Gl1h-T.js.map +0 -1
  308. package/dist/chunks/floating-input-D4gWFfOU.js +0 -2
  309. package/dist/chunks/floating-input-D4gWFfOU.js.map +0 -1
  310. package/dist/chunks/grid-CkdPftit.js +0 -2
  311. package/dist/chunks/grid-CkdPftit.js.map +0 -1
  312. package/dist/chunks/menu-Bqlhottl.js +0 -2
  313. package/dist/chunks/modal-CHvsDTyl.js +0 -2
  314. package/dist/chunks/modal-CHvsDTyl.js.map +0 -1
  315. package/dist/chunks/nav-B4U_Hqs7.js +0 -2
  316. package/dist/chunks/nav-B4U_Hqs7.js.map +0 -1
  317. package/dist/chunks/otp-input-DUtCMg8P.js +0 -2
  318. package/dist/chunks/otp-input-DUtCMg8P.js.map +0 -1
  319. package/dist/chunks/overlayPlacement-Q6bcbXA5.js +0 -2
  320. package/dist/chunks/overlayPlacement-Q6bcbXA5.js.map +0 -1
  321. package/dist/chunks/pagination-Dvz8lccd.js.map +0 -1
  322. package/dist/chunks/placeholder-SPoVRkKE.js +0 -2
  323. package/dist/chunks/polymorphic-CZIFszAy.js +0 -2
  324. package/dist/chunks/popover-C_32yD9W.js +0 -2
  325. package/dist/chunks/popover-C_32yD9W.js.map +0 -1
  326. package/dist/chunks/range-input-DeZq_9S7.js +0 -2
  327. package/dist/chunks/range-input-DeZq_9S7.js.map +0 -1
  328. package/dist/chunks/select-DwyL6aqY.js +0 -2
  329. package/dist/chunks/select-DwyL6aqY.js.map +0 -1
  330. package/dist/chunks/slot-BQVx1Eew.js +0 -2
  331. package/dist/chunks/slot-BQVx1Eew.js.map +0 -1
  332. package/dist/chunks/switch-cp3IZg3L.js +0 -2
  333. package/dist/chunks/switch-cp3IZg3L.js.map +0 -1
  334. package/dist/chunks/table-CBTg5Yuq.js +0 -2
  335. package/dist/chunks/table-CBTg5Yuq.js.map +0 -1
  336. package/dist/chunks/toast-Dd0J2e1z.js +0 -2
  337. package/dist/chunks/toast-Dd0J2e1z.js.map +0 -1
  338. package/dist/chunks/tooltip-CmKeQwYw.js +0 -2
  339. package/dist/chunks/tooltip-CmKeQwYw.js.map +0 -1
  340. package/dist/chunks/tree-DNj_EfUl.js +0 -2
  341. package/dist/chunks/tree-DNj_EfUl.js.map +0 -1
  342. package/dist/chunks/useButtonSemantics-B1SbGaDO.js +0 -2
  343. package/dist/chunks/useButtonSemantics-B1SbGaDO.js.map +0 -1
  344. package/dist/chunks/useDialogElement-BfygWBPZ.js.map +0 -1
  345. package/dist/chunks/useDialogTitle-DiB4YDGI.js +0 -2
  346. package/dist/chunks/useDialogTitle-DiB4YDGI.js.map +0 -1
  347. package/dist/chunks/useFloatingOverlay-BuiI_CCn.js +0 -2
  348. package/dist/chunks/useFloatingOverlay-BuiI_CCn.js.map +0 -1
  349. package/dist/chunks/useHeldBack-eeTfpa_t.js +0 -2
  350. package/dist/chunks/useHeldBack-eeTfpa_t.js.map +0 -1
  351. package/dist/chunks/useOverlayMaxHeight-DTgbr4UQ.js +0 -2
  352. package/dist/chunks/useOverlayMaxHeight-DTgbr4UQ.js.map +0 -1
  353. package/dist/chunks/useToastRegionQueue-CuAMxAIA.js +0 -2
  354. package/dist/chunks/useToastRegionQueue-CuAMxAIA.js.map +0 -1
  355. package/dist/chunks/useTransitionState-sQUQey74.js +0 -2
  356. package/dist/chunks/useTransitionState-sQUQey74.js.map +0 -1
@@ -5,7 +5,9 @@ import React, { DialogHTMLAttributes, ElementType, ReactElement } from "react";
5
5
  interface DrawerProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCancel' | 'onClose'> {
6
6
  /**
7
7
  * Show a backdrop while the drawer is open. `'static'` blocks closing on backdrop click
8
- * (the drawer nudges instead).
8
+ * (the drawer nudges instead). `false` takes effect only together with `scroll`: the drawer
9
+ * then opens non-modal, with no backdrop and the page usable behind it. Without `scroll` the
10
+ * drawer stays modal, backdrop and all, as chassis-css's vanilla drawer derives it.
9
11
  */
10
12
  backdrop?: boolean | 'static';
11
13
  /**
@@ -94,18 +96,6 @@ interface DrawerProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onC
94
96
  */
95
97
  visible?: boolean;
96
98
  }
97
- interface DrawerContextProps {
98
- /**
99
- * Requests the drawer be closed — fires `onClose`. Wire this to any element's `onClick`; see
100
- * `useDrawer`.
101
- */
102
- close: () => void;
103
- /**
104
- * Id generated by `Drawer` and applied automatically by `DrawerTitle` to itself, so the
105
- * dialog's `aria-labelledby` resolves to it without any manual wiring.
106
- */
107
- titleId?: string;
108
- }
109
99
  declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDialogElement>>;
110
100
  //#endregion
111
101
  //#region src/components/drawer/DrawerBody.d.ts
@@ -197,9 +187,23 @@ type DrawerTitleComponent = (<C extends ElementType = 'h2'>(props: DrawerTitlePr
197
187
  };
198
188
  declare const DrawerTitle: DrawerTitleComponent;
199
189
  //#endregion
190
+ //#region src/components/drawer/context.d.ts
191
+ interface DrawerContextProps {
192
+ /**
193
+ * Requests the drawer be closed — fires `onClose`. Wire this to any element's `onClick`; see
194
+ * `useDrawer`.
195
+ */
196
+ close: () => void;
197
+ /**
198
+ * Id generated by `Drawer` and applied automatically by `DrawerTitle` to itself, so the
199
+ * dialog's `aria-labelledby` resolves to it without any manual wiring.
200
+ */
201
+ titleId?: string;
202
+ }
203
+ //#endregion
200
204
  //#region src/components/drawer/useDrawer.d.ts
201
205
  type UseDrawerResult = DrawerContextProps;
202
206
  declare const useDrawer: () => UseDrawerResult;
203
207
  //#endregion
204
208
  export { DrawerHeader as a, DrawerFooterProps as c, Drawer as d, DrawerProps as f, DrawerTitleProps as i, DrawerBody as l, useDrawer as n, DrawerHeaderProps as o, DrawerTitle as r, DrawerFooter as s, UseDrawerResult as t, DrawerBodyProps as u };
205
- //# sourceMappingURL=index-5qsV1-cc.d.ts.map
209
+ //# sourceMappingURL=index--DV9l24Q.d.ts.map
@@ -51,9 +51,9 @@ interface RadioGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'def
51
51
  */
52
52
  className?: string;
53
53
  /**
54
- * The selected value, uncontrolled.
54
+ * The selected value, uncontrolled. `null` for none.
55
55
  */
56
- defaultValue?: string;
56
+ defaultValue?: string | null;
57
57
  /**
58
58
  * A description for the group, rendered below the options.
59
59
  */
@@ -104,11 +104,12 @@ interface RadioGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'def
104
104
  */
105
105
  valid?: boolean;
106
106
  /**
107
- * The selected value, controlled.
107
+ * The selected value, controlled. `null` clears the selection; `undefined` would make the group
108
+ * uncontrolled instead.
108
109
  */
109
- value?: string;
110
+ value?: string | null;
110
111
  }
111
112
  declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
112
113
  //#endregion
113
114
  export { RadioProps as i, RadioGroupProps as n, Radio as r, RadioGroup as t };
114
- //# sourceMappingURL=index-BAvt_oPe.d.ts.map
115
+ //# sourceMappingURL=index-B2d_pjjy.d.ts.map
@@ -42,12 +42,19 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'check
42
42
  * Callback fired when the selected state changes.
43
43
  */
44
44
  onChange?: (isSelected: boolean) => void;
45
+ /**
46
+ * Toggle the read-only state: the control keeps its state, can still be focused, and says it
47
+ * is read-only (`aria-readonly`).
48
+ */
49
+ readOnly?: boolean;
45
50
  /**
46
51
  * Size the component sm or lg.
47
52
  */
48
53
  size?: 'sm' | 'lg';
49
54
  /**
50
- * Specifies the type of component.
55
+ * `'radio'` makes the switch one of a group, as radios are: the switches of its `name` (in its
56
+ * form) have one on at a time, a click doesn't turn the one that is on off, and `required` asks
57
+ * for one of the group. It renders a checkbox with `role="switch"` either way.
51
58
  */
52
59
  type?: 'checkbox' | 'radio';
53
60
  /**
@@ -58,4 +65,4 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'check
58
65
  declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
59
66
  //#endregion
60
67
  export { SwitchProps as n, Switch as t };
61
- //# sourceMappingURL=index-CbcFEGCh.d.ts.map
68
+ //# sourceMappingURL=index-BIWaMOr6.d.ts.map
@@ -98,6 +98,12 @@ interface AutocompleteProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChan
98
98
  * Placeholder for the search field inside the dropdown.
99
99
  */
100
100
  searchPlaceholder?: string;
101
+ /**
102
+ * Text the toggle of a `multiple` autocomplete shows once more than one option is selected,
103
+ * from the count. A function, so a translation can choose its plural form. Defaults to
104
+ * `` (count) => `${count} selected` ``.
105
+ */
106
+ selectedText?: (count: number) => ReactNode;
101
107
  /**
102
108
  * Size the component sm or lg.
103
109
  */
@@ -132,4 +138,4 @@ declare const AutocompleteItem: {
132
138
  };
133
139
  //#endregion
134
140
  export { Autocomplete as a, AutocompleteGroupProps as i, AutocompleteItemProps as n, AutocompleteProps as o, AutocompleteGroup as r, AutocompleteItem as t };
135
- //# sourceMappingURL=index-3JVLrDHv.d.ts.map
141
+ //# sourceMappingURL=index-BMAdUGiM.d.ts.map
@@ -2,7 +2,7 @@ import "./focus-ring-Bs80iIBN.js";
2
2
  import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
3
3
  import { n as LinkProps } from "./Link-CKymd2ru.js";
4
4
  import { t as NavVariant } from "./navVariant-CnD21GBS.js";
5
- import React, { ElementType, HTMLAttributes, ReactElement, Ref } from "react";
5
+ import React, { ElementType, HTMLAttributes, LiHTMLAttributes, MouseEventHandler, ReactElement, Ref } from "react";
6
6
  //#region src/components/nav/Nav.d.ts
7
7
  interface NavItemDef {
8
8
  /**
@@ -10,7 +10,7 @@ interface NavItemDef {
10
10
  */
11
11
  label: React.ReactNode;
12
12
  /**
13
- * URL for the nav link.
13
+ * URL for the nav link. Without one the link is a `<button>`.
14
14
  */
15
15
  href?: string;
16
16
  /**
@@ -21,6 +21,11 @@ interface NavItemDef {
21
21
  * Marks the item as disabled.
22
22
  */
23
23
  disabled?: boolean;
24
+ /**
25
+ * Called when the item is clicked. An item without `href` renders its link as a `<button>`,
26
+ * which this gives something to do, such as switching a tab's panel.
27
+ */
28
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
24
29
  }
25
30
  type NavOwnProps<C extends ElementType> = {
26
31
  /**
@@ -84,12 +89,47 @@ type NavLinkComponent = (<C extends ElementType = 'a'>(props: NavLinkProps<C> &
84
89
  declare const NavLink: NavLinkComponent;
85
90
  //#endregion
86
91
  //#region src/components/nav/NavItem.d.ts
87
- type NavItemProps<C extends ElementType = 'a'> = NavLinkProps<C> & {
92
+ type NavItemOwnProps<C extends ElementType> = {
93
+ /**
94
+ * Toggle the active state of the item's link.
95
+ */
96
+ active?: boolean;
97
+ /**
98
+ * Render the item's link as its child element, as `NavLink`'s `asChild` does.
99
+ */
100
+ asChild?: boolean;
101
+ /**
102
+ * A string of all className you want applied to the `<li>`, which takes the ref and the other
103
+ * attributes too.
104
+ */
105
+ className?: string;
106
+ /**
107
+ * Component used for the item's link. Either a string to use a HTML element or a component.
108
+ */
109
+ component?: C;
110
+ /**
111
+ * Toggle the disabled state of the item's link.
112
+ */
113
+ disabled?: boolean;
114
+ /**
115
+ * URL for the item's link.
116
+ */
117
+ href?: string;
88
118
  /**
89
119
  * Keeps the item in the list inside a `NavOverflow`, whatever the width.
90
120
  */
91
121
  keepVisible?: boolean;
122
+ /**
123
+ * Any other props of the item's link, such as a router link's `to`, `target` or `aria-label`,
124
+ * and its own `className`.
125
+ */
126
+ linkProps?: Omit<NavLinkProps<C>, 'active' | 'asChild' | 'children' | 'component' | 'disabled' | 'href' | 'onClick'>;
127
+ /**
128
+ * Callback fired on a click of the item's link, or of the `<li>` when it has none.
129
+ */
130
+ onClick?: MouseEventHandler<HTMLElement>;
92
131
  };
132
+ type NavItemProps<C extends ElementType = 'a'> = Omit<LiHTMLAttributes<HTMLLIElement>, keyof NavItemOwnProps<C>> & NavItemOwnProps<C>;
93
133
  type NavItemComponent = (<C extends ElementType = 'a'>(props: NavItemProps<C> & {
94
134
  ref?: Ref<HTMLLIElement>;
95
135
  }) => ReactElement | null) & {
@@ -107,4 +147,4 @@ interface NavTitleProps extends HTMLAttributes<HTMLLIElement> {
107
147
  declare const NavTitle: React.ForwardRefExoticComponent<NavTitleProps & React.RefAttributes<HTMLLIElement>>;
108
148
  //#endregion
109
149
  export { NavLink as a, NavItemDef as c, NavItemProps as i, NavProps as l, NavTitleProps as n, NavLinkProps as o, NavItem as r, Nav as s, NavTitle as t };
110
- //# sourceMappingURL=index-Cpifcw5a.d.ts.map
150
+ //# sourceMappingURL=index-BzYAMLX1.d.ts.map
@@ -216,6 +216,12 @@ interface TableRowProps {
216
216
  * A string of all className you want applied to the row.
217
217
  */
218
218
  className?: string;
219
+ /**
220
+ * The unique id of the row, referenced by `selectedKeys`/`disabledKeys` and reported by
221
+ * `onSelectionChange` as it is given. A React `key` is always a string, so `key={row.id}`
222
+ * turns a numeric id into one.
223
+ */
224
+ id?: Key;
219
225
  /**
220
226
  * A string representation of the row's contents, used for typeahead.
221
227
  */
@@ -228,4 +234,4 @@ interface TableRowProps {
228
234
  declare const TableRow: (props: TableRowProps) => ReactElement;
229
235
  //#endregion
230
236
  export { TableColumn as a, TableCellProps as c, Table as d, TableProps as f, TableHeaderProps$1 as i, TableBody$1 as l, TableRowProps as n, TableColumnProps as o, TableHeader$1 as r, TableCell as s, TableRow as t, TableBodyProps$1 as u };
231
- //# sourceMappingURL=index-BbZzaApz.d.ts.map
237
+ //# sourceMappingURL=index-C9RqZNjk.d.ts.map
@@ -54,6 +54,11 @@ interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'che
54
54
  * use the group's `onChange` instead.
55
55
  */
56
56
  onChange?: (isSelected: boolean) => void;
57
+ /**
58
+ * Toggle the read-only state: the control keeps its state, can still be focused, and says it
59
+ * is read-only (`aria-readonly`).
60
+ */
61
+ readOnly?: boolean;
57
62
  /**
58
63
  * Size the component sm or lg.
59
64
  */
@@ -142,4 +147,4 @@ interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, '
142
147
  declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
143
148
  //#endregion
144
149
  export { CheckboxProps as i, CheckboxGroupProps as n, Checkbox as r, CheckboxGroup as t };
145
- //# sourceMappingURL=index-D0Dhs7YI.d.ts.map
150
+ //# sourceMappingURL=index-CHtvpvUh.d.ts.map
@@ -26,6 +26,11 @@ interface OtpInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
26
26
  * Prevents input and makes every box non-interactive.
27
27
  */
28
28
  disabled?: boolean;
29
+ /**
30
+ * The id of a form elsewhere on the page that the field belongs to: the boxes and the hidden
31
+ * `name` input join it, and a reset of it puts the code back.
32
+ */
33
+ form?: string;
29
34
  /**
30
35
  * Splits the boxes into groups (e.g. `[3, 3]` for a "123-456" layout), rendering a
31
36
  * `.form-otp-separator` between each group. The total number of boxes becomes the sum of
@@ -79,7 +84,8 @@ interface OtpInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
79
84
  */
80
85
  onChange?: (value: string) => void;
81
86
  /**
82
- * Callback fired once every box is filled.
87
+ * Callback fired on each edit that leaves every box filled, so a correction to a complete code
88
+ * fires it again with the new code.
83
89
  */
84
90
  onComplete?: (value: string) => void;
85
91
  /**
@@ -111,4 +117,4 @@ interface OtpInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
111
117
  declare const OtpInput: React.ForwardRefExoticComponent<OtpInputProps & React.RefAttributes<HTMLDivElement>>;
112
118
  //#endregion
113
119
  export { OtpInputProps as n, OtpInput as t };
114
- //# sourceMappingURL=index-Bl-_sC4y.d.ts.map
120
+ //# sourceMappingURL=index-CSmHNy8M.d.ts.map
@@ -33,7 +33,8 @@ interface FloatingInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'child
33
33
  */
34
34
  invalid?: boolean;
35
35
  /**
36
- * An error message for the field, rendered below the control when `invalid` is set.
36
+ * An error message for the field, rendered below the control when `invalid` is set, or when
37
+ * the field inside shows a submit it held back.
37
38
  */
38
39
  invalidFeedback?: ReactNode;
39
40
  /**
@@ -52,4 +53,4 @@ interface FloatingInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'child
52
53
  declare const FloatingInput: React.ForwardRefExoticComponent<FloatingInputProps & React.RefAttributes<HTMLDivElement>>;
53
54
  //#endregion
54
55
  export { FloatingInputProps as n, FloatingInput as t };
55
- //# sourceMappingURL=index-Davd7Cue.d.ts.map
56
+ //# sourceMappingURL=index-CXzKYWtS.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import "./focus-ring-Bs80iIBN.js";
2
2
  import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from "react";
3
3
  //#region src/components/file-input/FileInput.d.ts
4
- interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
+ interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size' | 'value'> {
5
5
  /**
6
6
  * A string of all className you want applied to the component.
7
7
  */
@@ -53,4 +53,4 @@ interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'si
53
53
  declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
54
54
  //#endregion
55
55
  export { FileInputProps as n, FileInput as t };
56
- //# sourceMappingURL=index-OnB4_h6x.d.ts.map
56
+ //# sourceMappingURL=index-DV_JBDoF.d.ts.map
@@ -7,7 +7,7 @@ import { ToastQueue } from "react-stately";
7
7
  //#region src/components/toast/Toast.d.ts
8
8
  interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
9
9
  /**
10
- * Apply a CSS fade transition to the toast.
10
+ * Apply a CSS fade transition to the toast. Off, the toast appears and disappears at once.
11
11
  */
12
12
  animation?: boolean;
13
13
  /**
@@ -268,4 +268,4 @@ type UseToastResult = ToastContextProps;
268
268
  declare const useToast: () => UseToastResult;
269
269
  //#endregion
270
270
  export { Toast as _, closeToast as a, ToasterProps as c, ToastHeader as d, ToastHeaderProps as f, ToastBodyProps as g, ToastBody as h, addToast as i, ToastIcon as l, ToastFooterProps as m, useToast as n, toastQueue as o, ToastFooter as p, ToastContent as r, Toaster as s, UseToastResult as t, ToastIconProps as u, ToastProps as v };
271
- //# sourceMappingURL=index-Es9I0fIS.d.ts.map
271
+ //# sourceMappingURL=index-DjmN2hBX.d.ts.map
@@ -122,8 +122,8 @@ interface DataGridOwnProps<T extends object> {
122
122
  */
123
123
  'aria-labelledby'?: string;
124
124
  /**
125
- * Set the vertical alignment of cell content. Mirrors `Table`'s prop of the same name for API
126
- * parity — same as `Table`, this awaits chassis-css adding the matching `.align-*` styles.
125
+ * Set the vertical alignment of the body cells' content, as `Table`'s prop of the same name
126
+ * does. The header row keeps its own alignment, as a table's does.
127
127
  */
128
128
  align?: 'bottom' | 'middle' | 'top';
129
129
  /**
@@ -361,4 +361,4 @@ declare const DataGridSelectionCell: ({ className }: DataGridSelectionCellProps)
361
361
  declare const DataGridSelectAllCell: ({ className }: DataGridSelectionCellProps) => React.JSX.Element;
362
362
  //#endregion
363
363
  export { DataGridRowProps as a, DataGridCell as c, DataGridProps as d, DataGridHeader as f, DataGridBodyProps as h, DataGridRow as i, DataGridCellProps as l, DataGridBody as m, DataGridSelectionCell as n, DataGridColumn as o, DataGridHeaderProps as p, DataGridSelectionCellProps as r, DataGridColumnProps as s, DataGridSelectAllCell as t, DataGrid as u };
364
- //# sourceMappingURL=index-UjmJQRaG.d.ts.map
364
+ //# sourceMappingURL=index-DyB9XXLJ.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import "./focus-ring-Bs80iIBN.js";
2
2
  import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from "react";
3
3
  //#region src/components/range-input/RangeInput.d.ts
4
- interface RangeInputProps extends InputHTMLAttributes<HTMLInputElement> {
4
+ interface RangeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'placeholder' | 'readOnly'> {
5
5
  /**
6
6
  * A string of all className you want applied to the component.
7
7
  */
@@ -38,10 +38,6 @@ interface RangeInputProps extends InputHTMLAttributes<HTMLInputElement> {
38
38
  * Method called immediately after the `value` prop changes.
39
39
  */
40
40
  onChange?: ChangeEventHandler<HTMLInputElement>;
41
- /**
42
- * Toggle the readonly state for the component.
43
- */
44
- readOnly?: boolean;
45
41
  /**
46
42
  * Specifies the interval between legal numbers in the component.
47
43
  */
@@ -64,4 +60,4 @@ interface RangeInputProps extends InputHTMLAttributes<HTMLInputElement> {
64
60
  declare const RangeInput: React.ForwardRefExoticComponent<RangeInputProps & React.RefAttributes<HTMLInputElement>>;
65
61
  //#endregion
66
62
  export { RangeInputProps as n, RangeInput as t };
67
- //# sourceMappingURL=index-CSRGr7pU.d.ts.map
63
+ //# sourceMappingURL=index-JCnEw-55.d.ts.map
@@ -84,18 +84,6 @@ interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCa
84
84
  */
85
85
  visible?: boolean;
86
86
  }
87
- interface ModalContextProps {
88
- /**
89
- * Requests the modal be closed — fires `onClose`. Wire this to any element's `onClick`; see
90
- * `useModal`.
91
- */
92
- close: () => void;
93
- /**
94
- * Id generated by `Modal` and applied automatically by `ModalTitle` to itself, so the
95
- * dialog's `aria-labelledby` resolves to it without any manual wiring.
96
- */
97
- titleId?: string;
98
- }
99
87
  declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDialogElement>>;
100
88
  //#endregion
101
89
  //#region src/components/modal/ModalBody.d.ts
@@ -187,9 +175,23 @@ type ModalTitleComponent = (<C extends ElementType = 'h2'>(props: ModalTitleProp
187
175
  };
188
176
  declare const ModalTitle: ModalTitleComponent;
189
177
  //#endregion
178
+ //#region src/components/modal/context.d.ts
179
+ interface ModalContextProps {
180
+ /**
181
+ * Requests the modal be closed — fires `onClose`. Wire this to any element's `onClick`; see
182
+ * `useModal`.
183
+ */
184
+ close: () => void;
185
+ /**
186
+ * Id generated by `Modal` and applied automatically by `ModalTitle` to itself, so the
187
+ * dialog's `aria-labelledby` resolves to it without any manual wiring.
188
+ */
189
+ titleId?: string;
190
+ }
191
+ //#endregion
190
192
  //#region src/components/modal/useModal.d.ts
191
193
  type UseModalResult = ModalContextProps;
192
194
  declare const useModal: () => UseModalResult;
193
195
  //#endregion
194
196
  export { ModalHeader as a, ModalFooterProps as c, Modal as d, ModalProps as f, ModalTitleProps as i, ModalBody as l, useModal as n, ModalHeaderProps as o, ModalTitle as r, ModalFooter as s, UseModalResult as t, ModalBodyProps as u };
195
- //# sourceMappingURL=index-Ctf5hLue.d.ts.map
197
+ //# sourceMappingURL=index-Me921MYl.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import "./focus-ring-Bs80iIBN.js";
2
2
  import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from "react";
3
3
  //#region src/components/color-input/ColorInput.d.ts
4
- interface ColorInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
+ interface ColorInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'placeholder' | 'readOnly' | 'size'> {
5
5
  /**
6
6
  * A string of all className you want applied to the component.
7
7
  */
@@ -56,4 +56,4 @@ interface ColorInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 's
56
56
  declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLInputElement>>;
57
57
  //#endregion
58
58
  export { ColorInputProps as n, ColorInput as t };
59
- //# sourceMappingURL=index-C-IrFdKe.d.ts.map
59
+ //# sourceMappingURL=index-OgWCTy2Y.d.ts.map
@@ -20,9 +20,14 @@ interface PaginationProps extends HTMLAttributes<HTMLElement> {
20
20
  */
21
21
  'aria-label'?: string;
22
22
  /**
23
- * A string of all className you want applied to the base component.
23
+ * A string of all className you want applied to the `<nav>`, which takes the ref and the other
24
+ * attributes too.
24
25
  */
25
26
  className?: string;
27
+ /**
28
+ * Classes for the `.pagination` list inside the `<nav>`.
29
+ */
30
+ listClassName?: string;
26
31
  /**
27
32
  * Maximum number of visible page buttons (default: 5). Flanking pages are collapsed to ellipsis.
28
33
  */
@@ -136,4 +141,4 @@ interface UsePaginationResult<T extends HTMLElement = HTMLButtonElement> {
136
141
  declare function usePagination<T extends HTMLElement = HTMLButtonElement>({ prevDisabled, nextDisabled, onPrev, onNext }: UsePaginationOptions): UsePaginationResult<T>;
137
142
  //#endregion
138
143
  export { Pagination as a, PaginationItemProps as i, usePagination as n, PaginationProps as o, PaginationItem as r, UsePaginationResult as t };
139
- //# sourceMappingURL=index-BZpHSGlk.d.ts.map
144
+ //# sourceMappingURL=index-bZRQGwY7.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import "./focus-ring-Bs80iIBN.js";
2
- import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from "react";
2
+ import React, { ChangeEventHandler, ReactNode, SelectHTMLAttributes } from "react";
3
3
  //#region src/components/select/Select.d.ts
4
4
  interface SelectOptionDef {
5
5
  /**
@@ -23,7 +23,7 @@ interface SelectOptionDef {
23
23
  */
24
24
  value?: string | number;
25
25
  }
26
- interface SelectProps extends Omit<InputHTMLAttributes<HTMLSelectElement>, 'size'> {
26
+ interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
27
27
  /**
28
28
  * Content rendered at the select's trailing edge, e.g. a `InputAdorn` icon, text, or button.
29
29
  * Setting either `adornStart` or `adornEnd` renders a `.form-input` wrapper around a
@@ -113,4 +113,4 @@ interface SelectProps extends Omit<InputHTMLAttributes<HTMLSelectElement>, 'size
113
113
  declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
114
114
  //#endregion
115
115
  export { SelectOptionDef as n, SelectProps as r, Select as t };
116
- //# sourceMappingURL=index-Cm3rPbI1.d.ts.map
116
+ //# sourceMappingURL=index-qJGkO-ni.d.ts.map
@@ -1,2 +1,2 @@
1
- import"./focus-ring-Bs80iIBN.js";import{h as e}from"./slot-BQVx1Eew.js";import{t}from"./polymorphic-CZIFszAy.js";import n from"react";import r from"classnames";function i({children:t,className:i,component:a,onMouseDown:o,...s},c){let l=a??`span`,u=r(`input-adorn`,i),d=e=>{o?.(e),e.defaultPrevented||e.preventDefault()},f=e(l)===`button`?{type:`button`}:void 0;return/* @__PURE__ */ n.createElement(l,{className:u,onMouseDown:d,...f,...s,ref:c},t)}const a=t(i,`InputAdorn`);export{a as t};
2
- //# sourceMappingURL=input-adorn-DV9tuWXh.js.map
1
+ import"./focus-ring-Bs80iIBN.js";import{h as e}from"./slot-DagH0Gxq.js";import{t}from"./polymorphic-mAKwlLiW.js";import n from"react";import r from"classnames";function i({children:t,className:i,component:a,onMouseDown:o,...s},c){let l=a??`span`,u=r(`input-adorn`,i),d=e=>{o?.(e),e.defaultPrevented||e.preventDefault()},f=e(l)===`button`?{type:`button`}:void 0;return/* @__PURE__ */ n.createElement(l,{className:u,onMouseDown:d,...f,...s,ref:c},t)}const a=t(i,`InputAdorn`);export{a as t};
2
+ //# sourceMappingURL=input-adorn-D0E3Afdf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-adorn-DV9tuWXh.js","names":["resolveElementKind","React","classNames","InputAdornRender","rest","Component","component","_className","className","handleMouseDown","onMouseDown","event","buttonType","children","InputAdorn","createPolymorphicComponent"],"sources":["../../src/components/input-adorn/InputAdorn.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport { resolveElementKind } from '../../utils/elementKind'\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype InputAdornOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component. Use\n * `\"button\"` or `\"a\"` for an actionable adorn, e.g. a password reveal toggle or a clear button.\n * A `\"button\"` gets `type=\"button\"` unless `type` is given, so it doesn't submit a form.\n */\n component?: C\n}\n\nexport type InputAdornProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n InputAdornOwnProps<C>\n>\n\ntype InputAdornComponent = (<C extends ElementType = 'span'>(\n props: InputAdornProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction InputAdornRender<C extends ElementType = 'span'>(\n { children, className, component, onMouseDown, ...rest }: InputAdornProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'span'\n const _className = classNames('input-adorn', className)\n const handleMouseDown: React.MouseEventHandler<Element> = (event) => {\n onMouseDown?.(event)\n // Keep focus on the associated input (e.g. a password toggle) instead of\n // letting the browser shift it to this button/anchor on mousedown.\n if (!event.defaultPrevented) {\n event.preventDefault()\n }\n }\n // A `<button>` with no `type` is a submit button: a password reveal adorn submitted the form\n // around its input. The caller's own `type` in `rest` still wins.\n const buttonType =\n resolveElementKind(Component) === 'button' ? { type: 'button' as const } : undefined\n return (\n <Component\n className={_className}\n onMouseDown={handleMouseDown}\n {...buttonType}\n {...rest}\n ref={ref}\n >\n {children}\n </Component>\n )\n}\n\nexport const InputAdorn = createPolymorphicComponent<InputAdornComponent>(\n InputAdornRender as ForwardRefRenderFunction<Element, InputAdornProps<ElementType>>,\n 'InputAdorn'\n)\n"],"mappings":"A,gKAgCA,SAASG,EACP,CAAE,WAAU,YAAW,YAAW,cAAa,GAAGC,GAClD,EACA,CACA,IAAMC,EAAYC,GAAa,OACzBC,EAAaL,EAAW,cAAeM,CAAS,EAChDC,EAAqD,GAAU,CACnEC,IAAcC,CAAK,EAGdA,EAAM,kBACTA,EAAM,eAAe,CAEzB,EAGMC,EACJZ,EAAmBK,CAAS,IAAM,SAAW,CAAE,KAAM,QAAkB,EAAI,IAAA,GAC7E,MACE,kBAAA,cAACA,EAAD,CACE,UAAWE,EACX,YAAaE,EACb,GAAIG,EACJ,GAAIR,EACC,KAGI,EADRS,CACQ,CAEf,CAEA,MAAaC,EAAaC,EACxBZ,EACA,YACF,E"}
1
+ {"version":3,"file":"input-adorn-D0E3Afdf.js","names":["resolveElementKind","React","classNames","InputAdornRender","rest","Component","component","_className","className","handleMouseDown","onMouseDown","event","buttonType","children","InputAdorn","createPolymorphicComponent"],"sources":["../../src/components/input-adorn/InputAdorn.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport { resolveElementKind } from '../../utils/elementKind'\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype InputAdornOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component. Use\n * `\"button\"` or `\"a\"` for an actionable adorn, e.g. a password reveal toggle or a clear button.\n * A `\"button\"` gets `type=\"button\"` unless `type` is given, so it doesn't submit a form.\n */\n component?: C\n}\n\nexport type InputAdornProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n InputAdornOwnProps<C>\n>\n\ntype InputAdornComponent = (<C extends ElementType = 'span'>(\n props: InputAdornProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction InputAdornRender<C extends ElementType = 'span'>(\n { children, className, component, onMouseDown, ...rest }: InputAdornProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'span'\n const _className = classNames('input-adorn', className)\n const handleMouseDown: React.MouseEventHandler<Element> = (event) => {\n onMouseDown?.(event)\n // Keep focus on the associated input (e.g. a password toggle) instead of\n // letting the browser shift it to this button/anchor on mousedown.\n if (!event.defaultPrevented) {\n event.preventDefault()\n }\n }\n // A `<button>` with no `type` is a submit button: a password reveal adorn submitted the form\n // around its input. The caller's own `type` in `rest` still wins.\n const buttonType =\n resolveElementKind(Component) === 'button' ? { type: 'button' as const } : undefined\n return (\n <Component\n className={_className}\n onMouseDown={handleMouseDown}\n {...buttonType}\n {...rest}\n ref={ref}\n >\n {children}\n </Component>\n )\n}\n\nexport const InputAdorn = createPolymorphicComponent<InputAdornComponent>(\n InputAdornRender as ForwardRefRenderFunction<Element, InputAdornProps<ElementType>>,\n 'InputAdorn'\n)\n"],"mappings":"A,gKAgCA,SAASG,EACP,CAAE,WAAU,YAAW,YAAW,cAAa,GAAGC,GAClD,EACA,CACA,IAAMC,EAAYC,GAAa,OACzBC,EAAaL,EAAW,cAAeM,CAAS,EAChDC,EAAqD,GAAU,CACnEC,IAAcC,CAAK,EAGdA,EAAM,kBACTA,EAAM,eAAe,CAEzB,EAGMC,EACJZ,EAAmBK,CAAS,IAAM,SAAW,CAAE,KAAM,QAAkB,EAAI,IAAA,GAC7E,MACE,kBAAA,cAACA,EAAD,CACE,UAAWE,EACX,YAAaE,EACb,GAAIG,EACJ,GAAIR,EACC,KAGI,EADRS,CACQ,CAEf,CAEA,MAAaC,EAAaC,EACxBZ,EACA,YACF,E"}
@@ -1,2 +1,2 @@
1
- import"./focus-ring-Bs80iIBN.js";import{t as e}from"./polymorphic-CZIFszAy.js";import t from"react";import n from"classnames";function r({children:e,className:r,component:i,size:a,...o},s){let c=i??`div`,l=n(`input-group`,a,r);return/* @__PURE__ */ t.createElement(c,{className:l,...o,ref:s},e)}const i=e(r,`InputGroup`);function a({children:e,className:r,component:i,...a},o){let s=i??`span`,c=n(`input-addon`,r);return/* @__PURE__ */ t.createElement(s,{className:c,...a,ref:o},e)}const o=e(a,`InputGroupAddon`);export{i as n,o as t};
2
- //# sourceMappingURL=input-group-YB_zoKud.js.map
1
+ import"./focus-ring-Bs80iIBN.js";import{t as e}from"./polymorphic-mAKwlLiW.js";import t from"react";import n from"classnames";function r({children:e,className:r,component:i,size:a,...o},s){let c=i??`div`,l=n(`input-group`,a,r);return/* @__PURE__ */ t.createElement(c,{className:l,...o,ref:s},e)}const i=e(r,`InputGroup`);function a({children:e,className:r,component:i,...a},o){let s=i??`span`,c=n(`input-addon`,r);return/* @__PURE__ */ t.createElement(s,{className:c,...a,ref:o},e)}const o=e(a,`InputGroupAddon`);export{i as n,o as t};
2
+ //# sourceMappingURL=input-group-paIBtI1R.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-group-YB_zoKud.js","names":["createPolymorphicComponent","React","classNames","InputGroupRender","rest","Component","component","_className","size","className","children","InputGroup","InputGroupAddonRender","InputGroupAddon"],"sources":["../../src/components/input-group/InputGroup.tsx","../../src/components/input-group/InputGroupAddon.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype InputGroupOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n /**\n * Size the component sm or lg.\n */\n size?: 'sm' | 'lg'\n}\n\nexport type InputGroupProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n InputGroupOwnProps<C>\n>\n\ntype InputGroupComponent = (<C extends ElementType = 'div'>(\n props: InputGroupProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction InputGroupRender<C extends ElementType = 'div'>(\n { children, className, component, size, ...rest }: InputGroupProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'div'\n const _className = classNames('input-group', size, className)\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const InputGroup = createPolymorphicComponent<InputGroupComponent>(\n InputGroupRender as ForwardRefRenderFunction<Element, InputGroupProps<ElementType>>,\n 'InputGroup'\n)\n","import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype InputGroupAddonOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n /**\n * The id of the form control this addon labels, when rendered as `component=\"label\"`.\n */\n htmlFor?: string\n}\n\nexport type InputGroupAddonProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n InputGroupAddonOwnProps<C>\n>\n\ntype InputGroupAddonComponent = (<C extends ElementType = 'span'>(\n props: InputGroupAddonProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction InputGroupAddonRender<C extends ElementType = 'span'>(\n { children, className, component, ...rest }: InputGroupAddonProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'span'\n const _className = classNames('input-addon', className)\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const InputGroupAddon = createPolymorphicComponent<InputGroupAddonComponent>(\n InputGroupAddonRender as ForwardRefRenderFunction<Element, InputGroupAddonProps<ElementType>>,\n 'InputGroupAddon'\n)\n"],"mappings":"A,8HAiCA,SAASG,EACP,CAAE,WAAU,YAAW,YAAW,OAAM,GAAGC,GAC3C,EACA,CACA,IAAMC,EAAYC,GAAa,MACzBC,EAAaL,EAAW,cAAeM,EAAMC,CAAS,EAC5D,MACE,kBAAA,cAACJ,EAAD,CAAW,UAAWE,EAAY,GAAIH,EAAW,KAEtC,EADRM,CACQ,CAEf,CAEA,MAAaC,EAAaX,EACxBG,EACA,YACF,EChBA,SAASS,EACP,CAAE,WAAU,YAAW,YAAW,GAAGR,GACrC,EACA,CACA,IAAMC,EAAYC,GAAa,OACzBC,EAAaL,EAAW,cAAeO,CAAS,EACtD,MACE,kBAAA,cAACJ,EAAD,CAAW,UAAWE,EAAY,GAAIH,EAAW,KAEtC,EADRM,CACQ,CAEf,CAEA,MAAaG,EAAkBb,EAC7BY,EACA,iBACF,E"}
1
+ {"version":3,"file":"input-group-paIBtI1R.js","names":["createPolymorphicComponent","React","classNames","InputGroupRender","rest","Component","component","_className","size","className","children","InputGroup","InputGroupAddonRender","InputGroupAddon"],"sources":["../../src/components/input-group/InputGroup.tsx","../../src/components/input-group/InputGroupAddon.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype InputGroupOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n /**\n * Size the component sm or lg.\n */\n size?: 'sm' | 'lg'\n}\n\nexport type InputGroupProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n InputGroupOwnProps<C>\n>\n\ntype InputGroupComponent = (<C extends ElementType = 'div'>(\n props: InputGroupProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction InputGroupRender<C extends ElementType = 'div'>(\n { children, className, component, size, ...rest }: InputGroupProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'div'\n const _className = classNames('input-group', size, className)\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const InputGroup = createPolymorphicComponent<InputGroupComponent>(\n InputGroupRender as ForwardRefRenderFunction<Element, InputGroupProps<ElementType>>,\n 'InputGroup'\n)\n","import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype InputGroupAddonOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n /**\n * The id of the form control this addon labels, when rendered as `component=\"label\"`.\n */\n htmlFor?: string\n}\n\nexport type InputGroupAddonProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n InputGroupAddonOwnProps<C>\n>\n\ntype InputGroupAddonComponent = (<C extends ElementType = 'span'>(\n props: InputGroupAddonProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction InputGroupAddonRender<C extends ElementType = 'span'>(\n { children, className, component, ...rest }: InputGroupAddonProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'span'\n const _className = classNames('input-addon', className)\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const InputGroupAddon = createPolymorphicComponent<InputGroupAddonComponent>(\n InputGroupAddonRender as ForwardRefRenderFunction<Element, InputGroupAddonProps<ElementType>>,\n 'InputGroupAddon'\n)\n"],"mappings":"A,8HAiCA,SAASG,EACP,CAAE,WAAU,YAAW,YAAW,OAAM,GAAGC,GAC3C,EACA,CACA,IAAMC,EAAYC,GAAa,MACzBC,EAAaL,EAAW,cAAeM,EAAMC,CAAS,EAC5D,MACE,kBAAA,cAACJ,EAAD,CAAW,UAAWE,EAAY,GAAIH,EAAW,KAEtC,EADRM,CACQ,CAEf,CAEA,MAAaC,EAAaX,EACxBG,EACA,YACF,EChBA,SAASS,EACP,CAAE,WAAU,YAAW,YAAW,GAAGR,GACrC,EACA,CACA,IAAMC,EAAYC,GAAa,OACzBC,EAAaL,EAAW,cAAeO,CAAS,EACtD,MACE,kBAAA,cAACJ,EAAD,CAAW,UAAWE,EAAY,GAAIH,EAAW,KAEtC,EADRM,CACQ,CAEf,CAEA,MAAaG,EAAkBb,EAC7BY,EACA,iBACF,E"}
@@ -1,2 +1,2 @@
1
- import"./focus-ring-Bs80iIBN.js";import{_ as e,d as t,f as n,g as r,m as i,p as a,v as o}from"./slot-BQVx1Eew.js";import{t as s}from"./lazyElement-tfMG21pZ.js";import{t as c}from"./polymorphic-CZIFszAy.js";import{t as l}from"./Link-DE8NSAXJ.js";import u,{Children as d}from"react";import f from"classnames";function p({children:e,active:t,className:s,disabled:c,color:d,component:p,href:m,...h},g){let _=i(p,m,`li`),v=o(_,m,h),y=a(v),b=n(v,m,`ListItem`),x=y||r(_)===void 0,S=f(`list-item`,d&&`context`,d,{"list-action":y,active:t&&!x,disabled:c&&!x},s),C=x?l:_,w=x?{active:t,disabled:c,component:_,...c&&!y&&{"aria-disabled":!0},...b,...h}:{...t&&{"aria-current":`page`},...c&&{"aria-disabled":!0},...b,...h};return/* @__PURE__ */ u.createElement(C,{className:S,...w,ref:g},e)}const m=c(p,`ListItem`);function h({children:n,className:i,component:o,color:c,variant:l,flush:p,items:h,layout:g,numbered:_,plain:v,...y},b){let x=h?h.some(e=>t(e.href)):d.toArray(n).some(t=>s(t,m)&&a(e(t.props))),S=o??(x?`div`:`ul`),C=r(S),w=C===`ul`||C===`ol`,T=f(`list`,c&&`context`,c,l,g,{flush:p,plain:v,numbered:_},i),E=(h?h.map((e,n)=>/* @__PURE__ */ u.createElement(m,{key:e.id??n,component:t(e.href)||w?void 0:`div`,href:e.href,color:e.color,active:e.active,disabled:e.disabled},e.label)):null)??(w?n:d.map(n,t=>s(t,m)&&e(t.props)===void 0?u.cloneElement(t,{component:`div`}):t));return/* @__PURE__ */ u.createElement(S,{className:T,...y,ref:b},E)}const g=c(h,`List`);export{m as n,g as t};
2
- //# sourceMappingURL=list-BPBZR66Y.js.map
1
+ import"./focus-ring-Bs80iIBN.js";import{_ as e,d as t,f as n,g as r,m as i,p as a,v as o}from"./slot-DagH0Gxq.js";import{t as s}from"./lazyElement-tfMG21pZ.js";import{t as c}from"./polymorphic-mAKwlLiW.js";import{t as l}from"./Link-B3SX50Od.js";import u,{Children as d}from"react";import f from"classnames";function p({children:e,active:t,className:s,disabled:c,color:d,component:p,href:m,...h},g){let _=i(p,m,`li`),v=o(_,m,h),y=a(v),b=n(v,m,`ListItem`),x=y||r(_)===void 0,S=f(`list-item`,d&&`context`,d,{"list-action":y,active:t&&!x,disabled:c&&!x},s),C=x?l:_,w=x?{active:t,disabled:c,component:_,...c&&!y&&{"aria-disabled":!0},...b,...h}:{...t&&{"aria-current":`page`},...c&&{"aria-disabled":!0},...b,...h};return/* @__PURE__ */ u.createElement(C,{className:S,...w,ref:g},e)}const m=c(p,`ListItem`);function h({children:n,className:i,component:o,color:c,variant:l,flush:p,items:h,layout:g,numbered:_,plain:v,...y},b){let x=h?h.some(e=>t(e.href)):d.toArray(n).some(t=>s(t,m)&&a(e(t.props))),S=o??(x?`div`:`ul`),C=r(S),w=C===`ul`||C===`ol`,T=f(`list`,c&&`context`,c,l,g,{flush:p,plain:v,numbered:_},i),E=(h?h.map((e,n)=>/* @__PURE__ */ u.createElement(m,{key:e.id??n,component:t(e.href)||w?void 0:`div`,href:e.href,color:e.color,active:e.active,disabled:e.disabled},e.label)):null)??(w?n:d.map(n,t=>s(t,m)&&e(t.props)===void 0?u.cloneElement(t,{component:`div`}):t));return/* @__PURE__ */ u.createElement(S,{className:T,...y,ref:b},E)}const g=c(h,`List`);export{m as n,g as t};
2
+ //# sourceMappingURL=list-Ch6vxaUs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-BPBZR66Y.js","names":["resolveKindFromProps","hasHref","hrefProps","resolveElementTag","linkElement","isInteractiveKind","resolveLinkKind","isElementOfType","createPolymorphicComponent","Link","React","classNames","ListItemRender","rest","tag","component","href","kind","isInteractive","linkProps","throughLink","_className","color","active","disabled","className","Component","finalRest","children","ListItem","ListRender","hasInteractiveItem","items","item","Children","child","rootTag","isListSemantic","variant","layout","renderedChildren","idx","List"],"sources":["../../src/components/list/ListItem.tsx","../../src/components/list/List.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport { ContextColor } from '../../types'\nimport {\n hrefProps,\n isInteractiveKind,\n linkElement,\n resolveElementTag,\n resolveLinkKind\n} from '../../utils/elementKind'\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n PolymorphicRefWithFallback\n} from '../../utils/polymorphic'\nimport { Link } from '../link/Link'\n\ntype ListItemOwnProps<C extends ElementType> = {\n /**\n * Toggle the active state for the component.\n */\n active?: boolean\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Sets the color of the component to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Toggle the disabled state for the component.\n */\n disabled?: boolean\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n /**\n * The href attribute specifies the URL of the page the link goes to. Renders an `<a>` in place\n * of the `<li>`, unless `component` or `asChild` chose the element. Inside a `List`, the list\n * renders a `<div>` around it in place of the `<ul>`.\n */\n href?: string\n}\n\nexport type ListItemProps<C extends ElementType = 'li'> = PolymorphicComponentProps<\n C,\n ListItemOwnProps<C>\n>\n\ntype ListItemComponent = (<C extends ElementType = 'li'>(\n props: ListItemProps<C> & {\n ref?: PolymorphicRefWithFallback<C, HTMLLIElement | HTMLAnchorElement>\n }\n) => ReactElement | null) & { displayName?: string }\n\nfunction ListItemRender<C extends ElementType = 'li'>(\n { children, active, className, disabled, color, component, href, ...rest }: ListItemProps<C>,\n ref: PolymorphicRef<C>\n) {\n // `href` makes it an `<a>`, unless `component` or `asChild` chose the element (see\n // `linkElement`). It used to stay an `<li>` and carry `href` as an attribute.\n const tag = linkElement(component, href, 'li')\n // The kind rather than the tag, counting a router link with `href` or `to` as an anchor: under `asChild`, `tag` is a `Slot` standing in for the caller's\n // element, and a slotted `<a>` is as interactive as `component=\"a\"`.\n const kind = resolveLinkKind(tag, href, rest)\n const isInteractive = isInteractiveKind(kind)\n const linkProps = hrefProps(kind, href, 'ListItem')\n\n // A component (a router link given as `component`, or as the `asChild` element) renders through\n // `Link` whether or not it has a link target. It did only while it had one, so a router link\n // whose `href` came or went was a different tree each time, and React remounted it. `Link`\n // leaves a component that isn't a link to its own semantics.\n const throughLink = isInteractive || resolveElementTag(tag) === undefined\n\n const _className = classNames(\n 'list-item',\n color && 'context',\n color,\n {\n 'list-action': isInteractive,\n // `Link` adds these classes, and `aria-current`, itself.\n active: active && !throughLink,\n disabled: disabled && !throughLink\n },\n className\n )\n\n const Component = (throughLink ? Link : tag) as ElementType\n\n const finalRest = throughLink\n ? {\n active,\n disabled,\n component: tag,\n // `Link` writes it on a link, which it also takes out of the tab order.\n ...(disabled && !isInteractive && { 'aria-disabled': true }),\n ...linkProps,\n ...rest\n }\n : {\n ...(active && { 'aria-current': 'page' }),\n ...(disabled && { 'aria-disabled': true }),\n ...linkProps,\n ...rest\n }\n\n return (\n <Component className={_className} {...finalRest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const ListItem = createPolymorphicComponent<ListItemComponent>(\n ListItemRender as ForwardRefRenderFunction<Element, ListItemProps<ElementType>>,\n 'ListItem'\n)\n","import React, {\n Children,\n ElementType,\n ForwardRefRenderFunction,\n ReactElement,\n ReactNode\n} from 'react'\nimport classNames from 'classnames'\n\nimport { ContextColor, ContextStyle } from '../../types'\nimport {\n hasHref,\n isInteractiveKind,\n resolveElementTag,\n resolveKindFromProps\n} from '../../utils/elementKind'\nimport { isElementOfType } from '../../utils/lazyElement'\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\nimport { ListItem } from './ListItem'\n\nexport interface ListItemDef {\n /**\n * Stable key for the rendered item. Falls back to the item's index in `items`.\n */\n id?: number | string\n /**\n * Item label content.\n */\n label: React.ReactNode\n /**\n * Makes the item a link.\n */\n href?: string\n /**\n * Sets the color of the item.\n */\n color?: ContextColor\n /**\n * Marks the item as active.\n */\n active?: boolean\n /**\n * Marks the item as disabled.\n */\n disabled?: boolean\n}\n\ntype ListOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to `'ul'`, unless an item (a data-driven item with `href`, or a `<ListItem>` child\n * rendering an `<a>`/`<button>` through `component` or `asChild`) is interactive — a bare\n * `<a>`/`<button>` isn't a valid direct child of `<ul>`/`<ol>`, so the default switches to\n * `'div'` instead. Pass `component` explicitly to opt out of this.\n */\n component?: C\n /**\n * Sets the color of the component to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Remove outer borders and rounded corners to render list items edge-to-edge in a parent component (e.g., `<Card>`).\n */\n flush?: boolean\n /**\n * Array of item definitions for data-driven rendering. When provided, children are ignored.\n */\n items?: ListItemDef[]\n /**\n * Specify a layout type.\n */\n layout?:\n | 'horizontal'\n | 'sm:horizontal'\n | 'md:horizontal'\n | 'lg:horizontal'\n | 'xl:horizontal'\n | '2xl:horizontal'\n /**\n * Number list items sequentially using CSS counters. Pair with `component=\"ol\"` for semantic correctness.\n */\n numbered?: boolean\n /**\n * Remove outer borders, rounded corners, and horizontal padding for a minimal, edge-to-edge appearance.\n */\n plain?: boolean\n /**\n * Applies a `.solid`, `.outline`, or `.smooth` context style. Only meaningful together with `color`.\n */\n variant?: ContextStyle\n}\n\n// What `List` reads off a `<ListItem>` child to decide its own tag.\ntype ListItemChildProps = {\n asChild?: boolean\n children?: ReactNode\n component?: ElementType\n href?: string\n}\n\nexport type ListProps<C extends ElementType = 'ul'> = PolymorphicComponentProps<C, ListOwnProps<C>>\n\ntype ListComponent = (<C extends ElementType = 'ul'>(\n props: ListProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction ListRender<C extends ElementType = 'ul'>(\n {\n children,\n className,\n component,\n color,\n variant,\n flush,\n items,\n layout,\n numbered,\n plain,\n ...rest\n }: ListProps<C>,\n ref: PolymorphicRef<C>\n) {\n // A linked item (data-driven `href`, or a `<ListItem>` child rendering an `<a>`/`<button>`,\n // whether through `component` or as its `asChild` element) can't render as a bare\n // `<a>`/`<button>` inside the default `<ul>`/`<ol>` root — only `<li>`/`script`/`template` are\n // valid children there. Default to `<div>` instead when that's the case (unless the caller\n // already chose their own `component`), matching the same `component=\"div\"` pattern already\n // documented for `Stepper`'s composed interactive usage.\n const hasInteractiveItem = items\n ? items.some((item) => hasHref(item.href))\n : Children.toArray(children).some(\n (child) =>\n isElementOfType<ListItemChildProps>(child, ListItem) &&\n isInteractiveKind(resolveKindFromProps(child.props))\n )\n const Component = (component ?? (hasInteractiveItem ? 'div' : 'ul')) as ElementType\n // The tag rather than `Component`, which under `asChild` is a `Slot` holding the caller's\n // `<ul>`/`<ol>`.\n const rootTag = resolveElementTag(Component)\n const isListSemantic = rootTag === 'ul' || rootTag === 'ol'\n\n const _className = classNames(\n 'list',\n color && 'context',\n color,\n variant,\n layout,\n {\n flush,\n plain,\n numbered\n },\n className\n )\n\n // Through `ListItem`, like the composed form: a linked item is a `Link`, so a disabled one is\n // out of the tab order and doesn't navigate, and each registers with a surrounding `Scrollspy`.\n // An item with no `href` is a `<div>` where the root isn't a list, as below.\n const autoContent = items\n ? items.map((item, idx) => (\n <ListItem\n key={item.id ?? idx}\n component={hasHref(item.href) || isListSemantic ? undefined : 'div'}\n href={item.href}\n color={item.color}\n active={item.active}\n disabled={item.disabled}\n >\n {item.label}\n </ListItem>\n ))\n : null\n\n // When the root switched to `div` because of an interactive child, every plain `<ListItem>`\n // sibling defaulting to `<li>` would be just as invalid (only valid inside `<ul>`/`<ol>`/\n // `<menu>`) — so give each `ListItem` child the same `div` treatment the auto-generated items\n // above already get, unless it chose its own element: `component`, `href` or its `asChild`\n // element. Other child types are left untouched — this is only meaningful for `List`'s own list\n // items.\n const renderedChildren =\n autoContent ??\n (isListSemantic\n ? children\n : Children.map(children, (child) =>\n isElementOfType<ListItemChildProps>(child, ListItem) &&\n resolveKindFromProps(child.props) === undefined\n ? React.cloneElement(child, { component: 'div' })\n : child\n ))\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {renderedChildren}\n </Component>\n )\n}\n\nexport const List = createPolymorphicComponent<ListComponent>(\n ListRender as ForwardRefRenderFunction<Element, ListProps<ElementType>>,\n 'List'\n)\n"],"mappings":"A,mTA2DA,SAASY,EACP,CAAE,WAAU,SAAQ,YAAW,WAAU,QAAO,YAAW,OAAM,GAAGC,GACpE,EACA,CAGA,IAAMC,EAAMV,EAAYW,EAAWC,EAAM,IAAI,EAGvCC,EAAOX,EAAgBQ,EAAKE,EAAMH,CAAI,EACtCK,EAAgBb,EAAkBY,CAAI,EACtCE,EAAYjB,EAAUe,EAAMD,EAAM,UAAU,EAM5CI,EAAcF,GAAiBf,EAAkBW,CAAG,IAAM,IAAA,GAE1DO,EAAaV,EACjB,YACAW,GAAS,UACTA,EACA,CACE,cAAeJ,EAEf,OAAQK,GAAU,CAACH,EACnB,SAAUI,GAAY,CAACJ,CACzB,EACAK,CACF,EAEMC,EAAaN,EAAcX,EAAOK,EAElCa,EAAYP,EACd,CACE,SACA,WACA,UAAWN,EAEX,GAAIU,GAAY,CAACN,GAAiB,CAAE,gBAAiB,EAAK,EAC1D,GAAGC,EACH,GAAGN,CACL,EACA,CACE,GAAIU,GAAU,CAAE,eAAgB,MAAO,EACvC,GAAIC,GAAY,CAAE,gBAAiB,EAAK,EACxC,GAAGL,EACH,GAAGN,CACL,EAEJ,MACE,kBAAA,cAACa,EAAD,CAAW,UAAWL,EAAY,GAAIM,EAAgB,KAE3C,EADRC,CACQ,CAEf,CAEA,MAAaC,EAAWrB,EACtBI,EACA,UACF,ECNA,SAASkB,EACP,CACE,WACA,YACA,YACA,QACA,UACA,QACA,QACA,SACA,WACA,QACA,GAAGjB,GAEL,EACA,CAOA,IAAMkB,EAAqBC,EACvBA,EAAM,KAAM,GAAS/B,EAAQgC,EAAK,IAAI,CAAC,EACvCC,EAAS,QAAQN,CAAQ,CAAC,CAAC,KACxB,GACCrB,EAAoC4B,EAAON,CAAQ,GACnDxB,EAAkBL,EAAqBmC,EAAM,KAAK,CAAC,CACvD,EACET,EAAaX,IAAcgB,EAAqB,MAAQ,MAGxDK,EAAUjC,EAAkBuB,CAAS,EACrCW,EAAiBD,IAAY,MAAQA,IAAY,KAEjDf,EAAaV,EACjB,OACAW,GAAS,UACTA,EACAgB,EACAC,EACA,CACE,QACA,QACA,UACF,EACAd,CACF,EA0BMe,GArBcR,EAChBA,EAAM,KAAK,EAAM,IACf,kBAAA,cAACH,EAAD,CACE,IAAKI,EAAK,IAAMQ,EAChB,UAAWxC,EAAQgC,EAAK,IAAI,GAAKI,EAAiB,IAAA,GAAY,MAC9D,KAAMJ,EAAK,KACX,MAAOA,EAAK,MACZ,OAAQA,EAAK,OACb,SAAUA,EAAK,QAGP,EADPA,EAAK,KACE,CACX,EACD,QAUDI,EACGT,EACAM,EAAS,IAAIN,EAAW,GACtBrB,EAAoC4B,EAAON,CAAQ,GACnD7B,EAAqBmC,EAAM,KAAK,IAAM,IAAA,GAClCzB,EAAM,aAAayB,EAAO,CAAE,UAAW,KAAM,CAAC,EAC9CA,CACN,GAEN,MACE,kBAAA,cAACT,EAAD,CAAW,UAAWL,EAAY,GAAIR,EAAW,KAEtC,EADR2B,CACQ,CAEf,CAEA,MAAaE,EAAOlC,EAClBsB,EACA,MACF,E"}
1
+ {"version":3,"file":"list-Ch6vxaUs.js","names":["resolveKindFromProps","hasHref","hrefProps","resolveElementTag","linkElement","isInteractiveKind","resolveLinkKind","isElementOfType","createPolymorphicComponent","Link","React","classNames","ListItemRender","rest","tag","component","href","kind","isInteractive","linkProps","throughLink","_className","color","active","disabled","className","Component","finalRest","children","ListItem","ListRender","hasInteractiveItem","items","item","Children","child","rootTag","isListSemantic","variant","layout","renderedChildren","idx","List"],"sources":["../../src/components/list/ListItem.tsx","../../src/components/list/List.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport { ContextColor } from '../../types'\nimport {\n hrefProps,\n isInteractiveKind,\n linkElement,\n resolveElementTag,\n resolveLinkKind\n} from '../../utils/elementKind'\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n PolymorphicRefWithFallback\n} from '../../utils/polymorphic'\nimport { Link } from '../link/Link'\n\ntype ListItemOwnProps<C extends ElementType> = {\n /**\n * Toggle the active state for the component.\n */\n active?: boolean\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Sets the color of the component to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Toggle the disabled state for the component.\n */\n disabled?: boolean\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n /**\n * The href attribute specifies the URL of the page the link goes to. Renders an `<a>` in place\n * of the `<li>`, unless `component` or `asChild` chose the element. Inside a `List`, the list\n * renders a `<div>` around it in place of the `<ul>`.\n */\n href?: string\n}\n\nexport type ListItemProps<C extends ElementType = 'li'> = PolymorphicComponentProps<\n C,\n ListItemOwnProps<C>\n>\n\ntype ListItemComponent = (<C extends ElementType = 'li'>(\n props: ListItemProps<C> & {\n ref?: PolymorphicRefWithFallback<C, HTMLLIElement | HTMLAnchorElement>\n }\n) => ReactElement | null) & { displayName?: string }\n\nfunction ListItemRender<C extends ElementType = 'li'>(\n { children, active, className, disabled, color, component, href, ...rest }: ListItemProps<C>,\n ref: PolymorphicRef<C>\n) {\n // `href` makes it an `<a>`, unless `component` or `asChild` chose the element (see\n // `linkElement`). It used to stay an `<li>` and carry `href` as an attribute.\n const tag = linkElement(component, href, 'li')\n // The kind rather than the tag, counting a router link with `href` or `to` as an anchor: under `asChild`, `tag` is a `Slot` standing in for the caller's\n // element, and a slotted `<a>` is as interactive as `component=\"a\"`.\n const kind = resolveLinkKind(tag, href, rest)\n const isInteractive = isInteractiveKind(kind)\n const linkProps = hrefProps(kind, href, 'ListItem')\n\n // A component (a router link given as `component`, or as the `asChild` element) renders through\n // `Link` whether or not it has a link target. It did only while it had one, so a router link\n // whose `href` came or went was a different tree each time, and React remounted it. `Link`\n // leaves a component that isn't a link to its own semantics.\n const throughLink = isInteractive || resolveElementTag(tag) === undefined\n\n const _className = classNames(\n 'list-item',\n color && 'context',\n color,\n {\n 'list-action': isInteractive,\n // `Link` adds these classes, and `aria-current`, itself.\n active: active && !throughLink,\n disabled: disabled && !throughLink\n },\n className\n )\n\n const Component = (throughLink ? Link : tag) as ElementType\n\n const finalRest = throughLink\n ? {\n active,\n disabled,\n component: tag,\n // `Link` writes it on a link, which it also takes out of the tab order.\n ...(disabled && !isInteractive && { 'aria-disabled': true }),\n ...linkProps,\n ...rest\n }\n : {\n ...(active && { 'aria-current': 'page' }),\n ...(disabled && { 'aria-disabled': true }),\n ...linkProps,\n ...rest\n }\n\n return (\n <Component className={_className} {...finalRest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const ListItem = createPolymorphicComponent<ListItemComponent>(\n ListItemRender as ForwardRefRenderFunction<Element, ListItemProps<ElementType>>,\n 'ListItem'\n)\n","import React, {\n Children,\n ElementType,\n ForwardRefRenderFunction,\n ReactElement,\n ReactNode\n} from 'react'\nimport classNames from 'classnames'\n\nimport { ContextColor, ContextStyle } from '../../types'\nimport {\n hasHref,\n isInteractiveKind,\n resolveElementTag,\n resolveKindFromProps\n} from '../../utils/elementKind'\nimport { isElementOfType } from '../../utils/lazyElement'\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\nimport { ListItem } from './ListItem'\n\nexport interface ListItemDef {\n /**\n * Stable key for the rendered item. Falls back to the item's index in `items`.\n */\n id?: number | string\n /**\n * Item label content.\n */\n label: React.ReactNode\n /**\n * Makes the item a link.\n */\n href?: string\n /**\n * Sets the color of the item.\n */\n color?: ContextColor\n /**\n * Marks the item as active.\n */\n active?: boolean\n /**\n * Marks the item as disabled.\n */\n disabled?: boolean\n}\n\ntype ListOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to `'ul'`, unless an item (a data-driven item with `href`, or a `<ListItem>` child\n * rendering an `<a>`/`<button>` through `component` or `asChild`) is interactive — a bare\n * `<a>`/`<button>` isn't a valid direct child of `<ul>`/`<ol>`, so the default switches to\n * `'div'` instead. Pass `component` explicitly to opt out of this.\n */\n component?: C\n /**\n * Sets the color of the component to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Remove outer borders and rounded corners to render list items edge-to-edge in a parent component (e.g., `<Card>`).\n */\n flush?: boolean\n /**\n * Array of item definitions for data-driven rendering. When provided, children are ignored.\n */\n items?: ListItemDef[]\n /**\n * Specify a layout type.\n */\n layout?:\n | 'horizontal'\n | 'sm:horizontal'\n | 'md:horizontal'\n | 'lg:horizontal'\n | 'xl:horizontal'\n | '2xl:horizontal'\n /**\n * Number list items sequentially using CSS counters. Pair with `component=\"ol\"` for semantic correctness.\n */\n numbered?: boolean\n /**\n * Remove outer borders, rounded corners, and horizontal padding for a minimal, edge-to-edge appearance.\n */\n plain?: boolean\n /**\n * Applies a `.solid`, `.outline`, or `.smooth` context style. Only meaningful together with `color`.\n */\n variant?: ContextStyle\n}\n\n// What `List` reads off a `<ListItem>` child to decide its own tag.\ntype ListItemChildProps = {\n asChild?: boolean\n children?: ReactNode\n component?: ElementType\n href?: string\n}\n\nexport type ListProps<C extends ElementType = 'ul'> = PolymorphicComponentProps<C, ListOwnProps<C>>\n\ntype ListComponent = (<C extends ElementType = 'ul'>(\n props: ListProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction ListRender<C extends ElementType = 'ul'>(\n {\n children,\n className,\n component,\n color,\n variant,\n flush,\n items,\n layout,\n numbered,\n plain,\n ...rest\n }: ListProps<C>,\n ref: PolymorphicRef<C>\n) {\n // A linked item (data-driven `href`, or a `<ListItem>` child rendering an `<a>`/`<button>`,\n // whether through `component` or as its `asChild` element) can't render as a bare\n // `<a>`/`<button>` inside the default `<ul>`/`<ol>` root — only `<li>`/`script`/`template` are\n // valid children there. Default to `<div>` instead when that's the case (unless the caller\n // already chose their own `component`), matching the same `component=\"div\"` pattern already\n // documented for `Stepper`'s composed interactive usage.\n const hasInteractiveItem = items\n ? items.some((item) => hasHref(item.href))\n : Children.toArray(children).some(\n (child) =>\n isElementOfType<ListItemChildProps>(child, ListItem) &&\n isInteractiveKind(resolveKindFromProps(child.props))\n )\n const Component = (component ?? (hasInteractiveItem ? 'div' : 'ul')) as ElementType\n // The tag rather than `Component`, which under `asChild` is a `Slot` holding the caller's\n // `<ul>`/`<ol>`.\n const rootTag = resolveElementTag(Component)\n const isListSemantic = rootTag === 'ul' || rootTag === 'ol'\n\n const _className = classNames(\n 'list',\n color && 'context',\n color,\n variant,\n layout,\n {\n flush,\n plain,\n numbered\n },\n className\n )\n\n // Through `ListItem`, like the composed form: a linked item is a `Link`, so a disabled one is\n // out of the tab order and doesn't navigate, and each registers with a surrounding `Scrollspy`.\n // An item with no `href` is a `<div>` where the root isn't a list, as below.\n const autoContent = items\n ? items.map((item, idx) => (\n <ListItem\n key={item.id ?? idx}\n component={hasHref(item.href) || isListSemantic ? undefined : 'div'}\n href={item.href}\n color={item.color}\n active={item.active}\n disabled={item.disabled}\n >\n {item.label}\n </ListItem>\n ))\n : null\n\n // When the root switched to `div` because of an interactive child, every plain `<ListItem>`\n // sibling defaulting to `<li>` would be just as invalid (only valid inside `<ul>`/`<ol>`/\n // `<menu>`) — so give each `ListItem` child the same `div` treatment the auto-generated items\n // above already get, unless it chose its own element: `component`, `href` or its `asChild`\n // element. Other child types are left untouched — this is only meaningful for `List`'s own list\n // items.\n const renderedChildren =\n autoContent ??\n (isListSemantic\n ? children\n : Children.map(children, (child) =>\n isElementOfType<ListItemChildProps>(child, ListItem) &&\n resolveKindFromProps(child.props) === undefined\n ? React.cloneElement(child, { component: 'div' })\n : child\n ))\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {renderedChildren}\n </Component>\n )\n}\n\nexport const List = createPolymorphicComponent<ListComponent>(\n ListRender as ForwardRefRenderFunction<Element, ListProps<ElementType>>,\n 'List'\n)\n"],"mappings":"A,mTA2DA,SAASY,EACP,CAAE,WAAU,SAAQ,YAAW,WAAU,QAAO,YAAW,OAAM,GAAGC,GACpE,EACA,CAGA,IAAMC,EAAMV,EAAYW,EAAWC,EAAM,IAAI,EAGvCC,EAAOX,EAAgBQ,EAAKE,EAAMH,CAAI,EACtCK,EAAgBb,EAAkBY,CAAI,EACtCE,EAAYjB,EAAUe,EAAMD,EAAM,UAAU,EAM5CI,EAAcF,GAAiBf,EAAkBW,CAAG,IAAM,IAAA,GAE1DO,EAAaV,EACjB,YACAW,GAAS,UACTA,EACA,CACE,cAAeJ,EAEf,OAAQK,GAAU,CAACH,EACnB,SAAUI,GAAY,CAACJ,CACzB,EACAK,CACF,EAEMC,EAAaN,EAAcX,EAAOK,EAElCa,EAAYP,EACd,CACE,SACA,WACA,UAAWN,EAEX,GAAIU,GAAY,CAACN,GAAiB,CAAE,gBAAiB,EAAK,EAC1D,GAAGC,EACH,GAAGN,CACL,EACA,CACE,GAAIU,GAAU,CAAE,eAAgB,MAAO,EACvC,GAAIC,GAAY,CAAE,gBAAiB,EAAK,EACxC,GAAGL,EACH,GAAGN,CACL,EAEJ,MACE,kBAAA,cAACa,EAAD,CAAW,UAAWL,EAAY,GAAIM,EAAgB,KAE3C,EADRC,CACQ,CAEf,CAEA,MAAaC,EAAWrB,EACtBI,EACA,UACF,ECNA,SAASkB,EACP,CACE,WACA,YACA,YACA,QACA,UACA,QACA,QACA,SACA,WACA,QACA,GAAGjB,GAEL,EACA,CAOA,IAAMkB,EAAqBC,EACvBA,EAAM,KAAM,GAAS/B,EAAQgC,EAAK,IAAI,CAAC,EACvCC,EAAS,QAAQN,CAAQ,CAAC,CAAC,KACxB,GACCrB,EAAoC4B,EAAON,CAAQ,GACnDxB,EAAkBL,EAAqBmC,EAAM,KAAK,CAAC,CACvD,EACET,EAAaX,IAAcgB,EAAqB,MAAQ,MAGxDK,EAAUjC,EAAkBuB,CAAS,EACrCW,EAAiBD,IAAY,MAAQA,IAAY,KAEjDf,EAAaV,EACjB,OACAW,GAAS,UACTA,EACAgB,EACAC,EACA,CACE,QACA,QACA,UACF,EACAd,CACF,EA0BMe,GArBcR,EAChBA,EAAM,KAAK,EAAM,IACf,kBAAA,cAACH,EAAD,CACE,IAAKI,EAAK,IAAMQ,EAChB,UAAWxC,EAAQgC,EAAK,IAAI,GAAKI,EAAiB,IAAA,GAAY,MAC9D,KAAMJ,EAAK,KACX,MAAOA,EAAK,MACZ,OAAQA,EAAK,OACb,SAAUA,EAAK,QAGP,EADPA,EAAK,KACE,CACX,EACD,QAUDI,EACGT,EACAM,EAAS,IAAIN,EAAW,GACtBrB,EAAoC4B,EAAON,CAAQ,GACnD7B,EAAqBmC,EAAM,KAAK,IAAM,IAAA,GAClCzB,EAAM,aAAayB,EAAO,CAAE,UAAW,KAAM,CAAC,EAC9CA,CACN,GAEN,MACE,kBAAA,cAACT,EAAD,CAAW,UAAWL,EAAY,GAAIR,EAAW,KAEtC,EADR2B,CACQ,CAEf,CAEA,MAAaE,EAAOlC,EAClBsB,EACA,MACF,E"}