@customafk/lunas-ui 0.2.32 → 0.2.34
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-CqRM6LFa.d.cts → alert-BFLT5Jqg.d.cts} +7 -7
- package/dist/{alert-BC5Nss8t.mjs → alert-BbInRLt4.mjs} +1 -1
- package/dist/{alert-BC5Nss8t.mjs.map → alert-BbInRLt4.mjs.map} +1 -1
- package/dist/{alert-hSQjkSHn.d.mts → alert-DmaYqfy7.d.mts} +7 -7
- package/dist/{avatar-CK1R4r0j.mjs → avatar-1SuFoI5h.mjs} +1 -1
- package/dist/{avatar-CK1R4r0j.mjs.map → avatar-1SuFoI5h.mjs.map} +1 -1
- package/dist/{badge-utjRo-lW.mjs → badge-Bhbhmsic.mjs} +1 -1
- package/dist/{badge-utjRo-lW.mjs.map → badge-Bhbhmsic.mjs.map} +1 -1
- package/dist/{badge-BNlMwt54.d.mts → badge-CSMgaMwT.d.cts} +8 -8
- package/dist/{badge-BXCkfLW0.d.cts → badge-Dxewfuj8.d.mts} +8 -8
- package/dist/{button-BqxBQ4Kr.mjs → button-CfPTDyoq.mjs} +2 -2
- package/dist/{button-BqxBQ4Kr.mjs.map → button-CfPTDyoq.mjs.map} +1 -1
- package/dist/{button-DhUjRe5e.d.mts → button-DeBpvNFE.d.mts} +8 -8
- package/dist/{button-xc_1ixgJ.d.cts → button-soF3CKai.d.cts} +8 -8
- package/dist/{button.variants-CwcJHcI5.mjs → button.variants-B8aRZ52K.mjs} +1 -1
- package/dist/{button.variants-CwcJHcI5.mjs.map → button.variants-B8aRZ52K.mjs.map} +1 -1
- package/dist/{calendar-D8aRFw_F.mjs → calendar-CqeVe3HO.mjs} +2 -2
- package/dist/{calendar-D8aRFw_F.mjs.map → calendar-CqeVe3HO.mjs.map} +1 -1
- package/dist/cards/grid-product-card.mjs +1 -1
- package/dist/cards/product-card.mjs +1 -1
- package/dist/cards/simple-card.mjs +1 -1
- package/dist/{checkbox-CJsl9OjF.mjs → checkbox-CrZ80dV_.mjs} +1 -1
- package/dist/{checkbox-CJsl9OjF.mjs.map → checkbox-CrZ80dV_.mjs.map} +1 -1
- package/dist/{close-BMhGSmGs.mjs → close-DTBepcqW.mjs} +1 -1
- package/dist/{close-BMhGSmGs.mjs.map → close-DTBepcqW.mjs.map} +1 -1
- package/dist/{cms-layout-DHzRHAoI.mjs → cms-layout-BvaYr6rb.mjs} +2 -2
- package/dist/{cms-layout-DHzRHAoI.mjs.map → cms-layout-BvaYr6rb.mjs.map} +1 -1
- package/dist/{command-CTdjZi1F.cjs → command-B7DO73K0.cjs} +2 -2
- package/dist/{command-CTdjZi1F.cjs.map → command-B7DO73K0.cjs.map} +1 -1
- package/dist/{command-Bvauothg.mjs → command-YngzaaGP.mjs} +2 -2
- package/dist/{command-Bvauothg.mjs.map → command-YngzaaGP.mjs.map} +1 -1
- package/dist/data-display/country.d.cts +1 -1
- package/dist/data-display/country.d.mts +1 -1
- package/dist/data-display/country.mjs +1 -1
- package/dist/data-display/date-tooltip.mjs +1 -1
- package/dist/data-display/date.mjs +1 -1
- package/dist/data-display/name.mjs +1 -1
- package/dist/data-display/phone-number.mjs +1 -1
- package/dist/data-display/role-badge.d.cts +1 -1
- package/dist/data-display/role-badge.d.mts +1 -1
- package/dist/data-display/role-badge.mjs +1 -1
- package/dist/data-display/statistic.d.cts +4 -4
- package/dist/data-display/statistic.d.mts +6 -6
- package/dist/data-display/user.mjs +1 -1
- package/dist/{date-BQ0c19uk.mjs → date-CFgc7pK3.mjs} +1 -1
- package/dist/{date-BQ0c19uk.mjs.map → date-CFgc7pK3.mjs.map} +1 -1
- package/dist/{dialog-gZTogunf.d.cts → dialog-BQTnKhUH.d.cts} +12 -12
- package/dist/dialog-Bly2YImt.mjs +2 -0
- package/dist/dialog-Bly2YImt.mjs.map +1 -0
- package/dist/{dialog-KxgG7gFA.d.mts → dialog-DDiSHKlc.d.mts} +12 -12
- package/dist/dialog-DhO0dkO3.cjs +2 -0
- package/dist/dialog-DhO0dkO3.cjs.map +1 -0
- package/dist/dialogs/confirm-dialog.mjs +1 -1
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +27 -27
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +2 -2
- package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
- package/dist/dialogs/detail-dialog/index.mjs +1 -1
- package/dist/dialogs/error-dialog.mjs +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.mjs +1 -1
- package/dist/{dist-DdGJ50nX.mjs → dist-BQGL-YKY.mjs} +1 -1
- package/dist/{dist-DdGJ50nX.mjs.map → dist-BQGL-YKY.mjs.map} +1 -1
- package/dist/{drawer-j9wcVE50.mjs → drawer-B3GpKBZs.mjs} +1 -1
- package/dist/{drawer-j9wcVE50.mjs.map → drawer-B3GpKBZs.mjs.map} +1 -1
- package/dist/{dropdown-menu-B_uBxY94.mjs → dropdown-menu-BjckWIZH.mjs} +1 -1
- package/dist/{dropdown-menu-B_uBxY94.mjs.map → dropdown-menu-BjckWIZH.mjs.map} +1 -1
- package/dist/features/descriptions/index.d.cts +7 -7
- package/dist/features/descriptions/index.d.mts +7 -7
- 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 +1 -1
- package/dist/features/tables/index.d.mts +2 -2
- package/dist/features/tables/index.mjs +1 -1
- package/dist/features/tanstack-form/index.cjs +1 -1
- package/dist/features/tanstack-form/index.d.cts +1 -1
- package/dist/features/tanstack-form/index.d.mts +1 -1
- package/dist/features/tanstack-form/index.mjs +1 -1
- package/dist/features/text-editor/index.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-B8RhxRCu.mjs → field-0SZIwI1Q.mjs} +2 -2
- package/dist/{field-B8RhxRCu.mjs.map → field-0SZIwI1Q.mjs.map} +1 -1
- package/dist/{field-BxFpcOV1.cjs → field-ThrHQOAI.cjs} +2 -2
- package/dist/{field-BxFpcOV1.cjs.map → field-ThrHQOAI.cjs.map} +1 -1
- package/dist/{flex-Bl5yzx6g.mjs → flex-BAcvp4lB.mjs} +1 -1
- package/dist/{flex-Bl5yzx6g.mjs.map → flex-BAcvp4lB.mjs.map} +1 -1
- package/dist/{heading-B1t9baTw.mjs → heading-woRh-IC7.mjs} +1 -1
- package/dist/{heading-B1t9baTw.mjs.map → heading-woRh-IC7.mjs.map} +1 -1
- package/dist/{image-C4gMBmyV.mjs → image-D2U1SBw5.mjs} +2 -2
- package/dist/{image-C4gMBmyV.mjs.map → image-D2U1SBw5.mjs.map} +1 -1
- package/dist/{index-DMUr1T2A.d.cts → index-B4tGZDYR.d.cts} +6 -6
- package/dist/{index-WCk8mTXV.d.mts → index-BFFBdGdv.d.mts} +361 -361
- package/dist/{index-cSJtvD9W.d.mts → index-BUi04v_-.d.mts} +6 -6
- package/dist/{index-22flsTNt.d.cts → index-Btd0a1HO.d.cts} +28 -28
- package/dist/{index-DDPBbVVt.d.cts → index-Cvjgsouk.d.cts} +361 -361
- package/dist/{index-DdqgMofm.d.mts → index-DWJlXfCi.d.mts} +28 -28
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -10
- package/dist/index.d.mts +9 -10
- package/dist/index.mjs +1 -1
- package/dist/{input-CEYWz7lS.d.cts → input-DHBWjFPA.d.cts} +7 -7
- package/dist/{input-CKFQdvqY.mjs → input-ESg91VId.mjs} +1 -1
- package/dist/{input-CKFQdvqY.mjs.map → input-ESg91VId.mjs.map} +1 -1
- package/dist/{input-BILuHVfC.d.mts → input-wQP8YLOp.d.mts} +7 -7
- package/dist/{label-BHbqbBtO.cjs → label-BzfsTrVt.cjs} +1 -1
- package/dist/{label-BHbqbBtO.cjs.map → label-BzfsTrVt.cjs.map} +1 -1
- package/dist/{label-CE2m0U_j.mjs → label-Cig7a9ON.mjs} +1 -1
- package/dist/{label-CE2m0U_j.mjs.map → label-Cig7a9ON.mjs.map} +1 -1
- package/dist/layouts/cms-layout/index.mjs +1 -1
- package/dist/layouts/flex.d.cts +10 -10
- package/dist/layouts/flex.d.mts +10 -10
- package/dist/layouts/flex.mjs +1 -1
- package/dist/layouts/payment-layout/index.cjs +1 -1
- package/dist/layouts/payment-layout/index.d.cts +3 -0
- package/dist/layouts/payment-layout/index.d.mts +3 -0
- 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/FeatureDeveloping.mjs +1 -1
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.mts +2 -2
- package/dist/pages/FeatureFixing.mjs +1 -1
- 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.cts +2 -2
- package/dist/pages/NotAuthorized.d.mts +2 -2
- package/dist/pages/NotAuthorized.mjs +1 -1
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.mts +2 -2
- package/dist/pages/NotFound.mjs +1 -1
- 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/{paragraph-J_QbLq9_.mjs → paragraph-CjstaJFj.mjs} +1 -1
- package/dist/{paragraph-J_QbLq9_.mjs.map → paragraph-CjstaJFj.mjs.map} +1 -1
- package/dist/{payment-layout-CafCw6lS.mjs → payment-layout-Bd4B4jhp.mjs} +2 -2
- package/dist/payment-layout-Bd4B4jhp.mjs.map +1 -0
- package/dist/{payment-layout-BkSC6JkI.cjs → payment-layout-kh0lLq71.cjs} +2 -2
- package/dist/payment-layout-kh0lLq71.cjs.map +1 -0
- package/dist/{popover-BCzVvfnV.mjs → popover-BXktOcLz.mjs} +2 -2
- package/dist/{popover-BCzVvfnV.mjs.map → popover-BXktOcLz.mjs.map} +1 -1
- package/dist/{popover-Bnrgg4do.cjs → popover-DACS7x0e.cjs} +1 -1
- package/dist/{popover-Bnrgg4do.cjs.map → popover-DACS7x0e.cjs.map} +1 -1
- package/dist/{progress-BcEEbgJJ.mjs → progress-bJYAFoHE.mjs} +1 -1
- package/dist/{progress-BcEEbgJJ.mjs.map → progress-bJYAFoHE.mjs.map} +1 -1
- package/dist/{radio-group-KR6Ck-B9.mjs → radio-group-CTILro-C.mjs} +1 -1
- package/dist/{radio-group-KR6Ck-B9.mjs.map → radio-group-CTILro-C.mjs.map} +1 -1
- package/dist/{resizable-em2svgMz.mjs → resizable-BNYc7hFd.mjs} +1 -1
- package/dist/{resizable-em2svgMz.mjs.map → resizable-BNYc7hFd.mjs.map} +1 -1
- package/dist/{search-modal-zmavzZRx.cjs → search-modal-CsYUvnWi.cjs} +2 -2
- package/dist/{search-modal-zmavzZRx.cjs.map → search-modal-CsYUvnWi.cjs.map} +1 -1
- package/dist/{search-modal-DyOsqK-4.mjs → search-modal-D4ESSOU-.mjs} +2 -2
- package/dist/{search-modal-DyOsqK-4.mjs.map → search-modal-D4ESSOU-.mjs.map} +1 -1
- package/dist/{select-DHiTqZeX.cjs → select-D0m78xbd.cjs} +1 -1
- package/dist/{select-DHiTqZeX.cjs.map → select-D0m78xbd.cjs.map} +1 -1
- package/dist/{select-C2Ro2wmj.mjs → select-DMGFb8TB.mjs} +1 -1
- package/dist/{select-C2Ro2wmj.mjs.map → select-DMGFb8TB.mjs.map} +1 -1
- package/dist/{separator-yTKDuMWb.mjs → separator-DVaVWuNc.mjs} +1 -1
- package/dist/{separator-yTKDuMWb.mjs.map → separator-DVaVWuNc.mjs.map} +1 -1
- package/dist/{sheet-DDBCHwn6.mjs → sheet-BoulTUHV.mjs} +1 -1
- package/dist/{sheet-DDBCHwn6.mjs.map → sheet-BoulTUHV.mjs.map} +1 -1
- package/dist/{sidebar-De1RZMAG.mjs → sidebar-xWo_Rfi-.mjs} +2 -2
- package/dist/{sidebar-De1RZMAG.mjs.map → sidebar-xWo_Rfi-.mjs.map} +1 -1
- package/dist/{skeleton-Czl96pWA.mjs → skeleton-DupQ91XW.mjs} +1 -1
- package/dist/{skeleton-Czl96pWA.mjs.map → skeleton-DupQ91XW.mjs.map} +1 -1
- package/dist/{spinner-CWUvnJQw.mjs → spinner-C2tF8jQt.mjs} +1 -1
- package/dist/{spinner-CWUvnJQw.mjs.map → spinner-C2tF8jQt.mjs.map} +1 -1
- package/dist/{switch-DHsjxnFP.mjs → switch-CY25L6l0.mjs} +1 -1
- package/dist/{switch-DHsjxnFP.mjs.map → switch-CY25L6l0.mjs.map} +1 -1
- package/dist/tables-BvdD0_el.mjs +4 -0
- package/dist/{tables-BQ-QiA1V.mjs.map → tables-BvdD0_el.mjs.map} +1 -1
- package/dist/{tables-LRWPOv2a.cjs → tables-D1SMzDFu.cjs} +2 -2
- package/dist/{tables-LRWPOv2a.cjs.map → tables-D1SMzDFu.cjs.map} +1 -1
- package/dist/{tanstack-form-Be6aIYAW.mjs → tanstack-form-Bof1jeRB.mjs} +2 -2
- package/dist/{tanstack-form-Be6aIYAW.mjs.map → tanstack-form-Bof1jeRB.mjs.map} +1 -1
- package/dist/{tanstack-form-CDgTokmf.cjs → tanstack-form-BulYI2bY.cjs} +2 -2
- package/dist/{tanstack-form-CDgTokmf.cjs.map → tanstack-form-BulYI2bY.cjs.map} +1 -1
- package/dist/{text-editor-CqC44BkO.mjs → text-editor-D61C1dng.mjs} +1 -1
- package/dist/{text-editor-CqC44BkO.mjs.map → text-editor-D61C1dng.mjs.map} +1 -1
- package/dist/{textarea-D0-Gltw6.mjs → textarea-B8eQoQaZ.mjs} +1 -1
- package/dist/{textarea-D0-Gltw6.mjs.map → textarea-B8eQoQaZ.mjs.map} +1 -1
- package/dist/{tooltip-BMdzWaaH.mjs → tooltip-BfBJRYpc.mjs} +1 -1
- package/dist/{tooltip-BMdzWaaH.mjs.map → tooltip-BfBJRYpc.mjs.map} +1 -1
- package/dist/{types-CuAlMviO.mjs → types-CFXgrpTm.mjs} +1 -1
- package/dist/{types-CuAlMviO.mjs.map → types-CFXgrpTm.mjs.map} +1 -1
- package/dist/{types-B2PQbMJL.d.mts → types-Cc_mLRAn.d.cts} +1 -1
- package/dist/{types-CLkAmCre.d.cts → types-DmTyKdm7.d.mts} +1 -1
- package/dist/typography/paragraph.d.cts +5 -5
- package/dist/typography/paragraph.d.mts +5 -5
- package/dist/typography/paragraph.mjs +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.mts +12 -12
- package/dist/ui/alert-dialog.mjs +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.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/badge.mjs +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.mts +8 -8
- package/dist/ui/breadcrumb.mjs +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/button.mjs +1 -1
- package/dist/ui/buttons/add-new.mjs +1 -1
- package/dist/ui/buttons/edit.mjs +1 -1
- package/dist/ui/buttons/refresh.mjs +1 -1
- package/dist/ui/buttons/trash.mjs +1 -1
- package/dist/ui/buttons/upload-image.mjs +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/card.mjs +1 -1
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.mts +7 -7
- package/dist/ui/carousel.mjs +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.d.cts +11 -11
- package/dist/ui/drawer.d.mts +11 -11
- package/dist/ui/drawer.mjs +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.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/image.mjs +1 -1
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.mts +5 -5
- 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.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.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 +9 -9
- 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/pagination.mjs +1 -1
- 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.d.cts +2 -2
- package/dist/ui/progress.d.mts +2 -2
- package/dist/ui/progress.mjs +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.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.d.cts +2 -2
- package/dist/ui/separator.d.mts +2 -2
- package/dist/ui/separator.mjs +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/skeleton.mjs +1 -1
- 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.d.cts +2 -2
- package/dist/ui/spinner.d.mts +2 -2
- package/dist/ui/spinner.mjs +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.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/ui/tooltip.mjs +1 -1
- package/dist/{user-DexjSvGZ.mjs → user-Cif7yb1w.mjs} +2 -2
- package/dist/{user-DexjSvGZ.mjs.map → user-Cif7yb1w.mjs.map} +1 -1
- package/package.json +1 -5
- package/dist/dialog-DEnyBH2X.cjs +0 -2
- package/dist/dialog-DEnyBH2X.cjs.map +0 -1
- package/dist/dialog-jqiIqxlm.mjs +0 -2
- package/dist/dialog-jqiIqxlm.mjs.map +0 -1
- package/dist/payment-layout-BkSC6JkI.cjs.map +0 -1
- package/dist/payment-layout-CafCw6lS.mjs.map +0 -1
- package/dist/tables-BQ-QiA1V.mjs +0 -4
- package/dist/ui/sidebar.cjs +0 -2
- package/dist/ui/sidebar.cjs.map +0 -1
- package/dist/ui/sidebar.d.cts +0 -264
- package/dist/ui/sidebar.d.mts +0 -264
- package/dist/ui/sidebar.mjs +0 -2
- package/dist/ui/sidebar.mjs.map +0 -1
package/dist/ui/table.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react99 from "react";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/table.d.ts
|
|
4
4
|
|
|
@@ -29,45 +29,45 @@ import * as react170 from "react";
|
|
|
29
29
|
* </Table>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const Table:
|
|
32
|
+
declare const Table: react99.MemoExoticComponent<({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"table">) =>
|
|
35
|
+
}: React.ComponentProps<"table">) => react99.JSX.Element>;
|
|
36
36
|
/** The `<thead>` element containing one or more header rows. */
|
|
37
|
-
declare const TableHeader:
|
|
37
|
+
declare const TableHeader: react99.MemoExoticComponent<({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<"thead">) =>
|
|
40
|
+
}: React.ComponentProps<"thead">) => react99.JSX.Element>;
|
|
41
41
|
/** The `<tbody>` element containing data rows with hover and selection styling. */
|
|
42
|
-
declare const TableBody:
|
|
42
|
+
declare const TableBody: react99.MemoExoticComponent<({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"tbody">) =>
|
|
45
|
+
}: React.ComponentProps<"tbody">) => react99.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: react99.MemoExoticComponent<({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"tfoot">) =>
|
|
50
|
+
}: React.ComponentProps<"tfoot">) => react99.JSX.Element>;
|
|
51
51
|
/** A single `<tr>` row used inside TableHeader, TableBody, or TableFooter. */
|
|
52
|
-
declare const TableRow:
|
|
52
|
+
declare const TableRow: react99.MemoExoticComponent<({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<"tr">) =>
|
|
55
|
+
}: React.ComponentProps<"tr">) => react99.JSX.Element>;
|
|
56
56
|
/** A `<th>` column header cell with medium-weight text and left alignment. */
|
|
57
|
-
declare const TableHead:
|
|
57
|
+
declare const TableHead: react99.MemoExoticComponent<({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<"th">) =>
|
|
60
|
+
}: React.ComponentProps<"th">) => react99.JSX.Element>;
|
|
61
61
|
/** A standard `<td>` data cell used inside a TableRow. */
|
|
62
|
-
declare const TableCell:
|
|
62
|
+
declare const TableCell: react99.MemoExoticComponent<({
|
|
63
63
|
className,
|
|
64
64
|
...props
|
|
65
|
-
}: React.ComponentProps<"td">) =>
|
|
65
|
+
}: React.ComponentProps<"td">) => react99.JSX.Element>;
|
|
66
66
|
/** An accessible `<caption>` element displayed below the table. */
|
|
67
|
-
declare const TableCaption:
|
|
67
|
+
declare const TableCaption: react99.MemoExoticComponent<({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<"caption">) =>
|
|
70
|
+
}: React.ComponentProps<"caption">) => react99.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 react107 from "react";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/table.d.ts
|
|
4
4
|
|
|
@@ -29,45 +29,45 @@ import * as react265 from "react";
|
|
|
29
29
|
* </Table>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const Table:
|
|
32
|
+
declare const Table: react107.MemoExoticComponent<({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"table">) =>
|
|
35
|
+
}: React.ComponentProps<"table">) => react107.JSX.Element>;
|
|
36
36
|
/** The `<thead>` element containing one or more header rows. */
|
|
37
|
-
declare const TableHeader:
|
|
37
|
+
declare const TableHeader: react107.MemoExoticComponent<({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<"thead">) =>
|
|
40
|
+
}: React.ComponentProps<"thead">) => react107.JSX.Element>;
|
|
41
41
|
/** The `<tbody>` element containing data rows with hover and selection styling. */
|
|
42
|
-
declare const TableBody:
|
|
42
|
+
declare const TableBody: react107.MemoExoticComponent<({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"tbody">) =>
|
|
45
|
+
}: React.ComponentProps<"tbody">) => react107.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: react107.MemoExoticComponent<({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"tfoot">) =>
|
|
50
|
+
}: React.ComponentProps<"tfoot">) => react107.JSX.Element>;
|
|
51
51
|
/** A single `<tr>` row used inside TableHeader, TableBody, or TableFooter. */
|
|
52
|
-
declare const TableRow:
|
|
52
|
+
declare const TableRow: react107.MemoExoticComponent<({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<"tr">) =>
|
|
55
|
+
}: React.ComponentProps<"tr">) => react107.JSX.Element>;
|
|
56
56
|
/** A `<th>` column header cell with medium-weight text and left alignment. */
|
|
57
|
-
declare const TableHead:
|
|
57
|
+
declare const TableHead: react107.MemoExoticComponent<({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<"th">) =>
|
|
60
|
+
}: React.ComponentProps<"th">) => react107.JSX.Element>;
|
|
61
61
|
/** A standard `<td>` data cell used inside a TableRow. */
|
|
62
|
-
declare const TableCell:
|
|
62
|
+
declare const TableCell: react107.MemoExoticComponent<({
|
|
63
63
|
className,
|
|
64
64
|
...props
|
|
65
|
-
}: React.ComponentProps<"td">) =>
|
|
65
|
+
}: React.ComponentProps<"td">) => react107.JSX.Element>;
|
|
66
66
|
/** An accessible `<caption>` element displayed below the table. */
|
|
67
|
-
declare const TableCaption:
|
|
67
|
+
declare const TableCaption: react107.MemoExoticComponent<({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<"caption">) =>
|
|
70
|
+
}: React.ComponentProps<"caption">) => react107.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 react158 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>): react158.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>): react158.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>): react158.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>): react158.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 react144 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>): react144.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>): react144.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>): react144.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>): react144.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
44
44
|
//# sourceMappingURL=tabs.d.mts.map
|
package/dist/ui/textarea.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react171 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
|
+
}): react171.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 react198 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
|
+
}): react198.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-B8eQoQaZ.mjs";export{e as Textarea};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toggleVariants } from "./toggle.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react185 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>): react185.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>): react185.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 react105 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>): react105.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>): react105.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 react170 from "react";
|
|
2
|
+
import * as class_variance_authority_types7 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?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types7.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>): react170.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 react196 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_types7 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?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types7.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>): react196.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 react223 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>): react223.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>): react223.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>): react223.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>): react223.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 react100 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>): react100.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>): react100.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>): react100.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>): react100.JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
55
55
|
//# sourceMappingURL=tooltip.d.mts.map
|
package/dist/ui/tooltip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{i as e,n as t,r as n,t as r}from"../tooltip-
|
|
1
|
+
"use client";import{i as e,n as t,r as n,t as r}from"../tooltip-BfBJRYpc.mjs";export{r as Tooltip,t as TooltipContent,n as TooltipProvider,e as TooltipTrigger};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./paragraph-
|
|
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-1SuFoI5h.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-Cif7yb1w.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-
|
|
1
|
+
{"version":3,"file":"user-Cif7yb1w.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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customafk/lunas-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
4
4
|
"description": "UI library for Lunas Enterprise",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -364,10 +364,6 @@
|
|
|
364
364
|
"require": "./dist/ui/sheet.cjs",
|
|
365
365
|
"import": "./dist/ui/sheet.mjs"
|
|
366
366
|
},
|
|
367
|
-
"./ui/sidebar": {
|
|
368
|
-
"require": "./dist/ui/sidebar.cjs",
|
|
369
|
-
"import": "./dist/ui/sidebar.mjs"
|
|
370
|
-
},
|
|
371
367
|
"./ui/skeleton": {
|
|
372
368
|
"require": "./dist/ui/skeleton.cjs",
|
|
373
369
|
"import": "./dist/ui/skeleton.mjs"
|
package/dist/dialog-DEnyBH2X.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./heading-wUXEbicM.cjs`),n=require(`./paragraph-D-JHj7EP.cjs`),r=require(`./close-DUBEKxhw.cjs`);let i=require(`@customafk/react-toolkit/utils`),a=require(`react/jsx-runtime`),o=require(`radix-ui`);function s({...e}){return(0,a.jsx)(o.Dialog.Root,{"data-slot":`dialog`,...e})}function c({...e}){return(0,a.jsx)(o.Dialog.Trigger,{"data-slot":`dialog-trigger`,...e})}function l({...e}){return(0,a.jsx)(o.Dialog.Portal,{"data-slot":`dialog-portal`,...e})}function u({...e}){return(0,a.jsx)(o.Dialog.Close,{"data-slot":`dialog-close`,...e})}function d({className:e,...t}){return(0,a.jsx)(o.Dialog.Overlay,{"data-slot":`dialog-overlay`,className:(0,i.cn)(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0`,e),...t})}function f({className:e,children:t,showCloseButton:n=!0,...s}){return(0,a.jsxs)(l,{children:[(0,a.jsx)(d,{}),(0,a.jsxs)(o.Dialog.Content,{"data-slot":`dialog-content`,className:(0,i.cn)(`fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2`,`grid w-full max-w-[calc(100%-2rem)] bg-background`,`max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-200`,`sm:max-w-lg`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80`,e),...s,children:[t,n&&(0,a.jsx)(o.Dialog.Close,{"data-slot":`dialog-close`,tabIndex:-1,asChild:!0,className:`absolute top-3 right-3`,children:(0,a.jsx)(r.t,{})})]})]})}function p({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`dialog-header`,className:(0,i.cn)(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function m({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`dialog-footer`,className:(0,i.cn)(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function h({className:e,...n}){return(0,a.jsx)(o.Dialog.Title,{"data-slot":`dialog-title`,className:(0,i.cn)(t.t({level:`h3`}),e),...n})}function g({className:e,...t}){return(0,a.jsx)(o.Dialog.Description,{"data-slot":`dialog-description`,className:(0,i.cn)(n.n({variant:`muted`}),e),...t})}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return c}});
|
|
2
|
-
//# sourceMappingURL=dialog-DEnyBH2X.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-DEnyBH2X.cjs","names":["DialogPrimitive","CloseButton","headingVariants","paragraphVariants"],"sources":["../packages/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { CloseButton } from './buttons/close';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\n\n/**\n * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.\n *\n * @example\n * ```tsx\n * import {\n * Dialog, DialogTrigger, DialogContent,\n * DialogHeader, DialogTitle, DialogDescription, DialogFooter,\n * } from '@customafk/lunas-ui/ui/dialog';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Dialog>\n * <DialogTrigger asChild>\n * <Button>Open dialog</Button>\n * </DialogTrigger>\n * <DialogContent>\n * <DialogHeader>\n * <DialogTitle>Confirm action</DialogTitle>\n * <DialogDescription>This cannot be undone.</DialogDescription>\n * </DialogHeader>\n * <DialogFooter>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </DialogFooter>\n * </DialogContent>\n * </Dialog>\n * ```\n */\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/** Renders dialog overlay and content into a portal outside the normal React tree. */\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\n/** Button that closes the dialog; can be composed with `asChild` to use a custom element. */\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\n/** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */\nfunction DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0',\n className\n )}\n {...props}\n />\n );\n}\n\n/**\n * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.\n *\n * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.\n */\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] bg-background',\n 'max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-200',\n 'sm:max-w-lg',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80',\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" tabIndex={-1} asChild className=\"absolute top-3 right-3\">\n <CloseButton />\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />;\n}\n\n/** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />;\n}\n\n/** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return <DialogPrimitive.Title data-slot=\"dialog-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */\nfunction DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return <DialogPrimitive.Description data-slot=\"dialog-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\nexport { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };\n"],"mappings":"yPAqCA,SAAS,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,iCACA,2DACA,iEACA,EACD,CACD,GAAI,GACJ,CASN,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAIF,CACD,OACE,EAAA,EAAA,MAAC,EAAA,CAAA,SAAA,EACC,EAAA,EAAA,KAAC,EAAA,EAAA,CAAgB,EACjB,EAAA,EAAA,MAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,gEACA,oDACA,8EACA,cACA,wFACA,iGACA,EACD,CACD,GAAI,YAEH,EACA,IACC,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,SAAU,GAAI,QAAA,GAAQ,UAAU,mCAC9E,EAAA,EAAA,KAACC,EAAAA,EAAAA,EAAAA,CAAc,EACO,CAAA,EAEF,CAAA,CAAA,CACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,+CAAgD,EAAU,CAAE,GAAI,GAAS,CAI/H,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,yDAA0D,EAAU,CAAE,GAAI,GAAS,CAIzI,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAAA,EAAA,KAACD,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,WAAA,EAAA,EAAA,IAAcE,EAAAA,EAAgB,CAAE,MAAO,KAAM,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS,CAIlI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAAA,EAAA,KAACF,EAAAA,OAAgB,YAAA,CAAY,YAAU,qBAAqB,WAAA,EAAA,EAAA,IAAcG,EAAAA,EAAkB,CAAE,QAAS,QAAS,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS"}
|
package/dist/dialog-jqiIqxlm.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./heading-B1t9baTw.mjs";import{n as t}from"./paragraph-J_QbLq9_.mjs";import{t as n}from"./close-BMhGSmGs.mjs";import{cn as r}from"@customafk/react-toolkit/utils";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{Dialog as o}from"radix-ui";function s({...e}){return i(o.Root,{"data-slot":`dialog`,...e})}function c({...e}){return i(o.Trigger,{"data-slot":`dialog-trigger`,...e})}function l({...e}){return i(o.Portal,{"data-slot":`dialog-portal`,...e})}function u({...e}){return i(o.Close,{"data-slot":`dialog-close`,...e})}function d({className:e,...t}){return i(o.Overlay,{"data-slot":`dialog-overlay`,className:r(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0`,e),...t})}function f({className:e,children:t,showCloseButton:s=!0,...c}){return a(l,{children:[i(d,{}),a(o.Content,{"data-slot":`dialog-content`,className:r(`fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2`,`grid w-full max-w-[calc(100%-2rem)] bg-background`,`max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-200`,`sm:max-w-lg`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80`,e),...c,children:[t,s&&i(o.Close,{"data-slot":`dialog-close`,tabIndex:-1,asChild:!0,className:`absolute top-3 right-3`,children:i(n,{})})]})]})}function p({className:e,...t}){return i(`div`,{"data-slot":`dialog-header`,className:r(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function m({className:e,...t}){return i(`div`,{"data-slot":`dialog-footer`,className:r(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function h({className:t,...n}){return i(o.Title,{"data-slot":`dialog-title`,className:r(e({level:`h3`}),t),...n})}function g({className:e,...n}){return i(o.Description,{"data-slot":`dialog-description`,className:r(t({variant:`muted`}),e),...n})}export{m as a,l as c,g as i,h as l,u as n,p as o,f as r,d as s,s as t,c as u};
|
|
2
|
-
//# sourceMappingURL=dialog-jqiIqxlm.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-jqiIqxlm.mjs","names":["Dialog","DialogPrimitive"],"sources":["../packages/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { CloseButton } from './buttons/close';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\n\n/**\n * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.\n *\n * @example\n * ```tsx\n * import {\n * Dialog, DialogTrigger, DialogContent,\n * DialogHeader, DialogTitle, DialogDescription, DialogFooter,\n * } from '@customafk/lunas-ui/ui/dialog';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Dialog>\n * <DialogTrigger asChild>\n * <Button>Open dialog</Button>\n * </DialogTrigger>\n * <DialogContent>\n * <DialogHeader>\n * <DialogTitle>Confirm action</DialogTitle>\n * <DialogDescription>This cannot be undone.</DialogDescription>\n * </DialogHeader>\n * <DialogFooter>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </DialogFooter>\n * </DialogContent>\n * </Dialog>\n * ```\n */\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/** Renders dialog overlay and content into a portal outside the normal React tree. */\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\n/** Button that closes the dialog; can be composed with `asChild` to use a custom element. */\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\n/** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */\nfunction DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0',\n className\n )}\n {...props}\n />\n );\n}\n\n/**\n * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.\n *\n * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.\n */\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] bg-background',\n 'max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-200',\n 'sm:max-w-lg',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80',\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" tabIndex={-1} asChild className=\"absolute top-3 right-3\">\n <CloseButton />\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />;\n}\n\n/** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />;\n}\n\n/** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return <DialogPrimitive.Title data-slot=\"dialog-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */\nfunction DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return <DialogPrimitive.Description data-slot=\"dialog-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\nexport { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };\n"],"mappings":"yQAqCA,SAASA,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAACC,EAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAACA,EAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAACA,EAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,iCACA,2DACA,iEACA,EACD,CACD,GAAI,GACJ,CASN,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAIF,CACD,OACE,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,EAAA,CAAgB,CACjB,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,gEACA,oDACA,8EACA,cACA,wFACA,iGACA,EACD,CACD,GAAI,YAEH,EACA,GACC,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,SAAU,GAAI,QAAA,GAAQ,UAAU,kCAC9E,EAAC,EAAA,EAAA,CAAc,EACO,CAAA,EAEF,CAAA,CAAA,CACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,+CAAgD,EAAU,CAAE,GAAI,GAAS,CAI/H,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,yDAA0D,EAAU,CAAE,GAAI,GAAS,CAIzI,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,UAAW,EAAG,EAAgB,CAAE,MAAO,KAAM,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS,CAIlI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAACA,EAAgB,YAAA,CAAY,YAAU,qBAAqB,UAAW,EAAG,EAAkB,CAAE,QAAS,QAAS,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS"}
|