ivt 0.7.3 → 0.7.5
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 -15
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/accordion-table/index.mjs +26 -28
- package/dist/accordion-table/index.mjs.map +1 -1
- package/dist/alert/index.mjs +3 -3
- package/dist/alert-dialog/index.mjs +15 -17
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/aspect-ratio/index.mjs +42 -3
- package/dist/aspect-ratio/index.mjs.map +1 -1
- package/dist/auto-complete-multi-select/index.mjs +31 -33
- package/dist/auto-complete-multi-select/index.mjs.map +1 -1
- package/dist/avatar/index.mjs +130 -8
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +31 -9
- package/dist/base/index.mjs +79 -164
- 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 -4
- package/dist/button-group/index.mjs.map +1 -1
- 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 +2869 -1282
- package/dist/chart/index.mjs.map +1 -1
- package/dist/checkbox/index.mjs +12 -14
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chunks/AutoComplete-BpwnFm_u.mjs +106 -0
- package/dist/chunks/AutoComplete-BpwnFm_u.mjs.map +1 -0
- package/dist/chunks/{CalendarRange-C6BJ_i8D.mjs → CalendarRange-BGP7p-ma.mjs} +8 -8
- package/dist/chunks/{CalendarRange-C6BJ_i8D.mjs.map → CalendarRange-BGP7p-ma.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-DFqOZmlN.mjs → ComboboxField-CzJlHHXv.mjs} +9 -9
- package/dist/chunks/{ComboboxField-DFqOZmlN.mjs.map → ComboboxField-CzJlHHXv.mjs.map} +1 -1
- package/dist/chunks/{Container-BFnURH_3.mjs → Container-77E_UFi2.mjs} +2 -2
- package/dist/chunks/{Container-BFnURH_3.mjs.map → Container-77E_UFi2.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-3tgFcxyU.mjs → DeleteConfirmationModal-DQK05Srx.mjs} +4 -4
- package/dist/chunks/{DeleteConfirmationModal-3tgFcxyU.mjs.map → DeleteConfirmationModal-DQK05Srx.mjs.map} +1 -1
- package/dist/chunks/{ListItem-Dhdqegoz.mjs → ListItem-B0_5JcsU.mjs} +4 -4
- package/dist/chunks/{ListItem-Dhdqegoz.mjs.map → ListItem-B0_5JcsU.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-tYIvoK3x.mjs → TooltipIndicator-Db1poSJI.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-tYIvoK3x.mjs.map → TooltipIndicator-Db1poSJI.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-CDajFLDm.mjs → _commonjsHelpers-DkfSKqYE.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-DkfSKqYE.mjs.map +1 -0
- package/dist/chunks/{accordion-Dig0Vyew.mjs → accordion-DSn7k_RQ.mjs} +9 -11
- package/dist/chunks/{accordion-Dig0Vyew.mjs.map → accordion-DSn7k_RQ.mjs.map} +1 -1
- package/dist/chunks/{alert-CtNiMMMm.mjs → alert-aP6n7wtq.mjs} +2 -2
- package/dist/chunks/{alert-CtNiMMMm.mjs.map → alert-aP6n7wtq.mjs.map} +1 -1
- package/dist/chunks/{badge-CMepcgQ2.mjs → badge-CsUuqHNu.mjs} +2 -2
- package/dist/chunks/{badge-CMepcgQ2.mjs.map → badge-CsUuqHNu.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-ByJyReDu.mjs → bundle-mjs-BRbxNcQb.mjs} +228 -154
- package/dist/chunks/bundle-mjs-BRbxNcQb.mjs.map +1 -0
- package/dist/chunks/{button-DHQrVlqk.mjs → button-BW9I4XWU.mjs} +2 -2
- package/dist/chunks/{button-DHQrVlqk.mjs.map → button-BW9I4XWU.mjs.map} +1 -1
- package/dist/chunks/button-C8IZYeQz.d.ts +16 -0
- package/dist/chunks/{calendar-DtKpXGXO.mjs → calendar-C549VT55.mjs} +1181 -797
- package/dist/chunks/calendar-C549VT55.mjs.map +1 -0
- package/dist/chunks/{calendar-days-5V8H0_Qn.mjs → calendar-days-BSzlDBsi.mjs} +2 -2
- package/dist/chunks/{calendar-days-5V8H0_Qn.mjs.map → calendar-days-BSzlDBsi.mjs.map} +1 -1
- package/dist/chunks/{card-DgO3JDtX.mjs → card-Dqm2EuWU.mjs} +2 -2
- package/dist/chunks/{card-DgO3JDtX.mjs.map → card-Dqm2EuWU.mjs.map} +1 -1
- package/dist/chunks/{check-yo43z6YO.mjs → check-CKdwsuVA.mjs} +2 -2
- package/dist/chunks/{check-yo43z6YO.mjs.map → check-CKdwsuVA.mjs.map} +1 -1
- package/dist/chunks/{checkbox-B3xoUcaP.mjs → checkbox-CvaPsjy3.mjs} +9 -11
- package/dist/chunks/{checkbox-B3xoUcaP.mjs.map → checkbox-CvaPsjy3.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-gO34wzc7.mjs → chevron-down-o7NUBnJ4.mjs} +2 -2
- package/dist/chunks/{chevron-down-gO34wzc7.mjs.map → chevron-down-o7NUBnJ4.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-DGlHB7Nw.mjs → chevron-left-BZ8X7kLy.mjs} +2 -2
- package/dist/chunks/{chevron-left-DGlHB7Nw.mjs.map → chevron-left-BZ8X7kLy.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-B6bwFEdI.mjs → chevron-right-jAScR3zY.mjs} +2 -2
- package/dist/chunks/{chevron-right-B6bwFEdI.mjs.map → chevron-right-jAScR3zY.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-StzXyb6Z.mjs → chevrons-up-down-BSIPdamI.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-StzXyb6Z.mjs.map → chevrons-up-down-BSIPdamI.mjs.map} +1 -1
- package/dist/chunks/{command-BUHV178P.mjs → command-B29vdoVO.mjs} +8 -8
- package/dist/chunks/{command-BUHV178P.mjs.map → command-B29vdoVO.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-BrIj5xiA.mjs → createLucideIcon-CkP7424r.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BrIj5xiA.mjs.map → createLucideIcon-CkP7424r.mjs.map} +1 -1
- package/dist/chunks/{date-re6oTh_O.mjs → date-Y_hKMQVr.mjs} +2 -2
- package/dist/chunks/{date-re6oTh_O.mjs.map → date-Y_hKMQVr.mjs.map} +1 -1
- package/dist/chunks/{dialog-CsH0QGEc.mjs → dialog-BhaHMQnG.mjs} +4 -4
- package/dist/chunks/{dialog-CsH0QGEc.mjs.map → dialog-BhaHMQnG.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-BED2L1d7.mjs → ellipsis-DHAz8TrI.mjs} +2 -2
- package/dist/chunks/{ellipsis-BED2L1d7.mjs.map → ellipsis-DHAz8TrI.mjs.map} +1 -1
- package/dist/chunks/{form-B4-N-eE1.mjs → form-BAxhKbgh.mjs} +299 -150
- package/dist/chunks/form-BAxhKbgh.mjs.map +1 -0
- package/dist/chunks/{format-C24_9AKp.mjs → format-CR4Q6BSq.mjs} +1 -1
- package/dist/chunks/{format-C24_9AKp.mjs.map → format-CR4Q6BSq.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-CksgR7yb.mjs → format-numbers-CWj9Vf7x.mjs} +2 -6
- package/dist/chunks/format-numbers-CWj9Vf7x.mjs.map +1 -0
- package/dist/chunks/{hover-card-Dke495v-.mjs → hover-card-DVmQc78n.mjs} +9 -11
- package/dist/chunks/{hover-card-Dke495v-.mjs.map → hover-card-DVmQc78n.mjs.map} +1 -1
- package/dist/chunks/{index-DIkcxop-.mjs → index-4pJ77hyF.mjs} +1 -1
- package/dist/chunks/{index-DIkcxop-.mjs.map → index-4pJ77hyF.mjs.map} +1 -1
- package/dist/chunks/{index-BrOFvz7z.mjs → index-BN17NQCv.mjs} +1 -1
- package/dist/chunks/{index-BrOFvz7z.mjs.map → index-BN17NQCv.mjs.map} +1 -1
- package/dist/chunks/{index-DmwGzaYt.mjs → index-Bt1elORc.mjs} +9 -11
- package/dist/chunks/{index-DmwGzaYt.mjs.map → index-Bt1elORc.mjs.map} +1 -1
- package/dist/chunks/{index-DHpiwknP.mjs → index-CByz7d8q.mjs} +3 -3
- package/dist/chunks/{index-DHpiwknP.mjs.map → index-CByz7d8q.mjs.map} +1 -1
- package/dist/chunks/{index-BElPX9xn.mjs → index-CS2Lzoed.mjs} +7 -9
- package/dist/chunks/{index-BElPX9xn.mjs.map → index-CS2Lzoed.mjs.map} +1 -1
- package/dist/chunks/{index-C8cUOEOO.mjs → index-CVjOpozG.mjs} +38 -2
- package/dist/chunks/index-CVjOpozG.mjs.map +1 -0
- package/dist/chunks/{index-C-ZwjB4k.mjs → index-Cs9A0tpU.mjs} +1 -1
- package/dist/chunks/{index-C-ZwjB4k.mjs.map → index-Cs9A0tpU.mjs.map} +1 -1
- package/dist/chunks/{index-Bn9j4jd_.mjs → index-Ct610FOk.mjs} +2 -2
- package/dist/chunks/{index-Bn9j4jd_.mjs.map → index-Ct610FOk.mjs.map} +1 -1
- package/dist/chunks/{index-D7mBTwC1.mjs → index-CvVBB5ll.mjs} +4 -5
- package/dist/chunks/{index-D7mBTwC1.mjs.map → index-CvVBB5ll.mjs.map} +1 -1
- package/dist/chunks/{index-7SNyMh-j.mjs → index-D1CSAowX.mjs} +13 -15
- package/dist/chunks/{index-7SNyMh-j.mjs.map → index-D1CSAowX.mjs.map} +1 -1
- package/dist/chunks/{index-DmLyVVSA.mjs → index-D2DYiX9D.mjs} +2 -2
- package/dist/chunks/{index-DmLyVVSA.mjs.map → index-D2DYiX9D.mjs.map} +1 -1
- package/dist/chunks/{index-CFaMr67I.mjs → index-D8mA4n7w.mjs} +1 -1
- package/dist/chunks/{index-CFaMr67I.mjs.map → index-D8mA4n7w.mjs.map} +1 -1
- package/dist/chunks/{index-rXTYYoI9.mjs → index-DCDDoDjL.mjs} +6 -7
- package/dist/chunks/{index-rXTYYoI9.mjs.map → index-DCDDoDjL.mjs.map} +1 -1
- package/dist/chunks/{index-BKxnMSY9.mjs → index-DLqxy-dg.mjs} +12 -2
- package/dist/chunks/index-DLqxy-dg.mjs.map +1 -0
- package/dist/chunks/{index-DLAC_TU-.mjs → index-DNMhNzeD.mjs} +7 -9
- package/dist/chunks/{index-DLAC_TU-.mjs.map → index-DNMhNzeD.mjs.map} +1 -1
- package/dist/chunks/{index-BXScVxAr.mjs → index-DQD35Ges.mjs} +3 -3
- package/dist/chunks/{index-BXScVxAr.mjs.map → index-DQD35Ges.mjs.map} +1 -1
- package/dist/chunks/{index-DjiiXdCh.mjs → index-D_Q4NGnO.mjs} +1 -1
- package/dist/chunks/{index-DjiiXdCh.mjs.map → index-D_Q4NGnO.mjs.map} +1 -1
- package/dist/chunks/{index-BP00_xoF.mjs → index-D_e6adwb.mjs} +12 -5
- package/dist/chunks/index-D_e6adwb.mjs.map +1 -0
- package/dist/chunks/{index-B8RPmvRI.mjs → index-DhI6OG_H.mjs} +2 -2
- package/dist/chunks/{index-B8RPmvRI.mjs.map → index-DhI6OG_H.mjs.map} +1 -1
- package/dist/chunks/{index-DY9hLs8O.mjs → index-Dp_0m03a.mjs} +2 -2
- package/dist/chunks/{index-DY9hLs8O.mjs.map → index-Dp_0m03a.mjs.map} +1 -1
- package/dist/chunks/{index-VN9qcZ4P.mjs → index-oX_tk439.mjs} +1 -1
- package/dist/chunks/{index-VN9qcZ4P.mjs.map → index-oX_tk439.mjs.map} +1 -1
- package/dist/chunks/index.module-Df4mRjmZ.mjs +73 -0
- package/dist/chunks/index.module-Df4mRjmZ.mjs.map +1 -0
- package/dist/chunks/{input-Beaky41D.mjs → input-YpoAHnXb.mjs} +2 -2
- package/dist/chunks/{input-Beaky41D.mjs.map → input-YpoAHnXb.mjs.map} +1 -1
- package/dist/chunks/input-otp-BKqdZwNx.mjs +455 -0
- package/dist/chunks/input-otp-BKqdZwNx.mjs.map +1 -0
- package/dist/chunks/{label-n_pPs58q.mjs → label-D5s6d0et.mjs} +44 -3
- package/dist/chunks/label-D5s6d0et.mjs.map +1 -0
- package/dist/chunks/{loader-circle-CEDL1CbD.mjs → loader-circle-C7StEOZI.mjs} +2 -2
- package/dist/chunks/{loader-circle-CEDL1CbD.mjs.map → loader-circle-C7StEOZI.mjs.map} +1 -1
- package/dist/chunks/{menubar-C8VLP8-v.mjs → menubar-ySifmjAG.mjs} +11 -13
- package/dist/chunks/{menubar-C8VLP8-v.mjs.map → menubar-ySifmjAG.mjs.map} +1 -1
- package/dist/chunks/{multi-select-fLsOx7-e.mjs → multi-select-BsnRMfg7.mjs} +13 -13
- package/dist/chunks/{multi-select-fLsOx7-e.mjs.map → multi-select-BsnRMfg7.mjs.map} +1 -1
- package/dist/chunks/{pagination-iwqbmQ5Q.mjs → pagination-CV6N_Qu_.mjs} +6 -6
- package/dist/chunks/{pagination-iwqbmQ5Q.mjs.map → pagination-CV6N_Qu_.mjs.map} +1 -1
- package/dist/chunks/{popover-Cpht2GgQ.mjs → popover-D3JC54Y3.mjs} +11 -13
- package/dist/chunks/{popover-Cpht2GgQ.mjs.map → popover-D3JC54Y3.mjs.map} +1 -1
- package/dist/chunks/progress-D_Enl4tV.mjs +223 -0
- package/dist/chunks/progress-D_Enl4tV.mjs.map +1 -0
- package/dist/chunks/radio-group-yF1QEewC.mjs +258 -0
- package/dist/chunks/radio-group-yF1QEewC.mjs.map +1 -0
- package/dist/chunks/{react-number-format.es-CcgVtYyo.mjs → react-number-format.es-C3uDZhRo.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-CcgVtYyo.mjs.map → react-number-format.es-C3uDZhRo.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-DuO1U-ha.mjs → scroll-area-CdGRe--S.mjs} +9 -11
- package/dist/chunks/{scroll-area-DuO1U-ha.mjs.map → scroll-area-CdGRe--S.mjs.map} +1 -1
- package/dist/chunks/{select-D5DzfQ8s.mjs → select-B8JYuJE5.mjs} +5 -5
- package/dist/chunks/{select-D5DzfQ8s.mjs.map → select-B8JYuJE5.mjs.map} +1 -1
- package/dist/chunks/{separator-DHnqygnd.mjs → separator-sWF5eZgM.mjs} +44 -3
- package/dist/chunks/separator-sWF5eZgM.mjs.map +1 -0
- package/dist/chunks/{sheet-CXvwS4r9.mjs → sheet-D-4XWzUo.mjs} +4 -4
- package/dist/chunks/{sheet-CXvwS4r9.mjs.map → sheet-D-4XWzUo.mjs.map} +1 -1
- package/dist/chunks/{skeleton-CuuvHTlE.mjs → skeleton-CQlSHSfr.mjs} +2 -2
- package/dist/chunks/{skeleton-CuuvHTlE.mjs.map → skeleton-CQlSHSfr.mjs.map} +1 -1
- package/dist/chunks/slider-CaliGouI.mjs +588 -0
- package/dist/chunks/slider-CaliGouI.mjs.map +1 -0
- package/dist/chunks/{sortable-Dc-PXgOX.mjs → sortable-BoTUMXD0.mjs} +3 -3
- package/dist/chunks/{sortable-Dc-PXgOX.mjs.map → sortable-BoTUMXD0.mjs.map} +1 -1
- package/dist/chunks/styles-C5sFcbz4.mjs +6 -0
- package/dist/chunks/styles-C5sFcbz4.mjs.map +1 -0
- package/dist/chunks/switch-szutUcvb.mjs +138 -0
- package/dist/chunks/switch-szutUcvb.mjs.map +1 -0
- package/dist/chunks/{table-CsRWNDTp.mjs → table-wwce3IsC.mjs} +2 -2
- package/dist/chunks/{table-CsRWNDTp.mjs.map → table-wwce3IsC.mjs.map} +1 -1
- package/dist/chunks/{tabs-Bw6ByWDS.mjs → tabs-BDPMoWeJ.mjs} +9 -10
- package/dist/chunks/{tabs-Bw6ByWDS.mjs.map → tabs-BDPMoWeJ.mjs.map} +1 -1
- package/dist/chunks/{textarea-C7CkvJ9p.mjs → textarea-DYBOxg35.mjs} +2 -2
- package/dist/chunks/{textarea-C7CkvJ9p.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-BRsNuICy.mjs → toggle-GXtKRhvr.mjs} +4 -5
- package/dist/chunks/{toggle-BRsNuICy.mjs.map → toggle-GXtKRhvr.mjs.map} +1 -1
- package/dist/chunks/{tooltip-DXG_UtcS.mjs → tooltip-z43eMlPO.mjs} +11 -13
- package/dist/chunks/{tooltip-DXG_UtcS.mjs.map → tooltip-z43eMlPO.mjs.map} +1 -1
- package/dist/chunks/{trash-2-DSHxuneu.mjs → trash-2-CZE_1bXY.mjs} +2 -2
- package/dist/chunks/{trash-2-DSHxuneu.mjs.map → trash-2-CZE_1bXY.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-8sDAvjNW.mjs → triangle-alert-BeczCtiG.mjs} +2 -2
- package/dist/chunks/{triangle-alert-8sDAvjNW.mjs.map → triangle-alert-BeczCtiG.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-WVUvgLYj.mjs → tslib.es6-B20VGjW7.mjs} +1 -1
- package/dist/chunks/{tslib.es6-WVUvgLYj.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-BqIRZT53.mjs → utils-uOfHPBdi.mjs} +2 -2
- package/dist/chunks/{utils-BqIRZT53.mjs.map → utils-uOfHPBdi.mjs.map} +1 -1
- package/dist/chunks/{wand-sparkles-BjK8VloB.mjs → wand-sparkles-COk3z6HL.mjs} +2 -2
- package/dist/chunks/{wand-sparkles-BjK8VloB.mjs.map → wand-sparkles-COk3z6HL.mjs.map} +1 -1
- package/dist/chunks/{x-D7oIZ9hK.mjs → x-D5HL_X5m.mjs} +2 -2
- package/dist/chunks/{x-D7oIZ9hK.mjs.map → x-D5HL_X5m.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +8 -10
- package/dist/collapsible/index.mjs.map +1 -1
- package/dist/combobox/index.mjs +25 -27
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.ts +7 -7
- package/dist/command/index.mjs +19 -21
- package/dist/command/index.mjs.map +1 -1
- package/dist/context-menu/index.mjs +21 -23
- package/dist/context-menu/index.mjs.map +1 -1
- package/dist/dash/index.mjs +25 -26
- package/dist/dash/index.mjs.map +1 -1
- package/dist/data-table/index.mjs +33 -35
- package/dist/data-table/index.mjs.map +1 -1
- package/dist/date-picker/index.d.ts +22 -7
- package/dist/date-picker/index.mjs +26 -28
- package/dist/date-picker/index.mjs.map +1 -1
- package/dist/dialog/index.mjs +18 -20
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/drawer/index.mjs +15 -17
- package/dist/drawer/index.mjs.map +1 -1
- package/dist/dropdown-menu/index.mjs +21 -23
- package/dist/dropdown-menu/index.mjs.map +1 -1
- package/dist/dropzone/index.mjs +19 -133
- package/dist/dropzone/index.mjs.map +1 -1
- package/dist/editable-table/index.mjs +18 -20
- package/dist/editable-table/index.mjs.map +1 -1
- package/dist/empty/index.mjs +2 -2
- package/dist/field/index.d.ts +3 -2
- package/dist/field/index.mjs +4 -5
- package/dist/field/index.mjs.map +1 -1
- package/dist/form/index.mjs +4 -5
- package/dist/form/index.mjs.map +1 -1
- package/dist/form-fields/index.mjs +27 -29
- package/dist/form-fields/index.mjs.map +1 -1
- package/dist/form-layout/index.d.ts +86 -0
- package/dist/form-layout/index.mjs +535 -0
- package/dist/form-layout/index.mjs.map +1 -0
- package/dist/hover-card/index.mjs +14 -16
- package/dist/hover-card/index.mjs.map +1 -1
- 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.d.ts +1 -1
- package/dist/input-group/index.mjs +5 -5
- package/dist/input-otp/index.mjs +5 -455
- package/dist/input-otp/index.mjs.map +1 -1
- package/dist/item/index.d.ts +4 -2
- package/dist/item/index.mjs +3 -4
- package/dist/item/index.mjs.map +1 -1
- package/dist/kbd/index.mjs +2 -2
- package/dist/label/index.mjs +3 -4
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.mjs +22 -24
- package/dist/layout/index.mjs.map +1 -1
- package/dist/menubar/index.mjs +22 -24
- package/dist/menubar/index.mjs.map +1 -1
- package/dist/multi-input-list/index.mjs +28 -30
- package/dist/multi-input-list/index.mjs.map +1 -1
- package/dist/multi-select/index.mjs +32 -34
- package/dist/multi-select/index.mjs.map +1 -1
- package/dist/navigation-menu/index.mjs +15 -17
- package/dist/navigation-menu/index.mjs.map +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.mjs +8 -8
- package/dist/popover/index.mjs +17 -19
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.mjs +3 -5
- package/dist/progress/index.mjs.map +1 -1
- package/dist/radio-group/index.mjs +18 -264
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/resizable/index.mjs +3 -3
- package/dist/scroll-area/index.mjs +10 -12
- package/dist/scroll-area/index.mjs.map +1 -1
- package/dist/select/index.mjs +6 -6
- package/dist/separator/index.mjs +3 -4
- package/dist/separator/index.mjs.map +1 -1
- 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 +18 -20
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/sidebar/index.d.ts +17 -4
- package/dist/sidebar/index.mjs +26 -28
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.mjs +14 -591
- package/dist/slider/index.mjs.map +1 -1
- 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 +11 -141
- package/dist/switch/index.mjs.map +1 -1
- package/dist/table/index.mjs +3 -3
- package/dist/table-filter/index.d.ts +8 -3
- package/dist/table-filter/index.mjs +53 -54
- package/dist/table-filter/index.mjs.map +1 -1
- package/dist/tabs/index.mjs +14 -16
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.mjs +3 -3
- package/dist/toast/index.mjs +19 -705
- 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 -7
- package/dist/toggle/index.mjs.map +1 -1
- package/dist/toggle-group/index.mjs +11 -13
- package/dist/toggle-group/index.mjs.map +1 -1
- package/dist/tooltip/index.mjs +16 -18
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +10 -2
- package/dist/chunks/_commonjsHelpers-CDajFLDm.mjs.map +0 -1
- package/dist/chunks/bundle-mjs-ByJyReDu.mjs.map +0 -1
- package/dist/chunks/calendar-DtKpXGXO.mjs.map +0 -1
- package/dist/chunks/form-B4-N-eE1.mjs.map +0 -1
- package/dist/chunks/format-numbers-CksgR7yb.mjs.map +0 -1
- package/dist/chunks/index-5s6ltgHF.mjs +0 -40
- package/dist/chunks/index-5s6ltgHF.mjs.map +0 -1
- package/dist/chunks/index-BKxnMSY9.mjs.map +0 -1
- package/dist/chunks/index-BP00_xoF.mjs.map +0 -1
- package/dist/chunks/index-C8cUOEOO.mjs.map +0 -1
- package/dist/chunks/index-DUoETH03.mjs +0 -12
- package/dist/chunks/index-DUoETH03.mjs.map +0 -1
- package/dist/chunks/index.module-acmtZqFz.mjs +0 -68
- package/dist/chunks/index.module-acmtZqFz.mjs.map +0 -1
- package/dist/chunks/label-n_pPs58q.mjs.map +0 -1
- package/dist/chunks/progress-CZnyHYXZ.mjs +0 -99
- package/dist/chunks/progress-CZnyHYXZ.mjs.map +0 -1
- package/dist/chunks/separator-DHnqygnd.mjs.map +0 -1
- package/dist/icon.svg +0 -7
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -1
- package/dist/ivt.css +0 -1
- package/dist/ivt.png +0 -0
package/dist/toast/index.mjs
CHANGED
|
@@ -1,707 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { u as useComposedRefs } from '../chunks/index-5s6ltgHF.mjs';
|
|
6
|
-
import { createCollection } from '@radix-ui/react-collection';
|
|
7
|
-
import { c as createContextScope } from '../chunks/index-C8cUOEOO.mjs';
|
|
8
|
-
import { B as Branch, R as Root } from '../chunks/index-D7mBTwC1.mjs';
|
|
9
|
-
import { P as Portal } from '../chunks/index-BXScVxAr.mjs';
|
|
10
|
-
import { P as Presence } from '../chunks/index-DHpiwknP.mjs';
|
|
11
|
-
import { P as Primitive, d as dispatchDiscreteCustomEvent } from '../chunks/index-BKxnMSY9.mjs';
|
|
12
|
-
import { u as useCallbackRef } from '../chunks/index-C-ZwjB4k.mjs';
|
|
13
|
-
import { u as useControllableState } from '../chunks/index-DmLyVVSA.mjs';
|
|
14
|
-
import { u as useLayoutEffect2 } from '../chunks/index-DIkcxop-.mjs';
|
|
15
|
-
import { V as VisuallyHidden } from '../chunks/index-Bn9j4jd_.mjs';
|
|
16
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
|
-
import { cva } from 'class-variance-authority';
|
|
18
|
-
import { c as cn } from '../chunks/utils-BqIRZT53.mjs';
|
|
19
|
-
import { X } from '../chunks/x-D7oIZ9hK.mjs';
|
|
1
|
+
export { b as Toast, f as ToastAction, e as ToastClose, d as ToastDescription, T as ToastProvider, c as ToastTitle, a as ToastViewport } from '../chunks/toast-S15TT7Q2.mjs';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react-dom';
|
|
4
|
+
import '../chunks/index-DLqxy-dg.mjs';
|
|
20
5
|
import '@radix-ui/react-slot';
|
|
21
|
-
import '
|
|
22
|
-
import '../chunks/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (!label.trim()) {
|
|
37
|
-
console.error(`Invalid prop \`label\` supplied to \`${PROVIDER_NAME}\`. Expected non-empty \`string\`.`);
|
|
38
|
-
}
|
|
39
|
-
return /* @__PURE__ */ jsx(Collection.Provider, {
|
|
40
|
-
scope: __scopeToast,
|
|
41
|
-
children: /* @__PURE__ */ jsx(ToastProviderProvider, {
|
|
42
|
-
scope: __scopeToast,
|
|
43
|
-
label,
|
|
44
|
-
duration,
|
|
45
|
-
swipeDirection,
|
|
46
|
-
swipeThreshold,
|
|
47
|
-
toastCount,
|
|
48
|
-
viewport,
|
|
49
|
-
onViewportChange: setViewport,
|
|
50
|
-
onToastAdd: React.useCallback(()=>setToastCount((prevCount)=>prevCount + 1), []),
|
|
51
|
-
onToastRemove: React.useCallback(()=>setToastCount((prevCount)=>prevCount - 1), []),
|
|
52
|
-
isFocusedToastEscapeKeyDownRef,
|
|
53
|
-
isClosePausedRef,
|
|
54
|
-
children
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
ToastProvider$1.displayName = PROVIDER_NAME;
|
|
59
|
-
var VIEWPORT_NAME = "ToastViewport";
|
|
60
|
-
var VIEWPORT_DEFAULT_HOTKEY = [
|
|
61
|
-
"F8"
|
|
62
|
-
];
|
|
63
|
-
var VIEWPORT_PAUSE = "toast.viewportPause";
|
|
64
|
-
var VIEWPORT_RESUME = "toast.viewportResume";
|
|
65
|
-
var ToastViewport$1 = React.forwardRef((props, forwardedRef)=>{
|
|
66
|
-
const { __scopeToast, hotkey = VIEWPORT_DEFAULT_HOTKEY, label = "Notifications ({hotkey})", ...viewportProps } = props;
|
|
67
|
-
const context = useToastProviderContext(VIEWPORT_NAME, __scopeToast);
|
|
68
|
-
const getItems = useCollection(__scopeToast);
|
|
69
|
-
const wrapperRef = React.useRef(null);
|
|
70
|
-
const headFocusProxyRef = React.useRef(null);
|
|
71
|
-
const tailFocusProxyRef = React.useRef(null);
|
|
72
|
-
const ref = React.useRef(null);
|
|
73
|
-
const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
|
|
74
|
-
const hotkeyLabel = hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
|
|
75
|
-
const hasToasts = context.toastCount > 0;
|
|
76
|
-
React.useEffect(()=>{
|
|
77
|
-
const handleKeyDown = (event)=>{
|
|
78
|
-
const isHotkeyPressed = hotkey.length !== 0 && hotkey.every((key)=>event[key] || event.code === key);
|
|
79
|
-
if (isHotkeyPressed) ref.current?.focus();
|
|
80
|
-
};
|
|
81
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
82
|
-
return ()=>document.removeEventListener("keydown", handleKeyDown);
|
|
83
|
-
}, [
|
|
84
|
-
hotkey
|
|
85
|
-
]);
|
|
86
|
-
React.useEffect(()=>{
|
|
87
|
-
const wrapper = wrapperRef.current;
|
|
88
|
-
const viewport = ref.current;
|
|
89
|
-
if (hasToasts && wrapper && viewport) {
|
|
90
|
-
const handlePause = ()=>{
|
|
91
|
-
if (!context.isClosePausedRef.current) {
|
|
92
|
-
const pauseEvent = new CustomEvent(VIEWPORT_PAUSE);
|
|
93
|
-
viewport.dispatchEvent(pauseEvent);
|
|
94
|
-
context.isClosePausedRef.current = true;
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
const handleResume = ()=>{
|
|
98
|
-
if (context.isClosePausedRef.current) {
|
|
99
|
-
const resumeEvent = new CustomEvent(VIEWPORT_RESUME);
|
|
100
|
-
viewport.dispatchEvent(resumeEvent);
|
|
101
|
-
context.isClosePausedRef.current = false;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const handleFocusOutResume = (event)=>{
|
|
105
|
-
const isFocusMovingOutside = !wrapper.contains(event.relatedTarget);
|
|
106
|
-
if (isFocusMovingOutside) handleResume();
|
|
107
|
-
};
|
|
108
|
-
const handlePointerLeaveResume = ()=>{
|
|
109
|
-
const isFocusInside = wrapper.contains(document.activeElement);
|
|
110
|
-
if (!isFocusInside) handleResume();
|
|
111
|
-
};
|
|
112
|
-
wrapper.addEventListener("focusin", handlePause);
|
|
113
|
-
wrapper.addEventListener("focusout", handleFocusOutResume);
|
|
114
|
-
wrapper.addEventListener("pointermove", handlePause);
|
|
115
|
-
wrapper.addEventListener("pointerleave", handlePointerLeaveResume);
|
|
116
|
-
window.addEventListener("blur", handlePause);
|
|
117
|
-
window.addEventListener("focus", handleResume);
|
|
118
|
-
return ()=>{
|
|
119
|
-
wrapper.removeEventListener("focusin", handlePause);
|
|
120
|
-
wrapper.removeEventListener("focusout", handleFocusOutResume);
|
|
121
|
-
wrapper.removeEventListener("pointermove", handlePause);
|
|
122
|
-
wrapper.removeEventListener("pointerleave", handlePointerLeaveResume);
|
|
123
|
-
window.removeEventListener("blur", handlePause);
|
|
124
|
-
window.removeEventListener("focus", handleResume);
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
}, [
|
|
128
|
-
hasToasts,
|
|
129
|
-
context.isClosePausedRef
|
|
130
|
-
]);
|
|
131
|
-
const getSortedTabbableCandidates = React.useCallback(({ tabbingDirection })=>{
|
|
132
|
-
const toastItems = getItems();
|
|
133
|
-
const tabbableCandidates = toastItems.map((toastItem)=>{
|
|
134
|
-
const toastNode = toastItem.ref.current;
|
|
135
|
-
const toastTabbableCandidates = [
|
|
136
|
-
toastNode,
|
|
137
|
-
...getTabbableCandidates(toastNode)
|
|
138
|
-
];
|
|
139
|
-
return tabbingDirection === "forwards" ? toastTabbableCandidates : toastTabbableCandidates.reverse();
|
|
140
|
-
});
|
|
141
|
-
return (tabbingDirection === "forwards" ? tabbableCandidates.reverse() : tabbableCandidates).flat();
|
|
142
|
-
}, [
|
|
143
|
-
getItems
|
|
144
|
-
]);
|
|
145
|
-
React.useEffect(()=>{
|
|
146
|
-
const viewport = ref.current;
|
|
147
|
-
if (viewport) {
|
|
148
|
-
const handleKeyDown = (event)=>{
|
|
149
|
-
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
150
|
-
const isTabKey = event.key === "Tab" && !isMetaKey;
|
|
151
|
-
if (isTabKey) {
|
|
152
|
-
const focusedElement = document.activeElement;
|
|
153
|
-
const isTabbingBackwards = event.shiftKey;
|
|
154
|
-
const targetIsViewport = event.target === viewport;
|
|
155
|
-
if (targetIsViewport && isTabbingBackwards) {
|
|
156
|
-
headFocusProxyRef.current?.focus();
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
const tabbingDirection = isTabbingBackwards ? "backwards" : "forwards";
|
|
160
|
-
const sortedCandidates = getSortedTabbableCandidates({
|
|
161
|
-
tabbingDirection
|
|
162
|
-
});
|
|
163
|
-
const index = sortedCandidates.findIndex((candidate)=>candidate === focusedElement);
|
|
164
|
-
if (focusFirst(sortedCandidates.slice(index + 1))) {
|
|
165
|
-
event.preventDefault();
|
|
166
|
-
} else {
|
|
167
|
-
isTabbingBackwards ? headFocusProxyRef.current?.focus() : tailFocusProxyRef.current?.focus();
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
viewport.addEventListener("keydown", handleKeyDown);
|
|
172
|
-
return ()=>viewport.removeEventListener("keydown", handleKeyDown);
|
|
173
|
-
}
|
|
174
|
-
}, [
|
|
175
|
-
getItems,
|
|
176
|
-
getSortedTabbableCandidates
|
|
177
|
-
]);
|
|
178
|
-
return /* @__PURE__ */ jsxs(Branch, {
|
|
179
|
-
ref: wrapperRef,
|
|
180
|
-
role: "region",
|
|
181
|
-
"aria-label": label.replace("{hotkey}", hotkeyLabel),
|
|
182
|
-
tabIndex: -1,
|
|
183
|
-
style: {
|
|
184
|
-
pointerEvents: hasToasts ? void 0 : "none"
|
|
185
|
-
},
|
|
186
|
-
children: [
|
|
187
|
-
hasToasts && /* @__PURE__ */ jsx(FocusProxy, {
|
|
188
|
-
ref: headFocusProxyRef,
|
|
189
|
-
onFocusFromOutsideViewport: ()=>{
|
|
190
|
-
const tabbableCandidates = getSortedTabbableCandidates({
|
|
191
|
-
tabbingDirection: "forwards"
|
|
192
|
-
});
|
|
193
|
-
focusFirst(tabbableCandidates);
|
|
194
|
-
}
|
|
195
|
-
}),
|
|
196
|
-
/* @__PURE__ */ jsx(Collection.Slot, {
|
|
197
|
-
scope: __scopeToast,
|
|
198
|
-
children: /* @__PURE__ */ jsx(Primitive.ol, {
|
|
199
|
-
tabIndex: -1,
|
|
200
|
-
...viewportProps,
|
|
201
|
-
ref: composedRefs
|
|
202
|
-
})
|
|
203
|
-
}),
|
|
204
|
-
hasToasts && /* @__PURE__ */ jsx(FocusProxy, {
|
|
205
|
-
ref: tailFocusProxyRef,
|
|
206
|
-
onFocusFromOutsideViewport: ()=>{
|
|
207
|
-
const tabbableCandidates = getSortedTabbableCandidates({
|
|
208
|
-
tabbingDirection: "backwards"
|
|
209
|
-
});
|
|
210
|
-
focusFirst(tabbableCandidates);
|
|
211
|
-
}
|
|
212
|
-
})
|
|
213
|
-
]
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
ToastViewport$1.displayName = VIEWPORT_NAME;
|
|
217
|
-
var FOCUS_PROXY_NAME = "ToastFocusProxy";
|
|
218
|
-
var FocusProxy = React.forwardRef((props, forwardedRef)=>{
|
|
219
|
-
const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;
|
|
220
|
-
const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);
|
|
221
|
-
return /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
222
|
-
tabIndex: 0,
|
|
223
|
-
...proxyProps,
|
|
224
|
-
ref: forwardedRef,
|
|
225
|
-
style: {
|
|
226
|
-
position: "fixed"
|
|
227
|
-
},
|
|
228
|
-
onFocus: (event)=>{
|
|
229
|
-
const prevFocusedElement = event.relatedTarget;
|
|
230
|
-
const isFocusFromOutsideViewport = !context.viewport?.contains(prevFocusedElement);
|
|
231
|
-
if (isFocusFromOutsideViewport) onFocusFromOutsideViewport();
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
});
|
|
235
|
-
FocusProxy.displayName = FOCUS_PROXY_NAME;
|
|
236
|
-
var TOAST_NAME = "Toast";
|
|
237
|
-
var TOAST_SWIPE_START = "toast.swipeStart";
|
|
238
|
-
var TOAST_SWIPE_MOVE = "toast.swipeMove";
|
|
239
|
-
var TOAST_SWIPE_CANCEL = "toast.swipeCancel";
|
|
240
|
-
var TOAST_SWIPE_END = "toast.swipeEnd";
|
|
241
|
-
var Toast$1 = React.forwardRef((props, forwardedRef)=>{
|
|
242
|
-
const { forceMount, open: openProp, defaultOpen, onOpenChange, ...toastProps } = props;
|
|
243
|
-
const [open, setOpen] = useControllableState({
|
|
244
|
-
prop: openProp,
|
|
245
|
-
defaultProp: defaultOpen ?? true,
|
|
246
|
-
onChange: onOpenChange,
|
|
247
|
-
caller: TOAST_NAME
|
|
248
|
-
});
|
|
249
|
-
return /* @__PURE__ */ jsx(Presence, {
|
|
250
|
-
present: forceMount || open,
|
|
251
|
-
children: /* @__PURE__ */ jsx(ToastImpl, {
|
|
252
|
-
open,
|
|
253
|
-
...toastProps,
|
|
254
|
-
ref: forwardedRef,
|
|
255
|
-
onClose: ()=>setOpen(false),
|
|
256
|
-
onPause: useCallbackRef(props.onPause),
|
|
257
|
-
onResume: useCallbackRef(props.onResume),
|
|
258
|
-
onSwipeStart: composeEventHandlers(props.onSwipeStart, (event)=>{
|
|
259
|
-
event.currentTarget.setAttribute("data-swipe", "start");
|
|
260
|
-
}),
|
|
261
|
-
onSwipeMove: composeEventHandlers(props.onSwipeMove, (event)=>{
|
|
262
|
-
const { x, y } = event.detail.delta;
|
|
263
|
-
event.currentTarget.setAttribute("data-swipe", "move");
|
|
264
|
-
event.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${x}px`);
|
|
265
|
-
event.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${y}px`);
|
|
266
|
-
}),
|
|
267
|
-
onSwipeCancel: composeEventHandlers(props.onSwipeCancel, (event)=>{
|
|
268
|
-
event.currentTarget.setAttribute("data-swipe", "cancel");
|
|
269
|
-
event.currentTarget.style.removeProperty("--radix-toast-swipe-move-x");
|
|
270
|
-
event.currentTarget.style.removeProperty("--radix-toast-swipe-move-y");
|
|
271
|
-
event.currentTarget.style.removeProperty("--radix-toast-swipe-end-x");
|
|
272
|
-
event.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
273
|
-
}),
|
|
274
|
-
onSwipeEnd: composeEventHandlers(props.onSwipeEnd, (event)=>{
|
|
275
|
-
const { x, y } = event.detail.delta;
|
|
276
|
-
event.currentTarget.setAttribute("data-swipe", "end");
|
|
277
|
-
event.currentTarget.style.removeProperty("--radix-toast-swipe-move-x");
|
|
278
|
-
event.currentTarget.style.removeProperty("--radix-toast-swipe-move-y");
|
|
279
|
-
event.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${x}px`);
|
|
280
|
-
event.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${y}px`);
|
|
281
|
-
setOpen(false);
|
|
282
|
-
})
|
|
283
|
-
})
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
Toast$1.displayName = TOAST_NAME;
|
|
287
|
-
var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(TOAST_NAME, {
|
|
288
|
-
onClose () {}
|
|
289
|
-
});
|
|
290
|
-
var ToastImpl = React.forwardRef((props, forwardedRef)=>{
|
|
291
|
-
const { __scopeToast, type = "foreground", duration: durationProp, open, onClose, onEscapeKeyDown, onPause, onResume, onSwipeStart, onSwipeMove, onSwipeCancel, onSwipeEnd, ...toastProps } = props;
|
|
292
|
-
const context = useToastProviderContext(TOAST_NAME, __scopeToast);
|
|
293
|
-
const [node, setNode] = React.useState(null);
|
|
294
|
-
const composedRefs = useComposedRefs(forwardedRef, (node2)=>setNode(node2));
|
|
295
|
-
const pointerStartRef = React.useRef(null);
|
|
296
|
-
const swipeDeltaRef = React.useRef(null);
|
|
297
|
-
const duration = durationProp || context.duration;
|
|
298
|
-
const closeTimerStartTimeRef = React.useRef(0);
|
|
299
|
-
const closeTimerRemainingTimeRef = React.useRef(duration);
|
|
300
|
-
const closeTimerRef = React.useRef(0);
|
|
301
|
-
const { onToastAdd, onToastRemove } = context;
|
|
302
|
-
const handleClose = useCallbackRef(()=>{
|
|
303
|
-
const isFocusInToast = node?.contains(document.activeElement);
|
|
304
|
-
if (isFocusInToast) context.viewport?.focus();
|
|
305
|
-
onClose();
|
|
306
|
-
});
|
|
307
|
-
const startTimer = React.useCallback((duration2)=>{
|
|
308
|
-
if (!duration2 || duration2 === Infinity) return;
|
|
309
|
-
window.clearTimeout(closeTimerRef.current);
|
|
310
|
-
closeTimerStartTimeRef.current = /* @__PURE__ */ new Date().getTime();
|
|
311
|
-
closeTimerRef.current = window.setTimeout(handleClose, duration2);
|
|
312
|
-
}, [
|
|
313
|
-
handleClose
|
|
314
|
-
]);
|
|
315
|
-
React.useEffect(()=>{
|
|
316
|
-
const viewport = context.viewport;
|
|
317
|
-
if (viewport) {
|
|
318
|
-
const handleResume = ()=>{
|
|
319
|
-
startTimer(closeTimerRemainingTimeRef.current);
|
|
320
|
-
onResume?.();
|
|
321
|
-
};
|
|
322
|
-
const handlePause = ()=>{
|
|
323
|
-
const elapsedTime = /* @__PURE__ */ new Date().getTime() - closeTimerStartTimeRef.current;
|
|
324
|
-
closeTimerRemainingTimeRef.current = closeTimerRemainingTimeRef.current - elapsedTime;
|
|
325
|
-
window.clearTimeout(closeTimerRef.current);
|
|
326
|
-
onPause?.();
|
|
327
|
-
};
|
|
328
|
-
viewport.addEventListener(VIEWPORT_PAUSE, handlePause);
|
|
329
|
-
viewport.addEventListener(VIEWPORT_RESUME, handleResume);
|
|
330
|
-
return ()=>{
|
|
331
|
-
viewport.removeEventListener(VIEWPORT_PAUSE, handlePause);
|
|
332
|
-
viewport.removeEventListener(VIEWPORT_RESUME, handleResume);
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
}, [
|
|
336
|
-
context.viewport,
|
|
337
|
-
duration,
|
|
338
|
-
onPause,
|
|
339
|
-
onResume,
|
|
340
|
-
startTimer
|
|
341
|
-
]);
|
|
342
|
-
React.useEffect(()=>{
|
|
343
|
-
if (open && !context.isClosePausedRef.current) startTimer(duration);
|
|
344
|
-
}, [
|
|
345
|
-
open,
|
|
346
|
-
duration,
|
|
347
|
-
context.isClosePausedRef,
|
|
348
|
-
startTimer
|
|
349
|
-
]);
|
|
350
|
-
React.useEffect(()=>{
|
|
351
|
-
onToastAdd();
|
|
352
|
-
return ()=>onToastRemove();
|
|
353
|
-
}, [
|
|
354
|
-
onToastAdd,
|
|
355
|
-
onToastRemove
|
|
356
|
-
]);
|
|
357
|
-
const announceTextContent = React.useMemo(()=>{
|
|
358
|
-
return node ? getAnnounceTextContent(node) : null;
|
|
359
|
-
}, [
|
|
360
|
-
node
|
|
361
|
-
]);
|
|
362
|
-
if (!context.viewport) return null;
|
|
363
|
-
return /* @__PURE__ */ jsxs(Fragment, {
|
|
364
|
-
children: [
|
|
365
|
-
announceTextContent && /* @__PURE__ */ jsx(ToastAnnounce, {
|
|
366
|
-
__scopeToast,
|
|
367
|
-
role: "status",
|
|
368
|
-
"aria-live": type === "foreground" ? "assertive" : "polite",
|
|
369
|
-
children: announceTextContent
|
|
370
|
-
}),
|
|
371
|
-
/* @__PURE__ */ jsx(ToastInteractiveProvider, {
|
|
372
|
-
scope: __scopeToast,
|
|
373
|
-
onClose: handleClose,
|
|
374
|
-
children: ReactDOM.createPortal(/* @__PURE__ */ jsx(Collection.ItemSlot, {
|
|
375
|
-
scope: __scopeToast,
|
|
376
|
-
children: /* @__PURE__ */ jsx(Root, {
|
|
377
|
-
asChild: true,
|
|
378
|
-
onEscapeKeyDown: composeEventHandlers(onEscapeKeyDown, ()=>{
|
|
379
|
-
if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();
|
|
380
|
-
context.isFocusedToastEscapeKeyDownRef.current = false;
|
|
381
|
-
}),
|
|
382
|
-
children: /* @__PURE__ */ jsx(Primitive.li, {
|
|
383
|
-
tabIndex: 0,
|
|
384
|
-
"data-state": open ? "open" : "closed",
|
|
385
|
-
"data-swipe-direction": context.swipeDirection,
|
|
386
|
-
...toastProps,
|
|
387
|
-
ref: composedRefs,
|
|
388
|
-
style: {
|
|
389
|
-
userSelect: "none",
|
|
390
|
-
touchAction: "none",
|
|
391
|
-
...props.style
|
|
392
|
-
},
|
|
393
|
-
onKeyDown: composeEventHandlers(props.onKeyDown, (event)=>{
|
|
394
|
-
if (event.key !== "Escape") return;
|
|
395
|
-
onEscapeKeyDown?.(event.nativeEvent);
|
|
396
|
-
if (!event.nativeEvent.defaultPrevented) {
|
|
397
|
-
context.isFocusedToastEscapeKeyDownRef.current = true;
|
|
398
|
-
handleClose();
|
|
399
|
-
}
|
|
400
|
-
}),
|
|
401
|
-
onPointerDown: composeEventHandlers(props.onPointerDown, (event)=>{
|
|
402
|
-
if (event.button !== 0) return;
|
|
403
|
-
pointerStartRef.current = {
|
|
404
|
-
x: event.clientX,
|
|
405
|
-
y: event.clientY
|
|
406
|
-
};
|
|
407
|
-
}),
|
|
408
|
-
onPointerMove: composeEventHandlers(props.onPointerMove, (event)=>{
|
|
409
|
-
if (!pointerStartRef.current) return;
|
|
410
|
-
const x = event.clientX - pointerStartRef.current.x;
|
|
411
|
-
const y = event.clientY - pointerStartRef.current.y;
|
|
412
|
-
const hasSwipeMoveStarted = Boolean(swipeDeltaRef.current);
|
|
413
|
-
const isHorizontalSwipe = [
|
|
414
|
-
"left",
|
|
415
|
-
"right"
|
|
416
|
-
].includes(context.swipeDirection);
|
|
417
|
-
const clamp = [
|
|
418
|
-
"left",
|
|
419
|
-
"up"
|
|
420
|
-
].includes(context.swipeDirection) ? Math.min : Math.max;
|
|
421
|
-
const clampedX = isHorizontalSwipe ? clamp(0, x) : 0;
|
|
422
|
-
const clampedY = !isHorizontalSwipe ? clamp(0, y) : 0;
|
|
423
|
-
const moveStartBuffer = event.pointerType === "touch" ? 10 : 2;
|
|
424
|
-
const delta = {
|
|
425
|
-
x: clampedX,
|
|
426
|
-
y: clampedY
|
|
427
|
-
};
|
|
428
|
-
const eventDetail = {
|
|
429
|
-
originalEvent: event,
|
|
430
|
-
delta
|
|
431
|
-
};
|
|
432
|
-
if (hasSwipeMoveStarted) {
|
|
433
|
-
swipeDeltaRef.current = delta;
|
|
434
|
-
handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, onSwipeMove, eventDetail, {
|
|
435
|
-
discrete: false
|
|
436
|
-
});
|
|
437
|
-
} else if (isDeltaInDirection(delta, context.swipeDirection, moveStartBuffer)) {
|
|
438
|
-
swipeDeltaRef.current = delta;
|
|
439
|
-
handleAndDispatchCustomEvent(TOAST_SWIPE_START, onSwipeStart, eventDetail, {
|
|
440
|
-
discrete: false
|
|
441
|
-
});
|
|
442
|
-
event.target.setPointerCapture(event.pointerId);
|
|
443
|
-
} else if (Math.abs(x) > moveStartBuffer || Math.abs(y) > moveStartBuffer) {
|
|
444
|
-
pointerStartRef.current = null;
|
|
445
|
-
}
|
|
446
|
-
}),
|
|
447
|
-
onPointerUp: composeEventHandlers(props.onPointerUp, (event)=>{
|
|
448
|
-
const delta = swipeDeltaRef.current;
|
|
449
|
-
const target = event.target;
|
|
450
|
-
if (target.hasPointerCapture(event.pointerId)) {
|
|
451
|
-
target.releasePointerCapture(event.pointerId);
|
|
452
|
-
}
|
|
453
|
-
swipeDeltaRef.current = null;
|
|
454
|
-
pointerStartRef.current = null;
|
|
455
|
-
if (delta) {
|
|
456
|
-
const toast = event.currentTarget;
|
|
457
|
-
const eventDetail = {
|
|
458
|
-
originalEvent: event,
|
|
459
|
-
delta
|
|
460
|
-
};
|
|
461
|
-
if (isDeltaInDirection(delta, context.swipeDirection, context.swipeThreshold)) {
|
|
462
|
-
handleAndDispatchCustomEvent(TOAST_SWIPE_END, onSwipeEnd, eventDetail, {
|
|
463
|
-
discrete: true
|
|
464
|
-
});
|
|
465
|
-
} else {
|
|
466
|
-
handleAndDispatchCustomEvent(TOAST_SWIPE_CANCEL, onSwipeCancel, eventDetail, {
|
|
467
|
-
discrete: true
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
toast.addEventListener("click", (event2)=>event2.preventDefault(), {
|
|
471
|
-
once: true
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
})
|
|
475
|
-
})
|
|
476
|
-
})
|
|
477
|
-
}), context.viewport)
|
|
478
|
-
})
|
|
479
|
-
]
|
|
480
|
-
});
|
|
481
|
-
});
|
|
482
|
-
var ToastAnnounce = (props)=>{
|
|
483
|
-
const { __scopeToast, children, ...announceProps } = props;
|
|
484
|
-
const context = useToastProviderContext(TOAST_NAME, __scopeToast);
|
|
485
|
-
const [renderAnnounceText, setRenderAnnounceText] = React.useState(false);
|
|
486
|
-
const [isAnnounced, setIsAnnounced] = React.useState(false);
|
|
487
|
-
useNextFrame(()=>setRenderAnnounceText(true));
|
|
488
|
-
React.useEffect(()=>{
|
|
489
|
-
const timer = window.setTimeout(()=>setIsAnnounced(true), 1e3);
|
|
490
|
-
return ()=>window.clearTimeout(timer);
|
|
491
|
-
}, []);
|
|
492
|
-
return isAnnounced ? null : /* @__PURE__ */ jsx(Portal, {
|
|
493
|
-
asChild: true,
|
|
494
|
-
children: /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
495
|
-
...announceProps,
|
|
496
|
-
children: renderAnnounceText && /* @__PURE__ */ jsxs(Fragment, {
|
|
497
|
-
children: [
|
|
498
|
-
context.label,
|
|
499
|
-
" ",
|
|
500
|
-
children
|
|
501
|
-
]
|
|
502
|
-
})
|
|
503
|
-
})
|
|
504
|
-
});
|
|
505
|
-
};
|
|
506
|
-
var TITLE_NAME = "ToastTitle";
|
|
507
|
-
var ToastTitle$1 = React.forwardRef((props, forwardedRef)=>{
|
|
508
|
-
const { __scopeToast, ...titleProps } = props;
|
|
509
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
510
|
-
...titleProps,
|
|
511
|
-
ref: forwardedRef
|
|
512
|
-
});
|
|
513
|
-
});
|
|
514
|
-
ToastTitle$1.displayName = TITLE_NAME;
|
|
515
|
-
var DESCRIPTION_NAME = "ToastDescription";
|
|
516
|
-
var ToastDescription$1 = React.forwardRef((props, forwardedRef)=>{
|
|
517
|
-
const { __scopeToast, ...descriptionProps } = props;
|
|
518
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
519
|
-
...descriptionProps,
|
|
520
|
-
ref: forwardedRef
|
|
521
|
-
});
|
|
522
|
-
});
|
|
523
|
-
ToastDescription$1.displayName = DESCRIPTION_NAME;
|
|
524
|
-
var ACTION_NAME = "ToastAction";
|
|
525
|
-
var ToastAction$1 = React.forwardRef((props, forwardedRef)=>{
|
|
526
|
-
const { altText, ...actionProps } = props;
|
|
527
|
-
if (!altText.trim()) {
|
|
528
|
-
console.error(`Invalid prop \`altText\` supplied to \`${ACTION_NAME}\`. Expected non-empty \`string\`.`);
|
|
529
|
-
return null;
|
|
530
|
-
}
|
|
531
|
-
return /* @__PURE__ */ jsx(ToastAnnounceExclude, {
|
|
532
|
-
altText,
|
|
533
|
-
asChild: true,
|
|
534
|
-
children: /* @__PURE__ */ jsx(ToastClose$1, {
|
|
535
|
-
...actionProps,
|
|
536
|
-
ref: forwardedRef
|
|
537
|
-
})
|
|
538
|
-
});
|
|
539
|
-
});
|
|
540
|
-
ToastAction$1.displayName = ACTION_NAME;
|
|
541
|
-
var CLOSE_NAME = "ToastClose";
|
|
542
|
-
var ToastClose$1 = React.forwardRef((props, forwardedRef)=>{
|
|
543
|
-
const { __scopeToast, ...closeProps } = props;
|
|
544
|
-
const interactiveContext = useToastInteractiveContext(CLOSE_NAME, __scopeToast);
|
|
545
|
-
return /* @__PURE__ */ jsx(ToastAnnounceExclude, {
|
|
546
|
-
asChild: true,
|
|
547
|
-
children: /* @__PURE__ */ jsx(Primitive.button, {
|
|
548
|
-
type: "button",
|
|
549
|
-
...closeProps,
|
|
550
|
-
ref: forwardedRef,
|
|
551
|
-
onClick: composeEventHandlers(props.onClick, interactiveContext.onClose)
|
|
552
|
-
})
|
|
553
|
-
});
|
|
554
|
-
});
|
|
555
|
-
ToastClose$1.displayName = CLOSE_NAME;
|
|
556
|
-
var ToastAnnounceExclude = React.forwardRef((props, forwardedRef)=>{
|
|
557
|
-
const { __scopeToast, altText, ...announceExcludeProps } = props;
|
|
558
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
559
|
-
"data-radix-toast-announce-exclude": "",
|
|
560
|
-
"data-radix-toast-announce-alt": altText || void 0,
|
|
561
|
-
...announceExcludeProps,
|
|
562
|
-
ref: forwardedRef
|
|
563
|
-
});
|
|
564
|
-
});
|
|
565
|
-
function getAnnounceTextContent(container) {
|
|
566
|
-
const textContent = [];
|
|
567
|
-
const childNodes = Array.from(container.childNodes);
|
|
568
|
-
childNodes.forEach((node)=>{
|
|
569
|
-
if (node.nodeType === node.TEXT_NODE && node.textContent) textContent.push(node.textContent);
|
|
570
|
-
if (isHTMLElement(node)) {
|
|
571
|
-
const isHidden = node.ariaHidden || node.hidden || node.style.display === "none";
|
|
572
|
-
const isExcluded = node.dataset.radixToastAnnounceExclude === "";
|
|
573
|
-
if (!isHidden) {
|
|
574
|
-
if (isExcluded) {
|
|
575
|
-
const altText = node.dataset.radixToastAnnounceAlt;
|
|
576
|
-
if (altText) textContent.push(altText);
|
|
577
|
-
} else {
|
|
578
|
-
textContent.push(...getAnnounceTextContent(node));
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
});
|
|
583
|
-
return textContent;
|
|
584
|
-
}
|
|
585
|
-
function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
586
|
-
const currentTarget = detail.originalEvent.currentTarget;
|
|
587
|
-
const event = new CustomEvent(name, {
|
|
588
|
-
bubbles: true,
|
|
589
|
-
cancelable: true,
|
|
590
|
-
detail
|
|
591
|
-
});
|
|
592
|
-
if (handler) currentTarget.addEventListener(name, handler, {
|
|
593
|
-
once: true
|
|
594
|
-
});
|
|
595
|
-
if (discrete) {
|
|
596
|
-
dispatchDiscreteCustomEvent(currentTarget, event);
|
|
597
|
-
} else {
|
|
598
|
-
currentTarget.dispatchEvent(event);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
var isDeltaInDirection = (delta, direction, threshold = 0)=>{
|
|
602
|
-
const deltaX = Math.abs(delta.x);
|
|
603
|
-
const deltaY = Math.abs(delta.y);
|
|
604
|
-
const isDeltaX = deltaX > deltaY;
|
|
605
|
-
if (direction === "left" || direction === "right") {
|
|
606
|
-
return isDeltaX && deltaX > threshold;
|
|
607
|
-
} else {
|
|
608
|
-
return !isDeltaX && deltaY > threshold;
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
|
-
function useNextFrame(callback = ()=>{}) {
|
|
612
|
-
const fn = useCallbackRef(callback);
|
|
613
|
-
useLayoutEffect2(()=>{
|
|
614
|
-
let raf1 = 0;
|
|
615
|
-
let raf2 = 0;
|
|
616
|
-
raf1 = window.requestAnimationFrame(()=>raf2 = window.requestAnimationFrame(fn));
|
|
617
|
-
return ()=>{
|
|
618
|
-
window.cancelAnimationFrame(raf1);
|
|
619
|
-
window.cancelAnimationFrame(raf2);
|
|
620
|
-
};
|
|
621
|
-
}, [
|
|
622
|
-
fn
|
|
623
|
-
]);
|
|
624
|
-
}
|
|
625
|
-
function isHTMLElement(node) {
|
|
626
|
-
return node.nodeType === node.ELEMENT_NODE;
|
|
627
|
-
}
|
|
628
|
-
function getTabbableCandidates(container) {
|
|
629
|
-
const nodes = [];
|
|
630
|
-
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
631
|
-
acceptNode: (node)=>{
|
|
632
|
-
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
633
|
-
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
634
|
-
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
while(walker.nextNode())nodes.push(walker.currentNode);
|
|
638
|
-
return nodes;
|
|
639
|
-
}
|
|
640
|
-
function focusFirst(candidates) {
|
|
641
|
-
const previouslyFocusedElement = document.activeElement;
|
|
642
|
-
return candidates.some((candidate)=>{
|
|
643
|
-
if (candidate === previouslyFocusedElement) return true;
|
|
644
|
-
candidate.focus();
|
|
645
|
-
return document.activeElement !== previouslyFocusedElement;
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
var Provider = ToastProvider$1;
|
|
649
|
-
var Viewport = ToastViewport$1;
|
|
650
|
-
var Root2 = Toast$1;
|
|
651
|
-
var Title = ToastTitle$1;
|
|
652
|
-
var Description = ToastDescription$1;
|
|
653
|
-
var Action = ToastAction$1;
|
|
654
|
-
var Close = ToastClose$1;
|
|
655
|
-
|
|
656
|
-
const ToastProvider = Provider;
|
|
657
|
-
const ToastViewport = ({ className, ...props })=>/*#__PURE__*/ React__default.createElement(Viewport, {
|
|
658
|
-
"data-slot": "toast-viewport",
|
|
659
|
-
className: cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
|
|
660
|
-
...props
|
|
661
|
-
});
|
|
662
|
-
const toastVariants = cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
663
|
-
variants: {
|
|
664
|
-
variant: {
|
|
665
|
-
default: "border bg-background text-foreground",
|
|
666
|
-
destructive: "destructive group border-destructive-foreground bg-destructive-foreground text-destructive border-destructive"
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
defaultVariants: {
|
|
670
|
-
variant: "default"
|
|
671
|
-
}
|
|
672
|
-
});
|
|
673
|
-
const Toast = ({ className, variant, ...props })=>{
|
|
674
|
-
return /*#__PURE__*/ React__default.createElement(Root2, {
|
|
675
|
-
"data-slot": "toast-root",
|
|
676
|
-
className: cn(toastVariants({
|
|
677
|
-
variant
|
|
678
|
-
}), className),
|
|
679
|
-
...props
|
|
680
|
-
});
|
|
681
|
-
};
|
|
682
|
-
const ToastAction = ({ className, ...props })=>/*#__PURE__*/ React__default.createElement(Action, {
|
|
683
|
-
"data-slot": "toast-action",
|
|
684
|
-
className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none disabled:opacity-50", className),
|
|
685
|
-
...props
|
|
686
|
-
});
|
|
687
|
-
const ToastClose = ({ className, ...props })=>/*#__PURE__*/ React__default.createElement(Close, {
|
|
688
|
-
"data-slot": "toast-close",
|
|
689
|
-
className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-none group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
|
|
690
|
-
"toast-close": "",
|
|
691
|
-
...props
|
|
692
|
-
}, /*#__PURE__*/ React__default.createElement(X, {
|
|
693
|
-
className: "h-4 w-4"
|
|
694
|
-
}));
|
|
695
|
-
const ToastTitle = ({ className, ...props })=>/*#__PURE__*/ React__default.createElement(Title, {
|
|
696
|
-
"data-slot": "toast-title",
|
|
697
|
-
className: cn("text-sm font-semibold", className),
|
|
698
|
-
...props
|
|
699
|
-
});
|
|
700
|
-
const ToastDescription = ({ className, ...props })=>/*#__PURE__*/ React__default.createElement(Description, {
|
|
701
|
-
"data-slot": "toast-description",
|
|
702
|
-
className: cn("text-sm opacity-90", className),
|
|
703
|
-
...props
|
|
704
|
-
});
|
|
705
|
-
|
|
706
|
-
export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport };
|
|
6
|
+
import 'react/jsx-runtime';
|
|
7
|
+
import '../chunks/index-CVjOpozG.mjs';
|
|
8
|
+
import '@radix-ui/react-collection';
|
|
9
|
+
import '../chunks/index-CvVBB5ll.mjs';
|
|
10
|
+
import '../chunks/index-Cs9A0tpU.mjs';
|
|
11
|
+
import '../chunks/index-DQD35Ges.mjs';
|
|
12
|
+
import '../chunks/index-4pJ77hyF.mjs';
|
|
13
|
+
import '../chunks/index-CByz7d8q.mjs';
|
|
14
|
+
import '../chunks/index-D2DYiX9D.mjs';
|
|
15
|
+
import '../chunks/index-Ct610FOk.mjs';
|
|
16
|
+
import 'class-variance-authority';
|
|
17
|
+
import '../chunks/utils-uOfHPBdi.mjs';
|
|
18
|
+
import '../chunks/bundle-mjs-BRbxNcQb.mjs';
|
|
19
|
+
import '../chunks/x-D5HL_X5m.mjs';
|
|
20
|
+
import '../chunks/createLucideIcon-CkP7424r.mjs';
|
|
707
21
|
//# sourceMappingURL=index.mjs.map
|