ivt 0.8.6 → 0.8.7
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 +27 -27
- package/dist/alert/index.mjs +3 -3
- package/dist/alert-dialog/index.mjs +15 -15
- package/dist/auto-complete-multi-select/index.mjs +49 -43
- package/dist/auto-complete-multi-select/index.mjs.map +1 -1
- package/dist/avatar/index.mjs +5 -5
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +53 -7
- package/dist/base/index.mjs +131 -163
- package/dist/base/index.mjs.map +1 -1
- 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 +12 -12
- package/dist/chunks/ButtonActions-BbAuGm_J.mjs +54 -0
- package/dist/chunks/ButtonActions-BbAuGm_J.mjs.map +1 -0
- package/dist/chunks/{CalendarPopover-Dk28a8Qn.mjs → CalendarPopover-DNS2oszG.mjs} +62 -33
- package/dist/chunks/CalendarPopover-DNS2oszG.mjs.map +1 -0
- package/dist/chunks/{CalendarRange-CbhXjWnp.mjs → CalendarRange-BZ-rc5Ns.mjs} +34 -18
- package/dist/chunks/CalendarRange-BZ-rc5Ns.mjs.map +1 -0
- package/dist/chunks/{ComboboxField-eIBC97OK.mjs → ComboboxField-C5LrSTQf.mjs} +9 -9
- package/dist/chunks/{ComboboxField-eIBC97OK.mjs.map → ComboboxField-C5LrSTQf.mjs.map} +1 -1
- package/dist/chunks/{Container-DxWW9WTJ.mjs → Container-qhzI-HED.mjs} +2 -2
- package/dist/chunks/{Container-DxWW9WTJ.mjs.map → Container-qhzI-HED.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-PwsfBFPv.mjs → DeleteConfirmationModal-NPS_J_dT.mjs} +4 -4
- package/dist/chunks/{DeleteConfirmationModal-PwsfBFPv.mjs.map → DeleteConfirmationModal-NPS_J_dT.mjs.map} +1 -1
- package/dist/chunks/ExportButtons-BtYHz3q3.mjs +364 -0
- package/dist/chunks/ExportButtons-BtYHz3q3.mjs.map +1 -0
- package/dist/chunks/{GenericTabs-CtJk8qVb.d.ts → GenericTabs-B6Sm4mwD.d.ts} +7 -2
- package/dist/chunks/{GenericTabs-CHcF7U9y.mjs → GenericTabs-CqunvZEw.mjs} +9 -8
- package/dist/chunks/GenericTabs-CqunvZEw.mjs.map +1 -0
- package/dist/chunks/{ListItem-CoWJkU9U.mjs → ListItem-CtUZSq2i.mjs} +6 -6
- package/dist/chunks/ListItem-CtUZSq2i.mjs.map +1 -0
- package/dist/chunks/ShowSkeleton-DuVLsprm.mjs +72 -0
- package/dist/chunks/ShowSkeleton-DuVLsprm.mjs.map +1 -0
- package/dist/chunks/ShowSkeleton-enwVHCqE.d.ts +12 -0
- package/dist/chunks/StepNavigator-DXnlZUw2.mjs +136 -0
- package/dist/chunks/StepNavigator-DXnlZUw2.mjs.map +1 -0
- package/dist/chunks/{TooltipIndicator-BHCKFiPx.mjs → TooltipIndicator-o_ekzuQD.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-BHCKFiPx.mjs.map → TooltipIndicator-o_ekzuQD.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-Bx7yLjXw.mjs → _commonjsHelpers-DLsfzCcd.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-DLsfzCcd.mjs.map +1 -0
- package/dist/chunks/{accordion-eJ4NoCGZ.mjs → accordion-BcAmhbBS.mjs} +9 -9
- package/dist/chunks/{accordion-eJ4NoCGZ.mjs.map → accordion-BcAmhbBS.mjs.map} +1 -1
- package/dist/chunks/{alert-DgjSAjJE.mjs → alert-Ciu-8LcJ.mjs} +2 -2
- package/dist/chunks/{alert-DgjSAjJE.mjs.map → alert-Ciu-8LcJ.mjs.map} +1 -1
- package/dist/chunks/{badge-B6L7PP2k.mjs → badge-ZU62MOiS.mjs} +2 -2
- package/dist/chunks/{badge-B6L7PP2k.mjs.map → badge-ZU62MOiS.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-BUGtC8WI.mjs → bundle-mjs-CXmmFvYo.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-BUGtC8WI.mjs.map → bundle-mjs-CXmmFvYo.mjs.map} +1 -1
- package/dist/chunks/button-CHGYaAzJ.d.ts +17 -0
- package/dist/chunks/{button-ipHWqubg.mjs → button-CZpmCmNo.mjs} +2 -2
- package/dist/chunks/{button-ipHWqubg.mjs.map → button-CZpmCmNo.mjs.map} +1 -1
- package/dist/chunks/{button-group-1Ufw4ytA.mjs → button-group-ChymO3Hm.mjs} +3 -3
- package/dist/chunks/{button-group-1Ufw4ytA.mjs.map → button-group-ChymO3Hm.mjs.map} +1 -1
- package/dist/chunks/{calendar-bYikS8Dj.mjs → calendar-CDJv1B--.mjs} +7 -7
- package/dist/chunks/{calendar-bYikS8Dj.mjs.map → calendar-CDJv1B--.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-CYxfkz0x.mjs → calendar-days-DnYx8d46.mjs} +2 -2
- package/dist/chunks/{calendar-days-CYxfkz0x.mjs.map → calendar-days-DnYx8d46.mjs.map} +1 -1
- package/dist/chunks/{card-SwKeS_1_.mjs → card-CEohNEru.mjs} +2 -2
- package/dist/chunks/{card-SwKeS_1_.mjs.map → card-CEohNEru.mjs.map} +1 -1
- package/dist/chunks/{check-BcL3DXZb.mjs → check-Ds358kZc.mjs} +2 -2
- package/dist/chunks/{check-BcL3DXZb.mjs.map → check-Ds358kZc.mjs.map} +1 -1
- package/dist/chunks/{checkbox-KwWS11aZ.mjs → checkbox-DvxpZsiG.mjs} +9 -9
- package/dist/chunks/{checkbox-KwWS11aZ.mjs.map → checkbox-DvxpZsiG.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-VVHD7dC4.mjs → chevron-down-CDFTds2-.mjs} +2 -2
- package/dist/chunks/{chevron-down-VVHD7dC4.mjs.map → chevron-down-CDFTds2-.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-alk1ZJbf.mjs → chevron-left-Baq244Ce.mjs} +2 -2
- package/dist/chunks/{chevron-left-alk1ZJbf.mjs.map → chevron-left-Baq244Ce.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-C4T232LB.mjs → chevron-right-Dq6zFe5E.mjs} +2 -2
- package/dist/chunks/{chevron-right-C4T232LB.mjs.map → chevron-right-Dq6zFe5E.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-DOPAGbXb.mjs → chevrons-up-down-CdBVNy4c.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-DOPAGbXb.mjs.map → chevrons-up-down-CdBVNy4c.mjs.map} +1 -1
- package/dist/chunks/combobox-D9iqP8Dp.mjs +103 -0
- package/dist/chunks/combobox-D9iqP8Dp.mjs.map +1 -0
- package/dist/chunks/{command-D6Om1YRG.mjs → command-o67hOCgH.mjs} +10 -10
- package/dist/chunks/command-o67hOCgH.mjs.map +1 -0
- package/dist/chunks/{createLucideIcon-BxEkCUha.mjs → createLucideIcon-C11Tr46U.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BxEkCUha.mjs.map → createLucideIcon-C11Tr46U.mjs.map} +1 -1
- package/dist/chunks/{date-DHdJpggz.mjs → date-Dqmv8Nr4.mjs} +2 -2
- package/dist/chunks/{date-DHdJpggz.mjs.map → date-Dqmv8Nr4.mjs.map} +1 -1
- package/dist/chunks/{date-picker-CrZsqFq1.mjs → date-picker-BBCtT16G.mjs} +13 -13
- package/dist/chunks/date-picker-BBCtT16G.mjs.map +1 -0
- package/dist/chunks/{dialog-DBzJ_Uvh.mjs → dialog-DL1cSseU.mjs} +4 -4
- package/dist/chunks/{dialog-DBzJ_Uvh.mjs.map → dialog-DL1cSseU.mjs.map} +1 -1
- package/dist/chunks/{dropdown-menu-Cl6NFvkg.mjs → dropdown-menu-DnPBut1Q.mjs} +9 -9
- package/dist/chunks/{dropdown-menu-Cl6NFvkg.mjs.map → dropdown-menu-DnPBut1Q.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-DGGGgQfW.mjs → ellipsis-Cn3R-5sm.mjs} +2 -2
- package/dist/chunks/{ellipsis-DGGGgQfW.mjs.map → ellipsis-Cn3R-5sm.mjs.map} +1 -1
- package/dist/chunks/{form-DnPCp-Jr.mjs → form-paAECAsZ.mjs} +3 -3
- package/dist/chunks/{form-DnPCp-Jr.mjs.map → form-paAECAsZ.mjs.map} +1 -1
- package/dist/chunks/{format-DWYRGSuv.mjs → format-8qs-kXlN.mjs} +1 -1
- package/dist/chunks/{format-DWYRGSuv.mjs.map → format-8qs-kXlN.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-CB_euyLQ.mjs → format-numbers-LmnBEQr0.mjs} +1 -1
- package/dist/chunks/{format-numbers-CB_euyLQ.mjs.map → format-numbers-LmnBEQr0.mjs.map} +1 -1
- package/dist/chunks/{hover-card-Bl4vbgQb.mjs → hover-card-Bf6OuOg0.mjs} +9 -9
- package/dist/chunks/{hover-card-Bl4vbgQb.mjs.map → hover-card-Bf6OuOg0.mjs.map} +1 -1
- package/dist/chunks/{index-DHft9BCd.mjs → index-1toTCGyr.mjs} +2 -2
- package/dist/chunks/{index-DHft9BCd.mjs.map → index-1toTCGyr.mjs.map} +1 -1
- package/dist/chunks/{index-alSGOasi.mjs → index-4NpeUekv.mjs} +4 -4
- package/dist/chunks/{index-alSGOasi.mjs.map → index-4NpeUekv.mjs.map} +1 -1
- package/dist/chunks/{index-B61q0y1M.mjs → index-B87m6Bfb.mjs} +6 -6
- package/dist/chunks/{index-B61q0y1M.mjs.map → index-B87m6Bfb.mjs.map} +1 -1
- package/dist/chunks/{index-BcMUIxgo.mjs → index-BJrVyyCQ.mjs} +2 -2
- package/dist/chunks/{index-BcMUIxgo.mjs.map → index-BJrVyyCQ.mjs.map} +1 -1
- package/dist/chunks/{index-CNvEwoN6.mjs → index-BWXpaxmG.mjs} +7 -7
- package/dist/chunks/{index-CNvEwoN6.mjs.map → index-BWXpaxmG.mjs.map} +1 -1
- package/dist/chunks/{index-DxIif-Dg.mjs → index-BksCjWh6.mjs} +3 -3
- package/dist/chunks/{index-DxIif-Dg.mjs.map → index-BksCjWh6.mjs.map} +1 -1
- package/dist/chunks/{index-DVCjbhNa.mjs → index-C8u7IIcP.mjs} +1 -1
- package/dist/chunks/{index-DVCjbhNa.mjs.map → index-C8u7IIcP.mjs.map} +1 -1
- package/dist/chunks/{index-DhPL9ENz.mjs → index-COfEgTJM.mjs} +1 -1
- package/dist/chunks/{index-DhPL9ENz.mjs.map → index-COfEgTJM.mjs.map} +1 -1
- package/dist/chunks/{index-B2krUfsE.mjs → index-CaYwp6E6.mjs} +9 -9
- package/dist/chunks/{index-B2krUfsE.mjs.map → index-CaYwp6E6.mjs.map} +1 -1
- package/dist/chunks/{index-8SOlbV6d.mjs → index-CcmH_f2V.mjs} +1 -1
- package/dist/chunks/{index-8SOlbV6d.mjs.map → index-CcmH_f2V.mjs.map} +1 -1
- package/dist/chunks/{index-BQoxzJyp.mjs → index-D4jPaBZ2.mjs} +1 -1
- package/dist/chunks/{index-BQoxzJyp.mjs.map → index-D4jPaBZ2.mjs.map} +1 -1
- package/dist/chunks/{index-Cwb07MWH.mjs → index-DAa5gqEY.mjs} +2 -2
- package/dist/chunks/{index-Cwb07MWH.mjs.map → index-DAa5gqEY.mjs.map} +1 -1
- package/dist/chunks/{index-Dg_RIZZE.mjs → index-DC-gAYjS.mjs} +1 -1
- package/dist/chunks/{index-Dg_RIZZE.mjs.map → index-DC-gAYjS.mjs.map} +1 -1
- package/dist/chunks/{index-B2dOt1gw.mjs → index-DIHpzffL.mjs} +7 -7
- package/dist/chunks/{index-B2dOt1gw.mjs.map → index-DIHpzffL.mjs.map} +1 -1
- package/dist/chunks/{index-Ct3MZwaI.mjs → index-DfeRLazC.mjs} +3 -3
- package/dist/chunks/{index-Ct3MZwaI.mjs.map → index-DfeRLazC.mjs.map} +1 -1
- package/dist/chunks/{index-DjAgghT8.mjs → index-Dsw02Eup.mjs} +1 -1
- package/dist/chunks/{index-DjAgghT8.mjs.map → index-Dsw02Eup.mjs.map} +1 -1
- package/dist/chunks/{index-CaMrkKTO.mjs → index-PuN-H-VF.mjs} +1 -1
- package/dist/chunks/{index-CaMrkKTO.mjs.map → index-PuN-H-VF.mjs.map} +1 -1
- package/dist/chunks/{index-C7fGMq_n.mjs → index-UxWlwQlk.mjs} +1 -1
- package/dist/chunks/{index-C7fGMq_n.mjs.map → index-UxWlwQlk.mjs.map} +1 -1
- package/dist/chunks/{index-CHk809FF.mjs → index-gX0V59dZ.mjs} +2 -2
- package/dist/chunks/{index-CHk809FF.mjs.map → index-gX0V59dZ.mjs.map} +1 -1
- package/dist/chunks/{index-uXbHxUHA.mjs → index-z4Hk6sF4.mjs} +5 -5
- package/dist/chunks/{index-uXbHxUHA.mjs.map → index-z4Hk6sF4.mjs.map} +1 -1
- package/dist/chunks/{index-B0_Ir2TV.mjs → index-zIaBOKQ3.mjs} +13 -13
- package/dist/chunks/{index-B0_Ir2TV.mjs.map → index-zIaBOKQ3.mjs.map} +1 -1
- package/dist/chunks/{index.module-B0Ca3Gdk.mjs → index.module-Czm-Rcez.mjs} +1 -1
- package/dist/chunks/{index.module-B0Ca3Gdk.mjs.map → index.module-Czm-Rcez.mjs.map} +1 -1
- package/dist/chunks/{input-DIpq60B2.mjs → input-B-W81Xmi.mjs} +2 -2
- package/dist/chunks/{input-DIpq60B2.mjs.map → input-B-W81Xmi.mjs.map} +1 -1
- package/dist/chunks/{input-file-DM9pEX8i.mjs → input-file-BH3SMNJ7.mjs} +6 -6
- package/dist/chunks/{input-file-DM9pEX8i.mjs.map → input-file-BH3SMNJ7.mjs.map} +1 -1
- package/dist/chunks/{input-otp-CtjuBqi3.mjs → input-otp-BNC4E0wv.mjs} +3 -3
- package/dist/chunks/{input-otp-CtjuBqi3.mjs.map → input-otp-BNC4E0wv.mjs.map} +1 -1
- package/dist/chunks/{label-B9lRzjyu.mjs → label-D0iRy8Wj.mjs} +2 -2
- package/dist/chunks/{label-B9lRzjyu.mjs.map → label-D0iRy8Wj.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-CV4eu4xA.mjs → loader-circle-BMRpEmW6.mjs} +2 -2
- package/dist/chunks/{loader-circle-CV4eu4xA.mjs.map → loader-circle-BMRpEmW6.mjs.map} +1 -1
- package/dist/chunks/{menubar-C5dV93NW.mjs → menubar-oWKK9_Ik.mjs} +11 -11
- package/dist/chunks/{menubar-C5dV93NW.mjs.map → menubar-oWKK9_Ik.mjs.map} +1 -1
- package/dist/chunks/{multi-select-DocC2zjT.mjs → multi-select-ILUAJeKL.mjs} +44 -32
- package/dist/chunks/multi-select-ILUAJeKL.mjs.map +1 -0
- package/dist/chunks/{pagination-YSeJIiYY.mjs → pagination-Bx_e3scG.mjs} +6 -6
- package/dist/chunks/{pagination-YSeJIiYY.mjs.map → pagination-Bx_e3scG.mjs.map} +1 -1
- package/dist/chunks/{popover-n7Qp5Vuh.mjs → popover-CdZgcLPo.mjs} +11 -11
- package/dist/chunks/{popover-n7Qp5Vuh.mjs.map → popover-CdZgcLPo.mjs.map} +1 -1
- package/dist/chunks/{progress-D8ptvurb.mjs → progress-e_BEvMwp.mjs} +2 -2
- package/dist/chunks/{progress-D8ptvurb.mjs.map → progress-e_BEvMwp.mjs.map} +1 -1
- package/dist/chunks/{radio-group-Cv9s2DCN.mjs → radio-group-BlSUw5ql.mjs} +11 -11
- package/dist/chunks/{radio-group-Cv9s2DCN.mjs.map → radio-group-BlSUw5ql.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-BJ890ESD.mjs → react-number-format.es-HizMU4ab.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-BJ890ESD.mjs.map → react-number-format.es-HizMU4ab.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-TCq7xsA2.mjs → scroll-area-qiUBme0Q.mjs} +9 -9
- package/dist/chunks/{scroll-area-TCq7xsA2.mjs.map → scroll-area-qiUBme0Q.mjs.map} +1 -1
- package/dist/chunks/{select-H7CGuPw0.mjs → select-BBatgGtL.mjs} +56 -12
- package/dist/chunks/select-BBatgGtL.mjs.map +1 -0
- package/dist/chunks/{separator-NkxldVGm.mjs → separator-DYyhdAi6.mjs} +2 -2
- package/dist/chunks/{separator-NkxldVGm.mjs.map → separator-DYyhdAi6.mjs.map} +1 -1
- package/dist/chunks/{sheet-AxL9T592.mjs → sheet-1Dl0ChJl.mjs} +4 -4
- package/dist/chunks/{sheet-AxL9T592.mjs.map → sheet-1Dl0ChJl.mjs.map} +1 -1
- package/dist/chunks/{skeleton-CU2Dm8Iw.mjs → skeleton-LDpPNYvq.mjs} +2 -2
- package/dist/chunks/{skeleton-CU2Dm8Iw.mjs.map → skeleton-LDpPNYvq.mjs.map} +1 -1
- package/dist/chunks/{slider-B3vRKZLc.mjs → slider-D3yx--Ba.mjs} +9 -9
- package/dist/chunks/{slider-B3vRKZLc.mjs.map → slider-D3yx--Ba.mjs.map} +1 -1
- package/dist/chunks/{sortable-DhQy1UPP.mjs → sortable-CE5SC5JS.mjs} +3 -3
- package/dist/chunks/{sortable-DhQy1UPP.mjs.map → sortable-CE5SC5JS.mjs.map} +1 -1
- package/dist/chunks/string-DRS4HkY8.mjs +71 -0
- package/dist/chunks/string-DRS4HkY8.mjs.map +1 -0
- package/dist/chunks/{styles-TJifgkC0.mjs → styles-lQyUmHf7.mjs} +1 -1
- package/dist/chunks/{styles-TJifgkC0.mjs.map → styles-lQyUmHf7.mjs.map} +1 -1
- package/dist/chunks/{switch-QvQzfy42.mjs → switch-COE1z3YV.mjs} +7 -7
- package/dist/chunks/{switch-QvQzfy42.mjs.map → switch-COE1z3YV.mjs.map} +1 -1
- package/dist/chunks/{table-DZdgO7NC.mjs → table-BzhSKY4n.mjs} +2 -2
- package/dist/chunks/{table-DZdgO7NC.mjs.map → table-BzhSKY4n.mjs.map} +1 -1
- package/dist/chunks/{tabs-BWvk4qHQ.mjs → tabs-B5HgsIWx.mjs} +9 -9
- package/dist/chunks/{tabs-BWvk4qHQ.mjs.map → tabs-B5HgsIWx.mjs.map} +1 -1
- package/dist/chunks/{textarea-DYiDaInd.mjs → textarea-DM2uvcxK.mjs} +2 -2
- package/dist/chunks/{textarea-DYiDaInd.mjs.map → textarea-DM2uvcxK.mjs.map} +1 -1
- package/dist/chunks/{toast-D0PsIgF9.mjs → toast-DfCz10Et.mjs} +12 -12
- package/dist/chunks/{toast-D0PsIgF9.mjs.map → toast-DfCz10Et.mjs.map} +1 -1
- package/dist/chunks/{toggle-BKFdE2bV.mjs → toggle-Du3jnh1s.mjs} +4 -4
- package/dist/chunks/{toggle-BKFdE2bV.mjs.map → toggle-Du3jnh1s.mjs.map} +1 -1
- package/dist/chunks/{tooltip-CAFwKDsn.mjs → tooltip-njN_ok-r.mjs} +11 -11
- package/dist/chunks/{tooltip-CAFwKDsn.mjs.map → tooltip-njN_ok-r.mjs.map} +1 -1
- package/dist/chunks/{trash-2-yllyHd3d.mjs → trash-2-ab4Di2Bx.mjs} +2 -2
- package/dist/chunks/{trash-2-yllyHd3d.mjs.map → trash-2-ab4Di2Bx.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-EAwPzBPO.mjs → triangle-alert-B_tQGpT4.mjs} +2 -2
- package/dist/chunks/{triangle-alert-EAwPzBPO.mjs.map → triangle-alert-B_tQGpT4.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-DhTbpVFO.mjs → tslib.es6-Q9puKanr.mjs} +1 -1
- package/dist/chunks/{tslib.es6-DhTbpVFO.mjs.map → tslib.es6-Q9puKanr.mjs.map} +1 -1
- package/dist/chunks/{upload-lFvmEaEl.mjs → upload-DvgPaJGb.mjs} +2 -2
- package/dist/chunks/{upload-lFvmEaEl.mjs.map → upload-DvgPaJGb.mjs.map} +1 -1
- package/dist/chunks/{use-toast-Db3wq_Xq.mjs → use-toast-CLJJgfL0.mjs} +1 -1
- package/dist/chunks/{use-toast-Db3wq_Xq.mjs.map → use-toast-CLJJgfL0.mjs.map} +1 -1
- package/dist/chunks/{utils-CPJ225se.mjs → utils-BDcRwQMd.mjs} +2 -2
- package/dist/chunks/{utils-CPJ225se.mjs.map → utils-BDcRwQMd.mjs.map} +1 -1
- package/dist/chunks/{wand-sparkles-DgnbuUXs.mjs → wand-sparkles-DqgQle7F.mjs} +2 -2
- package/dist/chunks/{wand-sparkles-DgnbuUXs.mjs.map → wand-sparkles-DqgQle7F.mjs.map} +1 -1
- package/dist/chunks/{x-C2RTSdrs.mjs → x-B6hDJA_l.mjs} +2 -2
- package/dist/chunks/{x-C2RTSdrs.mjs.map → x-B6hDJA_l.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +7 -7
- package/dist/combobox/index.d.ts +9 -1
- package/dist/combobox/index.mjs +30 -155
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.mjs +18 -18
- package/dist/context-menu/index.mjs +21 -21
- package/dist/dash/index.mjs +24 -24
- package/dist/data-table/index.d.ts +61 -49
- package/dist/data-table/index.mjs +77 -63
- package/dist/data-table/index.mjs.map +1 -1
- package/dist/date-picker/index.d.ts +7 -2
- package/dist/date-picker/index.mjs +27 -27
- package/dist/dialog/index.mjs +17 -17
- package/dist/drawer/index.mjs +14 -14
- package/dist/dropdown-menu/index.mjs +22 -22
- package/dist/dropzone/index.mjs +18 -18
- package/dist/editable-table/index.mjs +20 -18
- package/dist/editable-table/index.mjs.map +1 -1
- package/dist/empty/index.mjs +2 -2
- package/dist/export/index.d.ts +22 -10
- package/dist/export/index.mjs +20525 -31
- package/dist/export/index.mjs.map +1 -1
- 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 +82 -10
- package/dist/form-layout/index.mjs +199 -97
- 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-file/index.mjs +8 -8
- 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.d.ts +279 -1
- package/dist/layout/index.mjs +259 -23
- package/dist/layout/index.mjs.map +1 -1
- package/dist/menubar/index.mjs +22 -22
- package/dist/multi-input-list/index.mjs +28 -28
- package/dist/multi-select/index.d.ts +4 -0
- package/dist/multi-select/index.mjs +32 -31
- package/dist/multi-select/index.mjs.map +1 -1
- 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.d.ts +3 -1
- package/dist/select/index.mjs +11 -6
- package/dist/select/index.mjs.map +1 -1
- package/dist/separator/index.mjs +3 -3
- package/dist/shared/index.d.ts +3 -13
- package/dist/shared/index.mjs +8 -55
- package/dist/shared/index.mjs.map +1 -1
- 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.d.ts +2 -6
- package/dist/skeleton-component/index.mjs +6 -72
- package/dist/skeleton-component/index.mjs.map +1 -1
- 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 +3 -1
- package/dist/table-filter/index.mjs +59 -57
- 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 +5 -2
- package/dist/chunks/CalendarPopover-Dk28a8Qn.mjs.map +0 -1
- package/dist/chunks/CalendarRange-CbhXjWnp.mjs.map +0 -1
- package/dist/chunks/ExportButtons-D844DWYI.mjs +0 -229
- package/dist/chunks/ExportButtons-D844DWYI.mjs.map +0 -1
- package/dist/chunks/GenericTabs-CHcF7U9y.mjs.map +0 -1
- package/dist/chunks/ListItem-CoWJkU9U.mjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-Bx7yLjXw.mjs.map +0 -1
- package/dist/chunks/command-D6Om1YRG.mjs.map +0 -1
- package/dist/chunks/date-picker-CrZsqFq1.mjs.map +0 -1
- package/dist/chunks/multi-select-DocC2zjT.mjs.map +0 -1
- package/dist/chunks/select-H7CGuPw0.mjs.map +0 -1
|
@@ -1,72 +1,75 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useId, useState, useRef, useEffect } from 'react';
|
|
3
|
-
import { N as NumericFormat, P as PatternFormat } from '../chunks/react-number-format.es-
|
|
4
|
-
import { M as MultiSelect } from '../chunks/multi-select-
|
|
5
|
-
import { c as cn } from '../chunks/utils-
|
|
6
|
-
import { f as formatDateToBrazilian } from '../chunks/date-
|
|
7
|
-
import { f as formatMoney } from '../chunks/format-numbers-
|
|
8
|
-
import { s as styleInputError, a as styleInput } from '../chunks/styles-
|
|
9
|
-
import { f as FormField, a as FormItem, b as FormLabel, c as FormControl, d as FormDescription, e as FormMessage, F as Form } from '../chunks/form-
|
|
10
|
-
import { C as CalendarRange } from '../chunks/CalendarRange-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
3
|
+
import { N as NumericFormat, P as PatternFormat } from '../chunks/react-number-format.es-HizMU4ab.mjs';
|
|
4
|
+
import { M as MultiSelect } from '../chunks/multi-select-ILUAJeKL.mjs';
|
|
5
|
+
import { c as cn } from '../chunks/utils-BDcRwQMd.mjs';
|
|
6
|
+
import { f as formatDateToBrazilian } from '../chunks/date-Dqmv8Nr4.mjs';
|
|
7
|
+
import { f as formatMoney } from '../chunks/format-numbers-LmnBEQr0.mjs';
|
|
8
|
+
import { s as styleInputError, a as styleInput } from '../chunks/styles-lQyUmHf7.mjs';
|
|
9
|
+
import { f as FormField, a as FormItem, b as FormLabel, c as FormControl, d as FormDescription, e as FormMessage, F as Form } from '../chunks/form-paAECAsZ.mjs';
|
|
10
|
+
import { C as CalendarRange } from '../chunks/CalendarRange-BZ-rc5Ns.mjs';
|
|
11
|
+
import { C as Combobox } from '../chunks/combobox-D9iqP8Dp.mjs';
|
|
12
|
+
import { T as Toggle } from '../chunks/toggle-Du3jnh1s.mjs';
|
|
13
|
+
import { I as InputOTP, a as InputOTPGroup, b as InputOTPSlot } from '../chunks/input-otp-BNC4E0wv.mjs';
|
|
14
|
+
import { S as Slider } from '../chunks/slider-D3yx--Ba.mjs';
|
|
15
|
+
import { R as RadioGroup, a as RadioGroupItem } from '../chunks/radio-group-BlSUw5ql.mjs';
|
|
16
|
+
import { S as Switch } from '../chunks/switch-COE1z3YV.mjs';
|
|
17
|
+
import { D as DatePicker } from '../chunks/date-picker-BBCtT16G.mjs';
|
|
18
|
+
import { C as CalendarPopover, A as AutoComplete } from '../chunks/CalendarPopover-DNS2oszG.mjs';
|
|
19
|
+
import { I as InputFile } from '../chunks/input-file-BH3SMNJ7.mjs';
|
|
20
|
+
import { L as ListItem } from '../chunks/ListItem-CtUZSq2i.mjs';
|
|
21
|
+
import { L as Label } from '../chunks/label-D0iRy8Wj.mjs';
|
|
22
|
+
import { C as Checkbox } from '../chunks/checkbox-DvxpZsiG.mjs';
|
|
23
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-BBatgGtL.mjs';
|
|
24
|
+
import { I as Input } from '../chunks/input-B-W81Xmi.mjs';
|
|
25
|
+
import { T as Textarea } from '../chunks/textarea-DM2uvcxK.mjs';
|
|
26
|
+
import { S as Separator } from '../chunks/separator-DYyhdAi6.mjs';
|
|
25
27
|
import 'class-variance-authority';
|
|
26
|
-
import '../chunks/
|
|
27
|
-
import '../chunks/
|
|
28
|
-
import '../chunks/
|
|
29
|
-
import '../chunks/
|
|
30
|
-
import '../chunks/
|
|
31
|
-
import '../chunks/
|
|
32
|
-
import '../chunks/
|
|
28
|
+
import '../chunks/string-DRS4HkY8.mjs';
|
|
29
|
+
import '../chunks/x-B6hDJA_l.mjs';
|
|
30
|
+
import '../chunks/createLucideIcon-C11Tr46U.mjs';
|
|
31
|
+
import '../chunks/chevrons-up-down-CdBVNy4c.mjs';
|
|
32
|
+
import '../chunks/check-Ds358kZc.mjs';
|
|
33
|
+
import '../chunks/wand-sparkles-DqgQle7F.mjs';
|
|
34
|
+
import '../chunks/popover-CdZgcLPo.mjs';
|
|
35
|
+
import '../chunks/index-Dsw02Eup.mjs';
|
|
33
36
|
import 'react-dom';
|
|
34
37
|
import '@radix-ui/react-slot';
|
|
35
38
|
import 'react/jsx-runtime';
|
|
36
|
-
import '../chunks/index-
|
|
37
|
-
import '../chunks/index-
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/index-
|
|
40
|
-
import '../chunks/tslib.es6-
|
|
41
|
-
import '../chunks/index-
|
|
42
|
-
import '../chunks/index-
|
|
43
|
-
import '../chunks/index-
|
|
44
|
-
import '../chunks/index-
|
|
45
|
-
import '../chunks/index-
|
|
46
|
-
import '../chunks/index-
|
|
47
|
-
import '../chunks/index-
|
|
48
|
-
import '../chunks/button-
|
|
49
|
-
import '../chunks/badge-
|
|
50
|
-
import '../chunks/tooltip-
|
|
51
|
-
import '../chunks/index-
|
|
52
|
-
import '../chunks/command-
|
|
53
|
-
import '../chunks/index-
|
|
54
|
-
import '../chunks/dialog-
|
|
55
|
-
import '../chunks/bundle-mjs-
|
|
56
|
-
import '../chunks/format-
|
|
57
|
-
import '../chunks/calendar-days-
|
|
58
|
-
import '../chunks/calendar-
|
|
59
|
-
import '../chunks/chevron-left-
|
|
60
|
-
import '../chunks/chevron-right-
|
|
61
|
-
import '../chunks/chevron-down-
|
|
62
|
-
import '../chunks/index-
|
|
63
|
-
import '../chunks/index-
|
|
64
|
-
import '../chunks/index-
|
|
39
|
+
import '../chunks/index-D4jPaBZ2.mjs';
|
|
40
|
+
import '../chunks/index-4NpeUekv.mjs';
|
|
41
|
+
import '../chunks/index-DC-gAYjS.mjs';
|
|
42
|
+
import '../chunks/index-z4Hk6sF4.mjs';
|
|
43
|
+
import '../chunks/tslib.es6-Q9puKanr.mjs';
|
|
44
|
+
import '../chunks/index-gX0V59dZ.mjs';
|
|
45
|
+
import '../chunks/index-C8u7IIcP.mjs';
|
|
46
|
+
import '../chunks/index-B87m6Bfb.mjs';
|
|
47
|
+
import '../chunks/index-DAa5gqEY.mjs';
|
|
48
|
+
import '../chunks/index-BksCjWh6.mjs';
|
|
49
|
+
import '../chunks/index-DfeRLazC.mjs';
|
|
50
|
+
import '../chunks/index-1toTCGyr.mjs';
|
|
51
|
+
import '../chunks/button-CZpmCmNo.mjs';
|
|
52
|
+
import '../chunks/badge-ZU62MOiS.mjs';
|
|
53
|
+
import '../chunks/tooltip-njN_ok-r.mjs';
|
|
54
|
+
import '../chunks/index-BJrVyyCQ.mjs';
|
|
55
|
+
import '../chunks/command-o67hOCgH.mjs';
|
|
56
|
+
import '../chunks/index-CaYwp6E6.mjs';
|
|
57
|
+
import '../chunks/dialog-DL1cSseU.mjs';
|
|
58
|
+
import '../chunks/bundle-mjs-CXmmFvYo.mjs';
|
|
59
|
+
import '../chunks/format-8qs-kXlN.mjs';
|
|
60
|
+
import '../chunks/calendar-days-DnYx8d46.mjs';
|
|
61
|
+
import '../chunks/calendar-CDJv1B--.mjs';
|
|
62
|
+
import '../chunks/chevron-left-Baq244Ce.mjs';
|
|
63
|
+
import '../chunks/chevron-right-Dq6zFe5E.mjs';
|
|
64
|
+
import '../chunks/chevron-down-CDFTds2-.mjs';
|
|
65
|
+
import '../chunks/index-CcmH_f2V.mjs';
|
|
66
|
+
import '../chunks/index-UxWlwQlk.mjs';
|
|
67
|
+
import '../chunks/index-COfEgTJM.mjs';
|
|
65
68
|
import '@radix-ui/react-collection';
|
|
66
|
-
import '../chunks/index-
|
|
67
|
-
import '../chunks/index.module-
|
|
68
|
-
import '../chunks/loader-circle-
|
|
69
|
-
import '../chunks/TooltipIndicator-
|
|
69
|
+
import '../chunks/index-DIHpzffL.mjs';
|
|
70
|
+
import '../chunks/index.module-Czm-Rcez.mjs';
|
|
71
|
+
import '../chunks/loader-circle-BMRpEmW6.mjs';
|
|
72
|
+
import '../chunks/TooltipIndicator-o_ekzuQD.mjs';
|
|
70
73
|
import '@radix-ui/react-select';
|
|
71
74
|
|
|
72
75
|
/**
|
|
@@ -117,10 +120,16 @@ function AutocompleteFieldWrapper({ field, form, autocompleteConfig, placeholder
|
|
|
117
120
|
useEffect(()=>{
|
|
118
121
|
if (selectedOptionRef.current && field.value) {
|
|
119
122
|
const currentValue = getOptionValue(selectedOptionRef.current);
|
|
120
|
-
|
|
123
|
+
const newValue = typeof field.value === "object" && field.value !== null ? getOptionValue(field.value) : field.value;
|
|
124
|
+
if (currentValue === newValue) {
|
|
121
125
|
return;
|
|
122
126
|
}
|
|
123
127
|
}
|
|
128
|
+
if (field.value && typeof field.value === "object" && field.value !== null) {
|
|
129
|
+
selectedOptionRef.current = field.value;
|
|
130
|
+
setSelectedOption(field.value);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
124
133
|
if (field.value && autocompleteConfig.fetchOptions) {
|
|
125
134
|
const isNumericValue = typeof field.value === "number";
|
|
126
135
|
const searchTerm = isNumericValue ? "" : field.value;
|
|
@@ -180,18 +189,19 @@ function AutocompleteFieldWrapper({ field, form, autocompleteConfig, placeholder
|
|
|
180
189
|
getOptionLabel: getOptionLabel,
|
|
181
190
|
getOptionKey: getOptionKey,
|
|
182
191
|
clearable: autocompleteConfig.clearable ?? true,
|
|
183
|
-
className: cn("border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-
|
|
192
|
+
className: cn("border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 truncate max-w-150", autocompleteConfig?.className, isError && styleInputError)
|
|
184
193
|
});
|
|
185
194
|
}
|
|
186
195
|
function BaseFormField({ config, control, readOnly = false, form }) {
|
|
187
196
|
const baseId = useId();
|
|
188
|
-
const { name, label, type, placeholder, description, required,
|
|
197
|
+
const { name, label, type, placeholder, description, required, options, items, allowNegative, decimalScale, disabled, prefix, radioOptions, otpLength, sliderRange, format: patternFormat, mask, autocompleteConfig, comboboxConfig, inlineElement, render: customRender, maxLength, endAdornment, multiSelectConfig, dateConfig, fileConfig, isCheckboxDefault } = config;
|
|
189
198
|
const formatReadOnlyValue = (value, fieldType)=>{
|
|
190
199
|
if (value === null || value === undefined || value === "") {
|
|
191
200
|
return undefined;
|
|
192
201
|
}
|
|
193
202
|
switch(fieldType){
|
|
194
203
|
case "date":
|
|
204
|
+
case "date-picker":
|
|
195
205
|
return formatDate(value);
|
|
196
206
|
case "currency":
|
|
197
207
|
return formatCurrency(value);
|
|
@@ -271,6 +281,18 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
271
281
|
}
|
|
272
282
|
return undefined;
|
|
273
283
|
}
|
|
284
|
+
case "combobox":
|
|
285
|
+
{
|
|
286
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
287
|
+
const valStr = String(value);
|
|
288
|
+
if (config.comboboxConfig?.items) {
|
|
289
|
+
const option = config.comboboxConfig.items.find((opt)=>String(opt.value) === valStr);
|
|
290
|
+
return option ? option.label : valStr;
|
|
291
|
+
}
|
|
292
|
+
return valStr;
|
|
293
|
+
}
|
|
294
|
+
return String(value);
|
|
295
|
+
}
|
|
274
296
|
default:
|
|
275
297
|
return String(value);
|
|
276
298
|
}
|
|
@@ -280,7 +302,7 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
280
302
|
control: control,
|
|
281
303
|
name: name,
|
|
282
304
|
render: ({ field })=>/*#__PURE__*/ React.createElement(ListItem, {
|
|
283
|
-
title: label,
|
|
305
|
+
title: label ?? "",
|
|
284
306
|
value: formatReadOnlyValue(field.value, type)
|
|
285
307
|
})
|
|
286
308
|
});
|
|
@@ -292,8 +314,10 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
292
314
|
const isError = fieldState?.invalid;
|
|
293
315
|
if (customRender && form) {
|
|
294
316
|
return /*#__PURE__*/ React.createElement(FormItem, {
|
|
295
|
-
className: type === "checkbox"
|
|
296
|
-
}, type !== "checkbox" && type !== "switch" && /*#__PURE__*/ React.createElement(FormLabel,
|
|
317
|
+
className: cn(type === "checkbox" && "flex flex-row items-start space-y-0 space-x-3 rounded-md border p-4", type === "checkbox" && isCheckboxDefault && "border-none p-0")
|
|
318
|
+
}, type !== "checkbox" && type !== "switch" && /*#__PURE__*/ React.createElement(FormLabel, {
|
|
319
|
+
htmlFor: name
|
|
320
|
+
}, label, label && required && /*#__PURE__*/ React.createElement("span", {
|
|
297
321
|
className: "text-destructive",
|
|
298
322
|
style: {
|
|
299
323
|
float: "none",
|
|
@@ -301,16 +325,26 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
301
325
|
marginRight: 0,
|
|
302
326
|
marginTop: 0
|
|
303
327
|
}
|
|
304
|
-
}, "*"),
|
|
328
|
+
}, "*"), /*#__PURE__*/ React.createElement("span", {
|
|
329
|
+
className: !label ? "text-transparent" : ""
|
|
330
|
+
}, ":")), /*#__PURE__*/ React.createElement("div", {
|
|
331
|
+
className: cn(inlineElement && "flex w-full items-center gap-2")
|
|
332
|
+
}, /*#__PURE__*/ React.createElement("div", {
|
|
333
|
+
className: cn(inlineElement && "min-w-0 flex-1")
|
|
334
|
+
}, /*#__PURE__*/ React.createElement(FormControl, {
|
|
305
335
|
className: isError ? styleInputError : ""
|
|
306
336
|
}, customRender({
|
|
307
337
|
field,
|
|
308
338
|
form
|
|
309
|
-
})),
|
|
339
|
+
}))), inlineElement && /*#__PURE__*/ React.createElement("div", {
|
|
340
|
+
className: "shrink-0"
|
|
341
|
+
}, inlineElement)), type !== "checkbox" && description && !isError && /*#__PURE__*/ React.createElement(FormDescription, null, description), /*#__PURE__*/ React.createElement(FormMessage, null));
|
|
310
342
|
}
|
|
311
343
|
return /*#__PURE__*/ React.createElement(FormItem, {
|
|
312
|
-
className: type === "checkbox"
|
|
313
|
-
}, type !== "checkbox" && type !== "switch" && /*#__PURE__*/ React.createElement(FormLabel,
|
|
344
|
+
className: cn(type === "checkbox" && "flex flex-row items-start space-y-0 space-x-3 rounded-md border p-4", isCheckboxDefault && "border-none p-0")
|
|
345
|
+
}, type !== "checkbox" && type !== "switch" && /*#__PURE__*/ React.createElement(FormLabel, {
|
|
346
|
+
htmlFor: name
|
|
347
|
+
}, label, label && required && /*#__PURE__*/ React.createElement("span", {
|
|
314
348
|
className: "text-destructive",
|
|
315
349
|
style: {
|
|
316
350
|
float: "none",
|
|
@@ -318,7 +352,13 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
318
352
|
marginRight: 0,
|
|
319
353
|
marginTop: 0
|
|
320
354
|
}
|
|
321
|
-
}, "*"),
|
|
355
|
+
}, "*"), /*#__PURE__*/ React.createElement("span", {
|
|
356
|
+
className: !label ? "text-transparent" : ""
|
|
357
|
+
}, ":")), /*#__PURE__*/ React.createElement("div", {
|
|
358
|
+
className: cn(inlineElement && "flex w-full items-center gap-2")
|
|
359
|
+
}, /*#__PURE__*/ React.createElement("div", {
|
|
360
|
+
className: cn(inlineElement && "min-w-0 flex-1")
|
|
361
|
+
}, /*#__PURE__*/ React.createElement(FormControl, null, (()=>{
|
|
322
362
|
switch(type){
|
|
323
363
|
case "text":
|
|
324
364
|
case "email":
|
|
@@ -353,7 +393,7 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
353
393
|
});
|
|
354
394
|
case "textarea":
|
|
355
395
|
return /*#__PURE__*/ React.createElement(Textarea, {
|
|
356
|
-
className: cn("min-h-20",
|
|
396
|
+
className: cn("min-h-20", isError && styleInputError),
|
|
357
397
|
...field,
|
|
358
398
|
placeholder: placeholder,
|
|
359
399
|
disabled: disabled,
|
|
@@ -362,6 +402,7 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
362
402
|
});
|
|
363
403
|
case "number":
|
|
364
404
|
return /*#__PURE__*/ React.createElement(NumericFormat, {
|
|
405
|
+
id: name,
|
|
365
406
|
customInput: Input,
|
|
366
407
|
decimalSeparator: ",",
|
|
367
408
|
thousandSeparator: ".",
|
|
@@ -376,10 +417,11 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
376
417
|
},
|
|
377
418
|
placeholder: placeholder,
|
|
378
419
|
disabled: disabled,
|
|
379
|
-
className: isError
|
|
420
|
+
className: cn("h-9", isError && styleInputError)
|
|
380
421
|
});
|
|
381
422
|
case "currency":
|
|
382
423
|
return /*#__PURE__*/ React.createElement(NumericFormat, {
|
|
424
|
+
id: name,
|
|
383
425
|
customInput: Input,
|
|
384
426
|
decimalSeparator: ",",
|
|
385
427
|
thousandSeparator: ".",
|
|
@@ -395,7 +437,7 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
395
437
|
placeholder: placeholder,
|
|
396
438
|
disabled: disabled,
|
|
397
439
|
prefix: prefix ?? "R$ ",
|
|
398
|
-
className: isError
|
|
440
|
+
className: cn("h-9", isError && styleInputError)
|
|
399
441
|
});
|
|
400
442
|
case "pattern":
|
|
401
443
|
return /*#__PURE__*/ React.createElement(PatternFormat, {
|
|
@@ -416,7 +458,8 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
416
458
|
return /*#__PURE__*/ React.createElement(Select, {
|
|
417
459
|
onValueChange: field.onChange,
|
|
418
460
|
value: selectValue,
|
|
419
|
-
disabled: disabled
|
|
461
|
+
disabled: disabled,
|
|
462
|
+
clearable: config.selectConfig?.clearable ?? true
|
|
420
463
|
}, /*#__PURE__*/ React.createElement(FormControl, null, /*#__PURE__*/ React.createElement(SelectTrigger, {
|
|
421
464
|
id: name,
|
|
422
465
|
className: cn("w-full", isError && styleInputError)
|
|
@@ -435,6 +478,7 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
435
478
|
}
|
|
436
479
|
case "date":
|
|
437
480
|
return /*#__PURE__*/ React.createElement(CalendarPopover, {
|
|
481
|
+
id: name,
|
|
438
482
|
date: field.value,
|
|
439
483
|
setDate: field.onChange,
|
|
440
484
|
placeholder: placeholder,
|
|
@@ -443,18 +487,34 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
443
487
|
disableWeekends: false,
|
|
444
488
|
className: cn("w-full", isError && styleInputError)
|
|
445
489
|
});
|
|
490
|
+
case "date-picker":
|
|
491
|
+
return /*#__PURE__*/ React.createElement(DatePicker, {
|
|
492
|
+
id: name,
|
|
493
|
+
date: field.value,
|
|
494
|
+
setDate: field.onChange,
|
|
495
|
+
placeholder: placeholder,
|
|
496
|
+
disabled: disabled,
|
|
497
|
+
className: cn("w-full", isError && styleInputError)
|
|
498
|
+
});
|
|
446
499
|
case "checkbox":
|
|
447
|
-
return /*#__PURE__*/ React.createElement(
|
|
500
|
+
return /*#__PURE__*/ React.createElement("div", {
|
|
501
|
+
className: "flex items-center gap-2"
|
|
502
|
+
}, /*#__PURE__*/ React.createElement(Checkbox, {
|
|
448
503
|
checked: !!field.value,
|
|
449
504
|
onCheckedChange: field.onChange,
|
|
450
|
-
disabled: disabled
|
|
505
|
+
disabled: disabled,
|
|
506
|
+
id: name
|
|
451
507
|
}), /*#__PURE__*/ React.createElement("div", {
|
|
452
508
|
className: "space-y-1 leading-none"
|
|
453
|
-
}, /*#__PURE__*/ React.createElement(FormLabel,
|
|
509
|
+
}, /*#__PURE__*/ React.createElement(FormLabel, {
|
|
510
|
+
htmlFor: name
|
|
511
|
+
}, label), description && !isError && /*#__PURE__*/ React.createElement(FormDescription, null, description)));
|
|
454
512
|
case "switch":
|
|
455
513
|
return /*#__PURE__*/ React.createElement("div", {
|
|
456
514
|
className: "flex items-center justify-between"
|
|
457
|
-
}, /*#__PURE__*/ React.createElement(FormLabel,
|
|
515
|
+
}, /*#__PURE__*/ React.createElement(FormLabel, {
|
|
516
|
+
htmlFor: name
|
|
517
|
+
}, label), /*#__PURE__*/ React.createElement(Switch, {
|
|
458
518
|
checked: !!field.value,
|
|
459
519
|
onCheckedChange: field.onChange,
|
|
460
520
|
disabled: disabled
|
|
@@ -530,13 +590,40 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
530
590
|
isError: isError
|
|
531
591
|
});
|
|
532
592
|
}
|
|
533
|
-
case "
|
|
593
|
+
case "combobox":
|
|
534
594
|
{
|
|
595
|
+
if (!comboboxConfig) return null;
|
|
535
596
|
return /*#__PURE__*/ React.createElement("div", {
|
|
597
|
+
tabIndex: -1,
|
|
598
|
+
className: "outline-none"
|
|
599
|
+
}, /*#__PURE__*/ React.createElement(Combobox, {
|
|
536
600
|
id: name,
|
|
601
|
+
items: comboboxConfig.items,
|
|
602
|
+
value: String(field.value ?? ""),
|
|
603
|
+
onValueChange: (val)=>{
|
|
604
|
+
if (comboboxConfig.valueType === "number") {
|
|
605
|
+
field.onChange(val !== "" ? Number(val) : null);
|
|
606
|
+
} else {
|
|
607
|
+
field.onChange(val || null);
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
placeholder: placeholder,
|
|
611
|
+
searchPlaceholder: comboboxConfig.searchPlaceholder,
|
|
612
|
+
emptyMessage: comboboxConfig.emptyMessage,
|
|
613
|
+
groupHeading: comboboxConfig.groupHeading,
|
|
614
|
+
normalizeSearch: comboboxConfig.normalizeSearch,
|
|
615
|
+
disabled: disabled,
|
|
616
|
+
widthClassName: "w-full",
|
|
617
|
+
className: cn(isError && styleInputError)
|
|
618
|
+
}));
|
|
619
|
+
}
|
|
620
|
+
case "dateRange":
|
|
621
|
+
{
|
|
622
|
+
return /*#__PURE__*/ React.createElement("div", {
|
|
537
623
|
tabIndex: -1,
|
|
538
624
|
className: "outline-none"
|
|
539
625
|
}, /*#__PURE__*/ React.createElement(CalendarRange, {
|
|
626
|
+
id: name,
|
|
540
627
|
numberOfMonths: 2,
|
|
541
628
|
value: field.value,
|
|
542
629
|
onChange: (value)=>{
|
|
@@ -551,9 +638,8 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
551
638
|
},
|
|
552
639
|
placeholder: placeholder,
|
|
553
640
|
className: cn("h-9 w-full", isError && styleInputError),
|
|
554
|
-
disabled: disabled || dateConfig?.
|
|
555
|
-
|
|
556
|
-
showQuickRanges: dateConfig?.showQuickRanges
|
|
641
|
+
disabled: disabled || dateConfig?.disabled,
|
|
642
|
+
...dateConfig
|
|
557
643
|
}));
|
|
558
644
|
}
|
|
559
645
|
case "numberRange":
|
|
@@ -561,6 +647,7 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
561
647
|
return /*#__PURE__*/ React.createElement("div", {
|
|
562
648
|
className: "flex gap-2"
|
|
563
649
|
}, /*#__PURE__*/ React.createElement(NumericFormat, {
|
|
650
|
+
id: name,
|
|
564
651
|
placeholder: "Mínimo",
|
|
565
652
|
value: field.value?.min ?? "",
|
|
566
653
|
allowNegative: allowNegative ?? true,
|
|
@@ -583,6 +670,7 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
583
670
|
className: styleInput,
|
|
584
671
|
disabled: disabled
|
|
585
672
|
}), /*#__PURE__*/ React.createElement(NumericFormat, {
|
|
673
|
+
id: name,
|
|
586
674
|
placeholder: "Máximo",
|
|
587
675
|
value: field.value?.max ?? "",
|
|
588
676
|
allowNegative: allowNegative ?? true,
|
|
@@ -618,31 +706,45 @@ function BaseFormField({ config, control, readOnly = false, form }) {
|
|
|
618
706
|
label: opt.label,
|
|
619
707
|
value: String(opt.value)
|
|
620
708
|
}) || [];
|
|
709
|
+
const typedValue = Array.isArray(field.value) ? field.value.map(String) : [];
|
|
621
710
|
return /*#__PURE__*/ React.createElement("div", {
|
|
622
|
-
id: name,
|
|
623
711
|
tabIndex: -1,
|
|
624
712
|
className: "outline-none"
|
|
625
713
|
}, /*#__PURE__*/ React.createElement(MultiSelect, {
|
|
714
|
+
id: name,
|
|
626
715
|
options: multiSelectOptions,
|
|
627
|
-
onValueChange:
|
|
628
|
-
|
|
629
|
-
|
|
716
|
+
onValueChange: (val)=>{
|
|
717
|
+
if (multiSelectConfig?.valueType === "number") {
|
|
718
|
+
field.onChange(val.map(Number));
|
|
719
|
+
} else {
|
|
720
|
+
field.onChange(val);
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
defaultValue: typedValue,
|
|
724
|
+
value: typedValue,
|
|
630
725
|
placeholder: placeholder,
|
|
631
726
|
variant: "default",
|
|
632
727
|
maxCount: multiSelectConfig?.maxCount,
|
|
633
728
|
subtle: multiSelectConfig?.subtle,
|
|
634
|
-
|
|
729
|
+
messageEmpty: multiSelectConfig?.emptyMessage,
|
|
730
|
+
searchPlaceholder: multiSelectConfig?.searchPlaceholder,
|
|
731
|
+
groupHeading: multiSelectConfig?.groupHeading,
|
|
732
|
+
normalizeSearch: multiSelectConfig?.normalizeSearch,
|
|
733
|
+
className: isError && styleInputError,
|
|
734
|
+
disabled: disabled
|
|
635
735
|
}));
|
|
636
736
|
}
|
|
637
737
|
default:
|
|
638
738
|
return null;
|
|
639
739
|
}
|
|
640
|
-
})()),
|
|
740
|
+
})())), inlineElement && /*#__PURE__*/ React.createElement("div", {
|
|
741
|
+
className: "shrink-0"
|
|
742
|
+
}, inlineElement)), type !== "checkbox" && description && !isError && /*#__PURE__*/ React.createElement(FormDescription, null, description), /*#__PURE__*/ React.createElement(FormMessage, null));
|
|
641
743
|
}
|
|
642
744
|
});
|
|
643
745
|
}
|
|
644
746
|
BaseFormField.displayName = "BaseFormField";
|
|
645
|
-
function FormLayout({ form, sections, onSubmit, onError, formId, title, description, headerContent, readOnly = false, formRef }) {
|
|
747
|
+
function FormLayout({ form, sections, onSubmit, onError, formId, title, description, headerContent, readOnly = false, formRef, children, stepNavigator }) {
|
|
646
748
|
const getColSpanClass = (cols)=>{
|
|
647
749
|
if (!cols || cols === 1) return "col-span-12 md:col-span-6 xl:col-span-4";
|
|
648
750
|
if (cols === 2) return "col-span-12 md:col-span-12 xl:col-span-8";
|
|
@@ -654,7 +756,7 @@ function FormLayout({ form, sections, onSubmit, onError, formId, title, descript
|
|
|
654
756
|
onSubmit: form.handleSubmit(onSubmit, onError),
|
|
655
757
|
id: formId,
|
|
656
758
|
ref: formRef,
|
|
657
|
-
className: "relative space-y-8
|
|
759
|
+
className: "relative space-y-8"
|
|
658
760
|
}, (title || description) && /*#__PURE__*/ React.createElement("div", {
|
|
659
761
|
className: "mb-6 space-y-2"
|
|
660
762
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
@@ -663,7 +765,7 @@ function FormLayout({ form, sections, onSubmit, onError, formId, title, descript
|
|
|
663
765
|
className: "text-xl font-semibold tracking-tight"
|
|
664
766
|
}, title), description && /*#__PURE__*/ React.createElement("p", {
|
|
665
767
|
className: "text-muted-foreground text-sm"
|
|
666
|
-
}, description)), headerContent)), sections
|
|
768
|
+
}, description)), headerContent)), children, sections?.map((section, idx)=>/*#__PURE__*/ React.createElement("div", {
|
|
667
769
|
key: section.title ? `${section.title}-${idx}` : `section-${idx}`,
|
|
668
770
|
className: "space-y-4"
|
|
669
771
|
}, (section.title || section.description) && /*#__PURE__*/ React.createElement("div", {
|
|
@@ -680,10 +782,10 @@ function FormLayout({ form, sections, onSubmit, onError, formId, title, descript
|
|
|
680
782
|
control: form.control,
|
|
681
783
|
readOnly: readOnly,
|
|
682
784
|
form: form
|
|
683
|
-
}))))))) : /*#__PURE__*/ React.createElement("div", {
|
|
785
|
+
})))))), stepNavigator) : /*#__PURE__*/ React.createElement("div", {
|
|
684
786
|
id: formId,
|
|
685
787
|
className: "relative space-y-8 px-1"
|
|
686
|
-
}, sections
|
|
788
|
+
}, children, sections?.map((section, idx)=>/*#__PURE__*/ React.createElement("div", {
|
|
687
789
|
key: section.title ? `${section.title}-${idx}` : `section-${idx}`,
|
|
688
790
|
className: "space-y-4"
|
|
689
791
|
}, (section.title || section.description) && /*#__PURE__*/ React.createElement("div", {
|
|
@@ -700,7 +802,7 @@ function FormLayout({ form, sections, onSubmit, onError, formId, title, descript
|
|
|
700
802
|
control: form.control,
|
|
701
803
|
readOnly: readOnly,
|
|
702
804
|
form: form
|
|
703
|
-
}))))))));
|
|
805
|
+
})))))), stepNavigator));
|
|
704
806
|
}
|
|
705
807
|
FormLayout.displayName = "FormLayout";
|
|
706
808
|
|