@customafk/lunas-ui 0.2.53 → 0.2.55
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.
- package/dist/{alert-CB79DQwK.d.mts → alert-Bip5XjBw.d.cts} +5 -7
- package/dist/{alert-Ca5wFNXF.d.cts → alert-Bip5XjBw.d.mts} +5 -7
- package/dist/alert-D31c6DLq.cjs +2 -0
- package/dist/{alert-DDdHIRib.cjs.map → alert-D31c6DLq.cjs.map} +1 -1
- package/dist/{alert-BEcGZfPW.mjs → alert-OD1KJTEV.mjs} +1 -1
- package/dist/{alert-BEcGZfPW.mjs.map → alert-OD1KJTEV.mjs.map} +1 -1
- package/dist/{badge-DYo5Diiy.d.cts → badge-D0InQSvM.d.cts} +4 -6
- package/dist/{badge-CQygfYGk.d.mts → badge-D0InQSvM.d.mts} +4 -6
- package/dist/{button-D-pWsdxT.d.cts → button-DIqm3YRo.d.cts} +4 -7
- package/dist/{button-CwxEnAw3.d.mts → button-DIqm3YRo.d.mts} +4 -7
- package/dist/button.variants-DOglUhSE.cjs +2 -0
- package/dist/{button.variants-4kw6plrv.cjs.map → button.variants-DOglUhSE.cjs.map} +1 -1
- package/dist/{button.variants-DkMqWB8G.mjs → button.variants-pziHKxvE.mjs} +1 -1
- package/dist/{button.variants-DkMqWB8G.mjs.map → button.variants-pziHKxvE.mjs.map} +1 -1
- package/dist/cards/grid-product-card.cjs +2 -1
- package/dist/cards/grid-product-card.cjs.map +1 -0
- package/dist/cards/grid-product-card.d.cts +30 -2
- package/dist/cards/grid-product-card.d.mts +30 -2
- package/dist/cards/grid-product-card.mjs +2 -1
- package/dist/cards/grid-product-card.mjs.map +1 -0
- package/dist/cards/product-card.cjs +2 -1
- package/dist/cards/product-card.cjs.map +1 -0
- package/dist/cards/product-card.d.cts +30 -2
- package/dist/cards/product-card.d.mts +30 -2
- package/dist/cards/product-card.mjs +2 -1
- package/dist/cards/product-card.mjs.map +1 -0
- package/dist/cards/simple-card.cjs +2 -1
- package/dist/cards/simple-card.cjs.map +1 -0
- package/dist/cards/simple-card.d.cts +29 -2
- package/dist/cards/simple-card.d.mts +29 -2
- package/dist/cards/simple-card.mjs +2 -1
- package/dist/cards/simple-card.mjs.map +1 -0
- package/dist/close-BYHgEZvZ.cjs +2 -0
- package/dist/close-BYHgEZvZ.cjs.map +1 -0
- package/dist/{close-Co-WLsSG.mjs → close-DYJZ8fkh.mjs} +1 -1
- package/dist/close-DYJZ8fkh.mjs.map +1 -0
- package/dist/cms-layout-DhZiYGI7.cjs +2 -0
- package/dist/cms-layout-DhZiYGI7.cjs.map +1 -0
- package/dist/cms-layout-IwpD0LvR.mjs +2 -0
- package/dist/cms-layout-IwpD0LvR.mjs.map +1 -0
- package/dist/data-display/country.cjs +2 -1
- package/dist/data-display/country.cjs.map +1 -0
- package/dist/data-display/country.d.cts +21 -2
- package/dist/data-display/country.d.mts +21 -2
- package/dist/data-display/country.mjs +2 -1
- package/dist/data-display/country.mjs.map +1 -0
- package/dist/data-display/data-list.cjs +2 -1
- package/dist/data-display/data-list.cjs.map +1 -0
- package/dist/data-display/data-list.d.cts +38 -2
- package/dist/data-display/data-list.d.mts +38 -2
- package/dist/data-display/data-list.mjs +2 -1
- package/dist/data-display/data-list.mjs.map +1 -0
- package/dist/data-display/date-tooltip.cjs +2 -1
- package/dist/data-display/date-tooltip.cjs.map +1 -0
- package/dist/data-display/date-tooltip.d.cts +18 -2
- package/dist/data-display/date-tooltip.d.mts +18 -2
- package/dist/data-display/date-tooltip.mjs +2 -1
- package/dist/data-display/date-tooltip.mjs.map +1 -0
- package/dist/data-display/date.cjs +1 -1
- package/dist/data-display/date.d.cts +39 -2
- package/dist/data-display/date.d.mts +39 -2
- package/dist/data-display/date.mjs +1 -1
- package/dist/data-display/empty.cjs +2 -1
- package/dist/data-display/empty.cjs.map +1 -0
- package/dist/data-display/empty.d.cts +19 -2
- package/dist/data-display/empty.d.mts +19 -2
- package/dist/data-display/empty.mjs +2 -1
- package/dist/data-display/empty.mjs.map +1 -0
- package/dist/data-display/name.cjs +2 -1
- package/dist/data-display/name.cjs.map +1 -0
- package/dist/data-display/name.d.cts +18 -2
- package/dist/data-display/name.d.mts +18 -2
- package/dist/data-display/name.mjs +2 -1
- package/dist/data-display/name.mjs.map +1 -0
- package/dist/data-display/phone-number.cjs +2 -1
- package/dist/data-display/phone-number.cjs.map +1 -0
- package/dist/data-display/phone-number.d.cts +18 -2
- package/dist/data-display/phone-number.d.mts +18 -2
- package/dist/data-display/phone-number.mjs +2 -1
- package/dist/data-display/phone-number.mjs.map +1 -0
- package/dist/data-display/role-badge.cjs +2 -1
- package/dist/data-display/role-badge.cjs.map +1 -0
- package/dist/data-display/role-badge.d.cts +21 -2
- package/dist/data-display/role-badge.d.mts +21 -2
- package/dist/data-display/role-badge.mjs +2 -1
- package/dist/data-display/role-badge.mjs.map +1 -0
- package/dist/data-display/statistic.cjs +2 -1
- package/dist/data-display/statistic.cjs.map +1 -0
- package/dist/data-display/statistic.d.cts +45 -2
- package/dist/data-display/statistic.d.mts +45 -2
- package/dist/data-display/statistic.mjs +2 -1
- package/dist/data-display/statistic.mjs.map +1 -0
- package/dist/data-display/user.cjs +2 -1
- package/dist/data-display/user.cjs.map +1 -0
- package/dist/data-display/user.d.cts +20 -2
- package/dist/data-display/user.d.mts +20 -2
- package/dist/data-display/user.mjs +2 -1
- package/dist/data-display/user.mjs.map +1 -0
- package/dist/date-B3cozmfV.cjs +2 -0
- package/dist/date-B3cozmfV.cjs.map +1 -0
- package/dist/{date-88lk-VJF.mjs → date-Nsz0Pewe.mjs} +1 -1
- package/dist/date-Nsz0Pewe.mjs.map +1 -0
- package/dist/{dialog-DokGVUbC.d.mts → dialog-BASlxWF_.d.cts} +12 -15
- package/dist/{dialog-xPhSkLmg.d.cts → dialog-BASlxWF_.d.mts} +12 -15
- package/dist/dialogs/confirm-dialog.cjs +2 -1
- package/dist/dialogs/confirm-dialog.cjs.map +1 -0
- package/dist/dialogs/confirm-dialog.d.cts +142 -2
- package/dist/dialogs/confirm-dialog.d.mts +142 -2
- package/dist/dialogs/confirm-dialog.mjs +2 -1
- package/dist/dialogs/confirm-dialog.mjs.map +1 -0
- package/dist/dialogs/detail-dialog/components/sidebar.cjs +2 -1
- package/dist/dialogs/detail-dialog/components/sidebar.cjs.map +1 -0
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +36 -51
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +36 -51
- package/dist/dialogs/detail-dialog/components/sidebar.mjs +2 -1
- package/dist/dialogs/detail-dialog/components/sidebar.mjs.map +1 -0
- package/dist/dialogs/detail-dialog/index.cjs +2 -1
- package/dist/dialogs/detail-dialog/index.cjs.map +1 -0
- package/dist/dialogs/detail-dialog/index.d.cts +36 -2
- package/dist/dialogs/detail-dialog/index.d.mts +36 -2
- package/dist/dialogs/detail-dialog/index.mjs +2 -1
- package/dist/dialogs/detail-dialog/index.mjs.map +1 -0
- package/dist/dialogs/error-dialog.cjs +2 -1
- package/dist/dialogs/error-dialog.cjs.map +1 -0
- package/dist/dialogs/error-dialog.d.cts +22 -2
- package/dist/dialogs/error-dialog.d.mts +22 -2
- package/dist/dialogs/error-dialog.mjs +2 -1
- package/dist/dialogs/error-dialog.mjs.map +1 -0
- package/dist/dialogs/loading-dialog.cjs +2 -1
- package/dist/dialogs/loading-dialog.cjs.map +1 -0
- package/dist/dialogs/loading-dialog.d.cts +19 -2
- package/dist/dialogs/loading-dialog.d.mts +19 -2
- package/dist/dialogs/loading-dialog.mjs +2 -1
- package/dist/dialogs/loading-dialog.mjs.map +1 -0
- package/dist/dist-CGlSRti2.cjs +2 -0
- package/dist/{dist-Cx5ufCdr.cjs.map → dist-CGlSRti2.cjs.map} +1 -1
- package/dist/{dist-DVrfqn8H.mjs → dist-CtTonIm8.mjs} +1 -1
- package/dist/{dist-DVrfqn8H.mjs.map → dist-CtTonIm8.mjs.map} +1 -1
- package/dist/features/descriptions/index.cjs +2 -1
- package/dist/features/descriptions/index.cjs.map +1 -0
- package/dist/features/descriptions/index.d.cts +231 -2
- package/dist/features/descriptions/index.d.mts +231 -3
- package/dist/features/descriptions/index.mjs +2 -1
- package/dist/features/descriptions/index.mjs.map +1 -0
- package/dist/features/search-modal/index.cjs +1 -1
- package/dist/features/search-modal/index.d.cts +14 -2
- package/dist/features/search-modal/index.d.mts +14 -2
- package/dist/features/search-modal/index.mjs +1 -1
- package/dist/features/tables/index.cjs +1 -1
- package/dist/features/tables/index.d.cts +1 -1
- package/dist/features/tables/index.d.mts +1 -2
- package/dist/features/tables/index.mjs +1 -1
- package/dist/features/tanstack-form/index.cjs +1 -1
- package/dist/features/tanstack-form/index.d.cts +1 -1
- package/dist/features/tanstack-form/index.d.mts +1 -1
- package/dist/features/tanstack-form/index.mjs +1 -1
- package/dist/features/text-editor/index.cjs +1 -1
- package/dist/features/text-editor/index.d.cts +2 -2
- package/dist/features/text-editor/index.d.mts +2 -2
- package/dist/features/text-editor/index.mjs +1 -1
- package/dist/heading-DLjnJc1q.cjs +2 -0
- package/dist/{heading-tGTqk3pA.cjs.map → heading-DLjnJc1q.cjs.map} +1 -1
- package/dist/heading-Fajfx88p.mjs +2 -0
- package/dist/{heading-De4Pn3mZ.mjs.map → heading-Fajfx88p.mjs.map} +1 -1
- package/dist/index-COLxGpG6.d.cts +3341 -0
- package/dist/index-COLxGpG6.d.mts +3341 -0
- package/dist/{index-BOLiQQmh.d.mts → index-Cqe6rsMe.d.cts} +170 -345
- package/dist/{index-C33ZNe5s.d.cts → index-DOaKN0wJ.d.cts} +5 -7
- package/dist/{index-DtlnICYj.d.mts → index-DOaKN0wJ.d.mts} +5 -7
- package/dist/{index-e8PriyFP.d.cts → index-DqlCqAcc.d.cts} +15 -33
- package/dist/{index-BUpm7Ukw.d.mts → index-DqlCqAcc.d.mts} +15 -33
- package/dist/{index-DvC_tPbo.d.cts → index-aPuQLHfq.d.mts} +170 -345
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +93 -93
- package/dist/index.d.mts +93 -93
- package/dist/index.mjs +1 -1
- package/dist/{input-BDCw9qBl.d.cts → input-BJMvABEL.d.cts} +6 -11
- package/dist/{input-BVTLQHpd.d.mts → input-BJMvABEL.d.mts} +6 -11
- package/dist/layouts/cms-layout/index.cjs +1 -1
- package/dist/layouts/cms-layout/index.d.cts +2 -2
- package/dist/layouts/cms-layout/index.d.mts +2 -2
- package/dist/layouts/cms-layout/index.mjs +1 -1
- package/dist/layouts/flex.cjs +2 -1
- package/dist/layouts/flex.cjs.map +1 -0
- package/dist/layouts/flex.d.cts +114 -2
- package/dist/layouts/flex.d.mts +114 -2
- package/dist/layouts/flex.mjs +2 -1
- package/dist/layouts/flex.mjs.map +1 -0
- package/dist/layouts/grid.cjs +2 -1
- package/dist/layouts/grid.cjs.map +1 -0
- package/dist/layouts/grid.d.cts +19 -2
- package/dist/layouts/grid.d.mts +19 -2
- package/dist/layouts/grid.mjs +2 -1
- package/dist/layouts/grid.mjs.map +1 -0
- package/dist/layouts/payment-layout/index.cjs +1 -1
- package/dist/layouts/payment-layout/index.d.cts +59 -2
- package/dist/layouts/payment-layout/index.d.mts +59 -2
- package/dist/layouts/payment-layout/index.mjs +1 -1
- package/dist/pages/FeatureDeveloping.cjs +2 -1
- package/dist/pages/FeatureDeveloping.cjs.map +1 -0
- package/dist/pages/FeatureDeveloping.d.cts +41 -2
- package/dist/pages/FeatureDeveloping.d.mts +41 -2
- package/dist/pages/FeatureDeveloping.mjs +2 -1
- package/dist/pages/FeatureDeveloping.mjs.map +1 -0
- package/dist/pages/FeatureFixing.cjs +2 -1
- package/dist/pages/FeatureFixing.cjs.map +1 -0
- package/dist/pages/FeatureFixing.d.cts +41 -2
- package/dist/pages/FeatureFixing.d.mts +41 -2
- package/dist/pages/FeatureFixing.mjs +2 -1
- package/dist/pages/FeatureFixing.mjs.map +1 -0
- package/dist/pages/LoginPage.cjs +2 -1
- package/dist/pages/LoginPage.cjs.map +1 -0
- package/dist/pages/LoginPage.d.cts +53 -2
- package/dist/pages/LoginPage.d.mts +53 -2
- package/dist/pages/LoginPage.mjs +2 -1
- package/dist/pages/LoginPage.mjs.map +1 -0
- package/dist/pages/NotAuthorized.cjs +2 -1
- package/dist/pages/NotAuthorized.cjs.map +1 -0
- package/dist/pages/NotAuthorized.d.cts +41 -2
- package/dist/pages/NotAuthorized.d.mts +41 -2
- package/dist/pages/NotAuthorized.mjs +2 -1
- package/dist/pages/NotAuthorized.mjs.map +1 -0
- package/dist/pages/NotFound.cjs +2 -1
- package/dist/pages/NotFound.cjs.map +1 -0
- package/dist/pages/NotFound.d.cts +41 -2
- package/dist/pages/NotFound.d.mts +41 -2
- package/dist/pages/NotFound.mjs +2 -1
- package/dist/pages/NotFound.mjs.map +1 -0
- package/dist/pages/RegisterPage.cjs +2 -1
- package/dist/pages/RegisterPage.cjs.map +1 -0
- package/dist/pages/RegisterPage.d.cts +50 -2
- package/dist/pages/RegisterPage.d.mts +50 -2
- package/dist/pages/RegisterPage.mjs +2 -1
- package/dist/pages/RegisterPage.mjs.map +1 -0
- package/dist/pages/VerifyEmailPage.cjs +2 -1
- package/dist/pages/VerifyEmailPage.cjs.map +1 -0
- package/dist/pages/VerifyEmailPage.d.cts +62 -2
- package/dist/pages/VerifyEmailPage.d.mts +62 -2
- package/dist/pages/VerifyEmailPage.mjs +2 -1
- package/dist/pages/VerifyEmailPage.mjs.map +1 -0
- package/dist/payment-layout-CG_l7Es-.mjs +2 -0
- package/dist/payment-layout-CG_l7Es-.mjs.map +1 -0
- package/dist/payment-layout-DfxNDF8G.cjs +2 -0
- package/dist/payment-layout-DfxNDF8G.cjs.map +1 -0
- package/dist/resizable-CNIYTd7k.d.cts +64 -0
- package/dist/resizable-CNIYTd7k.d.mts +64 -0
- package/dist/rolldown-runtime-C6qsp3rV.cjs +1 -0
- package/dist/search-modal-CMhsIxae.cjs +2 -0
- package/dist/search-modal-CMhsIxae.cjs.map +1 -0
- package/dist/search-modal-Cdmi2iyV.mjs +2 -0
- package/dist/search-modal-Cdmi2iyV.mjs.map +1 -0
- package/dist/systems/google.cjs +2 -1
- package/dist/systems/google.cjs.map +1 -0
- package/dist/systems/google.d.cts +48 -2
- package/dist/systems/google.d.mts +48 -2
- package/dist/systems/google.mjs +2 -1
- package/dist/systems/google.mjs.map +1 -0
- package/dist/tables-BHdeig0n.mjs +4 -0
- package/dist/tables-BHdeig0n.mjs.map +1 -0
- package/dist/tables-BfuoYxlt.cjs +4 -0
- package/dist/tables-BfuoYxlt.cjs.map +1 -0
- package/dist/tanstack-form-CVnMirZT.cjs +42 -0
- package/dist/tanstack-form-CVnMirZT.cjs.map +1 -0
- package/dist/tanstack-form-Dl6pl0mL.mjs +42 -0
- package/dist/tanstack-form-Dl6pl0mL.mjs.map +1 -0
- package/dist/text-editor-BQtIXOpM.mjs +2 -0
- package/dist/text-editor-BQtIXOpM.mjs.map +1 -0
- package/dist/text-editor-C6bmwDTt.cjs +2 -0
- package/dist/text-editor-C6bmwDTt.cjs.map +1 -0
- package/dist/{types-B-SuhI6Z.d.cts → types-cKvPPVBe.d.cts} +3 -3
- package/dist/{types-UB3NE0JY.d.mts → types-cKvPPVBe.d.mts} +3 -3
- package/dist/typography/paragraph.cjs +2 -1
- package/dist/typography/paragraph.cjs.map +1 -0
- package/dist/typography/paragraph.d.cts +46 -2
- package/dist/typography/paragraph.d.mts +46 -2
- package/dist/typography/paragraph.mjs +2 -1
- package/dist/typography/paragraph.mjs.map +1 -0
- package/dist/typography/title.cjs +2 -1
- package/dist/typography/title.cjs.map +1 -0
- package/dist/typography/title.d.cts +41 -2
- package/dist/typography/title.d.mts +41 -2
- package/dist/typography/title.mjs +2 -1
- package/dist/typography/title.mjs.map +1 -0
- package/dist/ui/alert-dialog.cjs +2 -1
- package/dist/ui/alert-dialog.cjs.map +1 -0
- package/dist/ui/alert-dialog.d.cts +88 -2
- package/dist/ui/alert-dialog.d.mts +88 -2
- package/dist/ui/alert-dialog.mjs +2 -1
- package/dist/ui/alert-dialog.mjs.map +1 -0
- package/dist/ui/alert.cjs +1 -1
- package/dist/ui/alert.d.cts +1 -1
- package/dist/ui/alert.d.mts +1 -1
- package/dist/ui/alert.mjs +1 -1
- package/dist/ui/aspect-ratio.cjs +2 -1
- package/dist/ui/aspect-ratio.cjs.map +1 -0
- package/dist/ui/aspect-ratio.d.cts +22 -2
- package/dist/ui/aspect-ratio.d.mts +22 -2
- package/dist/ui/aspect-ratio.mjs +2 -1
- package/dist/ui/aspect-ratio.mjs.map +1 -0
- package/dist/ui/avatar.cjs +2 -1
- package/dist/ui/avatar.cjs.map +1 -0
- package/dist/ui/avatar.d.cts +33 -2
- package/dist/ui/avatar.d.mts +33 -2
- package/dist/ui/avatar.mjs +2 -1
- package/dist/ui/avatar.mjs.map +1 -0
- package/dist/ui/badge.cjs +2 -1
- package/dist/ui/badge.cjs.map +1 -0
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.mts +1 -1
- package/dist/ui/badge.mjs +2 -1
- package/dist/ui/badge.mjs.map +1 -0
- package/dist/ui/breadcrumb.cjs +2 -1
- package/dist/ui/breadcrumb.cjs.map +1 -0
- package/dist/ui/breadcrumb.d.cts +69 -2
- package/dist/ui/breadcrumb.d.mts +69 -2
- package/dist/ui/breadcrumb.mjs +2 -1
- package/dist/ui/breadcrumb.mjs.map +1 -0
- package/dist/ui/button-group.cjs +2 -1
- package/dist/ui/button-group.cjs.map +1 -0
- package/dist/ui/button-group.d.cts +48 -2
- package/dist/ui/button-group.d.mts +48 -3
- package/dist/ui/button-group.mjs +2 -1
- package/dist/ui/button-group.mjs.map +1 -0
- package/dist/ui/button.cjs +2 -1
- package/dist/ui/button.cjs.map +1 -0
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.mts +1 -1
- package/dist/ui/button.mjs +2 -1
- package/dist/ui/button.mjs.map +1 -0
- package/dist/ui/buttons/add-new.cjs +2 -1
- package/dist/ui/buttons/add-new.cjs.map +1 -0
- package/dist/ui/buttons/add-new.d.cts +16 -2
- package/dist/ui/buttons/add-new.d.mts +16 -2
- package/dist/ui/buttons/add-new.mjs +2 -1
- package/dist/ui/buttons/add-new.mjs.map +1 -0
- package/dist/ui/buttons/edit.cjs +2 -1
- package/dist/ui/buttons/edit.cjs.map +1 -0
- package/dist/ui/buttons/edit.d.cts +16 -2
- package/dist/ui/buttons/edit.d.mts +16 -2
- package/dist/ui/buttons/edit.mjs +2 -1
- package/dist/ui/buttons/edit.mjs.map +1 -0
- package/dist/ui/buttons/refresh.cjs +2 -1
- package/dist/ui/buttons/refresh.cjs.map +1 -0
- package/dist/ui/buttons/refresh.d.cts +16 -2
- package/dist/ui/buttons/refresh.d.mts +16 -2
- package/dist/ui/buttons/refresh.mjs +2 -1
- package/dist/ui/buttons/refresh.mjs.map +1 -0
- package/dist/ui/buttons/trash.cjs +2 -1
- package/dist/ui/buttons/trash.cjs.map +1 -0
- package/dist/ui/buttons/trash.d.cts +16 -2
- package/dist/ui/buttons/trash.d.mts +16 -2
- package/dist/ui/buttons/trash.mjs +2 -1
- package/dist/ui/buttons/trash.mjs.map +1 -0
- package/dist/ui/buttons/upload-image.cjs +2 -1
- package/dist/ui/buttons/upload-image.cjs.map +1 -0
- package/dist/ui/buttons/upload-image.d.cts +23 -2
- package/dist/ui/buttons/upload-image.d.mts +23 -2
- package/dist/ui/buttons/upload-image.mjs +2 -1
- package/dist/ui/buttons/upload-image.mjs.map +1 -0
- package/dist/ui/calendar.cjs +2 -1
- package/dist/ui/calendar.cjs.map +1 -0
- package/dist/ui/calendar.d.cts +43 -2
- package/dist/ui/calendar.d.mts +43 -3
- package/dist/ui/calendar.mjs +2 -1
- package/dist/ui/calendar.mjs.map +1 -0
- package/dist/ui/card.cjs +2 -1
- package/dist/ui/card.cjs.map +1 -0
- package/dist/ui/card.d.cts +60 -2
- package/dist/ui/card.d.mts +60 -2
- package/dist/ui/card.mjs +2 -1
- package/dist/ui/card.mjs.map +1 -0
- package/dist/ui/carousel.cjs +2 -1
- package/dist/ui/carousel.cjs.map +1 -0
- package/dist/ui/carousel.d.cts +70 -2
- package/dist/ui/carousel.d.mts +70 -3
- package/dist/ui/carousel.mjs +2 -1
- package/dist/ui/carousel.mjs.map +1 -0
- package/dist/ui/checkbox.cjs +2 -1
- package/dist/ui/checkbox.cjs.map +1 -0
- package/dist/ui/checkbox.d.cts +24 -2
- package/dist/ui/checkbox.d.mts +24 -2
- package/dist/ui/checkbox.mjs +2 -1
- package/dist/ui/checkbox.mjs.map +1 -0
- package/dist/ui/collapsible.cjs +2 -1
- package/dist/ui/collapsible.cjs.map +1 -0
- package/dist/ui/collapsible.d.cts +32 -2
- package/dist/ui/collapsible.d.mts +32 -2
- package/dist/ui/collapsible.mjs +2 -1
- package/dist/ui/collapsible.mjs.map +1 -0
- package/dist/ui/command.cjs +2 -1
- package/dist/ui/command.cjs.map +1 -0
- package/dist/ui/command.d.cts +87 -2
- package/dist/ui/command.d.mts +87 -3
- package/dist/ui/command.mjs +2 -1
- package/dist/ui/command.mjs.map +1 -0
- package/dist/ui/context-menu.cjs +2 -1
- package/dist/ui/context-menu.cjs.map +1 -0
- package/dist/ui/context-menu.d.cts +123 -2
- package/dist/ui/context-menu.d.mts +123 -2
- package/dist/ui/context-menu.mjs +2 -1
- package/dist/ui/context-menu.mjs.map +1 -0
- package/dist/ui/dialog.cjs +2 -1
- package/dist/ui/dialog.cjs.map +1 -0
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.mts +1 -1
- package/dist/ui/dialog.mjs +2 -1
- package/dist/ui/dialog.mjs.map +1 -0
- package/dist/ui/drawer.cjs +2 -1
- package/dist/ui/drawer.cjs.map +1 -0
- package/dist/ui/drawer.d.cts +70 -2
- package/dist/ui/drawer.d.mts +70 -2
- package/dist/ui/drawer.mjs +2 -1
- package/dist/ui/drawer.mjs.map +1 -0
- package/dist/ui/dropdown-menu.cjs +2 -1
- package/dist/ui/dropdown-menu.cjs.map +1 -0
- package/dist/ui/dropdown-menu.d.cts +125 -2
- package/dist/ui/dropdown-menu.d.mts +125 -2
- package/dist/ui/dropdown-menu.mjs +2 -1
- package/dist/ui/dropdown-menu.mjs.map +1 -0
- package/dist/ui/empty.cjs +2 -1
- package/dist/ui/empty.cjs.map +1 -0
- package/dist/ui/empty.d.cts +65 -2
- package/dist/ui/empty.d.mts +65 -2
- package/dist/ui/empty.mjs +2 -1
- package/dist/ui/empty.mjs.map +1 -0
- package/dist/ui/field.cjs +2 -1
- package/dist/ui/field.cjs.map +1 -0
- package/dist/ui/field.d.cts +22 -24
- package/dist/ui/field.d.mts +22 -24
- package/dist/ui/field.mjs +2 -1
- package/dist/ui/field.mjs.map +1 -0
- package/dist/ui/file-uploader.cjs +3 -1
- package/dist/ui/file-uploader.cjs.map +1 -0
- package/dist/ui/file-uploader.d.cts +101 -2
- package/dist/ui/file-uploader.d.mts +101 -2
- package/dist/ui/file-uploader.mjs +3 -1
- package/dist/ui/file-uploader.mjs.map +1 -0
- package/dist/ui/form.cjs +2 -1
- package/dist/ui/form.cjs.map +1 -0
- package/dist/ui/form.d.cts +109 -2
- package/dist/ui/form.d.mts +109 -2
- package/dist/ui/form.mjs +2 -1
- package/dist/ui/form.mjs.map +1 -0
- package/dist/ui/hover-card.cjs +2 -1
- package/dist/ui/hover-card.cjs.map +1 -0
- package/dist/ui/hover-card.d.cts +35 -2
- package/dist/ui/hover-card.d.mts +35 -2
- package/dist/ui/hover-card.mjs +2 -1
- package/dist/ui/hover-card.mjs.map +1 -0
- package/dist/ui/image.cjs +2 -1
- package/dist/ui/image.cjs.map +1 -0
- package/dist/ui/image.d.cts +27 -2
- package/dist/ui/image.d.mts +27 -2
- package/dist/ui/image.mjs +2 -1
- package/dist/ui/image.mjs.map +1 -0
- package/dist/ui/input-otp.cjs +2 -1
- package/dist/ui/input-otp.cjs.map +1 -0
- package/dist/ui/input-otp.d.cts +56 -2
- package/dist/ui/input-otp.d.mts +56 -2
- package/dist/ui/input-otp.mjs +2 -1
- package/dist/ui/input-otp.mjs.map +1 -0
- package/dist/ui/input.cjs +2 -1
- package/dist/ui/input.cjs.map +1 -0
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.mts +1 -1
- package/dist/ui/input.mjs +2 -1
- package/dist/ui/input.mjs.map +1 -0
- package/dist/ui/inputs/search-input.cjs +2 -1
- package/dist/ui/inputs/search-input.cjs.map +1 -0
- package/dist/ui/inputs/search-input.d.cts +27 -2
- package/dist/ui/inputs/search-input.d.mts +27 -3
- package/dist/ui/inputs/search-input.mjs +2 -1
- package/dist/ui/inputs/search-input.mjs.map +1 -0
- package/dist/ui/item.cjs +2 -1
- package/dist/ui/item.cjs.map +1 -0
- package/dist/ui/item.d.cts +99 -2
- package/dist/ui/item.d.mts +99 -3
- package/dist/ui/item.mjs +2 -1
- package/dist/ui/item.mjs.map +1 -0
- package/dist/ui/label.cjs +2 -1
- package/dist/ui/label.cjs.map +1 -0
- package/dist/ui/label.d.cts +22 -2
- package/dist/ui/label.d.mts +22 -2
- package/dist/ui/label.mjs +2 -1
- package/dist/ui/label.mjs.map +1 -0
- package/dist/ui/menubar.cjs +2 -1
- package/dist/ui/menubar.cjs.map +1 -0
- package/dist/ui/menubar.d.cts +133 -2
- package/dist/ui/menubar.d.mts +133 -2
- package/dist/ui/menubar.mjs +2 -1
- package/dist/ui/menubar.mjs.map +1 -0
- package/dist/ui/multi-select.cjs +2 -1
- package/dist/ui/multi-select.cjs.map +1 -0
- package/dist/ui/multi-select.d.cts +116 -2
- package/dist/ui/multi-select.d.mts +116 -4
- package/dist/ui/multi-select.mjs +2 -1
- package/dist/ui/multi-select.mjs.map +1 -0
- package/dist/ui/navigation-menu.cjs +2 -1
- package/dist/ui/navigation-menu.cjs.map +1 -0
- package/dist/ui/navigation-menu.d.cts +73 -2
- package/dist/ui/navigation-menu.d.mts +73 -2
- package/dist/ui/navigation-menu.mjs +2 -1
- package/dist/ui/navigation-menu.mjs.map +1 -0
- package/dist/ui/pagination.cjs +2 -1
- package/dist/ui/pagination.cjs.map +1 -0
- package/dist/ui/pagination.d.cts +64 -2
- package/dist/ui/pagination.d.mts +64 -3
- package/dist/ui/pagination.mjs +2 -1
- package/dist/ui/pagination.mjs.map +1 -0
- package/dist/ui/popover.cjs +2 -1
- package/dist/ui/popover.cjs.map +1 -0
- package/dist/ui/popover.d.cts +50 -2
- package/dist/ui/popover.d.mts +50 -2
- package/dist/ui/popover.mjs +2 -1
- package/dist/ui/popover.mjs.map +1 -0
- package/dist/ui/progress.cjs +2 -1
- package/dist/ui/progress.cjs.map +1 -0
- package/dist/ui/progress.d.cts +21 -2
- package/dist/ui/progress.d.mts +21 -2
- package/dist/ui/progress.mjs +2 -1
- package/dist/ui/progress.mjs.map +1 -0
- package/dist/ui/radio-group.cjs +2 -1
- package/dist/ui/radio-group.cjs.map +1 -0
- package/dist/ui/radio-group.d.cts +35 -2
- package/dist/ui/radio-group.d.mts +35 -2
- package/dist/ui/radio-group.mjs +2 -1
- package/dist/ui/radio-group.mjs.map +1 -0
- package/dist/ui/resizable.cjs +2 -1
- package/dist/ui/resizable.cjs.map +1 -0
- package/dist/ui/resizable.d.cts +1 -1
- package/dist/ui/resizable.d.mts +1 -1
- package/dist/ui/resizable.mjs +2 -1
- package/dist/ui/resizable.mjs.map +1 -0
- package/dist/ui/scroll-area.cjs +2 -1
- package/dist/ui/scroll-area.cjs.map +1 -0
- package/dist/ui/scroll-area.d.cts +35 -2
- package/dist/ui/scroll-area.d.mts +35 -2
- package/dist/ui/scroll-area.mjs +2 -1
- package/dist/ui/scroll-area.mjs.map +1 -0
- package/dist/ui/select.cjs +2 -1
- package/dist/ui/select.cjs.map +1 -0
- package/dist/ui/select.d.cts +74 -2
- package/dist/ui/select.d.mts +74 -2
- package/dist/ui/select.mjs +2 -1
- package/dist/ui/select.mjs.map +1 -0
- package/dist/ui/separator.cjs +2 -1
- package/dist/ui/separator.cjs.map +1 -0
- package/dist/ui/separator.d.cts +32 -2
- package/dist/ui/separator.d.mts +32 -2
- package/dist/ui/separator.mjs +2 -1
- package/dist/ui/separator.mjs.map +1 -0
- package/dist/ui/sheet.cjs +2 -1
- package/dist/ui/sheet.cjs.map +1 -0
- package/dist/ui/sheet.d.cts +66 -2
- package/dist/ui/sheet.d.mts +66 -2
- package/dist/ui/sheet.mjs +2 -1
- package/dist/ui/sheet.mjs.map +1 -0
- package/dist/ui/skeleton.cjs +2 -1
- package/dist/ui/skeleton.cjs.map +1 -0
- package/dist/ui/skeleton.d.cts +24 -2
- package/dist/ui/skeleton.d.mts +24 -2
- package/dist/ui/skeleton.mjs +2 -1
- package/dist/ui/skeleton.mjs.map +1 -0
- package/dist/ui/slider.cjs +2 -1
- package/dist/ui/slider.cjs.map +1 -0
- package/dist/ui/slider.d.cts +24 -2
- package/dist/ui/slider.d.mts +24 -2
- package/dist/ui/slider.mjs +2 -1
- package/dist/ui/slider.mjs.map +1 -0
- package/dist/ui/sonner.cjs +2 -1
- package/dist/ui/sonner.cjs.map +1 -0
- package/dist/ui/sonner.d.cts +22 -2
- package/dist/ui/sonner.d.mts +22 -2
- package/dist/ui/sonner.mjs +2 -1
- package/dist/ui/sonner.mjs.map +1 -0
- package/dist/ui/spinner.cjs +2 -1
- package/dist/ui/spinner.cjs.map +1 -0
- package/dist/ui/spinner.d.cts +22 -2
- package/dist/ui/spinner.d.mts +22 -2
- package/dist/ui/spinner.mjs +2 -1
- package/dist/ui/spinner.mjs.map +1 -0
- package/dist/ui/switch.cjs +2 -1
- package/dist/ui/switch.cjs.map +1 -0
- package/dist/ui/switch.d.cts +24 -2
- package/dist/ui/switch.d.mts +24 -2
- package/dist/ui/switch.mjs +2 -1
- package/dist/ui/switch.mjs.map +1 -0
- package/dist/ui/table.cjs +2 -1
- package/dist/ui/table.cjs.map +1 -0
- package/dist/ui/table.d.cts +70 -2
- package/dist/ui/table.d.mts +70 -2
- package/dist/ui/table.mjs +2 -1
- package/dist/ui/table.mjs.map +1 -0
- package/dist/ui/tabs.cjs +2 -1
- package/dist/ui/tabs.cjs.map +1 -0
- package/dist/ui/tabs.d.cts +42 -2
- package/dist/ui/tabs.d.mts +42 -2
- package/dist/ui/tabs.mjs +2 -1
- package/dist/ui/tabs.mjs.map +1 -0
- package/dist/ui/textarea.cjs +2 -1
- package/dist/ui/textarea.cjs.map +1 -0
- package/dist/ui/textarea.d.cts +26 -2
- package/dist/ui/textarea.d.mts +26 -2
- package/dist/ui/textarea.mjs +2 -1
- package/dist/ui/textarea.mjs.map +1 -0
- package/dist/ui/toggle-group.cjs +2 -1
- package/dist/ui/toggle-group.cjs.map +1 -0
- package/dist/ui/toggle-group.d.cts +37 -2
- package/dist/ui/toggle-group.d.mts +37 -3
- package/dist/ui/toggle-group.mjs +2 -1
- package/dist/ui/toggle-group.mjs.map +1 -0
- package/dist/ui/toggle.cjs +2 -1
- package/dist/ui/toggle.cjs.map +1 -0
- package/dist/ui/toggle.d.cts +30 -2
- package/dist/ui/toggle.d.mts +30 -2
- package/dist/ui/toggle.mjs +2 -1
- package/dist/ui/toggle.mjs.map +1 -0
- package/dist/ui/tooltip.cjs +2 -1
- package/dist/ui/tooltip.cjs.map +1 -0
- package/dist/ui/tooltip.d.cts +53 -2
- package/dist/ui/tooltip.d.mts +53 -2
- package/dist/ui/tooltip.mjs +2 -1
- package/dist/ui/tooltip.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/FeatureDeveloping-Bpmk3ZyS.d.cts +0 -43
- package/dist/FeatureDeveloping-CVFrndc_.cjs +0 -2
- package/dist/FeatureDeveloping-CVFrndc_.cjs.map +0 -1
- package/dist/FeatureDeveloping-k_14m44U.mjs +0 -2
- package/dist/FeatureDeveloping-k_14m44U.mjs.map +0 -1
- package/dist/FeatureDeveloping-oS433qZK.d.mts +0 -43
- package/dist/FeatureFixing-CRTE4tkV.d.mts +0 -43
- package/dist/FeatureFixing-CqDnOmou.cjs +0 -2
- package/dist/FeatureFixing-CqDnOmou.cjs.map +0 -1
- package/dist/FeatureFixing-D7qYhigu.mjs +0 -2
- package/dist/FeatureFixing-D7qYhigu.mjs.map +0 -1
- package/dist/FeatureFixing-Vwb-odpJ.d.cts +0 -43
- package/dist/LoginPage-B7SgjP72.d.cts +0 -55
- package/dist/LoginPage-BDh57TIY.mjs +0 -2
- package/dist/LoginPage-BDh57TIY.mjs.map +0 -1
- package/dist/LoginPage-Bsh_Wo-4.d.mts +0 -55
- package/dist/LoginPage-CSewNEGN.cjs +0 -2
- package/dist/LoginPage-CSewNEGN.cjs.map +0 -1
- package/dist/NotAuthorized-B1nln3YY.d.mts +0 -43
- package/dist/NotAuthorized-BBlhgNjt.cjs +0 -2
- package/dist/NotAuthorized-BBlhgNjt.cjs.map +0 -1
- package/dist/NotAuthorized-DcXH7UbQ.d.cts +0 -43
- package/dist/NotAuthorized-xXIwCXtZ.mjs +0 -2
- package/dist/NotAuthorized-xXIwCXtZ.mjs.map +0 -1
- package/dist/NotFound-BOAR7QCc.cjs +0 -2
- package/dist/NotFound-BOAR7QCc.cjs.map +0 -1
- package/dist/NotFound-Co0y_Fpa.d.cts +0 -43
- package/dist/NotFound-H7T1wCkf.mjs +0 -2
- package/dist/NotFound-H7T1wCkf.mjs.map +0 -1
- package/dist/NotFound-Kvw-yvr_.d.mts +0 -43
- package/dist/RegisterPage-BI5efPEP.cjs +0 -2
- package/dist/RegisterPage-BI5efPEP.cjs.map +0 -1
- package/dist/RegisterPage-DKiXE8U6.d.mts +0 -52
- package/dist/RegisterPage-DluyCA1L.mjs +0 -2
- package/dist/RegisterPage-DluyCA1L.mjs.map +0 -1
- package/dist/RegisterPage-qEpX0gUP.d.cts +0 -52
- package/dist/VerifyEmailPage-D3U6V5IR.mjs +0 -2
- package/dist/VerifyEmailPage-D3U6V5IR.mjs.map +0 -1
- package/dist/VerifyEmailPage-DRQiyUqo.cjs +0 -2
- package/dist/VerifyEmailPage-DRQiyUqo.cjs.map +0 -1
- package/dist/VerifyEmailPage-Dd59Girn.d.cts +0 -64
- package/dist/VerifyEmailPage-ZaRE0r8m.d.mts +0 -64
- package/dist/add-new-B35fn_Bz.mjs +0 -2
- package/dist/add-new-B35fn_Bz.mjs.map +0 -1
- package/dist/add-new-DqRZeMNy.d.mts +0 -17
- package/dist/add-new-deaz-L5t.cjs +0 -2
- package/dist/add-new-deaz-L5t.cjs.map +0 -1
- package/dist/add-new-pqYC7xmc.d.cts +0 -17
- package/dist/alert-DDdHIRib.cjs +0 -2
- package/dist/alert-dialog-B9ThoUnv.cjs +0 -2
- package/dist/alert-dialog-B9ThoUnv.cjs.map +0 -1
- package/dist/alert-dialog-D0jOWqaA.d.mts +0 -90
- package/dist/alert-dialog-DqIS6qRz.mjs +0 -2
- package/dist/alert-dialog-DqIS6qRz.mjs.map +0 -1
- package/dist/alert-dialog-TBiCQ9Ty.d.cts +0 -90
- package/dist/aspect-ratio-BsfIALEV.d.mts +0 -24
- package/dist/aspect-ratio-Cd2mBXiE.cjs +0 -2
- package/dist/aspect-ratio-Cd2mBXiE.cjs.map +0 -1
- package/dist/aspect-ratio-DP12ssDX.mjs +0 -2
- package/dist/aspect-ratio-DP12ssDX.mjs.map +0 -1
- package/dist/aspect-ratio-Dy7SplBM.d.cts +0 -24
- package/dist/avatar-CVRRoJ05.cjs +0 -2
- package/dist/avatar-CVRRoJ05.cjs.map +0 -1
- package/dist/avatar-XFoz-EPk.d.cts +0 -35
- package/dist/avatar-tjgTFpVU.mjs +0 -2
- package/dist/avatar-tjgTFpVU.mjs.map +0 -1
- package/dist/avatar-zDJh1tw9.d.mts +0 -35
- package/dist/badge-7bcsD0vA.cjs +0 -2
- package/dist/badge-7bcsD0vA.cjs.map +0 -1
- package/dist/badge-CG6dbI29.mjs +0 -2
- package/dist/badge-CG6dbI29.mjs.map +0 -1
- package/dist/breadcrumb-BhUXmEGd.d.cts +0 -72
- package/dist/breadcrumb-D5EVqGzZ.d.mts +0 -72
- package/dist/breadcrumb-DgCIacvh.cjs +0 -2
- package/dist/breadcrumb-DgCIacvh.cjs.map +0 -1
- package/dist/breadcrumb-RCZAaQ1l.mjs +0 -2
- package/dist/breadcrumb-RCZAaQ1l.mjs.map +0 -1
- package/dist/button-C--DAN1D.cjs +0 -2
- package/dist/button-C--DAN1D.cjs.map +0 -1
- package/dist/button-CCVJTHBI.mjs +0 -2
- package/dist/button-CCVJTHBI.mjs.map +0 -1
- package/dist/button-group-4oHvYHtz.cjs +0 -2
- package/dist/button-group-4oHvYHtz.cjs.map +0 -1
- package/dist/button-group-CDRMmMyT.d.cts +0 -50
- package/dist/button-group-CRuT_zEE.mjs +0 -2
- package/dist/button-group-CRuT_zEE.mjs.map +0 -1
- package/dist/button-group-wrn32Sqe.d.mts +0 -50
- package/dist/button.variants-4kw6plrv.cjs +0 -2
- package/dist/calendar-BUPDN6CU.d.cts +0 -45
- package/dist/calendar-Boz9U-O2.d.mts +0 -45
- package/dist/calendar-CTyL_3WY.cjs +0 -2
- package/dist/calendar-CTyL_3WY.cjs.map +0 -1
- package/dist/calendar-DyzwC2TQ.mjs +0 -2
- package/dist/calendar-DyzwC2TQ.mjs.map +0 -1
- package/dist/card-B8Pm6iEs.cjs +0 -2
- package/dist/card-B8Pm6iEs.cjs.map +0 -1
- package/dist/card-DDM5jg3U.d.mts +0 -63
- package/dist/card-DpQKFp4f.mjs +0 -2
- package/dist/card-DpQKFp4f.mjs.map +0 -1
- package/dist/card-a8tqytoT.d.cts +0 -63
- package/dist/carousel-BayGB372.cjs +0 -2
- package/dist/carousel-BayGB372.cjs.map +0 -1
- package/dist/carousel-Cm4szl4A.d.cts +0 -71
- package/dist/carousel-D8xUkFZ-.mjs +0 -2
- package/dist/carousel-D8xUkFZ-.mjs.map +0 -1
- package/dist/carousel-Y5TlCJ96.d.mts +0 -71
- package/dist/checkbox-Bbn3OZQd.d.mts +0 -26
- package/dist/checkbox-Bt4BgYMB.cjs +0 -2
- package/dist/checkbox-Bt4BgYMB.cjs.map +0 -1
- package/dist/checkbox-CBhlnGGv.mjs +0 -2
- package/dist/checkbox-CBhlnGGv.mjs.map +0 -1
- package/dist/checkbox-CccXRTYH.d.cts +0 -26
- package/dist/chunk-350yNsax.cjs +0 -1
- package/dist/close-Co-WLsSG.mjs.map +0 -1
- package/dist/close-DYBVx-8O.cjs +0 -2
- package/dist/close-DYBVx-8O.cjs.map +0 -1
- package/dist/cms-layout-B7lc5hIX.mjs +0 -2
- package/dist/cms-layout-B7lc5hIX.mjs.map +0 -1
- package/dist/cms-layout-DeTdDLXr.cjs +0 -2
- package/dist/cms-layout-DeTdDLXr.cjs.map +0 -1
- package/dist/collapsible-CLr3JLeA.mjs +0 -2
- package/dist/collapsible-CLr3JLeA.mjs.map +0 -1
- package/dist/collapsible-LInIoQlU.d.cts +0 -34
- package/dist/collapsible-RWAWE2lS.d.mts +0 -34
- package/dist/collapsible-rx0m3LuF.cjs +0 -2
- package/dist/collapsible-rx0m3LuF.cjs.map +0 -1
- package/dist/command-BQFbzzTr.cjs +0 -2
- package/dist/command-BQFbzzTr.cjs.map +0 -1
- package/dist/command-BlvmwwTr.d.mts +0 -89
- package/dist/command-CQMdYoAm.mjs +0 -2
- package/dist/command-CQMdYoAm.mjs.map +0 -1
- package/dist/command-DAudAVpm.d.cts +0 -89
- package/dist/confirm-dialog-C5ULtwJE.cjs +0 -2
- package/dist/confirm-dialog-C5ULtwJE.cjs.map +0 -1
- package/dist/confirm-dialog-CNWJKBc9.d.mts +0 -142
- package/dist/confirm-dialog-DG_3RvTI.d.cts +0 -142
- package/dist/confirm-dialog-u2GP8uPi.mjs +0 -2
- package/dist/confirm-dialog-u2GP8uPi.mjs.map +0 -1
- package/dist/context-menu-C9nXY3Bq.d.cts +0 -125
- package/dist/context-menu-CplWspvB.cjs +0 -2
- package/dist/context-menu-CplWspvB.cjs.map +0 -1
- package/dist/context-menu-DrF_sQB1.d.mts +0 -125
- package/dist/context-menu-a50s2_E_.mjs +0 -2
- package/dist/context-menu-a50s2_E_.mjs.map +0 -1
- package/dist/country-BHMqKldc.d.mts +0 -22
- package/dist/country-CnXNnGmY.cjs +0 -2
- package/dist/country-CnXNnGmY.cjs.map +0 -1
- package/dist/country-DUD_q-yS.d.cts +0 -22
- package/dist/country-lc1l_viY.mjs +0 -2
- package/dist/country-lc1l_viY.mjs.map +0 -1
- package/dist/data-list-BGmCL71V.cjs +0 -2
- package/dist/data-list-BGmCL71V.cjs.map +0 -1
- package/dist/data-list-CXWcUFU1.mjs +0 -2
- package/dist/data-list-CXWcUFU1.mjs.map +0 -1
- package/dist/data-list-Chl3KU5n.d.mts +0 -43
- package/dist/data-list-DwyNusTs.d.cts +0 -43
- package/dist/date-88lk-VJF.mjs.map +0 -1
- package/dist/date-BBBx-rIM.cjs +0 -2
- package/dist/date-BBBx-rIM.cjs.map +0 -1
- package/dist/date-tooltip-BdVWCJlg.cjs +0 -2
- package/dist/date-tooltip-BdVWCJlg.cjs.map +0 -1
- package/dist/date-tooltip-CoPcr3Ju.d.mts +0 -19
- package/dist/date-tooltip-DZ3NlfdZ.d.cts +0 -19
- package/dist/date-tooltip-OPAmlgBg.mjs +0 -2
- package/dist/date-tooltip-OPAmlgBg.mjs.map +0 -1
- package/dist/date-viiYGAtR.d.mts +0 -39
- package/dist/date-xQIXRJ71.d.cts +0 -39
- package/dist/descriptions-CgkBHjKD.mjs +0 -2
- package/dist/descriptions-CgkBHjKD.mjs.map +0 -1
- package/dist/descriptions-RNxfgfpM.cjs +0 -2
- package/dist/descriptions-RNxfgfpM.cjs.map +0 -1
- package/dist/detail-dialog-BLApH3eD.cjs +0 -2
- package/dist/detail-dialog-BLApH3eD.cjs.map +0 -1
- package/dist/detail-dialog-CXKrznrp.mjs +0 -2
- package/dist/detail-dialog-CXKrznrp.mjs.map +0 -1
- package/dist/dialog--BvCecaD.mjs +0 -2
- package/dist/dialog--BvCecaD.mjs.map +0 -1
- package/dist/dialog-DNEUhYSv.cjs +0 -2
- package/dist/dialog-DNEUhYSv.cjs.map +0 -1
- package/dist/dist-Cx5ufCdr.cjs +0 -2
- package/dist/drawer-BYYCsheu.mjs +0 -2
- package/dist/drawer-BYYCsheu.mjs.map +0 -1
- package/dist/drawer-CjnhVMTw.d.mts +0 -72
- package/dist/drawer-DqAutQLS.d.cts +0 -72
- package/dist/drawer-H8uD0q-C.cjs +0 -2
- package/dist/drawer-H8uD0q-C.cjs.map +0 -1
- package/dist/dropdown-menu-CpA9s4II.d.cts +0 -127
- package/dist/dropdown-menu-CtJ_OM19.cjs +0 -2
- package/dist/dropdown-menu-CtJ_OM19.cjs.map +0 -1
- package/dist/dropdown-menu-DhKquziD.mjs +0 -2
- package/dist/dropdown-menu-DhKquziD.mjs.map +0 -1
- package/dist/dropdown-menu-aDVEkr4L.d.mts +0 -127
- package/dist/edit-B6hhKU53.d.cts +0 -17
- package/dist/edit-CJH1v_md.d.mts +0 -17
- package/dist/edit-DwHuMQMh.cjs +0 -2
- package/dist/edit-DwHuMQMh.cjs.map +0 -1
- package/dist/edit-FIiUWxZq.mjs +0 -2
- package/dist/edit-FIiUWxZq.mjs.map +0 -1
- package/dist/empty-BhV9ASYf.d.mts +0 -68
- package/dist/empty-CmIJYhmV.cjs +0 -2
- package/dist/empty-CmIJYhmV.cjs.map +0 -1
- package/dist/empty-CoKfJtGD.mjs +0 -2
- package/dist/empty-CoKfJtGD.mjs.map +0 -1
- package/dist/empty-D6t3C3WX.mjs +0 -2
- package/dist/empty-D6t3C3WX.mjs.map +0 -1
- package/dist/empty-DaK_4UmN.d.cts +0 -68
- package/dist/empty-OVsSwbVn.d.mts +0 -21
- package/dist/empty-dUZoxaBx.cjs +0 -2
- package/dist/empty-dUZoxaBx.cjs.map +0 -1
- package/dist/empty-z1Ft5uT1.d.cts +0 -21
- package/dist/error-dialog-B8CXPcst.cjs +0 -2
- package/dist/error-dialog-B8CXPcst.cjs.map +0 -1
- package/dist/error-dialog-D0jvqNoY.d.mts +0 -25
- package/dist/error-dialog-DlwWpKEY.d.cts +0 -25
- package/dist/error-dialog-DnntjOS9.mjs +0 -2
- package/dist/error-dialog-DnntjOS9.mjs.map +0 -1
- package/dist/field-BxYoF5AX.mjs +0 -2
- package/dist/field-BxYoF5AX.mjs.map +0 -1
- package/dist/field-fIef7NR0.cjs +0 -2
- package/dist/field-fIef7NR0.cjs.map +0 -1
- package/dist/file-uploader-BM0x9VBh.cjs +0 -3
- package/dist/file-uploader-BM0x9VBh.cjs.map +0 -1
- package/dist/file-uploader-BTWXTBeQ.mjs +0 -3
- package/dist/file-uploader-BTWXTBeQ.mjs.map +0 -1
- package/dist/file-uploader-Bcq3zzxa.d.cts +0 -103
- package/dist/file-uploader-nUOkG_fv.d.mts +0 -103
- package/dist/flex-BSTiMh2t.d.mts +0 -117
- package/dist/flex-Bx9Nmr53.mjs +0 -2
- package/dist/flex-Bx9Nmr53.mjs.map +0 -1
- package/dist/flex-ClUVVSda.d.cts +0 -117
- package/dist/flex-ld7BqXoM.cjs +0 -2
- package/dist/flex-ld7BqXoM.cjs.map +0 -1
- package/dist/form-BZAtjwSL.d.mts +0 -112
- package/dist/form-Cek0ebE_.d.cts +0 -112
- package/dist/form-DvtaketZ.mjs +0 -2
- package/dist/form-DvtaketZ.mjs.map +0 -1
- package/dist/form-RLIQQ3uV.cjs +0 -2
- package/dist/form-RLIQQ3uV.cjs.map +0 -1
- package/dist/google-BWOrgvy8.d.mts +0 -53
- package/dist/google-C4F5wQ9e.mjs +0 -2
- package/dist/google-C4F5wQ9e.mjs.map +0 -1
- package/dist/google-Cy0_rdmN.cjs +0 -2
- package/dist/google-Cy0_rdmN.cjs.map +0 -1
- package/dist/google-Dyb44d8Y.d.cts +0 -53
- package/dist/grid-BOqzD6m6.d.cts +0 -19
- package/dist/grid-BXJ2x1oD.cjs +0 -2
- package/dist/grid-BXJ2x1oD.cjs.map +0 -1
- package/dist/grid-C4ogfMWr.mjs +0 -2
- package/dist/grid-C4ogfMWr.mjs.map +0 -1
- package/dist/grid-Dw7tBNxf.d.mts +0 -19
- package/dist/grid-product-card-BD8EVmk6.d.cts +0 -37
- package/dist/grid-product-card-BpciVETd.cjs +0 -2
- package/dist/grid-product-card-BpciVETd.cjs.map +0 -1
- package/dist/grid-product-card-BtZwWaMo.mjs +0 -2
- package/dist/grid-product-card-BtZwWaMo.mjs.map +0 -1
- package/dist/grid-product-card-CoFzQiFm.d.mts +0 -37
- package/dist/heading-De4Pn3mZ.mjs +0 -2
- package/dist/heading-tGTqk3pA.cjs +0 -2
- package/dist/hover-card-D2gz257Y.d.cts +0 -37
- package/dist/hover-card-DMVePTD9.mjs +0 -2
- package/dist/hover-card-DMVePTD9.mjs.map +0 -1
- package/dist/hover-card-Dsf0S6eo.d.mts +0 -37
- package/dist/hover-card-Pde4G6Fc.cjs +0 -2
- package/dist/hover-card-Pde4G6Fc.cjs.map +0 -1
- package/dist/image-BBPrcvIr.d.cts +0 -36
- package/dist/image-CbZwvmmL.mjs +0 -2
- package/dist/image-CbZwvmmL.mjs.map +0 -1
- package/dist/image-CwnOaUW7.d.mts +0 -36
- package/dist/image-eYMg5TSJ.cjs +0 -2
- package/dist/image-eYMg5TSJ.cjs.map +0 -1
- package/dist/index-1T84UTtI.d.mts +0 -1707
- package/dist/index-B03QzDx1.d.mts +0 -17
- package/dist/index-BQZ2-xGQ.d.cts +0 -246
- package/dist/index-BWLHjQ6S.d.cts +0 -74
- package/dist/index-D4T3Qd4m.d.cts +0 -45
- package/dist/index-DC7NHLfc.d.cts +0 -17
- package/dist/index-DYnzFF0T.d.mts +0 -74
- package/dist/index-DYp6lUbn.d.mts +0 -45
- package/dist/index-DyYcTYcv.d.mts +0 -246
- package/dist/index-x5md75cy.d.cts +0 -1707
- package/dist/input-BatF2xqI.cjs +0 -2
- package/dist/input-BatF2xqI.cjs.map +0 -1
- package/dist/input-CFsouxvo.mjs +0 -2
- package/dist/input-CFsouxvo.mjs.map +0 -1
- package/dist/input-otp-C9SpN7qa.mjs +0 -2
- package/dist/input-otp-C9SpN7qa.mjs.map +0 -1
- package/dist/input-otp-CMEY_7IK.d.cts +0 -59
- package/dist/input-otp-DXt9rivn.d.mts +0 -59
- package/dist/input-otp-phGylVzo.cjs +0 -2
- package/dist/input-otp-phGylVzo.cjs.map +0 -1
- package/dist/item-DSaO7I07.d.cts +0 -102
- package/dist/item-Dq3WIh5a.d.mts +0 -102
- package/dist/item-uB0ZFXtc.cjs +0 -2
- package/dist/item-uB0ZFXtc.cjs.map +0 -1
- package/dist/item-ysEJO_2s.mjs +0 -2
- package/dist/item-ysEJO_2s.mjs.map +0 -1
- package/dist/label--hinNDHW.cjs +0 -2
- package/dist/label--hinNDHW.cjs.map +0 -1
- package/dist/label-BMVyfKu9.mjs +0 -2
- package/dist/label-BMVyfKu9.mjs.map +0 -1
- package/dist/label-CCE-kS4j.d.mts +0 -24
- package/dist/label-DGJL4U_f.d.cts +0 -24
- package/dist/loading-dialog-CEkua3Lh.mjs +0 -2
- package/dist/loading-dialog-CEkua3Lh.mjs.map +0 -1
- package/dist/loading-dialog-D8kCsJID.d.cts +0 -21
- package/dist/loading-dialog-DLvA8-yT.d.mts +0 -21
- package/dist/loading-dialog-DYZmHC1A.cjs +0 -2
- package/dist/loading-dialog-DYZmHC1A.cjs.map +0 -1
- package/dist/menubar-BBFgdkch.d.cts +0 -135
- package/dist/menubar-Bh9Ua6gx.mjs +0 -2
- package/dist/menubar-Bh9Ua6gx.mjs.map +0 -1
- package/dist/menubar-Sr0X6In7.cjs +0 -2
- package/dist/menubar-Sr0X6In7.cjs.map +0 -1
- package/dist/menubar-b3iR0kew.d.mts +0 -135
- package/dist/multi-select-BHqEpbWV.d.mts +0 -117
- package/dist/multi-select-CBZxsmZW.mjs +0 -2
- package/dist/multi-select-CBZxsmZW.mjs.map +0 -1
- package/dist/multi-select-DdXU9QtL.d.cts +0 -117
- package/dist/multi-select-uHi4rmly.cjs +0 -2
- package/dist/multi-select-uHi4rmly.cjs.map +0 -1
- package/dist/name-2FXVOGc1.d.mts +0 -19
- package/dist/name-D7oldyH4.cjs +0 -2
- package/dist/name-D7oldyH4.cjs.map +0 -1
- package/dist/name-EKzKeq0g.mjs +0 -2
- package/dist/name-EKzKeq0g.mjs.map +0 -1
- package/dist/name-r1ATxwPZ.d.cts +0 -19
- package/dist/navigation-menu-BNEtQ0JM.cjs +0 -2
- package/dist/navigation-menu-BNEtQ0JM.cjs.map +0 -1
- package/dist/navigation-menu-DT9LfEFB.d.mts +0 -77
- package/dist/navigation-menu-Dl0kgmce.d.cts +0 -77
- package/dist/navigation-menu-zlpQ6hqY.mjs +0 -2
- package/dist/navigation-menu-zlpQ6hqY.mjs.map +0 -1
- package/dist/pagination-D6lKOCca.cjs +0 -2
- package/dist/pagination-D6lKOCca.cjs.map +0 -1
- package/dist/pagination-DXpyiDJW.mjs +0 -2
- package/dist/pagination-DXpyiDJW.mjs.map +0 -1
- package/dist/pagination-DYHZgmcc.d.cts +0 -67
- package/dist/pagination-DYMPNWwJ.d.mts +0 -67
- package/dist/paragraph-CLhsGG8e.d.cts +0 -48
- package/dist/paragraph-DYLaQtTV.mjs +0 -2
- package/dist/paragraph-DYLaQtTV.mjs.map +0 -1
- package/dist/paragraph-DvTZvbzw.cjs +0 -2
- package/dist/paragraph-DvTZvbzw.cjs.map +0 -1
- package/dist/paragraph-o9QFeg6c.d.mts +0 -48
- package/dist/payment-layout-BTYaI9Mr.mjs +0 -2
- package/dist/payment-layout-BTYaI9Mr.mjs.map +0 -1
- package/dist/payment-layout-neLk_obm.cjs +0 -2
- package/dist/payment-layout-neLk_obm.cjs.map +0 -1
- package/dist/phone-number-BAqPxJ5z.d.cts +0 -19
- package/dist/phone-number-CUjSdoHG.d.mts +0 -19
- package/dist/phone-number-CdfMUTj2.cjs +0 -2
- package/dist/phone-number-CdfMUTj2.cjs.map +0 -1
- package/dist/phone-number-CkxEaxxg.mjs +0 -2
- package/dist/phone-number-CkxEaxxg.mjs.map +0 -1
- package/dist/popover-BGd0Tvmy.mjs +0 -2
- package/dist/popover-BGd0Tvmy.mjs.map +0 -1
- package/dist/popover-CaU_EoBJ.d.mts +0 -52
- package/dist/popover-eSwUy8WP.cjs +0 -2
- package/dist/popover-eSwUy8WP.cjs.map +0 -1
- package/dist/popover-m32DoRiq.d.cts +0 -52
- package/dist/product-card-10gaH8bg.cjs +0 -2
- package/dist/product-card-10gaH8bg.cjs.map +0 -1
- package/dist/product-card-C0l0q2Ve.d.cts +0 -37
- package/dist/product-card-CWrVGqZV.d.mts +0 -37
- package/dist/product-card-Rwd-o9hK.mjs +0 -2
- package/dist/product-card-Rwd-o9hK.mjs.map +0 -1
- package/dist/progress-BwbACJal.d.cts +0 -23
- package/dist/progress-Dlgbu5Ff.cjs +0 -2
- package/dist/progress-Dlgbu5Ff.cjs.map +0 -1
- package/dist/progress-RvyBMsxb.mjs +0 -2
- package/dist/progress-RvyBMsxb.mjs.map +0 -1
- package/dist/progress-sn0IL4k4.d.mts +0 -23
- package/dist/radio-group-C4sIDN68.cjs +0 -2
- package/dist/radio-group-C4sIDN68.cjs.map +0 -1
- package/dist/radio-group-CD-4vNQR.mjs +0 -2
- package/dist/radio-group-CD-4vNQR.mjs.map +0 -1
- package/dist/radio-group-Ck0NoDHp.d.cts +0 -37
- package/dist/radio-group-DeKN6NpB.d.mts +0 -37
- package/dist/refresh-BFJvyuJH.cjs +0 -2
- package/dist/refresh-BFJvyuJH.cjs.map +0 -1
- package/dist/refresh-BjdAiL4f.d.mts +0 -17
- package/dist/refresh-Bxm2I0Oe.mjs +0 -2
- package/dist/refresh-Bxm2I0Oe.mjs.map +0 -1
- package/dist/refresh-vK99pTVu.d.cts +0 -17
- package/dist/resizable-BilIxAxi.d.mts +0 -63
- package/dist/resizable-DYxHVdyf.d.cts +0 -63
- package/dist/resizable-p6zxjcHs.mjs +0 -2
- package/dist/resizable-p6zxjcHs.mjs.map +0 -1
- package/dist/resizable-yKKhHTqx.cjs +0 -2
- package/dist/resizable-yKKhHTqx.cjs.map +0 -1
- package/dist/role-badge-BIgdiY5P.mjs +0 -2
- package/dist/role-badge-BIgdiY5P.mjs.map +0 -1
- package/dist/role-badge-BwOEEepo.cjs +0 -2
- package/dist/role-badge-BwOEEepo.cjs.map +0 -1
- package/dist/role-badge-CBZdPHUc.d.cts +0 -22
- package/dist/role-badge-DeofJ2ep.d.mts +0 -22
- package/dist/scroll-area-C7s40z6d.d.mts +0 -37
- package/dist/scroll-area-CKWenzXh.d.cts +0 -37
- package/dist/scroll-area-Dn3a9ZCQ.cjs +0 -2
- package/dist/scroll-area-Dn3a9ZCQ.cjs.map +0 -1
- package/dist/scroll-area-DrZOWroA.mjs +0 -2
- package/dist/scroll-area-DrZOWroA.mjs.map +0 -1
- package/dist/search-input-7m30vApQ.d.mts +0 -29
- package/dist/search-input-BCYwlwtk.cjs +0 -2
- package/dist/search-input-BCYwlwtk.cjs.map +0 -1
- package/dist/search-input-DVtHPbme.d.cts +0 -29
- package/dist/search-input-D_nJ8McN.mjs +0 -2
- package/dist/search-input-D_nJ8McN.mjs.map +0 -1
- package/dist/search-modal-BJhXWOiv.cjs +0 -2
- package/dist/search-modal-BJhXWOiv.cjs.map +0 -1
- package/dist/search-modal-BpHuii66.mjs +0 -2
- package/dist/search-modal-BpHuii66.mjs.map +0 -1
- package/dist/select-B5q6krCq.cjs +0 -2
- package/dist/select-B5q6krCq.cjs.map +0 -1
- package/dist/select-CreOhvnP.mjs +0 -2
- package/dist/select-CreOhvnP.mjs.map +0 -1
- package/dist/select-D0mVxToc.d.mts +0 -77
- package/dist/select-D47FVDEv.d.cts +0 -77
- package/dist/separator-BRoS5sU8.cjs +0 -2
- package/dist/separator-BRoS5sU8.cjs.map +0 -1
- package/dist/separator-BT4tDBSP.d.mts +0 -34
- package/dist/separator-BjRgoiEx.mjs +0 -2
- package/dist/separator-BjRgoiEx.mjs.map +0 -1
- package/dist/separator-DOHFNx8Z.d.cts +0 -34
- package/dist/sheet-38e14yOJ.d.cts +0 -69
- package/dist/sheet-Bk6mK6TN.mjs +0 -2
- package/dist/sheet-Bk6mK6TN.mjs.map +0 -1
- package/dist/sheet-E5cMUzxr.cjs +0 -2
- package/dist/sheet-E5cMUzxr.cjs.map +0 -1
- package/dist/sheet-nSIzbJ1S.d.mts +0 -69
- package/dist/sidebar-DeiQjPc8.mjs +0 -2
- package/dist/sidebar-DeiQjPc8.mjs.map +0 -1
- package/dist/sidebar-DzqiY6IR.cjs +0 -2
- package/dist/sidebar-DzqiY6IR.cjs.map +0 -1
- package/dist/simple-card-C5Rr81Sm.cjs +0 -2
- package/dist/simple-card-C5Rr81Sm.cjs.map +0 -1
- package/dist/simple-card-CIB1_AO0.d.mts +0 -35
- package/dist/simple-card-CjJvBXKr.d.cts +0 -35
- package/dist/simple-card-HEzKjzGT.mjs +0 -2
- package/dist/simple-card-HEzKjzGT.mjs.map +0 -1
- package/dist/skeleton-BuscPZgb.cjs +0 -2
- package/dist/skeleton-BuscPZgb.cjs.map +0 -1
- package/dist/skeleton-Bw3-1Ifw.d.cts +0 -27
- package/dist/skeleton-teVJKfpX.mjs +0 -2
- package/dist/skeleton-teVJKfpX.mjs.map +0 -1
- package/dist/skeleton-wv8x-bmn.d.mts +0 -27
- package/dist/slider-CPRW5ByY.cjs +0 -2
- package/dist/slider-CPRW5ByY.cjs.map +0 -1
- package/dist/slider-CsNzhp4K.d.cts +0 -26
- package/dist/slider-RyNGQZH2.mjs +0 -2
- package/dist/slider-RyNGQZH2.mjs.map +0 -1
- package/dist/slider-axR5n-iU.d.mts +0 -26
- package/dist/sonner-BcwAttxz.d.cts +0 -24
- package/dist/sonner-DiKkRgL0.mjs +0 -2
- package/dist/sonner-DiKkRgL0.mjs.map +0 -1
- package/dist/sonner-hiZbh7Ma.d.mts +0 -24
- package/dist/sonner-tfvnW7f9.cjs +0 -2
- package/dist/sonner-tfvnW7f9.cjs.map +0 -1
- package/dist/spinner-8BhR5INj.d.cts +0 -25
- package/dist/spinner-BhIV1n_5.mjs +0 -2
- package/dist/spinner-BhIV1n_5.mjs.map +0 -1
- package/dist/spinner-BlcoDe44.cjs +0 -2
- package/dist/spinner-BlcoDe44.cjs.map +0 -1
- package/dist/spinner-YEHQDAMj.d.mts +0 -25
- package/dist/statistic-BGynCEWL.cjs +0 -2
- package/dist/statistic-BGynCEWL.cjs.map +0 -1
- package/dist/statistic-C7jb2YxN.d.cts +0 -57
- package/dist/statistic-DbQG1ymc.d.mts +0 -57
- package/dist/statistic-fawLJa99.mjs +0 -2
- package/dist/statistic-fawLJa99.mjs.map +0 -1
- package/dist/switch-BTU8yOgs.mjs +0 -2
- package/dist/switch-BTU8yOgs.mjs.map +0 -1
- package/dist/switch-BaLJWcs6.d.cts +0 -26
- package/dist/switch-DMEBc5Me.cjs +0 -2
- package/dist/switch-DMEBc5Me.cjs.map +0 -1
- package/dist/switch-gWDJ4yuM.d.mts +0 -26
- package/dist/table-B2rDsRr1.d.cts +0 -73
- package/dist/table-BmEJ-Ktq.d.mts +0 -73
- package/dist/table-DUDAeitX.mjs +0 -2
- package/dist/table-DUDAeitX.mjs.map +0 -1
- package/dist/table-DkGeuCS6.cjs +0 -2
- package/dist/table-DkGeuCS6.cjs.map +0 -1
- package/dist/tables-BhRUyHnO.cjs +0 -4
- package/dist/tables-BhRUyHnO.cjs.map +0 -1
- package/dist/tables-Dnu1akl3.mjs +0 -4
- package/dist/tables-Dnu1akl3.mjs.map +0 -1
- package/dist/tabs-564E0ez3.d.mts +0 -44
- package/dist/tabs-DFGhwbGp.mjs +0 -2
- package/dist/tabs-DFGhwbGp.mjs.map +0 -1
- package/dist/tabs-JR7-JzIe.cjs +0 -2
- package/dist/tabs-JR7-JzIe.cjs.map +0 -1
- package/dist/tabs-vAz8fioT.d.cts +0 -44
- package/dist/tanstack-form-4b7YcChW.cjs +0 -12
- package/dist/tanstack-form-4b7YcChW.cjs.map +0 -1
- package/dist/tanstack-form-Bo1AZA4L.mjs +0 -12
- package/dist/tanstack-form-Bo1AZA4L.mjs.map +0 -1
- package/dist/text-editor-D1vX6xed.mjs +0 -2
- package/dist/text-editor-D1vX6xed.mjs.map +0 -1
- package/dist/text-editor-Dr8BD9Bh.cjs +0 -2
- package/dist/text-editor-Dr8BD9Bh.cjs.map +0 -1
- package/dist/textarea-BNYJfmS1.cjs +0 -2
- package/dist/textarea-BNYJfmS1.cjs.map +0 -1
- package/dist/textarea-Be2gUM3T.d.mts +0 -30
- package/dist/textarea-Bh8TcWO-.mjs +0 -2
- package/dist/textarea-Bh8TcWO-.mjs.map +0 -1
- package/dist/textarea-DbmOLyAp.d.cts +0 -30
- package/dist/title-BlFwN8RM.d.mts +0 -43
- package/dist/title-CMLgxj8_.mjs +0 -2
- package/dist/title-CMLgxj8_.mjs.map +0 -1
- package/dist/title-DJuGuD0Q.d.cts +0 -43
- package/dist/title-DR8e6bHV.cjs +0 -2
- package/dist/title-DR8e6bHV.cjs.map +0 -1
- package/dist/toggle-B3j94Xvr.cjs +0 -2
- package/dist/toggle-B3j94Xvr.cjs.map +0 -1
- package/dist/toggle-BBOteSWq.d.mts +0 -32
- package/dist/toggle-D6bmp328.d.cts +0 -32
- package/dist/toggle-group-5CEKhPgb.d.mts +0 -39
- package/dist/toggle-group-BOubLcnF.d.cts +0 -39
- package/dist/toggle-group-CAIFsPEQ.cjs +0 -2
- package/dist/toggle-group-CAIFsPEQ.cjs.map +0 -1
- package/dist/toggle-group-DfzLXhuE.mjs +0 -2
- package/dist/toggle-group-DfzLXhuE.mjs.map +0 -1
- package/dist/toggle-jTYfZSWB.mjs +0 -2
- package/dist/toggle-jTYfZSWB.mjs.map +0 -1
- package/dist/tooltip-BBEcyuAE.mjs +0 -2
- package/dist/tooltip-BBEcyuAE.mjs.map +0 -1
- package/dist/tooltip-BFQy2Oca.d.mts +0 -55
- package/dist/tooltip-DBjqfkRe.d.cts +0 -55
- package/dist/tooltip-KEOJcYl8.cjs +0 -2
- package/dist/tooltip-KEOJcYl8.cjs.map +0 -1
- package/dist/trash-BxlUz9AR.cjs +0 -2
- package/dist/trash-BxlUz9AR.cjs.map +0 -1
- package/dist/trash-CV_nXOkW.d.mts +0 -17
- package/dist/trash-CZHL7ZuK.d.cts +0 -17
- package/dist/trash-UPoDDna-.mjs +0 -2
- package/dist/trash-UPoDDna-.mjs.map +0 -1
- package/dist/types-BAAJEExQ.cjs +0 -2
- package/dist/types-BAAJEExQ.cjs.map +0 -1
- package/dist/types-DodCf0NQ.mjs +0 -2
- package/dist/types-DodCf0NQ.mjs.map +0 -1
- package/dist/upload-image-BsCkSEXu.d.mts +0 -24
- package/dist/upload-image-CBVufZda.mjs +0 -2
- package/dist/upload-image-CBVufZda.mjs.map +0 -1
- package/dist/upload-image-CPWA9XOk.cjs +0 -2
- package/dist/upload-image-CPWA9XOk.cjs.map +0 -1
- package/dist/upload-image-CV3Xlq2w.d.cts +0 -24
- package/dist/user-B2Pml0ly.cjs +0 -2
- package/dist/user-B2Pml0ly.cjs.map +0 -1
- package/dist/user-B5efjaOf.d.cts +0 -23
- package/dist/user-Cl4BdxFy.d.mts +0 -23
- package/dist/user-DpBhqdvd.mjs +0 -2
- package/dist/user-DpBhqdvd.mjs.map +0 -1
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
|
|
3
|
+
//#region packages/components/ui/buttons/upload-image.d.ts
|
|
4
|
+
type Props = {
|
|
5
|
+
/**
|
|
6
|
+
* Numeric pixel value applied to both the `width` and `height` of the button via inline styles.
|
|
7
|
+
* @default '5rem'
|
|
8
|
+
*/
|
|
9
|
+
size?: number; /** Callback invoked when the button is clicked. */
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A square outline button for triggering image upload flows, rendered with an upload icon and a configurable size.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* import { UploadImageBtn } from '@customafk/lunas-ui/ui/buttons/upload-image';
|
|
17
|
+
*
|
|
18
|
+
* <UploadImageBtn size={96} onClick={() => openFilePicker()} />
|
|
19
|
+
*/
|
|
20
|
+
declare const UploadImageBtn: React.FC<PropsWithChildren<Props>>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { UploadImageBtn };
|
|
23
|
+
//# sourceMappingURL=upload-image.d.cts.map
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
|
|
3
|
+
//#region packages/components/ui/buttons/upload-image.d.ts
|
|
4
|
+
type Props = {
|
|
5
|
+
/**
|
|
6
|
+
* Numeric pixel value applied to both the `width` and `height` of the button via inline styles.
|
|
7
|
+
* @default '5rem'
|
|
8
|
+
*/
|
|
9
|
+
size?: number; /** Callback invoked when the button is clicked. */
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A square outline button for triggering image upload flows, rendered with an upload icon and a configurable size.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* import { UploadImageBtn } from '@customafk/lunas-ui/ui/buttons/upload-image';
|
|
17
|
+
*
|
|
18
|
+
* <UploadImageBtn size={96} onClick={() => openFilePicker()} />
|
|
19
|
+
*/
|
|
20
|
+
declare const UploadImageBtn: React.FC<PropsWithChildren<Props>>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { UploadImageBtn };
|
|
23
|
+
//# sourceMappingURL=upload-image.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import"
|
|
1
|
+
import{Button as e}from"../button.mjs";import{UploadIcon as t}from"lucide-react";import{jsx as n}from"react/jsx-runtime";const r=({size:r=`5rem`,onClick:i})=>n(e,{style:{width:r,height:r},variant:`outline`,color:`muted`,onClick:i,children:n(t,{className:`size-6`})});export{r as UploadImageBtn};
|
|
2
|
+
//# sourceMappingURL=upload-image.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-image.mjs","names":[],"sources":["../../../packages/components/ui/buttons/upload-image.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\n\nimport { UploadIcon } from 'lucide-react';\n\nimport { Button } from '../button';\n\ntype Props = {\n /**\n * Numeric pixel value applied to both the `width` and `height` of the button via inline styles.\n * @default '5rem'\n */\n size?: number;\n /** Callback invoked when the button is clicked. */\n onClick?: () => void;\n};\n\n/**\n * A square outline button for triggering image upload flows, rendered with an upload icon and a configurable size.\n *\n * @example\n * import { UploadImageBtn } from '@customafk/lunas-ui/ui/buttons/upload-image';\n *\n * <UploadImageBtn size={96} onClick={() => openFilePicker()} />\n */\nexport const UploadImageBtn: React.FC<PropsWithChildren<Props>> = ({ size = '5rem', onClick }) => {\n return (\n <Button\n style={{\n width: size,\n height: size,\n }}\n variant=\"outline\"\n color=\"muted\"\n onClick={onClick}\n >\n <UploadIcon className=\"size-6\" />\n </Button>\n );\n};\n"],"mappings":"yHAwBA,MAAa,GAAsD,CAAE,OAAO,OAAQ,aAEhF,EAAC,EAAD,CACE,MAAO,CACL,MAAO,EACP,OAAQ,CACV,EACA,QAAQ,UACR,MAAM,QACG,mBAET,EAAC,EAAD,CAAY,UAAU,QAAU,CAAA,CAC1B,CAAA"}
|
package/dist/ui/calendar.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use client";require(
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../button.variants-DOglUhSE.cjs"),t=require("./button.cjs");let n=require("lucide-react"),r=require("react"),i=require("@customafk/react-toolkit/utils"),a=require("react/jsx-runtime"),o=require("react-day-picker");const s=({rootRef:e,className:t,...n})=>(0,a.jsx)(`div`,{"data-slot":`calendar`,ref:e,className:(0,i.cn)(t),...n}),c=e=>e.orientation===`left`?(0,a.jsx)(n.ChevronLeftIcon,{size:16,className:e.className,...e}):e.orientation===`right`?(0,a.jsx)(n.ChevronRightIcon,{size:16,className:e.className,...e}):(0,a.jsx)(n.ChevronDownIcon,{size:16,className:e.className,...e}),l=({className:e,day:n,modifiers:s,color:c,...l})=>{let u=(0,o.getDefaultClassNames)(),d=(0,r.useRef)(null);return(0,r.useEffect)(()=>{s.focused&&d.current?.focus()},[s.focused]),(0,a.jsx)(t.Button,{ref:d,variant:`ghost`,color:`muted`,"data-day":n.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:(0,i.cn)(`flex aspect-square size-9 flex-col rounded font-normal text-sm tabular-nums leading-none`,`data-[selected-single=true]:bg-primary`,`data-[selected-single=true]:text-white`,`data-[range-middle=true]:bg-muted-muted`,`data-[range-middle=true]:text-text-positive`,`data-[range-start=true]:bg-primary-muted`,`data-[range-start=true]:text-text-positive-strong`,`data-[range-end=true]:bg-primary`,`data-[range-end=true]:text-text-positive-strong`,`group-data-[focused=true]/day:border-primary-strong`,`group-data-[focused=true]/day:relative`,`group-data-[focused=true]/day:z-10`,`data-[range-end=true]:rounded`,`data-[range-end=true]:rounded-r`,`data-[range-middle=true]:rounded-none`,`data-[range-start=true]:rounded`,`data-[range-start=true]:rounded-l`,`[&>span]:text-xs [&>span]:opacity-70`,u.day,e),...l})},u=({children:e,...t})=>(0,a.jsx)(`td`,{...t,children:(0,a.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})});function d({className:t,classNames:n,showOutsideDays:r=!0,captionLayout:d=`label`,buttonVariant:f=`ghost`,formatters:p,components:m,...h}){let g=(0,o.getDefaultClassNames)();return(0,a.jsx)(o.DayPicker,{showOutsideDays:r,className:(0,i.cn)(`group/calendar bg-background p-3`,`[--cell-size:--spacing(8)]`,`in-data-[slot=card-content]:bg-transparent`,`in-data-[slot=popover-content]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,t),captionLayout:d,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...p},classNames:{root:(0,i.cn)(g.root),months:(0,i.cn)(`flex gap-4 flex-col md:flex-row relative`,g.months),month:(0,i.cn)(`flex flex-col w-full gap-4`,g.month),nav:(0,i.cn)(`flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between`,g.nav),button_previous:(0,i.cn)(e.n({variant:`outline`,color:`muted`}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,g.button_previous),button_next:(0,i.cn)(e.n({variant:`outline`,color:`muted`}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,g.button_next),month_caption:(0,i.cn)(`flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)`,g.month_caption),dropdowns:(0,i.cn)(`w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5`,g.dropdowns),dropdown_root:(0,i.cn)(`relative has-focus:border-primary-strong border border-border-weak shadow-xs has-focus:ring-primary-weak has-focus:ring-[3px] rounded`,g.dropdown_root),dropdown:(0,i.cn)(`absolute inset-0 opacity-0`,g.dropdown),caption_label:(0,i.cn)(`select-none font-medium`,d===`label`&&`text-sm`,d!==`label`&&`rounded shadow-xs px-2 flex items-center gap-0.5 text-sm h-8 [&>svg]:text-text-positive [&>svg]:size-3.5`,g.caption_label),table:`w-full border-collapse`,weekdays:(0,i.cn)(`flex`,g.weekdays),weekday:(0,i.cn)(`text-text-positive rounded flex-1 font-normal text-[0.8rem] select-none`,g.weekday),week:(0,i.cn)(`flex w-full mt-2`,g.week),week_number_header:(0,i.cn)(`select-none w-(--cell-size)`,g.week_number_header),week_number:(0,i.cn)(`text-[0.8rem] select-none text-text-positive`,g.week_number),day:(0,i.cn)(`relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l [&:last-child[data-selected=true]_button]:rounded-r group/day aspect-square select-none`,g.day),range_start:(0,i.cn)(`rounded-l bg-muted-muted`,g.range_start),range_middle:(0,i.cn)(`rounded-none`,g.range_middle),range_end:(0,i.cn)(`rounded-r bg-muted-muted`,g.range_end),today:(0,i.cn)(`bg-muted-muted text-text-positive rounded data-[selected=true]:rounded-none`,g.today),outside:(0,i.cn)(`[&>button]:text-text-positive-muted aria-selected:text-text-positive`),disabled:(0,i.cn)(`bg-muted-muted text-text-positive opacity-50`,g.disabled),hidden:(0,i.cn)(`invisible`,g.hidden),...n},components:{Root:s,Chevron:c,DayButton:l,WeekNumber:u,...m},...h})}exports.Calendar=d,exports.CalendarDayButton=l;
|
|
2
|
+
//# sourceMappingURL=calendar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.cjs","names":["ChevronLeftIcon","ChevronRightIcon","ChevronDownIcon","Button","DayPicker","buttonVariants"],"sources":["../../packages/components/ui/calendar.tsx"],"sourcesContent":["'use client';\nimport { type HTMLAttributes, type ThHTMLAttributes, useEffect, useRef } from 'react';\n\nimport { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Button } from '@/components/ui/button';\nimport { buttonVariants } from '@/components/ui/button.variants';\n\nimport { type CalendarWeek, type CustomComponents, type DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker';\n\nconst CalendarRoot = ({\n rootRef,\n className,\n ...props\n}: {\n rootRef?: React.Ref<HTMLDivElement>;\n} & HTMLAttributes<HTMLDivElement>) => {\n return <div data-slot=\"calendar\" ref={rootRef} className={cn(className)} {...props} />;\n};\n\nconst CalendarChevron = (props: { className?: string; size?: number; disabled?: boolean; orientation?: 'up' | 'down' | 'left' | 'right' }) => {\n if (props.orientation === 'left') {\n return <ChevronLeftIcon size={16} className={props.className} {...props} />;\n }\n\n if (props.orientation === 'right') {\n return <ChevronRightIcon size={16} className={props.className} {...props} />;\n }\n\n return <ChevronDownIcon size={16} className={props.className} {...props} />;\n};\n\nconst CalendarDayButton = ({ className, day, modifiers, color: _, ...props }: React.ComponentProps<typeof DayButton>) => {\n const defaultClassNames = getDefaultClassNames();\n\n const ref = useRef<HTMLButtonElement>(null);\n useEffect(() => {\n if (modifiers.focused) ref.current?.focus();\n }, [modifiers.focused]);\n\n return (\n <Button\n ref={ref}\n variant=\"ghost\"\n color=\"muted\"\n data-day={day.date.toLocaleDateString()}\n data-selected-single={modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle}\n data-range-start={modifiers.range_start}\n data-range-end={modifiers.range_end}\n data-range-middle={modifiers.range_middle}\n className={cn(\n 'flex aspect-square size-9 flex-col rounded font-normal text-sm tabular-nums leading-none',\n 'data-[selected-single=true]:bg-primary',\n 'data-[selected-single=true]:text-white',\n 'data-[range-middle=true]:bg-muted-muted',\n 'data-[range-middle=true]:text-text-positive',\n 'data-[range-start=true]:bg-primary-muted',\n 'data-[range-start=true]:text-text-positive-strong',\n 'data-[range-end=true]:bg-primary',\n 'data-[range-end=true]:text-text-positive-strong',\n 'group-data-[focused=true]/day:border-primary-strong',\n 'group-data-[focused=true]/day:relative',\n 'group-data-[focused=true]/day:z-10',\n 'data-[range-end=true]:rounded',\n 'data-[range-end=true]:rounded-r',\n 'data-[range-middle=true]:rounded-none',\n 'data-[range-start=true]:rounded',\n 'data-[range-start=true]:rounded-l',\n '[&>span]:text-xs [&>span]:opacity-70',\n defaultClassNames.day,\n className\n )}\n {...props}\n />\n );\n};\n\nconst CalendarWeekNumber = ({\n children,\n ...props\n}: {\n week: CalendarWeek;\n} & ThHTMLAttributes<HTMLTableCellElement>) => {\n return (\n <td {...props}>\n <div className=\"flex size-(--cell-size) items-center justify-center text-center\">{children}</div>\n </td>\n );\n};\n\n/**\n * A fully styled date-picker calendar built on top of react-day-picker, supporting single, range, and multiple selection modes.\n *\n * @example\n * ```tsx\n * import { Calendar } from '@customafk/lunas-ui/ui/calendar';\n *\n * const [date, setDate] = React.useState<Date>();\n *\n * <Calendar\n * mode=\"single\"\n * selected={date}\n * onSelect={setDate}\n * captionLayout=\"dropdown\"\n * />\n * ```\n */\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n captionLayout = 'label',\n buttonVariant = 'ghost',\n formatters,\n components,\n ...props\n}: React.ComponentProps<typeof DayPicker> & {\n /** Variant applied to the previous/next navigation buttons. */\n buttonVariant?: React.ComponentProps<typeof Button>['variant'];\n}) {\n const defaultClassNames = getDefaultClassNames();\n\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\n 'group/calendar bg-background p-3',\n '[--cell-size:--spacing(8)]',\n 'in-data-[slot=card-content]:bg-transparent',\n 'in-data-[slot=popover-content]:bg-transparent',\n String.raw`rtl:**:[.rdp-button\\_next>svg]:rotate-180`,\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\n className\n )}\n captionLayout={captionLayout}\n formatters={{\n formatMonthDropdown: date => date.toLocaleString('default', { month: 'short' }),\n ...formatters,\n }}\n classNames={{\n root: cn(defaultClassNames.root),\n months: cn('flex gap-4 flex-col md:flex-row relative', defaultClassNames.months),\n month: cn('flex flex-col w-full gap-4', defaultClassNames.month),\n nav: cn('flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between', defaultClassNames.nav),\n button_previous: cn(\n buttonVariants({ variant: 'outline', color: 'muted' }),\n 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none',\n defaultClassNames.button_previous\n ),\n button_next: cn(\n buttonVariants({ variant: 'outline', color: 'muted' }),\n 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none',\n defaultClassNames.button_next\n ),\n month_caption: cn('flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)', defaultClassNames.month_caption),\n dropdowns: cn('w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5', defaultClassNames.dropdowns),\n dropdown_root: cn(\n 'relative has-focus:border-primary-strong border border-border-weak shadow-xs has-focus:ring-primary-weak has-focus:ring-[3px] rounded',\n defaultClassNames.dropdown_root\n ),\n dropdown: cn('absolute inset-0 opacity-0', defaultClassNames.dropdown),\n caption_label: cn(\n 'select-none font-medium',\n captionLayout === 'label' && 'text-sm',\n captionLayout !== 'label' && 'rounded shadow-xs px-2 flex items-center gap-0.5 text-sm h-8 [&>svg]:text-text-positive [&>svg]:size-3.5',\n defaultClassNames.caption_label\n ),\n table: 'w-full border-collapse',\n weekdays: cn('flex', defaultClassNames.weekdays),\n weekday: cn('text-text-positive rounded flex-1 font-normal text-[0.8rem] select-none', defaultClassNames.weekday),\n week: cn('flex w-full mt-2', defaultClassNames.week),\n week_number_header: cn('select-none w-(--cell-size)', defaultClassNames.week_number_header),\n week_number: cn('text-[0.8rem] select-none text-text-positive', defaultClassNames.week_number),\n day: cn(\n 'relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l [&:last-child[data-selected=true]_button]:rounded-r group/day aspect-square select-none',\n defaultClassNames.day\n ),\n range_start: cn('rounded-l bg-muted-muted', defaultClassNames.range_start),\n range_middle: cn('rounded-none', defaultClassNames.range_middle),\n range_end: cn('rounded-r bg-muted-muted', defaultClassNames.range_end),\n today: cn('bg-muted-muted text-text-positive rounded data-[selected=true]:rounded-none', defaultClassNames.today),\n outside: cn('[&>button]:text-text-positive-muted aria-selected:text-text-positive'),\n disabled: cn('bg-muted-muted text-text-positive opacity-50', defaultClassNames.disabled),\n hidden: cn('invisible', defaultClassNames.hidden),\n ...classNames,\n }}\n components={{\n Root: CalendarRoot as CustomComponents['Root'],\n Chevron: CalendarChevron as CustomComponents['Chevron'],\n DayButton: CalendarDayButton as CustomComponents['DayButton'],\n WeekNumber: CalendarWeekNumber as CustomComponents['WeekNumber'],\n ...components,\n }}\n {...props}\n />\n );\n}\n\nexport { Calendar, CalendarDayButton };\n"],"mappings":"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"}
|
package/dist/ui/calendar.d.cts
CHANGED
|
@@ -1,2 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as Button } from "../button-DIqm3YRo.cjs";
|
|
2
|
+
import { DayButton, DayPicker } from "react-day-picker";
|
|
3
|
+
|
|
4
|
+
//#region packages/components/ui/calendar.d.ts
|
|
5
|
+
declare const CalendarDayButton: ({
|
|
6
|
+
className,
|
|
7
|
+
day,
|
|
8
|
+
modifiers,
|
|
9
|
+
color: _,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof DayButton>) => import("react").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* A fully styled date-picker calendar built on top of react-day-picker, supporting single, range, and multiple selection modes.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { Calendar } from '@customafk/lunas-ui/ui/calendar';
|
|
18
|
+
*
|
|
19
|
+
* const [date, setDate] = React.useState<Date>();
|
|
20
|
+
*
|
|
21
|
+
* <Calendar
|
|
22
|
+
* mode="single"
|
|
23
|
+
* selected={date}
|
|
24
|
+
* onSelect={setDate}
|
|
25
|
+
* captionLayout="dropdown"
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare function Calendar({
|
|
30
|
+
className,
|
|
31
|
+
classNames,
|
|
32
|
+
showOutsideDays,
|
|
33
|
+
captionLayout,
|
|
34
|
+
buttonVariant,
|
|
35
|
+
formatters,
|
|
36
|
+
components,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof DayPicker> & {
|
|
39
|
+
/** Variant applied to the previous/next navigation buttons. */buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
40
|
+
}): import("react").JSX.Element;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Calendar, CalendarDayButton };
|
|
43
|
+
//# sourceMappingURL=calendar.d.cts.map
|
package/dist/ui/calendar.d.mts
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
-
import "../button-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { t as Button } from "../button-DIqm3YRo.mjs";
|
|
2
|
+
import { DayButton, DayPicker } from "react-day-picker";
|
|
3
|
+
|
|
4
|
+
//#region packages/components/ui/calendar.d.ts
|
|
5
|
+
declare const CalendarDayButton: ({
|
|
6
|
+
className,
|
|
7
|
+
day,
|
|
8
|
+
modifiers,
|
|
9
|
+
color: _,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof DayButton>) => import("react").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* A fully styled date-picker calendar built on top of react-day-picker, supporting single, range, and multiple selection modes.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { Calendar } from '@customafk/lunas-ui/ui/calendar';
|
|
18
|
+
*
|
|
19
|
+
* const [date, setDate] = React.useState<Date>();
|
|
20
|
+
*
|
|
21
|
+
* <Calendar
|
|
22
|
+
* mode="single"
|
|
23
|
+
* selected={date}
|
|
24
|
+
* onSelect={setDate}
|
|
25
|
+
* captionLayout="dropdown"
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare function Calendar({
|
|
30
|
+
className,
|
|
31
|
+
classNames,
|
|
32
|
+
showOutsideDays,
|
|
33
|
+
captionLayout,
|
|
34
|
+
buttonVariant,
|
|
35
|
+
formatters,
|
|
36
|
+
components,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof DayPicker> & {
|
|
39
|
+
/** Variant applied to the previous/next navigation buttons. */buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
40
|
+
}): import("react").JSX.Element;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Calendar, CalendarDayButton };
|
|
43
|
+
//# sourceMappingURL=calendar.d.mts.map
|
package/dist/ui/calendar.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use client";import"../button.variants-
|
|
1
|
+
"use client";import{n as e}from"../button.variants-pziHKxvE.mjs";import{Button as t}from"./button.mjs";import{ChevronDownIcon as n,ChevronLeftIcon as r,ChevronRightIcon as i}from"lucide-react";import{useEffect as a,useRef as o}from"react";import{cn as s}from"@customafk/react-toolkit/utils";import{jsx as c}from"react/jsx-runtime";import{DayPicker as l,getDefaultClassNames as u}from"react-day-picker";const d=({rootRef:e,className:t,...n})=>c(`div`,{"data-slot":`calendar`,ref:e,className:s(t),...n}),f=e=>e.orientation===`left`?c(r,{size:16,className:e.className,...e}):e.orientation===`right`?c(i,{size:16,className:e.className,...e}):c(n,{size:16,className:e.className,...e}),p=({className:e,day:n,modifiers:r,color:i,...l})=>{let d=u(),f=o(null);return a(()=>{r.focused&&f.current?.focus()},[r.focused]),c(t,{ref:f,variant:`ghost`,color:`muted`,"data-day":n.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:s(`flex aspect-square size-9 flex-col rounded font-normal text-sm tabular-nums leading-none`,`data-[selected-single=true]:bg-primary`,`data-[selected-single=true]:text-white`,`data-[range-middle=true]:bg-muted-muted`,`data-[range-middle=true]:text-text-positive`,`data-[range-start=true]:bg-primary-muted`,`data-[range-start=true]:text-text-positive-strong`,`data-[range-end=true]:bg-primary`,`data-[range-end=true]:text-text-positive-strong`,`group-data-[focused=true]/day:border-primary-strong`,`group-data-[focused=true]/day:relative`,`group-data-[focused=true]/day:z-10`,`data-[range-end=true]:rounded`,`data-[range-end=true]:rounded-r`,`data-[range-middle=true]:rounded-none`,`data-[range-start=true]:rounded`,`data-[range-start=true]:rounded-l`,`[&>span]:text-xs [&>span]:opacity-70`,d.day,e),...l})},m=({children:e,...t})=>c(`td`,{...t,children:c(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})});function h({className:t,classNames:n,showOutsideDays:r=!0,captionLayout:i=`label`,buttonVariant:a=`ghost`,formatters:o,components:h,...g}){let _=u();return c(l,{showOutsideDays:r,className:s(`group/calendar bg-background p-3`,`[--cell-size:--spacing(8)]`,`in-data-[slot=card-content]:bg-transparent`,`in-data-[slot=popover-content]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,t),captionLayout:i,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...o},classNames:{root:s(_.root),months:s(`flex gap-4 flex-col md:flex-row relative`,_.months),month:s(`flex flex-col w-full gap-4`,_.month),nav:s(`flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between`,_.nav),button_previous:s(e({variant:`outline`,color:`muted`}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,_.button_previous),button_next:s(e({variant:`outline`,color:`muted`}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,_.button_next),month_caption:s(`flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)`,_.month_caption),dropdowns:s(`w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5`,_.dropdowns),dropdown_root:s(`relative has-focus:border-primary-strong border border-border-weak shadow-xs has-focus:ring-primary-weak has-focus:ring-[3px] rounded`,_.dropdown_root),dropdown:s(`absolute inset-0 opacity-0`,_.dropdown),caption_label:s(`select-none font-medium`,i===`label`&&`text-sm`,i!==`label`&&`rounded shadow-xs px-2 flex items-center gap-0.5 text-sm h-8 [&>svg]:text-text-positive [&>svg]:size-3.5`,_.caption_label),table:`w-full border-collapse`,weekdays:s(`flex`,_.weekdays),weekday:s(`text-text-positive rounded flex-1 font-normal text-[0.8rem] select-none`,_.weekday),week:s(`flex w-full mt-2`,_.week),week_number_header:s(`select-none w-(--cell-size)`,_.week_number_header),week_number:s(`text-[0.8rem] select-none text-text-positive`,_.week_number),day:s(`relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l [&:last-child[data-selected=true]_button]:rounded-r group/day aspect-square select-none`,_.day),range_start:s(`rounded-l bg-muted-muted`,_.range_start),range_middle:s(`rounded-none`,_.range_middle),range_end:s(`rounded-r bg-muted-muted`,_.range_end),today:s(`bg-muted-muted text-text-positive rounded data-[selected=true]:rounded-none`,_.today),outside:s(`[&>button]:text-text-positive-muted aria-selected:text-text-positive`),disabled:s(`bg-muted-muted text-text-positive opacity-50`,_.disabled),hidden:s(`invisible`,_.hidden),...n},components:{Root:d,Chevron:f,DayButton:p,WeekNumber:m,...h},...g})}export{h as Calendar,p as CalendarDayButton};
|
|
2
|
+
//# sourceMappingURL=calendar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.mjs","names":[],"sources":["../../packages/components/ui/calendar.tsx"],"sourcesContent":["'use client';\nimport { type HTMLAttributes, type ThHTMLAttributes, useEffect, useRef } from 'react';\n\nimport { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Button } from '@/components/ui/button';\nimport { buttonVariants } from '@/components/ui/button.variants';\n\nimport { type CalendarWeek, type CustomComponents, type DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker';\n\nconst CalendarRoot = ({\n rootRef,\n className,\n ...props\n}: {\n rootRef?: React.Ref<HTMLDivElement>;\n} & HTMLAttributes<HTMLDivElement>) => {\n return <div data-slot=\"calendar\" ref={rootRef} className={cn(className)} {...props} />;\n};\n\nconst CalendarChevron = (props: { className?: string; size?: number; disabled?: boolean; orientation?: 'up' | 'down' | 'left' | 'right' }) => {\n if (props.orientation === 'left') {\n return <ChevronLeftIcon size={16} className={props.className} {...props} />;\n }\n\n if (props.orientation === 'right') {\n return <ChevronRightIcon size={16} className={props.className} {...props} />;\n }\n\n return <ChevronDownIcon size={16} className={props.className} {...props} />;\n};\n\nconst CalendarDayButton = ({ className, day, modifiers, color: _, ...props }: React.ComponentProps<typeof DayButton>) => {\n const defaultClassNames = getDefaultClassNames();\n\n const ref = useRef<HTMLButtonElement>(null);\n useEffect(() => {\n if (modifiers.focused) ref.current?.focus();\n }, [modifiers.focused]);\n\n return (\n <Button\n ref={ref}\n variant=\"ghost\"\n color=\"muted\"\n data-day={day.date.toLocaleDateString()}\n data-selected-single={modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle}\n data-range-start={modifiers.range_start}\n data-range-end={modifiers.range_end}\n data-range-middle={modifiers.range_middle}\n className={cn(\n 'flex aspect-square size-9 flex-col rounded font-normal text-sm tabular-nums leading-none',\n 'data-[selected-single=true]:bg-primary',\n 'data-[selected-single=true]:text-white',\n 'data-[range-middle=true]:bg-muted-muted',\n 'data-[range-middle=true]:text-text-positive',\n 'data-[range-start=true]:bg-primary-muted',\n 'data-[range-start=true]:text-text-positive-strong',\n 'data-[range-end=true]:bg-primary',\n 'data-[range-end=true]:text-text-positive-strong',\n 'group-data-[focused=true]/day:border-primary-strong',\n 'group-data-[focused=true]/day:relative',\n 'group-data-[focused=true]/day:z-10',\n 'data-[range-end=true]:rounded',\n 'data-[range-end=true]:rounded-r',\n 'data-[range-middle=true]:rounded-none',\n 'data-[range-start=true]:rounded',\n 'data-[range-start=true]:rounded-l',\n '[&>span]:text-xs [&>span]:opacity-70',\n defaultClassNames.day,\n className\n )}\n {...props}\n />\n );\n};\n\nconst CalendarWeekNumber = ({\n children,\n ...props\n}: {\n week: CalendarWeek;\n} & ThHTMLAttributes<HTMLTableCellElement>) => {\n return (\n <td {...props}>\n <div className=\"flex size-(--cell-size) items-center justify-center text-center\">{children}</div>\n </td>\n );\n};\n\n/**\n * A fully styled date-picker calendar built on top of react-day-picker, supporting single, range, and multiple selection modes.\n *\n * @example\n * ```tsx\n * import { Calendar } from '@customafk/lunas-ui/ui/calendar';\n *\n * const [date, setDate] = React.useState<Date>();\n *\n * <Calendar\n * mode=\"single\"\n * selected={date}\n * onSelect={setDate}\n * captionLayout=\"dropdown\"\n * />\n * ```\n */\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n captionLayout = 'label',\n buttonVariant = 'ghost',\n formatters,\n components,\n ...props\n}: React.ComponentProps<typeof DayPicker> & {\n /** Variant applied to the previous/next navigation buttons. */\n buttonVariant?: React.ComponentProps<typeof Button>['variant'];\n}) {\n const defaultClassNames = getDefaultClassNames();\n\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\n 'group/calendar bg-background p-3',\n '[--cell-size:--spacing(8)]',\n 'in-data-[slot=card-content]:bg-transparent',\n 'in-data-[slot=popover-content]:bg-transparent',\n String.raw`rtl:**:[.rdp-button\\_next>svg]:rotate-180`,\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\n className\n )}\n captionLayout={captionLayout}\n formatters={{\n formatMonthDropdown: date => date.toLocaleString('default', { month: 'short' }),\n ...formatters,\n }}\n classNames={{\n root: cn(defaultClassNames.root),\n months: cn('flex gap-4 flex-col md:flex-row relative', defaultClassNames.months),\n month: cn('flex flex-col w-full gap-4', defaultClassNames.month),\n nav: cn('flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between', defaultClassNames.nav),\n button_previous: cn(\n buttonVariants({ variant: 'outline', color: 'muted' }),\n 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none',\n defaultClassNames.button_previous\n ),\n button_next: cn(\n buttonVariants({ variant: 'outline', color: 'muted' }),\n 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none',\n defaultClassNames.button_next\n ),\n month_caption: cn('flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)', defaultClassNames.month_caption),\n dropdowns: cn('w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5', defaultClassNames.dropdowns),\n dropdown_root: cn(\n 'relative has-focus:border-primary-strong border border-border-weak shadow-xs has-focus:ring-primary-weak has-focus:ring-[3px] rounded',\n defaultClassNames.dropdown_root\n ),\n dropdown: cn('absolute inset-0 opacity-0', defaultClassNames.dropdown),\n caption_label: cn(\n 'select-none font-medium',\n captionLayout === 'label' && 'text-sm',\n captionLayout !== 'label' && 'rounded shadow-xs px-2 flex items-center gap-0.5 text-sm h-8 [&>svg]:text-text-positive [&>svg]:size-3.5',\n defaultClassNames.caption_label\n ),\n table: 'w-full border-collapse',\n weekdays: cn('flex', defaultClassNames.weekdays),\n weekday: cn('text-text-positive rounded flex-1 font-normal text-[0.8rem] select-none', defaultClassNames.weekday),\n week: cn('flex w-full mt-2', defaultClassNames.week),\n week_number_header: cn('select-none w-(--cell-size)', defaultClassNames.week_number_header),\n week_number: cn('text-[0.8rem] select-none text-text-positive', defaultClassNames.week_number),\n day: cn(\n 'relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l [&:last-child[data-selected=true]_button]:rounded-r group/day aspect-square select-none',\n defaultClassNames.day\n ),\n range_start: cn('rounded-l bg-muted-muted', defaultClassNames.range_start),\n range_middle: cn('rounded-none', defaultClassNames.range_middle),\n range_end: cn('rounded-r bg-muted-muted', defaultClassNames.range_end),\n today: cn('bg-muted-muted text-text-positive rounded data-[selected=true]:rounded-none', defaultClassNames.today),\n outside: cn('[&>button]:text-text-positive-muted aria-selected:text-text-positive'),\n disabled: cn('bg-muted-muted text-text-positive opacity-50', defaultClassNames.disabled),\n hidden: cn('invisible', defaultClassNames.hidden),\n ...classNames,\n }}\n components={{\n Root: CalendarRoot as CustomComponents['Root'],\n Chevron: CalendarChevron as CustomComponents['Chevron'],\n DayButton: CalendarDayButton as CustomComponents['DayButton'],\n WeekNumber: CalendarWeekNumber as CustomComponents['WeekNumber'],\n ...components,\n }}\n {...props}\n />\n );\n}\n\nexport { Calendar, CalendarDayButton };\n"],"mappings":"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"}
|
package/dist/ui/card.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use client";require(
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../heading-DLjnJc1q.cjs"),t=require("../typography/paragraph.cjs");let n=require("@customafk/react-toolkit/utils"),r=require("react/jsx-runtime");function i({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card`,className:(0,n.cn)(`flex flex-col gap-6 rounded-lg border border-border bg-card py-6 text-text-positive shadow-card`,`transition-[box-shadow,opacity] duration-150 ease-in-out`,`data-[interactive=true]:cursor-pointer`,`data-[interactive=true]:hover:shadow-dropdown`,`data-[interactive=true]:focus-visible:outline-none data-[interactive=true]:focus-visible:ring-2 data-[interactive=true]:focus-visible:ring-ring data-[interactive=true]:focus-visible:ring-offset-2`,`data-[interactive=true]:active:opacity-90`,e),...t})}function a({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:(0,n.cn)(`@container/card-header`,`grid auto-rows-min grid-rows-[auto_auto]`,`items-start gap-1.5 px-6 text-text-positive-strong`,`has-data-[slot=card-action]:grid-cols-[1fr_auto]`,`[.border-b]:pb-6`,e),...t})}function o({className:t,...i}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:(0,n.cn)(e.t({level:`h3`}),t),...i})}function s({className:e,...i}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:(0,n.cn)(t.paragraphVariants({variant:`muted`}),e),...i})}function c({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-action`,className:(0,n.cn)(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...t})}function l({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:(0,n.cn)(`px-6 text-sm`,e),...t})}function u({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:(0,n.cn)(`flex items-center px-6 text-sm [.border-t]:pt-6`,e),...t})}exports.Card=i,exports.CardAction=c,exports.CardContent=l,exports.CardDescription=s,exports.CardFooter=u,exports.CardHeader=a,exports.CardTitle=o;
|
|
2
|
+
//# sourceMappingURL=card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.cjs","names":["headingVariants","paragraphVariants"],"sources":["../../packages/components/ui/card.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\n\n/**\n * Surface container for grouping related content with a bordered, shadowed panel that supports optional interactive hover states.\n *\n * @example\n * ```tsx\n * import {\n * Card, CardHeader, CardTitle, CardDescription,\n * CardContent, CardFooter, CardAction,\n * } from '@customafk/lunas-ui/ui/card';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Card>\n * <CardHeader>\n * <CardTitle>Plan overview</CardTitle>\n * <CardDescription>Your current subscription details.</CardDescription>\n * <CardAction><Button size=\"sm\">Upgrade</Button></CardAction>\n * </CardHeader>\n * <CardContent>Monthly usage: 42 / 100 requests</CardContent>\n * <CardFooter>Renews on 1 Jun 2026</CardFooter>\n * </Card>\n * ```\n */\nfunction Card({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n 'flex flex-col gap-6 rounded-lg border border-border bg-card py-6 text-text-positive shadow-card',\n 'transition-[box-shadow,opacity] duration-150 ease-in-out',\n 'data-[interactive=true]:cursor-pointer',\n 'data-[interactive=true]:hover:shadow-dropdown',\n 'data-[interactive=true]:focus-visible:outline-none data-[interactive=true]:focus-visible:ring-2 data-[interactive=true]:focus-visible:ring-ring data-[interactive=true]:focus-visible:ring-offset-2',\n 'data-[interactive=true]:active:opacity-90',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Top section of the card that holds the title, description, and optional action slot. */\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n '@container/card-header',\n 'grid auto-rows-min grid-rows-[auto_auto]',\n 'items-start gap-1.5 px-6 text-text-positive-strong',\n 'has-data-[slot=card-action]:grid-cols-[1fr_auto]',\n '[.border-b]:pb-6',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Primary heading for the card, styled with the h3 heading variant. */\nfunction CardTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text displayed beneath the card title. */\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\n/** Optional slot in the card header for a contextual action (e.g. a button or menu); positioned in the top-right grid cell. */\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-action\" className={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)} {...props} />;\n}\n\n/** Main body area of the card with horizontal padding for content alignment. */\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-content\" className={cn('px-6 text-sm', className)} {...props} />;\n}\n\n/** Bottom section of the card, typically used for supplementary text or secondary actions. */\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-footer\" className={cn('flex items-center px-6 text-sm [.border-t]:pt-6', className)} {...props} />;\n}\n\nexport { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\n"],"mappings":"mPA4BA,SAAS,EAAK,CAAE,YAAW,GAAG,GAAsC,CAClE,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,OACV,WAAA,EAAA,EAAA,GAAA,CACE,kGACA,2DACA,yCACA,gDACA,sMACA,4CACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAGA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,cACV,WAAA,EAAA,EAAA,GAAA,CACE,yBACA,2CACA,qDACA,mDACA,mBACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAGA,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,aAAa,WAAA,EAAA,EAAA,GAAA,CAAcA,EAAAA,EAAgB,CAAE,MAAO,IAAK,CAAC,EAAG,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC7G,CAGA,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAsC,CAC7E,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,mBAAmB,WAAA,EAAA,EAAA,GAAA,CAAcC,EAAAA,kBAAkB,CAAE,QAAS,OAAQ,CAAC,EAAG,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC1H,CAGA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,cAAc,WAAA,EAAA,EAAA,GAAA,CAAc,iEAAkE,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC9I,CAGA,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,eAAe,WAAA,EAAA,EAAA,GAAA,CAAc,eAAgB,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC7F,CAGA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,cAAc,WAAA,EAAA,EAAA,GAAA,CAAc,kDAAmD,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC/H"}
|
package/dist/ui/card.d.cts
CHANGED
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region packages/components/ui/card.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Surface container for grouping related content with a bordered, shadowed panel that supports optional interactive hover states.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* import {
|
|
8
|
+
* Card, CardHeader, CardTitle, CardDescription,
|
|
9
|
+
* CardContent, CardFooter, CardAction,
|
|
10
|
+
* } from '@customafk/lunas-ui/ui/card';
|
|
11
|
+
* import { Button } from '@customafk/lunas-ui/ui/button';
|
|
12
|
+
*
|
|
13
|
+
* <Card>
|
|
14
|
+
* <CardHeader>
|
|
15
|
+
* <CardTitle>Plan overview</CardTitle>
|
|
16
|
+
* <CardDescription>Your current subscription details.</CardDescription>
|
|
17
|
+
* <CardAction><Button size="sm">Upgrade</Button></CardAction>
|
|
18
|
+
* </CardHeader>
|
|
19
|
+
* <CardContent>Monthly usage: 42 / 100 requests</CardContent>
|
|
20
|
+
* <CardFooter>Renews on 1 Jun 2026</CardFooter>
|
|
21
|
+
* </Card>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function Card({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
28
|
+
/** Top section of the card that holds the title, description, and optional action slot. */
|
|
29
|
+
declare function CardHeader({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
33
|
+
/** Primary heading for the card, styled with the h3 heading variant. */
|
|
34
|
+
declare function CardTitle({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
38
|
+
/** Muted supporting text displayed beneath the card title. */
|
|
39
|
+
declare function CardDescription({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
43
|
+
/** Optional slot in the card header for a contextual action (e.g. a button or menu); positioned in the top-right grid cell. */
|
|
44
|
+
declare function CardAction({
|
|
45
|
+
className,
|
|
46
|
+
...props
|
|
47
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
48
|
+
/** Main body area of the card with horizontal padding for content alignment. */
|
|
49
|
+
declare function CardContent({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
53
|
+
/** Bottom section of the card, typically used for supplementary text or secondary actions. */
|
|
54
|
+
declare function CardFooter({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
60
|
+
//# sourceMappingURL=card.d.cts.map
|
package/dist/ui/card.d.mts
CHANGED
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region packages/components/ui/card.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Surface container for grouping related content with a bordered, shadowed panel that supports optional interactive hover states.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* import {
|
|
8
|
+
* Card, CardHeader, CardTitle, CardDescription,
|
|
9
|
+
* CardContent, CardFooter, CardAction,
|
|
10
|
+
* } from '@customafk/lunas-ui/ui/card';
|
|
11
|
+
* import { Button } from '@customafk/lunas-ui/ui/button';
|
|
12
|
+
*
|
|
13
|
+
* <Card>
|
|
14
|
+
* <CardHeader>
|
|
15
|
+
* <CardTitle>Plan overview</CardTitle>
|
|
16
|
+
* <CardDescription>Your current subscription details.</CardDescription>
|
|
17
|
+
* <CardAction><Button size="sm">Upgrade</Button></CardAction>
|
|
18
|
+
* </CardHeader>
|
|
19
|
+
* <CardContent>Monthly usage: 42 / 100 requests</CardContent>
|
|
20
|
+
* <CardFooter>Renews on 1 Jun 2026</CardFooter>
|
|
21
|
+
* </Card>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function Card({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
28
|
+
/** Top section of the card that holds the title, description, and optional action slot. */
|
|
29
|
+
declare function CardHeader({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
33
|
+
/** Primary heading for the card, styled with the h3 heading variant. */
|
|
34
|
+
declare function CardTitle({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
38
|
+
/** Muted supporting text displayed beneath the card title. */
|
|
39
|
+
declare function CardDescription({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
43
|
+
/** Optional slot in the card header for a contextual action (e.g. a button or menu); positioned in the top-right grid cell. */
|
|
44
|
+
declare function CardAction({
|
|
45
|
+
className,
|
|
46
|
+
...props
|
|
47
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
48
|
+
/** Main body area of the card with horizontal padding for content alignment. */
|
|
49
|
+
declare function CardContent({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
53
|
+
/** Bottom section of the card, typically used for supplementary text or secondary actions. */
|
|
54
|
+
declare function CardFooter({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
60
|
+
//# sourceMappingURL=card.d.mts.map
|
package/dist/ui/card.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use client";import"../heading-
|
|
1
|
+
"use client";import{t as e}from"../heading-Fajfx88p.mjs";import{paragraphVariants as t}from"../typography/paragraph.mjs";import{cn as n}from"@customafk/react-toolkit/utils";import{jsx as r}from"react/jsx-runtime";function i({className:e,...t}){return r(`div`,{"data-slot":`card`,className:n(`flex flex-col gap-6 rounded-lg border border-border bg-card py-6 text-text-positive shadow-card`,`transition-[box-shadow,opacity] duration-150 ease-in-out`,`data-[interactive=true]:cursor-pointer`,`data-[interactive=true]:hover:shadow-dropdown`,`data-[interactive=true]:focus-visible:outline-none data-[interactive=true]:focus-visible:ring-2 data-[interactive=true]:focus-visible:ring-ring data-[interactive=true]:focus-visible:ring-offset-2`,`data-[interactive=true]:active:opacity-90`,e),...t})}function a({className:e,...t}){return r(`div`,{"data-slot":`card-header`,className:n(`@container/card-header`,`grid auto-rows-min grid-rows-[auto_auto]`,`items-start gap-1.5 px-6 text-text-positive-strong`,`has-data-[slot=card-action]:grid-cols-[1fr_auto]`,`[.border-b]:pb-6`,e),...t})}function o({className:t,...i}){return r(`div`,{"data-slot":`card-title`,className:n(e({level:`h3`}),t),...i})}function s({className:e,...i}){return r(`div`,{"data-slot":`card-description`,className:n(t({variant:`muted`}),e),...i})}function c({className:e,...t}){return r(`div`,{"data-slot":`card-action`,className:n(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...t})}function l({className:e,...t}){return r(`div`,{"data-slot":`card-content`,className:n(`px-6 text-sm`,e),...t})}function u({className:e,...t}){return r(`div`,{"data-slot":`card-footer`,className:n(`flex items-center px-6 text-sm [.border-t]:pt-6`,e),...t})}export{i as Card,c as CardAction,l as CardContent,s as CardDescription,u as CardFooter,a as CardHeader,o as CardTitle};
|
|
2
|
+
//# sourceMappingURL=card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.mjs","names":[],"sources":["../../packages/components/ui/card.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\n\n/**\n * Surface container for grouping related content with a bordered, shadowed panel that supports optional interactive hover states.\n *\n * @example\n * ```tsx\n * import {\n * Card, CardHeader, CardTitle, CardDescription,\n * CardContent, CardFooter, CardAction,\n * } from '@customafk/lunas-ui/ui/card';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Card>\n * <CardHeader>\n * <CardTitle>Plan overview</CardTitle>\n * <CardDescription>Your current subscription details.</CardDescription>\n * <CardAction><Button size=\"sm\">Upgrade</Button></CardAction>\n * </CardHeader>\n * <CardContent>Monthly usage: 42 / 100 requests</CardContent>\n * <CardFooter>Renews on 1 Jun 2026</CardFooter>\n * </Card>\n * ```\n */\nfunction Card({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n 'flex flex-col gap-6 rounded-lg border border-border bg-card py-6 text-text-positive shadow-card',\n 'transition-[box-shadow,opacity] duration-150 ease-in-out',\n 'data-[interactive=true]:cursor-pointer',\n 'data-[interactive=true]:hover:shadow-dropdown',\n 'data-[interactive=true]:focus-visible:outline-none data-[interactive=true]:focus-visible:ring-2 data-[interactive=true]:focus-visible:ring-ring data-[interactive=true]:focus-visible:ring-offset-2',\n 'data-[interactive=true]:active:opacity-90',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Top section of the card that holds the title, description, and optional action slot. */\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n '@container/card-header',\n 'grid auto-rows-min grid-rows-[auto_auto]',\n 'items-start gap-1.5 px-6 text-text-positive-strong',\n 'has-data-[slot=card-action]:grid-cols-[1fr_auto]',\n '[.border-b]:pb-6',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Primary heading for the card, styled with the h3 heading variant. */\nfunction CardTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text displayed beneath the card title. */\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\n/** Optional slot in the card header for a contextual action (e.g. a button or menu); positioned in the top-right grid cell. */\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-action\" className={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)} {...props} />;\n}\n\n/** Main body area of the card with horizontal padding for content alignment. */\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-content\" className={cn('px-6 text-sm', className)} {...props} />;\n}\n\n/** Bottom section of the card, typically used for supplementary text or secondary actions. */\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-footer\" className={cn('flex items-center px-6 text-sm [.border-t]:pt-6', className)} {...props} />;\n}\n\nexport { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\n"],"mappings":"qNA4BA,SAAS,EAAK,CAAE,YAAW,GAAG,GAAsC,CAClE,OACE,EAAC,MAAD,CACE,YAAU,OACV,UAAW,EACT,kGACA,2DACA,yCACA,gDACA,sMACA,4CACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAGA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OACE,EAAC,MAAD,CACE,YAAU,cACV,UAAW,EACT,yBACA,2CACA,qDACA,mDACA,mBACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAGA,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAC,MAAD,CAAK,YAAU,aAAa,UAAW,EAAG,EAAgB,CAAE,MAAO,IAAK,CAAC,EAAG,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC7G,CAGA,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAsC,CAC7E,OAAO,EAAC,MAAD,CAAK,YAAU,mBAAmB,UAAW,EAAG,EAAkB,CAAE,QAAS,OAAQ,CAAC,EAAG,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC1H,CAGA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAC,MAAD,CAAK,YAAU,cAAc,UAAW,EAAG,iEAAkE,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC9I,CAGA,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAC,MAAD,CAAK,YAAU,eAAe,UAAW,EAAG,eAAgB,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC7F,CAGA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAC,MAAD,CAAK,YAAU,cAAc,UAAW,EAAG,kDAAmD,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC/H"}
|
package/dist/ui/carousel.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use client";require(
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../rolldown-runtime-C6qsp3rV.cjs"),t=require("./button.cjs");let n=require("lucide-react"),r=require("react"),i=require("@customafk/react-toolkit/utils"),a=require("react/jsx-runtime"),o=require("embla-carousel-react");o=e.n(o,1);const s=(0,r.createContext)(null);function c(){let e=(0,r.use)(s);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function l({orientation:e=`horizontal`,opts:t,setApi:n,plugins:c,className:l,children:u,...d}){let[f,p]=(0,o.default)({...t,axis:e===`horizontal`?`x`:`y`},c),[m,h]=(0,r.useState)(!1),[g,_]=(0,r.useState)(!1),v=(0,r.useCallback)(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=(0,r.useCallback)(()=>{p?.scrollPrev()},[p]),b=(0,r.useCallback)(()=>{p?.scrollNext()},[p]),x=(0,r.useCallback)(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return(0,r.useEffect)(()=>{!p||!n||n(p)},[p,n]),(0,r.useEffect)(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,a.jsx)(s.Provider,{value:{carouselRef:f,api:p,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,canScrollPrev:m,canScrollNext:g},children:(0,a.jsx)(`div`,{onKeyDownCapture:x,className:(0,i.cn)(`relative`,l),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...d,children:u})})}function u({className:e,...t}){let{carouselRef:n,orientation:r}=c();return(0,a.jsx)(`div`,{ref:n,className:`overflow-hidden`,"data-slot":`carousel-content`,children:(0,a.jsx)(`div`,{className:(0,i.cn)(`flex`,r===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})}function d({className:e,...t}){let{orientation:n}=c();return(0,a.jsx)(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:(0,i.cn)(`min-w-0 shrink-0 grow-0 basis-full`,n===`horizontal`?`pl-4`:`pt-4`,e),...t})}function f({className:e,variant:r=`outline`,size:o=`icon`,...s}){let{orientation:l,scrollPrev:u,canScrollPrev:d}=c();return(0,a.jsxs)(t.Button,{"data-slot":`carousel-previous`,variant:r,size:o,className:(0,i.cn)(`absolute size-8 rounded-full`,l===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:u,...s,children:[(0,a.jsx)(n.ArrowLeft,{}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function p({className:e,variant:r=`outline`,size:o=`icon`,...s}){let{orientation:l,scrollNext:u,canScrollNext:d}=c();return(0,a.jsxs)(t.Button,{"data-slot":`carousel-next`,variant:r,size:o,className:(0,i.cn)(`absolute size-8 rounded-full`,l===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:u,...s,children:[(0,a.jsx)(n.ArrowRight,{}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})}exports.Carousel=l,exports.CarouselContent=u,exports.CarouselItem=d,exports.CarouselNext=p,exports.CarouselPrevious=f;
|
|
2
|
+
//# sourceMappingURL=carousel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.cjs","names":["Button","ArrowLeft","ArrowRight"],"sources":["../../packages/components/ui/carousel.tsx"],"sourcesContent":["'use client';\nimport { createContext, use, useCallback, useEffect, useState } from 'react';\n\nimport { ArrowLeft, ArrowRight } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';\nimport { Button } from '@/components/ui/button';\n\ntype CarouselApi = UseEmblaCarouselType[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ntype CarouselProps = {\n opts?: CarouselOptions;\n plugins?: CarouselPlugin;\n orientation?: 'horizontal' | 'vertical';\n setApi?: (api: CarouselApi) => void;\n};\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n api: ReturnType<typeof useEmblaCarousel>[1];\n scrollPrev: () => void;\n scrollNext: () => void;\n canScrollPrev: boolean;\n canScrollNext: boolean;\n} & CarouselProps;\n\nconst CarouselContext = createContext<CarouselContextProps | null>(null);\n\nfunction useCarousel() {\n const context = use(CarouselContext);\n\n if (!context) {\n throw new Error('useCarousel must be used within a <Carousel />');\n }\n\n return context;\n}\n\n/**\n * Embla-powered carousel that supports horizontal and vertical orientations with keyboard navigation.\n *\n * @example\n * ```tsx\n * import {\n * Carousel, CarouselContent, CarouselItem,\n * CarouselPrevious, CarouselNext,\n * } from '@customafk/lunas-ui/ui/carousel';\n *\n * <Carousel>\n * <CarouselContent>\n * <CarouselItem>Slide 1</CarouselItem>\n * <CarouselItem>Slide 2</CarouselItem>\n * </CarouselContent>\n * <CarouselPrevious />\n * <CarouselNext />\n * </Carousel>\n * ```\n */\nfunction Carousel({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }: React.ComponentProps<'div'> & CarouselProps) {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'horizontal' ? 'x' : 'y',\n },\n plugins\n );\n const [canScrollPrev, setCanScrollPrev] = useState(false);\n const [canScrollNext, setCanScrollNext] = useState(false);\n\n const onSelect = useCallback((api: CarouselApi) => {\n if (!api) return;\n setCanScrollPrev(api.canScrollPrev());\n setCanScrollNext(api.canScrollNext());\n }, []);\n\n const scrollPrev = useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n scrollPrev();\n } else if (event.key === 'ArrowRight') {\n event.preventDefault();\n scrollNext();\n }\n },\n [scrollPrev, scrollNext]\n );\n\n useEffect(() => {\n if (!api || !setApi) return;\n setApi(api);\n }, [api, setApi]);\n\n useEffect(() => {\n if (!api) return;\n onSelect(api);\n api.on('reInit', onSelect);\n api.on('select', onSelect);\n\n return () => {\n api?.off('select', onSelect);\n };\n }, [api, onSelect]);\n\n return (\n <CarouselContext.Provider\n value={{\n carouselRef,\n api: api,\n opts,\n orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }}\n >\n <div onKeyDownCapture={handleKeyDown} className={cn('relative', className)} role=\"region\" aria-roledescription=\"carousel\" data-slot=\"carousel\" {...props}>\n {children}\n </div>\n </CarouselContext.Provider>\n );\n}\n\n/** The scrollable track that holds all CarouselItem elements. */\nfunction CarouselContent({ className, ...props }: React.ComponentProps<'div'>) {\n const { carouselRef, orientation } = useCarousel();\n\n return (\n <div ref={carouselRef} className=\"overflow-hidden\" data-slot=\"carousel-content\">\n <div className={cn('flex', orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', className)} {...props} />\n </div>\n );\n}\n\n/** A single slide within a CarouselContent; occupies the full width (or height for vertical carousels). */\nfunction CarouselItem({ className, ...props }: React.ComponentProps<'div'>) {\n const { orientation } = useCarousel();\n\n return (\n <div\n role=\"group\"\n aria-roledescription=\"slide\"\n data-slot=\"carousel-item\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n {...props}\n />\n );\n}\n\n/** Circular button positioned to the left (or top for vertical) that scrolls to the previous slide. */\nfunction CarouselPrevious({ className, variant = 'outline', size = 'icon', ...props }: React.ComponentProps<typeof Button>) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-previous\"\n variant={variant}\n size={size}\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal' ? 'top-1/2 -left-12 -translate-y-1/2' : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n {...props}\n >\n <ArrowLeft />\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n}\n\n/** Circular button positioned to the right (or bottom for vertical) that scrolls to the next slide. */\nfunction CarouselNext({ className, variant = 'outline', size = 'icon', ...props }: React.ComponentProps<typeof Button>) {\n const { orientation, scrollNext, canScrollNext } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-next\"\n variant={variant}\n size={size}\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal' ? 'top-1/2 -right-12 -translate-y-1/2' : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n {...props}\n >\n <ArrowRight />\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n}\n\nexport { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };\n"],"mappings":"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"}
|
package/dist/ui/carousel.d.cts
CHANGED
|
@@ -1,2 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as Button } from "../button-DIqm3YRo.cjs";
|
|
2
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
3
|
+
|
|
4
|
+
//#region packages/components/ui/carousel.d.ts
|
|
5
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
6
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
7
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
8
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
9
|
+
type CarouselProps = {
|
|
10
|
+
opts?: CarouselOptions;
|
|
11
|
+
plugins?: CarouselPlugin;
|
|
12
|
+
orientation?: 'horizontal' | 'vertical';
|
|
13
|
+
setApi?: (api: CarouselApi) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Embla-powered carousel that supports horizontal and vertical orientations with keyboard navigation.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import {
|
|
21
|
+
* Carousel, CarouselContent, CarouselItem,
|
|
22
|
+
* CarouselPrevious, CarouselNext,
|
|
23
|
+
* } from '@customafk/lunas-ui/ui/carousel';
|
|
24
|
+
*
|
|
25
|
+
* <Carousel>
|
|
26
|
+
* <CarouselContent>
|
|
27
|
+
* <CarouselItem>Slide 1</CarouselItem>
|
|
28
|
+
* <CarouselItem>Slide 2</CarouselItem>
|
|
29
|
+
* </CarouselContent>
|
|
30
|
+
* <CarouselPrevious />
|
|
31
|
+
* <CarouselNext />
|
|
32
|
+
* </Carousel>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare function Carousel({
|
|
36
|
+
orientation,
|
|
37
|
+
opts,
|
|
38
|
+
setApi,
|
|
39
|
+
plugins,
|
|
40
|
+
className,
|
|
41
|
+
children,
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<'div'> & CarouselProps): import("react").JSX.Element;
|
|
44
|
+
/** The scrollable track that holds all CarouselItem elements. */
|
|
45
|
+
declare function CarouselContent({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
49
|
+
/** A single slide within a CarouselContent; occupies the full width (or height for vertical carousels). */
|
|
50
|
+
declare function CarouselItem({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
54
|
+
/** Circular button positioned to the left (or top for vertical) that scrolls to the previous slide. */
|
|
55
|
+
declare function CarouselPrevious({
|
|
56
|
+
className,
|
|
57
|
+
variant,
|
|
58
|
+
size,
|
|
59
|
+
...props
|
|
60
|
+
}: React.ComponentProps<typeof Button>): import("react").JSX.Element;
|
|
61
|
+
/** Circular button positioned to the right (or bottom for vertical) that scrolls to the next slide. */
|
|
62
|
+
declare function CarouselNext({
|
|
63
|
+
className,
|
|
64
|
+
variant,
|
|
65
|
+
size,
|
|
66
|
+
...props
|
|
67
|
+
}: React.ComponentProps<typeof Button>): import("react").JSX.Element;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
70
|
+
//# sourceMappingURL=carousel.d.cts.map
|
package/dist/ui/carousel.d.mts
CHANGED
|
@@ -1,3 +1,70 @@
|
|
|
1
|
-
import "../button-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { t as Button } from "../button-DIqm3YRo.mjs";
|
|
2
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
3
|
+
|
|
4
|
+
//#region packages/components/ui/carousel.d.ts
|
|
5
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
6
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
7
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
8
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
9
|
+
type CarouselProps = {
|
|
10
|
+
opts?: CarouselOptions;
|
|
11
|
+
plugins?: CarouselPlugin;
|
|
12
|
+
orientation?: 'horizontal' | 'vertical';
|
|
13
|
+
setApi?: (api: CarouselApi) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Embla-powered carousel that supports horizontal and vertical orientations with keyboard navigation.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import {
|
|
21
|
+
* Carousel, CarouselContent, CarouselItem,
|
|
22
|
+
* CarouselPrevious, CarouselNext,
|
|
23
|
+
* } from '@customafk/lunas-ui/ui/carousel';
|
|
24
|
+
*
|
|
25
|
+
* <Carousel>
|
|
26
|
+
* <CarouselContent>
|
|
27
|
+
* <CarouselItem>Slide 1</CarouselItem>
|
|
28
|
+
* <CarouselItem>Slide 2</CarouselItem>
|
|
29
|
+
* </CarouselContent>
|
|
30
|
+
* <CarouselPrevious />
|
|
31
|
+
* <CarouselNext />
|
|
32
|
+
* </Carousel>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare function Carousel({
|
|
36
|
+
orientation,
|
|
37
|
+
opts,
|
|
38
|
+
setApi,
|
|
39
|
+
plugins,
|
|
40
|
+
className,
|
|
41
|
+
children,
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<'div'> & CarouselProps): import("react").JSX.Element;
|
|
44
|
+
/** The scrollable track that holds all CarouselItem elements. */
|
|
45
|
+
declare function CarouselContent({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
49
|
+
/** A single slide within a CarouselContent; occupies the full width (or height for vertical carousels). */
|
|
50
|
+
declare function CarouselItem({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
54
|
+
/** Circular button positioned to the left (or top for vertical) that scrolls to the previous slide. */
|
|
55
|
+
declare function CarouselPrevious({
|
|
56
|
+
className,
|
|
57
|
+
variant,
|
|
58
|
+
size,
|
|
59
|
+
...props
|
|
60
|
+
}: React.ComponentProps<typeof Button>): import("react").JSX.Element;
|
|
61
|
+
/** Circular button positioned to the right (or bottom for vertical) that scrolls to the next slide. */
|
|
62
|
+
declare function CarouselNext({
|
|
63
|
+
className,
|
|
64
|
+
variant,
|
|
65
|
+
size,
|
|
66
|
+
...props
|
|
67
|
+
}: React.ComponentProps<typeof Button>): import("react").JSX.Element;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
70
|
+
//# sourceMappingURL=carousel.d.mts.map
|
package/dist/ui/carousel.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use client";import"
|
|
1
|
+
"use client";import{Button as e}from"./button.mjs";import{ArrowLeft as t,ArrowRight as n}from"lucide-react";import{createContext as r,use as i,useCallback as a,useEffect as o,useState as s}from"react";import{cn as c}from"@customafk/react-toolkit/utils";import{jsx as l,jsxs as u}from"react/jsx-runtime";import d from"embla-carousel-react";const f=r(null);function p(){let e=i(f);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function m({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:u,...p}){let[m,h]=d({...t,axis:e===`horizontal`?`x`:`y`},r),[g,_]=s(!1),[v,y]=s(!1),b=a(e=>{e&&(_(e.canScrollPrev()),y(e.canScrollNext()))},[]),x=a(()=>{h?.scrollPrev()},[h]),S=a(()=>{h?.scrollNext()},[h]),C=a(e=>{e.key===`ArrowLeft`?(e.preventDefault(),x()):e.key===`ArrowRight`&&(e.preventDefault(),S())},[x,S]);return o(()=>{!h||!n||n(h)},[h,n]),o(()=>{if(h)return b(h),h.on(`reInit`,b),h.on(`select`,b),()=>{h?.off(`select`,b)}},[h,b]),l(f.Provider,{value:{carouselRef:m,api:h,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:x,scrollNext:S,canScrollPrev:g,canScrollNext:v},children:l(`div`,{onKeyDownCapture:C,className:c(`relative`,i),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...p,children:u})})}function h({className:e,...t}){let{carouselRef:n,orientation:r}=p();return l(`div`,{ref:n,className:`overflow-hidden`,"data-slot":`carousel-content`,children:l(`div`,{className:c(`flex`,r===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})}function g({className:e,...t}){let{orientation:n}=p();return l(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:c(`min-w-0 shrink-0 grow-0 basis-full`,n===`horizontal`?`pl-4`:`pt-4`,e),...t})}function _({className:n,variant:r=`outline`,size:i=`icon`,...a}){let{orientation:o,scrollPrev:s,canScrollPrev:d}=p();return u(e,{"data-slot":`carousel-previous`,variant:r,size:i,className:c(`absolute size-8 rounded-full`,o===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,n),disabled:!d,onClick:s,...a,children:[l(t,{}),l(`span`,{className:`sr-only`,children:`Previous slide`})]})}function v({className:t,variant:r=`outline`,size:i=`icon`,...a}){let{orientation:o,scrollNext:s,canScrollNext:d}=p();return u(e,{"data-slot":`carousel-next`,variant:r,size:i,className:c(`absolute size-8 rounded-full`,o===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,t),disabled:!d,onClick:s,...a,children:[l(n,{}),l(`span`,{className:`sr-only`,children:`Next slide`})]})}export{m as Carousel,h as CarouselContent,g as CarouselItem,v as CarouselNext,_ as CarouselPrevious};
|
|
2
|
+
//# sourceMappingURL=carousel.mjs.map
|