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,r as o,t as s,yr as c}from"./example-BIrQab7K.js";import{t as l}from"./calendar-days-pr8kXiTx.js";import{t as u}from"./eye-CnRPL_H8.js";import{t as d}from"./map-pin-DUl-Lt6t.js";import{t as f}from"./package-check-CT0dhSM8.js";import{t as p}from"./users-ERTaffcv.js";import{k as m,n as h,s as g}from"./index-Cz4UGUT2.js";import{t as _}from"./props-table-BR-KjRNe.js";import{t as v}from"./smart-card-B4P_C0nk.js";import{c as y,r as b,t as x,u as S}from"./item-CbiuwbAN.js";import{t as C}from"./dialog-B85US9Ue.js";var w={currentlySelected:`Currently selected:`,noResourceContent:`No resource content configured.`,noResourceSelected:`No resource selected.`,changeAction:`Change`},T=t(n(),1);function E({resource:e,hasResource:t,mapInitialSelected:n,onConfirmSelection:r,isConfirmDisabled:i,onDialogOpen:a,onDialogClose:o,onError:s}){let[c,l]=(0,T.useState)(!1),[u,d]=(0,T.useState)(!1),[f,p]=(0,T.useState)(null),m=(0,T.useCallback)(()=>{let t=n(e);p(t),l(!0),a?.(t)},[n,a,e]),h=(0,T.useCallback)(()=>{u||(l(!1),p(null),o?.())},[u,o]),g=(0,T.useMemo)(()=>f===null?!1:i?!i(f):!0,[i,f]),_=(0,T.useCallback)(async()=>{if(!(u||!g||f===null)){d(!0);try{await r(f),l(!1),p(null),o?.()}catch(e){s?.(e,f)}finally{d(!1)}}},[g,u,r,o,s,f]);return(0,T.useMemo)(()=>({resource:e,hasResource:t,isSelectorOpen:c,isConfirming:u,selectedSuggestion:f,setSelectedSuggestion:p,openSelector:m,closeSelector:h,confirmSelection:_,canConfirmSelection:g}),[g,h,_,t,u,c,m,e,f])}var D=g();function O({context:e,strings:t}){let n=m(w,t),r=e.selectedSuggestion;if(r===null)return null;let i=typeof r==`object`&&r&&`label`in r&&typeof r.label==`string`?r.label:``;return(0,D.jsxs)(`div`,{className:`bg-muted rounded-md p-3 text-sm`,children:[(0,D.jsx)(`div`,{className:`font-medium`,children:n.currentlySelected}),(0,D.jsx)(`div`,{className:`text-muted-foreground mt-1`,children:i})]})}O.displayName=`DefaultDialogSummary`;function k({context:e,strings:t}){return(0,D.jsx)(r,{type:`secondary`,children:m(w,t).noResourceContent})}k.displayName=`DefaultResourceContent`;function A({context:e,strings:t}){let n=m(w,t);return(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-8 text-center`,children:[(0,D.jsx)(r,{type:`secondary`,className:`mb-4`,children:n.noResourceSelected}),(0,D.jsx)(o,{variant:`secondary`,buttonStyle:`outline`,onClick:e.openSelector,type:`button`,children:n.changeAction})]})}A.displayName=`DefaultEmptyContent`;function j({SelectorComponent:e,selectorProps:t,context:n}){return(0,D.jsx)(`div`,{className:`py-2`,children:(0,D.jsx)(e,{onSelect:n.setSelectedSuggestion,selected:n.selectedSuggestion,setSelected:n.setSelectedSuggestion,inModal:!0,lockOnSelect:!1,context:`dialog`,...t})})}j.displayName=`DefaultDialogContent`;function M({icon:e,title:t,description:n,className:i,contentClassName:a=`space-y-3`,alert:s,alertVariant:c,actions:l,headerAction:d,footerText:f,resource:p,hasResource:g,selector:_,sections:y,sectionsClassName:b,viewLink:x,ResourceContentComponent:S,EmptyContentComponent:M,renderResourceContent:N,renderEmptyContent:P,strings:F}){let I=m(w,F),L=E({resource:p,hasResource:g,mapInitialSelected:_?.mapInitialSelected??(()=>null),onConfirmSelection:_?.onConfirmSelection??(()=>void 0),isConfirmDisabled:_?.isConfirmDisabled,onDialogOpen:_?.onDialogOpen,onDialogClose:_?.onDialogClose,onError:_?.onError}),R=_!==void 0,z=(0,T.useMemo)(()=>{let e=l??[],t=_?.actionLabel?.trim();return!R||!t?e.length>0?e:void 0:[...e,{id:`shared-resource-selector-change`,label:t,onClick:L.openSelector}]},[l,R,_?.actionLabel,L.openSelector]),B=(0,T.useMemo)(()=>{if(N)return N(L);if(S)return(0,D.jsx)(S,{context:L});if(Array.isArray(y)&&y.length>0){let e=y.filter(e=>e.when?e.when(L):!0);if(e.length>0)return(0,D.jsx)(`div`,{className:b??`space-y-3`,children:e.map(e=>{let t=e.Component;return(0,D.jsx)(`div`,{className:e.className,children:(0,D.jsx)(t,{context:L})},e.id)})})}return(0,D.jsx)(k,{context:L,strings:I})},[S,N,y,b,L,I]),V=(0,T.useMemo)(()=>P?P(L):M?(0,D.jsx)(M,{context:L}):R?(0,D.jsx)(A,{context:L,strings:I}):(0,D.jsx)(r,{type:`secondary`,children:I.noResourceSelected}),[M,R,P,L,I]),H=_?.DialogContentComponent,U=_?.DialogSummaryComponent,W=_?.SelectorComponent,G=_?.selectorProps??{},K=_?.dialogContentProps??{},q=g?B:V,J=!!(g&&x),Y=!!(R&&_&&W),X=J&&x?(0,D.jsx)(`div`,{className:x.className??`border-t pt-3`,children:(0,D.jsxs)(o,{href:x.href,variant:`primary`,fullWidth:!0,children:[(0,D.jsx)(u,{className:`h-4 w-4`}),x.label]})}):null,Z=Y&&_&&W?(0,D.jsxs)(C,{open:L.isSelectorOpen,onOpenChange:e=>{e||L.closeSelector()},title:_.title,description:_.description,size:_.dialogSize??`2xl`,showCancel:!1,showConfirm:!1,children:[H?(0,D.jsx)(H,{SelectorComponent:W,selectorProps:G,context:L,...K}):(0,D.jsx)(j,{SelectorComponent:W,selectorProps:G,context:L}),U?(0,D.jsx)(U,{context:L}):(0,D.jsx)(O,{context:L,strings:I}),(0,D.jsxs)(`div`,{className:`flex justify-end gap-2 border-t pt-4`,children:[(0,D.jsx)(o,{variant:`secondary`,buttonStyle:`outline`,onClick:L.closeSelector,disabled:L.isConfirming,type:`button`,children:_.cancelText}),(0,D.jsx)(o,{onClick:()=>{L.confirmSelection()},disabled:!L.canConfirmSelection||L.isConfirming,loading:L.isConfirming,type:`button`,children:_.confirmText})]})]}):null;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(v,{icon:e,title:t,description:n,className:h(`shared-resource-card--component`,`!gap-3`,i),contentClassName:a,alert:s,alertVariant:c,actions:z,headerAction:d,footerText:f,children:[q,X]}),Z]})}M.displayName=`SharedResourceCard`;function N(e){return typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(0,D.jsx)(r,{children:String(e)}):e}function P({title:e,description:t,status:n,items:i,actionLabel:a,onAction:s,className:c,contentClassName:l}){return(0,D.jsxs)(v,{title:e,description:t,headerEnd:n,padding:`sm`,className:h(`booking-calendar-event-card--component`,`shadow-none`,c),contentClassName:h(`space-y-4`,l),children:[(0,D.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:i.map(e=>(0,D.jsxs)(`div`,{className:h(e.fullWidth===!0&&`sm:col-span-2`),children:[(0,D.jsx)(r,{size:`xs`,type:`secondary`,children:e.label}),N(e.value)]},e.id))}),(0,D.jsx)(`div`,{className:`flex justify-end`,children:(0,D.jsx)(o,{type:`button`,variant:`primary`,size:`xs`,onClick:s,children:a})})]})}var F=e({BookingEventCard:()=>R,EmptySharedResource:()=>B,SharedResourceSelector:()=>z}),I=[{id:`atrium`,name:`Atrium Hall`,city:`Sofia`,capacity:`120 guests`,status:`Available`},{id:`terrace`,name:`Garden Terrace`,city:`Plovdiv`,capacity:`64 guests`,status:`Needs review`}];function L({selected:e,setSelected:t}){return(0,D.jsx)(`div`,{className:`space-y-2`,children:I.map(n=>{let i=e?.id===n.id;return(0,D.jsx)(o,{type:`button`,variant:i?`primary`:`secondary`,buttonStyle:i?`solid`:`outline`,fullWidth:!0,onClick:()=>t(n),className:`h-auto justify-start px-3 py-2`,children:(0,D.jsxs)(x,{className:`border-0 p-0`,children:[(0,D.jsx)(y,{children:(0,D.jsx)(d,{className:`size-4`,"aria-hidden":!0})}),(0,D.jsxs)(b,{children:[(0,D.jsx)(S,{children:n.name}),(0,D.jsxs)(r,{size:`xs`,type:`secondary`,children:[n.city,` - `,n.capacity]})]})]})},n.id)})})}function R(){return(0,D.jsx)(P,{title:`Reservation #BK-1048`,description:`Chef table booking for the evening service.`,status:(0,D.jsx)(c,{variant:`success`,children:`Confirmed`}),items:[{id:`date`,label:`Date`,value:`Jun 24, 2026`},{id:`time`,label:`Time`,value:`19:30`},{id:`guest`,label:`Guest`,value:`Maya Chen`},{id:`party`,label:`Party size`,value:`6 guests`},{id:`notes`,label:`Notes`,value:`Anniversary dinner, vegetarian tasting menu.`,fullWidth:!0}],actionLabel:`Open booking`,onAction:()=>void 0})}function z(){let[e,t]=(0,T.useState)(I[0]);return(0,D.jsx)(M,{icon:(0,D.jsx)(l,{className:`size-4`,"aria-hidden":!0}),title:`Assigned venue`,description:`A controlled resource card with a selector dialog and async-safe confirmation.`,resource:e,hasResource:e!==null,selector:{title:`Change venue`,description:`Pick the venue used for this booking.`,actionLabel:`Change venue`,confirmText:`Use venue`,cancelText:`Cancel`,mapInitialSelected:e=>e,onConfirmSelection:async e=>{t(e)},SelectorComponent:L,dialogSize:`md`},viewLink:{href:`#`,label:`View venue`},renderResourceContent:e=>e.resource?(0,D.jsxs)(`div`,{className:`grid gap-2 text-sm sm:grid-cols-2`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(r,{size:`xs`,type:`secondary`,children:`Venue`}),(0,D.jsx)(r,{weight:`medium`,children:e.resource.name})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(r,{size:`xs`,type:`secondary`,children:`City`}),(0,D.jsx)(r,{weight:`medium`,children:e.resource.city})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(r,{size:`xs`,type:`secondary`,children:`Capacity`}),(0,D.jsx)(r,{weight:`medium`,children:e.resource.capacity})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(r,{size:`xs`,type:`secondary`,children:`Status`}),(0,D.jsx)(c,{variant:`secondary`,children:e.resource.status})]})]}):null})}function B(){return(0,D.jsx)(M,{icon:(0,D.jsx)(f,{className:`size-4`,"aria-hidden":!0}),title:`Fulfillment partner`,description:`Empty state stays owned by the feature and can be replaced with a slot.`,resource:null,hasResource:!1,selector:{title:`Assign partner`,description:`Select a resource from the consumer-owned list.`,actionLabel:`Assign partner`,confirmText:`Assign`,cancelText:`Cancel`,mapInitialSelected:()=>null,onConfirmSelection:async()=>void 0,SelectorComponent:L},strings:{noResourceSelected:`No partner assigned yet.`,changeAction:`Assign`},footerText:(0,D.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,D.jsx)(p,{className:`size-3`,"aria-hidden":!0}),`Consumer controls persistence and routing.`]})})}var V=`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,jr as o,r as s,t as c}from"./example-Cz_880po.js";import{t as l}from"./calendar-days-C4mG2tOe.js";import{t as u}from"./eye-C85PNNdH.js";import{t as d}from"./map-pin-0O7GD5Dz.js";import{t as f}from"./package-check-CCH3ax-x.js";import{t as p}from"./users-BgXAp2UO.js";import{k as m,n as h,s as g}from"./index-BQIv1ffM.js";import{t as _}from"./props-table-2pIZzGC-.js";import{t as v}from"./smart-card-Dhu_1A_u.js";import{c as y,r as b,t as x,u as S}from"./item-YF6wMI9W.js";import{t as C}from"./dialog-D9-MRCRg.js";var w={currentlySelected:`Currently selected:`,noResourceContent:`No resource content configured.`,noResourceSelected:`No resource selected.`,changeAction:`Change`},T=t(n(),1);function E({resource:e,hasResource:t,mapInitialSelected:n,onConfirmSelection:r,isConfirmDisabled:i,onDialogOpen:a,onDialogClose:o,onError:s}){let[c,l]=(0,T.useState)(!1),[u,d]=(0,T.useState)(!1),[f,p]=(0,T.useState)(null),m=(0,T.useCallback)(()=>{let t=n(e);p(t),l(!0),a?.(t)},[n,a,e]),h=(0,T.useCallback)(()=>{u||(l(!1),p(null),o?.())},[u,o]),g=(0,T.useMemo)(()=>f===null?!1:i?!i(f):!0,[i,f]),_=(0,T.useCallback)(async()=>{if(!(u||!g||f===null)){d(!0);try{await r(f),l(!1),p(null),o?.()}catch(e){s?.(e,f)}finally{d(!1)}}},[g,u,r,o,s,f]);return(0,T.useMemo)(()=>({resource:e,hasResource:t,isSelectorOpen:c,isConfirming:u,selectedSuggestion:f,setSelectedSuggestion:p,openSelector:m,closeSelector:h,confirmSelection:_,canConfirmSelection:g}),[g,h,_,t,u,c,m,e,f])}var D=g();function O({context:e,strings:t}){let n=m(w,t),r=e.selectedSuggestion;if(r===null)return null;let i=typeof r==`object`&&r&&`label`in r&&typeof r.label==`string`?r.label:``;return(0,D.jsxs)(`div`,{className:`bg-muted rounded-md p-3 text-sm`,children:[(0,D.jsx)(`div`,{className:`font-medium`,children:n.currentlySelected}),(0,D.jsx)(`div`,{className:`text-muted-foreground mt-1`,children:i})]})}O.displayName=`DefaultDialogSummary`;function k({context:e,strings:t}){return(0,D.jsx)(a,{type:`secondary`,children:m(w,t).noResourceContent})}k.displayName=`DefaultResourceContent`;function A({context:e,strings:t}){let n=m(w,t);return(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-8 text-center`,children:[(0,D.jsx)(a,{type:`secondary`,className:`mb-4`,children:n.noResourceSelected}),(0,D.jsx)(s,{variant:`secondary`,buttonStyle:`outline`,onClick:e.openSelector,type:`button`,children:n.changeAction})]})}A.displayName=`DefaultEmptyContent`;function j({SelectorComponent:e,selectorProps:t,context:n}){return(0,D.jsx)(`div`,{className:`py-2`,children:(0,D.jsx)(e,{onSelect:n.setSelectedSuggestion,selected:n.selectedSuggestion,setSelected:n.setSelectedSuggestion,inModal:!0,lockOnSelect:!1,context:`dialog`,...t})})}j.displayName=`DefaultDialogContent`;function M({icon:e,title:t,description:n,className:r,contentClassName:i=`space-y-3`,alert:o,alertVariant:c,actions:l,headerAction:d,footerText:f,resource:p,hasResource:g,selector:_,sections:y,sectionsClassName:b,viewLink:x,ResourceContentComponent:S,EmptyContentComponent:M,renderResourceContent:N,renderEmptyContent:P,strings:F}){let I=m(w,F),L=E({resource:p,hasResource:g,mapInitialSelected:_?.mapInitialSelected??(()=>null),onConfirmSelection:_?.onConfirmSelection??(()=>void 0),isConfirmDisabled:_?.isConfirmDisabled,onDialogOpen:_?.onDialogOpen,onDialogClose:_?.onDialogClose,onError:_?.onError}),R=_!==void 0,z=(0,T.useMemo)(()=>{let e=l??[],t=_?.actionLabel?.trim();return!R||!t?e.length>0?e:void 0:[...e,{id:`shared-resource-selector-change`,label:t,onClick:L.openSelector}]},[l,R,_?.actionLabel,L.openSelector]),B=(0,T.useMemo)(()=>{if(N)return N(L);if(S)return(0,D.jsx)(S,{context:L});if(Array.isArray(y)&&y.length>0){let e=y.filter(e=>e.when?e.when(L):!0);if(e.length>0)return(0,D.jsx)(`div`,{className:b??`space-y-3`,children:e.map(e=>{let t=e.Component;return(0,D.jsx)(`div`,{className:e.className,children:(0,D.jsx)(t,{context:L})},e.id)})})}return(0,D.jsx)(k,{context:L,strings:I})},[S,N,y,b,L,I]),V=(0,T.useMemo)(()=>P?P(L):M?(0,D.jsx)(M,{context:L}):R?(0,D.jsx)(A,{context:L,strings:I}):(0,D.jsx)(a,{type:`secondary`,children:I.noResourceSelected}),[M,R,P,L,I]),H=_?.DialogContentComponent,U=_?.DialogSummaryComponent,W=_?.SelectorComponent,G=_?.selectorProps??{},K=_?.dialogContentProps??{},q=g?B:V,J=!!(g&&x),Y=!!(R&&_&&W),X=J&&x?(0,D.jsx)(`div`,{className:x.className??`border-t pt-3`,children:(0,D.jsxs)(s,{href:x.href,variant:`primary`,fullWidth:!0,children:[(0,D.jsx)(u,{className:`h-4 w-4`}),x.label]})}):null,Z=Y&&_&&W?(0,D.jsxs)(C,{open:L.isSelectorOpen,onOpenChange:e=>{e||L.closeSelector()},title:_.title,description:_.description,size:_.dialogSize??`2xl`,showCancel:!1,showConfirm:!1,children:[H?(0,D.jsx)(H,{SelectorComponent:W,selectorProps:G,context:L,...K}):(0,D.jsx)(j,{SelectorComponent:W,selectorProps:G,context:L}),U?(0,D.jsx)(U,{context:L}):(0,D.jsx)(O,{context:L,strings:I}),(0,D.jsxs)(`div`,{className:`flex justify-end gap-2 border-t pt-4`,children:[(0,D.jsx)(s,{variant:`secondary`,buttonStyle:`outline`,onClick:L.closeSelector,disabled:L.isConfirming,type:`button`,children:_.cancelText}),(0,D.jsx)(s,{onClick:()=>{L.confirmSelection()},disabled:!L.canConfirmSelection||L.isConfirming,loading:L.isConfirming,type:`button`,children:_.confirmText})]})]}):null;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(v,{icon:e,title:t,description:n,className:h(`shared-resource-card--component`,`!gap-3`,r),contentClassName:i,alert:o,alertVariant:c,actions:z,headerAction:d,footerText:f,children:[q,X]}),Z]})}M.displayName=`SharedResourceCard`;function N(e){return typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(0,D.jsx)(a,{children:String(e)}):e}function P({title:e,description:t,status:n,items:r,actionLabel:i,onAction:o,className:c,contentClassName:l}){return(0,D.jsxs)(v,{title:e,description:t,headerEnd:n,padding:`sm`,className:h(`booking-calendar-event-card--component`,`shadow-none`,c),contentClassName:h(`space-y-4`,l),children:[(0,D.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:r.map(e=>(0,D.jsxs)(`div`,{className:h(e.fullWidth===!0&&`sm:col-span-2`),children:[(0,D.jsx)(a,{size:`xs`,type:`secondary`,children:e.label}),N(e.value)]},e.id))}),(0,D.jsx)(`div`,{className:`flex justify-end`,children:(0,D.jsx)(s,{type:`button`,variant:`primary`,size:`xs`,onClick:o,children:i})})]})}var F=e({BookingEventCard:()=>R,EmptySharedResource:()=>B,SharedResourceSelector:()=>z}),I=[{id:`atrium`,name:`Atrium Hall`,city:`Sofia`,capacity:`120 guests`,status:`Available`},{id:`terrace`,name:`Garden Terrace`,city:`Plovdiv`,capacity:`64 guests`,status:`Needs review`}];function L({selected:e,setSelected:t}){return(0,D.jsx)(`div`,{className:`space-y-2`,children:I.map(n=>{let r=e?.id===n.id;return(0,D.jsx)(s,{type:`button`,variant:r?`primary`:`secondary`,buttonStyle:r?`solid`:`outline`,fullWidth:!0,onClick:()=>t(n),className:`h-auto justify-start px-3 py-2`,children:(0,D.jsxs)(x,{className:`border-0 p-0`,children:[(0,D.jsx)(y,{children:(0,D.jsx)(d,{className:`size-4`,"aria-hidden":!0})}),(0,D.jsxs)(b,{children:[(0,D.jsx)(S,{children:n.name}),(0,D.jsxs)(a,{size:`xs`,type:`secondary`,children:[n.city,` - `,n.capacity]})]})]})},n.id)})})}function R(){return(0,D.jsx)(P,{title:`Reservation #BK-1048`,description:`Chef table booking for the evening service.`,status:(0,D.jsx)(o,{variant:`success`,children:`Confirmed`}),items:[{id:`date`,label:`Date`,value:`Jun 24, 2026`},{id:`time`,label:`Time`,value:`19:30`},{id:`guest`,label:`Guest`,value:`Maya Chen`},{id:`party`,label:`Party size`,value:`6 guests`},{id:`notes`,label:`Notes`,value:`Anniversary dinner, vegetarian tasting menu.`,fullWidth:!0}],actionLabel:`Open booking`,onAction:()=>void 0})}function z(){let[e,t]=(0,T.useState)(I[0]);return(0,D.jsx)(M,{icon:(0,D.jsx)(l,{className:`size-4`,"aria-hidden":!0}),title:`Assigned venue`,description:`A controlled resource card with a selector dialog and async-safe confirmation.`,resource:e,hasResource:e!==null,selector:{title:`Change venue`,description:`Pick the venue used for this booking.`,actionLabel:`Change venue`,confirmText:`Use venue`,cancelText:`Cancel`,mapInitialSelected:e=>e,onConfirmSelection:async e=>{t(e)},SelectorComponent:L,dialogSize:`md`},viewLink:{href:`#`,label:`View venue`},renderResourceContent:e=>e.resource?(0,D.jsxs)(`div`,{className:`grid gap-2 text-sm sm:grid-cols-2`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(a,{size:`xs`,type:`secondary`,children:`Venue`}),(0,D.jsx)(a,{weight:`medium`,children:e.resource.name})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(a,{size:`xs`,type:`secondary`,children:`City`}),(0,D.jsx)(a,{weight:`medium`,children:e.resource.city})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(a,{size:`xs`,type:`secondary`,children:`Capacity`}),(0,D.jsx)(a,{weight:`medium`,children:e.resource.capacity})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(a,{size:`xs`,type:`secondary`,children:`Status`}),(0,D.jsx)(o,{variant:`secondary`,children:e.resource.status})]})]}):null})}function B(){return(0,D.jsx)(M,{icon:(0,D.jsx)(f,{className:`size-4`,"aria-hidden":!0}),title:`Fulfillment partner`,description:`Empty state stays owned by the feature and can be replaced with a slot.`,resource:null,hasResource:!1,selector:{title:`Assign partner`,description:`Select a resource from the consumer-owned list.`,actionLabel:`Assign partner`,confirmText:`Assign`,cancelText:`Cancel`,mapInitialSelected:()=>null,onConfirmSelection:async()=>void 0,SelectorComponent:L},strings:{noResourceSelected:`No partner assigned yet.`,changeAction:`Assign`},footerText:(0,D.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,D.jsx)(p,{className:`size-3`,"aria-hidden":!0}),`Consumer controls persistence and routing.`]})})}var V=`import { useState } from 'react';
2
2
  import { CalendarDays, MapPin, PackageCheck, Users } from 'lucide-react';
3
3
 
4
4
  import { Badge } from '@/components/base/badge';
@@ -185,4 +185,4 @@ export function EmptySharedResource() {
185
185
  />
186
186
  );
187
187
  }
188
- `;function H(e){let t={h4:`h4`,...e.components};return F||W(`Examples`,!1),R||W(`Examples.BookingEventCard`,!0),B||W(`Examples.EmptySharedResource`,!0),z||W(`Examples.SharedResourceSelector`,!0),(0,D.jsxs)(i,{title:`Features · Card`,description:`Stateful feature cards for booking/event details and shared resource assignment. Selector state, confirmation, dialog chrome, slots, render-props, and strings stay callback-driven so consumers own persistence.`,layer:`features`,status:`ready`,sourcePath:`src/components/features/card`,children:[(0,D.jsxs)(a,{title:`Examples`,id:`examples`,children:[(0,D.jsx)(s,{name:`BookingEventCard`,source:V,children:(0,D.jsx)(R,{})}),(0,D.jsx)(s,{name:`SharedResourceSelector`,source:V,children:(0,D.jsx)(z,{})}),(0,D.jsx)(s,{name:`EmptySharedResource`,source:V,children:(0,D.jsx)(B,{})})]}),(0,D.jsxs)(a,{title:`API`,id:`api`,children:[(0,D.jsx)(t.h4,{children:`BookingCalendarEventCard`}),(0,D.jsx)(_,{component:`BookingCalendarEventCard`}),(0,D.jsx)(t.h4,{children:`SharedResourceCard`}),(0,D.jsx)(_,{component:`SharedResourceCard`})]})]})}function U(e={}){let{wrapper:t}=e.components||{};return t?(0,D.jsx)(t,{...e,children:(0,D.jsx)(H,{...e})}):H(e)}function W(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{U as default};
188
+ `;function H(e){let t={h4:`h4`,...e.components};return F||W(`Examples`,!1),R||W(`Examples.BookingEventCard`,!0),B||W(`Examples.EmptySharedResource`,!0),z||W(`Examples.SharedResourceSelector`,!0),(0,D.jsxs)(r,{title:`Features · Card`,description:`Stateful feature cards for booking/event details and shared resource assignment. Selector state, confirmation, dialog chrome, slots, render-props, and strings stay callback-driven so consumers own persistence.`,layer:`features`,status:`ready`,sourcePath:`src/components/features/card`,children:[(0,D.jsxs)(i,{title:`Examples`,id:`examples`,children:[(0,D.jsx)(c,{name:`BookingEventCard`,source:V,children:(0,D.jsx)(R,{})}),(0,D.jsx)(c,{name:`SharedResourceSelector`,source:V,children:(0,D.jsx)(z,{})}),(0,D.jsx)(c,{name:`EmptySharedResource`,source:V,children:(0,D.jsx)(B,{})})]}),(0,D.jsxs)(i,{title:`API`,id:`api`,children:[(0,D.jsx)(t.h4,{children:`BookingCalendarEventCard`}),(0,D.jsx)(_,{component:`BookingCalendarEventCard`}),(0,D.jsx)(t.h4,{children:`SharedResourceCard`}),(0,D.jsx)(_,{component:`SharedResourceCard`})]})]})}function U(e={}){let{wrapper:t}=e.components||{};return t?(0,D.jsx)(t,{...e,children:(0,D.jsx)(H,{...e})}):H(e)}function W(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{U as default};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Er as n}from"./example-BIrQab7K.js";import{n as r,s as i}from"./index-Cz4UGUT2.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./card-CFIG8Dgg.js";var d=e(t(),1),f={root:`card--component`,header:`card--header`,title:`card--title`,description:`card--description`,content:`card--content`,footer:`card--footer`,alert:`card--alert`},p={sm:{shell:`gap-3 py-4`,headerX:`px-4`,contentX:`px-4`,contentY:`py-0`,footerX:`px-4`,alertX:`px-4`,alertOffsetWithHeader:`-mt-1`,alertOffsetStandalone:`mt-0`},base:{shell:`gap-4 py-6`,headerX:`px-6`,contentX:`px-6`,contentY:`py-0`,footerX:`px-6`,alertX:`px-6`,alertOffsetWithHeader:`-mt-1`,alertOffsetStandalone:`mt-0`},lg:{shell:`gap-4 py-6`,headerX:`px-6`,contentX:`px-6`,contentY:`py-0`,footerX:`px-6`,alertX:`px-6`,alertOffsetWithHeader:`-mt-1`,alertOffsetStandalone:`mt-0`}},m={card:`rounded-lg border border-border bg-card text-card-foreground shadow-xs`,flat:`bg-transparent text-card-foreground border-none shadow-none`,framed:r(`relative bg-card text-card-foreground shadow-xs`,`rounded-lg border-[3px] border-border/30`,`before:pointer-events-none before:absolute before:inset-0 before:rounded-md before:border before:border-border/60 before:content-[""]`)};function h(e){return e==null||typeof e==`boolean`?!1:typeof e==`string`?e.trim().length>0:typeof e==`number`||typeof e==`bigint`?!0:Array.isArray(e)?e.some(h):(0,d.isValidElement)(e)&&e.type===d.Fragment?h(e.props.children):!0}var g=i();function _({className:e,...t}){return(0,g.jsx)(u,{className:r(f.root,`flex w-full flex-col gap-3 py-4 ring-0`,e),...t})}function v({className:e,...t}){return(0,g.jsx)(a,{className:r(f.header,`flex flex-col gap-0.5 px-4`,e),...t})}function y({className:e,children:t,...i}){return h(t)?typeof t==`string`||typeof t==`number`||typeof t==`bigint`?(0,g.jsx)(n,{"data-slot":`card-title`,tag:`div`,weight:`semibold`,lineHeight:`none`,className:r(f.title,`min-w-0 leading-none font-semibold`,e),...i,children:t}):(0,g.jsx)(c,{className:r(f.title,`min-w-0 leading-none font-semibold`,e),...i,children:t}):null}function b({className:e,children:t,...i}){return h(t)?typeof t==`string`||typeof t==`number`||typeof t==`bigint`?(0,g.jsx)(n,{"data-slot":`card-description`,tag:`div`,type:`secondary`,className:r(f.description,`text-muted-foreground text-sm`,e),...i,children:t}):(0,g.jsx)(l,{className:r(f.description,`text-muted-foreground text-sm`,e),...i,children:t}):null}function x({className:e,...t}){return(0,g.jsx)(s,{className:r(f.content,`px-4`,e),...t})}function S({className:e,...t}){return(0,g.jsx)(o,{className:r(f.footer,`flex items-center px-4`,e),...t})}export{_ as a,f as c,v as i,p as l,b as n,y as o,S as r,h as s,x as t,m as u};
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Rr as n}from"./example-Cz_880po.js";import{n as r,s as i}from"./index-BQIv1ffM.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./card-BjqRQxxz.js";var d=e(t(),1),f={root:`card--component`,header:`card--header`,title:`card--title`,description:`card--description`,content:`card--content`,footer:`card--footer`,alert:`card--alert`},p={sm:{shell:`gap-3 py-4`,headerX:`px-4`,contentX:`px-4`,contentY:`py-0`,footerX:`px-4`,alertX:`px-4`,alertOffsetWithHeader:`-mt-1`,alertOffsetStandalone:`mt-0`},base:{shell:`gap-4 py-6`,headerX:`px-6`,contentX:`px-6`,contentY:`py-0`,footerX:`px-6`,alertX:`px-6`,alertOffsetWithHeader:`-mt-1`,alertOffsetStandalone:`mt-0`},lg:{shell:`gap-4 py-6`,headerX:`px-6`,contentX:`px-6`,contentY:`py-0`,footerX:`px-6`,alertX:`px-6`,alertOffsetWithHeader:`-mt-1`,alertOffsetStandalone:`mt-0`}},m={card:`rounded-lg border border-border bg-card text-card-foreground shadow-xs`,flat:`bg-transparent text-card-foreground border-none shadow-none`,framed:r(`relative bg-card text-card-foreground shadow-xs`,`rounded-lg border-[3px] border-border/30`,`before:pointer-events-none before:absolute before:inset-0 before:rounded-md before:border before:border-border/60 before:content-[""]`)};function h(e){return e==null||typeof e==`boolean`?!1:typeof e==`string`?e.trim().length>0:typeof e==`number`||typeof e==`bigint`?!0:Array.isArray(e)?e.some(h):(0,d.isValidElement)(e)&&e.type===d.Fragment?h(e.props.children):!0}var g=i();function _({className:e,...t}){return(0,g.jsx)(u,{className:r(f.root,`flex w-full flex-col gap-3 py-4 ring-0`,e),...t})}function v({className:e,...t}){return(0,g.jsx)(a,{className:r(f.header,`flex flex-col gap-0.5 px-4`,e),...t})}function y({className:e,children:t,...i}){return h(t)?typeof t==`string`||typeof t==`number`||typeof t==`bigint`?(0,g.jsx)(n,{"data-slot":`card-title`,tag:`div`,weight:`semibold`,lineHeight:`none`,className:r(f.title,`min-w-0 leading-none font-semibold`,e),...i,children:t}):(0,g.jsx)(c,{className:r(f.title,`min-w-0 leading-none font-semibold`,e),...i,children:t}):null}function b({className:e,children:t,...i}){return h(t)?typeof t==`string`||typeof t==`number`||typeof t==`bigint`?(0,g.jsx)(n,{"data-slot":`card-description`,tag:`div`,type:`secondary`,className:r(f.description,`text-muted-foreground text-sm`,e),...i,children:t}):(0,g.jsx)(l,{className:r(f.description,`text-muted-foreground text-sm`,e),...i,children:t}):null}function x({className:e,...t}){return(0,g.jsx)(s,{className:r(f.content,`px-4`,e),...t})}function S({className:e,...t}){return(0,g.jsx)(o,{className:r(f.footer,`flex items-center px-4`,e),...t})}export{_ as a,f as c,v as i,p as l,b as n,y as o,S as r,h as s,x as t,m as u};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Er as n,Lr as r}from"./example-BIrQab7K.js";import{t as i}from"./circle-check-TT7cFQrr.js";import{n as a,s as o}from"./index-Cz4UGUT2.js";import{i as s}from"./form-sizing-DHUDpiPA.js";import{n as c,r as l,t as u}from"./RadioGroup-C-0MNAYY.js";var d=e(t(),1),f={sm:{padding:`p-3`,iconBox:`h-7 w-7`,iconSize:`size-3.5`,gap:`gap-1`},base:{padding:`p-4`,iconBox:`h-8 w-8`,iconSize:`size-4`,gap:`gap-1.5`},lg:{padding:`p-5`,iconBox:`h-10 w-10`,iconSize:`size-5`,gap:`gap-2`}},p={sm:`h-7 px-2.5 text-xs`,base:`h-8 px-3 text-xs`,lg:`h-9 px-4 text-sm`},m={sm:`px-3 py-2`,base:`px-4 py-3`,lg:`px-5 py-3.5`},h=o(),g={1:`grid grid-cols-1 gap-2`,2:`grid grid-cols-1 gap-2 sm:grid-cols-2`,3:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-3`,4:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-4`};function _({options:e,value:t,defaultValue:o,onChange:c,name:l,columns:u=3,invalid:p,disabled:m,size:_,className:v}){let{defaultControlSize:y}=r(),b=s(_,y),x=t!==void 0,[S,C]=(0,d.useState)(o??[]),w=(0,d.useMemo)(()=>x?t??[]:S,[S,x,t]),T=f[b],E=(0,d.useCallback)(t=>{if(m||e.find(e=>e.value===t)?.disabled)return;let n=w.includes(t)?w.filter(e=>e!==t):[...w,t];x||C(n),c?.(n)},[m,e,w,x,c]);return(0,h.jsx)(`div`,{className:a(`card-checkbox-group--component`,g[u],v),role:`group`,"aria-invalid":p||void 0,"aria-disabled":m||void 0,children:e.map(e=>{let t=e.icon,r=e.label??e.title,o=w.includes(e.value),s=m||e.disabled,c=!!l&&o;return(0,h.jsxs)(`div`,{className:`relative`,children:[(0,h.jsx)(`input`,{type:`hidden`,name:l?`${l}[]`:void 0,value:e.value,"aria-hidden":`true`,hidden:!0,disabled:!c}),(0,h.jsxs)(`button`,{type:`button`,"aria-pressed":o,"aria-invalid":p||void 0,onClick:()=>E(e.value),disabled:s,"data-selected":o,className:a(`group relative flex w-full flex-col items-start text-start outline-none cursor-pointer`,`rounded-lg border bg-card transition-[color,box-shadow,background,border-color] duration-150`,`border-border hover:border-foreground/20 hover:bg-muted/30`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,`data-[selected=true]:border-primary data-[selected=true]:bg-primary/[0.04]`,T.padding,T.gap,`aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20`,`disabled:cursor-not-allowed disabled:opacity-50`),children:[(0,h.jsx)(i,{className:a(`absolute top-2 right-2 size-4 text-primary-foreground fill-primary stroke-primary-foreground`,!o&&`hidden`)}),!!t&&(0,h.jsx)(`span`,{className:a(`inline-flex items-center justify-center rounded-md bg-muted/50 text-muted-foreground group-hover:bg-muted`,`group-data-[selected=true]:bg-primary/10 group-data-[selected=true]:text-primary`,T.iconBox),children:(0,h.jsx)(t,{className:T.iconSize})}),(0,h.jsx)(n,{tag:`span`,weight:`medium`,children:r}),!!e.description&&(0,h.jsx)(n,{size:`xs`,type:`secondary`,children:e.description})]})]},e.value)})})}_.displayName=`CardCheckboxGroup`;var v={1:`grid grid-cols-1 gap-2`,2:`grid grid-cols-1 gap-2 sm:grid-cols-2`,3:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-3`,4:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-4`};function y({options:e,value:t,defaultValue:o,onChange:p,name:m,columns:g=3,invalid:_,disabled:y,size:b,className:x}){let{defaultControlSize:S}=r(),C=f[s(b,S)],w=(0,d.useMemo)(()=>a(v[g],x),[g,x]);return(0,h.jsx)(u,{value:t,defaultValue:o,onValueChange:e=>e&&p?.(e),name:m,disabled:y,"aria-invalid":_||void 0,className:a(`card-radio-group--component`,w),children:e.map(e=>{let t=e.icon,r=e.label??e.title;return(0,h.jsxs)(l,{value:e.value,disabled:y||e.disabled,"aria-invalid":_||void 0,className:a(`relative group flex flex-col text-start outline-none cursor-pointer`,`rounded-lg border bg-card transition-[color,box-shadow,background,border-color] duration-150`,`border-border hover:border-foreground/20 hover:bg-muted/30`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,`data-[checked]:border-primary data-[checked]:bg-primary/[0.04]`,C.padding,C.gap,`aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20`,`disabled:cursor-not-allowed disabled:opacity-50`),children:[(0,h.jsx)(c,{render:(0,h.jsx)(i,{className:`absolute top-2 right-2 size-4 text-primary-foreground fill-primary stroke-primary-foreground`})}),!!t&&(0,h.jsx)(`span`,{className:a(`inline-flex items-center justify-center rounded-md bg-muted/50 text-muted-foreground group-hover:bg-muted`,`group-data-[checked]:bg-primary/10 group-data-[checked]:text-primary`,C.iconBox),children:(0,h.jsx)(t,{className:C.iconSize})}),(0,h.jsx)(n,{tag:`span`,weight:`semibold`,children:r}),!!e.description&&(0,h.jsx)(n,{size:`xs`,type:`secondary`,children:e.description})]},e.value)})})}var b=(0,d.memo)(y);b.displayName=`CardRadioGroup`;export{p as i,_ as n,m as r,b as t};
1
+ import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Rr as n,Yr as r}from"./example-Cz_880po.js";import{t as i}from"./circle-check-1MSds3Vu.js";import{n as a,s as o}from"./index-BQIv1ffM.js";import{i as s}from"./form-sizing-DHUDpiPA.js";import{n as c,r as l,t as u}from"./RadioGroup-DBA3iBQw.js";var d=e(t(),1),f={sm:{padding:`p-3`,iconBox:`h-7 w-7`,iconSize:`size-3.5`,gap:`gap-1`},base:{padding:`p-4`,iconBox:`h-8 w-8`,iconSize:`size-4`,gap:`gap-1.5`},lg:{padding:`p-5`,iconBox:`h-10 w-10`,iconSize:`size-5`,gap:`gap-2`}},p={sm:`h-7 px-2.5 text-xs`,base:`h-8 px-3 text-xs`,lg:`h-9 px-4 text-sm`},m={sm:`px-3 py-2`,base:`px-4 py-3`,lg:`px-5 py-3.5`},h=o(),g={1:`grid grid-cols-1 gap-2`,2:`grid grid-cols-1 gap-2 sm:grid-cols-2`,3:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-3`,4:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-4`};function _({options:e,value:t,defaultValue:o,onChange:c,name:l,columns:u=3,invalid:p,disabled:m,size:_,className:v}){let{defaultControlSize:y}=r(),b=s(_,y),x=t!==void 0,[S,C]=(0,d.useState)(o??[]),w=(0,d.useMemo)(()=>x?t??[]:S,[S,x,t]),T=f[b],E=(0,d.useCallback)(t=>{if(m||e.find(e=>e.value===t)?.disabled)return;let n=w.includes(t)?w.filter(e=>e!==t):[...w,t];x||C(n),c?.(n)},[m,e,w,x,c]);return(0,h.jsx)(`div`,{className:a(`card-checkbox-group--component`,g[u],v),role:`group`,"aria-invalid":p||void 0,"aria-disabled":m||void 0,children:e.map(e=>{let t=e.icon,r=e.label??e.title,o=w.includes(e.value),s=m||e.disabled,c=!!l&&o;return(0,h.jsxs)(`div`,{className:`relative`,children:[(0,h.jsx)(`input`,{type:`hidden`,name:l?`${l}[]`:void 0,value:e.value,"aria-hidden":`true`,hidden:!0,disabled:!c}),(0,h.jsxs)(`button`,{type:`button`,"aria-pressed":o,"aria-invalid":p||void 0,onClick:()=>E(e.value),disabled:s,"data-selected":o,className:a(`group relative flex w-full flex-col items-start text-start outline-none cursor-pointer`,`rounded-lg border bg-card transition-[color,box-shadow,background,border-color] duration-150`,`border-border hover:border-foreground/20 hover:bg-muted/30`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,`data-[selected=true]:border-primary data-[selected=true]:bg-primary/[0.04]`,T.padding,T.gap,`aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20`,`disabled:cursor-not-allowed disabled:opacity-50`),children:[(0,h.jsx)(i,{className:a(`absolute top-2 right-2 size-4 text-primary-foreground fill-primary stroke-primary-foreground`,!o&&`hidden`)}),!!t&&(0,h.jsx)(`span`,{className:a(`inline-flex items-center justify-center rounded-md bg-muted/50 text-muted-foreground group-hover:bg-muted`,`group-data-[selected=true]:bg-primary/10 group-data-[selected=true]:text-primary`,T.iconBox),children:(0,h.jsx)(t,{className:T.iconSize})}),(0,h.jsx)(n,{tag:`span`,weight:`medium`,children:r}),!!e.description&&(0,h.jsx)(n,{size:`xs`,type:`secondary`,children:e.description})]})]},e.value)})})}_.displayName=`CardCheckboxGroup`;var v={1:`grid grid-cols-1 gap-2`,2:`grid grid-cols-1 gap-2 sm:grid-cols-2`,3:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-3`,4:`grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-4`};function y({options:e,value:t,defaultValue:o,onChange:p,name:m,columns:g=3,invalid:_,disabled:y,size:b,className:x}){let{defaultControlSize:S}=r(),C=f[s(b,S)],w=(0,d.useMemo)(()=>a(v[g],x),[g,x]);return(0,h.jsx)(u,{value:t,defaultValue:o,onValueChange:e=>e&&p?.(e),name:m,disabled:y,"aria-invalid":_||void 0,className:a(`card-radio-group--component`,w),children:e.map(e=>{let t=e.icon,r=e.label??e.title;return(0,h.jsxs)(l,{value:e.value,disabled:y||e.disabled,"aria-invalid":_||void 0,className:a(`relative group flex flex-col text-start outline-none cursor-pointer`,`rounded-lg border bg-card transition-[color,box-shadow,background,border-color] duration-150`,`border-border hover:border-foreground/20 hover:bg-muted/30`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,`data-[checked]:border-primary data-[checked]:bg-primary/[0.04]`,C.padding,C.gap,`aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20`,`disabled:cursor-not-allowed disabled:opacity-50`),children:[(0,h.jsx)(c,{render:(0,h.jsx)(i,{className:`absolute top-2 right-2 size-4 text-primary-foreground fill-primary stroke-primary-foreground`})}),!!t&&(0,h.jsx)(`span`,{className:a(`inline-flex items-center justify-center rounded-md bg-muted/50 text-muted-foreground group-hover:bg-muted`,`group-data-[checked]:bg-primary/10 group-data-[checked]:text-primary`,C.iconBox),children:(0,h.jsx)(t,{className:C.iconSize})}),(0,h.jsx)(n,{tag:`span`,weight:`semibold`,children:r}),!!e.description&&(0,h.jsx)(n,{size:`xs`,type:`secondary`,children:e.description})]},e.value)})})}var b=(0,d.memo)(y);b.displayName=`CardRadioGroup`;export{p as i,_ as n,m as r,b as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-QTnfLwEv.js";import{Er as t,hr as n,jr as r,mr as i,r as a,t as o,yr as s}from"./example-BIrQab7K.js";import{t as c}from"./arrow-up-right-CuAsO3-r.js";import{t as l}from"./credit-card-CYgRtM77.js";import{t as u}from"./ellipsis-vertical-yH8S83bc.js";import{t as d}from"./pencil-BouoJ5x7.js";import{t as f}from"./plus-DkHZm34I.js";import{t as p}from"./sparkles-DFJmoAFP.js";import{t as m}from"./trash-2-OsaEm8cc.js";import{t as h}from"./trending-up-HlQQXTth.js";import{t as g}from"./users-ERTaffcv.js";import{a as _,s as v}from"./index-Cz4UGUT2.js";import{t as y}from"./props-table-BR-KjRNe.js";import{a as b,i as x,n as S,o as C,r as w,t as T}from"./card-primitives-YgCOqVDI.js";import{n as E,t as D}from"./smart-card-B4P_C0nk.js";import{r as O,t as k}from"./avatar-5EFTnHEG.js";var A=_(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),j=e({AlertVariants:()=>I,Default:()=>N,ExpandableCustomLabels:()=>H,ExpandableUncontrolled:()=>V,HeaderAndFooterDividers:()=>B,HeaderSlots:()=>z,MetricKPICard:()=>W,NotificationCard:()=>G,PaddingSizes:()=>L,PrimitiveComposition:()=>K,Skeleton:()=>U,StatRowClickable:()=>q,SurfaceVariants:()=>R,WithActions:()=>F,WithIconTooltipFooter:()=>P}),M=v();function N(){return(0,M.jsx)(D,{className:`w-full max-w-md`,title:`Simple card`,description:`Just a title and a description.`,children:(0,M.jsx)(t,{children:`Card content goes here.`})})}function P(){return(0,M.jsx)(D,{className:`w-full max-w-md`,icon:(0,M.jsx)(p,{className:`size-4`}),title:`Insights`,titleSuffix:(0,M.jsx)(s,{variant:`success`,children:`New`}),description:`High-level summary of recent activity.`,tooltip:`Updated every 15 minutes`,footerText:`Last refreshed 2 minutes ago`,children:(0,M.jsx)(t,{children:`Lorem ipsum dolor sit amet.`})})}function F(){return(0,M.jsx)(D,{className:`w-full max-w-md`,title:`Order #ORD-2026-0412`,description:`Sarah Smith — 2,450 USD`,actions:[{id:`edit`,label:`Edit`,icon:(0,M.jsx)(d,{className:`size-3.5`}),onClick:()=>{}},{id:`delete`,label:`Delete`,icon:(0,M.jsx)(m,{className:`size-3.5`}),onClick:()=>{}}],headerEnd:(0,M.jsx)(s,{variant:`info`,size:`sm`,children:`Pending`}),children:(0,M.jsx)(t,{type:`secondary`,children:`3 vouchers — wellness, food, adventure.`})})}function I(){return(0,M.jsxs)(`div`,{className:`grid w-full max-w-md gap-3`,children:[(0,M.jsx)(D,{title:`Default alert`,alert:`An informational message.`,children:(0,M.jsx)(t,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Info`,alertVariant:`info`,alert:`Heads up — info-style.`,children:(0,M.jsx)(t,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Warning`,alertVariant:`warning`,alert:`Heads up — warning.`,children:(0,M.jsx)(t,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Success`,alertVariant:`success`,alert:`All systems go.`,children:(0,M.jsx)(t,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Destructive`,alertVariant:`destructive`,alert:`This action cannot be undone.`,children:(0,M.jsx)(t,{children:`Body content.`})})]})}function L(){return(0,M.jsx)(`div`,{className:`grid w-full max-w-md gap-3`,children:[`sm`,`base`,`lg`].map(e=>(0,M.jsx)(D,{title:`padding="${e}"`,padding:e,children:(0,M.jsxs)(t,{children:[`Card body with `,e,` padding.`]})},e))})}function R(){return(0,M.jsxs)(`div`,{className:`grid w-full grid-cols-[repeat(auto-fit,minmax(min(12rem,100%),1fr))] gap-3`,children:[(0,M.jsx)(D,{surface:`card`,title:`Card (default)`,description:`Bordered + soft shadow.`,children:(0,M.jsx)(t,{type:`secondary`,children:`Canonical card chrome.`})}),(0,M.jsx)(D,{surface:`flat`,title:`Flat`,description:`No border, no shadow.`,children:(0,M.jsx)(t,{type:`secondary`,children:`Use when nesting inside another surface.`})}),(0,M.jsx)(D,{surface:`framed`,title:`Framed`,description:`Matted polaroid look.`,children:(0,M.jsx)(t,{type:`secondary`,children:`5px outer border + 1px hairline inner.`})})]})}function z(){return(0,M.jsx)(D,{className:`w-full max-w-md`,title:`Header composition`,headerStart:(0,M.jsx)(s,{variant:`primary`,children:`Start`}),headerEnd:(0,M.jsx)(s,{variant:`secondary`,children:`End`}),headerAction:(0,M.jsx)(f,{className:`size-4 text-muted-foreground`}),children:(0,M.jsx)(t,{children:`headerStart, headerEnd & headerAction.`})})}function B(){return(0,M.jsx)(D,{className:`w-full max-w-sm`,headerDivider:!0,footerDivider:!0,headerStart:(0,M.jsxs)(s,{variant:`secondary`,children:[(0,M.jsx)(r,{className:`size-3`}),` Live`]}),headerEnd:(0,M.jsx)(a,{variant:`secondary`,buttonStyle:`ghost`,"aria-label":`More options`,children:(0,M.jsx)(u,{className:`size-4`})}),title:`Integration name`,titleSuffix:(0,M.jsx)(s,{variant:`success`,children:`Installed`}),description:`Short description of the integration in one line.`,footerSlot:(0,M.jsx)(a,{variant:`secondary`,className:`w-full justify-center`,children:`Open`}),children:(0,M.jsxs)(`div`,{className:`flex items-center -space-x-2 pt-2`,children:[[`SC`,`MR`,`EW`].map(e=>(0,M.jsx)(k,{className:`ring-2 ring-background`,children:(0,M.jsx)(O,{children:e})},e)),(0,M.jsx)(`span`,{className:`ml-2 inline-flex size-6 items-center justify-center rounded-full border border-background bg-muted text-xs text-muted-foreground`,children:`+3`})]})})}function V(){return(0,M.jsx)(D,{className:`w-full max-w-md`,expandable:!0,title:`3 days remaining in cycle`,headerEnd:(0,M.jsx)(a,{variant:`secondary`,buttonStyle:`ghost`,children:`Billing`}),children:(0,M.jsxs)(`div`,{className:`space-y-5`,children:[(0,M.jsxs)(`div`,{className:`rounded-lg bg-muted/60 p-4 space-y-2`,children:[(0,M.jsxs)(`div`,{className:`flex justify-between text-xs text-muted-foreground font-medium`,children:[(0,M.jsx)(`span`,{children:`Included credit`}),(0,M.jsx)(`span`,{children:`On-demand charges`})]}),(0,M.jsxs)(`div`,{className:`flex justify-between font-semibold`,children:[(0,M.jsx)(`span`,{children:`$18.08 / $20`}),(0,M.jsx)(`span`,{children:`$0`})]})]}),(0,M.jsx)(`dl`,{className:`grid gap-3 text-sm`,children:[[`Requests`,`$210.84`],[`Active CPU`,`$21.95`],[`Events`,`$21.20`],[`Storage usage`,`$20.45`],[`Bandwidth`,`$0.00`]].map(([e,n])=>(0,M.jsxs)(`div`,{className:`flex justify-between`,children:[(0,M.jsx)(t,{tag:`span`,weight:`medium`,children:e}),(0,M.jsx)(t,{tag:`span`,type:`secondary`,children:n})]},e))})]})})}function H(){return(0,M.jsx)(D,{className:`w-full max-w-md`,expandable:{collapsedMaxHeight:`6rem`},title:`Release notes — v0.4.2`,strings:{expandLabel:`Show full notes`,collapseLabel:`Hide details`},children:(0,M.jsxs)(t,{type:`secondary`,className:`leading-relaxed`,children:[`Tightened the admin density tokens, added the new`,(0,M.jsx)(`code`,{className:`mx-1 rounded bg-muted px-1.5 py-0.5 text-xs`,children:`expandable`}),`and `,(0,M.jsx)(`code`,{className:`mx-1 rounded bg-muted px-1.5 py-0.5 text-xs`,children:`headerDivider`}),`flags on SmartCard, and aligned the empty-state primitive with the sibling features. See the changelog for the full story.`]})})}function U(){return(0,M.jsx)(`div`,{className:`w-full max-w-md`,children:(0,M.jsx)(E,{})})}function W(){return(0,M.jsx)(D,{className:`w-full max-w-xs`,icon:(0,M.jsx)(h,{className:`size-4`}),title:`Monthly revenue`,headerEnd:(0,M.jsx)(s,{variant:`success`,children:`+12.4%`}),footerText:`Updated 5 minutes ago`,children:(0,M.jsxs)(`div`,{className:`space-y-1`,children:[(0,M.jsx)(t,{size:`xl`,weight:`semibold`,lineHeight:`none`,className:`text-3xl tabular-nums`,children:`$48,290`}),(0,M.jsx)(t,{size:`xs`,type:`secondary`,children:`vs. $42,950 last month`})]})})}function G(){return(0,M.jsx)(D,{className:`w-full max-w-md`,icon:(0,M.jsx)(A,{className:`size-4`}),title:`Backup ready to restore`,alert:`A snapshot from 12 minutes ago is available.`,alertVariant:`info`,footerSlot:(0,M.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,M.jsx)(a,{variant:`secondary`,buttonStyle:`ghost`,children:`Dismiss`}),(0,M.jsx)(a,{variant:`primary`,children:`Restore`})]}),children:(0,M.jsx)(t,{type:`secondary`,children:`Restoring will replace the current state with the snapshot. This action can be undone within 24 hours.`})})}function K(){return(0,M.jsxs)(b,{className:`w-full max-w-md`,children:[(0,M.jsxs)(x,{children:[(0,M.jsx)(C,{children:`Primitive composition`}),(0,M.jsx)(S,{children:"When `SmartCard` is too opinionated, drop down to the exported primitive parts and assemble the chrome yourself."})]}),(0,M.jsx)(T,{children:(0,M.jsx)(t,{type:`secondary`,children:"`CardShell`, `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, and `CardFooter` are all exported from `base/cards` for advanced layouts."})}),(0,M.jsxs)(w,{className:`justify-end gap-2`,children:[(0,M.jsx)(a,{variant:`secondary`,buttonStyle:`ghost`,children:`Cancel`}),(0,M.jsx)(a,{variant:`primary`,children:`Save`})]})]})}function q(){return(0,M.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-3 md:grid-cols-3`,children:[(0,M.jsx)(D,{icon:(0,M.jsx)(g,{className:`size-4`}),title:`Active customers`,headerEnd:(0,M.jsx)(c,{className:`size-4 text-muted-foreground`}),className:`cursor-pointer transition-colors hover:bg-muted/40`,children:(0,M.jsx)(t,{size:`xl`,weight:`semibold`,className:`tabular-nums`,children:`2,194`})}),(0,M.jsx)(D,{icon:(0,M.jsx)(l,{className:`size-4`}),title:`Pending invoices`,headerEnd:(0,M.jsx)(c,{className:`size-4 text-muted-foreground`}),className:`cursor-pointer transition-colors hover:bg-muted/40`,children:(0,M.jsx)(t,{size:`xl`,weight:`semibold`,className:`tabular-nums`,children:`$12,840`})}),(0,M.jsx)(D,{icon:(0,M.jsx)(p,{className:`size-4`}),title:`New signups`,headerEnd:(0,M.jsx)(c,{className:`size-4 text-muted-foreground`}),className:`cursor-pointer transition-colors hover:bg-muted/40`,children:(0,M.jsx)(t,{size:`xl`,weight:`semibold`,className:`tabular-nums`,children:`87`})})]})}var J=`import { ArrowUpRight, BellRing, CreditCard, MoreVertical, Pencil, Plus, Sparkles, Trash2, Check, TrendingUp, Users } from 'lucide-react';
1
+ import{n as e}from"./chunk-QTnfLwEv.js";import{Dr as t,Er as n,Rr as r,Ur as i,jr as a,r as o,t as s}from"./example-Cz_880po.js";import{t as c}from"./arrow-up-right-BtlQ62bc.js";import{t as l}from"./credit-card-CAI3F3HB.js";import{t as u}from"./ellipsis-vertical-CAiMV7G2.js";import{t as d}from"./pencil-C2OfFQMj.js";import{t as f}from"./plus-D5swsZCz.js";import{t as p}from"./sparkles-N8rqKQez.js";import{t as m}from"./trash-2-CE9bDw49.js";import{t as h}from"./trending-up-0iJl0XvC.js";import{t as g}from"./users-BgXAp2UO.js";import{a as _,s as v}from"./index-BQIv1ffM.js";import{t as y}from"./props-table-2pIZzGC-.js";import{a as b,i as x,n as S,o as C,r as w,t as T}from"./card-primitives-BDj4DtS8.js";import{n as E,t as D}from"./smart-card-Dhu_1A_u.js";import{r as O,t as k}from"./avatar-LGWm52rv.js";var A=_(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),j=e({AlertVariants:()=>I,Default:()=>N,ExpandableCustomLabels:()=>H,ExpandableUncontrolled:()=>V,HeaderAndFooterDividers:()=>B,HeaderSlots:()=>z,MetricKPICard:()=>W,NotificationCard:()=>G,PaddingSizes:()=>L,PrimitiveComposition:()=>K,Skeleton:()=>U,StatRowClickable:()=>q,SurfaceVariants:()=>R,WithActions:()=>F,WithIconTooltipFooter:()=>P}),M=v();function N(){return(0,M.jsx)(D,{className:`w-full max-w-md`,title:`Simple card`,description:`Just a title and a description.`,children:(0,M.jsx)(r,{children:`Card content goes here.`})})}function P(){return(0,M.jsx)(D,{className:`w-full max-w-md`,icon:(0,M.jsx)(p,{className:`size-4`}),title:`Insights`,titleSuffix:(0,M.jsx)(a,{variant:`success`,children:`New`}),description:`High-level summary of recent activity.`,tooltip:`Updated every 15 minutes`,footerText:`Last refreshed 2 minutes ago`,children:(0,M.jsx)(r,{children:`Lorem ipsum dolor sit amet.`})})}function F(){return(0,M.jsx)(D,{className:`w-full max-w-md`,title:`Order #ORD-2026-0412`,description:`Sarah Smith — 2,450 USD`,actions:[{id:`edit`,label:`Edit`,icon:(0,M.jsx)(d,{className:`size-3.5`}),onClick:()=>{}},{id:`delete`,label:`Delete`,icon:(0,M.jsx)(m,{className:`size-3.5`}),onClick:()=>{}}],headerEnd:(0,M.jsx)(a,{variant:`info`,size:`sm`,children:`Pending`}),children:(0,M.jsx)(r,{type:`secondary`,children:`3 vouchers — wellness, food, adventure.`})})}function I(){return(0,M.jsxs)(`div`,{className:`grid w-full max-w-md gap-3`,children:[(0,M.jsx)(D,{title:`Default alert`,alert:`An informational message.`,children:(0,M.jsx)(r,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Info`,alertVariant:`info`,alert:`Heads up — info-style.`,children:(0,M.jsx)(r,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Warning`,alertVariant:`warning`,alert:`Heads up — warning.`,children:(0,M.jsx)(r,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Success`,alertVariant:`success`,alert:`All systems go.`,children:(0,M.jsx)(r,{children:`Body content.`})}),(0,M.jsx)(D,{title:`Destructive`,alertVariant:`destructive`,alert:`This action cannot be undone.`,children:(0,M.jsx)(r,{children:`Body content.`})})]})}function L(){return(0,M.jsx)(`div`,{className:`grid w-full max-w-md gap-3`,children:[`sm`,`base`,`lg`].map(e=>(0,M.jsx)(D,{title:`padding="${e}"`,padding:e,children:(0,M.jsxs)(r,{children:[`Card body with `,e,` padding.`]})},e))})}function R(){return(0,M.jsxs)(`div`,{className:`grid w-full grid-cols-[repeat(auto-fit,minmax(min(12rem,100%),1fr))] gap-3`,children:[(0,M.jsx)(D,{surface:`card`,title:`Card (default)`,description:`Bordered + soft shadow.`,children:(0,M.jsx)(r,{type:`secondary`,children:`Canonical card chrome.`})}),(0,M.jsx)(D,{surface:`flat`,title:`Flat`,description:`No border, no shadow.`,children:(0,M.jsx)(r,{type:`secondary`,children:`Use when nesting inside another surface.`})}),(0,M.jsx)(D,{surface:`framed`,title:`Framed`,description:`Matted polaroid look.`,children:(0,M.jsx)(r,{type:`secondary`,children:`5px outer border + 1px hairline inner.`})})]})}function z(){return(0,M.jsx)(D,{className:`w-full max-w-md`,title:`Header composition`,headerStart:(0,M.jsx)(a,{variant:`primary`,children:`Start`}),headerEnd:(0,M.jsx)(a,{variant:`secondary`,children:`End`}),headerAction:(0,M.jsx)(f,{className:`size-4 text-muted-foreground`}),children:(0,M.jsx)(r,{children:`headerStart, headerEnd & headerAction.`})})}function B(){return(0,M.jsx)(D,{className:`w-full max-w-sm`,headerDivider:!0,footerDivider:!0,headerStart:(0,M.jsxs)(a,{variant:`secondary`,children:[(0,M.jsx)(i,{className:`size-3`}),` Live`]}),headerEnd:(0,M.jsx)(o,{variant:`secondary`,buttonStyle:`ghost`,"aria-label":`More options`,children:(0,M.jsx)(u,{className:`size-4`})}),title:`Integration name`,titleSuffix:(0,M.jsx)(a,{variant:`success`,children:`Installed`}),description:`Short description of the integration in one line.`,footerSlot:(0,M.jsx)(o,{variant:`secondary`,className:`w-full justify-center`,children:`Open`}),children:(0,M.jsxs)(`div`,{className:`flex items-center -space-x-2 pt-2`,children:[[`SC`,`MR`,`EW`].map(e=>(0,M.jsx)(k,{className:`ring-2 ring-background`,children:(0,M.jsx)(O,{children:e})},e)),(0,M.jsx)(`span`,{className:`ml-2 inline-flex size-6 items-center justify-center rounded-full border border-background bg-muted text-xs text-muted-foreground`,children:`+3`})]})})}function V(){return(0,M.jsx)(D,{className:`w-full max-w-md`,expandable:!0,title:`3 days remaining in cycle`,headerEnd:(0,M.jsx)(o,{variant:`secondary`,buttonStyle:`ghost`,children:`Billing`}),children:(0,M.jsxs)(`div`,{className:`space-y-5`,children:[(0,M.jsxs)(`div`,{className:`rounded-lg bg-muted/60 p-4 space-y-2`,children:[(0,M.jsxs)(`div`,{className:`flex justify-between text-xs text-muted-foreground font-medium`,children:[(0,M.jsx)(`span`,{children:`Included credit`}),(0,M.jsx)(`span`,{children:`On-demand charges`})]}),(0,M.jsxs)(`div`,{className:`flex justify-between font-semibold`,children:[(0,M.jsx)(`span`,{children:`$18.08 / $20`}),(0,M.jsx)(`span`,{children:`$0`})]})]}),(0,M.jsx)(`dl`,{className:`grid gap-3 text-sm`,children:[[`Requests`,`$210.84`],[`Active CPU`,`$21.95`],[`Events`,`$21.20`],[`Storage usage`,`$20.45`],[`Bandwidth`,`$0.00`]].map(([e,t])=>(0,M.jsxs)(`div`,{className:`flex justify-between`,children:[(0,M.jsx)(r,{tag:`span`,weight:`medium`,children:e}),(0,M.jsx)(r,{tag:`span`,type:`secondary`,children:t})]},e))})]})})}function H(){return(0,M.jsx)(D,{className:`w-full max-w-md`,expandable:{collapsedMaxHeight:`6rem`},title:`Release notes — v0.4.2`,strings:{expandLabel:`Show full notes`,collapseLabel:`Hide details`},children:(0,M.jsxs)(r,{type:`secondary`,className:`leading-relaxed`,children:[`Tightened the admin density tokens, added the new`,(0,M.jsx)(`code`,{className:`mx-1 rounded bg-muted px-1.5 py-0.5 text-xs`,children:`expandable`}),`and `,(0,M.jsx)(`code`,{className:`mx-1 rounded bg-muted px-1.5 py-0.5 text-xs`,children:`headerDivider`}),`flags on SmartCard, and aligned the empty-state primitive with the sibling features. See the changelog for the full story.`]})})}function U(){return(0,M.jsx)(`div`,{className:`w-full max-w-md`,children:(0,M.jsx)(E,{})})}function W(){return(0,M.jsx)(D,{className:`w-full max-w-xs`,icon:(0,M.jsx)(h,{className:`size-4`}),title:`Monthly revenue`,headerEnd:(0,M.jsx)(a,{variant:`success`,children:`+12.4%`}),footerText:`Updated 5 minutes ago`,children:(0,M.jsxs)(`div`,{className:`space-y-1`,children:[(0,M.jsx)(r,{size:`xl`,weight:`semibold`,lineHeight:`none`,className:`text-3xl tabular-nums`,children:`$48,290`}),(0,M.jsx)(r,{size:`xs`,type:`secondary`,children:`vs. $42,950 last month`})]})})}function G(){return(0,M.jsx)(D,{className:`w-full max-w-md`,icon:(0,M.jsx)(A,{className:`size-4`}),title:`Backup ready to restore`,alert:`A snapshot from 12 minutes ago is available.`,alertVariant:`info`,footerSlot:(0,M.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,M.jsx)(o,{variant:`secondary`,buttonStyle:`ghost`,children:`Dismiss`}),(0,M.jsx)(o,{variant:`primary`,children:`Restore`})]}),children:(0,M.jsx)(r,{type:`secondary`,children:`Restoring will replace the current state with the snapshot. This action can be undone within 24 hours.`})})}function K(){return(0,M.jsxs)(b,{className:`w-full max-w-md`,children:[(0,M.jsxs)(x,{children:[(0,M.jsx)(C,{children:`Primitive composition`}),(0,M.jsx)(S,{children:"When `SmartCard` is too opinionated, drop down to the exported primitive parts and assemble the chrome yourself."})]}),(0,M.jsx)(T,{children:(0,M.jsx)(r,{type:`secondary`,children:"`CardShell`, `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, and `CardFooter` are all exported from `base/cards` for advanced layouts."})}),(0,M.jsxs)(w,{className:`justify-end gap-2`,children:[(0,M.jsx)(o,{variant:`secondary`,buttonStyle:`ghost`,children:`Cancel`}),(0,M.jsx)(o,{variant:`primary`,children:`Save`})]})]})}function q(){return(0,M.jsxs)(`div`,{className:`grid w-full grid-cols-1 gap-3 md:grid-cols-3`,children:[(0,M.jsx)(D,{icon:(0,M.jsx)(g,{className:`size-4`}),title:`Active customers`,headerEnd:(0,M.jsx)(c,{className:`size-4 text-muted-foreground`}),className:`cursor-pointer transition-colors hover:bg-muted/40`,children:(0,M.jsx)(r,{size:`xl`,weight:`semibold`,className:`tabular-nums`,children:`2,194`})}),(0,M.jsx)(D,{icon:(0,M.jsx)(l,{className:`size-4`}),title:`Pending invoices`,headerEnd:(0,M.jsx)(c,{className:`size-4 text-muted-foreground`}),className:`cursor-pointer transition-colors hover:bg-muted/40`,children:(0,M.jsx)(r,{size:`xl`,weight:`semibold`,className:`tabular-nums`,children:`$12,840`})}),(0,M.jsx)(D,{icon:(0,M.jsx)(p,{className:`size-4`}),title:`New signups`,headerEnd:(0,M.jsx)(c,{className:`size-4 text-muted-foreground`}),className:`cursor-pointer transition-colors hover:bg-muted/40`,children:(0,M.jsx)(r,{size:`xl`,weight:`semibold`,className:`tabular-nums`,children:`87`})})]})}var J=`import { ArrowUpRight, BellRing, CreditCard, MoreVertical, Pencil, Plus, Sparkles, Trash2, Check, TrendingUp, Users } from 'lucide-react';
2
2
  import { Button } from '@/components/base/buttons';
3
3
  import {
4
4
  SmartCard,
@@ -319,10 +319,10 @@ export function StatRowClickable() {
319
319
  </div>
320
320
  );
321
321
  }
322
- `;function Y(e){let t={code:`code`,p:`p`,...e.components};return j||Z(`Examples`,!1),I||Z(`Examples.AlertVariants`,!0),N||Z(`Examples.Default`,!0),H||Z(`Examples.ExpandableCustomLabels`,!0),V||Z(`Examples.ExpandableUncontrolled`,!0),B||Z(`Examples.HeaderAndFooterDividers`,!0),z||Z(`Examples.HeaderSlots`,!0),W||Z(`Examples.MetricKPICard`,!0),G||Z(`Examples.NotificationCard`,!0),L||Z(`Examples.PaddingSizes`,!0),K||Z(`Examples.PrimitiveComposition`,!0),U||Z(`Examples.Skeleton`,!0),q||Z(`Examples.StatRowClickable`,!0),R||Z(`Examples.SurfaceVariants`,!0),F||Z(`Examples.WithActions`,!0),P||Z(`Examples.WithIconTooltipFooter`,!0),(0,M.jsxs)(n,{title:`Cards (SmartCard)`,description:`The composed card primitive — header (icon, title, suffix, slots), optional alert, expandable body, footer text or slot, and three surface chromes.`,layer:`base`,status:`ready`,sourcePath:`src/components/base/cards`,children:[(0,M.jsx)(i,{title:`Overview`,id:`overview`,children:(0,M.jsxs)(t.p,{children:[(0,M.jsx)(t.code,{children:`SmartCard`}),` is the canonical card surface — every dashboard tile, settings
323
- panel, or KPI block runs through it. Three `,(0,M.jsx)(t.code,{children:`surface`}),` chromes (`,(0,M.jsx)(t.code,{children:`card`}),`, `,(0,M.jsx)(t.code,{children:`flat`}),`,
324
- `,(0,M.jsx)(t.code,{children:`framed`}),`), three padding scales, optional `,(0,M.jsx)(t.code,{children:`headerStart`}),` / `,(0,M.jsx)(t.code,{children:`headerEnd`}),` /
325
- `,(0,M.jsx)(t.code,{children:`headerAction`}),` slots, action menus, alert bands, footer text or `,(0,M.jsx)(t.code,{children:`footerSlot`}),`,
326
- and an `,(0,M.jsx)(t.code,{children:`expandable`}),` body for long content.`]})}),(0,M.jsx)(i,{title:`Default`,id:`default`,children:(0,M.jsx)(o,{name:`Default`,source:J,children:(0,M.jsx)(N,{})})}),(0,M.jsx)(i,{title:`Surface variants`,id:`surfaces`,children:(0,M.jsx)(o,{name:`SurfaceVariants`,source:J,children:(0,M.jsx)(R,{})})}),(0,M.jsx)(i,{title:`Padding sizes`,id:`padding`,children:(0,M.jsx)(o,{name:`PaddingSizes`,source:J,children:(0,M.jsx)(L,{})})}),(0,M.jsxs)(i,{title:`Header composition`,id:`header`,children:[(0,M.jsx)(o,{name:`WithIconTooltipFooter`,source:J,children:(0,M.jsx)(P,{})}),(0,M.jsx)(o,{name:`HeaderSlots`,source:J,children:(0,M.jsx)(z,{})}),(0,M.jsx)(o,{name:`WithActions`,source:J,children:(0,M.jsx)(F,{})}),(0,M.jsx)(o,{name:`HeaderAndFooterDividers`,source:J,children:(0,M.jsx)(B,{})})]}),(0,M.jsx)(i,{title:`Alerts`,id:`alerts`,children:(0,M.jsx)(o,{name:`AlertVariants`,source:J,children:(0,M.jsx)(I,{})})}),(0,M.jsxs)(i,{title:`Expandable`,id:`expandable`,children:[(0,M.jsx)(o,{name:`ExpandableUncontrolled`,source:J,children:(0,M.jsx)(V,{})}),(0,M.jsx)(o,{name:`ExpandableCustomLabels`,source:J,children:(0,M.jsx)(H,{})})]}),(0,M.jsx)(i,{title:`States`,id:`states`,children:(0,M.jsx)(o,{name:`Skeleton`,source:J,children:(0,M.jsx)(U,{})})}),(0,M.jsxs)(i,{title:`Primitive parts`,id:`primitives`,children:[(0,M.jsxs)(t.p,{children:[(0,M.jsx)(t.code,{children:`CardShell`}),`, `,(0,M.jsx)(t.code,{children:`CardHeader`}),`, `,(0,M.jsx)(t.code,{children:`CardTitle`}),`, `,(0,M.jsx)(t.code,{children:`CardDescription`}),`, `,(0,M.jsx)(t.code,{children:`CardContent`}),`,
327
- and `,(0,M.jsx)(t.code,{children:`CardFooter`}),` are exported from `,(0,M.jsx)(t.code,{children:`base/cards`}),` for the rare case when
328
- `,(0,M.jsx)(t.code,{children:`SmartCard`}),`'s composition is too opinionated.`]}),(0,M.jsx)(o,{name:`PrimitiveComposition`,source:J,children:(0,M.jsx)(K,{})})]}),(0,M.jsxs)(i,{title:`Realistic usage`,id:`realistic`,children:[(0,M.jsx)(o,{name:`MetricKPICard`,source:J,children:(0,M.jsx)(W,{})}),(0,M.jsx)(o,{name:`NotificationCard`,source:J,children:(0,M.jsx)(G,{})}),(0,M.jsx)(o,{name:`StatRowClickable`,source:J,children:(0,M.jsx)(q,{})})]}),(0,M.jsx)(i,{title:`API`,id:`api`,children:(0,M.jsx)(y,{component:`SmartCard`})})]})}function X(e={}){let{wrapper:t}=e.components||{};return t?(0,M.jsx)(t,{...e,children:(0,M.jsx)(Y,{...e})}):Y(e)}function Z(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{X as default};
322
+ `;function Y(e){let r={code:`code`,p:`p`,...e.components};return j||Z(`Examples`,!1),I||Z(`Examples.AlertVariants`,!0),N||Z(`Examples.Default`,!0),H||Z(`Examples.ExpandableCustomLabels`,!0),V||Z(`Examples.ExpandableUncontrolled`,!0),B||Z(`Examples.HeaderAndFooterDividers`,!0),z||Z(`Examples.HeaderSlots`,!0),W||Z(`Examples.MetricKPICard`,!0),G||Z(`Examples.NotificationCard`,!0),L||Z(`Examples.PaddingSizes`,!0),K||Z(`Examples.PrimitiveComposition`,!0),U||Z(`Examples.Skeleton`,!0),q||Z(`Examples.StatRowClickable`,!0),R||Z(`Examples.SurfaceVariants`,!0),F||Z(`Examples.WithActions`,!0),P||Z(`Examples.WithIconTooltipFooter`,!0),(0,M.jsxs)(t,{title:`Cards (SmartCard)`,description:`The composed card primitive — header (icon, title, suffix, slots), optional alert, expandable body, footer text or slot, and three surface chromes.`,layer:`base`,status:`ready`,sourcePath:`src/components/base/cards`,children:[(0,M.jsx)(n,{title:`Overview`,id:`overview`,children:(0,M.jsxs)(r.p,{children:[(0,M.jsx)(r.code,{children:`SmartCard`}),` is the canonical card surface — every dashboard tile, settings
323
+ panel, or KPI block runs through it. Three `,(0,M.jsx)(r.code,{children:`surface`}),` chromes (`,(0,M.jsx)(r.code,{children:`card`}),`, `,(0,M.jsx)(r.code,{children:`flat`}),`,
324
+ `,(0,M.jsx)(r.code,{children:`framed`}),`), three padding scales, optional `,(0,M.jsx)(r.code,{children:`headerStart`}),` / `,(0,M.jsx)(r.code,{children:`headerEnd`}),` /
325
+ `,(0,M.jsx)(r.code,{children:`headerAction`}),` slots, action menus, alert bands, footer text or `,(0,M.jsx)(r.code,{children:`footerSlot`}),`,
326
+ and an `,(0,M.jsx)(r.code,{children:`expandable`}),` body for long content.`]})}),(0,M.jsx)(n,{title:`Default`,id:`default`,children:(0,M.jsx)(s,{name:`Default`,source:J,children:(0,M.jsx)(N,{})})}),(0,M.jsx)(n,{title:`Surface variants`,id:`surfaces`,children:(0,M.jsx)(s,{name:`SurfaceVariants`,source:J,children:(0,M.jsx)(R,{})})}),(0,M.jsx)(n,{title:`Padding sizes`,id:`padding`,children:(0,M.jsx)(s,{name:`PaddingSizes`,source:J,children:(0,M.jsx)(L,{})})}),(0,M.jsxs)(n,{title:`Header composition`,id:`header`,children:[(0,M.jsx)(s,{name:`WithIconTooltipFooter`,source:J,children:(0,M.jsx)(P,{})}),(0,M.jsx)(s,{name:`HeaderSlots`,source:J,children:(0,M.jsx)(z,{})}),(0,M.jsx)(s,{name:`WithActions`,source:J,children:(0,M.jsx)(F,{})}),(0,M.jsx)(s,{name:`HeaderAndFooterDividers`,source:J,children:(0,M.jsx)(B,{})})]}),(0,M.jsx)(n,{title:`Alerts`,id:`alerts`,children:(0,M.jsx)(s,{name:`AlertVariants`,source:J,children:(0,M.jsx)(I,{})})}),(0,M.jsxs)(n,{title:`Expandable`,id:`expandable`,children:[(0,M.jsx)(s,{name:`ExpandableUncontrolled`,source:J,children:(0,M.jsx)(V,{})}),(0,M.jsx)(s,{name:`ExpandableCustomLabels`,source:J,children:(0,M.jsx)(H,{})})]}),(0,M.jsx)(n,{title:`States`,id:`states`,children:(0,M.jsx)(s,{name:`Skeleton`,source:J,children:(0,M.jsx)(U,{})})}),(0,M.jsxs)(n,{title:`Primitive parts`,id:`primitives`,children:[(0,M.jsxs)(r.p,{children:[(0,M.jsx)(r.code,{children:`CardShell`}),`, `,(0,M.jsx)(r.code,{children:`CardHeader`}),`, `,(0,M.jsx)(r.code,{children:`CardTitle`}),`, `,(0,M.jsx)(r.code,{children:`CardDescription`}),`, `,(0,M.jsx)(r.code,{children:`CardContent`}),`,
327
+ and `,(0,M.jsx)(r.code,{children:`CardFooter`}),` are exported from `,(0,M.jsx)(r.code,{children:`base/cards`}),` for the rare case when
328
+ `,(0,M.jsx)(r.code,{children:`SmartCard`}),`'s composition is too opinionated.`]}),(0,M.jsx)(s,{name:`PrimitiveComposition`,source:J,children:(0,M.jsx)(K,{})})]}),(0,M.jsxs)(n,{title:`Realistic usage`,id:`realistic`,children:[(0,M.jsx)(s,{name:`MetricKPICard`,source:J,children:(0,M.jsx)(W,{})}),(0,M.jsx)(s,{name:`NotificationCard`,source:J,children:(0,M.jsx)(G,{})}),(0,M.jsx)(s,{name:`StatRowClickable`,source:J,children:(0,M.jsx)(q,{})})]}),(0,M.jsx)(n,{title:`API`,id:`api`,children:(0,M.jsx)(y,{component:`SmartCard`})})]})}function X(e={}){let{wrapper:t}=e.components||{};return t?(0,M.jsx)(t,{...e,children:(0,M.jsx)(Y,{...e})}):Y(e)}function Z(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{X as default};
@@ -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,yr as c}from"./example-BIrQab7K.js";import{t as l}from"./camera-CGKLOOep.js";import{t as u}from"./chevron-left-Ddj6-KOu.js";import{t as d}from"./chevron-right-d-umkBru.js";import{t as f}from"./package-0ZgMoFm1.js";import{t as p}from"./shopping-bag-B5BzpLV5.js";import{t as m}from"./trending-up-HlQQXTth.js";import{a as h,k as g,n as _,s as v}from"./index-Cz4UGUT2.js";import{t as y}from"./props-table-BR-KjRNe.js";import{t as b}from"./smart-card-B4P_C0nk.js";var x=h(`footprints`,[[`path`,{d:`M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z`,key:`1dudjm`}],[`path`,{d:`M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z`,key:`l2t8xc`}],[`path`,{d:`M16 17h4`,key:`1dejxt`}],[`path`,{d:`M4 13h4`,key:`1bwh8b`}]]),S=h(`headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),C=h(`lamp-desk`,[[`path`,{d:`M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5 5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994-2.5-2.5a1 1 0 0 1 0-1.414z`,key:`sb8slu`}],[`path`,{d:`m14.207 4.793-3.414 3.414`,key:`m2x3oj`}],[`path`,{d:`M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z`,key:`8b3myj`}],[`path`,{d:`m9.086 6.5-4.793 4.793a1 1 0 0 0-.18 1.17L7 18`,key:`43s6cu`}]]),w=h(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),T=h(`panel-top`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),E=h(`watch`,[[`path`,{d:`M12 10v2.2l1.6 1`,key:`n3r21l`}],[`path`,{d:`m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05`,key:`18k57s`}],[`path`,{d:`m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05`,key:`16ny36`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}]]);function D(e){return Object.prototype.toString.call(e)===`[object Object]`}function O(e){return D(e)||Array.isArray(e)}function ee(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function k(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!O(r)||!O(i)?r===i:k(r,i)})}function te(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function ne(e,t){if(e.length!==t.length)return!1;let n=te(e),r=te(t);return n.every((e,t)=>{let n=r[t];return k(e,n)})}function A(e){return typeof e==`number`}function re(e){return typeof e==`string`}function j(e){return typeof e==`boolean`}function M(e){return Object.prototype.toString.call(e)===`[object Object]`}function N(e){return Math.abs(e)}function P(e){return Math.sign(e)}function ie(e,t){return N(e-t)}function ae(e,t){return e===0||t===0||N(e)<=N(t)?0:N(ie(N(e),N(t))/e)}function F(e){return Math.round(e*100)/100}function oe(e){return z(e).map(Number)}function I(e){return e[se(e)]}function se(e){return Math.max(0,e.length-1)}function L(e,t){return t===se(e)}function R(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function z(e){return Object.keys(e)}function ce(e,t){return[e,t].reduce((e,t)=>(z(t).forEach(n=>{let r=e[n],i=t[n];e[n]=M(r)&&M(i)?ce(r,i):i}),e),{})}function le(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function ue(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return re(e)?n[e](r):e(t,r,i)}return{measure:o}}function de(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function fe(e,t,n,r){let i=de(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function pe(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function B(e=0,t=0){let n=N(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function me(e,t,n){let{constrain:r}=B(0,e),i=e+1,a=o(t);function o(e){return n?N((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return me(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function he(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=de(),w=de(),T=B(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,ee=!1,k=0,te=0,ne=!1,A=!1,re=!1,M=!1;function F(e){if(!v)return;function n(t){(j(v)||v(e,t))&&z(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,ue).add(r,`contextmenu`,ue).add(r,`click`,fe,!0)}function oe(){C.clear(),w.clear()}function I(){let e=M?n:t;w.add(e,`touchmove`,ce,S).add(e,`touchend`,ue).add(e,`mousemove`,ce,S).add(e,`mouseup`,ue)}function se(e){let t=e.nodeName||``;return x.includes(t)}function L(){return(m?D:E)[M?`mouse`:`touch`]}function R(e,t){let n=d.add(P(e)*-1),r=u.byDistance(e,!m).distance;return m||N(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function z(e){let t=le(e,r);M=t,re=m&&t&&!e.buttons&&ee,ee=ie(i.get(),o.get())>=2,!(t&&e.button!==0)&&(se(e.target)||(ne=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),I(),k=a.readPoint(e),te=a.readPoint(e,y),f.emit(`pointerDown`)))}function ce(e){if(!le(e,r)&&e.touches.length>=2)return ue(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=ie(t,k),c=ie(n,te);if(!A&&!M&&(!e.cancelable||(A=o>c,!A)))return ue(e);let u=a.pointerMove(e);o>h&&(re=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function ue(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*L(),r=R(b(n),t),i=ae(n,r),o=O-10*i,s=_+i/50;A=!1,ne=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),M=!1,f.emit(`pointerUp`)}function fe(e){re&&=(e.stopPropagation(),e.preventDefault(),!1)}function pe(){return ne}return{init:F,destroy:oe,pointerDown:pe}}function ge(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(le(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&N(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function _e(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function ve(e){function t(t){return t/100*e}return{measure:t}}function ye(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(N(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(j(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function be(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=P(a),d=u,x}function p(){return N(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function xe(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=B(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=N(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&N(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Se(e,t,n,r,i){let a=B(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return ie(e,t)<=1}function u(){let e=o[0],t=I(o);return B(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=L(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function Ce(e,t,n){let r=t[0];return{limit:B(n?r-e:I(t),r)}}function we(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=B(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Te(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Ee(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>I(e)[o]-e[0][a]).map(N)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-N(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function De(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=L(n,t);return r?R(I(n[0])+1):i?R(se(a)-I(n)[0]+1,I(n)[0]):e})}return{slideRegistry:l}}function Oe(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>N(e)-N(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>N(e.diff)-N(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>P(e)===r);return a.length?c(a):I(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function ke(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function Ae(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));A(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(j(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function je(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return A(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Me(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=F(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function Ne(e,t,n,r,i,a,o,s,c){let l=.5,u=oe(i),d=oe(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:je(-1),translate:Me(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Pe(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(j(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Fe(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return z(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Ie(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return N(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(I(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=L(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(N)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Le(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=A(n);function p(e,t){return oe(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?oe(e).reduce((n,f,p)=>{let m=I(n)||0,h=m===0,g=f===se(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=N(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Re(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=_e(),w=C.measure(t),T=n.map(C.measure),E=pe(c,l),D=E.measureSize(w),O=ve(D),ee=ue(s,D),k=!d&&!!v,{slideSizes:te,slideSizesWithGaps:ne,startGap:A,endGap:re}=Ie(E,w,T,n,d||!!v,i),j=Le(E,D,g,d,w,T,A,re,2),{snaps:M,snapsAligned:N}=Ee(E,ee,w,T,j),P=-I(M)+I(ne),{snapsContained:ie,scrollContainLimit:ae}=Se(D,P,N,v,2),F=k?ie:N,{limit:L}=Ce(P,F,d),R=me(se(F),u,d),z=R.clone(),ce=oe(n),le=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},B=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},Re=fe(r,i,()=>le(Ge),e=>B(Ge,e)),ze=.68,Be=F[R.get()],Ve=je(Be),He=je(Be),V=je(Be),H=je(Be),U=be(Ve,V,He,H,f,ze),Ue=Oe(d,F,P,L,H),W=ke(Re,R,z,U,Ue,H,o),We=Te(L),G=de(),K=Fe(t,n,o,h),{slideRegistry:q}=De(k,v,F,ae,j,ce),J=Ae(e,n,q,W,U,G,o,S),Ge={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:Re,axis:E,dragHandler:he(E,e,r,i,H,ge(E,i),Ve,Re,W,U,Ue,R,o,O,p,m,_,ze,x),eventStore:G,percentOfView:O,index:R,indexPrevious:z,limit:L,location:Ve,offsetLocation:V,previousLocation:He,options:a,resizeHandler:ye(t,o,i,n,E,y,C),scrollBody:U,scrollBounds:xe(L,V,H,U,O),scrollLooper:we(P,L,V,[Ve,V,He,H]),scrollProgress:We,scrollSnapList:F.map(We.get),scrollSnaps:F,scrollTarget:Ue,scrollTo:W,slideLooper:Ne(E,D,P,te,ne,M,F,V,n),slideFocus:J,slidesHandler:Pe(t,o,b),slidesInView:K,slideIndexes:ce,slideRegistry:q,slidesToScroll:j,target:H,translate:Me(E,t)};return Ge}function ze(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Be={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ve(e){function t(e,t){return ce(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,z(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>z(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function He(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function V(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=Ve(i),o=He(a),s=de(),c=ze(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Be,V.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(re(t)?e.querySelector(t):t)||e.children[0];let r=re(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Re(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(z),_.eventHandler.init(z),_.resizeHandler.init(z),_.slidesHandler.init(z),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(z),x=o.init(z,b)))}function D(e,t){let n=P();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function ee(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function k(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function te(e){k(_.index.add(1).get(),e,-1)}function ne(e){k(_.index.add(-1).get(),e,1)}function A(){return _.index.add(1).get()!==P()}function j(){return _.index.add(-1).get()!==P()}function M(){return _.scrollSnapList}function N(){return _.scrollProgress.get(_.offsetLocation.get())}function P(){return _.index.get()}function ie(){return _.indexPrevious.get()}function ae(){return _.slidesInView.get()}function F(){return _.slidesInView.get(!1)}function oe(){return x}function I(){return _}function se(){return e}function L(){return S}function R(){return C}let z={canScrollNext:A,canScrollPrev:j,containerNode:L,internalEngine:I,destroy:ee,off:p,on:f,emit:m,plugins:oe,previousScrollSnap:ie,reInit:h,rootNode:se,scrollNext:te,scrollPrev:ne,scrollProgress:N,scrollSnapList:M,scrollTo:k,selectedScrollSnap:P,slideNodes:R,slidesInView:ae,slidesNotInView:F};return E(t,n),setTimeout(()=>c.emit(`init`),0),z}V.globalOptions=void 0;var H=t(n());function U(e={},t=[]){let n=(0,H.useRef)(e),r=(0,H.useRef)(t),[i,a]=(0,H.useState)(),[o,s]=(0,H.useState)(),c=(0,H.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,H.useEffect)(()=>{k(n.current,e)||(n.current=e,c())},[e,c]),(0,H.useEffect)(()=>{ne(r.current,t)||(r.current=t,c())},[t,c]),(0,H.useEffect)(()=>{if(ee()&&o){V.globalOptions=U.globalOptions;let e=V(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}U.globalOptions=void 0;var Ue={previousSlide:`Previous slide`,nextSlide:`Next slide`,goToSlide:`Go to slide {index} of {total}`},W=v(),We=(0,H.createContext)(null);function G(){let e=(0,H.useContext)(We);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var K=(0,H.forwardRef)(function({orientation:e=`horizontal`,controlPlacement:t=`outside`,opts:n,setApi:r,plugins:i,className:a,children:o,strings:s,...c},l){let u=g(Ue,s),[d,f]=U({...n,axis:e===`horizontal`?`x`:`y`},i),[p,m]=(0,H.useState)(!1),[h,v]=(0,H.useState)(!1),[y,b]=(0,H.useState)(0),[x,S]=(0,H.useState)([]),C=(0,H.useCallback)(e=>{m(e.canScrollPrev()),v(e.canScrollNext()),b(e.selectedScrollSnap()),S(e.scrollSnapList())},[]),w=(0,H.useCallback)(()=>{f?.scrollPrev()},[f]),T=(0,H.useCallback)(()=>{f?.scrollNext()},[f]),E=(0,H.useCallback)(e=>{f?.scrollTo(e)},[f]),D=(0,H.useCallback)(t=>{let n=e===`vertical`?t.key===`ArrowUp`:t.key===`ArrowLeft`,r=e===`vertical`?t.key===`ArrowDown`:t.key===`ArrowRight`;n?(t.preventDefault(),w()):r&&(t.preventDefault(),T())},[e,T,w]);return(0,H.useEffect)(()=>{f&&r?.(f)},[f,r]),(0,H.useEffect)(()=>{if(f)return C(f),f.on(`reInit`,C),f.on(`select`,C),()=>{f.off(`reInit`,C),f.off(`select`,C)}},[f,C]),(0,W.jsx)(We.Provider,{value:{carouselRef:d,api:f,opts:n,orientation:e,controlPlacement:t,scrollPrev:w,scrollNext:T,scrollTo:E,canScrollPrev:p,canScrollNext:h,selectedIndex:y,scrollSnaps:x,strings:u},children:(0,W.jsx)(`div`,{ref:l,onKeyDownCapture:D,role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,"data-orientation":e,"data-control-placement":t,className:_(`carousel--component relative`,a),...c,children:o})})});K.displayName=`Carousel`;var q=(0,H.forwardRef)(function({className:e,...t},n){let{carouselRef:r,orientation:i}=G();return(0,W.jsx)(`div`,{ref:r,className:`carousel--viewport overflow-hidden`,"data-slot":`carousel-viewport`,children:(0,W.jsx)(`div`,{ref:n,"data-slot":`carousel-content`,className:_(`carousel--content flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})});q.displayName=`CarouselContent`;var J=(0,H.forwardRef)(function({className:e,...t},n){let{orientation:r}=G();return(0,W.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:_(`carousel--item min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})});J.displayName=`CarouselItem`;function Ge(e,t,n){return n===`inline`?`relative translate-x-0 translate-y-0 rotate-0`:t===`vertical`?e===`previous`?n===`outside`?`absolute -top-11 left-1/2 -translate-x-1/2 rotate-90`:`absolute top-2 left-1/2 -translate-x-1/2 rotate-90`:n===`outside`?`absolute -bottom-11 left-1/2 -translate-x-1/2 rotate-90`:`absolute bottom-2 left-1/2 -translate-x-1/2 rotate-90`:e===`previous`?n===`outside`?`absolute top-1/2 -left-11 -translate-y-1/2`:`absolute top-1/2 left-2 -translate-y-1/2`:n===`outside`?`absolute top-1/2 -right-11 -translate-y-1/2`:`absolute top-1/2 right-2 -translate-y-1/2`}var Ke={outside:``,inside:`z-10`,overlay:`z-10 border-background/70 bg-background/85 shadow-md backdrop-blur hover:bg-background`,inline:``},qe={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`},Je={dot:`size-2.5 rounded-full border border-border bg-muted hover:bg-muted-foreground/40`,pill:`h-2 w-2 rounded-sm border border-transparent bg-muted-foreground/25 hover:bg-muted-foreground/40`},Ye={dot:`border-foreground bg-foreground hover:bg-foreground`,pill:`w-5 rounded-full border-transparent bg-foreground hover:bg-foreground`},Y=(0,H.forwardRef)(function({className:e,variant:t=`secondary`,buttonStyle:n=`outline`,size:r=`icon-sm`,placement:i,onClick:a,disabled:s,children:c,...l},d){let{orientation:f,controlPlacement:p,scrollPrev:m,canScrollPrev:h,strings:g}=G(),v=i??p;return(0,W.jsx)(o,{ref:d,...l,type:`button`,"data-slot":`carousel-previous`,"data-placement":v,variant:t,buttonStyle:n,size:r,className:_(`carousel--previous touch-manipulation`,Ge(`previous`,f,v),Ke[v],e),disabled:s||!h,onClick:e=>{a?.(e),e.defaultPrevented||m()},children:c??(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(u,{className:`size-4`,"aria-hidden":`true`}),(0,W.jsx)(`span`,{className:`sr-only`,children:g.previousSlide})]})})});Y.displayName=`CarouselPrevious`;var X=(0,H.forwardRef)(function({className:e,variant:t=`secondary`,buttonStyle:n=`outline`,size:r=`icon-sm`,placement:i,onClick:a,disabled:s,children:c,...l},u){let{orientation:f,controlPlacement:p,scrollNext:m,canScrollNext:h,strings:g}=G(),v=i??p;return(0,W.jsx)(o,{ref:u,...l,type:`button`,"data-slot":`carousel-next`,"data-placement":v,variant:t,buttonStyle:n,size:r,className:_(`carousel--next touch-manipulation`,Ge(`next`,f,v),Ke[v],e),disabled:s||!h,onClick:e=>{a?.(e),e.defaultPrevented||m()},children:c??(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(d,{className:`size-4`,"aria-hidden":`true`}),(0,W.jsx)(`span`,{className:`sr-only`,children:g.nextSlide})]})})});X.displayName=`CarouselNext`;var Xe=(0,H.forwardRef)(function({align:e=`center`,showDots:t=!0,previousProps:n,nextProps:r,dotsProps:i,className:a,children:o,...s},c){return(0,W.jsx)(`div`,{ref:c,"data-slot":`carousel-navigation`,"data-align":e,className:_(`carousel--navigation flex flex-wrap items-center gap-2`,qe[e],a),...s,children:o??(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Y,{placement:`inline`,...n}),t&&(0,W.jsx)(Ze,{...i}),(0,W.jsx)(X,{placement:`inline`,...r})]})})});Xe.displayName=`CarouselNavigation`;var Ze=(0,H.forwardRef)(function({className:e,dotClassName:t,paginationStyle:n=`dot`,...r},i){let{scrollSnaps:a}=G();return a.length<=1?null:(0,W.jsx)(`div`,{ref:i,"data-slot":`carousel-dots`,"data-pagination-style":n,className:_(`carousel--dots flex flex-wrap items-center justify-center gap-1.5`,e),...r,children:a.map((e,r)=>(0,W.jsx)(Qe,{index:r,paginationStyle:n,className:t},r))})});Ze.displayName=`CarouselDots`;var Qe=(0,H.forwardRef)(function({index:e,paginationStyle:t=`dot`,className:n,variant:r=`secondary`,buttonStyle:i=`ghost`,size:a=`icon-xs`,onClick:s,children:c,...l},u){let{selectedIndex:d,scrollSnaps:f,scrollTo:p,strings:m}=G(),h=d===e,g=m.goToSlide.replace(`{index}`,String(e+1)).replace(`{total}`,String(f.length));return(0,W.jsx)(o,{ref:u,...l,type:`button`,"data-slot":`carousel-dot`,"data-selected":h?``:void 0,"data-pagination-style":t,"aria-label":g,"aria-current":h?`true`:void 0,variant:r,buttonStyle:i,size:a,className:_(`carousel--dot min-w-0 shrink-0 p-0 transition-[width,background-color,border-color] duration-200`,Je[t],h&&Ye[t],n),onClick:t=>{s?.(t),t.defaultPrevented||p(e)},children:c??(0,W.jsx)(`span`,{className:`sr-only`,children:g})})});Qe.displayName=`CarouselDot`;var $e=e({GalleryCarousel:()=>at,InsideControlsCarousel:()=>rt,LocalizedControls:()=>ut,ProductCarousel:()=>nt,ProductGridGallery:()=>ot,ResponsiveCarousel:()=>ct,TopNavigationCarousel:()=>st,VerticalCarousel:()=>lt}),Z=[{id:`orbit`,name:`Orbit field watch`,category:`Accessories`,revenue:`$18.4k`,units:`1,284`,stock:`In stock`,icon:E,visualClass:`border-info/20 bg-gradient-to-br from-info/5 via-card to-info/5`},{id:`signal`,name:`Signal headphones`,category:`Audio`,revenue:`$12.1k`,units:`842`,stock:`Low stock`,icon:S,visualClass:`border-primary/20 bg-gradient-to-br from-primary/5 via-card to-primary/5`},{id:`stride`,name:`Stride runner`,category:`Footwear`,revenue:`$8.9k`,units:`694`,stock:`In stock`,icon:x,visualClass:`border-success/20 bg-gradient-to-br from-success/5 via-card to-success/5`},{id:`focus`,name:`Focus camera`,category:`Photo`,revenue:`$7.3k`,units:`512`,stock:`Restock`,icon:l,visualClass:`border-warning/20 bg-gradient-to-br from-warning/10 via-card to-warning/10`},{id:`arc`,name:`Arc desk lamp`,category:`Home office`,revenue:`$6.8k`,units:`438`,stock:`In stock`,icon:C,visualClass:`border-info/20 bg-gradient-to-br from-muted via-card to-info/5`},{id:`terra`,name:`Terra planter`,category:`Garden`,revenue:`$5.6k`,units:`376`,stock:`In stock`,icon:w,visualClass:`border-success/20 bg-gradient-to-br from-muted via-card to-success/5`}];function et(e){return e===`In stock`?`success`:`warning`}function tt({product:e,className:t=`aspect-video w-full`,compact:n=!1}){let i=e.icon;return(0,W.jsxs)(`div`,{role:`img`,"aria-label":e.name,className:[`relative flex items-center justify-center overflow-hidden rounded-md border`,e.visualClass,t].join(` `),children:[(0,W.jsx)(`div`,{className:`absolute inset-x-4 top-4 h-px bg-foreground/10`}),(0,W.jsx)(`div`,{className:`absolute inset-y-4 left-4 w-px bg-foreground/10`}),(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2 text-center`,children:[(0,W.jsx)(`div`,{className:n?`rounded-md border border-border/70 bg-background/70 p-1.5`:`rounded-lg border border-border/70 bg-background/70 p-3 shadow-xs`,children:(0,W.jsx)(i,{className:n?`size-5 text-foreground`:`size-8 text-foreground`,"aria-hidden":`true`})}),!n&&(0,W.jsx)(r,{size:`xs`,weight:`semibold`,className:`max-w-32 truncate`,children:e.name})]})]})}function nt(){return(0,W.jsxs)(K,{className:`w-full max-w-2xl px-11`,children:[(0,W.jsx)(q,{children:Z.map(e=>(0,W.jsx)(J,{children:(0,W.jsx)(b,{padding:`sm`,className:`overflow-hidden`,children:(0,W.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-[1.2fr_1fr] sm:items-center`,children:[(0,W.jsx)(tt,{product:e}),(0,W.jsxs)(`div`,{className:`space-y-2`,children:[(0,W.jsx)(c,{variant:`info`,children:e.category}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(r,{weight:`semibold`,children:e.name}),(0,W.jsx)(r,{size:`xs`,type:`secondary`,children:`Featured product performance`})]}),(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(m,{className:`size-4 text-success`}),(0,W.jsx)(r,{weight:`semibold`,children:e.revenue})]})]})]})})},e.id))}),(0,W.jsx)(Y,{className:`left-0`}),(0,W.jsx)(X,{className:`right-0`}),(0,W.jsx)(Ze,{paginationStyle:`pill`,className:`mt-3`})]})}function rt(){return(0,W.jsxs)(K,{controlPlacement:`inside`,opts:{align:`start`},className:`w-full max-w-3xl`,children:[(0,W.jsx)(q,{children:Z.slice(0,4).map(e=>(0,W.jsx)(J,{className:`md:basis-1/2`,children:(0,W.jsxs)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(f,{className:`size-4`}),padding:`sm`,className:`overflow-hidden`,children:[(0,W.jsx)(tt,{product:e,className:`aspect-[16/10] w-full`}),(0,W.jsx)(r,{size:`xs`,type:`secondary`,className:`mt-3`,children:`Absolute controls sit inside the carousel bounds.`})]})},e.id))}),(0,W.jsx)(Y,{}),(0,W.jsx)(X,{}),(0,W.jsx)(Ze,{className:`mt-3`})]})}function it(){let{selectedIndex:e,scrollTo:t}=G();return(0,W.jsx)(`div`,{className:`mt-3 grid grid-cols-4 gap-2`,children:Z.slice(0,4).map((n,r)=>(0,W.jsx)(o,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`sm`,"aria-label":`Show ${n.name}`,"aria-current":e===r?`true`:void 0,className:`h-auto min-w-0 justify-start rounded-lg p-1 data-[active=true]:ring-2 data-[active=true]:ring-ring/40`,"data-active":e===r?`true`:void 0,onClick:()=>t(r),children:(0,W.jsx)(tt,{product:n,className:`aspect-video w-full`,compact:!0})},n.id))})}function at(){return(0,W.jsxs)(K,{opts:{align:`start`,loop:!0},controlPlacement:`overlay`,className:`w-full max-w-3xl`,strings:{goToSlide:`Show gallery image {index} of {total}`},children:[(0,W.jsxs)(`div`,{className:`relative`,children:[(0,W.jsx)(q,{className:`-ml-3`,children:Z.slice(0,4).map(e=>(0,W.jsx)(J,{className:`pl-3`,children:(0,W.jsx)(b,{padding:`sm`,className:`overflow-hidden`,children:(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[1.4fr_1fr] md:items-center`,children:[(0,W.jsx)(tt,{product:e,className:`aspect-[16/10] w-full`}),(0,W.jsxs)(`div`,{className:`space-y-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(c,{variant:`info`,children:e.category}),(0,W.jsx)(c,{variant:et(e.stock),children:e.stock})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(r,{weight:`semibold`,children:e.name}),(0,W.jsx)(r,{size:`xs`,type:`secondary`,children:`Gallery navigation uses thumbnails plus Embla state.`})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-2`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(r,{size:`xxs`,type:`secondary`,children:`Revenue`}),(0,W.jsx)(r,{weight:`semibold`,children:e.revenue})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(r,{size:`xxs`,type:`secondary`,children:`Units`}),(0,W.jsx)(r,{weight:`semibold`,children:e.units})]})]})]})]})})},e.id))}),(0,W.jsx)(Y,{}),(0,W.jsx)(X,{})]}),(0,W.jsx)(it,{})]})}function ot(){return(0,W.jsxs)(K,{opts:{align:`start`},className:`w-full max-w-5xl`,strings:{goToSlide:`Show product group {index} of {total}`},children:[(0,W.jsx)(q,{children:[Z.slice(0,3),Z.slice(3,6)].map((e,t)=>(0,W.jsx)(J,{children:(0,W.jsx)(`div`,{className:`grid gap-3 md:grid-cols-3`,children:e.map(e=>(0,W.jsxs)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(p,{className:`size-4`}),headerEnd:(0,W.jsx)(c,{variant:et(e.stock),children:e.stock}),padding:`sm`,children:[(0,W.jsx)(tt,{product:e,className:`aspect-[4/3] w-full`}),(0,W.jsxs)(`div`,{className:`mt-3 grid grid-cols-2 gap-2`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(r,{size:`xxs`,type:`secondary`,children:`Revenue`}),(0,W.jsx)(r,{weight:`semibold`,children:e.revenue})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(r,{size:`xxs`,type:`secondary`,children:`Units`}),(0,W.jsx)(r,{weight:`semibold`,children:e.units})]})]})]},e.id))})},t))}),(0,W.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(T,{className:`size-4 text-muted-foreground`}),(0,W.jsx)(r,{size:`xs`,type:`secondary`,children:`Grouped by merchandising priority`})]}),(0,W.jsx)(Xe,{align:`end`,dotsProps:{paginationStyle:`pill`}})]})]})}function st(){return(0,W.jsxs)(K,{controlPlacement:`inline`,opts:{align:`start`},className:`w-full max-w-3xl`,children:[(0,W.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(r,{weight:`semibold`,children:`Relative top controls`}),(0,W.jsx)(r,{size:`xs`,type:`secondary`,children:`Inline arrows and dots stay in document flow.`})]}),(0,W.jsx)(Xe,{align:`end`,dotsProps:{paginationStyle:`pill`}})]}),(0,W.jsx)(q,{children:Z.slice(0,4).map(e=>(0,W.jsx)(J,{className:`sm:basis-1/2`,children:(0,W.jsx)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(p,{className:`size-4`}),headerEnd:(0,W.jsx)(c,{variant:et(e.stock),children:e.stock}),children:(0,W.jsxs)(r,{size:`xs`,type:`secondary`,children:[e.units,` units sold this month.`]})})},e.id))})]})}function ct(){return(0,W.jsxs)(K,{opts:{align:`start`},className:`w-full max-w-4xl px-11`,children:[(0,W.jsx)(q,{children:Z.map(e=>(0,W.jsx)(J,{className:`sm:basis-1/2 lg:basis-1/3`,children:(0,W.jsxs)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(f,{className:`size-4`}),children:[(0,W.jsx)(tt,{product:e,className:`aspect-[4/3] w-full`}),(0,W.jsxs)(r,{size:`xs`,type:`secondary`,className:`mt-3`,children:[`Revenue this month: `,e.revenue]})]})},e.id))}),(0,W.jsx)(Y,{className:`left-0`}),(0,W.jsx)(X,{className:`right-0`})]})}function lt(){return(0,W.jsxs)(K,{orientation:`vertical`,className:`h-80 w-full max-w-md py-11`,children:[(0,W.jsx)(q,{className:`h-64`,children:Z.map(e=>(0,W.jsx)(J,{className:`basis-1/2`,children:(0,W.jsxs)(b,{title:e.name,description:e.category,children:[(0,W.jsx)(r,{size:`xs`,type:`secondary`,children:`Monthly revenue`}),(0,W.jsx)(r,{weight:`semibold`,children:e.revenue})]})},e.id))}),(0,W.jsx)(Y,{className:`top-0`}),(0,W.jsx)(X,{className:`bottom-0`})]})}function ut(){return(0,W.jsxs)(K,{className:`w-full max-w-md px-11`,strings:{previousSlide:`Previous product`,nextSlide:`Next product`,goToSlide:`Show product {index} of {total}`},children:[(0,W.jsx)(q,{children:Z.slice(0,2).map(e=>(0,W.jsx)(J,{children:(0,W.jsx)(b,{title:e.name,description:e.category,children:(0,W.jsx)(r,{size:`xs`,type:`secondary`,children:"Accessible labels are supplied through `strings`."})})},e.id))}),(0,W.jsx)(Y,{className:`left-0`}),(0,W.jsx)(X,{className:`right-0`}),(0,W.jsx)(Ze,{className:`mt-3`})]})}var Q=`import {
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,jr as o,r as s,t as c}from"./example-Cz_880po.js";import{t as l}from"./camera-C16z6v0m.js";import{t as u}from"./chevron-left-BNByuq3g.js";import{t as d}from"./chevron-right-D4pIMCh9.js";import{t as f}from"./package-CjcwDJKu.js";import{t as p}from"./shopping-bag-XmeqUqk9.js";import{t as m}from"./trending-up-0iJl0XvC.js";import{a as h,k as g,n as _,s as v}from"./index-BQIv1ffM.js";import{t as y}from"./props-table-2pIZzGC-.js";import{t as b}from"./smart-card-Dhu_1A_u.js";var x=h(`footprints`,[[`path`,{d:`M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z`,key:`1dudjm`}],[`path`,{d:`M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z`,key:`l2t8xc`}],[`path`,{d:`M16 17h4`,key:`1dejxt`}],[`path`,{d:`M4 13h4`,key:`1bwh8b`}]]),S=h(`headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),C=h(`lamp-desk`,[[`path`,{d:`M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5 5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994-2.5-2.5a1 1 0 0 1 0-1.414z`,key:`sb8slu`}],[`path`,{d:`m14.207 4.793-3.414 3.414`,key:`m2x3oj`}],[`path`,{d:`M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z`,key:`8b3myj`}],[`path`,{d:`m9.086 6.5-4.793 4.793a1 1 0 0 0-.18 1.17L7 18`,key:`43s6cu`}]]),w=h(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),T=h(`panel-top`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),E=h(`watch`,[[`path`,{d:`M12 10v2.2l1.6 1`,key:`n3r21l`}],[`path`,{d:`m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05`,key:`18k57s`}],[`path`,{d:`m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05`,key:`16ny36`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}]]);function D(e){return Object.prototype.toString.call(e)===`[object Object]`}function O(e){return D(e)||Array.isArray(e)}function ee(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function k(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!O(r)||!O(i)?r===i:k(r,i)})}function te(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function ne(e,t){if(e.length!==t.length)return!1;let n=te(e),r=te(t);return n.every((e,t)=>{let n=r[t];return k(e,n)})}function A(e){return typeof e==`number`}function re(e){return typeof e==`string`}function j(e){return typeof e==`boolean`}function M(e){return Object.prototype.toString.call(e)===`[object Object]`}function N(e){return Math.abs(e)}function P(e){return Math.sign(e)}function ie(e,t){return N(e-t)}function ae(e,t){return e===0||t===0||N(e)<=N(t)?0:N(ie(N(e),N(t))/e)}function F(e){return Math.round(e*100)/100}function oe(e){return z(e).map(Number)}function I(e){return e[se(e)]}function se(e){return Math.max(0,e.length-1)}function L(e,t){return t===se(e)}function R(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function z(e){return Object.keys(e)}function ce(e,t){return[e,t].reduce((e,t)=>(z(t).forEach(n=>{let r=e[n],i=t[n];e[n]=M(r)&&M(i)?ce(r,i):i}),e),{})}function le(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function ue(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return re(e)?n[e](r):e(t,r,i)}return{measure:o}}function de(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function fe(e,t,n,r){let i=de(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function pe(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function B(e=0,t=0){let n=N(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function me(e,t,n){let{constrain:r}=B(0,e),i=e+1,a=o(t);function o(e){return n?N((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return me(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function he(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=de(),w=de(),T=B(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,ee=!1,k=0,te=0,ne=!1,A=!1,re=!1,M=!1;function F(e){if(!v)return;function n(t){(j(v)||v(e,t))&&z(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,ue).add(r,`contextmenu`,ue).add(r,`click`,fe,!0)}function oe(){C.clear(),w.clear()}function I(){let e=M?n:t;w.add(e,`touchmove`,ce,S).add(e,`touchend`,ue).add(e,`mousemove`,ce,S).add(e,`mouseup`,ue)}function se(e){let t=e.nodeName||``;return x.includes(t)}function L(){return(m?D:E)[M?`mouse`:`touch`]}function R(e,t){let n=d.add(P(e)*-1),r=u.byDistance(e,!m).distance;return m||N(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function z(e){let t=le(e,r);M=t,re=m&&t&&!e.buttons&&ee,ee=ie(i.get(),o.get())>=2,!(t&&e.button!==0)&&(se(e.target)||(ne=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),I(),k=a.readPoint(e),te=a.readPoint(e,y),f.emit(`pointerDown`)))}function ce(e){if(!le(e,r)&&e.touches.length>=2)return ue(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=ie(t,k),c=ie(n,te);if(!A&&!M&&(!e.cancelable||(A=o>c,!A)))return ue(e);let u=a.pointerMove(e);o>h&&(re=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function ue(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*L(),r=R(b(n),t),i=ae(n,r),o=O-10*i,s=_+i/50;A=!1,ne=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),M=!1,f.emit(`pointerUp`)}function fe(e){re&&=(e.stopPropagation(),e.preventDefault(),!1)}function pe(){return ne}return{init:F,destroy:oe,pointerDown:pe}}function ge(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(le(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&N(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function _e(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function ve(e){function t(t){return t/100*e}return{measure:t}}function ye(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(N(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(j(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function be(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=P(a),d=u,x}function p(){return N(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function xe(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=B(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=N(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&N(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Se(e,t,n,r,i){let a=B(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return ie(e,t)<=1}function u(){let e=o[0],t=I(o);return B(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=L(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function Ce(e,t,n){let r=t[0];return{limit:B(n?r-e:I(t),r)}}function we(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=B(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Te(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Ee(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>I(e)[o]-e[0][a]).map(N)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-N(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function De(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=L(n,t);return r?R(I(n[0])+1):i?R(se(a)-I(n)[0]+1,I(n)[0]):e})}return{slideRegistry:l}}function Oe(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>N(e)-N(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>N(e.diff)-N(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>P(e)===r);return a.length?c(a):I(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function ke(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function Ae(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));A(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(j(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function je(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return A(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Me(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=F(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function Ne(e,t,n,r,i,a,o,s,c){let l=.5,u=oe(i),d=oe(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:je(-1),translate:Me(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Pe(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(j(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Fe(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return z(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Ie(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return N(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(I(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=L(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(N)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Le(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=A(n);function p(e,t){return oe(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?oe(e).reduce((n,f,p)=>{let m=I(n)||0,h=m===0,g=f===se(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=N(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Re(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=_e(),w=C.measure(t),T=n.map(C.measure),E=pe(c,l),D=E.measureSize(w),O=ve(D),ee=ue(s,D),k=!d&&!!v,{slideSizes:te,slideSizesWithGaps:ne,startGap:A,endGap:re}=Ie(E,w,T,n,d||!!v,i),j=Le(E,D,g,d,w,T,A,re,2),{snaps:M,snapsAligned:N}=Ee(E,ee,w,T,j),P=-I(M)+I(ne),{snapsContained:ie,scrollContainLimit:ae}=Se(D,P,N,v,2),F=k?ie:N,{limit:L}=Ce(P,F,d),R=me(se(F),u,d),z=R.clone(),ce=oe(n),le=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},B=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},Re=fe(r,i,()=>le(Ge),e=>B(Ge,e)),ze=.68,Be=F[R.get()],Ve=je(Be),He=je(Be),V=je(Be),H=je(Be),U=be(Ve,V,He,H,f,ze),Ue=Oe(d,F,P,L,H),W=ke(Re,R,z,U,Ue,H,o),We=Te(L),G=de(),K=Fe(t,n,o,h),{slideRegistry:q}=De(k,v,F,ae,j,ce),J=Ae(e,n,q,W,U,G,o,S),Ge={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:Re,axis:E,dragHandler:he(E,e,r,i,H,ge(E,i),Ve,Re,W,U,Ue,R,o,O,p,m,_,ze,x),eventStore:G,percentOfView:O,index:R,indexPrevious:z,limit:L,location:Ve,offsetLocation:V,previousLocation:He,options:a,resizeHandler:ye(t,o,i,n,E,y,C),scrollBody:U,scrollBounds:xe(L,V,H,U,O),scrollLooper:we(P,L,V,[Ve,V,He,H]),scrollProgress:We,scrollSnapList:F.map(We.get),scrollSnaps:F,scrollTarget:Ue,scrollTo:W,slideLooper:Ne(E,D,P,te,ne,M,F,V,n),slideFocus:J,slidesHandler:Pe(t,o,b),slidesInView:K,slideIndexes:ce,slideRegistry:q,slidesToScroll:j,target:H,translate:Me(E,t)};return Ge}function ze(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Be={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ve(e){function t(e,t){return ce(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,z(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>z(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function He(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function V(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=Ve(i),o=He(a),s=de(),c=ze(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Be,V.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(re(t)?e.querySelector(t):t)||e.children[0];let r=re(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Re(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(z),_.eventHandler.init(z),_.resizeHandler.init(z),_.slidesHandler.init(z),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(z),x=o.init(z,b)))}function D(e,t){let n=P();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function ee(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function k(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function te(e){k(_.index.add(1).get(),e,-1)}function ne(e){k(_.index.add(-1).get(),e,1)}function A(){return _.index.add(1).get()!==P()}function j(){return _.index.add(-1).get()!==P()}function M(){return _.scrollSnapList}function N(){return _.scrollProgress.get(_.offsetLocation.get())}function P(){return _.index.get()}function ie(){return _.indexPrevious.get()}function ae(){return _.slidesInView.get()}function F(){return _.slidesInView.get(!1)}function oe(){return x}function I(){return _}function se(){return e}function L(){return S}function R(){return C}let z={canScrollNext:A,canScrollPrev:j,containerNode:L,internalEngine:I,destroy:ee,off:p,on:f,emit:m,plugins:oe,previousScrollSnap:ie,reInit:h,rootNode:se,scrollNext:te,scrollPrev:ne,scrollProgress:N,scrollSnapList:M,scrollTo:k,selectedScrollSnap:P,slideNodes:R,slidesInView:ae,slidesNotInView:F};return E(t,n),setTimeout(()=>c.emit(`init`),0),z}V.globalOptions=void 0;var H=t(n());function U(e={},t=[]){let n=(0,H.useRef)(e),r=(0,H.useRef)(t),[i,a]=(0,H.useState)(),[o,s]=(0,H.useState)(),c=(0,H.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,H.useEffect)(()=>{k(n.current,e)||(n.current=e,c())},[e,c]),(0,H.useEffect)(()=>{ne(r.current,t)||(r.current=t,c())},[t,c]),(0,H.useEffect)(()=>{if(ee()&&o){V.globalOptions=U.globalOptions;let e=V(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}U.globalOptions=void 0;var Ue={previousSlide:`Previous slide`,nextSlide:`Next slide`,goToSlide:`Go to slide {index} of {total}`},W=v(),We=(0,H.createContext)(null);function G(){let e=(0,H.useContext)(We);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var K=(0,H.forwardRef)(function({orientation:e=`horizontal`,controlPlacement:t=`outside`,opts:n,setApi:r,plugins:i,className:a,children:o,strings:s,...c},l){let u=g(Ue,s),[d,f]=U({...n,axis:e===`horizontal`?`x`:`y`},i),[p,m]=(0,H.useState)(!1),[h,v]=(0,H.useState)(!1),[y,b]=(0,H.useState)(0),[x,S]=(0,H.useState)([]),C=(0,H.useCallback)(e=>{m(e.canScrollPrev()),v(e.canScrollNext()),b(e.selectedScrollSnap()),S(e.scrollSnapList())},[]),w=(0,H.useCallback)(()=>{f?.scrollPrev()},[f]),T=(0,H.useCallback)(()=>{f?.scrollNext()},[f]),E=(0,H.useCallback)(e=>{f?.scrollTo(e)},[f]),D=(0,H.useCallback)(t=>{let n=e===`vertical`?t.key===`ArrowUp`:t.key===`ArrowLeft`,r=e===`vertical`?t.key===`ArrowDown`:t.key===`ArrowRight`;n?(t.preventDefault(),w()):r&&(t.preventDefault(),T())},[e,T,w]);return(0,H.useEffect)(()=>{f&&r?.(f)},[f,r]),(0,H.useEffect)(()=>{if(f)return C(f),f.on(`reInit`,C),f.on(`select`,C),()=>{f.off(`reInit`,C),f.off(`select`,C)}},[f,C]),(0,W.jsx)(We.Provider,{value:{carouselRef:d,api:f,opts:n,orientation:e,controlPlacement:t,scrollPrev:w,scrollNext:T,scrollTo:E,canScrollPrev:p,canScrollNext:h,selectedIndex:y,scrollSnaps:x,strings:u},children:(0,W.jsx)(`div`,{ref:l,onKeyDownCapture:D,role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,"data-orientation":e,"data-control-placement":t,className:_(`carousel--component relative`,a),...c,children:o})})});K.displayName=`Carousel`;var q=(0,H.forwardRef)(function({className:e,...t},n){let{carouselRef:r,orientation:i}=G();return(0,W.jsx)(`div`,{ref:r,className:`carousel--viewport overflow-hidden`,"data-slot":`carousel-viewport`,children:(0,W.jsx)(`div`,{ref:n,"data-slot":`carousel-content`,className:_(`carousel--content flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})});q.displayName=`CarouselContent`;var J=(0,H.forwardRef)(function({className:e,...t},n){let{orientation:r}=G();return(0,W.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:_(`carousel--item min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})});J.displayName=`CarouselItem`;function Ge(e,t,n){return n===`inline`?`relative translate-x-0 translate-y-0 rotate-0`:t===`vertical`?e===`previous`?n===`outside`?`absolute -top-11 left-1/2 -translate-x-1/2 rotate-90`:`absolute top-2 left-1/2 -translate-x-1/2 rotate-90`:n===`outside`?`absolute -bottom-11 left-1/2 -translate-x-1/2 rotate-90`:`absolute bottom-2 left-1/2 -translate-x-1/2 rotate-90`:e===`previous`?n===`outside`?`absolute top-1/2 -left-11 -translate-y-1/2`:`absolute top-1/2 left-2 -translate-y-1/2`:n===`outside`?`absolute top-1/2 -right-11 -translate-y-1/2`:`absolute top-1/2 right-2 -translate-y-1/2`}var Ke={outside:``,inside:`z-10`,overlay:`z-10 border-background/70 bg-background/85 shadow-md backdrop-blur hover:bg-background`,inline:``},qe={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`},Je={dot:`size-2.5 rounded-full border border-border bg-muted hover:bg-muted-foreground/40`,pill:`h-2 w-2 rounded-sm border border-transparent bg-muted-foreground/25 hover:bg-muted-foreground/40`},Ye={dot:`border-foreground bg-foreground hover:bg-foreground`,pill:`w-5 rounded-full border-transparent bg-foreground hover:bg-foreground`},Y=(0,H.forwardRef)(function({className:e,variant:t=`secondary`,buttonStyle:n=`outline`,size:r=`icon-sm`,placement:i,onClick:a,disabled:o,children:c,...l},d){let{orientation:f,controlPlacement:p,scrollPrev:m,canScrollPrev:h,strings:g}=G(),v=i??p;return(0,W.jsx)(s,{ref:d,...l,type:`button`,"data-slot":`carousel-previous`,"data-placement":v,variant:t,buttonStyle:n,size:r,className:_(`carousel--previous touch-manipulation`,Ge(`previous`,f,v),Ke[v],e),disabled:o||!h,onClick:e=>{a?.(e),e.defaultPrevented||m()},children:c??(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(u,{className:`size-4`,"aria-hidden":`true`}),(0,W.jsx)(`span`,{className:`sr-only`,children:g.previousSlide})]})})});Y.displayName=`CarouselPrevious`;var X=(0,H.forwardRef)(function({className:e,variant:t=`secondary`,buttonStyle:n=`outline`,size:r=`icon-sm`,placement:i,onClick:a,disabled:o,children:c,...l},u){let{orientation:f,controlPlacement:p,scrollNext:m,canScrollNext:h,strings:g}=G(),v=i??p;return(0,W.jsx)(s,{ref:u,...l,type:`button`,"data-slot":`carousel-next`,"data-placement":v,variant:t,buttonStyle:n,size:r,className:_(`carousel--next touch-manipulation`,Ge(`next`,f,v),Ke[v],e),disabled:o||!h,onClick:e=>{a?.(e),e.defaultPrevented||m()},children:c??(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(d,{className:`size-4`,"aria-hidden":`true`}),(0,W.jsx)(`span`,{className:`sr-only`,children:g.nextSlide})]})})});X.displayName=`CarouselNext`;var Xe=(0,H.forwardRef)(function({align:e=`center`,showDots:t=!0,previousProps:n,nextProps:r,dotsProps:i,className:a,children:o,...s},c){return(0,W.jsx)(`div`,{ref:c,"data-slot":`carousel-navigation`,"data-align":e,className:_(`carousel--navigation flex flex-wrap items-center gap-2`,qe[e],a),...s,children:o??(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Y,{placement:`inline`,...n}),t&&(0,W.jsx)(Ze,{...i}),(0,W.jsx)(X,{placement:`inline`,...r})]})})});Xe.displayName=`CarouselNavigation`;var Ze=(0,H.forwardRef)(function({className:e,dotClassName:t,paginationStyle:n=`dot`,...r},i){let{scrollSnaps:a}=G();return a.length<=1?null:(0,W.jsx)(`div`,{ref:i,"data-slot":`carousel-dots`,"data-pagination-style":n,className:_(`carousel--dots flex flex-wrap items-center justify-center gap-1.5`,e),...r,children:a.map((e,r)=>(0,W.jsx)(Qe,{index:r,paginationStyle:n,className:t},r))})});Ze.displayName=`CarouselDots`;var Qe=(0,H.forwardRef)(function({index:e,paginationStyle:t=`dot`,className:n,variant:r=`secondary`,buttonStyle:i=`ghost`,size:a=`icon-xs`,onClick:o,children:c,...l},u){let{selectedIndex:d,scrollSnaps:f,scrollTo:p,strings:m}=G(),h=d===e,g=m.goToSlide.replace(`{index}`,String(e+1)).replace(`{total}`,String(f.length));return(0,W.jsx)(s,{ref:u,...l,type:`button`,"data-slot":`carousel-dot`,"data-selected":h?``:void 0,"data-pagination-style":t,"aria-label":g,"aria-current":h?`true`:void 0,variant:r,buttonStyle:i,size:a,className:_(`carousel--dot min-w-0 shrink-0 p-0 transition-[width,background-color,border-color] duration-200`,Je[t],h&&Ye[t],n),onClick:t=>{o?.(t),t.defaultPrevented||p(e)},children:c??(0,W.jsx)(`span`,{className:`sr-only`,children:g})})});Qe.displayName=`CarouselDot`;var $e=e({GalleryCarousel:()=>at,InsideControlsCarousel:()=>rt,LocalizedControls:()=>ut,ProductCarousel:()=>nt,ProductGridGallery:()=>ot,ResponsiveCarousel:()=>ct,TopNavigationCarousel:()=>st,VerticalCarousel:()=>lt}),Z=[{id:`orbit`,name:`Orbit field watch`,category:`Accessories`,revenue:`$18.4k`,units:`1,284`,stock:`In stock`,icon:E,visualClass:`border-info/20 bg-gradient-to-br from-info/5 via-card to-info/5`},{id:`signal`,name:`Signal headphones`,category:`Audio`,revenue:`$12.1k`,units:`842`,stock:`Low stock`,icon:S,visualClass:`border-primary/20 bg-gradient-to-br from-primary/5 via-card to-primary/5`},{id:`stride`,name:`Stride runner`,category:`Footwear`,revenue:`$8.9k`,units:`694`,stock:`In stock`,icon:x,visualClass:`border-success/20 bg-gradient-to-br from-success/5 via-card to-success/5`},{id:`focus`,name:`Focus camera`,category:`Photo`,revenue:`$7.3k`,units:`512`,stock:`Restock`,icon:l,visualClass:`border-warning/20 bg-gradient-to-br from-warning/10 via-card to-warning/10`},{id:`arc`,name:`Arc desk lamp`,category:`Home office`,revenue:`$6.8k`,units:`438`,stock:`In stock`,icon:C,visualClass:`border-info/20 bg-gradient-to-br from-muted via-card to-info/5`},{id:`terra`,name:`Terra planter`,category:`Garden`,revenue:`$5.6k`,units:`376`,stock:`In stock`,icon:w,visualClass:`border-success/20 bg-gradient-to-br from-muted via-card to-success/5`}];function et(e){return e===`In stock`?`success`:`warning`}function tt({product:e,className:t=`aspect-video w-full`,compact:n=!1}){let r=e.icon;return(0,W.jsxs)(`div`,{role:`img`,"aria-label":e.name,className:[`relative flex items-center justify-center overflow-hidden rounded-md border`,e.visualClass,t].join(` `),children:[(0,W.jsx)(`div`,{className:`absolute inset-x-4 top-4 h-px bg-foreground/10`}),(0,W.jsx)(`div`,{className:`absolute inset-y-4 left-4 w-px bg-foreground/10`}),(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2 text-center`,children:[(0,W.jsx)(`div`,{className:n?`rounded-md border border-border/70 bg-background/70 p-1.5`:`rounded-lg border border-border/70 bg-background/70 p-3 shadow-xs`,children:(0,W.jsx)(r,{className:n?`size-5 text-foreground`:`size-8 text-foreground`,"aria-hidden":`true`})}),!n&&(0,W.jsx)(a,{size:`xs`,weight:`semibold`,className:`max-w-32 truncate`,children:e.name})]})]})}function nt(){return(0,W.jsxs)(K,{className:`w-full max-w-2xl px-11`,children:[(0,W.jsx)(q,{children:Z.map(e=>(0,W.jsx)(J,{children:(0,W.jsx)(b,{padding:`sm`,className:`overflow-hidden`,children:(0,W.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-[1.2fr_1fr] sm:items-center`,children:[(0,W.jsx)(tt,{product:e}),(0,W.jsxs)(`div`,{className:`space-y-2`,children:[(0,W.jsx)(o,{variant:`info`,children:e.category}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(a,{weight:`semibold`,children:e.name}),(0,W.jsx)(a,{size:`xs`,type:`secondary`,children:`Featured product performance`})]}),(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(m,{className:`size-4 text-success`}),(0,W.jsx)(a,{weight:`semibold`,children:e.revenue})]})]})]})})},e.id))}),(0,W.jsx)(Y,{className:`left-0`}),(0,W.jsx)(X,{className:`right-0`}),(0,W.jsx)(Ze,{paginationStyle:`pill`,className:`mt-3`})]})}function rt(){return(0,W.jsxs)(K,{controlPlacement:`inside`,opts:{align:`start`},className:`w-full max-w-3xl`,children:[(0,W.jsx)(q,{children:Z.slice(0,4).map(e=>(0,W.jsx)(J,{className:`md:basis-1/2`,children:(0,W.jsxs)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(f,{className:`size-4`}),padding:`sm`,className:`overflow-hidden`,children:[(0,W.jsx)(tt,{product:e,className:`aspect-[16/10] w-full`}),(0,W.jsx)(a,{size:`xs`,type:`secondary`,className:`mt-3`,children:`Absolute controls sit inside the carousel bounds.`})]})},e.id))}),(0,W.jsx)(Y,{}),(0,W.jsx)(X,{}),(0,W.jsx)(Ze,{className:`mt-3`})]})}function it(){let{selectedIndex:e,scrollTo:t}=G();return(0,W.jsx)(`div`,{className:`mt-3 grid grid-cols-4 gap-2`,children:Z.slice(0,4).map((n,r)=>(0,W.jsx)(s,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`sm`,"aria-label":`Show ${n.name}`,"aria-current":e===r?`true`:void 0,className:`h-auto min-w-0 justify-start rounded-lg p-1 data-[active=true]:ring-2 data-[active=true]:ring-ring/40`,"data-active":e===r?`true`:void 0,onClick:()=>t(r),children:(0,W.jsx)(tt,{product:n,className:`aspect-video w-full`,compact:!0})},n.id))})}function at(){return(0,W.jsxs)(K,{opts:{align:`start`,loop:!0},controlPlacement:`overlay`,className:`w-full max-w-3xl`,strings:{goToSlide:`Show gallery image {index} of {total}`},children:[(0,W.jsxs)(`div`,{className:`relative`,children:[(0,W.jsx)(q,{className:`-ml-3`,children:Z.slice(0,4).map(e=>(0,W.jsx)(J,{className:`pl-3`,children:(0,W.jsx)(b,{padding:`sm`,className:`overflow-hidden`,children:(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[1.4fr_1fr] md:items-center`,children:[(0,W.jsx)(tt,{product:e,className:`aspect-[16/10] w-full`}),(0,W.jsxs)(`div`,{className:`space-y-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(o,{variant:`info`,children:e.category}),(0,W.jsx)(o,{variant:et(e.stock),children:e.stock})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(a,{weight:`semibold`,children:e.name}),(0,W.jsx)(a,{size:`xs`,type:`secondary`,children:`Gallery navigation uses thumbnails plus Embla state.`})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-2`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(a,{size:`xxs`,type:`secondary`,children:`Revenue`}),(0,W.jsx)(a,{weight:`semibold`,children:e.revenue})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(a,{size:`xxs`,type:`secondary`,children:`Units`}),(0,W.jsx)(a,{weight:`semibold`,children:e.units})]})]})]})]})})},e.id))}),(0,W.jsx)(Y,{}),(0,W.jsx)(X,{})]}),(0,W.jsx)(it,{})]})}function ot(){return(0,W.jsxs)(K,{opts:{align:`start`},className:`w-full max-w-5xl`,strings:{goToSlide:`Show product group {index} of {total}`},children:[(0,W.jsx)(q,{children:[Z.slice(0,3),Z.slice(3,6)].map((e,t)=>(0,W.jsx)(J,{children:(0,W.jsx)(`div`,{className:`grid gap-3 md:grid-cols-3`,children:e.map(e=>(0,W.jsxs)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(p,{className:`size-4`}),headerEnd:(0,W.jsx)(o,{variant:et(e.stock),children:e.stock}),padding:`sm`,children:[(0,W.jsx)(tt,{product:e,className:`aspect-[4/3] w-full`}),(0,W.jsxs)(`div`,{className:`mt-3 grid grid-cols-2 gap-2`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(a,{size:`xxs`,type:`secondary`,children:`Revenue`}),(0,W.jsx)(a,{weight:`semibold`,children:e.revenue})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(a,{size:`xxs`,type:`secondary`,children:`Units`}),(0,W.jsx)(a,{weight:`semibold`,children:e.units})]})]})]},e.id))})},t))}),(0,W.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(T,{className:`size-4 text-muted-foreground`}),(0,W.jsx)(a,{size:`xs`,type:`secondary`,children:`Grouped by merchandising priority`})]}),(0,W.jsx)(Xe,{align:`end`,dotsProps:{paginationStyle:`pill`}})]})]})}function st(){return(0,W.jsxs)(K,{controlPlacement:`inline`,opts:{align:`start`},className:`w-full max-w-3xl`,children:[(0,W.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(a,{weight:`semibold`,children:`Relative top controls`}),(0,W.jsx)(a,{size:`xs`,type:`secondary`,children:`Inline arrows and dots stay in document flow.`})]}),(0,W.jsx)(Xe,{align:`end`,dotsProps:{paginationStyle:`pill`}})]}),(0,W.jsx)(q,{children:Z.slice(0,4).map(e=>(0,W.jsx)(J,{className:`sm:basis-1/2`,children:(0,W.jsx)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(p,{className:`size-4`}),headerEnd:(0,W.jsx)(o,{variant:et(e.stock),children:e.stock}),children:(0,W.jsxs)(a,{size:`xs`,type:`secondary`,children:[e.units,` units sold this month.`]})})},e.id))})]})}function ct(){return(0,W.jsxs)(K,{opts:{align:`start`},className:`w-full max-w-4xl px-11`,children:[(0,W.jsx)(q,{children:Z.map(e=>(0,W.jsx)(J,{className:`sm:basis-1/2 lg:basis-1/3`,children:(0,W.jsxs)(b,{title:e.name,description:e.category,icon:(0,W.jsx)(f,{className:`size-4`}),children:[(0,W.jsx)(tt,{product:e,className:`aspect-[4/3] w-full`}),(0,W.jsxs)(a,{size:`xs`,type:`secondary`,className:`mt-3`,children:[`Revenue this month: `,e.revenue]})]})},e.id))}),(0,W.jsx)(Y,{className:`left-0`}),(0,W.jsx)(X,{className:`right-0`})]})}function lt(){return(0,W.jsxs)(K,{orientation:`vertical`,className:`h-80 w-full max-w-md py-11`,children:[(0,W.jsx)(q,{className:`h-64`,children:Z.map(e=>(0,W.jsx)(J,{className:`basis-1/2`,children:(0,W.jsxs)(b,{title:e.name,description:e.category,children:[(0,W.jsx)(a,{size:`xs`,type:`secondary`,children:`Monthly revenue`}),(0,W.jsx)(a,{weight:`semibold`,children:e.revenue})]})},e.id))}),(0,W.jsx)(Y,{className:`top-0`}),(0,W.jsx)(X,{className:`bottom-0`})]})}function ut(){return(0,W.jsxs)(K,{className:`w-full max-w-md px-11`,strings:{previousSlide:`Previous product`,nextSlide:`Next product`,goToSlide:`Show product {index} of {total}`},children:[(0,W.jsx)(q,{children:Z.slice(0,2).map(e=>(0,W.jsx)(J,{children:(0,W.jsx)(b,{title:e.name,description:e.category,children:(0,W.jsx)(a,{size:`xs`,type:`secondary`,children:"Accessible labels are supplied through `strings`."})})},e.id))}),(0,W.jsx)(Y,{className:`left-0`}),(0,W.jsx)(X,{className:`right-0`}),(0,W.jsx)(Ze,{className:`mt-3`})]})}var Q=`import {
2
2
  Camera,
3
3
  Footprints,
4
4
  Headphones,
@@ -427,11 +427,11 @@ export function LocalizedControls() {
427
427
  </Carousel>
428
428
  );
429
429
  }
430
- `;function dt(e){let t={code:`code`,h4:`h4`,p:`p`,pre:`pre`,...e.components};return $e||$(`Examples`,!1),at||$(`Examples.GalleryCarousel`,!0),rt||$(`Examples.InsideControlsCarousel`,!0),ut||$(`Examples.LocalizedControls`,!0),nt||$(`Examples.ProductCarousel`,!0),ot||$(`Examples.ProductGridGallery`,!0),ct||$(`Examples.ResponsiveCarousel`,!0),st||$(`Examples.TopNavigationCarousel`,!0),lt||$(`Examples.VerticalCarousel`,!0),(0,W.jsxs)(i,{title:`Carousel`,description:`Embla-backed carousel with keyboard navigation, orientation support, plugins, and base Button controls.`,layer:`base`,status:`ready`,sourcePath:`src/components/base/carousel`,children:[(0,W.jsx)(a,{title:`Overview`,id:`overview`,children:(0,W.jsxs)(t.p,{children:[(0,W.jsx)(t.code,{children:`Carousel`}),` is the package-owned Embla wrapper. Importing it requires the
430
+ `;function dt(e){let t={code:`code`,h4:`h4`,p:`p`,pre:`pre`,...e.components};return $e||$(`Examples`,!1),at||$(`Examples.GalleryCarousel`,!0),rt||$(`Examples.InsideControlsCarousel`,!0),ut||$(`Examples.LocalizedControls`,!0),nt||$(`Examples.ProductCarousel`,!0),ot||$(`Examples.ProductGridGallery`,!0),ct||$(`Examples.ResponsiveCarousel`,!0),st||$(`Examples.TopNavigationCarousel`,!0),lt||$(`Examples.VerticalCarousel`,!0),(0,W.jsxs)(r,{title:`Carousel`,description:`Embla-backed carousel with keyboard navigation, orientation support, plugins, and base Button controls.`,layer:`base`,status:`ready`,sourcePath:`src/components/base/carousel`,children:[(0,W.jsx)(i,{title:`Overview`,id:`overview`,children:(0,W.jsxs)(t.p,{children:[(0,W.jsx)(t.code,{children:`Carousel`}),` is the package-owned Embla wrapper. Importing it requires the
431
431
  optional `,(0,W.jsx)(t.code,{children:`embla-carousel-react`}),` peer; apps that never import `,(0,W.jsx)(t.code,{children:`base/carousel`}),`
432
432
  do not need that dependency. Pagination can use compact round dots or the
433
433
  pill treatment via `,(0,W.jsx)(t.code,{children:`paginationStyle="pill"`}),` on `,(0,W.jsx)(t.code,{children:`CarouselDots`}),` or
434
- `,(0,W.jsx)(t.code,{children:`CarouselNavigation`}),` `,(0,W.jsx)(t.code,{children:`dotsProps`}),`.`]})}),(0,W.jsxs)(a,{title:`Usage`,id:`usage`,children:[(0,W.jsxs)(t.p,{children:[`Install `,(0,W.jsx)(t.code,{children:`embla-carousel-react`}),` in apps that import this exact entrypoint, then
434
+ `,(0,W.jsx)(t.code,{children:`CarouselNavigation`}),` `,(0,W.jsx)(t.code,{children:`dotsProps`}),`.`]})}),(0,W.jsxs)(i,{title:`Usage`,id:`usage`,children:[(0,W.jsxs)(t.p,{children:[`Install `,(0,W.jsx)(t.code,{children:`embla-carousel-react`}),` in apps that import this exact entrypoint, then
435
435
  import the carousel family:`]}),(0,W.jsx)(t.pre,{children:(0,W.jsx)(t.code,{className:`language-tsx`,children:`import {
436
436
  Carousel,
437
437
  CarouselContent,
@@ -446,4 +446,4 @@ or vertical layouts, and `,(0,W.jsx)(t.code,{children:`setApi`}),` when a compos
446
446
  the Embla API. Choose root `,(0,W.jsx)(t.code,{children:`controlPlacement`}),` or per-control `,(0,W.jsx)(t.code,{children:`placement`}),` for
447
447
  outside, inside, overlay, or inline arrows. Use `,(0,W.jsx)(t.code,{children:`CarouselNavigation`}),` when arrows
448
448
  and pagination should live in the document flow, and pass `,(0,W.jsx)(t.code,{children:`strings`}),` to override
449
- all accessible labels.`]})]}),(0,W.jsxs)(a,{title:`Examples`,id:`examples`,children:[(0,W.jsx)(s,{name:`ProductCarousel`,source:Q,children:(0,W.jsx)(nt,{})}),(0,W.jsx)(s,{name:`InsideControlsCarousel`,source:Q,children:(0,W.jsx)(rt,{})}),(0,W.jsx)(s,{name:`GalleryCarousel`,source:Q,children:(0,W.jsx)(at,{})}),(0,W.jsx)(s,{name:`ProductGridGallery`,source:Q,children:(0,W.jsx)(ot,{})}),(0,W.jsx)(s,{name:`TopNavigationCarousel`,source:Q,children:(0,W.jsx)(st,{})}),(0,W.jsx)(s,{name:`ResponsiveCarousel`,source:Q,children:(0,W.jsx)(ct,{})}),(0,W.jsx)(s,{name:`VerticalCarousel`,source:Q,children:(0,W.jsx)(lt,{})}),(0,W.jsx)(s,{name:`LocalizedControls`,source:Q,children:(0,W.jsx)(ut,{})})]}),(0,W.jsxs)(a,{title:`API`,id:`api`,children:[(0,W.jsx)(t.h4,{children:`Carousel`}),(0,W.jsx)(y,{component:`Carousel`}),(0,W.jsx)(t.h4,{children:`CarouselPrevious`}),(0,W.jsx)(y,{component:`CarouselPrevious`}),(0,W.jsx)(t.h4,{children:`CarouselNext`}),(0,W.jsx)(y,{component:`CarouselNext`}),(0,W.jsx)(t.h4,{children:`CarouselNavigation`}),(0,W.jsx)(y,{component:`CarouselNavigation`}),(0,W.jsx)(t.h4,{children:`CarouselDots`}),(0,W.jsx)(y,{component:`CarouselDots`}),(0,W.jsx)(t.h4,{children:`CarouselDot`}),(0,W.jsx)(y,{component:`CarouselDot`})]})]})}function ft(e={}){let{wrapper:t}=e.components||{};return t?(0,W.jsx)(t,{...e,children:(0,W.jsx)(dt,{...e})}):dt(e)}function $(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{ft as default};
449
+ all accessible labels.`]})]}),(0,W.jsxs)(i,{title:`Examples`,id:`examples`,children:[(0,W.jsx)(c,{name:`ProductCarousel`,source:Q,children:(0,W.jsx)(nt,{})}),(0,W.jsx)(c,{name:`InsideControlsCarousel`,source:Q,children:(0,W.jsx)(rt,{})}),(0,W.jsx)(c,{name:`GalleryCarousel`,source:Q,children:(0,W.jsx)(at,{})}),(0,W.jsx)(c,{name:`ProductGridGallery`,source:Q,children:(0,W.jsx)(ot,{})}),(0,W.jsx)(c,{name:`TopNavigationCarousel`,source:Q,children:(0,W.jsx)(st,{})}),(0,W.jsx)(c,{name:`ResponsiveCarousel`,source:Q,children:(0,W.jsx)(ct,{})}),(0,W.jsx)(c,{name:`VerticalCarousel`,source:Q,children:(0,W.jsx)(lt,{})}),(0,W.jsx)(c,{name:`LocalizedControls`,source:Q,children:(0,W.jsx)(ut,{})})]}),(0,W.jsxs)(i,{title:`API`,id:`api`,children:[(0,W.jsx)(t.h4,{children:`Carousel`}),(0,W.jsx)(y,{component:`Carousel`}),(0,W.jsx)(t.h4,{children:`CarouselPrevious`}),(0,W.jsx)(y,{component:`CarouselPrevious`}),(0,W.jsx)(t.h4,{children:`CarouselNext`}),(0,W.jsx)(y,{component:`CarouselNext`}),(0,W.jsx)(t.h4,{children:`CarouselNavigation`}),(0,W.jsx)(y,{component:`CarouselNavigation`}),(0,W.jsx)(t.h4,{children:`CarouselDots`}),(0,W.jsx)(y,{component:`CarouselDots`}),(0,W.jsx)(t.h4,{children:`CarouselDot`}),(0,W.jsx)(y,{component:`CarouselDot`})]})]})}function ft(e={}){let{wrapper:t}=e.components||{};return t?(0,W.jsx)(t,{...e,children:(0,W.jsx)(dt,{...e})}):dt(e)}function $(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{ft as default};