admin-ui-starter-kit 0.4.2 → 0.4.3

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 (478) hide show
  1. package/.agents/skills/component-library-rules/SKILL.md +7 -1
  2. package/.agents/skills/component-library-rules/references/base-wrapper.md +24 -4
  3. package/.agents/skills/component-library-rules/references/components/INDEX.json +4 -3
  4. package/.agents/skills/component-library-rules/references/components/INDEX.md +4 -3
  5. package/.agents/skills/component-library-rules/references/components/ui__inputs.md +117 -18
  6. package/.agents/skills/component-library-rules/references/components/ui__layout-primitives.md +71 -0
  7. package/.agents/skills/component-library-rules/references/components/ui__menus.md +125 -43
  8. package/.agents/skills/component-library-rules/references/components/ui__overlays.md +117 -42
  9. package/AGENTS.md +7 -4
  10. package/README.md +28 -4
  11. package/dist/_shared/{header-BUAddfdE.js → header-CyBTcM-L.js} +9 -9
  12. package/dist/_shared/header-CyBTcM-L.js.map +1 -0
  13. package/dist/_shared/header-kwvkesfq.cjs +2 -0
  14. package/dist/_shared/header-kwvkesfq.cjs.map +1 -0
  15. package/dist/_shared/{sidebar-Bl_KRk-S.cjs → sidebar-B_L_dnAe.cjs} +2 -2
  16. package/dist/_shared/{sidebar-Bl_KRk-S.cjs.map → sidebar-B_L_dnAe.cjs.map} +1 -1
  17. package/dist/_shared/{sidebar-ux-yk-Ph.js → sidebar-C5DApiDy.js} +26 -19
  18. package/dist/_shared/{sidebar-ux-yk-Ph.js.map → sidebar-C5DApiDy.js.map} +1 -1
  19. package/dist/_shared/{sidebar-BML5ZZ5s.js → sidebar-CIlGkVbF.js} +156 -155
  20. package/dist/_shared/sidebar-CIlGkVbF.js.map +1 -0
  21. package/dist/_shared/sidebar-D3sK9otF.cjs +2 -0
  22. package/dist/_shared/sidebar-D3sK9otF.cjs.map +1 -0
  23. package/dist/components/base/sidebar/index.cjs +1 -1
  24. package/dist/components/base/sidebar/index.js +2 -2
  25. package/dist/components/base/sidebar/sidebar.d.ts +5 -3
  26. package/dist/components/base/sidebar/sidebar.d.ts.map +1 -1
  27. package/dist/components/layout/header/index.cjs +1 -1
  28. package/dist/components/layout/header/index.js +1 -1
  29. package/dist/components/layout/header/partials/header-search.d.ts.map +1 -1
  30. package/dist/components/layout/index.cjs +1 -1
  31. package/dist/components/layout/index.js +2 -2
  32. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts.map +1 -1
  33. package/dist/components/layout/sidebar/index.cjs +1 -1
  34. package/dist/components/layout/sidebar/index.js +1 -1
  35. package/dist/components/ui/alert-dialog.d.ts +19 -0
  36. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  37. package/dist/components/ui/aspect-ratio.d.ts +5 -0
  38. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  39. package/dist/components/ui/carousel.d.ts +29 -0
  40. package/dist/components/ui/carousel.d.ts.map +1 -0
  41. package/dist/components/ui/direction.d.ts +2 -0
  42. package/dist/components/ui/direction.d.ts.map +1 -0
  43. package/dist/components/ui/drawer.d.ts +14 -0
  44. package/dist/components/ui/drawer.d.ts.map +1 -0
  45. package/dist/components/ui/field.d.ts +25 -0
  46. package/dist/components/ui/field.d.ts.map +1 -0
  47. package/dist/components/ui/input-otp.d.ts +12 -0
  48. package/dist/components/ui/input-otp.d.ts.map +1 -0
  49. package/dist/components/ui/kbd.d.ts +4 -0
  50. package/dist/components/ui/kbd.d.ts.map +1 -0
  51. package/dist/components/ui/label.d.ts +4 -0
  52. package/dist/components/ui/label.d.ts.map +1 -0
  53. package/dist/components/ui/menubar.d.ts +30 -0
  54. package/dist/components/ui/menubar.d.ts.map +1 -0
  55. package/dist/components/ui/native-select.d.ts +9 -0
  56. package/dist/components/ui/native-select.d.ts.map +1 -0
  57. package/dist/components/ui/navigation-menu.d.ts +12 -0
  58. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  59. package/dist/components/ui/resizable.d.ts +8 -0
  60. package/dist/components/ui/resizable.d.ts.map +1 -0
  61. package/dist/showcase/assets/{AreaChart-DUe3j5uB.js → AreaChart-BkAbL-UV.js} +1 -1
  62. package/dist/showcase/assets/CSPContext-B11tftuK.js +1 -0
  63. package/dist/showcase/assets/CompositeItem-Dzu0MfUC.js +1 -0
  64. package/dist/showcase/assets/CompositeRoot-CQvQ_uj2.js +1 -0
  65. package/dist/showcase/assets/DialogTrigger-BxVhSw4D.js +1 -0
  66. package/dist/showcase/assets/FieldItemContext-BSFHjS7g.js +1 -0
  67. package/dist/showcase/assets/LabelableContext-DapqaNeY.js +1 -0
  68. package/dist/showcase/assets/{PreviewLayout-BG1B5TzA.js → PreviewLayout-CGEkbS-i.js} +1 -1
  69. package/dist/showcase/assets/RadioGroup-DBA3iBQw.js +1 -0
  70. package/dist/showcase/assets/Separator-BEMr82IS.js +1 -0
  71. package/dist/showcase/assets/ToolbarRootContext-xN-ruoGR.js +1 -0
  72. package/dist/showcase/assets/{accordion-BWkuKg77.js → accordion-B-Iy0jKu.js} +3 -3
  73. package/dist/showcase/assets/accordion-variants-B9GD0oBE.js +1 -0
  74. package/dist/showcase/assets/{action-menu-BOUHlGba.js → action-menu-CMUF6gPp.js} +1 -1
  75. package/dist/showcase/assets/{activities-DMDQje7Y.js → activities-C1P9bsJm.js} +2 -2
  76. package/dist/showcase/assets/{activities-feed-card-B8wpu4F3.js → activities-feed-card-WZUuGHmT.js} +1 -1
  77. package/dist/showcase/assets/{activity-B-FxNryB.js → activity-BVP5C805.js} +1 -1
  78. package/dist/showcase/assets/{admin-CAhEeKt_.js → admin-DWOK4sj4.js} +2 -2
  79. package/dist/showcase/assets/{ai-UioEgJ90.js → ai-Dteb3y6G.js} +2 -2
  80. package/dist/showcase/assets/{ai-artifact-CUAlhcSX.js → ai-artifact-B0d7GveY.js} +2 -2
  81. package/dist/showcase/assets/{ai-chat-C_w2PSmy.js → ai-chat-IJ0b2FOw.js} +7 -7
  82. package/dist/showcase/assets/{ai-elements-DmxqXR6H.js → ai-elements-Cr8GgtEV.js} +3 -3
  83. package/dist/showcase/assets/{ai-new-PG02TWQq.js → ai-new-BJN9wNvX.js} +2 -2
  84. package/dist/showcase/assets/{ai-tool-call-BaJx1rR4.js → ai-tool-call-BqlQuR1P.js} +1 -1
  85. package/dist/showcase/assets/{alert-DIelf1qF.js → alert-2_0J7Vv6.js} +1 -1
  86. package/dist/showcase/assets/{alert-D7n-kQoO.js → alert-7wEOpEor.js} +1 -1
  87. package/dist/showcase/assets/{alert-TQCZEcn-.js → alert-C_FOBilU.js} +2 -2
  88. package/dist/showcase/assets/{api-key-list-CSt4trYG.js → api-key-list-CGV1k52v.js} +2 -2
  89. package/dist/showcase/assets/app-sidebar-S6oUYO4h.js +1 -0
  90. package/dist/showcase/assets/arrow-down-VNr82bS3.js +1 -0
  91. package/dist/showcase/assets/arrow-left-BSVeKWNq.js +1 -0
  92. package/dist/showcase/assets/arrow-right-D6hTB0Bd.js +1 -0
  93. package/dist/showcase/assets/arrow-up-p9oA4cIz.js +1 -0
  94. package/dist/showcase/assets/arrow-up-right-BtlQ62bc.js +1 -0
  95. package/dist/showcase/assets/{avatar-DLpnivU0.js → avatar-BxcQUuh0.js} +1 -1
  96. package/dist/showcase/assets/avatar-LGWm52rv.js +1 -0
  97. package/dist/showcase/assets/{badge-yFoRqbiq.js → badge-COn5psy3.js} +2 -2
  98. package/dist/showcase/assets/{badge-check-BRAVo7dA.js → badge-check-D2C2BPUT.js} +1 -1
  99. package/dist/showcase/assets/{bell-Dt3Nz2y2.js → bell-C80n9VRl.js} +1 -1
  100. package/dist/showcase/assets/{bot-5Ro5Dayc.js → bot-C83bUUi9.js} +1 -1
  101. package/dist/showcase/assets/{box-mt6TbZO6.js → box-rZ0pA-02.js} +1 -1
  102. package/dist/showcase/assets/{brain-736080Wh.js → brain-BJtktdVu.js} +1 -1
  103. package/dist/showcase/assets/{brand-4K8xsJ91.js → brand-CxdIBpyJ.js} +1 -1
  104. package/dist/showcase/assets/{breadcrumb-CAlApdCw.js → breadcrumb-BZsr_A8k.js} +1 -1
  105. package/dist/showcase/assets/{breadcrumb-DHeGqoTD.js → breadcrumb-CSU8FvWB.js} +1 -1
  106. package/dist/showcase/assets/{breadcrumbs-D_lniGJs.js → breadcrumbs-BUm4gHzL.js} +1 -1
  107. package/dist/showcase/assets/{briefcase-B_Uti-Iu.js → briefcase-0WhUdLn5.js} +1 -1
  108. package/dist/showcase/assets/{building-2-zgcwuzxP.js → building-2-1D6zVdCI.js} +1 -1
  109. package/dist/showcase/assets/{button-PmqgeJKm.js → button-C22Gs6y0.js} +2 -2
  110. package/dist/showcase/assets/{button-group-DAOmmujV.js → button-group-C0Ts4-x3.js} +1 -1
  111. package/dist/showcase/assets/{buttons-PtpR_v16.js → buttons-Dfn6hmwe.js} +3 -3
  112. package/dist/showcase/assets/{calendar-DTgagmt7.js → calendar-7a4yQlzJ.js} +1 -1
  113. package/dist/showcase/assets/{calendar-BiOGjB7a.js → calendar-Bo17POsN.js} +1 -1
  114. package/dist/showcase/assets/{calendar-C1A98cz0.js → calendar-D6XNDRVQ.js} +1 -1
  115. package/dist/showcase/assets/{calendar-days-pr8kXiTx.js → calendar-days-C4mG2tOe.js} +1 -1
  116. package/dist/showcase/assets/{camera-CGKLOOep.js → camera-C16z6v0m.js} +1 -1
  117. package/dist/showcase/assets/{card-CFIG8Dgg.js → card-BjqRQxxz.js} +1 -1
  118. package/dist/showcase/assets/{card-CRd07Iun.js → card-IzYmUTpI.js} +2 -2
  119. package/dist/showcase/assets/{card-primitives-YgCOqVDI.js → card-primitives-BDj4DtS8.js} +1 -1
  120. package/dist/showcase/assets/{card-radio-group-Du6yaMZ-.js → card-radio-group-7GU9AtWs.js} +1 -1
  121. package/dist/showcase/assets/{cards-H7ywhTNM.js → cards-DAqpr8CM.js} +8 -8
  122. package/dist/showcase/assets/{carousel-Dwll5oz1.js → carousel-D1n4Kkoo.js} +4 -4
  123. package/dist/showcase/assets/{chart-BWnVf-d-.js → chart-D2EGeI3b.js} +5 -5
  124. package/dist/showcase/assets/{chart-column-DjAyOA-t.js → chart-column-DKcP77Dx.js} +1 -1
  125. package/dist/showcase/assets/checkbox-BI3gcjED.js +1 -0
  126. package/dist/showcase/assets/chevron-down-ByPPEdNm.js +1 -0
  127. package/dist/showcase/assets/chevron-left-BNByuq3g.js +1 -0
  128. package/dist/showcase/assets/chevron-right-D4pIMCh9.js +1 -0
  129. package/dist/showcase/assets/chevron-up-Cha879Nz.js +1 -0
  130. package/dist/showcase/assets/chevrons-up-down-eAgHau5X.js +1 -0
  131. package/dist/showcase/assets/circle-V5hdlsIn.js +1 -0
  132. package/dist/showcase/assets/{circle-alert-ysbx8rsZ.js → circle-alert-BW-Btwgh.js} +1 -1
  133. package/dist/showcase/assets/circle-check-1MSds3Vu.js +1 -0
  134. package/dist/showcase/assets/circle-check-big-vBWkmhCZ.js +1 -0
  135. package/dist/showcase/assets/circle-dot-CsD5uXwH.js +1 -0
  136. package/dist/showcase/assets/{circle-question-mark-Dbi-WTYN.js → circle-question-mark-xYn9p1nL.js} +1 -1
  137. package/dist/showcase/assets/{circle-x-c5z6-eYV.js → circle-x-VSqZOeGt.js} +1 -1
  138. package/dist/showcase/assets/clock-3-CP_t59kW.js +1 -0
  139. package/dist/showcase/assets/clock-9xbB7EnW.js +1 -0
  140. package/dist/showcase/assets/{code-xml-SoYTMEdm.js → code-xml-CeGA85eB.js} +1 -1
  141. package/dist/showcase/assets/{collapsible-Cv3oGVkH.js → collapsible-C2W51-wl.js} +2 -2
  142. package/dist/showcase/assets/collapsible-C4eof15p.js +1 -0
  143. package/dist/showcase/assets/{combobox-CPC4a_MH.js → combobox-i8o4u6Q0.js} +4 -4
  144. package/dist/showcase/assets/{command-C37Q471b.js → command-C4F78Ppy.js} +1 -1
  145. package/dist/showcase/assets/command-wjOXUieO.js +1 -0
  146. package/dist/showcase/assets/{comment-composer-W0xfh_HP.js → comment-composer-DeURrlgL.js} +1 -1
  147. package/dist/showcase/assets/comment-item-D07Qk-Nt.js +1 -0
  148. package/dist/showcase/assets/{comments-BODDdRry.js → comments-Bo-lZU18.js} +2 -2
  149. package/dist/showcase/assets/{commerce-extras-DsgnTkBH.js → commerce-extras-Cio3xn_B.js} +2 -2
  150. package/dist/showcase/assets/{commerce-B9MICTY2.js → commerce-jqA58sCZ.js} +2 -2
  151. package/dist/showcase/assets/{composite-B-19wwf9.js → composite-BQFpnmS9.js} +1 -1
  152. package/dist/showcase/assets/{contact-card-CqP3YxTq.js → contact-card-4ajPhcd_.js} +2 -2
  153. package/dist/showcase/assets/{content-container-x2tsQKwH.js → content-container-B83BnjFb.js} +1 -1
  154. package/dist/showcase/assets/{copyable-DH0w0i_h.js → copyable-DKkroGJ3.js} +3 -3
  155. package/dist/showcase/assets/{course-card-qpC4JUUM.js → course-card-DShYl03k.js} +2 -2
  156. package/dist/showcase/assets/{cpu-DjJeD_0Z.js → cpu-BZTsuaUu.js} +1 -1
  157. package/dist/showcase/assets/{credit-card-CYgRtM77.js → credit-card-CAI3F3HB.js} +1 -1
  158. package/dist/showcase/assets/{currency-hguqIjWU.js → currency-PXgbngHk.js} +6 -6
  159. package/dist/showcase/assets/{dark-surfaces-Cj34O9A0.js → dark-surfaces-pSCicdm4.js} +2 -2
  160. package/dist/showcase/assets/{database-BVwSMeGM.js → database-oHsxHUj-.js} +1 -1
  161. package/dist/showcase/assets/{date-block-LCTDXG5-.js → date-block-CvCdJr8d.js} +1 -1
  162. package/dist/showcase/assets/{date-picker-CbYq8wZ7.js → date-picker-Cd5vsEEd.js} +1 -1
  163. package/dist/showcase/assets/{date-pickers-BaSX23MK.js → date-pickers-CBK-zvSB.js} +4 -4
  164. package/dist/showcase/assets/{dense-info-kY1QmtaP.js → dense-info-zOdJpez6.js} +2 -2
  165. package/dist/showcase/assets/{dialog-B85US9Ue.js → dialog-D9-MRCRg.js} +1 -1
  166. package/dist/showcase/assets/{dialog-iIgfMvTJ.js → dialog-EDw9DvZs.js} +1 -1
  167. package/dist/showcase/assets/display-CE9JWinr.js +403 -0
  168. package/dist/showcase/assets/dist-CjZ6RM9v.js +45 -0
  169. package/dist/showcase/assets/{dollar-sign-DlK6XF_v.js → dollar-sign-BXD_x2mP.js} +1 -1
  170. package/dist/showcase/assets/{download-B_EY5cGA.js → download-D0ur_d_N.js} +1 -1
  171. package/dist/showcase/assets/dropdown-menu-Cto8-yDW.js +1 -0
  172. package/dist/showcase/assets/{dropzone-Bl7RO_Uk.js → dropzone-9Gb4mR4x.js} +1 -1
  173. package/dist/showcase/assets/{earth-C7n2JAYm.js → earth-BN1w3w7h.js} +1 -1
  174. package/dist/showcase/assets/{ellipsis-ntuo3ejh.js → ellipsis-DsrebD1Y.js} +1 -1
  175. package/dist/showcase/assets/{ellipsis-vertical-yH8S83bc.js → ellipsis-vertical-CAiMV7G2.js} +1 -1
  176. package/dist/showcase/assets/{empty-CY8f7iFe.js → empty-DoJF3uif.js} +1 -1
  177. package/dist/showcase/assets/{empty-item-Ct7uCr40.js → empty-item-zZ85qI6s.js} +2 -2
  178. package/dist/showcase/assets/{empty-state-IAAUTn6f.js → empty-state-CGfB7sOE.js} +1 -1
  179. package/dist/showcase/assets/{empty-state-DlO8SJi8.js → empty-state-Y_4qnNWt.js} +1 -1
  180. package/dist/showcase/assets/{enhanced-activities-DLwShhof.js → enhanced-activities-B41hAxhb.js} +2 -2
  181. package/dist/showcase/assets/enhanced-combobox-BOimEW-1.js +1 -0
  182. package/dist/showcase/assets/{event-calendar-C4KlumlG.js → event-calendar-BjcfC6fM.js} +3 -3
  183. package/dist/showcase/assets/{event-log-BvUU5Rj8.js → event-log-BhoMXcix.js} +2 -2
  184. package/dist/showcase/assets/example-Cz_880po.js +1 -0
  185. package/dist/showcase/assets/{external-link-DuJlM_H4.js → external-link-Cy1-PP8k.js} +1 -1
  186. package/dist/showcase/assets/{eye-CnRPL_H8.js → eye-C85PNNdH.js} +1 -1
  187. package/dist/showcase/assets/feature-announcement-_tpahla3.js +34 -0
  188. package/dist/showcase/assets/{file-Dc5UHkfE.js → file-C8PCBEtY.js} +1 -1
  189. package/dist/showcase/assets/{file-text-D3AE37vP.js → file-text-DwqbUujq.js} +1 -1
  190. package/dist/showcase/assets/{filters-CsovNSxS.js → filters-ChqGg_1z.js} +3 -3
  191. package/dist/showcase/assets/{flag-CJJ43K4x.js → flag-csHQcBml.js} +1 -1
  192. package/dist/showcase/assets/{folder-open-Dp0sceCi.js → folder-open-BThTng3d.js} +1 -1
  193. package/dist/showcase/assets/{form-field-Cxm4APa9.js → form-field-B5g_5Zjm.js} +1 -1
  194. package/dist/showcase/assets/{format-bDaUGCSP.js → format-DrTwpH65.js} +1 -1
  195. package/dist/showcase/assets/{forms-BrVikK1p.js → forms-BukyUSKs.js} +9 -9
  196. package/dist/showcase/assets/{frame-CkLEABTd.js → frame-BNKhZVlb.js} +4 -4
  197. package/dist/showcase/assets/getPseudoElementBounds-DwyQgIj-.js +1 -0
  198. package/dist/showcase/assets/{gift-Bx8IO1FQ.js → gift-CtM--bDo.js} +1 -1
  199. package/dist/showcase/assets/{giftcard-cards-CZTXBjv0.js → giftcard-cards-imm4Br0H.js} +2 -2
  200. package/dist/showcase/assets/{git-branch-D9jt-u1q.js → git-branch-Dl3AzbqP.js} +1 -1
  201. package/dist/showcase/assets/{global-search-D9XJ747r.js → global-search-Bhl7z_vN.js} +1 -1
  202. package/dist/showcase/assets/{global-search-C2R_3Pb3.js → global-search-C4yaPFSW.js} +1 -1
  203. package/dist/showcase/assets/{globe-BJHI134i.js → globe-BCikLfKc.js} +1 -1
  204. package/dist/showcase/assets/{gradient-card-CV8w2JG5.js → gradient-card-Dh_5ZYv0.js} +2 -2
  205. package/dist/showcase/assets/{hash-CtBGoIvf.js → hash-C8m0EECO.js} +1 -1
  206. package/dist/showcase/assets/{header-B3FSlVv4.js → header-BXjw7Lm_.js} +1 -1
  207. package/dist/showcase/assets/header-notifications-CShSQ8kR.js +1 -0
  208. package/dist/showcase/assets/{heart-BWZYF4xJ.js → heart-BJVBFZ-j.js} +1 -1
  209. package/dist/showcase/assets/{house-CAQOnHLO.js → house-C3fXPhlL.js} +1 -1
  210. package/dist/showcase/assets/{icon-badge-CxvxB8Vd.js → icon-badge-dwVx3Hxf.js} +1 -1
  211. package/dist/showcase/assets/{image-Byz-p7hT.js → image-gc4qX_7C.js} +1 -1
  212. package/dist/showcase/assets/{inbox-D4UE_W9O.js → inbox-C0GJ1KEC.js} +1 -1
  213. package/dist/showcase/assets/{index-Cz4UGUT2.js → index-BQIv1ffM.js} +2 -2
  214. package/dist/showcase/assets/index-DN3tqopz.css +2 -0
  215. package/dist/showcase/assets/inertValue-DeVQ2cCe.js +1 -0
  216. package/dist/showcase/assets/{info-DFu8OfxV.js → info-BimmreJ-.js} +1 -1
  217. package/dist/showcase/assets/{inline-stat-DqI70yoJ.js → inline-stat-DcNP6bcO.js} +1 -1
  218. package/dist/showcase/assets/input-DJAWOJEx.js +1 -0
  219. package/dist/showcase/assets/{input-BPDdWrB1.js → input-NIgvB9CZ.js} +1 -1
  220. package/dist/showcase/assets/{input-group-BYZYeQ7j.js → input-group-BmqJ20bA.js} +1 -1
  221. package/dist/showcase/assets/{input-group-YIWmmLJ6.js → input-group-gOUubhee.js} +1 -1
  222. package/dist/showcase/assets/inputs-Dk8YOVkI.js +155 -0
  223. package/dist/showcase/assets/{invoice-header-B00JrPAb.js → invoice-header-BnNpWej2.js} +2 -2
  224. package/dist/showcase/assets/{invoice-items-CUt5D3Wz.js → invoice-items-BdPmW10L.js} +2 -2
  225. package/dist/showcase/assets/{invoice-mini-CRoaQ9g9.js → invoice-mini-CbSYyHIb.js} +2 -2
  226. package/dist/showcase/assets/{invoice-table-DYNnDTQl.js → invoice-table-DjnWG3KF.js} +2 -2
  227. package/dist/showcase/assets/isSameDay-B2KDl_YX.js +1 -0
  228. package/dist/showcase/assets/isToday-CXNS7ELW.js +1 -0
  229. package/dist/showcase/assets/{italic-AbetEb3d.js → italic-BRS-PpYL.js} +1 -1
  230. package/dist/showcase/assets/{item-BJOYyqeO.js → item--6Hx9AXZ.js} +1 -1
  231. package/dist/showcase/assets/{item-BGA6_5Zh.js → item-BszVRzXj.js} +2 -2
  232. package/dist/showcase/assets/{item-CbiuwbAN.js → item-YF6wMI9W.js} +1 -1
  233. package/dist/showcase/assets/{kanban-Br-Yz002.js → kanban-BWBbWLVe.js} +2 -2
  234. package/dist/showcase/assets/{label-BlCKlLE-.js → label-BgpcD3V6.js} +1 -1
  235. package/dist/showcase/assets/{languages-CKcUvHnt.js → languages-DDgmIDFe.js} +1 -1
  236. package/dist/showcase/assets/{layers-CakZLRSD.js → layers-nkkXRmvA.js} +1 -1
  237. package/dist/showcase/assets/{layout-app-shell-ukDXqPxC.js → layout-app-shell-D3MbPoGC.js} +2 -2
  238. package/dist/showcase/assets/{layout-auth-BFza65L3.js → layout-auth-DIeRtG0B.js} +4 -4
  239. package/dist/showcase/assets/{layout-containers-v1jG_b7r.js → layout-containers-Dc3-IAgV.js} +2 -2
  240. package/dist/showcase/assets/{layout-header-CqBf9wjY.js → layout-header-Cg6GfMST.js} +2 -2
  241. package/dist/showcase/assets/{layout-page-WJcljCac.js → layout-page-DojPq8S6.js} +2 -2
  242. package/dist/showcase/assets/layout-primitives-JBSQS72B.js +34 -0
  243. package/dist/showcase/assets/{layout-sidebar-DL6TLuQC.js → layout-sidebar-C6jUJRhx.js} +2 -2
  244. package/dist/showcase/assets/{layout-users-B8qpsvV9.js → layout-users-uzPscfo7.js} +2 -2
  245. package/dist/showcase/assets/{layout-workspace-iOKZ4-9K.js → layout-workspace-B3leaOKl.js} +2 -2
  246. package/dist/showcase/assets/{lock-Dn4-vUBz.js → lock-DLIcOBUd.js} +1 -1
  247. package/dist/showcase/assets/{lock-keyhole-M6KZ_7RC.js → lock-keyhole-DY6aV7Mq.js} +1 -1
  248. package/dist/showcase/assets/{mail-w1nhszbW.js → mail-AES_tOd2.js} +1 -1
  249. package/dist/showcase/assets/{mail-check-DXqQwivW.js → mail-check-dJTzg2bD.js} +1 -1
  250. package/dist/showcase/assets/{map-CquesVXo.js → map-CZ2l0iGH.js} +1 -1
  251. package/dist/showcase/assets/{map-pin-DUl-Lt6t.js → map-pin-0O7GD5Dz.js} +1 -1
  252. package/dist/showcase/assets/{media-library-CCJBQRPu.js → media-library-CRllxSGQ.js} +3 -3
  253. package/dist/showcase/assets/mention-inline-suggestions-Dx2Z1GHF.js +1 -0
  254. package/dist/showcase/assets/{mentions-Ea4pSJqG.js → mentions-CDqqGCE4.js} +2 -2
  255. package/dist/showcase/assets/menus-CDgE79I5.js +165 -0
  256. package/dist/showcase/assets/{message-square-B0RnrJV6.js → message-square-CBNI_sf8.js} +1 -1
  257. package/dist/showcase/assets/{metadata-list-fm8e58ID.js → metadata-list-BoEVt7cX.js} +1 -1
  258. package/dist/showcase/assets/{metadata-list-DkN9yfTj.js → metadata-list-NtWuY9W8.js} +4 -4
  259. package/dist/showcase/assets/{metric-guQTLTAa.js → metric-Bx_LWobe.js} +1 -1
  260. package/dist/showcase/assets/{metric-bar-BydkmggA.js → metric-bar-BldYHNLQ.js} +1 -1
  261. package/dist/showcase/assets/{metric-grid-BKjrYpt9.js → metric-grid-BDw7w7d2.js} +1 -1
  262. package/dist/showcase/assets/{metric-trend-chip-DehaJ3nC.js → metric-trend-chip-lSjDkUEo.js} +1 -1
  263. package/dist/showcase/assets/{metrics-analytics-bar-YjwFT4ae.js → metrics-analytics-bar-CCFhTmQZ.js} +1 -1
  264. package/dist/showcase/assets/{metrics-analytics-cards-B6DspERM.js → metrics-analytics-cards-C1AjZqJU.js} +2 -2
  265. package/dist/showcase/assets/{metrics-comparison-Nru5wypZ.js → metrics-comparison-vEE6BtuW.js} +2 -2
  266. package/dist/showcase/assets/{metrics-heatmap-CcumN0Or.js → metrics-heatmap-DKkz8ibX.js} +2 -2
  267. package/dist/showcase/assets/{metrics-inline-badge-2WB7w9mz.js → metrics-inline-badge-CZmVnReB.js} +2 -2
  268. package/dist/showcase/assets/{metrics-kpi-row-jU3hsB3C.js → metrics-kpi-row-s2FYIYB1.js} +2 -2
  269. package/dist/showcase/assets/{metrics-micro-grid-CaJ99RXL.js → metrics-micro-grid-DDlCl9Ep.js} +2 -2
  270. package/dist/showcase/assets/{metrics-overview-Sa7z6jct.js → metrics-overview-BgliK2L1.js} +2 -2
  271. package/dist/showcase/assets/{metrics-stat-cards-PLvMkA0M.js → metrics-stat-cards-Cn5sRZsB.js} +1 -1
  272. package/dist/showcase/assets/minus-DByvcC8K.js +1 -0
  273. package/dist/showcase/assets/{money-display-23DKz-jK.js → money-display-DG4IaEaA.js} +1 -1
  274. package/dist/showcase/assets/{month-year-picker-oEoInnKW.js → month-year-picker-CVurc9L7.js} +1 -1
  275. package/dist/showcase/assets/{navigation-Dufz6qnF.js → navigation-CHYgQTsY.js} +2 -2
  276. package/dist/showcase/assets/{navigation-Ds60FMAs.js → navigation-C_6gS4FA.js} +3 -3
  277. package/dist/showcase/assets/{navigation-extras-DKufT82I.js → navigation-extras-CflOar2P.js} +2 -2
  278. package/dist/showcase/assets/{onboarding-checklist-DSkS2ktA.js → onboarding-checklist-CYiciKwv.js} +2 -2
  279. package/dist/showcase/assets/{overlays-BptoR4sm.js → overlays-HrH2wdTK.js} +2 -2
  280. package/dist/showcase/assets/overlays-cp7VMq3b.js +159 -0
  281. package/dist/showcase/assets/{package-0ZgMoFm1.js → package-CjcwDJKu.js} +1 -1
  282. package/dist/showcase/assets/{package-check-CT0dhSM8.js → package-check-CCH3ax-x.js} +1 -1
  283. package/dist/showcase/assets/{page-action-button-DrHJKFbp.js → page-action-button-Cn5j2_EP.js} +1 -1
  284. package/dist/showcase/assets/page-header-CkvCF1MQ.js +1 -0
  285. package/dist/showcase/assets/{pagination-CxuA2zkE.js → pagination-DM5QGPo2.js} +1 -1
  286. package/dist/showcase/assets/{pagination-DsPLs2Tx.js → pagination-DUzHnhJ6.js} +1 -1
  287. package/dist/showcase/assets/{paperclip-CDMZ_JAo.js → paperclip-DoqDQQVa.js} +1 -1
  288. package/dist/showcase/assets/{password-input-BVaUPw7a.js → password-input-CfS4sfCl.js} +1 -1
  289. package/dist/showcase/assets/{pencil-BouoJ5x7.js → pencil-C2OfFQMj.js} +1 -1
  290. package/dist/showcase/assets/{phone-DCNFH5yg.js → phone-CLvml_XI.js} +1 -1
  291. package/dist/showcase/assets/plus-D5swsZCz.js +1 -0
  292. package/dist/showcase/assets/{popover-menu-CuA8fb7i.js → popover-menu-Bu9q96nE.js} +1 -1
  293. package/dist/showcase/assets/{popover-CECpX3MQ.js → popover-nCGXR4Yd.js} +1 -1
  294. package/dist/showcase/assets/popover-xC8qczvP.js +1 -0
  295. package/dist/showcase/assets/{products-BJHNTW62.js → products-BbSzEFvw.js} +2 -2
  296. package/dist/showcase/assets/progress-DYfoy7pk.js +1 -0
  297. package/dist/showcase/assets/{progress-tpxRVOkp.js → progress-ENNwjW3X.js} +1 -1
  298. package/dist/showcase/assets/{props-table-BR-KjRNe.js → props-table-2pIZzGC-.js} +1 -1
  299. package/dist/showcase/assets/{props.generated-qdUud3iu.json → props.generated-DggzG-JL.json} +3 -3
  300. package/dist/showcase/assets/{quote-CN-Sodsj.js → quote-BO1bufuX.js} +1 -1
  301. package/dist/showcase/assets/{receipt-T8B9lscp.js → receipt-kIVP3kxJ.js} +1 -1
  302. package/dist/showcase/assets/{receipt-text-CeBruM29.js → receipt-text-BDQIvI4l.js} +1 -1
  303. package/dist/showcase/assets/{refresh-cw-DnxNcOMm.js → refresh-cw-UdL93poQ.js} +1 -1
  304. package/dist/showcase/assets/resolveAriaLabelledBy-iFo8AzEr.js +1 -0
  305. package/dist/showcase/assets/resolveValueLabel-DfiI3G4i.js +1 -0
  306. package/dist/showcase/assets/{rich-text-editor-Bha0lSKT.js → rich-text-editor-CNtfwLC2.js} +1 -1
  307. package/dist/showcase/assets/{rich-text-editor-NeOPmoZF.js → rich-text-editor-DB4QWptQ.js} +3 -3
  308. package/dist/showcase/assets/rotate-ccw-DQPoMfMY.js +1 -0
  309. package/dist/showcase/assets/{save-AT8JlA8E.js → save-Cd0ZM40i.js} +1 -1
  310. package/dist/showcase/assets/{schema-form-BpkVygoO.js → schema-form-Cyc6vCVO.js} +2 -2
  311. package/dist/showcase/assets/{scroll-area-B0wmaMAD.js → scroll-area-B5NZsDdi.js} +1 -1
  312. package/dist/showcase/assets/scroll-area-BvTq99pz.js +1 -0
  313. package/dist/showcase/assets/{select-t6dryszf.js → select-BRbyPtx8.js} +1 -1
  314. package/dist/showcase/assets/select-Dymyvyh6.js +1 -0
  315. package/dist/showcase/assets/{send-BzGRF4t-.js → send-BWzI7mwi.js} +1 -1
  316. package/dist/showcase/assets/{separator-BjGdXNcn.js → separator-BsYPzBlF.js} +1 -1
  317. package/dist/showcase/assets/{separator-DbiGagrP.js → separator-Osp0OJ78.js} +1 -1
  318. package/dist/showcase/assets/{settings-BSRT_96A.js → settings-DRmWJILI.js} +1 -1
  319. package/dist/showcase/assets/{sheet-CEuKOBxr.js → sheet-BKsjMYMo.js} +1 -1
  320. package/dist/showcase/assets/{shield-CcR2q5u_.js → shield-D1EaWJMG.js} +1 -1
  321. package/dist/showcase/assets/{shield-alert-DhbgXV1X.js → shield-alert-DWsbR2jn.js} +1 -1
  322. package/dist/showcase/assets/{shield-check-CRbBJXw2.js → shield-check-DUTAPADm.js} +1 -1
  323. package/dist/showcase/assets/{shopping-bag-B5BzpLV5.js → shopping-bag-XmeqUqk9.js} +1 -1
  324. package/dist/showcase/assets/sidebar-B5uO9sUB.js +1 -0
  325. package/dist/showcase/assets/{sidebar.context-BCb20eIt.js → sidebar.context-CRjgeYJL.js} +1 -1
  326. package/dist/showcase/assets/{skeleton-BeVdks4r.js → skeleton-BtiPkfxB.js} +1 -1
  327. package/dist/showcase/assets/{skeleton-DijlT51X.js → skeleton-DbybIpkV.js} +1 -1
  328. package/dist/showcase/assets/slider-vuwVVBby.js +1 -0
  329. package/dist/showcase/assets/{sliders-horizontal-C8RwUn0S.js → sliders-horizontal-BE_cwUn0.js} +1 -1
  330. package/dist/showcase/assets/{smart-card-B4P_C0nk.js → smart-card-Dhu_1A_u.js} +1 -1
  331. package/dist/showcase/assets/{sonner-CLYYRmEW.js → sonner-DZB-G4q5.js} +2 -2
  332. package/dist/showcase/assets/{sortable.esm-CoekVJlU.js → sortable.esm-YOwRw8Hr.js} +1 -1
  333. package/dist/showcase/assets/{sparkles-DFJmoAFP.js → sparkles-N8rqKQez.js} +1 -1
  334. package/dist/showcase/assets/{spinner-DMKANM9S.js → spinner-B5zKCNXu.js} +2 -2
  335. package/dist/showcase/assets/{spinner-WEI7TMVk.js → spinner-BOjRziLu.js} +1 -1
  336. package/dist/showcase/assets/{spinner-CeQHboSs.js → spinner-PIr8y8av.js} +1 -1
  337. package/dist/showcase/assets/{square-pen-CfvmmXYo.js → square-pen-ImRrVwT8.js} +1 -1
  338. package/dist/showcase/assets/{stacked-avatars-CcCnnUrA.js → stacked-avatars-DnIAc098.js} +1 -1
  339. package/dist/showcase/assets/{star-DK5onZCp.js → star-BaV-UTPq.js} +1 -1
  340. package/dist/showcase/assets/startOfDay-CtTeiGV0.js +1 -0
  341. package/dist/showcase/assets/stringifyLocale-CkHjdQTJ.js +1 -0
  342. package/dist/showcase/assets/{styles-BStlbPXe.js → styles-Bv0pDLVi.js} +1 -1
  343. package/dist/showcase/assets/{suggestions-Cd_XUmz3.js → suggestions-QnLPdgnG.js} +2 -2
  344. package/dist/showcase/assets/switch-DwAS_TXx.js +1 -0
  345. package/dist/showcase/assets/{switch-arjWj-n7.js → switch-xzxCDtyg.js} +1 -1
  346. package/dist/showcase/assets/{sync-DorQdMfx.js → sync-LeYxWAap.js} +2 -2
  347. package/dist/showcase/assets/{table-ClYkDRAk.js → table-BbEFanNu.js} +1 -1
  348. package/dist/showcase/assets/{table-D9q0odD8.js → table-CVVHBty6.js} +5 -5
  349. package/dist/showcase/assets/{table-actions-UJbkGb44.js → table-actions-DvI9U67L.js} +1 -1
  350. package/dist/showcase/assets/tabs-CLcyGwLd.js +1 -0
  351. package/dist/showcase/assets/{tabs-BENBPFif.js → tabs-ck8y1Bjr.js} +1 -1
  352. package/dist/showcase/assets/{tags-input-DRlg3zQH.js → tags-input-DmBY2CKI.js} +1 -1
  353. package/dist/showcase/assets/{text-button-CQvP6Kic.js → text-button-C54O1rZM.js} +1 -1
  354. package/dist/showcase/assets/{text-link-DT-nOORV.js → text-link-9_mZpq_f.js} +1 -1
  355. package/dist/showcase/assets/{textarea-BGHGV17m.js → textarea-CHvnWHWH.js} +1 -1
  356. package/dist/showcase/assets/{textarea-pstF1OBP.js → textarea-jexcMklP.js} +1 -1
  357. package/dist/showcase/assets/{timelines-D8y-IyxW.js → timelines-uvFVjEQv.js} +2 -2
  358. package/dist/showcase/assets/toggle-group-B3fORi8i.js +1 -0
  359. package/dist/showcase/assets/{toggles-dhLpAHSR.js → toggles-Cox6Yk2k.js} +1 -1
  360. package/dist/showcase/assets/{toggles-group-BJ5Jio2p.js → toggles-group-CSvSPqCB.js} +1 -1
  361. package/dist/showcase/assets/{trash-2-OsaEm8cc.js → trash-2-CE9bDw49.js} +1 -1
  362. package/dist/showcase/assets/trending-up-0iJl0XvC.js +1 -0
  363. package/dist/showcase/assets/{truck-CvvBxBeB.js → truck-DlhOPoCD.js} +1 -1
  364. package/dist/showcase/assets/{typography-D_99bjSh.js → typography-BotOITw4.js} +17 -17
  365. package/dist/showcase/assets/{ui-badge-C1bu7wRu.js → ui-badge-hfmO1K3-.js} +2 -2
  366. package/dist/showcase/assets/{ui-card-Ct1FFUxv.js → ui-card-Aigzxhn3.js} +1 -1
  367. package/dist/showcase/assets/{ui-table-Dxu9Jjq0.js → ui-table-CKif9sNO.js} +1 -1
  368. package/dist/showcase/assets/{upload-tray-BeOBVU1z.js → upload-tray-BnKDNrw9.js} +3 -3
  369. package/dist/showcase/assets/{use-layout-link-BK_oEoBg.js → use-layout-link-BQ6Y9z__.js} +1 -1
  370. package/dist/showcase/assets/useAnchoredPopupScrollLock-CP1vkwD7.js +1 -0
  371. package/dist/showcase/assets/useAriaLabelledBy-J_Rvjwx3.js +1 -0
  372. package/dist/showcase/assets/useCollapsiblePanel-BwUOowW2.js +1 -0
  373. package/dist/showcase/assets/useCompositeItem-D3XOIML-.js +1 -0
  374. package/dist/showcase/assets/useCompositeListItem-BWfShNPP.js +1 -0
  375. package/dist/showcase/assets/useControlled-BF8maje6.js +1 -0
  376. package/dist/showcase/assets/useLabelableId-DxorZ3YW.js +1 -0
  377. package/dist/showcase/assets/useOpenInteractionType-DLUX6CcH.js +1 -0
  378. package/dist/showcase/assets/useRender-B9zzqKA1.js +1 -0
  379. package/dist/showcase/assets/useTriggerFocusGuards-BSvL8pKg.js +1 -0
  380. package/dist/showcase/assets/useValueChanged-DSoTBFAJ.js +1 -0
  381. package/dist/showcase/assets/user-BZog6aIh.js +1 -0
  382. package/dist/showcase/assets/{user-plus-MMxrhI4h.js → user-plus-CPxlPoxf.js} +1 -1
  383. package/dist/showcase/assets/{users-ERTaffcv.js → users-BgXAp2UO.js} +1 -1
  384. package/dist/showcase/assets/valueToPercent-gleKSaFe.js +1 -0
  385. package/dist/showcase/assets/{vendor-profile-BAwCE0wP.js → vendor-profile-BLYiDIrO.js} +2 -2
  386. package/dist/showcase/assets/{video-DJm0ubTE.js → video-YBnCbmIb.js} +1 -1
  387. package/dist/showcase/assets/{wrench-gaXnvr_b.js → wrench-BFTavxzg.js} +1 -1
  388. package/dist/showcase/assets/x-D8UN9pOu.js +1 -0
  389. package/dist/showcase/assets/{zap-DHBVTfYZ.js → zap-DIJUAJEb.js} +1 -1
  390. package/dist/showcase/index.html +2 -2
  391. package/dist/style.css +1 -1
  392. package/package.json +5 -2
  393. package/dist/_shared/header-BUAddfdE.js.map +0 -1
  394. package/dist/_shared/header-BnxWOiNm.cjs +0 -2
  395. package/dist/_shared/header-BnxWOiNm.cjs.map +0 -1
  396. package/dist/_shared/sidebar-BML5ZZ5s.js.map +0 -1
  397. package/dist/_shared/sidebar-C89O5ho_.cjs +0 -2
  398. package/dist/_shared/sidebar-C89O5ho_.cjs.map +0 -1
  399. package/dist/showcase/assets/CSPContext-ImKusJJ_.js +0 -1
  400. package/dist/showcase/assets/CompositeItem-DleE4kTc.js +0 -1
  401. package/dist/showcase/assets/CompositeRoot-BbNkvtLz.js +0 -1
  402. package/dist/showcase/assets/DialogTrigger-C0DB0bXw.js +0 -1
  403. package/dist/showcase/assets/FieldItemContext-CFTR-INZ.js +0 -1
  404. package/dist/showcase/assets/FormContext-lmjYAh4E.js +0 -1
  405. package/dist/showcase/assets/LabelableContext-CDv6gSfU.js +0 -1
  406. package/dist/showcase/assets/RadioGroup-C-0MNAYY.js +0 -1
  407. package/dist/showcase/assets/Separator-KsPLUEno.js +0 -1
  408. package/dist/showcase/assets/ToolbarRootContext-AV8xAl2m.js +0 -1
  409. package/dist/showcase/assets/accordion-variants-CVT_62VO.js +0 -1
  410. package/dist/showcase/assets/app-sidebar-DixqrLf2.js +0 -1
  411. package/dist/showcase/assets/arrow-down-CYh_aUsd.js +0 -1
  412. package/dist/showcase/assets/arrow-left-pYYsNkZE.js +0 -1
  413. package/dist/showcase/assets/arrow-right-Bf1Tl6D5.js +0 -1
  414. package/dist/showcase/assets/arrow-up-BhmQRZs9.js +0 -1
  415. package/dist/showcase/assets/arrow-up-right-CuAsO3-r.js +0 -1
  416. package/dist/showcase/assets/avatar-5EFTnHEG.js +0 -1
  417. package/dist/showcase/assets/checkbox-fwuAAaUZ.js +0 -1
  418. package/dist/showcase/assets/chevron-down-CSn8HCwf.js +0 -1
  419. package/dist/showcase/assets/chevron-left-Ddj6-KOu.js +0 -1
  420. package/dist/showcase/assets/chevron-right-d-umkBru.js +0 -1
  421. package/dist/showcase/assets/chevron-up-CeFY6O0I.js +0 -1
  422. package/dist/showcase/assets/chevrons-up-down-Ck3rUZtc.js +0 -1
  423. package/dist/showcase/assets/circle-Dy08kACD.js +0 -1
  424. package/dist/showcase/assets/circle-check-TT7cFQrr.js +0 -1
  425. package/dist/showcase/assets/circle-check-big-4RnJfeaC.js +0 -1
  426. package/dist/showcase/assets/circle-dot-CvoDXS-W.js +0 -1
  427. package/dist/showcase/assets/clock-3-DDEsD4Tb.js +0 -1
  428. package/dist/showcase/assets/clock-DuBsP5t3.js +0 -1
  429. package/dist/showcase/assets/collapsible-DagkA3To.js +0 -1
  430. package/dist/showcase/assets/command-BtaMPVtf.js +0 -45
  431. package/dist/showcase/assets/comment-item-Ctcpx1GX.js +0 -1
  432. package/dist/showcase/assets/display-DTaQWVJp.js +0 -403
  433. package/dist/showcase/assets/dropdown-menu-bPWrLPgm.js +0 -1
  434. package/dist/showcase/assets/enhanced-combobox-Cs_-wq9p.js +0 -1
  435. package/dist/showcase/assets/example-BIrQab7K.js +0 -1
  436. package/dist/showcase/assets/feature-announcement-0dOcSH7F.js +0 -34
  437. package/dist/showcase/assets/getPseudoElementBounds-Bznj386s.js +0 -1
  438. package/dist/showcase/assets/header-notifications-3VH9lzzJ.js +0 -1
  439. package/dist/showcase/assets/index-ADfexGMA.css +0 -2
  440. package/dist/showcase/assets/inertValue-BVXUUuS4.js +0 -1
  441. package/dist/showcase/assets/input-BzafMIDj.js +0 -1
  442. package/dist/showcase/assets/inputs-DjzrYJdb.js +0 -49
  443. package/dist/showcase/assets/isSameDay-DVNkwpSk.js +0 -1
  444. package/dist/showcase/assets/isToday-DZ1HTCty.js +0 -1
  445. package/dist/showcase/assets/mention-inline-suggestions-DyW6IwL8.js +0 -1
  446. package/dist/showcase/assets/menus-CJjtE4fD.js +0 -89
  447. package/dist/showcase/assets/minus-OyRBql2C.js +0 -1
  448. package/dist/showcase/assets/overlays-CVGJ_FEg.js +0 -88
  449. package/dist/showcase/assets/page-header-CikNDnqI.js +0 -1
  450. package/dist/showcase/assets/plus-DkHZm34I.js +0 -1
  451. package/dist/showcase/assets/popover-BSB11Qjp.js +0 -1
  452. package/dist/showcase/assets/progress-DGvRQyPS.js +0 -1
  453. package/dist/showcase/assets/resolveAriaLabelledBy-B2ZzrlGb.js +0 -1
  454. package/dist/showcase/assets/resolveValueLabel-CGuVi0Dj.js +0 -1
  455. package/dist/showcase/assets/rotate-ccw-7aUlKQpX.js +0 -1
  456. package/dist/showcase/assets/scroll-area-CgXTHlpJ.js +0 -1
  457. package/dist/showcase/assets/select-BG_Iad8E.js +0 -1
  458. package/dist/showcase/assets/sidebar--2nHUTn3.js +0 -1
  459. package/dist/showcase/assets/slider-Cp4m3NTK.js +0 -1
  460. package/dist/showcase/assets/startOfDay-BuizEr24.js +0 -1
  461. package/dist/showcase/assets/switch-5f1vwEZ7.js +0 -1
  462. package/dist/showcase/assets/tabs-ePpje8sU.js +0 -1
  463. package/dist/showcase/assets/toggle-group-BVyFo04r.js +0 -1
  464. package/dist/showcase/assets/trending-up-HlQQXTth.js +0 -1
  465. package/dist/showcase/assets/useAnchoredPopupScrollLock-DLXArfPo.js +0 -1
  466. package/dist/showcase/assets/useAriaLabelledBy-etINba8U.js +0 -1
  467. package/dist/showcase/assets/useCollapsiblePanel-BNe9r1t_.js +0 -1
  468. package/dist/showcase/assets/useCompositeItem-CvG1CBEV.js +0 -1
  469. package/dist/showcase/assets/useCompositeListItem-CcY0U1bY.js +0 -1
  470. package/dist/showcase/assets/useControlled-Cpg8gDqb.js +0 -1
  471. package/dist/showcase/assets/useLabelableId-Czdg4nY8.js +0 -1
  472. package/dist/showcase/assets/useOpenInteractionType-eyZ6twES.js +0 -1
  473. package/dist/showcase/assets/useRender-BAZlIYnj.js +0 -1
  474. package/dist/showcase/assets/useTriggerFocusGuards-C2I8g7TT.js +0 -1
  475. package/dist/showcase/assets/useValueChanged-Bz3WRSDy.js +0 -1
  476. package/dist/showcase/assets/user-Bqmz8M16.js +0 -1
  477. package/dist/showcase/assets/valueToPercent-B5BHWU68.js +0 -1
  478. package/dist/showcase/assets/x-BqJnRkKw.js +0 -1
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALsF.js";import{Er as r,hr as i,mr as a,t as o}from"./example-BIrQab7K.js";import{t as s}from"./rich-text-editor-Bha0lSKT.js";import{s as c}from"./index-Cz4UGUT2.js";import{t as l}from"./props-table-BR-KjRNe.js";var u=e({CompactSmallerInlineNote:()=>g,Default:()=>h,Disabled:()=>v,EmptyPlaceholder:()=>_,ProductionWiring:()=>m,StringsOverride:()=>y}),d=t(n(),1),f=c(),p=`<h3>Spa cleaning checklist</h3>
1
+ import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALsF.js";import{Dr as r,Er as i,Rr as a,t as o}from"./example-Cz_880po.js";import{t as s}from"./rich-text-editor-CNtfwLC2.js";import{s as c}from"./index-BQIv1ffM.js";import{t as l}from"./props-table-2pIZzGC-.js";var u=e({CompactSmallerInlineNote:()=>g,Default:()=>h,Disabled:()=>v,EmptyPlaceholder:()=>_,ProductionWiring:()=>m,StringsOverride:()=>y}),d=t(n(),1),f=c(),p=`<h3>Spa cleaning checklist</h3>
2
2
  <p>Before each session:</p>
3
3
  <ul>
4
4
  <li>Refill towels and bath products</li>
@@ -10,7 +10,7 @@ import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALs
10
10
  <li>Sanitise the tubs</li>
11
11
  <li>Restock guest amenities</li>
12
12
  <li>Reset the music</li>
13
- </ol>`;function m(){return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(r,{type:`secondary`,children:[`Use `,(0,f.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`<RichTextEditor value={html} onChange={setHtml} showCounts maxLength={500} />`})," on any page that needs structured rich text input. The editor handles paste, undo/redo, and exposes a `strings` prop for toolbar i18n; consumers persist the resulting HTML string."]})})}function h(){let[e,t]=(0,d.useState)(p);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,showCounts:!0,maxLength:500})})}function g(){let[e,t]=(0,d.useState)(`<p>A short note about today's bookings.</p>`);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,compact:!0,showCounts:!0,maxLength:140})})}function _(){let[e,t]=(0,d.useState)(``);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,placeholder:`Write something…`,hideSourceToggle:!0})})}function v(){return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:p,onChange:()=>{},disabled:!0,hideSourceToggle:!0})})}function y(){let[e,t]=(0,d.useState)(`<p>A short note about today's bookings.</p>`);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,compact:!0,strings:{toolbar:{bold:`Gras`,italic:`Italique`,strike:`Barré`,bulletList:`Liste`,orderedList:`Numérotée`,blockquote:`Citation`,undo:`Annuler`,redo:`Rétablir`,sourceCode:`Source`}}})})}var b=`import { useState } from 'react';
13
+ </ol>`;function m(){return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(a,{type:`secondary`,children:[`Use `,(0,f.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`<RichTextEditor value={html} onChange={setHtml} showCounts maxLength={500} />`})," on any page that needs structured rich text input. The editor handles paste, undo/redo, and exposes a `strings` prop for toolbar i18n; consumers persist the resulting HTML string."]})})}function h(){let[e,t]=(0,d.useState)(p);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,showCounts:!0,maxLength:500})})}function g(){let[e,t]=(0,d.useState)(`<p>A short note about today's bookings.</p>`);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,compact:!0,showCounts:!0,maxLength:140})})}function _(){let[e,t]=(0,d.useState)(``);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,placeholder:`Write something…`,hideSourceToggle:!0})})}function v(){return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:p,onChange:()=>{},disabled:!0,hideSourceToggle:!0})})}function y(){let[e,t]=(0,d.useState)(`<p>A short note about today's bookings.</p>`);return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(s,{value:e,onChange:t,compact:!0,strings:{toolbar:{bold:`Gras`,italic:`Italique`,strike:`Barré`,bulletList:`Liste`,orderedList:`Numérotée`,blockquote:`Citation`,undo:`Annuler`,redo:`Rétablir`,sourceCode:`Source`}}})})}var b=`import { useState } from 'react';
14
14
  import { RichTextEditor } from '@/components/features/rich-text-editor';
15
15
  import { Text } from '@/components/typography';
16
16
 
@@ -121,4 +121,4 @@ export function StringsOverride() {
121
121
  </>
122
122
  );
123
123
  }
124
- `;function x(e){let t={h4:`h4`,...e.components};return u||C(`Examples`,!1),g||C(`Examples.CompactSmallerInlineNote`,!0),h||C(`Examples.Default`,!0),v||C(`Examples.Disabled`,!0),_||C(`Examples.EmptyPlaceholder`,!0),m||C(`Examples.ProductionWiring`,!0),y||C(`Examples.StringsOverride`,!0),(0,f.jsxs)(i,{title:`Features · Rich text editor`,description:"Tiptap-backed editor with bold / italic / strike / lists / quote / undo-redo. Falls back to a non-editable preview when @tiptap/react is not bundled. Strings overridable via the `strings` prop.",layer:`features`,status:`ready`,children:[(0,f.jsxs)(a,{title:`Examples`,id:`examples`,children:[(0,f.jsx)(o,{name:`ProductionWiring`,source:b,children:(0,f.jsx)(m,{})}),(0,f.jsx)(o,{name:`Default`,source:b,children:(0,f.jsx)(h,{})}),(0,f.jsx)(o,{name:`CompactSmallerInlineNote`,source:b,children:(0,f.jsx)(g,{})}),(0,f.jsx)(o,{name:`EmptyPlaceholder`,source:b,children:(0,f.jsx)(_,{})}),(0,f.jsx)(o,{name:`Disabled`,source:b,children:(0,f.jsx)(v,{})}),(0,f.jsx)(o,{name:`StringsOverride`,source:b,children:(0,f.jsx)(y,{})})]}),(0,f.jsxs)(a,{title:`API`,id:`api`,children:[(0,f.jsx)(t.h4,{children:`RichTextEditor`}),(0,f.jsx)(l,{component:`RichTextEditor`})]})]})}function S(e={}){let{wrapper:t}=e.components||{};return t?(0,f.jsx)(t,{...e,children:(0,f.jsx)(x,{...e})}):x(e)}function C(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default};
124
+ `;function x(e){let t={h4:`h4`,...e.components};return u||C(`Examples`,!1),g||C(`Examples.CompactSmallerInlineNote`,!0),h||C(`Examples.Default`,!0),v||C(`Examples.Disabled`,!0),_||C(`Examples.EmptyPlaceholder`,!0),m||C(`Examples.ProductionWiring`,!0),y||C(`Examples.StringsOverride`,!0),(0,f.jsxs)(r,{title:`Features · Rich text editor`,description:"Tiptap-backed editor with bold / italic / strike / lists / quote / undo-redo. Falls back to a non-editable preview when @tiptap/react is not bundled. Strings overridable via the `strings` prop.",layer:`features`,status:`ready`,children:[(0,f.jsxs)(i,{title:`Examples`,id:`examples`,children:[(0,f.jsx)(o,{name:`ProductionWiring`,source:b,children:(0,f.jsx)(m,{})}),(0,f.jsx)(o,{name:`Default`,source:b,children:(0,f.jsx)(h,{})}),(0,f.jsx)(o,{name:`CompactSmallerInlineNote`,source:b,children:(0,f.jsx)(g,{})}),(0,f.jsx)(o,{name:`EmptyPlaceholder`,source:b,children:(0,f.jsx)(_,{})}),(0,f.jsx)(o,{name:`Disabled`,source:b,children:(0,f.jsx)(v,{})}),(0,f.jsx)(o,{name:`StringsOverride`,source:b,children:(0,f.jsx)(y,{})})]}),(0,f.jsxs)(i,{title:`API`,id:`api`,children:[(0,f.jsx)(t.h4,{children:`RichTextEditor`}),(0,f.jsx)(l,{component:`RichTextEditor`})]})]})}function S(e={}){let{wrapper:t}=e.components||{};return t?(0,f.jsx)(t,{...e,children:(0,f.jsx)(x,{...e})}):x(e)}function C(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default};
@@ -0,0 +1 @@
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);export{t};
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALsF.js";import{Er as r,hr as i,mr as a,r as o,t as s}from"./example-BIrQab7K.js";import{t as c}from"./bell-Dt3Nz2y2.js";import{t as l}from"./earth-C7n2JAYm.js";import{t as u}from"./lock-keyhole-M6KZ_7RC.js";import{t as d}from"./mail-w1nhszbW.js";import{t as f}from"./package-check-CT0dhSM8.js";import{t as p}from"./shield-check-CRbBJXw2.js";import{t as m}from"./sliders-horizontal-C8RwUn0S.js";import{t as h}from"./sparkles-DFJmoAFP.js";import{a as g,k as _,n as v,s as y}from"./index-Cz4UGUT2.js";import{t as b}from"./props-table-BR-KjRNe.js";import{t as x}from"./smart-card-B4P_C0nk.js";import{t as S}from"./input-BPDdWrB1.js";import{t as C}from"./textarea-BGHGV17m.js";import{t as w}from"./select-t6dryszf.js";import{i as ee,n as te,r as T,t as E}from"./tags-input-DRlg3zQH.js";import{n as D,t as ne}from"./card-radio-group-Du6yaMZ-.js";import{n as O}from"./form-field-Cxm4APa9.js";var re=g(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),k=g(`webhook`,[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]),ie={1:`grid grid-cols-1 gap-4`,2:`grid grid-cols-1 gap-4 md:grid-cols-2`,3:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`},ae={auto:``,half:`md:col-span-1`,third:`xl:col-span-1`,full:`md:col-span-full xl:col-span-full`};function A(e,t,n){if(typeof e.hidden==`function`)try{return e.hidden(t)}catch(e){return n?.(e),!1}return e.hidden??!1}function oe(e,t,n){if(typeof e.disabled==`function`)try{return e.disabled(t)}catch(e){return n?.(e),!0}return e.disabled??!1}function j(e,t,n){return e.filter(e=>!A(e,t,n))}function se(e,t,n,r,i){let a=j(e.fields,t,i),o=new Map(a.map(e=>[e.key,e])),s=new Set,c=[];for(let t of e.sections??[]){let e=t.fields?t.fields.map(e=>o.get(e)).filter(e=>e!==void 0):a.filter(e=>e.sectionId===t.id);for(let t of e)s.add(t.key);c.push({id:t.id,title:t.title,description:t.description,icon:t.icon,fields:e,columns:t.columns??r,footerSlot:t.footerSlot,className:t.className})}let l=a.filter(e=>!s.has(e.key));return(l.length>0||c.length===0)&&c.unshift({id:`default`,title:e.sections?.length?n:void 0,fields:l,columns:r}),c.filter(e=>e.fields.length>0)}function M(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function N(e){return Array.isArray(e)?e.map(e=>String(e)):[]}function P(e){return e===!0||e===`true`||e===1}function F(e,t=!1){let n=e.trim();if(n.length===0)return null;let r=t?Number.parseInt(n,10):Number.parseFloat(n);return Number.isNaN(r)?null:r}function I(e,t=2){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,t)}catch{return String(e)}}function L(e){let t=e.trim();if(t.length===0)return{value:null,valid:!0};try{return{value:JSON.parse(t),valid:!0}}catch{return{value:e,valid:!1}}}var R=t(n(),1);function z(e,t){let n={...t??{}};for(let t of e)t.defaultValue!==void 0&&n[t.key]===void 0&&(n[t.key]=t.defaultValue);return n}function B(e){return e==null?!0:typeof e==`string`?e.trim().length===0:Array.isArray(e)?e.length===0:!1}function ce(e){let t={};for(let[n,r]of Object.entries(e??{}))r&&(t[n]=r);return t}function le({fields:e,value:t,defaultValue:n,errors:r,onValueChange:i,onFieldChange:a,formatRequiredError:o,validationError:s,onError:c}){let l=t!==void 0,u=(0,R.useMemo)(()=>z(e,n),[n,e]),[d,f]=(0,R.useState)(()=>u),[p,m]=(0,R.useState)({}),h=(0,R.useMemo)(()=>l?{...u,...t??{}}:d,[u,d,l,t]),g=(0,R.useMemo)(()=>({...p,...ce(r)}),[r,p]),_=(0,R.useCallback)(e=>{l||f(e),i?.(e)},[l,i]),v=(0,R.useCallback)((e,t)=>{let n={...h,[e]:t};l||f(n),m(t=>{if(!t[e])return t;let n={...t};return delete n[e],n}),a?.(e,t,n),i?.(n)},[l,a,i,h]),y=(0,R.useCallback)(()=>{let t=z(e,n);return l||f(t),m({}),i?.(t),t},[n,e,l,i]),b=(0,R.useCallback)(()=>{let t={};for(let n of e){if(A(n,h,c))continue;let e=h[n.key];if(n.required&&B(e)){t[n.key]=o(n.label);continue}let r=Array.isArray(n.validate)?n.validate:n.validate?[n.validate]:[];for(let i of r)try{let r=i(e,h,n);if(typeof r==`string`&&r.length>0){t[n.key]=r;break}}catch(e){c?.(e),t[n.key]=s;break}}return m(t),Object.keys(t).length===0},[e,o,c,s,h]);return{values:h,errors:g,getFieldError:(0,R.useCallback)(e=>g[e],[g]),getFieldValue:(0,R.useCallback)(e=>h[e],[h]),setFieldValue:v,setValues:_,reset:y,validate:b}}var V=y();function ue({submitLabel:e,resetLabel:t,showReset:n=!1,disabled:r=!1,submitDisabled:i=!1,resetDisabled:a=!1,isSubmitting:s=!1,onReset:c,className:l}){return(0,V.jsxs)(`div`,{className:v(`schema-form-actions--component flex items-center justify-end gap-2`,l),children:[!!n&&(0,V.jsx)(o,{type:`button`,variant:`secondary`,buttonStyle:`outline`,disabled:r||a||s,onClick:c,children:t}),(0,V.jsx)(o,{type:`submit`,variant:`primary`,loading:s,disabled:r||i,children:e})]})}ue.displayName=`SchemaFormActions`;function de({title:e,description:t,className:n}){return(0,V.jsxs)(`div`,{className:v(`schema-form-empty--component rounded-md border border-dashed border-border bg-muted/20 p-6 text-center`,n),children:[(0,V.jsx)(r,{weight:`semibold`,children:e}),(0,V.jsx)(r,{size:`xs`,type:`secondary`,className:`mt-1`,children:t})]})}de.displayName=`SchemaFormEmpty`;function H(e){return e.hint??e.description}function U(e,t,n,r){if(e.formatValue)try{return e.formatValue(t,n)}catch(e){r?.(e)}return M(t)}function W(e,t,n,r){if(e.parseValue)try{return e.parseValue(t,n)}catch(e){r?.(e)}return t}function G(e,t,n,r,i){if(e.parseValue)try{return e.parseValue(t,n)}catch(e){i?.(e)}return F(t,r)}function K(e,t,n,r){if(e.type===`json`&&e.parseValue)try{return{value:e.parseValue(t,n),valid:!0}}catch(e){return r?.(e),{value:t,valid:!1}}return L(t)}function fe(e){if(!e.icon)return;let t=e.icon;return(0,V.jsx)(t,{className:`size-4`,"aria-hidden":`true`})}function q({field:e,value:t,values:n,error:r,disabled:i,fieldId:a,onValueChange:o,onError:s,strings:c}){let l=e.type===`json`?e.jsonIndent??2:2,[u,d]=(0,R.useState)(()=>I(t,l)),[f,p]=(0,R.useState)(),[m,h]=(0,R.useState)(!1);if((0,R.useEffect)(()=>{m||d(I(t,l))},[l,m,t]),e.type!==`json`)return null;let g=t=>{let r=K(e,t,n,s);return p(r.valid?void 0:c.jsonParseError),o(r.value),r};return(0,V.jsx)(O,{label:e.label,required:e.required,hint:H(e),helperText:e.helperText,error:r??f,htmlFor:a,className:`schema-form-field--component schema-form-field--json`,children:(0,V.jsx)(C,{id:a,name:e.key,value:u,rows:e.rows??6,disabled:i,invalid:!!(r??f),placeholder:e.placeholder,spellCheck:!1,className:v(`font-mono`,e.controlClassName),onFocus:()=>h(!0),onChange:t=>{let r=t.target.value;d(r);let i=K(e,r,n,s);p(i.valid?void 0:c.jsonParseError),o(i.value)},onBlur:()=>{h(!1);let e=g(u);e.valid&&d(I(e.value,l))},...e.textareaProps})})}function pe({field:e,value:t,values:n,error:r,disabled:i,required:a,fieldId:o,onValueChange:s,onError:c,strings:l,className:u}){let d=e.type??`text`,f={label:e.label,required:a,hint:H(e),helperText:e.helperText,error:r,htmlFor:o,className:v(`schema-form-field--component`,u)},p=e.controlClassName;if(d===`custom`&&e.type===`custom`)return(0,V.jsx)(`div`,{className:v(`schema-form-field--component schema-form-field--custom`,u),children:e.render({field:e,value:t,values:n,error:r,disabled:i,required:a,fieldId:o,onValueChange:s,onError:c})});if(d===`switch`&&e.type===`switch`){let n=P(t);return e.switchStyle===`card`?(0,V.jsx)(O,{error:r,className:v(`schema-form-field--component schema-form-field--switch-card`,u),children:(0,V.jsx)(T,{label:e.label,description:e.description,hint:e.hint,name:e.key,value:n,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.switchCardProps})}):(0,V.jsx)(O,{error:r,className:v(`schema-form-field--component schema-form-field--switch`,u),children:(0,V.jsx)(te,{label:e.label,description:e.description??e.hint,name:e.key,value:n,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.switchProps})})}if(d===`json`)return(0,V.jsx)(q,{field:e,value:t,values:n,error:r,disabled:i,required:a,fieldId:o,onValueChange:s,onError:c,strings:l});if(d===`textarea`&&e.type===`textarea`){let l=U(e,t,n,c);return(0,V.jsx)(O,{...f,children:(0,V.jsx)(C,{id:o,name:e.key,value:l,rows:e.rows,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,className:p,onChange:t=>s(W(e,t.target.value,n,c)),...e.textareaProps})})}if((d===`number`||d===`integer`||d===`decimal`)&&(e.type===`number`||e.type===`integer`||e.type===`decimal`)){let l=U(e,t,n,c),u=e.type===`integer`,d=u?0:e.decimalPlaces??(e.type===`decimal`?2:4);return(0,V.jsx)(O,{...f,children:(0,V.jsx)(ee,{id:o,name:e.key,value:l,min:e.min,max:e.max,step:e.step,decimalPlaces:d,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,className:p,onChange:t=>{let r=t.target.value;s(G(e,r,n,u,c))},...e.numberProps})})}if(d===`select`&&e.type===`select`){let n=e.options.map(e=>({value:e.value,label:e.label,disabled:e.disabled,icon:fe(e)}));return(0,V.jsx)(O,{...f,children:(0,V.jsx)(w,{name:e.key,value:M(t),options:n,allowClear:e.allowClear,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,"aria-label":e.label,className:p,onChange:e=>s(e??null),...e.selectProps})})}if(d===`radio-cards`&&e.type===`radio-cards`)return(0,V.jsx)(O,{...f,children:(0,V.jsx)(ne,{name:e.key,value:M(t),options:e.options,columns:e.columns,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.radioProps})});if(d===`checkbox-cards`&&e.type===`checkbox-cards`)return(0,V.jsx)(O,{...f,children:(0,V.jsx)(D,{name:e.key,value:N(t),options:e.options,columns:e.columns,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.checkboxProps})});if(d===`tags`&&e.type===`tags`)return(0,V.jsx)(O,{...f,children:(0,V.jsx)(E,{value:N(t),recommendations:e.recommendations,maxTags:e.maxTags,disabled:i,invalid:!!r,placeholder:e.placeholder,className:p,onChange:e=>s(e),...e.tagsProps})});let m=d===`text`?`text`:d,h=U(e,t,n,c);return(0,V.jsx)(O,{...f,children:(0,V.jsx)(S,{id:o,name:e.key,type:m,value:h,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,className:p,onChange:t=>s(W(e,t.target.value,n,c)),...e.type===void 0||e.type===`text`||e.type===`email`||e.type===`password`||e.type===`url`||e.type===`tel`||e.type===`search`?e.inputProps:{}})})}pe.displayName=`SchemaFormFieldRenderer`;var me={submitLabel:`Save changes`,resetLabel:`Reset`,defaultSectionTitle:`General`,emptyTitle:`No fields configured`,emptyDescription:`Add fields to the schema to render a form.`,jsonParseError:`Enter valid JSON.`,validationError:`Invalid value.`,formatRequiredError:e=>`${e} is required.`};function he(e){return e.replace(/[^a-zA-Z0-9_-]/g,`-`)}function ge({section:e}){return!e.title&&!e.description?null:(0,V.jsxs)(`div`,{className:`schema-form--section-heading mb-3 space-y-1`,children:[!!e.title&&(0,V.jsx)(r,{weight:`semibold`,className:`schema-form--section-title`,children:e.title}),!!e.description&&(0,V.jsx)(r,{size:`xs`,type:`secondary`,className:`schema-form--section-description`,children:e.description})]})}function J({schema:e,value:t,defaultValue:n,errors:i,disabled:a=!1,layout:o=`form`,columns:s=2,id:c,name:l,title:u,description:d,headerSlot:f,footerSlot:p,actionsSlot:m,emptySlot:h,showActions:g,submitLabel:y,resetLabel:b,submitDisabled:S=!1,resetDisabled:C=!1,isSubmitting:w=!1,onValueChange:ee,onFieldChange:te,onSubmit:T,onReset:E,onError:D,renderField:ne,renderSection:O,strings:re,className:k,contentClassName:A,sectionClassName:j,fieldClassName:M}){let N=(0,R.useId)(),P=c??`schema-form-${N}`,F=_(me,re),I=le({fields:e.fields,value:t,defaultValue:n,errors:i,onValueChange:ee,onFieldChange:te,formatRequiredError:F.formatRequiredError,validationError:F.validationError,onError:D}),L=(0,R.useMemo)(()=>se(e,I.values,F.defaultSectionTitle,s,D),[s,I.values,D,e,F.defaultSectionTitle]),z=L.some(e=>e.fields.length>0),B={setFieldValue:I.setFieldValue,setValues:I.setValues,reset:I.reset,validate:I.validate},ce=g??!!(T||E||m),H=y??F.submitLabel,U=b??F.resetLabel,W=e=>{let t=`${P}-${he(e.key)}`,n=a||oe(e,I.values,D),r={field:e,value:I.getFieldValue(e.key),values:I.values,error:I.getFieldError(e.key),disabled:n,required:!!e.required,fieldId:t,onValueChange:t=>I.setFieldValue(e.key,t),onError:D},i=(0,V.jsx)(pe,{...r,strings:F});return(0,V.jsx)(`div`,{className:v(`schema-form--field`,ae[e.width??`auto`],e.className,M),children:ne?.({...r,defaultField:i})??i},e.key)},G=e=>(0,V.jsx)(`div`,{className:v(`schema-form--section-fields`,ie[e.columns]),children:e.fields.map(W)}),K=e=>{let t=G(e),n=O?.({section:e,fields:t,values:I.values});return n==null?(0,V.jsxs)(`section`,{className:v(`schema-form--section`,e.className,j),children:[(0,V.jsx)(ge,{section:e}),t,!!e.footerSlot&&(0,V.jsx)(`div`,{className:`schema-form--section-footer mt-3`,children:e.footerSlot})]},e.id):(0,V.jsx)(R.Fragment,{children:n},e.id)},fe=e=>{let t=G(e),n=O?.({section:e,fields:t,values:I.values});return n==null?(0,V.jsx)(x,{className:v(`schema-form--section-card`,e.className,j),icon:e.icon,title:e.title,description:e.description,footerSlot:e.footerSlot,headerDivider:!0,children:t},e.id):(0,V.jsx)(R.Fragment,{children:n},e.id)},q=m??(ce?(0,V.jsx)(ue,{submitLabel:H,resetLabel:U,showReset:!!E,disabled:a,submitDisabled:S,resetDisabled:C,isSubmitting:w,onReset:()=>{let e=I.reset();E?.(e,B)}}):null),J=h??(0,V.jsx)(de,{title:F.emptyTitle,description:F.emptyDescription});return(0,V.jsx)(`form`,{id:P,name:l,noValidate:!0,className:v(`schema-form--component`,k),onSubmit:async e=>{if(e.preventDefault(),!(a||S||w)&&I.validate())try{await T?.(I.values,B,e)}catch(e){D?.(e)}},children:o===`cards`?(0,V.jsxs)(`div`,{className:v(`schema-form--cards space-y-4`,A),children:[!!(u??e.title??d??e.description??f)&&(0,V.jsxs)(`div`,{className:`schema-form--header flex items-start justify-between gap-4`,children:[(0,V.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[!!(u??e.title)&&(0,V.jsx)(r,{weight:`semibold`,className:`schema-form--title`,children:u??e.title}),!!(d??e.description)&&(0,V.jsx)(r,{size:`xs`,type:`secondary`,className:`schema-form--description`,children:d??e.description})]}),f]}),z?L.map(fe):J,p,q]}):(0,V.jsx)(x,{className:`schema-form--surface`,title:u??e.title,description:d??e.description,headerEnd:f,footerSlot:p||q?(0,V.jsxs)(`div`,{className:`schema-form--footer flex flex-col gap-3`,children:[p,q]}):void 0,headerDivider:!!(u??e.title??d??e.description??f),footerDivider:!!(p||q),children:(0,V.jsx)(`div`,{className:v(`schema-form--content space-y-6`,A),children:z?L.map(K):J})})})}J.displayName=`SchemaForm`;var _e=e({CohesiveForm:()=>Y,RenderPropField:()=>Z,SectionCards:()=>X}),ve={title:`Workspace settings`,description:`Operational defaults for orders, notifications, and storefront behaviour.`,sections:[{id:`general`,title:`General`,description:`Core workspace identity and regional defaults.`,icon:(0,V.jsx)(m,{className:`size-4`}),fields:[`workspaceName`,`supportEmail`,`region`,`timezone`]},{id:`orders`,title:`Orders`,description:`Controls that affect fulfilment and customer updates.`,icon:(0,V.jsx)(f,{className:`size-4`}),fields:[`orderPrefix`,`autoCapture`,`riskThreshold`]}],fields:[{key:`workspaceName`,label:`Workspace name`,required:!0,placeholder:`Acme Retail`,defaultValue:`Northwind Admin`},{key:`supportEmail`,type:`email`,label:`Support email`,required:!0,placeholder:`support@example.com`,defaultValue:`support@northwind.test`,validate:e=>String(e??``).includes(`@`)||`Use a valid email address.`},{key:`region`,type:`select`,label:`Primary region`,placeholder:`Choose region`,defaultValue:`eu`,options:[{value:`eu`,label:`Europe`},{value:`us`,label:`United States`},{value:`apac`,label:`Asia Pacific`}]},{key:`timezone`,type:`select`,label:`Timezone`,defaultValue:`Europe/Sofia`,options:[{value:`Europe/Sofia`,label:`Europe/Sofia`},{value:`Europe/London`,label:`Europe/London`},{value:`America/New_York`,label:`America/New_York`}]},{key:`orderPrefix`,label:`Order prefix`,placeholder:`ORD`,defaultValue:`ORD`},{key:`autoCapture`,type:`switch`,label:`Auto-capture payments`,description:`Capture payment automatically once an order passes risk checks.`,defaultValue:!0},{key:`riskThreshold`,type:`integer`,label:`Risk review threshold`,hint:`Orders above this score require manual approval.`,min:0,max:100,defaultValue:70}]},ye={title:`Automation controls`,description:`Each section can stand alone as a card while sharing the same value model.`,sections:[{id:`notifications`,title:`Notifications`,description:`Team-visible events and customer messaging.`,icon:(0,V.jsx)(c,{className:`size-4`}),fields:[`channels`,`digest`,`quietHours`]},{id:`security`,title:`Security`,description:`Access controls and audit behaviour.`,icon:(0,V.jsx)(p,{className:`size-4`}),fields:[`mfa`,`sessionTimeout`,`allowedDomains`]},{id:`integrations`,title:`Integrations`,description:`Webhook and enrichment settings.`,icon:(0,V.jsx)(k,{className:`size-4`}),fields:[`webhookMode`,`payloadTemplate`]}],fields:[{key:`channels`,type:`checkbox-cards`,label:`Notification channels`,defaultValue:[`email`,`slack`],columns:2,options:[{value:`email`,label:`Email`,description:`Send operational updates.`,icon:d},{value:`slack`,label:`Slack`,description:`Post to the admin channel.`,icon:c},{value:`webhook`,label:`Webhook`,description:`Forward to an external listener.`,icon:k},{value:`portal`,label:`Portal`,description:`Show inside the admin shell.`,icon:l}]},{key:`digest`,type:`switch`,switchStyle:`card`,label:`Daily digest`,description:`Bundle low-priority events into one daily summary.`,defaultValue:!0},{key:`quietHours`,type:`textarea`,label:`Quiet hours note`,rows:3,defaultValue:`Suppress non-critical notifications from 22:00 to 07:00.`},{key:`mfa`,type:`switch`,switchStyle:`card`,label:`Require MFA`,description:`Ask admins to verify sign-in with a second factor.`,defaultValue:!0},{key:`sessionTimeout`,type:`integer`,label:`Session timeout`,hint:`Minutes before inactive admins are signed out.`,min:5,max:240,defaultValue:45},{key:`allowedDomains`,type:`tags`,label:`Allowed email domains`,placeholder:`Add a domain`,defaultValue:[`northwind.test`,`partners.test`],recommendations:[`northwind.test`,`partners.test`,`vendors.test`]},{key:`webhookMode`,type:`radio-cards`,label:`Webhook mode`,defaultValue:`signed`,columns:2,options:[{value:`off`,label:`Off`,description:`Do not send webhook events.`,icon:u},{value:`signed`,label:`Signed`,description:`Send signed payloads to the endpoint.`,icon:p}]},{key:`payloadTemplate`,type:`json`,label:`Payload template`,defaultValue:{version:2,include:[`order`,`customer`,`risk`]},width:`full`}]},be={title:`Branding`,description:`Render-props let a consumer replace one field without forking the schema renderer.`,fields:[{key:`displayName`,label:`Display name`,defaultValue:`Northwind`,required:!0},{key:`accent`,label:`Accent colour`,hint:`This field is rendered by the consumer through renderField.`,defaultValue:`success`},{key:`launchTags`,type:`tags`,label:`Launch tags`,defaultValue:[`vip`,`spring`]}]},xe=[{value:`primary`,label:`Primary`},{value:`success`,label:`Success`},{value:`info`,label:`Info`},{value:`warning`,label:`Warning`}];function Y(){let[e,t]=(0,R.useState)({}),[n,i]=(0,R.useState)(null);return(0,V.jsx)(`div`,{className:`max-w-3xl`,children:(0,V.jsx)(J,{schema:ve,value:e,onValueChange:t,onSubmit:e=>i(e),onReset:()=>{t({}),i(null)},footerSlot:n?(0,V.jsxs)(r,{size:`xs`,type:`secondary`,children:[`Last saved workspace: `,String(n.workspaceName??`Untitled`)]}):null})})}function X(){let[e,t]=(0,R.useState)({});return(0,V.jsx)(J,{schema:ye,layout:`cards`,columns:2,value:e,onValueChange:t,onSubmit:()=>{},headerSlot:(0,V.jsx)(o,{variant:`secondary`,buttonStyle:`outline`,icon:h,children:`Apply preset`})})}function Z(){let[e,t]=(0,R.useState)({});return(0,V.jsx)(`div`,{className:`max-w-2xl`,children:(0,V.jsx)(J,{schema:be,value:e,onValueChange:t,onSubmit:()=>{},renderField:({field:e,value:t,error:n,fieldId:r,onValueChange:i,defaultField:a})=>e.key===`accent`?(0,V.jsx)(O,{label:e.label,hint:e.hint,error:n,htmlFor:r,children:(0,V.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:xe.map(e=>{let n=t===e.value;return(0,V.jsx)(o,{id:e.value===`primary`?r:void 0,type:`button`,variant:n?`primary`:`secondary`,buttonStyle:n?`solid`:`outline`,icon:re,onClick:()=>i(e.value),children:e.label},e.value)})})}):a})})}var Q=`import { useState } from 'react';
1
+ import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALsF.js";import{Dr as r,Er as i,Rr as a,r as o,t as s}from"./example-Cz_880po.js";import{t as c}from"./bell-C80n9VRl.js";import{t as l}from"./earth-BN1w3w7h.js";import{t as u}from"./lock-keyhole-DY6aV7Mq.js";import{t as d}from"./mail-AES_tOd2.js";import{t as f}from"./package-check-CCH3ax-x.js";import{t as p}from"./shield-check-DUTAPADm.js";import{t as m}from"./sliders-horizontal-BE_cwUn0.js";import{t as h}from"./sparkles-N8rqKQez.js";import{a as g,k as _,n as v,s as y}from"./index-BQIv1ffM.js";import{t as b}from"./props-table-2pIZzGC-.js";import{t as x}from"./smart-card-Dhu_1A_u.js";import{t as S}from"./input-NIgvB9CZ.js";import{t as C}from"./textarea-CHvnWHWH.js";import{t as w}from"./select-BRbyPtx8.js";import{i as ee,n as te,r as T,t as E}from"./tags-input-DmBY2CKI.js";import{n as D,t as ne}from"./card-radio-group-7GU9AtWs.js";import{n as O}from"./form-field-B5g_5Zjm.js";var re=g(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),k=g(`webhook`,[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]),ie={1:`grid grid-cols-1 gap-4`,2:`grid grid-cols-1 gap-4 md:grid-cols-2`,3:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`},ae={auto:``,half:`md:col-span-1`,third:`xl:col-span-1`,full:`md:col-span-full xl:col-span-full`};function A(e,t,n){if(typeof e.hidden==`function`)try{return e.hidden(t)}catch(e){return n?.(e),!1}return e.hidden??!1}function oe(e,t,n){if(typeof e.disabled==`function`)try{return e.disabled(t)}catch(e){return n?.(e),!0}return e.disabled??!1}function j(e,t,n){return e.filter(e=>!A(e,t,n))}function se(e,t,n,r,i){let a=j(e.fields,t,i),o=new Map(a.map(e=>[e.key,e])),s=new Set,c=[];for(let t of e.sections??[]){let e=t.fields?t.fields.map(e=>o.get(e)).filter(e=>e!==void 0):a.filter(e=>e.sectionId===t.id);for(let t of e)s.add(t.key);c.push({id:t.id,title:t.title,description:t.description,icon:t.icon,fields:e,columns:t.columns??r,footerSlot:t.footerSlot,className:t.className})}let l=a.filter(e=>!s.has(e.key));return(l.length>0||c.length===0)&&c.unshift({id:`default`,title:e.sections?.length?n:void 0,fields:l,columns:r}),c.filter(e=>e.fields.length>0)}function M(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function N(e){return Array.isArray(e)?e.map(e=>String(e)):[]}function P(e){return e===!0||e===`true`||e===1}function F(e,t=!1){let n=e.trim();if(n.length===0)return null;let r=t?Number.parseInt(n,10):Number.parseFloat(n);return Number.isNaN(r)?null:r}function I(e,t=2){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,t)}catch{return String(e)}}function L(e){let t=e.trim();if(t.length===0)return{value:null,valid:!0};try{return{value:JSON.parse(t),valid:!0}}catch{return{value:e,valid:!1}}}var R=t(n(),1);function z(e,t){let n={...t??{}};for(let t of e)t.defaultValue!==void 0&&n[t.key]===void 0&&(n[t.key]=t.defaultValue);return n}function B(e){return e==null?!0:typeof e==`string`?e.trim().length===0:Array.isArray(e)?e.length===0:!1}function ce(e){let t={};for(let[n,r]of Object.entries(e??{}))r&&(t[n]=r);return t}function le({fields:e,value:t,defaultValue:n,errors:r,onValueChange:i,onFieldChange:a,formatRequiredError:o,validationError:s,onError:c}){let l=t!==void 0,u=(0,R.useMemo)(()=>z(e,n),[n,e]),[d,f]=(0,R.useState)(()=>u),[p,m]=(0,R.useState)({}),h=(0,R.useMemo)(()=>l?{...u,...t??{}}:d,[u,d,l,t]),g=(0,R.useMemo)(()=>({...p,...ce(r)}),[r,p]),_=(0,R.useCallback)(e=>{l||f(e),i?.(e)},[l,i]),v=(0,R.useCallback)((e,t)=>{let n={...h,[e]:t};l||f(n),m(t=>{if(!t[e])return t;let n={...t};return delete n[e],n}),a?.(e,t,n),i?.(n)},[l,a,i,h]),y=(0,R.useCallback)(()=>{let t=z(e,n);return l||f(t),m({}),i?.(t),t},[n,e,l,i]),b=(0,R.useCallback)(()=>{let t={};for(let n of e){if(A(n,h,c))continue;let e=h[n.key];if(n.required&&B(e)){t[n.key]=o(n.label);continue}let r=Array.isArray(n.validate)?n.validate:n.validate?[n.validate]:[];for(let i of r)try{let r=i(e,h,n);if(typeof r==`string`&&r.length>0){t[n.key]=r;break}}catch(e){c?.(e),t[n.key]=s;break}}return m(t),Object.keys(t).length===0},[e,o,c,s,h]);return{values:h,errors:g,getFieldError:(0,R.useCallback)(e=>g[e],[g]),getFieldValue:(0,R.useCallback)(e=>h[e],[h]),setFieldValue:v,setValues:_,reset:y,validate:b}}var V=y();function ue({submitLabel:e,resetLabel:t,showReset:n=!1,disabled:r=!1,submitDisabled:i=!1,resetDisabled:a=!1,isSubmitting:s=!1,onReset:c,className:l}){return(0,V.jsxs)(`div`,{className:v(`schema-form-actions--component flex items-center justify-end gap-2`,l),children:[!!n&&(0,V.jsx)(o,{type:`button`,variant:`secondary`,buttonStyle:`outline`,disabled:r||a||s,onClick:c,children:t}),(0,V.jsx)(o,{type:`submit`,variant:`primary`,loading:s,disabled:r||i,children:e})]})}ue.displayName=`SchemaFormActions`;function de({title:e,description:t,className:n}){return(0,V.jsxs)(`div`,{className:v(`schema-form-empty--component rounded-md border border-dashed border-border bg-muted/20 p-6 text-center`,n),children:[(0,V.jsx)(a,{weight:`semibold`,children:e}),(0,V.jsx)(a,{size:`xs`,type:`secondary`,className:`mt-1`,children:t})]})}de.displayName=`SchemaFormEmpty`;function H(e){return e.hint??e.description}function U(e,t,n,r){if(e.formatValue)try{return e.formatValue(t,n)}catch(e){r?.(e)}return M(t)}function W(e,t,n,r){if(e.parseValue)try{return e.parseValue(t,n)}catch(e){r?.(e)}return t}function G(e,t,n,r,i){if(e.parseValue)try{return e.parseValue(t,n)}catch(e){i?.(e)}return F(t,r)}function K(e,t,n,r){if(e.type===`json`&&e.parseValue)try{return{value:e.parseValue(t,n),valid:!0}}catch(e){return r?.(e),{value:t,valid:!1}}return L(t)}function fe(e){if(!e.icon)return;let t=e.icon;return(0,V.jsx)(t,{className:`size-4`,"aria-hidden":`true`})}function q({field:e,value:t,values:n,error:r,disabled:i,fieldId:a,onValueChange:o,onError:s,strings:c}){let l=e.type===`json`?e.jsonIndent??2:2,[u,d]=(0,R.useState)(()=>I(t,l)),[f,p]=(0,R.useState)(),[m,h]=(0,R.useState)(!1);if((0,R.useEffect)(()=>{m||d(I(t,l))},[l,m,t]),e.type!==`json`)return null;let g=t=>{let r=K(e,t,n,s);return p(r.valid?void 0:c.jsonParseError),o(r.value),r};return(0,V.jsx)(O,{label:e.label,required:e.required,hint:H(e),helperText:e.helperText,error:r??f,htmlFor:a,className:`schema-form-field--component schema-form-field--json`,children:(0,V.jsx)(C,{id:a,name:e.key,value:u,rows:e.rows??6,disabled:i,invalid:!!(r??f),placeholder:e.placeholder,spellCheck:!1,className:v(`font-mono`,e.controlClassName),onFocus:()=>h(!0),onChange:t=>{let r=t.target.value;d(r);let i=K(e,r,n,s);p(i.valid?void 0:c.jsonParseError),o(i.value)},onBlur:()=>{h(!1);let e=g(u);e.valid&&d(I(e.value,l))},...e.textareaProps})})}function pe({field:e,value:t,values:n,error:r,disabled:i,required:a,fieldId:o,onValueChange:s,onError:c,strings:l,className:u}){let d=e.type??`text`,f={label:e.label,required:a,hint:H(e),helperText:e.helperText,error:r,htmlFor:o,className:v(`schema-form-field--component`,u)},p=e.controlClassName;if(d===`custom`&&e.type===`custom`)return(0,V.jsx)(`div`,{className:v(`schema-form-field--component schema-form-field--custom`,u),children:e.render({field:e,value:t,values:n,error:r,disabled:i,required:a,fieldId:o,onValueChange:s,onError:c})});if(d===`switch`&&e.type===`switch`){let n=P(t);return e.switchStyle===`card`?(0,V.jsx)(O,{error:r,className:v(`schema-form-field--component schema-form-field--switch-card`,u),children:(0,V.jsx)(T,{label:e.label,description:e.description,hint:e.hint,name:e.key,value:n,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.switchCardProps})}):(0,V.jsx)(O,{error:r,className:v(`schema-form-field--component schema-form-field--switch`,u),children:(0,V.jsx)(te,{label:e.label,description:e.description??e.hint,name:e.key,value:n,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.switchProps})})}if(d===`json`)return(0,V.jsx)(q,{field:e,value:t,values:n,error:r,disabled:i,required:a,fieldId:o,onValueChange:s,onError:c,strings:l});if(d===`textarea`&&e.type===`textarea`){let l=U(e,t,n,c);return(0,V.jsx)(O,{...f,children:(0,V.jsx)(C,{id:o,name:e.key,value:l,rows:e.rows,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,className:p,onChange:t=>s(W(e,t.target.value,n,c)),...e.textareaProps})})}if((d===`number`||d===`integer`||d===`decimal`)&&(e.type===`number`||e.type===`integer`||e.type===`decimal`)){let l=U(e,t,n,c),u=e.type===`integer`,d=u?0:e.decimalPlaces??(e.type===`decimal`?2:4);return(0,V.jsx)(O,{...f,children:(0,V.jsx)(ee,{id:o,name:e.key,value:l,min:e.min,max:e.max,step:e.step,decimalPlaces:d,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,className:p,onChange:t=>{let r=t.target.value;s(G(e,r,n,u,c))},...e.numberProps})})}if(d===`select`&&e.type===`select`){let n=e.options.map(e=>({value:e.value,label:e.label,disabled:e.disabled,icon:fe(e)}));return(0,V.jsx)(O,{...f,children:(0,V.jsx)(w,{name:e.key,value:M(t),options:n,allowClear:e.allowClear,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,"aria-label":e.label,className:p,onChange:e=>s(e??null),...e.selectProps})})}if(d===`radio-cards`&&e.type===`radio-cards`)return(0,V.jsx)(O,{...f,children:(0,V.jsx)(ne,{name:e.key,value:M(t),options:e.options,columns:e.columns,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.radioProps})});if(d===`checkbox-cards`&&e.type===`checkbox-cards`)return(0,V.jsx)(O,{...f,children:(0,V.jsx)(D,{name:e.key,value:N(t),options:e.options,columns:e.columns,disabled:i,invalid:!!r,className:p,onChange:e=>s(e),...e.checkboxProps})});if(d===`tags`&&e.type===`tags`)return(0,V.jsx)(O,{...f,children:(0,V.jsx)(E,{value:N(t),recommendations:e.recommendations,maxTags:e.maxTags,disabled:i,invalid:!!r,placeholder:e.placeholder,className:p,onChange:e=>s(e),...e.tagsProps})});let m=d===`text`?`text`:d,h=U(e,t,n,c);return(0,V.jsx)(O,{...f,children:(0,V.jsx)(S,{id:o,name:e.key,type:m,value:h,disabled:i,required:a,invalid:!!r,placeholder:e.placeholder,className:p,onChange:t=>s(W(e,t.target.value,n,c)),...e.type===void 0||e.type===`text`||e.type===`email`||e.type===`password`||e.type===`url`||e.type===`tel`||e.type===`search`?e.inputProps:{}})})}pe.displayName=`SchemaFormFieldRenderer`;var me={submitLabel:`Save changes`,resetLabel:`Reset`,defaultSectionTitle:`General`,emptyTitle:`No fields configured`,emptyDescription:`Add fields to the schema to render a form.`,jsonParseError:`Enter valid JSON.`,validationError:`Invalid value.`,formatRequiredError:e=>`${e} is required.`};function he(e){return e.replace(/[^a-zA-Z0-9_-]/g,`-`)}function ge({section:e}){return!e.title&&!e.description?null:(0,V.jsxs)(`div`,{className:`schema-form--section-heading mb-3 space-y-1`,children:[!!e.title&&(0,V.jsx)(a,{weight:`semibold`,className:`schema-form--section-title`,children:e.title}),!!e.description&&(0,V.jsx)(a,{size:`xs`,type:`secondary`,className:`schema-form--section-description`,children:e.description})]})}function J({schema:e,value:t,defaultValue:n,errors:r,disabled:i=!1,layout:o=`form`,columns:s=2,id:c,name:l,title:u,description:d,headerSlot:f,footerSlot:p,actionsSlot:m,emptySlot:h,showActions:g,submitLabel:y,resetLabel:b,submitDisabled:S=!1,resetDisabled:C=!1,isSubmitting:w=!1,onValueChange:ee,onFieldChange:te,onSubmit:T,onReset:E,onError:D,renderField:ne,renderSection:O,strings:re,className:k,contentClassName:A,sectionClassName:j,fieldClassName:M}){let N=(0,R.useId)(),P=c??`schema-form-${N}`,F=_(me,re),I=le({fields:e.fields,value:t,defaultValue:n,errors:r,onValueChange:ee,onFieldChange:te,formatRequiredError:F.formatRequiredError,validationError:F.validationError,onError:D}),L=(0,R.useMemo)(()=>se(e,I.values,F.defaultSectionTitle,s,D),[s,I.values,D,e,F.defaultSectionTitle]),z=L.some(e=>e.fields.length>0),B={setFieldValue:I.setFieldValue,setValues:I.setValues,reset:I.reset,validate:I.validate},ce=g??!!(T||E||m),H=y??F.submitLabel,U=b??F.resetLabel,W=e=>{let t=`${P}-${he(e.key)}`,n=i||oe(e,I.values,D),r={field:e,value:I.getFieldValue(e.key),values:I.values,error:I.getFieldError(e.key),disabled:n,required:!!e.required,fieldId:t,onValueChange:t=>I.setFieldValue(e.key,t),onError:D},a=(0,V.jsx)(pe,{...r,strings:F});return(0,V.jsx)(`div`,{className:v(`schema-form--field`,ae[e.width??`auto`],e.className,M),children:ne?.({...r,defaultField:a})??a},e.key)},G=e=>(0,V.jsx)(`div`,{className:v(`schema-form--section-fields`,ie[e.columns]),children:e.fields.map(W)}),K=e=>{let t=G(e),n=O?.({section:e,fields:t,values:I.values});return n==null?(0,V.jsxs)(`section`,{className:v(`schema-form--section`,e.className,j),children:[(0,V.jsx)(ge,{section:e}),t,!!e.footerSlot&&(0,V.jsx)(`div`,{className:`schema-form--section-footer mt-3`,children:e.footerSlot})]},e.id):(0,V.jsx)(R.Fragment,{children:n},e.id)},fe=e=>{let t=G(e),n=O?.({section:e,fields:t,values:I.values});return n==null?(0,V.jsx)(x,{className:v(`schema-form--section-card`,e.className,j),icon:e.icon,title:e.title,description:e.description,footerSlot:e.footerSlot,headerDivider:!0,children:t},e.id):(0,V.jsx)(R.Fragment,{children:n},e.id)},q=m??(ce?(0,V.jsx)(ue,{submitLabel:H,resetLabel:U,showReset:!!E,disabled:i,submitDisabled:S,resetDisabled:C,isSubmitting:w,onReset:()=>{let e=I.reset();E?.(e,B)}}):null),J=h??(0,V.jsx)(de,{title:F.emptyTitle,description:F.emptyDescription});return(0,V.jsx)(`form`,{id:P,name:l,noValidate:!0,className:v(`schema-form--component`,k),onSubmit:async e=>{if(e.preventDefault(),!(i||S||w)&&I.validate())try{await T?.(I.values,B,e)}catch(e){D?.(e)}},children:o===`cards`?(0,V.jsxs)(`div`,{className:v(`schema-form--cards space-y-4`,A),children:[!!(u??e.title??d??e.description??f)&&(0,V.jsxs)(`div`,{className:`schema-form--header flex items-start justify-between gap-4`,children:[(0,V.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[!!(u??e.title)&&(0,V.jsx)(a,{weight:`semibold`,className:`schema-form--title`,children:u??e.title}),!!(d??e.description)&&(0,V.jsx)(a,{size:`xs`,type:`secondary`,className:`schema-form--description`,children:d??e.description})]}),f]}),z?L.map(fe):J,p,q]}):(0,V.jsx)(x,{className:`schema-form--surface`,title:u??e.title,description:d??e.description,headerEnd:f,footerSlot:p||q?(0,V.jsxs)(`div`,{className:`schema-form--footer flex flex-col gap-3`,children:[p,q]}):void 0,headerDivider:!!(u??e.title??d??e.description??f),footerDivider:!!(p||q),children:(0,V.jsx)(`div`,{className:v(`schema-form--content space-y-6`,A),children:z?L.map(K):J})})})}J.displayName=`SchemaForm`;var _e=e({CohesiveForm:()=>Y,RenderPropField:()=>Z,SectionCards:()=>X}),ve={title:`Workspace settings`,description:`Operational defaults for orders, notifications, and storefront behaviour.`,sections:[{id:`general`,title:`General`,description:`Core workspace identity and regional defaults.`,icon:(0,V.jsx)(m,{className:`size-4`}),fields:[`workspaceName`,`supportEmail`,`region`,`timezone`]},{id:`orders`,title:`Orders`,description:`Controls that affect fulfilment and customer updates.`,icon:(0,V.jsx)(f,{className:`size-4`}),fields:[`orderPrefix`,`autoCapture`,`riskThreshold`]}],fields:[{key:`workspaceName`,label:`Workspace name`,required:!0,placeholder:`Acme Retail`,defaultValue:`Northwind Admin`},{key:`supportEmail`,type:`email`,label:`Support email`,required:!0,placeholder:`support@example.com`,defaultValue:`support@northwind.test`,validate:e=>String(e??``).includes(`@`)||`Use a valid email address.`},{key:`region`,type:`select`,label:`Primary region`,placeholder:`Choose region`,defaultValue:`eu`,options:[{value:`eu`,label:`Europe`},{value:`us`,label:`United States`},{value:`apac`,label:`Asia Pacific`}]},{key:`timezone`,type:`select`,label:`Timezone`,defaultValue:`Europe/Sofia`,options:[{value:`Europe/Sofia`,label:`Europe/Sofia`},{value:`Europe/London`,label:`Europe/London`},{value:`America/New_York`,label:`America/New_York`}]},{key:`orderPrefix`,label:`Order prefix`,placeholder:`ORD`,defaultValue:`ORD`},{key:`autoCapture`,type:`switch`,label:`Auto-capture payments`,description:`Capture payment automatically once an order passes risk checks.`,defaultValue:!0},{key:`riskThreshold`,type:`integer`,label:`Risk review threshold`,hint:`Orders above this score require manual approval.`,min:0,max:100,defaultValue:70}]},ye={title:`Automation controls`,description:`Each section can stand alone as a card while sharing the same value model.`,sections:[{id:`notifications`,title:`Notifications`,description:`Team-visible events and customer messaging.`,icon:(0,V.jsx)(c,{className:`size-4`}),fields:[`channels`,`digest`,`quietHours`]},{id:`security`,title:`Security`,description:`Access controls and audit behaviour.`,icon:(0,V.jsx)(p,{className:`size-4`}),fields:[`mfa`,`sessionTimeout`,`allowedDomains`]},{id:`integrations`,title:`Integrations`,description:`Webhook and enrichment settings.`,icon:(0,V.jsx)(k,{className:`size-4`}),fields:[`webhookMode`,`payloadTemplate`]}],fields:[{key:`channels`,type:`checkbox-cards`,label:`Notification channels`,defaultValue:[`email`,`slack`],columns:2,options:[{value:`email`,label:`Email`,description:`Send operational updates.`,icon:d},{value:`slack`,label:`Slack`,description:`Post to the admin channel.`,icon:c},{value:`webhook`,label:`Webhook`,description:`Forward to an external listener.`,icon:k},{value:`portal`,label:`Portal`,description:`Show inside the admin shell.`,icon:l}]},{key:`digest`,type:`switch`,switchStyle:`card`,label:`Daily digest`,description:`Bundle low-priority events into one daily summary.`,defaultValue:!0},{key:`quietHours`,type:`textarea`,label:`Quiet hours note`,rows:3,defaultValue:`Suppress non-critical notifications from 22:00 to 07:00.`},{key:`mfa`,type:`switch`,switchStyle:`card`,label:`Require MFA`,description:`Ask admins to verify sign-in with a second factor.`,defaultValue:!0},{key:`sessionTimeout`,type:`integer`,label:`Session timeout`,hint:`Minutes before inactive admins are signed out.`,min:5,max:240,defaultValue:45},{key:`allowedDomains`,type:`tags`,label:`Allowed email domains`,placeholder:`Add a domain`,defaultValue:[`northwind.test`,`partners.test`],recommendations:[`northwind.test`,`partners.test`,`vendors.test`]},{key:`webhookMode`,type:`radio-cards`,label:`Webhook mode`,defaultValue:`signed`,columns:2,options:[{value:`off`,label:`Off`,description:`Do not send webhook events.`,icon:u},{value:`signed`,label:`Signed`,description:`Send signed payloads to the endpoint.`,icon:p}]},{key:`payloadTemplate`,type:`json`,label:`Payload template`,defaultValue:{version:2,include:[`order`,`customer`,`risk`]},width:`full`}]},be={title:`Branding`,description:`Render-props let a consumer replace one field without forking the schema renderer.`,fields:[{key:`displayName`,label:`Display name`,defaultValue:`Northwind`,required:!0},{key:`accent`,label:`Accent colour`,hint:`This field is rendered by the consumer through renderField.`,defaultValue:`success`},{key:`launchTags`,type:`tags`,label:`Launch tags`,defaultValue:[`vip`,`spring`]}]},xe=[{value:`primary`,label:`Primary`},{value:`success`,label:`Success`},{value:`info`,label:`Info`},{value:`warning`,label:`Warning`}];function Y(){let[e,t]=(0,R.useState)({}),[n,r]=(0,R.useState)(null);return(0,V.jsx)(`div`,{className:`max-w-3xl`,children:(0,V.jsx)(J,{schema:ve,value:e,onValueChange:t,onSubmit:e=>r(e),onReset:()=>{t({}),r(null)},footerSlot:n?(0,V.jsxs)(a,{size:`xs`,type:`secondary`,children:[`Last saved workspace: `,String(n.workspaceName??`Untitled`)]}):null})})}function X(){let[e,t]=(0,R.useState)({});return(0,V.jsx)(J,{schema:ye,layout:`cards`,columns:2,value:e,onValueChange:t,onSubmit:()=>{},headerSlot:(0,V.jsx)(o,{variant:`secondary`,buttonStyle:`outline`,icon:h,children:`Apply preset`})})}function Z(){let[e,t]=(0,R.useState)({});return(0,V.jsx)(`div`,{className:`max-w-2xl`,children:(0,V.jsx)(J,{schema:be,value:e,onValueChange:t,onSubmit:()=>{},renderField:({field:e,value:t,error:n,fieldId:r,onValueChange:i,defaultField:a})=>e.key===`accent`?(0,V.jsx)(O,{label:e.label,hint:e.hint,error:n,htmlFor:r,children:(0,V.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:xe.map(e=>{let n=t===e.value;return(0,V.jsx)(o,{id:e.value===`primary`?r:void 0,type:`button`,variant:n?`primary`:`secondary`,buttonStyle:n?`solid`:`outline`,icon:re,onClick:()=>i(e.value),children:e.label},e.value)})})}):a})})}var Q=`import { useState } from 'react';
2
2
  import {
3
3
  Bell,
4
4
  Brush,
@@ -322,4 +322,4 @@ export function RenderPropField() {
322
322
  </div>
323
323
  );
324
324
  }
325
- `;function Se(e){let t={h4:`h4`,...e.components};return _e||$(`Examples`,!1),Y||$(`Examples.CohesiveForm`,!0),Z||$(`Examples.RenderPropField`,!0),X||$(`Examples.SectionCards`,!0),(0,V.jsxs)(i,{title:`Features · Schema form`,description:`Schema-driven form renderer built from the package form fields. Supports one cohesive form, section cards, controlled values, validation callbacks, and render-prop overrides.`,layer:`features`,status:`ready`,sourcePath:`src/components/features/schema-form`,children:[(0,V.jsxs)(a,{title:`Examples`,id:`examples`,children:[(0,V.jsx)(s,{name:`CohesiveForm`,source:Q,children:(0,V.jsx)(Y,{})}),(0,V.jsx)(s,{name:`SectionCards`,source:Q,children:(0,V.jsx)(X,{})}),(0,V.jsx)(s,{name:`RenderPropField`,source:Q,children:(0,V.jsx)(Z,{})})]}),(0,V.jsxs)(a,{title:`API`,id:`api`,children:[(0,V.jsx)(t.h4,{children:`SchemaForm`}),(0,V.jsx)(b,{component:`SchemaForm`})]})]})}function Ce(e={}){let{wrapper:t}=e.components||{};return t?(0,V.jsx)(t,{...e,children:(0,V.jsx)(Se,{...e})}):Se(e)}function $(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{Ce as default};
325
+ `;function Se(e){let t={h4:`h4`,...e.components};return _e||$(`Examples`,!1),Y||$(`Examples.CohesiveForm`,!0),Z||$(`Examples.RenderPropField`,!0),X||$(`Examples.SectionCards`,!0),(0,V.jsxs)(r,{title:`Features · Schema form`,description:`Schema-driven form renderer built from the package form fields. Supports one cohesive form, section cards, controlled values, validation callbacks, and render-prop overrides.`,layer:`features`,status:`ready`,sourcePath:`src/components/features/schema-form`,children:[(0,V.jsxs)(i,{title:`Examples`,id:`examples`,children:[(0,V.jsx)(s,{name:`CohesiveForm`,source:Q,children:(0,V.jsx)(Y,{})}),(0,V.jsx)(s,{name:`SectionCards`,source:Q,children:(0,V.jsx)(X,{})}),(0,V.jsx)(s,{name:`RenderPropField`,source:Q,children:(0,V.jsx)(Z,{})})]}),(0,V.jsxs)(i,{title:`API`,id:`api`,children:[(0,V.jsx)(t.h4,{children:`SchemaForm`}),(0,V.jsx)(b,{component:`SchemaForm`})]})]})}function Ce(e={}){let{wrapper:t}=e.components||{};return t?(0,V.jsx)(t,{...e,children:(0,V.jsx)(Se,{...e})}):Se(e)}function $(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{Ce as default};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-QTnfLwEv.js";import{hr as t,mr as n,t as r}from"./example-BIrQab7K.js";import{s as i}from"./index-Cz4UGUT2.js";import{t as a}from"./scroll-area-CgXTHlpJ.js";var o=e({Horizontal:()=>l,Vertical:()=>c}),s=i();function c(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a,{className:`h-48 w-full rounded-md border border-border p-3`,children:(0,s.jsx)(`ul`,{className:`space-y-2 text-sm`,children:Array.from({length:30}).map((e,t)=>(0,s.jsxs)(`li`,{children:[`List item `,t+1]},t))})})})}function l(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a,{className:`w-full rounded-md border border-border p-3`,children:(0,s.jsx)(`div`,{className:`flex gap-3`,children:Array.from({length:20}).map((e,t)=>(0,s.jsxs)(`div`,{className:`flex size-24 shrink-0 items-center justify-center rounded-md bg-muted text-sm`,children:[`Box `,t+1]},t))})})})}var u=`import { ScrollArea } from '@/components/ui/scroll-area';
1
+ import{n as e}from"./chunk-QTnfLwEv.js";import{Dr as t,Er as n,t as r}from"./example-Cz_880po.js";import{s as i}from"./index-BQIv1ffM.js";import{t as a}from"./scroll-area-BvTq99pz.js";var o=e({Horizontal:()=>l,Vertical:()=>c}),s=i();function c(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a,{className:`h-48 w-full rounded-md border border-border p-3`,children:(0,s.jsx)(`ul`,{className:`space-y-2 text-sm`,children:Array.from({length:30}).map((e,t)=>(0,s.jsxs)(`li`,{children:[`List item `,t+1]},t))})})})}function l(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a,{className:`w-full rounded-md border border-border p-3`,children:(0,s.jsx)(`div`,{className:`flex gap-3`,children:Array.from({length:20}).map((e,t)=>(0,s.jsxs)(`div`,{className:`flex size-24 shrink-0 items-center justify-center rounded-md bg-muted text-sm`,children:[`Box `,t+1]},t))})})})}var u=`import { ScrollArea } from '@/components/ui/scroll-area';
2
2
 
3
3
  export function Vertical() {
4
4
  return (
@@ -0,0 +1 @@
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Mn as n,Nn as r,Wn as i,Yn as a,Zt as o,fr as s,g as c,hr as l,m as u,mr as d,nr as f}from"./example-Cz_880po.js";import{n as p,s as m}from"./index-BQIv1ffM.js";import{n as h,t as g}from"./CSPContext-B11tftuK.js";import{r as _,t as v}from"./styles-Bv0pDLVi.js";var y=e(t(),1),b=y.createContext(void 0);function x(){let e=y.useContext(b);if(e===void 0)throw Error(s(53));return e}var S=function(e){return e.scrollAreaCornerHeight=`--scroll-area-corner-height`,e.scrollAreaCornerWidth=`--scroll-area-corner-width`,e}({});function C(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}var w=function(e){return e.orientation=`data-orientation`,e.hovering=`data-hovering`,e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),T=function(e){return e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),E={hasOverflowX:e=>e?{[T.hasOverflowX]:``}:null,hasOverflowY:e=>e?{[T.hasOverflowY]:``}:null,overflowXStart:e=>e?{[T.overflowXStart]:``}:null,overflowXEnd:e=>e?{[T.overflowXEnd]:``}:null,overflowYStart:e=>e?{[T.overflowYStart]:``}:null,overflowYEnd:e=>e?{[T.overflowYEnd]:``}:null,cornerHidden:()=>null},D=m(),O={x:0,y:0},ee={width:0,height:0},k={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},te={x:!0,y:!0,corner:!0},A=y.forwardRef(function(e,t){let{render:r,className:i,overflowEdgeThreshold:o,style:s,...u}=e,{xStart:d,xEnd:p,yStart:m,yEnd:h}=j(o),_=c(),x=a(),T=a(),{nonce:A,disableStyleElements:M}=g(),[N,P]=y.useState(!1),[F,I]=y.useState(!1),[L,R]=y.useState(!1),[z,B]=y.useState(!1),[V,H]=y.useState(!1),[U,ne]=y.useState(ee),[re,W]=y.useState(ee),[G,K]=y.useState(k),[q,ie]=y.useState(te),ae=y.useRef(null),J=y.useRef(null),Y=y.useRef(null),X=y.useRef(null),Z=y.useRef(null),Q=y.useRef(null),oe=y.useRef(null),se=y.useRef(!1),ce=y.useRef(0),le=y.useRef(0),ue=y.useRef(0),de=y.useRef(0),$=y.useRef(`vertical`),fe=y.useRef(O),pe=l(e=>{let t=e.x-fe.current.x,n=e.y-fe.current.y;fe.current=e,n!==0&&(R(!0),x.start(500,()=>{R(!1)})),t!==0&&(I(!0),T.start(500,()=>{I(!1)}))}),me=l(e=>{e.button===0&&(se.current=!0,ce.current=e.clientY,le.current=e.clientX,$.current=e.currentTarget.getAttribute(w.orientation),J.current&&(ue.current=J.current.scrollTop,de.current=J.current.scrollLeft),Z.current&&$.current===`vertical`&&Z.current.setPointerCapture(e.pointerId),Q.current&&$.current===`horizontal`&&Q.current.setPointerCapture(e.pointerId))}),he=l(e=>{if(!se.current)return;let t=e.clientY-ce.current,n=e.clientX-le.current;if(J.current){let r=J.current.scrollHeight,i=J.current.clientHeight,a=J.current.scrollWidth,o=J.current.clientWidth;if(Z.current&&Y.current&&$.current===`vertical`){let n=C(Y.current,`padding`,`y`),a=C(Z.current,`margin`,`y`),o=Z.current.offsetHeight,s=t/(Y.current.offsetHeight-o-n-a);J.current.scrollTop=ue.current+s*(r-i),e.preventDefault(),R(!0),x.start(500,()=>{R(!1)})}if(Q.current&&X.current&&$.current===`horizontal`){let t=C(X.current,`padding`,`x`),r=C(Q.current,`margin`,`x`),i=Q.current.offsetWidth,s=n/(X.current.offsetWidth-i-t-r);J.current.scrollLeft=de.current+s*(a-o),e.preventDefault(),I(!0),T.start(500,()=>{I(!1)})}}}),ge=l(e=>{se.current=!1,Z.current&&$.current===`vertical`&&Z.current.hasPointerCapture(e.pointerId)&&Z.current.releasePointerCapture(e.pointerId),Q.current&&$.current===`horizontal`&&Q.current.hasPointerCapture(e.pointerId)&&Q.current.releasePointerCapture(e.pointerId)});function _e(e){B(e.pointerType===`touch`)}function ve(e){_e(e),e.pointerType!==`touch`&&P(n(ae.current,e.target))}let ye=y.useMemo(()=>({scrolling:F||L,hasOverflowX:!q.x,hasOverflowY:!q.y,overflowXStart:G.xStart,overflowXEnd:G.xEnd,overflowYStart:G.yStart,overflowYEnd:G.yEnd,cornerHidden:q.corner}),[F,L,q.x,q.y,q.corner,G]),be={role:`presentation`,onPointerEnter:ve,onPointerMove:ve,onPointerDown:_e,onPointerLeave(){P(!1)},style:{position:`relative`,[S.scrollAreaCornerHeight]:`${U.height}px`,[S.scrollAreaCornerWidth]:`${U.width}px`}},xe=f(`div`,e,{state:ye,ref:[t,ae],props:[be,u],stateAttributesMapping:E}),Se=y.useMemo(()=>({handlePointerDown:me,handlePointerMove:he,handlePointerUp:ge,handleScroll:pe,cornerSize:U,setCornerSize:ne,thumbSize:re,setThumbSize:W,hasMeasuredScrollbar:V,setHasMeasuredScrollbar:H,touchModality:z,cornerRef:oe,scrollingX:F,setScrollingX:I,scrollingY:L,setScrollingY:R,hovering:N,setHovering:P,viewportRef:J,rootRef:ae,scrollbarYRef:Y,scrollbarXRef:X,thumbYRef:Z,thumbXRef:Q,rootId:_,hiddenState:q,setHiddenState:ie,overflowEdges:G,setOverflowEdges:K,viewportState:ye,overflowEdgeThreshold:{xStart:d,xEnd:p,yStart:m,yEnd:h}}),[me,he,ge,pe,U,re,V,z,F,I,L,R,N,P,_,q,G,ye,d,p,m,h]);return(0,D.jsxs)(b.Provider,{value:Se,children:[!M&&v.getElement(A),xe]})});function j(e){if(typeof e==`number`){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}var M=y.createContext(void 0),N=function(e){return e.scrollAreaOverflowXStart=`--scroll-area-overflow-x-start`,e.scrollAreaOverflowXEnd=`--scroll-area-overflow-x-end`,e.scrollAreaOverflowYStart=`--scroll-area-overflow-y-start`,e.scrollAreaOverflowYEnd=`--scroll-area-overflow-y-end`,e}({}),P=!1;function F(){P||i||(typeof CSS<`u`&&`registerProperty`in CSS&&[N.scrollAreaOverflowXStart,N.scrollAreaOverflowXEnd,N.scrollAreaOverflowYStart,N.scrollAreaOverflowYEnd].forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),P=!0)}var I=y.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,{viewportRef:s,scrollbarYRef:c,scrollbarXRef:p,thumbYRef:m,thumbXRef:g,cornerRef:b,cornerSize:S,setCornerSize:w,setThumbSize:T,rootId:O,setHiddenState:ee,hiddenState:k,setHasMeasuredScrollbar:te,handleScroll:A,setHovering:j,setOverflowEdges:P,overflowEdges:I,overflowEdgeThreshold:z,scrollingX:B,scrollingY:V}=x(),H=u(),U=y.useRef(!0),ne=y.useRef([NaN,NaN,NaN,NaN]),re=a(),W=a(),G=l(()=>{let e=s.current,t=c.current,n=p.current,r=m.current,i=g.current,a=b.current;if(!e)return;let o=e.scrollHeight,l=e.scrollWidth,u=e.clientHeight,d=e.clientWidth,f=e.scrollTop,v=e.scrollLeft,y=ne.current,x=Number.isNaN(y[0]);if(y[0]=u,y[1]=o,y[2]=d,y[3]=l,x&&te(!0),o===0||l===0)return;let E=L(e),D=E.y,O=E.x,k=d/l,A=u/o,j=Math.max(0,l-d),M=Math.max(0,o-u),F=0,I=0;if(!O){let e=0;e=h(H===`rtl`?-v:v,0,j),F=_(e,j),I=j-F}let B=D?0:h(f,0,M),V=D?0:_(B,M),U=D?0:M-V,re=O?0:d,W=D?0:u,G=0,K=0;!O&&!D&&(G=t?.offsetWidth||0,K=n?.offsetHeight||0);let q=S.width===0&&S.height===0,ie=q?G:0,ae=q?K:0,J=C(n,`padding`,`x`),Y=C(t,`padding`,`y`),X=C(i,`margin`,`x`),Z=C(r,`margin`,`y`),Q=re-J-X,oe=W-Y-Z,se=n?Math.min(n.offsetWidth-ie,Q):Q,ce=t?Math.min(t.offsetHeight-ae,oe):oe,le=Math.max(16,se*k),ue=Math.max(16,ce*A);if(T(e=>e.height===ue&&e.width===le?e:{width:le,height:ue}),t&&r){let e=t.offsetHeight-ue-Y-Z,n=o-u,i=n===0?0:f/n,a=Math.min(e,Math.max(0,i*e));r.style.transform=`translate3d(0,${a}px,0)`}if(n&&i){let e=n.offsetWidth-le-J-X,t=l-d,r=t===0?0:v/t,a=H===`rtl`?h(r*e,-e,0):h(r*e,0,e);i.style.transform=`translate3d(${a}px,0,0)`}let de=[[N.scrollAreaOverflowXStart,F],[N.scrollAreaOverflowXEnd,I],[N.scrollAreaOverflowYStart,V],[N.scrollAreaOverflowYEnd,U]];for(let[t,n]of de)e.style.setProperty(t,`${n}px`);a&&(O||D?w({width:0,height:0}):!O&&!D&&w({width:G,height:K})),ee(e=>R(e,E));let $={xStart:!O&&F>z.xStart,xEnd:!O&&I>z.xEnd,yStart:!D&&V>z.yStart,yEnd:!D&&U>z.yEnd};P(e=>e.xStart===$.xStart&&e.xEnd===$.xEnd&&e.yStart===$.yStart&&e.yEnd===$.yEnd?e:$)});d(()=>{s.current&&F()},[s]),d(()=>{queueMicrotask(G)},[G,k,H,z.xStart,z.xEnd,z.yStart,z.yEnd]),d(()=>{s.current?.matches(`:hover`)&&j(!0)},[s,j]),d(()=>{let e=s.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=ne.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}G()});return n.observe(e),W.start(0,()=>{let t=e.getAnimations({subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished)).then(G).catch(()=>{})}),()=>{n.disconnect(),W.clear()}},[G,s,W]);function K(){U.current=!1}let q={role:`presentation`,...O&&{"data-id":`${O}-viewport`},tabIndex:k.x&&k.y?-1:0,className:v.className,style:{overflow:`scroll`},onScroll(){s.current&&(G(),U.current||A({x:s.current.scrollLeft,y:s.current.scrollTop}),re.start(100,()=>{U.current=!0}))},onWheel:K,onTouchMove:K,onPointerMove:K,onPointerEnter:K,onKeyDown:K},ie=y.useMemo(()=>({scrolling:B||V,hasOverflowX:!k.x,hasOverflowY:!k.y,overflowXStart:I.xStart,overflowXEnd:I.xEnd,overflowYStart:I.yStart,overflowYEnd:I.yEnd,cornerHidden:k.corner}),[B,V,k.x,k.y,k.corner,I]),ae=f(`div`,e,{ref:[t,s],state:ie,props:[q,o],stateAttributesMapping:E}),J=y.useMemo(()=>({computeThumbPosition:G}),[G]);return(0,D.jsx)(M.Provider,{value:J,children:ae})});function L(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function R(e,t){return e.y===t.y&&e.x===t.x&&e.corner===t.corner?e:t}var z=y.createContext(void 0);function B(){let e=y.useContext(z);if(e===void 0)throw Error(s(54));return e}var V=function(e){return e.scrollAreaThumbHeight=`--scroll-area-thumb-height`,e.scrollAreaThumbWidth=`--scroll-area-thumb-width`,e}({}),H=y.forwardRef(function(e,t){let{render:i,className:a,orientation:s=`vertical`,keepMounted:c=!1,style:l,...d}=e,{hovering:p,scrollingX:m,scrollingY:h,hiddenState:g,overflowEdges:_,scrollbarYRef:v,scrollbarXRef:b,viewportRef:w,thumbYRef:T,thumbXRef:O,handlePointerDown:ee,handlePointerUp:k,handleScroll:te,rootId:A,thumbSize:j,hasMeasuredScrollbar:M}=x(),N={hovering:p,scrolling:{horizontal:m,vertical:h}[s],orientation:s,hasOverflowX:!g.x,hasOverflowY:!g.y,overflowXStart:_.xStart,overflowXEnd:_.xEnd,overflowYStart:_.yStart,overflowYEnd:_.yEnd,cornerHidden:g.corner},P=u(),F=!M&&!c,I=s===`vertical`?g.y:g.x,L=c||!I;y.useEffect(()=>{if(!L)return;let e=w.current,t=s===`vertical`?v.current:b.current;if(!t)return;function n(n){if(!e||!t||n.ctrlKey)return;let r=s===`horizontal`,i=r?`scrollLeft`:`scrollTop`,a=r?n.deltaX:n.deltaY;if(a===0)return;let o=r?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,c=r&&P===`rtl`?-o:0,l=r&&P===`rtl`?0:o,u=e[i];u<=c&&a<0||u>=l&&a>0||(n.preventDefault(),e[i]=Math.min(l,Math.max(c,u+a)),te({x:e.scrollLeft,y:e.scrollTop}))}return o(t,`wheel`,n,{passive:!1})},[P,te,s,b,v,L,w]);let R={...A&&{"data-id":`${A}-scrollbar`},onPointerDown(e){if(e.button!==0)return;let t=r(e.nativeEvent),i=s===`vertical`?T.current:O.current;if(!(i&&n(i,t))&&w.current){if(T.current&&v.current&&s===`vertical`){let t=C(T.current,`margin`,`y`),n=C(v.current,`padding`,`y`),r=T.current.offsetHeight,i=v.current.getBoundingClientRect(),a=e.clientY-i.top-r/2-n+t/2,o=w.current.scrollHeight,s=w.current.clientHeight,c=a/(v.current.offsetHeight-r-n-t)*(o-s);w.current.scrollTop=c}if(O.current&&b.current&&s===`horizontal`){let t=C(O.current,`margin`,`x`),n=C(b.current,`padding`,`x`),r=O.current.offsetWidth,i=b.current.getBoundingClientRect(),a=e.clientX-i.left-r/2-n+t/2,o=w.current.scrollWidth,s=w.current.clientWidth,c=a/(b.current.offsetWidth-r-n-t),l;P===`rtl`?(l=(1-c)*(o-s),w.current.scrollLeft<=0&&(l=-l)):l=c*(o-s),w.current.scrollLeft=l}te({x:w.current.scrollLeft,y:w.current.scrollTop}),ee(e)}},onPointerUp:k,onPointerCancel:k,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:F?`hidden`:void 0,...s===`vertical`&&{top:0,bottom:`var(${S.scrollAreaCornerHeight})`,insetInlineEnd:0,[V.scrollAreaThumbHeight]:`${j.height}px`},...s===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(${S.scrollAreaCornerWidth})`,bottom:0,[V.scrollAreaThumbWidth]:`${j.width}px`}}},B=f(`div`,e,{ref:[t,s===`vertical`?v:b],state:N,props:[R,d],stateAttributesMapping:E}),H=y.useMemo(()=>({orientation:s}),[s]);return L?(0,D.jsx)(z.Provider,{value:H,children:B}):null}),U=y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,setScrollingX:d,setScrollingY:p,scrollingX:m,scrollingY:h,hasMeasuredScrollbar:g}=x(),{orientation:_}=B(),v={scrolling:_===`horizontal`?m:h,orientation:_};function y(e){_===`vertical`&&p(!1),_===`horizontal`&&d(!1),u(e)}return f(`div`,e,{ref:[t,_===`vertical`?o:s],state:v,props:[{onPointerDown:c,onPointerMove:l,onPointerUp:y,onPointerCancel:y,style:{visibility:g?void 0:`hidden`,..._===`vertical`&&{height:`var(${V.scrollAreaThumbHeight})`},..._===`horizontal`&&{width:`var(${V.scrollAreaThumbWidth})`}}},a]})}),ne=y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{cornerRef:o,cornerSize:s,hiddenState:c}=x(),l=f(`div`,e,{ref:[t,o],props:[{style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:s.width,height:s.height}},a]});return c.corner?null:l});function re({className:e,children:t,...n}){return(0,D.jsxs)(A,{"data-slot":`scroll-area`,className:p(`relative`,e),...n,children:[(0,D.jsx)(I,{"data-slot":`scroll-area-viewport`,"data-overflow-y-end":!0,className:`focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1`,children:t}),(0,D.jsx)(W,{}),(0,D.jsx)(ne,{})]})}function W({className:e,orientation:t=`vertical`,...n}){return(0,D.jsx)(H,{"data-slot":`scroll-area-scrollbar`,"data-orientation":t,orientation:t,className:p({"h-2.5 flex-col border-t border-t-transparent":t===`horizontal`,"h-full w-[7px] border-l border-l-transparent":t===`vertical`},`data-hovering:opacity-100 transition-opacity data-hovering:pointer-events-none opacity-0`,`flex touch-none p-px transition-colors select-none rounded-3xl`,e),...n,children:(0,D.jsx)(U,{"data-slot":`scroll-area-thumb`,className:`rounded-full bg-border relative flex-1`})})}export{re as t};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Lr as n}from"./example-BIrQab7K.js";import{k as r,n as i,s as a}from"./index-Cz4UGUT2.js";import{a as o,i as s,n as c,o as l,r as u,t as d}from"./select-BG_Iad8E.js";import{i as f,n as p}from"./form-sizing-DHUDpiPA.js";var m=e(t(),1),h=a(),g={placeholder:`Select an option`},_=`__select_empty__`,v=e=>e===``||e===null?_:e??void 0,y=e=>{if(e!==_)return e},b=(0,m.memo)((0,m.forwardRef)(({options:e,placeholder:t,strings:a,allowClear:b=!1,invalid:x,size:S,className:C,onChange:w,disabled:T,defaultOpen:E,open:D,onOpenChange:O,name:k,required:A,"aria-label":j,value:M,defaultValue:N},P)=>{let F=r(g,a),{defaultControlSize:I}=n(),L=f(S,I),R=t??F.placeholder,z=(0,m.useMemo)(()=>{let t=e.map(e=>({...e,value:v(e.value)??``}));return b&&(t.some(e=>e.value===_)||t.unshift({label:R,value:_})),t},[e,b,R]),B=(0,m.useMemo)(()=>v(M),[M]),V=(0,m.useMemo)(()=>v(N),[N]),H=(0,m.useMemo)(()=>{let e=B??V;if(e!==void 0)return z.find(t=>t.value===e)?.label},[V,z,B]),U=(0,m.useCallback)(e=>{e!==null&&w?.(y(e))},[w]),W=!!x;return(0,h.jsxs)(d,{onValueChange:e=>U(e),disabled:T,defaultOpen:E,open:D,onOpenChange:O,name:k,required:A,value:B,defaultValue:V,children:[(0,h.jsx)(o,{ref:P,"aria-label":j,"aria-invalid":W||void 0,className:i(`select--component`,`flex w-full items-center justify-between rounded-radius border px-3 py-1 !shadow-none`,`transition-[color,box-shadow] outline-none`,p[L],`bg-transparent dark:bg-input/30`,`data-[placeholder]:text-muted-foreground`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,`disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,C),children:(0,h.jsx)(l,{placeholder:R,children:H})}),(0,h.jsx)(c,{children:(0,h.jsx)(u,{children:z.map(e=>(0,h.jsxs)(s,{value:e.value,disabled:e.disabled,children:[!!e.icon&&(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,h.jsx)(`span`,{className:`h-4 w-4 shrink-0`,children:e.icon}),e.label]}),!e.icon&&e.label]},e.value))})})]})}));b.displayName=`Select`;export{b as t};
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Yr as n}from"./example-Cz_880po.js";import{k as r,n as i,s as a}from"./index-BQIv1ffM.js";import{a as o,i as s,n as c,o as l,r as u,t as d}from"./select-Dymyvyh6.js";import{i as f,n as p}from"./form-sizing-DHUDpiPA.js";var m=e(t(),1),h=a(),g={placeholder:`Select an option`},_=`__select_empty__`,v=e=>e===``||e===null?_:e??void 0,y=e=>{if(e!==_)return e},b=(0,m.memo)((0,m.forwardRef)(({options:e,placeholder:t,strings:a,allowClear:b=!1,invalid:x,size:S,className:C,onChange:w,disabled:T,defaultOpen:E,open:D,onOpenChange:O,name:k,required:A,"aria-label":j,value:M,defaultValue:N},P)=>{let F=r(g,a),{defaultControlSize:I}=n(),L=f(S,I),R=t??F.placeholder,z=(0,m.useMemo)(()=>{let t=e.map(e=>({...e,value:v(e.value)??``}));return b&&(t.some(e=>e.value===_)||t.unshift({label:R,value:_})),t},[e,b,R]),B=(0,m.useMemo)(()=>v(M),[M]),V=(0,m.useMemo)(()=>v(N),[N]),H=(0,m.useMemo)(()=>{let e=B??V;if(e!==void 0)return z.find(t=>t.value===e)?.label},[V,z,B]),U=(0,m.useCallback)(e=>{e!==null&&w?.(y(e))},[w]),W=!!x;return(0,h.jsxs)(d,{onValueChange:e=>U(e),disabled:T,defaultOpen:E,open:D,onOpenChange:O,name:k,required:A,value:B,defaultValue:V,children:[(0,h.jsx)(o,{ref:P,"aria-label":j,"aria-invalid":W||void 0,className:i(`select--component`,`flex w-full items-center justify-between rounded-radius border px-3 py-1 !shadow-none`,`transition-[color,box-shadow] outline-none`,p[L],`bg-transparent dark:bg-input/30`,`data-[placeholder]:text-muted-foreground`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,`disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,C),children:(0,h.jsx)(l,{placeholder:R,children:H})}),(0,h.jsx)(c,{children:(0,h.jsx)(u,{children:z.map(e=>(0,h.jsxs)(s,{value:e.value,disabled:e.disabled,children:[!!e.icon&&(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,h.jsx)(`span`,{className:`h-4 w-4 shrink-0`,children:e.icon}),e.label]}),!e.icon&&e.label]},e.value))})})]})}));b.displayName=`Select`;export{b as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{$ as n,En as r,Gt as i,Jt as a,K as o,Kt as s,Mn as c,O as l,P as u,Qt as d,Tn as f,Ur as p,Vt as m,Wn as h,Wt as g,X as _,Y as v,Yn as y,Yt as b,Zt as x,_t as S,ar as C,at as w,b as T,br as E,cr as ee,d as D,en as O,et as k,f as A,fr as j,gr as M,hr as N,ir as P,it as F,lr as I,m as L,mr as R,mt as te,nr as z,ot as ne,pn as re,pr as B,rt as V,u as ie,v as ae,vn as oe,y as se,zn as H}from"./example-Cz_880po.js";import{t as U}from"./chevron-down-ByPPEdNm.js";import{t as ce}from"./chevron-up-Cha879Nz.js";import{n as W,s as le}from"./index-BQIv1ffM.js";import{a as ue,i as G,o as K,t as de}from"./useOpenInteractionType-DLUX6CcH.js";import{n as fe,r as pe,t as me}from"./getPseudoElementBounds-DwyQgIj-.js";import{t as q}from"./inertValue-DeVQ2cCe.js";import{t as he}from"./useControlled-BF8maje6.js";import{n as ge,r as J,t as _e}from"./useCompositeListItem-BWfShNPP.js";import{t as ve}from"./ToolbarRootContext-xN-ruoGR.js";import{o as ye}from"./composite-BQFpnmS9.js";import{t as be}from"./useAnchoredPopupScrollLock-CP1vkwD7.js";import{t as xe}from"./useValueChanged-DSoTBFAJ.js";import{t as Se}from"./isElementDisabled-KSuuBj8D.js";import{a as Ce,c as we,d as Te,i as Ee,l as De,o as Oe,r as ke,s as Ae,t as je,u as Me}from"./resolveValueLabel-DfiI3G4i.js";import{c as Ne,n as Pe,o as Fe,r as Ie,t as Le}from"./LabelableContext-DapqaNeY.js";import{t as Re}from"./useLabelableId-DxorZ3YW.js";import{n as ze,r as Be}from"./resolveAriaLabelledBy-iFo8AzEr.js";import{n as Ve,t as He}from"./CSPContext-B11tftuK.js";import{n as Ue,r as We,t as Ge}from"./styles-Bv0pDLVi.js";var Y=e(t(),1);function Ke(e){let[t,n]=Y.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var qe=Y.createContext(null),Je=Y.createContext(null);function X(){let e=Y.useContext(qe);if(e===null)throw Error(j(60));return e}function Ye(){let e=Y.useContext(Je);if(e===null)throw Error(j(61));return e}var Z={id:V(e=>e.id),labelId:V(e=>e.labelId),modal:V(e=>e.modal),multiple:V(e=>e.multiple),items:V(e=>e.items),itemToStringLabel:V(e=>e.itemToStringLabel),itemToStringValue:V(e=>e.itemToStringValue),isItemEqualToValue:V(e=>e.isItemEqualToValue),value:V(e=>e.value),hasSelectedValue:V(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Oe(t,r)!==``}),hasNullItemLabel:V((e,t)=>t?je(e.items):!1),open:V(e=>e.open),mounted:V(e=>e.mounted),forceMount:V(e=>e.forceMount),transitionStatus:V(e=>e.transitionStatus),openMethod:V(e=>e.openMethod),activeIndex:V(e=>e.activeIndex),selectedIndex:V(e=>e.selectedIndex),isActive:V((e,t)=>e.activeIndex===t),isSelected:V((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>Ae(t,e,n)):Ae(t,r,n)}),isSelectedByFocus:V((e,t)=>e.selectedIndex===t),popupProps:V(e=>e.popupProps),triggerProps:V(e=>e.triggerProps),triggerElement:V(e=>e.triggerElement),positionerElement:V(e=>e.positionerElement),listElement:V(e=>e.listElement),popupSide:V(e=>e.popupSide),scrollUpArrowVisible:V(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:V(e=>e.scrollDownArrowVisible),hasScrollArrows:V(e=>e.hasScrollArrows)},Q=le();function Xe(e){let{id:t,value:r,defaultValue:a=null,onValueChange:s,open:c,defaultOpen:f=!1,onOpenChange:p,name:m,form:h,autoComplete:v,disabled:y=!1,readOnly:x=!1,required:S=!1,modal:w=!0,actionsRef:T,inputRef:E,onOpenChangeComplete:D,items:O,multiple:A=!1,itemToStringLabel:j,itemToStringValue:I,isItemEqualToValue:L=we,highlightItemOnHover:te=!0,children:z}=e,{clearErrors:re}=Pe(),{setDirty:V,setTouched:ie,setFocused:ae,validityData:se,setFilled:H,name:U,disabled:ce,validation:W,validationMode:le}=Fe(),G=Re({id:t}),K=ce||y,me=U??m,[q,ge]=he({controlled:r,default:A?a??P:a,name:`Select`,state:`value`}),[J,_e]=he({controlled:c,default:f,name:`Select`,state:`open`}),ve=Y.useRef([]),ye=Y.useRef([]),be=Y.useRef(null),Te=Y.useRef(null),Ee=Y.useRef(0),ke=Y.useRef(null),je=Y.useRef([]),Me=Y.useRef(!1),Ne=Y.useRef(null),Le=Y.useRef(null),ze=Y.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),Ve=Y.useRef(!1),{mounted:He,setMounted:Ge,transitionStatus:X}=_(J),{openMethod:Ye,triggerProps:Xe}=de(J),$=M(()=>new n({id:G,labelId:void 0,modal:w,multiple:A,itemToStringLabel:j,itemToStringValue:I,isItemEqualToValue:L,value:q,open:J,mounted:He,transitionStatus:X,items:O,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Ze=k($,Z.activeIndex),Qe=k($,Z.selectedIndex),$e=k($,Z.triggerElement),et=k($,Z.positionerElement),tt=Ke(Ye),nt=Ye??tt??null,rt=Y.useMemo(()=>A?``:Oe(q,I),[A,q,I]),it=Y.useMemo(()=>A&&Array.isArray(q)?q.map(e=>Oe(e,I)):Oe(q,I),[A,q,I]);Ie(b($.state.triggerElement),G,q,N(()=>it),!K,m);let at=Y.useRef(q),ot=A?Array.isArray(q)&&q.length>0:q!=null&&Oe(q,I)!==``;R(()=>{q!==at.current&&$.set(`forceMount`,!0)},[$,q]),R(()=>{H(ot)},[ot,H]),R(function(){let e=je.current,t;if(A){let n=Array.isArray(q)?q:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=De(e,r,L);t=i===-1?null:i}}else{let n=De(e,q,L);t=n===-1?null:n}t===null&&(Le.current=null),!J&&$.set(`selectedIndex`,t)},[ot,A,J,q,je,L,$,Le]);function st(e){let t=se.initialValue;return Array.isArray(e)&&Array.isArray(t)?!Be(e,t,(e,t)=>Ae(e,t,L)):e!==t}xe(q,()=>{re(me),V(st(q)),W.change(q)});let ct=N((e,t)=>{p?.(e,t),!t.isCanceled&&(_e(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(ie(!0),ae(!1),le===`onBlur`&&W.commit(q)))}),lt=N(()=>{Ge(!1),$.update({activeIndex:null,openMethod:null}),D?.(!1)});o({enabled:!T,open:J,ref:be,onComplete(){J||lt()}}),Y.useImperativeHandle(T,()=>({unmount:lt}),[lt]);let ut=N((e,t)=>{s?.(e,t),!t.isCanceled&&ge(e)}),dt=N(()=>{let e=$.state.listElement||be.current;if(!e)return;let t=Ue(e.scrollHeight,e.clientHeight),n=We(e.scrollTop,t),r=n>0,i=n<t;$.state.scrollUpArrowVisible!==r&&$.set(`scrollUpArrowVisible`,r),$.state.scrollDownArrowVisible!==i&&$.set(`scrollDownArrowVisible`,i)}),ft=l({open:J,onOpenChange:ct,elements:{reference:$e,floating:et}}),pt=ue(ft,{enabled:!x&&!K,event:`mousedown`}),mt=ne(ft),ht=pe(ft,{enabled:!x&&!K,listRef:ve,activeIndex:Ze,selectedIndex:Qe,disabledIndices:P,onNavigate(e){e===null&&!J||$.set(`activeIndex`,e)},focusItemOnHover:te}),gt=fe(ft,{enabled:!x&&!K&&(J||!A),listRef:ye,activeIndex:Ze,selectedIndex:Qe,disabledIndices:e=>Se(ve.current[e]),onMatch(e){J?$.set(`activeIndex`,e):ut(je.current[e],d(`none`))},onTyping(e){Me.current=e}}),_t=Y.useMemo(()=>{let e=B(gt.reference,ht.reference,mt.reference,pt.reference,Xe);return G&&(e.id=G),e},[pt.reference,gt.reference,ht.reference,mt.reference,Xe,G]),vt=Y.useMemo(()=>B(u,gt.floating,ht.floating,mt.floating),[gt.floating,ht.floating,mt.floating]),yt=ht.item??C;F(()=>{$.update({popupProps:vt,triggerProps:_t})}),R(()=>{$.update({id:G,modal:w,multiple:A,value:q,open:J,mounted:He,transitionStatus:X,popupProps:vt,triggerProps:_t,items:O,itemToStringLabel:j,itemToStringValue:I,isItemEqualToValue:L,openMethod:nt})},[$,G,w,A,q,J,He,X,vt,_t,O,j,I,L,nt]);let bt=Y.useMemo(()=>({store:$,name:me,required:S,disabled:K,readOnly:x,multiple:A,highlightItemOnHover:te,setValue:ut,setOpen:ct,listRef:ve,popupRef:be,scrollHandlerRef:Te,handleScrollArrowVisibility:dt,scrollArrowsMountedCountRef:Ee,itemProps:yt,valueRef:ke,valuesRef:je,labelsRef:ye,typingRef:Me,selectionRef:ze,firstItemTextRef:Ne,selectedItemTextRef:Le,validation:W,onOpenChangeComplete:D,alignItemWithTriggerActiveRef:Ve,initialValueRef:at}),[$,me,S,K,x,A,te,ut,ct,yt,W,D,dt]),xt=ee(E,W.inputRef),St=A&&Array.isArray(q)&&q.length>0,Ct=A?void 0:me,wt=Y.useMemo(()=>!A||!Array.isArray(q)||!me?null:q.map(e=>{let t=Oe(e,I);return(0,Q.jsx)(`input`,{type:`hidden`,form:h,name:me,value:t,disabled:K},t)}),[A,q,h,me,I,K]);return(0,Q.jsx)(qe.Provider,{value:bt,children:(0,Q.jsxs)(Je.Provider,{value:ft,children:[z,(0,Q.jsx)(`input`,{...W.getValidationProps(K,{onFocus(){$.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||K||x)return;let t=e.currentTarget.value,n=d(oe,e.nativeEvent);function r(){if(A)return;let e=t.toLowerCase(),r=je.current.findIndex(t=>Oe(t,I).toLowerCase()===e||Ce(t,j).toLowerCase()===e);r===-1&&(r=je.current.findIndex((t,n)=>{let r=ye.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:je.current[r];i!=null&&ut(i,n)}$.set(`forceMount`,!0),queueMicrotask(r)}}),id:G&&Ct==null?`${G}-hidden-input`:void 0,form:h,name:Ct,autoComplete:v,value:rt,disabled:K,required:S&&!St,readOnly:x,ref:xt,style:me?i:g,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),wt]})})}var $=2,Ze=400,Qe={...se,...Ne,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},$e=Y.forwardRef(function(e,t){let{render:n,className:i,id:a,disabled:o=!1,nativeButton:l=!0,style:u,...f}=e,{setTouched:p,setFocused:m,validationMode:h,state:g,disabled:_}=Fe(),{labelId:v}=Le(),{store:x,setOpen:S,selectionRef:C,validation:w,readOnly:T,required:E,alignItemWithTriggerActiveRef:ee,disabled:D}=X(),A=_||D||o,j=k(x,Z.open),M=k(x,Z.mounted),P=k(x,Z.value),F=k(x,Z.triggerProps),L=k(x,Z.positionerElement),R=k(x,Z.listElement),te=k(x,Z.popupSide),ne=k(x,Z.id),re=k(x,Z.labelId),V=k(x,Z.hasSelectedValue),ie=M&&L?te:null,ae=a??ne,se=ze(v,re);Re({id:ae});let H=b(L),U=Y.useRef(null),{getButtonProps:ce,buttonRef:W}=I({disabled:A,native:l}),le=N(e=>{x.set(`triggerElement`,e)}),ue=y(),G=y(),K=y();Y.useEffect(()=>{if(j)return K.start(Ze,()=>{C.current.allowUnselectedMouseUp=!0,C.current.allowSelectedMouseUp=!0}),()=>{K.clear()};C.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},G.clear()},[j,C,G,K]);let de=B(F,{id:ae,role:`combobox`,"aria-expanded":j?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":j?R?.id??r(L)?.id:void 0,"aria-labelledby":se,"aria-readonly":T||void 0,"aria-required":E||void 0,tabIndex:A?-1:0,onFocus(e){m(!0),j&&ee.current&&S(!1,d(oe,e.nativeEvent)),ue.start(0,()=>{x.set(`forceMount`,!0)})},onBlur(e){c(L,e.relatedTarget)||(p(!0),m(!1),h===`onBlur`&&w.commit(P))},onMouseDown(e){if(j)return;let t=s(e.currentTarget);function n(e){if(!U.current)return;let t=e.target;if(c(U.current,t)||c(H.current,t))return;let n=me(U.current);e.clientX>=n.left-$&&e.clientX<=n.right+$&&e.clientY>=n.top-$&&e.clientY<=n.bottom+$||S(!1,d(O,e))}G.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},f,ce),fe=w.getValidationProps(A,de);fe.role=`combobox`;let pe={...g,open:j,disabled:A,value:P,readOnly:T,popupSide:ie,placeholder:!V};return z(`button`,e,{ref:[t,U,W,le],state:pe,stateAttributesMapping:Qe,props:fe})}),et={value:()=>null},tt=Y.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=X(),u=k(c,Z.value),d=k(c,Z.items),f=k(c,Z.itemToStringLabel),p=k(c,Z.hasSelectedValue),m=!p&&a!=null&&i==null,h=k(c,Z.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?ke(u,d,f):Ee(u,d,f)),z(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:et})}),nt=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=X();return z(`span`,e,{state:{open:k(o,Z.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:T})}),rt=Y.createContext(void 0),it=Y.forwardRef(function(e,t){let{store:n}=X(),r=k(n,Z.mounted),i=k(n,Z.forceMount);return r||i?(0,Q.jsx)(rt.Provider,{value:!0,children:(0,Q.jsx)(te,{ref:t,...e})}):null}),at=Y.createContext(void 0);function ot(){let e=Y.useContext(at);if(!e)throw Error(j(59));return e}function st(e,t){e&&Object.assign(e.style,t)}var ct={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},lt={position:`fixed`},ut=Y.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:f,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h,alignItemWithTrigger:g=!0,collisionAvoidance:_=S,style:v,...y}=e,{store:b,listRef:x,labelsRef:C,alignItemWithTriggerActiveRef:w,selectedItemTextRef:T,valuesRef:E,initialValueRef:ee,popupRef:D,setValue:O}=X(),j=Ye(),M=k(b,Z.open),P=k(b,Z.mounted),F=k(b,Z.modal),I=k(b,Z.value),L=k(b,Z.openMethod),te=k(b,Z.positionerElement),z=k(b,Z.triggerElement),ne=k(b,Z.isItemEqualToValue),re=k(b,Z.transitionStatus),B=Y.useRef(null),V=Y.useRef(null),[ae,se]=Y.useState(g),H=P&&ae&&L!==`touch`;!P&&ae!==g&&se(g),R(()=>{P||(Z.scrollUpArrowVisible(b.state)&&b.set(`scrollUpArrowVisible`,!1),Z.scrollDownArrowVisible(b.state)&&b.set(`scrollDownArrowVisible`,!1))},[b,P]),Y.useImperativeHandle(w,()=>H),be((H||F)&&M,L===`touch`,te,z);let U=A({anchor:n,floatingRootContext:j,positionMethod:r,mounted:P,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:p,collisionBoundary:u,collisionPadding:f,sticky:m,disableAnchorTracking:h??H,collisionAvoidance:_,keepMounted:!0}),ce=H?`none`:U.side,W=H?lt:U.positionerStyles,le={open:M,side:ce,align:U.align,anchorHidden:U.anchorHidden};R(()=>{b.set(`popupSide`,U.side)},[b,U.side]);let ue=ie(e,le,{styles:W,transitionStatus:re,props:y,refs:[t,N(e=>{b.set(`positionerElement`,e)})],hidden:!P,inert:!M}),K=Y.useRef(0),de=N(e=>{if(e.size===0&&K.current===0||E.current.length===0)return;let t=K.current;if(K.current=e.size,e.size===t)return;let n=d(oe);if(t!==0&&!b.state.multiple&&I!==null&&De(E.current,I,ne)===-1){let e=ee.current,t=e!=null&&De(E.current,e,ne)!==-1?e:null;O(t,n),t===null&&(b.set(`selectedIndex`,null),T.current=null)}if(t!==0&&b.state.multiple&&Array.isArray(I)){let e=e=>De(E.current,e,ne)!==-1,t=I.filter(t=>e(t));(t.length!==I.length||t.some(e=>!Te(I,e,ne)))&&(O(t,n),t.length===0&&(b.set(`selectedIndex`,null),T.current=null))}if(M&&H){b.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};st(te,e),st(D.current,e)}}),fe=Y.useMemo(()=>({...U,side:ce,alignItemWithTriggerActive:H,setControlledAlignItemWithTrigger:se,scrollUpArrowRef:B,scrollDownArrowRef:V}),[U,ce,H,se]);return(0,Q.jsx)(J,{elementsRef:x,labelsRef:C,onMapChange:de,children:(0,Q.jsxs)(at.Provider,{value:fe,children:[P&&F&&(0,Q.jsx)(G,{inert:q(!M),cutout:z}),ue]})})}),dt={...ae,...v},ft=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:c,...l}=e,{store:u,popupRef:p,onOpenChangeComplete:m,setOpen:g,valueRef:_,firstItemTextRef:v,selectedItemTextRef:y,multiple:b,handleScrollArrowVisibility:S,scrollHandlerRef:C,listRef:w,highlightItemOnHover:T}=X(),{side:ee,align:O,alignItemWithTriggerActive:A,isPositioned:j,setControlledAlignItemWithTrigger:M}=ot(),P=ve(!0)!=null,F=Ye(),I=L(),{nonce:te,disableStyleElements:ne}=He(),re=k(u,Z.id),B=k(u,Z.open),V=k(u,Z.openMethod),ie=k(u,Z.mounted),ae=k(u,Z.popupProps),oe=k(u,Z.transitionStatus),se=k(u,Z.triggerElement),H=k(u,Z.positionerElement),U=k(u,Z.listElement),ce=Y.useRef(!1),W=Y.useRef(!1),le=Y.useRef({}),ue=a(),G=N(e=>{if(!H||!p.current||!W.current)return;if(ce.current||!A){S();return}let t=H.style.top===`0px`,n=H.style.bottom===`0px`;if(!t&&!n){S();return}let r=ht(H),i=gt(H.getBoundingClientRect().height,`y`,r),a=s(H),o=E(H),c=o.getComputedStyle(H),l=parseFloat(c.marginTop),u=parseFloat(c.marginBottom),d=pt(o.getComputedStyle(p.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),m=e.scrollTop,h=mt(e),g=0,_=null,v=!1,y=!1,b=e=>{H.style.height=`${e}px`},x=(t,n)=>{let r=Ve(t,0,f-i);r>0&&b(i+r),e.scrollTop=n,f-(i+r)<=1&&(ce.current=!0),S()},C=t?h-m:m,w=Math.min(i+C,f);if(g=w,C<=1){x(C,t?h:0);return}if(f-w>1?t?y=!0:_=0:(v=!0,n&&m<h&&(_=m-(C-(i+C-f)))),g=Math.ceil(g),g!==0&&b(g),y||_!=null){let t=mt(e),n=y?t:Ve(_,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(v||g>=f-1)&&(ce.current=!0),S()});Y.useImperativeHandle(C,()=>G,[G]),o({open:B,ref:p,onComplete(){B&&m?.(!0)}});let de={open:B,transitionStatus:oe,side:ee,align:O};R(()=>{!H||!p.current||Object.keys(le.current).length||(le.current={top:H.style.top||`0`,left:H.style.left||`0`,right:H.style.right,height:H.style.height,bottom:H.style.bottom,minHeight:H.style.minHeight,maxHeight:H.style.maxHeight,marginTop:H.style.marginTop,marginBottom:H.style.marginBottom})},[p,H]),R(()=>{B||A||(W.current=!1,ce.current=!1,st(H,le.current))},[B,A,H,p]),R(()=>{let e=p.current;if(!B||!se||!H||!e||A&&!j||u.state.transitionStatus===`ending`)return;if(!A){W.current=!0,ue.request(S),e.style.removeProperty(`--transform-origin`);return}let t=yt(e);e.style.removeProperty(`--transform-origin`);try{let t=y.current;t?.isConnected||(t=!Z.hasSelectedValue(u.state)&&v.current?.isConnected?v.current:null);let n=_.current,r=E(H),i=r.getComputedStyle(H),a=r.getComputedStyle(e),o=s(se),c=ht(se),l=_t(se.getBoundingClientRect(),c),d=_t(H.getBoundingClientRect(),c),f=l.height,p=U||e,m=p.scrollHeight,g=parseFloat(a.borderBottomWidth),b=parseFloat(i.marginTop)||10,x=parseFloat(i.marginBottom)||10,C=parseFloat(i.minHeight)||100,ee=pt(a),D=o.documentElement.clientHeight-b-x,O=o.documentElement.clientWidth,k=D-l.bottom+f,A,j=I===`rtl`?l.right-d.width:l.left,N=0;if(t&&n){let e=_t(n.getBoundingClientRect(),c);A=_t(t.getBoundingClientRect(),c),j=d.left+(I===`rtl`?e.right-A.right:e.left-A.left);let r=e.top-l.top+e.height/2;N=A.top-d.top+A.height/2-r}let P=k+N+x+g,F=Math.min(D,P),L=D-b-x,R=P-F,te=O-5;H.style.left=`${Ve(j,5,te-d.width)}px`,H.style.height=`${F}px`,H.style.maxHeight=`none`,H.style.marginTop=`${b}px`,H.style.marginBottom=`${x}px`,e.style.height=`100%`;let z=mt(p),ne=R>=z-1;ne&&(F=Math.min(D,d.height)-(R-z));let re=l.top<20||l.bottom>D-20||Math.ceil(F)+1<Math.min(m,C),B=(r.visualViewport?.scale??1)!==1&&h;if(re||B){W.current=!0,st(H,le.current),M(!1);return}let V=Math.max(C,F);if(ne){let e=Math.max(0,D-P);H.style.top=d.height>=L?`0`:`${e}px`,H.style.height=`${F}px`,p.scrollTop=mt(p)}else H.style.bottom=`0`,p.scrollTop=R;if(A){let t=d.top,n=d.height,r=A.top+A.height/2,i=Ve(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(V===D||F>=ee)&&(ce.current=!0),S(),T&&u.state.selectedIndex===null&&u.state.activeIndex===null&&w.current[0]!=null&&u.set(`activeIndex`,0),W.current=!0}finally{t()}},[u,B,H,se,_,v,y,p,S,A,M,ue,U,w,T,I,j]),Y.useEffect(()=>{if(!A||!H||!B)return;let e=E(H);function t(e){g(!1,d(f,e))}return x(e,`resize`,t)},[g,A,H,B]);let fe={...U?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":b||void 0,id:`${re}-list`},onKeyDown(e){P&&ye.has(e.key)&&e.stopPropagation()},onScroll(e){U||G(e.currentTarget)},...A&&{style:U?{height:`100%`}:ct}},pe=z(`div`,e,{ref:[t,p],state:de,stateAttributesMapping:dt,props:[ae,fe,D(oe),{className:!U&&A?Ge.className:void 0},l]});return(0,Q.jsxs)(Y.Fragment,{children:[!ne&&Ge.getElement(te),(0,Q.jsx)(K,{context:F,modal:!1,disabled:!ie,openInteractionType:V,returnFocus:c,restoreFocus:!0,children:pe})]})});function pt(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function mt(e){return Ue(e.scrollHeight,e.clientHeight)}function ht(e){return w.getScale(e)}function gt(e,t,n){return e/n[t]}function _t(e,t){return m({x:gt(e.x,`x`,t),y:gt(e.y,`y`,t),width:gt(e.width,`x`,t),height:gt(e.height,`y`,t)})}var vt=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function yt(e){let{style:t}=e,n={};for(let[e,r]of vt)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of vt){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var bt=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=X(),{alignItemWithTriggerActive:c}=ot(),l=k(o,Z.hasScrollArrows),u=k(o,Z.openMethod),d=k(o,Z.multiple),f={id:`${k(o,Z.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:ct},className:l&&u!==`touch`?Ge.className:void 0};return z(`div`,e,{ref:[t,N(e=>{o.set(`listElement`,e)})],props:[f,a]})}),xt=Y.createContext(void 0);function St(){let e=Y.useContext(xt);if(!e)throw Error(j(57));return e}var Ct=Y.memo(Y.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=Y.useRef(null),f=ge({label:o,textRef:u,indexGuessBehavior:_e.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:g,selectionRef:_,typingRef:v,valuesRef:y,multiple:b,selectedItemTextRef:x,disabled:S,readOnly:C}=X(),w=k(p,Z.isActive,f.index),T=k(p,Z.open),E=k(p,Z.isSelected,a),ee=k(p,Z.isSelectedByFocus,f.index),D=k(p,Z.isItemEqualToValue),O=f.index,A=O!==-1,j=Y.useRef(null);R(()=>{if(!A)return;let e=y.current;return e[O]=a,()=>{delete e[O]}},[A,O,a,y]),R(()=>{if(!A)return;let e=p.state.value,t=e;b&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&Ae(a,t,D)&&(p.set(`selectedIndex`,O),u.current&&(x.current=u.current))},[A,O,b,D,p,a,x]);let M=Y.useRef(null),N=Y.useRef(`mouse`),P=Y.useRef(!1),{getButtonProps:F,buttonRef:L}=I({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),te={disabled:s,selected:E,highlighted:w};function ne(e){if(S||C)return;let t=p.state.value;if(b){let n=Array.isArray(t)?t:[];g(E?Me(n,a,D):[...n,a],d(re,e))}else g(a,d(re,e)),h(!1,d(re,e))}function B(){_.current.dragY=0}let V={role:`option`,"aria-selected":E,tabIndex:T&&w?0:-1,onKeyDown(e){M.current=e.key,p.set(`activeIndex`,O),e.key===` `&&v.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&N.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&H(e.nativeEvent)&&(n!==void 0||w),i=t&&!r&&!P.current;P.current=!1,!(e.type===`keydown`&&M.current===null)&&(s||e.type===`keydown`&&M.current===` `&&v.current||i||(M.current=null,ne(e.nativeEvent)))},onPointerEnter(e){N.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=_.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){N.current=e.pointerType,P.current=!0,B()},onMouseUp(){if(B(),s||N.current===`touch`||P.current)return;let e=!_.current.allowSelectedMouseUp&&E,t=!_.current.allowUnselectedMouseUp&&!E;e||t||(P.current=!0,j.current?.click(),P.current=!1)}},ie=z(`div`,e,{ref:[L,t,f.ref,j],state:te,props:[m,V,l,F]}),ae=Y.useMemo(()=>({selected:E,index:O,textRef:u,selectedByFocus:ee,hasRegistered:A}),[E,O,u,ee,A]);return(0,Q.jsx)(xt.Provider,{value:ae,children:ie})})),wt=Y.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=St();return n||r?(0,Q.jsx)(Tt,{...e,ref:t}):null}),Tt=Y.memo(Y.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...s}=e,{selected:c}=St(),l=Y.useRef(null),{transitionStatus:u,setMounted:d}=_(c),f=z(`span`,e,{ref:[t,l],state:{selected:c,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:v});return o({open:c,ref:l,onComplete(){c||d(!1)}}),f})),Et=Y.memo(Y.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=St(),{firstItemTextRef:o,selectedItemTextRef:s}=X(),{render:c,className:l,style:u,...d}=e;return z(`div`,e,{ref:[Y.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:d})})),Dt=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:s=!1,...c}=e,l=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=X(),{side:h,scrollDownArrowRef:g,scrollUpArrowRef:b}=ot(),x=k(u,l?Z.scrollUpArrowVisible:Z.scrollDownArrowVisible),S=k(u,Z.openMethod),C=x&&S!==`touch`,w=y(),T=l?b:g,{mounted:E,transitionStatus:ee,setMounted:D}=_(C);R(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),o({open:C,ref:T,onComplete(){C||D(!1)}});let O=z(`div`,e,{ref:[t,T],state:{direction:a,visible:C,side:h,transitionStatus:ee},props:[{"aria-hidden":!0,children:l?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||w.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=Ue(e.scrollHeight,e.clientHeight),r=We(e.scrollTop,n),i=r===(l?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(l?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){w.clear();return}if(a.length>0){let t=T.current?.offsetHeight||0;e.scrollTop=Ot(a,l,r,e.clientHeight,t,n)}w.start(40,t)}w.start(40,t)},onMouseLeave(){w.clear()}},c],stateAttributesMapping:v});return E||s?O:null});function Ot(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?We(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?We(l.offsetTop+l.offsetHeight-r+i,a):a}var kt=Y.forwardRef(function(e,t){return(0,Q.jsx)(Dt,{...e,ref:t,direction:`down`})}),At=Y.forwardRef(function(e,t){return(0,Q.jsx)(Dt,{...e,ref:t,direction:`up`})}),jt=Y.createContext(void 0),Mt=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Y.useState(),c=Y.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=z(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Q.jsx)(jt.Provider,{value:c,children:l})}),Nt=Xe;function Pt({className:e,...t}){return(0,Q.jsx)(Mt,{"data-slot":`select-group`,className:W(`scroll-my-1 p-1`,e),...t})}function Ft({className:e,...t}){return(0,Q.jsx)(tt,{"data-slot":`select-value`,className:W(`flex flex-1 text-left`,e),...t})}function It({className:e,size:t=`default`,children:n,...r}){return(0,Q.jsxs)($e,{"data-slot":`select-trigger`,"data-size":t,className:W(`border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),...r,children:[n,(0,Q.jsx)(nt,{render:(0,Q.jsx)(U,{className:`text-muted-foreground size-4 pointer-events-none`})})]})}function Lt({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:o=!0,...s}){return(0,Q.jsx)(it,{children:(0,Q.jsx)(ut,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:o,className:`isolate z-50`,children:(0,Q.jsxs)(ft,{"data-slot":`select-content`,"data-align-trigger":o,className:W(`bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-md shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 relative isolate z-50 max-h-(--available-height) min-w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none`,e),...s,children:[(0,Q.jsx)(zt,{}),(0,Q.jsx)(bt,{children:t}),(0,Q.jsx)(Bt,{})]})})})}function Rt({className:e,children:t,...n}){return(0,Q.jsxs)(Ct,{"data-slot":`select-item`,className:W(`focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),...n,children:[(0,Q.jsx)(Et,{className:`flex flex-1 gap-2 shrink-0`,children:t}),(0,Q.jsx)(wt,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,Q.jsx)(p,{className:`pointer-events-none`})})]})}function zt({className:e,...t}){return(0,Q.jsx)(At,{"data-slot":`select-scroll-up-button`,className:W(`bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 top-0 w-full`,e),...t,children:(0,Q.jsx)(ce,{})})}function Bt({className:e,...t}){return(0,Q.jsx)(kt,{"data-slot":`select-scroll-down-button`,className:W(`bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 bottom-0 w-full`,e),...t,children:(0,Q.jsx)(U,{})})}export{It as a,Rt as i,Lt as n,Ft as o,Pt as r,Nt as t};
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]);export{t};
@@ -1 +1 @@
1
- import{n as e,s as t}from"./index-Cz4UGUT2.js";import{t as n}from"./Separator-KsPLUEno.js";var r=t();function i({className:t,orientation:i=`horizontal`,...a}){return(0,r.jsx)(n,{"data-slot":`separator`,orientation:i,className:e(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,t),...a})}export{i as t};
1
+ import{n as e,s as t}from"./index-BQIv1ffM.js";import{t as n}from"./Separator-BEMr82IS.js";var r=t();function i({className:t,orientation:i=`horizontal`,...a}){return(0,r.jsx)(n,{"data-slot":`separator`,orientation:i,className:e(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,t),...a})}export{i as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-QTnfLwEv.js";import{hr as t,mr as n,t as r}from"./example-BIrQab7K.js";import{s as i}from"./index-Cz4UGUT2.js";import{t as a}from"./separator-BjGdXNcn.js";var o=e({Horizontal:()=>c,Vertical:()=>l}),s=i();function c(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`div`,{className:`text-sm`,children:`Above`}),(0,s.jsx)(a,{className:`my-3`}),(0,s.jsx)(`div`,{className:`text-sm`,children:`Below`})]})})}function l(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(`div`,{className:`flex h-10 items-center`,children:[(0,s.jsx)(`span`,{className:`text-sm`,children:`Item A`}),(0,s.jsx)(a,{orientation:`vertical`,className:`mx-3`}),(0,s.jsx)(`span`,{className:`text-sm`,children:`Item B`}),(0,s.jsx)(a,{orientation:`vertical`,className:`mx-3`}),(0,s.jsx)(`span`,{className:`text-sm`,children:`Item C`})]})})}var u=`import { Separator } from '@/components/ui/separator';
1
+ import{n as e}from"./chunk-QTnfLwEv.js";import{Dr as t,Er as n,t as r}from"./example-Cz_880po.js";import{s as i}from"./index-BQIv1ffM.js";import{t as a}from"./separator-BsYPzBlF.js";var o=e({Horizontal:()=>c,Vertical:()=>l}),s=i();function c(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`div`,{className:`text-sm`,children:`Above`}),(0,s.jsx)(a,{className:`my-3`}),(0,s.jsx)(`div`,{className:`text-sm`,children:`Below`})]})})}function l(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(`div`,{className:`flex h-10 items-center`,children:[(0,s.jsx)(`span`,{className:`text-sm`,children:`Item A`}),(0,s.jsx)(a,{orientation:`vertical`,className:`mx-3`}),(0,s.jsx)(`span`,{className:`text-sm`,children:`Item B`}),(0,s.jsx)(a,{orientation:`vertical`,className:`mx-3`}),(0,s.jsx)(`span`,{className:`text-sm`,children:`Item C`})]})})}var u=`import { Separator } from '@/components/ui/separator';
2
2
 
3
3
  export function Horizontal() {
4
4
  return (
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);export{t};
@@ -1 +1 @@
1
- import"./chunk-QTnfLwEv.js";import{n as e}from"./react-dom-Bz4cALsF.js";import{Un as t,l as n}from"./example-BIrQab7K.js";import{t as r}from"./x-BqJnRkKw.js";import{n as i,s as a}from"./index-Cz4UGUT2.js";import{a as o,c as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./DialogTrigger-C0DB0bXw.js";e();var m=a();function h({...e}){return(0,m.jsx)(d,{"data-slot":`sheet`,modal:`trap-focus`,...e})}function g({asChild:e=!1,...t}){let r=e?(0,m.jsx)(n,{}):void 0;return(0,m.jsx)(p,{"data-slot":`sheet-trigger`,render:r,...t})}function _({...e}){return(0,m.jsx)(c,{"data-slot":`sheet-portal`,...e})}function v({className:e,...t}){return(0,m.jsx)(s,{"data-slot":`sheet-overlay`,className:i(`data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50`,e),...t})}function y({className:e,children:n,side:a=`right`,showCloseButton:s=!0,...c}){return(0,m.jsxs)(_,{children:[(0,m.jsx)(v,{}),(0,m.jsxs)(o,{"data-slot":`sheet-content`,"data-side":a,className:i(`bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,e),...c,children:[n,!!s&&(0,m.jsxs)(f,{"data-slot":`sheet-close`,render:(0,m.jsx)(t,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`}),children:[(0,m.jsx)(r,{}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function b({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`sheet-header`,className:i(`gap-1.5 p-4 flex flex-col`,e),...t})}function x({className:e,asChild:t=!1,...r}){let a=t?(0,m.jsx)(n,{}):void 0;return(0,m.jsx)(l,{"data-slot":`sheet-title`,render:a,className:i(`text-foreground font-medium`,e),...r})}function S({className:e,asChild:t=!1,...r}){let a=t?(0,m.jsx)(n,{}):void 0;return(0,m.jsx)(u,{"data-slot":`sheet-description`,render:a,className:i(`text-muted-foreground text-sm`,e),...r})}export{x as a,b as i,y as n,g as o,S as r,h as t};
1
+ import"./chunk-QTnfLwEv.js";import{n as e}from"./react-dom-Bz4cALsF.js";import{er as t,l as n}from"./example-Cz_880po.js";import{t as r}from"./x-D8UN9pOu.js";import{n as i,s as a}from"./index-BQIv1ffM.js";import{a as o,c as s,l as c,n as l,o as u,r as d,s as f,t as p}from"./DialogTrigger-BxVhSw4D.js";e();var m=a();function h({...e}){return(0,m.jsx)(d,{"data-slot":`sheet`,modal:`trap-focus`,...e})}function g({asChild:e=!1,...t}){let r=e?(0,m.jsx)(n,{}):void 0;return(0,m.jsx)(p,{"data-slot":`sheet-trigger`,render:r,...t})}function _({...e}){return(0,m.jsx)(o,{"data-slot":`sheet-portal`,...e})}function v({className:e,...t}){return(0,m.jsx)(c,{"data-slot":`sheet-overlay`,className:i(`data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50`,e),...t})}function y({className:e,children:n,side:a=`right`,showCloseButton:o=!0,...c}){return(0,m.jsxs)(_,{children:[(0,m.jsx)(v,{}),(0,m.jsxs)(u,{"data-slot":`sheet-content`,"data-side":a,className:i(`bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,e),...c,children:[n,!!o&&(0,m.jsxs)(s,{"data-slot":`sheet-close`,render:(0,m.jsx)(t,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`}),children:[(0,m.jsx)(r,{}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function b({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`sheet-header`,className:i(`gap-1.5 p-4 flex flex-col`,e),...t})}function x({className:e,asChild:t=!1,...r}){let a=t?(0,m.jsx)(n,{}):void 0;return(0,m.jsx)(l,{"data-slot":`sheet-title`,render:a,className:i(`text-foreground font-medium`,e),...r})}function S({className:e,asChild:t=!1,...r}){let a=t?(0,m.jsx)(n,{}):void 0;return(0,m.jsx)(f,{"data-slot":`sheet-description`,render:a,className:i(`text-muted-foreground text-sm`,e),...r})}export{x as a,b as i,y as n,g as o,S as r,h as t};
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]);export{t};
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]);export{t};
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`shopping-bag`,[[`path`,{d:`M16 10a4 4 0 0 1-8 0`,key:`1ltviw`}],[`path`,{d:`M3.103 6.034h17.794`,key:`awc11p`}],[`path`,{d:`M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`shopping-bag`,[[`path`,{d:`M16 10a4 4 0 0 1-8 0`,key:`1ltviw`}],[`path`,{d:`M3.103 6.034h17.794`,key:`awc11p`}],[`path`,{d:`M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]);export{t};
@@ -0,0 +1 @@
1
+ import"./chunk-QTnfLwEv.js";import{n as e}from"./react-dom-Bz4cALsF.js";import{g as t,p as n}from"./sidebar.context-CRjgeYJL.js";import{n as r,s as i}from"./index-BQIv1ffM.js";e();var a=i(),o=`text-sidebar-foreground/85 transition-[background-color,color] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-active:bg-sidebar-accent data-active:font-semibold data-active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground`,s=`text-sidebar-foreground/75 transition-[background-color,color] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-active:bg-sidebar-accent data-active:font-semibold data-active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground`;function c({className:e,render:t,tooltip:i,...s}){let c=i&&!t?(0,a.jsx)(`button`,{type:`button`}):t;return(0,a.jsx)(n,{className:r(`sidebar-menu-button--component`,o,e),render:c,tooltip:i,...s})}function l({className:e,...n}){return(0,a.jsx)(t,{className:r(`sidebar-menu-sub-button--component`,s,e),...n})}export{l as n,c as t};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Er as n,Un as r,a as i,c as a,nr as o,o as s,r as c,s as l,xr as u}from"./example-BIrQab7K.js";import{t as d}from"./chevrons-up-down-Ck3rUZtc.js";import{t as f}from"./settings-BSRT_96A.js";import{t as p}from"./user-Bqmz8M16.js";import{a as m,k as h,n as g,s as _}from"./index-Cz4UGUT2.js";import{a as v,c as y,l as b,r as ee,t as x}from"./dropdown-menu-bPWrLPgm.js";import{o as S,r as C,t as w}from"./avatar-5EFTnHEG.js";import{t as T}from"./separator-BjGdXNcn.js";import{t as E}from"./useRender-BAZlIYnj.js";var D=m(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),O=m(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),k=e(t(),1),A=768;function j(){let[e,t]=(0,k.useState)();return(0,k.useEffect)(()=>{let e=window.matchMedia(`(max-width: ${A-1}px)`),n=()=>{t(window.innerWidth<A)};return e.addEventListener(`change`,n),t(window.innerWidth<A),()=>e.removeEventListener(`change`,n)},[]),!!e}var M=_(),N=`sidebar_state`,P=3600*24*7,F=`16rem`,I=`3rem`,L=`b`,R=k.createContext(null);function z(){let e=k.useContext(R);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function B({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=j(),[c,l]=k.useState(!1),[u,d]=k.useState(e),f=t??u,p=k.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${N}=${t}; path=/; max-age=${P}`},[n,f]),m=k.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);k.useEffect(()=>{let e=e=>{e.key===L&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,_=k.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,M.jsx)(R.Provider,{value:_,children:(0,M.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":F,"--sidebar-width-icon":I,...i},className:g(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),...o,children:a})})}function V({className:e,onClick:t,...n}){let{toggleSidebar:i}=z();return(0,M.jsxs)(r,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:g(e),onClick:e=>{t?.(e),i()},...n,children:[(0,M.jsx)(O,{}),(0,M.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function H({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:g(`gap-2 px-2 flex flex-col`,e),...t})}function U({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:g(`gap-2 p-2 flex flex-col`,e),...t})}function te({className:e,...t}){return(0,M.jsx)(T,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:g(`bg-sidebar-border mx-2 w-auto`,e),...t})}function W({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:g(`no-scrollbar gap-2 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function G({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:g(`p-2 relative flex w-full min-w-0 flex-col`,e),...t})}function K({className:e,render:t,...n}){return E({defaultTagName:`div`,props:o({className:g(`text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0`,e)},n),render:t,state:{slot:`sidebar-group-label`,sidebar:`group-label`}})}function q({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:g(`text-sm w-full`,e),...t})}function J({className:e,...t}){return(0,M.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:g(`gap-1 flex w-full min-w-0 flex-col`,e),...t})}function Y({className:e,...t}){return(0,M.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:g(`group/menu-item relative`,e),...t})}var X=u(`ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Z({render:e,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:c,className:l,...u}){let{isMobile:d,state:f}=z(),p=c?e?(0,M.jsx)(a,{render:e}):a:void 0,m=E({defaultTagName:`button`,props:o({className:g(X({variant:n,size:r}),l)},u),render:c?p:e,state:{slot:`sidebar-menu-button`,sidebar:`menu-button`,size:r,active:t}});return c?(typeof c==`string`&&(c={children:c}),(0,M.jsxs)(i,{children:[m,(0,M.jsx)(s,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...c})]})):m}function Q({className:e,...t}){return(0,M.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:g(`border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col`,e),...t})}function ne({className:e,...t}){return(0,M.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:g(`group/menu-sub-item relative`,e),...t})}function re({render:e,size:t=`md`,isActive:n=!1,className:r,...i}){return E({defaultTagName:`a`,props:o({className:g(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0`,r)},i),render:e,state:{slot:`sidebar-menu-sub-button`,sidebar:`menu-sub-button`,size:t,active:n}})}var ie={triggerLabel:`Notifications`,heading:`Notifications`,markAllRead:`Mark all as read`,empty:`No new notifications`,viewAll:`View all notifications`},ae={placeholder:`Search...`,shortcutMac:`⌘K`,shortcutPc:`Ctrl+K`},oe={profile:`Profile`,settings:`Settings`,logout:`Log out`};function $(e){return e.split(` `).map(e=>e[0]).filter(Boolean).slice(0,2).join(``).toUpperCase()}function se({user:e,showEmail:t=!0,customContent:r,onProfile:i,onSettings:a,onLogout:o,align:s=`end`,side:l=`bottom`,strings:u,triggerClassName:m,contentClassName:_,renderTrigger:T}){let E=h(oe,u),O=$(e.name),k=(0,M.jsxs)(M.Fragment,{children:[!!i&&(0,M.jsxs)(v,{onClick:i,children:[(0,M.jsx)(p,{className:`mr-2 size-4`,"aria-hidden":`true`}),(0,M.jsx)(n,{tag:`span`,size:`xs`,className:`text-inherit`,children:E.profile})]}),!!a&&(0,M.jsxs)(v,{onClick:a,children:[(0,M.jsx)(f,{className:`mr-2 size-4`,"aria-hidden":`true`}),(0,M.jsx)(n,{tag:`span`,size:`xs`,className:`text-inherit`,children:E.settings})]}),!!(i||a)&&!!o&&(0,M.jsx)(y,{}),!!o&&(0,M.jsxs)(v,{onClick:o,children:[(0,M.jsx)(D,{className:`mr-2 size-4`,"aria-hidden":`true`}),(0,M.jsx)(n,{tag:`span`,size:`xs`,className:`text-inherit`,children:E.logout})]})]});return(0,M.jsxs)(x,{children:[(0,M.jsx)(b,{render:T?.(e)??(0,M.jsxs)(c,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,className:g(`header-user-menu--component header-user-menu--trigger group h-10 max-w-56 justify-start gap-2 rounded-lg px-1.5 pr-2 text-foreground shadow-none hover:bg-foreground/5 data-[state=open]:bg-foreground/5`,t?`py-1.5`:`py-1`,`dark:text-background dark:hover:bg-topbar-accent/50`,m),children:[(0,M.jsxs)(w,{className:`header-user-menu--avatar size-6 overflow-hidden rounded-full ring-1 ring-border/60`,children:[!!e.avatar&&(0,M.jsx)(S,{src:e.avatar,alt:e.name}),(0,M.jsx)(C,{className:`rounded-md bg-success text-[length:var(--text-xxs)] font-semibold text-background`,children:O})]}),(0,M.jsxs)(`div`,{className:`header-user-menu--identity grid min-w-0 flex-1 text-left leading-none`,children:[(0,M.jsx)(n,{size:`xs`,weight:`medium`,className:`truncate`,children:e.name}),!!t&&!!e.email&&(0,M.jsx)(n,{size:`xxs`,type:`secondary`,className:`truncate`,children:e.email})]}),(0,M.jsx)(d,{className:`header-user-menu--chevron size-3 shrink-0 text-muted-foreground`,"aria-hidden":`true`})]})}),(0,M.jsx)(ee,{className:g(`header-user-menu--content w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg p-3`,_),align:s,side:l,children:r??k})]})}var ce=z;function le({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){return(0,M.jsx)(l,{delayDuration:0,children:(0,M.jsx)(B,{defaultOpen:e,open:t,onOpenChange:n,style:i,className:g(`min-h-svh`,r),...o,children:a})})}export{ne as _,ae as a,D as b,G as c,H as d,J as f,re as g,Q as h,ie as i,q as l,Y as m,ce as n,W as o,Z as p,se as r,U as s,le as t,K as u,te as v,V as y};
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Nr as n,Rr as r,a as i,c as a,er as o,o as s,pr as c,r as l,s as u}from"./example-Cz_880po.js";import{t as d}from"./chevrons-up-down-eAgHau5X.js";import{t as f}from"./settings-DRmWJILI.js";import{t as p}from"./user-BZog6aIh.js";import{a as m,k as h,n as g,s as _}from"./index-BQIv1ffM.js";import{a as v,c as y,l as b,r as ee,t as x}from"./dropdown-menu-Cto8-yDW.js";import{o as S,r as C,t as w}from"./avatar-LGWm52rv.js";import{t as T}from"./separator-BsYPzBlF.js";import{t as E}from"./useRender-B9zzqKA1.js";var D=m(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),O=m(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),k=e(t(),1),A=768;function j(){let[e,t]=(0,k.useState)();return(0,k.useEffect)(()=>{let e=window.matchMedia(`(max-width: ${A-1}px)`),n=()=>{t(window.innerWidth<A)};return e.addEventListener(`change`,n),t(window.innerWidth<A),()=>e.removeEventListener(`change`,n)},[]),!!e}var M=_(),N=`sidebar_state`,P=3600*24*7,F=`16rem`,I=`3rem`,L=`b`,R=k.createContext(null);function z(){let e=k.useContext(R);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function B({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=j(),[c,l]=k.useState(!1),[u,d]=k.useState(e),f=t??u,p=k.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${N}=${t}; path=/; max-age=${P}`},[n,f]),m=k.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);k.useEffect(()=>{let e=e=>{e.key===L&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,_=k.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,M.jsx)(R.Provider,{value:_,children:(0,M.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":F,"--sidebar-width-icon":I,...i},className:g(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),...o,children:a})})}function V({className:e,onClick:t,...n}){let{toggleSidebar:r}=z();return(0,M.jsxs)(o,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:g(e),onClick:e=>{t?.(e),r()},...n,children:[(0,M.jsx)(O,{}),(0,M.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function H({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:g(`gap-2 px-2 flex flex-col`,e),...t})}function U({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:g(`gap-2 p-2 flex flex-col`,e),...t})}function te({className:e,...t}){return(0,M.jsx)(T,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:g(`bg-sidebar-border mx-2 w-auto`,e),...t})}function W({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:g(`no-scrollbar gap-2 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function G({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:g(`p-2 relative flex w-full min-w-0 flex-col`,e),...t})}function K({className:e,render:t,...n}){return E({defaultTagName:`div`,props:c({className:g(`text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0`,e)},n),render:t,state:{slot:`sidebar-group-label`,sidebar:`group-label`}})}function q({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:g(`text-sm w-full`,e),...t})}function J({className:e,...t}){return(0,M.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:g(`gap-1 flex w-full min-w-0 flex-col`,e),...t})}function Y({className:e,...t}){return(0,M.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:g(`group/menu-item relative`,e),...t})}var X=n(`ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Z({render:e,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:o,className:l,...u}){let{isMobile:d,state:f}=z(),p=o?e?(0,M.jsx)(a,{render:e}):a:void 0,m=E({defaultTagName:`button`,props:c({className:g(X({variant:n,size:r}),l)},u),render:o?p:e,state:{slot:`sidebar-menu-button`,sidebar:`menu-button`,size:r,active:t}});return o?(typeof o==`string`&&(o={children:o}),(0,M.jsxs)(i,{children:[m,(0,M.jsx)(s,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...o})]})):m}function Q({className:e,...t}){return(0,M.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:g(`border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col`,e),...t})}function ne({className:e,...t}){return(0,M.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:g(`group/menu-sub-item relative`,e),...t})}function re({render:e,size:t=`md`,isActive:n=!1,className:r,...i}){return E({defaultTagName:`a`,props:c({className:g(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0`,r)},i),render:e,state:{slot:`sidebar-menu-sub-button`,sidebar:`menu-sub-button`,size:t,active:n}})}var ie={triggerLabel:`Notifications`,heading:`Notifications`,markAllRead:`Mark all as read`,empty:`No new notifications`,viewAll:`View all notifications`},ae={placeholder:`Search...`,shortcutMac:`⌘K`,shortcutPc:`Ctrl+K`},oe={profile:`Profile`,settings:`Settings`,logout:`Log out`};function $(e){return e.split(` `).map(e=>e[0]).filter(Boolean).slice(0,2).join(``).toUpperCase()}function se({user:e,showEmail:t=!0,customContent:n,onProfile:i,onSettings:a,onLogout:o,align:s=`end`,side:c=`bottom`,strings:u,triggerClassName:m,contentClassName:_,renderTrigger:T}){let E=h(oe,u),O=$(e.name),k=(0,M.jsxs)(M.Fragment,{children:[!!i&&(0,M.jsxs)(v,{onClick:i,children:[(0,M.jsx)(p,{className:`mr-2 size-4`,"aria-hidden":`true`}),(0,M.jsx)(r,{tag:`span`,size:`xs`,className:`text-inherit`,children:E.profile})]}),!!a&&(0,M.jsxs)(v,{onClick:a,children:[(0,M.jsx)(f,{className:`mr-2 size-4`,"aria-hidden":`true`}),(0,M.jsx)(r,{tag:`span`,size:`xs`,className:`text-inherit`,children:E.settings})]}),!!(i||a)&&!!o&&(0,M.jsx)(y,{}),!!o&&(0,M.jsxs)(v,{onClick:o,children:[(0,M.jsx)(D,{className:`mr-2 size-4`,"aria-hidden":`true`}),(0,M.jsx)(r,{tag:`span`,size:`xs`,className:`text-inherit`,children:E.logout})]})]});return(0,M.jsxs)(x,{children:[(0,M.jsx)(b,{render:T?.(e)??(0,M.jsxs)(l,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,className:g(`header-user-menu--component header-user-menu--trigger group h-10 max-w-56 justify-start gap-2 rounded-lg px-1.5 pr-2 text-foreground shadow-none hover:bg-foreground/5 data-[state=open]:bg-foreground/5`,t?`py-1.5`:`py-1`,`dark:text-background dark:hover:bg-topbar-accent/50`,m),children:[(0,M.jsxs)(w,{className:`header-user-menu--avatar size-6 overflow-hidden rounded-full ring-1 ring-border/60`,children:[!!e.avatar&&(0,M.jsx)(S,{src:e.avatar,alt:e.name}),(0,M.jsx)(C,{className:`rounded-md bg-success text-[length:var(--text-xxs)] font-semibold text-background`,children:O})]}),(0,M.jsxs)(`div`,{className:`header-user-menu--identity grid min-w-0 flex-1 text-left leading-none`,children:[(0,M.jsx)(r,{size:`xs`,weight:`medium`,className:`truncate`,children:e.name}),!!t&&!!e.email&&(0,M.jsx)(r,{size:`xxs`,type:`secondary`,className:`truncate`,children:e.email})]}),(0,M.jsx)(d,{className:`header-user-menu--chevron size-3 shrink-0 text-muted-foreground`,"aria-hidden":`true`})]})}),(0,M.jsx)(ee,{className:g(`header-user-menu--content w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg p-3`,_),align:s,side:c,children:n??k})]})}var ce=z;function le({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){return(0,M.jsx)(u,{delayDuration:0,children:(0,M.jsx)(B,{defaultOpen:e,open:t,onOpenChange:n,style:i,className:g(`min-h-svh`,r),...o,children:a})})}export{ne as _,ae as a,D as b,G as c,H as d,J as f,re as g,Q as h,ie as i,q as l,Y as m,ce as n,W as o,Z as p,se as r,U as s,le as t,K as u,te as v,V as y};
@@ -1 +1 @@
1
- import{n as e,s as t}from"./index-Cz4UGUT2.js";var n=t();function r({className:t,...r}){return(0,n.jsx)(`div`,{"data-slot":`skeleton`,className:e(`bg-muted rounded-md animate-pulse`,t),...r})}export{r as t};
1
+ import{n as e,s as t}from"./index-BQIv1ffM.js";var n=t();function r({className:t,...r}){return(0,n.jsx)(`div`,{"data-slot":`skeleton`,className:e(`bg-muted rounded-md animate-pulse`,t),...r})}export{r as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-QTnfLwEv.js";import{hr as t,mr as n,t as r}from"./example-BIrQab7K.js";import{s as i}from"./index-Cz4UGUT2.js";import{t as a}from"./skeleton-BeVdks4r.js";import{t as o}from"./PreviewLayout-BG1B5TzA.js";var s=e({CardPlaceholder:()=>u,Lines:()=>l}),c=i();function l(){return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(o,{children:[(0,c.jsx)(a,{className:`h-4 w-[80%]`}),(0,c.jsx)(a,{className:`h-4 w-[60%]`}),(0,c.jsx)(a,{className:`h-4 w-[40%]`})]})})}function u(){return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,c.jsx)(a,{className:`size-10 rounded-full`}),(0,c.jsxs)(`div`,{className:`flex-1 space-y-2`,children:[(0,c.jsx)(a,{className:`h-4 w-32`}),(0,c.jsx)(a,{className:`h-3 w-48`})]})]})})}var d=`import { Skeleton } from '@/components/ui/skeleton';
1
+ import{n as e}from"./chunk-QTnfLwEv.js";import{Dr as t,Er as n,t as r}from"./example-Cz_880po.js";import{s as i}from"./index-BQIv1ffM.js";import{t as a}from"./skeleton-BtiPkfxB.js";import{t as o}from"./PreviewLayout-CGEkbS-i.js";var s=e({CardPlaceholder:()=>u,Lines:()=>l}),c=i();function l(){return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(o,{children:[(0,c.jsx)(a,{className:`h-4 w-[80%]`}),(0,c.jsx)(a,{className:`h-4 w-[60%]`}),(0,c.jsx)(a,{className:`h-4 w-[40%]`})]})})}function u(){return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,c.jsx)(a,{className:`size-10 rounded-full`}),(0,c.jsxs)(`div`,{className:`flex-1 space-y-2`,children:[(0,c.jsx)(a,{className:`h-4 w-32`}),(0,c.jsx)(a,{className:`h-3 w-48`})]})]})})}var d=`import { Skeleton } from '@/components/ui/skeleton';
2
2
  import { Col } from '../../PreviewLayout';
3
3
 
4
4
  export function Lines() {
@@ -0,0 +1 @@
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{$t as n,An as r,Jt as i,Kt as a,Mn as o,Nn as s,Qt as c,Wt as l,Yt as u,Zt as d,br as f,cr as p,fr as m,g as h,hr as g,jn as ee,m as te,mn as _,mr as v,nr as ne,nt as y,or as b,pr as x,un as re,xr as S}from"./example-Cz_880po.js";import{n as ie,s as ae}from"./index-BQIv1ffM.js";import{t as oe}from"./useControlled-BF8maje6.js";import{n as C,r as w}from"./useCompositeListItem-BWfShNPP.js";import{a as se,d as ce,f as le,i as ue,o as de,r as fe,s as pe,t as me}from"./composite-BQFpnmS9.js";import{t as he}from"./useValueChanged-DSoTBFAJ.js";import{c as T,n as E,o as ge,r as _e,t as D}from"./LabelableContext-DapqaNeY.js";import{t as O}from"./useLabelableId-DxorZ3YW.js";import{n as ve,r as ye,t as k}from"./resolveAriaLabelledBy-iFo8AzEr.js";import{n as A,t as j}from"./CSPContext-B11tftuK.js";import{n as be,t as M}from"./valueToPercent-gleKSaFe.js";var N=e(t(),1);function P(e,t){return e-t}function xe(e,t,n){let r=e.slice();return r[t]=n,r.sort(P)}function Se(e,t,n,r,i,a){let o=e;return o=A(o,n,r),i&&(o=xe(a,t,A(o,a[t-1]??-1/0,a[t+1]??1/0))),o}function F(e,t,n){if(!Array.isArray(e))return!0;let r=e.reduce((e,t,n,r)=>(n===r.length-1||e.push(Math.abs(t-r[n+1])),e),[]);return Math.min(...r)>=t*n}var Ce={activeThumbIndex:()=>null,max:()=>null,min:()=>null,minStepsBetweenValues:()=>null,step:()=>null,values:()=>null,...T},we=N.createContext(void 0);function Te(){let e=N.useContext(we);if(e===void 0)throw Error(m(62));return e}var I=ae();function L(e){return`key`in e?_:re}function R(e,t){return typeof e==`number`&&typeof t==`number`?e===t:Array.isArray(e)&&Array.isArray(t)?ye(e,t):!1}var Ee=N.forwardRef(function(e,t){let{"aria-labelledby":r,className:i,defaultValue:s,disabled:l=!1,id:d,format:f,largeStep:p=10,locale:m,render:te,max:_=100,min:y=0,minStepsBetweenValues:b=0,form:x,name:re,onValueChange:S,onValueCommitted:ie,orientation:ae=`horizontal`,step:C=1,thumbCollisionBehavior:se=`push`,thumbAlignment:ce=`center`,value:le,style:ue,...de}=e,fe=h(d),pe=k(fe),me=g(S),T=g(ie),{clearErrors:O}=E(),{state:j,disabled:be,name:M,setTouched:xe,setDirty:Te,validityData:Ee,validation:De}=ge(),{labelId:z}=D(),[Oe,B]=N.useState(),V=r??ve(z,Oe),H=be||l,ke=M??re,[U,Ae]=oe({controlled:le,default:s??y,name:`Slider`}),W=N.useRef(null),G=N.useRef(null),je=N.useRef([]),K=N.useRef(null),q=N.useRef(null),Me=N.useRef(-1),Ne=N.useRef(null),Pe=N.useRef(`none`),Fe=u(f),[J,Ie]=N.useState(-1),[Le,Y]=N.useState(-1),[X,Z]=N.useState(!1),[Re,ze]=N.useState(()=>new Map),[Be,Q]=N.useState([void 0,void 0]),Ve=g(e=>{Ie(e),e!==-1&&Y(e)});_e(De.inputRef,fe,U,void 0,!H,re),he(U,()=>{O(ke),De.change(U);let e=Ee.initialValue,t;t=Array.isArray(U)&&Array.isArray(e)?!ye(U,e):U!==e,Te(t)});let He=g(e=>{e&&(G.current=e)}),Ue=Array.isArray(U),We=N.useMemo(()=>Ue?U.slice().sort(P):[A(U,y,_)],[_,y,Ue,U]),Ge=g((e,t)=>{if(Number.isNaN(e)||R(e,U))return!1;let n=t??c(`none`,void 0,void 0,{activeThumbIndex:-1}),r=n.event,i=new(r.constructor??Event)(r.type,r);return Object.defineProperty(i,"target",{writable:!0,value:{value:e,name:ke}}),n.event=i,me(e,n),n.isCanceled?!1:(Pe.current=n.reason,Ae(e),!0)}),Ke=g((e,t,r)=>{let i=Se(e,t,y,_,Ue,We);if(F(i,C,b)){let e=L(r),a=Ge(i,c(e,r.nativeEvent,void 0,{activeThumbIndex:t}));xe(!0),a&&T(i,n(e,r.nativeEvent))}});v(()=>{let e=ee(a(W.current));H&&o(W.current,e)&&e.blur()},[H]),H&&J!==-1&&Ve(-1);let qe=N.useMemo(()=>({...j,activeThumbIndex:J,disabled:H,dragging:X,orientation:ae,max:_,min:y,minStepsBetweenValues:b,step:C,values:We}),[j,J,H,X,_,y,b,ae,C,We]),$=N.useMemo(()=>({active:J,controlRef:G,disabled:H,dragging:X,validation:De,formatOptionsRef:Fe,handleInputChange:Ke,indicatorPosition:Be,inset:ce!==`center`,labelId:V,rootLabelId:pe,largeStep:p,lastUsedThumbIndex:Le,lastChangeReasonRef:Pe,form:x,locale:m,max:_,min:y,minStepsBetweenValues:b,name:ke,onValueCommitted:T,orientation:ae,pressedInputRef:K,pressedThumbCenterOffsetRef:q,pressedThumbIndexRef:Me,pressedValuesRef:Ne,registerFieldControlRef:He,renderBeforeHydration:ce===`edge`,setActive:Ve,setDragging:Z,setIndicatorPosition:Q,setLabelId:B,setValue:Ge,state:qe,step:C,thumbCollisionBehavior:se,thumbMap:Re,thumbRefs:je,values:We}),[J,G,V,pe,H,X,De,Fe,Ke,Be,p,Le,Pe,x,m,_,y,b,ke,T,ae,K,q,Me,Ne,He,Ve,Z,Q,B,Ge,qe,C,se,ce,Re,je,We]),Je=ne(`div`,e,{state:qe,ref:[t,W],props:[{"aria-labelledby":V,id:fe,role:`group`},de,e=>De.getValidationProps(H,e)],stateAttributesMapping:Ce});return(0,I.jsx)(we.Provider,{value:$,children:(0,I.jsx)(w,{elementsRef:je,onMapChange:ze,children:Je})})});function De(e){let t=e.getBoundingClientRect();return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function z(e){if(e===0)return 0;if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function Oe(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Math.max(z(t),z(n))))}function B({values:e,index:t,nextValue:n,min:r,max:i,step:a,minStepsBetweenValues:o,initialValues:s}){if(e.length===0)return[];let c=e.slice(),l=a*o,u=c.length-1,d=s??e;c[t]=A(n,r+t*l,i-(u-t)*l);for(let e=t+1;e<=u;e+=1){let t=c[e-1]+l,n=i-(u-e)*l,r=d[e]??c[e],a=Math.max(c[e],t);r<a&&(a=Math.max(r,t)),c[e]=A(a,t,n)}for(let e=t-1;e>=0;--e){let t=c[e+1]-l,n=r+e*l,i=d[e]??c[e],a=Math.min(c[e],t);i>a&&(a=Math.min(i,t)),c[e]=A(a,n,t)}for(let e=0;e<=u;e+=1)c[e]=Number(c[e].toFixed(12));return c}function V({behavior:e,values:t,currentValues:n,initialValues:r,pressedIndex:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}){let u=n??t,d=r??t;if(!(u.length>1))return{value:a,thumbIndex:0,didSwap:!1};let f=c*l;switch(e){case`swap`:{let e=u[i],t=1e-7,n=u.slice(),r=n[i-1],p=n[i+1],m=A(a,r==null?o:r+f,p==null?s:p-f),h=Number(m.toFixed(12));n[i]=h;let g=a>e,ee=a<e,te=g&&p!=null&&a>=p-t,_=ee&&r!=null&&a<=r+t;if(!te&&!_)return{value:n,thumbIndex:i,didSwap:!1};let v=te?i+1:i-1,ne=n.map((e,t)=>t===i?h:d[t]??u[t]),y=a;y=te?Math.max(a,n[v]):Math.min(a,n[v]);let b=B({values:n,index:v,nextValue:y,min:o,max:s,step:c,minStepsBetweenValues:l,initialValues:ne}),x=te?v-1:v+1;if(x>=0&&x<b.length){let e=b[x-1],t=b[x+1],n=e==null?o:e+f;n=Math.max(n,o+x*f);let r=t==null?s:t-f;r=Math.min(r,s-(b.length-1-x)*f);let i=A(h,n,r);b[x]=Number(i.toFixed(12))}return{value:b,thumbIndex:v,didSwap:!0}}case`push`:return{value:B({values:u,index:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}),thumbIndex:i,didSwap:!1};default:{let e=u.slice(),t=e[i-1],n=e[i+1],r=A(a,t==null?o:t+f,n==null?s:n-f);return e[i]=Number(r.toFixed(12)),{value:e,thumbIndex:i,didSwap:!1}}}}var H=2;function ke(e,t){if(!e)return{start:0,end:0};function n(e){let t=e==null?0:parseFloat(e);return Number.isNaN(t)?0:t}let r=t?`Top`:`InlineStart`,i=t?`Bottom`:`InlineEnd`;return{start:n(e[`border${r}Width`])+n(e[`padding${r}`]),end:n(e[`border${i}Width`])+n(e[`padding${i}`])}}function U(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return null}return{x:e.clientX,y:e.clientY}}var Ae=N.forwardRef(function(e,t){let{render:r,className:l,style:p,...m}=e,{disabled:h,dragging:_,inset:v,lastChangeReasonRef:y,max:b,min:x,minStepsBetweenValues:re,onValueCommitted:ie,orientation:ae,pressedInputRef:oe,pressedThumbCenterOffsetRef:C,pressedThumbIndexRef:w,pressedValuesRef:se,registerFieldControlRef:ce,renderBeforeHydration:le,setActive:ue,setDragging:de,setValue:fe,state:pe,step:me,thumbCollisionBehavior:he,thumbRefs:T,values:E}=Te(),ge=te(),_e=E.length>1,D=ae===`vertical`,O=N.useRef(null),ve=N.useRef(null),ye=g(e=>{e&&ve.current==null&&(ve.current=f(e).getComputedStyle(e))}),k=N.useRef(null),j=N.useRef(0),be=N.useRef(0),M=N.useRef(null),P=u(E);function xe(e){w.current!==e&&(w.current=e);let t=T.current[e];if(!t){C.current=null,oe.current=null;return}oe.current=t.querySelector(`input[type="range"]`)}function Se(){w.current=-1,C.current=null,oe.current=null}function we(e){return S(e)?T.current.some(t=>!S(t)||!o(t,e)?!1:t.querySelector(`input[type="range"]`)?.disabled===!0):!1}function I(e){let t=O.current,n=w.current;if(!t||!_e&&(n<0||n>=E.length))return null;let{width:r,height:i,bottom:a,left:o,right:s}=t.getBoundingClientRect(),c=ke(ve.current,D),l=be.current,u=(D?i:r)-c.start-c.end-l*2,d=C.current??0,f=e.x-d,p=e.y-d,m=A(((D?a-p-c.end:(ge===`rtl`?s-f:f-o)-c.start)-l)/u,0,1),h=(b-x)*m+x;return h=Oe(h,me,x),h=A(h,x,b),_e?n<0?null:V({behavior:he,values:E,currentValues:P.current??E,initialValues:se.current,pressedIndex:n,nextValue:h,min:x,max:b,step:me,minStepsBetweenValues:re}):{value:h,thumbIndex:n,didSwap:!1}}function L(e){se.current=_e?E.slice():null,M.current=null,P.current=E;let t=w.current,n=t;if(t>-1&&t<E.length){if(E[t]===b){let e=t;for(;e>0&&E[e-1]===b;)--e;n=e}}else{let t=D?`y`:`x`,r;n=-1;for(let i=0;i<T.current.length;i+=1){let a=T.current[i];if(S(a)&&!a.querySelector(`input[type="range"]`)?.disabled){let o=De(a),s=Math.abs(e[t]-o[t]);(r===void 0||s<=r)&&(n=i,r=s)}}}if(n>-1&&n!==t&&xe(n),v){let e=T.current[n];S(e)&&(be.current=e.getBoundingClientRect()[D?`height`:`width`]/2)}}function R(e){let t=T.current?.[e]?.querySelector(`input[type="range"]`);t&&t.focus({preventScroll:!0,focusVisible:!1})}function Ee(e,t,n){let r=fe(e.value,c(t,n,void 0,{activeThumbIndex:e.thumbIndex}));return r&&(M.current=e.value,P.current=Array.isArray(e.value)?e.value:[e.value],e.didSwap&&xe(e.thumbIndex)),r}let z=g(e=>{let t=U(e,k);if(t==null)return;if(j.current+=1,e.type===`pointermove`&&e.buttons===0){B(e);return}let n=I(t);n!=null&&F(n.value,me,re)&&(!_&&j.current>H&&de(!0),Ee(n,`drag`,e)&&n.didSwap&&R(n.thumbIndex))}),B=g(e=>{if(ue(-1),de(!1),oe.current=null,C.current=null,M.current!=null){let t=y.current;ie(M.current,n(t,e))}`pointerType`in e&&O.current?.hasPointerCapture(e.pointerId)&&O.current?.releasePointerCapture(e.pointerId),w.current=-1,k.current=null,se.current=null,M.current=null,W()}),Ae=g(e=>{if(h)return;if(we(s(e))){Se();return}let t=e.changedTouches[0];t!=null&&(k.current=t.identifier);let n=U(e,k);if(n!=null){L(n);let t=I(n);if(t==null)return;R(t.thumbIndex),Ee(t,`track-press`,e)&&t.didSwap&&R(t.thumbIndex)}j.current=0;let r=a(O.current);r.addEventListener(`touchmove`,z,{passive:!0}),r.addEventListener(`touchend`,B,{passive:!0})}),W=g(()=>{let e=a(O.current);e.removeEventListener(`pointermove`,z),e.removeEventListener(`pointerup`,B),e.removeEventListener(`touchmove`,z),e.removeEventListener(`touchend`,B),se.current=null,M.current=null}),G=i();return N.useEffect(()=>{let e=O.current;if(!e)return()=>W();let t=d(e,`touchstart`,Ae,{passive:!0});return()=>{t(),G.cancel(),W()}},[W,Ae,O,G]),N.useEffect(()=>{h&&W()},[h,W]),ne(`div`,e,{state:pe,ref:[t,ce,O,ye],props:[{"data-base-ui-slider-control":le?``:void 0,onPointerDown(e){let t=O.current,n=s(e.nativeEvent);if(!t||h||e.defaultPrevented||!S(n)||e.button!==0)return;if(we(n)){Se();return}let r=U(e,k);if(r!=null){L(r);let n=I(r);if(n==null)return;o(T.current[n.thumbIndex],ee(a(t)))?e.preventDefault():G.request(()=>{R(n.thumbIndex)}),de(!0),C.current==null&&Ee(n,`track-press`,e.nativeEvent)&&n.didSwap&&R(n.thumbIndex)}e.nativeEvent.pointerId&&t.setPointerCapture(e.nativeEvent.pointerId),j.current=0;let i=a(O.current);i.addEventListener(`pointermove`,z,{passive:!0}),i.addEventListener(`pointerup`,B,{once:!0})}},m],stateAttributesMapping:Ce})}),W=N.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=Te();return ne(`div`,e,{state:o,ref:t,props:[{style:{position:`relative`}},a],stateAttributesMapping:Ce})}),G=y();function je(){return b}function K(){return!1}function q(){return!0}function Me(){return(0,G.useSyncExternalStore)(je,K,q)}var Ne=function(e){return e.index=`data-index`,e.dragging=`data-dragging`,e.orientation=`data-orientation`,e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.focused=`data-focused`,e}({}),Pe=new Set([...de,le,ce]);function Fe(e,t,n,r){if(!(t<0))return e.length===2?t===0?`${be(e[t],r,n)} start range`:`${be(e[t],r,n)} end range`:n?be(e[t],r,n):void 0}function J(e,t,n,r,i){let a=n===1?e+t:e-t;return A(Number(a.toFixed(Math.max(z(e),z(t),z(r)))),r,i)}var Ie=N.forwardRef(function(e,t){let{render:n,children:i,className:a,"aria-describedby":o,"aria-label":s,"aria-labelledby":c,"aria-valuetext":u,disabled:d=!1,getAriaLabel:m,getAriaValueText:ee,id:_,index:y,inputRef:b,onBlur:re,onFocus:S,onKeyDown:ie,tabIndex:ae,style:oe,...w}=e,{nonce:he}=j(),T=h(_),{active:E,lastUsedThumbIndex:_e,controlRef:D,disabled:ve,validation:ye,formatOptionsRef:k,handleInputChange:A,inset:P,labelId:xe,largeStep:F,locale:we,max:L,min:R,minStepsBetweenValues:Ee,form:z,name:B,orientation:V,pressedInputRef:H,pressedThumbCenterOffsetRef:ke,pressedThumbIndexRef:U,renderBeforeHydration:Ae,setActive:W,setIndicatorPosition:G,state:je,step:K,values:q}=Te(),Ie=te(),Le=d||ve,Y=q.length>1,X=V===`vertical`,Z=Ie===`rtl`,{setTouched:Re,setFocused:ze,validationMode:Be}=ge(),Q=N.useRef(null),Ve=N.useRef(null),He=N.useRef(!1),Ue=h(),We=O(),Ge=Y?Ue:We,{ref:Ke,index:qe}=C({metadata:N.useMemo(()=>({inputId:Ge}),[Ge])}),$=Y?y??qe:0,Je=$===q.length-1,Ye=q[$],Xe=M(Ye,R,L),[Ze,Qe]=N.useState(),$e=Me(),et=_e>=0&&_e<q.length?_e:-1,tt=g(()=>{let e=D.current,t=Q.current;if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=X?`height`:`width`,a=r[i]-n[i],o=(n[i]/2+a*Xe/100)/r[i]*100,s=Number.isFinite(o)?o:void 0;Qe(s),$===0?G(e=>[s,e[1]]):Je&&G(e=>[e[0],s])});v(()=>{P&&queueMicrotask(tt)},[tt,P]),v(()=>{P&&tt()},[tt,P,Xe]),v(()=>{if(!P)return;let e=D.current,t=Q.current;if(!e||!t)return;let n=f(e).ResizeObserver;if(typeof n!=`function`)return;let r=new n(tt);return r.observe(e),r.observe(t),()=>{r.disconnect()}},[D,tt,P]);let nt=X?`bottom`:`insetInlineStart`,rt=X?`left`:`top`,it;Y?E===$?it=2:et===$&&(it=1):E===$&&(it=1);let at;at=P?{"--position":`${Ze??0}%`,visibility:Ae&&$e||Ze===void 0?`hidden`:void 0,position:`absolute`,[nt]:`var(--position)`,[rt]:`50%`,translate:`${(X||!Z?-1:1)*50}% ${(X?1:-1)*50}%`,zIndex:it}:Number.isFinite(Xe)?{position:`absolute`,[nt]:`${Xe}%`,[rt]:`50%`,translate:`${(X||!Z?-1:1)*50}% ${(X?1:-1)*50}%`,zIndex:it}:l;let ot;V===`vertical`&&(ot=Z?`vertical-rl`:`vertical-lr`);let st=typeof m==`function`?m($):s,ct=x({"aria-label":st,"aria-labelledby":c??(st==null?xe:void 0),"aria-describedby":o,"aria-orientation":V,"aria-valuenow":Ye,"aria-valuetext":typeof ee==`function`?ee(be(Ye,we,k.current??void 0),Ye,$):u??Fe(q,$,k.current??void 0,we),disabled:Le,form:z,id:Ge,max:L,min:R,name:B,onChange(e){A(e.currentTarget.valueAsNumber,$,e)},onFocus(e){let t=He.current;He.current=!1,W($),ze(!0),t&&e.stopPropagation()},onBlur(e){if(He.current){e.stopPropagation();return}Q.current&&(W(-1),Re(!0),ze(!1),Be===`onBlur`&&ye.commit(Se(Ye,$,R,L,Y,q)))},onKeyDown(e){if(e.defaultPrevented||!Pe.has(e.key))return;de.has(e.key)&&e.stopPropagation();let t=null,n=Oe(Ye,K,R);switch(e.key){case se:t=J(n,e.shiftKey?F:K,1,R,L);break;case ue:t=J(n,e.shiftKey?F:K,Z?-1:1,R,L);break;case me:t=J(n,e.shiftKey?F:K,-1,R,L);break;case fe:t=J(n,e.shiftKey?F:K,Z?1:-1,R,L);break;case le:t=J(n,F,1,R,L);break;case ce:t=J(n,F,-1,R,L);break;case`End`:t=L,Y&&(t=Number.isFinite(q[$+1])?q[$+1]-K*Ee:L);break;case pe:t=R,Y&&(t=Number.isFinite(q[$-1])?q[$-1]+K*Ee:R);break;default:break}if(t!==null){let n=e.currentTarget;r(n)||(He.current=!0,n.blur(),n.focus({preventScroll:!0,focusVisible:!0})),A(t,$,e),e.preventDefault()}},step:K,style:{...l,width:`100%`,height:`100%`,writingMode:ot},tabIndex:ae??void 0,type:`range`,value:Ye??``},e=>ye.getValidationProps(Le,e),{onKeyDown:ie}),lt=p(Ve,ye.inputRef,b);return ne(`div`,e,{state:je,ref:[t,Ke,Q],props:[{[Ne.index]:$,children:(0,I.jsxs)(N.Fragment,{children:[i,(0,I.jsx)(`input`,{ref:lt,...ct,suppressHydrationWarning:!0}),P&&$e&&Ae&&Je&&(0,I.jsx)(`script`,{nonce:he,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest("[data-base-ui-slider-control]");if(!e)return;const r=e.querySelector("[data-base-ui-slider-indicator]"),i=e.getBoundingClientRect(),n="vertical"===e.getAttribute("data-orientation")?"height":"width",o=e.querySelectorAll(\'input[type="range"]\'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute("value")??"");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute("max")??"100"),g=parseFloat(e.getAttribute("min")??"0"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty("--position",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty("visibility"),r&&(0===t?(a=v,r.style.setProperty("--start-position",`${v}%`),l||r.style.removeProperty("visibility")):t===s&&(u=v-(a??0),r.style.setProperty("--end-position",`${v}%`),r.style.setProperty("--relative-size",`${u}%`),r.style.removeProperty("visibility"))))}}();'},suppressHydrationWarning:!0})]}),id:T,onBlur:re,onFocus:S,onPointerDown(e){if(!Le){if(U.current=$,Q.current!=null){let t=V===`horizontal`?`x`:`y`,n=De(Q.current);ke.current=(V===`horizontal`?e.clientX:e.clientY)-n[t]}Ve.current!=null&&H.current!==Ve.current&&(H.current=Ve.current)}},style:at,suppressHydrationWarning:Ae||void 0},w],stateAttributesMapping:Ce})});function Le(e,t,n,r,i,a){let o=n===void 0||t&&r===void 0?`hidden`:void 0,s=e?`bottom`:`insetInlineStart`,c=e?`height`:`width`,l={visibility:i&&a?`hidden`:o,position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};return l[`--start-position`]=`${n??0}%`,t?(l[`--relative-size`]=`${(r??0)-(n??0)}%`,l[s]=`var(--start-position)`,l[c]=`var(--relative-size)`,l):(l[s]=0,l[c]=`var(--start-position)`,l)}function Y(e,t,n,r){let i=e?`bottom`:`insetInlineStart`,a=e?`height`:`width`,o={position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};if(!t)return o[i]=0,o[a]=`${n}%`,o;let s=r-n;return o[i]=`${n}%`,o[a]=`${s}%`,o}var X=N.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{indicatorPosition:o,inset:s,max:c,min:l,orientation:u,renderBeforeHydration:d,state:f,values:p}=Te(),m=Me(),h=u===`vertical`,g=p.length>1,ee=s?Le(h,g,o[0],o[1],d,m):Y(h,g,M(p[0],l,c),M(p[p.length-1],l,c));return ne(`div`,e,{state:f,ref:t,props:[{"data-base-ui-slider-indicator":d?``:void 0,style:ee,suppressHydrationWarning:d||void 0},a],stateAttributesMapping:Ce})});function Z({className:e,defaultValue:t,value:n,min:r=0,max:i=100,...a}){let o=N.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,i],[n,t,r,i]);return(0,I.jsx)(Ee,{className:ie(`data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full`,e),"data-slot":`slider`,defaultValue:t,value:n,min:r,max:i,thumbAlignment:`edge`,...a,children:(0,I.jsxs)(Ae,{className:`relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col`,children:[(0,I.jsx)(W,{"data-slot":`slider-track`,className:`relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5`,children:(0,I.jsx)(X,{"data-slot":`slider-range`,className:`absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`})}),Array.from({length:o.length},(e,t)=>(0,I.jsx)(Ie,{"data-slot":`slider-thumb`,className:`block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] select-none hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50`},t))]})})}export{Z as t};
@@ -1 +1 @@
1
- import{a as e}from"./index-Cz4UGUT2.js";var t=e(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]);export{t};
1
+ import{a as e}from"./index-BQIv1ffM.js";var t=e(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]);export{t};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Nr as n,a as r,c as i,o as a,r as o}from"./example-BIrQab7K.js";import{t as s}from"./chevron-down-CSn8HCwf.js";import{t as c}from"./ellipsis-ntuo3ejh.js";import{t as l}from"./info-DFu8OfxV.js";import{k as u,n as d,s as f}from"./index-Cz4UGUT2.js";import{a as p,c as m,i as h,l as g,n as _,o as v,r as y,s as b,t as x,u as S}from"./card-primitives-YgCOqVDI.js";import{r as C,t as w}from"./alert-DIelf1qF.js";import{a as T,l as E,r as D,t as O}from"./dropdown-menu-bPWrLPgm.js";var k=e(t(),1),A=f();function j({alert:e,alertVariant:t,hasHeader:n,padding:r}){let i=g[r];return(0,A.jsx)(`div`,{className:d(m.alert,i.alertX,n?i.alertOffsetWithHeader:i.alertOffsetStandalone),children:(0,A.jsx)(w,{variant:t,children:(0,A.jsx)(C,{children:e})})})}function M({actions:e,actionsLabel:t}){return(0,A.jsxs)(O,{children:[(0,A.jsx)(E,{type:`button`,"aria-label":t,className:d(`inline-flex size-7 shrink-0 items-center justify-center rounded-md p-0`,`text-muted-foreground hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,`transition-colors`),children:(0,A.jsx)(c,{className:`size-4`})}),(0,A.jsx)(D,{align:`end`,className:`min-w-[140px]`,children:e.map((e,t)=>(0,A.jsxs)(T,{onClick:e.onClick,disabled:e.disabled,className:`gap-1.5 px-2 py-1 text-xs`,children:[!!e.icon&&(0,A.jsx)(`span`,{className:`flex shrink-0 items-center`,children:e.icon}),e.label]},e.id??`${e.label}-${t}`))})]})}function N({tooltipLabel:e}){return(0,A.jsx)(i,{render:t=>{let n=t;return(0,A.jsx)(o,{...n,type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`icon-xs`,className:d(`h-5 w-5 text-muted-foreground`,n.className),"aria-label":e,children:(0,A.jsx)(l,{className:`size-3.5`})})}})}function P({icon:e,title:t,titleSuffix:n,description:i,tooltip:o,tooltipLabel:s,headerStart:c,headerEnd:l,headerAction:u,actions:f,actionsLabel:p,padding:m,className:y}){let x=Array.isArray(f)?f:[],S=x.length>0,C=b(e),w=b(t),T=b(n),E=b(i),D=b(o),O=b(c),k=b(l),j=b(u),P=C||w||T||D,F=k||j||S;return(0,A.jsxs)(h,{className:d(`flex-row items-start justify-between gap-3 pb-0`,g[m].headerX,y),children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[!!O&&c,!!P&&(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1`,children:[!!C&&(0,A.jsx)(`span`,{className:`flex shrink-0 items-center text-muted-foreground`,children:e}),(0,A.jsx)(v,{children:t}),!!T&&(0,A.jsx)(`div`,{className:`flex items-center gap-2`,children:n}),!!D&&(0,A.jsxs)(r,{children:[(0,A.jsx)(N,{tooltipLabel:s}),(0,A.jsx)(a,{children:o})]})]}),!!E&&(0,A.jsx)(_,{className:`text-left`,children:i})]}),!!F&&(0,A.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[!!k&&l,!!j&&u,!!S&&(0,A.jsx)(M,{actions:x,actionsLabel:p})]})]})}var F={expandLabel:`Expand card`,collapseLabel:`Collapse card`};function I({title:e,lines:t=2,className:n}){let r=({barClassName:e})=>(0,A.jsx)(`div`,{className:d(`animate-pulse rounded bg-muted`,e)});return(0,A.jsxs)(p,{className:d(S.card,`gap-4 py-6`,n),children:[(0,A.jsx)(h,{className:`flex-col gap-1.5 px-6 pb-0`,children:e?(0,A.jsx)(v,{children:e}):(0,A.jsx)(r,{barClassName:`h-4 w-32`})}),(0,A.jsx)(x,{className:`space-y-3 px-6 py-0`,children:Array.from({length:t},(e,t)=>(0,A.jsx)(r,{barClassName:d(`h-4`,t===0?`w-full`:`w-3/4`)},`skel-${String(t)}`))})]})}I.displayName=`SmartCardSkeleton`;var L=(0,k.forwardRef)(function({icon:e,title:t,titleSuffix:r,description:i,tooltip:a,tooltipAriaLabel:c=`Card info`,footerText:l,alert:f,alertVariant:m=`default`,surface:h,transparent:_=!1,padding:v,actions:C,actionsLabel:w=`Card actions`,headerAction:T,headerStart:E,headerEnd:D,contentTop:O,contentBottom:M,footerSlot:N,headerDivider:I=!1,footerDivider:L=!1,expandable:R=!1,defaultExpanded:ee=!1,expanded:z,onExpandedChange:B,children:te,className:V,headerClassName:H,contentClassName:ne,footerClassName:U,strings:re},ie){let{defaultPadding:ae}=n(),W=v??ae??`sm`,G=g[W],K=Array.isArray(C)?C:[],q=u(F,re),J=R!==!1&&R!==void 0,Y=typeof R==`object`&&R?.collapsedMaxHeight!==void 0?R.collapsedMaxHeight:`12rem`,oe=typeof Y==`number`?`${Y}px`:Y,X=z!==void 0,[se,ce]=(0,k.useState)(ee),Z=X?z:se,le=(0,k.useCallback)(()=>{let e=!Z;X||ce(e),B?.(e)},[Z,X,B]),Q=b(e)||b(t)||b(i)||K.length>0||b(T)||b(E)||b(D),ue=b(f),de=b(l),fe=b(N),pe=b(O),me=b(M),he=c.trim().length>0?c:`Card info`,ge=J?{maxHeight:Z?``:oe}:void 0,$=h??(_?`flat`:`card`);return(0,A.jsxs)(p,{ref:ie,"data-surface":$,className:d(S[$],G.shell,J&&`relative pb-1 !overflow-visible`,V),children:[!!Q&&(0,A.jsx)(P,{icon:e,title:t,titleSuffix:r,description:i,tooltip:a,tooltipLabel:he,headerStart:E,headerEnd:D,headerAction:T,actions:K,actionsLabel:w,padding:W,className:d(I&&`pb-3 border-b border-border/60`,H)}),!!ue&&(0,A.jsx)(j,{alert:f,alertVariant:m,hasHeader:Q,padding:W}),(0,A.jsxs)(x,{className:d(G.contentX,G.contentY,J&&`relative overflow-hidden transition-[max-height] duration-500 ease-in-out`,ne),style:ge,children:[!!pe&&O,te,!!me&&M,!!J&&!Z&&(0,A.jsx)(`div`,{"aria-hidden":`true`,className:`from-background pointer-events-none absolute inset-x-0 bottom-0 h-20 rounded-b-lg bg-linear-to-t to-transparent`})]}),!!de&&(0,A.jsx)(y,{className:d(`justify-end text-xs text-muted-foreground`,G.footerX,L&&`pt-3 border-t border-border/60`,U),children:l}),!!fe&&(0,A.jsx)(y,{className:d(`flex-col items-stretch`,G.footerX,L&&`pt-3 border-t border-border/60`,U),children:N}),!!J&&(0,A.jsx)(`div`,{className:`absolute -bottom-4 left-1/2 -translate-x-1/2 z-10`,children:(0,A.jsxs)(o,{type:`button`,variant:`secondary`,buttonStyle:`outline`,size:`icon-sm`,onClick:le,"aria-expanded":Z,"aria-label":Z?q.collapseLabel:q.expandLabel,className:d(`inline-flex size-8 items-center justify-center rounded-full`,`border border-border bg-background text-foreground shadow-sm`,`hover:bg-muted/40 transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50`),children:[(0,A.jsx)(s,{"aria-hidden":`true`,className:d(`size-4 transition-transform duration-300`,Z&&`rotate-180`)}),(0,A.jsx)(`span`,{className:`sr-only`,children:Z?q.collapseLabel:q.expandLabel})]})})]})});L.displayName=`SmartCard`;export{I as n,L as t};
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Gr as n,a as r,c as i,o as a,r as o}from"./example-Cz_880po.js";import{t as s}from"./chevron-down-ByPPEdNm.js";import{t as c}from"./ellipsis-DsrebD1Y.js";import{t as l}from"./info-BimmreJ-.js";import{k as u,n as d,s as f}from"./index-BQIv1ffM.js";import{a as p,c as m,i as h,l as g,n as _,o as v,r as y,s as b,t as x,u as S}from"./card-primitives-BDj4DtS8.js";import{r as C,t as w}from"./alert-2_0J7Vv6.js";import{a as T,l as E,r as D,t as O}from"./dropdown-menu-Cto8-yDW.js";var k=e(t(),1),A=f();function j({alert:e,alertVariant:t,hasHeader:n,padding:r}){let i=g[r];return(0,A.jsx)(`div`,{className:d(m.alert,i.alertX,n?i.alertOffsetWithHeader:i.alertOffsetStandalone),children:(0,A.jsx)(w,{variant:t,children:(0,A.jsx)(C,{children:e})})})}function M({actions:e,actionsLabel:t}){return(0,A.jsxs)(O,{children:[(0,A.jsx)(E,{type:`button`,"aria-label":t,className:d(`inline-flex size-7 shrink-0 items-center justify-center rounded-md p-0`,`text-muted-foreground hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,`transition-colors`),children:(0,A.jsx)(c,{className:`size-4`})}),(0,A.jsx)(D,{align:`end`,className:`min-w-[140px]`,children:e.map((e,t)=>(0,A.jsxs)(T,{onClick:e.onClick,disabled:e.disabled,className:`gap-1.5 px-2 py-1 text-xs`,children:[!!e.icon&&(0,A.jsx)(`span`,{className:`flex shrink-0 items-center`,children:e.icon}),e.label]},e.id??`${e.label}-${t}`))})]})}function N({tooltipLabel:e}){return(0,A.jsx)(i,{render:t=>{let n=t;return(0,A.jsx)(o,{...n,type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`icon-xs`,className:d(`h-5 w-5 text-muted-foreground`,n.className),"aria-label":e,children:(0,A.jsx)(l,{className:`size-3.5`})})}})}function P({icon:e,title:t,titleSuffix:n,description:i,tooltip:o,tooltipLabel:s,headerStart:c,headerEnd:l,headerAction:u,actions:f,actionsLabel:p,padding:m,className:y}){let x=Array.isArray(f)?f:[],S=x.length>0,C=b(e),w=b(t),T=b(n),E=b(i),D=b(o),O=b(c),k=b(l),j=b(u),P=C||w||T||D,F=k||j||S;return(0,A.jsxs)(h,{className:d(`flex-row items-start justify-between gap-3 pb-0`,g[m].headerX,y),children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[!!O&&c,!!P&&(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1`,children:[!!C&&(0,A.jsx)(`span`,{className:`flex shrink-0 items-center text-muted-foreground`,children:e}),(0,A.jsx)(v,{children:t}),!!T&&(0,A.jsx)(`div`,{className:`flex items-center gap-2`,children:n}),!!D&&(0,A.jsxs)(r,{children:[(0,A.jsx)(N,{tooltipLabel:s}),(0,A.jsx)(a,{children:o})]})]}),!!E&&(0,A.jsx)(_,{className:`text-left`,children:i})]}),!!F&&(0,A.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[!!k&&l,!!j&&u,!!S&&(0,A.jsx)(M,{actions:x,actionsLabel:p})]})]})}var F={expandLabel:`Expand card`,collapseLabel:`Collapse card`};function I({title:e,lines:t=2,className:n}){let r=({barClassName:e})=>(0,A.jsx)(`div`,{className:d(`animate-pulse rounded bg-muted`,e)});return(0,A.jsxs)(p,{className:d(S.card,`gap-4 py-6`,n),children:[(0,A.jsx)(h,{className:`flex-col gap-1.5 px-6 pb-0`,children:e?(0,A.jsx)(v,{children:e}):(0,A.jsx)(r,{barClassName:`h-4 w-32`})}),(0,A.jsx)(x,{className:`space-y-3 px-6 py-0`,children:Array.from({length:t},(e,t)=>(0,A.jsx)(r,{barClassName:d(`h-4`,t===0?`w-full`:`w-3/4`)},`skel-${String(t)}`))})]})}I.displayName=`SmartCardSkeleton`;var L=(0,k.forwardRef)(function({icon:e,title:t,titleSuffix:r,description:i,tooltip:a,tooltipAriaLabel:c=`Card info`,footerText:l,alert:f,alertVariant:m=`default`,surface:h,transparent:_=!1,padding:v,actions:C,actionsLabel:w=`Card actions`,headerAction:T,headerStart:E,headerEnd:D,contentTop:O,contentBottom:M,footerSlot:N,headerDivider:I=!1,footerDivider:L=!1,expandable:R=!1,defaultExpanded:ee=!1,expanded:z,onExpandedChange:B,children:te,className:V,headerClassName:H,contentClassName:ne,footerClassName:U,strings:re},ie){let{defaultPadding:ae}=n(),W=v??ae??`sm`,G=g[W],K=Array.isArray(C)?C:[],q=u(F,re),J=R!==!1&&R!==void 0,Y=typeof R==`object`&&R?.collapsedMaxHeight!==void 0?R.collapsedMaxHeight:`12rem`,oe=typeof Y==`number`?`${Y}px`:Y,X=z!==void 0,[se,ce]=(0,k.useState)(ee),Z=X?z:se,le=(0,k.useCallback)(()=>{let e=!Z;X||ce(e),B?.(e)},[Z,X,B]),Q=b(e)||b(t)||b(i)||K.length>0||b(T)||b(E)||b(D),ue=b(f),de=b(l),fe=b(N),pe=b(O),me=b(M),he=c.trim().length>0?c:`Card info`,ge=J?{maxHeight:Z?``:oe}:void 0,$=h??(_?`flat`:`card`);return(0,A.jsxs)(p,{ref:ie,"data-surface":$,className:d(S[$],G.shell,J&&`relative pb-1 !overflow-visible`,V),children:[!!Q&&(0,A.jsx)(P,{icon:e,title:t,titleSuffix:r,description:i,tooltip:a,tooltipLabel:he,headerStart:E,headerEnd:D,headerAction:T,actions:K,actionsLabel:w,padding:W,className:d(I&&`pb-3 border-b border-border/60`,H)}),!!ue&&(0,A.jsx)(j,{alert:f,alertVariant:m,hasHeader:Q,padding:W}),(0,A.jsxs)(x,{className:d(G.contentX,G.contentY,J&&`relative overflow-hidden transition-[max-height] duration-500 ease-in-out`,ne),style:ge,children:[!!pe&&O,te,!!me&&M,!!J&&!Z&&(0,A.jsx)(`div`,{"aria-hidden":`true`,className:`from-background pointer-events-none absolute inset-x-0 bottom-0 h-20 rounded-b-lg bg-linear-to-t to-transparent`})]}),!!de&&(0,A.jsx)(y,{className:d(`justify-end text-xs text-muted-foreground`,G.footerX,L&&`pt-3 border-t border-border/60`,U),children:l}),!!fe&&(0,A.jsx)(y,{className:d(`flex-col items-stretch`,G.footerX,L&&`pt-3 border-t border-border/60`,U),children:N}),!!J&&(0,A.jsx)(`div`,{className:`absolute -bottom-4 left-1/2 -translate-x-1/2 z-10`,children:(0,A.jsxs)(o,{type:`button`,variant:`secondary`,buttonStyle:`outline`,size:`icon-sm`,onClick:le,"aria-expanded":Z,"aria-label":Z?q.collapseLabel:q.expandLabel,className:d(`inline-flex size-8 items-center justify-center rounded-full`,`border border-border bg-background text-foreground shadow-sm`,`hover:bg-muted/40 transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50`),children:[(0,A.jsx)(s,{"aria-hidden":`true`,className:d(`size-4 transition-transform duration-300`,Z&&`rotate-180`)}),(0,A.jsx)(`span`,{className:`sr-only`,children:Z?q.collapseLabel:q.expandLabel})]})})]})});L.displayName=`SmartCard`;export{I as n,L as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-QTnfLwEv.js";import{Un as t,hr as n,mr as r,t as i}from"./example-BIrQab7K.js";import{s as a}from"./index-Cz4UGUT2.js";import{n as o}from"./dist-CnonIdcR.js";import{n as s}from"./PreviewLayout-BG1B5TzA.js";var c=e({TriggerToasts:()=>u}),l=a();function u(){return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(s,{children:[(0,l.jsx)(t,{onClick:()=>o(`Default toast`),children:`Default`}),(0,l.jsx)(t,{variant:`outline`,onClick:()=>o.success(`Saved successfully`),children:`Success`}),(0,l.jsx)(t,{variant:`outline`,onClick:()=>o.warning(`Heads up`),children:`Warning`}),(0,l.jsx)(t,{variant:`destructive`,onClick:()=>o.error(`Failed to save`),children:`Error`}),(0,l.jsx)(t,{variant:`secondary`,onClick:()=>o.info(`FYI`),children:`Info`}),(0,l.jsx)(t,{variant:`ghost`,onClick:()=>{let e=o.loading(`Working…`);setTimeout(()=>o.success(`Done`,{id:e}),1500)},children:`Loading → success`})]})})}var d=`import { toast } from 'sonner';
1
+ import{n as e}from"./chunk-QTnfLwEv.js";import{Dr as t,Er as n,er as r,t as i}from"./example-Cz_880po.js";import{s as a}from"./index-BQIv1ffM.js";import{n as o}from"./dist-CnonIdcR.js";import{n as s}from"./PreviewLayout-CGEkbS-i.js";var c=e({TriggerToasts:()=>u}),l=a();function u(){return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(s,{children:[(0,l.jsx)(r,{onClick:()=>o(`Default toast`),children:`Default`}),(0,l.jsx)(r,{variant:`outline`,onClick:()=>o.success(`Saved successfully`),children:`Success`}),(0,l.jsx)(r,{variant:`outline`,onClick:()=>o.warning(`Heads up`),children:`Warning`}),(0,l.jsx)(r,{variant:`destructive`,onClick:()=>o.error(`Failed to save`),children:`Error`}),(0,l.jsx)(r,{variant:`secondary`,onClick:()=>o.info(`FYI`),children:`Info`}),(0,l.jsx)(r,{variant:`ghost`,onClick:()=>{let e=o.loading(`Working…`);setTimeout(()=>o.success(`Done`,{id:e}),1500)},children:`Loading → success`})]})})}var d=`import { toast } from 'sonner';
2
2
  import { Button } from '@/components/ui/button';
3
3
  import { Row } from '../../PreviewLayout';
4
4
 
@@ -19,4 +19,4 @@ export function TriggerToasts() {
19
19
  </>
20
20
  );
21
21
  }
22
- `;function f(e){return c||m(`Examples`,!1),u||m(`Examples.TriggerToasts`,!0),(0,l.jsx)(n,{title:`UI · Sonner toaster`,description:`Toast notifications.`,layer:`ui`,status:`ready`,children:(0,l.jsx)(r,{title:`Examples`,id:`examples`,children:(0,l.jsx)(i,{name:`TriggerToasts`,source:d,children:(0,l.jsx)(u,{})})})})}function p(e={}){let{wrapper:t}=e.components||{};return t?(0,l.jsx)(t,{...e,children:(0,l.jsx)(f,{...e})}):f(e)}function m(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{p as default};
22
+ `;function f(e){return c||m(`Examples`,!1),u||m(`Examples.TriggerToasts`,!0),(0,l.jsx)(t,{title:`UI · Sonner toaster`,description:`Toast notifications.`,layer:`ui`,status:`ready`,children:(0,l.jsx)(n,{title:`Examples`,id:`examples`,children:(0,l.jsx)(i,{name:`TriggerToasts`,source:d,children:(0,l.jsx)(u,{})})})})}function p(e={}){let{wrapper:t}=e.components||{};return t?(0,l.jsx)(t,{...e,children:(0,l.jsx)(f,{...e})}):f(e)}function m(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{p as default};
@@ -1,4 +1,4 @@
1
- import{r as e}from"./chunk-QTnfLwEv.js";import{n as t,t as n}from"./react-dom-Bz4cALsF.js";import{a as r}from"./index-Cz4UGUT2.js";var i=r(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),a=e(n()),o=e(t());function s(){var e=[...arguments];return(0,o.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var c=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function l(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function u(e){return`nodeType`in e}function d(e){return e?l(e)?e:u(e)?e.ownerDocument?.defaultView??window:window:window}function f(e){let{Document:t}=d(e);return e instanceof t}function p(e){return l(e)?!1:e instanceof d(e).HTMLElement}function m(e){return e instanceof d(e).SVGElement}function h(e){return e?l(e)?e.document:u(e)?f(e)?e:p(e)||m(e)?e.ownerDocument:document:document:document}var g=c?o.useLayoutEffect:o.useEffect;function _(e){let t=(0,o.useRef)(e);return g(()=>{t.current=e}),(0,o.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function v(){let e=(0,o.useRef)(null);return[(0,o.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,o.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function y(e,t){t===void 0&&(t=[e]);let n=(0,o.useRef)(e);return g(()=>{n.current!==e&&(n.current=e)},t),n}function b(e,t){let n=(0,o.useRef)();return(0,o.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function x(e){let t=_(e),n=(0,o.useRef)(null);return[n,(0,o.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function S(e){let t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}var C={};function w(e,t){return(0,o.useMemo)(()=>{if(t)return t;let n=C[e]==null?0:C[e]+1;return C[e]=n,e+`-`+n},[e,t])}function T(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var E=T(1),D=T(-1);function O(e){return`clientX`in e&&`clientY`in e}function k(e){if(!e)return!1;let{KeyboardEvent:t}=d(e.target);return t&&e instanceof t}function A(e){if(!e)return!1;let{TouchEvent:t}=d(e.target);return t&&e instanceof t}function ee(e){if(A(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return O(e)?{x:e.clientX,y:e.clientY}:null}var j=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[j.Translate.toString(e),j.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),te=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function ne(e){return e.matches(te)?e:e.querySelector(te)}var M={display:`none`};function re(e){let{id:t,value:n}=e;return o.createElement(`div`,{id:t,style:M},n)}function N(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return o.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function ie(){let[e,t]=(0,o.useState)(``);return{announce:(0,o.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var ae=(0,o.createContext)(null);function oe(e){let t=(0,o.useContext)(ae);(0,o.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function se(){let[e]=(0,o.useState)(()=>new Set),t=(0,o.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,o.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var P={draggable:`
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t,t as n}from"./react-dom-Bz4cALsF.js";import{a as r}from"./index-BQIv1ffM.js";var i=r(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),a=e(n()),o=e(t());function s(){var e=[...arguments];return(0,o.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var c=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function l(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function u(e){return`nodeType`in e}function d(e){return e?l(e)?e:u(e)?e.ownerDocument?.defaultView??window:window:window}function f(e){let{Document:t}=d(e);return e instanceof t}function p(e){return l(e)?!1:e instanceof d(e).HTMLElement}function m(e){return e instanceof d(e).SVGElement}function h(e){return e?l(e)?e.document:u(e)?f(e)?e:p(e)||m(e)?e.ownerDocument:document:document:document}var g=c?o.useLayoutEffect:o.useEffect;function _(e){let t=(0,o.useRef)(e);return g(()=>{t.current=e}),(0,o.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function v(){let e=(0,o.useRef)(null);return[(0,o.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,o.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function y(e,t){t===void 0&&(t=[e]);let n=(0,o.useRef)(e);return g(()=>{n.current!==e&&(n.current=e)},t),n}function b(e,t){let n=(0,o.useRef)();return(0,o.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function x(e){let t=_(e),n=(0,o.useRef)(null);return[n,(0,o.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function S(e){let t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}var C={};function w(e,t){return(0,o.useMemo)(()=>{if(t)return t;let n=C[e]==null?0:C[e]+1;return C[e]=n,e+`-`+n},[e,t])}function T(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var E=T(1),D=T(-1);function O(e){return`clientX`in e&&`clientY`in e}function k(e){if(!e)return!1;let{KeyboardEvent:t}=d(e.target);return t&&e instanceof t}function A(e){if(!e)return!1;let{TouchEvent:t}=d(e.target);return t&&e instanceof t}function ee(e){if(A(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return O(e)?{x:e.clientX,y:e.clientY}:null}var j=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[j.Translate.toString(e),j.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),te=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function ne(e){return e.matches(te)?e:e.querySelector(te)}var M={display:`none`};function re(e){let{id:t,value:n}=e;return o.createElement(`div`,{id:t,style:M},n)}function N(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return o.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function ie(){let[e,t]=(0,o.useState)(``);return{announce:(0,o.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var ae=(0,o.createContext)(null);function oe(e){let t=(0,o.useContext)(ae);(0,o.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function se(){let[e]=(0,o.useState)(()=>new Set),t=(0,o.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,o.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var P={draggable:`
2
2
  To pick up a draggable item, press the space bar.
3
3
  While dragging, use the arrow keys to move the item.
4
4
  Press space again to drop the item in its new position, or press escape to cancel.