@customafk/lunas-ui 0.2.42 → 0.2.43
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-2JBj0aPL.d.mts +88 -0
- package/dist/alert-B2PaDJp6.cjs +2 -0
- package/dist/alert-B2PaDJp6.cjs.map +1 -0
- package/dist/alert-BbvPwf2x.mjs +2 -0
- package/dist/alert-BbvPwf2x.mjs.map +1 -0
- package/dist/alert-Cm6RAKdp.d.cts +88 -0
- package/dist/avatar-TyOphzGo.cjs +2 -0
- package/dist/avatar-TyOphzGo.cjs.map +1 -0
- package/dist/avatar-fltdRVsJ.mjs +2 -0
- package/dist/avatar-fltdRVsJ.mjs.map +1 -0
- package/dist/badge-CDGBGq8X.mjs +2 -0
- package/dist/badge-CDGBGq8X.mjs.map +1 -0
- package/dist/badge-CnR78VnH.d.mts +42 -0
- package/dist/badge-KW7xu5Ca.cjs +2 -0
- package/dist/badge-KW7xu5Ca.cjs.map +1 -0
- package/dist/badge-ic9HOAa7.d.cts +42 -0
- package/dist/button--eH0xdF-.d.mts +174 -0
- package/dist/button-C--DAN1D.cjs +2 -0
- package/dist/button-C--DAN1D.cjs.map +1 -0
- package/dist/button-CCVJTHBI.mjs +2 -0
- package/dist/button-CCVJTHBI.mjs.map +1 -0
- package/dist/button-DserH5cQ.d.cts +174 -0
- package/dist/button.variants-4kw6plrv.cjs +2 -0
- package/dist/button.variants-4kw6plrv.cjs.map +1 -0
- package/dist/button.variants-DkMqWB8G.mjs +2 -0
- package/dist/button.variants-DkMqWB8G.mjs.map +1 -0
- package/dist/calendar-4weBDnXz.cjs +2 -0
- package/dist/calendar-4weBDnXz.cjs.map +1 -0
- package/dist/calendar-R866yyd1.mjs +2 -0
- package/dist/calendar-R866yyd1.mjs.map +1 -0
- package/dist/cards/grid-product-card.cjs +1 -1
- package/dist/cards/grid-product-card.cjs.map +1 -1
- package/dist/cards/grid-product-card.d.mts +37 -0
- package/dist/cards/grid-product-card.mjs +2 -0
- package/dist/cards/grid-product-card.mjs.map +1 -0
- package/dist/cards/product-card.cjs +1 -1
- package/dist/cards/product-card.cjs.map +1 -1
- package/dist/cards/product-card.d.mts +37 -0
- package/dist/cards/product-card.mjs +2 -0
- package/dist/cards/product-card.mjs.map +1 -0
- package/dist/cards/simple-card.cjs +1 -1
- package/dist/cards/simple-card.d.mts +35 -0
- package/dist/cards/simple-card.mjs +2 -0
- package/dist/cards/simple-card.mjs.map +1 -0
- package/dist/checkbox-Cat3i08X.mjs +2 -0
- package/dist/checkbox-Cat3i08X.mjs.map +1 -0
- package/dist/checkbox-Dsq-MSbH.cjs +2 -0
- package/dist/checkbox-Dsq-MSbH.cjs.map +1 -0
- package/dist/chunk-350yNsax.cjs +1 -0
- package/dist/close-Dlo1bI8x.cjs +2 -0
- package/dist/close-Dlo1bI8x.cjs.map +1 -0
- package/dist/close-_UHFeiLS.mjs +2 -0
- package/dist/close-_UHFeiLS.mjs.map +1 -0
- package/dist/cms-layout-BCH4NroR.cjs +2 -0
- package/dist/cms-layout-BCH4NroR.cjs.map +1 -0
- package/dist/cms-layout-DkCR1AfG.mjs +2 -0
- package/dist/cms-layout-DkCR1AfG.mjs.map +1 -0
- package/dist/command-CsP8a1Un.cjs +2 -0
- package/dist/command-CsP8a1Un.cjs.map +1 -0
- package/dist/command-D6_CSbwJ.mjs +2 -0
- package/dist/command-D6_CSbwJ.mjs.map +1 -0
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.cjs.map +1 -1
- package/dist/data-display/country.d.cts +1 -1
- package/dist/data-display/country.d.mts +22 -0
- package/dist/data-display/country.mjs +2 -0
- package/dist/data-display/country.mjs.map +1 -0
- package/dist/data-display/data-list.cjs +1 -1
- package/dist/data-display/data-list.d.mts +43 -0
- package/dist/data-display/data-list.mjs +2 -0
- package/dist/data-display/data-list.mjs.map +1 -0
- package/dist/data-display/date-tooltip.cjs +1 -1
- package/dist/data-display/date-tooltip.cjs.map +1 -1
- package/dist/data-display/date-tooltip.d.mts +19 -0
- package/dist/data-display/date-tooltip.mjs +2 -0
- package/dist/data-display/date-tooltip.mjs.map +1 -0
- package/dist/data-display/date.cjs +1 -2
- package/dist/data-display/date.d.mts +39 -0
- package/dist/data-display/date.mjs +1 -0
- package/dist/data-display/empty.cjs +1 -1
- package/dist/data-display/empty.d.mts +21 -0
- package/dist/data-display/empty.mjs +2 -0
- package/dist/data-display/empty.mjs.map +1 -0
- package/dist/data-display/name.cjs +1 -1
- package/dist/data-display/name.cjs.map +1 -1
- package/dist/data-display/name.d.mts +19 -0
- package/dist/data-display/name.mjs +2 -0
- package/dist/data-display/name.mjs.map +1 -0
- package/dist/data-display/phone-number.cjs +1 -1
- package/dist/data-display/phone-number.cjs.map +1 -1
- package/dist/data-display/phone-number.d.mts +19 -0
- package/dist/data-display/phone-number.mjs +2 -0
- package/dist/data-display/phone-number.mjs.map +1 -0
- package/dist/data-display/role-badge.cjs +1 -1
- package/dist/data-display/role-badge.cjs.map +1 -1
- package/dist/data-display/role-badge.d.cts +1 -1
- package/dist/data-display/role-badge.d.mts +22 -0
- package/dist/data-display/role-badge.mjs +2 -0
- package/dist/data-display/role-badge.mjs.map +1 -0
- package/dist/data-display/statistic.cjs +1 -2
- package/dist/data-display/statistic.d.cts +3 -3
- package/dist/data-display/statistic.d.mts +57 -0
- package/dist/data-display/statistic.mjs +1 -0
- package/dist/data-display/user.cjs +1 -2
- package/dist/data-display/user.d.mts +23 -0
- package/dist/data-display/user.mjs +1 -0
- package/dist/date-D4NVl6C9.cjs +2 -0
- package/dist/date-D4NVl6C9.cjs.map +1 -0
- package/dist/date-fY3sUcLp.mjs +2 -0
- package/dist/date-fY3sUcLp.mjs.map +1 -0
- package/dist/dialog-BigPrWIj.cjs +2 -0
- package/dist/dialog-BigPrWIj.cjs.map +1 -0
- package/dist/dialog-CLDnvNH_.mjs +2 -0
- package/dist/dialog-CLDnvNH_.mjs.map +1 -0
- package/dist/dialog-CYHT9WNs.d.cts +90 -0
- package/dist/dialog-pWSVE0gd.d.mts +90 -0
- package/dist/dialogs/confirm-dialog.cjs +1 -1
- package/dist/dialogs/confirm-dialog.d.mts +142 -0
- package/dist/dialogs/confirm-dialog.mjs +2 -0
- package/dist/dialogs/confirm-dialog.mjs.map +1 -0
- package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +26 -26
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +209 -0
- package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -0
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.cjs.map +1 -1
- package/dist/dialogs/detail-dialog/index.d.mts +45 -0
- package/dist/dialogs/detail-dialog/index.mjs +2 -0
- package/dist/dialogs/detail-dialog/index.mjs.map +1 -0
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.d.mts +25 -0
- package/dist/dialogs/error-dialog.mjs +2 -0
- package/dist/dialogs/error-dialog.mjs.map +1 -0
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.cjs.map +1 -1
- package/dist/dialogs/loading-dialog.d.mts +21 -0
- package/dist/dialogs/loading-dialog.mjs +2 -0
- package/dist/dialogs/loading-dialog.mjs.map +1 -0
- package/dist/dist-Cx5ufCdr.cjs +2 -0
- package/dist/dist-Cx5ufCdr.cjs.map +1 -0
- package/dist/dist-DVrfqn8H.mjs +2 -0
- package/dist/dist-DVrfqn8H.mjs.map +1 -0
- package/dist/drawer-BB8BZzDG.cjs +2 -0
- package/dist/drawer-BB8BZzDG.cjs.map +1 -0
- package/dist/drawer-CMD7JWH8.mjs +2 -0
- package/dist/drawer-CMD7JWH8.mjs.map +1 -0
- package/dist/dropdown-menu-BWhiVsEf.mjs +2 -0
- package/dist/dropdown-menu-BWhiVsEf.mjs.map +1 -0
- package/dist/dropdown-menu-CVh520yG.cjs +2 -0
- package/dist/dropdown-menu-CVh520yG.cjs.map +1 -0
- package/dist/features/descriptions/index.cjs +1 -1
- package/dist/features/descriptions/index.cjs.map +1 -1
- package/dist/features/descriptions/index.d.cts +3 -3
- package/dist/features/descriptions/index.d.mts +246 -0
- package/dist/features/descriptions/index.mjs +2 -0
- 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 +2 -2
- package/dist/features/search-modal/index.d.mts +17 -0
- package/dist/features/search-modal/index.mjs +1 -0
- package/dist/features/tables/index.cjs +1 -1
- package/dist/features/tables/index.d.cts +1 -1
- package/dist/features/tables/index.d.mts +3 -0
- package/dist/features/tables/index.mjs +1 -0
- 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 +2 -0
- package/dist/features/tanstack-form/index.mjs +1 -0
- package/dist/features/text-editor/index.cjs +1 -1
- package/dist/features/text-editor/index.d.cts +1 -1
- package/dist/features/text-editor/index.d.mts +2 -0
- package/dist/features/text-editor/index.mjs +1 -0
- package/dist/field-BrlETeXX.cjs +2 -0
- package/dist/field-BrlETeXX.cjs.map +1 -0
- package/dist/field-dYemS0hQ.mjs +2 -0
- package/dist/field-dYemS0hQ.mjs.map +1 -0
- package/dist/flex-B6YSJzGe.mjs +2 -0
- package/dist/flex-B6YSJzGe.mjs.map +1 -0
- package/dist/flex-DmWmOBn5.cjs +2 -0
- package/dist/flex-DmWmOBn5.cjs.map +1 -0
- package/dist/heading-De4Pn3mZ.mjs +2 -0
- package/dist/heading-De4Pn3mZ.mjs.map +1 -0
- package/dist/heading-tGTqk3pA.cjs +2 -0
- package/dist/heading-tGTqk3pA.cjs.map +1 -0
- package/dist/image-D7OZ13Ib.mjs +2 -0
- package/dist/image-D7OZ13Ib.mjs.map +1 -0
- package/dist/image-W_Yb0xTB.cjs +2 -0
- package/dist/image-W_Yb0xTB.cjs.map +1 -0
- package/dist/index-BsWsCPh8.d.cts +1093 -0
- package/dist/index-CMqwTAAq.d.mts +2348 -0
- package/dist/index-Cm62M0Ft.d.mts +90 -0
- package/dist/index-DSciiDhn.d.cts +2348 -0
- package/dist/index-DXU6DwLg.d.mts +1093 -0
- package/dist/index-DiW-62hY.d.mts +85 -0
- package/dist/index-FIl1Am8j.d.cts +85 -0
- package/dist/index-KO98y6L0.d.cts +90 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.mts +93 -0
- package/dist/index.mjs +1 -0
- package/dist/input-B_ucx08i.d.cts +44 -0
- package/dist/input-Drm_rLe2.d.mts +44 -0
- package/dist/input-NJP2wQOm.mjs +2 -0
- package/dist/input-NJP2wQOm.mjs.map +1 -0
- package/dist/input-WJ0DLHTR.cjs +2 -0
- package/dist/input-WJ0DLHTR.cjs.map +1 -0
- package/dist/label-CC6fXVbC.cjs +2 -0
- package/dist/label-CC6fXVbC.cjs.map +1 -0
- package/dist/label-CUCpwS5D.mjs +2 -0
- package/dist/label-CUCpwS5D.mjs.map +1 -0
- package/dist/layouts/cms-layout/index.cjs +1 -1
- package/dist/layouts/cms-layout/index.d.cts +1 -1
- package/dist/layouts/cms-layout/index.d.mts +2 -0
- package/dist/layouts/cms-layout/index.mjs +1 -0
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +5 -5
- package/dist/layouts/flex.d.mts +117 -0
- package/dist/layouts/flex.mjs +1 -0
- package/dist/layouts/grid.cjs +1 -1
- package/dist/layouts/grid.d.mts +19 -0
- package/dist/layouts/grid.mjs +2 -0
- package/dist/layouts/grid.mjs.map +1 -0
- package/dist/layouts/payment-layout/index.cjs +1 -1
- package/dist/layouts/payment-layout/index.d.mts +74 -0
- package/dist/layouts/payment-layout/index.mjs +1 -0
- package/dist/pages/FeatureDeveloping.cjs +1 -1
- package/dist/pages/FeatureDeveloping.cjs.map +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.mts +43 -0
- package/dist/pages/FeatureDeveloping.mjs +2 -0
- package/dist/pages/FeatureDeveloping.mjs.map +1 -0
- package/dist/pages/FeatureFixing.cjs +1 -1
- package/dist/pages/FeatureFixing.cjs.map +1 -1
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.mts +43 -0
- package/dist/pages/FeatureFixing.mjs +2 -0
- package/dist/pages/FeatureFixing.mjs.map +1 -0
- package/dist/pages/LoginPage.cjs +1 -1
- package/dist/pages/LoginPage.cjs.map +1 -1
- package/dist/pages/LoginPage.d.cts +2 -2
- package/dist/pages/LoginPage.d.mts +55 -0
- package/dist/pages/LoginPage.mjs +2 -0
- package/dist/pages/LoginPage.mjs.map +1 -0
- package/dist/pages/NotAuthorized.cjs +1 -1
- package/dist/pages/NotAuthorized.cjs.map +1 -1
- package/dist/pages/NotAuthorized.d.cts +2 -2
- package/dist/pages/NotAuthorized.d.mts +43 -0
- package/dist/pages/NotAuthorized.mjs +2 -0
- package/dist/pages/NotAuthorized.mjs.map +1 -0
- package/dist/pages/NotFound.cjs +1 -1
- package/dist/pages/NotFound.cjs.map +1 -1
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.mts +43 -0
- package/dist/pages/NotFound.mjs +2 -0
- package/dist/pages/NotFound.mjs.map +1 -0
- package/dist/pages/RegisterPage.cjs +1 -1
- package/dist/pages/RegisterPage.cjs.map +1 -1
- package/dist/pages/RegisterPage.d.cts +2 -2
- package/dist/pages/RegisterPage.d.mts +52 -0
- package/dist/pages/RegisterPage.mjs +2 -0
- package/dist/pages/RegisterPage.mjs.map +1 -0
- package/dist/pages/VerifyEmailPage.cjs +1 -1
- package/dist/pages/VerifyEmailPage.cjs.map +1 -1
- package/dist/pages/VerifyEmailPage.d.cts +2 -2
- package/dist/pages/VerifyEmailPage.d.mts +64 -0
- package/dist/pages/VerifyEmailPage.mjs +2 -0
- package/dist/pages/VerifyEmailPage.mjs.map +1 -0
- package/dist/paragraph-DYLaQtTV.mjs +2 -0
- package/dist/paragraph-DYLaQtTV.mjs.map +1 -0
- package/dist/paragraph-DvTZvbzw.cjs +2 -0
- package/dist/paragraph-DvTZvbzw.cjs.map +1 -0
- package/dist/payment-layout-DrQ0kZPX.mjs +2 -0
- package/dist/payment-layout-DrQ0kZPX.mjs.map +1 -0
- package/dist/payment-layout-DyILfyVG.cjs +2 -0
- package/dist/payment-layout-DyILfyVG.cjs.map +1 -0
- package/dist/popover-C8rcemA3.mjs +2 -0
- package/dist/popover-C8rcemA3.mjs.map +1 -0
- package/dist/popover-DBsC8Ltp.cjs +2 -0
- package/dist/popover-DBsC8Ltp.cjs.map +1 -0
- package/dist/progress-CLeM0e7Z.mjs +2 -0
- package/dist/progress-CLeM0e7Z.mjs.map +1 -0
- package/dist/progress-gvBqNiHp.cjs +2 -0
- package/dist/progress-gvBqNiHp.cjs.map +1 -0
- package/dist/radio-group-Y9bhdr55.mjs +2 -0
- package/dist/radio-group-Y9bhdr55.mjs.map +1 -0
- package/dist/radio-group-_TdMkv8w.cjs +2 -0
- package/dist/radio-group-_TdMkv8w.cjs.map +1 -0
- package/dist/resizable-CpCaSCFB.mjs +2 -0
- package/dist/resizable-CpCaSCFB.mjs.map +1 -0
- package/dist/resizable-sgpaHAb8.cjs +2 -0
- package/dist/resizable-sgpaHAb8.cjs.map +1 -0
- package/dist/search-modal-B-pzGcfP.cjs +2 -0
- package/dist/search-modal-B-pzGcfP.cjs.map +1 -0
- package/dist/search-modal-Bn-GOOCy.mjs +2 -0
- package/dist/search-modal-Bn-GOOCy.mjs.map +1 -0
- package/dist/select-CWLQHh8x.cjs +2 -0
- package/dist/select-CWLQHh8x.cjs.map +1 -0
- package/dist/select-LlPCZFSF.mjs +2 -0
- package/dist/select-LlPCZFSF.mjs.map +1 -0
- package/dist/separator-D3Gmkxzq.mjs +2 -0
- package/dist/separator-D3Gmkxzq.mjs.map +1 -0
- package/dist/separator-KuymG9g0.cjs +2 -0
- package/dist/separator-KuymG9g0.cjs.map +1 -0
- package/dist/sheet-BFlIfNaA.mjs +2 -0
- package/dist/sheet-BFlIfNaA.mjs.map +1 -0
- package/dist/sheet-CvKSi0UC.cjs +2 -0
- package/dist/sheet-CvKSi0UC.cjs.map +1 -0
- package/dist/sidebar-ChtCyu-n.mjs +2 -0
- package/dist/sidebar-ChtCyu-n.mjs.map +1 -0
- package/dist/sidebar-D5J2gcTw.cjs +2 -0
- package/dist/sidebar-D5J2gcTw.cjs.map +1 -0
- package/dist/skeleton-C51IdOfK.mjs +2 -0
- package/dist/skeleton-C51IdOfK.mjs.map +1 -0
- package/dist/skeleton-CX1USu1w.cjs +2 -0
- package/dist/skeleton-CX1USu1w.cjs.map +1 -0
- package/dist/spinner-CFxorYEt.cjs +2 -0
- package/dist/spinner-CFxorYEt.cjs.map +1 -0
- package/dist/spinner-eClTgHjk.mjs +2 -0
- package/dist/spinner-eClTgHjk.mjs.map +1 -0
- package/dist/statistic-DDXilD7q.cjs +2 -0
- package/dist/statistic-DDXilD7q.cjs.map +1 -0
- package/dist/statistic-cwLwcukn.mjs +2 -0
- package/dist/statistic-cwLwcukn.mjs.map +1 -0
- package/dist/switch-BP7EPatj.mjs +2 -0
- package/dist/switch-BP7EPatj.mjs.map +1 -0
- package/dist/switch-DVfOV7wP.cjs +2 -0
- package/dist/switch-DVfOV7wP.cjs.map +1 -0
- package/dist/systems/google.cjs +1 -1
- package/dist/systems/google.d.mts +53 -0
- package/dist/systems/google.mjs +2 -0
- package/dist/systems/google.mjs.map +1 -0
- package/dist/tables-CFrsk2lM.mjs +4 -0
- package/dist/tables-CFrsk2lM.mjs.map +1 -0
- package/dist/tables-CPKHe3k-.cjs +4 -0
- package/dist/tables-CPKHe3k-.cjs.map +1 -0
- package/dist/tanstack-form-DT1TqIDl.mjs +12 -0
- package/dist/tanstack-form-DT1TqIDl.mjs.map +1 -0
- package/dist/tanstack-form-DatI41wz.cjs +12 -0
- package/dist/tanstack-form-DatI41wz.cjs.map +1 -0
- package/dist/text-editor-5mA7XyaI.mjs +2 -0
- package/dist/text-editor-5mA7XyaI.mjs.map +1 -0
- package/dist/text-editor-CvJN3nSL.cjs +2 -0
- package/dist/text-editor-CvJN3nSL.cjs.map +1 -0
- package/dist/textarea-7HDXcaK9.mjs +2 -0
- package/dist/textarea-7HDXcaK9.mjs.map +1 -0
- package/dist/textarea-Cc9CF8wD.cjs +2 -0
- package/dist/textarea-Cc9CF8wD.cjs.map +1 -0
- package/dist/tooltip-CBdoIzoM.cjs +2 -0
- package/dist/tooltip-CBdoIzoM.cjs.map +1 -0
- package/dist/tooltip-Dxl5Wa8i.mjs +2 -0
- package/dist/tooltip-Dxl5Wa8i.mjs.map +1 -0
- package/dist/types-B5nyTWtO.mjs +2 -0
- package/dist/types-B5nyTWtO.mjs.map +1 -0
- package/dist/types-BD1t0Bj8.cjs +2 -0
- package/dist/types-BD1t0Bj8.cjs.map +1 -0
- package/dist/types-Cc_mLRAn.d.cts +24 -0
- package/dist/types-YLu40dXY.d.mts +24 -0
- package/dist/typography/paragraph.cjs +1 -1
- package/dist/typography/paragraph.d.cts +4 -4
- package/dist/typography/paragraph.d.mts +48 -0
- package/dist/typography/paragraph.mjs +1 -0
- package/dist/typography/title.cjs +1 -1
- package/dist/typography/title.d.mts +43 -0
- package/dist/typography/title.mjs +2 -0
- package/dist/typography/title.mjs.map +1 -0
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.mts +90 -0
- package/dist/ui/alert-dialog.mjs +2 -0
- 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 +2 -0
- package/dist/ui/alert.mjs +1 -0
- package/dist/ui/aspect-ratio.cjs +1 -1
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.mts +24 -0
- package/dist/ui/aspect-ratio.mjs +2 -0
- package/dist/ui/aspect-ratio.mjs.map +1 -0
- package/dist/ui/avatar.cjs +1 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.mts +35 -0
- package/dist/ui/avatar.mjs +1 -0
- package/dist/ui/badge.cjs +1 -2
- package/dist/ui/badge.d.cts +2 -42
- package/dist/ui/badge.d.mts +2 -0
- package/dist/ui/badge.mjs +1 -0
- package/dist/ui/breadcrumb.cjs +1 -1
- package/dist/ui/breadcrumb.cjs.map +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.mts +72 -0
- package/dist/ui/breadcrumb.mjs +2 -0
- package/dist/ui/breadcrumb.mjs.map +1 -0
- package/dist/ui/button-group.cjs +1 -1
- package/dist/ui/button-group.cjs.map +1 -1
- package/dist/ui/button-group.d.cts +7 -7
- package/dist/ui/button-group.d.mts +50 -0
- package/dist/ui/button-group.mjs +2 -0
- package/dist/ui/button-group.mjs.map +1 -0
- package/dist/ui/button.cjs +1 -2
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.mts +2 -0
- package/dist/ui/button.mjs +1 -0
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.cjs.map +1 -1
- package/dist/ui/buttons/add-new.d.mts +17 -0
- package/dist/ui/buttons/add-new.mjs +2 -0
- package/dist/ui/buttons/add-new.mjs.map +1 -0
- package/dist/ui/buttons/edit.cjs +1 -1
- package/dist/ui/buttons/edit.cjs.map +1 -1
- package/dist/ui/buttons/edit.d.mts +17 -0
- package/dist/ui/buttons/edit.mjs +2 -0
- package/dist/ui/buttons/edit.mjs.map +1 -0
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.cjs.map +1 -1
- package/dist/ui/buttons/refresh.d.mts +17 -0
- package/dist/ui/buttons/refresh.mjs +2 -0
- package/dist/ui/buttons/refresh.mjs.map +1 -0
- package/dist/ui/buttons/trash.cjs +1 -1
- package/dist/ui/buttons/trash.cjs.map +1 -1
- package/dist/ui/buttons/trash.d.mts +17 -0
- package/dist/ui/buttons/trash.mjs +2 -0
- package/dist/ui/buttons/trash.mjs.map +1 -0
- package/dist/ui/buttons/upload-image.cjs +1 -1
- package/dist/ui/buttons/upload-image.cjs.map +1 -1
- package/dist/ui/buttons/upload-image.d.mts +24 -0
- package/dist/ui/buttons/upload-image.mjs +2 -0
- package/dist/ui/buttons/upload-image.mjs.map +1 -0
- package/dist/ui/calendar.cjs +1 -2
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.mts +45 -0
- package/dist/ui/calendar.mjs +1 -0
- package/dist/ui/card.cjs +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.mts +63 -0
- package/dist/ui/card.mjs +2 -0
- package/dist/ui/card.mjs.map +1 -0
- package/dist/ui/carousel.cjs +1 -1
- package/dist/ui/carousel.cjs.map +1 -1
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.mts +71 -0
- package/dist/ui/carousel.mjs +2 -0
- package/dist/ui/carousel.mjs.map +1 -0
- package/dist/ui/checkbox.cjs +1 -2
- package/dist/ui/checkbox.d.cts +2 -2
- package/dist/ui/checkbox.d.mts +26 -0
- package/dist/ui/checkbox.mjs +1 -0
- package/dist/ui/collapsible.cjs +1 -1
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.mts +34 -0
- package/dist/ui/collapsible.mjs +2 -0
- package/dist/ui/collapsible.mjs.map +1 -0
- package/dist/ui/command.cjs +1 -2
- package/dist/ui/command.d.cts +11 -11
- package/dist/ui/command.d.mts +89 -0
- package/dist/ui/command.mjs +1 -0
- package/dist/ui/context-menu.cjs +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.mts +125 -0
- package/dist/ui/context-menu.mjs +2 -0
- package/dist/ui/context-menu.mjs.map +1 -0
- package/dist/ui/dialog.cjs +1 -2
- package/dist/ui/dialog.d.cts +2 -90
- package/dist/ui/dialog.d.mts +2 -0
- package/dist/ui/dialog.mjs +1 -0
- package/dist/ui/drawer.cjs +1 -2
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.mts +72 -0
- package/dist/ui/drawer.mjs +1 -0
- package/dist/ui/dropdown-menu.cjs +1 -2
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.mts +127 -0
- package/dist/ui/dropdown-menu.mjs +1 -0
- package/dist/ui/empty.cjs +1 -1
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.mts +68 -0
- package/dist/ui/empty.mjs +2 -0
- package/dist/ui/empty.mjs.map +1 -0
- package/dist/ui/field.cjs +1 -1
- package/dist/ui/field.d.cts +22 -22
- package/dist/ui/field.d.mts +65 -0
- package/dist/ui/field.mjs +1 -0
- package/dist/ui/file-uploader.cjs +2 -2
- package/dist/ui/file-uploader.cjs.map +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.mts +103 -0
- package/dist/ui/file-uploader.mjs +3 -0
- package/dist/ui/file-uploader.mjs.map +1 -0
- package/dist/ui/form.cjs +1 -1
- package/dist/ui/form.cjs.map +1 -1
- package/dist/ui/form.d.cts +10 -10
- package/dist/ui/form.d.mts +112 -0
- package/dist/ui/form.mjs +2 -0
- package/dist/ui/form.mjs.map +1 -0
- package/dist/ui/hover-card.cjs +1 -1
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.mts +37 -0
- package/dist/ui/hover-card.mjs +2 -0
- package/dist/ui/hover-card.mjs.map +1 -0
- package/dist/ui/image.cjs +1 -2
- package/dist/ui/image.d.mts +36 -0
- package/dist/ui/image.mjs +1 -0
- package/dist/ui/input-otp.cjs +1 -1
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.mts +59 -0
- package/dist/ui/input-otp.mjs +2 -0
- package/dist/ui/input-otp.mjs.map +1 -0
- package/dist/ui/input.cjs +1 -2
- package/dist/ui/input.d.cts +2 -44
- package/dist/ui/input.d.mts +2 -0
- package/dist/ui/input.mjs +1 -0
- package/dist/ui/inputs/search-input.cjs +1 -1
- package/dist/ui/inputs/search-input.cjs.map +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.mts +29 -0
- package/dist/ui/inputs/search-input.mjs +2 -0
- package/dist/ui/inputs/search-input.mjs.map +1 -0
- package/dist/ui/item.cjs +1 -1
- package/dist/ui/item.cjs.map +1 -1
- package/dist/ui/item.d.cts +15 -15
- package/dist/ui/item.d.mts +102 -0
- package/dist/ui/item.mjs +2 -0
- package/dist/ui/item.mjs.map +1 -0
- package/dist/ui/label.cjs +1 -2
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.mts +24 -0
- package/dist/ui/label.mjs +1 -0
- package/dist/ui/menubar.cjs +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.mts +135 -0
- package/dist/ui/menubar.mjs +2 -0
- package/dist/ui/menubar.mjs.map +1 -0
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.cjs.map +1 -1
- package/dist/ui/multi-select.d.cts +3 -3
- package/dist/ui/multi-select.d.mts +118 -0
- package/dist/ui/multi-select.mjs +2 -0
- package/dist/ui/multi-select.mjs.map +1 -0
- package/dist/ui/navigation-menu.cjs +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.mts +77 -0
- package/dist/ui/navigation-menu.mjs +2 -0
- package/dist/ui/navigation-menu.mjs.map +1 -0
- package/dist/ui/pagination.cjs +1 -1
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.mts +67 -0
- package/dist/ui/pagination.mjs +2 -0
- package/dist/ui/pagination.mjs.map +1 -0
- package/dist/ui/popover.cjs +1 -2
- package/dist/ui/popover.d.cts +6 -6
- package/dist/ui/popover.d.mts +52 -0
- package/dist/ui/popover.mjs +1 -0
- package/dist/ui/progress.cjs +1 -2
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.mts +23 -0
- package/dist/ui/progress.mjs +1 -0
- package/dist/ui/radio-group.cjs +1 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.mts +37 -0
- package/dist/ui/radio-group.mjs +1 -0
- package/dist/ui/resizable.cjs +1 -2
- package/dist/ui/resizable.d.cts +9 -9
- package/dist/ui/resizable.d.mts +63 -0
- package/dist/ui/resizable.mjs +1 -0
- package/dist/ui/scroll-area.cjs +1 -1
- package/dist/ui/scroll-area.d.cts +5 -5
- package/dist/ui/scroll-area.d.mts +37 -0
- package/dist/ui/scroll-area.mjs +2 -0
- package/dist/ui/scroll-area.mjs.map +1 -0
- package/dist/ui/select.cjs +1 -2
- package/dist/ui/select.d.cts +9 -9
- package/dist/ui/select.d.mts +77 -0
- package/dist/ui/select.mjs +1 -0
- package/dist/ui/separator.cjs +1 -2
- package/dist/ui/separator.d.cts +2 -2
- package/dist/ui/separator.d.mts +34 -0
- package/dist/ui/separator.mjs +1 -0
- package/dist/ui/sheet.cjs +1 -2
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.mts +69 -0
- package/dist/ui/sheet.mjs +1 -0
- package/dist/ui/skeleton.cjs +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.mts +27 -0
- package/dist/ui/skeleton.mjs +1 -0
- package/dist/ui/slider.cjs +1 -1
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.mts +26 -0
- package/dist/ui/slider.mjs +2 -0
- package/dist/ui/slider.mjs.map +1 -0
- package/dist/ui/sonner.cjs +1 -1
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.mts +24 -0
- package/dist/ui/sonner.mjs +2 -0
- package/dist/ui/sonner.mjs.map +1 -0
- package/dist/ui/spinner.cjs +1 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.mts +25 -0
- package/dist/ui/spinner.mjs +1 -0
- package/dist/ui/switch.cjs +1 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.mts +26 -0
- package/dist/ui/switch.mjs +1 -0
- package/dist/ui/table.cjs +1 -1
- package/dist/ui/table.d.cts +17 -17
- package/dist/ui/table.d.mts +73 -0
- package/dist/ui/table.mjs +2 -0
- package/dist/ui/table.mjs.map +1 -0
- package/dist/ui/tabs.cjs +1 -1
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.mts +44 -0
- package/dist/ui/tabs.mjs +2 -0
- package/dist/ui/tabs.mjs.map +1 -0
- package/dist/ui/textarea.cjs +1 -2
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.mts +30 -0
- package/dist/ui/textarea.mjs +1 -0
- package/dist/ui/toggle-group.cjs +1 -1
- package/dist/ui/toggle-group.cjs.map +1 -1
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.mts +39 -0
- package/dist/ui/toggle-group.mjs +2 -0
- package/dist/ui/toggle-group.mjs.map +1 -0
- package/dist/ui/toggle.cjs +1 -1
- package/dist/ui/toggle.d.cts +4 -4
- package/dist/ui/toggle.d.mts +32 -0
- package/dist/ui/toggle.mjs +2 -0
- package/dist/ui/toggle.mjs.map +1 -0
- package/dist/ui/tooltip.cjs +1 -2
- package/dist/ui/tooltip.d.cts +5 -5
- package/dist/ui/tooltip.d.mts +55 -0
- package/dist/ui/tooltip.mjs +1 -0
- package/dist/user-DtZy4P9d.mjs +2 -0
- package/dist/user-DtZy4P9d.mjs.map +1 -0
- package/dist/user-ii4FBhO1.cjs +2 -0
- package/dist/user-ii4FBhO1.cjs.map +1 -0
- package/package.json +100 -100
- package/dist/alert-BVsYpWFX.d.cts +0 -88
- package/dist/alert-D5VmhFT9.js +0 -2
- package/dist/alert-D5VmhFT9.js.map +0 -1
- package/dist/alert-DXmXDeGs.d.ts +0 -88
- package/dist/alert-JwECRZfz.cjs +0 -2
- package/dist/alert-JwECRZfz.cjs.map +0 -1
- package/dist/button-BBfGvggN.d.ts +0 -174
- package/dist/button-BEjRVw6s.d.cts +0 -174
- package/dist/button.variants-BruXd4VM.js +0 -2
- package/dist/button.variants-BruXd4VM.js.map +0 -1
- package/dist/button.variants-DgVFNsVc.cjs +0 -2
- package/dist/button.variants-DgVFNsVc.cjs.map +0 -1
- package/dist/cards/grid-product-card.d.ts +0 -37
- package/dist/cards/grid-product-card.js +0 -2
- package/dist/cards/grid-product-card.js.map +0 -1
- package/dist/cards/product-card.d.ts +0 -37
- package/dist/cards/product-card.js +0 -2
- package/dist/cards/product-card.js.map +0 -1
- package/dist/cards/simple-card.d.ts +0 -35
- package/dist/cards/simple-card.js +0 -2
- package/dist/cards/simple-card.js.map +0 -1
- package/dist/chunk-Bmb41Sf3.cjs +0 -1
- package/dist/close-Dflkky9q.cjs +0 -2
- package/dist/close-Dflkky9q.cjs.map +0 -1
- package/dist/close-DrkwaVXK.js +0 -2
- package/dist/close-DrkwaVXK.js.map +0 -1
- package/dist/cms-layout-B8maJRLp.cjs +0 -2
- package/dist/cms-layout-B8maJRLp.cjs.map +0 -1
- package/dist/cms-layout-CLeGdpMb.js +0 -2
- package/dist/cms-layout-CLeGdpMb.js.map +0 -1
- package/dist/data-display/country.d.ts +0 -22
- package/dist/data-display/country.js +0 -2
- package/dist/data-display/country.js.map +0 -1
- package/dist/data-display/data-list.d.ts +0 -43
- package/dist/data-display/data-list.js +0 -2
- package/dist/data-display/data-list.js.map +0 -1
- package/dist/data-display/date-tooltip.d.ts +0 -19
- package/dist/data-display/date-tooltip.js +0 -2
- package/dist/data-display/date-tooltip.js.map +0 -1
- package/dist/data-display/date.cjs.map +0 -1
- package/dist/data-display/date.d.ts +0 -39
- package/dist/data-display/date.js +0 -2
- package/dist/data-display/date.js.map +0 -1
- package/dist/data-display/empty.d.ts +0 -21
- package/dist/data-display/empty.js +0 -2
- package/dist/data-display/empty.js.map +0 -1
- package/dist/data-display/name.d.ts +0 -19
- package/dist/data-display/name.js +0 -2
- package/dist/data-display/name.js.map +0 -1
- package/dist/data-display/phone-number.d.ts +0 -19
- package/dist/data-display/phone-number.js +0 -2
- package/dist/data-display/phone-number.js.map +0 -1
- package/dist/data-display/role-badge.d.ts +0 -22
- package/dist/data-display/role-badge.js +0 -2
- package/dist/data-display/role-badge.js.map +0 -1
- package/dist/data-display/statistic.cjs.map +0 -1
- package/dist/data-display/statistic.d.ts +0 -57
- package/dist/data-display/statistic.js +0 -2
- package/dist/data-display/statistic.js.map +0 -1
- package/dist/data-display/user.cjs.map +0 -1
- package/dist/data-display/user.d.ts +0 -23
- package/dist/data-display/user.js +0 -2
- package/dist/data-display/user.js.map +0 -1
- package/dist/dialogs/confirm-dialog.d.ts +0 -142
- package/dist/dialogs/confirm-dialog.js +0 -2
- package/dist/dialogs/confirm-dialog.js.map +0 -1
- package/dist/dialogs/detail-dialog/components/sidebar.d.ts +0 -209
- package/dist/dialogs/detail-dialog/components/sidebar.js +0 -1
- package/dist/dialogs/detail-dialog/index.d.ts +0 -45
- package/dist/dialogs/detail-dialog/index.js +0 -2
- package/dist/dialogs/detail-dialog/index.js.map +0 -1
- package/dist/dialogs/error-dialog.d.ts +0 -25
- package/dist/dialogs/error-dialog.js +0 -2
- package/dist/dialogs/error-dialog.js.map +0 -1
- package/dist/dialogs/loading-dialog.d.ts +0 -21
- package/dist/dialogs/loading-dialog.js +0 -2
- package/dist/dialogs/loading-dialog.js.map +0 -1
- package/dist/features/descriptions/index.d.ts +0 -246
- package/dist/features/descriptions/index.js +0 -2
- package/dist/features/descriptions/index.js.map +0 -1
- package/dist/features/search-modal/index.d.ts +0 -17
- package/dist/features/search-modal/index.js +0 -1
- package/dist/features/tables/index.d.ts +0 -2
- package/dist/features/tables/index.js +0 -1
- package/dist/features/tanstack-form/index.d.ts +0 -2
- package/dist/features/tanstack-form/index.js +0 -1
- package/dist/features/text-editor/index.d.ts +0 -2
- package/dist/features/text-editor/index.js +0 -1
- package/dist/field-0gaEKxov.cjs +0 -2
- package/dist/field-0gaEKxov.cjs.map +0 -1
- package/dist/field-DG-kX3HU.js +0 -2
- package/dist/field-DG-kX3HU.js.map +0 -1
- package/dist/flex-BAfCk_in.cjs +0 -2
- package/dist/flex-BAfCk_in.cjs.map +0 -1
- package/dist/flex-D_XtSjf4.js +0 -2
- package/dist/flex-D_XtSjf4.js.map +0 -1
- package/dist/heading-BX7ZVnVg.cjs +0 -2
- package/dist/heading-BX7ZVnVg.cjs.map +0 -1
- package/dist/heading-Bw3eo6IT.js +0 -2
- package/dist/heading-Bw3eo6IT.js.map +0 -1
- package/dist/index--eHW_BCk.d.ts +0 -85
- package/dist/index-C257sc-c.d.ts +0 -90
- package/dist/index-C4ZFmaZm.d.cts +0 -2348
- package/dist/index-DWEpRM8i.d.cts +0 -1093
- package/dist/index-DnQeeNHV.d.ts +0 -1093
- package/dist/index-_MFRCXuJ.d.cts +0 -85
- package/dist/index-rNI5ia8r.d.cts +0 -90
- package/dist/index-rZ2RtGJp.d.ts +0 -2348
- package/dist/index.d.ts +0 -93
- package/dist/index.js +0 -1
- package/dist/layouts/cms-layout/index.d.ts +0 -2
- package/dist/layouts/cms-layout/index.js +0 -1
- package/dist/layouts/flex.d.ts +0 -117
- package/dist/layouts/flex.js +0 -1
- package/dist/layouts/grid.d.ts +0 -19
- package/dist/layouts/grid.js +0 -2
- package/dist/layouts/grid.js.map +0 -1
- package/dist/layouts/payment-layout/index.d.ts +0 -74
- package/dist/layouts/payment-layout/index.js +0 -1
- package/dist/pages/FeatureDeveloping.d.ts +0 -43
- package/dist/pages/FeatureDeveloping.js +0 -2
- package/dist/pages/FeatureDeveloping.js.map +0 -1
- package/dist/pages/FeatureFixing.d.ts +0 -43
- package/dist/pages/FeatureFixing.js +0 -2
- package/dist/pages/FeatureFixing.js.map +0 -1
- package/dist/pages/LoginPage.d.ts +0 -55
- package/dist/pages/LoginPage.js +0 -2
- package/dist/pages/LoginPage.js.map +0 -1
- package/dist/pages/NotAuthorized.d.ts +0 -43
- package/dist/pages/NotAuthorized.js +0 -2
- package/dist/pages/NotAuthorized.js.map +0 -1
- package/dist/pages/NotFound.d.ts +0 -43
- package/dist/pages/NotFound.js +0 -2
- package/dist/pages/NotFound.js.map +0 -1
- package/dist/pages/RegisterPage.d.ts +0 -52
- package/dist/pages/RegisterPage.js +0 -2
- package/dist/pages/RegisterPage.js.map +0 -1
- package/dist/pages/VerifyEmailPage.d.ts +0 -64
- package/dist/pages/VerifyEmailPage.js +0 -2
- package/dist/pages/VerifyEmailPage.js.map +0 -1
- package/dist/paragraph-D0x3Jc6W.cjs +0 -2
- package/dist/paragraph-D0x3Jc6W.cjs.map +0 -1
- package/dist/paragraph-ESjXXqHU.js +0 -2
- package/dist/paragraph-ESjXXqHU.js.map +0 -1
- package/dist/payment-layout-CksJbGsl.js +0 -2
- package/dist/payment-layout-CksJbGsl.js.map +0 -1
- package/dist/payment-layout-O7TNw2Cr.cjs +0 -2
- package/dist/payment-layout-O7TNw2Cr.cjs.map +0 -1
- package/dist/search-modal-Db8Xp2L4.cjs +0 -2
- package/dist/search-modal-Db8Xp2L4.cjs.map +0 -1
- package/dist/search-modal-DdonKbwA.js +0 -2
- package/dist/search-modal-DdonKbwA.js.map +0 -1
- package/dist/sidebar-BCuXtop_.js +0 -2
- package/dist/sidebar-BCuXtop_.js.map +0 -1
- package/dist/sidebar-CQZlWCK4.cjs +0 -2
- package/dist/sidebar-CQZlWCK4.cjs.map +0 -1
- package/dist/skeleton-DAcbjBGp.js +0 -2
- package/dist/skeleton-DAcbjBGp.js.map +0 -1
- package/dist/skeleton-oQFT4xR2.cjs +0 -2
- package/dist/skeleton-oQFT4xR2.cjs.map +0 -1
- package/dist/systems/google.d.ts +0 -53
- package/dist/systems/google.js +0 -2
- package/dist/systems/google.js.map +0 -1
- package/dist/tables-DbwtCMRI.js +0 -4
- package/dist/tables-DbwtCMRI.js.map +0 -1
- package/dist/tables-DgZbLZQP.cjs +0 -4
- package/dist/tables-DgZbLZQP.cjs.map +0 -1
- package/dist/tanstack-form-C3SGhsmN.cjs +0 -2
- package/dist/tanstack-form-C3SGhsmN.cjs.map +0 -1
- package/dist/tanstack-form-Ds_Zjt20.js +0 -2
- package/dist/tanstack-form-Ds_Zjt20.js.map +0 -1
- package/dist/text-editor-DhTxCxvH.cjs +0 -2
- package/dist/text-editor-DhTxCxvH.cjs.map +0 -1
- package/dist/text-editor-DwisU9_U.js +0 -2
- package/dist/text-editor-DwisU9_U.js.map +0 -1
- package/dist/typography/paragraph.d.ts +0 -48
- package/dist/typography/paragraph.js +0 -1
- package/dist/typography/title.d.ts +0 -43
- package/dist/typography/title.js +0 -2
- package/dist/typography/title.js.map +0 -1
- package/dist/ui/alert-dialog.d.ts +0 -90
- package/dist/ui/alert-dialog.js +0 -2
- package/dist/ui/alert-dialog.js.map +0 -1
- package/dist/ui/alert.d.ts +0 -2
- package/dist/ui/alert.js +0 -1
- package/dist/ui/aspect-ratio.d.ts +0 -24
- package/dist/ui/aspect-ratio.js +0 -2
- package/dist/ui/aspect-ratio.js.map +0 -1
- package/dist/ui/avatar.cjs.map +0 -1
- package/dist/ui/avatar.d.ts +0 -35
- package/dist/ui/avatar.js +0 -2
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.cjs.map +0 -1
- package/dist/ui/badge.d.ts +0 -42
- package/dist/ui/badge.js +0 -2
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/breadcrumb.d.ts +0 -72
- package/dist/ui/breadcrumb.js +0 -2
- package/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui/button-group.d.ts +0 -50
- package/dist/ui/button-group.js +0 -2
- package/dist/ui/button-group.js.map +0 -1
- package/dist/ui/button.cjs.map +0 -1
- package/dist/ui/button.d.ts +0 -2
- package/dist/ui/button.js +0 -2
- package/dist/ui/button.js.map +0 -1
- package/dist/ui/buttons/add-new.d.ts +0 -17
- package/dist/ui/buttons/add-new.js +0 -2
- package/dist/ui/buttons/add-new.js.map +0 -1
- package/dist/ui/buttons/edit.d.ts +0 -17
- package/dist/ui/buttons/edit.js +0 -2
- package/dist/ui/buttons/edit.js.map +0 -1
- package/dist/ui/buttons/refresh.d.ts +0 -17
- package/dist/ui/buttons/refresh.js +0 -2
- package/dist/ui/buttons/refresh.js.map +0 -1
- package/dist/ui/buttons/trash.d.ts +0 -17
- package/dist/ui/buttons/trash.js +0 -2
- package/dist/ui/buttons/trash.js.map +0 -1
- package/dist/ui/buttons/upload-image.d.ts +0 -24
- package/dist/ui/buttons/upload-image.js +0 -2
- package/dist/ui/buttons/upload-image.js.map +0 -1
- package/dist/ui/calendar.cjs.map +0 -1
- package/dist/ui/calendar.d.ts +0 -45
- package/dist/ui/calendar.js +0 -2
- package/dist/ui/calendar.js.map +0 -1
- package/dist/ui/card.d.ts +0 -63
- package/dist/ui/card.js +0 -2
- package/dist/ui/card.js.map +0 -1
- package/dist/ui/carousel.d.ts +0 -71
- package/dist/ui/carousel.js +0 -2
- package/dist/ui/carousel.js.map +0 -1
- package/dist/ui/checkbox.cjs.map +0 -1
- package/dist/ui/checkbox.d.ts +0 -26
- package/dist/ui/checkbox.js +0 -2
- package/dist/ui/checkbox.js.map +0 -1
- package/dist/ui/collapsible.d.ts +0 -34
- package/dist/ui/collapsible.js +0 -2
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/command.cjs.map +0 -1
- package/dist/ui/command.d.ts +0 -89
- package/dist/ui/command.js +0 -2
- package/dist/ui/command.js.map +0 -1
- package/dist/ui/context-menu.d.ts +0 -125
- package/dist/ui/context-menu.js +0 -2
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/dialog.cjs.map +0 -1
- package/dist/ui/dialog.d.ts +0 -90
- package/dist/ui/dialog.js +0 -2
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/drawer.cjs.map +0 -1
- package/dist/ui/drawer.d.ts +0 -72
- package/dist/ui/drawer.js +0 -2
- package/dist/ui/drawer.js.map +0 -1
- package/dist/ui/dropdown-menu.cjs.map +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -127
- package/dist/ui/dropdown-menu.js +0 -2
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/empty.d.ts +0 -68
- package/dist/ui/empty.js +0 -2
- package/dist/ui/empty.js.map +0 -1
- package/dist/ui/field.d.ts +0 -65
- package/dist/ui/field.js +0 -1
- package/dist/ui/file-uploader.d.ts +0 -103
- package/dist/ui/file-uploader.js +0 -3
- package/dist/ui/file-uploader.js.map +0 -1
- package/dist/ui/form.d.ts +0 -112
- package/dist/ui/form.js +0 -2
- package/dist/ui/form.js.map +0 -1
- package/dist/ui/hover-card.d.ts +0 -37
- package/dist/ui/hover-card.js +0 -2
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/image.cjs.map +0 -1
- package/dist/ui/image.d.ts +0 -36
- package/dist/ui/image.js +0 -2
- package/dist/ui/image.js.map +0 -1
- package/dist/ui/input-otp.d.ts +0 -59
- package/dist/ui/input-otp.js +0 -2
- package/dist/ui/input-otp.js.map +0 -1
- package/dist/ui/input.cjs.map +0 -1
- package/dist/ui/input.d.ts +0 -44
- package/dist/ui/input.js +0 -2
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/inputs/search-input.d.ts +0 -29
- package/dist/ui/inputs/search-input.js +0 -2
- package/dist/ui/inputs/search-input.js.map +0 -1
- package/dist/ui/item.d.ts +0 -102
- package/dist/ui/item.js +0 -2
- package/dist/ui/item.js.map +0 -1
- package/dist/ui/label.cjs.map +0 -1
- package/dist/ui/label.d.ts +0 -24
- package/dist/ui/label.js +0 -2
- package/dist/ui/label.js.map +0 -1
- package/dist/ui/menubar.d.ts +0 -135
- package/dist/ui/menubar.js +0 -2
- package/dist/ui/menubar.js.map +0 -1
- package/dist/ui/multi-select.d.ts +0 -117
- package/dist/ui/multi-select.js +0 -2
- package/dist/ui/multi-select.js.map +0 -1
- package/dist/ui/navigation-menu.d.ts +0 -77
- package/dist/ui/navigation-menu.js +0 -2
- package/dist/ui/navigation-menu.js.map +0 -1
- package/dist/ui/pagination.d.ts +0 -67
- package/dist/ui/pagination.js +0 -2
- package/dist/ui/pagination.js.map +0 -1
- package/dist/ui/popover.cjs.map +0 -1
- package/dist/ui/popover.d.ts +0 -52
- package/dist/ui/popover.js +0 -2
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/progress.cjs.map +0 -1
- package/dist/ui/progress.d.ts +0 -23
- package/dist/ui/progress.js +0 -2
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/radio-group.cjs.map +0 -1
- package/dist/ui/radio-group.d.ts +0 -37
- package/dist/ui/radio-group.js +0 -2
- package/dist/ui/radio-group.js.map +0 -1
- package/dist/ui/resizable.cjs.map +0 -1
- package/dist/ui/resizable.d.ts +0 -63
- package/dist/ui/resizable.js +0 -2
- package/dist/ui/resizable.js.map +0 -1
- package/dist/ui/scroll-area.d.ts +0 -37
- package/dist/ui/scroll-area.js +0 -2
- package/dist/ui/scroll-area.js.map +0 -1
- package/dist/ui/select.cjs.map +0 -1
- package/dist/ui/select.d.ts +0 -77
- package/dist/ui/select.js +0 -2
- package/dist/ui/select.js.map +0 -1
- package/dist/ui/separator.cjs.map +0 -1
- package/dist/ui/separator.d.ts +0 -34
- package/dist/ui/separator.js +0 -2
- package/dist/ui/separator.js.map +0 -1
- package/dist/ui/sheet.cjs.map +0 -1
- package/dist/ui/sheet.d.ts +0 -69
- package/dist/ui/sheet.js +0 -2
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/skeleton.d.ts +0 -27
- package/dist/ui/skeleton.js +0 -1
- package/dist/ui/slider.d.ts +0 -26
- package/dist/ui/slider.js +0 -2
- package/dist/ui/slider.js.map +0 -1
- package/dist/ui/sonner.d.ts +0 -24
- package/dist/ui/sonner.js +0 -2
- package/dist/ui/sonner.js.map +0 -1
- package/dist/ui/spinner.cjs.map +0 -1
- package/dist/ui/spinner.d.ts +0 -25
- package/dist/ui/spinner.js +0 -2
- package/dist/ui/spinner.js.map +0 -1
- package/dist/ui/switch.cjs.map +0 -1
- package/dist/ui/switch.d.ts +0 -26
- package/dist/ui/switch.js +0 -2
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/table.d.ts +0 -73
- package/dist/ui/table.js +0 -2
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tabs.d.ts +0 -44
- package/dist/ui/tabs.js +0 -2
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/textarea.cjs.map +0 -1
- package/dist/ui/textarea.d.ts +0 -30
- package/dist/ui/textarea.js +0 -2
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/toggle-group.d.ts +0 -39
- package/dist/ui/toggle-group.js +0 -2
- package/dist/ui/toggle-group.js.map +0 -1
- package/dist/ui/toggle.d.ts +0 -32
- package/dist/ui/toggle.js +0 -2
- package/dist/ui/toggle.js.map +0 -1
- package/dist/ui/tooltip.cjs.map +0 -1
- package/dist/ui/tooltip.d.ts +0 -55
- package/dist/ui/tooltip.js +0 -2
- package/dist/ui/tooltip.js.map +0 -1
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as react6 from "react";
|
|
3
|
-
import { TooltipContent } from "@/components/ui/tooltip";
|
|
4
|
-
import { Button } from "@/components/ui/button";
|
|
5
|
-
import { Separator } from "@/components/ui/separator";
|
|
6
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
7
|
-
|
|
8
|
-
//#region packages/components/dialogs/detail-dialog/components/sidebar.d.ts
|
|
9
|
-
type SidebarContextProps = {
|
|
10
|
-
/** Current visual state of the sidebar. */
|
|
11
|
-
state: 'expanded' | 'collapsed';
|
|
12
|
-
/** Whether the sidebar is open on desktop. */
|
|
13
|
-
open: boolean;
|
|
14
|
-
/** Setter for the desktop open state. */
|
|
15
|
-
setOpen: (open: boolean) => void;
|
|
16
|
-
/** Whether the sidebar sheet is open on mobile. */
|
|
17
|
-
openMobile: boolean;
|
|
18
|
-
/** Setter for the mobile open state. */
|
|
19
|
-
setOpenMobile: (open: boolean) => void;
|
|
20
|
-
/** `true` when the viewport is considered mobile-sized. */
|
|
21
|
-
isMobile: boolean;
|
|
22
|
-
/** Toggles the sidebar between expanded and collapsed. */
|
|
23
|
-
toggleSidebar: () => void;
|
|
24
|
-
};
|
|
25
|
-
declare function useSidebar(): SidebarContextProps;
|
|
26
|
-
/**
|
|
27
|
-
* Context provider that manages sidebar open/collapsed state and persists it via a cookie.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* import { SidebarProvider } from '@customafk/lunas-ui/dialogs/detail-dialog/components/sidebar';
|
|
32
|
-
*
|
|
33
|
-
* <SidebarProvider defaultOpen={true}>
|
|
34
|
-
* <Sidebar collapsible="icon">{...}</Sidebar>
|
|
35
|
-
* </SidebarProvider>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
declare function SidebarProvider({
|
|
39
|
-
defaultOpen,
|
|
40
|
-
open: openProp,
|
|
41
|
-
onOpenChange: setOpenProp,
|
|
42
|
-
className,
|
|
43
|
-
style,
|
|
44
|
-
children,
|
|
45
|
-
...props
|
|
46
|
-
}: React.ComponentProps<'div'> & {
|
|
47
|
-
/** Whether the sidebar is open by default (uncontrolled). Defaults to `true`. */
|
|
48
|
-
defaultOpen?: boolean;
|
|
49
|
-
/** Controlled open state. When provided the component becomes controlled. */
|
|
50
|
-
open?: boolean;
|
|
51
|
-
/** Callback fired when the open state changes in controlled mode. */
|
|
52
|
-
onOpenChange?: (open: boolean) => void;
|
|
53
|
-
}): react6.JSX.Element;
|
|
54
|
-
/**
|
|
55
|
-
* Responsive sidebar container that supports desktop icon-collapse and a mobile Sheet overlay.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```tsx
|
|
59
|
-
* import { Sidebar } from '@customafk/lunas-ui/dialogs/detail-dialog/components/sidebar';
|
|
60
|
-
*
|
|
61
|
-
* <Sidebar collapsible="icon" side="left">
|
|
62
|
-
* {children}
|
|
63
|
-
* </Sidebar>
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
declare function Sidebar({
|
|
67
|
-
side,
|
|
68
|
-
variant,
|
|
69
|
-
collapsible,
|
|
70
|
-
className,
|
|
71
|
-
children,
|
|
72
|
-
...props
|
|
73
|
-
}: React.ComponentProps<'div'> & {
|
|
74
|
-
/** Which edge the sidebar is anchored to. Defaults to `'left'`. */
|
|
75
|
-
side?: 'left' | 'right';
|
|
76
|
-
/** Visual style variant of the sidebar. Defaults to `'sidebar'`. */
|
|
77
|
-
variant?: 'sidebar' | 'floating' | 'inset';
|
|
78
|
-
/** Collapse behaviour — slides off-canvas, shrinks to icon strip, or stays fixed. Defaults to `'offcanvas'`. */
|
|
79
|
-
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
80
|
-
}): react6.JSX.Element;
|
|
81
|
-
/**
|
|
82
|
-
* Icon button that toggles the detail-dialog sidebar open or collapsed.
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```tsx
|
|
86
|
-
* import { DetailDialogSidebarTrigger } from '@customafk/lunas-ui/dialogs/detail-dialog/components/sidebar';
|
|
87
|
-
*
|
|
88
|
-
* <DetailDialogSidebarTrigger />
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
declare function DetailDialogSidebarTrigger({
|
|
92
|
-
className,
|
|
93
|
-
onClick,
|
|
94
|
-
...props
|
|
95
|
-
}: React.ComponentProps<typeof Button>): react6.JSX.Element;
|
|
96
|
-
declare function DetailDialogSidebarRail({
|
|
97
|
-
className,
|
|
98
|
-
...props
|
|
99
|
-
}: React.ComponentProps<'button'>): react6.JSX.Element;
|
|
100
|
-
declare function SidebarInset({
|
|
101
|
-
className,
|
|
102
|
-
...props
|
|
103
|
-
}: React.ComponentProps<'main'>): react6.JSX.Element;
|
|
104
|
-
declare function DetailDialogSidebarHeader({
|
|
105
|
-
className,
|
|
106
|
-
...props
|
|
107
|
-
}: React.ComponentProps<'div'>): react6.JSX.Element;
|
|
108
|
-
declare function DetailDialogSidebarFooter({
|
|
109
|
-
className,
|
|
110
|
-
children,
|
|
111
|
-
...props
|
|
112
|
-
}: React.ComponentProps<'div'>): react6.JSX.Element;
|
|
113
|
-
declare function DetailDialogSidebarSeparator({
|
|
114
|
-
className,
|
|
115
|
-
...props
|
|
116
|
-
}: React.ComponentProps<typeof Separator>): react6.JSX.Element;
|
|
117
|
-
declare function DetailDialogSidebarContent({
|
|
118
|
-
className,
|
|
119
|
-
...props
|
|
120
|
-
}: React.ComponentProps<'div'>): react6.JSX.Element;
|
|
121
|
-
declare function DetailDialogSidebarGroup({
|
|
122
|
-
className,
|
|
123
|
-
...props
|
|
124
|
-
}: React.ComponentProps<'div'>): react6.JSX.Element;
|
|
125
|
-
declare function DetailDialogSidebarGroupLabel({
|
|
126
|
-
className,
|
|
127
|
-
asChild,
|
|
128
|
-
...props
|
|
129
|
-
}: React.ComponentProps<'div'> & {
|
|
130
|
-
asChild?: boolean;
|
|
131
|
-
}): react6.JSX.Element;
|
|
132
|
-
declare function DetailDialogSidebarGroupAction({
|
|
133
|
-
className,
|
|
134
|
-
asChild,
|
|
135
|
-
...props
|
|
136
|
-
}: React.ComponentProps<'button'> & {
|
|
137
|
-
asChild?: boolean;
|
|
138
|
-
}): react6.JSX.Element;
|
|
139
|
-
declare function DetailDialogSidebarGroupContent({
|
|
140
|
-
className,
|
|
141
|
-
...props
|
|
142
|
-
}: React.ComponentProps<'div'>): react6.JSX.Element;
|
|
143
|
-
declare function DetailDialogSidebarMenu({
|
|
144
|
-
className,
|
|
145
|
-
...props
|
|
146
|
-
}: React.ComponentProps<'ul'>): react6.JSX.Element;
|
|
147
|
-
declare function DetailDialogSidebarMenuItem({
|
|
148
|
-
className,
|
|
149
|
-
...props
|
|
150
|
-
}: React.ComponentProps<'li'>): react6.JSX.Element;
|
|
151
|
-
declare const sidebarMenuButtonVariants: (props?: ({
|
|
152
|
-
variant?: "default" | "outline" | null | undefined;
|
|
153
|
-
size?: "sm" | "lg" | "default" | null | undefined;
|
|
154
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
155
|
-
declare function DetailDialogSidebarMenuButton({
|
|
156
|
-
asChild,
|
|
157
|
-
isActive,
|
|
158
|
-
variant,
|
|
159
|
-
size,
|
|
160
|
-
tooltip,
|
|
161
|
-
className,
|
|
162
|
-
...props
|
|
163
|
-
}: React.ComponentProps<'button'> & {
|
|
164
|
-
asChild?: boolean;
|
|
165
|
-
isActive?: boolean;
|
|
166
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
167
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>): react6.JSX.Element;
|
|
168
|
-
declare function DetailDialogSidebarMenuAction({
|
|
169
|
-
className,
|
|
170
|
-
asChild,
|
|
171
|
-
showOnHover,
|
|
172
|
-
...props
|
|
173
|
-
}: React.ComponentProps<'button'> & {
|
|
174
|
-
asChild?: boolean;
|
|
175
|
-
showOnHover?: boolean;
|
|
176
|
-
}): react6.JSX.Element;
|
|
177
|
-
declare function DetailDialogSidebarMenuBadge({
|
|
178
|
-
className,
|
|
179
|
-
...props
|
|
180
|
-
}: React.ComponentProps<'div'>): react6.JSX.Element;
|
|
181
|
-
declare function DetailDialogSidebarMenuSkeleton({
|
|
182
|
-
className,
|
|
183
|
-
showIcon,
|
|
184
|
-
...props
|
|
185
|
-
}: React.ComponentProps<'div'> & {
|
|
186
|
-
showIcon?: boolean;
|
|
187
|
-
}): react6.JSX.Element;
|
|
188
|
-
declare function DetailDialogSidebarMenuSub({
|
|
189
|
-
className,
|
|
190
|
-
...props
|
|
191
|
-
}: React.ComponentProps<'ul'>): react6.JSX.Element;
|
|
192
|
-
declare function DetailDialogSidebarMenuSubItem({
|
|
193
|
-
className,
|
|
194
|
-
...props
|
|
195
|
-
}: React.ComponentProps<'li'>): react6.JSX.Element;
|
|
196
|
-
declare function DetailDialogSidebarMenuSubButton({
|
|
197
|
-
asChild,
|
|
198
|
-
size,
|
|
199
|
-
isActive,
|
|
200
|
-
className,
|
|
201
|
-
...props
|
|
202
|
-
}: React.ComponentProps<'a'> & {
|
|
203
|
-
asChild?: boolean;
|
|
204
|
-
size?: 'sm' | 'md';
|
|
205
|
-
isActive?: boolean;
|
|
206
|
-
}): react6.JSX.Element;
|
|
207
|
-
//#endregion
|
|
208
|
-
export { DetailDialogSidebarContent, DetailDialogSidebarFooter, DetailDialogSidebarGroup, DetailDialogSidebarGroupAction, DetailDialogSidebarGroupContent, DetailDialogSidebarGroupLabel, DetailDialogSidebarHeader, DetailDialogSidebarMenu, DetailDialogSidebarMenuAction, DetailDialogSidebarMenuBadge, DetailDialogSidebarMenuButton, DetailDialogSidebarMenuItem, DetailDialogSidebarMenuSkeleton, DetailDialogSidebarMenuSub, DetailDialogSidebarMenuSubButton, DetailDialogSidebarMenuSubItem, DetailDialogSidebarRail, DetailDialogSidebarSeparator, DetailDialogSidebarTrigger, Sidebar, SidebarInset, SidebarProvider, useSidebar };
|
|
209
|
-
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y,v as b,x,y as S}from"../../../sidebar-BCuXtop_.js";export{v as DetailDialogSidebarContent,p as DetailDialogSidebarFooter,g as DetailDialogSidebarGroup,u as DetailDialogSidebarGroupAction,r as DetailDialogSidebarGroupContent,m as DetailDialogSidebarGroupLabel,_ as DetailDialogSidebarHeader,a as DetailDialogSidebarMenu,d as DetailDialogSidebarMenuAction,y as DetailDialogSidebarMenuBadge,o as DetailDialogSidebarMenuButton,s as DetailDialogSidebarMenuItem,h as DetailDialogSidebarMenuSkeleton,f as DetailDialogSidebarMenuSub,l as DetailDialogSidebarMenuSubButton,c as DetailDialogSidebarMenuSubItem,n as DetailDialogSidebarRail,b as DetailDialogSidebarSeparator,S as DetailDialogSidebarTrigger,i as Sidebar,x as SidebarInset,t as SidebarProvider,e as useSidebar};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
//#region packages/components/dialogs/detail-dialog/index.d.ts
|
|
2
|
-
type DetailDialogSidebar = {
|
|
3
|
-
/** Title shown in the collapsible sidebar header. Defaults to `'Detail Dialog'`. */
|
|
4
|
-
title?: string;
|
|
5
|
-
/** Arbitrary content rendered inside the sidebar scrollable area. */
|
|
6
|
-
content?: React.ReactNode;
|
|
7
|
-
/** Arbitrary content rendered at the bottom of the sidebar footer. */
|
|
8
|
-
footer?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
type DetailDialogProps = {
|
|
11
|
-
/** Controls whether the dialog is open. */
|
|
12
|
-
open?: boolean;
|
|
13
|
-
/** When `true`, replaces the main content area with a centered loading spinner. */
|
|
14
|
-
isLoading?: boolean;
|
|
15
|
-
/** Primary title displayed in the dialog header. */
|
|
16
|
-
title: string;
|
|
17
|
-
/** ISO string, `Date` object, or Unix timestamp shown as a formatted creation date below the title. */
|
|
18
|
-
createdAt?: string | Date | number | null;
|
|
19
|
-
/** Optional sidebar configuration — title, body content, and footer content. */
|
|
20
|
-
sidebar?: DetailDialogSidebar;
|
|
21
|
-
/** Callback invoked when the dialog open state changes. */
|
|
22
|
-
onOpenChange?: (open: boolean) => void;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Full-screen detail dialog with a collapsible sidebar, a header with creation date, and a scrollable content area.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```tsx
|
|
29
|
-
* import { DetailDialog } from '@customafk/lunas-ui/dialogs/detail-dialog';
|
|
30
|
-
*
|
|
31
|
-
* <DetailDialog
|
|
32
|
-
* open={open}
|
|
33
|
-
* title="Order #1234"
|
|
34
|
-
* createdAt="2024-01-15T09:00:00Z"
|
|
35
|
-
* sidebar={{ title: 'Navigation', content: <nav>...</nav> }}
|
|
36
|
-
* onOpenChange={setOpen}
|
|
37
|
-
* >
|
|
38
|
-
* <p>Detail content goes here.</p>
|
|
39
|
-
* </DetailDialog>
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare const DetailDialog: React.FC<React.PropsWithChildren<DetailDialogProps>>;
|
|
43
|
-
//#endregion
|
|
44
|
-
export { DetailDialog, DetailDialogProps };
|
|
45
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{S as e,b as t,c as n,d as r,f as i,n as a,s as o,t as s,y as c}from"../../sidebar-BCuXtop_.js";import{CalendarIcon as l,CatIcon as u,XIcon as d}from"lucide-react";import{cn as f}from"@customafk/react-toolkit/utils";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{useCallback as h}from"react";import{Dialog as g}from"radix-ui";import{DateDisplay as _}from"@/components/data-display/date";import{Flex as v}from"@/components/layouts/flex";import{Title as y}from"@/components/typography/title";const b=({open:b,isLoading:x,title:S,createdAt:C,onOpenChange:w,sidebar:T,children:E})=>{let{content:D,footer:O}=T||{},k=h(e=>{e.preventDefault(),e.stopPropagation()},[]);return p(g.Root,{"data-slot":`detail-dialog`,open:b,onOpenChange:w,children:m(g.Portal,{"data-slot":`detail-dialog-portal`,children:[p(g.Overlay,{"data-slot":`detail-dialog-overlay`,className:`fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`}),p(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:m(g.Content,{"data-slot":`dialog-content`,className:f(`data-[state=open]:animate-in data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-80 data-[state=open]:zoom-in-80`,`relative z-50 grid`,`gap-4 overflow-hidden rounded-none border-none bg-background p-0 shadow-dialog outline-none duration-200`,`h-full max-h-dvh w-full max-w-svw`,`sm:rounded-lg`,`sm:max-w-lg`,`md:max-h-[calc(100dvh-2rem)]`,`md:max-w-[calc(100svw-2rem)]`),onInteractOutside:k,children:[m(e,{children:[m(t,{collapsible:`icon`,children:[p(o,{children:p(n,{children:p(i,{children:m(r,{size:`lg`,tabIndex:-1,children:[p(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:p(u,{size:16})}),m(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[p(`span`,{className:`truncate font-medium`,children:T?.title||`Detail Dialog`}),p(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),p(s,{children:D}),p(a,{children:O})]}),p(`main`,{"data-slot":`detail-dialog-main`,className:`relative h-full flex-1`,children:m(v,{padding:`none`,gap:`none`,vertical:!0,align:`stretch`,className:`absolute inset-0 size-full`,children:[m(`header`,{className:`flex w-full flex-0 items-start gap-x-2.5 border-b border-border-weak bg-card py-2.5 pr-12 pl-2`,children:[p(c,{}),m(v,{vertical:!0,align:`start`,padding:`none`,width:`null`,wrap:!1,className:`flex-1 gap-0`,children:[p(y,{level:5,className:`line-clamp-1 truncate text-wrap`,children:S||`Detail Dialog`}),!!C&&m(v,{padding:`none`,className:`relative items-center text-text-positive-weak`,children:[p(l,{size:12}),p(_,{showTime:!0,showHoliday:!0,date:C,format:`full`})]})]})]}),x?p(v,{justify:`center`,className:`inset-shadow-sm w-full flex-1 bg-muted-muted`,children:p(`div`,{className:`loader`})}):p(`section`,{"data-slot":`detail-dialog-body`,className:`relative inset-shadow-sm flex flex-1 snap-y flex-col gap-0 overflow-y-auto bg-white`,children:E})]})})]}),p(g.Close,{"data-slot":`dialog-close`,tabIndex:-1,asChild:!0,className:`absolute top-3 right-3`,children:p(`button`,{className:`flex cursor-pointer items-center justify-center rounded-full p-2 text-text-positive-weak transition-colors hover:bg-muted-muted hover:text-text-positive active:bg-muted-weak active:text-text-positive-strong disabled:pointer-events-none disabled:opacity-60`,children:p(d,{size:24})})})]})})]})})};export{b as DetailDialog};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DetailDialog: React.FC<React.PropsWithChildren<DetailDialogProps>>","DialogPrimitive"],"sources":["../../../packages/components/dialogs/detail-dialog/index.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback } from 'react';\n\nimport { CalendarIcon, CatIcon, XIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\n\nimport { DateDisplay } from '@/components/data-display/date';\nimport { Flex } from '@/components/layouts/flex';\nimport { Title } from '@/components/typography/title';\n\nimport {\n DetailDialogSidebarContent,\n DetailDialogSidebarFooter,\n DetailDialogSidebarHeader,\n DetailDialogSidebarMenu,\n DetailDialogSidebarMenuButton,\n DetailDialogSidebarMenuItem,\n DetailDialogSidebarTrigger,\n Sidebar,\n SidebarProvider,\n} from './components/sidebar';\n\ntype DetailDialogSidebar = {\n /** Title shown in the collapsible sidebar header. Defaults to `'Detail Dialog'`. */\n title?: string;\n /** Arbitrary content rendered inside the sidebar scrollable area. */\n content?: React.ReactNode;\n /** Arbitrary content rendered at the bottom of the sidebar footer. */\n footer?: React.ReactNode;\n};\n\nexport type DetailDialogProps = {\n /** Controls whether the dialog is open. */\n open?: boolean;\n /** When `true`, replaces the main content area with a centered loading spinner. */\n isLoading?: boolean;\n /** Primary title displayed in the dialog header. */\n title: string;\n /** ISO string, `Date` object, or Unix timestamp shown as a formatted creation date below the title. */\n createdAt?: string | Date | number | null;\n /** Optional sidebar configuration — title, body content, and footer content. */\n sidebar?: DetailDialogSidebar;\n /** Callback invoked when the dialog open state changes. */\n onOpenChange?: (open: boolean) => void;\n};\n\n/**\n * Full-screen detail dialog with a collapsible sidebar, a header with creation date, and a scrollable content area.\n *\n * @example\n * ```tsx\n * import { DetailDialog } from '@customafk/lunas-ui/dialogs/detail-dialog';\n *\n * <DetailDialog\n * open={open}\n * title=\"Order #1234\"\n * createdAt=\"2024-01-15T09:00:00Z\"\n * sidebar={{ title: 'Navigation', content: <nav>...</nav> }}\n * onOpenChange={setOpen}\n * >\n * <p>Detail content goes here.</p>\n * </DetailDialog>\n * ```\n */\nexport const DetailDialog: React.FC<React.PropsWithChildren<DetailDialogProps>> = ({ open, isLoading, title, createdAt, onOpenChange, sidebar, children }) => {\n const { content: SidebarContent, footer: SidebarFooter } = sidebar || {};\n\n const handleInteractOutside = useCallback<NonNullable<React.ComponentProps<typeof DialogPrimitive.Content>['onInteractOutside']>>(event => {\n event.preventDefault();\n event.stopPropagation();\n }, []);\n\n return (\n <DialogPrimitive.Root data-slot=\"detail-dialog\" open={open} onOpenChange={onOpenChange}>\n <DialogPrimitive.Portal data-slot=\"detail-dialog-portal\">\n <DialogPrimitive.Overlay\n data-slot=\"detail-dialog-overlay\"\n className=\"fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\"\n />\n <div className=\"fixed inset-0 z-50 flex items-center justify-center\">\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-80 data-[state=open]:zoom-in-80',\n 'relative z-50 grid',\n 'gap-4 overflow-hidden rounded-none border-none bg-background p-0 shadow-dialog outline-none duration-200',\n 'h-full max-h-dvh w-full max-w-svw',\n 'sm:rounded-lg',\n 'sm:max-w-lg',\n 'md:max-h-[calc(100dvh-2rem)]',\n 'md:max-w-[calc(100svw-2rem)]'\n )}\n onInteractOutside={handleInteractOutside}\n >\n <SidebarProvider>\n <Sidebar collapsible=\"icon\">\n <DetailDialogSidebarHeader>\n <DetailDialogSidebarMenu>\n <DetailDialogSidebarMenuItem>\n <DetailDialogSidebarMenuButton size=\"lg\" tabIndex={-1}>\n <div className=\"flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground\">\n <CatIcon size={16} />\n </div>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{sidebar?.title || 'Detail Dialog'}</span>\n <span className=\"truncate text-xs\">Lunas Enterprise</span>\n </div>\n </DetailDialogSidebarMenuButton>\n </DetailDialogSidebarMenuItem>\n </DetailDialogSidebarMenu>\n </DetailDialogSidebarHeader>\n <DetailDialogSidebarContent>{SidebarContent}</DetailDialogSidebarContent>\n <DetailDialogSidebarFooter>{SidebarFooter}</DetailDialogSidebarFooter>\n </Sidebar>\n\n <main data-slot=\"detail-dialog-main\" className=\"relative h-full flex-1\">\n <Flex padding=\"none\" gap=\"none\" vertical align=\"stretch\" className=\"absolute inset-0 size-full\">\n <header className=\"flex w-full flex-0 items-start gap-x-2.5 border-b border-border-weak bg-card py-2.5 pr-12 pl-2\">\n <DetailDialogSidebarTrigger />\n <Flex vertical align=\"start\" padding=\"none\" width=\"null\" wrap={false} className=\"flex-1 gap-0\">\n <Title level={5} className=\"line-clamp-1 truncate text-wrap\">\n {title || 'Detail Dialog'}\n </Title>\n {!!createdAt && (\n <Flex padding=\"none\" className=\"relative items-center text-text-positive-weak\">\n <CalendarIcon size={12} />\n <DateDisplay showTime showHoliday date={createdAt} format=\"full\" />\n </Flex>\n )}\n </Flex>\n </header>\n {isLoading ? (\n <Flex justify=\"center\" className=\"inset-shadow-sm w-full flex-1 bg-muted-muted\">\n <div className=\"loader\" />\n </Flex>\n ) : (\n <section data-slot=\"detail-dialog-body\" className=\"relative inset-shadow-sm flex flex-1 snap-y flex-col gap-0 overflow-y-auto bg-white\">\n {children}\n </section>\n )}\n </Flex>\n </main>\n </SidebarProvider>\n\n <DialogPrimitive.Close data-slot=\"dialog-close\" tabIndex={-1} asChild className=\"absolute top-3 right-3\">\n <button className=\"flex cursor-pointer items-center justify-center rounded-full p-2 text-text-positive-weak transition-colors hover:bg-muted-muted hover:text-text-positive active:bg-muted-weak active:text-text-positive-strong disabled:pointer-events-none disabled:opacity-60\">\n <XIcon size={24} />\n </button>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </div>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n );\n};\n"],"mappings":"ugBAmEA,MAAaA,GAAsE,CAAE,OAAM,YAAW,QAAO,YAAW,eAAc,UAAS,cAAe,CAC5J,GAAM,CAAE,QAAS,EAAgB,OAAQ,GAAkB,GAAW,EAAE,CAElE,EAAwB,EAAoG,GAAS,CACzI,EAAM,gBAAgB,CACtB,EAAM,iBAAiB,EACtB,EAAE,CAAC,CAEN,OACE,EAACC,EAAgB,KAAA,CAAK,YAAU,gBAAsB,OAAoB,wBACxE,EAACA,EAAgB,OAAA,CAAO,YAAU,iCAChC,EAACA,EAAgB,QAAA,CACf,YAAU,wBACV,UAAU,0JACV,CACF,EAAC,MAAA,CAAI,UAAU,+DACb,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,+DACA,6DACA,+DACA,qBACA,2GACA,oCACA,gBACA,cACA,+BACA,+BACD,CACD,kBAAmB,YAEnB,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,CAAQ,YAAY,iBACnB,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAA8B,KAAK,KAAK,SAAU,aACjD,EAAC,MAAA,CAAI,UAAU,+HACb,EAAC,EAAA,CAAQ,KAAM,GAAA,CAAM,EACjB,CACN,EAAC,MAAA,CAAI,UAAU,wDACb,EAAC,OAAA,CAAK,UAAU,gCAAwB,GAAS,OAAS,iBAAuB,CACjF,EAAC,OAAA,CAAK,UAAU,4BAAmB,oBAAuB,CAAA,EACtD,CAAA,EACwB,CAAA,CACJ,CAAA,CACN,CAAA,CACA,CAC5B,EAAC,EAAA,CAAA,SAA4B,EAAA,CAA4C,CACzE,EAAC,EAAA,CAAA,SAA2B,EAAA,CAA0C,GAC9D,CAEV,EAAC,OAAA,CAAK,YAAU,qBAAqB,UAAU,kCAC7C,EAAC,EAAA,CAAK,QAAQ,OAAO,IAAI,OAAO,SAAA,GAAS,MAAM,UAAU,UAAU,uCACjE,EAAC,SAAA,CAAO,UAAU,2GAChB,EAAC,EAAA,EAAA,CAA6B,CAC9B,EAAC,EAAA,CAAK,SAAA,GAAS,MAAM,QAAQ,QAAQ,OAAO,MAAM,OAAO,KAAM,GAAO,UAAU,yBAC9E,EAAC,EAAA,CAAM,MAAO,EAAG,UAAU,2CACxB,GAAS,iBACJ,CACP,CAAC,CAAC,GACD,EAAC,EAAA,CAAK,QAAQ,OAAO,UAAU,0DAC7B,EAAC,EAAA,CAAa,KAAM,GAAA,CAAM,CAC1B,EAAC,EAAA,CAAY,SAAA,GAAS,YAAA,GAAY,KAAM,EAAW,OAAO,QAAS,CAAA,EAC9D,CAAA,EAEJ,CAAA,EACA,CACR,EACC,EAAC,EAAA,CAAK,QAAQ,SAAS,UAAU,wDAC/B,EAAC,MAAA,CAAI,UAAU,SAAA,CAAW,EACrB,CAEP,EAAC,UAAA,CAAQ,YAAU,qBAAqB,UAAU,sFAC/C,YACO,CAAA,EAEP,EACF,CAAA,CAAA,CACS,CAElB,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,SAAU,GAAI,QAAA,GAAQ,UAAU,kCAC9E,EAAC,SAAA,CAAO,UAAU,2QAChB,EAAC,EAAA,CAAM,KAAM,GAAA,CAAM,EACZ,EACa,CAAA,EACA,EACtB,CAAA,EACiB,EACJ"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region packages/components/dialogs/error-dialog.d.ts
|
|
2
|
-
type ErrorDialogProps = {
|
|
3
|
-
/** Controls whether the dialog is open. */
|
|
4
|
-
open?: boolean;
|
|
5
|
-
/** Title text displayed inside the dialog header. Defaults to `'An error occurred'`. */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Callback invoked when the dialog open state changes. */
|
|
8
|
-
onOpenChange?: (open: boolean) => void;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Displays a modal alert dialog for communicating error states to the user.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* import { ErrorDialog } from '@customafk/lunas-ui/dialogs/error-dialog';
|
|
16
|
-
*
|
|
17
|
-
* <ErrorDialog open={hasError} title="Something went wrong" onOpenChange={setHasError}>
|
|
18
|
-
* <p>Please try again later.</p>
|
|
19
|
-
* </ErrorDialog>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare const ErrorDialog: React.FC<React.PropsWithChildren<ErrorDialogProps>>;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { ErrorDialog, ErrorDialogProps };
|
|
25
|
-
//# sourceMappingURL=error-dialog.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import"../button.variants-BruXd4VM.js";import"../heading-Bw3eo6IT.js";import"../paragraph-ESjXXqHU.js";import{AlertDialog as e,AlertDialogAction as t,AlertDialogContent as n,AlertDialogFooter as r,AlertDialogHeader as i,AlertDialogTitle as a}from"../ui/alert-dialog.js";import{AlertTriangleIcon as o}from"lucide-react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{useCallback as l}from"react";const u=({open:u,title:d,children:f,onOpenChange:p})=>{let m=l(()=>{p?.(!1)},[p]);return s(e,{open:u,onOpenChange:p,children:c(n,{className:`gap-8 p-4 sm:max-w-md`,children:[s(i,{children:c(`div`,{className:`flex flex-col items-center text-danger`,children:[s(o,{size:42}),s(a,{className:`text-xl font-medium`,children:d||`An error occurred`})]})}),f,s(r,{children:s(t,{className:`w-full sm:w-28`,onClick:m,children:`Close`})})]})})};export{u as ErrorDialog};
|
|
2
|
-
//# sourceMappingURL=error-dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-dialog.js","names":["ErrorDialog: React.FC<React.PropsWithChildren<ErrorDialogProps>>"],"sources":["../../packages/components/dialogs/error-dialog.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback } from 'react';\n\nimport { AlertTriangleIcon } from 'lucide-react';\n\nimport { AlertDialog, AlertDialogAction, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '../ui/alert-dialog';\n\nexport type ErrorDialogProps = {\n /** Controls whether the dialog is open. */\n open?: boolean;\n /** Title text displayed inside the dialog header. Defaults to `'An error occurred'`. */\n title?: string;\n /** Callback invoked when the dialog open state changes. */\n onOpenChange?: (open: boolean) => void;\n};\n\n/**\n * Displays a modal alert dialog for communicating error states to the user.\n *\n * @example\n * ```tsx\n * import { ErrorDialog } from '@customafk/lunas-ui/dialogs/error-dialog';\n *\n * <ErrorDialog open={hasError} title=\"Something went wrong\" onOpenChange={setHasError}>\n * <p>Please try again later.</p>\n * </ErrorDialog>\n * ```\n */\nexport const ErrorDialog: React.FC<React.PropsWithChildren<ErrorDialogProps>> = ({ open, title, children, onOpenChange }) => {\n const handleClose = useCallback(() => {\n onOpenChange?.(false);\n }, [onOpenChange]);\n\n return (\n <AlertDialog open={open} onOpenChange={onOpenChange}>\n <AlertDialogContent className=\"gap-8 p-4 sm:max-w-md\">\n <AlertDialogHeader>\n <div className=\"flex flex-col items-center text-danger\">\n <AlertTriangleIcon size={42} />\n <AlertDialogTitle className=\"text-xl font-medium\">{title || 'An error occurred'}</AlertDialogTitle>\n </div>\n </AlertDialogHeader>\n {children}\n <AlertDialogFooter>\n <AlertDialogAction className=\"w-full sm:w-28\" onClick={handleClose}>\n Close\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n );\n};\n"],"mappings":"kaA6BA,MAAaA,GAAoE,CAAE,OAAM,QAAO,WAAU,kBAAmB,CAC3H,IAAM,EAAc,MAAkB,CACpC,IAAe,GAAM,EACpB,CAAC,EAAa,CAAC,CAElB,OACE,EAAC,EAAA,CAAkB,OAAoB,wBACrC,EAAC,EAAA,CAAmB,UAAU,kCAC5B,EAAC,EAAA,CAAA,SACC,EAAC,MAAA,CAAI,UAAU,mDACb,EAAC,EAAA,CAAkB,KAAM,GAAA,CAAM,CAC/B,EAAC,EAAA,CAAiB,UAAU,+BAAuB,GAAS,qBAAuC,CAAA,EAC/F,CAAA,CACY,CACnB,EACD,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAkB,UAAU,iBAAiB,QAAS,WAAa,SAEhD,CAAA,CACF,GACD,EACT"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//#region packages/components/dialogs/loading-dialog.d.ts
|
|
2
|
-
type LoadingDialogProps = {
|
|
3
|
-
/** Controls whether the dialog is open. */
|
|
4
|
-
open?: boolean;
|
|
5
|
-
/** Callback invoked when the dialog open state changes. */
|
|
6
|
-
onOpenChange?: (open: boolean) => void;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Displays a transparent, pointer-events-disabled modal overlay with a centered loading spinner.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { LoadingDialog } from '@customafk/lunas-ui/dialogs/loading-dialog';
|
|
14
|
-
*
|
|
15
|
-
* <LoadingDialog open={isLoading} onOpenChange={setIsLoading} />
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
declare const LoadingDialog: React.FC<LoadingDialogProps>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { LoadingDialog, LoadingDialogProps };
|
|
21
|
-
//# sourceMappingURL=loading-dialog.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import"../heading-Bw3eo6IT.js";import"../paragraph-ESjXXqHU.js";import"../close-DrkwaVXK.js";import{Dialog as e,DialogContent as t,DialogTitle as n}from"../ui/dialog.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=({open:a,onOpenChange:o})=>r(e,{open:a,onOpenChange:o,children:i(t,{showCloseButton:!1,className:`pointer-events-none border-none bg-transparent shadow-none outline-none [&>div]:bg-transparent`,children:[r(n,{}),r(`div`,{className:`flex items-center justify-center`,children:r(`div`,{className:`loader opacity-60`})})]})});export{a as LoadingDialog};
|
|
2
|
-
//# sourceMappingURL=loading-dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loading-dialog.js","names":["LoadingDialog: React.FC<LoadingDialogProps>"],"sources":["../../packages/components/dialogs/loading-dialog.tsx"],"sourcesContent":["'use client';\n\nimport { Dialog, DialogContent, DialogTitle } from '../ui/dialog';\n\nexport type LoadingDialogProps = {\n /** Controls whether the dialog is open. */\n open?: boolean;\n /** Callback invoked when the dialog open state changes. */\n onOpenChange?: (open: boolean) => void;\n};\n\n/**\n * Displays a transparent, pointer-events-disabled modal overlay with a centered loading spinner.\n *\n * @example\n * ```tsx\n * import { LoadingDialog } from '@customafk/lunas-ui/dialogs/loading-dialog';\n *\n * <LoadingDialog open={isLoading} onOpenChange={setIsLoading} />\n * ```\n */\nexport const LoadingDialog: React.FC<LoadingDialogProps> = ({ open, onOpenChange }) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent showCloseButton={false} className=\"pointer-events-none border-none bg-transparent shadow-none outline-none [&>div]:bg-transparent\">\n <DialogTitle />\n <div className=\"flex items-center justify-center\">\n <div className=\"loader opacity-60\" />\n </div>\n </DialogContent>\n </Dialog>\n );\n};\n"],"mappings":"yOAqBA,MAAaA,GAA+C,CAAE,OAAM,kBAEhE,EAAC,EAAA,CAAa,OAAoB,wBAChC,EAAC,EAAA,CAAc,gBAAiB,GAAO,UAAU,2GAC/C,EAAC,EAAA,EAAA,CAAc,CACf,EAAC,MAAA,CAAI,UAAU,4CACb,EAAC,MAAA,CAAI,UAAU,oBAAA,CAAsB,EACjC,CAAA,EACQ,EACT"}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as react640 from "react";
|
|
3
|
-
import { BadgeProps } from "@/components/ui/badge";
|
|
4
|
-
import * as class_variance_authority_types21 from "class-variance-authority/types";
|
|
5
|
-
|
|
6
|
-
//#region packages/components/features/descriptions/components/badge.d.ts
|
|
7
|
-
type DescriptionBadgeProps = {
|
|
8
|
-
label: string | number | null | undefined;
|
|
9
|
-
color?: BadgeProps['color'];
|
|
10
|
-
variant?: BadgeProps['variant'];
|
|
11
|
-
size?: BadgeProps['size'];
|
|
12
|
-
};
|
|
13
|
-
declare const DescriptionBadge: React.FC<DescriptionBadgeProps>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region packages/components/features/descriptions/components/boolean.d.ts
|
|
16
|
-
type DescriptionBooleanProps = {
|
|
17
|
-
value: boolean | null | undefined;
|
|
18
|
-
trueLabel?: string;
|
|
19
|
-
falseLabel?: string;
|
|
20
|
-
};
|
|
21
|
-
declare const DescriptionBoolean: React.FC<DescriptionBooleanProps>;
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region packages/components/features/descriptions/components/copy.d.ts
|
|
24
|
-
type DescriptionCopyProps = {
|
|
25
|
-
value: string | null | undefined;
|
|
26
|
-
truncate?: boolean;
|
|
27
|
-
};
|
|
28
|
-
declare const DescriptionCopy: React.FC<DescriptionCopyProps>;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region packages/components/features/descriptions/components/date.d.ts
|
|
31
|
-
type DescriptionDateProps = {
|
|
32
|
-
date: Date | string | number | null | undefined;
|
|
33
|
-
};
|
|
34
|
-
declare const DescriptionDate: React.FC<DescriptionDateProps>;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region packages/components/features/descriptions/components/empty.d.ts
|
|
37
|
-
declare const DescriptionEmpty: React.FC;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region packages/components/features/descriptions/components/images.d.ts
|
|
40
|
-
type ImageItem = {
|
|
41
|
-
id: string;
|
|
42
|
-
src: string;
|
|
43
|
-
alt: string;
|
|
44
|
-
};
|
|
45
|
-
declare const DescriptionImages: React.FC<{
|
|
46
|
-
images?: Array<ImageItem> | null | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region packages/components/features/descriptions/components/link.d.ts
|
|
50
|
-
type DescriptionLinkProps = {
|
|
51
|
-
href: string | null | undefined;
|
|
52
|
-
label?: string;
|
|
53
|
-
external?: boolean;
|
|
54
|
-
className?: string;
|
|
55
|
-
};
|
|
56
|
-
declare const DescriptionLink: React.FC<DescriptionLinkProps>;
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region packages/components/features/descriptions/components/longtext.d.ts
|
|
59
|
-
declare const DescriptionLongText: React.FC<{
|
|
60
|
-
content: string | null | undefined | number;
|
|
61
|
-
}>;
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region packages/components/features/descriptions/components/name.d.ts
|
|
64
|
-
declare const DescriptionName: React.FC<{
|
|
65
|
-
name?: string | null | undefined;
|
|
66
|
-
}>;
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region packages/components/features/descriptions/components/number-phone.d.ts
|
|
69
|
-
declare const DescriptionNumberPhone: React.FC<{
|
|
70
|
-
value: string;
|
|
71
|
-
}>;
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region packages/components/features/descriptions/components/statistic.d.ts
|
|
74
|
-
declare const descriptionStatisticVariants: (props?: ({
|
|
75
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
76
|
-
trend?: "neutral" | "up" | "down" | null | undefined;
|
|
77
|
-
} & class_variance_authority_types21.ClassProp) | undefined) => string;
|
|
78
|
-
type DescriptionStatisticProps = VariantProps<typeof descriptionStatisticVariants> & {
|
|
79
|
-
decimalSeparator?: string;
|
|
80
|
-
groupSeparator?: string;
|
|
81
|
-
prefix?: React.ReactNode;
|
|
82
|
-
suffix?: React.ReactNode;
|
|
83
|
-
precision?: number;
|
|
84
|
-
roundingMode?: 'round' | 'floor' | 'ceil';
|
|
85
|
-
showTrailingZeros?: boolean;
|
|
86
|
-
value: number | string | null | undefined;
|
|
87
|
-
className?: string;
|
|
88
|
-
};
|
|
89
|
-
declare const DescriptionStatistic: react640.MemoExoticComponent<({
|
|
90
|
-
decimalSeparator,
|
|
91
|
-
groupSeparator,
|
|
92
|
-
prefix: Prefix,
|
|
93
|
-
suffix: Suffix,
|
|
94
|
-
precision,
|
|
95
|
-
roundingMode,
|
|
96
|
-
showTrailingZeros,
|
|
97
|
-
size,
|
|
98
|
-
trend,
|
|
99
|
-
value,
|
|
100
|
-
className
|
|
101
|
-
}: DescriptionStatisticProps) => react640.JSX.Element>;
|
|
102
|
-
//#endregion
|
|
103
|
-
//#region packages/components/features/descriptions/components/status.d.ts
|
|
104
|
-
type StatusColor = NonNullable<BadgeProps['color']>;
|
|
105
|
-
type DescriptionStatusProps = {
|
|
106
|
-
label: string | null | undefined;
|
|
107
|
-
color?: StatusColor;
|
|
108
|
-
dot?: boolean;
|
|
109
|
-
};
|
|
110
|
-
declare const DescriptionStatus: React.FC<DescriptionStatusProps>;
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region packages/components/features/descriptions/components/tag-list.d.ts
|
|
113
|
-
type DescriptionTagListProps = {
|
|
114
|
-
tags: Array<string | number> | null | undefined;
|
|
115
|
-
max?: number;
|
|
116
|
-
color?: BadgeProps['color'];
|
|
117
|
-
variant?: BadgeProps['variant'];
|
|
118
|
-
};
|
|
119
|
-
declare const DescriptionTagList: React.FC<DescriptionTagListProps>;
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region packages/components/features/descriptions/components/user.d.ts
|
|
122
|
-
type DescriptionUserProps = {
|
|
123
|
-
uuid?: string | null;
|
|
124
|
-
username?: string | null;
|
|
125
|
-
email?: string | null;
|
|
126
|
-
};
|
|
127
|
-
declare const DescriptionUser: React.FC<DescriptionUserProps>;
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region packages/components/features/descriptions/index.d.ts
|
|
130
|
-
/**
|
|
131
|
-
* A single labeled row within a {@link Description} container, supporting both horizontal (side-by-side label/value) and vertical (stacked) layouts.
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* import { Description, DescriptionItem } from '@customafk/lunas-ui/features/descriptions';
|
|
135
|
-
*
|
|
136
|
-
* <Description>
|
|
137
|
-
* <DescriptionItem label="Full name">John Doe</DescriptionItem>
|
|
138
|
-
* <DescriptionItem label="Email" orientation="vertical">john@example.com</DescriptionItem>
|
|
139
|
-
* </Description>
|
|
140
|
-
*/
|
|
141
|
-
declare const DescriptionItem: React.FC<React.PropsWithChildren<{
|
|
142
|
-
/** Text displayed in the label column. */
|
|
143
|
-
label: string;
|
|
144
|
-
/**
|
|
145
|
-
* Number of grid columns (out of 12) allocated to the label in horizontal orientation.
|
|
146
|
-
* @default 3
|
|
147
|
-
*/
|
|
148
|
-
labelColSpan?: number;
|
|
149
|
-
/**
|
|
150
|
-
* Layout direction of the label/value pair.
|
|
151
|
-
* - `'horizontal'` — label and value are side by side.
|
|
152
|
-
* - `'vertical'` — label sits above the value.
|
|
153
|
-
* @default 'horizontal'
|
|
154
|
-
*/
|
|
155
|
-
orientation?: 'horizontal' | 'vertical';
|
|
156
|
-
/** Optional node rendered in the top-right corner of the label area (e.g. an edit action). */
|
|
157
|
-
action?: React.ReactNode;
|
|
158
|
-
}>>;
|
|
159
|
-
/**
|
|
160
|
-
* A header bar for a {@link Description} block, showing a title, an optional subtitle, and an optional trailing action area.
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* import { Description, DescriptionHeader } from '@customafk/lunas-ui/features/descriptions';
|
|
164
|
-
*
|
|
165
|
-
* <Description>
|
|
166
|
-
* <DescriptionHeader title="User details" description="Read-only overview" extra={<EditBtn />} />
|
|
167
|
-
* </Description>
|
|
168
|
-
*/
|
|
169
|
-
declare const DescriptionHeader: React.FC<{
|
|
170
|
-
/** Primary heading text. */
|
|
171
|
-
title: string;
|
|
172
|
-
/** Optional secondary text rendered below the title in a smaller, muted style. */
|
|
173
|
-
description?: string;
|
|
174
|
-
/** Optional node rendered on the right side of the header (e.g. action buttons). */
|
|
175
|
-
extra?: React.ReactNode;
|
|
176
|
-
/** Additional CSS class names applied to the header wrapper. */
|
|
177
|
-
className?: string;
|
|
178
|
-
}>;
|
|
179
|
-
/**
|
|
180
|
-
* A visual section divider inside a {@link Description} container that optionally displays a section title with a decorative horizontal rule.
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* import { Description, DescriptionSection, DescriptionItem } from '@customafk/lunas-ui/features/descriptions';
|
|
184
|
-
*
|
|
185
|
-
* <Description>
|
|
186
|
-
* <DescriptionSection title="Contact" />
|
|
187
|
-
* <DescriptionItem label="Email">john@example.com</DescriptionItem>
|
|
188
|
-
* </Description>
|
|
189
|
-
*/
|
|
190
|
-
declare const DescriptionSection: React.FC<{
|
|
191
|
-
/** Optional section label rendered as uppercase small-caps text beside the divider line. */
|
|
192
|
-
title?: string;
|
|
193
|
-
/** Additional CSS class names applied to the section wrapper. */
|
|
194
|
-
className?: string;
|
|
195
|
-
}>;
|
|
196
|
-
/**
|
|
197
|
-
* Root container for a description block — a bordered, rounded card that groups {@link DescriptionHeader}, {@link DescriptionSection}, and {@link DescriptionItem} elements.
|
|
198
|
-
*
|
|
199
|
-
* Set `nested` when embedding one `Description` inside another (removes the outer card shadow/ring and constrains sizing).
|
|
200
|
-
* Set `loading` to replace content with animated skeleton rows while data is being fetched.
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* import { Description, DescriptionHeader, DescriptionItem } from '@customafk/lunas-ui/features/descriptions';
|
|
204
|
-
*
|
|
205
|
-
* <Description>
|
|
206
|
-
* <DescriptionHeader title="Order #1234" />
|
|
207
|
-
* <DescriptionItem label="Status">Shipped</DescriptionItem>
|
|
208
|
-
* <DescriptionItem label="Total">$99.00</DescriptionItem>
|
|
209
|
-
* </Description>
|
|
210
|
-
*/
|
|
211
|
-
declare const Description: React.FC<React.PropsWithChildren<{
|
|
212
|
-
/** Additional CSS class names applied to the root wrapper element. */
|
|
213
|
-
className?: string;
|
|
214
|
-
/** Strips the outer card shadow/ring and adapts sizing for embedding inside another Description. */
|
|
215
|
-
nested?: boolean;
|
|
216
|
-
/** Replaces children with animated skeleton rows while data is loading. */
|
|
217
|
-
loading?: boolean;
|
|
218
|
-
/** Number of skeleton rows shown when `loading` is true. @default 4 */
|
|
219
|
-
loadingRows?: number;
|
|
220
|
-
}>>;
|
|
221
|
-
/**
|
|
222
|
-
* A scrollable container that groups multiple {@link Description} blocks and makes each
|
|
223
|
-
* {@link DescriptionHeader} sticky. As you scroll, the next section header stacks above
|
|
224
|
-
* (pushes out) the previous one — standard CSS sticky behaviour within a single scroll context.
|
|
225
|
-
*
|
|
226
|
-
* @example
|
|
227
|
-
* import { DescriptionGroup, Description, DescriptionHeader, DescriptionItem } from '@customafk/lunas-ui/features/descriptions';
|
|
228
|
-
*
|
|
229
|
-
* <DescriptionGroup>
|
|
230
|
-
* <Description>
|
|
231
|
-
* <DescriptionHeader title="Personal info" />
|
|
232
|
-
* <DescriptionItem label="Name">John Doe</DescriptionItem>
|
|
233
|
-
* </Description>
|
|
234
|
-
* <Description>
|
|
235
|
-
* <DescriptionHeader title="Contact" />
|
|
236
|
-
* <DescriptionItem label="Email">john@example.com</DescriptionItem>
|
|
237
|
-
* </Description>
|
|
238
|
-
* </DescriptionGroup>
|
|
239
|
-
*/
|
|
240
|
-
declare const DescriptionGroup: React.FC<React.PropsWithChildren<{
|
|
241
|
-
/** Additional CSS class names applied to the group wrapper. */
|
|
242
|
-
className?: string;
|
|
243
|
-
}>>;
|
|
244
|
-
//#endregion
|
|
245
|
-
export { Description, DescriptionBadge, DescriptionBoolean, DescriptionCopy, DescriptionDate, DescriptionEmpty, DescriptionGroup, DescriptionHeader, DescriptionImages, DescriptionItem, DescriptionLink, DescriptionLongText, DescriptionName, DescriptionNumberPhone, DescriptionSection, DescriptionStatistic, DescriptionStatisticProps, DescriptionStatus, DescriptionTagList, DescriptionUser };
|
|
246
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{CheckIcon as e,CopyIcon as t,ExternalLinkIcon as n,LinkIcon as r}from"lucide-react";import{cn as i}from"@customafk/react-toolkit/utils";import{cva as a}from"class-variance-authority";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{createContext as c,memo as l,useCallback as u,useContext as d,useMemo as f,useState as p}from"react";import{Badge as m}from"@/components/ui/badge";import{Tooltip as h,TooltipContent as g,TooltipProvider as _,TooltipTrigger as v}from"@/components/ui/tooltip";import{DateDisplay as y}from"@/components/data-display/date";import{Image as b}from"@/components/ui/image";import{Paragraph as x}from"@/components/typography/paragraph";import{UserDataDisplay as S}from"@/components/data-display/user";const C=()=>o(`span`,{"data-slot":`description-empty`,"aria-label":`Empty value`,className:`select-none font-medium text-sm text-text-positive-muted`,children:`—`}),w=({label:e,color:t=`secondary`,variant:n=`soft`,size:r=`sm`})=>e?o(m,{"data-slot":`description-badge`,color:t,variant:n,size:r,children:e}):o(C,{}),T=({value:e,trueLabel:t=`Yes`,falseLabel:n=`No`})=>e==null?o(C,{}):o(m,{"data-slot":`description-boolean`,variant:`soft`,color:e?`success`:`danger`,size:`sm`,children:e?t:n}),E=({value:n,truncate:r=!0})=>{let[a,c]=p(!1),l=u(async()=>{n&&(await navigator.clipboard.writeText(n),c(!0),setTimeout(()=>c(!1),1500))},[n]);return n?s(`button`,{type:`button`,"data-slot":`description-copy`,onClick:l,className:i(`group inline-flex max-w-full cursor-pointer items-center gap-1.5 rounded-sm border border-border-weak bg-secondary-muted px-2 py-0.5 font-mono text-xs text-text-positive-weak transition-[border-color,color,box-shadow] hover:border-border hover:text-text-positive hover:shadow-xs`,r&&`min-w-0`),children:[o(`span`,{className:i(`tabular-nums`,r&&`truncate`),children:n}),a?o(e,{size:12,className:`shrink-0 text-success`}):o(t,{size:12,className:`shrink-0 opacity-50 group-hover:opacity-100`})]}):o(C,{})},D=({date:e})=>e==null?o(C,{}):o(_,{children:s(h,{children:[o(v,{asChild:!0,children:o(y,{"data-slot":`description-date`,date:e,format:`medium`,className:`cursor-help`})}),o(g,{children:o(y,{date:e,format:`full`,showTime:!0,className:`text-xs font-medium`})})]})}),O=({images:e})=>{if(!e?.length)return o(C,{});let t=e.length===1;return o(`div`,{"data-slot":`description-images`,className:`flex flex-wrap gap-4`,children:e.map(e=>o(`div`,{className:t?`group relative size-42 overflow-hidden rounded-sm border border-border shadow-xs transition-shadow hover:shadow-card`:`group relative size-16 overflow-hidden rounded-lg border border-border shadow-xs transition-shadow hover:shadow-card`,children:o(b,{src:e.src,alt:e.alt,width:`100%`,height:`100%`,className:`transition-transform duration-200 group-hover:scale-105`})},e.id))})},k=({href:e,label:t,external:a=!0,className:c})=>e?s(`a`,{"data-slot":`description-link`,href:e,target:a?`_blank`:void 0,rel:a?`noopener noreferrer`:void 0,className:i(`inline-flex max-w-full items-center gap-1 text-sm text-primary underline decoration-dashed underline-offset-2 transition-colors hover:text-primary-strong hover:decoration-solid`,c),children:[!a&&o(r,{size:12,className:`shrink-0 opacity-70`}),o(`span`,{className:`truncate`,children:t??e}),a&&o(n,{size:12,className:`shrink-0 opacity-70`})]}):o(C,{}),A=({content:e})=>e==null?o(C,{}):s(h,{children:[o(v,{asChild:!0,children:o(x,{"data-slot":`description-longtext`,variant:`sm`,className:`line-clamp-2 cursor-pointer whitespace-pre-line break-all text-start text-sm hover:text-text-positive transition-colors`,children:e})}),o(g,{align:`start`,className:`h-fit min-w-48 max-w-80 pt-4`,children:s(`div`,{className:`flex flex-col gap-y-2`,children:[o(`p`,{className:`whitespace-pre-line text-wrap break-keep`,children:e}),s(`p`,{className:`w-full text-end text-text-positive-subtle`,children:[e.toString().length,` chars`]})]})})]}),j=({name:e})=>e?s(h,{children:[o(v,{asChild:!0,children:o(x,{"data-slot":`description-name`,variant:`sm`,className:`line-clamp-2 w-full cursor-pointer truncate hover:text-text-positive transition-colors`,children:e})}),o(g,{align:`start`,className:`h-fit min-w-48 max-w-80 pt-4`,children:s(`div`,{className:`flex flex-col gap-y-2`,children:[o(`p`,{className:`whitespace-pre-line text-wrap break-keep`,children:e}),s(`p`,{className:`w-full text-end text-text-positive-subtle`,children:[e.length,` chars`]})]})})]}):o(C,{}),M=({value:e})=>s(h,{children:[o(v,{"data-slot":`description-phone`,children:o(x,{variant:`sm`,className:`tabular-nums transition-colors`,children:e.replace(/(\d{3})(\d{3})(\d{4})/,`($1) $2-$3`)})}),o(g,{align:`start`,children:o(`p`,{className:`tabular-nums`,children:e.slice(1).replace(/(\d{2})(\d{3})(\d{4})/,`(00) (+84) ($1) $2-$3`)})})]}),N=(e,t,n)=>{let r=10**t;switch(n){case`floor`:return Math.floor(e*r)/r;case`ceil`:return Math.ceil(e*r)/r;default:return Math.round(e*r)/r}},P=a(`inline-flex items-center gap-1 font-number tabular-nums transition-colors`,{variants:{size:{xs:`text-xs`,sm:`text-sm`,md:`text-base`,lg:`text-lg`,xl:`text-xl`},trend:{neutral:`text-text-positive`,up:`text-success`,down:`text-danger`}},defaultVariants:{size:`sm`,trend:`neutral`}}),F=l(({decimalSeparator:e=`.`,groupSeparator:t=`,`,prefix:n,suffix:r,precision:a,roundingMode:c=`round`,showTrailingZeros:l=!1,size:d=`sm`,trend:p=`neutral`,value:m=0,className:h})=>{let g=f(()=>{let e={};return typeof a==`number`&&a>=0&&(l&&(e.minimumFractionDigits=a),e.maximumFractionDigits=a),e},[a,l]),_=u(e=>{let t=e;return typeof a==`number`&&a>=0&&(t=N(e,a,c)),t.toLocaleString(`en-US`,g)},[c,g,a]),v=f(()=>{if(typeof m==`number`)return Number.isNaN(m)||!Number.isFinite(m)?`N/A`:_(m);if(typeof m==`string`){let e=m.trim();if(!e)return`N/A`;let t=Number(e);return Number.isNaN(t)||!Number.isFinite(t)?`N/A`:_(t)}return`N/A`},[m,_]),y=f(()=>e===`.`&&t===`,`?v:v.replace(/,/g,t).replace(/\./g,e),[v,e,t]);return y===`0`||y===`N/A`||!y?o(C,{}):s(`div`,{"data-slot":`description-statistic`,className:i(P({size:d,trend:p}),h),children:[n&&o(`span`,{"data-slot":`description-statistic-prefix`,children:n}),o(`p`,{"data-slot":`description-statistic-value`,children:y}),r&&o(`span`,{"data-slot":`description-statistic-suffix`,children:r})]})});F.displayName=`DescriptionStatistic`;const I={primary:`bg-primary`,secondary:`bg-secondary`,muted:`bg-muted`,accent:`bg-accent`,info:`bg-info`,success:`bg-success`,warning:`bg-warning`,danger:`bg-danger`},L=({label:e,color:t=`info`,dot:n=!0})=>e?s(m,{"data-slot":`description-status`,variant:`soft`,color:t,size:`sm`,className:`gap-1.5`,children:[n&&o(`span`,{className:i(`inline-block size-1.5 shrink-0 rounded-full`,I[t])}),e]}):o(C,{}),R=({tags:e,max:t=5,color:n=`secondary`,variant:r=`soft`})=>{if(!e?.length)return o(C,{});let i=e.slice(0,t),a=e.length-i.length;return s(`div`,{"data-slot":`description-tag-list`,className:`flex flex-wrap gap-1`,children:[i.map((e,t)=>o(m,{variant:r,color:n,size:`sm`,children:e},t)),a>0&&s(m,{variant:`outline`,color:`muted`,size:`sm`,children:[`+`,a]})]})},z=({uuid:e,username:t,email:n})=>!e||!t||!n?o(C,{}):o(S,{uuid:e,username:t,email:n}),B=c(!1),V=({label:e,labelColSpan:t=3,orientation:n=`horizontal`,action:r,children:i})=>n===`vertical`?s(`div`,{"data-slot":`description-item`,className:`flex flex-col border-b border-b-border last:border-b-0`,children:[s(`div`,{"data-slot":`description-item-label`,className:`flex items-center justify-between border-b border-b-border bg-secondary-muted py-2 pr-2 pl-4 text-sm font-medium text-text-positive-weak`,children:[o(`span`,{children:e}),r&&o(`div`,{className:`shrink-0`,children:r})]}),o(`div`,{"data-slot":`description-item-value`,className:`flex flex-wrap items-center gap-2 py-3 pr-2 pl-4 text-sm text-text-positive`,children:i})]}):s(`div`,{"data-slot":`description-item`,style:{display:`grid`,gridTemplateColumns:`repeat(12, minmax(0, 1fr))`},className:`grid border-b border-b-border last:border-b-0`,children:[s(`div`,{"data-slot":`description-item-label`,style:{gridColumn:`span ${t} / span ${t}`},className:`flex min-w-full items-center justify-between overflow-x-hidden text-wrap break-all border-r border-r-border bg-secondary-muted py-3 pr-2 pl-4 text-sm font-medium text-text-positive-weak tabular-nums`,children:[o(`span`,{children:e}),r&&o(`div`,{className:`shrink-0 pr-1`,children:r})]}),o(`div`,{"data-slot":`description-item-value`,style:{gridColumn:`span ${12-t} / span ${12-t}`},className:`flex flex-wrap items-center gap-2 py-3 pr-2 pl-4 text-sm text-text-positive`,children:i})]}),H=({title:e,description:t,extra:n,className:r})=>s(`div`,{"data-slot":`description-header`,className:i(`sticky top-0 z-10 flex items-center justify-between gap-4 border-b border-b-border bg-card px-4 py-3`,r),children:[s(`div`,{className:`flex flex-col gap-0.5`,children:[o(`p`,{className:`text-sm font-semibold text-text-positive`,children:e}),t&&o(`p`,{className:`text-xs text-text-positive-muted`,children:t})]}),n&&o(`div`,{className:`shrink-0`,children:n})]}),U=({title:e,className:t})=>s(`div`,{"data-slot":`description-section`,className:i(`flex items-center gap-3 border-b border-b-border px-4 py-2.5`,t),children:[e&&o(`p`,{className:`shrink-0 text-xs font-semibold uppercase tracking-widest text-text-positive-muted`,children:e}),o(`div`,{className:`h-px flex-1 bg-border`})]}),W=({rows:e})=>s(`div`,{"data-slot":`description-loading`,className:`animate-pulse`,children:[s(`div`,{className:`flex items-center justify-between border-b border-b-border px-4 py-3`,children:[s(`div`,{className:`flex flex-col gap-1.5`,children:[o(`div`,{className:`h-3.5 w-36 rounded bg-border`}),o(`div`,{className:`h-2.5 w-24 rounded bg-border-weak`})]}),o(`div`,{className:`h-5 w-16 rounded bg-border-weak`})]}),Array.from({length:e}).map((e,t)=>s(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(12, minmax(0, 1fr))`},className:`grid border-b border-b-border last:border-b-0`,children:[o(`div`,{style:{gridColumn:`span 3 / span 3`},className:`flex items-center border-r border-r-border bg-secondary-muted py-3 pl-4 pr-2`,children:o(`div`,{className:`h-3 w-20 rounded bg-border`})}),o(`div`,{style:{gridColumn:`span 9 / span 9`},className:`flex items-center py-3 pl-4 pr-2`,children:o(`div`,{className:`h-3 w-28 rounded bg-border-weak`})})]},t))]}),G=({children:e,className:t,nested:n=!1,loading:r=!1,loadingRows:a=4})=>{let s=d(B);return o(`div`,{"data-slot":`description`,className:i(`relative flex flex-col bg-card`,s?`border-b border-b-border last:border-b-0`:n?`w-full overflow-hidden rounded-md border border-border`:`size-full overflow-y-auto rounded-lg border border-border shadow-card ring-1 ring-border-weak`,t),children:r?o(W,{rows:a}):e})},K=({children:e,className:t})=>o(B.Provider,{value:!0,children:o(`div`,{"data-slot":`description-group`,className:i(`relative size-full overflow-y-auto rounded-lg border border-border bg-card shadow-card ring-1 ring-border-weak`,t),children:e})});export{G as Description,w as DescriptionBadge,T as DescriptionBoolean,E as DescriptionCopy,D as DescriptionDate,C as DescriptionEmpty,K as DescriptionGroup,H as DescriptionHeader,O as DescriptionImages,V as DescriptionItem,k as DescriptionLink,A as DescriptionLongText,j as DescriptionName,M as DescriptionNumberPhone,U as DescriptionSection,F as DescriptionStatistic,L as DescriptionStatus,R as DescriptionTagList,z as DescriptionUser};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|