@customafk/lunas-ui 0.0.57 → 0.0.60
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/README.md +248 -99
- package/dist/{add-new-B9KK77jE.js → add-new-BrbEoynl.js} +1 -1
- package/dist/{add-new-B9KK77jE.js.map → add-new-BrbEoynl.js.map} +1 -1
- package/dist/{add-new-B9vW0r69.cjs → add-new-C9Gjd7QJ.cjs} +1 -1
- package/dist/{add-new-B9vW0r69.cjs.map → add-new-C9Gjd7QJ.cjs.map} +1 -1
- package/dist/alert-dialog-CnUUZRzI.js +2 -0
- package/dist/alert-dialog-CnUUZRzI.js.map +1 -0
- package/dist/{alert-dialog-Bc-61QzL.cjs → alert-dialog-csUZX4AP.cjs} +2 -2
- package/dist/alert-dialog-csUZX4AP.cjs.map +1 -0
- package/dist/{badge-1pcWNSLo.js → badge-gByXCsor.js} +2 -2
- package/dist/{badge-1pcWNSLo.js.map → badge-gByXCsor.js.map} +1 -1
- package/dist/{badge-xqIWOEbF.cjs → badge-i7tq2_AR.cjs} +2 -2
- package/dist/{badge-xqIWOEbF.cjs.map → badge-i7tq2_AR.cjs.map} +1 -1
- package/dist/{button-ChLnQHG9.d.ts → button-BHhyePyp.d.ts} +3 -3
- package/dist/button-ChpGfVjG.cjs.map +1 -1
- package/dist/button-DL_i4AVi.js.map +1 -1
- package/dist/{calendar-rpgciCA-.cjs → calendar-DtHmsN1p.cjs} +2 -2
- package/dist/calendar-DtHmsN1p.cjs.map +1 -0
- package/dist/{calendar-CB_hTeGT.js → calendar-aC4BQig6.js} +2 -2
- package/dist/calendar-aC4BQig6.js.map +1 -0
- package/dist/cards/simple-card.cjs +1 -1
- package/dist/cards/simple-card.cjs.map +1 -1
- package/dist/cards/simple-card.d.cts +0 -1
- package/dist/cards/simple-card.d.ts +0 -1
- package/dist/cards/simple-card.js +1 -1
- package/dist/cards/simple-card.js.map +1 -1
- package/dist/command-B3A4F1pB.js.map +1 -1
- package/dist/{command-CQ0BKof5.d.ts → command-C6YVs0fB.d.ts} +12 -12
- package/dist/command-D5rQByNQ.cjs.map +1 -1
- package/dist/{command-BkU08119.d.cts → command-Duxn64SV.d.cts} +12 -12
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.cjs.map +1 -1
- package/dist/data-display/country.d.cts +0 -1
- package/dist/data-display/country.d.ts +1 -2
- package/dist/data-display/country.js +1 -1
- package/dist/data-display/country.js.map +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.d.cts +0 -2
- package/dist/data-display/date.d.ts +0 -2
- package/dist/data-display/date.js +1 -1
- package/dist/data-display/empty.cjs +1 -1
- 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.cjs.map +1 -1
- package/dist/data-display/name.d.cts +0 -2
- package/dist/data-display/name.d.ts +0 -2
- package/dist/data-display/name.js +1 -1
- package/dist/data-display/name.js.map +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.cjs.map +1 -1
- package/dist/data-display/role-badge.d.cts +0 -1
- package/dist/data-display/role-badge.d.ts +1 -2
- package/dist/data-display/role-badge.js +1 -1
- package/dist/data-display/role-badge.js.map +1 -1
- package/dist/data-display/statistic.cjs +1 -1
- package/dist/data-display/statistic.cjs.map +1 -1
- package/dist/data-display/statistic.d.cts +4 -4
- package/dist/data-display/statistic.d.ts +4 -4
- package/dist/data-display/statistic.js +1 -1
- package/dist/data-display/statistic.js.map +1 -1
- package/dist/date-Cbx2drzh.js +2 -0
- package/dist/date-Cbx2drzh.js.map +1 -0
- package/dist/date-qVDm6BT3.cjs +2 -0
- package/dist/date-qVDm6BT3.cjs.map +1 -0
- package/dist/dialog-BEJ3krbY.js.map +1 -1
- package/dist/{dialog-Dt7Z19tQ.d.ts → dialog-Dra_FGdL.d.ts} +12 -12
- package/dist/dialog-E5OYibMU.cjs.map +1 -1
- package/dist/{dialog-DBHKJa6T.d.cts → dialog-uj9sAbgt.d.cts} +12 -12
- 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 +27 -28
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +4 -5
- 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.cjs.map +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/detail-dialog/index.js.map +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.d.cts +0 -2
- package/dist/dialogs/error-dialog.d.ts +0 -2
- package/dist/dialogs/error-dialog.js +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.cjs.map +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/form-dialog.js.map +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.cjs.map +1 -1
- package/dist/dialogs/loading-dialog.d.cts +0 -2
- package/dist/dialogs/loading-dialog.d.ts +0 -2
- package/dist/dialogs/loading-dialog.js +1 -1
- package/dist/dialogs/loading-dialog.js.map +1 -1
- package/dist/dropdown-menu-BF9QbIfo.js.map +1 -1
- package/dist/dropdown-menu-CIldv8D7.cjs.map +1 -1
- package/dist/error-dialog-Be_eV-D7.js +2 -0
- package/dist/error-dialog-Be_eV-D7.js.map +1 -0
- package/dist/error-dialog-CsZ9SHEm.cjs +2 -0
- package/dist/error-dialog-CsZ9SHEm.cjs.map +1 -0
- package/dist/{flex-uJ4bFSYt.js → flex-D_GSLR10.js} +2 -2
- package/dist/{flex-uJ4bFSYt.js.map → flex-D_GSLR10.js.map} +1 -1
- package/dist/{flex-DHnsdjKn.cjs → flex-DaTrJCBr.cjs} +2 -2
- package/dist/{flex-DHnsdjKn.cjs.map → flex-DaTrJCBr.cjs.map} +1 -1
- package/dist/form-Dcd2HzUB.cjs +2 -0
- package/dist/form-Dcd2HzUB.cjs.map +1 -0
- package/dist/form-RRTCXIG6.js +2 -0
- package/dist/form-RRTCXIG6.js.map +1 -0
- package/dist/form-wrapper-CjFQKRzY.cjs +2 -0
- package/dist/form-wrapper-CjFQKRzY.cjs.map +1 -0
- package/dist/form-wrapper-D-KkrCiZ.js +2 -0
- package/dist/form-wrapper-D-KkrCiZ.js.map +1 -0
- package/dist/forms/combobox-field.cjs +1 -1
- package/dist/forms/combobox-field.cjs.map +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/combobox-field.js.map +1 -1
- package/dist/forms/date-field.cjs +1 -1
- package/dist/forms/date-field.cjs.map +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/date-field.js.map +1 -1
- package/dist/forms/form-wrapper.cjs +1 -1
- package/dist/forms/form-wrapper.d.cts +2 -3
- package/dist/forms/form-wrapper.d.ts +2 -3
- 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.js +1 -1
- package/dist/forms/multi-select-field.js.map +1 -1
- package/dist/forms/number-field.cjs +1 -1
- package/dist/forms/number-field.cjs.map +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/number-field.js.map +1 -1
- package/dist/forms/password-field.cjs +1 -1
- package/dist/forms/password-field.cjs.map +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/password-field.js.map +1 -1
- package/dist/forms/select-field.cjs +1 -1
- package/dist/forms/select-field.cjs.map +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/select-field.js.map +1 -1
- package/dist/forms/switch-field.cjs +1 -1
- package/dist/forms/switch-field.cjs.map +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/switch-field.js.map +1 -1
- package/dist/forms/text-field.cjs +1 -1
- package/dist/forms/text-field.cjs.map +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/text-field.js.map +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-BQYGZywO.d.cts → input-6yLVoluZ.d.cts} +3 -3
- package/dist/{input-OWyLq45f.js → input-B2PP82lE.js} +2 -2
- package/dist/input-B2PP82lE.js.map +1 -0
- package/dist/{input-B8bT3wuo.cjs → input-DQF8Uxmk.cjs} +2 -2
- package/dist/input-DQF8Uxmk.cjs.map +1 -0
- package/dist/{input-B8FXpdwz.d.ts → input-MftSrRAM.d.ts} +3 -3
- package/dist/label-BpefWj7m.js +2 -0
- package/dist/{label-BQ52Pjw-.js.map → label-BpefWj7m.js.map} +1 -1
- package/dist/label-BvHMsK0O.cjs +2 -0
- package/dist/{label-3eYQRRYp.cjs.map → label-BvHMsK0O.cjs.map} +1 -1
- package/dist/layouts/app-layout/index.cjs +1 -1
- package/dist/layouts/app-layout/index.cjs.map +1 -1
- package/dist/layouts/app-layout/index.d.cts +25 -25
- package/dist/layouts/app-layout/index.d.ts +26 -26
- package/dist/layouts/app-layout/index.js +1 -1
- package/dist/layouts/app-layout/index.js.map +1 -1
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +2 -2
- package/dist/layouts/flex.d.ts +2 -2
- package/dist/layouts/flex.js +1 -1
- package/dist/{multi-select-DoV9aD32.cjs → multi-select-Ch4hJ1ZJ.cjs} +2 -2
- package/dist/multi-select-Ch4hJ1ZJ.cjs.map +1 -0
- package/dist/multi-select-l55hOOtW.js +2 -0
- package/dist/multi-select-l55hOOtW.js.map +1 -0
- package/dist/paragraph-BsEYXIR3.cjs.map +1 -1
- package/dist/paragraph-D4klQX4h.js.map +1 -1
- package/dist/popover-BAGWkHPy.js.map +1 -1
- package/dist/popover-sgf8XI5P.cjs.map +1 -1
- package/dist/progress-CMMXIQct.js +2 -0
- package/dist/{progress-DPisovgi.js.map → progress-CMMXIQct.js.map} +1 -1
- package/dist/progress-IkXemE6u.cjs +2 -0
- package/dist/{progress-MyGITZ3w.cjs.map → progress-IkXemE6u.cjs.map} +1 -1
- package/dist/{refresh-By25Z7zj.cjs → refresh-CAScDb8R.cjs} +1 -1
- package/dist/{refresh-By25Z7zj.cjs.map → refresh-CAScDb8R.cjs.map} +1 -1
- package/dist/{refresh-CMzmHeMf.js → refresh-D4LYYQln.js} +1 -1
- package/dist/{refresh-CMzmHeMf.js.map → refresh-D4LYYQln.js.map} +1 -1
- package/dist/scroll-area-CPQoJKt1.js.map +1 -1
- package/dist/scroll-area-D7O1NyZn.cjs.map +1 -1
- package/dist/{search-input-BmAoqcee.cjs → search-input-B1eWzWZj.cjs} +2 -2
- package/dist/{search-input-BmAoqcee.cjs.map → search-input-B1eWzWZj.cjs.map} +1 -1
- package/dist/{search-input-Ba8aUECr.js → search-input-BZtDbdjl.js} +2 -2
- package/dist/{search-input-Ba8aUECr.js.map → search-input-BZtDbdjl.js.map} +1 -1
- package/dist/select-C7na5CE5.cjs +2 -0
- package/dist/select-C7na5CE5.cjs.map +1 -0
- package/dist/select-VpccO3h2.js +2 -0
- package/dist/select-VpccO3h2.js.map +1 -0
- package/dist/{separator-DJ-8s4B1.d.cts → separator-C0YKWxkk.d.cts} +3 -3
- package/dist/{separator-CJHYnmH1.d.ts → separator-D6-cZUiB.d.ts} +3 -3
- package/dist/{separator-Bp3QE0oo.js → separator-DW2rRXaF.js} +1 -1
- package/dist/{separator-Bp3QE0oo.js.map → separator-DW2rRXaF.js.map} +1 -1
- package/dist/{separator-CECnaAdc.cjs → separator-DbcVW13X.cjs} +1 -1
- package/dist/{separator-CECnaAdc.cjs.map → separator-DbcVW13X.cjs.map} +1 -1
- package/dist/{sheet-CvstHEA7.cjs → sheet-BoPRwRzk.cjs} +1 -1
- package/dist/sheet-BoPRwRzk.cjs.map +1 -0
- package/dist/{sheet-B2CNJMzu.js → sheet-CJscm87z.js} +1 -1
- package/dist/sheet-CJscm87z.js.map +1 -0
- package/dist/sidebar-BCsgl6i1.cjs +2 -0
- package/dist/sidebar-BCsgl6i1.cjs.map +1 -0
- package/dist/sidebar-BEgx0ScE.js +2 -0
- package/dist/sidebar-BEgx0ScE.js.map +1 -0
- package/dist/{skeleton-DcRggqJa.cjs → skeleton-1syVaGRv.cjs} +1 -1
- package/dist/{skeleton-DcRggqJa.cjs.map → skeleton-1syVaGRv.cjs.map} +1 -1
- package/dist/{skeleton-BSWmwJUf.js → skeleton-D_7tekGk.js} +1 -1
- package/dist/{skeleton-BSWmwJUf.js.map → skeleton-D_7tekGk.js.map} +1 -1
- package/dist/{switch-FHFPaOds.js → switch-DxMWudiz.js} +2 -2
- package/dist/{switch-FHFPaOds.js.map → switch-DxMWudiz.js.map} +1 -1
- package/dist/{switch-ozERHRm5.cjs → switch-fR9s61cJ.cjs} +2 -2
- package/dist/{switch-ozERHRm5.cjs.map → switch-fR9s61cJ.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/table/index.js.map +1 -1
- package/dist/{table-Dgk7z91H.cjs → table-DxHSASjm.cjs} +2 -2
- package/dist/{table-Dgk7z91H.cjs.map → table-DxHSASjm.cjs.map} +1 -1
- package/dist/{table-goPaI3yw.js → table-DxiQX7c8.js} +2 -2
- package/dist/{table-goPaI3yw.js.map → table-DxiQX7c8.js.map} +1 -1
- package/dist/{textarea-DSJO-BLA.js → textarea-BZu5g3z6.js} +2 -2
- package/dist/textarea-BZu5g3z6.js.map +1 -0
- package/dist/{textarea-CtdlfMIV.cjs → textarea-qcxhp2mg.cjs} +2 -2
- package/dist/textarea-qcxhp2mg.cjs.map +1 -0
- package/dist/title-DONX1fR6.cjs.map +1 -1
- package/dist/title-itXqz0us.js.map +1 -1
- package/dist/{toggle-06cycHir.js → toggle-Biu3ZQOw.js} +2 -2
- package/dist/{toggle-06cycHir.js.map → toggle-Biu3ZQOw.js.map} +1 -1
- package/dist/{toggle-D5tumZ8L.d.cts → toggle-BxWWejw5.d.ts} +4 -4
- package/dist/{toggle-BIHM3COb.cjs → toggle-C50tM61w.cjs} +2 -2
- package/dist/{toggle-BIHM3COb.cjs.map → toggle-C50tM61w.cjs.map} +1 -1
- package/dist/{toggle-Dd0rFKhT.d.ts → toggle-DvJddJPj.d.cts} +4 -4
- package/dist/tooltip-B7S7TrMj.js +2 -0
- package/dist/{tooltip-Ba2AdN_7.js.map → tooltip-B7S7TrMj.js.map} +1 -1
- package/dist/{tooltip-DRqQqSFW.cjs → tooltip-BX3D74kN.cjs} +2 -2
- package/dist/{tooltip-DRqQqSFW.cjs.map → tooltip-BX3D74kN.cjs.map} +1 -1
- package/dist/{tooltip-BnRE0jV2.d.ts → tooltip-CcNSIS_A.d.ts} +6 -6
- package/dist/{tooltip-Dkh_dieJ.d.cts → tooltip-Ccg2G_fB.d.cts} +6 -6
- package/dist/types-BN8HhYHR.cjs.map +1 -1
- package/dist/types-DDfAVYxf.js.map +1 -1
- package/dist/{types-CmcNT14g.d.ts → types-engjL0nN.d.ts} +1 -1
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- 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.cjs +1 -1
- package/dist/ui/alert.cjs.map +1 -1
- package/dist/ui/alert.d.ts +6 -6
- package/dist/ui/alert.js +1 -1
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/aspect-ratio.cjs +1 -1
- package/dist/ui/aspect-ratio.cjs.map +1 -1
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/avatar.cjs +1 -1
- package/dist/ui/avatar.cjs.map +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/avatar.js.map +1 -1
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +4 -4
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.cjs +1 -1
- package/dist/ui/breadcrumb.cjs.map +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/breadcrumb.js.map +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/buttons/upload-image.cjs +1 -1
- package/dist/ui/buttons/upload-image.cjs.map +1 -1
- package/dist/ui/buttons/upload-image.js +1 -1
- package/dist/ui/buttons/upload-image.js.map +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +3 -3
- 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.cjs +1 -1
- package/dist/ui/carousel.cjs.map +1 -1
- package/dist/ui/carousel.d.cts +6 -6
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/carousel.js +1 -1
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/collapsible.cjs +1 -1
- package/dist/ui/collapsible.cjs.map +1 -1
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/collapsible.js +1 -1
- package/dist/ui/collapsible.js.map +1 -1
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/context-menu.cjs +1 -1
- package/dist/ui/context-menu.cjs.map +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/file-uploader.cjs +2 -2
- package/dist/ui/file-uploader.cjs.map +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/file-uploader.js +2 -2
- package/dist/ui/file-uploader.js.map +1 -1
- 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.cjs +1 -1
- package/dist/ui/hover-card.cjs.map +1 -1
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/image.cjs +2 -0
- package/dist/ui/image.cjs.map +1 -0
- package/dist/ui/image.d.cts +14 -0
- package/dist/ui/image.d.ts +14 -0
- package/dist/ui/image.js +2 -0
- package/dist/ui/image.js.map +1 -0
- package/dist/ui/input-otp.cjs +1 -1
- package/dist/ui/input-otp.cjs.map +1 -1
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input-otp.js +1 -1
- package/dist/ui/input-otp.js.map +1 -1
- 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/label.cjs +1 -1
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/label.js +1 -1
- package/dist/ui/menubar.cjs +1 -1
- package/dist/ui/menubar.cjs.map +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/menubar.js +1 -1
- package/dist/ui/menubar.js.map +1 -1
- 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.cjs.map +1 -1
- package/dist/ui/navigation-menu.d.cts +9 -9
- package/dist/ui/navigation-menu.d.ts +9 -9
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/pagination.cjs +1 -1
- package/dist/ui/pagination.cjs.map +1 -1
- package/dist/ui/pagination.d.cts +8 -8
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/progress.cjs +1 -1
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/progress.js +1 -1
- package/dist/ui/radio-group.cjs +1 -1
- package/dist/ui/radio-group.cjs.map +1 -1
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.js +1 -1
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/resizable.cjs +1 -1
- package/dist/ui/resizable.cjs.map +1 -1
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/resizable.js +1 -1
- package/dist/ui/resizable.js.map +1 -1
- 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.cjs +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar.cjs +2 -1
- package/dist/ui/sidebar.cjs.map +1 -0
- package/dist/ui/sidebar.d.cts +29 -29
- package/dist/ui/sidebar.d.ts +30 -30
- package/dist/ui/sidebar.js +2 -1
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.cjs +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.cjs +1 -1
- package/dist/ui/slider.cjs.map +1 -1
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/slider.js +1 -1
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.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.cjs +1 -1
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.cjs.map +1 -1
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/tabs.js.map +1 -1
- 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.cjs +1 -1
- package/dist/ui/toggle-group.cjs.map +1 -1
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.cjs +1 -1
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.js +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 +15 -5
- package/dist/alert-dialog-Bc-61QzL.cjs.map +0 -1
- package/dist/alert-dialog-kpuqvmVo.js +0 -2
- package/dist/alert-dialog-kpuqvmVo.js.map +0 -1
- package/dist/calendar-CB_hTeGT.js.map +0 -1
- package/dist/calendar-rpgciCA-.cjs.map +0 -1
- package/dist/date-D7i-nFOS.js +0 -2
- package/dist/date-D7i-nFOS.js.map +0 -1
- package/dist/date-DevNulgp.cjs +0 -2
- package/dist/date-DevNulgp.cjs.map +0 -1
- package/dist/error-dialog-DvTlwpSn.cjs +0 -2
- package/dist/error-dialog-DvTlwpSn.cjs.map +0 -1
- package/dist/error-dialog-e9mFaOuG.js +0 -2
- package/dist/error-dialog-e9mFaOuG.js.map +0 -1
- package/dist/form-BzvxUv0a.js +0 -2
- package/dist/form-BzvxUv0a.js.map +0 -1
- package/dist/form-CXu8t0VS.cjs +0 -2
- package/dist/form-CXu8t0VS.cjs.map +0 -1
- package/dist/form-wrapper-CZKtb1j5.cjs +0 -2
- package/dist/form-wrapper-CZKtb1j5.cjs.map +0 -1
- package/dist/form-wrapper-Cks4xmCV.js +0 -2
- package/dist/form-wrapper-Cks4xmCV.js.map +0 -1
- package/dist/input-B8bT3wuo.cjs.map +0 -1
- package/dist/input-OWyLq45f.js.map +0 -1
- package/dist/label-3eYQRRYp.cjs +0 -2
- package/dist/label-BQ52Pjw-.js +0 -2
- package/dist/layouts/main/index.cjs +0 -2
- package/dist/layouts/main/index.cjs.map +0 -1
- package/dist/layouts/main/index.d.cts +0 -17
- package/dist/layouts/main/index.d.ts +0 -17
- package/dist/layouts/main/index.js +0 -2
- package/dist/layouts/main/index.js.map +0 -1
- package/dist/multi-select-DkEzuDXi.js +0 -2
- package/dist/multi-select-DkEzuDXi.js.map +0 -1
- package/dist/multi-select-DoV9aD32.cjs.map +0 -1
- package/dist/progress-DPisovgi.js +0 -2
- package/dist/progress-MyGITZ3w.cjs +0 -2
- package/dist/select-BjTQmEN7.js +0 -2
- package/dist/select-BjTQmEN7.js.map +0 -1
- package/dist/select-BlPiYiG_.cjs +0 -2
- package/dist/select-BlPiYiG_.cjs.map +0 -1
- package/dist/sheet-B2CNJMzu.js.map +0 -1
- package/dist/sheet-CvstHEA7.cjs.map +0 -1
- package/dist/sidebar-BDefeoUz.js +0 -2
- package/dist/sidebar-BDefeoUz.js.map +0 -1
- package/dist/sidebar-C6MoqLW4.cjs +0 -2
- package/dist/sidebar-C6MoqLW4.cjs.map +0 -1
- package/dist/sidebar-CoAMlkou.js +0 -2
- package/dist/sidebar-CoAMlkou.js.map +0 -1
- package/dist/sidebar-Dzl9-lVV.cjs +0 -2
- package/dist/sidebar-Dzl9-lVV.cjs.map +0 -1
- package/dist/textarea-CtdlfMIV.cjs.map +0 -1
- package/dist/textarea-DSJO-BLA.js.map +0 -1
- package/dist/tooltip-Ba2AdN_7.js +0 -2
package/README.md
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
# UI
|
|
1
|
+
# Lunas UI - React Component Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@customafk/lunas-ui)
|
|
4
|
+
[](https://opensource.org/licenses/ISC)
|
|
5
|
+
[](https://nodejs.org/)
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
- 🔧 **Dễ tùy chỉnh**: Hỗ trợ CSS-in-JS, CSS modules, và Tailwind CSS
|
|
7
|
-
- 📱 **Responsive**: Tất cả component đều responsive và mobile-friendly
|
|
8
|
-
- ♿ **Accessible**: Tuân thủ các chuẩn WCAG 2.1 cho accessibility
|
|
9
|
-
<!--- 🌙 **Dark mode**: Hỗ trợ dark mode built-in-->
|
|
10
|
-
- 📦 **Tree-shaking**: Chỉ import những gì bạn cần
|
|
11
|
-
- 🔷 **TypeScript**: Được viết hoàn toàn bằng TypeScript với type definitions đầy đủ
|
|
7
|
+
A modern, accessible, and customizable React UI component library built for Lunas Enterprise applications.
|
|
12
8
|
|
|
13
|
-
##
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
- 🎨 **Modern Design**: Components designed with contemporary UI/UX principles
|
|
12
|
+
- 🔧 **Highly Customizable**: Supports TailwindCSS with class variance authority
|
|
13
|
+
- 📱 **Responsive**: All components are responsive and mobile-friendly
|
|
14
|
+
- ♿ **Accessible**: Complies with WCAG 2.1 accessibility standards
|
|
15
|
+
- 📦 **Tree-shaking**: Import only what you need for optimal bundle size
|
|
16
|
+
- 🔷 **TypeScript**: Fully typed with comprehensive TypeScript definitions
|
|
17
|
+
|
|
18
|
+
## 📦 Installation
|
|
14
19
|
|
|
15
20
|
```bash
|
|
16
21
|
# npm
|
|
17
|
-
npm
|
|
22
|
+
npm install @customafk/lunas-ui
|
|
18
23
|
|
|
19
24
|
# yarn
|
|
20
25
|
yarn add @customafk/lunas-ui
|
|
@@ -25,22 +30,49 @@ pnpm add @customafk/lunas-ui
|
|
|
25
30
|
|
|
26
31
|
### Peer Dependencies
|
|
27
32
|
|
|
33
|
+
Lunas UI requires the following peer dependencies:
|
|
34
|
+
|
|
28
35
|
```bash
|
|
29
36
|
npm install react react-dom
|
|
30
37
|
```
|
|
31
38
|
|
|
32
|
-
|
|
39
|
+
Additional peer dependencies for specific components:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install @hookform/error-message@^2.0.0 react-hook-form@^7.62.0 lucide-react@^0.541.0
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 🚀 Quick Start
|
|
46
|
+
|
|
47
|
+
1. Import styles in your main application file:
|
|
48
|
+
|
|
49
|
+
```jsx
|
|
50
|
+
// Import base styles first
|
|
51
|
+
import '@customafk/lunas-ui/styles/base'
|
|
52
|
+
// Import theme styles (required)
|
|
53
|
+
import '@customafk/lunas-ui/styles/theme'
|
|
54
|
+
// Optional: Import typography styles if needed
|
|
55
|
+
import '@customafk/lunas-ui/styles/typography'
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
2. Import and use components:
|
|
33
59
|
|
|
34
60
|
```jsx
|
|
35
61
|
import React from 'react'
|
|
36
|
-
import { Button
|
|
37
|
-
import '
|
|
62
|
+
import { Button } from '@customafk/lunas-ui/ui/button'
|
|
63
|
+
import { Card } from '@customafk/lunas-ui/ui/card'
|
|
64
|
+
import { TextField } from '@customafk/lunas-ui/forms/text-field'
|
|
65
|
+
import { FormWrapper } from '@customafk/lunas-ui/forms/form-wrapper'
|
|
38
66
|
|
|
39
67
|
function App() {
|
|
68
|
+
const onSubmit = (data) => console.log(data)
|
|
69
|
+
|
|
40
70
|
return (
|
|
41
|
-
<Card>
|
|
42
|
-
<
|
|
43
|
-
|
|
71
|
+
<Card className="mx-auto max-w-md p-6">
|
|
72
|
+
<FormWrapper onSubmit={onSubmit}>
|
|
73
|
+
<TextField name="username" label="Username" placeholder="Enter your username" />
|
|
74
|
+
<Button type="submit">Submit</Button>
|
|
75
|
+
</FormWrapper>
|
|
44
76
|
</Card>
|
|
45
77
|
)
|
|
46
78
|
}
|
|
@@ -48,77 +80,185 @@ function App() {
|
|
|
48
80
|
export default App
|
|
49
81
|
```
|
|
50
82
|
|
|
51
|
-
## 📋
|
|
52
|
-
|
|
53
|
-
|
|
83
|
+
## 📋 Comprehensive Component Reference
|
|
84
|
+
|
|
85
|
+
The following table provides a structured reference for all components available in the Lunas UI library:
|
|
86
|
+
|
|
87
|
+
| Category | Component | Import Path |
|
|
88
|
+
| ------------ | ----------------- | ----------------------------------------------- |
|
|
89
|
+
| UI | Alert | `@customafk/lunas-ui/ui/alert` |
|
|
90
|
+
| UI | AlertDialog | `@customafk/lunas-ui/ui/alert-dialog` |
|
|
91
|
+
| UI | AspectRatio | `@customafk/lunas-ui/ui/aspect-ratio` |
|
|
92
|
+
| UI | Avatar | `@customafk/lunas-ui/ui/avatar` |
|
|
93
|
+
| UI | Badge | `@customafk/lunas-ui/ui/badge` |
|
|
94
|
+
| UI | Breadcrumb | `@customafk/lunas-ui/ui/breadcrumb` |
|
|
95
|
+
| UI | Button | `@customafk/lunas-ui/ui/button` |
|
|
96
|
+
| UI | Calendar | `@customafk/lunas-ui/ui/calendar` |
|
|
97
|
+
| UI | Card | `@customafk/lunas-ui/ui/card` |
|
|
98
|
+
| UI | Carousel | `@customafk/lunas-ui/ui/carousel` |
|
|
99
|
+
| UI | Collapsible | `@customafk/lunas-ui/ui/collapsible` |
|
|
100
|
+
| UI | Command | `@customafk/lunas-ui/ui/command` |
|
|
101
|
+
| UI | ContextMenu | `@customafk/lunas-ui/ui/context-menu` |
|
|
102
|
+
| UI | Dialog | `@customafk/lunas-ui/ui/dialog` |
|
|
103
|
+
| UI | DropdownMenu | `@customafk/lunas-ui/ui/dropdown-menu` |
|
|
104
|
+
| UI | FileUploader | `@customafk/lunas-ui/ui/file-uploader` |
|
|
105
|
+
| UI | Form | `@customafk/lunas-ui/ui/form` |
|
|
106
|
+
| UI | HoverCard | `@customafk/lunas-ui/ui/hover-card` |
|
|
107
|
+
| UI | Input | `@customafk/lunas-ui/ui/input` |
|
|
108
|
+
| UI | InputOTP | `@customafk/lunas-ui/ui/input-otp` |
|
|
109
|
+
| UI | Label | `@customafk/lunas-ui/ui/label` |
|
|
110
|
+
| UI | Menubar | `@customafk/lunas-ui/ui/menubar` |
|
|
111
|
+
| UI | MultiSelect | `@customafk/lunas-ui/ui/multi-select` |
|
|
112
|
+
| UI | NavigationMenu | `@customafk/lunas-ui/ui/navigation-menu` |
|
|
113
|
+
| UI | Pagination | `@customafk/lunas-ui/ui/pagination` |
|
|
114
|
+
| UI | Popover | `@customafk/lunas-ui/ui/popover` |
|
|
115
|
+
| UI | Progress | `@customafk/lunas-ui/ui/progress` |
|
|
116
|
+
| UI | RadioGroup | `@customafk/lunas-ui/ui/radio-group` |
|
|
117
|
+
| UI | Resizable | `@customafk/lunas-ui/ui/resizable` |
|
|
118
|
+
| UI | ScrollArea | `@customafk/lunas-ui/ui/scroll-area` |
|
|
119
|
+
| UI | Select | `@customafk/lunas-ui/ui/select` |
|
|
120
|
+
| UI | Separator | `@customafk/lunas-ui/ui/separator` |
|
|
121
|
+
| UI | Sheet | `@customafk/lunas-ui/ui/sheet` |
|
|
122
|
+
| UI | Sidebar | `@customafk/lunas-ui/ui/sidebar` |
|
|
123
|
+
| UI | Skeleton | `@customafk/lunas-ui/ui/skeleton` |
|
|
124
|
+
| UI | Slider | `@customafk/lunas-ui/ui/slider` |
|
|
125
|
+
| UI | Sonner | `@customafk/lunas-ui/ui/sonner` |
|
|
126
|
+
| UI | Switch | `@customafk/lunas-ui/ui/switch` |
|
|
127
|
+
| UI | Table | `@customafk/lunas-ui/ui/table` |
|
|
128
|
+
| UI | Tabs | `@customafk/lunas-ui/ui/tabs` |
|
|
129
|
+
| UI | Textarea | `@customafk/lunas-ui/ui/textarea` |
|
|
130
|
+
| UI | Toggle | `@customafk/lunas-ui/ui/toggle` |
|
|
131
|
+
| UI | ToggleGroup | `@customafk/lunas-ui/ui/toggle-group` |
|
|
132
|
+
| UI | Tooltip | `@customafk/lunas-ui/ui/tooltip` |
|
|
133
|
+
| UI Buttons | AddNewButton | `@customafk/lunas-ui/ui/buttons/add-new` |
|
|
134
|
+
| UI Buttons | EditButton | `@customafk/lunas-ui/ui/buttons/edit` |
|
|
135
|
+
| UI Buttons | RefreshButton | `@customafk/lunas-ui/ui/buttons/refresh` |
|
|
136
|
+
| UI Buttons | TrashButton | `@customafk/lunas-ui/ui/buttons/trash` |
|
|
137
|
+
| UI Buttons | UploadImageButton | `@customafk/lunas-ui/ui/buttons/upload-image` |
|
|
138
|
+
| UI Inputs | SearchInput | `@customafk/lunas-ui/ui/inputs/search-input` |
|
|
139
|
+
| Forms | FormWrapper | `@customafk/lunas-ui/forms/form-wrapper` |
|
|
140
|
+
| Forms | TextField | `@customafk/lunas-ui/forms/text-field` |
|
|
141
|
+
| Forms | PasswordField | `@customafk/lunas-ui/forms/password-field` |
|
|
142
|
+
| Forms | NumberField | `@customafk/lunas-ui/forms/number-field` |
|
|
143
|
+
| Forms | SelectField | `@customafk/lunas-ui/forms/select-field` |
|
|
144
|
+
| Forms | DateField | `@customafk/lunas-ui/forms/date-field` |
|
|
145
|
+
| Forms | SwitchField | `@customafk/lunas-ui/forms/switch-field` |
|
|
146
|
+
| Forms | TextareaField | `@customafk/lunas-ui/forms/textarea-field` |
|
|
147
|
+
| Forms | MultiSelectField | `@customafk/lunas-ui/forms/multi-select-field` |
|
|
148
|
+
| Layout | Flex | `@customafk/lunas-ui/layouts/flex` |
|
|
149
|
+
| Layout | Grid | `@customafk/lunas-ui/layouts/grid` |
|
|
150
|
+
| Layout | AppLayout | `@customafk/lunas-ui/layouts/app-layout` |
|
|
151
|
+
| Layout | Main | `@customafk/lunas-ui/layouts/main` |
|
|
152
|
+
| Data Display | Country | `@customafk/lunas-ui/data-display/country` |
|
|
153
|
+
| Data Display | DataList | `@customafk/lunas-ui/data-display/data-list` |
|
|
154
|
+
| Data Display | Date | `@customafk/lunas-ui/data-display/date` |
|
|
155
|
+
| Data Display | DateTooltip | `@customafk/lunas-ui/data-display/date-tooltip` |
|
|
156
|
+
| Data Display | Empty | `@customafk/lunas-ui/data-display/empty` |
|
|
157
|
+
| Data Display | Name | `@customafk/lunas-ui/data-display/name` |
|
|
158
|
+
| Data Display | PhoneNumber | `@customafk/lunas-ui/data-display/phone-number` |
|
|
159
|
+
| Data Display | RoleBadge | `@customafk/lunas-ui/data-display/role-badge` |
|
|
160
|
+
| Data Display | Statistic | `@customafk/lunas-ui/data-display/statistic` |
|
|
161
|
+
| Dialogs | ConfirmDialog | `@customafk/lunas-ui/dialogs/confirm-dialog` |
|
|
162
|
+
| Dialogs | DetailDialog | `@customafk/lunas-ui/dialogs/detail-dialog` |
|
|
163
|
+
| Dialogs | ErrorDialog | `@customafk/lunas-ui/dialogs/error-dialog` |
|
|
164
|
+
| Dialogs | FormDialog | `@customafk/lunas-ui/dialogs/form-dialog` |
|
|
165
|
+
| Dialogs | LoadingDialog | `@customafk/lunas-ui/dialogs/loading-dialog` |
|
|
166
|
+
| Table | DataTable | `@customafk/lunas-ui/table` |
|
|
167
|
+
| Typography | Title | `@customafk/lunas-ui/typography/title` |
|
|
168
|
+
| Typography | Paragraph | `@customafk/lunas-ui/typography/paragraph` |
|
|
169
|
+
|
|
170
|
+
### Common Import Requirements
|
|
54
171
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- `Checkbox` - Checkbox và radio button
|
|
59
|
-
- `Switch` - Toggle switch
|
|
60
|
-
|
|
61
|
-
### Layout Components
|
|
172
|
+
```jsx
|
|
173
|
+
// Required for all form components
|
|
174
|
+
import { useForm } from 'react-hook-form'
|
|
62
175
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
- `Card` - Card component
|
|
66
|
-
- `Modal` - Modal dialog
|
|
67
|
-
- `Drawer` - Side drawer
|
|
176
|
+
// Required for icon components
|
|
177
|
+
import { LucideIcon } from 'lucide-react'
|
|
68
178
|
|
|
69
|
-
|
|
179
|
+
// Utility for class name merging
|
|
180
|
+
import { cn } from '@customafk/lunas-ui/lib/utils'
|
|
181
|
+
```
|
|
70
182
|
|
|
71
|
-
|
|
72
|
-
- `Toast` - Toast notifications
|
|
73
|
-
- `Loading` - Loading indicators
|
|
74
|
-
- `Progress` - Progress bars
|
|
183
|
+
## 🎨 Theming
|
|
75
184
|
|
|
76
|
-
|
|
185
|
+
Lunas UI supports customization through CSS variables. To customize the theme:
|
|
77
186
|
|
|
78
|
-
|
|
79
|
-
- `Breadcrumb` - Breadcrumb navigation
|
|
80
|
-
- `Pagination` - Pagination component
|
|
81
|
-
- `Tabs` - Tab component
|
|
187
|
+
1. Import the base theme:
|
|
82
188
|
|
|
83
|
-
|
|
189
|
+
```jsx
|
|
190
|
+
import '@customafk/lunas-ui/styles/theme'
|
|
191
|
+
```
|
|
84
192
|
|
|
85
|
-
|
|
193
|
+
2. Override CSS variables in your global CSS file:
|
|
86
194
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
195
|
+
```css
|
|
196
|
+
:root {
|
|
197
|
+
--primary: 222.2 47.4% 55.1%;
|
|
198
|
+
--primary-muted: 222.2 47.4% 95%;
|
|
199
|
+
--primary-weak: 222.2 47.4% 90%;
|
|
200
|
+
--primary-strong: 222.2 47.4% 45%;
|
|
201
|
+
--primary-intense: 222.2 47.4% 35%;
|
|
91
202
|
|
|
92
|
-
|
|
203
|
+
/* Other variables can be overridden similarly */
|
|
204
|
+
}
|
|
205
|
+
```
|
|
93
206
|
|
|
94
|
-
##
|
|
207
|
+
## 📖 Component Examples
|
|
95
208
|
|
|
96
|
-
###
|
|
209
|
+
### Form Example
|
|
97
210
|
|
|
98
211
|
```jsx
|
|
99
|
-
|
|
100
|
-
import '
|
|
212
|
+
import { FormWrapper } from '@customafk/lunas-ui/forms/form-wrapper'
|
|
213
|
+
import { TextField } from '@customafk/lunas-ui/forms/text-field'
|
|
214
|
+
import { PasswordField } from '@customafk/lunas-ui/forms/password-field'
|
|
215
|
+
import { Button } from '@customafk/lunas-ui/ui/button'
|
|
216
|
+
|
|
217
|
+
const LoginForm = () => {
|
|
218
|
+
const onSubmit = (data) => {
|
|
219
|
+
console.log('Form submitted:', data)
|
|
220
|
+
}
|
|
101
221
|
|
|
102
|
-
|
|
103
|
-
|
|
222
|
+
return (
|
|
223
|
+
<FormWrapper onSubmit={onSubmit}>
|
|
224
|
+
<TextField name="email" label="Email" placeholder="Enter your email" isShowErrorMsg />
|
|
225
|
+
<PasswordField name="password" label="Password" isShowErrorMsg />
|
|
226
|
+
<Button type="submit">Log In</Button>
|
|
227
|
+
</FormWrapper>
|
|
228
|
+
)
|
|
229
|
+
}
|
|
104
230
|
```
|
|
105
231
|
|
|
106
|
-
###
|
|
232
|
+
### Data Table Example
|
|
107
233
|
|
|
108
234
|
```jsx
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
235
|
+
import { DataTable } from '@customafk/lunas-ui/table'
|
|
236
|
+
|
|
237
|
+
const columns = [
|
|
238
|
+
{
|
|
239
|
+
accessorKey: 'name',
|
|
240
|
+
header: 'Name',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
accessorKey: 'email',
|
|
244
|
+
header: 'Email',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
accessorKey: 'role',
|
|
248
|
+
header: 'Role',
|
|
249
|
+
},
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
const data = [
|
|
253
|
+
{ name: 'John Doe', email: 'john@example.com', role: 'Admin' },
|
|
254
|
+
{ name: 'Jane Smith', email: 'jane@example.com', role: 'User' },
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
const MyTable = () => {
|
|
258
|
+
return <DataTable columns={columns} data={data} />
|
|
259
|
+
}
|
|
114
260
|
```
|
|
115
261
|
|
|
116
|
-
## 🌟 Examples
|
|
117
|
-
|
|
118
|
-
### Basic Form
|
|
119
|
-
|
|
120
|
-
### Dark Mode
|
|
121
|
-
|
|
122
262
|
## 🛠️ Development
|
|
123
263
|
|
|
124
264
|
```bash
|
|
@@ -129,66 +269,75 @@ cd lunas-enterprise-ui-package
|
|
|
129
269
|
# Install dependencies
|
|
130
270
|
npm install
|
|
131
271
|
|
|
132
|
-
#
|
|
133
|
-
npm run
|
|
272
|
+
# Start development environment
|
|
273
|
+
npm run dev
|
|
134
274
|
|
|
135
|
-
# Run
|
|
275
|
+
# Run Storybook
|
|
136
276
|
npm run storybook
|
|
137
|
-
```
|
|
138
277
|
|
|
139
|
-
|
|
278
|
+
# Build the library
|
|
279
|
+
npm run build
|
|
280
|
+
```
|
|
140
281
|
|
|
141
282
|
## 🤝 Contributing
|
|
142
283
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Development Process
|
|
284
|
+
We welcome contributions! Please follow these steps to contribute:
|
|
146
285
|
|
|
147
286
|
1. Fork repository
|
|
148
|
-
2.
|
|
287
|
+
2. Create feature branch (`git checkout -b feature/amazing-feature`)
|
|
149
288
|
3. Commit changes (`git commit -m 'Add amazing feature'`)
|
|
150
289
|
4. Push to branch (`git push origin feature/amazing-feature`)
|
|
151
|
-
5.
|
|
290
|
+
5. Create Pull Request
|
|
152
291
|
|
|
153
292
|
### Coding Standards
|
|
154
293
|
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
- Update documentation
|
|
158
|
-
-
|
|
294
|
+
- Follow ESLint config
|
|
295
|
+
- Write tests for new features
|
|
296
|
+
- Update documentation as needed
|
|
297
|
+
- Use conventional commits
|
|
159
298
|
|
|
160
299
|
## 📝 Changelog
|
|
161
300
|
|
|
162
|
-
|
|
301
|
+
See [CHANGELOG.md](CHANGELOG.md) for version history and changes.
|
|
163
302
|
|
|
164
303
|
## 📄 License
|
|
165
304
|
|
|
166
|
-
|
|
305
|
+
ISC © [CustomAFK](https://github.com/QuangPhamvt)
|
|
306
|
+
|
|
307
|
+
## 🤖 Component API Documentation for Developers and AI Assistants
|
|
308
|
+
|
|
309
|
+
The following provides a simplified component reference for all components in the library. For detailed props documentation and usage examples, visit our documentation site.
|
|
310
|
+
|
|
311
|
+
### Integration Patterns
|
|
312
|
+
|
|
313
|
+
- Form components should be used within a `FormWrapper` component
|
|
314
|
+
- Dialog components typically need `open` and `onOpenChange` props to be controlled
|
|
315
|
+
- All components support `className` for custom styling with Tailwind
|
|
316
|
+
- Many components have variants that can be accessed via the `variant` prop
|
|
317
|
+
- Component styles are customizable through CSS variables in `:root`
|
|
318
|
+
- All UI components are responsive and support various screen sizes
|
|
167
319
|
|
|
168
320
|
## 🙋♀️ Support
|
|
169
321
|
|
|
170
|
-
- **Documentation**: [https://
|
|
171
|
-
- **GitHub Issues**: [Report bugs
|
|
172
|
-
- **
|
|
173
|
-
- **Email**: support@your-ui-library.com
|
|
322
|
+
- **Documentation**: [https://ui.lunas.vn](https://ui.lunas.vn)
|
|
323
|
+
- **GitHub Issues**: [Report bugs or feature requests](https://github.com/QuangPhamvt/lunas-enterprise-ui-package/issues)
|
|
324
|
+
- **Email**: quangpm220503vt@gmail.com
|
|
174
325
|
|
|
175
326
|
## 🏆 Credits
|
|
176
327
|
|
|
177
|
-
-
|
|
178
|
-
- Icons
|
|
179
|
-
- Inspiration
|
|
328
|
+
- Thanks to [React](https://reactjs.org/) team
|
|
329
|
+
- Icons from [Lucide React](https://lucide.dev/icons/)
|
|
330
|
+
- Inspiration from [Chakra UI](https://chakra-ui.com/) and [Material-UI](https://mui.com/)
|
|
180
331
|
|
|
181
332
|
---
|
|
182
333
|
|
|
183
334
|
<div align="center">
|
|
184
|
-
|
|
335
|
+
Created with ❤️ by <a href="https://github.com/QuangPhamvt">CustomAFK</a>
|
|
185
336
|
</div>
|
|
186
337
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
```-->
|
|
338
|
+
<!--
|
|
339
|
+
"./styles/base": "./styles/base.css",
|
|
340
|
+
"./styles/loader": "./styles/loader.css",
|
|
341
|
+
"./styles/theme": "./styles/theme.css",
|
|
342
|
+
"./styles/typography": "./styles/typography.css",
|
|
343
|
+
-->
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{Paragraph as e}from"./paragraph-D4klQX4h.js";import{Button as t}from"./button-DL_i4AVi.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{PlusIcon as i}from"lucide-react";const a=({onClick:a=()=>{}})=>r(t,{"aria-label":`Tạo mới`,variant:`outline`,color:`muted`,className:`outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0`,onClick:a,children:[n(i,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),n(e,{variant:`sm`,className:`max-sm:sr-only`,children:`Create`})]});export{a as AddNewBtn};
|
|
2
|
-
//# sourceMappingURL=add-new-
|
|
2
|
+
//# sourceMappingURL=add-new-BrbEoynl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-new-
|
|
1
|
+
{"version":3,"file":"add-new-BrbEoynl.js","names":["AddNewBtn: React.FC<React.PropsWithChildren<Props>>"],"sources":["../packages/components/ui/buttons/add-new.tsx"],"sourcesContent":["import { PlusIcon } from 'lucide-react'\n\nimport { Paragraph } from '@/components/typography/paragraph'\n\nimport { Button } from '../button'\n\ntype Props = {\n onClick?: () => void\n}\nexport const AddNewBtn: React.FC<React.PropsWithChildren<Props>> = ({ onClick = () => {} }) => {\n return (\n <Button\n aria-label=\"Tạo mới\"\n variant=\"outline\"\n color=\"muted\"\n className=\"outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0\"\n onClick={onClick}\n >\n <PlusIcon className=\"opacity-60 sm:-ms-1\" size={16} aria-hidden=\"true\" />\n <Paragraph variant=\"sm\" className=\"max-sm:sr-only\">\n Create\n </Paragraph>\n </Button>\n )\n}\n"],"mappings":"4LASA,MAAaA,GAAuD,CAAE,cAAgB,MAElF,EAAC,EAAA,CACC,aAAW,UACX,QAAQ,UACR,MAAM,QACN,UAAU,oEACD,oBAET,EAAC,EAAA,CAAS,UAAU,sBAAsB,KAAM,GAAI,cAAY,SAChE,EAAC,EAAA,CAAU,QAAQ,KAAK,UAAU,0BAAiB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const e=require(`./chunk-CUT6urMc.cjs`),t=require(`./paragraph-BsEYXIR3.cjs`),n=require(`./button-ChpGfVjG.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`lucide-react`)),a=({onClick:e=()=>{}})=>(0,r.jsxs)(n.Button,{"aria-label":`Tạo mới`,variant:`outline`,color:`muted`,className:`outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0`,onClick:e,children:[(0,r.jsx)(i.PlusIcon,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),(0,r.jsx)(t.Paragraph,{variant:`sm`,className:`max-sm:sr-only`,children:`Create`})]});Object.defineProperty(exports,`AddNewBtn`,{enumerable:!0,get:function(){return a}});
|
|
2
|
-
//# sourceMappingURL=add-new-
|
|
2
|
+
//# sourceMappingURL=add-new-C9Gjd7QJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-new-
|
|
1
|
+
{"version":3,"file":"add-new-C9Gjd7QJ.cjs","names":["AddNewBtn: React.FC<React.PropsWithChildren<Props>>","Button","PlusIcon","Paragraph"],"sources":["../packages/components/ui/buttons/add-new.tsx"],"sourcesContent":["import { PlusIcon } from 'lucide-react'\n\nimport { Paragraph } from '@/components/typography/paragraph'\n\nimport { Button } from '../button'\n\ntype Props = {\n onClick?: () => void\n}\nexport const AddNewBtn: React.FC<React.PropsWithChildren<Props>> = ({ onClick = () => {} }) => {\n return (\n <Button\n aria-label=\"Tạo mới\"\n variant=\"outline\"\n color=\"muted\"\n className=\"outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0\"\n onClick={onClick}\n >\n <PlusIcon className=\"opacity-60 sm:-ms-1\" size={16} aria-hidden=\"true\" />\n <Paragraph variant=\"sm\" className=\"max-sm:sr-only\">\n Create\n </Paragraph>\n </Button>\n )\n}\n"],"mappings":"gMASaA,GAAuD,CAAE,cAAgB,OAElF,EAAA,EAAA,MAACC,EAAAA,OAAAA,CACC,aAAW,UACX,QAAQ,UACR,MAAM,QACN,UAAU,oEACD,qBAET,EAAA,EAAA,KAACC,EAAAA,SAAAA,CAAS,UAAU,sBAAsB,KAAM,GAAI,cAAY,UAChE,EAAA,EAAA,KAACC,EAAAA,UAAAA,CAAU,QAAQ,KAAK,UAAU,0BAAiB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{buttonVariants as e}from"./button-DL_i4AVi.js";import{cn as t}from"@customafk/react-toolkit/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import i from"react";import{AlertDialog as a}from"radix-ui";function o({...e}){return n(a.Root,{"data-slot":`alert-dialog`,...e})}function s({...e}){return n(a.Trigger,{"data-slot":`alert-dialog-trigger`,...e})}function c({...e}){return n(a.Portal,{"data-slot":`alert-dialog-portal`,...e})}function l({className:e,...r}){return n(a.Overlay,{"data-slot":`alert-dialog-overlay`,className:t(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=open]:fade-in-0`,e),...r})}function u({className:e,...i}){return r(c,{children:[n(l,{}),n(a.Content,{"data-slot":`alert-dialog-content`,className:t(`bg-background`,`fixed z-50`,`top-1/2 left-1/2 -translate-1/2`,`grid w-full max-w-[calc(100%-2rem)] sm:max-w-lg`,`gap-4 rounded-lg p-6 shadow-lg duration-200`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=closed]:zoom-out-95`,e),...i})]})}function d({className:e,...r}){return n(`div`,{"data-slot":`alert-dialog-header`,className:t(`flex flex-col gap-2 text-center sm:text-left`,e),...r})}function f({className:e,...r}){return n(`div`,{"data-slot":`alert-dialog-footer`,className:t(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r})}function p({className:e,...r}){return n(a.Title,{"data-slot":`alert-dialog-title`,className:t(`text-text-positive-strong text-lg font-semibold`,e),...r})}function m({className:e,...r}){return n(a.Description,{"data-slot":`alert-dialog-description`,className:t(`text-text-positive-weak text-sm`,e),...r})}function h({className:r,...i}){return n(a.Action,{className:t(e(),`min-w-24`,r),...i,autoFocus:!0,tabIndex:1})}function g({className:r,...i}){return n(a.Cancel,{className:t(e({variant:`outline`,color:`muted`}),`min-w-24`,r),...i})}export{o as AlertDialog,h as AlertDialogAction,g as AlertDialogCancel,u as AlertDialogContent,m as AlertDialogDescription,f as AlertDialogFooter,d as AlertDialogHeader,l as AlertDialogOverlay,c as AlertDialogPortal,p as AlertDialogTitle,s as AlertDialogTrigger};
|
|
2
|
+
//# sourceMappingURL=alert-dialog-CnUUZRzI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-CnUUZRzI.js","names":["AlertDialog","AlertDialogPrimitive"],"sources":["../packages/components/ui/alert-dialog.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { buttonVariants } from '@/components/ui/button'\n\nimport { AlertDialog as AlertDialogPrimitive } from 'radix-ui'\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\n}\n\nfunction AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {\n return <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />\n}\n\nfunction AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n return <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />\n}\n\nfunction AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\n return (\n <AlertDialogPrimitive.Overlay\n data-slot=\"alert-dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:animate-in',\n 'data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0',\n 'data-[state=open]:fade-in-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {\n return (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n data-slot=\"alert-dialog-content\"\n className={cn(\n 'bg-background',\n 'fixed z-50',\n 'top-1/2 left-1/2 -translate-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] sm:max-w-lg',\n 'gap-4 rounded-lg p-6 shadow-lg duration-200',\n 'data-[state=open]:animate-in',\n 'data-[state=open]:fade-in-0',\n 'data-[state=open]:zoom-in-95',\n 'data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0',\n 'data-[state=closed]:zoom-out-95',\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n )\n}\n\nfunction AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"alert-dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />\n}\n\nfunction AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"alert-dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />\n}\n\nfunction AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n return <AlertDialogPrimitive.Title data-slot=\"alert-dialog-title\" className={cn('text-text-positive-strong text-lg font-semibold', className)} {...props} />\n}\n\nfunction AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n return <AlertDialogPrimitive.Description data-slot=\"alert-dialog-description\" className={cn('text-text-positive-weak text-sm', className)} {...props} />\n}\n\nfunction AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {\n return <AlertDialogPrimitive.Action className={cn(buttonVariants(), 'min-w-24', className)} {...props} autoFocus tabIndex={1} />\n}\n\nfunction AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {\n return <AlertDialogPrimitive.Cancel className={cn(buttonVariants({ variant: 'outline', color: 'muted' }), 'min-w-24', className)} {...props} />\n}\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n}\n"],"mappings":"wNAQA,SAASA,EAAY,CAAE,GAAG,GAAiE,CACzF,OAAO,EAACC,EAAqB,KAAA,CAAK,YAAU,eAAe,GAAI,IAGjE,SAAS,EAAmB,CAAE,GAAG,GAAoE,CACnG,OAAO,EAACA,EAAqB,QAAA,CAAQ,YAAU,uBAAuB,GAAI,IAG5E,SAAS,EAAkB,CAAE,GAAG,GAAmE,CACjG,OAAO,EAACA,EAAqB,OAAA,CAAO,YAAU,sBAAsB,GAAI,IAG1E,SAAS,EAAmB,CAAE,YAAW,GAAG,GAAoE,CAC9G,OACE,EAACA,EAAqB,QAAA,CACpB,YAAU,uBACV,UAAW,EACT,iCACA,+BACA,kCACA,iCACA,8BACA,GAEF,GAAI,IAKV,SAAS,EAAmB,CAAE,YAAW,GAAG,GAAoE,CAC9G,OACE,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,IACD,EAACA,EAAqB,QAAA,CACpB,YAAU,uBACV,UAAW,EACT,gBACA,aACA,kCACA,kDACA,8CACA,+BACA,8BACA,+BACA,kCACA,iCACA,kCACA,GAEF,GAAI,OAMZ,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAsC,CAC/E,OAAO,EAAC,MAAA,CAAI,YAAU,sBAAsB,UAAW,EAAG,+CAAgD,GAAY,GAAI,IAG5H,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAsC,CAC/E,OAAO,EAAC,MAAA,CAAI,YAAU,sBAAsB,UAAW,EAAG,yDAA0D,GAAY,GAAI,IAGtI,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAkE,CAC1G,OAAO,EAACA,EAAqB,MAAA,CAAM,YAAU,qBAAqB,UAAW,EAAG,kDAAmD,GAAY,GAAI,IAGrJ,SAAS,EAAuB,CAAE,YAAW,GAAG,GAAwE,CACtH,OAAO,EAACA,EAAqB,YAAA,CAAY,YAAU,2BAA2B,UAAW,EAAG,kCAAmC,GAAY,GAAI,IAGjJ,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAACA,EAAqB,OAAA,CAAO,UAAW,EAAG,IAAkB,WAAY,GAAY,GAAI,EAAO,UAAA,GAAU,SAAU,IAG7H,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAACA,EAAqB,OAAA,CAAO,UAAW,EAAG,EAAe,CAAE,QAAS,UAAW,MAAO,UAAY,WAAY,GAAY,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`./chunk-CUT6urMc.cjs`),t=require(`./button-ChpGfVjG.cjs`),n=e.__toESM(require(
|
|
2
|
-
//# sourceMappingURL=alert-dialog-
|
|
1
|
+
const e=require(`./chunk-CUT6urMc.cjs`),t=require(`./button-ChpGfVjG.cjs`),n=e.__toESM(require(`@customafk/react-toolkit/utils`)),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`react`)),a=e.__toESM(require(`radix-ui`));function o({...e}){return(0,r.jsx)(a.AlertDialog.Root,{"data-slot":`alert-dialog`,...e})}function s({...e}){return(0,r.jsx)(a.AlertDialog.Trigger,{"data-slot":`alert-dialog-trigger`,...e})}function c({...e}){return(0,r.jsx)(a.AlertDialog.Portal,{"data-slot":`alert-dialog-portal`,...e})}function l({className:e,...t}){return(0,r.jsx)(a.AlertDialog.Overlay,{"data-slot":`alert-dialog-overlay`,className:(0,n.cn)(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=open]:fade-in-0`,e),...t})}function u({className:e,...t}){return(0,r.jsxs)(c,{children:[(0,r.jsx)(l,{}),(0,r.jsx)(a.AlertDialog.Content,{"data-slot":`alert-dialog-content`,className:(0,n.cn)(`bg-background`,`fixed z-50`,`top-1/2 left-1/2 -translate-1/2`,`grid w-full max-w-[calc(100%-2rem)] sm:max-w-lg`,`gap-4 rounded-lg p-6 shadow-lg duration-200`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=closed]:zoom-out-95`,e),...t})]})}function d({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:(0,n.cn)(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function f({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:(0,n.cn)(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function p({className:e,...t}){return(0,r.jsx)(a.AlertDialog.Title,{"data-slot":`alert-dialog-title`,className:(0,n.cn)(`text-text-positive-strong text-lg font-semibold`,e),...t})}function m({className:e,...t}){return(0,r.jsx)(a.AlertDialog.Description,{"data-slot":`alert-dialog-description`,className:(0,n.cn)(`text-text-positive-weak text-sm`,e),...t})}function h({className:e,...i}){return(0,r.jsx)(a.AlertDialog.Action,{className:(0,n.cn)(t.buttonVariants(),`min-w-24`,e),...i,autoFocus:!0,tabIndex:1})}function g({className:e,...i}){return(0,r.jsx)(a.AlertDialog.Cancel,{className:(0,n.cn)(t.buttonVariants({variant:`outline`,color:`muted`}),`min-w-24`,e),...i})}Object.defineProperty(exports,`AlertDialog`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`AlertDialogAction`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`AlertDialogCancel`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`AlertDialogContent`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`AlertDialogDescription`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`AlertDialogFooter`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`AlertDialogHeader`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`AlertDialogOverlay`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`AlertDialogPortal`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`AlertDialogTitle`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`AlertDialogTrigger`,{enumerable:!0,get:function(){return s}});
|
|
2
|
+
//# sourceMappingURL=alert-dialog-csUZX4AP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-csUZX4AP.cjs","names":["AlertDialogPrimitive","buttonVariants"],"sources":["../packages/components/ui/alert-dialog.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { buttonVariants } from '@/components/ui/button'\n\nimport { AlertDialog as AlertDialogPrimitive } from 'radix-ui'\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\n}\n\nfunction AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {\n return <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />\n}\n\nfunction AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n return <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />\n}\n\nfunction AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\n return (\n <AlertDialogPrimitive.Overlay\n data-slot=\"alert-dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:animate-in',\n 'data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0',\n 'data-[state=open]:fade-in-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {\n return (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n data-slot=\"alert-dialog-content\"\n className={cn(\n 'bg-background',\n 'fixed z-50',\n 'top-1/2 left-1/2 -translate-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] sm:max-w-lg',\n 'gap-4 rounded-lg p-6 shadow-lg duration-200',\n 'data-[state=open]:animate-in',\n 'data-[state=open]:fade-in-0',\n 'data-[state=open]:zoom-in-95',\n 'data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0',\n 'data-[state=closed]:zoom-out-95',\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n )\n}\n\nfunction AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"alert-dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />\n}\n\nfunction AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"alert-dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />\n}\n\nfunction AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n return <AlertDialogPrimitive.Title data-slot=\"alert-dialog-title\" className={cn('text-text-positive-strong text-lg font-semibold', className)} {...props} />\n}\n\nfunction AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n return <AlertDialogPrimitive.Description data-slot=\"alert-dialog-description\" className={cn('text-text-positive-weak text-sm', className)} {...props} />\n}\n\nfunction AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {\n return <AlertDialogPrimitive.Action className={cn(buttonVariants(), 'min-w-24', className)} {...props} autoFocus tabIndex={1} />\n}\n\nfunction AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {\n return <AlertDialogPrimitive.Cancel className={cn(buttonVariants({ variant: 'outline', color: 'muted' }), 'min-w-24', className)} {...props} />\n}\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n}\n"],"mappings":"2OAQA,SAAS,EAAY,CAAE,GAAG,GAAiE,CACzF,OAAO,EAAA,EAAA,KAACA,EAAAA,YAAqB,KAAA,CAAK,YAAU,eAAe,GAAI,IAGjE,SAAS,EAAmB,CAAE,GAAG,GAAoE,CACnG,OAAO,EAAA,EAAA,KAACA,EAAAA,YAAqB,QAAA,CAAQ,YAAU,uBAAuB,GAAI,IAG5E,SAAS,EAAkB,CAAE,GAAG,GAAmE,CACjG,OAAO,EAAA,EAAA,KAACA,EAAAA,YAAqB,OAAA,CAAO,YAAU,sBAAsB,GAAI,IAG1E,SAAS,EAAmB,CAAE,YAAW,GAAG,GAAoE,CAC9G,OACE,EAAA,EAAA,KAACA,EAAAA,YAAqB,QAAA,CACpB,YAAU,uBACV,WAAA,EAAA,EAAA,IACE,iCACA,+BACA,kCACA,iCACA,8BACA,GAEF,GAAI,IAKV,SAAS,EAAmB,CAAE,YAAW,GAAG,GAAoE,CAC9G,OACE,EAAA,EAAA,MAAC,EAAA,CAAA,SAAA,EACC,EAAA,EAAA,KAAC,EAAA,KACD,EAAA,EAAA,KAACA,EAAAA,YAAqB,QAAA,CACpB,YAAU,uBACV,WAAA,EAAA,EAAA,IACE,gBACA,aACA,kCACA,kDACA,8CACA,+BACA,8BACA,+BACA,kCACA,iCACA,kCACA,GAEF,GAAI,OAMZ,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAsC,CAC/E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,sBAAsB,WAAA,EAAA,EAAA,IAAc,+CAAgD,GAAY,GAAI,IAG5H,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAsC,CAC/E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,sBAAsB,WAAA,EAAA,EAAA,IAAc,yDAA0D,GAAY,GAAI,IAGtI,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAkE,CAC1G,OAAO,EAAA,EAAA,KAACA,EAAAA,YAAqB,MAAA,CAAM,YAAU,qBAAqB,WAAA,EAAA,EAAA,IAAc,kDAAmD,GAAY,GAAI,IAGrJ,SAAS,EAAuB,CAAE,YAAW,GAAG,GAAwE,CACtH,OAAO,EAAA,EAAA,KAACA,EAAAA,YAAqB,YAAA,CAAY,YAAU,2BAA2B,WAAA,EAAA,EAAA,IAAc,kCAAmC,GAAY,GAAI,IAGjJ,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAAA,EAAA,KAACA,EAAAA,YAAqB,OAAA,CAAO,WAAA,EAAA,EAAA,IAAcC,EAAAA,iBAAkB,WAAY,GAAY,GAAI,EAAO,UAAA,GAAU,SAAU,IAG7H,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAAA,EAAA,KAACD,EAAAA,YAAqB,OAAA,CAAO,WAAA,EAAA,EAAA,IAAcC,EAAAA,eAAe,CAAE,QAAS,UAAW,MAAO,UAAY,WAAY,GAAY,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
//# sourceMappingURL=badge-
|
|
1
|
+
import{cn as e}from"@customafk/react-toolkit/utils";import{jsx as t}from"react/jsx-runtime";import n from"react";import{cva as r}from"class-variance-authority";const i=r(`focus:ring-ring rounded-sm inline-flex items-center px-2.5 py-0.5 font-semibold text-white shadow-sm transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden forced-colors:outline`,{variants:{color:{red:`bg-red-500 text-white`,orange:`bg-orange-500 text-white`,amber:`bg-amber-500 text-white`,yellow:`bg-yellow-500 text-white`,lime:`bg-lime-500 text-white`,green:`bg-green-500 text-white`,emerald:`bg-emerald-500 text-white`,teal:`bg-teal-500 text-white`,cyan:`bg-cyan-500 text-white`,sky:`bg-sky-500 text-white`,blue:`bg-blue-500 text-white`,indigo:`bg-indigo-500 text-white`,violet:`bg-violet-500 text-white`,purple:`bg-purple-500 text-white`,fuchsia:`bg-fuchsia-500 text-white`,pink:`bg-pink-500 text-white`,rose:`bg-rose-500 text-white`,zinc:`bg-zinc-500 text-white`},size:{xs:`text-[8px]/3 px-1 py-0.5 gap-1`,sm:`text-[10px]/3 px-1.5 py-1 gap-1`,md:`text-xs px-2 py-1 gap-1`,lg:`text-sm px-2 py-1 gap-1.5`,xl:`text-base px-2.5 py-1 gap-1.5`},pill:{true:`rounded-full`}},defaultVariants:{color:`zinc`,size:`md`,pill:!0}});function a({className:n,color:r,size:a,pill:o,...s}){return t(`div`,{className:e(i({color:r,pill:o,size:a}),n),...s})}export{a as Badge,i as badgeVariants};
|
|
2
|
+
//# sourceMappingURL=badge-gByXCsor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-
|
|
1
|
+
{"version":3,"file":"badge-gByXCsor.js","names":[],"sources":["../packages/components/ui/badge.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nconst badgeVariants = cva(\n 'focus:ring-ring rounded-sm inline-flex items-center px-2.5 py-0.5 font-semibold text-white shadow-sm transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden forced-colors:outline',\n {\n variants: {\n color: {\n red: 'bg-red-500 text-white',\n orange: 'bg-orange-500 text-white',\n amber: 'bg-amber-500 text-white',\n yellow: 'bg-yellow-500 text-white',\n lime: 'bg-lime-500 text-white',\n green: 'bg-green-500 text-white',\n emerald: 'bg-emerald-500 text-white',\n teal: 'bg-teal-500 text-white',\n cyan: 'bg-cyan-500 text-white',\n sky: 'bg-sky-500 text-white',\n blue: 'bg-blue-500 text-white',\n indigo: 'bg-indigo-500 text-white',\n violet: 'bg-violet-500 text-white',\n purple: 'bg-purple-500 text-white',\n fuchsia: 'bg-fuchsia-500 text-white',\n pink: 'bg-pink-500 text-white',\n rose: 'bg-rose-500 text-white',\n zinc: 'bg-zinc-500 text-white',\n },\n size: {\n xs: 'text-[8px]/3 px-1 py-0.5 gap-1',\n sm: 'text-[10px]/3 px-1.5 py-1 gap-1',\n md: 'text-xs px-2 py-1 gap-1',\n lg: 'text-sm px-2 py-1 gap-1.5',\n xl: 'text-base px-2.5 py-1 gap-1.5',\n },\n pill: {\n true: 'rounded-full',\n },\n },\n defaultVariants: {\n color: 'zinc',\n size: 'md',\n pill: true,\n },\n },\n)\n\nexport type BadgeProps = VariantProps<typeof badgeVariants> & React.ComponentPropsWithoutRef<'div'>\n\nfunction Badge({ className, color, size, pill, ...props }: BadgeProps) {\n return <div className={cn(badgeVariants({ color, pill, size }), className)} {...props} />\n}\n\n// eslint-disable-next-line react-refresh/only-export-components\nexport { Badge, badgeVariants }\n"],"mappings":"gKAMA,MAAM,EAAgB,EACpB,qMACA,CACE,SAAU,CACR,MAAO,CACL,IAAK,wBACL,OAAQ,2BACR,MAAO,0BACP,OAAQ,2BACR,KAAM,yBACN,MAAO,0BACP,QAAS,4BACT,KAAM,yBACN,KAAM,yBACN,IAAK,wBACL,KAAM,yBACN,OAAQ,2BACR,OAAQ,2BACR,OAAQ,2BACR,QAAS,4BACT,KAAM,yBACN,KAAM,yBACN,KAAM,0BAER,KAAM,CACJ,GAAI,iCACJ,GAAI,kCACJ,GAAI,0BACJ,GAAI,4BACJ,GAAI,iCAEN,KAAM,CACJ,KAAM,iBAGV,gBAAiB,CACf,MAAO,OACP,KAAM,KACN,KAAM,MAOZ,SAAS,EAAM,CAAE,YAAW,QAAO,OAAM,OAAM,GAAG,GAAqB,CACrE,OAAO,EAAC,MAAA,CAAI,UAAW,EAAG,EAAc,CAAE,QAAO,OAAM,SAAS,GAAY,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`./chunk-CUT6urMc.cjs`),t=e.__toESM(require(
|
|
2
|
-
//# sourceMappingURL=badge-
|
|
1
|
+
const e=require(`./chunk-CUT6urMc.cjs`),t=e.__toESM(require(`@customafk/react-toolkit/utils`)),n=e.__toESM(require(`react/jsx-runtime`)),r=e.__toESM(require(`react`)),i=e.__toESM(require(`class-variance-authority`)),a=(0,i.cva)(`focus:ring-ring rounded-sm inline-flex items-center px-2.5 py-0.5 font-semibold text-white shadow-sm transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden forced-colors:outline`,{variants:{color:{red:`bg-red-500 text-white`,orange:`bg-orange-500 text-white`,amber:`bg-amber-500 text-white`,yellow:`bg-yellow-500 text-white`,lime:`bg-lime-500 text-white`,green:`bg-green-500 text-white`,emerald:`bg-emerald-500 text-white`,teal:`bg-teal-500 text-white`,cyan:`bg-cyan-500 text-white`,sky:`bg-sky-500 text-white`,blue:`bg-blue-500 text-white`,indigo:`bg-indigo-500 text-white`,violet:`bg-violet-500 text-white`,purple:`bg-purple-500 text-white`,fuchsia:`bg-fuchsia-500 text-white`,pink:`bg-pink-500 text-white`,rose:`bg-rose-500 text-white`,zinc:`bg-zinc-500 text-white`},size:{xs:`text-[8px]/3 px-1 py-0.5 gap-1`,sm:`text-[10px]/3 px-1.5 py-1 gap-1`,md:`text-xs px-2 py-1 gap-1`,lg:`text-sm px-2 py-1 gap-1.5`,xl:`text-base px-2.5 py-1 gap-1.5`},pill:{true:`rounded-full`}},defaultVariants:{color:`zinc`,size:`md`,pill:!0}});function o({className:e,color:r,size:i,pill:o,...s}){return(0,n.jsx)(`div`,{className:(0,t.cn)(a({color:r,pill:o,size:i}),e),...s})}Object.defineProperty(exports,`Badge`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`badgeVariants`,{enumerable:!0,get:function(){return a}});
|
|
2
|
+
//# sourceMappingURL=badge-i7tq2_AR.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-
|
|
1
|
+
{"version":3,"file":"badge-i7tq2_AR.cjs","names":[],"sources":["../packages/components/ui/badge.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nconst badgeVariants = cva(\n 'focus:ring-ring rounded-sm inline-flex items-center px-2.5 py-0.5 font-semibold text-white shadow-sm transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden forced-colors:outline',\n {\n variants: {\n color: {\n red: 'bg-red-500 text-white',\n orange: 'bg-orange-500 text-white',\n amber: 'bg-amber-500 text-white',\n yellow: 'bg-yellow-500 text-white',\n lime: 'bg-lime-500 text-white',\n green: 'bg-green-500 text-white',\n emerald: 'bg-emerald-500 text-white',\n teal: 'bg-teal-500 text-white',\n cyan: 'bg-cyan-500 text-white',\n sky: 'bg-sky-500 text-white',\n blue: 'bg-blue-500 text-white',\n indigo: 'bg-indigo-500 text-white',\n violet: 'bg-violet-500 text-white',\n purple: 'bg-purple-500 text-white',\n fuchsia: 'bg-fuchsia-500 text-white',\n pink: 'bg-pink-500 text-white',\n rose: 'bg-rose-500 text-white',\n zinc: 'bg-zinc-500 text-white',\n },\n size: {\n xs: 'text-[8px]/3 px-1 py-0.5 gap-1',\n sm: 'text-[10px]/3 px-1.5 py-1 gap-1',\n md: 'text-xs px-2 py-1 gap-1',\n lg: 'text-sm px-2 py-1 gap-1.5',\n xl: 'text-base px-2.5 py-1 gap-1.5',\n },\n pill: {\n true: 'rounded-full',\n },\n },\n defaultVariants: {\n color: 'zinc',\n size: 'md',\n pill: true,\n },\n },\n)\n\nexport type BadgeProps = VariantProps<typeof badgeVariants> & React.ComponentPropsWithoutRef<'div'>\n\nfunction Badge({ className, color, size, pill, ...props }: BadgeProps) {\n return <div className={cn(badgeVariants({ color, pill, size }), className)} {...props} />\n}\n\n// eslint-disable-next-line react-refresh/only-export-components\nexport { Badge, badgeVariants }\n"],"mappings":"wNAMM,GAAA,EAAA,EAAA,KACJ,qMACA,CACE,SAAU,CACR,MAAO,CACL,IAAK,wBACL,OAAQ,2BACR,MAAO,0BACP,OAAQ,2BACR,KAAM,yBACN,MAAO,0BACP,QAAS,4BACT,KAAM,yBACN,KAAM,yBACN,IAAK,wBACL,KAAM,yBACN,OAAQ,2BACR,OAAQ,2BACR,OAAQ,2BACR,QAAS,4BACT,KAAM,yBACN,KAAM,yBACN,KAAM,0BAER,KAAM,CACJ,GAAI,iCACJ,GAAI,kCACJ,GAAI,0BACJ,GAAI,4BACJ,GAAI,iCAEN,KAAM,CACJ,KAAM,iBAGV,gBAAiB,CACf,MAAO,OACP,KAAM,KACN,KAAM,MAOZ,SAAS,EAAM,CAAE,YAAW,QAAO,OAAM,OAAM,GAAG,GAAqB,CACrE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,WAAA,EAAA,EAAA,IAAc,EAAc,CAAE,QAAO,OAAM,SAAS,GAAY,GAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@ declare function Button({
|
|
|
20
20
|
}: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
21
21
|
asChild?: boolean;
|
|
22
22
|
isLoading?: boolean;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime55.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { Button, buttonVariants };
|
|
26
|
-
//# sourceMappingURL=button-
|
|
26
|
+
//# sourceMappingURL=button-BHhyePyp.d.ts.map
|