@customafk/lunas-ui 0.0.60 → 0.0.61
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-LGex5x9J.cjs +2 -0
- package/dist/{add-new-C9Gjd7QJ.cjs.map → add-new-LGex5x9J.cjs.map} +1 -1
- package/dist/add-new-VnpqRAAB.js +2 -0
- package/dist/{add-new-BrbEoynl.js.map → add-new-VnpqRAAB.js.map} +1 -1
- package/dist/{alert-dialog-csUZX4AP.cjs → alert-dialog-7AEaiJxA.cjs} +2 -2
- package/dist/{alert-dialog-csUZX4AP.cjs.map → alert-dialog-7AEaiJxA.cjs.map} +1 -1
- package/dist/alert-dialog-B8Whrlfq.js +2 -0
- package/dist/{alert-dialog-CnUUZRzI.js.map → alert-dialog-B8Whrlfq.js.map} +1 -1
- package/dist/{badge-gByXCsor.js → badge-8wMMxROk.js} +2 -2
- package/dist/{badge-gByXCsor.js.map → badge-8wMMxROk.js.map} +1 -1
- package/dist/{badge-i7tq2_AR.cjs → badge-BnFraaZ1.cjs} +2 -2
- package/dist/{badge-i7tq2_AR.cjs.map → badge-BnFraaZ1.cjs.map} +1 -1
- package/dist/{button-ChpGfVjG.cjs → button-119IIVCy.cjs} +2 -2
- package/dist/{button-ChpGfVjG.cjs.map → button-119IIVCy.cjs.map} +1 -1
- package/dist/{button-QTiWGKzL.d.cts → button-CiiRwPo0.d.cts} +3 -3
- package/dist/{button-DL_i4AVi.js → button-CvQQTSka.js} +2 -2
- package/dist/{button-DL_i4AVi.js.map → button-CvQQTSka.js.map} +1 -1
- package/dist/{button-BHhyePyp.d.ts → button-tIBg0Orc.d.ts} +3 -3
- package/dist/calendar-BgoGbit6.js +2 -0
- package/dist/{calendar-aC4BQig6.js.map → calendar-BgoGbit6.js.map} +1 -1
- package/dist/calendar-CrtbhiDy.cjs +2 -0
- package/dist/{calendar-DtHmsN1p.cjs.map → calendar-CrtbhiDy.cjs.map} +1 -1
- package/dist/{card-jtQVsG4Y.js → card-BFYPY2aR.js} +1 -1
- package/dist/{card-jtQVsG4Y.js.map → card-BFYPY2aR.js.map} +1 -1
- package/dist/{card-BNMBjSC_.cjs → card-RJvu27Ck.cjs} +1 -1
- package/dist/{card-BNMBjSC_.cjs.map → card-RJvu27Ck.cjs.map} +1 -1
- package/dist/cards/grid-product-card.cjs +2 -0
- package/dist/cards/grid-product-card.cjs.map +1 -0
- package/dist/cards/grid-product-card.d.cts +14 -0
- package/dist/cards/grid-product-card.d.ts +14 -0
- package/dist/cards/grid-product-card.js +2 -0
- package/dist/cards/grid-product-card.js.map +1 -0
- package/dist/cards/product-card.cjs +2 -0
- package/dist/cards/product-card.cjs.map +1 -0
- package/dist/cards/product-card.d.cts +14 -0
- package/dist/cards/product-card.d.ts +14 -0
- package/dist/cards/product-card.js +2 -0
- package/dist/cards/product-card.js.map +1 -0
- package/dist/cards/simple-card.cjs +1 -1
- package/dist/cards/simple-card.js +1 -1
- package/dist/{command-C6YVs0fB.d.ts → command-C3v9zAXg.d.ts} +12 -12
- package/dist/{command-D5rQByNQ.cjs → command-COUM-XfY.cjs} +2 -2
- package/dist/{command-D5rQByNQ.cjs.map → command-COUM-XfY.cjs.map} +1 -1
- package/dist/{command-B3A4F1pB.js → command-DNfCX3KZ.js} +2 -2
- package/dist/{command-B3A4F1pB.js.map → command-DNfCX3KZ.js.map} +1 -1
- package/dist/{command-Duxn64SV.d.cts → command-tdSE_rEO.d.cts} +12 -12
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.d.ts +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.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.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.d.ts +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.ts +2 -2
- package/dist/data-display/statistic.js +1 -1
- package/dist/{date-Cbx2drzh.js → date-DWxL795U.js} +1 -1
- package/dist/{date-Cbx2drzh.js.map → date-DWxL795U.js.map} +1 -1
- package/dist/{date-qVDm6BT3.cjs → date-wo9LyN6l.cjs} +1 -1
- package/dist/{date-qVDm6BT3.cjs.map → date-wo9LyN6l.cjs.map} +1 -1
- package/dist/{dialog-uj9sAbgt.d.cts → dialog-B10MbJD8.d.ts} +12 -12
- package/dist/dialog-CGrbU7PO.cjs +2 -0
- package/dist/{dialog-E5OYibMU.cjs.map → dialog-CGrbU7PO.cjs.map} +1 -1
- package/dist/{dialog-Dra_FGdL.d.ts → dialog-CIrv1yaX.d.cts} +12 -12
- package/dist/dialog-DbI18XF9.js +2 -0
- package/dist/{dialog-BEJ3krbY.js.map → dialog-DbI18XF9.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 +4 -4
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +5 -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.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/dropdown-menu-B06fE_Uj.js +2 -0
- package/dist/{dropdown-menu-BF9QbIfo.js.map → dropdown-menu-B06fE_Uj.js.map} +1 -1
- package/dist/{dropdown-menu-CIldv8D7.cjs → dropdown-menu-BupXTsCa.cjs} +2 -2
- package/dist/{dropdown-menu-CIldv8D7.cjs.map → dropdown-menu-BupXTsCa.cjs.map} +1 -1
- package/dist/error-dialog-COyyui94.cjs +2 -0
- package/dist/{error-dialog-CsZ9SHEm.cjs.map → error-dialog-COyyui94.cjs.map} +1 -1
- package/dist/error-dialog-YlSsQqiT.js +2 -0
- package/dist/{error-dialog-Be_eV-D7.js.map → error-dialog-YlSsQqiT.js.map} +1 -1
- package/dist/{flex-D_GSLR10.js → flex-BxBmZCWh.js} +2 -2
- package/dist/{flex-D_GSLR10.js.map → flex-BxBmZCWh.js.map} +1 -1
- package/dist/{flex-DaTrJCBr.cjs → flex-C-4TxUDe.cjs} +2 -2
- package/dist/{flex-DaTrJCBr.cjs.map → flex-C-4TxUDe.cjs.map} +1 -1
- package/dist/form-B0fOiANW.js +2 -0
- package/dist/{form-RRTCXIG6.js.map → form-B0fOiANW.js.map} +1 -1
- package/dist/form-DAwCSzSe.cjs +2 -0
- package/dist/{form-Dcd2HzUB.cjs.map → form-DAwCSzSe.cjs.map} +1 -1
- package/dist/form-wrapper-C4OO_eLu.js +2 -0
- package/dist/{form-wrapper-D-KkrCiZ.js.map → form-wrapper-C4OO_eLu.js.map} +1 -1
- package/dist/form-wrapper-D0-p7R15.cjs +2 -0
- package/dist/{form-wrapper-CjFQKRzY.cjs.map → form-wrapper-D0-p7R15.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.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/image-BdTzYp1S.js +2 -0
- package/dist/image-BdTzYp1S.js.map +1 -0
- package/dist/image-Cm4vJeHx.cjs +2 -0
- package/dist/image-Cm4vJeHx.cjs.map +1 -0
- package/dist/{input-DQF8Uxmk.cjs → input-Bt7b3-NW.cjs} +1 -1
- package/dist/{input-DQF8Uxmk.cjs.map → input-Bt7b3-NW.cjs.map} +1 -1
- package/dist/{input-6yLVoluZ.d.cts → input-Btkk-D-H.d.cts} +3 -3
- package/dist/{input-MftSrRAM.d.ts → input-CyBgjNII.d.ts} +3 -3
- package/dist/{input-B2PP82lE.js → input-i5Nm0R1X.js} +1 -1
- package/dist/{input-B2PP82lE.js.map → input-i5Nm0R1X.js.map} +1 -1
- package/dist/{label-BvHMsK0O.cjs → label-BbuMrcie.cjs} +2 -2
- package/dist/{label-BvHMsK0O.cjs.map → label-BbuMrcie.cjs.map} +1 -1
- package/dist/label-CyaoUND0.js +2 -0
- package/dist/{label-BpefWj7m.js.map → label-CyaoUND0.js.map} +1 -1
- package/dist/layouts/app-layout/index.cjs +1 -1
- package/dist/layouts/app-layout/index.d.cts +3 -3
- package/dist/layouts/app-layout/index.d.ts +4 -4
- package/dist/layouts/app-layout/index.js +1 -1
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +2 -2
- package/dist/layouts/flex.d.ts +3 -3
- package/dist/layouts/flex.js +1 -1
- package/dist/{multi-select-Ch4hJ1ZJ.cjs → multi-select-C8kzA628.cjs} +2 -2
- package/dist/{multi-select-Ch4hJ1ZJ.cjs.map → multi-select-C8kzA628.cjs.map} +1 -1
- package/dist/{multi-select-l55hOOtW.js → multi-select-CaBcDGi6.js} +2 -2
- package/dist/{multi-select-l55hOOtW.js.map → multi-select-CaBcDGi6.js.map} +1 -1
- package/dist/paragraph-BwSskqDY.js +2 -0
- package/dist/{paragraph-D4klQX4h.js.map → paragraph-BwSskqDY.js.map} +1 -1
- package/dist/{paragraph-BsEYXIR3.cjs → paragraph-CI28eVP0.cjs} +2 -2
- package/dist/{paragraph-BsEYXIR3.cjs.map → paragraph-CI28eVP0.cjs.map} +1 -1
- package/dist/{popover-sgf8XI5P.cjs → popover-BsF6vWTX.cjs} +2 -2
- package/dist/{popover-sgf8XI5P.cjs.map → popover-BsF6vWTX.cjs.map} +1 -1
- package/dist/{popover-BAGWkHPy.js → popover-CT9ZjjNA.js} +2 -2
- package/dist/{popover-BAGWkHPy.js.map → popover-CT9ZjjNA.js.map} +1 -1
- package/dist/progress-BhSNuH1w.cjs +2 -0
- package/dist/{progress-IkXemE6u.cjs.map → progress-BhSNuH1w.cjs.map} +1 -1
- package/dist/progress-PzPWivBh.js +2 -0
- package/dist/{progress-CMMXIQct.js.map → progress-PzPWivBh.js.map} +1 -1
- package/dist/refresh-B2wYinm5.cjs +2 -0
- package/dist/{refresh-CAScDb8R.cjs.map → refresh-B2wYinm5.cjs.map} +1 -1
- package/dist/refresh-BMR_jPST.js +2 -0
- package/dist/{refresh-D4LYYQln.js.map → refresh-BMR_jPST.js.map} +1 -1
- package/dist/{scroll-area-D7O1NyZn.cjs → scroll-area-CbABlDpy.cjs} +2 -2
- package/dist/{scroll-area-D7O1NyZn.cjs.map → scroll-area-CbABlDpy.cjs.map} +1 -1
- package/dist/scroll-area-F3yESo8d.js +2 -0
- package/dist/{scroll-area-CPQoJKt1.js.map → scroll-area-F3yESo8d.js.map} +1 -1
- package/dist/{search-input-B1eWzWZj.cjs → search-input-BsnMUPtZ.cjs} +2 -2
- package/dist/{search-input-B1eWzWZj.cjs.map → search-input-BsnMUPtZ.cjs.map} +1 -1
- package/dist/search-input-tivZy8LE.js +2 -0
- package/dist/{search-input-BZtDbdjl.js.map → search-input-tivZy8LE.js.map} +1 -1
- package/dist/{select-C7na5CE5.cjs → select-S75hVYoR.cjs} +2 -2
- package/dist/{select-C7na5CE5.cjs.map → select-S75hVYoR.cjs.map} +1 -1
- package/dist/select-_oIGH0ax.js +2 -0
- package/dist/{select-VpccO3h2.js.map → select-_oIGH0ax.js.map} +1 -1
- package/dist/{separator-D6-cZUiB.d.ts → separator-B-yN9e9m.d.ts} +3 -3
- package/dist/{separator-DW2rRXaF.js → separator-CxCq7NYP.js} +2 -2
- package/dist/{separator-DW2rRXaF.js.map → separator-CxCq7NYP.js.map} +1 -1
- package/dist/{separator-C0YKWxkk.d.cts → separator-de4423bu.d.cts} +3 -3
- package/dist/{separator-DbcVW13X.cjs → separator-hulDSW7B.cjs} +2 -2
- package/dist/{separator-DbcVW13X.cjs.map → separator-hulDSW7B.cjs.map} +1 -1
- package/dist/{sheet-BoPRwRzk.cjs → sheet-D8iW1o50.cjs} +2 -2
- package/dist/{sheet-BoPRwRzk.cjs.map → sheet-D8iW1o50.cjs.map} +1 -1
- package/dist/sheet-amjZQ7nX.js +2 -0
- package/dist/{sheet-CJscm87z.js.map → sheet-amjZQ7nX.js.map} +1 -1
- package/dist/{sidebar-BCsgl6i1.cjs → sidebar-BwIH2lFJ.cjs} +2 -2
- package/dist/{sidebar-BCsgl6i1.cjs.map → sidebar-BwIH2lFJ.cjs.map} +1 -1
- package/dist/{sidebar-BEgx0ScE.js → sidebar-Cf5tv_x0.js} +2 -2
- package/dist/{sidebar-BEgx0ScE.js.map → sidebar-Cf5tv_x0.js.map} +1 -1
- package/dist/{skeleton-1syVaGRv.cjs → skeleton-CmGSyYRm.cjs} +1 -1
- package/dist/{skeleton-1syVaGRv.cjs.map → skeleton-CmGSyYRm.cjs.map} +1 -1
- package/dist/{skeleton-D_7tekGk.js → skeleton-DFF0w4en.js} +1 -1
- package/dist/{skeleton-D_7tekGk.js.map → skeleton-DFF0w4en.js.map} +1 -1
- package/dist/{switch-fR9s61cJ.cjs → switch-BN4ghEjT.cjs} +2 -2
- package/dist/{switch-fR9s61cJ.cjs.map → switch-BN4ghEjT.cjs.map} +1 -1
- package/dist/{switch-DxMWudiz.js → switch-BeQqTAw4.js} +2 -2
- package/dist/{switch-DxMWudiz.js.map → switch-BeQqTAw4.js.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-DxHSASjm.cjs → table-Bz4GB66J.cjs} +2 -2
- package/dist/{table-DxHSASjm.cjs.map → table-Bz4GB66J.cjs.map} +1 -1
- package/dist/{table-DxiQX7c8.js → table-Fby8ksbK.js} +2 -2
- package/dist/{table-DxiQX7c8.js.map → table-Fby8ksbK.js.map} +1 -1
- package/dist/{textarea-qcxhp2mg.cjs → textarea-CWLU6cai.cjs} +1 -1
- package/dist/{textarea-qcxhp2mg.cjs.map → textarea-CWLU6cai.cjs.map} +1 -1
- package/dist/{textarea-BZu5g3z6.js → textarea-S2APrJU-.js} +1 -1
- package/dist/{textarea-BZu5g3z6.js.map → textarea-S2APrJU-.js.map} +1 -1
- package/dist/{title-DONX1fR6.cjs → title-DMOj1cgG.cjs} +2 -2
- package/dist/{title-DONX1fR6.cjs.map → title-DMOj1cgG.cjs.map} +1 -1
- package/dist/title-DiaFg5B5.js +2 -0
- package/dist/{title-itXqz0us.js.map → title-DiaFg5B5.js.map} +1 -1
- package/dist/{toggle-C50tM61w.cjs → toggle-BrHo4W70.cjs} +2 -2
- package/dist/{toggle-C50tM61w.cjs.map → toggle-BrHo4W70.cjs.map} +1 -1
- package/dist/{toggle-Biu3ZQOw.js → toggle-DCZ9RTZZ.js} +2 -2
- package/dist/{toggle-Biu3ZQOw.js.map → toggle-DCZ9RTZZ.js.map} +1 -1
- package/dist/{toggle-BxWWejw5.d.ts → toggle-SBkrA8Qk.d.ts} +6 -6
- package/dist/{tooltip-Ccg2G_fB.d.cts → tooltip-C30oHuY9.d.ts} +7 -7
- package/dist/tooltip-CN8vvmWA.js +2 -0
- package/dist/{tooltip-B7S7TrMj.js.map → tooltip-CN8vvmWA.js.map} +1 -1
- package/dist/{tooltip-CcNSIS_A.d.ts → tooltip-DE_eohyj.d.cts} +1 -1
- package/dist/tooltip-meYt4lxB.cjs +2 -0
- package/dist/{tooltip-BX3D74kN.cjs.map → tooltip-meYt4lxB.cjs.map} +1 -1
- package/dist/{types-DDfAVYxf.js → types-Cgr_eoPF.js} +1 -1
- package/dist/{types-DDfAVYxf.js.map → types-Cgr_eoPF.js.map} +1 -1
- package/dist/{types-engjL0nN.d.ts → types-CmcNT14g.d.ts} +1 -1
- package/dist/{types-BN8HhYHR.cjs → types-DMNCf28U.cjs} +1 -1
- package/dist/{types-BN8HhYHR.cjs.map → types-DMNCf28U.cjs.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.cjs +1 -1
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/typography/title.js +1 -1
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +13 -13
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert.cjs +1 -1
- package/dist/ui/alert.d.cts +6 -6
- package/dist/ui/alert.d.ts +5 -5
- package/dist/ui/alert.js +1 -1
- package/dist/ui/aspect-ratio.cjs +1 -1
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +3 -3
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/avatar.cjs +1 -1
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +5 -5
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +4 -4
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.cjs +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/button.cjs +1 -1
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.js +1 -1
- package/dist/ui/buttons/edit.cjs +1 -1
- package/dist/ui/buttons/edit.js +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.js +1 -1
- package/dist/ui/buttons/trash.cjs +1 -1
- package/dist/ui/buttons/trash.js +1 -1
- package/dist/ui/buttons/upload-image.cjs +1 -1
- package/dist/ui/buttons/upload-image.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.cjs +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/card.js +1 -1
- package/dist/ui/carousel.cjs +1 -1
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/carousel.js +1 -1
- package/dist/ui/collapsible.cjs +1 -1
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +5 -5
- package/dist/ui/collapsible.js +1 -1
- 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.cjs +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +17 -17
- package/dist/ui/context-menu.js +1 -1
- 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/dropdown-menu.cjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/file-uploader.cjs +2 -2
- 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/form.cjs +1 -1
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +8 -8
- package/dist/ui/form.js +1 -1
- package/dist/ui/hover-card.cjs +1 -1
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +5 -5
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/image.cjs +1 -2
- package/dist/ui/image.d.cts +1 -0
- package/dist/ui/image.d.ts +1 -0
- package/dist/ui/image.js +1 -2
- package/dist/ui/input-otp.cjs +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.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 +1 -1
- package/dist/ui/inputs/search-input.d.ts +1 -1
- 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 +3 -3
- package/dist/ui/label.js +1 -1
- package/dist/ui/menubar.cjs +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +18 -18
- package/dist/ui/menubar.js +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 +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 +1 -1
- package/dist/ui/pagination.cjs +1 -1
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/pagination.js +1 -1
- 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.cjs +1 -1
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +3 -3
- package/dist/ui/progress.js +1 -1
- package/dist/ui/radio-group.cjs +1 -1
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +4 -4
- package/dist/ui/radio-group.js +1 -1
- package/dist/ui/resizable.cjs +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/scroll-area.cjs +1 -1
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/scroll-area.js +1 -1
- 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 +1 -1
- package/dist/ui/sidebar.d.cts +28 -28
- package/dist/ui/sidebar.d.ts +31 -31
- package/dist/ui/sidebar.js +1 -1
- 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.d.cts +2 -2
- package/dist/ui/slider.d.ts +3 -3
- package/dist/ui/slider.js +1 -1
- package/dist/ui/sonner.cjs +1 -1
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/sonner.js +1 -1
- package/dist/ui/switch.cjs +1 -1
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +3 -3
- 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 +1 -1
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/tabs.js +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.d.cts +3 -3
- package/dist/ui/toggle-group.d.ts +5 -5
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.cjs +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 +9 -1
- package/dist/add-new-BrbEoynl.js +0 -2
- package/dist/add-new-C9Gjd7QJ.cjs +0 -2
- package/dist/alert-dialog-CnUUZRzI.js +0 -2
- package/dist/calendar-DtHmsN1p.cjs +0 -2
- package/dist/calendar-aC4BQig6.js +0 -2
- package/dist/dialog-BEJ3krbY.js +0 -2
- package/dist/dialog-E5OYibMU.cjs +0 -2
- package/dist/dropdown-menu-BF9QbIfo.js +0 -2
- package/dist/error-dialog-Be_eV-D7.js +0 -2
- package/dist/error-dialog-CsZ9SHEm.cjs +0 -2
- package/dist/form-Dcd2HzUB.cjs +0 -2
- package/dist/form-RRTCXIG6.js +0 -2
- package/dist/form-wrapper-CjFQKRzY.cjs +0 -2
- package/dist/form-wrapper-D-KkrCiZ.js +0 -2
- package/dist/label-BpefWj7m.js +0 -2
- package/dist/paragraph-D4klQX4h.js +0 -2
- package/dist/progress-CMMXIQct.js +0 -2
- package/dist/progress-IkXemE6u.cjs +0 -2
- package/dist/refresh-CAScDb8R.cjs +0 -2
- package/dist/refresh-D4LYYQln.js +0 -2
- package/dist/scroll-area-CPQoJKt1.js +0 -2
- package/dist/search-input-BZtDbdjl.js +0 -2
- package/dist/select-VpccO3h2.js +0 -2
- package/dist/sheet-CJscm87z.js +0 -2
- package/dist/title-itXqz0us.js +0 -2
- package/dist/tooltip-B7S7TrMj.js +0 -2
- package/dist/tooltip-BX3D74kN.cjs +0 -2
- package/dist/ui/image.cjs.map +0 -1
- package/dist/ui/image.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-
|
|
1
|
+
{"version":3,"file":"card-RJvu27Ck.cjs","names":[],"sources":["../packages/components/ui/card.tsx"],"sourcesContent":["import { cn } from '@customafk/react-toolkit/utils'\n\nfunction Card({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card\" className={cn('bg-card text-text-positive shadow-card flex flex-col gap-6 rounded-2xl py-6', className)} {...props} />\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n '@container/card-header',\n 'grid auto-rows-min grid-rows-[auto_auto]',\n 'text-text-positive-strong items-start gap-1.5 px-6',\n 'has-data-[slot=card-action]:grid-cols-[1fr_auto]',\n '[.border-b]:pb-6',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-title\" className={cn('leading-none font-semibold', className)} {...props} />\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-description\" className={cn('text-text-positive-weak text-sm', className)} {...props} />\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-action\" className={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)} {...props} />\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-content\" className={cn('px-6 text-sm', className)} {...props} />\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"card-footer\" className={cn('flex items-center px-6 text-sm [.border-t]:pt-6', className)} {...props} />\n}\n\nexport { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }\n"],"mappings":"yIAEA,SAAS,EAAK,CAAE,YAAW,GAAG,GAAsC,CAClE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,OAAO,WAAA,EAAA,EAAA,IAAc,8EAA+E,GAAY,GAAI,IAG5I,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OACE,EAAA,EAAA,KAAC,MAAA,CACC,YAAU,cACV,WAAA,EAAA,EAAA,IACE,yBACA,2CACA,qDACA,mDACA,mBACA,GAEF,GAAI,IAKV,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,aAAa,WAAA,EAAA,EAAA,IAAc,6BAA8B,GAAY,GAAI,IAGjG,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAsC,CAC7E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,mBAAmB,WAAA,EAAA,EAAA,IAAc,kCAAmC,GAAY,GAAI,IAG5G,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,cAAc,WAAA,EAAA,EAAA,IAAc,iEAAkE,GAAY,GAAI,IAGtI,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,eAAgB,GAAY,GAAI,IAGrF,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,cAAc,WAAA,EAAA,EAAA,IAAc,kDAAmD,GAAY,GAAI"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../button-119IIVCy.cjs`),n=require(`../card-RJvu27Ck.cjs`);require(`../skeleton-CmGSyYRm.cjs`);const r=require(`../image-Cm4vJeHx.cjs`),i=e.__toESM(require(`lucide-react`)),a=e.__toESM(require(`react/jsx-runtime`)),o=({name:e,thumbnail:o,price:s})=>(0,a.jsxs)(n.Card,{className:`h-36 w-full flex-row gap-4 p-2 pr-4`,children:[(0,a.jsx)(r.Image,{className:`aspect-square h-full flex-0`,src:o}),(0,a.jsxs)(`div`,{className:`flex flex-1 flex-col gap-y-1`,children:[(0,a.jsx)(`p`,{className:`text-text-positive line-clamp-2 h-10 text-sm font-semibold`,children:e}),(0,a.jsxs)(`p`,{className:`text-success text-base font-bold`,children:[s.toLocaleString(`vi-VN`),(0,a.jsx)(`small`,{className:`ml-0.5`,children:`VND`})]}),(0,a.jsxs)(`div`,{className:`mb-3 flex flex-1 items-end justify-end gap-x-1`,children:[(0,a.jsx)(t.Button,{size:`icon`,variant:`outline`,color:`muted`,className:`size-9`,children:(0,a.jsx)(i.HeartIcon,{})}),(0,a.jsxs)(t.Button,{className:`max-w-52 max-sm:size-9 sm:flex-1`,children:[(0,a.jsx)(i.ShoppingCartIcon,{}),(0,a.jsx)(`p`,{className:`sr-only sm:not-sr-only`,children:`Thêm vào giỏ`})]})]})]})]});exports.GridProductCard=o;
|
|
2
|
+
//# sourceMappingURL=grid-product-card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-product-card.cjs","names":["GridProductCard: React.FC<Props>","Card","Image","Button","HeartIcon","ShoppingCartIcon"],"sources":["../../packages/components/cards/grid-product-card.tsx"],"sourcesContent":["import { HeartIcon, ShoppingCartIcon } from 'lucide-react'\n\nimport { Button } from '../ui/button'\nimport { Card } from '../ui/card'\nimport { Image } from '../ui/image'\n\ntype Props = {\n id: string\n slug: string\n name: string\n thumbnail: string\n price: number\n salePrice?: number\n salePercentage?: number\n}\nexport const GridProductCard: React.FC<Props> = ({ name, thumbnail, price }) => {\n return (\n <Card className=\"h-36 w-full flex-row gap-4 p-2 pr-4\">\n <Image className=\"aspect-square h-full flex-0\" src={thumbnail} />\n <div className=\"flex flex-1 flex-col gap-y-1\">\n <p className=\"text-text-positive line-clamp-2 h-10 text-sm font-semibold\">{name}</p>\n <p className=\"text-success text-base font-bold\">\n {price.toLocaleString('vi-VN')}\n <small className=\"ml-0.5\">VND</small>\n </p>\n <div className=\"mb-3 flex flex-1 items-end justify-end gap-x-1\">\n <Button size=\"icon\" variant=\"outline\" color=\"muted\" className=\"size-9\">\n <HeartIcon />\n </Button>\n <Button className=\"max-w-52 max-sm:size-9 sm:flex-1\">\n <ShoppingCartIcon />\n <p className=\"sr-only sm:not-sr-only\">Thêm vào giỏ</p>\n </Button>\n </div>\n </div>\n </Card>\n )\n}\n"],"mappings":"2QAeaA,GAAoC,CAAE,OAAM,YAAW,YAEhE,EAAA,EAAA,MAACC,EAAAA,KAAAA,CAAK,UAAU,iDACd,EAAA,EAAA,KAACC,EAAAA,MAAAA,CAAM,UAAU,8BAA8B,IAAK,KACpD,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,0CACb,EAAA,EAAA,KAAC,IAAA,CAAE,UAAU,sEAA8D,KAC3E,EAAA,EAAA,MAAC,IAAA,CAAE,UAAU,6CACV,EAAM,eAAe,UACtB,EAAA,EAAA,KAAC,QAAA,CAAM,UAAU,kBAAS,YAE5B,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,4DACb,EAAA,EAAA,KAACC,EAAAA,OAAAA,CAAO,KAAK,OAAO,QAAQ,UAAU,MAAM,QAAQ,UAAU,mBAC5D,EAAA,EAAA,KAACC,EAAAA,UAAAA,OAEH,EAAA,EAAA,MAACD,EAAAA,OAAAA,CAAO,UAAU,8CAChB,EAAA,EAAA,KAACE,EAAAA,iBAAAA,KACD,EAAA,EAAA,KAAC,IAAA,CAAE,UAAU,kCAAyB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region packages/components/cards/grid-product-card.d.ts
|
|
2
|
+
type Props = {
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
name: string;
|
|
6
|
+
thumbnail: string;
|
|
7
|
+
price: number;
|
|
8
|
+
salePrice?: number;
|
|
9
|
+
salePercentage?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const GridProductCard: React.FC<Props>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { GridProductCard };
|
|
14
|
+
//# sourceMappingURL=grid-product-card.d.cts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region packages/components/cards/grid-product-card.d.ts
|
|
2
|
+
type Props = {
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
name: string;
|
|
6
|
+
thumbnail: string;
|
|
7
|
+
price: number;
|
|
8
|
+
salePrice?: number;
|
|
9
|
+
salePercentage?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const GridProductCard: React.FC<Props>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { GridProductCard };
|
|
14
|
+
//# sourceMappingURL=grid-product-card.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Button as e}from"../button-CvQQTSka.js";import{Card as t}from"../card-BFYPY2aR.js";import"../skeleton-DFF0w4en.js";import{Image as n}from"../image-BdTzYp1S.js";import{HeartIcon as r,ShoppingCartIcon as i}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";const s=({name:s,thumbnail:c,price:l})=>o(t,{className:`h-36 w-full flex-row gap-4 p-2 pr-4`,children:[a(n,{className:`aspect-square h-full flex-0`,src:c}),o(`div`,{className:`flex flex-1 flex-col gap-y-1`,children:[a(`p`,{className:`text-text-positive line-clamp-2 h-10 text-sm font-semibold`,children:s}),o(`p`,{className:`text-success text-base font-bold`,children:[l.toLocaleString(`vi-VN`),a(`small`,{className:`ml-0.5`,children:`VND`})]}),o(`div`,{className:`mb-3 flex flex-1 items-end justify-end gap-x-1`,children:[a(e,{size:`icon`,variant:`outline`,color:`muted`,className:`size-9`,children:a(r,{})}),o(e,{className:`max-w-52 max-sm:size-9 sm:flex-1`,children:[a(i,{}),a(`p`,{className:`sr-only sm:not-sr-only`,children:`Thêm vào giỏ`})]})]})]})]});export{s as GridProductCard};
|
|
2
|
+
//# sourceMappingURL=grid-product-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-product-card.js","names":["GridProductCard: React.FC<Props>","Image"],"sources":["../../packages/components/cards/grid-product-card.tsx"],"sourcesContent":["import { HeartIcon, ShoppingCartIcon } from 'lucide-react'\n\nimport { Button } from '../ui/button'\nimport { Card } from '../ui/card'\nimport { Image } from '../ui/image'\n\ntype Props = {\n id: string\n slug: string\n name: string\n thumbnail: string\n price: number\n salePrice?: number\n salePercentage?: number\n}\nexport const GridProductCard: React.FC<Props> = ({ name, thumbnail, price }) => {\n return (\n <Card className=\"h-36 w-full flex-row gap-4 p-2 pr-4\">\n <Image className=\"aspect-square h-full flex-0\" src={thumbnail} />\n <div className=\"flex flex-1 flex-col gap-y-1\">\n <p className=\"text-text-positive line-clamp-2 h-10 text-sm font-semibold\">{name}</p>\n <p className=\"text-success text-base font-bold\">\n {price.toLocaleString('vi-VN')}\n <small className=\"ml-0.5\">VND</small>\n </p>\n <div className=\"mb-3 flex flex-1 items-end justify-end gap-x-1\">\n <Button size=\"icon\" variant=\"outline\" color=\"muted\" className=\"size-9\">\n <HeartIcon />\n </Button>\n <Button className=\"max-w-52 max-sm:size-9 sm:flex-1\">\n <ShoppingCartIcon />\n <p className=\"sr-only sm:not-sr-only\">Thêm vào giỏ</p>\n </Button>\n </div>\n </div>\n </Card>\n )\n}\n"],"mappings":"wRAeA,MAAaA,GAAoC,CAAE,OAAM,YAAW,WAEhE,EAAC,EAAA,CAAK,UAAU,gDACd,EAACC,EAAAA,CAAM,UAAU,8BAA8B,IAAK,IACpD,EAAC,MAAA,CAAI,UAAU,yCACb,EAAC,IAAA,CAAE,UAAU,sEAA8D,IAC3E,EAAC,IAAA,CAAE,UAAU,6CACV,EAAM,eAAe,SACtB,EAAC,QAAA,CAAM,UAAU,kBAAS,WAE5B,EAAC,MAAA,CAAI,UAAU,2DACb,EAAC,EAAA,CAAO,KAAK,OAAO,QAAQ,UAAU,MAAM,QAAQ,UAAU,kBAC5D,EAAC,EAAA,MAEH,EAAC,EAAA,CAAO,UAAU,6CAChB,EAAC,EAAA,IACD,EAAC,IAAA,CAAE,UAAU,kCAAyB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../button-119IIVCy.cjs`),n=require(`../card-RJvu27Ck.cjs`);require(`../skeleton-CmGSyYRm.cjs`);const r=require(`../image-Cm4vJeHx.cjs`),i=e.__toESM(require(`lucide-react`)),a=e.__toESM(require(`react/jsx-runtime`)),o=({name:e,thumbnail:o,price:s})=>(0,a.jsxs)(n.Card,{className:`size-full gap-y-2 p-2 pb-4`,children:[(0,a.jsx)(r.Image,{src:o,className:`aspect-square`}),(0,a.jsxs)(`div`,{className:`flex flex-col gap-y-1`,children:[(0,a.jsx)(`p`,{className:`line-clamp-2 h-10 text-sm font-semibold`,children:e}),(0,a.jsxs)(`p`,{className:`text-success text-base font-bold`,children:[s.toLocaleString(`vi-VN`),(0,a.jsx)(`small`,{className:`ml-0.5`,children:`VND`})]}),(0,a.jsxs)(`div`,{className:`mt-1 flex gap-x-1`,children:[(0,a.jsxs)(t.Button,{className:`flex-1`,children:[(0,a.jsx)(i.ShoppingCartIcon,{}),`Thêm vào giỏ`]}),(0,a.jsx)(t.Button,{size:`icon`,variant:`outline`,color:`muted`,className:`size-9`,children:(0,a.jsx)(i.HeartIcon,{})})]})]})]});exports.ProductCard=o;
|
|
2
|
+
//# sourceMappingURL=product-card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-card.cjs","names":["ProductCard: React.FC<Props>","Card","Image","Button","ShoppingCartIcon","HeartIcon"],"sources":["../../packages/components/cards/product-card.tsx"],"sourcesContent":["import { HeartIcon, ShoppingCartIcon } from 'lucide-react'\n\nimport { Button } from '../ui/button'\nimport { Card } from '../ui/card'\nimport { Image } from '../ui/image'\n\ntype Props = {\n id: string\n slug: string\n name: string\n thumbnail: string\n price: number\n salePrice?: number\n salePercentage?: number\n}\nexport const ProductCard: React.FC<Props> = ({ name, thumbnail, price }) => {\n return (\n <Card className=\"size-full gap-y-2 p-2 pb-4\">\n <Image src={thumbnail} className=\"aspect-square\" />\n <div className=\"flex flex-col gap-y-1\">\n <p className=\"line-clamp-2 h-10 text-sm font-semibold\">{name}</p>\n <p className=\"text-success text-base font-bold\">\n {price.toLocaleString('vi-VN')}\n <small className=\"ml-0.5\">VND</small>\n </p>\n <div className=\"mt-1 flex gap-x-1\">\n <Button className=\"flex-1\">\n <ShoppingCartIcon />\n Thêm vào giỏ\n </Button>\n <Button size=\"icon\" variant=\"outline\" color=\"muted\" className=\"size-9\">\n <HeartIcon />\n </Button>\n </div>\n </div>\n </Card>\n )\n}\n"],"mappings":"2QAeaA,GAAgC,CAAE,OAAM,YAAW,YAE5D,EAAA,EAAA,MAACC,EAAAA,KAAAA,CAAK,UAAU,wCACd,EAAA,EAAA,KAACC,EAAAA,MAAAA,CAAM,IAAK,EAAW,UAAU,mBACjC,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,mCACb,EAAA,EAAA,KAAC,IAAA,CAAE,UAAU,mDAA2C,KACxD,EAAA,EAAA,MAAC,IAAA,CAAE,UAAU,6CACV,EAAM,eAAe,UACtB,EAAA,EAAA,KAAC,QAAA,CAAM,UAAU,kBAAS,YAE5B,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,+BACb,EAAA,EAAA,MAACC,EAAAA,OAAAA,CAAO,UAAU,oBAChB,EAAA,EAAA,KAACC,EAAAA,iBAAAA,IAAmB,mBAGtB,EAAA,EAAA,KAACD,EAAAA,OAAAA,CAAO,KAAK,OAAO,QAAQ,UAAU,MAAM,QAAQ,UAAU,mBAC5D,EAAA,EAAA,KAACE,EAAAA,UAAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region packages/components/cards/product-card.d.ts
|
|
2
|
+
type Props = {
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
name: string;
|
|
6
|
+
thumbnail: string;
|
|
7
|
+
price: number;
|
|
8
|
+
salePrice?: number;
|
|
9
|
+
salePercentage?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const ProductCard: React.FC<Props>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ProductCard };
|
|
14
|
+
//# sourceMappingURL=product-card.d.cts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region packages/components/cards/product-card.d.ts
|
|
2
|
+
type Props = {
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
name: string;
|
|
6
|
+
thumbnail: string;
|
|
7
|
+
price: number;
|
|
8
|
+
salePrice?: number;
|
|
9
|
+
salePercentage?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const ProductCard: React.FC<Props>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ProductCard };
|
|
14
|
+
//# sourceMappingURL=product-card.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Button as e}from"../button-CvQQTSka.js";import{Card as t}from"../card-BFYPY2aR.js";import"../skeleton-DFF0w4en.js";import{Image as n}from"../image-BdTzYp1S.js";import{HeartIcon as r,ShoppingCartIcon as i}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";const s=({name:s,thumbnail:c,price:l})=>o(t,{className:`size-full gap-y-2 p-2 pb-4`,children:[a(n,{src:c,className:`aspect-square`}),o(`div`,{className:`flex flex-col gap-y-1`,children:[a(`p`,{className:`line-clamp-2 h-10 text-sm font-semibold`,children:s}),o(`p`,{className:`text-success text-base font-bold`,children:[l.toLocaleString(`vi-VN`),a(`small`,{className:`ml-0.5`,children:`VND`})]}),o(`div`,{className:`mt-1 flex gap-x-1`,children:[o(e,{className:`flex-1`,children:[a(i,{}),`Thêm vào giỏ`]}),a(e,{size:`icon`,variant:`outline`,color:`muted`,className:`size-9`,children:a(r,{})})]})]})]});export{s as ProductCard};
|
|
2
|
+
//# sourceMappingURL=product-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-card.js","names":["ProductCard: React.FC<Props>","Image"],"sources":["../../packages/components/cards/product-card.tsx"],"sourcesContent":["import { HeartIcon, ShoppingCartIcon } from 'lucide-react'\n\nimport { Button } from '../ui/button'\nimport { Card } from '../ui/card'\nimport { Image } from '../ui/image'\n\ntype Props = {\n id: string\n slug: string\n name: string\n thumbnail: string\n price: number\n salePrice?: number\n salePercentage?: number\n}\nexport const ProductCard: React.FC<Props> = ({ name, thumbnail, price }) => {\n return (\n <Card className=\"size-full gap-y-2 p-2 pb-4\">\n <Image src={thumbnail} className=\"aspect-square\" />\n <div className=\"flex flex-col gap-y-1\">\n <p className=\"line-clamp-2 h-10 text-sm font-semibold\">{name}</p>\n <p className=\"text-success text-base font-bold\">\n {price.toLocaleString('vi-VN')}\n <small className=\"ml-0.5\">VND</small>\n </p>\n <div className=\"mt-1 flex gap-x-1\">\n <Button className=\"flex-1\">\n <ShoppingCartIcon />\n Thêm vào giỏ\n </Button>\n <Button size=\"icon\" variant=\"outline\" color=\"muted\" className=\"size-9\">\n <HeartIcon />\n </Button>\n </div>\n </div>\n </Card>\n )\n}\n"],"mappings":"wRAeA,MAAaA,GAAgC,CAAE,OAAM,YAAW,WAE5D,EAAC,EAAA,CAAK,UAAU,uCACd,EAACC,EAAAA,CAAM,IAAK,EAAW,UAAU,kBACjC,EAAC,MAAA,CAAI,UAAU,kCACb,EAAC,IAAA,CAAE,UAAU,mDAA2C,IACxD,EAAC,IAAA,CAAE,UAAU,6CACV,EAAM,eAAe,SACtB,EAAC,QAAA,CAAM,UAAU,kBAAS,WAE5B,EAAC,MAAA,CAAI,UAAU,8BACb,EAAC,EAAA,CAAO,UAAU,mBAChB,EAAC,EAAA,IAAmB,kBAGtB,EAAC,EAAA,CAAO,KAAK,OAAO,QAAQ,UAAU,MAAM,QAAQ,UAAU,kBAC5D,EAAC,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../card-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../card-RJvu27Ck.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({title:e,description:r,action:i,footer:a,children:o})=>(0,n.jsxs)(t.Card,{children:[(0,n.jsxs)(t.CardHeader,{children:[(0,n.jsx)(t.CardTitle,{children:e}),(0,n.jsx)(t.CardDescription,{children:r}),i&&(0,n.jsx)(t.CardAction,{children:i})]}),(0,n.jsx)(t.CardContent,{children:o}),a&&(0,n.jsx)(t.CardFooter,{children:a})]});exports.SimpleCard=r;
|
|
2
2
|
//# sourceMappingURL=simple-card.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{Card as e,CardAction as t,CardContent as n,CardDescription as r,CardFooter as i,CardHeader as a,CardTitle as o}from"../card-
|
|
1
|
+
"use client";import{Card as e,CardAction as t,CardContent as n,CardDescription as r,CardFooter as i,CardHeader as a,CardTitle as o}from"../card-BFYPY2aR.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";const l=({title:l,description:u,action:d,footer:f,children:p})=>c(e,{children:[c(a,{children:[s(o,{children:l}),s(r,{children:u}),d&&s(t,{children:d})]}),s(n,{children:p}),f&&s(i,{children:f})]});export{l as SimpleCard};
|
|
2
2
|
//# sourceMappingURL=simple-card.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Dialog } from "./dialog-
|
|
2
|
-
import * as
|
|
1
|
+
import { Dialog } from "./dialog-B10MbJD8.js";
|
|
2
|
+
import * as react_jsx_runtime84 from "react/jsx-runtime";
|
|
3
3
|
import { Command } from "cmdk";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/command.d.ts
|
|
6
6
|
declare function Command$1({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Command>):
|
|
9
|
+
}: React.ComponentProps<typeof Command>): react_jsx_runtime84.JSX.Element;
|
|
10
10
|
declare function CommandDialog({
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
@@ -19,34 +19,34 @@ declare function CommandDialog({
|
|
|
19
19
|
description?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
showCloseButton?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime84.JSX.Element;
|
|
23
23
|
declare function CommandInput({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Command.Input>):
|
|
26
|
+
}: React.ComponentProps<typeof Command.Input>): react_jsx_runtime84.JSX.Element;
|
|
27
27
|
declare function CommandList({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<typeof Command.List>):
|
|
30
|
+
}: React.ComponentProps<typeof Command.List>): react_jsx_runtime84.JSX.Element;
|
|
31
31
|
declare function CommandEmpty({
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Command.Empty>):
|
|
33
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime84.JSX.Element;
|
|
34
34
|
declare function CommandGroup({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Command.Group>):
|
|
37
|
+
}: React.ComponentProps<typeof Command.Group>): react_jsx_runtime84.JSX.Element;
|
|
38
38
|
declare function CommandSeparator({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Command.Separator>):
|
|
41
|
+
}: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime84.JSX.Element;
|
|
42
42
|
declare function CommandItem({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Command.Item>):
|
|
45
|
+
}: React.ComponentProps<typeof Command.Item>): react_jsx_runtime84.JSX.Element;
|
|
46
46
|
declare function CommandShortcut({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'span'>):
|
|
49
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime84.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
52
|
-
//# sourceMappingURL=command-
|
|
52
|
+
//# sourceMappingURL=command-C3v9zAXg.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`./chunk-CUT6urMc.cjs`),t=require(`./dialog-
|
|
2
|
-
//# sourceMappingURL=command-
|
|
1
|
+
const e=require(`./chunk-CUT6urMc.cjs`),t=require(`./dialog-CGrbU7PO.cjs`),n=e.__toESM(require(`lucide-react`)),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=e.__toESM(require(`cmdk`));function o({className:e,...t}){return(0,i.jsx)(a.Command,{"data-slot":`command`,className:(0,r.cn)(`bg-popover text-text-positive border-border-weak flex size-full flex-col overflow-hidden rounded-md`,e),...t})}function s({title:e=`Command Palette`,description:n=`Search for a command to run...`,children:a,className:s,showCloseButton:c=!0,...l}){return(0,i.jsxs)(t.Dialog,{...l,children:[(0,i.jsxs)(t.DialogHeader,{className:`sr-only`,children:[(0,i.jsx)(t.DialogTitle,{children:e}),(0,i.jsx)(t.DialogDescription,{children:n})]}),(0,i.jsx)(t.DialogContent,{className:(0,r.cn)(`overflow-hidden p-0`,s),showCloseButton:c,children:(0,i.jsx)(o,{className:(0,r.cn)(`[&_[cmdk-group-heading]]:text-text-positive-muted`,`**:data-[slot=command-input-wrapper]:h-12`,`[&_[cmdk-group-heading]]:px-2`,`[&_[cmdk-group-heading]]:font-medium`,`[&_[cmdk-group]]:px-2`,`[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0`,`[&_[cmdk-input-wrapper]_svg]:size-5`,`[&_[cmdk-input]]:h-12`,`[&_[cmdk-item]]:px-2`,`[&_[cmdk-item]]:py-3`,`[&_[cmdk-item]_svg]:size-5`),children:a})})]})}function c({className:e,...t}){return(0,i.jsxs)(`div`,{"data-slot":`command-input-wrapper`,className:`border-border-weak flex h-9 items-center gap-2 border-b px-3`,children:[(0,i.jsx)(n.SearchIcon,{className:`size-4 shrink-0 opacity-50`}),(0,i.jsx)(a.Command.Input,{"data-slot":`command-input`,className:(0,r.cn)(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden`,`placeholder:text-text-positive-muted`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,e),...t})]})}function l({className:e,...t}){return(0,i.jsx)(a.Command.List,{"data-slot":`command-list`,className:(0,r.cn)(`max-h-80 scroll-py-1 overflow-x-hidden overflow-y-auto`,e),...t})}function u({...e}){return(0,i.jsx)(a.Command.Empty,{"data-slot":`command-empty`,className:`py-6 text-center text-sm`,...e})}function d({className:e,...t}){return(0,i.jsx)(a.Command.Group,{"data-slot":`command-group`,className:(0,r.cn)(`text-text-positive`,`overflow-hidden p-1`,`[&_[cmdk-group-heading]]:text-text-positive-weak`,`[&_[cmdk-group-heading]]:px-2`,`[&_[cmdk-group-heading]]:py-1.5`,`[&_[cmdk-group-heading]]:text-xs`,`[&_[cmdk-group-heading]]:font-medium`,e),...t})}function f({className:e,...t}){return(0,i.jsx)(a.Command.Separator,{"data-slot":`command-separator`,className:(0,r.cn)(`bg-border-weak -mx-1 h-px`,e),...t})}function p({className:e,...t}){return(0,i.jsx)(a.Command.Item,{"data-slot":`command-item`,className:(0,r.cn)(`relative flex cursor-pointer items-center gap-2 rounded-md p-2.5 text-sm outline-hidden transition-all duration-300 select-none`,`active:ring-border`,`active:opacity-60`,`active:ring-4`,`data-[selected=true]:bg-muted-muted`,`data-[selected=true]:text-text-positive-strong`,`data-[disabled=true]:opacity-50`,`data-[disabled=true]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg]:pointer-events-none`,`[&_svg:not([class*='size-'])]:size-4`,`[&_svg:not([class*='text-'])]:text-text-positive-muted`,e),...t})}function m({className:e,...t}){return(0,i.jsx)(`span`,{"data-slot":`command-shortcut`,className:(0,r.cn)(`text-text-positive-muted ml-auto text-xs tracking-widest`,e),...t})}Object.defineProperty(exports,`Command`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`CommandDialog`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`CommandEmpty`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`CommandGroup`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`CommandInput`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`CommandItem`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`CommandList`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`CommandSeparator`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`CommandShortcut`,{enumerable:!0,get:function(){return m}});
|
|
2
|
+
//# sourceMappingURL=command-COUM-XfY.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-
|
|
1
|
+
{"version":3,"file":"command-COUM-XfY.cjs","names":["CommandPrimitive","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","SearchIcon"],"sources":["../packages/components/ui/command.tsx"],"sourcesContent":["'use client'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { SearchIcon } from 'lucide-react'\n\nimport { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'\n\nimport { Command as CommandPrimitive } from 'cmdk'\n\nfunction Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn('bg-popover text-text-positive border-border-weak flex size-full flex-col overflow-hidden rounded-md', className)}\n {...props}\n />\n )\n}\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string\n description?: string\n className?: string\n showCloseButton?: boolean\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cn('overflow-hidden p-0', className)} showCloseButton={showCloseButton}>\n <Command\n className={cn(\n '[&_[cmdk-group-heading]]:text-text-positive-muted',\n '**:data-[slot=command-input-wrapper]:h-12',\n '[&_[cmdk-group-heading]]:px-2',\n '[&_[cmdk-group-heading]]:font-medium',\n '[&_[cmdk-group]]:px-2',\n '[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0',\n '[&_[cmdk-input-wrapper]_svg]:size-5',\n '[&_[cmdk-input]]:h-12',\n '[&_[cmdk-item]]:px-2',\n '[&_[cmdk-item]]:py-3',\n '[&_[cmdk-item]_svg]:size-5',\n )}\n >\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nfunction CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"border-border-weak flex h-9 items-center gap-2 border-b px-3\">\n <SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden',\n 'placeholder:text-text-positive-muted',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n )\n}\n\nfunction CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {\n return <CommandPrimitive.List data-slot=\"command-list\" className={cn('max-h-80 scroll-py-1 overflow-x-hidden overflow-y-auto', className)} {...props} />\n}\n\nfunction CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return <CommandPrimitive.Empty data-slot=\"command-empty\" className=\"py-6 text-center text-sm\" {...props} />\n}\n\nfunction CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-text-positive',\n 'overflow-hidden p-1',\n '[&_[cmdk-group-heading]]:text-text-positive-weak',\n '[&_[cmdk-group-heading]]:px-2',\n '[&_[cmdk-group-heading]]:py-1.5',\n '[&_[cmdk-group-heading]]:text-xs',\n '[&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return <CommandPrimitive.Separator data-slot=\"command-separator\" className={cn('bg-border-weak -mx-1 h-px', className)} {...props} />\n}\n\nfunction CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n 'relative flex cursor-pointer items-center gap-2 rounded-md p-2.5 text-sm outline-hidden transition-all duration-300 select-none',\n 'active:ring-border',\n 'active:opacity-60',\n 'active:ring-4',\n 'data-[selected=true]:bg-muted-muted',\n 'data-[selected=true]:text-text-positive-strong',\n 'data-[disabled=true]:opacity-50',\n 'data-[disabled=true]:pointer-events-none',\n '[&_svg]:shrink-0',\n '[&_svg]:pointer-events-none',\n \"[&_svg:not([class*='size-'])]:size-4\",\n \"[&_svg:not([class*='text-'])]:text-text-positive-muted\",\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<'span'>) {\n return <span data-slot=\"command-shortcut\" className={cn('text-text-positive-muted ml-auto text-xs tracking-widest', className)} {...props} />\n}\n\nexport { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut }\n"],"mappings":"8OASA,SAAS,EAAQ,CAAE,YAAW,GAAG,GAAwD,CACvF,OACE,EAAA,EAAA,KAACA,EAAAA,QAAAA,CACC,YAAU,UACV,WAAA,EAAA,EAAA,IAAc,sGAAuG,GACrH,GAAI,IAKV,SAAS,EAAc,CACrB,QAAQ,kBACR,cAAc,iCACd,WACA,YACA,kBAAkB,GAClB,GAAG,GAMF,CACD,OACE,EAAA,EAAA,MAACC,EAAAA,OAAAA,CAAO,GAAI,aACV,EAAA,EAAA,MAACC,EAAAA,aAAAA,CAAa,UAAU,qBACtB,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAAA,SAAa,KACd,EAAA,EAAA,KAACC,EAAAA,kBAAAA,CAAAA,SAAmB,QAEtB,EAAA,EAAA,KAACC,EAAAA,cAAAA,CAAc,WAAA,EAAA,EAAA,IAAc,sBAAuB,GAA6B,4BAC/E,EAAA,EAAA,KAAC,EAAA,CACC,WAAA,EAAA,EAAA,IACE,oDACA,4CACA,gCACA,uCACA,wBACA,oDACA,sCACA,wBACA,uBACA,uBACA,8BAGD,kBAOX,SAAS,EAAa,CAAE,YAAW,GAAG,GAA8D,CAClG,OACE,EAAA,EAAA,MAAC,MAAA,CAAI,YAAU,wBAAwB,UAAU,0EAC/C,EAAA,EAAA,KAACC,EAAAA,WAAAA,CAAW,UAAU,gCACtB,EAAA,EAAA,KAACN,EAAAA,QAAiB,MAAA,CAChB,YAAU,gBACV,WAAA,EAAA,EAAA,IACE,yEACA,uCACA,8BACA,sBACA,GAEF,GAAI,OAMZ,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAAA,EAAA,KAACA,EAAAA,QAAiB,KAAA,CAAK,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,yDAA0D,GAAY,GAAI,IAGjJ,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAAA,EAAA,KAACA,EAAAA,QAAiB,MAAA,CAAM,YAAU,gBAAgB,UAAU,2BAA2B,GAAI,IAGpG,SAAS,EAAa,CAAE,YAAW,GAAG,GAA8D,CAClG,OACE,EAAA,EAAA,KAACA,EAAAA,QAAiB,MAAA,CAChB,YAAU,gBACV,WAAA,EAAA,EAAA,IACE,qBACA,sBACA,mDACA,gCACA,kCACA,mCACA,uCACA,GAEF,GAAI,IAKV,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAkE,CAC1G,OAAO,EAAA,EAAA,KAACA,EAAAA,QAAiB,UAAA,CAAU,YAAU,oBAAoB,WAAA,EAAA,EAAA,IAAc,4BAA6B,GAAY,GAAI,IAG9H,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OACE,EAAA,EAAA,KAACA,EAAAA,QAAiB,KAAA,CAChB,YAAU,eACV,WAAA,EAAA,EAAA,IACE,kIACA,qBACA,oBACA,gBACA,sCACA,iDACA,kCACA,2CACA,mBACA,8BACA,uCACA,yDACA,GAEF,GAAI,IAKV,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAuC,CAC9E,OAAO,EAAA,EAAA,KAAC,OAAA,CAAK,YAAU,mBAAmB,WAAA,EAAA,EAAA,IAAc,2DAA4D,GAAY,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Dialog as e,DialogContent as t,DialogDescription as n,DialogHeader as r,DialogTitle as i}from"./dialog-
|
|
2
|
-
//# sourceMappingURL=command-
|
|
1
|
+
import{Dialog as e,DialogContent as t,DialogDescription as n,DialogHeader as r,DialogTitle as i}from"./dialog-DbI18XF9.js";import{SearchIcon as a}from"lucide-react";import{cn as o}from"@customafk/react-toolkit/utils";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{Command as l}from"cmdk";function u({className:e,...t}){return s(l,{"data-slot":`command`,className:o(`bg-popover text-text-positive border-border-weak flex size-full flex-col overflow-hidden rounded-md`,e),...t})}function d({title:a=`Command Palette`,description:l=`Search for a command to run...`,children:d,className:f,showCloseButton:p=!0,...m}){return c(e,{...m,children:[c(r,{className:`sr-only`,children:[s(i,{children:a}),s(n,{children:l})]}),s(t,{className:o(`overflow-hidden p-0`,f),showCloseButton:p,children:s(u,{className:o(`[&_[cmdk-group-heading]]:text-text-positive-muted`,`**:data-[slot=command-input-wrapper]:h-12`,`[&_[cmdk-group-heading]]:px-2`,`[&_[cmdk-group-heading]]:font-medium`,`[&_[cmdk-group]]:px-2`,`[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0`,`[&_[cmdk-input-wrapper]_svg]:size-5`,`[&_[cmdk-input]]:h-12`,`[&_[cmdk-item]]:px-2`,`[&_[cmdk-item]]:py-3`,`[&_[cmdk-item]_svg]:size-5`),children:d})})]})}function f({className:e,...t}){return c(`div`,{"data-slot":`command-input-wrapper`,className:`border-border-weak flex h-9 items-center gap-2 border-b px-3`,children:[s(a,{className:`size-4 shrink-0 opacity-50`}),s(l.Input,{"data-slot":`command-input`,className:o(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden`,`placeholder:text-text-positive-muted`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,e),...t})]})}function p({className:e,...t}){return s(l.List,{"data-slot":`command-list`,className:o(`max-h-80 scroll-py-1 overflow-x-hidden overflow-y-auto`,e),...t})}function m({...e}){return s(l.Empty,{"data-slot":`command-empty`,className:`py-6 text-center text-sm`,...e})}function h({className:e,...t}){return s(l.Group,{"data-slot":`command-group`,className:o(`text-text-positive`,`overflow-hidden p-1`,`[&_[cmdk-group-heading]]:text-text-positive-weak`,`[&_[cmdk-group-heading]]:px-2`,`[&_[cmdk-group-heading]]:py-1.5`,`[&_[cmdk-group-heading]]:text-xs`,`[&_[cmdk-group-heading]]:font-medium`,e),...t})}function g({className:e,...t}){return s(l.Separator,{"data-slot":`command-separator`,className:o(`bg-border-weak -mx-1 h-px`,e),...t})}function _({className:e,...t}){return s(l.Item,{"data-slot":`command-item`,className:o(`relative flex cursor-pointer items-center gap-2 rounded-md p-2.5 text-sm outline-hidden transition-all duration-300 select-none`,`active:ring-border`,`active:opacity-60`,`active:ring-4`,`data-[selected=true]:bg-muted-muted`,`data-[selected=true]:text-text-positive-strong`,`data-[disabled=true]:opacity-50`,`data-[disabled=true]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg]:pointer-events-none`,`[&_svg:not([class*='size-'])]:size-4`,`[&_svg:not([class*='text-'])]:text-text-positive-muted`,e),...t})}function v({className:e,...t}){return s(`span`,{"data-slot":`command-shortcut`,className:o(`text-text-positive-muted ml-auto text-xs tracking-widest`,e),...t})}export{u as Command,d as CommandDialog,m as CommandEmpty,h as CommandGroup,f as CommandInput,_ as CommandItem,p as CommandList,g as CommandSeparator,v as CommandShortcut};
|
|
2
|
+
//# sourceMappingURL=command-DNfCX3KZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-
|
|
1
|
+
{"version":3,"file":"command-DNfCX3KZ.js","names":["Command","CommandPrimitive"],"sources":["../packages/components/ui/command.tsx"],"sourcesContent":["'use client'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { SearchIcon } from 'lucide-react'\n\nimport { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'\n\nimport { Command as CommandPrimitive } from 'cmdk'\n\nfunction Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn('bg-popover text-text-positive border-border-weak flex size-full flex-col overflow-hidden rounded-md', className)}\n {...props}\n />\n )\n}\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string\n description?: string\n className?: string\n showCloseButton?: boolean\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cn('overflow-hidden p-0', className)} showCloseButton={showCloseButton}>\n <Command\n className={cn(\n '[&_[cmdk-group-heading]]:text-text-positive-muted',\n '**:data-[slot=command-input-wrapper]:h-12',\n '[&_[cmdk-group-heading]]:px-2',\n '[&_[cmdk-group-heading]]:font-medium',\n '[&_[cmdk-group]]:px-2',\n '[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0',\n '[&_[cmdk-input-wrapper]_svg]:size-5',\n '[&_[cmdk-input]]:h-12',\n '[&_[cmdk-item]]:px-2',\n '[&_[cmdk-item]]:py-3',\n '[&_[cmdk-item]_svg]:size-5',\n )}\n >\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nfunction CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"border-border-weak flex h-9 items-center gap-2 border-b px-3\">\n <SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden',\n 'placeholder:text-text-positive-muted',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n )\n}\n\nfunction CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {\n return <CommandPrimitive.List data-slot=\"command-list\" className={cn('max-h-80 scroll-py-1 overflow-x-hidden overflow-y-auto', className)} {...props} />\n}\n\nfunction CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return <CommandPrimitive.Empty data-slot=\"command-empty\" className=\"py-6 text-center text-sm\" {...props} />\n}\n\nfunction CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-text-positive',\n 'overflow-hidden p-1',\n '[&_[cmdk-group-heading]]:text-text-positive-weak',\n '[&_[cmdk-group-heading]]:px-2',\n '[&_[cmdk-group-heading]]:py-1.5',\n '[&_[cmdk-group-heading]]:text-xs',\n '[&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return <CommandPrimitive.Separator data-slot=\"command-separator\" className={cn('bg-border-weak -mx-1 h-px', className)} {...props} />\n}\n\nfunction CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n 'relative flex cursor-pointer items-center gap-2 rounded-md p-2.5 text-sm outline-hidden transition-all duration-300 select-none',\n 'active:ring-border',\n 'active:opacity-60',\n 'active:ring-4',\n 'data-[selected=true]:bg-muted-muted',\n 'data-[selected=true]:text-text-positive-strong',\n 'data-[disabled=true]:opacity-50',\n 'data-[disabled=true]:pointer-events-none',\n '[&_svg]:shrink-0',\n '[&_svg]:pointer-events-none',\n \"[&_svg:not([class*='size-'])]:size-4\",\n \"[&_svg:not([class*='text-'])]:text-text-positive-muted\",\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<'span'>) {\n return <span data-slot=\"command-shortcut\" className={cn('text-text-positive-muted ml-auto text-xs tracking-widest', className)} {...props} />\n}\n\nexport { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut }\n"],"mappings":"0SASA,SAASA,EAAQ,CAAE,YAAW,GAAG,GAAwD,CACvF,OACE,EAACC,EAAAA,CACC,YAAU,UACV,UAAW,EAAG,sGAAuG,GACrH,GAAI,IAKV,SAAS,EAAc,CACrB,QAAQ,kBACR,cAAc,iCACd,WACA,YACA,kBAAkB,GAClB,GAAG,GAMF,CACD,OACE,EAAC,EAAA,CAAO,GAAI,YACV,EAAC,EAAA,CAAa,UAAU,oBACtB,EAAC,EAAA,CAAA,SAAa,IACd,EAAC,EAAA,CAAA,SAAmB,OAEtB,EAAC,EAAA,CAAc,UAAW,EAAG,sBAAuB,GAA6B,2BAC/E,EAACD,EAAAA,CACC,UAAW,EACT,oDACA,4CACA,gCACA,uCACA,wBACA,oDACA,sCACA,wBACA,uBACA,uBACA,8BAGD,kBAOX,SAAS,EAAa,CAAE,YAAW,GAAG,GAA8D,CAClG,OACE,EAAC,MAAA,CAAI,YAAU,wBAAwB,UAAU,yEAC/C,EAAC,EAAA,CAAW,UAAU,+BACtB,EAACC,EAAiB,MAAA,CAChB,YAAU,gBACV,UAAW,EACT,yEACA,uCACA,8BACA,sBACA,GAEF,GAAI,OAMZ,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAACA,EAAiB,KAAA,CAAK,YAAU,eAAe,UAAW,EAAG,yDAA0D,GAAY,GAAI,IAGjJ,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAACA,EAAiB,MAAA,CAAM,YAAU,gBAAgB,UAAU,2BAA2B,GAAI,IAGpG,SAAS,EAAa,CAAE,YAAW,GAAG,GAA8D,CAClG,OACE,EAACA,EAAiB,MAAA,CAChB,YAAU,gBACV,UAAW,EACT,qBACA,sBACA,mDACA,gCACA,kCACA,mCACA,uCACA,GAEF,GAAI,IAKV,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAkE,CAC1G,OAAO,EAACA,EAAiB,UAAA,CAAU,YAAU,oBAAoB,UAAW,EAAG,4BAA6B,GAAY,GAAI,IAG9H,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OACE,EAACA,EAAiB,KAAA,CAChB,YAAU,eACV,UAAW,EACT,kIACA,qBACA,oBACA,gBACA,sCACA,iDACA,kCACA,2CACA,mBACA,8BACA,uCACA,yDACA,GAEF,GAAI,IAKV,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAuC,CAC9E,OAAO,EAAC,OAAA,CAAK,YAAU,mBAAmB,UAAW,EAAG,2DAA4D,GAAY,GAAI"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Dialog } from "./dialog-
|
|
2
|
-
import * as
|
|
1
|
+
import { Dialog } from "./dialog-CIrv1yaX.cjs";
|
|
2
|
+
import * as react_jsx_runtime59 from "react/jsx-runtime";
|
|
3
3
|
import { Command } from "cmdk";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/command.d.ts
|
|
6
6
|
declare function Command$1({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Command>):
|
|
9
|
+
}: React.ComponentProps<typeof Command>): react_jsx_runtime59.JSX.Element;
|
|
10
10
|
declare function CommandDialog({
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
@@ -19,34 +19,34 @@ declare function CommandDialog({
|
|
|
19
19
|
description?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
showCloseButton?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime59.JSX.Element;
|
|
23
23
|
declare function CommandInput({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Command.Input>):
|
|
26
|
+
}: React.ComponentProps<typeof Command.Input>): react_jsx_runtime59.JSX.Element;
|
|
27
27
|
declare function CommandList({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<typeof Command.List>):
|
|
30
|
+
}: React.ComponentProps<typeof Command.List>): react_jsx_runtime59.JSX.Element;
|
|
31
31
|
declare function CommandEmpty({
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Command.Empty>):
|
|
33
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime59.JSX.Element;
|
|
34
34
|
declare function CommandGroup({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Command.Group>):
|
|
37
|
+
}: React.ComponentProps<typeof Command.Group>): react_jsx_runtime59.JSX.Element;
|
|
38
38
|
declare function CommandSeparator({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Command.Separator>):
|
|
41
|
+
}: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime59.JSX.Element;
|
|
42
42
|
declare function CommandItem({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Command.Item>):
|
|
45
|
+
}: React.ComponentProps<typeof Command.Item>): react_jsx_runtime59.JSX.Element;
|
|
46
46
|
declare function CommandShortcut({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'span'>):
|
|
49
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime59.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
52
|
-
//# sourceMappingURL=command-
|
|
52
|
+
//# sourceMappingURL=command-tdSE_rEO.d.cts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../types-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../types-DMNCf28U.cjs`),n=require(`../flex-C-4TxUDe.cjs`),r=require(`../paragraph-CI28eVP0.cjs`),i=e.__toESM(require(`react/jsx-runtime`)),a=e.__toESM(require(`react`)),o=e.__toESM(require(`react-country-flag`)),s=({country:e})=>{let s=(0,a.useMemo)(()=>({[t.ECountry.VIETNAM]:`VN`,[t.ECountry.USA]:`US`,[t.ECountry.JAPAN]:`JP`,[t.ECountry.CHINA]:`CN`,[t.ECountry.KOREA]:`KR`,[t.ECountry.SINGAPORE]:`SG`,[t.ECountry.MALAYSIA]:`MY`,[t.ECountry.INDONESIA]:`ID`,[t.ECountry.TAIWAN]:`TW`,[t.ECountry.THAILAND]:`TH`}),[]);return e?(0,i.jsxs)(n.Flex,{padding:`none`,className:`h-4 px-1`,children:[(0,i.jsx)(o.default,{svg:!0,countryCode:e?s[e]:`VN`,className:`emojiFlag border`}),(0,i.jsxs)(r.Paragraph,{variant:`sm`,children:[e===t.ECountry.VIETNAM&&`Vietnam`,e===t.ECountry.USA&&`America`,e===t.ECountry.JAPAN&&`Japan`,e===t.ECountry.CHINA&&`China`,e===t.ECountry.KOREA&&`Korea`,e===t.ECountry.SINGAPORE&&`Singapore`,e===t.ECountry.MALAYSIA&&`Malaysia`,e===t.ECountry.INDONESIA&&`Indonesia`,e===t.ECountry.TAIWAN&&`Taiwan`,e===t.ECountry.THAILAND&&`Thailand`]})]}):(0,i.jsx)(n.Flex,{padding:`none`,className:`h-4 px-1`,children:(0,i.jsx)(r.Paragraph,{variant:`muted`,className:`line-clamp-1 text-xs`,children:`No country`})})};exports.CountryDisplay=s;
|
|
2
2
|
//# sourceMappingURL=country.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ECountry as e}from"../types-
|
|
1
|
+
import{ECountry as e}from"../types-Cgr_eoPF.js";import{Flex as t}from"../flex-BxBmZCWh.js";import{Paragraph as n}from"../paragraph-BwSskqDY.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{useMemo as a}from"react";import o from"react-country-flag";const s=({country:s})=>{let c=a(()=>({[e.VIETNAM]:`VN`,[e.USA]:`US`,[e.JAPAN]:`JP`,[e.CHINA]:`CN`,[e.KOREA]:`KR`,[e.SINGAPORE]:`SG`,[e.MALAYSIA]:`MY`,[e.INDONESIA]:`ID`,[e.TAIWAN]:`TW`,[e.THAILAND]:`TH`}),[]);return s?i(t,{padding:`none`,className:`h-4 px-1`,children:[r(o,{svg:!0,countryCode:s?c[s]:`VN`,className:`emojiFlag border`}),i(n,{variant:`sm`,children:[s===e.VIETNAM&&`Vietnam`,s===e.USA&&`America`,s===e.JAPAN&&`Japan`,s===e.CHINA&&`China`,s===e.KOREA&&`Korea`,s===e.SINGAPORE&&`Singapore`,s===e.MALAYSIA&&`Malaysia`,s===e.INDONESIA&&`Indonesia`,s===e.TAIWAN&&`Taiwan`,s===e.THAILAND&&`Thailand`]})]}):r(t,{padding:`none`,className:`h-4 px-1`,children:r(n,{variant:`muted`,className:`line-clamp-1 text-xs`,children:`No country`})})};export{s as CountryDisplay};
|
|
2
2
|
//# sourceMappingURL=country.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-C-4TxUDe.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({children:e})=>(0,n.jsx)(t.Flex,{vertical:!0,padding:`none`,gap:`md`,width:`full`,children:e}),i=({label:e,value:r,minLabelWidth:i=`120px`})=>(0,n.jsxs)(t.Flex,{align:`center`,justify:`start`,width:`full`,padding:`none`,gap:`md`,className:`flex-col items-start gap-1 md:flex-row md:items-center md:gap-4`,children:[(0,n.jsx)(`div`,{style:{minWidth:i},className:`text-muted-foreground text-sm`,children:e}),(0,n.jsx)(`div`,{className:`text-secondary-foreground text-sm`,children:r})]});exports.DataList=r,exports.DataListItem=i;
|
|
2
2
|
//# sourceMappingURL=data-list.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Flex as e}from"../flex-
|
|
1
|
+
import{Flex as e}from"../flex-BxBmZCWh.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";const r=({children:n})=>t(e,{vertical:!0,padding:`none`,gap:`md`,width:`full`,children:n}),i=({label:r,value:i,minLabelWidth:a=`120px`})=>n(e,{align:`center`,justify:`start`,width:`full`,padding:`none`,gap:`md`,className:`flex-col items-start gap-1 md:flex-row md:items-center md:gap-4`,children:[t(`div`,{style:{minWidth:a},className:`text-muted-foreground text-sm`,children:r}),t(`div`,{className:`text-secondary-foreground text-sm`,children:i})]});export{r as DataList,i as DataListItem};
|
|
2
2
|
//# sourceMappingURL=data-list.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../date-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../date-wo9LyN6l.cjs`),n=require(`../badge-BnFraaZ1.cjs`),r=require(`../tooltip-meYt4lxB.cjs`),i=e.__toESM(require(`react/jsx-runtime`)),a=({date:e})=>(0,i.jsx)(r.TooltipProvider,{children:(0,i.jsxs)(r.Tooltip,{children:[(0,i.jsx)(r.TooltipTrigger,{asChild:!0,children:(0,i.jsx)(n.Badge,{children:(0,i.jsx)(t.DateDisplay,{date:e,format:`medium`,className:`font-normal text-white`})})}),(0,i.jsx)(r.TooltipContent,{children:(0,i.jsx)(t.DateDisplay,{date:e,format:`full`,showTime:!0,className:`!font-[Inter] font-medium`})})]})});exports.DateTooltip=a;
|
|
2
2
|
//# sourceMappingURL=date-tooltip.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{DateDisplay as e}from"../date-
|
|
1
|
+
import{DateDisplay as e}from"../date-DWxL795U.js";import{Badge as t}from"../badge-8wMMxROk.js";import{Tooltip as n,TooltipContent as r,TooltipProvider as i,TooltipTrigger as a}from"../tooltip-CN8vvmWA.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=({date:c})=>o(i,{children:s(n,{children:[o(a,{asChild:!0,children:o(t,{children:o(e,{date:c,format:`medium`,className:`font-normal text-white`})})}),o(r,{children:o(e,{date:c,format:`full`,showTime:!0,className:`!font-[Inter] font-medium`})})]})});export{c as DateTooltip};
|
|
2
2
|
//# sourceMappingURL=date-tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../date-
|
|
1
|
+
const e=require(`../date-wo9LyN6l.cjs`);exports.DateDisplay=e.DateDisplay;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DateDisplay as e}from"../date-
|
|
1
|
+
import{DateDisplay as e}from"../date-DWxL795U.js";export{e as DateDisplay};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-C-4TxUDe.cjs`),n=e.__toESM(require(`lucide-react`)),r=e.__toESM(require(`react/jsx-runtime`)),i=()=>(0,r.jsxs)(t.Flex,{vertical:!0,justify:`center`,align:`center`,gap:`sm`,className:`text-text-positive-muted size-full`,children:[(0,r.jsx)(n.PackageOpenIcon,{size:52,strokeWidth:1}),(0,r.jsx)(`p`,{className:`text-sm`,children:`Không có dữ liệu nào để hiển thị.`})]});exports.EmptyDisplay=i;
|
|
2
2
|
//# sourceMappingURL=empty.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{Flex as e}from"../flex-
|
|
1
|
+
"use client";import{Flex as e}from"../flex-BxBmZCWh.js";import{PackageOpenIcon as t}from"lucide-react";import{jsx as n,jsxs as r}from"react/jsx-runtime";const i=()=>r(e,{vertical:!0,justify:`center`,align:`center`,gap:`sm`,className:`text-text-positive-muted size-full`,children:[n(t,{size:52,strokeWidth:1}),n(`p`,{className:`text-sm`,children:`Không có dữ liệu nào để hiển thị.`})]});export{i as EmptyDisplay};
|
|
2
2
|
//# sourceMappingURL=empty.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../paragraph-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../paragraph-CI28eVP0.cjs`),n=require(`../tooltip-meYt4lxB.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=({name:e})=>(0,r.jsxs)(n.Tooltip,{children:[(0,r.jsx)(n.TooltipTrigger,{children:(0,r.jsx)(t.Paragraph,{variant:`sm`,className:`line-clamp-2 w-full truncate pb-px text-start text-wrap`,children:e})}),(0,r.jsx)(n.TooltipContent,{align:`start`,className:`max-w-80 text-wrap break-keep whitespace-pre-line`,children:e})]});exports.NameDisplay=i;
|
|
2
2
|
//# sourceMappingURL=name.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.cjs","names":["NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>>","Tooltip","TooltipTrigger","Paragraph","TooltipContent"],"sources":["../../packages/components/data-display/name.tsx"],"sourcesContent":["import { Paragraph } from '../typography/paragraph'\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'\n\ntype NameDisplayProps = {\n name: string\n}\n\nexport const NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>> = ({ name }) => {\n return (\n <Tooltip>\n <TooltipTrigger>\n <Paragraph variant=\"sm\" className=\"line-clamp-2 w-full
|
|
1
|
+
{"version":3,"file":"name.cjs","names":["NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>>","Tooltip","TooltipTrigger","Paragraph","TooltipContent"],"sources":["../../packages/components/data-display/name.tsx"],"sourcesContent":["import { Paragraph } from '../typography/paragraph'\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'\n\ntype NameDisplayProps = {\n name: string\n}\n\nexport const NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>> = ({ name }) => {\n return (\n <Tooltip>\n <TooltipTrigger>\n <Paragraph variant=\"sm\" className=\"line-clamp-2 w-full truncate pb-px text-start text-wrap\">\n {name}\n </Paragraph>\n </TooltipTrigger>\n <TooltipContent align=\"start\" className=\"max-w-80 text-wrap break-keep whitespace-pre-line\">\n {name}\n </TooltipContent>\n </Tooltip>\n )\n}\n"],"mappings":"+JAOaA,GAAoE,CAAE,WAE/E,EAAA,EAAA,MAACC,EAAAA,QAAAA,CAAAA,SAAAA,EACC,EAAA,EAAA,KAACC,EAAAA,eAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,UAAAA,CAAU,QAAQ,KAAK,UAAU,mEAC/B,OAGL,EAAA,EAAA,KAACC,EAAAA,eAAAA,CAAe,MAAM,QAAQ,UAAU,6DACrC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Paragraph as e}from"../paragraph-
|
|
1
|
+
import{Paragraph as e}from"../paragraph-BwSskqDY.js";import{Tooltip as t,TooltipContent as n,TooltipTrigger as r}from"../tooltip-CN8vvmWA.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=({name:o})=>a(t,{children:[i(r,{children:i(e,{variant:`sm`,className:`line-clamp-2 w-full truncate pb-px text-start text-wrap`,children:o})}),i(n,{align:`start`,className:`max-w-80 text-wrap break-keep whitespace-pre-line`,children:o})]});export{o as NameDisplay};
|
|
2
2
|
//# sourceMappingURL=name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.js","names":["NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>>"],"sources":["../../packages/components/data-display/name.tsx"],"sourcesContent":["import { Paragraph } from '../typography/paragraph'\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'\n\ntype NameDisplayProps = {\n name: string\n}\n\nexport const NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>> = ({ name }) => {\n return (\n <Tooltip>\n <TooltipTrigger>\n <Paragraph variant=\"sm\" className=\"line-clamp-2 w-full
|
|
1
|
+
{"version":3,"file":"name.js","names":["NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>>"],"sources":["../../packages/components/data-display/name.tsx"],"sourcesContent":["import { Paragraph } from '../typography/paragraph'\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'\n\ntype NameDisplayProps = {\n name: string\n}\n\nexport const NameDisplay: React.FC<React.PropsWithChildren<NameDisplayProps>> = ({ name }) => {\n return (\n <Tooltip>\n <TooltipTrigger>\n <Paragraph variant=\"sm\" className=\"line-clamp-2 w-full truncate pb-px text-start text-wrap\">\n {name}\n </Paragraph>\n </TooltipTrigger>\n <TooltipContent align=\"start\" className=\"max-w-80 text-wrap break-keep whitespace-pre-line\">\n {name}\n </TooltipContent>\n </Tooltip>\n )\n}\n"],"mappings":"gMAOA,MAAaA,GAAoE,CAAE,UAE/E,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAU,QAAQ,KAAK,UAAU,mEAC/B,MAGL,EAAC,EAAA,CAAe,MAAM,QAAQ,UAAU,6DACrC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../tooltip-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../tooltip-meYt4lxB.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({value:e})=>(0,n.jsxs)(t.Tooltip,{children:[(0,n.jsx)(t.TooltipTrigger,{asChild:!0,children:(0,n.jsx)(`p`,{className:`font-number text-secondary-foreground text-sm`,children:e.replace(/(\d{3})(\d{3})(\d{4})/,`($1) $2-$3`)})}),(0,n.jsx)(t.TooltipContent,{align:`start`,children:(0,n.jsx)(`p`,{children:e.slice(1).replace(/(\d{2})(\d{3})(\d{4})/,`(00) (+84) ($1) $2-$3`)})})]});exports.PhoneNumberDisplay=r;
|
|
2
2
|
//# sourceMappingURL=phone-number.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Tooltip as e,TooltipContent as t,TooltipTrigger as n}from"../tooltip-
|
|
1
|
+
import{Tooltip as e,TooltipContent as t,TooltipTrigger as n}from"../tooltip-CN8vvmWA.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=({value:a})=>i(e,{children:[r(n,{asChild:!0,children:r(`p`,{className:`font-number text-secondary-foreground text-sm`,children:a.replace(/(\d{3})(\d{3})(\d{4})/,`($1) $2-$3`)})}),r(t,{align:`start`,children:r(`p`,{children:a.slice(1).replace(/(\d{2})(\d{3})(\d{4})/,`(00) (+84) ($1) $2-$3`)})})]});export{a as PhoneNumberDisplay};
|
|
2
2
|
//# sourceMappingURL=phone-number.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../types-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../types-DMNCf28U.cjs`),n=require(`../badge-BnFraaZ1.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`react`)),a=({status:e})=>{let a=(0,i.useMemo)(()=>({[t.ERole.ADMIN]:`red`,[t.ERole.SUPER_ADMIN]:`purple`,[t.ERole.MODERATOR]:`indigo`,[t.ERole.STAFF]:`green`,[t.ERole.USER]:`blue`}),[]);return(0,r.jsxs)(n.Badge,{color:a[e],className:`min-w-24 justify-center`,children:[e===t.ERole.SUPER_ADMIN&&`Super Admin`,e===t.ERole.ADMIN&&`Admin`,e===t.ERole.MODERATOR&&`Moderator`,e===t.ERole.STAFF&&`Staff`,e===t.ERole.USER&&`User`]})};exports.RoleBadge=a;
|
|
2
2
|
//# sourceMappingURL=role-badge.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ERole as e}from"../types-
|
|
1
|
+
import{ERole as e}from"../types-Cgr_eoPF.js";import{Badge as t}from"../badge-8wMMxROk.js";import{jsxs as n}from"react/jsx-runtime";import{useMemo as r}from"react";const i=({status:i})=>{let a=r(()=>({[e.ADMIN]:`red`,[e.SUPER_ADMIN]:`purple`,[e.MODERATOR]:`indigo`,[e.STAFF]:`green`,[e.USER]:`blue`}),[]);return n(t,{color:a[i],className:`min-w-24 justify-center`,children:[i===e.SUPER_ADMIN&&`Super Admin`,i===e.ADMIN&&`Admin`,i===e.MODERATOR&&`Moderator`,i===e.STAFF&&`Staff`,i===e.USER&&`User`]})};export{i as RoleBadge};
|
|
2
2
|
//# sourceMappingURL=role-badge.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-
|
|
1
|
+
const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-C-4TxUDe.cjs`),n=e.__toESM(require(`@customafk/react-toolkit/utils`)),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`react`)),a=(0,i.memo)(({decimalSeparator:e=`.`,groupSeparator:a=`,`,prefix:o,suffix:s,precision:c,roundingMode:l=`round`,showTrailingZeros:u=!1,size:d=`lg`,value:f})=>{let p=(0,i.useCallback)((e,t)=>{let n=Math.pow(10,t);switch(l){case`floor`:return Math.floor(e*n)/n;case`ceil`:return Math.ceil(e*n)/n;case`round`:default:return Math.round(e*n)/n}},[l]),m=(0,i.useMemo)(()=>{let e={};return typeof c==`number`&&c>=0&&(u&&(e.minimumFractionDigits=c),e.maximumFractionDigits=c),e},[c,u]),h=(0,i.useCallback)(e=>{let t=e;return typeof c==`number`&&c>=0&&(t=p(e,c)),t.toLocaleString(`en-US`,m)},[p,m,c]),g=(0,i.useMemo)(()=>{if(typeof f==`number`)return isNaN(f)||!isFinite(f)?`N/A`:h(f);if(typeof f==`string`){let e=f.trim();if(!e)return`N/A`;let t=Number(e);return isNaN(t)||!isFinite(t)?`N/A`:h(t)}return`N/A`},[f,h]),_=(0,i.useMemo)(()=>e===`.`&&a===`,`?g:g.replace(/,/g,a).replace(/\./g,e),[g,e,a]);return(0,r.jsxs)(t.Flex,{padding:`none`,className:(0,n.cn)(`text-secondary-foreground font-number text-lg`,d===`xs`&&`text-xs`,d===`sm`&&`text-sm`,d===`md`&&`text-base`,d===`lg`&&`text-lg`,d===`xl`&&`text-xl`),children:[o,(0,r.jsx)(`p`,{children:_}),s]})});a.displayName=`Statistic`,exports.Statistic=a;
|
|
2
2
|
//# sourceMappingURL=statistic.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/data-display/statistic.d.ts
|
|
@@ -23,7 +23,7 @@ declare const Statistic: react0.MemoExoticComponent<({
|
|
|
23
23
|
showTrailingZeros,
|
|
24
24
|
size,
|
|
25
25
|
value
|
|
26
|
-
}: Props) =>
|
|
26
|
+
}: Props) => react_jsx_runtime1.JSX.Element>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { Statistic };
|
|
29
29
|
//# sourceMappingURL=statistic.d.ts.map
|