ivt 0.7.4 → 0.7.6
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 +31 -9
- package/dist/base/index.mjs +79 -79
- package/dist/base/index.mjs.map +1 -1
- package/dist/breadcrumb/index.mjs +5 -5
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.mjs +3 -3
- package/dist/button-group/index.d.ts +3 -2
- 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/{AutoComplete-qFuwmV53.mjs → AutoComplete-BpwnFm_u.mjs} +23 -12
- package/dist/chunks/AutoComplete-BpwnFm_u.mjs.map +1 -0
- package/dist/chunks/{CalendarRange-Ce7PiNfq.mjs → CalendarRange-BGP7p-ma.mjs} +8 -8
- package/dist/chunks/{CalendarRange-Ce7PiNfq.mjs.map → CalendarRange-BGP7p-ma.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-DaRpRraW.mjs → ComboboxField-CzJlHHXv.mjs} +9 -9
- package/dist/chunks/{ComboboxField-DaRpRraW.mjs.map → ComboboxField-CzJlHHXv.mjs.map} +1 -1
- package/dist/chunks/{Container-DwaAaEiC.mjs → Container-77E_UFi2.mjs} +2 -2
- package/dist/chunks/{Container-DwaAaEiC.mjs.map → Container-77E_UFi2.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-BwTbbBAw.mjs → DeleteConfirmationModal-DQK05Srx.mjs} +4 -4
- package/dist/chunks/{DeleteConfirmationModal-BwTbbBAw.mjs.map → DeleteConfirmationModal-DQK05Srx.mjs.map} +1 -1
- package/dist/chunks/{ListItem-zxS4CZdq.mjs → ListItem-B0_5JcsU.mjs} +4 -4
- package/dist/chunks/{ListItem-zxS4CZdq.mjs.map → ListItem-B0_5JcsU.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-CwGGAeRz.mjs → TooltipIndicator-Db1poSJI.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-CwGGAeRz.mjs.map → TooltipIndicator-Db1poSJI.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-B2Be7UYW.mjs → _commonjsHelpers-DkfSKqYE.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-DkfSKqYE.mjs.map +1 -0
- package/dist/chunks/{accordion-D4JVALAO.mjs → accordion-DSn7k_RQ.mjs} +9 -9
- package/dist/chunks/{accordion-D4JVALAO.mjs.map → accordion-DSn7k_RQ.mjs.map} +1 -1
- package/dist/chunks/{alert-D-E6nsVK.mjs → alert-aP6n7wtq.mjs} +2 -2
- package/dist/chunks/{alert-D-E6nsVK.mjs.map → alert-aP6n7wtq.mjs.map} +1 -1
- package/dist/chunks/{badge-C6mkl9yr.mjs → badge-CsUuqHNu.mjs} +2 -2
- package/dist/chunks/{badge-C6mkl9yr.mjs.map → badge-CsUuqHNu.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-B1dpl-bk.mjs → bundle-mjs-BRbxNcQb.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-B1dpl-bk.mjs.map → bundle-mjs-BRbxNcQb.mjs.map} +1 -1
- package/dist/chunks/{button-DsgJkgEz.mjs → button-BW9I4XWU.mjs} +2 -2
- package/dist/chunks/{button-DsgJkgEz.mjs.map → button-BW9I4XWU.mjs.map} +1 -1
- package/dist/chunks/button-C8IZYeQz.d.ts +16 -0
- package/dist/chunks/{calendar-Co99lCn4.mjs → calendar-C549VT55.mjs} +531 -531
- package/dist/chunks/{calendar-Co99lCn4.mjs.map → calendar-C549VT55.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-BF4GDmMr.mjs → calendar-days-BSzlDBsi.mjs} +2 -2
- package/dist/chunks/{calendar-days-BF4GDmMr.mjs.map → calendar-days-BSzlDBsi.mjs.map} +1 -1
- package/dist/chunks/{card-Cuo7NL8y.mjs → card-Dqm2EuWU.mjs} +2 -2
- package/dist/chunks/{card-Cuo7NL8y.mjs.map → card-Dqm2EuWU.mjs.map} +1 -1
- package/dist/chunks/{check-CzKqQLNR.mjs → check-CKdwsuVA.mjs} +2 -2
- package/dist/chunks/{check-CzKqQLNR.mjs.map → check-CKdwsuVA.mjs.map} +1 -1
- package/dist/chunks/{checkbox-C7RUdsIS.mjs → checkbox-CvaPsjy3.mjs} +9 -9
- package/dist/chunks/{checkbox-C7RUdsIS.mjs.map → checkbox-CvaPsjy3.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-CZjN_vyX.mjs → chevron-down-o7NUBnJ4.mjs} +2 -2
- package/dist/chunks/{chevron-down-CZjN_vyX.mjs.map → chevron-down-o7NUBnJ4.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-BpfBwM4S.mjs → chevron-left-BZ8X7kLy.mjs} +2 -2
- package/dist/chunks/{chevron-left-BpfBwM4S.mjs.map → chevron-left-BZ8X7kLy.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-uq-O8rwC.mjs → chevron-right-jAScR3zY.mjs} +2 -2
- package/dist/chunks/{chevron-right-uq-O8rwC.mjs.map → chevron-right-jAScR3zY.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-DKM8h8j_.mjs → chevrons-up-down-BSIPdamI.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-DKM8h8j_.mjs.map → chevrons-up-down-BSIPdamI.mjs.map} +1 -1
- package/dist/chunks/{command-CAS791lb.mjs → command-B29vdoVO.mjs} +8 -8
- package/dist/chunks/{command-CAS791lb.mjs.map → command-B29vdoVO.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-xkRZC0aJ.mjs → createLucideIcon-CkP7424r.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-xkRZC0aJ.mjs.map → createLucideIcon-CkP7424r.mjs.map} +1 -1
- package/dist/chunks/{date-DYEUxjwi.mjs → date-Y_hKMQVr.mjs} +2 -2
- package/dist/chunks/{date-DYEUxjwi.mjs.map → date-Y_hKMQVr.mjs.map} +1 -1
- package/dist/chunks/{dialog-Dt_M700u.mjs → dialog-BhaHMQnG.mjs} +4 -4
- package/dist/chunks/{dialog-Dt_M700u.mjs.map → dialog-BhaHMQnG.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-BcRZkfZw.mjs → ellipsis-DHAz8TrI.mjs} +2 -2
- package/dist/chunks/{ellipsis-BcRZkfZw.mjs.map → ellipsis-DHAz8TrI.mjs.map} +1 -1
- package/dist/chunks/{form-CJnoOgoH.mjs → form-BAxhKbgh.mjs} +3 -3
- package/dist/chunks/{form-CJnoOgoH.mjs.map → form-BAxhKbgh.mjs.map} +1 -1
- package/dist/chunks/{format-BSPAt__h.mjs → format-CR4Q6BSq.mjs} +1 -1
- package/dist/chunks/{format-BSPAt__h.mjs.map → format-CR4Q6BSq.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-BpGX211b.mjs → format-numbers-CWj9Vf7x.mjs} +1 -1
- package/dist/chunks/{format-numbers-BpGX211b.mjs.map → format-numbers-CWj9Vf7x.mjs.map} +1 -1
- package/dist/chunks/{hover-card-DKMcpBnt.mjs → hover-card-DVmQc78n.mjs} +9 -9
- package/dist/chunks/{hover-card-DKMcpBnt.mjs.map → hover-card-DVmQc78n.mjs.map} +1 -1
- package/dist/chunks/{index-DjoMuta5.mjs → index-4pJ77hyF.mjs} +1 -1
- package/dist/chunks/{index-DjoMuta5.mjs.map → index-4pJ77hyF.mjs.map} +1 -1
- package/dist/chunks/{index-9921_a2g.mjs → index-BN17NQCv.mjs} +1 -1
- package/dist/chunks/{index-9921_a2g.mjs.map → index-BN17NQCv.mjs.map} +1 -1
- package/dist/chunks/{index-7wUPkpwA.mjs → index-Bt1elORc.mjs} +9 -9
- package/dist/chunks/{index-7wUPkpwA.mjs.map → index-Bt1elORc.mjs.map} +1 -1
- package/dist/chunks/{index-CsC-dafu.mjs → index-CByz7d8q.mjs} +3 -3
- package/dist/chunks/{index-CsC-dafu.mjs.map → index-CByz7d8q.mjs.map} +1 -1
- package/dist/chunks/{index-CvWc6WZ4.mjs → index-CS2Lzoed.mjs} +7 -7
- package/dist/chunks/{index-CvWc6WZ4.mjs.map → index-CS2Lzoed.mjs.map} +1 -1
- package/dist/chunks/{index-Cm5-jAR7.mjs → index-CVjOpozG.mjs} +1 -1
- package/dist/chunks/{index-Cm5-jAR7.mjs.map → index-CVjOpozG.mjs.map} +1 -1
- package/dist/chunks/{index-BtdTgi0_.mjs → index-Cs9A0tpU.mjs} +1 -1
- package/dist/chunks/{index-BtdTgi0_.mjs.map → index-Cs9A0tpU.mjs.map} +1 -1
- package/dist/chunks/{index-0DBJW078.mjs → index-Ct610FOk.mjs} +2 -2
- package/dist/chunks/{index-0DBJW078.mjs.map → index-Ct610FOk.mjs.map} +1 -1
- package/dist/chunks/{index-DSBOi0JP.mjs → index-CvVBB5ll.mjs} +4 -4
- package/dist/chunks/{index-DSBOi0JP.mjs.map → index-CvVBB5ll.mjs.map} +1 -1
- package/dist/chunks/{index-B8pOe-bI.mjs → index-D1CSAowX.mjs} +13 -13
- package/dist/chunks/{index-B8pOe-bI.mjs.map → index-D1CSAowX.mjs.map} +1 -1
- package/dist/chunks/{index-BpZD69GD.mjs → index-D2DYiX9D.mjs} +2 -2
- package/dist/chunks/{index-BpZD69GD.mjs.map → index-D2DYiX9D.mjs.map} +1 -1
- package/dist/chunks/{index-SJQIKyxi.mjs → index-D8mA4n7w.mjs} +1 -1
- package/dist/chunks/{index-SJQIKyxi.mjs.map → index-D8mA4n7w.mjs.map} +1 -1
- package/dist/chunks/{index-CuEeN4AG.mjs → index-DCDDoDjL.mjs} +6 -6
- package/dist/chunks/{index-CuEeN4AG.mjs.map → index-DCDDoDjL.mjs.map} +1 -1
- package/dist/chunks/{index-G8uUqzC7.mjs → index-DLqxy-dg.mjs} +1 -1
- package/dist/chunks/{index-G8uUqzC7.mjs.map → index-DLqxy-dg.mjs.map} +1 -1
- package/dist/chunks/{index-DaifcY5X.mjs → index-DNMhNzeD.mjs} +7 -7
- package/dist/chunks/{index-DaifcY5X.mjs.map → index-DNMhNzeD.mjs.map} +1 -1
- package/dist/chunks/{index-zv8c0UAU.mjs → index-DQD35Ges.mjs} +3 -3
- package/dist/chunks/{index-zv8c0UAU.mjs.map → index-DQD35Ges.mjs.map} +1 -1
- package/dist/chunks/{index-B49Rv10M.mjs → index-D_Q4NGnO.mjs} +1 -1
- package/dist/chunks/{index-B49Rv10M.mjs.map → index-D_Q4NGnO.mjs.map} +1 -1
- package/dist/chunks/{index-fcmnzZn6.mjs → index-D_e6adwb.mjs} +5 -5
- package/dist/chunks/{index-fcmnzZn6.mjs.map → index-D_e6adwb.mjs.map} +1 -1
- package/dist/chunks/{index-DWtzT31F.mjs → index-DhI6OG_H.mjs} +2 -2
- package/dist/chunks/{index-DWtzT31F.mjs.map → index-DhI6OG_H.mjs.map} +1 -1
- package/dist/chunks/{index-Dn87UbZu.mjs → index-Dp_0m03a.mjs} +2 -2
- package/dist/chunks/{index-Dn87UbZu.mjs.map → index-Dp_0m03a.mjs.map} +1 -1
- package/dist/chunks/{index-B8zlei3I.mjs → index-oX_tk439.mjs} +1 -1
- package/dist/chunks/{index-B8zlei3I.mjs.map → index-oX_tk439.mjs.map} +1 -1
- package/dist/chunks/{index.module-B_Z75X1e.mjs → index.module-Df4mRjmZ.mjs} +1 -1
- package/dist/chunks/{index.module-B_Z75X1e.mjs.map → index.module-Df4mRjmZ.mjs.map} +1 -1
- package/dist/chunks/{input-NILUGijL.mjs → input-YpoAHnXb.mjs} +2 -2
- package/dist/chunks/{input-NILUGijL.mjs.map → input-YpoAHnXb.mjs.map} +1 -1
- package/dist/chunks/{input-otp-b-7MmY2H.mjs → input-otp-BKqdZwNx.mjs} +3 -3
- package/dist/chunks/{input-otp-b-7MmY2H.mjs.map → input-otp-BKqdZwNx.mjs.map} +1 -1
- package/dist/chunks/{label-81mjh4Q4.mjs → label-D5s6d0et.mjs} +2 -2
- package/dist/chunks/{label-81mjh4Q4.mjs.map → label-D5s6d0et.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-sGBNpyP3.mjs → loader-circle-C7StEOZI.mjs} +2 -2
- package/dist/chunks/{loader-circle-sGBNpyP3.mjs.map → loader-circle-C7StEOZI.mjs.map} +1 -1
- package/dist/chunks/{menubar-Dz5biTZv.mjs → menubar-ySifmjAG.mjs} +11 -11
- package/dist/chunks/{menubar-Dz5biTZv.mjs.map → menubar-ySifmjAG.mjs.map} +1 -1
- package/dist/chunks/{multi-select-DeW-tL6j.mjs → multi-select-BsnRMfg7.mjs} +13 -13
- package/dist/chunks/{multi-select-DeW-tL6j.mjs.map → multi-select-BsnRMfg7.mjs.map} +1 -1
- package/dist/chunks/{pagination-0W2Kek6Z.mjs → pagination-CV6N_Qu_.mjs} +6 -6
- package/dist/chunks/{pagination-0W2Kek6Z.mjs.map → pagination-CV6N_Qu_.mjs.map} +1 -1
- package/dist/chunks/{popover-ChoMUAP9.mjs → popover-D3JC54Y3.mjs} +11 -11
- package/dist/chunks/{popover-ChoMUAP9.mjs.map → popover-D3JC54Y3.mjs.map} +1 -1
- package/dist/chunks/{progress-zrBdDKEV.mjs → progress-D_Enl4tV.mjs} +2 -2
- package/dist/chunks/{progress-zrBdDKEV.mjs.map → progress-D_Enl4tV.mjs.map} +1 -1
- package/dist/chunks/{radio-group-r3ejuIom.mjs → radio-group-yF1QEewC.mjs} +11 -11
- package/dist/chunks/{radio-group-r3ejuIom.mjs.map → radio-group-yF1QEewC.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-rRpdCutF.mjs → react-number-format.es-C3uDZhRo.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-rRpdCutF.mjs.map → react-number-format.es-C3uDZhRo.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-DjtXX0pm.mjs → scroll-area-CdGRe--S.mjs} +9 -9
- package/dist/chunks/{scroll-area-DjtXX0pm.mjs.map → scroll-area-CdGRe--S.mjs.map} +1 -1
- package/dist/chunks/{select-CICQavYx.mjs → select-B8JYuJE5.mjs} +5 -5
- package/dist/chunks/{select-CICQavYx.mjs.map → select-B8JYuJE5.mjs.map} +1 -1
- package/dist/chunks/{separator-CL28DVoA.mjs → separator-sWF5eZgM.mjs} +2 -2
- package/dist/chunks/{separator-CL28DVoA.mjs.map → separator-sWF5eZgM.mjs.map} +1 -1
- package/dist/chunks/{sheet-BIN5Bwkz.mjs → sheet-D-4XWzUo.mjs} +4 -4
- package/dist/chunks/{sheet-BIN5Bwkz.mjs.map → sheet-D-4XWzUo.mjs.map} +1 -1
- package/dist/chunks/{skeleton-DEo09dsp.mjs → skeleton-CQlSHSfr.mjs} +2 -2
- package/dist/chunks/{skeleton-DEo09dsp.mjs.map → skeleton-CQlSHSfr.mjs.map} +1 -1
- package/dist/chunks/{slider-C_afdOBq.mjs → slider-CaliGouI.mjs} +9 -9
- package/dist/chunks/{slider-C_afdOBq.mjs.map → slider-CaliGouI.mjs.map} +1 -1
- package/dist/chunks/{sortable-Hz2p-hG_.mjs → sortable-BoTUMXD0.mjs} +3 -3
- package/dist/chunks/{sortable-Hz2p-hG_.mjs.map → sortable-BoTUMXD0.mjs.map} +1 -1
- package/dist/chunks/{styles-DQr_CtBg.mjs → styles-C5sFcbz4.mjs} +1 -1
- package/dist/chunks/{styles-DQr_CtBg.mjs.map → styles-C5sFcbz4.mjs.map} +1 -1
- package/dist/chunks/{switch-CoxjUYji.mjs → switch-szutUcvb.mjs} +7 -7
- package/dist/chunks/{switch-CoxjUYji.mjs.map → switch-szutUcvb.mjs.map} +1 -1
- package/dist/chunks/{table-CaTzvnGO.mjs → table-wwce3IsC.mjs} +2 -2
- package/dist/chunks/{table-CaTzvnGO.mjs.map → table-wwce3IsC.mjs.map} +1 -1
- package/dist/chunks/{tabs-DbcqE74l.mjs → tabs-BDPMoWeJ.mjs} +9 -9
- package/dist/chunks/{tabs-DbcqE74l.mjs.map → tabs-BDPMoWeJ.mjs.map} +1 -1
- package/dist/chunks/{textarea-C99bTFre.mjs → textarea-DYBOxg35.mjs} +2 -2
- package/dist/chunks/{textarea-C99bTFre.mjs.map → textarea-DYBOxg35.mjs.map} +1 -1
- package/dist/chunks/toast-S15TT7Q2.mjs +702 -0
- package/dist/chunks/toast-S15TT7Q2.mjs.map +1 -0
- package/dist/chunks/{toggle-x7-6JYvP.mjs → toggle-GXtKRhvr.mjs} +4 -4
- package/dist/chunks/{toggle-x7-6JYvP.mjs.map → toggle-GXtKRhvr.mjs.map} +1 -1
- package/dist/chunks/{tooltip-aCFcTWvT.mjs → tooltip-z43eMlPO.mjs} +11 -11
- package/dist/chunks/{tooltip-aCFcTWvT.mjs.map → tooltip-z43eMlPO.mjs.map} +1 -1
- package/dist/chunks/{trash-2-BRTBRPsE.mjs → trash-2-CZE_1bXY.mjs} +2 -2
- package/dist/chunks/{trash-2-BRTBRPsE.mjs.map → trash-2-CZE_1bXY.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-DEr_0gbo.mjs → triangle-alert-BeczCtiG.mjs} +2 -2
- package/dist/chunks/{triangle-alert-DEr_0gbo.mjs.map → triangle-alert-BeczCtiG.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-9fTryOSE.mjs → tslib.es6-B20VGjW7.mjs} +1 -1
- package/dist/chunks/{tslib.es6-9fTryOSE.mjs.map → tslib.es6-B20VGjW7.mjs.map} +1 -1
- package/dist/chunks/use-toast-C3gJQZ0s.mjs +137 -0
- package/dist/chunks/use-toast-C3gJQZ0s.mjs.map +1 -0
- package/dist/chunks/{utils-M7D-rn0u.mjs → utils-uOfHPBdi.mjs} +2 -2
- package/dist/chunks/{utils-M7D-rn0u.mjs.map → utils-uOfHPBdi.mjs.map} +1 -1
- package/dist/chunks/{wand-sparkles-cr6EaHA_.mjs → wand-sparkles-COk3z6HL.mjs} +2 -2
- package/dist/chunks/{wand-sparkles-cr6EaHA_.mjs.map → wand-sparkles-COk3z6HL.mjs.map} +1 -1
- package/dist/chunks/{x-Heb3hHKJ.mjs → x-D5HL_X5m.mjs} +2 -2
- package/dist/chunks/{x-Heb3hHKJ.mjs.map → x-D5HL_X5m.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +7 -7
- package/dist/combobox/index.mjs +24 -24
- package/dist/command/index.d.ts +7 -7
- 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.mjs +33 -33
- package/dist/date-picker/index.d.ts +22 -7
- package/dist/date-picker/index.mjs +25 -25
- 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 +19 -131
- package/dist/dropzone/index.mjs.map +1 -1
- package/dist/editable-table/index.mjs +18 -18
- package/dist/empty/index.mjs +2 -2
- package/dist/field/index.d.ts +3 -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 +69 -56
- 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/input/index.mjs +3 -3
- package/dist/input-group/index.d.ts +1 -1
- package/dist/input-group/index.mjs +5 -5
- package/dist/input-otp/index.mjs +4 -4
- package/dist/item/index.d.ts +4 -2
- package/dist/item/index.mjs +3 -3
- 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.d.ts +1 -1
- 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.d.ts +13 -3
- package/dist/shared/index.mjs +6 -6
- package/dist/shared/index.mjs.map +1 -1
- package/dist/sheet/index.d.ts +7 -7
- package/dist/sheet/index.mjs +17 -17
- package/dist/sidebar/index.d.ts +17 -4
- 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.d.ts +12 -3
- 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 +8 -3
- package/dist/table-filter/index.mjs +52 -52
- package/dist/tabs/index.mjs +12 -12
- package/dist/textarea/index.mjs +3 -3
- package/dist/toast/index.mjs +19 -703
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toaster/index.d.ts +5 -0
- package/dist/toaster/index.mjs +34 -0
- package/dist/toaster/index.mjs.map +1 -0
- 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/AutoComplete-qFuwmV53.mjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-B2Be7UYW.mjs.map +0 -1
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import React__default from 'react';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import '
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { DayPicker } from 'react-day-picker';
|
|
7
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
8
|
+
|
|
9
|
+
declare const buttonVariants: (props?: ({
|
|
10
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "selection" | "upload" | "ghost" | "link" | "table" | null | undefined;
|
|
11
|
+
size?: "default" | "sm" | "lg" | "icon" | "normal" | "icon-sm" | "icon-lg" | null | undefined;
|
|
12
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
isAction?: boolean;
|
|
16
|
+
subtle?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, fromYear, toYear, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
21
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
22
|
+
}): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
declare function Popover({ ...props }: React__default.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
10
25
|
|
|
11
26
|
interface DatePickerProps extends Omit<React__default.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect"> {
|
|
12
27
|
/** Data selecionada (pode ser Date ou string parseável) */
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c as cn } from '../chunks/utils-
|
|
3
|
-
import { t as tryParseDate, p as ptBR } from '../chunks/date-
|
|
4
|
-
import { C as CalendarDays } from '../chunks/calendar-days-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import '../chunks/bundle-mjs-
|
|
10
|
-
import '../chunks/createLucideIcon-
|
|
11
|
-
import '../chunks/
|
|
2
|
+
import { c as cn } from '../chunks/utils-uOfHPBdi.mjs';
|
|
3
|
+
import { t as tryParseDate, p as ptBR } from '../chunks/date-Y_hKMQVr.mjs';
|
|
4
|
+
import { C as CalendarDays } from '../chunks/calendar-days-BSzlDBsi.mjs';
|
|
5
|
+
import { C as Calendar } from '../chunks/calendar-C549VT55.mjs';
|
|
6
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-D3JC54Y3.mjs';
|
|
7
|
+
import { B as Button } from '../chunks/button-BW9I4XWU.mjs';
|
|
8
|
+
import { f as format } from '../chunks/format-CR4Q6BSq.mjs';
|
|
9
|
+
import '../chunks/bundle-mjs-BRbxNcQb.mjs';
|
|
10
|
+
import '../chunks/createLucideIcon-CkP7424r.mjs';
|
|
11
|
+
import '../chunks/chevron-left-BZ8X7kLy.mjs';
|
|
12
|
+
import '../chunks/chevron-right-jAScR3zY.mjs';
|
|
13
|
+
import '../chunks/chevron-down-o7NUBnJ4.mjs';
|
|
14
|
+
import '../chunks/index-DLqxy-dg.mjs';
|
|
12
15
|
import 'react-dom';
|
|
13
16
|
import '@radix-ui/react-slot';
|
|
14
17
|
import 'react/jsx-runtime';
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/tslib.es6-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
18
|
+
import '../chunks/index-CVjOpozG.mjs';
|
|
19
|
+
import '../chunks/index-CvVBB5ll.mjs';
|
|
20
|
+
import '../chunks/index-Cs9A0tpU.mjs';
|
|
21
|
+
import '../chunks/index-D_e6adwb.mjs';
|
|
22
|
+
import '../chunks/tslib.es6-B20VGjW7.mjs';
|
|
23
|
+
import '../chunks/index-Dp_0m03a.mjs';
|
|
24
|
+
import '../chunks/index-4pJ77hyF.mjs';
|
|
25
|
+
import '../chunks/index-DCDDoDjL.mjs';
|
|
26
|
+
import '../chunks/index-DhI6OG_H.mjs';
|
|
27
|
+
import '../chunks/index-DQD35Ges.mjs';
|
|
28
|
+
import '../chunks/index-CByz7d8q.mjs';
|
|
29
|
+
import '../chunks/index-D2DYiX9D.mjs';
|
|
27
30
|
import 'class-variance-authority';
|
|
28
|
-
import '../chunks/chevron-left-BpfBwM4S.mjs';
|
|
29
|
-
import '../chunks/chevron-right-uq-O8rwC.mjs';
|
|
30
|
-
import '../chunks/chevron-down-CZjN_vyX.mjs';
|
|
31
31
|
|
|
32
32
|
function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "date-picker", buttonProps, popoverProps, popoverContentClassName, className, disabled, defaultMonth, ...props }) {
|
|
33
33
|
const validDate = tryParseDate(date);
|
package/dist/dialog/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { D as Dialog, a as DialogClose, b as DialogContent, c as DialogDescription, d as DialogFooter, e as DialogHeader, f as DialogOverlay, g as DialogPortal, h as DialogTitle, i as DialogTrigger } from '../chunks/dialog-
|
|
2
|
-
import '../chunks/index-
|
|
1
|
+
export { D as Dialog, a as DialogClose, b as DialogContent, c as DialogDescription, d as DialogFooter, e as DialogHeader, f as DialogOverlay, g as DialogPortal, h as DialogTitle, i as DialogTrigger } from '../chunks/dialog-BhaHMQnG.mjs';
|
|
2
|
+
import '../chunks/index-Bt1elORc.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../chunks/index-
|
|
4
|
+
import '../chunks/index-DLqxy-dg.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-
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/tslib.es6-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/utils-
|
|
19
|
-
import '../chunks/bundle-mjs-
|
|
20
|
-
import '../chunks/x-
|
|
21
|
-
import '../chunks/createLucideIcon-
|
|
8
|
+
import '../chunks/index-CVjOpozG.mjs';
|
|
9
|
+
import '../chunks/index-Dp_0m03a.mjs';
|
|
10
|
+
import '../chunks/index-4pJ77hyF.mjs';
|
|
11
|
+
import '../chunks/index-D2DYiX9D.mjs';
|
|
12
|
+
import '../chunks/index-CvVBB5ll.mjs';
|
|
13
|
+
import '../chunks/index-Cs9A0tpU.mjs';
|
|
14
|
+
import '../chunks/index-D_e6adwb.mjs';
|
|
15
|
+
import '../chunks/tslib.es6-B20VGjW7.mjs';
|
|
16
|
+
import '../chunks/index-DQD35Ges.mjs';
|
|
17
|
+
import '../chunks/index-CByz7d8q.mjs';
|
|
18
|
+
import '../chunks/utils-uOfHPBdi.mjs';
|
|
19
|
+
import '../chunks/bundle-mjs-BRbxNcQb.mjs';
|
|
20
|
+
import '../chunks/x-D5HL_X5m.mjs';
|
|
21
|
+
import '../chunks/createLucideIcon-CkP7424r.mjs';
|
|
22
22
|
//# sourceMappingURL=index.mjs.map
|
package/dist/drawer/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useLayoutEffect, useEffect, useMemo } from 'react';
|
|
3
|
-
import { b as Trigger, C as Close, T as Title, D as Description, R as Root$1, P as Portal$1, O as Overlay$1, a as Content$1 } from '../chunks/index-
|
|
4
|
-
import { c as cn } from '../chunks/utils-
|
|
5
|
-
import '../chunks/index-
|
|
3
|
+
import { b as Trigger, C as Close, T as Title, D as Description, R as Root$1, P as Portal$1, O as Overlay$1, a as Content$1 } from '../chunks/index-Bt1elORc.mjs';
|
|
4
|
+
import { c as cn } from '../chunks/utils-uOfHPBdi.mjs';
|
|
5
|
+
import '../chunks/index-DLqxy-dg.mjs';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '@radix-ui/react-slot';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/tslib.es6-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/bundle-mjs-
|
|
9
|
+
import '../chunks/index-CVjOpozG.mjs';
|
|
10
|
+
import '../chunks/index-Dp_0m03a.mjs';
|
|
11
|
+
import '../chunks/index-4pJ77hyF.mjs';
|
|
12
|
+
import '../chunks/index-D2DYiX9D.mjs';
|
|
13
|
+
import '../chunks/index-CvVBB5ll.mjs';
|
|
14
|
+
import '../chunks/index-Cs9A0tpU.mjs';
|
|
15
|
+
import '../chunks/index-D_e6adwb.mjs';
|
|
16
|
+
import '../chunks/tslib.es6-B20VGjW7.mjs';
|
|
17
|
+
import '../chunks/index-DQD35Ges.mjs';
|
|
18
|
+
import '../chunks/index-CByz7d8q.mjs';
|
|
19
|
+
import '../chunks/bundle-mjs-BRbxNcQb.mjs';
|
|
20
20
|
|
|
21
21
|
function __insertCSS(code) {
|
|
22
22
|
if (typeof document == 'undefined') return;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { P as Primitive, c as composeEventHandlers } from '../chunks/index-
|
|
4
|
-
import { c as createContextScope, b as composeRefs } from '../chunks/index-
|
|
5
|
-
import { u as useControllableState } from '../chunks/index-
|
|
6
|
-
import { c as createMenuScope, R as Root3, P as Portal, A as Anchor2, C as Content2$1, G as Group, L as Label, I as Item2$1, a as CheckboxItem, b as ItemIndicator, h as RadioGroup, d as RadioItem, S as Separator, e as Sub, g as SubTrigger, f as SubContent, i as Arrow2, j as Circle } from '../chunks/index-
|
|
7
|
-
import { u as useId } from '../chunks/index-
|
|
3
|
+
import { P as Primitive, c as composeEventHandlers } from '../chunks/index-DLqxy-dg.mjs';
|
|
4
|
+
import { c as createContextScope, b as composeRefs } from '../chunks/index-CVjOpozG.mjs';
|
|
5
|
+
import { u as useControllableState } from '../chunks/index-D2DYiX9D.mjs';
|
|
6
|
+
import { c as createMenuScope, R as Root3, P as Portal, A as Anchor2, C as Content2$1, G as Group, L as Label, I as Item2$1, a as CheckboxItem, b as ItemIndicator, h as RadioGroup, d as RadioItem, S as Separator, e as Sub, g as SubTrigger, f as SubContent, i as Arrow2, j as Circle } from '../chunks/index-D1CSAowX.mjs';
|
|
7
|
+
import { u as useId } from '../chunks/index-Dp_0m03a.mjs';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { c as cn } from '../chunks/utils-
|
|
10
|
-
import { C as Check } from '../chunks/check-
|
|
11
|
-
import { C as ChevronRight } from '../chunks/chevron-right-
|
|
9
|
+
import { c as cn } from '../chunks/utils-uOfHPBdi.mjs';
|
|
10
|
+
import { C as Check } from '../chunks/check-CKdwsuVA.mjs';
|
|
11
|
+
import { C as ChevronRight } from '../chunks/chevron-right-jAScR3zY.mjs';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@radix-ui/react-slot';
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/createLucideIcon-
|
|
14
|
+
import '../chunks/index-4pJ77hyF.mjs';
|
|
15
|
+
import '../chunks/createLucideIcon-CkP7424r.mjs';
|
|
16
16
|
import '@radix-ui/react-collection';
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/tslib.es6-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/bundle-mjs-
|
|
17
|
+
import '../chunks/index-D_Q4NGnO.mjs';
|
|
18
|
+
import '../chunks/index-CvVBB5ll.mjs';
|
|
19
|
+
import '../chunks/index-Cs9A0tpU.mjs';
|
|
20
|
+
import '../chunks/index-D_e6adwb.mjs';
|
|
21
|
+
import '../chunks/tslib.es6-B20VGjW7.mjs';
|
|
22
|
+
import '../chunks/index-DCDDoDjL.mjs';
|
|
23
|
+
import '../chunks/index-DhI6OG_H.mjs';
|
|
24
|
+
import '../chunks/index-DQD35Ges.mjs';
|
|
25
|
+
import '../chunks/index-CByz7d8q.mjs';
|
|
26
|
+
import '../chunks/index-CS2Lzoed.mjs';
|
|
27
|
+
import '../chunks/bundle-mjs-BRbxNcQb.mjs';
|
|
28
28
|
|
|
29
29
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
30
30
|
var [createDropdownMenuContext] = createContextScope(DROPDOWN_MENU_NAME, [
|
package/dist/dropzone/index.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import React__default, { forwardRef, useImperativeHandle, Fragment, useMemo, useRef, useReducer, useEffect, useCallback, useState } from 'react';
|
|
2
|
-
import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-
|
|
3
|
-
import { c as __awaiter } from '../chunks/tslib.es6-
|
|
4
|
-
import {
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import '../chunks/
|
|
2
|
+
import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-DkfSKqYE.mjs';
|
|
3
|
+
import { c as __awaiter } from '../chunks/tslib.es6-B20VGjW7.mjs';
|
|
4
|
+
import { t as toast } from '../chunks/use-toast-C3gJQZ0s.mjs';
|
|
5
|
+
import { c as cn, f as formatBytes } from '../chunks/utils-uOfHPBdi.mjs';
|
|
6
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-CkP7424r.mjs';
|
|
7
|
+
import { P as Progress } from '../chunks/progress-D_Enl4tV.mjs';
|
|
8
|
+
import { X } from '../chunks/x-D5HL_X5m.mjs';
|
|
9
|
+
import { S as ScrollArea } from '../chunks/scroll-area-CdGRe--S.mjs';
|
|
10
|
+
import { B as Button } from '../chunks/button-BW9I4XWU.mjs';
|
|
11
|
+
import '../chunks/bundle-mjs-BRbxNcQb.mjs';
|
|
11
12
|
import 'react/jsx-runtime';
|
|
12
13
|
import 'react-dom';
|
|
13
14
|
import '@radix-ui/react-slot';
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
15
|
+
import '../chunks/index-DLqxy-dg.mjs';
|
|
16
|
+
import '../chunks/index-CByz7d8q.mjs';
|
|
17
|
+
import '../chunks/index-CVjOpozG.mjs';
|
|
18
|
+
import '../chunks/index-4pJ77hyF.mjs';
|
|
19
|
+
import '../chunks/index-Cs9A0tpU.mjs';
|
|
20
|
+
import '../chunks/index-D_Q4NGnO.mjs';
|
|
21
|
+
import '../chunks/index-oX_tk439.mjs';
|
|
21
22
|
import 'class-variance-authority';
|
|
22
23
|
|
|
23
24
|
const __iconNode$1 = [
|
|
@@ -7028,7 +7029,7 @@ Dropzone.propTypes = {
|
|
|
7028
7029
|
* @type {React.MutableRefObject<HTMLElement>}
|
|
7029
7030
|
*/ var rootRef = useRef(null);
|
|
7030
7031
|
var inputRef = useRef(null);
|
|
7031
|
-
var _useReducer = useReducer(reducer
|
|
7032
|
+
var _useReducer = useReducer(reducer, initialState), _useReducer2 = _slicedToArray(_useReducer, 2), state = _useReducer2[0], dispatch = _useReducer2[1];
|
|
7032
7033
|
var isFocused = state.isFocused, isFileDialogActive = state.isFileDialogActive;
|
|
7033
7034
|
var fsAccessApiWorksRef = useRef(typeof window !== "undefined" && window.isSecureContext && useFsAccessApi && canUseFileSystemAccessAPI()); // Update file dialog active state when the window is focused on
|
|
7034
7035
|
var onWindowFocus = function onWindowFocus() {
|
|
@@ -7476,7 +7477,7 @@ Dropzone.propTypes = {
|
|
|
7476
7477
|
* @param {DropzoneState} state
|
|
7477
7478
|
* @param {{type: string} & DropzoneState} action
|
|
7478
7479
|
* @returns {DropzoneState}
|
|
7479
|
-
*/ function reducer
|
|
7480
|
+
*/ function reducer(state, action) {
|
|
7480
7481
|
/* istanbul ignore next */ switch(action.type){
|
|
7481
7482
|
case "focus":
|
|
7482
7483
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
@@ -7572,119 +7573,6 @@ function useUncontrolledState({ defaultProp, onChange }) {
|
|
|
7572
7573
|
return uncontrolledState;
|
|
7573
7574
|
}
|
|
7574
7575
|
|
|
7575
|
-
const TOAST_LIMIT = 1;
|
|
7576
|
-
const TOAST_REMOVE_DELAY = 1000000;
|
|
7577
|
-
let count = 0;
|
|
7578
|
-
function genId() {
|
|
7579
|
-
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
7580
|
-
return count.toString();
|
|
7581
|
-
}
|
|
7582
|
-
const toastTimeouts = new Map();
|
|
7583
|
-
const addToRemoveQueue = (toastId)=>{
|
|
7584
|
-
if (toastTimeouts.has(toastId)) {
|
|
7585
|
-
return;
|
|
7586
|
-
}
|
|
7587
|
-
const timeout = setTimeout(()=>{
|
|
7588
|
-
toastTimeouts.delete(toastId);
|
|
7589
|
-
dispatch({
|
|
7590
|
-
type: "REMOVE_TOAST",
|
|
7591
|
-
toastId: toastId
|
|
7592
|
-
});
|
|
7593
|
-
}, TOAST_REMOVE_DELAY);
|
|
7594
|
-
toastTimeouts.set(toastId, timeout);
|
|
7595
|
-
};
|
|
7596
|
-
const reducer = (state, action)=>{
|
|
7597
|
-
switch(action.type){
|
|
7598
|
-
case "ADD_TOAST":
|
|
7599
|
-
return {
|
|
7600
|
-
...state,
|
|
7601
|
-
toasts: [
|
|
7602
|
-
action.toast,
|
|
7603
|
-
...state.toasts
|
|
7604
|
-
].slice(0, TOAST_LIMIT)
|
|
7605
|
-
};
|
|
7606
|
-
case "UPDATE_TOAST":
|
|
7607
|
-
return {
|
|
7608
|
-
...state,
|
|
7609
|
-
toasts: state.toasts.map((t)=>t.id === action.toast.id ? {
|
|
7610
|
-
...t,
|
|
7611
|
-
...action.toast
|
|
7612
|
-
} : t)
|
|
7613
|
-
};
|
|
7614
|
-
case "DISMISS_TOAST":
|
|
7615
|
-
{
|
|
7616
|
-
const { toastId } = action;
|
|
7617
|
-
// ! Side effects ! - This could be extracted into a dismissToast() action,
|
|
7618
|
-
// but I'll keep it here for simplicity
|
|
7619
|
-
if (toastId) {
|
|
7620
|
-
addToRemoveQueue(toastId);
|
|
7621
|
-
} else {
|
|
7622
|
-
for (const toast of state.toasts){
|
|
7623
|
-
addToRemoveQueue(toast.id);
|
|
7624
|
-
}
|
|
7625
|
-
}
|
|
7626
|
-
return {
|
|
7627
|
-
...state,
|
|
7628
|
-
toasts: state.toasts.map((t)=>t.id === toastId || toastId === undefined ? {
|
|
7629
|
-
...t,
|
|
7630
|
-
open: false
|
|
7631
|
-
} : t)
|
|
7632
|
-
};
|
|
7633
|
-
}
|
|
7634
|
-
case "REMOVE_TOAST":
|
|
7635
|
-
if (action.toastId === undefined) {
|
|
7636
|
-
return {
|
|
7637
|
-
...state,
|
|
7638
|
-
toasts: []
|
|
7639
|
-
};
|
|
7640
|
-
}
|
|
7641
|
-
return {
|
|
7642
|
-
...state,
|
|
7643
|
-
toasts: state.toasts.filter((t)=>t.id !== action.toastId)
|
|
7644
|
-
};
|
|
7645
|
-
}
|
|
7646
|
-
};
|
|
7647
|
-
const listeners = [];
|
|
7648
|
-
let memoryState = {
|
|
7649
|
-
toasts: []
|
|
7650
|
-
};
|
|
7651
|
-
function dispatch(action) {
|
|
7652
|
-
memoryState = reducer(memoryState, action);
|
|
7653
|
-
for (const listener of listeners){
|
|
7654
|
-
listener(memoryState);
|
|
7655
|
-
}
|
|
7656
|
-
}
|
|
7657
|
-
function toast({ ...props }) {
|
|
7658
|
-
const id = genId();
|
|
7659
|
-
const update = (props)=>dispatch({
|
|
7660
|
-
type: "UPDATE_TOAST",
|
|
7661
|
-
toast: {
|
|
7662
|
-
...props,
|
|
7663
|
-
id
|
|
7664
|
-
}
|
|
7665
|
-
});
|
|
7666
|
-
const dismiss = ()=>dispatch({
|
|
7667
|
-
type: "DISMISS_TOAST",
|
|
7668
|
-
toastId: id
|
|
7669
|
-
});
|
|
7670
|
-
dispatch({
|
|
7671
|
-
type: "ADD_TOAST",
|
|
7672
|
-
toast: {
|
|
7673
|
-
...props,
|
|
7674
|
-
id,
|
|
7675
|
-
open: true,
|
|
7676
|
-
onOpenChange: (open)=>{
|
|
7677
|
-
if (!open) dismiss();
|
|
7678
|
-
}
|
|
7679
|
-
}
|
|
7680
|
-
});
|
|
7681
|
-
return {
|
|
7682
|
-
id: id,
|
|
7683
|
-
dismiss,
|
|
7684
|
-
update
|
|
7685
|
-
};
|
|
7686
|
-
}
|
|
7687
|
-
|
|
7688
7576
|
function FileUploader(props) {
|
|
7689
7577
|
const { value: valueProp, onValueChange, onUpload, progresses, accept = {
|
|
7690
7578
|
"image/*": []
|