@dynect/base 0.1.0 → 0.3.0
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/package.json +1 -1
- package/src/runtime/assets/svg/app/asset.svg +8 -0
- package/src/runtime/assets/svg/app/crm.svg +8 -0
- package/src/runtime/assets/svg/app/dark/asset.svg +6 -0
- package/src/runtime/assets/svg/app/dark/crm.svg +6 -0
- package/src/runtime/assets/svg/app/dark/erp.svg +5 -0
- package/src/runtime/assets/svg/app/dark/hrms.svg +8 -0
- package/src/runtime/assets/svg/app/dark/investment.svg +10 -0
- package/src/runtime/assets/svg/app/dark/pos.svg +5 -0
- package/src/runtime/assets/svg/app/dark/project.svg +8 -0
- package/src/runtime/assets/svg/app/dark/retail.svg +9 -0
- package/src/runtime/assets/svg/app/erp.svg +5 -0
- package/src/runtime/assets/svg/app/hrms.svg +10 -0
- package/src/runtime/assets/svg/app/investment.svg +12 -0
- package/src/runtime/assets/svg/app/outline/asset.svg +5 -0
- package/src/runtime/assets/svg/app/outline/crm.svg +6 -0
- package/src/runtime/assets/svg/app/outline/erp.svg +5 -0
- package/src/runtime/assets/svg/app/outline/hrms.svg +7 -0
- package/src/runtime/assets/svg/app/outline/investment.svg +9 -0
- package/src/runtime/assets/svg/app/outline/pos.svg +5 -0
- package/src/runtime/assets/svg/app/outline/project.svg +8 -0
- package/src/runtime/assets/svg/app/outline/retail.svg +9 -0
- package/src/runtime/assets/svg/app/pos.svg +7 -0
- package/src/runtime/assets/svg/app/project.svg +10 -0
- package/src/runtime/assets/svg/app/retail.svg +11 -0
- package/src/runtime/assets/svg/flags/ad.svg +150 -0
- package/src/runtime/assets/svg/flags/ae.svg +6 -0
- package/src/runtime/assets/svg/flags/af.svg +81 -0
- package/src/runtime/assets/svg/flags/ag.svg +14 -0
- package/src/runtime/assets/svg/flags/ai.svg +29 -0
- package/src/runtime/assets/svg/flags/al.svg +5 -0
- package/src/runtime/assets/svg/flags/am.svg +5 -0
- package/src/runtime/assets/svg/flags/ao.svg +13 -0
- package/src/runtime/assets/svg/flags/aq.svg +5 -0
- package/src/runtime/assets/svg/flags/ar.svg +32 -0
- package/src/runtime/assets/svg/flags/arab.svg +109 -0
- package/src/runtime/assets/svg/flags/as.svg +72 -0
- package/src/runtime/assets/svg/flags/asean.svg +13 -0
- package/src/runtime/assets/svg/flags/at.svg +4 -0
- package/src/runtime/assets/svg/flags/au.svg +8 -0
- package/src/runtime/assets/svg/flags/aw.svg +186 -0
- package/src/runtime/assets/svg/flags/ax.svg +18 -0
- package/src/runtime/assets/svg/flags/az.svg +8 -0
- package/src/runtime/assets/svg/flags/ba.svg +12 -0
- package/src/runtime/assets/svg/flags/bb.svg +6 -0
- package/src/runtime/assets/svg/flags/bd.svg +4 -0
- package/src/runtime/assets/svg/flags/be.svg +7 -0
- package/src/runtime/assets/svg/flags/bf.svg +7 -0
- package/src/runtime/assets/svg/flags/bg.svg +5 -0
- package/src/runtime/assets/svg/flags/bh.svg +4 -0
- package/src/runtime/assets/svg/flags/bi.svg +15 -0
- package/src/runtime/assets/svg/flags/bj.svg +14 -0
- package/src/runtime/assets/svg/flags/bl.svg +5 -0
- package/src/runtime/assets/svg/flags/bm.svg +97 -0
- package/src/runtime/assets/svg/flags/bn.svg +36 -0
- package/src/runtime/assets/svg/flags/bo.svg +673 -0
- package/src/runtime/assets/svg/flags/bq.svg +5 -0
- package/src/runtime/assets/svg/flags/br.svg +45 -0
- package/src/runtime/assets/svg/flags/bs.svg +13 -0
- package/src/runtime/assets/svg/flags/bt.svg +89 -0
- package/src/runtime/assets/svg/flags/bv.svg +13 -0
- package/src/runtime/assets/svg/flags/bw.svg +7 -0
- package/src/runtime/assets/svg/flags/by.svg +18 -0
- package/src/runtime/assets/svg/flags/bz.svg +145 -0
- package/src/runtime/assets/svg/flags/ca.svg +4 -0
- package/src/runtime/assets/svg/flags/cc.svg +19 -0
- package/src/runtime/assets/svg/flags/cd.svg +5 -0
- package/src/runtime/assets/svg/flags/cefta.svg +13 -0
- package/src/runtime/assets/svg/flags/cf.svg +15 -0
- package/src/runtime/assets/svg/flags/cg.svg +12 -0
- package/src/runtime/assets/svg/flags/ch.svg +9 -0
- package/src/runtime/assets/svg/flags/ci.svg +7 -0
- package/src/runtime/assets/svg/flags/ck.svg +9 -0
- package/src/runtime/assets/svg/flags/cl.svg +13 -0
- package/src/runtime/assets/svg/flags/cm.svg +15 -0
- package/src/runtime/assets/svg/flags/cn.svg +11 -0
- package/src/runtime/assets/svg/flags/co.svg +7 -0
- package/src/runtime/assets/svg/flags/cp.svg +7 -0
- package/src/runtime/assets/svg/flags/cr.svg +7 -0
- package/src/runtime/assets/svg/flags/cu.svg +13 -0
- package/src/runtime/assets/svg/flags/cv.svg +13 -0
- package/src/runtime/assets/svg/flags/cw.svg +14 -0
- package/src/runtime/assets/svg/flags/cx.svg +15 -0
- package/src/runtime/assets/svg/flags/cy.svg +6 -0
- package/src/runtime/assets/svg/flags/cz.svg +5 -0
- package/src/runtime/assets/svg/flags/de.svg +5 -0
- package/src/runtime/assets/svg/flags/dg.svg +130 -0
- package/src/runtime/assets/svg/flags/dj.svg +13 -0
- package/src/runtime/assets/svg/flags/dk.svg +5 -0
- package/src/runtime/assets/svg/flags/dm.svg +152 -0
- package/src/runtime/assets/svg/flags/do.svg +121 -0
- package/src/runtime/assets/svg/flags/dz.svg +5 -0
- package/src/runtime/assets/svg/flags/eac.svg +48 -0
- package/src/runtime/assets/svg/flags/ec.svg +138 -0
- package/src/runtime/assets/svg/flags/ee.svg +5 -0
- package/src/runtime/assets/svg/flags/eg.svg +38 -0
- package/src/runtime/assets/svg/flags/eh.svg +16 -0
- package/src/runtime/assets/svg/flags/er.svg +8 -0
- package/src/runtime/assets/svg/flags/es-ct.svg +4 -0
- package/src/runtime/assets/svg/flags/es-ga.svg +187 -0
- package/src/runtime/assets/svg/flags/es-pv.svg +5 -0
- package/src/runtime/assets/svg/flags/es.svg +544 -0
- package/src/runtime/assets/svg/flags/et.svg +14 -0
- package/src/runtime/assets/svg/flags/eu.svg +28 -0
- package/src/runtime/assets/svg/flags/fi.svg +5 -0
- package/src/runtime/assets/svg/flags/fj.svg +120 -0
- package/src/runtime/assets/svg/flags/fk.svg +90 -0
- package/src/runtime/assets/svg/flags/fm.svg +11 -0
- package/src/runtime/assets/svg/flags/fo.svg +12 -0
- package/src/runtime/assets/svg/flags/fr.svg +5 -0
- package/src/runtime/assets/svg/flags/ga.svg +7 -0
- package/src/runtime/assets/svg/flags/gb-eng.svg +5 -0
- package/src/runtime/assets/svg/flags/gb-nir.svg +132 -0
- package/src/runtime/assets/svg/flags/gb-sct.svg +4 -0
- package/src/runtime/assets/svg/flags/gb-wls.svg +9 -0
- package/src/runtime/assets/svg/flags/gb.svg +7 -0
- package/src/runtime/assets/svg/flags/gd.svg +27 -0
- package/src/runtime/assets/svg/flags/ge.svg +6 -0
- package/src/runtime/assets/svg/flags/gf.svg +5 -0
- package/src/runtime/assets/svg/flags/gg.svg +9 -0
- package/src/runtime/assets/svg/flags/gh.svg +6 -0
- package/src/runtime/assets/svg/flags/gi.svg +32 -0
- package/src/runtime/assets/svg/flags/gl.svg +4 -0
- package/src/runtime/assets/svg/flags/gm.svg +14 -0
- package/src/runtime/assets/svg/flags/gn.svg +7 -0
- package/src/runtime/assets/svg/flags/gp.svg +5 -0
- package/src/runtime/assets/svg/flags/gq.svg +23 -0
- package/src/runtime/assets/svg/flags/gr.svg +16 -0
- package/src/runtime/assets/svg/flags/gs.svg +133 -0
- package/src/runtime/assets/svg/flags/gt.svg +204 -0
- package/src/runtime/assets/svg/flags/gu.svg +19 -0
- package/src/runtime/assets/svg/flags/gw.svg +13 -0
- package/src/runtime/assets/svg/flags/gy.svg +9 -0
- package/src/runtime/assets/svg/flags/hk.svg +8 -0
- package/src/runtime/assets/svg/flags/hm.svg +8 -0
- package/src/runtime/assets/svg/flags/hn.svg +18 -0
- package/src/runtime/assets/svg/flags/hr.svg +58 -0
- package/src/runtime/assets/svg/flags/ht.svg +116 -0
- package/src/runtime/assets/svg/flags/hu.svg +7 -0
- package/src/runtime/assets/svg/flags/ic.svg +7 -0
- package/src/runtime/assets/svg/flags/id.svg +4 -0
- package/src/runtime/assets/svg/flags/ie.svg +7 -0
- package/src/runtime/assets/svg/flags/il.svg +14 -0
- package/src/runtime/assets/svg/flags/im.svg +36 -0
- package/src/runtime/assets/svg/flags/in.svg +25 -0
- package/src/runtime/assets/svg/flags/io.svg +130 -0
- package/src/runtime/assets/svg/flags/iq.svg +10 -0
- package/src/runtime/assets/svg/flags/ir.svg +219 -0
- package/src/runtime/assets/svg/flags/is.svg +12 -0
- package/src/runtime/assets/svg/flags/it.svg +7 -0
- package/src/runtime/assets/svg/flags/je.svg +62 -0
- package/src/runtime/assets/svg/flags/jm.svg +8 -0
- package/src/runtime/assets/svg/flags/jo.svg +16 -0
- package/src/runtime/assets/svg/flags/jp.svg +11 -0
- package/src/runtime/assets/svg/flags/ke.svg +23 -0
- package/src/runtime/assets/svg/flags/kg.svg +4 -0
- package/src/runtime/assets/svg/flags/kh.svg +61 -0
- package/src/runtime/assets/svg/flags/ki.svg +36 -0
- package/src/runtime/assets/svg/flags/km.svg +16 -0
- package/src/runtime/assets/svg/flags/kn.svg +14 -0
- package/src/runtime/assets/svg/flags/kp.svg +15 -0
- package/src/runtime/assets/svg/flags/kr.svg +24 -0
- package/src/runtime/assets/svg/flags/kw.svg +13 -0
- package/src/runtime/assets/svg/flags/ky.svg +103 -0
- package/src/runtime/assets/svg/flags/kz.svg +36 -0
- package/src/runtime/assets/svg/flags/la.svg +12 -0
- package/src/runtime/assets/svg/flags/lb.svg +15 -0
- package/src/runtime/assets/svg/flags/lc.svg +8 -0
- package/src/runtime/assets/svg/flags/li.svg +43 -0
- package/src/runtime/assets/svg/flags/lk.svg +22 -0
- package/src/runtime/assets/svg/flags/lr.svg +14 -0
- package/src/runtime/assets/svg/flags/ls.svg +8 -0
- package/src/runtime/assets/svg/flags/lt.svg +7 -0
- package/src/runtime/assets/svg/flags/lu.svg +5 -0
- package/src/runtime/assets/svg/flags/lv.svg +6 -0
- package/src/runtime/assets/svg/flags/ly.svg +13 -0
- package/src/runtime/assets/svg/flags/ma.svg +4 -0
- package/src/runtime/assets/svg/flags/mc.svg +6 -0
- package/src/runtime/assets/svg/flags/md.svg +70 -0
- package/src/runtime/assets/svg/flags/me.svg +116 -0
- package/src/runtime/assets/svg/flags/mf.svg +5 -0
- package/src/runtime/assets/svg/flags/mg.svg +7 -0
- package/src/runtime/assets/svg/flags/mh.svg +7 -0
- package/src/runtime/assets/svg/flags/mk.svg +5 -0
- package/src/runtime/assets/svg/flags/ml.svg +7 -0
- package/src/runtime/assets/svg/flags/mm.svg +12 -0
- package/src/runtime/assets/svg/flags/mn.svg +14 -0
- package/src/runtime/assets/svg/flags/mo.svg +9 -0
- package/src/runtime/assets/svg/flags/mp.svg +86 -0
- package/src/runtime/assets/svg/flags/mq.svg +5 -0
- package/src/runtime/assets/svg/flags/mr.svg +6 -0
- package/src/runtime/assets/svg/flags/ms.svg +29 -0
- package/src/runtime/assets/svg/flags/mt.svg +58 -0
- package/src/runtime/assets/svg/flags/mu.svg +8 -0
- package/src/runtime/assets/svg/flags/mv.svg +6 -0
- package/src/runtime/assets/svg/flags/mw.svg +10 -0
- package/src/runtime/assets/svg/flags/mx.svg +382 -0
- package/src/runtime/assets/svg/flags/my.svg +26 -0
- package/src/runtime/assets/svg/flags/mz.svg +21 -0
- package/src/runtime/assets/svg/flags/na.svg +16 -0
- package/src/runtime/assets/svg/flags/nc.svg +13 -0
- package/src/runtime/assets/svg/flags/ne.svg +6 -0
- package/src/runtime/assets/svg/flags/nf.svg +9 -0
- package/src/runtime/assets/svg/flags/ng.svg +6 -0
- package/src/runtime/assets/svg/flags/ni.svg +129 -0
- package/src/runtime/assets/svg/flags/nl.svg +5 -0
- package/src/runtime/assets/svg/flags/no.svg +7 -0
- package/src/runtime/assets/svg/flags/np.svg +13 -0
- package/src/runtime/assets/svg/flags/nr.svg +12 -0
- package/src/runtime/assets/svg/flags/nu.svg +10 -0
- package/src/runtime/assets/svg/flags/nz.svg +36 -0
- package/src/runtime/assets/svg/flags/om.svg +115 -0
- package/src/runtime/assets/svg/flags/pa.svg +14 -0
- package/src/runtime/assets/svg/flags/pc.svg +33 -0
- package/src/runtime/assets/svg/flags/pe.svg +4 -0
- package/src/runtime/assets/svg/flags/pf.svg +19 -0
- package/src/runtime/assets/svg/flags/pg.svg +9 -0
- package/src/runtime/assets/svg/flags/ph.svg +6 -0
- package/src/runtime/assets/svg/flags/pk.svg +15 -0
- package/src/runtime/assets/svg/flags/pl.svg +6 -0
- package/src/runtime/assets/svg/flags/pm.svg +5 -0
- package/src/runtime/assets/svg/flags/pn.svg +53 -0
- package/src/runtime/assets/svg/flags/pr.svg +13 -0
- package/src/runtime/assets/svg/flags/ps.svg +15 -0
- package/src/runtime/assets/svg/flags/pt.svg +57 -0
- package/src/runtime/assets/svg/flags/pw.svg +11 -0
- package/src/runtime/assets/svg/flags/py.svg +157 -0
- package/src/runtime/assets/svg/flags/qa.svg +4 -0
- package/src/runtime/assets/svg/flags/re.svg +5 -0
- package/src/runtime/assets/svg/flags/ro.svg +7 -0
- package/src/runtime/assets/svg/flags/rs.svg +292 -0
- package/src/runtime/assets/svg/flags/ru.svg +5 -0
- package/src/runtime/assets/svg/flags/rw.svg +13 -0
- package/src/runtime/assets/svg/flags/sa.svg +25 -0
- package/src/runtime/assets/svg/flags/sb.svg +13 -0
- package/src/runtime/assets/svg/flags/sc.svg +7 -0
- package/src/runtime/assets/svg/flags/sd.svg +13 -0
- package/src/runtime/assets/svg/flags/se.svg +4 -0
- package/src/runtime/assets/svg/flags/sg.svg +13 -0
- package/src/runtime/assets/svg/flags/sh-ac.svg +689 -0
- package/src/runtime/assets/svg/flags/sh-hl.svg +164 -0
- package/src/runtime/assets/svg/flags/sh-ta.svg +76 -0
- package/src/runtime/assets/svg/flags/sh.svg +7 -0
- package/src/runtime/assets/svg/flags/si.svg +18 -0
- package/src/runtime/assets/svg/flags/sj.svg +7 -0
- package/src/runtime/assets/svg/flags/sk.svg +9 -0
- package/src/runtime/assets/svg/flags/sl.svg +7 -0
- package/src/runtime/assets/svg/flags/sm.svg +75 -0
- package/src/runtime/assets/svg/flags/sn.svg +8 -0
- package/src/runtime/assets/svg/flags/so.svg +11 -0
- package/src/runtime/assets/svg/flags/sr.svg +6 -0
- package/src/runtime/assets/svg/flags/ss.svg +8 -0
- package/src/runtime/assets/svg/flags/st.svg +16 -0
- package/src/runtime/assets/svg/flags/state/ft.svg +5503 -0
- package/src/runtime/assets/svg/flags/state/johor.svg +59 -0
- package/src/runtime/assets/svg/flags/state/kedah.svg +246 -0
- package/src/runtime/assets/svg/flags/state/kelantan.svg +84 -0
- package/src/runtime/assets/svg/flags/state/kuala_lumpur.svg +9 -0
- package/src/runtime/assets/svg/flags/state/labuan.svg +10 -0
- package/src/runtime/assets/svg/flags/state/melaka.svg +56 -0
- package/src/runtime/assets/svg/flags/state/negeri_sembilan.svg +5 -0
- package/src/runtime/assets/svg/flags/state/pahang.svg +5 -0
- package/src/runtime/assets/svg/flags/state/penang.svg +514 -0
- package/src/runtime/assets/svg/flags/state/perak.svg +5 -0
- package/src/runtime/assets/svg/flags/state/perlis.svg +5 -0
- package/src/runtime/assets/svg/flags/state/putrajaya.svg +2631 -0
- package/src/runtime/assets/svg/flags/state/sabah.svg +8 -0
- package/src/runtime/assets/svg/flags/state/sarawak.svg +18 -0
- package/src/runtime/assets/svg/flags/state/selangor.svg +20 -0
- package/src/runtime/assets/svg/flags/state/terengganu.svg +6 -0
- package/src/runtime/assets/svg/flags/sv.svg +593 -0
- package/src/runtime/assets/svg/flags/sx.svg +56 -0
- package/src/runtime/assets/svg/flags/sy.svg +6 -0
- package/src/runtime/assets/svg/flags/sz.svg +34 -0
- package/src/runtime/assets/svg/flags/tc.svg +50 -0
- package/src/runtime/assets/svg/flags/td.svg +7 -0
- package/src/runtime/assets/svg/flags/tf.svg +15 -0
- package/src/runtime/assets/svg/flags/tg.svg +14 -0
- package/src/runtime/assets/svg/flags/th.svg +7 -0
- package/src/runtime/assets/svg/flags/tj.svg +22 -0
- package/src/runtime/assets/svg/flags/tk.svg +5 -0
- package/src/runtime/assets/svg/flags/tl.svg +13 -0
- package/src/runtime/assets/svg/flags/tm.svg +204 -0
- package/src/runtime/assets/svg/flags/tn.svg +4 -0
- package/src/runtime/assets/svg/flags/to.svg +10 -0
- package/src/runtime/assets/svg/flags/tr.svg +8 -0
- package/src/runtime/assets/svg/flags/tt.svg +5 -0
- package/src/runtime/assets/svg/flags/tv.svg +9 -0
- package/src/runtime/assets/svg/flags/tw.svg +34 -0
- package/src/runtime/assets/svg/flags/tz.svg +13 -0
- package/src/runtime/assets/svg/flags/ua.svg +6 -0
- package/src/runtime/assets/svg/flags/ug.svg +30 -0
- package/src/runtime/assets/svg/flags/um.svg +9 -0
- package/src/runtime/assets/svg/flags/un.svg +16 -0
- package/src/runtime/assets/svg/flags/us.svg +9 -0
- package/src/runtime/assets/svg/flags/uy.svg +28 -0
- package/src/runtime/assets/svg/flags/uz.svg +30 -0
- package/src/runtime/assets/svg/flags/va.svg +190 -0
- package/src/runtime/assets/svg/flags/vc.svg +8 -0
- package/src/runtime/assets/svg/flags/ve.svg +26 -0
- package/src/runtime/assets/svg/flags/vg.svg +59 -0
- package/src/runtime/assets/svg/flags/vi.svg +28 -0
- package/src/runtime/assets/svg/flags/vn.svg +11 -0
- package/src/runtime/assets/svg/flags/vu.svg +21 -0
- package/src/runtime/assets/svg/flags/wf.svg +5 -0
- package/src/runtime/assets/svg/flags/ws.svg +7 -0
- package/src/runtime/assets/svg/flags/xk.svg +5 -0
- package/src/runtime/assets/svg/flags/xx.svg +4 -0
- package/src/runtime/assets/svg/flags/ye.svg +7 -0
- package/src/runtime/assets/svg/flags/yt.svg +5 -0
- package/src/runtime/assets/svg/flags/za.svg +17 -0
- package/src/runtime/assets/svg/flags/zm.svg +27 -0
- package/src/runtime/assets/svg/flags/zw.svg +21 -0
- package/src/runtime/assets/svg/icon/activity.svg +4 -0
- package/src/runtime/assets/svg/icon/arrow-left.svg +3 -0
- package/src/runtime/assets/svg/icon/arrow-right.svg +3 -0
- package/src/runtime/assets/svg/icon/building-07.svg +4 -0
- package/src/runtime/assets/svg/icon/car-01.svg +4 -0
- package/src/runtime/assets/svg/icon/cash.svg +3 -0
- package/src/runtime/assets/svg/icon/clipboard-check.svg +3 -0
- package/src/runtime/assets/svg/icon/cog.svg +3 -0
- package/src/runtime/assets/svg/icon/colapse-sidebar.svg +3 -0
- package/src/runtime/assets/svg/icon/file-chart-bar.svg +3 -0
- package/src/runtime/assets/svg/icon/frame.svg +3 -0
- package/src/runtime/assets/svg/icon/gift-09.svg +7 -0
- package/src/runtime/assets/svg/icon/grid.svg +227 -0
- package/src/runtime/assets/svg/icon/layers.svg +3 -0
- package/src/runtime/assets/svg/icon/medical-cross.svg +3 -0
- package/src/runtime/assets/svg/icon/minimise-sidebar.svg +3 -0
- package/src/runtime/assets/svg/icon/rocket.svg +3 -0
- package/src/runtime/assets/svg/icon/speedometer-04.svg +5 -0
- package/src/runtime/assets/svg/icon/user-headset.svg +3 -0
- package/src/runtime/assets/svg/icon/users-group.svg +3 -0
- package/src/runtime/assets/svg/icon/users.svg +3 -0
- package/src/runtime/assets/svg/images/document-folders.svg +86 -0
- package/src/runtime/assets/svg/images/error-404.svg +56 -0
- package/src/runtime/assets/svg/images/error-500.svg +243 -0
- package/src/runtime/assets/svg/images/login-right-content.svg +272 -0
- package/src/runtime/assets/svg/images/man-question-mark.svg +130 -0
- package/src/runtime/assets/svg/logo/logomark.svg +4 -0
- package/src/runtime/assets/svg/logo/logotext.svg +10 -0
- package/src/runtime/components/base/event-calendar/AgendaView.vue +92 -0
- package/src/runtime/components/base/event-calendar/ColorManager.vue +149 -0
- package/src/runtime/components/base/event-calendar/DayEventsOverflowPopup.vue +41 -0
- package/src/runtime/components/base/event-calendar/DayView.vue +254 -0
- package/src/runtime/components/base/event-calendar/DragDropVisualFeedback.vue +97 -0
- package/src/runtime/components/base/event-calendar/EventCalendar.md +203 -0
- package/src/runtime/components/base/event-calendar/EventCalendar.vue +414 -0
- package/src/runtime/components/base/event-calendar/EventModal.vue +573 -0
- package/src/runtime/components/base/event-calendar/EventResizeHandle.vue +284 -0
- package/src/runtime/components/base/event-calendar/ExternalCalendarSettings.vue +138 -0
- package/src/runtime/components/base/event-calendar/LocationDisplay.vue +62 -0
- package/src/runtime/components/base/event-calendar/MonthView.vue +272 -0
- package/src/runtime/components/base/event-calendar/WeekView.vue +329 -0
- package/src/runtime/components/base/event-calendar/composables/useAdvancedValidation.ts +557 -0
- package/src/runtime/components/base/event-calendar/composables/useCalendarUtils.ts +70 -0
- package/src/runtime/components/base/event-calendar/composables/useColorManager.ts +244 -0
- package/src/runtime/components/base/event-calendar/composables/useCompatibility.ts +318 -0
- package/src/runtime/components/base/event-calendar/composables/useDragAndDrop.ts +481 -0
- package/src/runtime/components/base/event-calendar/composables/useEventFiltering.ts +116 -0
- package/src/runtime/components/base/event-calendar/composables/useEventStatus.ts +108 -0
- package/src/runtime/components/base/event-calendar/composables/useEventStore.ts +325 -0
- package/src/runtime/components/base/event-calendar/composables/useExternalCalendar.ts +340 -0
- package/src/runtime/components/base/event-calendar/composables/useKeyboardNavigation.ts +95 -0
- package/src/runtime/components/base/event-calendar/composables/useMonitoring.ts +433 -0
- package/src/runtime/components/base/event-calendar/composables/useMultiDayLayout.ts +131 -0
- package/src/runtime/components/base/event-calendar/composables/usePerformanceCache.ts +134 -0
- package/src/runtime/components/base/event-calendar/composables/useRecurringEvents.ts +291 -0
- package/src/runtime/components/base/event-calendar/composables/useResilientErrorHandling.ts +480 -0
- package/src/runtime/components/base/event-calendar/composables/useSecurity.ts +425 -0
- package/src/runtime/components/base/event-calendar/composables/useTimezone.ts +256 -0
- package/src/runtime/components/base/event-calendar/constants.ts +18 -0
- package/src/runtime/components/base/event-calendar/eventModal.schema.ts +32 -0
- package/src/runtime/components/base/event-calendar/types.ts +96 -0
- package/src/runtime/components/base/org-chart/index.vue +359 -0
- package/src/runtime/components/base/org-chart/main.ts +2372 -0
- package/src/runtime/components/base/org-chart/svg-icons.ts +58 -0
- package/src/runtime/components/base/org-chart/types.ts +492 -0
- package/src/runtime/components/base/signature/index.vue +218 -0
- package/src/runtime/components/base/toast/Toast.vue +396 -0
- package/src/runtime/components/base/toast/Toaster.vue +1241 -0
- package/src/runtime/components/base/toast/assets/CloseIcon.vue +3 -0
- package/src/runtime/components/base/toast/assets/ErrorIcon.vue +7 -0
- package/src/runtime/components/base/toast/assets/IconWrapper.vue +13 -0
- package/src/runtime/components/base/toast/assets/InfoIcon.vue +7 -0
- package/src/runtime/components/base/toast/assets/Loader.vue +18 -0
- package/src/runtime/components/base/toast/assets/SuccessIcon.vue +7 -0
- package/src/runtime/components/base/toast/assets/WarningIcon.vue +7 -0
- package/src/runtime/components/base/toast/constant.ts +30 -0
- package/src/runtime/components/base/toast/hooks.ts +114 -0
- package/src/runtime/components/base/toast/state.ts +317 -0
- package/src/runtime/components/base/toast/types.ts +201 -0
- package/src/runtime/components/chart/Bar.vue +175 -0
- package/src/runtime/components/chart/Line.vue +149 -0
- package/src/runtime/components/chart/Pie.vue +115 -0
- package/src/runtime/components/chart/Radar.vue +167 -0
- package/src/runtime/components/dynect/Accordion.vue +152 -0
- package/src/runtime/components/dynect/Alert.vue +194 -0
- package/src/runtime/components/dynect/Autocomplete.vue +404 -0
- package/src/runtime/components/dynect/Avatar.vue +132 -0
- package/src/runtime/components/dynect/AvatarGroup.vue +56 -0
- package/src/runtime/components/dynect/AvatarLabel.vue +82 -0
- package/src/runtime/components/dynect/Badge.vue +101 -0
- package/src/runtime/components/dynect/Button.vue +36 -0
- package/src/runtime/components/dynect/Checkbox.vue +80 -0
- package/src/runtime/components/dynect/DatePicker.vue +180 -0
- package/src/runtime/components/dynect/DateRange.vue +217 -0
- package/src/runtime/components/dynect/Dropzone.vue +355 -0
- package/src/runtime/components/dynect/EventCalendar.vue +66 -0
- package/src/runtime/components/dynect/Filters.vue +162 -0
- package/src/runtime/components/dynect/FormDescription.vue +20 -0
- package/src/runtime/components/dynect/FormError.vue +20 -0
- package/src/runtime/components/dynect/FormField.vue +45 -0
- package/src/runtime/components/dynect/FormLabel.vue +40 -0
- package/src/runtime/components/dynect/Gantt.vue +231 -0
- package/src/runtime/components/dynect/Input.vue +234 -0
- package/src/runtime/components/dynect/Kanban.vue +128 -0
- package/src/runtime/components/dynect/Modal.vue +118 -0
- package/src/runtime/components/dynect/OtpInput.vue +148 -0
- package/src/runtime/components/dynect/Pagination.vue +57 -0
- package/src/runtime/components/dynect/PermissionGuard.vue +50 -0
- package/src/runtime/components/dynect/Progress.vue +102 -0
- package/src/runtime/components/dynect/Radio.vue +90 -0
- package/src/runtime/components/dynect/Select.vue +190 -0
- package/src/runtime/components/dynect/SelectMultiple.vue +259 -0
- package/src/runtime/components/dynect/Sheet.vue +80 -0
- package/src/runtime/components/dynect/Signature.vue +135 -0
- package/src/runtime/components/dynect/SwitchColor.vue +14 -0
- package/src/runtime/components/dynect/SwitchLanguage.vue +39 -0
- package/src/runtime/components/dynect/Table.vue +488 -0
- package/src/runtime/components/dynect/TagsInput.vue +388 -0
- package/src/runtime/components/dynect/Telephone.vue +651 -0
- package/src/runtime/components/dynect/TextEditor.vue +94 -0
- package/src/runtime/components/dynect/Textarea.vue +108 -0
- package/src/runtime/components/dynect/TimePicker.vue +275 -0
- package/src/runtime/components/dynect/Timeline.vue +301 -0
- package/src/runtime/components/dynect/Toggle.vue +100 -0
- package/src/runtime/components/ui/accordion/Accordion.vue +15 -0
- package/src/runtime/components/ui/accordion/AccordionContent.vue +19 -0
- package/src/runtime/components/ui/accordion/AccordionItem.vue +19 -0
- package/src/runtime/components/ui/accordion/AccordionTrigger.vue +32 -0
- package/src/runtime/components/ui/accordion/index.ts +4 -0
- package/src/runtime/components/ui/alert/Alert.vue +17 -0
- package/src/runtime/components/ui/alert/AlertDescription.vue +14 -0
- package/src/runtime/components/ui/alert/AlertTitle.vue +14 -0
- package/src/runtime/components/ui/alert/index.ts +20 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +18 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogContent.vue +36 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +17 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +14 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +14 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +17 -0
- package/src/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
- package/src/runtime/components/ui/alert-dialog/index.ts +9 -0
- package/src/runtime/components/ui/aspect-ratio/AspectRatio.vue +12 -0
- package/src/runtime/components/ui/aspect-ratio/index.ts +1 -0
- package/src/runtime/components/ui/avatar/Avatar.vue +15 -0
- package/src/runtime/components/ui/avatar/AvatarFallback.vue +17 -0
- package/src/runtime/components/ui/avatar/AvatarImage.vue +12 -0
- package/src/runtime/components/ui/avatar/index.ts +3 -0
- package/src/runtime/components/ui/badge/Badge.vue +24 -0
- package/src/runtime/components/ui/badge/index.ts +22 -0
- package/src/runtime/components/ui/breadcrumb/Breadcrumb.vue +13 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +18 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +14 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +16 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbList.vue +14 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +14 -0
- package/src/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +17 -0
- package/src/runtime/components/ui/breadcrumb/index.ts +7 -0
- package/src/runtime/components/ui/button/Button.vue +38 -0
- package/src/runtime/components/ui/button/index.ts +51 -0
- package/src/runtime/components/ui/button-group/ButtonGroup.vue +17 -0
- package/src/runtime/components/ui/button-group/ButtonGroupSeparator.vue +16 -0
- package/src/runtime/components/ui/button-group/ButtonGroupText.vue +22 -0
- package/src/runtime/components/ui/button-group/index.ts +23 -0
- package/src/runtime/components/ui/calendar/Calendar.vue +163 -0
- package/src/runtime/components/ui/calendar/CalendarCell.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarCellTrigger.vue +47 -0
- package/src/runtime/components/ui/calendar/CalendarGrid.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarGridBody.vue +12 -0
- package/src/runtime/components/ui/calendar/CalendarGridHead.vue +13 -0
- package/src/runtime/components/ui/calendar/CalendarGridRow.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarHeadCell.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarHeader.vue +19 -0
- package/src/runtime/components/ui/calendar/CalendarHeading.vue +25 -0
- package/src/runtime/components/ui/calendar/CalendarNextButton.vue +22 -0
- package/src/runtime/components/ui/calendar/CalendarPrevButton.vue +22 -0
- package/src/runtime/components/ui/calendar/index.ts +14 -0
- package/src/runtime/components/ui/card/Card.vue +14 -0
- package/src/runtime/components/ui/card/CardAction.vue +14 -0
- package/src/runtime/components/ui/card/CardContent.vue +14 -0
- package/src/runtime/components/ui/card/CardDescription.vue +14 -0
- package/src/runtime/components/ui/card/CardFooter.vue +14 -0
- package/src/runtime/components/ui/card/CardHeader.vue +14 -0
- package/src/runtime/components/ui/card/CardTitle.vue +14 -0
- package/src/runtime/components/ui/card/index.ts +7 -0
- package/src/runtime/components/ui/carousel/Carousel.vue +46 -0
- package/src/runtime/components/ui/carousel/CarouselContent.vue +21 -0
- package/src/runtime/components/ui/carousel/CarouselItem.vue +15 -0
- package/src/runtime/components/ui/carousel/CarouselNext.vue +32 -0
- package/src/runtime/components/ui/carousel/CarouselPrevious.vue +32 -0
- package/src/runtime/components/ui/carousel/index.ts +8 -0
- package/src/runtime/components/ui/carousel/interface.ts +22 -0
- package/src/runtime/components/ui/carousel/useCarousel.ts +51 -0
- package/src/runtime/components/ui/chart/ChartContainer.vue +61 -0
- package/src/runtime/components/ui/chart/ChartLegendContent.vue +52 -0
- package/src/runtime/components/ui/chart/ChartStyle.vue +37 -0
- package/src/runtime/components/ui/chart/ChartTooltipContent.vue +92 -0
- package/src/runtime/components/ui/chart/index.ts +26 -0
- package/src/runtime/components/ui/chart/utils.ts +45 -0
- package/src/runtime/components/ui/checkbox/Checkbox.vue +34 -0
- package/src/runtime/components/ui/checkbox/index.ts +1 -0
- package/src/runtime/components/ui/collapsible/Collapsible.vue +15 -0
- package/src/runtime/components/ui/collapsible/CollapsibleContent.vue +12 -0
- package/src/runtime/components/ui/collapsible/CollapsibleTrigger.vue +12 -0
- package/src/runtime/components/ui/collapsible/index.ts +3 -0
- package/src/runtime/components/ui/combobox/Combobox.vue +15 -0
- package/src/runtime/components/ui/combobox/ComboboxAnchor.vue +19 -0
- package/src/runtime/components/ui/combobox/ComboboxEmpty.vue +17 -0
- package/src/runtime/components/ui/combobox/ComboboxGroup.vue +25 -0
- package/src/runtime/components/ui/combobox/ComboboxInput.vue +33 -0
- package/src/runtime/components/ui/combobox/ComboboxItem.vue +29 -0
- package/src/runtime/components/ui/combobox/ComboboxItemIndicator.vue +19 -0
- package/src/runtime/components/ui/combobox/ComboboxList.vue +38 -0
- package/src/runtime/components/ui/combobox/ComboboxSeparator.vue +17 -0
- package/src/runtime/components/ui/combobox/ComboboxTrigger.vue +19 -0
- package/src/runtime/components/ui/combobox/ComboboxViewport.vue +19 -0
- package/src/runtime/components/ui/combobox/index.ts +12 -0
- package/src/runtime/components/ui/command/Command.vue +85 -0
- package/src/runtime/components/ui/command/CommandDialog.vue +36 -0
- package/src/runtime/components/ui/command/CommandEmpty.vue +22 -0
- package/src/runtime/components/ui/command/CommandGroup.vue +40 -0
- package/src/runtime/components/ui/command/CommandInput.vue +38 -0
- package/src/runtime/components/ui/command/CommandItem.vue +80 -0
- package/src/runtime/components/ui/command/CommandList.vue +21 -0
- package/src/runtime/components/ui/command/CommandSeparator.vue +17 -0
- package/src/runtime/components/ui/command/CommandShortcut.vue +14 -0
- package/src/runtime/components/ui/command/index.ts +25 -0
- package/src/runtime/components/ui/context-menu/ContextMenu.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +37 -0
- package/src/runtime/components/ui/context-menu/ContextMenuContent.vue +35 -0
- package/src/runtime/components/ui/context-menu/ContextMenuGroup.vue +12 -0
- package/src/runtime/components/ui/context-menu/ContextMenuItem.vue +42 -0
- package/src/runtime/components/ui/context-menu/ContextMenuLabel.vue +17 -0
- package/src/runtime/components/ui/context-menu/ContextMenuPortal.vue +12 -0
- package/src/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +37 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSeparator.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuShortcut.vue +14 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSub.vue +15 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSubContent.vue +29 -0
- package/src/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +31 -0
- package/src/runtime/components/ui/context-menu/ContextMenuTrigger.vue +14 -0
- package/src/runtime/components/ui/context-menu/index.ts +14 -0
- package/src/runtime/components/ui/dialog/Dialog.vue +15 -0
- package/src/runtime/components/ui/dialog/DialogClose.vue +12 -0
- package/src/runtime/components/ui/dialog/DialogContent.vue +49 -0
- package/src/runtime/components/ui/dialog/DialogDescription.vue +19 -0
- package/src/runtime/components/ui/dialog/DialogFooter.vue +25 -0
- package/src/runtime/components/ui/dialog/DialogHeader.vue +14 -0
- package/src/runtime/components/ui/dialog/DialogOverlay.vue +17 -0
- package/src/runtime/components/ui/dialog/DialogScrollContent.vue +46 -0
- package/src/runtime/components/ui/dialog/DialogTitle.vue +19 -0
- package/src/runtime/components/ui/dialog/DialogTrigger.vue +12 -0
- package/src/runtime/components/ui/dialog/index.ts +10 -0
- package/src/runtime/components/ui/drawer/Drawer.vue +19 -0
- package/src/runtime/components/ui/drawer/DrawerClose.vue +12 -0
- package/src/runtime/components/ui/drawer/DrawerContent.vue +40 -0
- package/src/runtime/components/ui/drawer/DrawerDescription.vue +17 -0
- package/src/runtime/components/ui/drawer/DrawerFooter.vue +14 -0
- package/src/runtime/components/ui/drawer/DrawerHeader.vue +14 -0
- package/src/runtime/components/ui/drawer/DrawerOverlay.vue +15 -0
- package/src/runtime/components/ui/drawer/DrawerTitle.vue +17 -0
- package/src/runtime/components/ui/drawer/DrawerTrigger.vue +12 -0
- package/src/runtime/components/ui/drawer/index.ts +9 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenu.vue +15 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +37 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +37 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +41 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +18 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +15 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +38 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +19 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue +15 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +29 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +30 -0
- package/src/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +14 -0
- package/src/runtime/components/ui/dropdown-menu/index.ts +16 -0
- package/src/runtime/components/ui/empty/Empty.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyContent.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyDescription.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyHeader.vue +14 -0
- package/src/runtime/components/ui/empty/EmptyMedia.vue +17 -0
- package/src/runtime/components/ui/empty/EmptyTitle.vue +14 -0
- package/src/runtime/components/ui/empty/index.ts +23 -0
- package/src/runtime/components/ui/field/Field.vue +17 -0
- package/src/runtime/components/ui/field/FieldContent.vue +14 -0
- package/src/runtime/components/ui/field/FieldDescription.vue +17 -0
- package/src/runtime/components/ui/field/FieldError.vue +45 -0
- package/src/runtime/components/ui/field/FieldGroup.vue +14 -0
- package/src/runtime/components/ui/field/FieldLabel.vue +31 -0
- package/src/runtime/components/ui/field/FieldLegend.vue +15 -0
- package/src/runtime/components/ui/field/FieldSeparator.vue +18 -0
- package/src/runtime/components/ui/field/FieldSet.vue +14 -0
- package/src/runtime/components/ui/field/FieldTitle.vue +14 -0
- package/src/runtime/components/ui/field/index.ts +32 -0
- package/src/runtime/components/ui/form/FormControl.vue +12 -0
- package/src/runtime/components/ui/form/FormDescription.vue +17 -0
- package/src/runtime/components/ui/form/FormItem.vue +20 -0
- package/src/runtime/components/ui/form/FormLabel.vue +17 -0
- package/src/runtime/components/ui/form/FormMessage.vue +17 -0
- package/src/runtime/components/ui/form/index.ts +7 -0
- package/src/runtime/components/ui/form/injectionKeys.ts +3 -0
- package/src/runtime/components/ui/form/useFormField.ts +29 -0
- package/src/runtime/components/ui/gantt/Gantt.vue +108 -0
- package/src/runtime/components/ui/gantt/GanttCreateMarkerTrigger.vue +44 -0
- package/src/runtime/components/ui/gantt/GanttFeatureItem.vue +303 -0
- package/src/runtime/components/ui/gantt/GanttFeatureList.vue +16 -0
- package/src/runtime/components/ui/gantt/GanttFeatureListGroup.vue +20 -0
- package/src/runtime/components/ui/gantt/GanttHeader.vue +197 -0
- package/src/runtime/components/ui/gantt/GanttMarker.vue +133 -0
- package/src/runtime/components/ui/gantt/GanttSidebar.vue +65 -0
- package/src/runtime/components/ui/gantt/GanttSidebarGroup.vue +25 -0
- package/src/runtime/components/ui/gantt/GanttSidebarItem.vue +32 -0
- package/src/runtime/components/ui/gantt/GanttTimeline.vue +179 -0
- package/src/runtime/components/ui/gantt/GanttToday.vue +52 -0
- package/src/runtime/components/ui/gantt/GanttZoomControls.vue +49 -0
- package/src/runtime/components/ui/gantt/README.md +356 -0
- package/src/runtime/components/ui/gantt/index.ts +18 -0
- package/src/runtime/components/ui/gantt/meta.json +96 -0
- package/src/runtime/components/ui/hover-card/HoverCard.vue +15 -0
- package/src/runtime/components/ui/hover-card/HoverCardContent.vue +36 -0
- package/src/runtime/components/ui/hover-card/HoverCardTrigger.vue +12 -0
- package/src/runtime/components/ui/hover-card/index.ts +3 -0
- package/src/runtime/components/ui/inline-editable-input/InlineEditableInput.vue +126 -0
- package/src/runtime/components/ui/inline-editable-input/index.ts +1 -0
- package/src/runtime/components/ui/input/Input.vue +35 -0
- package/src/runtime/components/ui/input/index.ts +1 -0
- package/src/runtime/components/ui/input-group/InputGroup.vue +37 -0
- package/src/runtime/components/ui/input-group/InputGroupAddon.vue +33 -0
- package/src/runtime/components/ui/input-group/InputGroupButton.vue +25 -0
- package/src/runtime/components/ui/input-group/InputGroupInput.vue +13 -0
- package/src/runtime/components/ui/input-group/InputGroupText.vue +14 -0
- package/src/runtime/components/ui/input-group/InputGroupTextarea.vue +13 -0
- package/src/runtime/components/ui/input-group/index.ts +41 -0
- package/src/runtime/components/ui/input-otp/InputOTP.vue +22 -0
- package/src/runtime/components/ui/input-otp/InputOTPGroup.vue +18 -0
- package/src/runtime/components/ui/input-otp/InputOTPSeparator.vue +17 -0
- package/src/runtime/components/ui/input-otp/InputOTPSlot.vue +37 -0
- package/src/runtime/components/ui/input-otp/index.ts +4 -0
- package/src/runtime/components/ui/item/Item.vue +27 -0
- package/src/runtime/components/ui/item/ItemActions.vue +14 -0
- package/src/runtime/components/ui/item/ItemContent.vue +14 -0
- package/src/runtime/components/ui/item/ItemDescription.vue +14 -0
- package/src/runtime/components/ui/item/ItemFooter.vue +14 -0
- package/src/runtime/components/ui/item/ItemGroup.vue +14 -0
- package/src/runtime/components/ui/item/ItemHeader.vue +14 -0
- package/src/runtime/components/ui/item/ItemMedia.vue +17 -0
- package/src/runtime/components/ui/item/ItemSeparator.vue +12 -0
- package/src/runtime/components/ui/item/ItemTitle.vue +14 -0
- package/src/runtime/components/ui/item/index.ts +47 -0
- package/src/runtime/components/ui/kanban/Kanban.vue +42 -0
- package/src/runtime/components/ui/kanban/KanbanBoard.vue +75 -0
- package/src/runtime/components/ui/kanban/KanbanCard.vue +59 -0
- package/src/runtime/components/ui/kanban/KanbanCards.vue +27 -0
- package/src/runtime/components/ui/kanban/KanbanHeader.vue +15 -0
- package/src/runtime/components/ui/kanban/README.md +184 -0
- package/src/runtime/components/ui/kanban/index.ts +8 -0
- package/src/runtime/components/ui/kbd/Kbd.vue +23 -0
- package/src/runtime/components/ui/kbd/KbdGroup.vue +14 -0
- package/src/runtime/components/ui/kbd/index.ts +2 -0
- package/src/runtime/components/ui/label/Label.vue +30 -0
- package/src/runtime/components/ui/label/index.ts +1 -0
- package/src/runtime/components/ui/menubar/Menubar.vue +20 -0
- package/src/runtime/components/ui/menubar/MenubarCheckboxItem.vue +37 -0
- package/src/runtime/components/ui/menubar/MenubarContent.vue +38 -0
- package/src/runtime/components/ui/menubar/MenubarGroup.vue +12 -0
- package/src/runtime/components/ui/menubar/MenubarItem.vue +37 -0
- package/src/runtime/components/ui/menubar/MenubarLabel.vue +16 -0
- package/src/runtime/components/ui/menubar/MenubarMenu.vue +12 -0
- package/src/runtime/components/ui/menubar/MenubarRadioGroup.vue +15 -0
- package/src/runtime/components/ui/menubar/MenubarRadioItem.vue +37 -0
- package/src/runtime/components/ui/menubar/MenubarSeparator.vue +17 -0
- package/src/runtime/components/ui/menubar/MenubarShortcut.vue +14 -0
- package/src/runtime/components/ui/menubar/MenubarSub.vue +20 -0
- package/src/runtime/components/ui/menubar/MenubarSubContent.vue +35 -0
- package/src/runtime/components/ui/menubar/MenubarSubTrigger.vue +25 -0
- package/src/runtime/components/ui/menubar/MenubarTrigger.vue +19 -0
- package/src/runtime/components/ui/menubar/index.ts +15 -0
- package/src/runtime/components/ui/native-select/NativeSelect.vue +45 -0
- package/src/runtime/components/ui/native-select/NativeSelectOptGroup.vue +15 -0
- package/src/runtime/components/ui/native-select/NativeSelectOption.vue +15 -0
- package/src/runtime/components/ui/native-select/index.ts +3 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenu.vue +31 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +30 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +23 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuItem.vue +17 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +28 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuList.vue +19 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +22 -0
- package/src/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +28 -0
- package/src/runtime/components/ui/navigation-menu/index.ts +14 -0
- package/src/runtime/components/ui/number-field/NumberField.vue +20 -0
- package/src/runtime/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/src/runtime/components/ui/number-field/NumberFieldDecrement.vue +22 -0
- package/src/runtime/components/ui/number-field/NumberFieldIncrement.vue +22 -0
- package/src/runtime/components/ui/number-field/NumberFieldInput.vue +16 -0
- package/src/runtime/components/ui/number-field/index.ts +5 -0
- package/src/runtime/components/ui/pagination/Pagination.vue +23 -0
- package/src/runtime/components/ui/pagination/PaginationContent.vue +17 -0
- package/src/runtime/components/ui/pagination/PaginationEllipsis.vue +21 -0
- package/src/runtime/components/ui/pagination/PaginationFirst.vue +34 -0
- package/src/runtime/components/ui/pagination/PaginationItem.vue +44 -0
- package/src/runtime/components/ui/pagination/PaginationLast.vue +33 -0
- package/src/runtime/components/ui/pagination/PaginationNext.vue +33 -0
- package/src/runtime/components/ui/pagination/PaginationPrevious.vue +33 -0
- package/src/runtime/components/ui/pagination/index.ts +8 -0
- package/src/runtime/components/ui/pin-input/PinInput.vue +22 -0
- package/src/runtime/components/ui/pin-input/PinInputGroup.vue +17 -0
- package/src/runtime/components/ui/pin-input/PinInputSeparator.vue +16 -0
- package/src/runtime/components/ui/pin-input/PinInputSlot.vue +26 -0
- package/src/runtime/components/ui/pin-input/index.ts +4 -0
- package/src/runtime/components/ui/popover/Popover.vue +15 -0
- package/src/runtime/components/ui/popover/PopoverAnchor.vue +12 -0
- package/src/runtime/components/ui/popover/PopoverContent.vue +38 -0
- package/src/runtime/components/ui/popover/PopoverTrigger.vue +12 -0
- package/src/runtime/components/ui/popover/index.ts +4 -0
- package/src/runtime/components/ui/progress/Progress.vue +19 -0
- package/src/runtime/components/ui/progress/index.ts +1 -0
- package/src/runtime/components/ui/radio-group/RadioGroup.vue +20 -0
- package/src/runtime/components/ui/radio-group/RadioGroupItem.vue +33 -0
- package/src/runtime/components/ui/radio-group/index.ts +2 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendar.vue +61 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarCell.vue +32 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue +46 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGrid.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue +12 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue +12 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarHeader.vue +19 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarHeading.vue +25 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +22 -0
- package/src/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +22 -0
- package/src/runtime/components/ui/range-calendar/index.ts +12 -0
- package/src/runtime/components/ui/resizable/ResizableHandle.vue +35 -0
- package/src/runtime/components/ui/resizable/ResizablePanel.vue +16 -0
- package/src/runtime/components/ui/resizable/ResizablePanelGroup.vue +20 -0
- package/src/runtime/components/ui/resizable/index.ts +3 -0
- package/src/runtime/components/ui/scroll-area/ScrollArea.vue +22 -0
- package/src/runtime/components/ui/scroll-area/ScrollBar.vue +19 -0
- package/src/runtime/components/ui/scroll-area/index.ts +2 -0
- package/src/runtime/components/ui/select/Select.vue +15 -0
- package/src/runtime/components/ui/select/SelectContent.vue +43 -0
- package/src/runtime/components/ui/select/SelectGroup.vue +12 -0
- package/src/runtime/components/ui/select/SelectItem.vue +39 -0
- package/src/runtime/components/ui/select/SelectItemText.vue +12 -0
- package/src/runtime/components/ui/select/SelectLabel.vue +14 -0
- package/src/runtime/components/ui/select/SelectScrollDownButton.vue +22 -0
- package/src/runtime/components/ui/select/SelectScrollUpButton.vue +22 -0
- package/src/runtime/components/ui/select/SelectSeparator.vue +15 -0
- package/src/runtime/components/ui/select/SelectTrigger.vue +32 -0
- package/src/runtime/components/ui/select/SelectValue.vue +12 -0
- package/src/runtime/components/ui/select/index.ts +11 -0
- package/src/runtime/components/ui/separator/Separator.vue +18 -0
- package/src/runtime/components/ui/separator/index.ts +1 -0
- package/src/runtime/components/ui/sheet/Sheet.vue +15 -0
- package/src/runtime/components/ui/sheet/SheetClose.vue +12 -0
- package/src/runtime/components/ui/sheet/SheetContent.vue +54 -0
- package/src/runtime/components/ui/sheet/SheetDescription.vue +17 -0
- package/src/runtime/components/ui/sheet/SheetFooter.vue +12 -0
- package/src/runtime/components/ui/sheet/SheetHeader.vue +12 -0
- package/src/runtime/components/ui/sheet/SheetOverlay.vue +17 -0
- package/src/runtime/components/ui/sheet/SheetTitle.vue +17 -0
- package/src/runtime/components/ui/sheet/SheetTrigger.vue +12 -0
- package/src/runtime/components/ui/sheet/index.ts +8 -0
- package/src/runtime/components/ui/sidebar/Sidebar.vue +78 -0
- package/src/runtime/components/ui/sidebar/SidebarContent.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarFooter.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarGroup.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarGroupAction.vue +31 -0
- package/src/runtime/components/ui/sidebar/SidebarGroupContent.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarGroupLabel.vue +30 -0
- package/src/runtime/components/ui/sidebar/SidebarHeader.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarInput.vue +15 -0
- package/src/runtime/components/ui/sidebar/SidebarInset.vue +24 -0
- package/src/runtime/components/ui/sidebar/SidebarMenu.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuAction.vue +41 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuBadge.vue +28 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuButton.vue +49 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +27 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuItem.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +23 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSub.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +43 -0
- package/src/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +14 -0
- package/src/runtime/components/ui/sidebar/SidebarProvider.vue +89 -0
- package/src/runtime/components/ui/sidebar/SidebarRail.vue +35 -0
- package/src/runtime/components/ui/sidebar/SidebarSeparator.vue +15 -0
- package/src/runtime/components/ui/sidebar/SidebarTrigger.vue +19 -0
- package/src/runtime/components/ui/sidebar/index.ts +59 -0
- package/src/runtime/components/ui/sidebar/utils.ts +19 -0
- package/src/runtime/components/ui/skeleton/Skeleton.vue +14 -0
- package/src/runtime/components/ui/skeleton/index.ts +1 -0
- package/src/runtime/components/ui/slider/Slider.vue +34 -0
- package/src/runtime/components/ui/slider/index.ts +1 -0
- package/src/runtime/components/ui/spinner/Spinner.vue +13 -0
- package/src/runtime/components/ui/spinner/index.ts +1 -0
- package/src/runtime/components/ui/stepper/Stepper.vue +20 -0
- package/src/runtime/components/ui/stepper/StepperDescription.vue +19 -0
- package/src/runtime/components/ui/stepper/StepperIndicator.vue +34 -0
- package/src/runtime/components/ui/stepper/StepperItem.vue +19 -0
- package/src/runtime/components/ui/stepper/StepperSeparator.vue +29 -0
- package/src/runtime/components/ui/stepper/StepperTitle.vue +19 -0
- package/src/runtime/components/ui/stepper/StepperTrigger.vue +19 -0
- package/src/runtime/components/ui/stepper/index.ts +7 -0
- package/src/runtime/components/ui/switch/Switch.vue +36 -0
- package/src/runtime/components/ui/switch/index.ts +1 -0
- package/src/runtime/components/ui/table/Table.vue +16 -0
- package/src/runtime/components/ui/table/TableBody.vue +14 -0
- package/src/runtime/components/ui/table/TableCaption.vue +14 -0
- package/src/runtime/components/ui/table/TableCell.vue +14 -0
- package/src/runtime/components/ui/table/TableEmpty.vue +29 -0
- package/src/runtime/components/ui/table/TableFooter.vue +14 -0
- package/src/runtime/components/ui/table/TableHead.vue +14 -0
- package/src/runtime/components/ui/table/TableHeader.vue +14 -0
- package/src/runtime/components/ui/table/TableRow.vue +14 -0
- package/src/runtime/components/ui/table/index.ts +9 -0
- package/src/runtime/components/ui/table/utils.ts +8 -0
- package/src/runtime/components/ui/tabs/Tabs.vue +23 -0
- package/src/runtime/components/ui/tabs/TabsContent.vue +17 -0
- package/src/runtime/components/ui/tabs/TabsList.vue +17 -0
- package/src/runtime/components/ui/tabs/TabsTrigger.vue +28 -0
- package/src/runtime/components/ui/tabs/index.ts +4 -0
- package/src/runtime/components/ui/tags-input/TagsInput.vue +20 -0
- package/src/runtime/components/ui/tags-input/TagsInputInput.vue +17 -0
- package/src/runtime/components/ui/tags-input/TagsInputItem.vue +20 -0
- package/src/runtime/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
- package/src/runtime/components/ui/tags-input/TagsInputItemText.vue +19 -0
- package/src/runtime/components/ui/tags-input/index.ts +5 -0
- package/src/runtime/components/ui/textarea/Textarea.vue +31 -0
- package/src/runtime/components/ui/textarea/index.ts +1 -0
- package/src/runtime/components/ui/tiptap/TiptapContent.vue +154 -0
- package/src/runtime/components/ui/tiptap/TiptapEditor.vue +37 -0
- package/src/runtime/components/ui/tiptap/TiptapIcon.vue +141 -0
- package/src/runtime/components/ui/tiptap/TiptapKeyboardShortcuts.vue +25 -0
- package/src/runtime/components/ui/tiptap/TiptapMobileToolbar.vue +148 -0
- package/src/runtime/components/ui/tiptap/TiptapProvider.vue +407 -0
- package/src/runtime/components/ui/tiptap/TiptapSlotPanel.vue +112 -0
- package/src/runtime/components/ui/tiptap/TiptapStatusBar.vue +83 -0
- package/src/runtime/components/ui/tiptap/TiptapTableToolbar.vue +176 -0
- package/src/runtime/components/ui/tiptap/TiptapToolbar.vue +223 -0
- package/src/runtime/components/ui/tiptap/TiptapTreeItem.vue +210 -0
- package/src/runtime/components/ui/tiptap/TiptapTreeStructure.vue +133 -0
- package/src/runtime/components/ui/tiptap/index.ts +49 -0
- package/src/runtime/components/ui/tiptap/tiptapTreeUtils.ts +137 -0
- package/src/runtime/components/ui/toggle/Toggle.vue +35 -0
- package/src/runtime/components/ui/toggle/index.ts +27 -0
- package/src/runtime/components/ui/toggle-group/ToggleGroup.vue +54 -0
- package/src/runtime/components/ui/toggle-group/ToggleGroupItem.vue +51 -0
- package/src/runtime/components/ui/toggle-group/index.ts +2 -0
- package/src/runtime/components/ui/tooltip/Tooltip.vue +15 -0
- package/src/runtime/components/ui/tooltip/TooltipContent.vue +39 -0
- package/src/runtime/components/ui/tooltip/TooltipProvider.vue +14 -0
- package/src/runtime/components/ui/tooltip/TooltipTrigger.vue +12 -0
- package/src/runtime/components/ui/tooltip/index.ts +4 -0
- package/src/runtime/composables/useDevices.ts +2 -11
- package/src/runtime/composables/useDropzone.ts +6 -30
- package/src/runtime/composables/useGantt.ts +12 -3
- package/src/runtime/composables/useKanban.ts +2 -0
- package/src/runtime/composables/useServerSideEvent.ts +3 -8
- package/src/runtime/plugins/ssr-width.ts +1 -0
- package/src/runtime/plugins/toast.client.ts +1 -0
|
@@ -0,0 +1,1241 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- Remove item from normal navigation flow, only available via hotkey -->
|
|
3
|
+
<section :aria-label="`${containerAriaLabel} ${hotkeyLabel}`" :tabIndex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false">
|
|
4
|
+
<template v-for="(pos, index) in possiblePositions" :key="pos">
|
|
5
|
+
<ol
|
|
6
|
+
ref="listRef"
|
|
7
|
+
data-sonner-toaster
|
|
8
|
+
:data-sonner-theme="actualTheme"
|
|
9
|
+
:class="props.class"
|
|
10
|
+
:dir="dir === 'auto' ? getDocumentDirection() : dir"
|
|
11
|
+
:tabIndex="-1"
|
|
12
|
+
:data-theme="theme"
|
|
13
|
+
:data-rich-colors="richColors"
|
|
14
|
+
:data-y-position="pos.split('-')[0]"
|
|
15
|
+
:data-x-position="pos.split('-')[1]"
|
|
16
|
+
:style="{
|
|
17
|
+
'--front-toast-height': `${heights[0]?.height || 0}px`,
|
|
18
|
+
'--width': `${TOAST_WIDTH}px`,
|
|
19
|
+
'--gap': `${gap}px`,
|
|
20
|
+
...style,
|
|
21
|
+
...((attrs as Record<string, Record<string, any>>).style as any),
|
|
22
|
+
...assignOffset(offset, mobileOffset),
|
|
23
|
+
}"
|
|
24
|
+
v-bind="$attrs"
|
|
25
|
+
@blur="onBlur"
|
|
26
|
+
@focus="onFocus"
|
|
27
|
+
@mouseenter="handleMouseEnter"
|
|
28
|
+
@mousemove="handleMouseEnter"
|
|
29
|
+
@mouseleave="handleMouseLeave"
|
|
30
|
+
@dragend="handleDragEnd"
|
|
31
|
+
@pointerdown="onPointerDown"
|
|
32
|
+
@pointerup="handlePointerUp"
|
|
33
|
+
>
|
|
34
|
+
<template v-for="(toast, idx) in filteredToasts(pos, index)" :key="toast.id">
|
|
35
|
+
<Toast
|
|
36
|
+
:heights="heights"
|
|
37
|
+
:icons="icons"
|
|
38
|
+
:index="idx"
|
|
39
|
+
:toast="toast"
|
|
40
|
+
:default-rich-colors="richColors"
|
|
41
|
+
:duration="toastOptions?.duration ?? duration"
|
|
42
|
+
:class="toastOptions?.class ?? ''"
|
|
43
|
+
:description-class="toastOptions?.descriptionClass"
|
|
44
|
+
:invert="invert"
|
|
45
|
+
:visible-toasts="visibleToasts"
|
|
46
|
+
:close-button="toastOptions?.closeButton ?? closeButton"
|
|
47
|
+
:interacting="interacting"
|
|
48
|
+
:position="pos"
|
|
49
|
+
:close-button-position="toastOptions?.closeButtonPosition ?? closeButtonPosition"
|
|
50
|
+
:style="toastOptions?.style"
|
|
51
|
+
:unstyled="toastOptions?.unstyled"
|
|
52
|
+
:classes="toastOptions?.classes"
|
|
53
|
+
:cancel-button-style="toastOptions?.cancelButtonStyle"
|
|
54
|
+
:action-button-style="toastOptions?.actionButtonStyle"
|
|
55
|
+
:close-button-aria-label="toastOptions?.closeButtonAriaLabel"
|
|
56
|
+
:toasts="toastsByPosition[pos] ?? []"
|
|
57
|
+
:expand-by-default="expand"
|
|
58
|
+
:gap="gap"
|
|
59
|
+
:expanded="expanded[pos] || false"
|
|
60
|
+
:swipe-directions="props.swipeDirections"
|
|
61
|
+
@update:heights="updateHeights"
|
|
62
|
+
@update:height="updateHeight"
|
|
63
|
+
@remove-toast="removeToast"
|
|
64
|
+
>
|
|
65
|
+
<template #close-icon>
|
|
66
|
+
<slot name="close-icon">
|
|
67
|
+
<BaseToastAssetsCloseIcon />
|
|
68
|
+
</slot>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<template #loading-icon>
|
|
72
|
+
<slot name="loading-icon">
|
|
73
|
+
<BaseToastAssetsLoader :visible="toast.type === 'loading'" />
|
|
74
|
+
</slot>
|
|
75
|
+
</template>
|
|
76
|
+
|
|
77
|
+
<template #success-icon>
|
|
78
|
+
<slot name="success-icon">
|
|
79
|
+
<BaseToastAssetsSuccessIcon />
|
|
80
|
+
</slot>
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<template #error-icon>
|
|
84
|
+
<slot name="error-icon">
|
|
85
|
+
<BaseToastAssetsErrorIcon />
|
|
86
|
+
</slot>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<template #warning-icon>
|
|
90
|
+
<slot name="warning-icon">
|
|
91
|
+
<BaseToastAssetsWarningIcon />
|
|
92
|
+
</slot>
|
|
93
|
+
</template>
|
|
94
|
+
|
|
95
|
+
<template #info-icon>
|
|
96
|
+
<slot name="info-icon">
|
|
97
|
+
<BaseToastAssetsInfoIcon />
|
|
98
|
+
</slot>
|
|
99
|
+
</template>
|
|
100
|
+
</Toast>
|
|
101
|
+
</template>
|
|
102
|
+
</ol>
|
|
103
|
+
</template>
|
|
104
|
+
</section>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<script lang="ts"></script>
|
|
108
|
+
|
|
109
|
+
<script lang="ts" setup>
|
|
110
|
+
import type { HeightT, Position, ToastT, ToastToDismiss, ToasterProps } from './types';
|
|
111
|
+
import { ToastState } from './state';
|
|
112
|
+
import Toast from './Toast.vue';
|
|
113
|
+
import { assignOffset } from './hooks';
|
|
114
|
+
import { GAP, MOBILE_VIEWPORT_OFFSET, TOAST_WIDTH, VIEWPORT_OFFSET, VISIBLE_TOASTS_AMOUNT, TIME_BEFORE_UNMOUNT } from './constant';
|
|
115
|
+
const isClient = globalThis.window !== undefined && typeof document !== 'undefined';
|
|
116
|
+
|
|
117
|
+
function getDocumentDirection(): ToasterProps['dir'] {
|
|
118
|
+
if (globalThis.window === undefined) return 'ltr';
|
|
119
|
+
if (typeof document === 'undefined') return 'ltr'; // For Fresh purpose
|
|
120
|
+
|
|
121
|
+
const dirAttribute = document.documentElement.getAttribute('dir');
|
|
122
|
+
|
|
123
|
+
if (dirAttribute === 'auto' || !dirAttribute) {
|
|
124
|
+
return globalThis.getComputedStyle(document.documentElement).direction as ToasterProps['dir'];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return dirAttribute as ToasterProps['dir'];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
defineOptions({
|
|
131
|
+
name: 'Toaster',
|
|
132
|
+
inheritAttrs: false,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const props = withDefaults(defineProps<ToasterProps>(), {
|
|
136
|
+
invert: false,
|
|
137
|
+
position: 'bottom-right',
|
|
138
|
+
closeButtonPosition: 'top-left',
|
|
139
|
+
hotkey: () => ['altKey', 'KeyT'],
|
|
140
|
+
expand: false,
|
|
141
|
+
closeButton: false,
|
|
142
|
+
class: '',
|
|
143
|
+
offset: VIEWPORT_OFFSET,
|
|
144
|
+
mobileOffset: MOBILE_VIEWPORT_OFFSET,
|
|
145
|
+
theme: 'light',
|
|
146
|
+
richColors: false,
|
|
147
|
+
visibleToasts: VISIBLE_TOASTS_AMOUNT,
|
|
148
|
+
toastOptions: () => ({}),
|
|
149
|
+
dir: 'auto',
|
|
150
|
+
gap: GAP,
|
|
151
|
+
containerAriaLabel: 'Notifications',
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
const attrs = useAttrs();
|
|
155
|
+
const toasts = ref<ToastT[]>([]);
|
|
156
|
+
|
|
157
|
+
const filteredToastsById = computed(() => {
|
|
158
|
+
if (props.id) {
|
|
159
|
+
return toasts.value.filter((toast) => toast.toasterId === props.id);
|
|
160
|
+
}
|
|
161
|
+
return toasts.value.filter((toast) => !toast.toasterId);
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
function filteredToasts(pos: string, index: number) {
|
|
165
|
+
return filteredToastsById.value.filter((toast) => (!toast.position && index === 0) || toast.position === pos);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function getInitialTheme(): 'light' | 'dark' {
|
|
169
|
+
if (props.theme !== 'system') {
|
|
170
|
+
return props.theme;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (globalThis.window === undefined) {
|
|
174
|
+
return 'light';
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (globalThis.matchMedia !== undefined) {
|
|
178
|
+
const isDark = globalThis.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
179
|
+
return isDark ? 'dark' : 'light';
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return 'light';
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const possiblePositions = computed(() => {
|
|
186
|
+
const posList = filteredToastsById.value.filter((toast) => toast.position).map((toast) => toast.position) as Position[];
|
|
187
|
+
return posList.length > 0 ? Array.from(new Set([props.position].concat(posList))) : [props.position];
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
const toastsByPosition = computed(() => {
|
|
191
|
+
const result: Record<string, ToastT[]> = {};
|
|
192
|
+
possiblePositions.value.forEach((pos) => {
|
|
193
|
+
result[pos] = toasts.value.filter((t) => t.position === pos);
|
|
194
|
+
});
|
|
195
|
+
return result;
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
const heights = ref<HeightT[]>([]);
|
|
199
|
+
const expanded = ref<Record<string, boolean>>({});
|
|
200
|
+
const interacting = ref(false);
|
|
201
|
+
|
|
202
|
+
// Initialize expanded state for each position
|
|
203
|
+
watchEffect(() => {
|
|
204
|
+
possiblePositions.value.forEach((pos) => {
|
|
205
|
+
if (!(pos in expanded.value)) {
|
|
206
|
+
expanded.value[pos] = false;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
const actualTheme = ref(getInitialTheme());
|
|
212
|
+
|
|
213
|
+
const listRef = ref<HTMLOListElement[] | HTMLOListElement | null>(null);
|
|
214
|
+
const lastFocusedElementRef = ref<HTMLElement | null>(null);
|
|
215
|
+
const isFocusWithinRef = ref(false);
|
|
216
|
+
|
|
217
|
+
const hotkeyLabel = props.hotkey.join('+').replaceAll('Key', '').replaceAll('Digit', '');
|
|
218
|
+
|
|
219
|
+
function removeToast(toastToRemove: ToastT) {
|
|
220
|
+
if (!toasts.value.find((toast) => toast.id === toastToRemove.id)?.delete) {
|
|
221
|
+
ToastState.dismiss(toastToRemove.id);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// First remove toast
|
|
225
|
+
toasts.value = toasts.value.filter(({ id }) => id !== toastToRemove.id);
|
|
226
|
+
|
|
227
|
+
// Delay cleaning heights to give animation time to complete
|
|
228
|
+
setTimeout(() => {
|
|
229
|
+
// Ensure toast has been actually removed before cleaning heights
|
|
230
|
+
if (!toasts.value.some((t) => t.id === toastToRemove.id)) {
|
|
231
|
+
heights.value = heights.value.filter((h) => h.toastId !== toastToRemove.id);
|
|
232
|
+
}
|
|
233
|
+
}, TIME_BEFORE_UNMOUNT + 50); // Slightly delay to ensure animation completion
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function onBlur(event: FocusEvent | any) {
|
|
237
|
+
if (isFocusWithinRef.value && !event.currentTarget?.contains?.(event.relatedTarget)) {
|
|
238
|
+
isFocusWithinRef.value = false;
|
|
239
|
+
if (lastFocusedElementRef.value) {
|
|
240
|
+
lastFocusedElementRef.value.focus({ preventScroll: true });
|
|
241
|
+
lastFocusedElementRef.value = null;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function onFocus(event: FocusEvent | any) {
|
|
247
|
+
const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';
|
|
248
|
+
|
|
249
|
+
if (isNotDismissible) return;
|
|
250
|
+
|
|
251
|
+
if (!isFocusWithinRef.value) {
|
|
252
|
+
isFocusWithinRef.value = true;
|
|
253
|
+
lastFocusedElementRef.value = event.relatedTarget as HTMLElement;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function onPointerDown(event: PointerEvent) {
|
|
258
|
+
if (event.target) {
|
|
259
|
+
const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';
|
|
260
|
+
|
|
261
|
+
if (isNotDismissible) return;
|
|
262
|
+
}
|
|
263
|
+
interacting.value = true;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
watchEffect((onInvalidate) => {
|
|
267
|
+
const unsubscribe = ToastState.subscribe((toast) => {
|
|
268
|
+
if ((toast as ToastToDismiss).dismiss) {
|
|
269
|
+
// SSR guard for requestAnimationFrame
|
|
270
|
+
const updateToast = () => {
|
|
271
|
+
toasts.value = toasts.value.map((t) => (t.id === toast.id ? { ...t, delete: true } : t));
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
if (typeof requestAnimationFrame === 'undefined') {
|
|
275
|
+
updateToast();
|
|
276
|
+
} else {
|
|
277
|
+
requestAnimationFrame(updateToast);
|
|
278
|
+
}
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
nextTick(() => {
|
|
283
|
+
const indexOfExistingToast = toasts.value.findIndex((t) => t.id === toast.id);
|
|
284
|
+
|
|
285
|
+
// Update the toast if it already exists
|
|
286
|
+
if (indexOfExistingToast === -1) {
|
|
287
|
+
toasts.value = [toast, ...toasts.value];
|
|
288
|
+
} else {
|
|
289
|
+
toasts.value = [...toasts.value.slice(0, indexOfExistingToast), { ...toasts.value[indexOfExistingToast], ...toast }, ...toasts.value.slice(indexOfExistingToast + 1)];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
onInvalidate(unsubscribe);
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
watchEffect((onInvalidate) => {
|
|
298
|
+
// Guard: skip if running in a non-browser environment (e.g. SSR)
|
|
299
|
+
if (globalThis.window === undefined) return;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* If the theme prop is explicitly set (e.g., 'light' or 'dark'),
|
|
303
|
+
* use it directly and stop watching for system preference.
|
|
304
|
+
*/
|
|
305
|
+
if (props.theme !== 'system') {
|
|
306
|
+
actualTheme.value = props.theme;
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Handle "system" theme:
|
|
312
|
+
* Watch the user's OS-level color scheme preference and
|
|
313
|
+
* apply 'dark' or 'light' accordingly.
|
|
314
|
+
*/
|
|
315
|
+
const darkMediaQuery = globalThis.matchMedia('(prefers-color-scheme: dark)');
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Helper function to update the actualTheme value
|
|
319
|
+
* based on current media query match.
|
|
320
|
+
*
|
|
321
|
+
* @param {boolean} matches - true if dark mode is preferred
|
|
322
|
+
*/
|
|
323
|
+
const updateTheme = (matches: boolean) => {
|
|
324
|
+
actualTheme.value = matches ? 'dark' : 'light';
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
// Apply initial system preference
|
|
328
|
+
updateTheme(darkMediaQuery.matches);
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Media query listener for changes to system preference
|
|
332
|
+
* Compatible with modern browsers and legacy Safari.
|
|
333
|
+
*/
|
|
334
|
+
const handler = (event: MediaQueryListEvent | MediaQueryList) => {
|
|
335
|
+
updateTheme(event.matches);
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
try {
|
|
339
|
+
// ✅ Standard method (Chrome, Firefox, etc.)
|
|
340
|
+
darkMediaQuery.addEventListener('change', handler);
|
|
341
|
+
} catch {
|
|
342
|
+
// 🐞 Safari fallback
|
|
343
|
+
darkMediaQuery.addListener(handler);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// Cleanup listener on component unmount or dependency change
|
|
347
|
+
onInvalidate(() => {
|
|
348
|
+
try {
|
|
349
|
+
darkMediaQuery.removeEventListener('change', handler);
|
|
350
|
+
} catch {
|
|
351
|
+
darkMediaQuery.removeListener(handler);
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
watchEffect(() => {
|
|
357
|
+
if (listRef.value && lastFocusedElementRef.value) {
|
|
358
|
+
lastFocusedElementRef.value.focus({ preventScroll: true });
|
|
359
|
+
lastFocusedElementRef.value = null;
|
|
360
|
+
isFocusWithinRef.value = false;
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
watchEffect(() => {
|
|
365
|
+
// Ensure expanded is always false when no toasts are present / only one left
|
|
366
|
+
if (toasts.value.length <= 1) {
|
|
367
|
+
// Reset all positions to false
|
|
368
|
+
Object.keys(expanded.value).forEach((pos) => {
|
|
369
|
+
expanded.value[pos] = false;
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
watchEffect((onInvalidate) => {
|
|
375
|
+
function handleKeyDown(event: KeyboardEvent) {
|
|
376
|
+
const isHotkeyPressed = props.hotkey.every((key) => (event as any)[key] || event.code === key);
|
|
377
|
+
|
|
378
|
+
const listRefItem = Array.isArray(listRef.value) ? listRef.value[0] : listRef.value;
|
|
379
|
+
|
|
380
|
+
if (isHotkeyPressed) {
|
|
381
|
+
// Expand all positions when hotkey is pressed
|
|
382
|
+
possiblePositions.value.forEach((pos) => {
|
|
383
|
+
expanded.value[pos] = true;
|
|
384
|
+
});
|
|
385
|
+
listRefItem?.focus();
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
const isItemActive = document.activeElement === listRef.value || listRefItem?.contains(document.activeElement);
|
|
389
|
+
|
|
390
|
+
if (event.code === 'Escape' && isItemActive) {
|
|
391
|
+
// Collapse all positions when escape is pressed
|
|
392
|
+
possiblePositions.value.forEach((pos) => {
|
|
393
|
+
expanded.value[pos] = false;
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
if (!isClient) return;
|
|
399
|
+
|
|
400
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
401
|
+
|
|
402
|
+
onInvalidate(() => {
|
|
403
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
function handleMouseEnter(event: MouseEvent) {
|
|
408
|
+
const target = event.currentTarget as HTMLElement;
|
|
409
|
+
const position = target.dataset.yPosition + '-' + target.dataset.xPosition;
|
|
410
|
+
expanded.value[position] = true;
|
|
411
|
+
}
|
|
412
|
+
function handleMouseLeave(event: MouseEvent) {
|
|
413
|
+
if (!interacting.value) {
|
|
414
|
+
const target = event.currentTarget as HTMLElement;
|
|
415
|
+
const position = target.dataset.yPosition + '-' + target.dataset.xPosition;
|
|
416
|
+
expanded.value[position] = false;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function handleDragEnd() {
|
|
420
|
+
// Reset all positions to false when drag ends
|
|
421
|
+
Object.keys(expanded.value).forEach((pos) => {
|
|
422
|
+
expanded.value[pos] = false;
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
function handlePointerUp() {
|
|
426
|
+
interacting.value = false;
|
|
427
|
+
}
|
|
428
|
+
function updateHeights(h: HeightT[]) {
|
|
429
|
+
heights.value = h;
|
|
430
|
+
}
|
|
431
|
+
function updateHeight(h: HeightT) {
|
|
432
|
+
const index = heights.value.findIndex((item) => item.toastId === h.toastId);
|
|
433
|
+
if (index === -1) {
|
|
434
|
+
// Insert by position grouping, keeping toasts of the same position contiguous
|
|
435
|
+
const samePositionIndex = heights.value.findIndex((item) => item.position === h.position);
|
|
436
|
+
if (samePositionIndex === -1) {
|
|
437
|
+
// If no same position exists, add to the beginning
|
|
438
|
+
heights.value.unshift(h);
|
|
439
|
+
} else {
|
|
440
|
+
// Insert at the first position of the same position
|
|
441
|
+
heights.value.splice(samePositionIndex, 0, h);
|
|
442
|
+
}
|
|
443
|
+
} else {
|
|
444
|
+
heights.value[index] = h;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
</script>
|
|
448
|
+
|
|
449
|
+
<style>
|
|
450
|
+
html[dir='ltr'],
|
|
451
|
+
[data-sonner-toaster][dir='ltr'] {
|
|
452
|
+
--toast-icon-margin-start: -3px;
|
|
453
|
+
--toast-icon-margin-end: 4px;
|
|
454
|
+
--toast-svg-margin-start: -1px;
|
|
455
|
+
--toast-svg-margin-end: 0px;
|
|
456
|
+
--toast-button-margin-start: auto;
|
|
457
|
+
--toast-button-margin-end: 0;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
html[dir='rtl'],
|
|
461
|
+
[data-sonner-toaster][dir='rtl'] {
|
|
462
|
+
--toast-icon-margin-start: 4px;
|
|
463
|
+
--toast-icon-margin-end: -3px;
|
|
464
|
+
--toast-svg-margin-start: 0px;
|
|
465
|
+
--toast-svg-margin-end: -1px;
|
|
466
|
+
--toast-button-margin-start: 0;
|
|
467
|
+
--toast-button-margin-end: auto;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
[data-sonner-toaster] {
|
|
471
|
+
position: fixed;
|
|
472
|
+
width: var(--width);
|
|
473
|
+
font-family: var(--font-geist);
|
|
474
|
+
--gray1: hsl(0, 0%, 99%);
|
|
475
|
+
--gray2: hsl(0, 0%, 97.3%);
|
|
476
|
+
--gray3: hsl(0, 0%, 95.1%);
|
|
477
|
+
--gray4: hsl(0, 0%, 93%);
|
|
478
|
+
--gray5: hsl(0, 0%, 90.9%);
|
|
479
|
+
--gray6: hsl(0, 0%, 88.7%);
|
|
480
|
+
--gray7: hsl(0, 0%, 85.8%);
|
|
481
|
+
--gray8: hsl(0, 0%, 78%);
|
|
482
|
+
--gray9: hsl(0, 0%, 56.1%);
|
|
483
|
+
--gray10: hsl(0, 0%, 52.3%);
|
|
484
|
+
--gray11: hsl(0, 0%, 43.5%);
|
|
485
|
+
--gray12: hsl(0, 0%, 9%);
|
|
486
|
+
--border-radius: 8px;
|
|
487
|
+
box-sizing: border-box;
|
|
488
|
+
padding: 0;
|
|
489
|
+
margin: 0;
|
|
490
|
+
list-style: none;
|
|
491
|
+
outline: none;
|
|
492
|
+
z-index: 999999999;
|
|
493
|
+
transition: transform 400ms ease;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
@media (hover: none) and (pointer: coarse) {
|
|
497
|
+
[data-sonner-toaster][data-lifted='true'] {
|
|
498
|
+
transform: none;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
[data-sonner-toaster][data-x-position='right'] {
|
|
503
|
+
right: var(--offset-right);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
[data-sonner-toaster][data-x-position='left'] {
|
|
507
|
+
left: var(--offset-left);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
[data-sonner-toaster][data-x-position='center'] {
|
|
511
|
+
left: 50%;
|
|
512
|
+
transform: translateX(-50%);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
[data-sonner-toaster][data-y-position='top'] {
|
|
516
|
+
top: var(--offset-top);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
[data-sonner-toaster][data-y-position='bottom'] {
|
|
520
|
+
bottom: var(--offset-bottom);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
[data-sonner-toast] {
|
|
524
|
+
--y: translateY(100%);
|
|
525
|
+
--lift-amount: calc(var(--lift) * var(--gap));
|
|
526
|
+
z-index: var(--z-index);
|
|
527
|
+
position: absolute;
|
|
528
|
+
opacity: 0;
|
|
529
|
+
transform: var(--y);
|
|
530
|
+
touch-action: none;
|
|
531
|
+
transition:
|
|
532
|
+
transform 400ms,
|
|
533
|
+
opacity 400ms,
|
|
534
|
+
height 400ms,
|
|
535
|
+
box-shadow 200ms;
|
|
536
|
+
box-sizing: border-box;
|
|
537
|
+
outline: none;
|
|
538
|
+
overflow-wrap: anywhere;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
[data-sonner-toast][data-styled='true'] {
|
|
542
|
+
padding: 16px;
|
|
543
|
+
background: var(--normal-bg);
|
|
544
|
+
border: 1px solid var(--normal-border);
|
|
545
|
+
color: var(--normal-text);
|
|
546
|
+
border-radius: var(--border-radius);
|
|
547
|
+
width: var(--width);
|
|
548
|
+
font-family: var(--font-geist);
|
|
549
|
+
font-size: 14px;
|
|
550
|
+
display: flex;
|
|
551
|
+
align-items: center;
|
|
552
|
+
gap: 10px;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
[data-sonner-toast]:focus-visible {
|
|
556
|
+
box-shadow:
|
|
557
|
+
0px 4px 12px rgba(0, 0, 0, 0.1),
|
|
558
|
+
0 0 0 2px rgba(0, 0, 0, 0.2);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
[data-sonner-toast][data-y-position='top'] {
|
|
562
|
+
top: 0;
|
|
563
|
+
--y: translateY(-100%);
|
|
564
|
+
--lift: 1;
|
|
565
|
+
--lift-amount: calc(1 * var(--gap));
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
[data-sonner-toast][data-y-position='bottom'] {
|
|
569
|
+
bottom: 0;
|
|
570
|
+
--y: translateY(100%);
|
|
571
|
+
--lift: -1;
|
|
572
|
+
--lift-amount: calc(var(--lift) * var(--gap));
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
[data-sonner-toast][data-styled='true'] [data-description] {
|
|
576
|
+
font-weight: 400;
|
|
577
|
+
font-size: 14px;
|
|
578
|
+
line-height: 1.4286;
|
|
579
|
+
color: var(--text-body);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
[data-rich-colors='true'][data-sonner-toast][data-styled='true'] [data-description] {
|
|
583
|
+
color: inherit;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
[data-sonner-toaster][data-sonner-theme='dark'] [data-description] {
|
|
587
|
+
color: var(--text-body);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
[data-sonner-toast][data-styled='true'] [data-title] {
|
|
591
|
+
font-weight: 500;
|
|
592
|
+
font-size: 14px;
|
|
593
|
+
line-height: 1;
|
|
594
|
+
color: var(--text-heading);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
[data-sonner-toast][data-styled='true'] [data-icon] {
|
|
598
|
+
display: flex;
|
|
599
|
+
position: relative;
|
|
600
|
+
justify-content: flex-start;
|
|
601
|
+
align-items: center;
|
|
602
|
+
flex-shrink: 0;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
[data-sonner-toast][data-promise='true'] [data-icon] > svg {
|
|
606
|
+
opacity: 0;
|
|
607
|
+
transform: scale(0.8);
|
|
608
|
+
transform-origin: center;
|
|
609
|
+
animation: sonner-fade-in 300ms ease forwards;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
[data-sonner-toast][data-styled='true'] [data-icon] > * {
|
|
613
|
+
flex-shrink: 0;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
[data-sonner-toast][data-styled='true'] [data-icon] svg {
|
|
617
|
+
margin-left: 0;
|
|
618
|
+
margin-right: 0;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
[data-sonner-toast][data-styled='true'] [data-content] {
|
|
622
|
+
display: flex;
|
|
623
|
+
flex-direction: column;
|
|
624
|
+
gap: 2px;
|
|
625
|
+
flex: 1;
|
|
626
|
+
min-width: 0;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
[data-sonner-toast][data-styled='true'] [data-button] {
|
|
630
|
+
border-radius: var(--radius-xl);
|
|
631
|
+
padding: 6px 12px;
|
|
632
|
+
font-family: var(--font-geist);
|
|
633
|
+
font-size: 12px;
|
|
634
|
+
font-weight: 500;
|
|
635
|
+
line-height: 1.667;
|
|
636
|
+
color: var(--normal-bg);
|
|
637
|
+
margin-left: var(--toast-button-margin-start);
|
|
638
|
+
margin-right: var(--toast-button-margin-end);
|
|
639
|
+
border: none;
|
|
640
|
+
cursor: pointer;
|
|
641
|
+
outline: none;
|
|
642
|
+
display: inline-flex;
|
|
643
|
+
align-items: center;
|
|
644
|
+
justify-content: center;
|
|
645
|
+
flex-shrink: 0;
|
|
646
|
+
gap: 6px;
|
|
647
|
+
transition:
|
|
648
|
+
opacity 400ms,
|
|
649
|
+
box-shadow 200ms;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
[data-sonner-toast][data-styled='true'] [data-button]:focus-visible {
|
|
653
|
+
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
[data-sonner-toast][data-styled='true'] [data-button]:first-of-type {
|
|
657
|
+
margin-left: var(--toast-button-margin-start);
|
|
658
|
+
margin-right: var(--toast-button-margin-end);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast][data-styled='true'] [data-cancel] {
|
|
662
|
+
background: rgba(255, 255, 255, 0.3);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
[data-sonner-toaster] [data-close-button-position='top-left'] {
|
|
666
|
+
--toast-close-button-left: 0;
|
|
667
|
+
--toast-close-button-right: unset;
|
|
668
|
+
--toast-close-button-top: 0;
|
|
669
|
+
--toast-close-button-bottom: unset;
|
|
670
|
+
--toast-close-button-transform: translate(-35%, -35%);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
[data-sonner-toaster] [data-close-button-position='top-right'] {
|
|
674
|
+
--toast-close-button-left: unset;
|
|
675
|
+
--toast-close-button-right: 0;
|
|
676
|
+
--toast-close-button-top: 0;
|
|
677
|
+
--toast-close-button-bottom: unset;
|
|
678
|
+
--toast-close-button-transform: translate(35%, -35%);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
[data-sonner-toaster] [data-close-button-position='bottom-left'] {
|
|
682
|
+
--toast-close-button-left: 0;
|
|
683
|
+
--toast-close-button-right: unset;
|
|
684
|
+
--toast-close-button-top: unset;
|
|
685
|
+
--toast-close-button-bottom: 0;
|
|
686
|
+
--toast-close-button-transform: translate(-35%, 35%);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
[data-sonner-toaster] [data-close-button-position='bottom-right'] {
|
|
690
|
+
--toast-close-button-left: unset;
|
|
691
|
+
--toast-close-button-right: 0;
|
|
692
|
+
--toast-close-button-top: unset;
|
|
693
|
+
--toast-close-button-bottom: 0;
|
|
694
|
+
--toast-close-button-transform: translate(35%, 35%);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
[data-sonner-toast][data-styled='true'] [data-disabled='true'] {
|
|
698
|
+
cursor: not-allowed;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
[data-sonner-toast][data-swiping='true']::before {
|
|
702
|
+
content: '';
|
|
703
|
+
position: absolute;
|
|
704
|
+
left: -100%;
|
|
705
|
+
right: -100%;
|
|
706
|
+
height: 100%;
|
|
707
|
+
z-index: -1;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
[data-sonner-toast][data-y-position='top'][data-swiping='true']::before {
|
|
711
|
+
bottom: 50%;
|
|
712
|
+
transform: scaleY(3) translateY(50%);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
[data-sonner-toast][data-y-position='bottom'][data-swiping='true']::before {
|
|
716
|
+
top: 50%;
|
|
717
|
+
transform: scaleY(3) translateY(-50%);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
[data-sonner-toast][data-swiping='false'][data-removed='true']::before {
|
|
721
|
+
content: '';
|
|
722
|
+
position: absolute;
|
|
723
|
+
inset: 0;
|
|
724
|
+
transform: scaleY(2);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
[data-sonner-toast][data-expanded='true']::after {
|
|
728
|
+
content: '';
|
|
729
|
+
position: absolute;
|
|
730
|
+
left: 0;
|
|
731
|
+
height: calc(var(--gap) + 1px);
|
|
732
|
+
bottom: 100%;
|
|
733
|
+
width: 100%;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
[data-sonner-toast][data-mounted='true'] {
|
|
737
|
+
--y: translateY(0);
|
|
738
|
+
opacity: 1;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
[data-sonner-toast][data-mounted='true'][data-close-button='true'] {
|
|
742
|
+
justify-content: space-between;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
[data-sonner-toast][data-expanded='false'][data-front='false'] {
|
|
746
|
+
--scale: var(--toasts-before) * 0.05 + 1;
|
|
747
|
+
--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--toasts-before) * 0.05 + 1));
|
|
748
|
+
height: var(--front-toast-height);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
[data-sonner-toast] > * {
|
|
752
|
+
transition: opacity 400ms;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
[data-sonner-toast][data-x-position='right'] {
|
|
756
|
+
right: 0;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
[data-sonner-toast][data-x-position='left'] {
|
|
760
|
+
left: 0;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
[data-sonner-toast][data-expanded='false'][data-front='false'][data-styled='true'] > * {
|
|
764
|
+
opacity: 0;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
[data-sonner-toast][data-visible='false'] {
|
|
768
|
+
opacity: 0;
|
|
769
|
+
pointer-events: none;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
[data-sonner-toast][data-mounted='true'][data-expanded='true'] {
|
|
773
|
+
--y: translateY(calc(var(--lift) * var(--offset)));
|
|
774
|
+
height: var(--initial-height);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
[data-sonner-toast][data-removed='true'][data-front='true'][data-swipe-out='false'] {
|
|
778
|
+
--y: translateY(calc(var(--lift) * -100%));
|
|
779
|
+
opacity: 0;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
[data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='true'] {
|
|
783
|
+
--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));
|
|
784
|
+
opacity: 0;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
[data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='false'] {
|
|
788
|
+
--y: translateY(40%);
|
|
789
|
+
opacity: 0;
|
|
790
|
+
transition:
|
|
791
|
+
transform 500ms,
|
|
792
|
+
opacity 200ms;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
[data-sonner-toast][data-removed='true'][data-front='false']::before {
|
|
796
|
+
height: calc(var(--initial-height) + 20%);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
[data-sonner-toast][data-swiping='true'] {
|
|
800
|
+
transform: var(--y) translateY(var(--swipe-amount-y, 0px)) translateX(var(--swipe-amount-x, 0px));
|
|
801
|
+
transition: none;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
[data-sonner-toast][data-swiped='true'] {
|
|
805
|
+
user-select: none;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
[data-sonner-toast][data-swipe-out='true'][data-y-position='bottom'],
|
|
809
|
+
[data-sonner-toast][data-swipe-out='true'][data-y-position='top'] {
|
|
810
|
+
animation-duration: 200ms;
|
|
811
|
+
animation-timing-function: ease-out;
|
|
812
|
+
animation-fill-mode: forwards;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='left'] {
|
|
816
|
+
animation-name: swipe-out-left;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='right'] {
|
|
820
|
+
animation-name: swipe-out-right;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='up'] {
|
|
824
|
+
animation-name: swipe-out-up;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='down'] {
|
|
828
|
+
animation-name: swipe-out-down;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
@keyframes swipe-out-left {
|
|
832
|
+
from {
|
|
833
|
+
transform: var(--y) translateX(var(--swipe-amount-x));
|
|
834
|
+
opacity: 1;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
to {
|
|
838
|
+
transform: var(--y) translateX(calc(var(--swipe-amount-x) - 100%));
|
|
839
|
+
opacity: 0;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
@keyframes swipe-out-right {
|
|
844
|
+
from {
|
|
845
|
+
transform: var(--y) translateX(var(--swipe-amount-x));
|
|
846
|
+
opacity: 1;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
to {
|
|
850
|
+
transform: var(--y) translateX(calc(var(--swipe-amount-x) + 100%));
|
|
851
|
+
opacity: 0;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
@keyframes swipe-out-up {
|
|
856
|
+
from {
|
|
857
|
+
transform: var(--y) translateY(var(--swipe-amount-y));
|
|
858
|
+
opacity: 1;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
to {
|
|
862
|
+
transform: var(--y) translateY(calc(var(--swipe-amount-y) - 100%));
|
|
863
|
+
opacity: 0;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
@keyframes swipe-out-down {
|
|
868
|
+
from {
|
|
869
|
+
transform: var(--y) translateY(var(--swipe-amount-y));
|
|
870
|
+
opacity: 1;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
to {
|
|
874
|
+
transform: var(--y) translateY(calc(var(--swipe-amount-y) + 100%));
|
|
875
|
+
opacity: 0;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
@media (max-width: 600px) {
|
|
880
|
+
[data-sonner-toaster] {
|
|
881
|
+
position: fixed;
|
|
882
|
+
right: var(--mobile-offset-right);
|
|
883
|
+
left: var(--mobile-offset-left);
|
|
884
|
+
width: 100%;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
[data-sonner-toaster][dir='rtl'] {
|
|
888
|
+
left: calc(var(--mobile-offset-left) * -1);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
[data-sonner-toaster] [data-sonner-toast] {
|
|
892
|
+
left: 0;
|
|
893
|
+
right: 0;
|
|
894
|
+
width: calc(100% - var(--mobile-offset-left) * 2);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
[data-sonner-toaster][data-x-position='left'] {
|
|
898
|
+
left: var(--mobile-offset-left);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
[data-sonner-toaster][data-y-position='bottom'] {
|
|
902
|
+
bottom: calc(var(--mobile-offset-bottom) + max(env(safe-area-inset-bottom), 0px));
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
[data-sonner-toaster][data-y-position='top'] {
|
|
906
|
+
top: calc(var(--mobile-offset-top) + max(env(safe-area-inset-top), 0px));
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
[data-sonner-toaster][data-x-position='center'] {
|
|
910
|
+
left: var(--mobile-offset-left);
|
|
911
|
+
right: var(--mobile-offset-right);
|
|
912
|
+
transform: none;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
[data-sonner-toaster][data-sonner-theme='light'] {
|
|
917
|
+
--normal-bg: var(--popover);
|
|
918
|
+
--normal-text: var(--popover-foreground);
|
|
919
|
+
--normal-border: var(--border);
|
|
920
|
+
|
|
921
|
+
--success-bg: var(--bg-success-soft);
|
|
922
|
+
--success-text: var(--text-fg-success-strong);
|
|
923
|
+
--success-border: var(--border-success-subtle);
|
|
924
|
+
|
|
925
|
+
--error-bg: var(--bg-danger-soft);
|
|
926
|
+
--error-text: var(--text-fg-danger-strong);
|
|
927
|
+
--error-border: var(--border-danger-subtle);
|
|
928
|
+
|
|
929
|
+
--warning-bg: var(--bg-warning-soft);
|
|
930
|
+
--warning-text: var(--text-fg-warning);
|
|
931
|
+
--warning-border: var(--border-warning-subtle);
|
|
932
|
+
|
|
933
|
+
--info-bg: var(--bg-info-softer);
|
|
934
|
+
--info-text: var(--text-fg-info);
|
|
935
|
+
--info-border: var(--border-info-subtle);
|
|
936
|
+
|
|
937
|
+
--border-radius: var(--radius-xl);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
[data-sonner-toaster][data-sonner-theme='light'] [data-sonner-toast][data-invert='true'] {
|
|
941
|
+
--normal-bg: #000;
|
|
942
|
+
--normal-border: hsl(0, 0%, 20%);
|
|
943
|
+
--normal-text: var(--gray1);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast][data-invert='true'] {
|
|
947
|
+
--normal-bg: #fff;
|
|
948
|
+
--normal-border: var(--gray3);
|
|
949
|
+
--normal-text: var(--gray12);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
[data-sonner-toaster][data-sonner-theme='dark'] {
|
|
953
|
+
--normal-bg: var(--popover);
|
|
954
|
+
--normal-text: var(--popover-foreground);
|
|
955
|
+
--normal-border: var(--border);
|
|
956
|
+
|
|
957
|
+
--success-bg: var(--bg-success-soft);
|
|
958
|
+
--success-text: var(--text-fg-success-strong);
|
|
959
|
+
--success-border: var(--border-success-subtle);
|
|
960
|
+
|
|
961
|
+
--error-bg: var(--bg-danger-soft);
|
|
962
|
+
--error-text: var(--text-fg-danger-strong);
|
|
963
|
+
--error-border: var(--border-danger-subtle);
|
|
964
|
+
|
|
965
|
+
--warning-bg: var(--bg-warning-soft);
|
|
966
|
+
--warning-text: var(--text-fg-warning);
|
|
967
|
+
--warning-border: var(--border-warning-subtle);
|
|
968
|
+
|
|
969
|
+
--info-bg: var(--bg-info-softer);
|
|
970
|
+
--info-text: var(--text-fg-info);
|
|
971
|
+
--info-border: var(--border-info-subtle);
|
|
972
|
+
|
|
973
|
+
--border-radius: var(--radius-xl);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast] [data-close-button] {
|
|
977
|
+
background: var(--normal-bg);
|
|
978
|
+
border-color: var(--normal-border);
|
|
979
|
+
color: var(--normal-text);
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast] [data-close-button]:hover {
|
|
983
|
+
background: var(--normal-bg-hover);
|
|
984
|
+
border-color: var(--normal-border-hover);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='success'] {
|
|
988
|
+
background: var(--success-bg);
|
|
989
|
+
border-color: var(--success-border);
|
|
990
|
+
color: var(--success-text);
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='success'] [data-close-button] {
|
|
994
|
+
background: var(--success-bg);
|
|
995
|
+
border-color: var(--success-border);
|
|
996
|
+
color: var(--success-text);
|
|
997
|
+
}
|
|
998
|
+
[data-sonner-toast][data-styled='true'] [data-cancel] {
|
|
999
|
+
color: var(--text-body);
|
|
1000
|
+
background: var(--bg-secondary);
|
|
1001
|
+
border: 1px solid var(--border-base);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
[data-sonner-toast][data-styled='true'] [data-close-button] {
|
|
1005
|
+
background: var(--bg-transparent);
|
|
1006
|
+
box-shadow: none;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
[data-sonner-toast][data-type='success'][data-styled='true'] [data-close-button] {
|
|
1010
|
+
color: var(--text-fg-success-strong);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
[data-sonner-toast][data-type='warning'][data-styled='true'] [data-close-button] {
|
|
1014
|
+
color: var(--text-fg-warning-strong);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
[data-sonner-toast][data-type='info'][data-styled='true'] [data-close-button] {
|
|
1018
|
+
color: var(--text-fg-info-strong);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
[data-sonner-toast][data-type='error'][data-styled='true'] [data-close-button] {
|
|
1022
|
+
color: var(--text-fg-danger-strong);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
[data-sonner-toast][data-type='success'][data-styled='true'] [data-cancel] {
|
|
1026
|
+
color: var(--text-fg-success-strong);
|
|
1027
|
+
}
|
|
1028
|
+
[data-sonner-toast][data-type='warning'][data-styled='true'] [data-cancel] {
|
|
1029
|
+
color: var(--text-fg-warning-strong);
|
|
1030
|
+
}
|
|
1031
|
+
[data-sonner-toast][data-type='info'][data-styled='true'] [data-cancel] {
|
|
1032
|
+
color: var(--text-fg-info-strong);
|
|
1033
|
+
}
|
|
1034
|
+
[data-sonner-toast][data-type='error'][data-styled='true'] [data-cancel] {
|
|
1035
|
+
color: var(--text-fg-danger-strong);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
[data-sonner-toast][data-styled='true'] [data-action] {
|
|
1039
|
+
color: var(--text-white);
|
|
1040
|
+
background: var(--bg-brand);
|
|
1041
|
+
}
|
|
1042
|
+
[data-sonner-toast][data-type='success'][data-styled='true'] [data-action] {
|
|
1043
|
+
background: var(--bg-success);
|
|
1044
|
+
}
|
|
1045
|
+
[data-sonner-toast][data-type='warning'][data-styled='true'] [data-action] {
|
|
1046
|
+
background: var(--bg-warning);
|
|
1047
|
+
}
|
|
1048
|
+
[data-sonner-toast][data-type='info'][data-styled='true'] [data-action] {
|
|
1049
|
+
background: var(--bg-info);
|
|
1050
|
+
}
|
|
1051
|
+
[data-sonner-toast][data-type='error'][data-styled='true'] [data-action] {
|
|
1052
|
+
background: var(--bg-danger);
|
|
1053
|
+
}
|
|
1054
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='success'] [data-title],
|
|
1055
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='success'] [data-description] {
|
|
1056
|
+
color: var(--success-text);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='error'] [data-title],
|
|
1060
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='error'] [data-description] {
|
|
1061
|
+
color: var(--error-text);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='warning'] [data-title],
|
|
1065
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='warning'] [data-description] {
|
|
1066
|
+
color: var(--warning-text);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='info'] [data-title],
|
|
1070
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='info'] [data-description] {
|
|
1071
|
+
color: var(--info-text);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='info'] {
|
|
1075
|
+
background: var(--info-bg);
|
|
1076
|
+
border-color: var(--info-border);
|
|
1077
|
+
color: var(--info-text);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='warning'] {
|
|
1081
|
+
background: var(--warning-bg);
|
|
1082
|
+
border-color: var(--warning-border);
|
|
1083
|
+
color: var(--warning-text);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
[data-rich-colors='true'][data-sonner-toast][data-type='error'] {
|
|
1087
|
+
background: var(--error-bg);
|
|
1088
|
+
border-color: var(--error-border);
|
|
1089
|
+
color: var(--error-text);
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.sonner-loading-wrapper {
|
|
1093
|
+
--size: 16px;
|
|
1094
|
+
height: var(--size);
|
|
1095
|
+
width: var(--size);
|
|
1096
|
+
position: absolute;
|
|
1097
|
+
margin: auto;
|
|
1098
|
+
inset: 0;
|
|
1099
|
+
z-index: 10;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.sonner-loading-wrapper[data-visible='false'] {
|
|
1103
|
+
transform-origin: center;
|
|
1104
|
+
animation: sonner-fade-out 0.2s ease forwards;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.sonner-spinner {
|
|
1108
|
+
position: relative;
|
|
1109
|
+
top: 50%;
|
|
1110
|
+
left: 50%;
|
|
1111
|
+
height: var(--size);
|
|
1112
|
+
width: var(--size);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.sonner-loading-bar {
|
|
1116
|
+
animation: sonner-spin 1.2s linear infinite;
|
|
1117
|
+
background: var(--gray11);
|
|
1118
|
+
border-radius: 6px;
|
|
1119
|
+
height: 8%;
|
|
1120
|
+
left: -10%;
|
|
1121
|
+
position: absolute;
|
|
1122
|
+
top: -3.9%;
|
|
1123
|
+
width: 24%;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.sonner-loading-bar:nth-child(1) {
|
|
1127
|
+
animation-delay: -1.2s;
|
|
1128
|
+
transform: rotate(0.0001deg) translate(146%);
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.sonner-loading-bar:nth-child(2) {
|
|
1132
|
+
animation-delay: -1.1s;
|
|
1133
|
+
transform: rotate(30deg) translate(146%);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.sonner-loading-bar:nth-child(3) {
|
|
1137
|
+
animation-delay: -1s;
|
|
1138
|
+
transform: rotate(60deg) translate(146%);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.sonner-loading-bar:nth-child(4) {
|
|
1142
|
+
animation-delay: -0.9s;
|
|
1143
|
+
transform: rotate(90deg) translate(146%);
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.sonner-loading-bar:nth-child(5) {
|
|
1147
|
+
animation-delay: -0.8s;
|
|
1148
|
+
transform: rotate(120deg) translate(146%);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.sonner-loading-bar:nth-child(6) {
|
|
1152
|
+
animation-delay: -0.7s;
|
|
1153
|
+
transform: rotate(150deg) translate(146%);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.sonner-loading-bar:nth-child(7) {
|
|
1157
|
+
animation-delay: -0.6s;
|
|
1158
|
+
transform: rotate(180deg) translate(146%);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.sonner-loading-bar:nth-child(8) {
|
|
1162
|
+
animation-delay: -0.5s;
|
|
1163
|
+
transform: rotate(210deg) translate(146%);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.sonner-loading-bar:nth-child(9) {
|
|
1167
|
+
animation-delay: -0.4s;
|
|
1168
|
+
transform: rotate(240deg) translate(146%);
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.sonner-loading-bar:nth-child(10) {
|
|
1172
|
+
animation-delay: -0.3s;
|
|
1173
|
+
transform: rotate(270deg) translate(146%);
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.sonner-loading-bar:nth-child(11) {
|
|
1177
|
+
animation-delay: -0.2s;
|
|
1178
|
+
transform: rotate(300deg) translate(146%);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.sonner-loading-bar:nth-child(12) {
|
|
1182
|
+
animation-delay: -0.1s;
|
|
1183
|
+
transform: rotate(330deg) translate(146%);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
@keyframes sonner-fade-in {
|
|
1187
|
+
0% {
|
|
1188
|
+
opacity: 0;
|
|
1189
|
+
transform: scale(0.8);
|
|
1190
|
+
}
|
|
1191
|
+
100% {
|
|
1192
|
+
opacity: 1;
|
|
1193
|
+
transform: scale(1);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
@keyframes sonner-fade-out {
|
|
1198
|
+
0% {
|
|
1199
|
+
opacity: 1;
|
|
1200
|
+
transform: scale(1);
|
|
1201
|
+
}
|
|
1202
|
+
100% {
|
|
1203
|
+
opacity: 0;
|
|
1204
|
+
transform: scale(0.8);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
@keyframes sonner-spin {
|
|
1209
|
+
0% {
|
|
1210
|
+
opacity: 1;
|
|
1211
|
+
}
|
|
1212
|
+
100% {
|
|
1213
|
+
opacity: 0.15;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
@media (prefers-reduced-motion) {
|
|
1218
|
+
[data-sonner-toast],
|
|
1219
|
+
[data-sonner-toast] > *,
|
|
1220
|
+
.sonner-loading-bar {
|
|
1221
|
+
transition: none !important;
|
|
1222
|
+
animation: none !important;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
.sonner-loader {
|
|
1227
|
+
position: absolute;
|
|
1228
|
+
top: 50%;
|
|
1229
|
+
left: 50%;
|
|
1230
|
+
transform: translate(-50%, -50%);
|
|
1231
|
+
transform-origin: center;
|
|
1232
|
+
transition:
|
|
1233
|
+
opacity 200ms,
|
|
1234
|
+
transform 200ms;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.sonner-loader[data-visible='false'] {
|
|
1238
|
+
opacity: 0;
|
|
1239
|
+
transform: scale(0.8) translate(-50%, -50%);
|
|
1240
|
+
}
|
|
1241
|
+
</style>
|