@customafk/lunas-ui 0.0.90 → 0.0.91
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/{add-new-CQefL6PU.cjs → add-new-Dv7zlN-B.cjs} +2 -2
- package/dist/{add-new-CQefL6PU.cjs.map → add-new-Dv7zlN-B.cjs.map} +1 -1
- package/dist/{add-new-ChBwRRMT.js → add-new-yRbAl8jO.js} +2 -2
- package/dist/{add-new-ChBwRRMT.js.map → add-new-yRbAl8jO.js.map} +1 -1
- package/dist/{alert-dialog-BfKVH-9l.js → alert-dialog-Di6rTULI.js} +1 -1
- package/dist/{alert-dialog-BfKVH-9l.js.map → alert-dialog-Di6rTULI.js.map} +1 -1
- package/dist/{alert-dialog-mR3avgRt.cjs → alert-dialog-DmsZNeeJ.cjs} +1 -1
- package/dist/{alert-dialog-mR3avgRt.cjs.map → alert-dialog-DmsZNeeJ.cjs.map} +1 -1
- package/dist/{avatar-DmMCBvb6.cjs → avatar-CAr8qOV9.cjs} +1 -1
- package/dist/{avatar-DmMCBvb6.cjs.map → avatar-CAr8qOV9.cjs.map} +1 -1
- package/dist/{avatar-iX5Jhj8E.js → avatar-zx6-WY2L.js} +1 -1
- package/dist/{avatar-iX5Jhj8E.js.map → avatar-zx6-WY2L.js.map} +1 -1
- package/dist/{badge-tjlLdDGl.js → badge-DFlMOdsm.js} +1 -1
- package/dist/{badge-tjlLdDGl.js.map → badge-DFlMOdsm.js.map} +1 -1
- package/dist/{badge-AM9m3CFI.cjs → badge-_7ZCk7u2.cjs} +1 -1
- package/dist/{badge-AM9m3CFI.cjs.map → badge-_7ZCk7u2.cjs.map} +1 -1
- package/dist/{button--4Up8V16.d.ts → button-BP2S40Lh.d.ts} +4 -4
- package/dist/{button-DvLPviNh.d.cts → button-BuyrlYHs.d.cts} +6 -6
- package/dist/{calendar-Brdd41FH.cjs → calendar-D_C_Qeu7.cjs} +1 -1
- package/dist/{calendar-Brdd41FH.cjs.map → calendar-D_C_Qeu7.cjs.map} +1 -1
- package/dist/{calendar-Diid0R3S.js → calendar-et-igmiY.js} +1 -1
- package/dist/{calendar-Diid0R3S.js.map → calendar-et-igmiY.js.map} +1 -1
- package/dist/{command-UXLmHGja.js → command-BvHe__3s.js} +2 -2
- package/dist/{command-UXLmHGja.js.map → command-BvHe__3s.js.map} +1 -1
- package/dist/{command-C13pL2M3.cjs → command-CevqI1YQ.cjs} +2 -2
- package/dist/{command-C13pL2M3.cjs.map → command-CevqI1YQ.cjs.map} +1 -1
- package/dist/{command-DvZTC5Zs.d.cts → command-FHT81qCY.d.cts} +12 -12
- package/dist/{command-DCxlE_7w.d.ts → command-mz4oiB8D.d.ts} +12 -12
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.js +1 -1
- package/dist/data-display/data-list.cjs +1 -1
- package/dist/data-display/data-list.js +1 -1
- package/dist/data-display/date-tooltip.cjs +1 -1
- package/dist/data-display/date-tooltip.js +1 -1
- package/dist/data-display/date.cjs +1 -1
- package/dist/data-display/date.js +1 -1
- package/dist/data-display/empty.cjs +1 -1
- package/dist/data-display/empty.d.cts +2 -2
- package/dist/data-display/empty.d.ts +2 -2
- package/dist/data-display/empty.js +1 -1
- package/dist/data-display/name.cjs +1 -1
- package/dist/data-display/name.js +1 -1
- package/dist/data-display/phone-number.cjs +1 -1
- package/dist/data-display/phone-number.js +1 -1
- package/dist/data-display/role-badge.cjs +1 -1
- package/dist/data-display/role-badge.js +1 -1
- package/dist/data-display/statistic.cjs +1 -1
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/data-display/statistic.js +1 -1
- package/dist/data-display/user.cjs +1 -1
- package/dist/data-display/user.js +1 -1
- package/dist/{date-CgzMwDPN.js → date-BIb58beV.js} +1 -1
- package/dist/{date-CgzMwDPN.js.map → date-BIb58beV.js.map} +1 -1
- package/dist/{date-BEyT-xKi.cjs → date-Bv13VRWU.cjs} +1 -1
- package/dist/{date-BEyT-xKi.cjs.map → date-Bv13VRWU.cjs.map} +1 -1
- package/dist/{dialog-BBODhbxh.cjs → dialog-Bd723gV6.cjs} +1 -1
- package/dist/{dialog-BBODhbxh.cjs.map → dialog-Bd723gV6.cjs.map} +1 -1
- package/dist/{dialog-FTlFnjJF.d.cts → dialog-DEixzKid.d.cts} +12 -12
- package/dist/{dialog-BqaZEo5j.d.ts → dialog-JtlljVFY.d.ts} +12 -12
- package/dist/{dialog-BAlJ18xi.js → dialog-OTHc6G5i.js} +1 -1
- package/dist/{dialog-BAlJ18xi.js.map → dialog-OTHc6G5i.js.map} +1 -1
- package/dist/dialogs/confirm-dialog.cjs +1 -1
- package/dist/dialogs/confirm-dialog.js +1 -1
- package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +4 -4
- package/dist/dialogs/detail-dialog/component/sidebar.js +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.js +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/dialogs/form-dialog.d.ts +2 -2
- package/dist/dialogs/form-dialog.js +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.js +1 -1
- package/dist/{drawer-BT0osH1O.js → drawer-B0PYArcE.js} +1 -1
- package/dist/{drawer-BT0osH1O.js.map → drawer-B0PYArcE.js.map} +1 -1
- package/dist/{drawer-C3vvvU_D.cjs → drawer-CmRrJYoS.cjs} +1 -1
- package/dist/{drawer-C3vvvU_D.cjs.map → drawer-CmRrJYoS.cjs.map} +1 -1
- package/dist/{error-dialog-DMGVy3dG.js → error-dialog-_FqKuIY6.js} +2 -2
- package/dist/{error-dialog-DMGVy3dG.js.map → error-dialog-_FqKuIY6.js.map} +1 -1
- package/dist/{error-dialog-BVTB1EEF.cjs → error-dialog-pTwyWIE5.cjs} +2 -2
- package/dist/{error-dialog-BVTB1EEF.cjs.map → error-dialog-pTwyWIE5.cjs.map} +1 -1
- package/dist/{field-A43YZ5Wj.cjs → field-B_qC62YD.cjs} +2 -2
- package/dist/{field-A43YZ5Wj.cjs.map → field-B_qC62YD.cjs.map} +1 -1
- package/dist/{field-CGacT8J3.js → field-DSScKMdZ.js} +2 -2
- package/dist/{field-CGacT8J3.js.map → field-DSScKMdZ.js.map} +1 -1
- package/dist/{flex-D6XrXRQW.js → flex-BJgsQWLI.js} +1 -1
- package/dist/{flex-D6XrXRQW.js.map → flex-BJgsQWLI.js.map} +1 -1
- package/dist/{flex-B4klVEz9.cjs → flex-DgmCJ9Bz.cjs} +1 -1
- package/dist/{flex-B4klVEz9.cjs.map → flex-DgmCJ9Bz.cjs.map} +1 -1
- package/dist/{form-B_tL9lO4.js → form-DbknMHac.js} +2 -2
- package/dist/{form-B_tL9lO4.js.map → form-DbknMHac.js.map} +1 -1
- package/dist/{form-DV9tQbiO.cjs → form-t4WaMbFV.cjs} +2 -2
- package/dist/{form-DV9tQbiO.cjs.map → form-t4WaMbFV.cjs.map} +1 -1
- package/dist/{form-wrapper-BYwaFsJd.js → form-wrapper-BbZebVv0.js} +2 -2
- package/dist/{form-wrapper-BYwaFsJd.js.map → form-wrapper-BbZebVv0.js.map} +1 -1
- package/dist/{form-wrapper-CODuD3w6.cjs → form-wrapper-DImTyC_E.cjs} +2 -2
- package/dist/{form-wrapper-CODuD3w6.cjs.map → form-wrapper-DImTyC_E.cjs.map} +1 -1
- package/dist/forms/combobox-field.cjs +1 -1
- package/dist/forms/combobox-field.d.cts +2 -2
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/combobox-field.js +1 -1
- package/dist/forms/date-field.cjs +1 -1
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/date-field.d.ts +2 -2
- package/dist/forms/date-field.js +1 -1
- package/dist/forms/form-wrapper.cjs +1 -1
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/form-wrapper.js +1 -1
- package/dist/forms/multi-select-field.cjs +1 -1
- package/dist/forms/multi-select-field.cjs.map +1 -1
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/multi-select-field.js +1 -1
- package/dist/forms/number-field.cjs +1 -1
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/number-field.js +1 -1
- package/dist/forms/password-field.cjs +1 -1
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/password-field.js +1 -1
- package/dist/forms/select-field.cjs +1 -1
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/select-field.js +1 -1
- package/dist/forms/switch-field.cjs +1 -1
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/switch-field.js +1 -1
- package/dist/forms/text-field.cjs +1 -1
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/text-field.js +1 -1
- package/dist/forms/textarea-field.cjs +1 -1
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/forms/textarea-field.js +1 -1
- package/dist/{input-BStypTnq.js → input-B-l6tT_9.js} +1 -1
- package/dist/{input-BStypTnq.js.map → input-B-l6tT_9.js.map} +1 -1
- package/dist/{input-ChVagjGs.d.cts → input-BYy6D7Ol.d.cts} +3 -3
- package/dist/{input-D_tClptL.cjs → input-D7aXVX7j.cjs} +1 -1
- package/dist/{input-D_tClptL.cjs.map → input-D7aXVX7j.cjs.map} +1 -1
- package/dist/{input-_Uc9Nudu.d.ts → input-DooN2x6N.d.ts} +3 -3
- package/dist/label-7ZZm6YlQ.d.cts +11 -0
- package/dist/{label--w6MDGCn.d.ts → label-BATJfW0U.d.ts} +3 -3
- package/dist/{label-D6mAvVmw.cjs → label-BMBHBFRY.cjs} +1 -1
- package/dist/{label-D6mAvVmw.cjs.map → label-BMBHBFRY.cjs.map} +1 -1
- package/dist/{label-CdrxlBJ8.js → label-CRhvNQY4.js} +1 -1
- package/dist/{label-CdrxlBJ8.js.map → label-CRhvNQY4.js.map} +1 -1
- package/dist/layouts/app-layout/index.cjs +1 -1
- package/dist/layouts/app-layout/index.d.cts +26 -26
- package/dist/layouts/app-layout/index.d.ts +28 -28
- package/dist/layouts/app-layout/index.js +1 -1
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +7 -7
- package/dist/layouts/flex.d.ts +7 -7
- package/dist/layouts/flex.js +1 -1
- package/dist/layouts/service-layout/index.cjs +1 -1
- package/dist/layouts/service-layout/index.cjs.map +1 -1
- package/dist/layouts/service-layout/index.d.cts +19 -17
- package/dist/layouts/service-layout/index.d.ts +17 -15
- package/dist/layouts/service-layout/index.js +1 -1
- package/dist/layouts/service-layout/index.js.map +1 -1
- package/dist/{multi-select-Bqqk4Tiu.js → multi-select-CQdR0wzH.js} +2 -2
- package/dist/{multi-select-Bqqk4Tiu.js.map → multi-select-CQdR0wzH.js.map} +1 -1
- package/dist/{multi-select-DFaIxSYQ.cjs → multi-select-Dl54UfMM.cjs} +2 -2
- package/dist/{multi-select-DFaIxSYQ.cjs.map → multi-select-Dl54UfMM.cjs.map} +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.ts +2 -2
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.ts +2 -2
- package/dist/pages/NotAuthorized.d.cts +2 -2
- package/dist/pages/NotAuthorized.d.ts +2 -2
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.ts +2 -2
- package/dist/{paragraph-Q7vk3BSp.cjs → paragraph-Dl6mLo1q.cjs} +1 -1
- package/dist/{paragraph-Q7vk3BSp.cjs.map → paragraph-Dl6mLo1q.cjs.map} +1 -1
- package/dist/{paragraph-B9fp9JaI.js → paragraph-EiPvpYGr.js} +1 -1
- package/dist/{paragraph-B9fp9JaI.js.map → paragraph-EiPvpYGr.js.map} +1 -1
- package/dist/{popover-D6vyPDKA.cjs → popover-DODAZTiX.cjs} +1 -1
- package/dist/{popover-D6vyPDKA.cjs.map → popover-DODAZTiX.cjs.map} +1 -1
- package/dist/{popover-BnzoeyDG.js → popover-l3a5exlI.js} +1 -1
- package/dist/{popover-BnzoeyDG.js.map → popover-l3a5exlI.js.map} +1 -1
- package/dist/products/product-loading-page.cjs +1 -1
- package/dist/products/product-loading-page.js +1 -1
- package/dist/products/product-quantity-control.cjs +1 -1
- package/dist/products/product-quantity-control.d.cts +2 -2
- package/dist/products/product-quantity-control.d.ts +2 -2
- package/dist/products/product-quantity-control.js +1 -1
- package/dist/{refresh-MkZTkXVm.js → refresh-DHZZ9DV4.js} +2 -2
- package/dist/{refresh-MkZTkXVm.js.map → refresh-DHZZ9DV4.js.map} +1 -1
- package/dist/{refresh-DGM3XAqT.cjs → refresh-NRTjXWBR.cjs} +2 -2
- package/dist/{refresh-DGM3XAqT.cjs.map → refresh-NRTjXWBR.cjs.map} +1 -1
- package/dist/{search-input-B_rAonEV.js → search-input-CMNLrUk0.js} +2 -2
- package/dist/{search-input-B_rAonEV.js.map → search-input-CMNLrUk0.js.map} +1 -1
- package/dist/{search-input-DsQEWS7b.cjs → search-input-p1W5kb6R.cjs} +2 -2
- package/dist/{search-input-DsQEWS7b.cjs.map → search-input-p1W5kb6R.cjs.map} +1 -1
- package/dist/{select-BD7dul2u.cjs → select-DfJYL2rL.cjs} +1 -1
- package/dist/{select-BD7dul2u.cjs.map → select-DfJYL2rL.cjs.map} +1 -1
- package/dist/{select-B8sXsuUI.js → select-czrPwYWJ.js} +1 -1
- package/dist/{select-B8sXsuUI.js.map → select-czrPwYWJ.js.map} +1 -1
- package/dist/{separator-DMMoR-d2.cjs → separator-BAyL2IIW.cjs} +1 -1
- package/dist/{separator-DMMoR-d2.cjs.map → separator-BAyL2IIW.cjs.map} +1 -1
- package/dist/{separator-CrQFgLB_.d.cts → separator-BhGNy7Ns.d.ts} +1 -1
- package/dist/{separator-D17HxS2f.js → separator-C5dPRhYx.js} +1 -1
- package/dist/{separator-D17HxS2f.js.map → separator-C5dPRhYx.js.map} +1 -1
- package/dist/{separator-CLCuP1xE.d.ts → separator-D_c8h0Aq.d.cts} +3 -3
- package/dist/{sidebar-GgMyovhB.cjs → sidebar-CEWGDBq6.cjs} +2 -2
- package/dist/{sidebar-GgMyovhB.cjs.map → sidebar-CEWGDBq6.cjs.map} +1 -1
- package/dist/{sidebar-CSbPdy7R.js → sidebar-CY2pOm9W.js} +2 -2
- package/dist/{sidebar-CSbPdy7R.js.map → sidebar-CY2pOm9W.js.map} +1 -1
- package/dist/{switch-DwBg-iL4.js → switch-B5eIeKX7.js} +1 -1
- package/dist/{switch-DwBg-iL4.js.map → switch-B5eIeKX7.js.map} +1 -1
- package/dist/{switch-o_YbWKw4.cjs → switch-C6peIJVm.cjs} +1 -1
- package/dist/{switch-o_YbWKw4.cjs.map → switch-C6peIJVm.cjs.map} +1 -1
- package/dist/table/index.cjs +1 -1
- package/dist/table/index.cjs.map +1 -1
- package/dist/table/index.d.cts +2 -2
- package/dist/table/index.d.ts +2 -2
- package/dist/table/index.js +1 -1
- package/dist/{textarea-TGDtYde1.js → textarea-BVj6PCYB.js} +1 -1
- package/dist/{textarea-TGDtYde1.js.map → textarea-BVj6PCYB.js.map} +1 -1
- package/dist/{textarea-BHME8i5L.cjs → textarea-C3ZQALlB.cjs} +1 -1
- package/dist/{textarea-BHME8i5L.cjs.map → textarea-C3ZQALlB.cjs.map} +1 -1
- package/dist/{toggle-ZmWe85dU.d.cts → toggle-Bj-orQro.d.ts} +4 -4
- package/dist/{toggle-1Tlu1OKT.d.ts → toggle-BvgvHcLZ.d.cts} +4 -4
- package/dist/{tooltip-BEEk7osU.d.ts → tooltip-DTDkf-An.d.ts} +6 -6
- package/dist/{tooltip-BgwfJliB.d.cts → tooltip-DfswK7wk.d.cts} +6 -6
- package/dist/{tooltip-uaF-pxx8.cjs → tooltip-pmQZf5Bt.cjs} +1 -1
- package/dist/{tooltip-uaF-pxx8.cjs.map → tooltip-pmQZf5Bt.cjs.map} +1 -1
- package/dist/{tooltip-BTrjCwd8.js → tooltip-xp6RiroA.js} +1 -1
- package/dist/{tooltip-BTrjCwd8.js.map → tooltip-xp6RiroA.js.map} +1 -1
- package/dist/{types-D32qXHff.cjs → types-Bfxd7F-g.cjs} +1 -1
- package/dist/{types-D32qXHff.cjs.map → types-Bfxd7F-g.cjs.map} +1 -1
- package/dist/{types-BiiGENwa.js → types-bhmvOEvz.js} +1 -1
- package/dist/{types-BiiGENwa.js.map → types-bhmvOEvz.js.map} +1 -1
- package/dist/typography/paragraph.cjs +1 -1
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/paragraph.js +1 -1
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert.d.cts +7 -7
- package/dist/ui/alert.d.ts +7 -7
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.cjs +1 -1
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +3 -3
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button-group.cjs +1 -1
- package/dist/ui/button-group.d.cts +8 -8
- package/dist/ui/button-group.d.ts +8 -8
- package/dist/ui/button-group.js +1 -1
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.js +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.js +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/calendar.js +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/command.js +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.cjs +1 -1
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/drawer.cjs +1 -1
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.ts +11 -11
- package/dist/ui/drawer.js +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/field.cjs +1 -1
- package/dist/ui/field.d.cts +13 -13
- package/dist/ui/field.d.ts +15 -15
- package/dist/ui/field.js +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.cjs +1 -1
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.js +1 -1
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.cjs +1 -1
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/input.js +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.ts +3 -3
- package/dist/ui/inputs/search-input.js +1 -1
- package/dist/ui/item.cjs +1 -1
- package/dist/ui/item.d.cts +15 -15
- package/dist/ui/item.d.ts +15 -15
- package/dist/ui/item.js +1 -1
- package/dist/ui/label.cjs +1 -1
- package/dist/ui/label.d.cts +1 -1
- package/dist/ui/label.d.ts +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +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.ts +2 -2
- package/dist/ui/multi-select.js +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.ts +9 -9
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.cjs +1 -1
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/popover.js +1 -1
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/select.js +1 -1
- package/dist/ui/separator.cjs +1 -1
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +30 -30
- package/dist/ui/sidebar.d.ts +30 -30
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.ts +2 -2
- package/dist/ui/switch.cjs +1 -1
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.js +1 -1
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/textarea.cjs +1 -1
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.cjs +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/package.json +1 -1
- package/dist/label-BkmYDt9h.d.cts +0 -11
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../dist-CAevLI5t.cjs`),require(`../button-variants-BHDyMRNh.cjs`);const t=require(`../button-BCahPWI8.cjs`);require(`../label-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../dist-CAevLI5t.cjs`),require(`../button-variants-BHDyMRNh.cjs`);const t=require(`../button-BCahPWI8.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const n=require(`../field-B_qC62YD.cjs`),r=require(`../form-t4WaMbFV.cjs`),i=require(`../popover-DODAZTiX.cjs`),a=require(`../calendar-D_C_Qeu7.cjs`);let o=require(`lucide-react`);o=e.__toESM(o);let s=require(`@customafk/react-toolkit/utils`);s=e.__toESM(s);let c=require(`react`);c=e.__toESM(c);let l=require(`react/jsx-runtime`);l=e.__toESM(l);let u=require(`@customafk/react-toolkit/date-fns`);u=e.__toESM(u);const d=({name:e,label:d=`Date Field`,placeholder:f=`Select a date`,description:p=``,isShowErrorMsg:m=!1})=>(0,l.jsx)(r.FormField,{name:e,render:({field:e})=>(0,l.jsxs)(r.FormItem,{children:[(0,l.jsx)(c.Activity,{mode:d||p?`visible`:`hidden`,children:(0,l.jsxs)(n.FieldContent,{children:[(0,l.jsx)(r.FormLabel,{children:d}),!!p&&(0,l.jsx)(r.FormDescription,{children:p})]})}),(0,l.jsxs)(i.Popover,{modal:!0,children:[(0,l.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,l.jsx)(r.FormControl,{children:(0,l.jsxs)(t.Button,{variant:`outline`,color:`muted`,className:(0,s.cn)(`w-full pl-3 text-left font-normal`,`outline-border-weak font-normal`,`hover:outline-border`,`data-[state=open]:text-text-positive-muted`,`data-[state=open]:outline-1`,`data-[state=open]:outline-primary-strong`,`data-[state=open]:ring-primary-weak`,`data-[state=open]:ring-4`,`focus:border-primary-strong`,`focus:ring-4`,`focus:ring-primary-weak`,`focus:outline-1`,`focus:outline-primary-strong`,!e.value&&`text-text-positive-muted`),children:[e.value?(0,u.format)(e.value,`PPP`):(0,l.jsxs)(`span`,{children:[` `,f||`Pick a date`]}),(0,l.jsx)(o.CalendarIcon,{className:`text-text-positive-weak ml-auto size-4`})]})})}),(0,l.jsx)(i.PopoverContent,{className:`w-auto p-0`,align:`start`,children:(0,l.jsx)(a.Calendar,{mode:`single`,selected:e.value,onSelect:t=>{e.onChange(t?.toISOString())},captionLayout:`dropdown`,disabled:e=>e<new Date(`2022-01-01`)})})]}),m&&(0,l.jsx)(r.FormMessage,{})]})});exports.DateField=d;
|
|
2
2
|
//# sourceMappingURL=date-field.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/date-field.d.ts
|
|
@@ -16,7 +16,7 @@ declare const DateField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
16
16
|
placeholder,
|
|
17
17
|
description,
|
|
18
18
|
isShowErrorMsg
|
|
19
|
-
}: Props<TFieldValues>) =>
|
|
19
|
+
}: Props<TFieldValues>) => react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DateField };
|
|
22
22
|
//# sourceMappingURL=date-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/date-field.d.ts
|
|
@@ -16,7 +16,7 @@ declare const DateField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
16
16
|
placeholder,
|
|
17
17
|
description,
|
|
18
18
|
isShowErrorMsg
|
|
19
|
-
}: Props<TFieldValues>) =>
|
|
19
|
+
}: Props<TFieldValues>) => react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DateField };
|
|
22
22
|
//# sourceMappingURL=date-field.d.ts.map
|
package/dist/forms/date-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../dist-BgkALM7U.js";import"../button-variants-aFWCWUvu.js";import{Button as e}from"../button-CriBqo8S.js";import"../label-
|
|
1
|
+
"use client";import"../dist-BgkALM7U.js";import"../button-variants-aFWCWUvu.js";import{Button as e}from"../button-CriBqo8S.js";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as t}from"../field-DSScKMdZ.js";import{FormControl as n,FormDescription as r,FormField as i,FormItem as a,FormLabel as o,FormMessage as s}from"../form-DbknMHac.js";import{Popover as c,PopoverContent as l,PopoverTrigger as u}from"../popover-l3a5exlI.js";import{Calendar as d}from"../calendar-et-igmiY.js";import{CalendarIcon as f}from"lucide-react";import{cn as p}from"@customafk/react-toolkit/utils";import{Activity as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{format as _}from"@customafk/react-toolkit/date-fns";const v=({name:v,label:y=`Date Field`,placeholder:b=`Select a date`,description:x=``,isShowErrorMsg:S=!1})=>h(i,{name:v,render:({field:i})=>g(a,{children:[h(m,{mode:y||x?`visible`:`hidden`,children:g(t,{children:[h(o,{children:y}),!!x&&h(r,{children:x})]})}),g(c,{modal:!0,children:[h(u,{asChild:!0,children:h(n,{children:g(e,{variant:`outline`,color:`muted`,className:p(`w-full pl-3 text-left font-normal`,`outline-border-weak font-normal`,`hover:outline-border`,`data-[state=open]:text-text-positive-muted`,`data-[state=open]:outline-1`,`data-[state=open]:outline-primary-strong`,`data-[state=open]:ring-primary-weak`,`data-[state=open]:ring-4`,`focus:border-primary-strong`,`focus:ring-4`,`focus:ring-primary-weak`,`focus:outline-1`,`focus:outline-primary-strong`,!i.value&&`text-text-positive-muted`),children:[i.value?_(i.value,`PPP`):g(`span`,{children:[` `,b||`Pick a date`]}),h(f,{className:`text-text-positive-weak ml-auto size-4`})]})})}),h(l,{className:`w-auto p-0`,align:`start`,children:h(d,{mode:`single`,selected:i.value,onSelect:e=>{i.onChange(e?.toISOString())},captionLayout:`dropdown`,disabled:e=>e<new Date(`2022-01-01`)})})]}),S&&h(s,{})]})});export{v as DateField};
|
|
2
2
|
//# sourceMappingURL=date-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../button-variants-BHDyMRNh.cjs`),require(`../
|
|
1
|
+
require(`../button-variants-BHDyMRNh.cjs`),require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`),require(`../field-B_qC62YD.cjs`),require(`../form-t4WaMbFV.cjs`),require(`../alert-dialog-DmsZNeeJ.cjs`),require(`../error-dialog-pTwyWIE5.cjs`);const e=require(`../form-wrapper-DImTyC_E.cjs`);exports.FormWrapper=e.FormWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/form-wrapper.d.ts
|
|
@@ -22,7 +22,7 @@ declare const FormWrapper: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
onError,
|
|
23
23
|
onSubcribe,
|
|
24
24
|
children
|
|
25
|
-
}: React.PropsWithChildren<Props<TFieldValues>>) =>
|
|
25
|
+
}: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime1.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { FormWrapper };
|
|
28
28
|
//# sourceMappingURL=form-wrapper.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/form-wrapper.d.ts
|
|
@@ -22,7 +22,7 @@ declare const FormWrapper: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
onError,
|
|
23
23
|
onSubcribe,
|
|
24
24
|
children
|
|
25
|
-
}: React.PropsWithChildren<Props<TFieldValues>>) =>
|
|
25
|
+
}: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime1.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { FormWrapper };
|
|
28
28
|
//# sourceMappingURL=form-wrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../button-variants-aFWCWUvu.js";import"../
|
|
1
|
+
import"../button-variants-aFWCWUvu.js";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import"../field-DSScKMdZ.js";import"../form-DbknMHac.js";import"../alert-dialog-Di6rTULI.js";import"../error-dialog-_FqKuIY6.js";import{FormWrapper as e}from"../form-wrapper-BbZebVv0.js";export{e as FormWrapper};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../dist-CAevLI5t.cjs`),require(`../button-variants-BHDyMRNh.cjs`),require(`../button-BCahPWI8.cjs`),require(`../
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../dist-CAevLI5t.cjs`),require(`../button-variants-BHDyMRNh.cjs`),require(`../button-BCahPWI8.cjs`),require(`../dialog-Bd723gV6.cjs`),require(`../command-CevqI1YQ.cjs`),require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../multi-select-Dl54UfMM.cjs`);let i=require(`react`);i=e.__toESM(i);let a=require(`react/jsx-runtime`);a=e.__toESM(a);const o=({name:e,label:o=`Multi Select Field`,isShowLabel:s=!0,isShowErrorMsg:c,placeholder:l=`Select options`,description:u=``,className:d=``,options:f=[],onAdd:p})=>(0,a.jsx)(n.FormField,{name:e,render:({field:{value:e,onChange:m}})=>{let h=f.filter(t=>e?.includes(t.value));return(0,a.jsxs)(n.FormItem,{className:d,children:[(0,a.jsx)(i.Activity,{mode:o||u?`visible`:`hidden`,children:(0,a.jsxs)(t.FieldContent,{children:[s&&(0,a.jsx)(n.FormLabel,{children:o}),!!u&&(0,a.jsx)(n.FormDescription,{children:u})]})}),(0,a.jsx)(n.FormControl,{children:(0,a.jsx)(r.MultipleSelector,{placeholder:l,emptyIndicator:`No options available`,value:h,options:f,onChange:e=>{let t=e.map(e=>e.value);m(t)},onAddNewItem:p})}),c&&(0,a.jsx)(n.FormMessage,{})]})}});exports.MultiSelectField=o;
|
|
2
2
|
//# sourceMappingURL=multi-select-field.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-select-field.cjs","names":["FormField","value","FormItem","Activity","FieldContent","FormLabel","FormDescription","FormControl","MultipleSelector","FormMessage"],"sources":["../../packages/components/forms/multi-select-field.tsx"],"sourcesContent":["'use client';\nimport { Activity } from 'react';\nimport type { FieldPath, FieldValues } from 'react-hook-form';\n\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../ui/form';\nimport { MultipleSelector, type Option } from '../ui/multi-select';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n isShowLabel?: boolean;\n isShowErrorMsg?: boolean;\n className?: string;\n label?: string;\n description?: string;\n placeholder?: string;\n options?: { value: string; label: string }[];\n onAdd?: () => void;\n};\nexport const MultiSelectField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Multi Select Field',\n isShowLabel = true,\n isShowErrorMsg,\n placeholder = 'Select options',\n description = '',\n className = '',\n options = [],\n onAdd,\n}: Props<TFieldValues>) => {\n return (\n <FormField\n name={name}\n render={({ field: { value, onChange } }) => {\n const val = options.filter(option => value?.includes(option.value));\n const handleOnChange = (value: Option[]) => {\n const selectedValues = value.map(v => v.value);\n onChange(selectedValues);\n };\n return (\n <FormItem className={className}>\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n <FieldContent>\n {isShowLabel && <FormLabel>{label}</FormLabel>}\n {!!description && <FormDescription>{description}</FormDescription>}\n </FieldContent>\n </Activity>\n <FormControl>\n <MultipleSelector\n placeholder={placeholder}\n emptyIndicator=\"No options available\"\n value={val}\n options={options}\n onChange={handleOnChange}\n onAddNewItem={onAdd}\n />\n </FormControl>\n {isShowErrorMsg && <FormMessage />}\n </FormItem>\n );\n }}\n />\n );\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"multi-select-field.cjs","names":["FormField","value","FormItem","Activity","FieldContent","FormLabel","FormDescription","FormControl","MultipleSelector","FormMessage"],"sources":["../../packages/components/forms/multi-select-field.tsx"],"sourcesContent":["'use client';\nimport { Activity } from 'react';\nimport type { FieldPath, FieldValues } from 'react-hook-form';\n\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../ui/form';\nimport { MultipleSelector, type Option } from '../ui/multi-select';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n isShowLabel?: boolean;\n isShowErrorMsg?: boolean;\n className?: string;\n label?: string;\n description?: string;\n placeholder?: string;\n options?: { value: string; label: string }[];\n onAdd?: () => void;\n};\nexport const MultiSelectField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Multi Select Field',\n isShowLabel = true,\n isShowErrorMsg,\n placeholder = 'Select options',\n description = '',\n className = '',\n options = [],\n onAdd,\n}: Props<TFieldValues>) => {\n return (\n <FormField\n name={name}\n render={({ field: { value, onChange } }) => {\n const val = options.filter(option => value?.includes(option.value));\n const handleOnChange = (value: Option[]) => {\n const selectedValues = value.map(v => v.value);\n onChange(selectedValues);\n };\n return (\n <FormItem className={className}>\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n <FieldContent>\n {isShowLabel && <FormLabel>{label}</FormLabel>}\n {!!description && <FormDescription>{description}</FormDescription>}\n </FieldContent>\n </Activity>\n <FormControl>\n <MultipleSelector\n placeholder={placeholder}\n emptyIndicator=\"No options available\"\n value={val}\n options={options}\n onChange={handleOnChange}\n onAddNewItem={onAdd}\n />\n </FormControl>\n {isShowErrorMsg && <FormMessage />}\n </FormItem>\n );\n }}\n />\n );\n};\n"],"mappings":"2fAmBA,MAAa,GAAoE,CAC/E,OACA,QAAQ,qBACR,cAAc,GACd,iBACA,cAAc,iBACd,cAAc,GACd,YAAY,GACZ,UAAU,EAAE,CACZ,YAGE,EAAA,EAAA,KAACA,EAAAA,UAAAA,CACO,OACN,QAAS,CAAE,MAAO,CAAE,QAAO,eAAiB,CAC1C,IAAM,EAAM,EAAQ,OAAO,GAAU,GAAO,SAAS,EAAO,MAAM,CAAC,CAKnE,OACE,EAAA,EAAA,MAACE,EAAAA,SAAAA,CAAoB,uBACnB,EAAA,EAAA,KAACC,EAAAA,SAAAA,CAAS,KAAM,GAAS,EAAc,UAAY,mBACjD,EAAA,EAAA,MAACC,EAAAA,aAAAA,CAAAA,SAAAA,CACE,IAAe,EAAA,EAAA,KAACC,EAAAA,UAAAA,CAAAA,SAAW,EAAA,CAAkB,CAC7C,CAAC,CAAC,IAAe,EAAA,EAAA,KAACC,EAAAA,gBAAAA,CAAAA,SAAiB,EAAA,CAA8B,CAAA,CAAA,CACrD,EACN,EACX,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,iBAAAA,CACc,cACb,eAAe,uBACf,MAAO,EACE,UACT,SAlBgB,GAAoB,CAC1C,IAAM,EAAiBP,EAAM,IAAI,GAAK,EAAE,MAAM,CAC9C,EAAS,EAAe,EAiBlB,aAAc,GACd,CAAA,CACU,CACb,IAAkB,EAAA,EAAA,KAACQ,EAAAA,YAAAA,EAAAA,CAAc,GACzB,GAGf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/multi-select-field.d.ts
|
|
@@ -26,7 +26,7 @@ declare const MultiSelectField: <TFieldValues extends FieldValues = FieldValues>
|
|
|
26
26
|
className,
|
|
27
27
|
options,
|
|
28
28
|
onAdd
|
|
29
|
-
}: Props<TFieldValues>) =>
|
|
29
|
+
}: Props<TFieldValues>) => react_jsx_runtime4.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { MultiSelectField };
|
|
32
32
|
//# sourceMappingURL=multi-select-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/multi-select-field.d.ts
|
|
@@ -26,7 +26,7 @@ declare const MultiSelectField: <TFieldValues extends FieldValues = FieldValues>
|
|
|
26
26
|
className,
|
|
27
27
|
options,
|
|
28
28
|
onAdd
|
|
29
|
-
}: Props<TFieldValues>) =>
|
|
29
|
+
}: Props<TFieldValues>) => react_jsx_runtime4.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { MultiSelectField };
|
|
32
32
|
//# sourceMappingURL=multi-select-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../dist-BgkALM7U.js";import"../button-variants-aFWCWUvu.js";import"../button-CriBqo8S.js";import"../label-
|
|
1
|
+
"use client";import"../dist-BgkALM7U.js";import"../button-variants-aFWCWUvu.js";import"../button-CriBqo8S.js";import"../dialog-OTHc6G5i.js";import"../command-BvHe__3s.js";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{MultipleSelector as s}from"../multi-select-CQdR0wzH.js";import{Activity as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";const d=({name:d,label:f=`Multi Select Field`,isShowLabel:p=!0,isShowErrorMsg:m,placeholder:h=`Select options`,description:g=``,className:_=``,options:v=[],onAdd:y})=>l(r,{name:d,render:({field:{value:r,onChange:d}})=>{let b=v.filter(e=>r?.includes(e.value));return u(i,{className:_,children:[l(c,{mode:f||g?`visible`:`hidden`,children:u(e,{children:[p&&l(a,{children:f}),!!g&&l(n,{children:g})]})}),l(t,{children:l(s,{placeholder:h,emptyIndicator:`No options available`,value:b,options:v,onChange:e=>{let t=e.map(e=>e.value);d(t)},onAddNewItem:y})}),m&&l(o,{})]})}});export{d as MultiSelectField};
|
|
2
2
|
//# sourceMappingURL=multi-select-field.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../input-D7aXVX7j.cjs`);let i=require(`@customafk/react-toolkit/utils`);i=e.__toESM(i);let a=require(`react`);a=e.__toESM(a);let o=require(`react/jsx-runtime`);o=e.__toESM(o);let s=require(`react-hook-form`);s=e.__toESM(s);const c=e=>e?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/,l=e=>Number(e).toLocaleString(),u=({disabled:e=!1,readonly:t=!1,allowNegative:n=!1,numberAfterDecimalPoint:s=2,roundingRule:u=`none`,value:d=``,unitText:f,decimal:p,placeholder:m,precision:h,onChange:g,onValueChange:_,onBlur:v,...y})=>{let b=(0,a.useRef)(null),x=(0,a.useRef)(null),[S,C]=(0,a.useState)(d.toString()),w=p?.[1]??s,T=p&&p[0]-p[1],E=(0,a.useMemo)(()=>c(n),[n]),D=(0,a.useCallback)(e=>{if(!w&&e.includes(`.`))return!1;let t=e.split(`.`)[1];return!t||t.length<=w},[w]),O=(0,a.useCallback)(e=>{if(!p||e===`-`)return!0;let[t,n=``]=e.split(`.`);return n.length<=p[1]&&(t.startsWith(`-`)?t.length-1:t.length)<=T},[p,T]),k=(0,a.useCallback)((e,t)=>{if(u===`none`)return e;let n=10**t,r=e*n;switch(u){case`up`:return Math.ceil(r)/n;case`down`:return Math.floor(r)/n;case`nearest`:return r%1<.1?Math.floor(r)/n:r%1>=.59?Math.ceil(r)/n:(Math.floor(r)+.5)/n;default:return e}},[u]),A=(0,a.useCallback)(e=>!s&&e.includes(`.`)||e.split(`.`)[1]?.length>s,[s]),j=(0,a.useCallback)(e=>{if(e===`0`)return`0`;if(!Number(e))return``;let t=parseFloat(e),n=Math.min(w-1,h||0),[r,i=``]=k(t,n).toString().split(`.`),a=l(r);return i?`${a}.${i}`:a},[k,w,h]),M=(0,a.useCallback)(e=>{if(!p||e===`-`)return!0;let[t,n=``]=e.split(`.`),r=t.startsWith(`-`)?t.length-1:t.length,i=p[0]-p[1];return n.length<=p[1]&&r<=i},[p]),N=(0,a.useCallback)(e=>{g?.(e);let{value:t}=e.target;if(!t){_?.(void 0),C(``);return}if(t===`0`||t===`-`&&n){_?.(0),C(t);return}E.test(t)&&O(t)&&(p||D(t))&&(_?.(parseFloat(t)||0),C(t))},[n,p,D,O,g,_,E]),P=(0,a.useCallback)(()=>{t||C(e=>e.replace(/,/g,``))},[t]),F=(0,a.useCallback)(()=>{t||(v?.(),C(e=>j(e)))},[t,v,j]);return(0,a.useEffect)(()=>{let e=document.activeElement===x.current;if(!d||!E.test(d.toString())||!M(d.toString())||!p&&A(d.toString())){C(``);return}C(t=>t===`-`?`-`:t?e?d.toString():j(d.toString()):``)},[p,j,d,A,M,E]),(0,a.useEffect)(()=>{if(!b.current||!x.current||!f)return;let e=b.current.offsetWidth;x.current.style.setProperty(`padding-right`,`${(e+10)/16}rem`)},[e,f]),(0,o.jsxs)(`div`,{className:`relative`,children:[(0,o.jsx)(r.Input,{...y,ref:x,value:S||(t?`0`:``),placeholder:m,disabled:e,readOnly:t,className:(0,i.cn)(`font-number text-end`,t&&`bg-muted text-muted-foreground`),onChange:N,onFocus:P,onBlur:F}),f&&(0,o.jsx)(`span`,{ref:b,className:`text-muted-foreground pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 text-sm`,children:f})]})},d=({name:e,label:r=`Number Field`,placeholder:i=`0`,isShowErrorMsg:c=!1,isShowCount:l=!1,unitText:d=``,description:f=``,onValueChange:p})=>{let m=(0,s.useWatch)({name:e});return(0,o.jsx)(n.FormField,{name:e,render:({field:{onChange:e,...s}})=>(0,o.jsxs)(n.FormItem,{children:[(0,o.jsx)(a.Activity,{mode:r||f?`visible`:`hidden`,children:(0,o.jsxs)(t.FieldContent,{children:[(0,o.jsx)(n.FormLabel,{children:r}),!!f&&(0,o.jsx)(n.FormDescription,{children:f})]})}),(0,o.jsx)(n.FormControl,{children:(0,o.jsx)(u,{...s,placeholder:i,className:`w-full`,unitText:d,onValueChange:t=>{e(t),p?.(t)}})}),l&&(0,o.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[m?.length??0,` characters`]}),c&&(0,o.jsx)(n.FormMessage,{})]})})};exports.NumberField=d;
|
|
2
2
|
//# sourceMappingURL=number-field.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/number-field.d.ts
|
|
@@ -22,7 +22,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
unitText,
|
|
23
23
|
description,
|
|
24
24
|
onValueChange
|
|
25
|
-
}: Props<TFieldValues>) =>
|
|
25
|
+
}: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { NumberField };
|
|
28
28
|
//# sourceMappingURL=number-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/number-field.d.ts
|
|
@@ -22,7 +22,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
unitText,
|
|
23
23
|
description,
|
|
24
24
|
onValueChange
|
|
25
|
-
}: Props<TFieldValues>) =>
|
|
25
|
+
}: Props<TFieldValues>) => react_jsx_runtime3.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { NumberField };
|
|
28
28
|
//# sourceMappingURL=number-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../label-
|
|
1
|
+
import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{Input as s}from"../input-B-l6tT_9.js";import{cn as c}from"@customafk/react-toolkit/utils";import{Activity as l,useCallback as u,useEffect as d,useMemo as f,useRef as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{useWatch as _}from"react-hook-form";const v=e=>e?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/,y=e=>Number(e).toLocaleString(),b=({disabled:e=!1,readonly:t=!1,allowNegative:n=!1,numberAfterDecimalPoint:r=2,roundingRule:i=`none`,value:a=``,unitText:o,decimal:l,placeholder:_,precision:b,onChange:x,onValueChange:S,onBlur:C,...w})=>{let T=p(null),E=p(null),[D,O]=m(a.toString()),k=l?.[1]??r,A=l&&l[0]-l[1],j=f(()=>v(n),[n]),M=u(e=>{if(!k&&e.includes(`.`))return!1;let t=e.split(`.`)[1];return!t||t.length<=k},[k]),N=u(e=>{if(!l||e===`-`)return!0;let[t,n=``]=e.split(`.`);return n.length<=l[1]&&(t.startsWith(`-`)?t.length-1:t.length)<=A},[l,A]),P=u((e,t)=>{if(i===`none`)return e;let n=10**t,r=e*n;switch(i){case`up`:return Math.ceil(r)/n;case`down`:return Math.floor(r)/n;case`nearest`:return r%1<.1?Math.floor(r)/n:r%1>=.59?Math.ceil(r)/n:(Math.floor(r)+.5)/n;default:return e}},[i]),F=u(e=>!r&&e.includes(`.`)||e.split(`.`)[1]?.length>r,[r]),I=u(e=>{if(e===`0`)return`0`;if(!Number(e))return``;let t=parseFloat(e),n=Math.min(k-1,b||0),[r,i=``]=P(t,n).toString().split(`.`),a=y(r);return i?`${a}.${i}`:a},[P,k,b]),L=u(e=>{if(!l||e===`-`)return!0;let[t,n=``]=e.split(`.`),r=t.startsWith(`-`)?t.length-1:t.length,i=l[0]-l[1];return n.length<=l[1]&&r<=i},[l]),R=u(e=>{x?.(e);let{value:t}=e.target;if(!t){S?.(void 0),O(``);return}if(t===`0`||t===`-`&&n){S?.(0),O(t);return}j.test(t)&&N(t)&&(l||M(t))&&(S?.(parseFloat(t)||0),O(t))},[n,l,M,N,x,S,j]),z=u(()=>{t||O(e=>e.replace(/,/g,``))},[t]),B=u(()=>{t||(C?.(),O(e=>I(e)))},[t,C,I]);return d(()=>{let e=document.activeElement===E.current;if(!a||!j.test(a.toString())||!L(a.toString())||!l&&F(a.toString())){O(``);return}O(t=>t===`-`?`-`:t?e?a.toString():I(a.toString()):``)},[l,I,a,F,L,j]),d(()=>{if(!T.current||!E.current||!o)return;let e=T.current.offsetWidth;E.current.style.setProperty(`padding-right`,`${(e+10)/16}rem`)},[e,o]),g(`div`,{className:`relative`,children:[h(s,{...w,ref:E,value:D||(t?`0`:``),placeholder:_,disabled:e,readOnly:t,className:c(`font-number text-end`,t&&`bg-muted text-muted-foreground`),onChange:R,onFocus:z,onBlur:B}),o&&h(`span`,{ref:T,className:`text-muted-foreground pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 text-sm`,children:o})]})},x=({name:s,label:c=`Number Field`,placeholder:u=`0`,isShowErrorMsg:d=!1,isShowCount:f=!1,unitText:p=``,description:m=``,onValueChange:v})=>{let y=_({name:s});return h(r,{name:s,render:({field:{onChange:r,...s}})=>g(i,{children:[h(l,{mode:c||m?`visible`:`hidden`,children:g(e,{children:[h(a,{children:c}),!!m&&h(n,{children:m})]})}),h(t,{children:h(b,{...s,placeholder:u,className:`w-full`,unitText:p,onValueChange:e=>{r(e),v?.(e)}})}),f&&g(`div`,{className:`text-muted-foreground text-end text-xs`,children:[y?.length??0,` characters`]}),d&&h(o,{})]})})};export{x as NumberField};
|
|
2
2
|
//# sourceMappingURL=number-field.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../input-D7aXVX7j.cjs`);let i=require(`lucide-react`);i=e.__toESM(i);let a=require(`@customafk/react-toolkit/utils`);a=e.__toESM(a);let o=require(`react`);o=e.__toESM(o);let s=require(`react/jsx-runtime`);s=e.__toESM(s);const c=({className:e,...t})=>{let n=(0,o.useId)(),[c,l]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>l(e=>!e),[]);return(0,s.jsxs)(`div`,{className:`relative`,children:[(0,s.jsx)(r.Input,{...t,id:n,placeholder:`Password`,type:c?`text`:`password`,className:(0,a.cn)(`pe-9`,e)}),(0,s.jsx)(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:u,"aria-label":c?`Hide password`:`Show password`,"aria-pressed":c,"aria-controls":`password`,children:c?(0,s.jsx)(i.EyeOffIcon,{size:16,"aria-hidden":`true`}):(0,s.jsx)(i.EyeIcon,{size:16,"aria-hidden":`true`})})]})},l=({name:e,label:r=`Text Field`,placeholder:i=`Enter text here`,isShowErrorMsg:a=!1,description:l,onValueChange:u})=>(0,s.jsx)(n.FormField,{name:e,render:({field:e})=>(0,s.jsxs)(n.FormItem,{className:`w-full`,children:[(0,s.jsx)(o.Activity,{mode:r||l?`visible`:`hidden`,children:(0,s.jsxs)(t.FieldContent,{children:[(0,s.jsx)(n.FormLabel,{children:r}),!!l&&(0,s.jsx)(n.FormDescription,{children:l})]})}),(0,s.jsx)(n.FormControl,{children:(0,s.jsx)(c,{placeholder:i,...e,onValueChange:u})}),a&&(0,s.jsx)(n.FormMessage,{})]})});exports.PasswordField=l;
|
|
2
2
|
//# sourceMappingURL=password-field.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/password-field.d.ts
|
|
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
17
17
|
isShowErrorMsg,
|
|
18
18
|
description,
|
|
19
19
|
onValueChange
|
|
20
|
-
}: Props<TFieldValues>) =>
|
|
20
|
+
}: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { PasswordField };
|
|
23
23
|
//# sourceMappingURL=password-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/password-field.d.ts
|
|
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
17
17
|
isShowErrorMsg,
|
|
18
18
|
description,
|
|
19
19
|
onValueChange
|
|
20
|
-
}: Props<TFieldValues>) =>
|
|
20
|
+
}: Props<TFieldValues>) => react_jsx_runtime11.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { PasswordField };
|
|
23
23
|
//# sourceMappingURL=password-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../label-
|
|
1
|
+
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{Input as s}from"../input-B-l6tT_9.js";import{EyeIcon as c,EyeOffIcon as l}from"lucide-react";import{cn as u}from"@customafk/react-toolkit/utils";import{Activity as d,useCallback as f,useId as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _=({className:e,...t})=>{let n=p(),[r,i]=m(!1),a=f(()=>i(e=>!e),[]);return g(`div`,{className:`relative`,children:[h(s,{...t,id:n,placeholder:`Password`,type:r?`text`:`password`,className:u(`pe-9`,e)}),h(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:a,"aria-label":r?`Hide password`:`Show password`,"aria-pressed":r,"aria-controls":`password`,children:h(r?l:c,{size:16,"aria-hidden":`true`})})]})},v=({name:s,label:c=`Text Field`,placeholder:l=`Enter text here`,isShowErrorMsg:u=!1,description:f,onValueChange:p})=>h(r,{name:s,render:({field:r})=>g(i,{className:`w-full`,children:[h(d,{mode:c||f?`visible`:`hidden`,children:g(e,{children:[h(a,{children:c}),!!f&&h(n,{children:f})]})}),h(t,{children:h(_,{placeholder:l,...r,onValueChange:p})}),u&&h(o,{})]})});export{v as PasswordField};
|
|
2
2
|
//# sourceMappingURL=password-field.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../select-DfJYL2rL.cjs`);let i=require(`react`);i=e.__toESM(i);let a=require(`react/jsx-runtime`);a=e.__toESM(a);const o=({name:e,label:o=`Select Field`,placeholder:s=`Select an option`,disabledValues:c=[],options:l=[],isShowLabel:u=!0,isShowErrorMsg:d=!1,description:f=``,className:p=``})=>(0,a.jsx)(n.FormField,{name:e,render:({field:e})=>(0,a.jsxs)(n.FormItem,{className:p,children:[(0,a.jsx)(i.Activity,{mode:o||f?`visible`:`hidden`,children:(0,a.jsxs)(t.FieldContent,{children:[u&&(0,a.jsx)(n.FormLabel,{children:o}),!!f&&(0,a.jsx)(n.FormDescription,{children:f})]})}),(0,a.jsxs)(r.Select,{defaultValue:e.value,onValueChange:e.onChange,children:[(0,a.jsx)(n.FormControl,{children:(0,a.jsx)(r.SelectTrigger,{className:`w-full`,children:(0,a.jsx)(r.SelectValue,{placeholder:s})})}),(0,a.jsx)(r.SelectContent,{children:l.map(e=>(0,a.jsx)(r.SelectItem,{disabled:c.includes(e.value),value:e.value,children:e.label},e.value))})]}),d&&(0,a.jsx)(n.FormMessage,{})]})});exports.SelectField=o;
|
|
2
2
|
//# sourceMappingURL=select-field.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/select-field.d.ts
|
|
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
27
27
|
isShowErrorMsg,
|
|
28
28
|
description,
|
|
29
29
|
className
|
|
30
|
-
}: Props<TFieldValues>) =>
|
|
30
|
+
}: Props<TFieldValues>) => react_jsx_runtime10.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SelectField };
|
|
33
33
|
//# sourceMappingURL=select-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/select-field.d.ts
|
|
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
27
27
|
isShowErrorMsg,
|
|
28
28
|
description,
|
|
29
29
|
className
|
|
30
|
-
}: Props<TFieldValues>) =>
|
|
30
|
+
}: Props<TFieldValues>) => react_jsx_runtime8.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SelectField };
|
|
33
33
|
//# sourceMappingURL=select-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../label-
|
|
1
|
+
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{Select as s,SelectContent as c,SelectItem as l,SelectTrigger as u,SelectValue as d}from"../select-czrPwYWJ.js";import{Activity as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h=({name:h,label:g=`Select Field`,placeholder:_=`Select an option`,disabledValues:v=[],options:y=[],isShowLabel:b=!0,isShowErrorMsg:x=!1,description:S=``,className:C=``})=>p(r,{name:h,render:({field:r})=>m(i,{className:C,children:[p(f,{mode:g||S?`visible`:`hidden`,children:m(e,{children:[b&&p(a,{children:g}),!!S&&p(n,{children:S})]})}),m(s,{defaultValue:r.value,onValueChange:r.onChange,children:[p(t,{children:p(u,{className:`w-full`,children:p(d,{placeholder:_})})}),p(c,{children:y.map(e=>p(l,{disabled:v.includes(e.value),value:e.value,children:e.label},e.value))})]}),x&&p(o,{})]})});export{h as SelectField};
|
|
2
2
|
//# sourceMappingURL=select-field.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../switch-C6peIJVm.cjs`);let i=require(`react`);i=e.__toESM(i);let a=require(`react/jsx-runtime`);a=e.__toESM(a);const o=({name:e,label:o=`Switch Field`,className:s=``,description:c,isShowErrorMsg:l=!1})=>(0,a.jsx)(n.FormField,{name:e,render:({field:e})=>(0,a.jsxs)(n.FormItem,{className:s,children:[(0,a.jsx)(t.FieldContent,{children:(0,a.jsxs)(i.Activity,{mode:o||c?`visible`:`hidden`,children:[(0,a.jsx)(n.FormLabel,{children:o}),c&&(0,a.jsx)(n.FormDescription,{className:`text-xs`,children:c})]})}),(0,a.jsx)(n.FormControl,{children:(0,a.jsx)(r.Switch,{checked:e.value,className:`!w-8`,onCheckedChange:e.onChange})}),l&&(0,a.jsx)(n.FormMessage,{})]})});exports.SwitchField=o;
|
|
2
2
|
//# sourceMappingURL=switch-field.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/switch-field.d.ts
|
|
@@ -15,7 +15,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
15
15
|
className,
|
|
16
16
|
description,
|
|
17
17
|
isShowErrorMsg
|
|
18
|
-
}: Props<TFieldValues>) =>
|
|
18
|
+
}: Props<TFieldValues>) => react_jsx_runtime11.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SwitchField };
|
|
21
21
|
//# sourceMappingURL=switch-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/switch-field.d.ts
|
|
@@ -15,7 +15,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
15
15
|
className,
|
|
16
16
|
description,
|
|
17
17
|
isShowErrorMsg
|
|
18
|
-
}: Props<TFieldValues>) =>
|
|
18
|
+
}: Props<TFieldValues>) => react_jsx_runtime9.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SwitchField };
|
|
21
21
|
//# sourceMappingURL=switch-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../label-
|
|
1
|
+
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{Switch as s}from"../switch-B5eIeKX7.js";import{Activity as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";const d=({name:d,label:f=`Switch Field`,className:p=``,description:m,isShowErrorMsg:h=!1})=>l(r,{name:d,render:({field:r})=>u(i,{className:p,children:[l(e,{children:u(c,{mode:f||m?`visible`:`hidden`,children:[l(a,{children:f}),m&&l(n,{className:`text-xs`,children:m})]})}),l(t,{children:l(s,{checked:r.value,className:`!w-8`,onCheckedChange:r.onChange})}),h&&l(o,{})]})});export{d as SwitchField};
|
|
2
2
|
//# sourceMappingURL=switch-field.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`)
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../input-D7aXVX7j.cjs`),i=require(`../flex-DgmCJ9Bz.cjs`);let a=require(`lucide-react`);a=e.__toESM(a);let o=require(`@customafk/react-toolkit/utils`);o=e.__toESM(o);let s=require(`react`);s=e.__toESM(s);let c=require(`react/jsx-runtime`);c=e.__toESM(c);let l=require(`react-hook-form`);l=e.__toESM(l);const u=({name:e,label:u=`Text Field`,placeholder:d=`Enter text here`,isShowLabel:f=!0,isShowClearButton:p=!1,isShowErrorMsg:m=!1,isShowCount:h=!1,description:g,className:_=``,onValueChange:v})=>{let{resetField:y}=n.useFormField(),b=(0,l.useWatch)({name:e}),x=(0,s.useCallback)(()=>{y(e)},[y,e]);return(0,c.jsx)(n.FormField,{name:e,render:({field:e})=>(0,c.jsxs)(n.FormItem,{className:_,children:[(0,c.jsx)(t.FieldContent,{children:(0,c.jsxs)(s.Activity,{mode:u||g?`visible`:`hidden`,children:[f&&(0,c.jsx)(n.FormLabel,{children:u}),!!g&&(0,c.jsx)(n.FormDescription,{children:g})]})}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(n.FormControl,{children:(0,c.jsx)(r.Input,{...e,placeholder:d,className:(0,o.cn)(`w-full`,p&&`pr-9`),onValueChange:v})}),p&&b&&(0,c.jsx)(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:x,children:(0,c.jsx)(a.XIcon,{size:14,"aria-hidden":`true`})})]}),(0,c.jsxs)(i.Flex,{width:`full`,padding:`none`,justify:`end`,children:[m&&(0,c.jsx)(n.FormMessage,{className:`grow`}),h&&(0,c.jsxs)(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[b?.length??0,` characters`]})]})]})})};exports.TextField=u;
|
|
2
2
|
//# sourceMappingURL=text-field.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/text-field.d.ts
|
|
@@ -25,7 +25,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
25
25
|
description,
|
|
26
26
|
className,
|
|
27
27
|
onValueChange
|
|
28
|
-
}: Props<TFieldValues>) =>
|
|
28
|
+
}: Props<TFieldValues>) => react_jsx_runtime12.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { TextField };
|
|
31
31
|
//# sourceMappingURL=text-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/text-field.d.ts
|
|
@@ -25,7 +25,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
25
25
|
description,
|
|
26
26
|
className,
|
|
27
27
|
onValueChange
|
|
28
|
-
}: Props<TFieldValues>) =>
|
|
28
|
+
}: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { TextField };
|
|
31
31
|
//# sourceMappingURL=text-field.d.ts.map
|
package/dist/forms/text-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import
|
|
1
|
+
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o,useFormField as s}from"../form-DbknMHac.js";import{Input as c}from"../input-B-l6tT_9.js";import{Flex as l}from"../flex-BJgsQWLI.js";import{XIcon as u}from"lucide-react";import{cn as d}from"@customafk/react-toolkit/utils";import{Activity as f,useCallback as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{useWatch as g}from"react-hook-form";const _=({name:_,label:v=`Text Field`,placeholder:y=`Enter text here`,isShowLabel:b=!0,isShowClearButton:x=!1,isShowErrorMsg:S=!1,isShowCount:C=!1,description:w,className:T=``,onValueChange:E})=>{let{resetField:D}=s(),O=g({name:_}),k=p(()=>{D(_)},[D,_]);return m(r,{name:_,render:({field:r})=>h(i,{className:T,children:[m(e,{children:h(f,{mode:v||w?`visible`:`hidden`,children:[b&&m(a,{children:v}),!!w&&m(n,{children:w})]})}),h(`div`,{className:`relative`,children:[m(t,{children:m(c,{...r,placeholder:y,className:d(`w-full`,x&&`pr-9`),onValueChange:E})}),x&&O&&m(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:k,children:m(u,{size:14,"aria-hidden":`true`})})]}),h(l,{width:`full`,padding:`none`,justify:`end`,children:[S&&m(o,{className:`grow`}),C&&h(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[O?.length??0,` characters`]})]})]})})};export{_ as TextField};
|
|
2
2
|
//# sourceMappingURL=text-field.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../textarea-C3ZQALlB.cjs`);let i=require(`react`);i=e.__toESM(i);let a=require(`react/jsx-runtime`);a=e.__toESM(a);let o=require(`react-hook-form`);o=e.__toESM(o);const s=({name:e,label:s=`Textarea Field`,placeholder:c=`Enter text here`,isShowErrorMsg:l=!1,isShowCount:u=!1,description:d,rows:f=3,onValueChange:p})=>{let m=(0,o.useWatch)({name:e});return(0,a.jsx)(n.FormField,{name:e,render:({field:e})=>(0,a.jsxs)(n.FormItem,{className:`w-full`,children:[(0,a.jsx)(i.Activity,{mode:s||d?`visible`:`hidden`,children:(0,a.jsxs)(t.FieldContent,{children:[(0,a.jsx)(n.FormLabel,{children:s}),!!d&&(0,a.jsx)(n.FormDescription,{children:d})]})}),(0,a.jsx)(n.FormControl,{children:(0,a.jsx)(r.Textarea,{...e,placeholder:c,className:`w-full`,rows:f,onValueChange:p})}),u&&(0,a.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[m?.length??0,` characters`]}),l&&(0,a.jsx)(n.FormMessage,{})]})})};exports.TextareaField=s;
|
|
2
2
|
//# sourceMappingURL=textarea-field.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/textarea-field.d.ts
|
|
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
21
21
|
description,
|
|
22
22
|
rows,
|
|
23
23
|
onValueChange
|
|
24
|
-
}: Props<TFieldValues>) =>
|
|
24
|
+
}: Props<TFieldValues>) => react_jsx_runtime13.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TextareaField };
|
|
27
27
|
//# sourceMappingURL=textarea-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/textarea-field.d.ts
|
|
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
21
21
|
description,
|
|
22
22
|
rows,
|
|
23
23
|
onValueChange
|
|
24
|
-
}: Props<TFieldValues>) =>
|
|
24
|
+
}: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TextareaField };
|
|
27
27
|
//# sourceMappingURL=textarea-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../label-
|
|
1
|
+
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{Textarea as s}from"../textarea-BVj6PCYB.js";import{Activity as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{useWatch as d}from"react-hook-form";const f=({name:f,label:p=`Textarea Field`,placeholder:m=`Enter text here`,isShowErrorMsg:h=!1,isShowCount:g=!1,description:_,rows:v=3,onValueChange:y})=>{let b=d({name:f});return l(r,{name:f,render:({field:r})=>u(i,{className:`w-full`,children:[l(c,{mode:p||_?`visible`:`hidden`,children:u(e,{children:[l(a,{children:p}),!!_&&l(n,{children:_})]})}),l(t,{children:l(s,{...r,placeholder:m,className:`w-full`,rows:v,onValueChange:y})}),g&&u(`div`,{className:`text-muted-foreground text-end text-xs`,children:[b?.length??0,` characters`]}),h&&l(o,{})]})})};export{f as TextareaField};
|
|
2
2
|
//# sourceMappingURL=textarea-field.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{cn as e}from"@customafk/react-toolkit/utils";import{useCallback as t}from"react";import{jsx as n}from"react/jsx-runtime";function r({className:r,onChange:i,onValueChange:a,...o}){let s=t(e=>{i?.(e),a?.(e.target.value)},[i,a]);return n(`input`,{"data-slot":`input`,className:e(`flex h-9 w-full px-3 py-2`,`rounded-md border transition-all duration-200`,`text-text-positive-strong bg-transparent text-sm`,`border-border-weak shadow-input`,`caret-primary outline-none`,`placeholder:text-text-positive-muted`,`hover:border-border hover:shadow-input`,`focus:border-primary-strong focus:shadow-none`,`focus-visible:ring-primary-muted focus-visible:ring-4`,`aria-invalid:border-danger aria-invalid:ring-danger-muted`,`aria-invalid:hover:border-danger-strong`,`disabled:cursor-not-allowed disabled:opacity-50`,`disabled:pointer-events-none`,`disabled:border-border-weak/50 disabled:bg-secondary-muted/10`,r),...o,onChange:s})}export{r as Input};
|
|
2
|
-
//# sourceMappingURL=input-
|
|
2
|
+
//# sourceMappingURL=input-B-l6tT_9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-
|
|
1
|
+
{"version":3,"file":"input-B-l6tT_9.js","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client';\nimport { useCallback } from 'react';\nimport { cn } from '@customafk/react-toolkit/utils';\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void;\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e);\n onValueChange?.(e.target.value);\n },\n [onChange, onValueChange]\n );\n return (\n <input\n data-slot=\"input\"\n className={cn(\n // Base styles\n 'flex h-9 w-full px-3 py-2',\n 'rounded-md border transition-all duration-200',\n 'text-text-positive-strong bg-transparent text-sm',\n\n // Border and shadow styles\n 'border-border-weak shadow-input',\n 'caret-primary outline-none',\n\n // Placeholder styling\n 'placeholder:text-text-positive-muted',\n\n // State styles\n 'hover:border-border hover:shadow-input',\n 'focus:border-primary-strong focus:shadow-none',\n 'focus-visible:ring-primary-muted focus-visible:ring-4',\n\n // Invalid state\n 'aria-invalid:border-danger aria-invalid:ring-danger-muted',\n 'aria-invalid:hover:border-danger-strong',\n\n // Disabled state\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'disabled:pointer-events-none',\n 'disabled:border-border-weak/50 disabled:bg-secondary-muted/10',\n\n // Additional custom styling\n className\n )}\n {...props}\n onChange={handleChange}\n />\n );\n}\n\nexport { Input };\n"],"mappings":"gIAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,EAAe,EAClB,GAA2C,CAC1C,IAAW,EAAE,CACb,IAAgB,EAAE,OAAO,MAAM,EAEjC,CAAC,EAAU,EAAc,CAC1B,CACD,OACE,EAAC,QAAA,CACC,YAAU,QACV,UAAW,EAET,4BACA,gDACA,mDAGA,kCACA,6BAGA,uCAGA,yCACA,gDACA,wDAGA,4DACA,0CAGA,kDACA,+BACA,gEAGA,EACD,CACD,GAAI,EACJ,SAAU,GACV"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime141 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/input.d.ts
|
|
4
4
|
declare function Input({
|
|
@@ -8,7 +8,7 @@ declare function Input({
|
|
|
8
8
|
...props
|
|
9
9
|
}: React.ComponentProps<'input'> & {
|
|
10
10
|
onValueChange?: (value: string) => void;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime141.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Input };
|
|
14
|
-
//# sourceMappingURL=input-
|
|
14
|
+
//# sourceMappingURL=input-BYy6D7Ol.d.cts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const e=require(`./chunk-CUT6urMc.cjs`);let t=require(`@customafk/react-toolkit/utils`);t=e.__toESM(t);let n=require(`react`);n=e.__toESM(n);let r=require(`react/jsx-runtime`);r=e.__toESM(r);function i({className:e,onChange:i,onValueChange:a,...o}){let s=(0,n.useCallback)(e=>{i?.(e),a?.(e.target.value)},[i,a]);return(0,r.jsx)(`input`,{"data-slot":`input`,className:(0,t.cn)(`flex h-9 w-full px-3 py-2`,`rounded-md border transition-all duration-200`,`text-text-positive-strong bg-transparent text-sm`,`border-border-weak shadow-input`,`caret-primary outline-none`,`placeholder:text-text-positive-muted`,`hover:border-border hover:shadow-input`,`focus:border-primary-strong focus:shadow-none`,`focus-visible:ring-primary-muted focus-visible:ring-4`,`aria-invalid:border-danger aria-invalid:ring-danger-muted`,`aria-invalid:hover:border-danger-strong`,`disabled:cursor-not-allowed disabled:opacity-50`,`disabled:pointer-events-none`,`disabled:border-border-weak/50 disabled:bg-secondary-muted/10`,e),...o,onChange:s})}Object.defineProperty(exports,`Input`,{enumerable:!0,get:function(){return i}});
|
|
2
|
-
//# sourceMappingURL=input-
|
|
2
|
+
//# sourceMappingURL=input-D7aXVX7j.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-
|
|
1
|
+
{"version":3,"file":"input-D7aXVX7j.cjs","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client';\nimport { useCallback } from 'react';\nimport { cn } from '@customafk/react-toolkit/utils';\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void;\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e);\n onValueChange?.(e.target.value);\n },\n [onChange, onValueChange]\n );\n return (\n <input\n data-slot=\"input\"\n className={cn(\n // Base styles\n 'flex h-9 w-full px-3 py-2',\n 'rounded-md border transition-all duration-200',\n 'text-text-positive-strong bg-transparent text-sm',\n\n // Border and shadow styles\n 'border-border-weak shadow-input',\n 'caret-primary outline-none',\n\n // Placeholder styling\n 'placeholder:text-text-positive-muted',\n\n // State styles\n 'hover:border-border hover:shadow-input',\n 'focus:border-primary-strong focus:shadow-none',\n 'focus-visible:ring-primary-muted focus-visible:ring-4',\n\n // Invalid state\n 'aria-invalid:border-danger aria-invalid:ring-danger-muted',\n 'aria-invalid:hover:border-danger-strong',\n\n // Disabled state\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'disabled:pointer-events-none',\n 'disabled:border-border-weak/50 disabled:bg-secondary-muted/10',\n\n // Additional custom styling\n className\n )}\n {...props}\n onChange={handleChange}\n />\n );\n}\n\nexport { Input };\n"],"mappings":"+LAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,GAAA,EAAA,EAAA,aACH,GAA2C,CAC1C,IAAW,EAAE,CACb,IAAgB,EAAE,OAAO,MAAM,EAEjC,CAAC,EAAU,EAAc,CAC1B,CACD,OACE,EAAA,EAAA,KAAC,QAAA,CACC,YAAU,QACV,WAAA,EAAA,EAAA,IAEE,4BACA,gDACA,mDAGA,kCACA,6BAGA,uCAGA,yCACA,gDACA,wDAGA,4DACA,0CAGA,kDACA,+BACA,gEAGA,EACD,CACD,GAAI,EACJ,SAAU,GACV"}
|