@customafk/lunas-ui 0.2.34 → 0.2.35
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-BbInRLt4.mjs → alert-BbvPwf2x.mjs} +1 -1
- package/dist/{alert-BbInRLt4.mjs.map → alert-BbvPwf2x.mjs.map} +1 -1
- package/dist/{alert-DmaYqfy7.d.mts → alert-DGoFdiDI.d.cts} +6 -6
- package/dist/{alert-BFLT5Jqg.d.cts → alert-DZlPX4MK.d.mts} +7 -7
- package/dist/{alert-4rfsFtN6.cjs → alert-DubR6Szk.cjs} +1 -1
- package/dist/{alert-4rfsFtN6.cjs.map → alert-DubR6Szk.cjs.map} +1 -1
- package/dist/{avatar-aVxo69zP.cjs → avatar-CqRl9dge.cjs} +1 -1
- package/dist/{avatar-aVxo69zP.cjs.map → avatar-CqRl9dge.cjs.map} +1 -1
- package/dist/{avatar-1SuFoI5h.mjs → avatar-m1LjDIil.mjs} +1 -1
- package/dist/{avatar-1SuFoI5h.mjs.map → avatar-m1LjDIil.mjs.map} +1 -1
- package/dist/{badge-CSMgaMwT.d.cts → badge-D1Un985K.d.cts} +6 -6
- package/dist/{badge-Dxewfuj8.d.mts → badge-LtLg87DN.d.mts} +6 -6
- package/dist/{button-DeBpvNFE.d.mts → button-8OKxyueU.d.cts} +5 -5
- package/dist/{button-soF3CKai.d.cts → button-CdjZ5QJ8.d.mts} +6 -6
- package/dist/{calendar-CqeVe3HO.mjs → calendar-BDhIfwPP.mjs} +1 -1
- package/dist/{calendar-CqeVe3HO.mjs.map → calendar-BDhIfwPP.mjs.map} +1 -1
- package/dist/{calendar-Bt0rlJ89.cjs → calendar-CMd11yg9.cjs} +1 -1
- package/dist/{calendar-Bt0rlJ89.cjs.map → calendar-CMd11yg9.cjs.map} +1 -1
- package/dist/cards/simple-card.d.cts +2 -2
- package/dist/{checkbox-BQ_TclX9.cjs → checkbox-BwDvS4De.cjs} +1 -1
- package/dist/{checkbox-BQ_TclX9.cjs.map → checkbox-BwDvS4De.cjs.map} +1 -1
- package/dist/{checkbox-CrZ80dV_.mjs → checkbox-CgHaRkuU.mjs} +1 -1
- package/dist/{checkbox-CrZ80dV_.mjs.map → checkbox-CgHaRkuU.mjs.map} +1 -1
- package/dist/{close-DTBepcqW.mjs → close-B7OOMSZl.mjs} +1 -1
- package/dist/{close-DTBepcqW.mjs.map → close-B7OOMSZl.mjs.map} +1 -1
- package/dist/{close-DUBEKxhw.cjs → close-DrCUWZt0.cjs} +1 -1
- package/dist/{close-DUBEKxhw.cjs.map → close-DrCUWZt0.cjs.map} +1 -1
- package/dist/{cms-layout-DDs0pHWh.cjs → cms-layout-BrubV8D8.cjs} +2 -2
- package/dist/{cms-layout-DDs0pHWh.cjs.map → cms-layout-BrubV8D8.cjs.map} +1 -1
- package/dist/{cms-layout-BvaYr6rb.mjs → cms-layout-C2-yysO2.mjs} +2 -2
- package/dist/{cms-layout-BvaYr6rb.mjs.map → cms-layout-C2-yysO2.mjs.map} +1 -1
- package/dist/{command-B7DO73K0.cjs → command-DiXzSGc8.cjs} +2 -2
- package/dist/{command-B7DO73K0.cjs.map → command-DiXzSGc8.cjs.map} +1 -1
- package/dist/{command-YngzaaGP.mjs → command-FnbrPZ7_.mjs} +2 -2
- package/dist/{command-YngzaaGP.mjs.map → command-FnbrPZ7_.mjs.map} +1 -1
- package/dist/data-display/country.d.mts +1 -1
- package/dist/data-display/role-badge.d.mts +1 -1
- package/dist/data-display/statistic.cjs +1 -2
- package/dist/data-display/statistic.d.cts +1 -1
- package/dist/data-display/statistic.d.mts +6 -6
- package/dist/data-display/statistic.mjs +1 -2
- package/dist/data-display/user.cjs +1 -1
- package/dist/data-display/user.mjs +1 -1
- package/dist/{dialog-DhO0dkO3.cjs → dialog-D1sWnn6n.cjs} +2 -2
- package/dist/{dialog-DhO0dkO3.cjs.map → dialog-D1sWnn6n.cjs.map} +1 -1
- package/dist/{dialog-BQTnKhUH.d.cts → dialog-DolY0CYG.d.mts} +12 -12
- package/dist/{dialog-Bly2YImt.mjs → dialog-EGFZeITu.mjs} +2 -2
- package/dist/{dialog-Bly2YImt.mjs.map → dialog-EGFZeITu.mjs.map} +1 -1
- package/dist/{dialog-DDiSHKlc.d.mts → dialog-aguemTG1.d.cts} +12 -12
- package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +2 -2
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +27 -27
- package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.mjs +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.mjs +1 -1
- package/dist/{drawer-C3o6IEeq.cjs → drawer-B6C8-Ndu.cjs} +1 -1
- package/dist/{drawer-C3o6IEeq.cjs.map → drawer-B6C8-Ndu.cjs.map} +1 -1
- package/dist/{drawer-B3GpKBZs.mjs → drawer-CMD7JWH8.mjs} +1 -1
- package/dist/{drawer-B3GpKBZs.mjs.map → drawer-CMD7JWH8.mjs.map} +1 -1
- package/dist/{dropdown-menu-DMwvWoxe.cjs → dropdown-menu-Bz7oMQ36.cjs} +1 -1
- package/dist/{dropdown-menu-DMwvWoxe.cjs.map → dropdown-menu-Bz7oMQ36.cjs.map} +1 -1
- package/dist/{dropdown-menu-BjckWIZH.mjs → dropdown-menu-C6tRSumY.mjs} +1 -1
- package/dist/{dropdown-menu-BjckWIZH.mjs.map → dropdown-menu-C6tRSumY.mjs.map} +1 -1
- package/dist/features/descriptions/index.cjs +1 -1
- package/dist/features/descriptions/index.d.cts +7 -7
- package/dist/features/descriptions/index.d.mts +5 -5
- package/dist/features/descriptions/index.mjs +1 -1
- 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 +2 -2
- package/dist/features/search-modal/index.mjs +1 -1
- package/dist/features/tables/index.cjs +1 -1
- package/dist/features/tables/index.d.cts +2 -2
- package/dist/features/tables/index.d.mts +3 -3
- package/dist/features/tables/index.mjs +1 -1
- package/dist/features/tanstack-form/index.cjs +1 -1
- package/dist/features/tanstack-form/index.d.cts +1 -1
- package/dist/features/tanstack-form/index.d.mts +1 -1
- package/dist/features/tanstack-form/index.mjs +1 -1
- package/dist/features/text-editor/index.cjs +1 -1
- package/dist/features/text-editor/index.d.cts +1 -1
- package/dist/features/text-editor/index.d.mts +1 -1
- package/dist/features/text-editor/index.mjs +1 -1
- package/dist/{field-0SZIwI1Q.mjs → field-DhgAIueI.mjs} +2 -2
- package/dist/{field-0SZIwI1Q.mjs.map → field-DhgAIueI.mjs.map} +1 -1
- package/dist/{field-ThrHQOAI.cjs → field-pfL7RWcN.cjs} +2 -2
- package/dist/{field-ThrHQOAI.cjs.map → field-pfL7RWcN.cjs.map} +1 -1
- package/dist/{index-Btd0a1HO.d.cts → index-BhnqroF7.d.cts} +90 -41
- package/dist/{index-BUi04v_-.d.mts → index-BqGaIQNn.d.mts} +4 -4
- package/dist/{index-DWJlXfCi.d.mts → index-C45OSg1W.d.mts} +91 -42
- package/dist/{index-BFFBdGdv.d.mts → index-CgEghb4N.d.cts} +63 -63
- package/dist/{index-Cvjgsouk.d.cts → index-DfvBLw2O.d.mts} +368 -368
- package/dist/{index-B4tGZDYR.d.cts → index-DwS7a4RL.d.cts} +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +1 -1
- package/dist/{input-ESg91VId.mjs → input-5gk-Jv1y.mjs} +1 -1
- package/dist/{input-ESg91VId.mjs.map → input-5gk-Jv1y.mjs.map} +1 -1
- package/dist/{input-1ceJxxFI.cjs → input-BvzsfAUc.cjs} +1 -1
- package/dist/{input-1ceJxxFI.cjs.map → input-BvzsfAUc.cjs.map} +1 -1
- package/dist/{input-wQP8YLOp.d.mts → input-CZrWdm_Y.d.cts} +7 -7
- package/dist/{input-DHBWjFPA.d.cts → input-DcbOSbQr.d.mts} +7 -7
- package/dist/{label-Cig7a9ON.mjs → label-D9uNQ9b_.mjs} +1 -1
- package/dist/{label-Cig7a9ON.mjs.map → label-D9uNQ9b_.mjs.map} +1 -1
- package/dist/{label-BzfsTrVt.cjs → label-eIyGIRyw.cjs} +1 -1
- package/dist/{label-BzfsTrVt.cjs.map → label-eIyGIRyw.cjs.map} +1 -1
- package/dist/layouts/cms-layout/index.cjs +1 -1
- package/dist/layouts/cms-layout/index.mjs +1 -1
- package/dist/layouts/flex.d.cts +8 -8
- package/dist/layouts/flex.d.mts +10 -10
- package/dist/layouts/payment-layout/index.cjs +1 -1
- package/dist/layouts/payment-layout/index.mjs +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.mts +2 -2
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.mts +2 -2
- package/dist/pages/LoginPage.cjs +1 -1
- package/dist/pages/LoginPage.d.cts +2 -2
- package/dist/pages/LoginPage.d.mts +2 -2
- package/dist/pages/LoginPage.mjs +1 -1
- package/dist/pages/NotAuthorized.d.mts +2 -2
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.mts +2 -2
- package/dist/pages/RegisterPage.cjs +1 -1
- package/dist/pages/RegisterPage.d.cts +2 -2
- package/dist/pages/RegisterPage.d.mts +2 -2
- package/dist/pages/RegisterPage.mjs +1 -1
- package/dist/pages/VerifyEmailPage.cjs +1 -1
- package/dist/pages/VerifyEmailPage.d.cts +2 -2
- package/dist/pages/VerifyEmailPage.d.mts +2 -2
- package/dist/pages/VerifyEmailPage.mjs +1 -1
- package/dist/{payment-layout-Bd4B4jhp.mjs → payment-layout-_ZM4uBy_.mjs} +2 -2
- package/dist/{payment-layout-Bd4B4jhp.mjs.map → payment-layout-_ZM4uBy_.mjs.map} +1 -1
- package/dist/{payment-layout-kh0lLq71.cjs → payment-layout-fsYTkw3r.cjs} +2 -2
- package/dist/{payment-layout-kh0lLq71.cjs.map → payment-layout-fsYTkw3r.cjs.map} +1 -1
- package/dist/{popover-BXktOcLz.mjs → popover-DwgdOX8a.mjs} +2 -2
- package/dist/{popover-BXktOcLz.mjs.map → popover-DwgdOX8a.mjs.map} +1 -1
- package/dist/{popover-DACS7x0e.cjs → popover-fsTCOb6a.cjs} +2 -2
- package/dist/{popover-DACS7x0e.cjs.map → popover-fsTCOb6a.cjs.map} +1 -1
- package/dist/{progress-BXWPPNt5.cjs → progress-CDYA2V-W.cjs} +1 -1
- package/dist/{progress-BXWPPNt5.cjs.map → progress-CDYA2V-W.cjs.map} +1 -1
- package/dist/{progress-bJYAFoHE.mjs → progress-DCBKnTx0.mjs} +1 -1
- package/dist/{progress-bJYAFoHE.mjs.map → progress-DCBKnTx0.mjs.map} +1 -1
- package/dist/{radio-group-Bv6w2woK.cjs → radio-group-B-M599Ys.cjs} +1 -1
- package/dist/{radio-group-Bv6w2woK.cjs.map → radio-group-B-M599Ys.cjs.map} +1 -1
- package/dist/{radio-group-CTILro-C.mjs → radio-group-Y9bhdr55.mjs} +1 -1
- package/dist/{radio-group-CTILro-C.mjs.map → radio-group-Y9bhdr55.mjs.map} +1 -1
- package/dist/{resizable-C7uLlTGB.cjs → resizable-DATSh0Du.cjs} +1 -1
- package/dist/{resizable-C7uLlTGB.cjs.map → resizable-DATSh0Du.cjs.map} +1 -1
- package/dist/{resizable-BNYc7hFd.mjs → resizable-DP1BQAF_.mjs} +1 -1
- package/dist/{resizable-BNYc7hFd.mjs.map → resizable-DP1BQAF_.mjs.map} +1 -1
- package/dist/{search-modal-CsYUvnWi.cjs → search-modal-CYRJEDE-.cjs} +2 -2
- package/dist/{search-modal-CsYUvnWi.cjs.map → search-modal-CYRJEDE-.cjs.map} +1 -1
- package/dist/{search-modal-D4ESSOU-.mjs → search-modal-DWu08xkE.mjs} +2 -2
- package/dist/{search-modal-D4ESSOU-.mjs.map → search-modal-DWu08xkE.mjs.map} +1 -1
- package/dist/{select-DMGFb8TB.mjs → select-BAlA65tZ.mjs} +1 -1
- package/dist/{select-DMGFb8TB.mjs.map → select-BAlA65tZ.mjs.map} +1 -1
- package/dist/{select-D0m78xbd.cjs → select-Cib2aiw5.cjs} +1 -1
- package/dist/{select-D0m78xbd.cjs.map → select-Cib2aiw5.cjs.map} +1 -1
- package/dist/{separator-DVaVWuNc.mjs → separator-C6s-YvlT.mjs} +1 -1
- package/dist/{separator-DVaVWuNc.mjs.map → separator-C6s-YvlT.mjs.map} +1 -1
- package/dist/{separator-jytY1CPq.cjs → separator-CBup_ah1.cjs} +1 -1
- package/dist/{separator-jytY1CPq.cjs.map → separator-CBup_ah1.cjs.map} +1 -1
- package/dist/{sheet-BoulTUHV.mjs → sheet-Cj8hoftE.mjs} +1 -1
- package/dist/{sheet-BoulTUHV.mjs.map → sheet-Cj8hoftE.mjs.map} +1 -1
- package/dist/{sheet-DuMrjidC.cjs → sheet-DAjZ-Q6Q.cjs} +1 -1
- package/dist/{sheet-DuMrjidC.cjs.map → sheet-DAjZ-Q6Q.cjs.map} +1 -1
- package/dist/{sidebar-BXrGXVxx.cjs → sidebar-Drasn0Bx.cjs} +2 -2
- package/dist/{sidebar-BXrGXVxx.cjs.map → sidebar-Drasn0Bx.cjs.map} +1 -1
- package/dist/{sidebar-xWo_Rfi-.mjs → sidebar-RcmDh50_.mjs} +2 -2
- package/dist/{sidebar-xWo_Rfi-.mjs.map → sidebar-RcmDh50_.mjs.map} +1 -1
- package/dist/{spinner-C2tF8jQt.mjs → spinner-BCnPYF1H.mjs} +1 -1
- package/dist/{spinner-C2tF8jQt.mjs.map → spinner-BCnPYF1H.mjs.map} +1 -1
- package/dist/{spinner-DgusnQMw.cjs → spinner-Bdta7BMp.cjs} +1 -1
- package/dist/{spinner-DgusnQMw.cjs.map → spinner-Bdta7BMp.cjs.map} +1 -1
- package/dist/statistic-Cm4nbkjQ.mjs +2 -0
- package/dist/statistic-Cm4nbkjQ.mjs.map +1 -0
- package/dist/statistic-DDDm5Om1.cjs +2 -0
- package/dist/statistic-DDDm5Om1.cjs.map +1 -0
- package/dist/{switch-CY25L6l0.mjs → switch-BP7EPatj.mjs} +1 -1
- package/dist/{switch-CY25L6l0.mjs.map → switch-BP7EPatj.mjs.map} +1 -1
- package/dist/{switch-0-9Zt33o.cjs → switch-Dbc77c_D.cjs} +1 -1
- package/dist/{switch-0-9Zt33o.cjs.map → switch-Dbc77c_D.cjs.map} +1 -1
- package/dist/tables-B3Ald6An.cjs +4 -0
- package/dist/tables-B3Ald6An.cjs.map +1 -0
- package/dist/tables-C3asiSD4.mjs +4 -0
- package/dist/tables-C3asiSD4.mjs.map +1 -0
- package/dist/{tanstack-form-Bof1jeRB.mjs → tanstack-form-BFX2-Tlo.mjs} +2 -2
- package/dist/{tanstack-form-Bof1jeRB.mjs.map → tanstack-form-BFX2-Tlo.mjs.map} +1 -1
- package/dist/{tanstack-form-BulYI2bY.cjs → tanstack-form-dHOZ76Jw.cjs} +2 -2
- package/dist/{tanstack-form-BulYI2bY.cjs.map → tanstack-form-dHOZ76Jw.cjs.map} +1 -1
- package/dist/{text-editor-CE_GkI7o.cjs → text-editor-BJBM0T1y.cjs} +1 -1
- package/dist/{text-editor-CE_GkI7o.cjs.map → text-editor-BJBM0T1y.cjs.map} +1 -1
- package/dist/{text-editor-D61C1dng.mjs → text-editor-CbBJNn-4.mjs} +1 -1
- package/dist/{text-editor-D61C1dng.mjs.map → text-editor-CbBJNn-4.mjs.map} +1 -1
- package/dist/{textarea-B8eQoQaZ.mjs → textarea-7HDXcaK9.mjs} +1 -1
- package/dist/{textarea-B8eQoQaZ.mjs.map → textarea-7HDXcaK9.mjs.map} +1 -1
- package/dist/{textarea-BB2WynyM.cjs → textarea-Byo8E8oi.cjs} +1 -1
- package/dist/{textarea-BB2WynyM.cjs.map → textarea-Byo8E8oi.cjs.map} +1 -1
- package/dist/{types-DmTyKdm7.d.mts → types-YLu40dXY.d.mts} +1 -1
- package/dist/typography/paragraph.d.cts +3 -3
- package/dist/typography/paragraph.d.mts +5 -5
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.mts +12 -12
- package/dist/ui/alert.cjs +1 -1
- package/dist/ui/alert.d.cts +1 -1
- package/dist/ui/alert.d.mts +1 -1
- package/dist/ui/alert.mjs +1 -1
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.mts +2 -2
- package/dist/ui/avatar.cjs +1 -1
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.mts +4 -4
- package/dist/ui/avatar.mjs +1 -1
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.mts +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.mts +8 -8
- package/dist/ui/button-group.cjs +1 -1
- package/dist/ui/button-group.d.cts +6 -6
- package/dist/ui/button-group.d.mts +6 -6
- package/dist/ui/button-group.mjs +1 -1
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.mts +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.mts +4 -4
- package/dist/ui/calendar.mjs +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.mts +7 -7
- package/dist/ui/checkbox.cjs +1 -1
- package/dist/ui/checkbox.d.cts +2 -2
- package/dist/ui/checkbox.d.mts +2 -2
- package/dist/ui/checkbox.mjs +1 -1
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.mts +4 -4
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +11 -11
- package/dist/ui/command.d.mts +11 -11
- package/dist/ui/command.mjs +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.mts +16 -16
- package/dist/ui/dialog.cjs +1 -1
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.mts +1 -1
- package/dist/ui/dialog.mjs +1 -1
- package/dist/ui/drawer.cjs +1 -1
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.mts +11 -11
- package/dist/ui/drawer.mjs +1 -1
- package/dist/ui/dropdown-menu.cjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/dropdown-menu.mjs +1 -1
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.mts +9 -9
- package/dist/ui/field.cjs +1 -1
- package/dist/ui/field.d.cts +23 -23
- package/dist/ui/field.d.mts +23 -23
- package/dist/ui/field.mjs +1 -1
- package/dist/ui/file-uploader.cjs +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.mts +2 -2
- package/dist/ui/file-uploader.mjs +1 -1
- package/dist/ui/form.cjs +1 -1
- package/dist/ui/form.d.cts +10 -10
- package/dist/ui/form.d.mts +10 -10
- package/dist/ui/form.mjs +1 -1
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.mts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.mts +5 -5
- package/dist/ui/input.cjs +1 -1
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.mts +1 -1
- package/dist/ui/input.mjs +1 -1
- package/dist/ui/inputs/search-input.cjs +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.mts +3 -3
- package/dist/ui/inputs/search-input.mjs +1 -1
- package/dist/ui/item.cjs +1 -1
- package/dist/ui/item.d.cts +15 -15
- package/dist/ui/item.d.mts +15 -15
- package/dist/ui/item.mjs +1 -1
- package/dist/ui/label.cjs +1 -1
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.mts +2 -2
- package/dist/ui/label.mjs +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.mts +17 -17
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.mts +3 -3
- package/dist/ui/multi-select.mjs +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.mts +11 -11
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.mts +9 -9
- package/dist/ui/popover.cjs +1 -1
- package/dist/ui/popover.d.cts +6 -6
- package/dist/ui/popover.d.mts +6 -6
- package/dist/ui/popover.mjs +1 -1
- package/dist/ui/progress.cjs +1 -1
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.mts +2 -2
- package/dist/ui/progress.mjs +1 -1
- package/dist/ui/radio-group.cjs +1 -1
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.mts +3 -3
- package/dist/ui/radio-group.mjs +1 -1
- package/dist/ui/resizable.cjs +1 -1
- package/dist/ui/resizable.d.cts +9 -9
- package/dist/ui/resizable.d.mts +9 -9
- package/dist/ui/resizable.mjs +1 -1
- package/dist/ui/scroll-area.d.cts +5 -5
- package/dist/ui/scroll-area.d.mts +5 -5
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.d.cts +9 -9
- package/dist/ui/select.d.mts +9 -9
- package/dist/ui/select.mjs +1 -1
- package/dist/ui/separator.cjs +1 -1
- package/dist/ui/separator.d.cts +2 -2
- package/dist/ui/separator.d.mts +2 -2
- package/dist/ui/separator.mjs +1 -1
- package/dist/ui/sheet.cjs +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/sheet.mjs +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.mts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.mts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.mts +2 -2
- package/dist/ui/spinner.cjs +1 -1
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.mts +2 -2
- package/dist/ui/spinner.mjs +1 -1
- package/dist/ui/switch.cjs +1 -1
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.mts +2 -2
- package/dist/ui/switch.mjs +1 -1
- package/dist/ui/table.d.cts +17 -17
- package/dist/ui/table.d.mts +17 -17
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.mts +5 -5
- package/dist/ui/textarea.cjs +1 -1
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/textarea.mjs +1 -1
- package/dist/ui/toggle-group.d.cts +3 -3
- package/dist/ui/toggle-group.d.mts +3 -3
- package/dist/ui/toggle.d.cts +5 -5
- package/dist/ui/toggle.d.mts +5 -5
- package/dist/ui/tooltip.d.cts +5 -5
- package/dist/ui/tooltip.d.mts +5 -5
- package/dist/{user-Cif7yb1w.mjs → user-D8Skw8dI.mjs} +2 -2
- package/dist/{user-Cif7yb1w.mjs.map → user-D8Skw8dI.mjs.map} +1 -1
- package/dist/{user-CQY0YnAc.cjs → user-Dns1BKaT.cjs} +2 -2
- package/dist/{user-CQY0YnAc.cjs.map → user-Dns1BKaT.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/data-display/statistic.cjs.map +0 -1
- package/dist/data-display/statistic.mjs.map +0 -1
- package/dist/tables-BvdD0_el.mjs +0 -4
- package/dist/tables-BvdD0_el.mjs.map +0 -1
- package/dist/tables-D1SMzDFu.cjs +0 -4
- package/dist/tables-D1SMzDFu.cjs.map +0 -1
package/dist/ui/spinner.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react258 from "react";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/spinner.d.ts
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ import * as react83 from "react";
|
|
|
19
19
|
declare function Spinner({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<'svg'>):
|
|
22
|
+
}: React.ComponentProps<'svg'>): react258.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { Spinner };
|
|
25
25
|
//# sourceMappingURL=spinner.d.mts.map
|
package/dist/ui/spinner.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../spinner-
|
|
1
|
+
import{t as e}from"../spinner-BCnPYF1H.mjs";export{e as Spinner};
|
package/dist/ui/switch.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../switch-
|
|
1
|
+
"use client";const e=require(`../switch-Dbc77c_D.cjs`);exports.Switch=e.t;
|
package/dist/ui/switch.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react99 from "react";
|
|
2
2
|
import { Switch as Switch$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/switch.d.ts
|
|
@@ -20,7 +20,7 @@ import { Switch as Switch$1 } from "radix-ui";
|
|
|
20
20
|
declare function Switch({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<typeof Switch$1.Root>):
|
|
23
|
+
}: React.ComponentProps<typeof Switch$1.Root>): react99.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { Switch };
|
|
26
26
|
//# sourceMappingURL=switch.d.cts.map
|
package/dist/ui/switch.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react218 from "react";
|
|
2
2
|
import { Switch as Switch$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/switch.d.ts
|
|
@@ -20,7 +20,7 @@ import { Switch as Switch$1 } from "radix-ui";
|
|
|
20
20
|
declare function Switch({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<typeof Switch$1.Root>):
|
|
23
|
+
}: React.ComponentProps<typeof Switch$1.Root>): react218.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { Switch };
|
|
26
26
|
//# sourceMappingURL=switch.d.mts.map
|
package/dist/ui/switch.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{t as e}from"../switch-
|
|
1
|
+
"use client";import{t as e}from"../switch-BP7EPatj.mjs";export{e as Switch};
|
package/dist/ui/table.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react125 from "react";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/table.d.ts
|
|
4
4
|
|
|
@@ -29,45 +29,45 @@ import * as react99 from "react";
|
|
|
29
29
|
* </Table>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const Table:
|
|
32
|
+
declare const Table: react125.MemoExoticComponent<({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"table">) =>
|
|
35
|
+
}: React.ComponentProps<"table">) => react125.JSX.Element>;
|
|
36
36
|
/** The `<thead>` element containing one or more header rows. */
|
|
37
|
-
declare const TableHeader:
|
|
37
|
+
declare const TableHeader: react125.MemoExoticComponent<({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<"thead">) =>
|
|
40
|
+
}: React.ComponentProps<"thead">) => react125.JSX.Element>;
|
|
41
41
|
/** The `<tbody>` element containing data rows with hover and selection styling. */
|
|
42
|
-
declare const TableBody:
|
|
42
|
+
declare const TableBody: react125.MemoExoticComponent<({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"tbody">) =>
|
|
45
|
+
}: React.ComponentProps<"tbody">) => react125.JSX.Element>;
|
|
46
46
|
/** The `<tfoot>` element for summary or aggregate rows at the bottom of the table. */
|
|
47
|
-
declare const TableFooter:
|
|
47
|
+
declare const TableFooter: react125.MemoExoticComponent<({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"tfoot">) =>
|
|
50
|
+
}: React.ComponentProps<"tfoot">) => react125.JSX.Element>;
|
|
51
51
|
/** A single `<tr>` row used inside TableHeader, TableBody, or TableFooter. */
|
|
52
|
-
declare const TableRow:
|
|
52
|
+
declare const TableRow: react125.MemoExoticComponent<({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<"tr">) =>
|
|
55
|
+
}: React.ComponentProps<"tr">) => react125.JSX.Element>;
|
|
56
56
|
/** A `<th>` column header cell with medium-weight text and left alignment. */
|
|
57
|
-
declare const TableHead:
|
|
57
|
+
declare const TableHead: react125.MemoExoticComponent<({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<"th">) =>
|
|
60
|
+
}: React.ComponentProps<"th">) => react125.JSX.Element>;
|
|
61
61
|
/** A standard `<td>` data cell used inside a TableRow. */
|
|
62
|
-
declare const TableCell:
|
|
62
|
+
declare const TableCell: react125.MemoExoticComponent<({
|
|
63
63
|
className,
|
|
64
64
|
...props
|
|
65
|
-
}: React.ComponentProps<"td">) =>
|
|
65
|
+
}: React.ComponentProps<"td">) => react125.JSX.Element>;
|
|
66
66
|
/** An accessible `<caption>` element displayed below the table. */
|
|
67
|
-
declare const TableCaption:
|
|
67
|
+
declare const TableCaption: react125.MemoExoticComponent<({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<"caption">) =>
|
|
70
|
+
}: React.ComponentProps<"caption">) => react125.JSX.Element>;
|
|
71
71
|
//#endregion
|
|
72
72
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
73
73
|
//# sourceMappingURL=table.d.cts.map
|
package/dist/ui/table.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react202 from "react";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/table.d.ts
|
|
4
4
|
|
|
@@ -29,45 +29,45 @@ import * as react107 from "react";
|
|
|
29
29
|
* </Table>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const Table:
|
|
32
|
+
declare const Table: react202.MemoExoticComponent<({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"table">) =>
|
|
35
|
+
}: React.ComponentProps<"table">) => react202.JSX.Element>;
|
|
36
36
|
/** The `<thead>` element containing one or more header rows. */
|
|
37
|
-
declare const TableHeader:
|
|
37
|
+
declare const TableHeader: react202.MemoExoticComponent<({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<"thead">) =>
|
|
40
|
+
}: React.ComponentProps<"thead">) => react202.JSX.Element>;
|
|
41
41
|
/** The `<tbody>` element containing data rows with hover and selection styling. */
|
|
42
|
-
declare const TableBody:
|
|
42
|
+
declare const TableBody: react202.MemoExoticComponent<({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"tbody">) =>
|
|
45
|
+
}: React.ComponentProps<"tbody">) => react202.JSX.Element>;
|
|
46
46
|
/** The `<tfoot>` element for summary or aggregate rows at the bottom of the table. */
|
|
47
|
-
declare const TableFooter:
|
|
47
|
+
declare const TableFooter: react202.MemoExoticComponent<({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"tfoot">) =>
|
|
50
|
+
}: React.ComponentProps<"tfoot">) => react202.JSX.Element>;
|
|
51
51
|
/** A single `<tr>` row used inside TableHeader, TableBody, or TableFooter. */
|
|
52
|
-
declare const TableRow:
|
|
52
|
+
declare const TableRow: react202.MemoExoticComponent<({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<"tr">) =>
|
|
55
|
+
}: React.ComponentProps<"tr">) => react202.JSX.Element>;
|
|
56
56
|
/** A `<th>` column header cell with medium-weight text and left alignment. */
|
|
57
|
-
declare const TableHead:
|
|
57
|
+
declare const TableHead: react202.MemoExoticComponent<({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<"th">) =>
|
|
60
|
+
}: React.ComponentProps<"th">) => react202.JSX.Element>;
|
|
61
61
|
/** A standard `<td>` data cell used inside a TableRow. */
|
|
62
|
-
declare const TableCell:
|
|
62
|
+
declare const TableCell: react202.MemoExoticComponent<({
|
|
63
63
|
className,
|
|
64
64
|
...props
|
|
65
|
-
}: React.ComponentProps<"td">) =>
|
|
65
|
+
}: React.ComponentProps<"td">) => react202.JSX.Element>;
|
|
66
66
|
/** An accessible `<caption>` element displayed below the table. */
|
|
67
|
-
declare const TableCaption:
|
|
67
|
+
declare const TableCaption: react202.MemoExoticComponent<({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<"caption">) =>
|
|
70
|
+
}: React.ComponentProps<"caption">) => react202.JSX.Element>;
|
|
71
71
|
//#endregion
|
|
72
72
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
73
73
|
//# sourceMappingURL=table.d.mts.map
|
package/dist/ui/tabs.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react100 from "react";
|
|
2
2
|
import { Tabs as Tabs$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tabs.d.ts
|
|
@@ -23,22 +23,22 @@ import { Tabs as Tabs$1 } from "radix-ui";
|
|
|
23
23
|
declare function Tabs({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Tabs$1.Root>):
|
|
26
|
+
}: React.ComponentProps<typeof Tabs$1.Root>): react100.JSX.Element;
|
|
27
27
|
/** Container that holds the row of `TabsTrigger` buttons with a muted background pill style. */
|
|
28
28
|
declare function TabsList({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof Tabs$1.List>):
|
|
31
|
+
}: React.ComponentProps<typeof Tabs$1.List>): react100.JSX.Element;
|
|
32
32
|
/** Individual tab button that activates its associated `TabsContent` panel when clicked. */
|
|
33
33
|
declare function TabsTrigger({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof Tabs$1.Trigger>):
|
|
36
|
+
}: React.ComponentProps<typeof Tabs$1.Trigger>): react100.JSX.Element;
|
|
37
37
|
/** Panel whose visibility is controlled by the active `TabsTrigger`; each panel must have a matching `value`. */
|
|
38
38
|
declare function TabsContent({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Tabs$1.Content>):
|
|
41
|
+
}: React.ComponentProps<typeof Tabs$1.Content>): react100.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
44
44
|
//# sourceMappingURL=tabs.d.cts.map
|
package/dist/ui/tabs.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react259 from "react";
|
|
2
2
|
import { Tabs as Tabs$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tabs.d.ts
|
|
@@ -23,22 +23,22 @@ import { Tabs as Tabs$1 } from "radix-ui";
|
|
|
23
23
|
declare function Tabs({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Tabs$1.Root>):
|
|
26
|
+
}: React.ComponentProps<typeof Tabs$1.Root>): react259.JSX.Element;
|
|
27
27
|
/** Container that holds the row of `TabsTrigger` buttons with a muted background pill style. */
|
|
28
28
|
declare function TabsList({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof Tabs$1.List>):
|
|
31
|
+
}: React.ComponentProps<typeof Tabs$1.List>): react259.JSX.Element;
|
|
32
32
|
/** Individual tab button that activates its associated `TabsContent` panel when clicked. */
|
|
33
33
|
declare function TabsTrigger({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof Tabs$1.Trigger>):
|
|
36
|
+
}: React.ComponentProps<typeof Tabs$1.Trigger>): react259.JSX.Element;
|
|
37
37
|
/** Panel whose visibility is controlled by the active `TabsTrigger`; each panel must have a matching `value`. */
|
|
38
38
|
declare function TabsContent({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Tabs$1.Content>):
|
|
41
|
+
}: React.ComponentProps<typeof Tabs$1.Content>): react259.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
44
44
|
//# sourceMappingURL=tabs.d.mts.map
|
package/dist/ui/textarea.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../textarea-
|
|
1
|
+
"use client";const e=require(`../textarea-Byo8E8oi.cjs`);exports.Textarea=e.t;
|
package/dist/ui/textarea.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react104 from "react";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/textarea.d.ts
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ declare function Textarea({
|
|
|
24
24
|
}: React.ComponentProps<'textarea'> & {
|
|
25
25
|
/** Convenience callback that receives the raw string value on every change, bypassing the synthetic event. */
|
|
26
26
|
onValueChange?: (value: string) => void;
|
|
27
|
-
}):
|
|
27
|
+
}): react104.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Textarea };
|
|
30
30
|
//# sourceMappingURL=textarea.d.cts.map
|
package/dist/ui/textarea.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react248 from "react";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/textarea.d.ts
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ declare function Textarea({
|
|
|
24
24
|
}: React.ComponentProps<'textarea'> & {
|
|
25
25
|
/** Convenience callback that receives the raw string value on every change, bypassing the synthetic event. */
|
|
26
26
|
onValueChange?: (value: string) => void;
|
|
27
|
-
}):
|
|
27
|
+
}): react248.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Textarea };
|
|
30
30
|
//# sourceMappingURL=textarea.d.mts.map
|
package/dist/ui/textarea.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{t as e}from"../textarea-
|
|
1
|
+
"use client";import{t as e}from"../textarea-7HDXcaK9.mjs";export{e as Textarea};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toggleVariants } from "./toggle.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react279 from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
5
5
|
|
|
@@ -25,7 +25,7 @@ declare function ToggleGroup({
|
|
|
25
25
|
size,
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>):
|
|
28
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react279.JSX.Element;
|
|
29
29
|
/** A single item/button within a ToggleGroup that inherits the group's variant and size. */
|
|
30
30
|
declare function ToggleGroupItem({
|
|
31
31
|
className,
|
|
@@ -33,7 +33,7 @@ declare function ToggleGroupItem({
|
|
|
33
33
|
variant,
|
|
34
34
|
size,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>):
|
|
36
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react279.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ToggleGroup, ToggleGroupItem };
|
|
39
39
|
//# sourceMappingURL=toggle-group.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toggleVariants } from "./toggle.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react253 from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
5
5
|
|
|
@@ -25,7 +25,7 @@ declare function ToggleGroup({
|
|
|
25
25
|
size,
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>):
|
|
28
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react253.JSX.Element;
|
|
29
29
|
/** A single item/button within a ToggleGroup that inherits the group's variant and size. */
|
|
30
30
|
declare function ToggleGroupItem({
|
|
31
31
|
className,
|
|
@@ -33,7 +33,7 @@ declare function ToggleGroupItem({
|
|
|
33
33
|
variant,
|
|
34
34
|
size,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>):
|
|
36
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react253.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ToggleGroup, ToggleGroupItem };
|
|
39
39
|
//# sourceMappingURL=toggle-group.d.mts.map
|
package/dist/ui/toggle.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react276 from "react";
|
|
2
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { Toggle as Toggle$1 } from "radix-ui";
|
|
5
5
|
|
|
6
6
|
//#region packages/components/ui/toggle.d.ts
|
|
7
7
|
declare const toggleVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "outline" | null | undefined;
|
|
9
|
-
size?: "
|
|
10
|
-
} &
|
|
9
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
11
11
|
/**
|
|
12
12
|
* A two-state button that switches between pressed (`on`) and unpressed (`off`).
|
|
13
13
|
*
|
|
@@ -26,7 +26,7 @@ declare function Toggle({
|
|
|
26
26
|
variant,
|
|
27
27
|
size,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>):
|
|
29
|
+
}: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react276.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Toggle, toggleVariants };
|
|
32
32
|
//# sourceMappingURL=toggle.d.cts.map
|
package/dist/ui/toggle.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react263 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { Toggle as Toggle$1 } from "radix-ui";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types10 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region packages/components/ui/toggle.d.ts
|
|
7
7
|
declare const toggleVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "outline" | null | undefined;
|
|
9
|
-
size?: "
|
|
10
|
-
} &
|
|
9
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types10.ClassProp) | undefined) => string;
|
|
11
11
|
/**
|
|
12
12
|
* A two-state button that switches between pressed (`on`) and unpressed (`off`).
|
|
13
13
|
*
|
|
@@ -26,7 +26,7 @@ declare function Toggle({
|
|
|
26
26
|
variant,
|
|
27
27
|
size,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>):
|
|
29
|
+
}: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react263.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Toggle, toggleVariants };
|
|
32
32
|
//# sourceMappingURL=toggle.d.mts.map
|
package/dist/ui/tooltip.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react291 from "react";
|
|
2
2
|
import { Tooltip as Tooltip$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tooltip.d.ts
|
|
@@ -19,7 +19,7 @@ import { Tooltip as Tooltip$1 } from "radix-ui";
|
|
|
19
19
|
declare function TooltipProvider({
|
|
20
20
|
delayDuration,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof Tooltip$1.Provider>):
|
|
22
|
+
}: React.ComponentProps<typeof Tooltip$1.Provider>): react291.JSX.Element;
|
|
23
23
|
/**
|
|
24
24
|
* Floating label that reveals supplementary text when the user hovers or focuses its trigger element.
|
|
25
25
|
*
|
|
@@ -38,18 +38,18 @@ declare function TooltipProvider({
|
|
|
38
38
|
*/
|
|
39
39
|
declare function Tooltip({
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Tooltip$1.Root>):
|
|
41
|
+
}: React.ComponentProps<typeof Tooltip$1.Root>): react291.JSX.Element;
|
|
42
42
|
/** Element that opens the tooltip on hover/focus; use `asChild` to forward props to a custom child element. */
|
|
43
43
|
declare function TooltipTrigger({
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Tooltip$1.Trigger>):
|
|
45
|
+
}: React.ComponentProps<typeof Tooltip$1.Trigger>): react291.JSX.Element;
|
|
46
46
|
/** Floating panel rendered in a portal that displays the tooltip text with a directional arrow. */
|
|
47
47
|
declare function TooltipContent({
|
|
48
48
|
className,
|
|
49
49
|
sideOffset,
|
|
50
50
|
children,
|
|
51
51
|
...props
|
|
52
|
-
}: React.ComponentProps<typeof Tooltip$1.Content>):
|
|
52
|
+
}: React.ComponentProps<typeof Tooltip$1.Content>): react291.JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
55
55
|
//# sourceMappingURL=tooltip.d.cts.map
|
package/dist/ui/tooltip.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react295 from "react";
|
|
2
2
|
import { Tooltip as Tooltip$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tooltip.d.ts
|
|
@@ -19,7 +19,7 @@ import { Tooltip as Tooltip$1 } from "radix-ui";
|
|
|
19
19
|
declare function TooltipProvider({
|
|
20
20
|
delayDuration,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof Tooltip$1.Provider>):
|
|
22
|
+
}: React.ComponentProps<typeof Tooltip$1.Provider>): react295.JSX.Element;
|
|
23
23
|
/**
|
|
24
24
|
* Floating label that reveals supplementary text when the user hovers or focuses its trigger element.
|
|
25
25
|
*
|
|
@@ -38,18 +38,18 @@ declare function TooltipProvider({
|
|
|
38
38
|
*/
|
|
39
39
|
declare function Tooltip({
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Tooltip$1.Root>):
|
|
41
|
+
}: React.ComponentProps<typeof Tooltip$1.Root>): react295.JSX.Element;
|
|
42
42
|
/** Element that opens the tooltip on hover/focus; use `asChild` to forward props to a custom child element. */
|
|
43
43
|
declare function TooltipTrigger({
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Tooltip$1.Trigger>):
|
|
45
|
+
}: React.ComponentProps<typeof Tooltip$1.Trigger>): react295.JSX.Element;
|
|
46
46
|
/** Floating panel rendered in a portal that displays the tooltip text with a directional arrow. */
|
|
47
47
|
declare function TooltipContent({
|
|
48
48
|
className,
|
|
49
49
|
sideOffset,
|
|
50
50
|
children,
|
|
51
51
|
...props
|
|
52
|
-
}: React.ComponentProps<typeof Tooltip$1.Content>):
|
|
52
|
+
}: React.ComponentProps<typeof Tooltip$1.Content>): react295.JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
55
55
|
//# sourceMappingURL=tooltip.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./paragraph-CjstaJFj.mjs";import{t}from"./flex-BAcvp4lB.mjs";import{n,t as r}from"./avatar-
|
|
2
|
-
//# sourceMappingURL=user-
|
|
1
|
+
import{t as e}from"./paragraph-CjstaJFj.mjs";import{t}from"./flex-BAcvp4lB.mjs";import{n,t as r}from"./avatar-m1LjDIil.mjs";import{UserRoundIcon as i}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{colorHashLight as s}from"@customafk/react-toolkit/color-hash";const c=({uuid:c,username:l,email:u})=>o(t,{"data-slot":`user-display`,wrap:!1,gap:`sm`,padding:`none`,children:[a(r,{className:`size-10 shadow-card`,children:a(n,{style:{backgroundColor:s.hex(c)},children:a(i,{size:28,className:`text-white`})})}),o(t,{vertical:!0,padding:`none`,gap:`none`,align:`start`,children:[a(e,{className:`text-sm font-medium text-text-positive`,children:l}),a(e,{variant:`sm`,className:`mt-0! text-xs text-text-positive-weak`,children:u})]})]});export{c as t};
|
|
2
|
+
//# sourceMappingURL=user-D8Skw8dI.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-
|
|
1
|
+
{"version":3,"file":"user-D8Skw8dI.mjs","names":["UserDataDisplay: React.FC<UserDataDisplayProps>"],"sources":["../packages/components/data-display/user.tsx"],"sourcesContent":["'use client';\n\nimport { UserRoundIcon } from 'lucide-react';\n\nimport { colorHashLight } from '@customafk/react-toolkit/color-hash';\n\nimport { Flex } from '../layouts/flex';\nimport { Paragraph } from '../typography/paragraph';\nimport { Avatar, AvatarFallback } from '../ui/avatar';\n\ntype UserDataDisplayProps = {\n /** Unique identifier used to deterministically generate the avatar background colour. */\n uuid: string;\n /** Display name rendered as the primary line of the user card. */\n username: string;\n /** Email address rendered as the secondary, muted line below the username. */\n email: string;\n};\n\n/**\n * Displays a user identity card with a colour-hashed avatar, username, and email address.\n *\n * @example\n * ```tsx\n * import { UserDataDisplay } from '@customafk/lunas-ui/data-display/user';\n *\n * <UserDataDisplay uuid=\"abc-123\" username=\"Nguyễn Văn An\" email=\"an@example.com\" />\n * ```\n */\nexport const UserDataDisplay: React.FC<UserDataDisplayProps> = ({ uuid, username, email }) => {\n return (\n <Flex data-slot=\"user-display\" wrap={false} gap=\"sm\" padding=\"none\">\n <Avatar className=\"size-10 shadow-card\">\n <AvatarFallback style={{ backgroundColor: colorHashLight.hex(uuid) }}>\n <UserRoundIcon size={28} className=\"text-white\" />\n </AvatarFallback>\n </Avatar>\n <Flex vertical padding=\"none\" gap=\"none\" align=\"start\">\n <Paragraph className=\"text-sm font-medium text-text-positive\">{username}</Paragraph>\n <Paragraph variant=\"sm\" className=\"mt-0! text-xs text-text-positive-weak\">\n {email}\n </Paragraph>\n </Flex>\n </Flex>\n );\n};\n"],"mappings":"gSA6BA,MAAaA,GAAmD,CAAE,OAAM,WAAU,WAE9E,EAAC,EAAA,CAAK,YAAU,eAAe,KAAM,GAAO,IAAI,KAAK,QAAQ,iBAC3D,EAAC,EAAA,CAAO,UAAU,+BAChB,EAAC,EAAA,CAAe,MAAO,CAAE,gBAAiB,EAAe,IAAI,EAAK,CAAE,UAClE,EAAC,EAAA,CAAc,KAAM,GAAI,UAAU,cAAe,EACnC,EACV,CACT,EAAC,EAAA,CAAK,SAAA,GAAS,QAAQ,OAAO,IAAI,OAAO,MAAM,kBAC7C,EAAC,EAAA,CAAU,UAAU,kDAA0C,GAAqB,CACpF,EAAC,EAAA,CAAU,QAAQ,KAAK,UAAU,iDAC/B,GACS,CAAA,EACP,CAAA,EACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./paragraph-D-JHj7EP.cjs`),n=require(`./flex-DYh2t8ft.cjs`),r=require(`./avatar-
|
|
2
|
-
//# sourceMappingURL=user-
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./paragraph-D-JHj7EP.cjs`),n=require(`./flex-DYh2t8ft.cjs`),r=require(`./avatar-CqRl9dge.cjs`);let i=require(`lucide-react`),a=require(`react/jsx-runtime`),o=require(`@customafk/react-toolkit/color-hash`);const s=({uuid:e,username:s,email:c})=>(0,a.jsxs)(n.t,{"data-slot":`user-display`,wrap:!1,gap:`sm`,padding:`none`,children:[(0,a.jsx)(r.t,{className:`size-10 shadow-card`,children:(0,a.jsx)(r.n,{style:{backgroundColor:o.colorHashLight.hex(e)},children:(0,a.jsx)(i.UserRoundIcon,{size:28,className:`text-white`})})}),(0,a.jsxs)(n.t,{vertical:!0,padding:`none`,gap:`none`,align:`start`,children:[(0,a.jsx)(t.t,{className:`text-sm font-medium text-text-positive`,children:s}),(0,a.jsx)(t.t,{variant:`sm`,className:`mt-0! text-xs text-text-positive-weak`,children:c})]})]});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
2
|
+
//# sourceMappingURL=user-Dns1BKaT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-
|
|
1
|
+
{"version":3,"file":"user-Dns1BKaT.cjs","names":["UserDataDisplay: React.FC<UserDataDisplayProps>","Flex","Avatar","AvatarFallback","colorHashLight","UserRoundIcon","Paragraph"],"sources":["../packages/components/data-display/user.tsx"],"sourcesContent":["'use client';\n\nimport { UserRoundIcon } from 'lucide-react';\n\nimport { colorHashLight } from '@customafk/react-toolkit/color-hash';\n\nimport { Flex } from '../layouts/flex';\nimport { Paragraph } from '../typography/paragraph';\nimport { Avatar, AvatarFallback } from '../ui/avatar';\n\ntype UserDataDisplayProps = {\n /** Unique identifier used to deterministically generate the avatar background colour. */\n uuid: string;\n /** Display name rendered as the primary line of the user card. */\n username: string;\n /** Email address rendered as the secondary, muted line below the username. */\n email: string;\n};\n\n/**\n * Displays a user identity card with a colour-hashed avatar, username, and email address.\n *\n * @example\n * ```tsx\n * import { UserDataDisplay } from '@customafk/lunas-ui/data-display/user';\n *\n * <UserDataDisplay uuid=\"abc-123\" username=\"Nguyễn Văn An\" email=\"an@example.com\" />\n * ```\n */\nexport const UserDataDisplay: React.FC<UserDataDisplayProps> = ({ uuid, username, email }) => {\n return (\n <Flex data-slot=\"user-display\" wrap={false} gap=\"sm\" padding=\"none\">\n <Avatar className=\"size-10 shadow-card\">\n <AvatarFallback style={{ backgroundColor: colorHashLight.hex(uuid) }}>\n <UserRoundIcon size={28} className=\"text-white\" />\n </AvatarFallback>\n </Avatar>\n <Flex vertical padding=\"none\" gap=\"none\" align=\"start\">\n <Paragraph className=\"text-sm font-medium text-text-positive\">{username}</Paragraph>\n <Paragraph variant=\"sm\" className=\"mt-0! text-xs text-text-positive-weak\">\n {email}\n </Paragraph>\n </Flex>\n </Flex>\n );\n};\n"],"mappings":"gQA6BA,MAAaA,GAAmD,CAAE,OAAM,WAAU,YAE9E,EAAA,EAAA,MAACC,EAAAA,EAAAA,CAAK,YAAU,eAAe,KAAM,GAAO,IAAI,KAAK,QAAQ,kBAC3D,EAAA,EAAA,KAACC,EAAAA,EAAAA,CAAO,UAAU,gCAChB,EAAA,EAAA,KAACC,EAAAA,EAAAA,CAAe,MAAO,CAAE,gBAAiBC,EAAAA,eAAe,IAAI,EAAK,CAAE,WAClE,EAAA,EAAA,KAACC,EAAAA,cAAAA,CAAc,KAAM,GAAI,UAAU,cAAe,EACnC,EACV,EACT,EAAA,EAAA,MAACJ,EAAAA,EAAAA,CAAK,SAAA,GAAS,QAAQ,OAAO,IAAI,OAAO,MAAM,mBAC7C,EAAA,EAAA,KAACK,EAAAA,EAAAA,CAAU,UAAU,kDAA0C,GAAqB,EACpF,EAAA,EAAA,KAACA,EAAAA,EAAAA,CAAU,QAAQ,KAAK,UAAU,iDAC/B,GACS,CAAA,EACP,CAAA,EACF"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistic.cjs","names":["options: Intl.NumberFormatOptions"],"sources":["../../packages/components/data-display/statistic.tsx"],"sourcesContent":["'use client';\n\nimport { memo, useCallback, useMemo } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@customafk/react-toolkit/utils';\n\nconst statisticVariants = cva('inline-flex items-center gap-1 font-number tabular-nums transition-colors', {\n variants: {\n size: {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-base',\n lg: 'text-lg',\n xl: 'text-xl',\n },\n trend: {\n neutral: 'text-text-positive-strong',\n up: 'text-success',\n down: 'text-danger',\n },\n },\n defaultVariants: {\n size: 'lg',\n trend: 'neutral',\n },\n});\n\nexport type StatisticProps = VariantProps<typeof statisticVariants> & {\n /** Character used to separate the decimal part. Defaults to `'.'`. */\n decimalSeparator?: string;\n /** Character used to separate thousands groups. Defaults to `','`. */\n groupSeparator?: string;\n /** Optional node rendered before the numeric value (e.g. a currency symbol). */\n prefix?: React.ReactNode;\n /** Optional node rendered after the numeric value (e.g. a unit label). */\n suffix?: React.ReactNode;\n /** Number of decimal digits to display; omit to show all significant digits. */\n precision?: number;\n /** Rounding strategy applied before formatting. Defaults to `'round'`. */\n roundingMode?: 'round' | 'floor' | 'ceil';\n /** When `true`, pads the decimal part with trailing zeros up to `precision`. Defaults to `false`. */\n showTrailingZeros?: boolean;\n /** The numeric (or numeric-string) value to format and display. */\n value: number | string;\n /** Additional CSS classes applied to the wrapper element. */\n className?: string;\n /** Colour trend indicator: `'neutral'` (default), `'up'` (green), or `'down'` (red). */\n trend?: 'neutral' | 'up' | 'down';\n};\n\n/**\n * A memoised numeric display component with locale-aware formatting, optional prefix/suffix, trend colouring, and configurable rounding.\n *\n * @example\n * ```tsx\n * import { Statistic } from '@customafk/lunas-ui/data-display/statistic';\n *\n * <Statistic value={1234567.89} precision={2} prefix=\"$\" trend=\"up\" size=\"lg\" />\n * ```\n */\nexport const Statistic = memo(\n ({\n decimalSeparator = '.',\n groupSeparator = ',',\n prefix: Prefix,\n suffix: Suffix,\n precision,\n roundingMode = 'round',\n showTrailingZeros = false,\n size = 'lg',\n trend = 'neutral',\n value,\n className,\n }: StatisticProps) => {\n const applyRounding = useCallback(\n (num: number, precisionValue: number): number => {\n const multiplier = 10 ** precisionValue;\n switch (roundingMode) {\n case 'floor':\n return Math.floor(num * multiplier) / multiplier;\n case 'ceil':\n return Math.ceil(num * multiplier) / multiplier;\n default:\n return Math.round(num * multiplier) / multiplier;\n }\n },\n [roundingMode]\n );\n\n const formatOptions = useMemo((): Intl.NumberFormatOptions => {\n const options: Intl.NumberFormatOptions = {};\n if (typeof precision === 'number' && precision >= 0) {\n if (showTrailingZeros) {\n options.minimumFractionDigits = precision;\n options.maximumFractionDigits = precision;\n } else {\n options.maximumFractionDigits = precision;\n }\n }\n return options;\n }, [precision, showTrailingZeros]);\n\n const formatNumber = useCallback(\n (num: number): string => {\n let processedNum = num;\n if (typeof precision === 'number' && precision >= 0) {\n processedNum = applyRounding(num, precision);\n }\n return processedNum.toLocaleString('en-US', formatOptions);\n },\n [applyRounding, formatOptions, precision]\n );\n\n const processedValue = useMemo((): string => {\n if (typeof value === 'number') {\n if (Number.isNaN(value) || !Number.isFinite(value)) return 'N/A';\n return formatNumber(value);\n }\n if (typeof value === 'string') {\n const trimmedValue = value.trim();\n if (!trimmedValue) return 'N/A';\n const numValue = Number(trimmedValue);\n if (Number.isNaN(numValue) || !Number.isFinite(numValue)) return 'N/A';\n return formatNumber(numValue);\n }\n return 'N/A';\n }, [value, formatNumber]);\n\n const finalFormattedValue = useMemo((): string => {\n if (decimalSeparator === '.' && groupSeparator === ',') return processedValue;\n return processedValue.replace(/,/g, groupSeparator).replace(/\\./g, decimalSeparator);\n }, [processedValue, decimalSeparator, groupSeparator]);\n\n return (\n <div data-slot=\"statistic\" className={cn(statisticVariants({ size, trend }), className)}>\n {Prefix && <span data-slot=\"statistic-prefix\">{Prefix}</span>}\n <p data-slot=\"statistic-value\">{finalFormattedValue}</p>\n {Suffix && <span data-slot=\"statistic-suffix\">{Suffix}</span>}\n </div>\n );\n }\n);\nStatistic.displayName = 'Statistic';\n"],"mappings":"8LAMA,MAAM,GAAA,EAAA,EAAA,KAAwB,4EAA6E,CACzG,SAAU,CACR,KAAM,CACJ,GAAI,UACJ,GAAI,UACJ,GAAI,YACJ,GAAI,UACJ,GAAI,UACL,CACD,MAAO,CACL,QAAS,4BACT,GAAI,eACJ,KAAM,cACP,CACF,CACD,gBAAiB,CACf,KAAM,KACN,MAAO,UACR,CACF,CAAC,CAmCW,GAAA,EAAA,EAAA,OACV,CACC,mBAAmB,IACnB,iBAAiB,IACjB,OAAQ,EACR,OAAQ,EACR,YACA,eAAe,QACf,oBAAoB,GACpB,OAAO,KACP,QAAQ,UACR,QACA,eACoB,CACpB,IAAM,GAAA,EAAA,EAAA,cACH,EAAa,IAAmC,CAC/C,IAAM,EAAa,IAAM,EACzB,OAAQ,EAAR,CACE,IAAK,QACH,OAAO,KAAK,MAAM,EAAM,EAAW,CAAG,EACxC,IAAK,OACH,OAAO,KAAK,KAAK,EAAM,EAAW,CAAG,EACvC,QACE,OAAO,KAAK,MAAM,EAAM,EAAW,CAAG,IAG5C,CAAC,EAAa,CACf,CAEK,GAAA,EAAA,EAAA,aAAwD,CAC5D,IAAMA,EAAoC,EAAE,CAS5C,OARI,OAAO,GAAc,UAAY,GAAa,IAC5C,IACF,EAAQ,sBAAwB,GAGhC,EAAQ,sBAAwB,GAG7B,GACN,CAAC,EAAW,EAAkB,CAAC,CAE5B,GAAA,EAAA,EAAA,aACH,GAAwB,CACvB,IAAI,EAAe,EAInB,OAHI,OAAO,GAAc,UAAY,GAAa,IAChD,EAAe,EAAc,EAAK,EAAU,EAEvC,EAAa,eAAe,QAAS,EAAc,EAE5D,CAAC,EAAe,EAAe,EAAU,CAC1C,CAEK,GAAA,EAAA,EAAA,aAAuC,CAC3C,GAAI,OAAO,GAAU,SAEnB,OADI,OAAO,MAAM,EAAM,EAAI,CAAC,OAAO,SAAS,EAAM,CAAS,MACpD,EAAa,EAAM,CAE5B,GAAI,OAAO,GAAU,SAAU,CAC7B,IAAM,EAAe,EAAM,MAAM,CACjC,GAAI,CAAC,EAAc,MAAO,MAC1B,IAAM,EAAW,OAAO,EAAa,CAErC,OADI,OAAO,MAAM,EAAS,EAAI,CAAC,OAAO,SAAS,EAAS,CAAS,MAC1D,EAAa,EAAS,CAE/B,MAAO,OACN,CAAC,EAAO,EAAa,CAAC,CAEnB,GAAA,EAAA,EAAA,aACA,IAAqB,KAAO,IAAmB,IAAY,EACxD,EAAe,QAAQ,KAAM,EAAe,CAAC,QAAQ,MAAO,EAAiB,CACnF,CAAC,EAAgB,EAAkB,EAAe,CAAC,CAEtD,OACE,EAAA,EAAA,MAAC,MAAA,CAAI,YAAU,YAAY,WAAA,EAAA,EAAA,IAAc,EAAkB,CAAE,OAAM,QAAO,CAAC,CAAE,EAAU,WACpF,IAAU,EAAA,EAAA,KAAC,OAAA,CAAK,YAAU,4BAAoB,GAAc,EAC7D,EAAA,EAAA,KAAC,IAAA,CAAE,YAAU,2BAAmB,GAAwB,CACvD,IAAU,EAAA,EAAA,KAAC,OAAA,CAAK,YAAU,4BAAoB,GAAc,GACzD,EAGX,CACD,EAAU,YAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistic.mjs","names":["options: Intl.NumberFormatOptions"],"sources":["../../packages/components/data-display/statistic.tsx"],"sourcesContent":["'use client';\n\nimport { memo, useCallback, useMemo } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@customafk/react-toolkit/utils';\n\nconst statisticVariants = cva('inline-flex items-center gap-1 font-number tabular-nums transition-colors', {\n variants: {\n size: {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-base',\n lg: 'text-lg',\n xl: 'text-xl',\n },\n trend: {\n neutral: 'text-text-positive-strong',\n up: 'text-success',\n down: 'text-danger',\n },\n },\n defaultVariants: {\n size: 'lg',\n trend: 'neutral',\n },\n});\n\nexport type StatisticProps = VariantProps<typeof statisticVariants> & {\n /** Character used to separate the decimal part. Defaults to `'.'`. */\n decimalSeparator?: string;\n /** Character used to separate thousands groups. Defaults to `','`. */\n groupSeparator?: string;\n /** Optional node rendered before the numeric value (e.g. a currency symbol). */\n prefix?: React.ReactNode;\n /** Optional node rendered after the numeric value (e.g. a unit label). */\n suffix?: React.ReactNode;\n /** Number of decimal digits to display; omit to show all significant digits. */\n precision?: number;\n /** Rounding strategy applied before formatting. Defaults to `'round'`. */\n roundingMode?: 'round' | 'floor' | 'ceil';\n /** When `true`, pads the decimal part with trailing zeros up to `precision`. Defaults to `false`. */\n showTrailingZeros?: boolean;\n /** The numeric (or numeric-string) value to format and display. */\n value: number | string;\n /** Additional CSS classes applied to the wrapper element. */\n className?: string;\n /** Colour trend indicator: `'neutral'` (default), `'up'` (green), or `'down'` (red). */\n trend?: 'neutral' | 'up' | 'down';\n};\n\n/**\n * A memoised numeric display component with locale-aware formatting, optional prefix/suffix, trend colouring, and configurable rounding.\n *\n * @example\n * ```tsx\n * import { Statistic } from '@customafk/lunas-ui/data-display/statistic';\n *\n * <Statistic value={1234567.89} precision={2} prefix=\"$\" trend=\"up\" size=\"lg\" />\n * ```\n */\nexport const Statistic = memo(\n ({\n decimalSeparator = '.',\n groupSeparator = ',',\n prefix: Prefix,\n suffix: Suffix,\n precision,\n roundingMode = 'round',\n showTrailingZeros = false,\n size = 'lg',\n trend = 'neutral',\n value,\n className,\n }: StatisticProps) => {\n const applyRounding = useCallback(\n (num: number, precisionValue: number): number => {\n const multiplier = 10 ** precisionValue;\n switch (roundingMode) {\n case 'floor':\n return Math.floor(num * multiplier) / multiplier;\n case 'ceil':\n return Math.ceil(num * multiplier) / multiplier;\n default:\n return Math.round(num * multiplier) / multiplier;\n }\n },\n [roundingMode]\n );\n\n const formatOptions = useMemo((): Intl.NumberFormatOptions => {\n const options: Intl.NumberFormatOptions = {};\n if (typeof precision === 'number' && precision >= 0) {\n if (showTrailingZeros) {\n options.minimumFractionDigits = precision;\n options.maximumFractionDigits = precision;\n } else {\n options.maximumFractionDigits = precision;\n }\n }\n return options;\n }, [precision, showTrailingZeros]);\n\n const formatNumber = useCallback(\n (num: number): string => {\n let processedNum = num;\n if (typeof precision === 'number' && precision >= 0) {\n processedNum = applyRounding(num, precision);\n }\n return processedNum.toLocaleString('en-US', formatOptions);\n },\n [applyRounding, formatOptions, precision]\n );\n\n const processedValue = useMemo((): string => {\n if (typeof value === 'number') {\n if (Number.isNaN(value) || !Number.isFinite(value)) return 'N/A';\n return formatNumber(value);\n }\n if (typeof value === 'string') {\n const trimmedValue = value.trim();\n if (!trimmedValue) return 'N/A';\n const numValue = Number(trimmedValue);\n if (Number.isNaN(numValue) || !Number.isFinite(numValue)) return 'N/A';\n return formatNumber(numValue);\n }\n return 'N/A';\n }, [value, formatNumber]);\n\n const finalFormattedValue = useMemo((): string => {\n if (decimalSeparator === '.' && groupSeparator === ',') return processedValue;\n return processedValue.replace(/,/g, groupSeparator).replace(/\\./g, decimalSeparator);\n }, [processedValue, decimalSeparator, groupSeparator]);\n\n return (\n <div data-slot=\"statistic\" className={cn(statisticVariants({ size, trend }), className)}>\n {Prefix && <span data-slot=\"statistic-prefix\">{Prefix}</span>}\n <p data-slot=\"statistic-value\">{finalFormattedValue}</p>\n {Suffix && <span data-slot=\"statistic-suffix\">{Suffix}</span>}\n </div>\n );\n }\n);\nStatistic.displayName = 'Statistic';\n"],"mappings":"6NAMA,MAAM,EAAoB,EAAI,4EAA6E,CACzG,SAAU,CACR,KAAM,CACJ,GAAI,UACJ,GAAI,UACJ,GAAI,YACJ,GAAI,UACJ,GAAI,UACL,CACD,MAAO,CACL,QAAS,4BACT,GAAI,eACJ,KAAM,cACP,CACF,CACD,gBAAiB,CACf,KAAM,KACN,MAAO,UACR,CACF,CAAC,CAmCW,EAAY,GACtB,CACC,mBAAmB,IACnB,iBAAiB,IACjB,OAAQ,EACR,OAAQ,EACR,YACA,eAAe,QACf,oBAAoB,GACpB,OAAO,KACP,QAAQ,UACR,QACA,eACoB,CACpB,IAAM,EAAgB,GACnB,EAAa,IAAmC,CAC/C,IAAM,EAAa,IAAM,EACzB,OAAQ,EAAR,CACE,IAAK,QACH,OAAO,KAAK,MAAM,EAAM,EAAW,CAAG,EACxC,IAAK,OACH,OAAO,KAAK,KAAK,EAAM,EAAW,CAAG,EACvC,QACE,OAAO,KAAK,MAAM,EAAM,EAAW,CAAG,IAG5C,CAAC,EAAa,CACf,CAEK,EAAgB,MAAwC,CAC5D,IAAMA,EAAoC,EAAE,CAS5C,OARI,OAAO,GAAc,UAAY,GAAa,IAC5C,IACF,EAAQ,sBAAwB,GAGhC,EAAQ,sBAAwB,GAG7B,GACN,CAAC,EAAW,EAAkB,CAAC,CAE5B,EAAe,EAClB,GAAwB,CACvB,IAAI,EAAe,EAInB,OAHI,OAAO,GAAc,UAAY,GAAa,IAChD,EAAe,EAAc,EAAK,EAAU,EAEvC,EAAa,eAAe,QAAS,EAAc,EAE5D,CAAC,EAAe,EAAe,EAAU,CAC1C,CAEK,EAAiB,MAAsB,CAC3C,GAAI,OAAO,GAAU,SAEnB,OADI,OAAO,MAAM,EAAM,EAAI,CAAC,OAAO,SAAS,EAAM,CAAS,MACpD,EAAa,EAAM,CAE5B,GAAI,OAAO,GAAU,SAAU,CAC7B,IAAM,EAAe,EAAM,MAAM,CACjC,GAAI,CAAC,EAAc,MAAO,MAC1B,IAAM,EAAW,OAAO,EAAa,CAErC,OADI,OAAO,MAAM,EAAS,EAAI,CAAC,OAAO,SAAS,EAAS,CAAS,MAC1D,EAAa,EAAS,CAE/B,MAAO,OACN,CAAC,EAAO,EAAa,CAAC,CAEnB,EAAsB,MACtB,IAAqB,KAAO,IAAmB,IAAY,EACxD,EAAe,QAAQ,KAAM,EAAe,CAAC,QAAQ,MAAO,EAAiB,CACnF,CAAC,EAAgB,EAAkB,EAAe,CAAC,CAEtD,OACE,EAAC,MAAA,CAAI,YAAU,YAAY,UAAW,EAAG,EAAkB,CAAE,OAAM,QAAO,CAAC,CAAE,EAAU,WACpF,GAAU,EAAC,OAAA,CAAK,YAAU,4BAAoB,GAAc,CAC7D,EAAC,IAAA,CAAE,YAAU,2BAAmB,GAAwB,CACvD,GAAU,EAAC,OAAA,CAAK,YAAU,4BAAoB,GAAc,GACzD,EAGX,CACD,EAAU,YAAc"}
|