ivt 0.8.0 → 0.8.2
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 +13 -13
- package/dist/accordion-table/index.mjs +25 -25
- package/dist/alert/index.mjs +3 -3
- package/dist/alert-dialog/index.mjs +15 -15
- package/dist/auto-complete-multi-select/index.mjs +31 -31
- package/dist/avatar/index.mjs +5 -5
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +5 -3
- package/dist/base/index.mjs +55 -55
- package/dist/breadcrumb/index.mjs +5 -5
- package/dist/button/index.mjs +3 -3
- package/dist/button-group/index.mjs +3 -3
- 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 +12 -12
- package/dist/chunks/{CalendarPopover-Jv5DtYJL.mjs → CalendarPopover-CgI8fWir.mjs} +14 -14
- package/dist/chunks/{CalendarPopover-Jv5DtYJL.mjs.map → CalendarPopover-CgI8fWir.mjs.map} +1 -1
- package/dist/chunks/{CalendarRange-CvHRuAFg.mjs → CalendarRange-BXw3oKg2.mjs} +89 -20
- package/dist/chunks/CalendarRange-BXw3oKg2.mjs.map +1 -0
- package/dist/chunks/{ComboboxField-20dI3lDY.mjs → ComboboxField-D0UNK7tu.mjs} +9 -9
- package/dist/chunks/{ComboboxField-20dI3lDY.mjs.map → ComboboxField-D0UNK7tu.mjs.map} +1 -1
- package/dist/chunks/{Container-ovOp1KHh.mjs → Container-B8xT82ak.mjs} +2 -2
- package/dist/chunks/{Container-ovOp1KHh.mjs.map → Container-B8xT82ak.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-8baDfv_e.mjs → DeleteConfirmationModal-DZnfk6jI.mjs} +4 -4
- package/dist/chunks/{DeleteConfirmationModal-8baDfv_e.mjs.map → DeleteConfirmationModal-DZnfk6jI.mjs.map} +1 -1
- package/dist/chunks/{ListItem-CgT3jeGN.mjs → ListItem-D-9IL02i.mjs} +4 -4
- package/dist/chunks/{ListItem-CgT3jeGN.mjs.map → ListItem-D-9IL02i.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-BI_x_wCF.mjs → TooltipIndicator-CxutRacl.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-BI_x_wCF.mjs.map → TooltipIndicator-CxutRacl.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-DeLy3UO0.mjs → _commonjsHelpers-Cvv4G-WK.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-Cvv4G-WK.mjs.map +1 -0
- package/dist/chunks/{accordion-knOIBS_4.mjs → accordion-D6RZaWOs.mjs} +9 -9
- package/dist/chunks/{accordion-knOIBS_4.mjs.map → accordion-D6RZaWOs.mjs.map} +1 -1
- package/dist/chunks/{alert-CGsBCDrY.mjs → alert-DdnxYvWE.mjs} +2 -2
- package/dist/chunks/{alert-CGsBCDrY.mjs.map → alert-DdnxYvWE.mjs.map} +1 -1
- package/dist/chunks/{badge-BqxN6L_n.mjs → badge-e9FlhbZG.mjs} +2 -2
- package/dist/chunks/{badge-BqxN6L_n.mjs.map → badge-e9FlhbZG.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-CU6q3BA5.mjs → bundle-mjs-DXRXWAZP.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-CU6q3BA5.mjs.map → bundle-mjs-DXRXWAZP.mjs.map} +1 -1
- package/dist/chunks/{button-DVC65cB7.mjs → button-JvO-Yoz8.mjs} +2 -2
- package/dist/chunks/{button-DVC65cB7.mjs.map → button-JvO-Yoz8.mjs.map} +1 -1
- package/dist/chunks/{calendar-D6hoktl0.mjs → calendar-DNpvnGAf.mjs} +8 -8
- package/dist/chunks/{calendar-D6hoktl0.mjs.map → calendar-DNpvnGAf.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-Cd2WVgBN.mjs → calendar-days-BMnJ9l_C.mjs} +2 -2
- package/dist/chunks/{calendar-days-Cd2WVgBN.mjs.map → calendar-days-BMnJ9l_C.mjs.map} +1 -1
- package/dist/chunks/{card-cSIzKMIR.mjs → card-BtdzqMp4.mjs} +2 -2
- package/dist/chunks/{card-cSIzKMIR.mjs.map → card-BtdzqMp4.mjs.map} +1 -1
- package/dist/chunks/{check-DSiHPkp7.mjs → check-DEhwj6Al.mjs} +2 -2
- package/dist/chunks/{check-DSiHPkp7.mjs.map → check-DEhwj6Al.mjs.map} +1 -1
- package/dist/chunks/{checkbox-CrjmkAKW.mjs → checkbox-BbHzfxQ9.mjs} +9 -9
- package/dist/chunks/{checkbox-CrjmkAKW.mjs.map → checkbox-BbHzfxQ9.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-BoCGZarH.mjs → chevron-down-DyDVUUJG.mjs} +2 -2
- package/dist/chunks/{chevron-down-BoCGZarH.mjs.map → chevron-down-DyDVUUJG.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-6HkYwJhz.mjs → chevron-left-k6SfavFD.mjs} +2 -2
- package/dist/chunks/{chevron-left-6HkYwJhz.mjs.map → chevron-left-k6SfavFD.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-CS62g5Sl.mjs → chevron-right-5U1hONwP.mjs} +2 -2
- package/dist/chunks/{chevron-right-CS62g5Sl.mjs.map → chevron-right-5U1hONwP.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-_JuRHx41.mjs → chevrons-up-down-DnZtt-_l.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-_JuRHx41.mjs.map → chevrons-up-down-DnZtt-_l.mjs.map} +1 -1
- package/dist/chunks/{command-CZh5UHdo.mjs → command-BDTO2cfw.mjs} +8 -8
- package/dist/chunks/{command-CZh5UHdo.mjs.map → command-BDTO2cfw.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-D8CrPx3l.mjs → createLucideIcon-2SUCH87i.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-D8CrPx3l.mjs.map → createLucideIcon-2SUCH87i.mjs.map} +1 -1
- package/dist/chunks/{date-ZOdK1brW.mjs → date-DrBEm7EU.mjs} +33 -12
- package/dist/chunks/{date-ZOdK1brW.mjs.map → date-DrBEm7EU.mjs.map} +1 -1
- package/dist/chunks/date-picker-Cdfhwwt-.mjs +44 -0
- package/dist/chunks/date-picker-Cdfhwwt-.mjs.map +1 -0
- package/dist/chunks/{dialog-CYSGHwic.mjs → dialog-CNJ69a9m.mjs} +4 -4
- package/dist/chunks/{dialog-CYSGHwic.mjs.map → dialog-CNJ69a9m.mjs.map} +1 -1
- package/dist/chunks/{ellipsis--m7d4rNF.mjs → ellipsis-gwVeGior.mjs} +2 -2
- package/dist/chunks/{ellipsis--m7d4rNF.mjs.map → ellipsis-gwVeGior.mjs.map} +1 -1
- package/dist/chunks/{form-CW-yu519.mjs → form-DYI1Fsbh.mjs} +3 -3
- package/dist/chunks/{form-CW-yu519.mjs.map → form-DYI1Fsbh.mjs.map} +1 -1
- package/dist/chunks/{format-B3szZANA.mjs → format-H6PbTjCv.mjs} +1 -1
- package/dist/chunks/{format-B3szZANA.mjs.map → format-H6PbTjCv.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-CzkVKQnb.mjs → format-numbers-CiXD1fpX.mjs} +1 -1
- package/dist/chunks/{format-numbers-CzkVKQnb.mjs.map → format-numbers-CiXD1fpX.mjs.map} +1 -1
- package/dist/chunks/{hover-card-B7w2Wdtk.mjs → hover-card-CKiTCy_x.mjs} +9 -9
- package/dist/chunks/{hover-card-B7w2Wdtk.mjs.map → hover-card-CKiTCy_x.mjs.map} +1 -1
- package/dist/chunks/{index-BriCEER7.mjs → index-4V1R6N_e.mjs} +13 -13
- package/dist/chunks/{index-BriCEER7.mjs.map → index-4V1R6N_e.mjs.map} +1 -1
- package/dist/chunks/{index-DmuOZtkO.mjs → index-B-SuNoHt.mjs} +1 -1
- package/dist/chunks/{index-DmuOZtkO.mjs.map → index-B-SuNoHt.mjs.map} +1 -1
- package/dist/chunks/{index-swVjGZ84.mjs → index-B3sVlKu2.mjs} +2 -2
- package/dist/chunks/{index-swVjGZ84.mjs.map → index-B3sVlKu2.mjs.map} +1 -1
- package/dist/chunks/{index-BvAnPBN5.mjs → index-BEqgxQjn.mjs} +7 -7
- package/dist/chunks/{index-BvAnPBN5.mjs.map → index-BEqgxQjn.mjs.map} +1 -1
- package/dist/chunks/{index-F5Q_HsuL.mjs → index-Bfkb7tIT.mjs} +9 -9
- package/dist/chunks/{index-F5Q_HsuL.mjs.map → index-Bfkb7tIT.mjs.map} +1 -1
- package/dist/chunks/{index-BAPHzVtC.mjs → index-BmVkVcuf.mjs} +6 -6
- package/dist/chunks/{index-BAPHzVtC.mjs.map → index-BmVkVcuf.mjs.map} +1 -1
- package/dist/chunks/{index-Cm_Sx0w9.mjs → index-BsMtsLQL.mjs} +2 -2
- package/dist/chunks/{index-Cm_Sx0w9.mjs.map → index-BsMtsLQL.mjs.map} +1 -1
- package/dist/chunks/{index-CluWUNz-.mjs → index-BzXwqwOh.mjs} +3 -3
- package/dist/chunks/{index-CluWUNz-.mjs.map → index-BzXwqwOh.mjs.map} +1 -1
- package/dist/chunks/{index-B3ak2MKr.mjs → index-C4ARVEo0.mjs} +1 -1
- package/dist/chunks/{index-B3ak2MKr.mjs.map → index-C4ARVEo0.mjs.map} +1 -1
- package/dist/chunks/{index-Cudt6Zq6.mjs → index-C7cwDOgB.mjs} +1 -1
- package/dist/chunks/{index-Cudt6Zq6.mjs.map → index-C7cwDOgB.mjs.map} +1 -1
- package/dist/chunks/{index-MA5snuXo.mjs → index-CAcf0UoZ.mjs} +3 -3
- package/dist/chunks/{index-MA5snuXo.mjs.map → index-CAcf0UoZ.mjs.map} +1 -1
- package/dist/chunks/{index-A8KrKa_3.mjs → index-CHEDvJ0c.mjs} +2 -2
- package/dist/chunks/{index-A8KrKa_3.mjs.map → index-CHEDvJ0c.mjs.map} +1 -1
- package/dist/chunks/{index-F25i7Anb.mjs → index-CXc2kXqI.mjs} +1 -1
- package/dist/chunks/{index-F25i7Anb.mjs.map → index-CXc2kXqI.mjs.map} +1 -1
- package/dist/chunks/{index-WRRU_W7V.mjs → index-CtjNOkEj.mjs} +4 -4
- package/dist/chunks/{index-WRRU_W7V.mjs.map → index-CtjNOkEj.mjs.map} +1 -1
- package/dist/chunks/{index-CwPf2lla.mjs → index-D1sYR4mD.mjs} +7 -7
- package/dist/chunks/{index-CwPf2lla.mjs.map → index-D1sYR4mD.mjs.map} +1 -1
- package/dist/chunks/{index-C21v2ZEV.mjs → index-DNhwaiWj.mjs} +1 -1
- package/dist/chunks/{index-C21v2ZEV.mjs.map → index-DNhwaiWj.mjs.map} +1 -1
- package/dist/chunks/{index-BMgJpAGa.mjs → index-De14TLs5.mjs} +2 -2
- package/dist/chunks/{index-BMgJpAGa.mjs.map → index-De14TLs5.mjs.map} +1 -1
- package/dist/chunks/{index-CYbLRGX3.mjs → index-V8A3cYhN.mjs} +5 -5
- package/dist/chunks/{index-CYbLRGX3.mjs.map → index-V8A3cYhN.mjs.map} +1 -1
- package/dist/chunks/{index--j7S_aJJ.mjs → index-blonoBnM.mjs} +1 -1
- package/dist/chunks/{index--j7S_aJJ.mjs.map → index-blonoBnM.mjs.map} +1 -1
- package/dist/chunks/{index-Dc-XYHvj.mjs → index-fXDdsWwE.mjs} +1 -1
- package/dist/chunks/{index-Dc-XYHvj.mjs.map → index-fXDdsWwE.mjs.map} +1 -1
- package/dist/chunks/{index-CucrelNM.mjs → index-h2UBbLWX.mjs} +1 -1
- package/dist/chunks/{index-CucrelNM.mjs.map → index-h2UBbLWX.mjs.map} +1 -1
- package/dist/chunks/{index.module-CtoGlOtg.mjs → index.module-CEiw3mHu.mjs} +1 -1
- package/dist/chunks/{index.module-CtoGlOtg.mjs.map → index.module-CEiw3mHu.mjs.map} +1 -1
- package/dist/chunks/{input-DEZ4zRTO.mjs → input-BDpiQTHt.mjs} +2 -2
- package/dist/chunks/{input-DEZ4zRTO.mjs.map → input-BDpiQTHt.mjs.map} +1 -1
- package/dist/chunks/{input-otp-D-STVHHs.mjs → input-otp-wwXTyYsk.mjs} +3 -3
- package/dist/chunks/{input-otp-D-STVHHs.mjs.map → input-otp-wwXTyYsk.mjs.map} +1 -1
- package/dist/chunks/{label-PVtPZ-GM.mjs → label-ClKli7la.mjs} +2 -2
- package/dist/chunks/{label-PVtPZ-GM.mjs.map → label-ClKli7la.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-BII92tSL.mjs → loader-circle-BhH2qbA3.mjs} +2 -2
- package/dist/chunks/{loader-circle-BII92tSL.mjs.map → loader-circle-BhH2qbA3.mjs.map} +1 -1
- package/dist/chunks/{menubar-DG0DkaOF.mjs → menubar-BvmNZF6Z.mjs} +11 -11
- package/dist/chunks/{menubar-DG0DkaOF.mjs.map → menubar-BvmNZF6Z.mjs.map} +1 -1
- package/dist/chunks/{multi-select-Cn6GBwTg.mjs → multi-select-Cgr2WyAp.mjs} +13 -13
- package/dist/chunks/{multi-select-Cn6GBwTg.mjs.map → multi-select-Cgr2WyAp.mjs.map} +1 -1
- package/dist/chunks/{pagination-B4vpLdhw.mjs → pagination-BK8E9JDr.mjs} +6 -6
- package/dist/chunks/{pagination-B4vpLdhw.mjs.map → pagination-BK8E9JDr.mjs.map} +1 -1
- package/dist/chunks/{popover-4BgsZTpk.mjs → popover-AUqx-39R.mjs} +11 -11
- package/dist/chunks/{popover-4BgsZTpk.mjs.map → popover-AUqx-39R.mjs.map} +1 -1
- package/dist/chunks/{progress-_CjJdprg.mjs → progress-BLQ-EApM.mjs} +2 -2
- package/dist/chunks/{progress-_CjJdprg.mjs.map → progress-BLQ-EApM.mjs.map} +1 -1
- package/dist/chunks/{radio-group-BnryBrck.mjs → radio-group-BWfTdtBY.mjs} +11 -11
- package/dist/chunks/{radio-group-BnryBrck.mjs.map → radio-group-BWfTdtBY.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-C7kc01hW.mjs → react-number-format.es-BMWP6vI5.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-C7kc01hW.mjs.map → react-number-format.es-BMWP6vI5.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-DXNFrVA9.mjs → scroll-area-DPDf25-Q.mjs} +9 -9
- package/dist/chunks/{scroll-area-DXNFrVA9.mjs.map → scroll-area-DPDf25-Q.mjs.map} +1 -1
- package/dist/chunks/{select-Ho6QMbmu.mjs → select-D-hU3AUX.mjs} +5 -5
- package/dist/chunks/{select-Ho6QMbmu.mjs.map → select-D-hU3AUX.mjs.map} +1 -1
- package/dist/chunks/{separator-CtRAcZlu.mjs → separator-B2OctyXQ.mjs} +2 -2
- package/dist/chunks/{separator-CtRAcZlu.mjs.map → separator-B2OctyXQ.mjs.map} +1 -1
- package/dist/chunks/{sheet-DKA_mlpq.mjs → sheet-A_irLuFu.mjs} +4 -4
- package/dist/chunks/{sheet-DKA_mlpq.mjs.map → sheet-A_irLuFu.mjs.map} +1 -1
- package/dist/chunks/{skeleton-C7fArVLu.mjs → skeleton-DmyhvRep.mjs} +2 -2
- package/dist/chunks/{skeleton-C7fArVLu.mjs.map → skeleton-DmyhvRep.mjs.map} +1 -1
- package/dist/chunks/{slider-BG6RzE4c.mjs → slider-By8mIPrb.mjs} +9 -9
- package/dist/chunks/{slider-BG6RzE4c.mjs.map → slider-By8mIPrb.mjs.map} +1 -1
- package/dist/chunks/{sortable-B6w9KGE_.mjs → sortable-Cv2GNFuR.mjs} +3 -3
- package/dist/chunks/{sortable-B6w9KGE_.mjs.map → sortable-Cv2GNFuR.mjs.map} +1 -1
- package/dist/chunks/{switch-DsPVvx96.mjs → switch-Bv_IiUmz.mjs} +7 -7
- package/dist/chunks/{switch-DsPVvx96.mjs.map → switch-Bv_IiUmz.mjs.map} +1 -1
- package/dist/chunks/{table-CaFiU9We.mjs → table-BKYzxKC_.mjs} +2 -2
- package/dist/chunks/{table-CaFiU9We.mjs.map → table-BKYzxKC_.mjs.map} +1 -1
- package/dist/chunks/{tabs-fAtKfucR.mjs → tabs-D7OyGcOA.mjs} +9 -9
- package/dist/chunks/{tabs-fAtKfucR.mjs.map → tabs-D7OyGcOA.mjs.map} +1 -1
- package/dist/chunks/{textarea-tq3jA-Zq.mjs → textarea-D0G7C_GA.mjs} +2 -2
- package/dist/chunks/{textarea-tq3jA-Zq.mjs.map → textarea-D0G7C_GA.mjs.map} +1 -1
- package/dist/chunks/{toast-NTwN0K5O.mjs → toast-BC41PBzL.mjs} +12 -12
- package/dist/chunks/{toast-NTwN0K5O.mjs.map → toast-BC41PBzL.mjs.map} +1 -1
- package/dist/chunks/{toggle-DtFnx1x6.mjs → toggle-CO9wXRSM.mjs} +4 -4
- package/dist/chunks/{toggle-DtFnx1x6.mjs.map → toggle-CO9wXRSM.mjs.map} +1 -1
- package/dist/chunks/{tooltip-DUrjZ695.mjs → tooltip-CNJAStsQ.mjs} +11 -11
- package/dist/chunks/{tooltip-DUrjZ695.mjs.map → tooltip-CNJAStsQ.mjs.map} +1 -1
- package/dist/chunks/{trash-2-Bo2rb-uN.mjs → trash-2-CJoy_LlU.mjs} +2 -2
- package/dist/chunks/{trash-2-Bo2rb-uN.mjs.map → trash-2-CJoy_LlU.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-D1D3ikvl.mjs → triangle-alert-DP0g-dj4.mjs} +2 -2
- package/dist/chunks/{triangle-alert-D1D3ikvl.mjs.map → triangle-alert-DP0g-dj4.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-iEi2b-Nf.mjs → tslib.es6-Crl4X9Q4.mjs} +1 -1
- package/dist/chunks/{tslib.es6-iEi2b-Nf.mjs.map → tslib.es6-Crl4X9Q4.mjs.map} +1 -1
- package/dist/chunks/{use-toast-BvcpqHAq.mjs → use-toast-CnY1RKwU.mjs} +1 -1
- package/dist/chunks/{use-toast-BvcpqHAq.mjs.map → use-toast-CnY1RKwU.mjs.map} +1 -1
- package/dist/chunks/{utils-DnO0vXjp.mjs → utils-B_sWPs4g.mjs} +2 -2
- package/dist/chunks/{utils-DnO0vXjp.mjs.map → utils-B_sWPs4g.mjs.map} +1 -1
- package/dist/chunks/{wand-sparkles-Bx5B6895.mjs → wand-sparkles-CVlsOT9w.mjs} +2 -2
- package/dist/chunks/{wand-sparkles-Bx5B6895.mjs.map → wand-sparkles-CVlsOT9w.mjs.map} +1 -1
- package/dist/chunks/{x-BdsvQvnu.mjs → x-C7dRzGcQ.mjs} +2 -2
- package/dist/chunks/{x-BdsvQvnu.mjs.map → x-C7dRzGcQ.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +7 -7
- package/dist/combobox/index.mjs +24 -24
- package/dist/command/index.mjs +18 -18
- package/dist/context-menu/index.mjs +21 -21
- package/dist/dash/index.mjs +23 -23
- package/dist/data-table/index.mjs +33 -33
- package/dist/date-picker/index.mjs +29 -63
- package/dist/date-picker/index.mjs.map +1 -1
- package/dist/dialog/index.mjs +17 -17
- package/dist/drawer/index.mjs +14 -14
- package/dist/dropdown-menu/index.mjs +21 -21
- package/dist/dropzone/index.mjs +17 -17
- package/dist/editable-table/index.mjs +18 -18
- package/dist/empty/index.mjs +2 -2
- package/dist/field/index.mjs +4 -4
- package/dist/form/index.mjs +4 -4
- package/dist/form-fields/index.mjs +26 -26
- package/dist/form-layout/index.d.ts +1 -0
- package/dist/form-layout/index.mjs +65 -64
- package/dist/form-layout/index.mjs.map +1 -1
- package/dist/hover-card/index.mjs +13 -13
- 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 +4 -4
- package/dist/item/index.mjs +3 -3
- package/dist/ivt.css +1 -1
- package/dist/kbd/index.mjs +2 -2
- package/dist/label/index.mjs +3 -3
- package/dist/layout/index.mjs +21 -21
- package/dist/menubar/index.mjs +22 -22
- package/dist/multi-input-list/index.mjs +28 -28
- package/dist/multi-select/index.mjs +31 -31
- package/dist/navigation-menu/index.mjs +15 -15
- package/dist/pagination/index.mjs +8 -8
- package/dist/popover/index.mjs +16 -16
- package/dist/progress/index.mjs +3 -3
- package/dist/radio-group/index.mjs +16 -16
- package/dist/resizable/index.mjs +3 -3
- package/dist/scroll-area/index.mjs +10 -10
- package/dist/select/index.mjs +6 -6
- package/dist/separator/index.mjs +3 -3
- package/dist/shared/index.mjs +5 -5
- package/dist/sheet/index.mjs +17 -17
- package/dist/sidebar/index.mjs +25 -25
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.mjs +11 -11
- package/dist/sortable/index.mjs +4 -4
- package/dist/spinner/index.mjs +4 -4
- package/dist/switch/index.mjs +9 -9
- package/dist/table/index.mjs +3 -3
- package/dist/table-filter/index.d.ts +1 -1
- package/dist/table-filter/index.mjs +70 -77
- package/dist/table-filter/index.mjs.map +1 -1
- package/dist/tabs/index.mjs +12 -12
- package/dist/textarea/index.mjs +3 -3
- package/dist/toast/index.mjs +14 -14
- package/dist/toaster/index.mjs +15 -15
- package/dist/toggle/index.mjs +6 -6
- package/dist/toggle-group/index.mjs +11 -11
- package/dist/tooltip/index.mjs +15 -15
- package/package.json +1 -1
- package/dist/chunks/CalendarRange-CvHRuAFg.mjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-DeLy3UO0.mjs.map +0 -1
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-DmyhvRep.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/utils-
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import '../chunks/utils-B_sWPs4g.mjs';
|
|
4
|
+
import '../chunks/bundle-mjs-DXRXWAZP.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-B8xT82ak.mjs';
|
|
3
|
+
import { S as Skeleton } from '../chunks/skeleton-DmyhvRep.mjs';
|
|
4
|
+
import '../chunks/utils-B_sWPs4g.mjs';
|
|
5
|
+
import '../chunks/bundle-mjs-DXRXWAZP.mjs';
|
|
6
6
|
|
|
7
7
|
const FormSkeleton = ({ count = 4 })=>{
|
|
8
8
|
return /*#__PURE__*/ React__default.createElement("div", {
|
package/dist/slider/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { S as Slider } from '../chunks/slider-
|
|
1
|
+
export { S as Slider } from '../chunks/slider-By8mIPrb.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/index-
|
|
4
|
-
import '../chunks/index-
|
|
3
|
+
import '../chunks/index-fXDdsWwE.mjs';
|
|
4
|
+
import '../chunks/index-CXc2kXqI.mjs';
|
|
5
5
|
import 'react-dom';
|
|
6
6
|
import '@radix-ui/react-slot';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
8
|
+
import '../chunks/index-C7cwDOgB.mjs';
|
|
9
|
+
import '../chunks/index-De14TLs5.mjs';
|
|
10
|
+
import '../chunks/index-DNhwaiWj.mjs';
|
|
11
|
+
import '../chunks/index-blonoBnM.mjs';
|
|
12
|
+
import '../chunks/index-h2UBbLWX.mjs';
|
|
13
|
+
import '../chunks/index-CHEDvJ0c.mjs';
|
|
14
14
|
import '@radix-ui/react-collection';
|
|
15
|
-
import '../chunks/utils-
|
|
16
|
-
import '../chunks/bundle-mjs-
|
|
15
|
+
import '../chunks/utils-B_sWPs4g.mjs';
|
|
16
|
+
import '../chunks/bundle-mjs-DXRXWAZP.mjs';
|
|
17
17
|
//# sourceMappingURL=index.mjs.map
|
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-Cv2GNFuR.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-B_sWPs4g.mjs';
|
|
6
|
+
import '../chunks/bundle-mjs-DXRXWAZP.mjs';
|
|
7
|
+
import '../chunks/button-JvO-Yoz8.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-B_sWPs4g.mjs';
|
|
2
|
+
import { L as LoaderCircle } from '../chunks/loader-circle-BhH2qbA3.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-DXRXWAZP.mjs';
|
|
4
|
+
import '../chunks/createLucideIcon-2SUCH87i.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
7
|
function Spinner({ className, ...props }) {
|
package/dist/switch/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { S as Switch } from '../chunks/switch-
|
|
1
|
+
export { S as Switch } from '../chunks/switch-Bv_IiUmz.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/index-
|
|
3
|
+
import '../chunks/index-CXc2kXqI.mjs';
|
|
4
4
|
import 'react-dom';
|
|
5
5
|
import '@radix-ui/react-slot';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
|
-
import '../chunks/index-
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/utils-
|
|
13
|
-
import '../chunks/bundle-mjs-
|
|
7
|
+
import '../chunks/index-C7cwDOgB.mjs';
|
|
8
|
+
import '../chunks/index-De14TLs5.mjs';
|
|
9
|
+
import '../chunks/index-DNhwaiWj.mjs';
|
|
10
|
+
import '../chunks/index-h2UBbLWX.mjs';
|
|
11
|
+
import '../chunks/index-CHEDvJ0c.mjs';
|
|
12
|
+
import '../chunks/utils-B_sWPs4g.mjs';
|
|
13
|
+
import '../chunks/bundle-mjs-DXRXWAZP.mjs';
|
|
14
14
|
//# sourceMappingURL=index.mjs.map
|
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-BKYzxKC_.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/utils-
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import '../chunks/utils-B_sWPs4g.mjs';
|
|
4
|
+
import '../chunks/bundle-mjs-DXRXWAZP.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -77,7 +77,7 @@ type NumericFilterValue = {
|
|
|
77
77
|
value: number | null;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
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;
|
|
80
|
+
declare function TableFilter<TData, TSchema extends ZodObject<any>>({ table, defaultSide, disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, onApplyFilters, badgeMultiselectVariant, badgeMultiselectSubtle, prepareFilterStorage, }: TableFilterProps<TData, TSchema>): react_jsx_runtime.JSX.Element;
|
|
81
81
|
|
|
82
82
|
export { TableFilter };
|
|
83
83
|
export type { DefaultFilterSide, FieldConfig, FieldFilterType, NumericFilterValue, Operator, TableFilterBaseProps, TableFilterProps };
|
|
@@ -1,59 +1,60 @@
|
|
|
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-DYI1Fsbh.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 {
|
|
6
|
-
import { c as formatNumberWithComma, a as styleInput, d 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 {
|
|
10
|
-
import { C as ComboboxField } from '../chunks/ComboboxField-
|
|
11
|
-
import { M as MultiSelect } from '../chunks/multi-select-
|
|
12
|
-
import { B as Button } from '../chunks/button-
|
|
13
|
-
import { B as Badge } from '../chunks/badge-
|
|
14
|
-
import { S as ScrollArea } from '../chunks/scroll-area-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { C as
|
|
20
|
-
import { S as
|
|
21
|
-
import {
|
|
22
|
-
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-Ho6QMbmu.mjs';
|
|
23
|
-
import { I as Input } from '../chunks/input-DEZ4zRTO.mjs';
|
|
3
|
+
import { N as NumericFormat, P as PatternFormat } from '../chunks/react-number-format.es-BMWP6vI5.mjs';
|
|
4
|
+
import { c as cn } from '../chunks/utils-B_sWPs4g.mjs';
|
|
5
|
+
import { a as tryParseDateFilter } from '../chunks/date-DrBEm7EU.mjs';
|
|
6
|
+
import { c as formatNumberWithComma, a as styleInput, d as styleSelect } from '../chunks/format-numbers-CiXD1fpX.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-A_irLuFu.mjs';
|
|
8
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-2SUCH87i.mjs';
|
|
9
|
+
import { D as DatePicker } from '../chunks/date-picker-Cdfhwwt-.mjs';
|
|
10
|
+
import { C as ComboboxField } from '../chunks/ComboboxField-D0UNK7tu.mjs';
|
|
11
|
+
import { M as MultiSelect } from '../chunks/multi-select-Cgr2WyAp.mjs';
|
|
12
|
+
import { B as Button } from '../chunks/button-JvO-Yoz8.mjs';
|
|
13
|
+
import { B as Badge } from '../chunks/badge-e9FlhbZG.mjs';
|
|
14
|
+
import { S as ScrollArea } from '../chunks/scroll-area-DPDf25-Q.mjs';
|
|
15
|
+
import { f as format } from '../chunks/format-H6PbTjCv.mjs';
|
|
16
|
+
import { L as Label } from '../chunks/label-ClKli7la.mjs';
|
|
17
|
+
import { C as Checkbox } from '../chunks/checkbox-BbHzfxQ9.mjs';
|
|
18
|
+
import { S as Separator } from '../chunks/separator-B2OctyXQ.mjs';
|
|
19
|
+
import { C as CalendarRange } from '../chunks/CalendarRange-BXw3oKg2.mjs';
|
|
20
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-D-hU3AUX.mjs';
|
|
21
|
+
import { I as Input } from '../chunks/input-BDpiQTHt.mjs';
|
|
24
22
|
import '@radix-ui/react-slot';
|
|
25
|
-
import '../chunks/bundle-mjs-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
23
|
+
import '../chunks/bundle-mjs-DXRXWAZP.mjs';
|
|
24
|
+
import '../chunks/index-Bfkb7tIT.mjs';
|
|
25
|
+
import '../chunks/index-CXc2kXqI.mjs';
|
|
28
26
|
import 'react-dom';
|
|
29
27
|
import 'react/jsx-runtime';
|
|
30
|
-
import '../chunks/index-
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/index-
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/index-
|
|
36
|
-
import '../chunks/index-
|
|
37
|
-
import '../chunks/tslib.es6-
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/index-
|
|
40
|
-
import '../chunks/x-
|
|
41
|
-
import '../chunks/
|
|
42
|
-
import '../chunks/
|
|
43
|
-
import '../chunks/
|
|
44
|
-
import '../chunks/
|
|
28
|
+
import '../chunks/index-C7cwDOgB.mjs';
|
|
29
|
+
import '../chunks/index-B3sVlKu2.mjs';
|
|
30
|
+
import '../chunks/index-DNhwaiWj.mjs';
|
|
31
|
+
import '../chunks/index-De14TLs5.mjs';
|
|
32
|
+
import '../chunks/index-CtjNOkEj.mjs';
|
|
33
|
+
import '../chunks/index-C4ARVEo0.mjs';
|
|
34
|
+
import '../chunks/index-V8A3cYhN.mjs';
|
|
35
|
+
import '../chunks/tslib.es6-Crl4X9Q4.mjs';
|
|
36
|
+
import '../chunks/index-CAcf0UoZ.mjs';
|
|
37
|
+
import '../chunks/index-BzXwqwOh.mjs';
|
|
38
|
+
import '../chunks/x-C7dRzGcQ.mjs';
|
|
39
|
+
import '../chunks/calendar-days-BMnJ9l_C.mjs';
|
|
40
|
+
import '../chunks/calendar-DNpvnGAf.mjs';
|
|
41
|
+
import '../chunks/chevron-left-k6SfavFD.mjs';
|
|
42
|
+
import '../chunks/chevron-right-5U1hONwP.mjs';
|
|
43
|
+
import '../chunks/chevron-down-DyDVUUJG.mjs';
|
|
44
|
+
import '../chunks/popover-AUqx-39R.mjs';
|
|
45
|
+
import '../chunks/index-BmVkVcuf.mjs';
|
|
46
|
+
import '../chunks/index-CHEDvJ0c.mjs';
|
|
47
|
+
import '../chunks/chevrons-up-down-DnZtt-_l.mjs';
|
|
48
|
+
import '../chunks/check-DEhwj6Al.mjs';
|
|
49
|
+
import '../chunks/command-BDTO2cfw.mjs';
|
|
50
|
+
import '../chunks/dialog-CNJ69a9m.mjs';
|
|
45
51
|
import 'class-variance-authority';
|
|
46
|
-
import '../chunks/wand-sparkles-
|
|
47
|
-
import '../chunks/tooltip-
|
|
48
|
-
import '../chunks/index-
|
|
49
|
-
import '../chunks/index-
|
|
50
|
-
import '../chunks/index-
|
|
51
|
-
import '../chunks/index
|
|
52
|
-
import '../chunks/index-Dc-XYHvj.mjs';
|
|
53
|
-
import '../chunks/chevron-left-6HkYwJhz.mjs';
|
|
54
|
-
import '../chunks/chevron-right-CS62g5Sl.mjs';
|
|
55
|
-
import '../chunks/chevron-down-BoCGZarH.mjs';
|
|
56
|
-
import '../chunks/index-CucrelNM.mjs';
|
|
52
|
+
import '../chunks/wand-sparkles-CVlsOT9w.mjs';
|
|
53
|
+
import '../chunks/tooltip-CNJAStsQ.mjs';
|
|
54
|
+
import '../chunks/index-BsMtsLQL.mjs';
|
|
55
|
+
import '../chunks/index-blonoBnM.mjs';
|
|
56
|
+
import '../chunks/index-fXDdsWwE.mjs';
|
|
57
|
+
import '../chunks/index-h2UBbLWX.mjs';
|
|
57
58
|
import '@radix-ui/react-select';
|
|
58
59
|
|
|
59
60
|
const __iconNode = [
|
|
@@ -167,8 +168,7 @@ function s(o$1, s, t) {
|
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
170
|
|
|
170
|
-
|
|
171
|
-
function TableFilter({ table, defaultSide = "right", disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount = 0, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, onApplyFilters, badgeMultiselectVariant = "default", badgeMultiselectSubtle = false }) {
|
|
171
|
+
function TableFilter({ table, defaultSide = "right", disabled, title, schema, fieldConfigs, defaultFilterValues, appliedFiltersCount = 0, setAppliedFiltersCount, applyFiltersOnMount, onClearFilters, onApplyFilters, badgeMultiselectVariant = "default", badgeMultiselectSubtle = false, prepareFilterStorage }) {
|
|
172
172
|
React__default.useEffect(()=>{
|
|
173
173
|
for (const { name, filterType } of fieldConfigs){
|
|
174
174
|
const column = table.getColumn(name);
|
|
@@ -203,7 +203,6 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
203
203
|
// Para strings (texto e data), verificar se não está vazio
|
|
204
204
|
if (typeof value === "string") return value.trim() !== "";
|
|
205
205
|
if (typeof value === "object") {
|
|
206
|
-
// biome-ignore lint/suspicious/noExplicitAny: <any>
|
|
207
206
|
const val = value;
|
|
208
207
|
// Para DateRange, verificar se tem from ou to
|
|
209
208
|
if ("from" in val || "to" in val) {
|
|
@@ -237,7 +236,8 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
237
236
|
onClearFilters();
|
|
238
237
|
}
|
|
239
238
|
}, []);
|
|
240
|
-
const handleApplyFilters = (
|
|
239
|
+
const handleApplyFilters = (formValues)=>{
|
|
240
|
+
const data = prepareFilterStorage ? prepareFilterStorage(formValues) : formValues;
|
|
241
241
|
const allFieldsEmpty = Object.entries(data).every(([, value])=>{
|
|
242
242
|
// Para arrays (multiselect), verificar se tem itens
|
|
243
243
|
if (Array.isArray(value)) {
|
|
@@ -295,10 +295,14 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
295
295
|
return value !== null && value !== "";
|
|
296
296
|
});
|
|
297
297
|
if (!hasValues) return;
|
|
298
|
-
for (const { name } of fieldConfigs){
|
|
298
|
+
for (const { name, type } of fieldConfigs){
|
|
299
299
|
const column = table.getColumn(name);
|
|
300
300
|
if (column) {
|
|
301
301
|
let filterValue = data[name];
|
|
302
|
+
// Normalização automática para campos de data
|
|
303
|
+
if (type === "date" && filterValue) {
|
|
304
|
+
filterValue = tryParseDateFilter(filterValue);
|
|
305
|
+
}
|
|
302
306
|
if (Array.isArray(filterValue) && filterValue.length === 0) {
|
|
303
307
|
filterValue = undefined;
|
|
304
308
|
}
|
|
@@ -387,14 +391,13 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
387
391
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
388
392
|
className: "space-y-4 pb-2"
|
|
389
393
|
}, fieldConfigs.map(({ name, label, placeholder, type, allowNegative, isCurrency, isPercent, options, style, items, description, currency })=>/*#__PURE__*/ React__default.createElement(FormField, {
|
|
390
|
-
key: String(name)
|
|
394
|
+
key: `${String(name)}-${clearTrigger}`,
|
|
391
395
|
control: form.control,
|
|
392
396
|
name: name,
|
|
393
397
|
render: ({ field })=>/*#__PURE__*/ React__default.createElement(FormItem, {
|
|
394
398
|
className: "pr-4 pl-1"
|
|
395
399
|
}, /*#__PURE__*/ React__default.createElement(FormLabel, null, label), /*#__PURE__*/ React__default.createElement(FormControl, null, type === "number" ? /*#__PURE__*/ React__default.createElement(NumericFormat, {
|
|
396
400
|
placeholder: placeholder,
|
|
397
|
-
// biome-ignore lint/suspicious/noExplicitAny: <any>
|
|
398
401
|
value: field.value ?? "",
|
|
399
402
|
maxLength: isCurrency ? undefined : 15,
|
|
400
403
|
allowNegative: allowNegative ?? true,
|
|
@@ -410,24 +413,15 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
410
413
|
thousandSeparator: ".",
|
|
411
414
|
suffix: isPercent ? "%" : undefined,
|
|
412
415
|
prefix: currency === "BRL" ? "R$ " : undefined
|
|
413
|
-
}) : type === "date" ? /*#__PURE__*/ React__default.createElement(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
variant: "outline",
|
|
417
|
-
className: cn("text-foreground hover:text-foreground w-full items-center justify-start px-3 text-left font-normal hover:bg-inherit", !field.value && "text-muted-foreground hover:text-muted-foreground")
|
|
418
|
-
}, /*#__PURE__*/ React__default.createElement(CalendarDays, {
|
|
419
|
-
className: "h-4 w-4"
|
|
420
|
-
}), field.value ? formatDateToBrazilian(field.value) : /*#__PURE__*/ React__default.createElement("span", null, "Selecione uma data")))), /*#__PURE__*/ React__default.createElement(PopoverContent, {
|
|
421
|
-
className: "border-switch z-99999999999 mr-12 w-auto p-0"
|
|
422
|
-
}, /*#__PURE__*/ React__default.createElement(Calendar, {
|
|
423
|
-
captionLayout: "dropdown",
|
|
424
|
-
mode: "single",
|
|
425
|
-
locale: ptBR,
|
|
426
|
-
selected: field.value ? parseFieldDate(field.value) : undefined,
|
|
427
|
-
onSelect: (date)=>{
|
|
416
|
+
}) : type === "date" ? /*#__PURE__*/ React__default.createElement(DatePicker, {
|
|
417
|
+
date: field.value,
|
|
418
|
+
setDate: (date)=>{
|
|
428
419
|
field.onChange(date ? format(date, "yyyy-MM-dd") : "");
|
|
429
|
-
}
|
|
430
|
-
|
|
420
|
+
},
|
|
421
|
+
placeholder: placeholder,
|
|
422
|
+
className: "w-full",
|
|
423
|
+
popoverContentClassName: "border-switch z-[99999999999] mr-12"
|
|
424
|
+
}) : type === "checkbox" && options ? /*#__PURE__*/ React__default.createElement("div", {
|
|
431
425
|
className: "flex flex-wrap items-center gap-2"
|
|
432
426
|
}, options.map((option)=>/*#__PURE__*/ React__default.createElement(FormControl, {
|
|
433
427
|
key: option.value,
|
|
@@ -461,7 +455,7 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
461
455
|
field.onChange(unformattedValue);
|
|
462
456
|
}
|
|
463
457
|
}) : type === "dateRange" ? /*#__PURE__*/ React__default.createElement(FormField, {
|
|
464
|
-
key: field.name
|
|
458
|
+
key: `${field.name}-range-${clearTrigger}`,
|
|
465
459
|
control: form.control,
|
|
466
460
|
name: field.name,
|
|
467
461
|
render: ({ field: controller })=>/*#__PURE__*/ React__default.createElement(CalendarRange, {
|
|
@@ -472,7 +466,6 @@ function TableFilter({ table, defaultSide = "right", disabled, title, schema, fi
|
|
|
472
466
|
className: "h-10 w-full"
|
|
473
467
|
})
|
|
474
468
|
}) : type === "select" && items ? /*#__PURE__*/ React__default.createElement(ComboboxField, {
|
|
475
|
-
// biome-ignore lint/suspicious/noExplicitAny: <any>
|
|
476
469
|
value: field.value ?? [],
|
|
477
470
|
onChange: (val)=>field.onChange(val),
|
|
478
471
|
items: items,
|