ivt 0.6.8 → 0.7.0
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/accordion/index.mjs +15 -15
- package/dist/accordion-table/index.mjs +27 -27
- package/dist/alert/index.mjs +2 -2
- package/dist/alert-dialog/index.mjs +17 -17
- package/dist/aspect-ratio/index.mjs +1 -1
- package/dist/auto-complete-multi-select/index.d.ts +4 -3
- package/dist/auto-complete-multi-select/index.mjs +36 -36
- package/dist/auto-complete-multi-select/index.mjs.map +1 -1
- package/dist/avatar/index.mjs +7 -7
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +10 -2
- package/dist/base/index.mjs +50 -50
- package/dist/breadcrumb/index.mjs +5 -5
- package/dist/button/index.mjs +3 -3
- package/dist/button-group/index.mjs +4 -4
- package/dist/calendar/index.mjs +9 -9
- package/dist/card/index.mjs +3 -3
- package/dist/carousel/index.mjs +4 -4
- package/dist/chart/index.mjs +4 -4
- package/dist/checkbox/index.mjs +14 -14
- package/dist/chunks/{CalendarRange-DinEz7Bu.mjs → CalendarRange-BA-db50F.mjs} +8 -8
- package/dist/chunks/{CalendarRange-DinEz7Bu.mjs.map → CalendarRange-BA-db50F.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-DFhG2o8Q.mjs → ComboboxField-BtmBUUUa.mjs} +9 -9
- package/dist/chunks/{ComboboxField-DFhG2o8Q.mjs.map → ComboboxField-BtmBUUUa.mjs.map} +1 -1
- package/dist/chunks/{Container-BFn84LrW.mjs → Container-435PicTP.mjs} +2 -2
- package/dist/chunks/{Container-BFn84LrW.mjs.map → Container-435PicTP.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-COywnQdI.mjs → DeleteConfirmationModal-B9Ahb3Mu.mjs} +6 -6
- package/dist/chunks/DeleteConfirmationModal-B9Ahb3Mu.mjs.map +1 -0
- package/dist/chunks/{ListItem-DhlGqvBa.mjs → ListItem-CwSloNFZ.mjs} +4 -4
- package/dist/chunks/{ListItem-DhlGqvBa.mjs.map → ListItem-CwSloNFZ.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-BqQlRbIh.mjs → TooltipIndicator-UUTwNh5Y.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-BqQlRbIh.mjs.map → TooltipIndicator-UUTwNh5Y.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-zXRxA_Z_.mjs → _commonjsHelpers-BMx1TIzK.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-BMx1TIzK.mjs.map +1 -0
- package/dist/chunks/{accordion-ChA6nm2v.mjs → accordion-s3aERwYW.mjs} +11 -11
- package/dist/chunks/{accordion-ChA6nm2v.mjs.map → accordion-s3aERwYW.mjs.map} +1 -1
- package/dist/chunks/{badge-CZ5_5z6L.mjs → badge-CSKBGHyC.mjs} +2 -2
- package/dist/chunks/{badge-CZ5_5z6L.mjs.map → badge-CSKBGHyC.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-CaEEedsA.mjs → bundle-mjs-DsNiaMJS.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-CaEEedsA.mjs.map → bundle-mjs-DsNiaMJS.mjs.map} +1 -1
- package/dist/chunks/{button-BrCoykyb.mjs → button-DW1YQJSf.mjs} +2 -2
- package/dist/chunks/{button-BrCoykyb.mjs.map → button-DW1YQJSf.mjs.map} +1 -1
- package/dist/chunks/{calendar-C8Mepf-u.mjs → calendar-DrMz_17c.mjs} +7 -7
- package/dist/chunks/{calendar-C8Mepf-u.mjs.map → calendar-DrMz_17c.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-DquGCG3-.mjs → calendar-days-kzxw9us-.mjs} +2 -2
- package/dist/chunks/{calendar-days-DquGCG3-.mjs.map → calendar-days-kzxw9us-.mjs.map} +1 -1
- package/dist/chunks/{card-KP_kMe8R.mjs → card-B_pDGP_4.mjs} +2 -2
- package/dist/chunks/{card-KP_kMe8R.mjs.map → card-B_pDGP_4.mjs.map} +1 -1
- package/dist/chunks/{check-C_LwI9KH.mjs → check-Dc1DpMhB.mjs} +2 -2
- package/dist/chunks/{check-C_LwI9KH.mjs.map → check-Dc1DpMhB.mjs.map} +1 -1
- package/dist/chunks/{checkbox-Bv39fyuN.mjs → checkbox-BaYmfSmN.mjs} +11 -11
- package/dist/chunks/{checkbox-Bv39fyuN.mjs.map → checkbox-BaYmfSmN.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-D2i2UyYP.mjs → chevron-down-BfdFfN5b.mjs} +2 -2
- package/dist/chunks/{chevron-down-D2i2UyYP.mjs.map → chevron-down-BfdFfN5b.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-BbfoPbuR.mjs → chevron-left-BBpi9Tuc.mjs} +2 -2
- package/dist/chunks/{chevron-left-BbfoPbuR.mjs.map → chevron-left-BBpi9Tuc.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-DFRHRqTX.mjs → chevron-right-gwqv7hdT.mjs} +2 -2
- package/dist/chunks/{chevron-right-DFRHRqTX.mjs.map → chevron-right-gwqv7hdT.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-DSPpUp87.mjs → chevrons-up-down-Dg5q5QQ6.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-DSPpUp87.mjs.map → chevrons-up-down-Dg5q5QQ6.mjs.map} +1 -1
- package/dist/chunks/{command-Bm6lmqaD.mjs → command-CyjrKgCk.mjs} +8 -8
- package/dist/chunks/{command-Bm6lmqaD.mjs.map → command-CyjrKgCk.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-BskRIXUQ.mjs → createLucideIcon-DfHHy_fF.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BskRIXUQ.mjs.map → createLucideIcon-DfHHy_fF.mjs.map} +1 -1
- package/dist/chunks/{date-DHnqvn4D.mjs → date-DBD540pc.mjs} +2 -2
- package/dist/chunks/{date-DHnqvn4D.mjs.map → date-DBD540pc.mjs.map} +1 -1
- package/dist/chunks/{dialog-CJHIAZTE.mjs → dialog-DdfabDy3.mjs} +4 -4
- package/dist/chunks/{dialog-CJHIAZTE.mjs.map → dialog-DdfabDy3.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-D6Uved1a.mjs → ellipsis-Bc1Luije.mjs} +2 -2
- package/dist/chunks/{ellipsis-D6Uved1a.mjs.map → ellipsis-Bc1Luije.mjs.map} +1 -1
- package/dist/chunks/{form-CCVv5YFB.mjs → form-DGcmwo-6.mjs} +3 -3
- package/dist/chunks/{form-CCVv5YFB.mjs.map → form-DGcmwo-6.mjs.map} +1 -1
- package/dist/chunks/{format-Bt8khlQQ.mjs → format-DfGa0nsw.mjs} +1 -1
- package/dist/chunks/{format-Bt8khlQQ.mjs.map → format-DfGa0nsw.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-JNwpv2ZY.mjs → format-numbers-Cdm34ghV.mjs} +1 -1
- package/dist/chunks/{format-numbers-JNwpv2ZY.mjs.map → format-numbers-Cdm34ghV.mjs.map} +1 -1
- package/dist/chunks/{hover-card-m57bFK9J.mjs → hover-card-DA5OKIru.mjs} +11 -11
- package/dist/chunks/{hover-card-m57bFK9J.mjs.map → hover-card-DA5OKIru.mjs.map} +1 -1
- package/dist/chunks/{index-yx3icX6K.mjs → index-0SCeyzsK.mjs} +2 -2
- package/dist/chunks/{index-yx3icX6K.mjs.map → index-0SCeyzsK.mjs.map} +1 -1
- package/dist/chunks/{index-CakOZHO3.mjs → index-6uBK1TEk.mjs} +2 -2
- package/dist/chunks/{index-CakOZHO3.mjs.map → index-6uBK1TEk.mjs.map} +1 -1
- package/dist/chunks/{index-BZW8t8v3.mjs → index-B50gul4j.mjs} +1 -1
- package/dist/chunks/{index-BZW8t8v3.mjs.map → index-B50gul4j.mjs.map} +1 -1
- package/dist/chunks/{index-DYd-Du-R.mjs → index-BOVs_g4Q.mjs} +5 -5
- package/dist/chunks/{index-DYd-Du-R.mjs.map → index-BOVs_g4Q.mjs.map} +1 -1
- package/dist/chunks/{index-BTJfHGTc.mjs → index-BZhmkMVZ.mjs} +3 -3
- package/dist/chunks/{index-BTJfHGTc.mjs.map → index-BZhmkMVZ.mjs.map} +1 -1
- package/dist/chunks/{index-CdVMPbm9.mjs → index-BnADUzzc.mjs} +1 -1
- package/dist/chunks/{index-CdVMPbm9.mjs.map → index-BnADUzzc.mjs.map} +1 -1
- package/dist/chunks/{index-CDrmAWkg.mjs → index-CPtkkz-Y.mjs} +1 -1
- package/dist/chunks/{index-CDrmAWkg.mjs.map → index-CPtkkz-Y.mjs.map} +1 -1
- package/dist/chunks/{index-ByMLqUYL.mjs → index-CbAYX6tE.mjs} +1 -1
- package/dist/chunks/{index-ByMLqUYL.mjs.map → index-CbAYX6tE.mjs.map} +1 -1
- package/dist/chunks/{index-VHai0Y8m.mjs → index-CllA0jgd.mjs} +1 -1
- package/dist/chunks/{index-VHai0Y8m.mjs.map → index-CllA0jgd.mjs.map} +1 -1
- package/dist/chunks/{index-CIptCfJf.mjs → index-CtGzvqE-.mjs} +9 -9
- package/dist/chunks/{index-CIptCfJf.mjs.map → index-CtGzvqE-.mjs.map} +1 -1
- package/dist/chunks/{index-Def6vQu2.mjs → index-CwcOLnJm.mjs} +1 -1
- package/dist/chunks/{index-Def6vQu2.mjs.map → index-CwcOLnJm.mjs.map} +1 -1
- package/dist/chunks/{index-CXwTZrpH.mjs → index-D43aEpzt.mjs} +9 -9
- package/dist/chunks/{index-CXwTZrpH.mjs.map → index-D43aEpzt.mjs.map} +1 -1
- package/dist/chunks/{index-BVSvPx6q.mjs → index-D7dCxTP2.mjs} +5 -5
- package/dist/chunks/{index-BVSvPx6q.mjs.map → index-D7dCxTP2.mjs.map} +1 -1
- package/dist/chunks/{index-CriKvahc.mjs → index-DDclWz5f.mjs} +1 -1
- package/dist/chunks/{index-CriKvahc.mjs.map → index-DDclWz5f.mjs.map} +1 -1
- package/dist/chunks/{index-BtVAcGzW.mjs → index-DKrv9iMY.mjs} +1 -1
- package/dist/chunks/{index-BtVAcGzW.mjs.map → index-DKrv9iMY.mjs.map} +1 -1
- package/dist/chunks/{index-3VUh2xvo.mjs → index-DQBXf0Nn.mjs} +15 -15
- package/dist/chunks/{index-3VUh2xvo.mjs.map → index-DQBXf0Nn.mjs.map} +1 -1
- package/dist/chunks/{index-BIkaCdbt.mjs → index-DhxU0LEQ.mjs} +1 -1
- package/dist/chunks/{index-BIkaCdbt.mjs.map → index-DhxU0LEQ.mjs.map} +1 -1
- package/dist/chunks/{index-BludQSPL.mjs → index-DsZMIujt.mjs} +11 -11
- package/dist/chunks/{index-BludQSPL.mjs.map → index-DsZMIujt.mjs.map} +1 -1
- package/dist/chunks/{index-C-hJOAC4.mjs → index-QBr28_3u.mjs} +2 -2
- package/dist/chunks/{index-C-hJOAC4.mjs.map → index-QBr28_3u.mjs.map} +1 -1
- package/dist/chunks/{index-NRqjdxxl.mjs → index-So-nn3e7.mjs} +3 -3
- package/dist/chunks/{index-NRqjdxxl.mjs.map → index-So-nn3e7.mjs.map} +1 -1
- package/dist/chunks/{index-DT5qQT8O.mjs → index-X3UvAhoa.mjs} +7 -7
- package/dist/chunks/{index-DT5qQT8O.mjs.map → index-X3UvAhoa.mjs.map} +1 -1
- package/dist/chunks/{index-Dnjw87dU.mjs → index-aPZimpBX.mjs} +1 -1
- package/dist/chunks/{index-Dnjw87dU.mjs.map → index-aPZimpBX.mjs.map} +1 -1
- package/dist/chunks/{index-RuFdJyXd.mjs → index-mk_bVkL9.mjs} +2 -2
- package/dist/chunks/{index-RuFdJyXd.mjs.map → index-mk_bVkL9.mjs.map} +1 -1
- package/dist/chunks/{index.module-Dje-TJtr.mjs → index.module-B3k6LHMC.mjs} +1 -1
- package/dist/chunks/{index.module-Dje-TJtr.mjs.map → index.module-B3k6LHMC.mjs.map} +1 -1
- package/dist/chunks/{input-BXFw-uDs.mjs → input-DyG0N-65.mjs} +2 -2
- package/dist/chunks/{input-BXFw-uDs.mjs.map → input-DyG0N-65.mjs.map} +1 -1
- package/dist/chunks/{label-OLMS5GpP.mjs → label-C5b7EsNj.mjs} +3 -3
- package/dist/chunks/{label-OLMS5GpP.mjs.map → label-C5b7EsNj.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-qs0-1aBs.mjs → loader-circle-BrgkMgEj.mjs} +2 -2
- package/dist/chunks/{loader-circle-qs0-1aBs.mjs.map → loader-circle-BrgkMgEj.mjs.map} +1 -1
- package/dist/chunks/{menubar-BeoTHJNg.mjs → menubar-DiHLFmad.mjs} +13 -13
- package/dist/chunks/{menubar-BeoTHJNg.mjs.map → menubar-DiHLFmad.mjs.map} +1 -1
- package/dist/chunks/{multi-select-DeyQIgRQ.mjs → multi-select-CfMr2pov.mjs} +13 -13
- package/dist/chunks/{multi-select-DeyQIgRQ.mjs.map → multi-select-CfMr2pov.mjs.map} +1 -1
- package/dist/chunks/{pagination-DGqPj_OR.mjs → pagination-Cu57jNb0.mjs} +6 -6
- package/dist/chunks/{pagination-DGqPj_OR.mjs.map → pagination-Cu57jNb0.mjs.map} +1 -1
- package/dist/chunks/{popover-B-pugAWE.mjs → popover-CpjZYtpI.mjs} +13 -13
- package/dist/chunks/{popover-B-pugAWE.mjs.map → popover-CpjZYtpI.mjs.map} +1 -1
- package/dist/chunks/{progress-CIWtoDXC.mjs → progress-Dgf1ABrX.mjs} +4 -4
- package/dist/chunks/{progress-CIWtoDXC.mjs.map → progress-Dgf1ABrX.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-5vtSY4fc.mjs → react-number-format.es-pRV7N_mS.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-5vtSY4fc.mjs.map → react-number-format.es-pRV7N_mS.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-Bc0xKKEb.mjs → scroll-area-spod4_Wh.mjs} +11 -11
- package/dist/chunks/{scroll-area-Bc0xKKEb.mjs.map → scroll-area-spod4_Wh.mjs.map} +1 -1
- package/dist/chunks/{select-C9_DK-uy.mjs → select-CBh20D2n.mjs} +5 -5
- package/dist/chunks/{select-C9_DK-uy.mjs.map → select-CBh20D2n.mjs.map} +1 -1
- package/dist/chunks/{separator-DzTcIFS-.mjs → separator-B1xNjDsr.mjs} +3 -3
- package/dist/chunks/{separator-DzTcIFS-.mjs.map → separator-B1xNjDsr.mjs.map} +1 -1
- package/dist/chunks/{sheet-sKogV_u3.mjs → sheet-RT3yw-5P.mjs} +4 -4
- package/dist/chunks/{sheet-sKogV_u3.mjs.map → sheet-RT3yw-5P.mjs.map} +1 -1
- package/dist/chunks/{skeleton-BaRL_Ts6.mjs → skeleton-gQmBTQmq.mjs} +2 -2
- package/dist/chunks/{skeleton-BaRL_Ts6.mjs.map → skeleton-gQmBTQmq.mjs.map} +1 -1
- package/dist/chunks/{sortable-D_qI1HNr.mjs → sortable-DHhSfpHS.mjs} +3 -3
- package/dist/chunks/{sortable-D_qI1HNr.mjs.map → sortable-DHhSfpHS.mjs.map} +1 -1
- package/dist/chunks/{table-7QA4HaS9.mjs → table-DnJSdOoO.mjs} +2 -2
- package/dist/chunks/{table-7QA4HaS9.mjs.map → table-DnJSdOoO.mjs.map} +1 -1
- package/dist/chunks/{textarea-CoBkaQTT.mjs → textarea-BODhTsCw.mjs} +2 -2
- package/dist/chunks/{textarea-CoBkaQTT.mjs.map → textarea-BODhTsCw.mjs.map} +1 -1
- package/dist/chunks/{toggle-Cm9KzcXh.mjs → toggle-DwAXXdM8.mjs} +5 -5
- package/dist/chunks/{toggle-Cm9KzcXh.mjs.map → toggle-DwAXXdM8.mjs.map} +1 -1
- package/dist/chunks/{tooltip-CFESkRps.mjs → tooltip-C8PymYjC.mjs} +13 -13
- package/dist/chunks/{tooltip-CFESkRps.mjs.map → tooltip-C8PymYjC.mjs.map} +1 -1
- package/dist/chunks/{trash-2-CYhUZbRO.mjs → trash-2-DHnJ2JOw.mjs} +2 -2
- package/dist/chunks/{trash-2-CYhUZbRO.mjs.map → trash-2-DHnJ2JOw.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-CuubY64-.mjs → triangle-alert-K46ws0FW.mjs} +2 -2
- package/dist/chunks/{triangle-alert-CuubY64-.mjs.map → triangle-alert-K46ws0FW.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-BCWqvfaj.mjs → tslib.es6-CjQCvxqN.mjs} +1 -1
- package/dist/chunks/{tslib.es6-BCWqvfaj.mjs.map → tslib.es6-CjQCvxqN.mjs.map} +1 -1
- package/dist/chunks/{utils-CRpax_Oz.mjs → utils-CZzyeare.mjs} +2 -2
- package/dist/chunks/{utils-CRpax_Oz.mjs.map → utils-CZzyeare.mjs.map} +1 -1
- package/dist/chunks/{wand-sparkles-Co-ADBz0.mjs → wand-sparkles-BJ4B_5uo.mjs} +2 -2
- package/dist/chunks/{wand-sparkles-Co-ADBz0.mjs.map → wand-sparkles-BJ4B_5uo.mjs.map} +1 -1
- package/dist/chunks/{x-BEzQN-Vv.mjs → x-4VGfZ2jd.mjs} +2 -2
- package/dist/chunks/{x-BEzQN-Vv.mjs.map → x-4VGfZ2jd.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +9 -9
- package/dist/combobox/index.mjs +26 -26
- package/dist/command/index.mjs +20 -20
- package/dist/context-menu/index.mjs +23 -23
- package/dist/dash/index.mjs +25 -25
- package/dist/data-table/index.mjs +35 -35
- package/dist/date-picker/index.mjs +27 -27
- package/dist/dialog/index.mjs +19 -19
- package/dist/drawer/index.mjs +16 -16
- package/dist/dropdown-menu/index.mjs +23 -23
- package/dist/dropzone/index.mjs +18 -18
- package/dist/editable-table/index.mjs +20 -20
- package/dist/empty/index.mjs +2 -2
- package/dist/field/index.mjs +5 -5
- package/dist/form/index.mjs +5 -5
- package/dist/form-fields/index.mjs +28 -28
- package/dist/hover-card/index.mjs +15 -15
- package/dist/icon/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/input/index.mjs +3 -3
- package/dist/input-group/index.mjs +5 -5
- package/dist/input-otp/index.mjs +3 -3
- package/dist/item/index.mjs +4 -4
- package/dist/ivt.css +1 -1
- package/dist/kbd/index.mjs +2 -2
- package/dist/label/index.mjs +4 -4
- package/dist/layout/index.mjs +23 -23
- package/dist/menubar/index.mjs +24 -24
- package/dist/multi-input-list/index.mjs +29 -29
- package/dist/multi-select/index.mjs +33 -33
- package/dist/navigation-menu/index.mjs +17 -17
- package/dist/pagination/index.mjs +8 -8
- package/dist/popover/index.mjs +18 -18
- package/dist/progress/index.mjs +5 -5
- package/dist/radio-group/index.mjs +17 -17
- package/dist/resizable/index.mjs +3 -3
- package/dist/scroll-area/index.mjs +12 -12
- package/dist/select/index.mjs +6 -6
- package/dist/separator/index.mjs +4 -4
- package/dist/shared/index.mjs +5 -5
- package/dist/sheet/index.mjs +19 -19
- package/dist/sidebar/index.mjs +27 -27
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.mjs +12 -12
- package/dist/sortable/index.mjs +4 -4
- package/dist/spinner/index.mjs +4 -4
- package/dist/switch/index.mjs +10 -10
- package/dist/table/index.mjs +3 -3
- package/dist/table-filter/index.d.ts +7 -1
- package/dist/table-filter/index.mjs +95 -65
- package/dist/table-filter/index.mjs.map +1 -1
- package/dist/tabs/index.mjs +13 -13
- package/dist/textarea/index.mjs +3 -3
- package/dist/toast/index.mjs +15 -15
- package/dist/toggle/index.mjs +7 -7
- package/dist/toggle-group/index.mjs +13 -13
- package/dist/tooltip/index.mjs +17 -17
- package/package.json +5 -1
- package/dist/chunks/DeleteConfirmationModal-COywnQdI.mjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-zXRxA_Z_.mjs.map +0 -1
package/dist/sidebar/index.mjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { Slot } from '@radix-ui/react-slot';
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { c as cn } from '../chunks/utils-
|
|
5
|
-
import { S as Sheet, c as SheetContent, d as SheetHeader, f as SheetTitle, g as SheetDescription } from '../chunks/sheet-
|
|
6
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
7
|
-
import { I as Input } from '../chunks/input-
|
|
8
|
-
import { T as Tooltip, a as TooltipTrigger, b as TooltipContent, c as TooltipProvider } from '../chunks/tooltip-
|
|
9
|
-
import { S as Skeleton } from '../chunks/skeleton-
|
|
10
|
-
import { S as Separator } from '../chunks/separator-
|
|
11
|
-
import { B as Button } from '../chunks/button-
|
|
12
|
-
import '../chunks/bundle-mjs-
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
4
|
+
import { c as cn } from '../chunks/utils-CZzyeare.mjs';
|
|
5
|
+
import { S as Sheet, c as SheetContent, d as SheetHeader, f as SheetTitle, g as SheetDescription } from '../chunks/sheet-RT3yw-5P.mjs';
|
|
6
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-DfHHy_fF.mjs';
|
|
7
|
+
import { I as Input } from '../chunks/input-DyG0N-65.mjs';
|
|
8
|
+
import { T as Tooltip, a as TooltipTrigger, b as TooltipContent, c as TooltipProvider } from '../chunks/tooltip-C8PymYjC.mjs';
|
|
9
|
+
import { S as Skeleton } from '../chunks/skeleton-gQmBTQmq.mjs';
|
|
10
|
+
import { S as Separator } from '../chunks/separator-B1xNjDsr.mjs';
|
|
11
|
+
import { B as Button } from '../chunks/button-DW1YQJSf.mjs';
|
|
12
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
13
|
+
import '../chunks/index-DsZMIujt.mjs';
|
|
14
|
+
import '../chunks/index-DhxU0LEQ.mjs';
|
|
15
|
+
import '../chunks/index-CbAYX6tE.mjs';
|
|
16
|
+
import '../chunks/index-DDclWz5f.mjs';
|
|
17
17
|
import 'react/jsx-runtime';
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
18
|
+
import '../chunks/index-6uBK1TEk.mjs';
|
|
19
|
+
import '../chunks/index-BnADUzzc.mjs';
|
|
20
|
+
import '../chunks/index-mk_bVkL9.mjs';
|
|
21
|
+
import '../chunks/index-D7dCxTP2.mjs';
|
|
22
|
+
import '../chunks/index-DKrv9iMY.mjs';
|
|
23
23
|
import 'react-dom';
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/tslib.es6-
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/x-
|
|
30
|
-
import '../chunks/index-
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/index-
|
|
24
|
+
import '../chunks/index-CwcOLnJm.mjs';
|
|
25
|
+
import '../chunks/index-BOVs_g4Q.mjs';
|
|
26
|
+
import '../chunks/tslib.es6-CjQCvxqN.mjs';
|
|
27
|
+
import '../chunks/index-So-nn3e7.mjs';
|
|
28
|
+
import '../chunks/index-BZhmkMVZ.mjs';
|
|
29
|
+
import '../chunks/x-4VGfZ2jd.mjs';
|
|
30
|
+
import '../chunks/index-X3UvAhoa.mjs';
|
|
31
|
+
import '../chunks/index-QBr28_3u.mjs';
|
|
32
|
+
import '../chunks/index-0SCeyzsK.mjs';
|
|
33
33
|
|
|
34
34
|
const __iconNode = [
|
|
35
35
|
[
|
package/dist/skeleton/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { S as Skeleton } from '../chunks/skeleton-
|
|
1
|
+
export { S as Skeleton } from '../chunks/skeleton-gQmBTQmq.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/utils-
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import '../chunks/utils-CZzyeare.mjs';
|
|
4
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { C as Container, a as ChildContainer } from '../chunks/Container-
|
|
3
|
-
import { S as Skeleton } from '../chunks/skeleton-
|
|
4
|
-
import '../chunks/utils-
|
|
5
|
-
import '../chunks/bundle-mjs-
|
|
2
|
+
import { C as Container, a as ChildContainer } from '../chunks/Container-435PicTP.mjs';
|
|
3
|
+
import { S as Skeleton } from '../chunks/skeleton-gQmBTQmq.mjs';
|
|
4
|
+
import '../chunks/utils-CZzyeare.mjs';
|
|
5
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
6
6
|
|
|
7
7
|
const FormSkeleton = ({ count = 4 })=>{
|
|
8
8
|
return /*#__PURE__*/ React__default.createElement("div", {
|
package/dist/slider/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as clamp } from '../chunks/index-
|
|
3
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
4
|
-
import { u as useComposedRefs } from '../chunks/index-
|
|
5
|
-
import { c as createContextScope } from '../chunks/index-
|
|
6
|
-
import { u as useControllableState } from '../chunks/index-
|
|
7
|
-
import { u as useDirection } from '../chunks/index-
|
|
8
|
-
import { u as usePrevious } from '../chunks/index-
|
|
9
|
-
import { u as useSize } from '../chunks/index-
|
|
10
|
-
import { P as Primitive } from '../chunks/index-
|
|
2
|
+
import { c as clamp } from '../chunks/index-aPZimpBX.mjs';
|
|
3
|
+
import { c as composeEventHandlers } from '../chunks/index-DhxU0LEQ.mjs';
|
|
4
|
+
import { u as useComposedRefs } from '../chunks/index-CbAYX6tE.mjs';
|
|
5
|
+
import { c as createContextScope } from '../chunks/index-DDclWz5f.mjs';
|
|
6
|
+
import { u as useControllableState } from '../chunks/index-mk_bVkL9.mjs';
|
|
7
|
+
import { u as useDirection } from '../chunks/index-CPtkkz-Y.mjs';
|
|
8
|
+
import { u as usePrevious } from '../chunks/index-CllA0jgd.mjs';
|
|
9
|
+
import { u as useSize } from '../chunks/index-QBr28_3u.mjs';
|
|
10
|
+
import { P as Primitive } from '../chunks/index-DKrv9iMY.mjs';
|
|
11
11
|
import { createCollection } from '@radix-ui/react-collection';
|
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
|
-
import { c as cn } from '../chunks/utils-
|
|
14
|
-
import '../chunks/index-
|
|
13
|
+
import { c as cn } from '../chunks/utils-CZzyeare.mjs';
|
|
14
|
+
import '../chunks/index-BnADUzzc.mjs';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import '@radix-ui/react-slot';
|
|
17
|
-
import '../chunks/bundle-mjs-
|
|
17
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
18
18
|
|
|
19
19
|
var PAGE_KEYS = [
|
|
20
20
|
"PageUp",
|
package/dist/sortable/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as Sortable, a as SortableDragHandle, b as SortableItem, c as SortableOverlay } from '../chunks/sortable-
|
|
1
|
+
export { S as Sortable, a as SortableDragHandle, b as SortableItem, c as SortableOverlay } from '../chunks/sortable-DHhSfpHS.mjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
4
|
import '@radix-ui/react-slot';
|
|
5
|
-
import '../chunks/utils-
|
|
6
|
-
import '../chunks/bundle-mjs-
|
|
7
|
-
import '../chunks/button-
|
|
5
|
+
import '../chunks/utils-CZzyeare.mjs';
|
|
6
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
7
|
+
import '../chunks/button-DW1YQJSf.mjs';
|
|
8
8
|
import 'class-variance-authority';
|
|
9
9
|
//# sourceMappingURL=index.mjs.map
|
package/dist/spinner/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
2
|
-
import { L as LoaderCircle } from '../chunks/loader-circle-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
4
|
-
import '../chunks/createLucideIcon-
|
|
1
|
+
import { c as cn } from '../chunks/utils-CZzyeare.mjs';
|
|
2
|
+
import { L as LoaderCircle } from '../chunks/loader-circle-BrgkMgEj.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
4
|
+
import '../chunks/createLucideIcon-DfHHy_fF.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
7
|
function Spinner({ className, ...props }) {
|
package/dist/switch/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
3
|
-
import { u as useComposedRefs } from '../chunks/index-
|
|
4
|
-
import { c as createContextScope } from '../chunks/index-
|
|
5
|
-
import { u as useControllableState } from '../chunks/index-
|
|
6
|
-
import { u as usePrevious } from '../chunks/index-
|
|
7
|
-
import { u as useSize } from '../chunks/index-
|
|
8
|
-
import { P as Primitive } from '../chunks/index-
|
|
2
|
+
import { c as composeEventHandlers } from '../chunks/index-DhxU0LEQ.mjs';
|
|
3
|
+
import { u as useComposedRefs } from '../chunks/index-CbAYX6tE.mjs';
|
|
4
|
+
import { c as createContextScope } from '../chunks/index-DDclWz5f.mjs';
|
|
5
|
+
import { u as useControllableState } from '../chunks/index-mk_bVkL9.mjs';
|
|
6
|
+
import { u as usePrevious } from '../chunks/index-CllA0jgd.mjs';
|
|
7
|
+
import { u as useSize } from '../chunks/index-QBr28_3u.mjs';
|
|
8
|
+
import { P as Primitive } from '../chunks/index-DKrv9iMY.mjs';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
-
import { c as cn } from '../chunks/utils-
|
|
11
|
-
import '../chunks/index-
|
|
10
|
+
import { c as cn } from '../chunks/utils-CZzyeare.mjs';
|
|
11
|
+
import '../chunks/index-BnADUzzc.mjs';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@radix-ui/react-slot';
|
|
14
|
-
import '../chunks/bundle-mjs-
|
|
14
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
15
15
|
|
|
16
16
|
var SWITCH_NAME = "Switch";
|
|
17
17
|
var [createSwitchContext] = createContextScope(SWITCH_NAME);
|
package/dist/table/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { T as Table, b as TableBody, g as TableCaption, f as TableCell, c as TableFooter, d as TableHead, a as TableHeader, e as TableRow } from '../chunks/table-
|
|
1
|
+
export { T as Table, b as TableBody, g as TableCaption, f as TableCell, c as TableFooter, d as TableHead, a as TableHeader, e as TableRow } from '../chunks/table-DnJSdOoO.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/utils-
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import '../chunks/utils-CZzyeare.mjs';
|
|
4
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -57,6 +57,12 @@ interface TableFilterProps<TData = unknown, TSchema extends ZodObject<any> = Zod
|
|
|
57
57
|
resetKey?: number;
|
|
58
58
|
applyFiltersOnMount?: boolean;
|
|
59
59
|
onClearFilters?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback chamado quando filtros são aplicados.
|
|
62
|
+
* Use para filtragem server-side (API).
|
|
63
|
+
* Recebe os valores dos filtros após validação.
|
|
64
|
+
*/
|
|
65
|
+
onApplyFilters?: (filters: TFormValues) => void;
|
|
60
66
|
badgeMultiselectVariant?: BadgeVariants;
|
|
61
67
|
badgeMultiselectSubtle?: boolean;
|
|
62
68
|
}
|
|
@@ -66,7 +72,7 @@ type NumericFilterValue = {
|
|
|
66
72
|
value: number | null;
|
|
67
73
|
};
|
|
68
74
|
|
|
69
|
-
declare function TableFilter<TData, TSchema extends ZodObject<any>>({ table, defaultSide, disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, badgeMultiselectVariant, badgeMultiselectSubtle, }: TableFilterProps<TData, TSchema>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare function TableFilter<TData, TSchema extends ZodObject<any>>({ table, defaultSide, disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, onApplyFilters, badgeMultiselectVariant, badgeMultiselectSubtle, }: TableFilterProps<TData, TSchema>): react_jsx_runtime.JSX.Element;
|
|
70
76
|
|
|
71
77
|
export { TableFilter };
|
|
72
78
|
export type { DefaultFilterSide, FieldConfig, FieldFilterType, NumericFilterValue, Operator, TableFilterBaseProps, TableFilterProps };
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { g as get, s as set, h as appendErrors, i as useForm, F as Form, f as FormField, a as FormItem, b as FormLabel, c as FormControl, d as FormDescription, e as FormMessage } from '../chunks/form-
|
|
1
|
+
import { g as get, s as set, h as appendErrors, i as useForm, F as Form, f as FormField, a as FormItem, b as FormLabel, c as FormControl, d as FormDescription, e as FormMessage } from '../chunks/form-DGcmwo-6.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { N as NumericFormat, P as PatternFormat } from '../chunks/react-number-format.es-
|
|
4
|
-
import { c as cn } from '../chunks/utils-
|
|
5
|
-
import { f as formatDateToBrazilian, a as parseFieldDate, p as ptBR } from '../chunks/date-
|
|
6
|
-
import { a as formatNumberWithComma, s as styleInput, c as styleSelect } from '../chunks/format-numbers-
|
|
7
|
-
import { S as Sheet, a as SheetTrigger, c as SheetContent, d as SheetHeader, f as SheetTitle, e as SheetFooter, b as SheetClose } from '../chunks/sheet-
|
|
8
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
9
|
-
import { C as CalendarDays } from '../chunks/calendar-days-
|
|
10
|
-
import { C as CalendarRange } from '../chunks/CalendarRange-
|
|
11
|
-
import { C as ComboboxField } from '../chunks/ComboboxField-
|
|
12
|
-
import { M as MultiSelect } from '../chunks/multi-select-
|
|
13
|
-
import { B as Button } from '../chunks/button-
|
|
14
|
-
import { B as Badge } from '../chunks/badge-
|
|
15
|
-
import { S as ScrollArea } from '../chunks/scroll-area-
|
|
16
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
17
|
-
import { C as Calendar } from '../chunks/calendar-
|
|
18
|
-
import { f as format } from '../chunks/format-
|
|
19
|
-
import { L as Label } from '../chunks/label-
|
|
20
|
-
import { C as Checkbox } from '../chunks/checkbox-
|
|
21
|
-
import { S as Separator } from '../chunks/separator-
|
|
22
|
-
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-
|
|
23
|
-
import { I as Input } from '../chunks/input-
|
|
3
|
+
import { N as NumericFormat, P as PatternFormat } from '../chunks/react-number-format.es-pRV7N_mS.mjs';
|
|
4
|
+
import { c as cn } from '../chunks/utils-CZzyeare.mjs';
|
|
5
|
+
import { f as formatDateToBrazilian, a as parseFieldDate, p as ptBR } from '../chunks/date-DBD540pc.mjs';
|
|
6
|
+
import { a as formatNumberWithComma, s as styleInput, c as styleSelect } from '../chunks/format-numbers-Cdm34ghV.mjs';
|
|
7
|
+
import { S as Sheet, a as SheetTrigger, c as SheetContent, d as SheetHeader, f as SheetTitle, e as SheetFooter, b as SheetClose } from '../chunks/sheet-RT3yw-5P.mjs';
|
|
8
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-DfHHy_fF.mjs';
|
|
9
|
+
import { C as CalendarDays } from '../chunks/calendar-days-kzxw9us-.mjs';
|
|
10
|
+
import { C as CalendarRange } from '../chunks/CalendarRange-BA-db50F.mjs';
|
|
11
|
+
import { C as ComboboxField } from '../chunks/ComboboxField-BtmBUUUa.mjs';
|
|
12
|
+
import { M as MultiSelect } from '../chunks/multi-select-CfMr2pov.mjs';
|
|
13
|
+
import { B as Button } from '../chunks/button-DW1YQJSf.mjs';
|
|
14
|
+
import { B as Badge } from '../chunks/badge-CSKBGHyC.mjs';
|
|
15
|
+
import { S as ScrollArea } from '../chunks/scroll-area-spod4_Wh.mjs';
|
|
16
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-CpjZYtpI.mjs';
|
|
17
|
+
import { C as Calendar } from '../chunks/calendar-DrMz_17c.mjs';
|
|
18
|
+
import { f as format } from '../chunks/format-DfGa0nsw.mjs';
|
|
19
|
+
import { L as Label } from '../chunks/label-C5b7EsNj.mjs';
|
|
20
|
+
import { C as Checkbox } from '../chunks/checkbox-BaYmfSmN.mjs';
|
|
21
|
+
import { S as Separator } from '../chunks/separator-B1xNjDsr.mjs';
|
|
22
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-CBh20D2n.mjs';
|
|
23
|
+
import { I as Input } from '../chunks/input-DyG0N-65.mjs';
|
|
24
24
|
import '@radix-ui/react-slot';
|
|
25
|
-
import '../chunks/bundle-mjs-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/index-
|
|
25
|
+
import '../chunks/bundle-mjs-DsNiaMJS.mjs';
|
|
26
|
+
import '../chunks/index-DsZMIujt.mjs';
|
|
27
|
+
import '../chunks/index-DhxU0LEQ.mjs';
|
|
28
|
+
import '../chunks/index-CbAYX6tE.mjs';
|
|
29
|
+
import '../chunks/index-DDclWz5f.mjs';
|
|
30
30
|
import 'react/jsx-runtime';
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/index-
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/index-
|
|
31
|
+
import '../chunks/index-6uBK1TEk.mjs';
|
|
32
|
+
import '../chunks/index-BnADUzzc.mjs';
|
|
33
|
+
import '../chunks/index-mk_bVkL9.mjs';
|
|
34
|
+
import '../chunks/index-D7dCxTP2.mjs';
|
|
35
|
+
import '../chunks/index-DKrv9iMY.mjs';
|
|
36
36
|
import 'react-dom';
|
|
37
|
-
import '../chunks/index-
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/tslib.es6-
|
|
40
|
-
import '../chunks/index-
|
|
41
|
-
import '../chunks/index-
|
|
42
|
-
import '../chunks/x-
|
|
43
|
-
import '../chunks/chevrons-up-down-
|
|
44
|
-
import '../chunks/check-
|
|
45
|
-
import '../chunks/command-
|
|
46
|
-
import '../chunks/dialog-
|
|
37
|
+
import '../chunks/index-CwcOLnJm.mjs';
|
|
38
|
+
import '../chunks/index-BOVs_g4Q.mjs';
|
|
39
|
+
import '../chunks/tslib.es6-CjQCvxqN.mjs';
|
|
40
|
+
import '../chunks/index-So-nn3e7.mjs';
|
|
41
|
+
import '../chunks/index-BZhmkMVZ.mjs';
|
|
42
|
+
import '../chunks/x-4VGfZ2jd.mjs';
|
|
43
|
+
import '../chunks/chevrons-up-down-Dg5q5QQ6.mjs';
|
|
44
|
+
import '../chunks/check-Dc1DpMhB.mjs';
|
|
45
|
+
import '../chunks/command-CyjrKgCk.mjs';
|
|
46
|
+
import '../chunks/dialog-DdfabDy3.mjs';
|
|
47
47
|
import 'class-variance-authority';
|
|
48
|
-
import '../chunks/wand-sparkles-
|
|
49
|
-
import '../chunks/tooltip-
|
|
50
|
-
import '../chunks/index-
|
|
51
|
-
import '../chunks/index-
|
|
52
|
-
import '../chunks/index-
|
|
53
|
-
import '../chunks/index-
|
|
54
|
-
import '../chunks/index-
|
|
55
|
-
import '../chunks/chevron-left-
|
|
56
|
-
import '../chunks/chevron-right-
|
|
57
|
-
import '../chunks/chevron-down-
|
|
58
|
-
import '../chunks/index-
|
|
48
|
+
import '../chunks/wand-sparkles-BJ4B_5uo.mjs';
|
|
49
|
+
import '../chunks/tooltip-C8PymYjC.mjs';
|
|
50
|
+
import '../chunks/index-X3UvAhoa.mjs';
|
|
51
|
+
import '../chunks/index-QBr28_3u.mjs';
|
|
52
|
+
import '../chunks/index-0SCeyzsK.mjs';
|
|
53
|
+
import '../chunks/index-CPtkkz-Y.mjs';
|
|
54
|
+
import '../chunks/index-aPZimpBX.mjs';
|
|
55
|
+
import '../chunks/chevron-left-BBpi9Tuc.mjs';
|
|
56
|
+
import '../chunks/chevron-right-gwqv7hdT.mjs';
|
|
57
|
+
import '../chunks/chevron-down-BfdFfN5b.mjs';
|
|
58
|
+
import '../chunks/index-CllA0jgd.mjs';
|
|
59
59
|
import '@radix-ui/react-select';
|
|
60
60
|
|
|
61
61
|
const __iconNode = [
|
|
@@ -170,7 +170,7 @@ function s(o$1, s, t) {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
// biome-ignore lint/suspicious/noExplicitAny: <any>
|
|
173
|
-
function TableFilter({ table, defaultSide = "right", disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount = 0, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, badgeMultiselectVariant = "default", badgeMultiselectSubtle = false }) {
|
|
173
|
+
function TableFilter({ table, defaultSide = "right", disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount = 0, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, onApplyFilters, badgeMultiselectVariant = "default", badgeMultiselectSubtle = false }) {
|
|
174
174
|
React__default.useEffect(()=>{
|
|
175
175
|
for (const { name, filterType } of fieldConfigs){
|
|
176
176
|
const column = table.getColumn(name);
|
|
@@ -202,10 +202,12 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
202
202
|
return Object.values(data).filter((value)=>{
|
|
203
203
|
if (Array.isArray(value)) return value.length > 0;
|
|
204
204
|
if (value === null || value === undefined) return false;
|
|
205
|
-
|
|
205
|
+
// Para strings (texto e data), verificar se não está vazio
|
|
206
|
+
if (typeof value === "string") return value.trim() !== "";
|
|
206
207
|
if (typeof value === "object") {
|
|
207
208
|
// biome-ignore lint/suspicious/noExplicitAny: <any>
|
|
208
209
|
const val = value;
|
|
210
|
+
// Para DateRange, verificar se tem from ou to
|
|
209
211
|
if ("from" in val || "to" in val) {
|
|
210
212
|
return Boolean(val.from || val.to);
|
|
211
213
|
}
|
|
@@ -243,14 +245,22 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
243
245
|
if (Array.isArray(value)) {
|
|
244
246
|
return value.length === 0;
|
|
245
247
|
}
|
|
246
|
-
// Para strings (texto), verificar se não está vazio
|
|
248
|
+
// Para strings (texto e data), verificar se não está vazio
|
|
247
249
|
if (typeof value === "string") {
|
|
248
250
|
return value.trim() === "";
|
|
249
251
|
}
|
|
250
|
-
// Para objetos
|
|
252
|
+
// Para objetos (numeric_range ou dateRange), verificar se tem valor
|
|
251
253
|
if (typeof value === "object" && value !== null) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
// Verificar se é NumericFilterValue
|
|
255
|
+
if ("value" in value && "operator" in value) {
|
|
256
|
+
const numericValue = value;
|
|
257
|
+
return numericValue.value === null || numericValue.value === undefined || String(numericValue.value) === "";
|
|
258
|
+
}
|
|
259
|
+
// Verificar se é DateRange
|
|
260
|
+
if ("from" in value || "to" in value) {
|
|
261
|
+
const dateRange = value;
|
|
262
|
+
return !dateRange.from && !dateRange.to;
|
|
263
|
+
}
|
|
254
264
|
}
|
|
255
265
|
return value === null || value === "";
|
|
256
266
|
});
|
|
@@ -263,14 +273,22 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
263
273
|
if (Array.isArray(value)) {
|
|
264
274
|
return value.length > 0;
|
|
265
275
|
}
|
|
266
|
-
// Para strings (texto), verificar se não está vazio
|
|
276
|
+
// Para strings (texto e data), verificar se não está vazio
|
|
267
277
|
if (typeof value === "string") {
|
|
268
278
|
return value.trim() !== "";
|
|
269
279
|
}
|
|
270
|
-
// Para objetos
|
|
280
|
+
// Para objetos (numeric_range ou dateRange), verificar se tem valor
|
|
271
281
|
if (typeof value === "object" && value !== null) {
|
|
272
|
-
|
|
273
|
-
|
|
282
|
+
// Verificar se é NumericFilterValue
|
|
283
|
+
if ("value" in value && "operator" in value) {
|
|
284
|
+
const numericValue = value;
|
|
285
|
+
return numericValue.value !== null && numericValue.value !== undefined && String(numericValue.value) !== "";
|
|
286
|
+
}
|
|
287
|
+
// Verificar se é DateRange
|
|
288
|
+
if ("from" in value || "to" in value) {
|
|
289
|
+
const dateRange = value;
|
|
290
|
+
return Boolean(dateRange.from || dateRange.to);
|
|
291
|
+
}
|
|
274
292
|
}
|
|
275
293
|
// Para números simples, aceitar 0 como válido
|
|
276
294
|
if (typeof value === "number") {
|
|
@@ -289,6 +307,13 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
289
307
|
if (typeof filterValue === "string" && filterValue.trim() === "") {
|
|
290
308
|
filterValue = undefined;
|
|
291
309
|
}
|
|
310
|
+
// Para objetos DateRange vazios, definir como undefined
|
|
311
|
+
if (typeof filterValue === "object" && filterValue !== null && "from" in filterValue && "to" in filterValue) {
|
|
312
|
+
const dateRange = filterValue;
|
|
313
|
+
if (!dateRange.from && !dateRange.to) {
|
|
314
|
+
filterValue = undefined;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
292
317
|
column.setFilterValue(filterValue);
|
|
293
318
|
}
|
|
294
319
|
}
|
|
@@ -296,6 +321,11 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
296
321
|
if (setAppliedFiltersCount) {
|
|
297
322
|
setAppliedFiltersCount(count);
|
|
298
323
|
}
|
|
324
|
+
// Chamar callback de aplicar filtros (para filtragem server-side)
|
|
325
|
+
// Só chama se onApplyFilters existir e data for válido
|
|
326
|
+
if (onApplyFilters && data) {
|
|
327
|
+
onApplyFilters(data);
|
|
328
|
+
}
|
|
299
329
|
};
|
|
300
330
|
const handleOpenChange = (open)=>{
|
|
301
331
|
if (!open) {
|
|
@@ -403,7 +433,7 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
403
433
|
className: "flex flex-wrap items-center gap-2"
|
|
404
434
|
}, options.map((option)=>/*#__PURE__*/ React__default.createElement(FormControl, {
|
|
405
435
|
key: option.value,
|
|
406
|
-
className: "mt-2"
|
|
436
|
+
className: cn("mt-2", style === "badge" && "flex-1/4")
|
|
407
437
|
}, /*#__PURE__*/ React__default.createElement(Label, null, /*#__PURE__*/ React__default.createElement(Checkbox, {
|
|
408
438
|
checked: Array.isArray(field.value) && field.value.includes(option.value),
|
|
409
439
|
onCheckedChange: (checked)=>{
|
|
@@ -417,7 +447,7 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
417
447
|
},
|
|
418
448
|
className: cn("border-destructive size-4 border", style === "badge" && "sr-only")
|
|
419
449
|
}), style === "badge" ? /*#__PURE__*/ React__default.createElement(Badge, {
|
|
420
|
-
variant: "secondary",
|
|
450
|
+
variant: Array.isArray(field.value) && field.value.includes(option.value) ? "default" : "secondary",
|
|
421
451
|
className: cn("flex cursor-pointer gap-2 rounded-md px-4 py-2 text-sm")
|
|
422
452
|
}, option.icon, option.label) : option.label))), /*#__PURE__*/ React__default.createElement(Separator, {
|
|
423
453
|
className: "mt-4"
|