@customafk/lunas-ui 0.0.62 → 0.0.63
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 → add-new-C2dDiCV3.cjs} +1 -1
- package/dist/{add-new-LGex5x9J.cjs.map → add-new-C2dDiCV3.cjs.map} +1 -1
- package/dist/{add-new-VnpqRAAB.js → add-new-Dw0uZWxo.js} +1 -1
- package/dist/{add-new-VnpqRAAB.js.map → add-new-Dw0uZWxo.js.map} +1 -1
- package/dist/avatar-Bp69hha6.js +2 -0
- package/dist/avatar-Bp69hha6.js.map +1 -0
- package/dist/avatar-CRQdBYW5.cjs +2 -0
- package/dist/avatar-CRQdBYW5.cjs.map +1 -0
- package/dist/{button-DmNWC9JF.d.cts → button-B_r8XsfH.d.ts} +5 -5
- package/dist/{button-CwL7dO-u.d.ts → button-BtvqPQbl.d.cts} +4 -4
- package/dist/{calendar-BgoGbit6.js → calendar-BW3whtDD.js} +1 -1
- package/dist/{calendar-BgoGbit6.js.map → calendar-BW3whtDD.js.map} +1 -1
- package/dist/{calendar-CrtbhiDy.cjs → calendar-Cd2aQCHB.cjs} +1 -1
- package/dist/{calendar-CrtbhiDy.cjs.map → calendar-Cd2aQCHB.cjs.map} +1 -1
- package/dist/cards/simple-card.d.ts +2 -2
- package/dist/{command-COUM-XfY.cjs → command-B9nlrxXh.cjs} +1 -1
- package/dist/{command-COUM-XfY.cjs.map → command-B9nlrxXh.cjs.map} +1 -1
- package/dist/{command-DNfCX3KZ.js → command-DKD5gHi_.js} +1 -1
- package/dist/{command-DNfCX3KZ.js.map → command-DKD5gHi_.js.map} +1 -1
- package/dist/{command-USUF3JZz.d.ts → command-DewLG5N0.d.ts} +12 -12
- package/dist/{command-BQPzYASM.d.cts → command-tq_xgJ8Q.d.cts} +12 -12
- package/dist/data-display/country.d.ts +1 -1
- package/dist/data-display/empty.d.ts +2 -2
- package/dist/data-display/role-badge.d.ts +1 -1
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/{dialog-Bw_T5aco.d.cts → dialog-DI0dG1nN.d.cts} +12 -12
- package/dist/{dialog-DRDVtDc5.d.ts → dialog-Ddyl2CZg.d.ts} +12 -12
- package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +28 -28
- 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/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.cjs.map +1 -1
- 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/drawer-BbQKog4D.js +2 -0
- package/dist/drawer-BbQKog4D.js.map +1 -0
- package/dist/drawer-vqMdOZtq.cjs +2 -0
- package/dist/drawer-vqMdOZtq.cjs.map +1 -0
- package/dist/{dropdown-menu-CfHXIhdy.cjs → dropdown-menu-BtNJk8EZ.cjs} +1 -1
- package/dist/{dropdown-menu-CfHXIhdy.cjs.map → dropdown-menu-BtNJk8EZ.cjs.map} +1 -1
- package/dist/{dropdown-menu-t-SeMS1_.js → dropdown-menu-Cn96vqMy.js} +1 -1
- package/dist/{dropdown-menu-t-SeMS1_.js.map → dropdown-menu-Cn96vqMy.js.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.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- 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/{input-i5Nm0R1X.js → input-B0Q1kBoj.js} +1 -1
- package/dist/{input-i5Nm0R1X.js.map → input-B0Q1kBoj.js.map} +1 -1
- package/dist/{input-vLuNZody.d.ts → input-B3A9FFIr.d.ts} +3 -3
- package/dist/{input-Bt7b3-NW.cjs → input-BxXRqpc1.cjs} +1 -1
- package/dist/{input-Bt7b3-NW.cjs.map → input-BxXRqpc1.cjs.map} +1 -1
- package/dist/{input-DRU216h-.d.cts → input-CBmfFkSA.d.cts} +3 -3
- 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 +28 -28
- package/dist/layouts/app-layout/index.js +1 -1
- package/dist/layouts/flex.d.cts +2 -2
- package/dist/layouts/flex.d.ts +2 -2
- package/dist/layouts/service-layout/index.cjs +2 -0
- package/dist/layouts/service-layout/index.cjs.map +1 -0
- package/dist/layouts/service-layout/index.d.cts +114 -0
- package/dist/layouts/service-layout/index.d.ts +114 -0
- package/dist/layouts/service-layout/index.js +2 -0
- package/dist/layouts/service-layout/index.js.map +1 -0
- package/dist/{multi-select-CaBcDGi6.js → multi-select-Bp7nkNEB.js} +2 -2
- package/dist/{multi-select-CaBcDGi6.js.map → multi-select-Bp7nkNEB.js.map} +1 -1
- package/dist/{multi-select-C8kzA628.cjs → multi-select-CGe8Mg3n.cjs} +2 -2
- package/dist/{multi-select-C8kzA628.cjs.map → multi-select-CGe8Mg3n.cjs.map} +1 -1
- package/dist/{popover-BsF6vWTX.cjs → popover-ByL6Igxn.cjs} +1 -1
- package/dist/{popover-BsF6vWTX.cjs.map → popover-ByL6Igxn.cjs.map} +1 -1
- package/dist/{popover-CT9ZjjNA.js → popover-DMt7GPSm.js} +1 -1
- package/dist/{popover-CT9ZjjNA.js.map → popover-DMt7GPSm.js.map} +1 -1
- package/dist/{progress-PzPWivBh.js → progress-CBZMOdvp.js} +1 -1
- package/dist/{progress-PzPWivBh.js.map → progress-CBZMOdvp.js.map} +1 -1
- package/dist/{progress-BhSNuH1w.cjs → progress-CO0tL2yC.cjs} +1 -1
- package/dist/{progress-BhSNuH1w.cjs.map → progress-CO0tL2yC.cjs.map} +1 -1
- package/dist/{refresh-B2wYinm5.cjs → refresh-BVSXOk3A.cjs} +1 -1
- package/dist/{refresh-B2wYinm5.cjs.map → refresh-BVSXOk3A.cjs.map} +1 -1
- package/dist/{refresh-BMR_jPST.js → refresh-CHzDlf3i.js} +1 -1
- package/dist/{refresh-BMR_jPST.js.map → refresh-CHzDlf3i.js.map} +1 -1
- package/dist/{scroll-area-F3yESo8d.js → scroll-area-C4Mg89Qh.js} +1 -1
- package/dist/{scroll-area-F3yESo8d.js.map → scroll-area-C4Mg89Qh.js.map} +1 -1
- package/dist/{scroll-area-CbABlDpy.cjs → scroll-area-qPdEy4lg.cjs} +1 -1
- package/dist/{scroll-area-CbABlDpy.cjs.map → scroll-area-qPdEy4lg.cjs.map} +1 -1
- package/dist/{search-input-BsnMUPtZ.cjs → search-input-BXAnx2q9.cjs} +2 -2
- package/dist/{search-input-BsnMUPtZ.cjs.map → search-input-BXAnx2q9.cjs.map} +1 -1
- package/dist/{search-input-tivZy8LE.js → search-input-BxNMZVG4.js} +2 -2
- package/dist/{search-input-tivZy8LE.js.map → search-input-BxNMZVG4.js.map} +1 -1
- package/dist/{select-_oIGH0ax.js → select-CijI0HX0.js} +1 -1
- package/dist/{select-_oIGH0ax.js.map → select-CijI0HX0.js.map} +1 -1
- package/dist/{select-S75hVYoR.cjs → select-oxr4KoHx.cjs} +1 -1
- package/dist/{select-S75hVYoR.cjs.map → select-oxr4KoHx.cjs.map} +1 -1
- package/dist/{separator-0LK1LCy9.d.ts → separator-Cr_2vFm6.d.ts} +3 -3
- package/dist/{separator-BJoqBpEK.d.cts → separator-DT79vOG-.d.cts} +3 -3
- package/dist/{separator-CxCq7NYP.js → separator-DW2PaiUK.js} +1 -1
- package/dist/{separator-CxCq7NYP.js.map → separator-DW2PaiUK.js.map} +1 -1
- package/dist/{separator-hulDSW7B.cjs → separator-JGL-8B0V.cjs} +1 -1
- package/dist/{separator-hulDSW7B.cjs.map → separator-JGL-8B0V.cjs.map} +1 -1
- package/dist/{sheet-amjZQ7nX.js → sheet-BumlzKcW.js} +1 -1
- package/dist/{sheet-amjZQ7nX.js.map → sheet-BumlzKcW.js.map} +1 -1
- package/dist/{sheet-D8iW1o50.cjs → sheet-slcLNlWv.cjs} +1 -1
- package/dist/{sheet-D8iW1o50.cjs.map → sheet-slcLNlWv.cjs.map} +1 -1
- package/dist/{sidebar-BwIH2lFJ.cjs → sidebar-BWhRjoI9.cjs} +2 -2
- package/dist/{sidebar-BwIH2lFJ.cjs.map → sidebar-BWhRjoI9.cjs.map} +1 -1
- package/dist/{sidebar-Cf5tv_x0.js → sidebar-DwA61Am0.js} +2 -2
- package/dist/{sidebar-Cf5tv_x0.js.map → sidebar-DwA61Am0.js.map} +1 -1
- package/dist/{switch-BeQqTAw4.js → switch-32ewlnXt.js} +1 -1
- package/dist/{switch-BeQqTAw4.js.map → switch-32ewlnXt.js.map} +1 -1
- package/dist/{switch-BN4ghEjT.cjs → switch-BCOPCdXH.cjs} +1 -1
- package/dist/{switch-BN4ghEjT.cjs.map → switch-BCOPCdXH.cjs.map} +1 -1
- package/dist/table/index.cjs +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-Bz4GB66J.cjs → table-6BtDTiv_.cjs} +2 -2
- package/dist/{table-Bz4GB66J.cjs.map → table-6BtDTiv_.cjs.map} +1 -1
- package/dist/{table-Fby8ksbK.js → table-CachGeLA.js} +2 -2
- package/dist/{table-Fby8ksbK.js.map → table-CachGeLA.js.map} +1 -1
- package/dist/tabs-BYS9bv-R.cjs +2 -0
- package/dist/tabs-BYS9bv-R.cjs.map +1 -0
- package/dist/tabs-D4Q78tF2.js +2 -0
- package/dist/tabs-D4Q78tF2.js.map +1 -0
- package/dist/{textarea-CWLU6cai.cjs → textarea-BEPen5oo.cjs} +1 -1
- package/dist/{textarea-CWLU6cai.cjs.map → textarea-BEPen5oo.cjs.map} +1 -1
- package/dist/{textarea-S2APrJU-.js → textarea-BI5mw0Vy.js} +1 -1
- package/dist/{textarea-S2APrJU-.js.map → textarea-BI5mw0Vy.js.map} +1 -1
- package/dist/{title-DiaFg5B5.js → title-CtD4oOTk.js} +1 -1
- package/dist/{title-DiaFg5B5.js.map → title-CtD4oOTk.js.map} +1 -1
- package/dist/{title-DMOj1cgG.cjs → title-sD8UJhwY.cjs} +1 -1
- package/dist/{title-DMOj1cgG.cjs.map → title-sD8UJhwY.cjs.map} +1 -1
- package/dist/{toggle-CYHeyOUa.d.ts → toggle-BAcB5uqb.d.ts} +5 -5
- package/dist/{toggle-BLlf4Xgl.d.cts → toggle-BXosB_DV.d.cts} +5 -5
- package/dist/{toggle-BrHo4W70.cjs → toggle-Cicuy0bA.cjs} +1 -1
- package/dist/{toggle-BrHo4W70.cjs.map → toggle-Cicuy0bA.cjs.map} +1 -1
- package/dist/{toggle-DCZ9RTZZ.js → toggle-DZbuAtVZ.js} +1 -1
- package/dist/{toggle-DCZ9RTZZ.js.map → toggle-DZbuAtVZ.js.map} +1 -1
- package/dist/{tooltip-etVeWcFC.d.cts → tooltip-CJK3asOo.d.cts} +6 -6
- package/dist/{tooltip-Bj9r2ENW.d.ts → tooltip-CyEOAlsP.d.ts} +6 -6
- package/dist/{types-CmcNT14g.d.ts → types-BpvTO4OF.d.ts} +1 -1
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- 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.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert.d.cts +6 -6
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.cjs +1 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.js +1 -2
- package/dist/ui/badge.d.cts +4 -4
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.js +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.js +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/calendar.js +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/command.js +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +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 +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 +1 -1
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.cjs +1 -1
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/inputs/search-input.cjs +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.ts +3 -3
- package/dist/ui/inputs/search-input.js +1 -1
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/multi-select.js +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.ts +11 -11
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.cjs +1 -1
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/popover.js +1 -1
- package/dist/ui/progress.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.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.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 +30 -30
- package/dist/ui/sidebar.d.ts +28 -28
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/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 +1 -2
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/tabs.js +1 -2
- 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 +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.js +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.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/package.json +5 -1
- package/dist/ui/avatar.cjs.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/tabs.cjs.map +0 -1
- package/dist/ui/tabs.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime91 from "react/jsx-runtime";
|
|
2
2
|
import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/dropdown-menu.d.ts
|
|
5
5
|
declare function DropdownMenu({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime91.JSX.Element;
|
|
8
8
|
declare function DropdownMenuPortal({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Portal>):
|
|
10
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime91.JSX.Element;
|
|
11
11
|
declare function DropdownMenuTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime91.JSX.Element;
|
|
14
14
|
declare function DropdownMenuContent({
|
|
15
15
|
className,
|
|
16
16
|
sideOffset,
|
|
17
17
|
align,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Content>):
|
|
19
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime91.JSX.Element;
|
|
20
20
|
declare function DropdownMenuGroup({
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Group>):
|
|
22
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime91.JSX.Element;
|
|
23
23
|
declare function DropdownMenuItem({
|
|
24
24
|
className,
|
|
25
25
|
inset,
|
|
@@ -28,39 +28,39 @@ declare function DropdownMenuItem({
|
|
|
28
28
|
}: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
29
29
|
inset?: boolean;
|
|
30
30
|
variant?: 'default' | 'destructive';
|
|
31
|
-
}):
|
|
31
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
32
32
|
declare function DropdownMenuCheckboxItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
checked,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>):
|
|
37
|
+
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime91.JSX.Element;
|
|
38
38
|
declare function DropdownMenuRadioGroup({
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>):
|
|
40
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime91.JSX.Element;
|
|
41
41
|
declare function DropdownMenuRadioItem({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>):
|
|
45
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime91.JSX.Element;
|
|
46
46
|
declare function DropdownMenuLabel({
|
|
47
47
|
className,
|
|
48
48
|
inset,
|
|
49
49
|
...props
|
|
50
50
|
}: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
51
51
|
inset?: boolean;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
53
53
|
declare function DropdownMenuSeparator({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Separator>):
|
|
56
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime91.JSX.Element;
|
|
57
57
|
declare function DropdownMenuShortcut({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<'span'>):
|
|
60
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime91.JSX.Element;
|
|
61
61
|
declare function DropdownMenuSub({
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Sub>):
|
|
63
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime91.JSX.Element;
|
|
64
64
|
declare function DropdownMenuSubTrigger({
|
|
65
65
|
className,
|
|
66
66
|
inset,
|
|
@@ -68,11 +68,11 @@ declare function DropdownMenuSubTrigger({
|
|
|
68
68
|
...props
|
|
69
69
|
}: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
70
70
|
inset?: boolean;
|
|
71
|
-
}):
|
|
71
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
72
72
|
declare function DropdownMenuSubContent({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>):
|
|
75
|
+
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime91.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
78
78
|
//# sourceMappingURL=dropdown-menu.d.cts.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime113 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/dropdown-menu.d.ts
|
|
5
5
|
declare function DropdownMenu({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime113.JSX.Element;
|
|
8
8
|
declare function DropdownMenuPortal({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Portal>):
|
|
10
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime113.JSX.Element;
|
|
11
11
|
declare function DropdownMenuTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime113.JSX.Element;
|
|
14
14
|
declare function DropdownMenuContent({
|
|
15
15
|
className,
|
|
16
16
|
sideOffset,
|
|
17
17
|
align,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Content>):
|
|
19
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime113.JSX.Element;
|
|
20
20
|
declare function DropdownMenuGroup({
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Group>):
|
|
22
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime113.JSX.Element;
|
|
23
23
|
declare function DropdownMenuItem({
|
|
24
24
|
className,
|
|
25
25
|
inset,
|
|
@@ -28,39 +28,39 @@ declare function DropdownMenuItem({
|
|
|
28
28
|
}: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
29
29
|
inset?: boolean;
|
|
30
30
|
variant?: 'default' | 'destructive';
|
|
31
|
-
}):
|
|
31
|
+
}): react_jsx_runtime113.JSX.Element;
|
|
32
32
|
declare function DropdownMenuCheckboxItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
checked,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>):
|
|
37
|
+
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime113.JSX.Element;
|
|
38
38
|
declare function DropdownMenuRadioGroup({
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>):
|
|
40
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime113.JSX.Element;
|
|
41
41
|
declare function DropdownMenuRadioItem({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>):
|
|
45
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime113.JSX.Element;
|
|
46
46
|
declare function DropdownMenuLabel({
|
|
47
47
|
className,
|
|
48
48
|
inset,
|
|
49
49
|
...props
|
|
50
50
|
}: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
51
51
|
inset?: boolean;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime113.JSX.Element;
|
|
53
53
|
declare function DropdownMenuSeparator({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Separator>):
|
|
56
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime113.JSX.Element;
|
|
57
57
|
declare function DropdownMenuShortcut({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<'span'>):
|
|
60
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime113.JSX.Element;
|
|
61
61
|
declare function DropdownMenuSub({
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Sub>):
|
|
63
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime113.JSX.Element;
|
|
64
64
|
declare function DropdownMenuSubTrigger({
|
|
65
65
|
className,
|
|
66
66
|
inset,
|
|
@@ -68,11 +68,11 @@ declare function DropdownMenuSubTrigger({
|
|
|
68
68
|
...props
|
|
69
69
|
}: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
70
70
|
inset?: boolean;
|
|
71
|
-
}):
|
|
71
|
+
}): react_jsx_runtime113.JSX.Element;
|
|
72
72
|
declare function DropdownMenuSubContent({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>):
|
|
75
|
+
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime113.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
78
78
|
//# sourceMappingURL=dropdown-menu.d.ts.map
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{DropdownMenu as e,DropdownMenuCheckboxItem as t,DropdownMenuContent as n,DropdownMenuGroup as r,DropdownMenuItem as i,DropdownMenuLabel as a,DropdownMenuPortal as o,DropdownMenuRadioGroup as s,DropdownMenuRadioItem as c,DropdownMenuSeparator as l,DropdownMenuShortcut as u,DropdownMenuSub as d,DropdownMenuSubContent as f,DropdownMenuSubTrigger as p,DropdownMenuTrigger as m}from"../dropdown-menu-
|
|
1
|
+
"use client";import{DropdownMenu as e,DropdownMenuCheckboxItem as t,DropdownMenuContent as n,DropdownMenuGroup as r,DropdownMenuItem as i,DropdownMenuLabel as a,DropdownMenuPortal as o,DropdownMenuRadioGroup as s,DropdownMenuRadioItem as c,DropdownMenuSeparator as l,DropdownMenuShortcut as u,DropdownMenuSub as d,DropdownMenuSubContent as f,DropdownMenuSubTrigger as p,DropdownMenuTrigger as m}from"../dropdown-menu-Cn96vqMy.js";export{e as DropdownMenu,t as DropdownMenuCheckboxItem,n as DropdownMenuContent,r as DropdownMenuGroup,i as DropdownMenuItem,a as DropdownMenuLabel,o as DropdownMenuPortal,s as DropdownMenuRadioGroup,c as DropdownMenuRadioItem,l as DropdownMenuSeparator,u as DropdownMenuShortcut,d as DropdownMenuSub,f as DropdownMenuSubContent,p as DropdownMenuSubTrigger,m as DropdownMenuTrigger};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../button-119IIVCy.cjs`),n=require(`../progress-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../button-119IIVCy.cjs`),n=require(`../progress-CO0tL2yC.cjs`),r=e.__toESM(require(`lucide-react`)),i=e.__toESM(require(`@customafk/react-toolkit/utils`)),a=e.__toESM(require(`react/jsx-runtime`)),o=e.__toESM(require(`react`)),s=e.__toESM(require(`react-dropzone`)),c=e.__toESM(require(`@customafk/react-toolkit/hooks/useControllableState`)),l=e.__toESM(require(`sonner`));function u(e){let{value:t,onValueChange:n,onUpload:u,progresses:p,accept:m={"image/*":[]},maxSize:h=1024*1024*2,maxFileCount:g=1,multiple:_=!1,disabled:v=!1,showText:y=!0,iconSize:b,className:x,...S}=e,[C,w]=(0,c.useControllableState)({prop:t,onChange:n}),T=o.default.useCallback((e,t)=>{if(!_&&g===1&&e.length>1){l.toast.error(`Cannot upload more than 1 file at a time`);return}if((C?.length??0)+e.length>g){l.toast.error(`Cannot upload more than ${g} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=C?[...C,...n]:n;if(w(r),t.length>0&&t.forEach(({file:e})=>{l.toast.error(`File ${e.name} was rejected`)}),u&&r.length>0&&r.length<=g){let e=r.length>0?`${r.length} files`:`file`;u(r).then(()=>{w([]),(0,l.toast)(`${e} uploaded`)})}},[C,g,_,u,w]);function E(e){if(!C)return;f(C[e])&&URL.revokeObjectURL(C[e].preview);let t=C.filter((t,n)=>n!==e);w(t),n?.(t)}o.default.useEffect(()=>()=>{C&&C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)})},[]);let D=v||(C?.length??0)>=g;return(0,a.jsxs)(`div`,{className:`relative flex w-full flex-col gap-6`,children:[(0,a.jsx)(s.default,{onDrop:T,accept:m,maxSize:h,maxFiles:g,multiple:g>1||_,disabled:D,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>(0,a.jsxs)(`div`,{...e(),className:(0,i.cn)(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,D&&`pointer-events-none opacity-60`,x),...S,children:[(0,a.jsx)(`input`,{...t()}),n?(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(r.Upload,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),(0,a.jsx)(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(r.Upload,{size:b||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),y&&(0,a.jsxs)(`div`,{className:`flex flex-col gap-px`,children:[(0,a.jsxs)(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),(0,a.jsxs)(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,g>1?` ${g===1/0?`multiple`:g}
|
|
2
2
|
files (up to ${(0,i.formatBytes)(h)} each)`:` a file with ${(0,i.formatBytes)(h)}`]})]})]})]})}),C?.length?(0,a.jsxs)(`div`,{className:`h-fit w-full overflow-y-auto`,children:[(0,a.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[(0,a.jsxs)(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[(0,a.jsx)(r.Image,{size:16,"aria-hidden":`true`}),(0,a.jsxs)(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,C.length,`)`]})]}),(0,a.jsxs)(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{C&&(C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)}),w([]),n?.([]))},children:[(0,a.jsx)(r.Trash2,{size:16,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),(0,a.jsx)(`div`,{className:`flex flex-col gap-2.5`,children:C?.map((e,t)=>(0,a.jsx)(d,{file:e,onRemove:()=>E(t),progress:p?.[e.name]},t))})]}):null]})}function d({file:e,progress:o,onRemove:s}){return(0,a.jsxs)(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[(0,a.jsxs)(`div`,{className:`flex flex-1 gap-2.5`,children:[f(e)?(0,a.jsx)(p,{file:e}):null,(0,a.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,a.jsxs)(`div`,{className:`flex flex-col gap-y-0.5`,children:[(0,a.jsx)(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:e.name}),(0,a.jsx)(`p`,{className:`text-text-positive-muted text-xs`,children:(0,i.formatBytes)(e.size)})]}),o?(0,a.jsx)(n.Progress,{value:o}):null]})]}),(0,a.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,a.jsxs)(t.Button,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:s,children:[(0,a.jsx)(r.Trash2,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function f(e){return`preview`in e&&typeof e.preview==`string`}function p({file:e}){return e.type.startsWith(`image/`)?(0,a.jsx)(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):(0,a.jsx)(r.FileText,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}exports.FileUploader=u;
|
|
3
3
|
//# sourceMappingURL=file-uploader.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DropzoneProps } from "react-dropzone";
|
|
4
4
|
|
|
@@ -73,7 +73,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
73
73
|
showText?: boolean;
|
|
74
74
|
iconSize?: number;
|
|
75
75
|
}
|
|
76
|
-
declare function FileUploader(props: FileUploaderProps):
|
|
76
|
+
declare function FileUploader(props: FileUploaderProps): react_jsx_runtime45.JSX.Element;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { FileUploader };
|
|
79
79
|
//# sourceMappingURL=file-uploader.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DropzoneProps } from "react-dropzone";
|
|
4
4
|
|
|
@@ -73,7 +73,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
73
73
|
showText?: boolean;
|
|
74
74
|
iconSize?: number;
|
|
75
75
|
}
|
|
76
|
-
declare function FileUploader(props: FileUploaderProps):
|
|
76
|
+
declare function FileUploader(props: FileUploaderProps): react_jsx_runtime75.JSX.Element;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { FileUploader };
|
|
79
79
|
//# sourceMappingURL=file-uploader.d.ts.map
|
package/dist/ui/file-uploader.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use client";import{Button as e}from"../button-CvQQTSka.js";import{Progress as t}from"../progress-
|
|
1
|
+
"use client";import{Button as e}from"../button-CvQQTSka.js";import{Progress as t}from"../progress-CBZMOdvp.js";import{FileText as n,Image as r,Trash2 as i,Upload as a}from"lucide-react";import{cn as o,formatBytes as s}from"@customafk/react-toolkit/utils";import{jsx as c,jsxs as l}from"react/jsx-runtime";import u from"react";import d from"react-dropzone";import{useControllableState as f}from"@customafk/react-toolkit/hooks/useControllableState";import{toast as p}from"sonner";function m(e){let{value:t,onValueChange:n,onUpload:m,progresses:_,accept:v={"image/*":[]},maxSize:y=1024*1024*2,maxFileCount:b=1,multiple:x=!1,disabled:S=!1,showText:C=!0,iconSize:w,className:T,...E}=e,[D,O]=f({prop:t,onChange:n}),k=u.useCallback((e,t)=>{if(!x&&b===1&&e.length>1){p.error(`Cannot upload more than 1 file at a time`);return}if((D?.length??0)+e.length>b){p.error(`Cannot upload more than ${b} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=D?[...D,...n]:n;if(O(r),t.length>0&&t.forEach(({file:e})=>{p.error(`File ${e.name} was rejected`)}),m&&r.length>0&&r.length<=b){let e=r.length>0?`${r.length} files`:`file`;m(r).then(()=>{O([]),p(`${e} uploaded`)})}},[D,b,x,m,O]);function A(e){if(!D)return;g(D[e])&&URL.revokeObjectURL(D[e].preview);let t=D.filter((t,n)=>n!==e);O(t),n?.(t)}u.useEffect(()=>()=>{D&&D.forEach(e=>{g(e)&&URL.revokeObjectURL(e.preview)})},[]);let j=S||(D?.length??0)>=b;return l(`div`,{className:`relative flex w-full flex-col gap-6`,children:[c(d,{onDrop:k,accept:v,maxSize:y,maxFiles:b,multiple:b>1||x,disabled:j,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>l(`div`,{...e(),className:o(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,j&&`pointer-events-none opacity-60`,T),...E,children:[c(`input`,{...t()}),n?l(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[c(`div`,{className:`rounded-full border border-dashed p-3`,children:c(a,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),c(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):l(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[c(`div`,{className:`rounded-full border border-dashed p-3`,children:c(a,{size:w||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),C&&l(`div`,{className:`flex flex-col gap-px`,children:[l(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),l(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,b>1?` ${b===1/0?`multiple`:b}
|
|
2
2
|
files (up to ${s(y)} each)`:` a file with ${s(y)}`]})]})]})]})}),D?.length?l(`div`,{className:`h-fit w-full overflow-y-auto`,children:[l(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[l(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[c(r,{size:16,"aria-hidden":`true`}),l(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,D.length,`)`]})]}),l(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{D&&(D.forEach(e=>{g(e)&&URL.revokeObjectURL(e.preview)}),O([]),n?.([]))},children:[c(i,{size:16,"aria-hidden":`true`}),c(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),c(`div`,{className:`flex flex-col gap-2.5`,children:D?.map((e,t)=>c(h,{file:e,onRemove:()=>A(t),progress:_?.[e.name]},t))})]}):null]})}function h({file:n,progress:r,onRemove:a}){return l(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[l(`div`,{className:`flex flex-1 gap-2.5`,children:[g(n)?c(_,{file:n}):null,l(`div`,{className:`flex w-full flex-col gap-2`,children:[l(`div`,{className:`flex flex-col gap-y-0.5`,children:[c(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:n.name}),c(`p`,{className:`text-text-positive-muted text-xs`,children:s(n.size)})]}),r?c(t,{value:r}):null]})]}),c(`div`,{className:`flex items-center gap-2`,children:l(e,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:a,children:[c(i,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),c(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function g(e){return`preview`in e&&typeof e.preview==`string`}function _({file:e}){return e.type.startsWith(`image/`)?c(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):c(n,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}export{m as FileUploader};
|
|
3
3
|
//# sourceMappingURL=file-uploader.js.map
|
package/dist/ui/form.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Label, Slot } from "radix-ui";
|
|
4
4
|
import * as react_hook_form0 from "react-hook-form";
|
|
@@ -8,7 +8,7 @@ import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
|
8
8
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
9
9
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
10
10
|
...props
|
|
11
|
-
}: ControllerProps<TFieldValues, TName>) =>
|
|
11
|
+
}: ControllerProps<TFieldValues, TName>) => react_jsx_runtime46.JSX.Element;
|
|
12
12
|
declare const useFormField: () => {
|
|
13
13
|
invalid: boolean;
|
|
14
14
|
isDirty: boolean;
|
|
@@ -26,23 +26,23 @@ declare const useFormField: () => {
|
|
|
26
26
|
declare function FormItem({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime46.JSX.Element;
|
|
30
30
|
declare function FormLabel({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Label.Root>):
|
|
33
|
+
}: React.ComponentProps<typeof Label.Root>): react_jsx_runtime46.JSX.Element;
|
|
34
34
|
declare function FormControl({
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof Slot.Slot>):
|
|
36
|
+
}: React.ComponentProps<typeof Slot.Slot>): react_jsx_runtime46.JSX.Element;
|
|
37
37
|
declare function FormDescription({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<'p'>):
|
|
40
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime46.JSX.Element;
|
|
41
41
|
declare function FormMessage({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<'p'>):
|
|
45
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime46.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
48
48
|
//# sourceMappingURL=form.d.cts.map
|
package/dist/ui/form.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Label, Slot } from "radix-ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import * as react_hook_form0 from "react-hook-form";
|
|
5
5
|
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
@@ -8,7 +8,7 @@ import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
|
8
8
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
9
9
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
10
10
|
...props
|
|
11
|
-
}: ControllerProps<TFieldValues, TName>) =>
|
|
11
|
+
}: ControllerProps<TFieldValues, TName>) => react_jsx_runtime82.JSX.Element;
|
|
12
12
|
declare const useFormField: () => {
|
|
13
13
|
invalid: boolean;
|
|
14
14
|
isDirty: boolean;
|
|
@@ -26,23 +26,23 @@ declare const useFormField: () => {
|
|
|
26
26
|
declare function FormItem({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime82.JSX.Element;
|
|
30
30
|
declare function FormLabel({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Label.Root>):
|
|
33
|
+
}: React.ComponentProps<typeof Label.Root>): react_jsx_runtime82.JSX.Element;
|
|
34
34
|
declare function FormControl({
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof Slot.Slot>):
|
|
36
|
+
}: React.ComponentProps<typeof Slot.Slot>): react_jsx_runtime82.JSX.Element;
|
|
37
37
|
declare function FormDescription({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<'p'>):
|
|
40
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime82.JSX.Element;
|
|
41
41
|
declare function FormMessage({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<'p'>):
|
|
45
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime82.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
48
48
|
//# sourceMappingURL=form.d.ts.map
|
package/dist/ui/hover-card.d.cts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { HoverCard as HoverCard$1 } from "radix-ui";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/hover-card.d.ts
|
|
6
6
|
declare function HoverCard({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof HoverCard$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime66.JSX.Element;
|
|
9
9
|
declare function HoverCardTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof HoverCard$1.Trigger>):
|
|
11
|
+
}: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime66.JSX.Element;
|
|
12
12
|
declare function HoverCardContent({
|
|
13
13
|
className,
|
|
14
14
|
align,
|
|
15
15
|
sideOffset,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof HoverCard$1.Content>):
|
|
17
|
+
}: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime66.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
20
20
|
//# sourceMappingURL=hover-card.d.cts.map
|
package/dist/ui/hover-card.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { HoverCard as HoverCard$1 } from "radix-ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime142 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/hover-card.d.ts
|
|
6
6
|
declare function HoverCard({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof HoverCard$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime142.JSX.Element;
|
|
9
9
|
declare function HoverCardTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof HoverCard$1.Trigger>):
|
|
11
|
+
}: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime142.JSX.Element;
|
|
12
12
|
declare function HoverCardContent({
|
|
13
13
|
className,
|
|
14
14
|
align,
|
|
15
15
|
sideOffset,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof HoverCard$1.Content>):
|
|
17
|
+
}: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime142.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
20
20
|
//# sourceMappingURL=hover-card.d.ts.map
|
package/dist/ui/input-otp.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { OTPInput } from "input-otp";
|
|
4
4
|
|
|
@@ -9,21 +9,21 @@ declare function InputOTP({
|
|
|
9
9
|
...props
|
|
10
10
|
}: React.ComponentProps<typeof OTPInput> & {
|
|
11
11
|
containerClassName?: string;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime25.JSX.Element;
|
|
13
13
|
declare function InputOTPGroup({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<'div'>):
|
|
16
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime25.JSX.Element;
|
|
17
17
|
declare function InputOTPSlot({
|
|
18
18
|
index,
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
21
|
}: React.ComponentProps<'div'> & {
|
|
22
22
|
index: number;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime25.JSX.Element;
|
|
24
24
|
declare function InputOTPSeparator({
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<'div'>):
|
|
26
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime25.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
29
29
|
//# sourceMappingURL=input-otp.d.cts.map
|
package/dist/ui/input-otp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { OTPInput } from "input-otp";
|
|
4
4
|
|
|
@@ -9,21 +9,21 @@ declare function InputOTP({
|
|
|
9
9
|
...props
|
|
10
10
|
}: React.ComponentProps<typeof OTPInput> & {
|
|
11
11
|
containerClassName?: string;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime77.JSX.Element;
|
|
13
13
|
declare function InputOTPGroup({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<'div'>):
|
|
16
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime77.JSX.Element;
|
|
17
17
|
declare function InputOTPSlot({
|
|
18
18
|
index,
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
21
|
}: React.ComponentProps<'div'> & {
|
|
22
22
|
index: number;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime77.JSX.Element;
|
|
24
24
|
declare function InputOTPSeparator({
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<'div'>):
|
|
26
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime77.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
29
29
|
//# sourceMappingURL=input-otp.d.ts.map
|
package/dist/ui/input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../input-
|
|
1
|
+
"use client";const e=require(`../input-BxXRqpc1.cjs`);exports.Input=e.Input;
|
package/dist/ui/input.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Input } from "../input-
|
|
1
|
+
import { Input } from "../input-CBmfFkSA.cjs";
|
|
2
2
|
export { Input };
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Input } from "../input-
|
|
1
|
+
import { Input } from "../input-B3A9FFIr.js";
|
|
2
2
|
export { Input };
|
package/dist/ui/input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Input as e}from"../input-
|
|
1
|
+
"use client";import{Input as e}from"../input-B0Q1kBoj.js";export{e as Input};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../../input-
|
|
1
|
+
require(`../../input-BxXRqpc1.cjs`);const e=require(`../../search-input-BXAnx2q9.cjs`);exports.SearchInput=e.SearchInput;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Input } from "../../input-
|
|
2
|
-
import * as
|
|
1
|
+
import { Input } from "../../input-CBmfFkSA.cjs";
|
|
2
|
+
import * as react_jsx_runtime139 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/inputs/search-input.d.ts
|
|
5
5
|
type Props = React.ComponentPropsWithoutRef<typeof Input>;
|
|
6
6
|
declare const SearchInput: ({
|
|
7
7
|
className,
|
|
8
8
|
...rest
|
|
9
|
-
}: Props) =>
|
|
9
|
+
}: Props) => react_jsx_runtime139.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SearchInput };
|
|
12
12
|
//# sourceMappingURL=search-input.d.cts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Input } from "../../input-
|
|
2
|
-
import * as
|
|
1
|
+
import { Input } from "../../input-B3A9FFIr.js";
|
|
2
|
+
import * as react_jsx_runtime231 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/inputs/search-input.d.ts
|
|
5
5
|
type Props = React.ComponentPropsWithoutRef<typeof Input>;
|
|
6
6
|
declare const SearchInput: ({
|
|
7
7
|
className,
|
|
8
8
|
...rest
|
|
9
|
-
}: Props) =>
|
|
9
|
+
}: Props) => react_jsx_runtime231.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SearchInput };
|
|
12
12
|
//# sourceMappingURL=search-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../input-
|
|
1
|
+
import"../../input-B0Q1kBoj.js";import{SearchInput as e}from"../../search-input-BxNMZVG4.js";export{e as SearchInput};
|
package/dist/ui/label.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime126 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Label as Label$1 } from "radix-ui";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { Label as Label$1 } from "radix-ui";
|
|
|
6
6
|
declare function Label({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Label$1.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime126.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Label };
|
|
12
12
|
//# sourceMappingURL=label.d.cts.map
|
package/dist/ui/label.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Label as Label$1 } from "radix-ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime203 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/label.d.ts
|
|
6
6
|
declare function Label({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Label$1.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime203.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Label };
|
|
12
12
|
//# sourceMappingURL=label.d.ts.map
|