@alfadocs/ui-kit 0.0.20 → 0.1.1
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/_chunks/accordion-BJD1aM67.js +117 -0
- package/dist/_chunks/accordion-BJD1aM67.js.map +1 -0
- package/dist/_chunks/agenda-card-Bld47Eul.js +130 -0
- package/dist/_chunks/agenda-card-Bld47Eul.js.map +1 -0
- package/dist/_chunks/agenda-tray-D86cNIJ0.js +119 -0
- package/dist/_chunks/agenda-tray-D86cNIJ0.js.map +1 -0
- package/dist/_chunks/ai-prompt-input-CdYwt2VP.js +379 -0
- package/dist/_chunks/ai-prompt-input-CdYwt2VP.js.map +1 -0
- package/dist/_chunks/{alert-C5ud6CfE.js → alert-ETrF7Q8J.js} +51 -51
- package/dist/_chunks/alert-ETrF7Q8J.js.map +1 -0
- package/dist/_chunks/apexcharts-theme-BkSShpEy.js +48 -0
- package/dist/_chunks/apexcharts-theme-BkSShpEy.js.map +1 -0
- package/dist/_chunks/{app-frame-CmIUp9BD.js → app-frame-uq2Gy0vs.js} +37 -37
- package/dist/_chunks/app-frame-uq2Gy0vs.js.map +1 -0
- package/dist/_chunks/aspect-ratio-BqU4itGW.js +56 -0
- package/dist/_chunks/aspect-ratio-BqU4itGW.js.map +1 -0
- package/dist/_chunks/{audio-recorder-GkGNtW2X.js → audio-recorder-D2UEBF9B.js} +98 -98
- package/dist/_chunks/audio-recorder-D2UEBF9B.js.map +1 -0
- package/dist/_chunks/{audio-visualiser-CIO3yy23.js → audio-visualiser-B4u4goV5.js} +46 -46
- package/dist/_chunks/audio-visualiser-B4u4goV5.js.map +1 -0
- package/dist/_chunks/{autocomplete.agent-kb0nmr6F.js → autocomplete.agent-Bi6CiRKa.js} +111 -111
- package/dist/_chunks/autocomplete.agent-Bi6CiRKa.js.map +1 -0
- package/dist/_chunks/{avatar-BsV7vRA6.js → avatar-BAhxbDEu.js} +38 -38
- package/dist/_chunks/avatar-BAhxbDEu.js.map +1 -0
- package/dist/_chunks/badge-zDghajh8.js +104 -0
- package/dist/_chunks/badge-zDghajh8.js.map +1 -0
- package/dist/_chunks/{balance-cell-renderer-BQwN51rT.js → balance-cell-renderer-BGyvZWjB.js} +123 -124
- package/dist/_chunks/balance-cell-renderer-BGyvZWjB.js.map +1 -0
- package/dist/_chunks/{breadcrumb-DnO6eHSS.js → breadcrumb-pdUacgm1.js} +40 -40
- package/dist/_chunks/breadcrumb-pdUacgm1.js.map +1 -0
- package/dist/_chunks/button-DmiGFnNA.js +119 -0
- package/dist/_chunks/button-DmiGFnNA.js.map +1 -0
- package/dist/_chunks/{button-group-CI7LFxt3.js → button-group-BtTHSyU0.js} +24 -24
- package/dist/_chunks/button-group-BtTHSyU0.js.map +1 -0
- package/dist/_chunks/{calendar-BIXVzhkL.js → calendar-BkDeDTaX.js} +333 -290
- package/dist/_chunks/calendar-BkDeDTaX.js.map +1 -0
- package/dist/_chunks/card-DeItIBcV.js +158 -0
- package/dist/_chunks/card-DeItIBcV.js.map +1 -0
- package/dist/_chunks/{chart.agent-DkmVXNsI.js → chart.agent-BdS-_8MO.js} +66 -64
- package/dist/_chunks/chart.agent-BdS-_8MO.js.map +1 -0
- package/dist/_chunks/chat-container-Co8HpB64.js +174 -0
- package/dist/_chunks/chat-container-Co8HpB64.js.map +1 -0
- package/dist/_chunks/{chat-input-aphxDjZL.js → chat-input-3rstZhHR.js} +57 -57
- package/dist/_chunks/chat-input-3rstZhHR.js.map +1 -0
- package/dist/_chunks/{chat-message-CdJSD18D.js → chat-message-dDMVSYBs.js} +66 -66
- package/dist/_chunks/chat-message-dDMVSYBs.js.map +1 -0
- package/dist/_chunks/checkbox-DMzgtnqw.js +116 -0
- package/dist/_chunks/checkbox-DMzgtnqw.js.map +1 -0
- package/dist/_chunks/{checkbox-group-D1aqVI0-.js → checkbox-group-DBnIBRT_.js} +34 -34
- package/dist/_chunks/checkbox-group-DBnIBRT_.js.map +1 -0
- package/dist/_chunks/{collapsible-jBFm7Ah8.js → collapsible-DPGQnHZh.js} +16 -16
- package/dist/_chunks/collapsible-DPGQnHZh.js.map +1 -0
- package/dist/_chunks/{color-picker-CiotzQJF.js → color-picker-OKKF3Dww.js} +158 -158
- package/dist/_chunks/color-picker-OKKF3Dww.js.map +1 -0
- package/dist/_chunks/{combobox.agent-B6RwDSct.js → combobox.agent-CfeB-IZ1.js} +107 -107
- package/dist/_chunks/combobox.agent-CfeB-IZ1.js.map +1 -0
- package/dist/_chunks/{command-palette.agent-B87_OkmC.js → command-palette.agent-XLfSGHCL.js} +27 -27
- package/dist/_chunks/command-palette.agent-XLfSGHCL.js.map +1 -0
- package/dist/_chunks/{date-picker-CdPuI3dK.js → date-picker-DXx8oSJb.js} +5 -5
- package/dist/_chunks/{date-picker-CdPuI3dK.js.map → date-picker-DXx8oSJb.js.map} +1 -1
- package/dist/_chunks/{date-range-picker-DfK4cjln.js → date-range-picker-C3CbY__H.js} +29 -29
- package/dist/_chunks/{date-range-picker-DfK4cjln.js.map → date-range-picker-C3CbY__H.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-CX_FMsLG.js → date-time-picker-Bn3FPeAc.js} +58 -58
- package/dist/_chunks/date-time-picker-Bn3FPeAc.js.map +1 -0
- package/dist/_chunks/description-list-B1CL3RTG.js +187 -0
- package/dist/_chunks/description-list-B1CL3RTG.js.map +1 -0
- package/dist/_chunks/{dialog.agent-B276rAQF.js → dialog.agent-D9WeIWi2.js} +39 -39
- package/dist/_chunks/dialog.agent-D9WeIWi2.js.map +1 -0
- package/dist/_chunks/dropdown-menu-BnVUeVG3.js +210 -0
- package/dist/_chunks/dropdown-menu-BnVUeVG3.js.map +1 -0
- package/dist/_chunks/{empty-state-DiG7vYBM.js → empty-state-DV96gCnp.js} +37 -37
- package/dist/_chunks/empty-state-DV96gCnp.js.map +1 -0
- package/dist/_chunks/{file-upload.agent-BMow5yDY.js → file-upload.agent-DYFnqdxw.js} +185 -185
- package/dist/_chunks/file-upload.agent-DYFnqdxw.js.map +1 -0
- package/dist/_chunks/{flag-ChP784EM.js → flag-C3BUEwHH.js} +14 -14
- package/dist/_chunks/{flag-ChP784EM.js.map → flag-C3BUEwHH.js.map} +1 -1
- package/dist/_chunks/floating-action-button-RigP2E7o.js +95 -0
- package/dist/_chunks/floating-action-button-RigP2E7o.js.map +1 -0
- package/dist/_chunks/form-field-DI5LY5aG.js +121 -0
- package/dist/_chunks/form-field-DI5LY5aG.js.map +1 -0
- package/dist/_chunks/freemium-paywall-D0GiUFOe.js +197 -0
- package/dist/_chunks/freemium-paywall-D0GiUFOe.js.map +1 -0
- package/dist/_chunks/{header-BpKaSL_v.js → header-CW2oRd5H.js} +111 -111
- package/dist/_chunks/header-CW2oRd5H.js.map +1 -0
- package/dist/_chunks/icon-button-C482ii4y.js +45 -0
- package/dist/_chunks/icon-button-C482ii4y.js.map +1 -0
- package/dist/_chunks/{icon-button-group-tERESY-n.js → icon-button-group-BnhkUWUg.js} +56 -56
- package/dist/_chunks/icon-button-group-BnhkUWUg.js.map +1 -0
- package/dist/_chunks/{kbd-0iPlQjgC.js → kbd-DTcIjYA7.js} +52 -52
- package/dist/_chunks/kbd-DTcIjYA7.js.map +1 -0
- package/dist/_chunks/{key-value-pair--Je59tAF.js → key-value-pair-DDhSYdDL.js} +26 -26
- package/dist/_chunks/key-value-pair-DDhSYdDL.js.map +1 -0
- package/dist/_chunks/leo-sidebar-gXXcGPKk.js +755 -0
- package/dist/_chunks/leo-sidebar-gXXcGPKk.js.map +1 -0
- package/dist/_chunks/{list-n8vI8Yvn.js → list-Cwe8mcmh.js} +96 -96
- package/dist/_chunks/list-Cwe8mcmh.js.map +1 -0
- package/dist/_chunks/live-region-COggO6x6.js +57 -0
- package/dist/_chunks/live-region-COggO6x6.js.map +1 -0
- package/dist/_chunks/{logo-UNWYb9p7.js → logo-3wrZGpwg.js} +29 -29
- package/dist/_chunks/logo-3wrZGpwg.js.map +1 -0
- package/dist/_chunks/{matrix-rain-Q7xTEpKu.js → matrix-rain-gsHqSvW7.js} +75 -75
- package/dist/_chunks/matrix-rain-gsHqSvW7.js.map +1 -0
- package/dist/_chunks/message-card-DID3cXUW.js +275 -0
- package/dist/_chunks/message-card-DID3cXUW.js.map +1 -0
- package/dist/_chunks/message-tray-CVMLBnVp.js +302 -0
- package/dist/_chunks/message-tray-CVMLBnVp.js.map +1 -0
- package/dist/_chunks/{multi-select.agent-Cf4pU636.js → multi-select.agent-BUKYZJfp.js} +126 -126
- package/dist/_chunks/multi-select.agent-BUKYZJfp.js.map +1 -0
- package/dist/_chunks/{navigation-menu-DBDsAmXc.js → navigation-menu-NjwxyshT.js} +68 -97
- package/dist/_chunks/navigation-menu-NjwxyshT.js.map +1 -0
- package/dist/_chunks/notification-card-BZ33fq8H.js +255 -0
- package/dist/_chunks/notification-card-BZ33fq8H.js.map +1 -0
- package/dist/_chunks/{notification-tray-CNWPuPZp.js → notification-tray-CnEd7B2q.js} +96 -96
- package/dist/_chunks/notification-tray-CnEd7B2q.js.map +1 -0
- package/dist/_chunks/{number-input-B1Th0DdC.js → number-input-D7rSa_ef.js} +73 -73
- package/dist/_chunks/number-input-D7rSa_ef.js.map +1 -0
- package/dist/_chunks/{otp-input-CmoBuZ4K.js → otp-input-C9R9sC74.js} +42 -42
- package/dist/_chunks/otp-input-C9R9sC74.js.map +1 -0
- package/dist/_chunks/{pagination.agent-B5KLDCMN.js → pagination.agent-D75FB6XP.js} +106 -106
- package/dist/_chunks/pagination.agent-D75FB6XP.js.map +1 -0
- package/dist/_chunks/{password-input-DnjNh-hQ.js → password-input-C6PvKyQV.js} +59 -59
- package/dist/_chunks/password-input-C6PvKyQV.js.map +1 -0
- package/dist/_chunks/{patient-shell-D0RaWDMR.js → patient-shell-CGsmI5LJ.js} +9 -9
- package/dist/_chunks/{patient-shell-D0RaWDMR.js.map → patient-shell-CGsmI5LJ.js.map} +1 -1
- package/dist/_chunks/{payment-form-Cf7U6r5L.js → payment-form-l3j-gA-t.js} +108 -108
- package/dist/_chunks/payment-form-l3j-gA-t.js.map +1 -0
- package/dist/_chunks/{pdf-viewer.agent-DXjgDItg.js → pdf-viewer.agent-DuGfSoep.js} +234 -233
- package/dist/_chunks/pdf-viewer.agent-DuGfSoep.js.map +1 -0
- package/dist/_chunks/{phone-input-C2dtIuxW.js → phone-input-ZWa_FU4R.js} +112 -112
- package/dist/_chunks/phone-input-ZWa_FU4R.js.map +1 -0
- package/dist/_chunks/{popover-D1woU9mP.js → popover-CMr1pTPO.js} +58 -58
- package/dist/_chunks/popover-CMr1pTPO.js.map +1 -0
- package/dist/_chunks/{privacy-lock-C1X42Sit.js → privacy-lock-DdpkKNM2.js} +37 -36
- package/dist/_chunks/privacy-lock-DdpkKNM2.js.map +1 -0
- package/dist/_chunks/{progress-DL3-izuO.js → progress-D4ELgHG3.js} +43 -43
- package/dist/_chunks/progress-D4ELgHG3.js.map +1 -0
- package/dist/_chunks/radio-B_gvGU29.js +106 -0
- package/dist/_chunks/radio-B_gvGU29.js.map +1 -0
- package/dist/_chunks/radio-group-Bn8Wt0yc.js +88 -0
- package/dist/_chunks/radio-group-Bn8Wt0yc.js.map +1 -0
- package/dist/_chunks/{react-day-picker-DQKDiJ37.js → react-day-picker-d0MHsyCj.js} +174 -174
- package/dist/_chunks/{react-day-picker-DQKDiJ37.js.map → react-day-picker-d0MHsyCj.js.map} +1 -1
- package/dist/_chunks/{resizable.agent-DVk_jJur.js → resizable.agent-DBpPGNdy.js} +122 -122
- package/dist/_chunks/resizable.agent-DBpPGNdy.js.map +1 -0
- package/dist/_chunks/{rich-text-editor.agent-BOjF4Xao.js → rich-text-editor.agent-C1_E7_7t.js} +225 -225
- package/dist/_chunks/rich-text-editor.agent-C1_E7_7t.js.map +1 -0
- package/dist/_chunks/scroll-area-Ba99pJ_R.js +144 -0
- package/dist/_chunks/scroll-area-Ba99pJ_R.js.map +1 -0
- package/dist/_chunks/{search-bar-DgSOAajC.js → search-bar-VoTqJhRp.js} +131 -131
- package/dist/_chunks/search-bar-VoTqJhRp.js.map +1 -0
- package/dist/_chunks/search-input-D6rarD0_.js +197 -0
- package/dist/_chunks/search-input-D6rarD0_.js.map +1 -0
- package/dist/_chunks/select-DbxWF3O_.js +320 -0
- package/dist/_chunks/select-DbxWF3O_.js.map +1 -0
- package/dist/_chunks/{separator-DExI4amU.js → separator-BRQHi8s0.js} +17 -17
- package/dist/_chunks/separator-BRQHi8s0.js.map +1 -0
- package/dist/_chunks/sheet-DyWqluiS.js +188 -0
- package/dist/_chunks/sheet-DyWqluiS.js.map +1 -0
- package/dist/_chunks/sidebar-B52iGGNV.js +1076 -0
- package/dist/_chunks/sidebar-B52iGGNV.js.map +1 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BBL11-Rt.js → sign-in-with-alfadocs-button-BU7MP5Hg.js} +4 -4
- package/dist/_chunks/{sign-in-with-alfadocs-button-BBL11-Rt.js.map → sign-in-with-alfadocs-button-BU7MP5Hg.js.map} +1 -1
- package/dist/_chunks/{signature-capture.agent-L_1_-zVR.js → signature-capture.agent-4htVctJ2.js} +163 -163
- package/dist/_chunks/signature-capture.agent-4htVctJ2.js.map +1 -0
- package/dist/_chunks/skeleton-ClO1v5GE.js +95 -0
- package/dist/_chunks/skeleton-ClO1v5GE.js.map +1 -0
- package/dist/_chunks/skip-link-CASJkBOe.js +68 -0
- package/dist/_chunks/skip-link-CASJkBOe.js.map +1 -0
- package/dist/_chunks/slider-n8JWpJvT.js +273 -0
- package/dist/_chunks/slider-n8JWpJvT.js.map +1 -0
- package/dist/_chunks/slot-grid-BRAkqChA.js +491 -0
- package/dist/_chunks/slot-grid-BRAkqChA.js.map +1 -0
- package/dist/_chunks/{sparkline.agent-BDTXzTy9.js → sparkline.agent-BLY1IMyW.js} +45 -45
- package/dist/_chunks/sparkline.agent-BLY1IMyW.js.map +1 -0
- package/dist/_chunks/{spinner-77xUGpuX.js → spinner-CoAOGcDa.js} +40 -40
- package/dist/_chunks/spinner-CoAOGcDa.js.map +1 -0
- package/dist/_chunks/stat-D76MNHzK.js +208 -0
- package/dist/_chunks/stat-D76MNHzK.js.map +1 -0
- package/dist/_chunks/{stepper-accordion-BkvqQWPI.js → stepper-accordion-DHQ80A4v.js} +33 -33
- package/dist/_chunks/stepper-accordion-DHQ80A4v.js.map +1 -0
- package/dist/_chunks/{stepper-calendar-BQMjrwzo.js → stepper-calendar-vtWwa2bY.js} +159 -159
- package/dist/_chunks/stepper-calendar-vtWwa2bY.js.map +1 -0
- package/dist/_chunks/stepper-progress-DMZ5w5VR.js +128 -0
- package/dist/_chunks/stepper-progress-DMZ5w5VR.js.map +1 -0
- package/dist/_chunks/streaming-text-D0cW8pwq.js +104 -0
- package/dist/_chunks/streaming-text-D0cW8pwq.js.map +1 -0
- package/dist/_chunks/suggestion-chip-BgNFpPEE.js +157 -0
- package/dist/_chunks/suggestion-chip-BgNFpPEE.js.map +1 -0
- package/dist/_chunks/switch-DtLPKO0p.js +137 -0
- package/dist/_chunks/switch-DtLPKO0p.js.map +1 -0
- package/dist/_chunks/{tabs.agent-FsGU3sZL.js → tabs.agent-BDUlyPbJ.js} +101 -101
- package/dist/_chunks/tabs.agent-BDUlyPbJ.js.map +1 -0
- package/dist/_chunks/tag-CfSZZN2f.js +194 -0
- package/dist/_chunks/tag-CfSZZN2f.js.map +1 -0
- package/dist/_chunks/task-card-B5xfiFg5.js +112 -0
- package/dist/_chunks/task-card-B5xfiFg5.js.map +1 -0
- package/dist/_chunks/task-tray-BnpiodZ4.js +99 -0
- package/dist/_chunks/task-tray-BnpiodZ4.js.map +1 -0
- package/dist/_chunks/text-area-BqbruBWx.js +152 -0
- package/dist/_chunks/text-area-BqbruBWx.js.map +1 -0
- package/dist/_chunks/text-input-lh6kRXZS.js +187 -0
- package/dist/_chunks/text-input-lh6kRXZS.js.map +1 -0
- package/dist/_chunks/theme-toggle-BHKMiORD.js +326 -0
- package/dist/_chunks/theme-toggle-BHKMiORD.js.map +1 -0
- package/dist/_chunks/{time-picker-BapZq0OY.js → time-picker-DbpAmPux.js} +102 -102
- package/dist/_chunks/time-picker-DbpAmPux.js.map +1 -0
- package/dist/_chunks/timeline-vjsUeuq1.js +219 -0
- package/dist/_chunks/timeline-vjsUeuq1.js.map +1 -0
- package/dist/_chunks/{timestamp-BLM-jjdw.js → timestamp-DmSt92P1.js} +30 -30
- package/dist/_chunks/timestamp-DmSt92P1.js.map +1 -0
- package/dist/_chunks/{toast-DSCqnDRl.js → toast-DllSITLf.js} +151 -151
- package/dist/_chunks/{toast-DSCqnDRl.js.map → toast-DllSITLf.js.map} +1 -1
- package/dist/_chunks/{tooltip-DF6WjD1r.js → tooltip-Dp3u8jGz.js} +30 -30
- package/dist/_chunks/tooltip-Dp3u8jGz.js.map +1 -0
- package/dist/_chunks/{tooth-scheme.agent-CFKl3iQr.js → tooth-scheme.agent-BRqxWa1D.js} +75 -75
- package/dist/_chunks/tooth-scheme.agent-BRqxWa1D.js.map +1 -0
- package/dist/_chunks/transcript-panel-Bg1BTMSr.js +265 -0
- package/dist/_chunks/transcript-panel-Bg1BTMSr.js.map +1 -0
- package/dist/_chunks/typing-indicator-BRg22Rqr.js +81 -0
- package/dist/_chunks/typing-indicator-BRg22Rqr.js.map +1 -0
- package/dist/_chunks/use-locale-BuXR_Zl9.js +32 -0
- package/dist/_chunks/use-locale-BuXR_Zl9.js.map +1 -0
- package/dist/_chunks/visually-hidden-Y3jcdCv-.js +21 -0
- package/dist/_chunks/visually-hidden-Y3jcdCv-.js.map +1 -0
- package/dist/_chunks/{warning-stack-Cyf_81SL.js → warning-stack-B9N9yWet.js} +38 -38
- package/dist/_chunks/warning-stack-B9N9yWet.js.map +1 -0
- package/dist/_chunks/{workflow-map-Uf-hHAO3.js → workflow-map-gBhL_Wrs.js} +385 -385
- package/dist/_chunks/workflow-map-gBhL_Wrs.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/_shared/use-focus-trap.d.ts +32 -0
- package/dist/components/_shared/use-focus-trap.d.ts.map +1 -0
- package/dist/components/_shared/use-neutralize-hidden-focus.d.ts +3 -0
- package/dist/components/_shared/use-neutralize-hidden-focus.d.ts.map +1 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/flag/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon-button/index.d.ts +3 -0
- package/dist/components/icon-button/index.d.ts.map +1 -0
- package/dist/components/icon-button/index.js +5 -0
- package/dist/components/icon-button/index.js.map +1 -0
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +8 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/live-region/index.d.ts +3 -0
- package/dist/components/live-region/index.d.ts.map +1 -0
- package/dist/components/live-region/index.js +5 -0
- package/dist/components/live-region/index.js.map +1 -0
- package/dist/components/live-region/live-region.d.ts +49 -0
- package/dist/components/live-region/live-region.d.ts.map +1 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +4 -2
- package/dist/components/navigation-menu/index.d.ts.map +1 -1
- package/dist/components/navigation-menu/index.js +3 -2
- package/dist/components/navigation-menu/index.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -6
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/privacy-lock/privacy-lock.d.ts.map +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +5 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio-group/index.js +4 -3
- package/dist/components/radio-group/index.js.map +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skip-link/index.d.ts +2 -0
- package/dist/components/skip-link/index.d.ts.map +1 -0
- package/dist/components/skip-link/index.js +5 -0
- package/dist/components/skip-link/index.js.map +1 -0
- package/dist/components/skip-link/skip-link.d.ts +34 -0
- package/dist/components/skip-link/skip-link.d.ts.map +1 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts.map +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-calendar/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.d.ts +3 -0
- package/dist/components/theme-toggle/index.d.ts.map +1 -0
- package/dist/components/theme-toggle/index.js +5 -0
- package/dist/components/theme-toggle/index.js.map +1 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +34 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts.map +1 -0
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/index.d.ts.map +1 -0
- package/dist/components/visually-hidden/index.js +5 -0
- package/dist/components/visually-hidden/index.js.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +11 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +10 -7
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-locale.d.ts +27 -0
- package/dist/hooks/use-locale.d.ts.map +1 -0
- package/dist/hooks/use-media-query.d.ts +17 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/i18n/config.js +59 -2
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/resources.d.ts +57 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/index.js +442 -431
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +19 -0
- package/dist/locales/en.json +19 -0
- package/dist/locales/it.json +19 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +4 -2
- package/dist/_chunks/accordion-Dgcd38U_.js +0 -117
- package/dist/_chunks/accordion-Dgcd38U_.js.map +0 -1
- package/dist/_chunks/agenda-card-B2gq-gTq.js +0 -130
- package/dist/_chunks/agenda-card-B2gq-gTq.js.map +0 -1
- package/dist/_chunks/agenda-tray-twa8g_87.js +0 -119
- package/dist/_chunks/agenda-tray-twa8g_87.js.map +0 -1
- package/dist/_chunks/ai-prompt-input-C6IY_Eds.js +0 -379
- package/dist/_chunks/ai-prompt-input-C6IY_Eds.js.map +0 -1
- package/dist/_chunks/alert-C5ud6CfE.js.map +0 -1
- package/dist/_chunks/apexcharts-theme-cpBYmCcr.js +0 -17
- package/dist/_chunks/apexcharts-theme-cpBYmCcr.js.map +0 -1
- package/dist/_chunks/app-frame-CmIUp9BD.js.map +0 -1
- package/dist/_chunks/aspect-ratio-Bo3cZXmR.js +0 -56
- package/dist/_chunks/aspect-ratio-Bo3cZXmR.js.map +0 -1
- package/dist/_chunks/audio-recorder-GkGNtW2X.js.map +0 -1
- package/dist/_chunks/audio-visualiser-CIO3yy23.js.map +0 -1
- package/dist/_chunks/autocomplete.agent-kb0nmr6F.js.map +0 -1
- package/dist/_chunks/avatar-BsV7vRA6.js.map +0 -1
- package/dist/_chunks/badge--CmSr7ok.js +0 -104
- package/dist/_chunks/badge--CmSr7ok.js.map +0 -1
- package/dist/_chunks/balance-cell-renderer-BQwN51rT.js.map +0 -1
- package/dist/_chunks/breadcrumb-DnO6eHSS.js.map +0 -1
- package/dist/_chunks/button-CXL8bA8G.js +0 -119
- package/dist/_chunks/button-CXL8bA8G.js.map +0 -1
- package/dist/_chunks/button-group-CI7LFxt3.js.map +0 -1
- package/dist/_chunks/calendar-BIXVzhkL.js.map +0 -1
- package/dist/_chunks/card-n97MNPP2.js +0 -158
- package/dist/_chunks/card-n97MNPP2.js.map +0 -1
- package/dist/_chunks/chart.agent-DkmVXNsI.js.map +0 -1
- package/dist/_chunks/chat-container-SR3UWxbL.js +0 -174
- package/dist/_chunks/chat-container-SR3UWxbL.js.map +0 -1
- package/dist/_chunks/chat-input-aphxDjZL.js.map +0 -1
- package/dist/_chunks/chat-message-CdJSD18D.js.map +0 -1
- package/dist/_chunks/checkbox-CfiZ0FZc.js +0 -116
- package/dist/_chunks/checkbox-CfiZ0FZc.js.map +0 -1
- package/dist/_chunks/checkbox-group-D1aqVI0-.js.map +0 -1
- package/dist/_chunks/collapsible-jBFm7Ah8.js.map +0 -1
- package/dist/_chunks/color-picker-CiotzQJF.js.map +0 -1
- package/dist/_chunks/combobox.agent-B6RwDSct.js.map +0 -1
- package/dist/_chunks/command-palette.agent-B87_OkmC.js.map +0 -1
- package/dist/_chunks/date-time-picker-CX_FMsLG.js.map +0 -1
- package/dist/_chunks/description-list-C5UPZgX6.js +0 -187
- package/dist/_chunks/description-list-C5UPZgX6.js.map +0 -1
- package/dist/_chunks/dialog.agent-B276rAQF.js.map +0 -1
- package/dist/_chunks/dropdown-menu-CJKvK7VG.js +0 -210
- package/dist/_chunks/dropdown-menu-CJKvK7VG.js.map +0 -1
- package/dist/_chunks/empty-state-DiG7vYBM.js.map +0 -1
- package/dist/_chunks/file-upload.agent-BMow5yDY.js.map +0 -1
- package/dist/_chunks/floating-action-button-BM9ib-Wf.js +0 -95
- package/dist/_chunks/floating-action-button-BM9ib-Wf.js.map +0 -1
- package/dist/_chunks/form-field-B4bwrccN.js +0 -121
- package/dist/_chunks/form-field-B4bwrccN.js.map +0 -1
- package/dist/_chunks/freemium-paywall-DVyNsQHS.js +0 -197
- package/dist/_chunks/freemium-paywall-DVyNsQHS.js.map +0 -1
- package/dist/_chunks/header-BpKaSL_v.js.map +0 -1
- package/dist/_chunks/icon-button-C1vpylg3.js +0 -45
- package/dist/_chunks/icon-button-C1vpylg3.js.map +0 -1
- package/dist/_chunks/icon-button-group-tERESY-n.js.map +0 -1
- package/dist/_chunks/kbd-0iPlQjgC.js.map +0 -1
- package/dist/_chunks/key-value-pair--Je59tAF.js.map +0 -1
- package/dist/_chunks/leo-sidebar-9A9AWBxX.js +0 -755
- package/dist/_chunks/leo-sidebar-9A9AWBxX.js.map +0 -1
- package/dist/_chunks/list-n8vI8Yvn.js.map +0 -1
- package/dist/_chunks/logo-UNWYb9p7.js.map +0 -1
- package/dist/_chunks/matrix-rain-Q7xTEpKu.js.map +0 -1
- package/dist/_chunks/message-card-g5VS5Q80.js +0 -275
- package/dist/_chunks/message-card-g5VS5Q80.js.map +0 -1
- package/dist/_chunks/message-tray-CAk-iibU.js +0 -302
- package/dist/_chunks/message-tray-CAk-iibU.js.map +0 -1
- package/dist/_chunks/multi-select.agent-Cf4pU636.js.map +0 -1
- package/dist/_chunks/navigation-menu-DBDsAmXc.js.map +0 -1
- package/dist/_chunks/notification-card-CQxJporb.js +0 -255
- package/dist/_chunks/notification-card-CQxJporb.js.map +0 -1
- package/dist/_chunks/notification-tray-CNWPuPZp.js.map +0 -1
- package/dist/_chunks/number-input-B1Th0DdC.js.map +0 -1
- package/dist/_chunks/otp-input-CmoBuZ4K.js.map +0 -1
- package/dist/_chunks/pagination.agent-B5KLDCMN.js.map +0 -1
- package/dist/_chunks/password-input-DnjNh-hQ.js.map +0 -1
- package/dist/_chunks/payment-form-Cf7U6r5L.js.map +0 -1
- package/dist/_chunks/pdf-viewer.agent-DXjgDItg.js.map +0 -1
- package/dist/_chunks/phone-input-C2dtIuxW.js.map +0 -1
- package/dist/_chunks/popover-D1woU9mP.js.map +0 -1
- package/dist/_chunks/privacy-lock-C1X42Sit.js.map +0 -1
- package/dist/_chunks/progress-DL3-izuO.js.map +0 -1
- package/dist/_chunks/radio-group-CXN9qNPe.js +0 -185
- package/dist/_chunks/radio-group-CXN9qNPe.js.map +0 -1
- package/dist/_chunks/resizable.agent-DVk_jJur.js.map +0 -1
- package/dist/_chunks/rich-text-editor.agent-BOjF4Xao.js.map +0 -1
- package/dist/_chunks/scroll-area-DXn-YWHY.js +0 -144
- package/dist/_chunks/scroll-area-DXn-YWHY.js.map +0 -1
- package/dist/_chunks/search-bar-DgSOAajC.js.map +0 -1
- package/dist/_chunks/search-input-D4tC_Prn.js +0 -197
- package/dist/_chunks/search-input-D4tC_Prn.js.map +0 -1
- package/dist/_chunks/select-B4m4upMg.js +0 -320
- package/dist/_chunks/select-B4m4upMg.js.map +0 -1
- package/dist/_chunks/separator-DExI4amU.js.map +0 -1
- package/dist/_chunks/sheet-D6XOx0fK.js +0 -188
- package/dist/_chunks/sheet-D6XOx0fK.js.map +0 -1
- package/dist/_chunks/sidebar-r645O-k9.js +0 -1076
- package/dist/_chunks/sidebar-r645O-k9.js.map +0 -1
- package/dist/_chunks/signature-capture.agent-L_1_-zVR.js.map +0 -1
- package/dist/_chunks/skeleton-vbTWUntB.js +0 -95
- package/dist/_chunks/skeleton-vbTWUntB.js.map +0 -1
- package/dist/_chunks/slider-B3DBwmcm.js +0 -273
- package/dist/_chunks/slider-B3DBwmcm.js.map +0 -1
- package/dist/_chunks/slot-grid-DL_Tuj0p.js +0 -491
- package/dist/_chunks/slot-grid-DL_Tuj0p.js.map +0 -1
- package/dist/_chunks/sparkline.agent-BDTXzTy9.js.map +0 -1
- package/dist/_chunks/spinner-77xUGpuX.js.map +0 -1
- package/dist/_chunks/stat-CrumvZWf.js +0 -208
- package/dist/_chunks/stat-CrumvZWf.js.map +0 -1
- package/dist/_chunks/stepper-accordion-BkvqQWPI.js.map +0 -1
- package/dist/_chunks/stepper-calendar-BQMjrwzo.js.map +0 -1
- package/dist/_chunks/stepper-progress-Bwfl-0rV.js +0 -128
- package/dist/_chunks/stepper-progress-Bwfl-0rV.js.map +0 -1
- package/dist/_chunks/streaming-text-Cu9YQe_1.js +0 -104
- package/dist/_chunks/streaming-text-Cu9YQe_1.js.map +0 -1
- package/dist/_chunks/suggestion-chip-XkxDJiPW.js +0 -157
- package/dist/_chunks/suggestion-chip-XkxDJiPW.js.map +0 -1
- package/dist/_chunks/switch-DyC0ThNT.js +0 -137
- package/dist/_chunks/switch-DyC0ThNT.js.map +0 -1
- package/dist/_chunks/tabs.agent-FsGU3sZL.js.map +0 -1
- package/dist/_chunks/tag-BucAvfTX.js +0 -194
- package/dist/_chunks/tag-BucAvfTX.js.map +0 -1
- package/dist/_chunks/task-card-uxjApfcg.js +0 -112
- package/dist/_chunks/task-card-uxjApfcg.js.map +0 -1
- package/dist/_chunks/task-tray-BdfM3p8N.js +0 -99
- package/dist/_chunks/task-tray-BdfM3p8N.js.map +0 -1
- package/dist/_chunks/text-area-CKxZ7cS3.js +0 -152
- package/dist/_chunks/text-area-CKxZ7cS3.js.map +0 -1
- package/dist/_chunks/text-input-D16CcMlL.js +0 -187
- package/dist/_chunks/text-input-D16CcMlL.js.map +0 -1
- package/dist/_chunks/time-picker-BapZq0OY.js.map +0 -1
- package/dist/_chunks/timeline-D3VOf4RT.js +0 -219
- package/dist/_chunks/timeline-D3VOf4RT.js.map +0 -1
- package/dist/_chunks/timestamp-BLM-jjdw.js.map +0 -1
- package/dist/_chunks/tooltip-DF6WjD1r.js.map +0 -1
- package/dist/_chunks/tooth-scheme.agent-CFKl3iQr.js.map +0 -1
- package/dist/_chunks/transcript-panel-aI14fHYA.js +0 -265
- package/dist/_chunks/transcript-panel-aI14fHYA.js.map +0 -1
- package/dist/_chunks/typing-indicator-BTVDEpnd.js +0 -81
- package/dist/_chunks/typing-indicator-BTVDEpnd.js.map +0 -1
- package/dist/_chunks/warning-stack-Cyf_81SL.js.map +0 -1
- package/dist/_chunks/workflow-map-Uf-hHAO3.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as P, jsxs as zt } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import s, { useState as Ot, useEffect as Ht } from "react";
|
|
3
3
|
import Zt from "react-dom";
|
|
4
4
|
import { useTranslation as te } from "react-i18next";
|
|
5
|
-
import { I as ee } from "./icon-button-
|
|
5
|
+
import { I as ee } from "./icon-button-C482ii4y.js";
|
|
6
6
|
import { X as ae } from "./x-CCcI3eJp.js";
|
|
7
|
-
import { C as
|
|
8
|
-
import { T as
|
|
9
|
-
import { C as
|
|
7
|
+
import { C as se } from "./circle-x-Du2CmjaU.js";
|
|
8
|
+
import { T as ne } from "./triangle-alert-CBPUIzQo.js";
|
|
9
|
+
import { C as oe } from "./circle-check-9AeSgJD_.js";
|
|
10
10
|
import { I as re } from "./info-B9XNKn05.js";
|
|
11
|
-
function ie(
|
|
11
|
+
function ie(n) {
|
|
12
12
|
if (typeof document > "u") return;
|
|
13
13
|
let a = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
|
|
14
|
-
e.type = "text/css", a.appendChild(e), e.styleSheet ? e.styleSheet.cssText =
|
|
14
|
+
e.type = "text/css", a.appendChild(e), e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
|
|
15
15
|
}
|
|
16
|
-
const le = (
|
|
17
|
-
switch (
|
|
16
|
+
const le = (n) => {
|
|
17
|
+
switch (n) {
|
|
18
18
|
case "success":
|
|
19
19
|
return ue;
|
|
20
20
|
case "info":
|
|
@@ -26,58 +26,58 @@ const le = (o) => {
|
|
|
26
26
|
default:
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
|
-
}, de = Array(12).fill(0), ce = ({ visible:
|
|
29
|
+
}, de = Array(12).fill(0), ce = ({ visible: n, className: a }) => /* @__PURE__ */ s.createElement("div", {
|
|
30
30
|
className: [
|
|
31
31
|
"sonner-loading-wrapper",
|
|
32
32
|
a
|
|
33
33
|
].filter(Boolean).join(" "),
|
|
34
|
-
"data-visible":
|
|
35
|
-
}, /* @__PURE__ */
|
|
34
|
+
"data-visible": n
|
|
35
|
+
}, /* @__PURE__ */ s.createElement("div", {
|
|
36
36
|
className: "sonner-spinner"
|
|
37
|
-
}, de.map((e,
|
|
37
|
+
}, de.map((e, o) => /* @__PURE__ */ s.createElement("div", {
|
|
38
38
|
className: "sonner-loading-bar",
|
|
39
|
-
key: `spinner-bar-${
|
|
40
|
-
})))), ue = /* @__PURE__ */
|
|
39
|
+
key: `spinner-bar-${o}`
|
|
40
|
+
})))), ue = /* @__PURE__ */ s.createElement("svg", {
|
|
41
41
|
xmlns: "http://www.w3.org/2000/svg",
|
|
42
42
|
viewBox: "0 0 20 20",
|
|
43
43
|
fill: "currentColor",
|
|
44
44
|
height: "20",
|
|
45
45
|
width: "20"
|
|
46
|
-
}, /* @__PURE__ */
|
|
46
|
+
}, /* @__PURE__ */ s.createElement("path", {
|
|
47
47
|
fillRule: "evenodd",
|
|
48
48
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
49
49
|
clipRule: "evenodd"
|
|
50
|
-
})), fe = /* @__PURE__ */
|
|
50
|
+
})), fe = /* @__PURE__ */ s.createElement("svg", {
|
|
51
51
|
xmlns: "http://www.w3.org/2000/svg",
|
|
52
52
|
viewBox: "0 0 24 24",
|
|
53
53
|
fill: "currentColor",
|
|
54
54
|
height: "20",
|
|
55
55
|
width: "20"
|
|
56
|
-
}, /* @__PURE__ */
|
|
56
|
+
}, /* @__PURE__ */ s.createElement("path", {
|
|
57
57
|
fillRule: "evenodd",
|
|
58
58
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
59
59
|
clipRule: "evenodd"
|
|
60
|
-
})), me = /* @__PURE__ */
|
|
60
|
+
})), me = /* @__PURE__ */ s.createElement("svg", {
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
62
|
viewBox: "0 0 20 20",
|
|
63
63
|
fill: "currentColor",
|
|
64
64
|
height: "20",
|
|
65
65
|
width: "20"
|
|
66
|
-
}, /* @__PURE__ */
|
|
66
|
+
}, /* @__PURE__ */ s.createElement("path", {
|
|
67
67
|
fillRule: "evenodd",
|
|
68
68
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
69
69
|
clipRule: "evenodd"
|
|
70
|
-
})), pe = /* @__PURE__ */
|
|
70
|
+
})), pe = /* @__PURE__ */ s.createElement("svg", {
|
|
71
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
72
|
viewBox: "0 0 20 20",
|
|
73
73
|
fill: "currentColor",
|
|
74
74
|
height: "20",
|
|
75
75
|
width: "20"
|
|
76
|
-
}, /* @__PURE__ */
|
|
76
|
+
}, /* @__PURE__ */ s.createElement("path", {
|
|
77
77
|
fillRule: "evenodd",
|
|
78
78
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
79
79
|
clipRule: "evenodd"
|
|
80
|
-
})), ge = /* @__PURE__ */
|
|
80
|
+
})), ge = /* @__PURE__ */ s.createElement("svg", {
|
|
81
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
82
82
|
width: "12",
|
|
83
83
|
height: "12",
|
|
@@ -87,24 +87,24 @@ const le = (o) => {
|
|
|
87
87
|
strokeWidth: "1.5",
|
|
88
88
|
strokeLinecap: "round",
|
|
89
89
|
strokeLinejoin: "round"
|
|
90
|
-
}, /* @__PURE__ */
|
|
90
|
+
}, /* @__PURE__ */ s.createElement("line", {
|
|
91
91
|
x1: "18",
|
|
92
92
|
y1: "6",
|
|
93
93
|
x2: "6",
|
|
94
94
|
y2: "18"
|
|
95
|
-
}), /* @__PURE__ */
|
|
95
|
+
}), /* @__PURE__ */ s.createElement("line", {
|
|
96
96
|
x1: "6",
|
|
97
97
|
y1: "6",
|
|
98
98
|
x2: "18",
|
|
99
99
|
y2: "18"
|
|
100
100
|
})), he = () => {
|
|
101
|
-
const [
|
|
102
|
-
return
|
|
101
|
+
const [n, a] = s.useState(document.hidden);
|
|
102
|
+
return s.useEffect(() => {
|
|
103
103
|
const e = () => {
|
|
104
104
|
a(document.hidden);
|
|
105
105
|
};
|
|
106
106
|
return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
|
|
107
|
-
}, []),
|
|
107
|
+
}, []), n;
|
|
108
108
|
};
|
|
109
109
|
let Nt = 1;
|
|
110
110
|
class be {
|
|
@@ -121,20 +121,20 @@ class be {
|
|
|
121
121
|
];
|
|
122
122
|
}, this.create = (a) => {
|
|
123
123
|
var e;
|
|
124
|
-
const { message:
|
|
124
|
+
const { message: o, ...w } = a, d = typeof (a == null ? void 0 : a.id) == "number" || ((e = a.id) == null ? void 0 : e.length) > 0 ? a.id : Nt++, c = this.toasts.find((h) => h.id === d), k = a.dismissible === void 0 ? !0 : a.dismissible;
|
|
125
125
|
return this.dismissedToasts.has(d) && this.dismissedToasts.delete(d), c ? this.toasts = this.toasts.map((h) => h.id === d ? (this.publish({
|
|
126
126
|
...h,
|
|
127
127
|
...a,
|
|
128
128
|
id: d,
|
|
129
|
-
title:
|
|
129
|
+
title: o
|
|
130
130
|
}), {
|
|
131
131
|
...h,
|
|
132
132
|
...a,
|
|
133
133
|
id: d,
|
|
134
134
|
dismissible: k,
|
|
135
|
-
title:
|
|
135
|
+
title: o
|
|
136
136
|
}) : h) : this.addToast({
|
|
137
|
-
title:
|
|
137
|
+
title: o,
|
|
138
138
|
...w,
|
|
139
139
|
dismissible: k,
|
|
140
140
|
id: d
|
|
@@ -143,7 +143,7 @@ class be {
|
|
|
143
143
|
id: a,
|
|
144
144
|
dismiss: !0
|
|
145
145
|
})))) : this.toasts.forEach((e) => {
|
|
146
|
-
this.subscribers.forEach((
|
|
146
|
+
this.subscribers.forEach((o) => o({
|
|
147
147
|
id: e.id,
|
|
148
148
|
dismiss: !0
|
|
149
149
|
}));
|
|
@@ -173,8 +173,8 @@ class be {
|
|
|
173
173
|
}), this.promise = (a, e) => {
|
|
174
174
|
if (!e)
|
|
175
175
|
return;
|
|
176
|
-
let
|
|
177
|
-
e.loading !== void 0 && (
|
|
176
|
+
let o;
|
|
177
|
+
e.loading !== void 0 && (o = this.create({
|
|
178
178
|
...e,
|
|
179
179
|
promise: a,
|
|
180
180
|
type: "loading",
|
|
@@ -182,46 +182,46 @@ class be {
|
|
|
182
182
|
description: typeof e.description != "function" ? e.description : void 0
|
|
183
183
|
}));
|
|
184
184
|
const w = Promise.resolve(a instanceof Function ? a() : a);
|
|
185
|
-
let d =
|
|
185
|
+
let d = o !== void 0, c;
|
|
186
186
|
const k = w.then(async (i) => {
|
|
187
187
|
if (c = [
|
|
188
188
|
"resolve",
|
|
189
189
|
i
|
|
190
|
-
],
|
|
190
|
+
], s.isValidElement(i))
|
|
191
191
|
d = !1, this.create({
|
|
192
|
-
id:
|
|
192
|
+
id: o,
|
|
193
193
|
type: "default",
|
|
194
194
|
message: i
|
|
195
195
|
});
|
|
196
196
|
else if (ye(i) && !i.ok) {
|
|
197
197
|
d = !1;
|
|
198
|
-
const t = typeof e.error == "function" ? await e.error(`HTTP error! status: ${i.status}`) : e.error, E = typeof e.description == "function" ? await e.description(`HTTP error! status: ${i.status}`) : e.description, T = typeof t == "object" && !
|
|
198
|
+
const t = typeof e.error == "function" ? await e.error(`HTTP error! status: ${i.status}`) : e.error, E = typeof e.description == "function" ? await e.description(`HTTP error! status: ${i.status}`) : e.description, T = typeof t == "object" && !s.isValidElement(t) ? t : {
|
|
199
199
|
message: t
|
|
200
200
|
};
|
|
201
201
|
this.create({
|
|
202
|
-
id:
|
|
202
|
+
id: o,
|
|
203
203
|
type: "error",
|
|
204
204
|
description: E,
|
|
205
205
|
...T
|
|
206
206
|
});
|
|
207
207
|
} else if (i instanceof Error) {
|
|
208
208
|
d = !1;
|
|
209
|
-
const t = typeof e.error == "function" ? await e.error(i) : e.error, E = typeof e.description == "function" ? await e.description(i) : e.description, T = typeof t == "object" && !
|
|
209
|
+
const t = typeof e.error == "function" ? await e.error(i) : e.error, E = typeof e.description == "function" ? await e.description(i) : e.description, T = typeof t == "object" && !s.isValidElement(t) ? t : {
|
|
210
210
|
message: t
|
|
211
211
|
};
|
|
212
212
|
this.create({
|
|
213
|
-
id:
|
|
213
|
+
id: o,
|
|
214
214
|
type: "error",
|
|
215
215
|
description: E,
|
|
216
216
|
...T
|
|
217
217
|
});
|
|
218
218
|
} else if (e.success !== void 0) {
|
|
219
219
|
d = !1;
|
|
220
|
-
const t = typeof e.success == "function" ? await e.success(i) : e.success, E = typeof e.description == "function" ? await e.description(i) : e.description, T = typeof t == "object" && !
|
|
220
|
+
const t = typeof e.success == "function" ? await e.success(i) : e.success, E = typeof e.description == "function" ? await e.description(i) : e.description, T = typeof t == "object" && !s.isValidElement(t) ? t : {
|
|
221
221
|
message: t
|
|
222
222
|
};
|
|
223
223
|
this.create({
|
|
224
|
-
id:
|
|
224
|
+
id: o,
|
|
225
225
|
type: "success",
|
|
226
226
|
description: E,
|
|
227
227
|
...T
|
|
@@ -233,42 +233,42 @@ class be {
|
|
|
233
233
|
i
|
|
234
234
|
], e.error !== void 0) {
|
|
235
235
|
d = !1;
|
|
236
|
-
const N = typeof e.error == "function" ? await e.error(i) : e.error, t = typeof e.description == "function" ? await e.description(i) : e.description, O = typeof N == "object" && !
|
|
236
|
+
const N = typeof e.error == "function" ? await e.error(i) : e.error, t = typeof e.description == "function" ? await e.description(i) : e.description, O = typeof N == "object" && !s.isValidElement(N) ? N : {
|
|
237
237
|
message: N
|
|
238
238
|
};
|
|
239
239
|
this.create({
|
|
240
|
-
id:
|
|
240
|
+
id: o,
|
|
241
241
|
type: "error",
|
|
242
242
|
description: t,
|
|
243
243
|
...O
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}).finally(() => {
|
|
247
|
-
d && (this.dismiss(
|
|
247
|
+
d && (this.dismiss(o), o = void 0), e.finally == null || e.finally.call(e);
|
|
248
248
|
}), h = () => new Promise((i, N) => k.then(() => c[0] === "reject" ? N(c[1]) : i(c[1])).catch(N));
|
|
249
|
-
return typeof
|
|
249
|
+
return typeof o != "string" && typeof o != "number" ? {
|
|
250
250
|
unwrap: h
|
|
251
|
-
} : Object.assign(
|
|
251
|
+
} : Object.assign(o, {
|
|
252
252
|
unwrap: h
|
|
253
253
|
});
|
|
254
254
|
}, this.custom = (a, e) => {
|
|
255
|
-
const
|
|
255
|
+
const o = (e == null ? void 0 : e.id) || Nt++;
|
|
256
256
|
return this.create({
|
|
257
|
-
jsx: a(
|
|
258
|
-
id:
|
|
257
|
+
jsx: a(o),
|
|
258
|
+
id: o,
|
|
259
259
|
...e
|
|
260
|
-
}),
|
|
260
|
+
}), o;
|
|
261
261
|
}, this.getActiveToasts = () => this.toasts.filter((a) => !this.dismissedToasts.has(a.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
const S = new be(), ve = (
|
|
264
|
+
const S = new be(), ve = (n, a) => {
|
|
265
265
|
const e = (a == null ? void 0 : a.id) || Nt++;
|
|
266
266
|
return S.addToast({
|
|
267
|
-
title:
|
|
267
|
+
title: n,
|
|
268
268
|
...a,
|
|
269
269
|
id: e
|
|
270
270
|
}), e;
|
|
271
|
-
}, ye = (
|
|
271
|
+
}, ye = (n) => n && typeof n == "object" && "ok" in n && typeof n.ok == "boolean" && "status" in n && typeof n.status == "number", xe = ve, we = () => S.toasts, Ee = () => S.getActiveToasts(), tt = Object.assign(xe, {
|
|
272
272
|
success: S.success,
|
|
273
273
|
info: S.info,
|
|
274
274
|
warning: S.warning,
|
|
@@ -283,45 +283,45 @@ const S = new be(), ve = (o, a) => {
|
|
|
283
283
|
getToasts: Ee
|
|
284
284
|
});
|
|
285
285
|
ie("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
286
|
-
function gt(
|
|
287
|
-
return
|
|
286
|
+
function gt(n) {
|
|
287
|
+
return n.label !== void 0;
|
|
288
288
|
}
|
|
289
289
|
const Te = 3, ke = "24px", Ne = "16px", jt = 4e3, Se = 356, De = 14, _e = 45, Ce = 200;
|
|
290
|
-
function z(...
|
|
291
|
-
return
|
|
290
|
+
function z(...n) {
|
|
291
|
+
return n.filter(Boolean).join(" ");
|
|
292
292
|
}
|
|
293
|
-
function Re(
|
|
294
|
-
const [a, e] =
|
|
295
|
-
return a &&
|
|
293
|
+
function Re(n) {
|
|
294
|
+
const [a, e] = n.split("-"), o = [];
|
|
295
|
+
return a && o.push(a), e && o.push(e), o;
|
|
296
296
|
}
|
|
297
|
-
const Be = (
|
|
298
|
-
var a, e,
|
|
299
|
-
const { invert: N, toast: t, unstyled: E, interacting: O, setHeights: T, visibleToasts: bt, heights: U, index: u, toasts:
|
|
297
|
+
const Be = (n) => {
|
|
298
|
+
var a, e, o, w, d, c, k, h, i;
|
|
299
|
+
const { invert: N, toast: t, unstyled: E, interacting: O, setHeights: T, visibleToasts: bt, heights: U, index: u, toasts: ot, expanded: W, removeToast: rt, defaultRichColors: vt, closeButton: H, style: et, cancelButtonStyle: Y, actionButtonStyle: yt, className: it = "", descriptionClassName: xt = "", duration: at, position: A, gap: lt, expandByDefault: st, classNames: f, icons: v, closeButtonAriaLabel: L = "Close toast" } = n, [F, B] = s.useState(null), [V, dt] = s.useState(null), [l, g] = s.useState(!1), [p, C] = s.useState(!1), [K, m] = s.useState(!1), [q, ct] = s.useState(!1), [ut, G] = s.useState(!1), [$t, wt] = s.useState(0), [Yt, St] = s.useState(0), nt = s.useRef(t.duration || at || jt), Dt = s.useRef(null), j = s.useRef(null), Ft = u === 0, Vt = u + 1 <= bt, D = t.type, Q = t.dismissible !== !1, Xt = t.className || "", Ut = t.descriptionClassName || "", ft = s.useMemo(() => U.findIndex((r) => r.toastId === t.id) || 0, [
|
|
300
300
|
U,
|
|
301
301
|
t.id
|
|
302
|
-
]), Wt =
|
|
302
|
+
]), Wt = s.useMemo(() => {
|
|
303
303
|
var r;
|
|
304
304
|
return (r = t.closeButton) != null ? r : H;
|
|
305
305
|
}, [
|
|
306
306
|
t.closeButton,
|
|
307
307
|
H
|
|
308
|
-
]), _t =
|
|
308
|
+
]), _t = s.useMemo(() => t.duration || at || jt, [
|
|
309
309
|
t.duration,
|
|
310
310
|
at
|
|
311
|
-
]), Et =
|
|
311
|
+
]), Et = s.useRef(0), J = s.useRef(0), Ct = s.useRef(0), Z = s.useRef(null), [Kt, qt] = A.split("-"), Rt = s.useMemo(() => U.reduce((r, b, x) => x >= ft ? r : r + b.height, 0), [
|
|
312
312
|
U,
|
|
313
313
|
ft
|
|
314
314
|
]), Bt = he(), Gt = t.invert || N, Tt = D === "loading";
|
|
315
|
-
J.current =
|
|
315
|
+
J.current = s.useMemo(() => ft * lt + Rt, [
|
|
316
316
|
ft,
|
|
317
317
|
Rt
|
|
318
|
-
]),
|
|
319
|
-
|
|
318
|
+
]), s.useEffect(() => {
|
|
319
|
+
nt.current = _t;
|
|
320
320
|
}, [
|
|
321
321
|
_t
|
|
322
|
-
]),
|
|
322
|
+
]), s.useEffect(() => {
|
|
323
323
|
g(!0);
|
|
324
|
-
}, []),
|
|
324
|
+
}, []), s.useEffect(() => {
|
|
325
325
|
const r = j.current;
|
|
326
326
|
if (r) {
|
|
327
327
|
const b = r.getBoundingClientRect().height;
|
|
@@ -337,7 +337,7 @@ const Be = (o) => {
|
|
|
337
337
|
}, [
|
|
338
338
|
T,
|
|
339
339
|
t.id
|
|
340
|
-
]),
|
|
340
|
+
]), s.useLayoutEffect(() => {
|
|
341
341
|
if (!l) return;
|
|
342
342
|
const r = j.current, b = r.style.height;
|
|
343
343
|
r.style.height = "auto";
|
|
@@ -363,7 +363,7 @@ const Be = (o) => {
|
|
|
363
363
|
t.action,
|
|
364
364
|
t.cancel
|
|
365
365
|
]);
|
|
366
|
-
const $ =
|
|
366
|
+
const $ = s.useCallback(() => {
|
|
367
367
|
C(!0), wt(J.current), T((r) => r.filter((b) => b.toastId !== t.id)), setTimeout(() => {
|
|
368
368
|
rt(t);
|
|
369
369
|
}, Ce);
|
|
@@ -373,19 +373,19 @@ const Be = (o) => {
|
|
|
373
373
|
T,
|
|
374
374
|
J
|
|
375
375
|
]);
|
|
376
|
-
|
|
376
|
+
s.useEffect(() => {
|
|
377
377
|
if (t.promise && D === "loading" || t.duration === 1 / 0 || t.type === "loading") return;
|
|
378
378
|
let r;
|
|
379
379
|
return W || O || Bt ? (() => {
|
|
380
380
|
if (Ct.current < Et.current) {
|
|
381
381
|
const _ = (/* @__PURE__ */ new Date()).getTime() - Et.current;
|
|
382
|
-
|
|
382
|
+
nt.current = nt.current - _;
|
|
383
383
|
}
|
|
384
384
|
Ct.current = (/* @__PURE__ */ new Date()).getTime();
|
|
385
385
|
})() : (() => {
|
|
386
|
-
|
|
386
|
+
nt.current !== 1 / 0 && (Et.current = (/* @__PURE__ */ new Date()).getTime(), r = setTimeout(() => {
|
|
387
387
|
t.onAutoClose == null || t.onAutoClose.call(t, t), $();
|
|
388
|
-
},
|
|
388
|
+
}, nt.current));
|
|
389
389
|
})(), () => clearTimeout(r);
|
|
390
390
|
}, [
|
|
391
391
|
W,
|
|
@@ -394,7 +394,7 @@ const Be = (o) => {
|
|
|
394
394
|
D,
|
|
395
395
|
Bt,
|
|
396
396
|
$
|
|
397
|
-
]),
|
|
397
|
+
]), s.useEffect(() => {
|
|
398
398
|
t.delete && ($(), t.onDismiss == null || t.onDismiss.call(t, t));
|
|
399
399
|
}, [
|
|
400
400
|
$,
|
|
@@ -404,19 +404,19 @@ const Be = (o) => {
|
|
|
404
404
|
var r;
|
|
405
405
|
if (v != null && v.loading) {
|
|
406
406
|
var b;
|
|
407
|
-
return /* @__PURE__ */
|
|
407
|
+
return /* @__PURE__ */ s.createElement("div", {
|
|
408
408
|
className: z(f == null ? void 0 : f.loader, t == null || (b = t.classNames) == null ? void 0 : b.loader, "sonner-loader"),
|
|
409
409
|
"data-visible": D === "loading"
|
|
410
410
|
}, v.loading);
|
|
411
411
|
}
|
|
412
|
-
return /* @__PURE__ */
|
|
412
|
+
return /* @__PURE__ */ s.createElement(ce, {
|
|
413
413
|
className: z(f == null ? void 0 : f.loader, t == null || (r = t.classNames) == null ? void 0 : r.loader),
|
|
414
414
|
visible: D === "loading"
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
const Jt = t.icon || (v == null ? void 0 : v[D]) || le(D);
|
|
418
418
|
var It, Mt;
|
|
419
|
-
return /* @__PURE__ */
|
|
419
|
+
return /* @__PURE__ */ s.createElement("li", {
|
|
420
420
|
tabIndex: 0,
|
|
421
421
|
ref: j,
|
|
422
422
|
className: z(it, Xt, f == null ? void 0 : f.toast, t == null || (a = t.classNames) == null ? void 0 : a.toast, f == null ? void 0 : f.default, f == null ? void 0 : f[D], t == null || (e = t.classNames) == null ? void 0 : e[D]),
|
|
@@ -438,14 +438,14 @@ const Be = (o) => {
|
|
|
438
438
|
"data-invert": Gt,
|
|
439
439
|
"data-swipe-out": q,
|
|
440
440
|
"data-swipe-direction": V,
|
|
441
|
-
"data-expanded": !!(W ||
|
|
441
|
+
"data-expanded": !!(W || st && l),
|
|
442
442
|
"data-testid": t.testId,
|
|
443
443
|
style: {
|
|
444
444
|
"--index": u,
|
|
445
445
|
"--toasts-before": u,
|
|
446
|
-
"--z-index":
|
|
446
|
+
"--z-index": ot.length - u,
|
|
447
447
|
"--offset": `${p ? $t : J.current}px`,
|
|
448
|
-
"--initial-height":
|
|
448
|
+
"--initial-height": st ? "auto" : `${Yt}px`,
|
|
449
449
|
...et,
|
|
450
450
|
...t.style
|
|
451
451
|
},
|
|
@@ -477,7 +477,7 @@ const Be = (o) => {
|
|
|
477
477
|
if (!Z.current || !Q || ((b = window.getSelection()) == null ? void 0 : b.toString().length) > 0) return;
|
|
478
478
|
const y = r.clientY - Z.current.y, R = r.clientX - Z.current.x;
|
|
479
479
|
var pt;
|
|
480
|
-
const I = (pt =
|
|
480
|
+
const I = (pt = n.swipeDirections) != null ? pt : Re(A);
|
|
481
481
|
!F && (Math.abs(R) > 1 || Math.abs(y) > 1) && B(Math.abs(R) > Math.abs(y) ? "x" : "y");
|
|
482
482
|
let M = {
|
|
483
483
|
x: 0,
|
|
@@ -501,7 +501,7 @@ const Be = (o) => {
|
|
|
501
501
|
}
|
|
502
502
|
(Math.abs(M.x) > 0 || Math.abs(M.y) > 0) && G(!0), (x = j.current) == null || x.style.setProperty("--swipe-amount-x", `${M.x}px`), (_ = j.current) == null || _.style.setProperty("--swipe-amount-y", `${M.y}px`);
|
|
503
503
|
}
|
|
504
|
-
}, Wt && !t.jsx && D !== "loading" ? /* @__PURE__ */
|
|
504
|
+
}, Wt && !t.jsx && D !== "loading" ? /* @__PURE__ */ s.createElement("button", {
|
|
505
505
|
"aria-label": L,
|
|
506
506
|
"data-disabled": Tt,
|
|
507
507
|
"data-close-button": !0,
|
|
@@ -509,20 +509,20 @@ const Be = (o) => {
|
|
|
509
509
|
} : () => {
|
|
510
510
|
$(), t.onDismiss == null || t.onDismiss.call(t, t);
|
|
511
511
|
},
|
|
512
|
-
className: z(f == null ? void 0 : f.closeButton, t == null || (
|
|
513
|
-
}, (Mt = v == null ? void 0 : v.close) != null ? Mt : ge) : null, (D || t.icon || t.promise) && t.icon !== null && ((v == null ? void 0 : v[D]) !== null || t.icon) ? /* @__PURE__ */
|
|
512
|
+
className: z(f == null ? void 0 : f.closeButton, t == null || (o = t.classNames) == null ? void 0 : o.closeButton)
|
|
513
|
+
}, (Mt = v == null ? void 0 : v.close) != null ? Mt : ge) : null, (D || t.icon || t.promise) && t.icon !== null && ((v == null ? void 0 : v[D]) !== null || t.icon) ? /* @__PURE__ */ s.createElement("div", {
|
|
514
514
|
"data-icon": "",
|
|
515
515
|
className: z(f == null ? void 0 : f.icon, t == null || (w = t.classNames) == null ? void 0 : w.icon)
|
|
516
|
-
}, t.promise || t.type === "loading" && !t.icon ? t.icon || Qt() : null, t.type !== "loading" ? Jt : null) : null, /* @__PURE__ */
|
|
516
|
+
}, t.promise || t.type === "loading" && !t.icon ? t.icon || Qt() : null, t.type !== "loading" ? Jt : null) : null, /* @__PURE__ */ s.createElement("div", {
|
|
517
517
|
"data-content": "",
|
|
518
518
|
className: z(f == null ? void 0 : f.content, t == null || (d = t.classNames) == null ? void 0 : d.content)
|
|
519
|
-
}, /* @__PURE__ */
|
|
519
|
+
}, /* @__PURE__ */ s.createElement("div", {
|
|
520
520
|
"data-title": "",
|
|
521
521
|
className: z(f == null ? void 0 : f.title, t == null || (c = t.classNames) == null ? void 0 : c.title)
|
|
522
|
-
}, t.jsx ? t.jsx : typeof t.title == "function" ? t.title() : t.title), t.description ? /* @__PURE__ */
|
|
522
|
+
}, t.jsx ? t.jsx : typeof t.title == "function" ? t.title() : t.title), t.description ? /* @__PURE__ */ s.createElement("div", {
|
|
523
523
|
"data-description": "",
|
|
524
524
|
className: z(xt, Ut, f == null ? void 0 : f.description, t == null || (k = t.classNames) == null ? void 0 : k.description)
|
|
525
|
-
}, typeof t.description == "function" ? t.description() : t.description) : null), /* @__PURE__ */
|
|
525
|
+
}, typeof t.description == "function" ? t.description() : t.description) : null), /* @__PURE__ */ s.isValidElement(t.cancel) ? t.cancel : t.cancel && gt(t.cancel) ? /* @__PURE__ */ s.createElement("button", {
|
|
526
526
|
"data-button": !0,
|
|
527
527
|
"data-cancel": !0,
|
|
528
528
|
style: t.cancelButtonStyle || Y,
|
|
@@ -530,7 +530,7 @@ const Be = (o) => {
|
|
|
530
530
|
gt(t.cancel) && Q && (t.cancel.onClick == null || t.cancel.onClick.call(t.cancel, r), $());
|
|
531
531
|
},
|
|
532
532
|
className: z(f == null ? void 0 : f.cancelButton, t == null || (h = t.classNames) == null ? void 0 : h.cancelButton)
|
|
533
|
-
}, t.cancel.label) : null, /* @__PURE__ */
|
|
533
|
+
}, t.cancel.label) : null, /* @__PURE__ */ s.isValidElement(t.action) ? t.action : t.action && gt(t.action) ? /* @__PURE__ */ s.createElement("button", {
|
|
534
534
|
"data-button": !0,
|
|
535
535
|
"data-action": !0,
|
|
536
536
|
style: t.actionButtonStyle || yt,
|
|
@@ -542,15 +542,15 @@ const Be = (o) => {
|
|
|
542
542
|
};
|
|
543
543
|
function Pt() {
|
|
544
544
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
545
|
-
const
|
|
546
|
-
return
|
|
545
|
+
const n = document.documentElement.getAttribute("dir");
|
|
546
|
+
return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
|
|
547
547
|
}
|
|
548
|
-
function Ie(
|
|
548
|
+
function Ie(n, a) {
|
|
549
549
|
const e = {};
|
|
550
550
|
return [
|
|
551
|
-
|
|
551
|
+
n,
|
|
552
552
|
a
|
|
553
|
-
].forEach((
|
|
553
|
+
].forEach((o, w) => {
|
|
554
554
|
const d = w === 1, c = d ? "--mobile-offset" : "--offset", k = d ? Ne : ke;
|
|
555
555
|
function h(i) {
|
|
556
556
|
[
|
|
@@ -562,35 +562,35 @@ function Ie(o, a) {
|
|
|
562
562
|
e[`${c}-${N}`] = typeof i == "number" ? `${i}px` : i;
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
typeof
|
|
565
|
+
typeof o == "number" || typeof o == "string" ? h(o) : typeof o == "object" ? [
|
|
566
566
|
"top",
|
|
567
567
|
"right",
|
|
568
568
|
"bottom",
|
|
569
569
|
"left"
|
|
570
570
|
].forEach((i) => {
|
|
571
|
-
|
|
571
|
+
o[i] === void 0 ? e[`${c}-${i}`] = k : e[`${c}-${i}`] = typeof o[i] == "number" ? `${o[i]}px` : o[i];
|
|
572
572
|
}) : h(k);
|
|
573
573
|
}), e;
|
|
574
574
|
}
|
|
575
|
-
const Me = /* @__PURE__ */
|
|
576
|
-
const { id:
|
|
575
|
+
const Me = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
576
|
+
const { id: o, invert: w, position: d = "bottom-right", hotkey: c = [
|
|
577
577
|
"altKey",
|
|
578
578
|
"KeyT"
|
|
579
|
-
], expand: k, closeButton: h, className: i, offset: N, mobileOffset: t, theme: E = "light", richColors: O, duration: T, style: bt, visibleToasts: U = Te, toastOptions: u, dir:
|
|
579
|
+
], expand: k, closeButton: h, className: i, offset: N, mobileOffset: t, theme: E = "light", richColors: O, duration: T, style: bt, visibleToasts: U = Te, toastOptions: u, dir: ot = Pt(), gap: W = De, icons: rt, containerAriaLabel: vt = "Notifications" } = a, [H, et] = s.useState([]), Y = s.useMemo(() => o ? H.filter((l) => l.toasterId === o) : H.filter((l) => !l.toasterId), [
|
|
580
580
|
H,
|
|
581
|
-
|
|
582
|
-
]), yt =
|
|
581
|
+
o
|
|
582
|
+
]), yt = s.useMemo(() => Array.from(new Set([
|
|
583
583
|
d
|
|
584
584
|
].concat(Y.filter((l) => l.position).map((l) => l.position)))), [
|
|
585
585
|
Y,
|
|
586
586
|
d
|
|
587
|
-
]), [it, xt] =
|
|
587
|
+
]), [it, xt] = s.useState([]), [at, A] = s.useState(!1), [lt, st] = s.useState(!1), [f, v] = s.useState(E !== "system" ? E : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), L = s.useRef(null), F = c.join("+").replace(/Key/g, "").replace(/Digit/g, ""), B = s.useRef(null), V = s.useRef(!1), dt = s.useCallback((l) => {
|
|
588
588
|
et((g) => {
|
|
589
589
|
var p;
|
|
590
590
|
return (p = g.find((C) => C.id === l.id)) != null && p.delete || S.dismiss(l.id), g.filter(({ id: C }) => C !== l.id);
|
|
591
591
|
});
|
|
592
592
|
}, []);
|
|
593
|
-
return
|
|
593
|
+
return s.useEffect(() => S.subscribe((l) => {
|
|
594
594
|
if (l.dismiss) {
|
|
595
595
|
requestAnimationFrame(() => {
|
|
596
596
|
et((g) => g.map((p) => p.id === l.id ? {
|
|
@@ -620,7 +620,7 @@ const Me = /* @__PURE__ */ n.forwardRef(function(a, e) {
|
|
|
620
620
|
});
|
|
621
621
|
}), [
|
|
622
622
|
H
|
|
623
|
-
]),
|
|
623
|
+
]), s.useEffect(() => {
|
|
624
624
|
if (E !== "system") {
|
|
625
625
|
v(E);
|
|
626
626
|
return;
|
|
@@ -642,11 +642,11 @@ const Me = /* @__PURE__ */ n.forwardRef(function(a, e) {
|
|
|
642
642
|
}
|
|
643
643
|
}, [
|
|
644
644
|
E
|
|
645
|
-
]),
|
|
645
|
+
]), s.useEffect(() => {
|
|
646
646
|
H.length <= 1 && A(!1);
|
|
647
647
|
}, [
|
|
648
648
|
H
|
|
649
|
-
]),
|
|
649
|
+
]), s.useEffect(() => {
|
|
650
650
|
const l = (g) => {
|
|
651
651
|
var p;
|
|
652
652
|
if (c.every((m) => g[m] || g.code === m)) {
|
|
@@ -658,7 +658,7 @@ const Me = /* @__PURE__ */ n.forwardRef(function(a, e) {
|
|
|
658
658
|
return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
|
|
659
659
|
}, [
|
|
660
660
|
c
|
|
661
|
-
]),
|
|
661
|
+
]), s.useEffect(() => {
|
|
662
662
|
if (L.current)
|
|
663
663
|
return () => {
|
|
664
664
|
B.current && (B.current.focus({
|
|
@@ -668,7 +668,7 @@ const Me = /* @__PURE__ */ n.forwardRef(function(a, e) {
|
|
|
668
668
|
}, [
|
|
669
669
|
L.current
|
|
670
670
|
]), // Remove item from normal navigation flow, only available via hotkey
|
|
671
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ s.createElement("section", {
|
|
672
672
|
ref: e,
|
|
673
673
|
"aria-label": `${vt} ${F}`,
|
|
674
674
|
tabIndex: -1,
|
|
@@ -679,9 +679,9 @@ const Me = /* @__PURE__ */ n.forwardRef(function(a, e) {
|
|
|
679
679
|
}, yt.map((l, g) => {
|
|
680
680
|
var p;
|
|
681
681
|
const [C, K] = l.split("-");
|
|
682
|
-
return Y.length ? /* @__PURE__ */
|
|
682
|
+
return Y.length ? /* @__PURE__ */ s.createElement("ol", {
|
|
683
683
|
key: l,
|
|
684
|
-
dir:
|
|
684
|
+
dir: ot === "auto" ? Pt() : ot,
|
|
685
685
|
tabIndex: -1,
|
|
686
686
|
ref: L,
|
|
687
687
|
className: i,
|
|
@@ -711,12 +711,12 @@ const Me = /* @__PURE__ */ n.forwardRef(function(a, e) {
|
|
|
711
711
|
},
|
|
712
712
|
onDragEnd: () => A(!1),
|
|
713
713
|
onPointerDown: (m) => {
|
|
714
|
-
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" ||
|
|
714
|
+
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" || st(!0);
|
|
715
715
|
},
|
|
716
|
-
onPointerUp: () =>
|
|
716
|
+
onPointerUp: () => st(!1)
|
|
717
717
|
}, Y.filter((m) => !m.position && g === 0 || m.position === l).map((m, q) => {
|
|
718
718
|
var ct, ut;
|
|
719
|
-
return /* @__PURE__ */
|
|
719
|
+
return /* @__PURE__ */ s.createElement(Be, {
|
|
720
720
|
key: m.id,
|
|
721
721
|
icons: rt,
|
|
722
722
|
index: q,
|
|
@@ -748,13 +748,13 @@ const Me = /* @__PURE__ */ n.forwardRef(function(a, e) {
|
|
|
748
748
|
})) : null;
|
|
749
749
|
}));
|
|
750
750
|
}), Ae = {
|
|
751
|
-
info: /* @__PURE__ */ P(re, { "aria-hidden": "true", size: 20, className: "shrink-0 text-[var(--info)]" }),
|
|
752
|
-
success: /* @__PURE__ */ P(
|
|
753
|
-
warning: /* @__PURE__ */ P(
|
|
754
|
-
error: /* @__PURE__ */ P(
|
|
751
|
+
info: /* @__PURE__ */ P(re, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--info)]" }),
|
|
752
|
+
success: /* @__PURE__ */ P(oe, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--success)]" }),
|
|
753
|
+
warning: /* @__PURE__ */ P(ne, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--warning)]" }),
|
|
754
|
+
error: /* @__PURE__ */ P(se, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--destructive)]" })
|
|
755
755
|
};
|
|
756
756
|
let Lt = "Close", kt = !1;
|
|
757
|
-
function ze(
|
|
757
|
+
function ze(n) {
|
|
758
758
|
const a = typeof document < "u" && document.documentElement.dir === "rtl";
|
|
759
759
|
return {
|
|
760
760
|
"top-start": a ? "top-right" : "top-left",
|
|
@@ -763,13 +763,13 @@ function ze(o) {
|
|
|
763
763
|
"bottom-start": a ? "bottom-right" : "bottom-left",
|
|
764
764
|
"bottom-center": "bottom-center",
|
|
765
765
|
"bottom-end": a ? "bottom-left" : "bottom-right"
|
|
766
|
-
}[
|
|
766
|
+
}[n];
|
|
767
767
|
}
|
|
768
768
|
function Oe({
|
|
769
|
-
position:
|
|
769
|
+
position: n = "bottom-end",
|
|
770
770
|
offset: a = "var(--spacing-lg)",
|
|
771
771
|
gap: e = 8,
|
|
772
|
-
visibleToasts:
|
|
772
|
+
visibleToasts: o = 3,
|
|
773
773
|
className: w
|
|
774
774
|
}) {
|
|
775
775
|
const { t: d } = te();
|
|
@@ -789,9 +789,9 @@ function Oe({
|
|
|
789
789
|
Me,
|
|
790
790
|
{
|
|
791
791
|
dir: k,
|
|
792
|
-
position: ze(
|
|
792
|
+
position: ze(n),
|
|
793
793
|
richColors: !1,
|
|
794
|
-
visibleToasts:
|
|
794
|
+
visibleToasts: o,
|
|
795
795
|
gap: e,
|
|
796
796
|
offset: a,
|
|
797
797
|
className: w,
|
|
@@ -801,8 +801,8 @@ function Oe({
|
|
|
801
801
|
toast: [
|
|
802
802
|
"flex items-center",
|
|
803
803
|
"bg-[var(--popover)] text-[var(--popover-foreground)]",
|
|
804
|
-
"border border-[color:var(--border)]",
|
|
805
804
|
"shadow-[var(--shadow-lg)]",
|
|
805
|
+
"forced-colors:border forced-colors:border-[CanvasText]",
|
|
806
806
|
"rounded-[var(--radius-md)]",
|
|
807
807
|
"ps-[var(--spacing-md)] pe-[var(--spacing-md)] py-[var(--spacing-sm)]",
|
|
808
808
|
"[max-inline-size:360px] max-sm:[max-inline-size:88dvw]",
|
|
@@ -819,12 +819,12 @@ function Oe({
|
|
|
819
819
|
) : null;
|
|
820
820
|
}
|
|
821
821
|
Oe.displayName = "Toaster";
|
|
822
|
-
function He(
|
|
823
|
-
return /* @__PURE__ */ zt("div", { className: "flex w-full items-center gap-[var(--spacing-sm)]", children: [
|
|
824
|
-
Ae[
|
|
825
|
-
/* @__PURE__ */ zt("div", { className: "flex-1 min-w-0 flex flex-col gap-[var(--spacing-xs)]", children: [
|
|
826
|
-
/* @__PURE__ */ P("span", { dir: "auto", className: "type-label leading-snug break-words", children: a }),
|
|
827
|
-
|
|
822
|
+
function He(n, a, e, o) {
|
|
823
|
+
return /* @__PURE__ */ zt("div", { className: "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
824
|
+
Ae[n],
|
|
825
|
+
/* @__PURE__ */ zt("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
826
|
+
/* @__PURE__ */ P("span", { dir: "auto", className: "type-label ds:leading-snug ds:break-words", children: a }),
|
|
827
|
+
o && /* @__PURE__ */ P("span", { dir: "auto", className: "type-body-sm ds:text-[var(--muted-foreground)] ds:break-words", children: o })
|
|
828
828
|
] }),
|
|
829
829
|
/* @__PURE__ */ P(
|
|
830
830
|
ee,
|
|
@@ -834,22 +834,22 @@ function He(o, a, e, s) {
|
|
|
834
834
|
size: "sm",
|
|
835
835
|
"aria-label": Lt,
|
|
836
836
|
onClick: () => tt.dismiss(e),
|
|
837
|
-
className: "shrink-0"
|
|
837
|
+
className: "ds:shrink-0"
|
|
838
838
|
}
|
|
839
839
|
)
|
|
840
840
|
] });
|
|
841
841
|
}
|
|
842
|
-
function ht(
|
|
843
|
-
const
|
|
842
|
+
function ht(n, a, e) {
|
|
843
|
+
const o = n === "error" ? 1 / 0 : 4e3, w = `${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, d = He(n, a, w, e == null ? void 0 : e.description), c = {
|
|
844
844
|
id: w,
|
|
845
845
|
icon: null,
|
|
846
|
-
duration: (e == null ? void 0 : e.duration) ??
|
|
846
|
+
duration: (e == null ? void 0 : e.duration) ?? o,
|
|
847
847
|
action: e != null && e.action ? { label: e.action.label, onClick: e.action.onClick } : void 0,
|
|
848
848
|
cancel: e != null && e.cancel ? { label: e.cancel.label, onClick: e.cancel.onClick } : void 0,
|
|
849
849
|
onDismiss: e == null ? void 0 : e.onDismiss,
|
|
850
850
|
onAutoClose: e == null ? void 0 : e.onAutoClose
|
|
851
851
|
};
|
|
852
|
-
switch (
|
|
852
|
+
switch (n) {
|
|
853
853
|
case "error":
|
|
854
854
|
return tt.error(d, c);
|
|
855
855
|
case "success":
|
|
@@ -862,17 +862,17 @@ function ht(o, a, e) {
|
|
|
862
862
|
return tt(d, c);
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function qe(
|
|
866
|
-
return ht("info",
|
|
865
|
+
function qe(n, a) {
|
|
866
|
+
return ht("info", n, a);
|
|
867
867
|
}
|
|
868
|
-
function Ge(
|
|
869
|
-
return ht("success",
|
|
868
|
+
function Ge(n, a) {
|
|
869
|
+
return ht("success", n, a);
|
|
870
870
|
}
|
|
871
|
-
function Qe(
|
|
872
|
-
return ht("warning",
|
|
871
|
+
function Qe(n, a) {
|
|
872
|
+
return ht("warning", n, a);
|
|
873
873
|
}
|
|
874
|
-
function Je(
|
|
875
|
-
return ht("error",
|
|
874
|
+
function Je(n, a) {
|
|
875
|
+
return ht("error", n, a);
|
|
876
876
|
}
|
|
877
877
|
export {
|
|
878
878
|
Oe as T,
|
|
@@ -881,4 +881,4 @@ export {
|
|
|
881
881
|
Qe as c,
|
|
882
882
|
Je as t
|
|
883
883
|
};
|
|
884
|
-
//# sourceMappingURL=toast-
|
|
884
|
+
//# sourceMappingURL=toast-DllSITLf.js.map
|