@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
package/dist/ui/sidebar.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button } from "../button-
|
|
2
|
-
import { Input } from "../input-
|
|
3
|
-
import { Separator } from "../separator-
|
|
4
|
-
import { TooltipContent } from "../tooltip-
|
|
1
|
+
import { Button } from "../button-B_r8XsfH.js";
|
|
2
|
+
import { Input } from "../input-B3A9FFIr.js";
|
|
3
|
+
import { Separator } from "../separator-Cr_2vFm6.js";
|
|
4
|
+
import { TooltipContent } from "../tooltip-CyEOAlsP.js";
|
|
5
5
|
import { VariantProps } from "class-variance-authority";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime204 from "react/jsx-runtime";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
9
9
|
|
|
@@ -30,7 +30,7 @@ declare function SidebarProvider({
|
|
|
30
30
|
defaultOpen?: boolean;
|
|
31
31
|
open?: boolean;
|
|
32
32
|
onOpenChange?: (open: boolean) => void;
|
|
33
|
-
}):
|
|
33
|
+
}): react_jsx_runtime204.JSX.Element;
|
|
34
34
|
declare function Sidebar({
|
|
35
35
|
side,
|
|
36
36
|
variant,
|
|
@@ -42,71 +42,71 @@ declare function Sidebar({
|
|
|
42
42
|
side?: 'left' | 'right';
|
|
43
43
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
44
44
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
45
|
-
}):
|
|
45
|
+
}): react_jsx_runtime204.JSX.Element;
|
|
46
46
|
declare function SidebarTrigger({
|
|
47
47
|
className,
|
|
48
48
|
onClick,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<typeof Button>):
|
|
50
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime204.JSX.Element;
|
|
51
51
|
declare function SidebarRail({
|
|
52
52
|
className,
|
|
53
53
|
...props
|
|
54
|
-
}: React.ComponentProps<'button'>):
|
|
54
|
+
}: React.ComponentProps<'button'>): react_jsx_runtime204.JSX.Element;
|
|
55
55
|
declare function SidebarInset({
|
|
56
56
|
className,
|
|
57
57
|
children,
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<'main'>):
|
|
59
|
+
}: React.ComponentProps<'main'>): react_jsx_runtime204.JSX.Element;
|
|
60
60
|
declare function SidebarInput({
|
|
61
61
|
className,
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof Input>):
|
|
63
|
+
}: React.ComponentProps<typeof Input>): react_jsx_runtime204.JSX.Element;
|
|
64
64
|
declare function SidebarHeader({
|
|
65
65
|
className,
|
|
66
66
|
...props
|
|
67
|
-
}: React.ComponentProps<'div'>):
|
|
67
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime204.JSX.Element;
|
|
68
68
|
declare function SidebarFooter({
|
|
69
69
|
className,
|
|
70
70
|
...props
|
|
71
|
-
}: React.ComponentProps<'div'>):
|
|
71
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime204.JSX.Element;
|
|
72
72
|
declare function SidebarSeparator({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof Separator>):
|
|
75
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime204.JSX.Element;
|
|
76
76
|
declare function SidebarContent({
|
|
77
77
|
className,
|
|
78
78
|
...props
|
|
79
|
-
}: React.ComponentProps<'div'>):
|
|
79
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime204.JSX.Element;
|
|
80
80
|
declare function SidebarGroup({
|
|
81
81
|
className,
|
|
82
82
|
...props
|
|
83
|
-
}: React.ComponentProps<'div'>):
|
|
83
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime204.JSX.Element;
|
|
84
84
|
declare function SidebarGroupLabel({
|
|
85
85
|
className,
|
|
86
86
|
asChild,
|
|
87
87
|
...props
|
|
88
88
|
}: React.ComponentProps<'div'> & {
|
|
89
89
|
asChild?: boolean;
|
|
90
|
-
}):
|
|
90
|
+
}): react_jsx_runtime204.JSX.Element;
|
|
91
91
|
declare function SidebarGroupAction({
|
|
92
92
|
className,
|
|
93
93
|
asChild,
|
|
94
94
|
...props
|
|
95
95
|
}: React.ComponentProps<'button'> & {
|
|
96
96
|
asChild?: boolean;
|
|
97
|
-
}):
|
|
97
|
+
}): react_jsx_runtime204.JSX.Element;
|
|
98
98
|
declare function SidebarGroupContent({
|
|
99
99
|
className,
|
|
100
100
|
...props
|
|
101
|
-
}: React.ComponentProps<'div'>):
|
|
101
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime204.JSX.Element;
|
|
102
102
|
declare function SidebarMenu({
|
|
103
103
|
className,
|
|
104
104
|
...props
|
|
105
|
-
}: React.ComponentProps<'ul'>):
|
|
105
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime204.JSX.Element;
|
|
106
106
|
declare function SidebarMenuItem({
|
|
107
107
|
className,
|
|
108
108
|
...props
|
|
109
|
-
}: React.ComponentProps<'li'>):
|
|
109
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime204.JSX.Element;
|
|
110
110
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
111
111
|
variant?: "default" | "outline" | null | undefined;
|
|
112
112
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
@@ -123,7 +123,7 @@ declare function SidebarMenuButton({
|
|
|
123
123
|
asChild?: boolean;
|
|
124
124
|
isActive?: boolean;
|
|
125
125
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
126
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
126
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime204.JSX.Element;
|
|
127
127
|
declare function SidebarMenuAction({
|
|
128
128
|
className,
|
|
129
129
|
asChild,
|
|
@@ -132,26 +132,26 @@ declare function SidebarMenuAction({
|
|
|
132
132
|
}: React.ComponentProps<'button'> & {
|
|
133
133
|
asChild?: boolean;
|
|
134
134
|
showOnHover?: boolean;
|
|
135
|
-
}):
|
|
135
|
+
}): react_jsx_runtime204.JSX.Element;
|
|
136
136
|
declare function SidebarMenuBadge({
|
|
137
137
|
className,
|
|
138
138
|
...props
|
|
139
|
-
}: React.ComponentProps<'div'>):
|
|
139
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime204.JSX.Element;
|
|
140
140
|
declare function SidebarMenuSkeleton({
|
|
141
141
|
className,
|
|
142
142
|
showIcon,
|
|
143
143
|
...props
|
|
144
144
|
}: React.ComponentProps<'div'> & {
|
|
145
145
|
showIcon?: boolean;
|
|
146
|
-
}):
|
|
146
|
+
}): react_jsx_runtime204.JSX.Element;
|
|
147
147
|
declare function SidebarMenuSub({
|
|
148
148
|
className,
|
|
149
149
|
...props
|
|
150
|
-
}: React.ComponentProps<'ul'>):
|
|
150
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime204.JSX.Element;
|
|
151
151
|
declare function SidebarMenuSubItem({
|
|
152
152
|
className,
|
|
153
153
|
...props
|
|
154
|
-
}: React.ComponentProps<'li'>):
|
|
154
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime204.JSX.Element;
|
|
155
155
|
declare function SidebarMenuSubButton({
|
|
156
156
|
asChild,
|
|
157
157
|
size,
|
|
@@ -162,7 +162,7 @@ declare function SidebarMenuSubButton({
|
|
|
162
162
|
asChild?: boolean;
|
|
163
163
|
size?: 'sm' | 'md';
|
|
164
164
|
isActive?: boolean;
|
|
165
|
-
}):
|
|
165
|
+
}): react_jsx_runtime204.JSX.Element;
|
|
166
166
|
//#endregion
|
|
167
167
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
168
168
|
//# sourceMappingURL=sidebar.d.ts.map
|
package/dist/ui/sidebar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{Button as e}from"../button-CvQQTSka.js";import{Skeleton as t}from"../skeleton-DFF0w4en.js";import{Tooltip as n,TooltipContent as r,TooltipProvider as i,TooltipTrigger as a}from"../tooltip-CN8vvmWA.js";import{Input as o}from"../input-i5Nm0R1X.js";import{Separator as s}from"../separator-CxCq7NYP.js";import{Sheet as c,SheetContent as l,SheetDescription as u,SheetHeader as d,SheetTitle as f}from"../sheet-amjZQ7nX.js";import{MenuIcon as p}from"lucide-react";import{cn as m}from"@customafk/react-toolkit/utils";import{cva as h}from"class-variance-authority";import{Slot as g}from"radix-ui";import{jsx as _,jsxs as v}from"react/jsx-runtime";import y from"react";import{useIsMobile as b}from"@customafk/react-toolkit/hooks/useMobile";const x=y.createContext(null);function S(){let e=y.useContext(x);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function C({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=b(),[l,u]=y.useState(!1),[d,f]=y.useState(e),p=t??d,h=y.useCallback(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,p]),g=y.useCallback(()=>c?u(e=>!e):h(e=>!e),[c,h,u]);y.useEffect(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g]);let v=p?`expanded`:`collapsed`,S=y.useMemo(()=>({state:v,isMobile:c,toggleSidebar:g,open:p,setOpen:h,openMobile:l,setOpenMobile:u}),[v,p,h,c,l,u,g]);return _(x.Provider,{value:S,children:_(i,{delayDuration:0,children:_(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:m(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex min-h-svh w-full`,r),...s,children:o})})})}function w({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:p,setOpenMobile:h}=S();return n===`none`?_(`aside`,{"data-slot":`sidebar`,className:m(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):o?_(c,{open:p,onOpenChange:h,...a,children:v(l,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},side:e,children:[v(d,{className:`sr-only`,children:[_(f,{children:`Sidebar`}),_(u,{children:`Displays the mobile sidebar.`})]}),_(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):v(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[_(`div`,{"data-slot":`sidebar-gap`,className:m(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),_(`div`,{"data-slot":`sidebar-container`,className:m(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100svh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:_(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:m(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function T({className:t,onClick:n,...r}){let{toggleSidebar:i}=S();return v(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:m(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[_(p,{className:`!size-6`}),_(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function E({className:e,...t}){let{toggleSidebar:n}=S();return _(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:m(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function D({className:e,children:t,...n}){return v(`main`,{"data-slot":`sidebar-inset`,className:m(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[_(`div`,{className:`h-14 w-full`}),_(`div`,{className:m(`flex-1 inset-shadow-sm`),children:t})]})}function O({className:e,...t}){return _(o,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:m(`bg-background h-8 w-full shadow-none`,e),...t})}function k({className:e,...t}){return _(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:m(`flex flex-col gap-2 p-2`,e),...t})}function A({className:e,...t}){return _(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:m(`flex flex-col gap-2 p-2`,e),...t})}function j({className:e,...t}){return _(s,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:m(`bg-sidebar-border mx-2 w-auto`,e),...t})}function M({className:e,...t}){return _(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:m(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function N({className:e,...t}){return _(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:m(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function P({className:e,asChild:t=!1,...n}){let r=t?g.Slot:`div`;return _(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:m(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function F({className:e,asChild:t=!1,...n}){let r=t?g.Slot:`button`;return _(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:m(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function I({className:e,...t}){return _(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:m(`w-full text-sm`,e),...t})}function L({className:e,...t}){return _(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:m(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function R({className:e,...t}){return _(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:m(`group/menu-item relative`,e),...t})}const z=h([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-accent-foreground`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`],{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function B({asChild:e=!1,isActive:t=!1,variant:i=`default`,size:o=`default`,tooltip:s,className:c,...l}){let u=e?g.Slot:`button`,{isMobile:d,state:f}=S(),p=_(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":t,className:m(z({variant:i,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),v(n,{children:[_(a,{asChild:!0,children:p}),_(r,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...s})]})):p}function V({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?g.Slot:`button`;return _(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:m(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function H({className:e,...t}){return _(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:m(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function U({className:e,showIcon:n=!1,...r}){let i=y.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:m(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&_(t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),_(t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function W({className:e,...t}){return _(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:m(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function G({className:e,...t}){return _(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:m(`group/menu-sub-item relative`,e),...t})}function K({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?g.Slot:`a`;return _(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:m(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}export{w as Sidebar,M as SidebarContent,A as SidebarFooter,N as SidebarGroup,F as SidebarGroupAction,I as SidebarGroupContent,P as SidebarGroupLabel,k as SidebarHeader,O as SidebarInput,D as SidebarInset,L as SidebarMenu,V as SidebarMenuAction,H as SidebarMenuBadge,B as SidebarMenuButton,R as SidebarMenuItem,U as SidebarMenuSkeleton,W as SidebarMenuSub,K as SidebarMenuSubButton,G as SidebarMenuSubItem,C as SidebarProvider,E as SidebarRail,j as SidebarSeparator,T as SidebarTrigger,S as useSidebar};
|
|
1
|
+
"use client";import{Button as e}from"../button-CvQQTSka.js";import{Skeleton as t}from"../skeleton-DFF0w4en.js";import{Tooltip as n,TooltipContent as r,TooltipProvider as i,TooltipTrigger as a}from"../tooltip-CN8vvmWA.js";import{Input as o}from"../input-B0Q1kBoj.js";import{Separator as s}from"../separator-DW2PaiUK.js";import{Sheet as c,SheetContent as l,SheetDescription as u,SheetHeader as d,SheetTitle as f}from"../sheet-BumlzKcW.js";import{MenuIcon as p}from"lucide-react";import{cn as m}from"@customafk/react-toolkit/utils";import{cva as h}from"class-variance-authority";import{Slot as g}from"radix-ui";import{jsx as _,jsxs as v}from"react/jsx-runtime";import y from"react";import{useIsMobile as b}from"@customafk/react-toolkit/hooks/useMobile";const x=y.createContext(null);function S(){let e=y.useContext(x);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function C({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=b(),[l,u]=y.useState(!1),[d,f]=y.useState(e),p=t??d,h=y.useCallback(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,p]),g=y.useCallback(()=>c?u(e=>!e):h(e=>!e),[c,h,u]);y.useEffect(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g]);let v=p?`expanded`:`collapsed`,S=y.useMemo(()=>({state:v,isMobile:c,toggleSidebar:g,open:p,setOpen:h,openMobile:l,setOpenMobile:u}),[v,p,h,c,l,u,g]);return _(x.Provider,{value:S,children:_(i,{delayDuration:0,children:_(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:m(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex min-h-svh w-full`,r),...s,children:o})})})}function w({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:p,setOpenMobile:h}=S();return n===`none`?_(`aside`,{"data-slot":`sidebar`,className:m(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):o?_(c,{open:p,onOpenChange:h,...a,children:v(l,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},side:e,children:[v(d,{className:`sr-only`,children:[_(f,{children:`Sidebar`}),_(u,{children:`Displays the mobile sidebar.`})]}),_(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):v(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[_(`div`,{"data-slot":`sidebar-gap`,className:m(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),_(`div`,{"data-slot":`sidebar-container`,className:m(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100svh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:_(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:m(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function T({className:t,onClick:n,...r}){let{toggleSidebar:i}=S();return v(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:m(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[_(p,{className:`!size-6`}),_(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function E({className:e,...t}){let{toggleSidebar:n}=S();return _(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:m(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function D({className:e,children:t,...n}){return v(`main`,{"data-slot":`sidebar-inset`,className:m(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[_(`div`,{className:`h-14 w-full`}),_(`div`,{className:m(`flex-1 inset-shadow-sm`),children:t})]})}function O({className:e,...t}){return _(o,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:m(`bg-background h-8 w-full shadow-none`,e),...t})}function k({className:e,...t}){return _(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:m(`flex flex-col gap-2 p-2`,e),...t})}function A({className:e,...t}){return _(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:m(`flex flex-col gap-2 p-2`,e),...t})}function j({className:e,...t}){return _(s,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:m(`bg-sidebar-border mx-2 w-auto`,e),...t})}function M({className:e,...t}){return _(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:m(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function N({className:e,...t}){return _(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:m(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function P({className:e,asChild:t=!1,...n}){let r=t?g.Slot:`div`;return _(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:m(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function F({className:e,asChild:t=!1,...n}){let r=t?g.Slot:`button`;return _(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:m(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function I({className:e,...t}){return _(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:m(`w-full text-sm`,e),...t})}function L({className:e,...t}){return _(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:m(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function R({className:e,...t}){return _(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:m(`group/menu-item relative`,e),...t})}const z=h([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-accent-foreground`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`],{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function B({asChild:e=!1,isActive:t=!1,variant:i=`default`,size:o=`default`,tooltip:s,className:c,...l}){let u=e?g.Slot:`button`,{isMobile:d,state:f}=S(),p=_(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":t,className:m(z({variant:i,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),v(n,{children:[_(a,{asChild:!0,children:p}),_(r,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...s})]})):p}function V({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?g.Slot:`button`;return _(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:m(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function H({className:e,...t}){return _(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:m(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function U({className:e,showIcon:n=!1,...r}){let i=y.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:m(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&_(t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),_(t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function W({className:e,...t}){return _(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:m(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function G({className:e,...t}){return _(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:m(`group/menu-sub-item relative`,e),...t})}function K({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?g.Slot:`a`;return _(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:m(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}export{w as Sidebar,M as SidebarContent,A as SidebarFooter,N as SidebarGroup,F as SidebarGroupAction,I as SidebarGroupContent,P as SidebarGroupLabel,k as SidebarHeader,O as SidebarInput,D as SidebarInset,L as SidebarMenu,V as SidebarMenuAction,H as SidebarMenuBadge,B as SidebarMenuButton,R as SidebarMenuItem,U as SidebarMenuSkeleton,W as SidebarMenuSub,K as SidebarMenuSubButton,G as SidebarMenuSubItem,C as SidebarProvider,E as SidebarRail,j as SidebarSeparator,T as SidebarTrigger,S as useSidebar};
|
|
2
2
|
//# sourceMappingURL=sidebar.js.map
|
package/dist/ui/skeleton.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime118 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'div'>):
|
|
7
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime118.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Skeleton };
|
|
10
10
|
//# sourceMappingURL=skeleton.d.cts.map
|
package/dist/ui/skeleton.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime202 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'div'>):
|
|
7
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime202.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Skeleton };
|
|
10
10
|
//# sourceMappingURL=skeleton.d.ts.map
|
package/dist/ui/slider.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime117 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Slider as Slider$1 } from "radix-ui";
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ declare function Slider({
|
|
|
10
10
|
min,
|
|
11
11
|
max,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Slider$1.Root>):
|
|
13
|
+
}: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime117.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Slider };
|
|
16
16
|
//# sourceMappingURL=slider.d.cts.map
|
package/dist/ui/slider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slider as Slider$1 } from "radix-ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime193 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/slider.d.ts
|
|
@@ -10,7 +10,7 @@ declare function Slider({
|
|
|
10
10
|
min,
|
|
11
11
|
max,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Slider$1.Root>):
|
|
13
|
+
}: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime193.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Slider };
|
|
16
16
|
//# sourceMappingURL=slider.d.ts.map
|
package/dist/ui/sonner.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime140 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/sonner.d.ts
|
|
4
|
-
declare const Toaster: () =>
|
|
4
|
+
declare const Toaster: () => react_jsx_runtime140.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Toaster };
|
|
7
7
|
//# sourceMappingURL=sonner.d.cts.map
|
package/dist/ui/sonner.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime138 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/sonner.d.ts
|
|
4
|
-
declare const Toaster: () =>
|
|
4
|
+
declare const Toaster: () => react_jsx_runtime138.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Toaster };
|
|
7
7
|
//# sourceMappingURL=sonner.d.ts.map
|
package/dist/ui/switch.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../switch-
|
|
1
|
+
"use client";const e=require(`../switch-BCOPCdXH.cjs`);exports.Switch=e.Switch;
|
package/dist/ui/switch.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime162 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Switch as Switch$1 } from "radix-ui";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { Switch as Switch$1 } from "radix-ui";
|
|
|
6
6
|
declare function Switch({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Switch$1.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime162.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch };
|
|
12
12
|
//# sourceMappingURL=switch.d.cts.map
|
package/dist/ui/switch.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Switch as Switch$1 } from "radix-ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime232 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/switch.d.ts
|
|
6
6
|
declare function Switch({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Switch$1.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime232.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch };
|
|
12
12
|
//# sourceMappingURL=switch.d.ts.map
|
package/dist/ui/switch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Switch as e}from"../switch-
|
|
1
|
+
"use client";import{Switch as e}from"../switch-32ewlnXt.js";export{e as Switch};
|
package/dist/ui/table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";require(`../scroll-area-
|
|
1
|
+
"use client";require(`../scroll-area-qPdEy4lg.cjs`);const e=require(`../table-6BtDTiv_.cjs`);exports.Table=e.Table,exports.TableBody=e.TableBody,exports.TableCaption=e.TableCaption,exports.TableCell=e.TableCell,exports.TableFooter=e.TableFooter,exports.TableHead=e.TableHead,exports.TableHeader=e.TableHeader,exports.TableRow=e.TableRow;
|
package/dist/ui/table.d.cts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime127 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/table.d.ts
|
|
5
5
|
declare function Table({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<'table'>):
|
|
8
|
+
}: React.ComponentProps<'table'>): react_jsx_runtime127.JSX.Element;
|
|
9
9
|
declare function TableHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<'thead'>):
|
|
12
|
+
}: React.ComponentProps<'thead'>): react_jsx_runtime127.JSX.Element;
|
|
13
13
|
declare function TableBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<'tbody'>):
|
|
16
|
+
}: React.ComponentProps<'tbody'>): react_jsx_runtime127.JSX.Element;
|
|
17
17
|
declare function TableFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<'tfoot'>):
|
|
20
|
+
}: React.ComponentProps<'tfoot'>): react_jsx_runtime127.JSX.Element;
|
|
21
21
|
declare function TableRow({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'tr'>):
|
|
24
|
+
}: React.ComponentProps<'tr'>): react_jsx_runtime127.JSX.Element;
|
|
25
25
|
declare function TableHead({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'th'>):
|
|
28
|
+
}: React.ComponentProps<'th'>): react_jsx_runtime127.JSX.Element;
|
|
29
29
|
declare function TableCell({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'td'>):
|
|
32
|
+
}: React.ComponentProps<'td'>): react_jsx_runtime127.JSX.Element;
|
|
33
33
|
declare function TableCaption({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<'caption'>):
|
|
36
|
+
}: React.ComponentProps<'caption'>): react_jsx_runtime127.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
39
39
|
//# sourceMappingURL=table.d.cts.map
|
package/dist/ui/table.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime194 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/table.d.ts
|
|
5
5
|
declare function Table({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<'table'>):
|
|
8
|
+
}: React.ComponentProps<'table'>): react_jsx_runtime194.JSX.Element;
|
|
9
9
|
declare function TableHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<'thead'>):
|
|
12
|
+
}: React.ComponentProps<'thead'>): react_jsx_runtime194.JSX.Element;
|
|
13
13
|
declare function TableBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<'tbody'>):
|
|
16
|
+
}: React.ComponentProps<'tbody'>): react_jsx_runtime194.JSX.Element;
|
|
17
17
|
declare function TableFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<'tfoot'>):
|
|
20
|
+
}: React.ComponentProps<'tfoot'>): react_jsx_runtime194.JSX.Element;
|
|
21
21
|
declare function TableRow({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'tr'>):
|
|
24
|
+
}: React.ComponentProps<'tr'>): react_jsx_runtime194.JSX.Element;
|
|
25
25
|
declare function TableHead({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'th'>):
|
|
28
|
+
}: React.ComponentProps<'th'>): react_jsx_runtime194.JSX.Element;
|
|
29
29
|
declare function TableCell({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'td'>):
|
|
32
|
+
}: React.ComponentProps<'td'>): react_jsx_runtime194.JSX.Element;
|
|
33
33
|
declare function TableCaption({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<'caption'>):
|
|
36
|
+
}: React.ComponentProps<'caption'>): react_jsx_runtime194.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
39
39
|
//# sourceMappingURL=table.d.ts.map
|
package/dist/ui/table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"../scroll-area-
|
|
1
|
+
"use client";import"../scroll-area-C4Mg89Qh.js";import{Table as e,TableBody as t,TableCaption as n,TableCell as r,TableFooter as i,TableHead as a,TableHeader as o,TableRow as s}from"../table-CachGeLA.js";export{e as Table,t as TableBody,n as TableCaption,r as TableCell,i as TableFooter,a as TableHead,o as TableHeader,s as TableRow};
|
package/dist/ui/tabs.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../
|
|
2
|
-
//# sourceMappingURL=tabs.cjs.map
|
|
1
|
+
"use client";const e=require(`../tabs-BYS9bv-R.cjs`);exports.Tabs=e.Tabs,exports.TabsContent=e.TabsContent,exports.TabsList=e.TabsList,exports.TabsTrigger=e.TabsTrigger;
|
package/dist/ui/tabs.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
2
2
|
import { Tabs as Tabs$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tabs.d.ts
|
|
5
5
|
declare function Tabs({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Tabs$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime135.JSX.Element;
|
|
9
9
|
declare function TabsList({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof Tabs$1.List>):
|
|
12
|
+
}: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime135.JSX.Element;
|
|
13
13
|
declare function TabsTrigger({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Tabs$1.Trigger>):
|
|
16
|
+
}: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime135.JSX.Element;
|
|
17
17
|
declare function TabsContent({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Tabs$1.Content>):
|
|
20
|
+
}: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime135.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
23
23
|
//# sourceMappingURL=tabs.d.cts.map
|
package/dist/ui/tabs.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Tabs as Tabs$1 } from "radix-ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime227 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tabs.d.ts
|
|
5
5
|
declare function Tabs({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Tabs$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime227.JSX.Element;
|
|
9
9
|
declare function TabsList({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof Tabs$1.List>):
|
|
12
|
+
}: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime227.JSX.Element;
|
|
13
13
|
declare function TabsTrigger({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Tabs$1.Trigger>):
|
|
16
|
+
}: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime227.JSX.Element;
|
|
17
17
|
declare function TabsContent({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Tabs$1.Content>):
|
|
20
|
+
}: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime227.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
23
23
|
//# sourceMappingURL=tabs.d.ts.map
|
package/dist/ui/tabs.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
2
|
-
//# sourceMappingURL=tabs.js.map
|
|
1
|
+
"use client";import{Tabs as e,TabsContent as t,TabsList as n,TabsTrigger as r}from"../tabs-D4Q78tF2.js";export{e as Tabs,t as TabsContent,n as TabsList,r as TabsTrigger};
|
package/dist/ui/textarea.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../textarea-
|
|
1
|
+
"use client";const e=require(`../textarea-BEPen5oo.cjs`);exports.Textarea=e.Textarea;
|
package/dist/ui/textarea.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime125 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/textarea.d.ts
|
|
@@ -9,7 +9,7 @@ declare function Textarea({
|
|
|
9
9
|
...props
|
|
10
10
|
}: React.ComponentProps<'textarea'> & {
|
|
11
11
|
onValueChange?: (value: string) => void;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime125.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Textarea };
|
|
15
15
|
//# sourceMappingURL=textarea.d.cts.map
|
package/dist/ui/textarea.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime233 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/textarea.d.ts
|
|
@@ -9,7 +9,7 @@ declare function Textarea({
|
|
|
9
9
|
...props
|
|
10
10
|
}: React.ComponentProps<'textarea'> & {
|
|
11
11
|
onValueChange?: (value: string) => void;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime233.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Textarea };
|
|
15
15
|
//# sourceMappingURL=textarea.d.ts.map
|
package/dist/ui/textarea.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Textarea as e}from"../textarea-
|
|
1
|
+
"use client";import{Textarea as e}from"../textarea-BI5mw0Vy.js";export{e as Textarea};
|
package/dist/ui/toggle-group.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../toggle-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../toggle-Cicuy0bA.cjs`),n=e.__toESM(require(`@customafk/react-toolkit/utils`)),r=e.__toESM(require(`class-variance-authority`)),i=e.__toESM(require(`radix-ui`)),a=e.__toESM(require(`react/jsx-runtime`)),o=e.__toESM(require(`react`)),s=o.default.createContext({size:`default`,variant:`default`});function c({className:e,variant:t,size:r,children:o,...c}){return(0,a.jsx)(i.ToggleGroup.Root,{"data-slot":`toggle-group`,"data-variant":t,"data-size":r,className:(0,n.cn)(`group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs`,e),...c,children:(0,a.jsx)(s.Provider,{value:{variant:t,size:r},children:o})})}function l({className:e,children:r,variant:c,size:l,...u}){let d=o.default.useContext(s);return(0,a.jsx)(i.ToggleGroup.Item,{"data-slot":`toggle-group-item`,"data-variant":d.variant||c,"data-size":d.size||l,className:(0,n.cn)(t.toggleVariants({variant:d.variant||c,size:d.size||l}),`min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l`,e),...u,children:r})}exports.ToggleGroup=c,exports.ToggleGroupItem=l;
|
|
2
2
|
//# sourceMappingURL=toggle-group.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toggleVariants } from "../toggle-
|
|
2
|
-
import * as
|
|
1
|
+
import { toggleVariants } from "../toggle-BXosB_DV.cjs";
|
|
2
|
+
import * as react_jsx_runtime141 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
@@ -11,14 +11,14 @@ declare function ToggleGroup({
|
|
|
11
11
|
size,
|
|
12
12
|
children,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>):
|
|
14
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime141.JSX.Element;
|
|
15
15
|
declare function ToggleGroupItem({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
18
18
|
variant,
|
|
19
19
|
size,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>):
|
|
21
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime141.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ToggleGroup, ToggleGroupItem };
|
|
24
24
|
//# sourceMappingURL=toggle-group.d.cts.map
|