@alfadocs/ui-kit 1.13.0 → 1.15.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/dist/_chunks/actions-cell-renderer-yy03OgRL.js +137 -0
- package/dist/_chunks/{balance-badge-cell--iQ_gtmi.js → balance-badge-cell-CgkxYO96.js} +7 -6
- package/dist/_chunks/{calendar-B4Gnyu1C.js → calendar-CHT9Rm3M.js} +2 -2
- package/dist/_chunks/{calendar-event-card-Bjdbik8G.js → calendar-event-card-BjdHZaqz.js} +18 -14
- package/dist/_chunks/calendar-plus-BFrIRE4r.js +19 -0
- package/dist/_chunks/calendar-workspace-CGuY4kmv.js +7480 -0
- package/dist/_chunks/clipboard-list-rSzfIYZB.js +25 -0
- package/dist/_chunks/{color-picker-oZ6zYks8.js → color-picker-CU303VjY.js} +4 -2
- package/dist/_chunks/data-table-DC5rO3Ty.js +1817 -0
- package/dist/_chunks/{field-value-DG8zaZvo.js → field-value-D-vkX9uL.js} +120 -140
- package/dist/_chunks/{file-manager-UsD8e_AB.js → file-manager-DJMeB3V8.js} +138 -153
- package/dist/_chunks/folder-plus-CutOs4DP.js +22 -0
- package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
- package/dist/_chunks/{notes-panel-CymneXtl.js → notes-panel-DYAtlq_i.js} +2 -2
- package/dist/_chunks/{patient-details-BQaUzPqp.js → patient-details-BfzvFnxQ.js} +73 -92
- package/dist/_chunks/{patient-summary-card-CvDxhbBR.js → patient-summary-card-D5Vfa321.js} +2 -2
- package/dist/_chunks/{practice-results-D7ygCj_W.js → practice-results-DL_ExLYE.js} +159 -172
- package/dist/_chunks/{rich-text-editor-BDfFtK4H.js → rich-text-editor-DtbcA6s1.js} +2 -2
- package/dist/_chunks/signature-CpFNpsVK.js +21 -0
- package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-CEiPe-vX.js} +19 -34
- package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
- package/dist/_chunks/{toast.agent-D1tdg6DS.js → toast-YZz2sBzB.js} +160 -212
- package/dist/_chunks/toast.agent-DNQ0JYGv.js +56 -0
- package/dist/_chunks/{workflow-map-wcw3t6g4.js → workflow-map-dNzJjBWG.js} +103 -112
- package/dist/agent-catalog.json +867 -1
- package/dist/agent-i18n/en.json +27 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/data-table/index.js +39 -38
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/toast/index.js +7 -6
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +680 -0
- package/dist/i18n/locales/ar.js +680 -0
- package/dist/i18n/locales/de.d.ts +680 -0
- package/dist/i18n/locales/de.js +680 -0
- package/dist/i18n/locales/el.d.ts +680 -0
- package/dist/i18n/locales/el.js +680 -0
- package/dist/i18n/locales/en.d.ts +680 -0
- package/dist/i18n/locales/en.js +680 -0
- package/dist/i18n/locales/es.d.ts +680 -0
- package/dist/i18n/locales/es.js +680 -0
- package/dist/i18n/locales/fr.d.ts +680 -0
- package/dist/i18n/locales/fr.js +680 -0
- package/dist/i18n/locales/hi.d.ts +680 -0
- package/dist/i18n/locales/hi.js +680 -0
- package/dist/i18n/locales/it.d.ts +680 -0
- package/dist/i18n/locales/it.js +680 -0
- package/dist/i18n/locales/ja.d.ts +680 -0
- package/dist/i18n/locales/ja.js +680 -0
- package/dist/i18n/locales/nl.d.ts +680 -0
- package/dist/i18n/locales/nl.js +680 -0
- package/dist/i18n/locales/pl.d.ts +680 -0
- package/dist/i18n/locales/pl.js +680 -0
- package/dist/i18n/locales/pt.d.ts +680 -0
- package/dist/i18n/locales/pt.js +680 -0
- package/dist/i18n/locales/ro.d.ts +680 -0
- package/dist/i18n/locales/ro.js +680 -0
- package/dist/i18n/locales/ru.d.ts +680 -0
- package/dist/i18n/locales/ru.js +680 -0
- package/dist/i18n/locales/sq.d.ts +680 -0
- package/dist/i18n/locales/sq.js +680 -0
- package/dist/i18n/locales/sv.d.ts +680 -0
- package/dist/i18n/locales/sv.js +680 -0
- package/dist/i18n/locales/tr.d.ts +680 -0
- package/dist/i18n/locales/tr.js +680 -0
- package/dist/i18n/locales/zh.d.ts +680 -0
- package/dist/i18n/locales/zh.js +680 -0
- package/dist/index.js +821 -803
- package/dist/locales/ar.json +680 -0
- package/dist/locales/de.json +680 -0
- package/dist/locales/el.json +680 -0
- package/dist/locales/en.json +680 -0
- package/dist/locales/es.json +680 -0
- package/dist/locales/fr.json +680 -0
- package/dist/locales/hi.json +680 -0
- package/dist/locales/it.json +680 -0
- package/dist/locales/ja.json +680 -0
- package/dist/locales/nl.json +680 -0
- package/dist/locales/pl.json +680 -0
- package/dist/locales/pt.json +680 -0
- package/dist/locales/ro.json +680 -0
- package/dist/locales/ru.json +680 -0
- package/dist/locales/sq.json +680 -0
- package/dist/locales/sv.json +680 -0
- package/dist/locales/tr.json +680 -0
- package/dist/locales/zh.json +680 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +82 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +380 -0
- package/dist/patterns/calendar/calendar.data.d.ts +122 -0
- package/dist/patterns/calendar/calendar.host.d.ts +10 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +119 -0
- package/dist/patterns/calendar/calendar.model.d.ts +684 -0
- package/dist/patterns/calendar/calendar.preferences.d.ts +74 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +398 -0
- package/dist/patterns/calendar/calendar.surface.d.ts +85 -0
- package/dist/patterns/calendar/calendar.types.d.ts +413 -0
- package/dist/patterns/calendar/index.d.ts +13 -0
- package/dist/patterns/calendar/index.js +19 -0
- package/package.json +5 -1
- package/dist/_chunks/actions-cell-renderer-ReurEy5i.js +0 -1945
|
@@ -4,40 +4,40 @@ import te from "react-dom";
|
|
|
4
4
|
import { useTranslation as ee } from "react-i18next";
|
|
5
5
|
import { I as ae } from "./icon-button-DA2CAGHZ.js";
|
|
6
6
|
import { C as se } from "./circle-alert-rGDZ73Wh.js";
|
|
7
|
-
import { T as
|
|
8
|
-
import { C as
|
|
7
|
+
import { T as ne } from "./triangle-alert-CBnO6nq_.js";
|
|
8
|
+
import { C as oe } from "./circle-check-BN6rz4NV.js";
|
|
9
9
|
import { I as re } from "./info-CGn22peZ.js";
|
|
10
10
|
import { X as ie } from "./x-B5YnXwCz.js";
|
|
11
|
-
function le(
|
|
11
|
+
function le(n) {
|
|
12
12
|
if (typeof document > "u") return;
|
|
13
13
|
let a = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
|
|
14
|
-
e.type = "text/css", a.appendChild(e), e.styleSheet ? e.styleSheet.cssText =
|
|
14
|
+
e.type = "text/css", a.appendChild(e), e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
|
|
15
15
|
}
|
|
16
|
-
const de = (
|
|
17
|
-
switch (
|
|
16
|
+
const de = (n) => {
|
|
17
|
+
switch (n) {
|
|
18
18
|
case "success":
|
|
19
|
-
return
|
|
19
|
+
return fe;
|
|
20
20
|
case "info":
|
|
21
21
|
return pe;
|
|
22
22
|
case "warning":
|
|
23
|
-
return
|
|
23
|
+
return me;
|
|
24
24
|
case "error":
|
|
25
25
|
return ge;
|
|
26
26
|
default:
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
|
-
}, ce = Array(12).fill(0), ue = ({ visible:
|
|
29
|
+
}, ce = Array(12).fill(0), ue = ({ visible: n, className: a }) => /* @__PURE__ */ s.createElement("div", {
|
|
30
30
|
className: [
|
|
31
31
|
"sonner-loading-wrapper",
|
|
32
32
|
a
|
|
33
33
|
].filter(Boolean).join(" "),
|
|
34
|
-
"data-visible":
|
|
34
|
+
"data-visible": n
|
|
35
35
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
36
36
|
className: "sonner-spinner"
|
|
37
|
-
}, ce.map((e,
|
|
37
|
+
}, ce.map((e, o) => /* @__PURE__ */ s.createElement("div", {
|
|
38
38
|
className: "sonner-loading-bar",
|
|
39
|
-
key: `spinner-bar-${
|
|
40
|
-
})))),
|
|
39
|
+
key: `spinner-bar-${o}`
|
|
40
|
+
})))), fe = /* @__PURE__ */ s.createElement("svg", {
|
|
41
41
|
xmlns: "http://www.w3.org/2000/svg",
|
|
42
42
|
viewBox: "0 0 20 20",
|
|
43
43
|
fill: "currentColor",
|
|
@@ -47,7 +47,7 @@ const de = (o) => {
|
|
|
47
47
|
fillRule: "evenodd",
|
|
48
48
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
49
49
|
clipRule: "evenodd"
|
|
50
|
-
})),
|
|
50
|
+
})), me = /* @__PURE__ */ s.createElement("svg", {
|
|
51
51
|
xmlns: "http://www.w3.org/2000/svg",
|
|
52
52
|
viewBox: "0 0 24 24",
|
|
53
53
|
fill: "currentColor",
|
|
@@ -98,13 +98,13 @@ const de = (o) => {
|
|
|
98
98
|
x2: "18",
|
|
99
99
|
y2: "18"
|
|
100
100
|
})), be = () => {
|
|
101
|
-
const [
|
|
101
|
+
const [n, a] = s.useState(document.hidden);
|
|
102
102
|
return s.useEffect(() => {
|
|
103
103
|
const e = () => {
|
|
104
104
|
a(document.hidden);
|
|
105
105
|
};
|
|
106
106
|
return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
|
|
107
|
-
}, []),
|
|
107
|
+
}, []), n;
|
|
108
108
|
};
|
|
109
109
|
let St = 1;
|
|
110
110
|
class ve {
|
|
@@ -121,20 +121,20 @@ class ve {
|
|
|
121
121
|
];
|
|
122
122
|
}, this.create = (a) => {
|
|
123
123
|
var e;
|
|
124
|
-
const { message:
|
|
124
|
+
const { message: o, ...v } = a, l = typeof (a == null ? void 0 : a.id) == "number" || ((e = a.id) == null ? void 0 : e.length) > 0 ? a.id : St++, u = this.toasts.find((b) => b.id === l), h = a.dismissible === void 0 ? !0 : a.dismissible;
|
|
125
125
|
return this.dismissedToasts.has(l) && this.dismissedToasts.delete(l), u ? this.toasts = this.toasts.map((b) => b.id === l ? (this.publish({
|
|
126
126
|
...b,
|
|
127
127
|
...a,
|
|
128
128
|
id: l,
|
|
129
|
-
title:
|
|
129
|
+
title: o
|
|
130
130
|
}), {
|
|
131
131
|
...b,
|
|
132
132
|
...a,
|
|
133
133
|
id: l,
|
|
134
134
|
dismissible: h,
|
|
135
|
-
title:
|
|
135
|
+
title: o
|
|
136
136
|
}) : b) : this.addToast({
|
|
137
|
-
title:
|
|
137
|
+
title: o,
|
|
138
138
|
...v,
|
|
139
139
|
dismissible: h,
|
|
140
140
|
id: l
|
|
@@ -143,7 +143,7 @@ class ve {
|
|
|
143
143
|
id: a,
|
|
144
144
|
dismiss: !0
|
|
145
145
|
})))) : this.toasts.forEach((e) => {
|
|
146
|
-
this.subscribers.forEach((
|
|
146
|
+
this.subscribers.forEach((o) => o({
|
|
147
147
|
id: e.id,
|
|
148
148
|
dismiss: !0
|
|
149
149
|
}));
|
|
@@ -173,8 +173,8 @@ class ve {
|
|
|
173
173
|
}), this.promise = (a, e) => {
|
|
174
174
|
if (!e)
|
|
175
175
|
return;
|
|
176
|
-
let
|
|
177
|
-
e.loading !== void 0 && (
|
|
176
|
+
let o;
|
|
177
|
+
e.loading !== void 0 && (o = this.create({
|
|
178
178
|
...e,
|
|
179
179
|
promise: a,
|
|
180
180
|
type: "loading",
|
|
@@ -182,14 +182,14 @@ class ve {
|
|
|
182
182
|
description: typeof e.description != "function" ? e.description : void 0
|
|
183
183
|
}));
|
|
184
184
|
const v = Promise.resolve(a instanceof Function ? a() : a);
|
|
185
|
-
let l =
|
|
185
|
+
let l = o !== void 0, u;
|
|
186
186
|
const h = v.then(async (r) => {
|
|
187
187
|
if (u = [
|
|
188
188
|
"resolve",
|
|
189
189
|
r
|
|
190
190
|
], s.isValidElement(r))
|
|
191
191
|
l = !1, this.create({
|
|
192
|
-
id:
|
|
192
|
+
id: o,
|
|
193
193
|
type: "default",
|
|
194
194
|
message: r
|
|
195
195
|
});
|
|
@@ -199,7 +199,7 @@ class ve {
|
|
|
199
199
|
message: t
|
|
200
200
|
};
|
|
201
201
|
this.create({
|
|
202
|
-
id:
|
|
202
|
+
id: o,
|
|
203
203
|
type: "error",
|
|
204
204
|
description: T,
|
|
205
205
|
...k
|
|
@@ -210,7 +210,7 @@ class ve {
|
|
|
210
210
|
message: t
|
|
211
211
|
};
|
|
212
212
|
this.create({
|
|
213
|
-
id:
|
|
213
|
+
id: o,
|
|
214
214
|
type: "error",
|
|
215
215
|
description: T,
|
|
216
216
|
...k
|
|
@@ -221,7 +221,7 @@ class ve {
|
|
|
221
221
|
message: t
|
|
222
222
|
};
|
|
223
223
|
this.create({
|
|
224
|
-
id:
|
|
224
|
+
id: o,
|
|
225
225
|
type: "success",
|
|
226
226
|
description: T,
|
|
227
227
|
...k
|
|
@@ -237,38 +237,38 @@ class ve {
|
|
|
237
237
|
message: N
|
|
238
238
|
};
|
|
239
239
|
this.create({
|
|
240
|
-
id:
|
|
240
|
+
id: o,
|
|
241
241
|
type: "error",
|
|
242
242
|
description: t,
|
|
243
243
|
...O
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}).finally(() => {
|
|
247
|
-
l && (this.dismiss(
|
|
247
|
+
l && (this.dismiss(o), o = void 0), e.finally == null || e.finally.call(e);
|
|
248
248
|
}), b = () => new Promise((r, N) => h.then(() => u[0] === "reject" ? N(u[1]) : r(u[1])).catch(N));
|
|
249
|
-
return typeof
|
|
249
|
+
return typeof o != "string" && typeof o != "number" ? {
|
|
250
250
|
unwrap: b
|
|
251
|
-
} : Object.assign(
|
|
251
|
+
} : Object.assign(o, {
|
|
252
252
|
unwrap: b
|
|
253
253
|
});
|
|
254
254
|
}, this.custom = (a, e) => {
|
|
255
|
-
const
|
|
255
|
+
const o = (e == null ? void 0 : e.id) || St++;
|
|
256
256
|
return this.create({
|
|
257
|
-
jsx: a(
|
|
258
|
-
id:
|
|
257
|
+
jsx: a(o),
|
|
258
|
+
id: o,
|
|
259
259
|
...e
|
|
260
|
-
}),
|
|
260
|
+
}), o;
|
|
261
261
|
}, this.getActiveToasts = () => this.toasts.filter((a) => !this.dismissedToasts.has(a.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
const S = new ve(), ye = (
|
|
264
|
+
const S = new ve(), ye = (n, a) => {
|
|
265
265
|
const e = (a == null ? void 0 : a.id) || St++;
|
|
266
266
|
return S.addToast({
|
|
267
|
-
title:
|
|
267
|
+
title: n,
|
|
268
268
|
...a,
|
|
269
269
|
id: e
|
|
270
270
|
}), e;
|
|
271
|
-
}, xe = (
|
|
271
|
+
}, xe = (n) => n && typeof n == "object" && "ok" in n && typeof n.ok == "boolean" && "status" in n && typeof n.status == "number", we = ye, Ee = () => S.toasts, Te = () => S.getActiveToasts(), Y = Object.assign(we, {
|
|
272
272
|
success: S.success,
|
|
273
273
|
info: S.info,
|
|
274
274
|
warning: S.warning,
|
|
@@ -283,20 +283,20 @@ const S = new ve(), ye = (o, a) => {
|
|
|
283
283
|
getToasts: Te
|
|
284
284
|
});
|
|
285
285
|
le("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
286
|
-
function ht(
|
|
287
|
-
return
|
|
286
|
+
function ht(n) {
|
|
287
|
+
return n.label !== void 0;
|
|
288
288
|
}
|
|
289
289
|
const ke = 3, Ne = "24px", Se = "16px", Pt = 4e3, De = 356, _e = 14, Re = 45, Ce = 200;
|
|
290
|
-
function z(...
|
|
291
|
-
return
|
|
290
|
+
function z(...n) {
|
|
291
|
+
return n.filter(Boolean).join(" ");
|
|
292
292
|
}
|
|
293
|
-
function Be(
|
|
294
|
-
const [a, e] =
|
|
295
|
-
return a &&
|
|
293
|
+
function Be(n) {
|
|
294
|
+
const [a, e] = n.split("-"), o = [];
|
|
295
|
+
return a && o.push(a), e && o.push(e), o;
|
|
296
296
|
}
|
|
297
|
-
const
|
|
298
|
-
var a, e,
|
|
299
|
-
const { invert: N, toast: t, unstyled: T, interacting: O, setHeights: k, visibleToasts: vt, heights: W, index: c, toasts: rt, expanded: K, removeToast: it, defaultRichColors: yt, closeButton: j, style: at, cancelButtonStyle: F, actionButtonStyle: xt, className: lt = "", descriptionClassName: wt = "", duration: st, position: A, gap: dt, expandByDefault:
|
|
297
|
+
const Me = (n) => {
|
|
298
|
+
var a, e, o, v, l, u, h, b, r;
|
|
299
|
+
const { invert: N, toast: t, unstyled: T, interacting: O, setHeights: k, visibleToasts: vt, heights: W, index: c, toasts: rt, expanded: K, removeToast: it, defaultRichColors: yt, closeButton: j, style: at, cancelButtonStyle: F, actionButtonStyle: xt, className: lt = "", descriptionClassName: wt = "", duration: st, position: A, gap: dt, expandByDefault: nt, classNames: f, icons: x, closeButtonAriaLabel: L = "Close toast" } = n, [V, B] = s.useState(null), [X, ct] = s.useState(null), [d, g] = s.useState(!1), [p, R] = s.useState(!1), [q, m] = s.useState(!1), [G, ut] = s.useState(!1), [ft, Q] = s.useState(!1), [$t, Et] = s.useState(0), [Yt, Dt] = s.useState(0), ot = s.useRef(t.duration || st || Pt), _t = s.useRef(null), P = s.useRef(null), Ft = c === 0, Vt = c + 1 <= vt, D = t.type, J = t.dismissible !== !1, Xt = t.className || "", Ut = t.descriptionClassName || "", mt = s.useMemo(() => W.findIndex((i) => i.toastId === t.id) || 0, [
|
|
300
300
|
W,
|
|
301
301
|
t.id
|
|
302
302
|
]), Wt = s.useMemo(() => {
|
|
@@ -308,15 +308,15 @@ const Ie = (o) => {
|
|
|
308
308
|
]), Rt = s.useMemo(() => t.duration || st || Pt, [
|
|
309
309
|
t.duration,
|
|
310
310
|
st
|
|
311
|
-
]), Tt = s.useRef(0), Z = s.useRef(0), Ct = s.useRef(0), tt = s.useRef(null), [Kt, qt] = A.split("-"), Bt = s.useMemo(() => W.reduce((i, y, E) => E >=
|
|
311
|
+
]), Tt = s.useRef(0), Z = s.useRef(0), Ct = s.useRef(0), tt = s.useRef(null), [Kt, qt] = A.split("-"), Bt = s.useMemo(() => W.reduce((i, y, E) => E >= mt ? i : i + y.height, 0), [
|
|
312
312
|
W,
|
|
313
|
-
|
|
314
|
-
]),
|
|
315
|
-
Z.current = s.useMemo(() =>
|
|
316
|
-
|
|
313
|
+
mt
|
|
314
|
+
]), Mt = be(), Gt = t.invert || N, kt = D === "loading";
|
|
315
|
+
Z.current = s.useMemo(() => mt * dt + Bt, [
|
|
316
|
+
mt,
|
|
317
317
|
Bt
|
|
318
318
|
]), s.useEffect(() => {
|
|
319
|
-
|
|
319
|
+
ot.current = Rt;
|
|
320
320
|
}, [
|
|
321
321
|
Rt
|
|
322
322
|
]), s.useEffect(() => {
|
|
@@ -376,23 +376,23 @@ const Ie = (o) => {
|
|
|
376
376
|
s.useEffect(() => {
|
|
377
377
|
if (t.promise && D === "loading" || t.duration === 1 / 0 || t.type === "loading") return;
|
|
378
378
|
let i;
|
|
379
|
-
return K || O ||
|
|
379
|
+
return K || O || Mt ? (() => {
|
|
380
380
|
if (Ct.current < Tt.current) {
|
|
381
381
|
const _ = (/* @__PURE__ */ new Date()).getTime() - Tt.current;
|
|
382
|
-
|
|
382
|
+
ot.current = ot.current - _;
|
|
383
383
|
}
|
|
384
384
|
Ct.current = (/* @__PURE__ */ new Date()).getTime();
|
|
385
385
|
})() : (() => {
|
|
386
|
-
|
|
386
|
+
ot.current !== 1 / 0 && (Tt.current = (/* @__PURE__ */ new Date()).getTime(), i = setTimeout(() => {
|
|
387
387
|
t.onAutoClose == null || t.onAutoClose.call(t, t), $();
|
|
388
|
-
},
|
|
388
|
+
}, ot.current));
|
|
389
389
|
})(), () => clearTimeout(i);
|
|
390
390
|
}, [
|
|
391
391
|
K,
|
|
392
392
|
O,
|
|
393
393
|
t,
|
|
394
394
|
D,
|
|
395
|
-
|
|
395
|
+
Mt,
|
|
396
396
|
$
|
|
397
397
|
]), s.useEffect(() => {
|
|
398
398
|
t.delete && ($(), t.onDismiss == null || t.onDismiss.call(t, t));
|
|
@@ -405,27 +405,27 @@ const Ie = (o) => {
|
|
|
405
405
|
if (x != null && x.loading) {
|
|
406
406
|
var y;
|
|
407
407
|
return /* @__PURE__ */ s.createElement("div", {
|
|
408
|
-
className: z(
|
|
408
|
+
className: z(f == null ? void 0 : f.loader, t == null || (y = t.classNames) == null ? void 0 : y.loader, "sonner-loader"),
|
|
409
409
|
"data-visible": D === "loading"
|
|
410
410
|
}, x.loading);
|
|
411
411
|
}
|
|
412
412
|
return /* @__PURE__ */ s.createElement(ue, {
|
|
413
|
-
className: z(
|
|
413
|
+
className: z(f == null ? void 0 : f.loader, t == null || (i = t.classNames) == null ? void 0 : i.loader),
|
|
414
414
|
visible: D === "loading"
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
const Jt = t.icon || (x == null ? void 0 : x[D]) || de(D);
|
|
418
|
-
var
|
|
418
|
+
var It, At;
|
|
419
419
|
return /* @__PURE__ */ s.createElement("li", {
|
|
420
420
|
tabIndex: 0,
|
|
421
421
|
ref: P,
|
|
422
|
-
className: z(lt,
|
|
422
|
+
className: z(lt, Xt, f == null ? void 0 : f.toast, t == null || (a = t.classNames) == null ? void 0 : a.toast, f == null ? void 0 : f.default, f == null ? void 0 : f[D], t == null || (e = t.classNames) == null ? void 0 : e[D]),
|
|
423
423
|
"data-sonner-toast": "",
|
|
424
|
-
"data-rich-colors": (
|
|
424
|
+
"data-rich-colors": (It = t.richColors) != null ? It : yt,
|
|
425
425
|
"data-styled": !(t.jsx || t.unstyled || T),
|
|
426
426
|
"data-mounted": d,
|
|
427
427
|
"data-promise": !!t.promise,
|
|
428
|
-
"data-swiped":
|
|
428
|
+
"data-swiped": ft,
|
|
429
429
|
"data-removed": p,
|
|
430
430
|
"data-visible": Vt,
|
|
431
431
|
"data-y-position": Kt,
|
|
@@ -437,23 +437,23 @@ const Ie = (o) => {
|
|
|
437
437
|
"data-type": D,
|
|
438
438
|
"data-invert": Gt,
|
|
439
439
|
"data-swipe-out": G,
|
|
440
|
-
"data-swipe-direction":
|
|
441
|
-
"data-expanded": !!(K ||
|
|
440
|
+
"data-swipe-direction": X,
|
|
441
|
+
"data-expanded": !!(K || nt && d),
|
|
442
442
|
"data-testid": t.testId,
|
|
443
443
|
style: {
|
|
444
444
|
"--index": c,
|
|
445
445
|
"--toasts-before": c,
|
|
446
446
|
"--z-index": rt.length - c,
|
|
447
447
|
"--offset": `${p ? $t : Z.current}px`,
|
|
448
|
-
"--initial-height":
|
|
448
|
+
"--initial-height": nt ? "auto" : `${Yt}px`,
|
|
449
449
|
...at,
|
|
450
450
|
...t.style
|
|
451
451
|
},
|
|
452
452
|
onDragEnd: () => {
|
|
453
|
-
|
|
453
|
+
m(!1), B(null), tt.current = null;
|
|
454
454
|
},
|
|
455
455
|
onPointerDown: (i) => {
|
|
456
|
-
i.button !== 2 && (kt || !J || (_t.current = /* @__PURE__ */ new Date(), Et(Z.current), i.target.setPointerCapture(i.pointerId), i.target.tagName !== "BUTTON" && (
|
|
456
|
+
i.button !== 2 && (kt || !J || (_t.current = /* @__PURE__ */ new Date(), Et(Z.current), i.target.setPointerCapture(i.pointerId), i.target.tagName !== "BUTTON" && (m(!0), tt.current = {
|
|
457
457
|
x: i.clientX,
|
|
458
458
|
y: i.clientY
|
|
459
459
|
})));
|
|
@@ -467,39 +467,39 @@ const Ie = (o) => {
|
|
|
467
467
|
Et(Z.current), t.onDismiss == null || t.onDismiss.call(t, t), ct(V === "x" ? _ > 0 ? "right" : "left" : pt > 0 ? "down" : "up"), $(), ut(!0);
|
|
468
468
|
return;
|
|
469
469
|
} else {
|
|
470
|
-
var
|
|
471
|
-
(
|
|
470
|
+
var M, I;
|
|
471
|
+
(M = P.current) == null || M.style.setProperty("--swipe-amount-x", "0px"), (I = P.current) == null || I.style.setProperty("--swipe-amount-y", "0px");
|
|
472
472
|
}
|
|
473
|
-
Q(!1),
|
|
473
|
+
Q(!1), m(!1), B(null);
|
|
474
474
|
},
|
|
475
475
|
onPointerMove: (i) => {
|
|
476
476
|
var y, E, _;
|
|
477
477
|
if (!tt.current || !J || ((y = window.getSelection()) == null ? void 0 : y.toString().length) > 0) return;
|
|
478
478
|
const w = i.clientY - tt.current.y, C = i.clientX - tt.current.x;
|
|
479
479
|
var gt;
|
|
480
|
-
const
|
|
480
|
+
const M = (gt = n.swipeDirections) != null ? gt : Be(A);
|
|
481
481
|
!V && (Math.abs(C) > 1 || Math.abs(w) > 1) && B(Math.abs(C) > Math.abs(w) ? "x" : "y");
|
|
482
|
-
let
|
|
482
|
+
let I = {
|
|
483
483
|
x: 0,
|
|
484
484
|
y: 0
|
|
485
485
|
};
|
|
486
|
-
const zt = (
|
|
486
|
+
const zt = (U) => 1 / (1.5 + Math.abs(U) / 20);
|
|
487
487
|
if (V === "y") {
|
|
488
|
-
if (
|
|
489
|
-
if (
|
|
490
|
-
|
|
488
|
+
if (M.includes("top") || M.includes("bottom"))
|
|
489
|
+
if (M.includes("top") && w < 0 || M.includes("bottom") && w > 0)
|
|
490
|
+
I.y = w;
|
|
491
491
|
else {
|
|
492
|
-
const
|
|
493
|
-
|
|
492
|
+
const U = w * zt(w);
|
|
493
|
+
I.y = Math.abs(U) < Math.abs(w) ? U : w;
|
|
494
494
|
}
|
|
495
|
-
} else if (V === "x" && (
|
|
496
|
-
if (
|
|
497
|
-
|
|
495
|
+
} else if (V === "x" && (M.includes("left") || M.includes("right")))
|
|
496
|
+
if (M.includes("left") && C < 0 || M.includes("right") && C > 0)
|
|
497
|
+
I.x = C;
|
|
498
498
|
else {
|
|
499
|
-
const
|
|
500
|
-
|
|
499
|
+
const U = C * zt(C);
|
|
500
|
+
I.x = Math.abs(U) < Math.abs(C) ? U : C;
|
|
501
501
|
}
|
|
502
|
-
(Math.abs(
|
|
502
|
+
(Math.abs(I.x) > 0 || Math.abs(I.y) > 0) && Q(!0), (E = P.current) == null || E.style.setProperty("--swipe-amount-x", `${I.x}px`), (_ = P.current) == null || _.style.setProperty("--swipe-amount-y", `${I.y}px`);
|
|
503
503
|
}
|
|
504
504
|
}, Wt && !t.jsx && D !== "loading" ? /* @__PURE__ */ s.createElement("button", {
|
|
505
505
|
"aria-label": L,
|
|
@@ -509,19 +509,19 @@ const Ie = (o) => {
|
|
|
509
509
|
} : () => {
|
|
510
510
|
$(), t.onDismiss == null || t.onDismiss.call(t, t);
|
|
511
511
|
},
|
|
512
|
-
className: z(
|
|
512
|
+
className: z(f == null ? void 0 : f.closeButton, t == null || (o = t.classNames) == null ? void 0 : o.closeButton)
|
|
513
513
|
}, (At = x == null ? void 0 : x.close) != null ? At : he) : null, (D || t.icon || t.promise) && t.icon !== null && ((x == null ? void 0 : x[D]) !== null || t.icon) ? /* @__PURE__ */ s.createElement("div", {
|
|
514
514
|
"data-icon": "",
|
|
515
|
-
className: z(
|
|
515
|
+
className: z(f == null ? void 0 : f.icon, t == null || (v = t.classNames) == null ? void 0 : v.icon)
|
|
516
516
|
}, t.promise || t.type === "loading" && !t.icon ? t.icon || Qt() : null, t.type !== "loading" ? Jt : null) : null, /* @__PURE__ */ s.createElement("div", {
|
|
517
517
|
"data-content": "",
|
|
518
|
-
className: z(
|
|
518
|
+
className: z(f == null ? void 0 : f.content, t == null || (l = t.classNames) == null ? void 0 : l.content)
|
|
519
519
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
520
520
|
"data-title": "",
|
|
521
|
-
className: z(
|
|
521
|
+
className: z(f == null ? void 0 : f.title, t == null || (u = t.classNames) == null ? void 0 : u.title)
|
|
522
522
|
}, t.jsx ? t.jsx : typeof t.title == "function" ? t.title() : t.title), t.description ? /* @__PURE__ */ s.createElement("div", {
|
|
523
523
|
"data-description": "",
|
|
524
|
-
className: z(wt,
|
|
524
|
+
className: z(wt, Ut, f == null ? void 0 : f.description, t == null || (h = t.classNames) == null ? void 0 : h.description)
|
|
525
525
|
}, typeof t.description == "function" ? t.description() : t.description) : null), /* @__PURE__ */ s.isValidElement(t.cancel) ? t.cancel : t.cancel && ht(t.cancel) ? /* @__PURE__ */ s.createElement("button", {
|
|
526
526
|
"data-button": !0,
|
|
527
527
|
"data-cancel": !0,
|
|
@@ -529,7 +529,7 @@ const Ie = (o) => {
|
|
|
529
529
|
onClick: (i) => {
|
|
530
530
|
ht(t.cancel) && J && (t.cancel.onClick == null || t.cancel.onClick.call(t.cancel, i), $());
|
|
531
531
|
},
|
|
532
|
-
className: z(
|
|
532
|
+
className: z(f == null ? void 0 : f.cancelButton, t == null || (b = t.classNames) == null ? void 0 : b.cancelButton)
|
|
533
533
|
}, t.cancel.label) : null, /* @__PURE__ */ s.isValidElement(t.action) ? t.action : t.action && ht(t.action) ? /* @__PURE__ */ s.createElement("button", {
|
|
534
534
|
"data-button": !0,
|
|
535
535
|
"data-action": !0,
|
|
@@ -537,20 +537,20 @@ const Ie = (o) => {
|
|
|
537
537
|
onClick: (i) => {
|
|
538
538
|
ht(t.action) && (t.action.onClick == null || t.action.onClick.call(t.action, i), !i.defaultPrevented && $());
|
|
539
539
|
},
|
|
540
|
-
className: z(
|
|
540
|
+
className: z(f == null ? void 0 : f.actionButton, t == null || (r = t.classNames) == null ? void 0 : r.actionButton)
|
|
541
541
|
}, t.action.label) : null);
|
|
542
542
|
};
|
|
543
543
|
function Lt() {
|
|
544
544
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
545
|
-
const
|
|
546
|
-
return
|
|
545
|
+
const n = document.documentElement.getAttribute("dir");
|
|
546
|
+
return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Ie(n, a) {
|
|
549
549
|
const e = {};
|
|
550
550
|
return [
|
|
551
|
-
|
|
551
|
+
n,
|
|
552
552
|
a
|
|
553
|
-
].forEach((
|
|
553
|
+
].forEach((o, v) => {
|
|
554
554
|
const l = v === 1, u = l ? "--mobile-offset" : "--offset", h = l ? Se : Ne;
|
|
555
555
|
function b(r) {
|
|
556
556
|
[
|
|
@@ -562,29 +562,29 @@ function Me(o, a) {
|
|
|
562
562
|
e[`${u}-${N}`] = typeof r == "number" ? `${r}px` : r;
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
typeof
|
|
565
|
+
typeof o == "number" || typeof o == "string" ? b(o) : typeof o == "object" ? [
|
|
566
566
|
"top",
|
|
567
567
|
"right",
|
|
568
568
|
"bottom",
|
|
569
569
|
"left"
|
|
570
570
|
].forEach((r) => {
|
|
571
|
-
|
|
571
|
+
o[r] === void 0 ? e[`${u}-${r}`] = h : e[`${u}-${r}`] = typeof o[r] == "number" ? `${o[r]}px` : o[r];
|
|
572
572
|
}) : b(h);
|
|
573
573
|
}), e;
|
|
574
574
|
}
|
|
575
575
|
const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
576
|
-
const { id:
|
|
576
|
+
const { id: o, invert: v, position: l = "bottom-right", hotkey: u = [
|
|
577
577
|
"altKey",
|
|
578
578
|
"KeyT"
|
|
579
|
-
], expand: h, closeButton: b, className: r, offset: N, mobileOffset: t, theme: T = "light", richColors: O, duration: k, style: vt, visibleToasts: W = ke, toastOptions: c, dir: rt = Lt(), gap: K = _e, icons: it, containerAriaLabel: yt = "Notifications" } = a, [j, at] = s.useState([]), F = s.useMemo(() =>
|
|
579
|
+
], expand: h, closeButton: b, className: r, offset: N, mobileOffset: t, theme: T = "light", richColors: O, duration: k, style: vt, visibleToasts: W = ke, toastOptions: c, dir: rt = Lt(), gap: K = _e, icons: it, containerAriaLabel: yt = "Notifications" } = a, [j, at] = s.useState([]), F = s.useMemo(() => o ? j.filter((d) => d.toasterId === o) : j.filter((d) => !d.toasterId), [
|
|
580
580
|
j,
|
|
581
|
-
|
|
581
|
+
o
|
|
582
582
|
]), xt = s.useMemo(() => Array.from(new Set([
|
|
583
583
|
l
|
|
584
584
|
].concat(F.filter((d) => d.position).map((d) => d.position)))), [
|
|
585
585
|
F,
|
|
586
586
|
l
|
|
587
|
-
]), [lt, wt] = s.useState([]), [st, A] = s.useState(!1), [dt,
|
|
587
|
+
]), [lt, wt] = s.useState([]), [st, A] = s.useState(!1), [dt, nt] = s.useState(!1), [f, x] = s.useState(T !== "system" ? T : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), L = s.useRef(null), V = u.join("+").replace(/Key/g, "").replace(/Digit/g, ""), B = s.useRef(null), X = s.useRef(!1), ct = s.useCallback((d) => {
|
|
588
588
|
at((g) => {
|
|
589
589
|
var p;
|
|
590
590
|
return (p = g.find((R) => R.id === d.id)) != null && p.delete || S.dismiss(d.id), g.filter(({ id: R }) => R !== d.id);
|
|
@@ -649,7 +649,7 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
649
649
|
]), s.useEffect(() => {
|
|
650
650
|
const d = (g) => {
|
|
651
651
|
var p;
|
|
652
|
-
if (u.every((
|
|
652
|
+
if (u.every((m) => g[m] || g.code === m)) {
|
|
653
653
|
var q;
|
|
654
654
|
A(!0), (q = L.current) == null || q.focus();
|
|
655
655
|
}
|
|
@@ -663,7 +663,7 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
663
663
|
return () => {
|
|
664
664
|
B.current && (B.current.focus({
|
|
665
665
|
preventScroll: !0
|
|
666
|
-
}), B.current = null,
|
|
666
|
+
}), B.current = null, X.current = !1);
|
|
667
667
|
};
|
|
668
668
|
}, [
|
|
669
669
|
L.current
|
|
@@ -686,7 +686,7 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
686
686
|
ref: L,
|
|
687
687
|
className: r,
|
|
688
688
|
"data-sonner-toaster": !0,
|
|
689
|
-
"data-sonner-theme":
|
|
689
|
+
"data-sonner-theme": f,
|
|
690
690
|
"data-y-position": R,
|
|
691
691
|
"data-x-position": q,
|
|
692
692
|
style: {
|
|
@@ -694,15 +694,15 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
694
694
|
"--width": `${De}px`,
|
|
695
695
|
"--gap": `${K}px`,
|
|
696
696
|
...vt,
|
|
697
|
-
...
|
|
697
|
+
...Ie(N, t)
|
|
698
698
|
},
|
|
699
|
-
onBlur: (
|
|
700
|
-
|
|
699
|
+
onBlur: (m) => {
|
|
700
|
+
X.current && !m.currentTarget.contains(m.relatedTarget) && (X.current = !1, B.current && (B.current.focus({
|
|
701
701
|
preventScroll: !0
|
|
702
702
|
}), B.current = null));
|
|
703
703
|
},
|
|
704
|
-
onFocus: (
|
|
705
|
-
|
|
704
|
+
onFocus: (m) => {
|
|
705
|
+
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" || X.current || (X.current = !0, B.current = m.relatedTarget);
|
|
706
706
|
},
|
|
707
707
|
onMouseEnter: () => A(!0),
|
|
708
708
|
onMouseMove: () => A(!0),
|
|
@@ -710,24 +710,24 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
710
710
|
dt || A(!1);
|
|
711
711
|
},
|
|
712
712
|
onDragEnd: () => A(!1),
|
|
713
|
-
onPointerDown: (
|
|
714
|
-
|
|
713
|
+
onPointerDown: (m) => {
|
|
714
|
+
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" || nt(!0);
|
|
715
715
|
},
|
|
716
|
-
onPointerUp: () =>
|
|
717
|
-
}, F.filter((
|
|
718
|
-
var ut,
|
|
719
|
-
return /* @__PURE__ */ s.createElement(
|
|
720
|
-
key:
|
|
716
|
+
onPointerUp: () => nt(!1)
|
|
717
|
+
}, F.filter((m) => !m.position && g === 0 || m.position === d).map((m, G) => {
|
|
718
|
+
var ut, ft;
|
|
719
|
+
return /* @__PURE__ */ s.createElement(Me, {
|
|
720
|
+
key: m.id,
|
|
721
721
|
icons: it,
|
|
722
722
|
index: G,
|
|
723
|
-
toast:
|
|
723
|
+
toast: m,
|
|
724
724
|
defaultRichColors: O,
|
|
725
725
|
duration: (ut = c == null ? void 0 : c.duration) != null ? ut : k,
|
|
726
726
|
className: c == null ? void 0 : c.className,
|
|
727
727
|
descriptionClassName: c == null ? void 0 : c.descriptionClassName,
|
|
728
728
|
invert: v,
|
|
729
729
|
visibleToasts: W,
|
|
730
|
-
closeButton: (
|
|
730
|
+
closeButton: (ft = c == null ? void 0 : c.closeButton) != null ? ft : b,
|
|
731
731
|
interacting: dt,
|
|
732
732
|
position: d,
|
|
733
733
|
style: c == null ? void 0 : c.style,
|
|
@@ -737,8 +737,8 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
737
737
|
actionButtonStyle: c == null ? void 0 : c.actionButtonStyle,
|
|
738
738
|
closeButtonAriaLabel: c == null ? void 0 : c.closeButtonAriaLabel,
|
|
739
739
|
removeToast: ct,
|
|
740
|
-
toasts: F.filter((Q) => Q.position ==
|
|
741
|
-
heights: lt.filter((Q) => Q.position ==
|
|
740
|
+
toasts: F.filter((Q) => Q.position == m.position),
|
|
741
|
+
heights: lt.filter((Q) => Q.position == m.position),
|
|
742
742
|
setHeights: wt,
|
|
743
743
|
expandByDefault: h,
|
|
744
744
|
gap: K,
|
|
@@ -757,7 +757,7 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
757
757
|
}
|
|
758
758
|
),
|
|
759
759
|
success: /* @__PURE__ */ H(
|
|
760
|
-
|
|
760
|
+
oe,
|
|
761
761
|
{
|
|
762
762
|
"aria-hidden": "true",
|
|
763
763
|
size: 20,
|
|
@@ -765,7 +765,7 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
765
765
|
}
|
|
766
766
|
),
|
|
767
767
|
warning: /* @__PURE__ */ H(
|
|
768
|
-
|
|
768
|
+
ne,
|
|
769
769
|
{
|
|
770
770
|
"aria-hidden": "true",
|
|
771
771
|
size: 20,
|
|
@@ -783,7 +783,7 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
|
|
|
783
783
|
};
|
|
784
784
|
let Nt = !1;
|
|
785
785
|
const et = /* @__PURE__ */ new Set();
|
|
786
|
-
function He(
|
|
786
|
+
function He(n) {
|
|
787
787
|
const a = typeof document < "u" && document.documentElement.dir === "rtl";
|
|
788
788
|
return {
|
|
789
789
|
"top-start": a ? "top-right" : "top-left",
|
|
@@ -792,13 +792,13 @@ function He(o) {
|
|
|
792
792
|
"bottom-start": a ? "bottom-right" : "bottom-left",
|
|
793
793
|
"bottom-center": "bottom-center",
|
|
794
794
|
"bottom-end": a ? "bottom-left" : "bottom-right"
|
|
795
|
-
}[
|
|
795
|
+
}[n];
|
|
796
796
|
}
|
|
797
797
|
function Oe({
|
|
798
|
-
position:
|
|
798
|
+
position: n = "bottom-end",
|
|
799
799
|
offset: a = "var(--spacing-lg)",
|
|
800
800
|
gap: e = 8,
|
|
801
|
-
visibleToasts:
|
|
801
|
+
visibleToasts: o = 3,
|
|
802
802
|
className: v
|
|
803
803
|
}) {
|
|
804
804
|
const [l] = Ot(() => Nt ? !1 : (Nt = !0, !0)), u = Zt(null), [h, b] = Ot(
|
|
@@ -822,9 +822,9 @@ function Oe({
|
|
|
822
822
|
u.current = r, r && r.setAttribute("data-component", "toast-region");
|
|
823
823
|
},
|
|
824
824
|
dir: h,
|
|
825
|
-
position: He(
|
|
825
|
+
position: He(n),
|
|
826
826
|
richColors: !1,
|
|
827
|
-
visibleToasts:
|
|
827
|
+
visibleToasts: o,
|
|
828
828
|
gap: e,
|
|
829
829
|
offset: a,
|
|
830
830
|
className: v,
|
|
@@ -852,22 +852,22 @@ function Oe({
|
|
|
852
852
|
) : null;
|
|
853
853
|
}
|
|
854
854
|
Oe.displayName = "Toaster";
|
|
855
|
-
function je(
|
|
855
|
+
function je(n, a, e, o) {
|
|
856
856
|
return /* @__PURE__ */ Ht(
|
|
857
857
|
"div",
|
|
858
858
|
{
|
|
859
859
|
"data-toast-id": e,
|
|
860
860
|
className: "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
861
861
|
children: [
|
|
862
|
-
ze[
|
|
862
|
+
ze[n],
|
|
863
863
|
/* @__PURE__ */ Ht("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
864
864
|
/* @__PURE__ */ H("span", { dir: "auto", className: "type-label ds:leading-snug ds:break-words", children: a }),
|
|
865
|
-
|
|
865
|
+
o && /* @__PURE__ */ H(
|
|
866
866
|
"span",
|
|
867
867
|
{
|
|
868
868
|
dir: "auto",
|
|
869
869
|
className: "type-body-sm ds:text-[var(--muted-foreground)] ds:break-words",
|
|
870
|
-
children:
|
|
870
|
+
children: o
|
|
871
871
|
}
|
|
872
872
|
)
|
|
873
873
|
] }),
|
|
@@ -876,7 +876,7 @@ function je(o, a, e, n) {
|
|
|
876
876
|
}
|
|
877
877
|
);
|
|
878
878
|
}
|
|
879
|
-
function Pe({ toastId:
|
|
879
|
+
function Pe({ toastId: n }) {
|
|
880
880
|
const { t: a } = ee();
|
|
881
881
|
return /* @__PURE__ */ H(
|
|
882
882
|
ae,
|
|
@@ -885,18 +885,18 @@ function Pe({ toastId: o }) {
|
|
|
885
885
|
intent: "ghost",
|
|
886
886
|
size: "sm",
|
|
887
887
|
"aria-label": a("common.close"),
|
|
888
|
-
onClick: () => Y.dismiss(
|
|
888
|
+
onClick: () => Y.dismiss(n),
|
|
889
889
|
className: "ds:shrink-0"
|
|
890
890
|
}
|
|
891
891
|
);
|
|
892
892
|
}
|
|
893
|
-
function bt(
|
|
894
|
-
const
|
|
893
|
+
function bt(n, a, e) {
|
|
894
|
+
const o = n === "error" ? 1 / 0 : 4e3, v = `${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, l = je(n, a, v, e == null ? void 0 : e.description);
|
|
895
895
|
et.add(v);
|
|
896
896
|
const u = {
|
|
897
897
|
id: v,
|
|
898
898
|
icon: null,
|
|
899
|
-
duration: (e == null ? void 0 : e.duration) ??
|
|
899
|
+
duration: (e == null ? void 0 : e.duration) ?? o,
|
|
900
900
|
action: e != null && e.action ? { label: e.action.label, onClick: e.action.onClick } : void 0,
|
|
901
901
|
cancel: e != null && e.cancel ? { label: e.cancel.label, onClick: e.cancel.onClick } : void 0,
|
|
902
902
|
onDismiss: () => {
|
|
@@ -908,7 +908,7 @@ function bt(o, a, e) {
|
|
|
908
908
|
et.delete(v), (h = e == null ? void 0 : e.onAutoClose) == null || h.call(e);
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
|
-
switch (
|
|
911
|
+
switch (n) {
|
|
912
912
|
case "error":
|
|
913
913
|
return Y.error(l, u);
|
|
914
914
|
case "success":
|
|
@@ -921,85 +921,33 @@ function bt(o, a, e) {
|
|
|
921
921
|
return Y(l, u);
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
function Qe(
|
|
925
|
-
return bt("info",
|
|
924
|
+
function Qe(n, a) {
|
|
925
|
+
return bt("info", n, a);
|
|
926
926
|
}
|
|
927
|
-
function Je(
|
|
928
|
-
return bt("success",
|
|
927
|
+
function Je(n, a) {
|
|
928
|
+
return bt("success", n, a);
|
|
929
929
|
}
|
|
930
|
-
function Ze(
|
|
931
|
-
return bt("warning",
|
|
930
|
+
function Ze(n, a) {
|
|
931
|
+
return bt("warning", n, a);
|
|
932
932
|
}
|
|
933
|
-
function ta(
|
|
934
|
-
return bt("error",
|
|
933
|
+
function ta(n, a) {
|
|
934
|
+
return bt("error", n, a);
|
|
935
935
|
}
|
|
936
936
|
const ea = {
|
|
937
|
-
getVisibleToasts: () => Array.from(et).map((
|
|
938
|
-
dismiss: (
|
|
939
|
-
et.delete(
|
|
937
|
+
getVisibleToasts: () => Array.from(et).map((n) => ({ id: n })),
|
|
938
|
+
dismiss: (n) => {
|
|
939
|
+
et.delete(n), Y.dismiss(n);
|
|
940
940
|
},
|
|
941
941
|
dismissAll: () => {
|
|
942
942
|
et.clear(), Y.dismiss();
|
|
943
943
|
}
|
|
944
|
-
}, aa = {
|
|
945
|
-
id: "toast",
|
|
946
|
-
capabilities: ["dismiss"],
|
|
947
|
-
state: {
|
|
948
|
-
visibleToasts: {
|
|
949
|
-
type: "Array<{ id: string }>",
|
|
950
|
-
descriptionKey: "ui.agent.toast.state.visibleToasts",
|
|
951
|
-
description: "Snapshot of currently-visible toasts by opaque id. Never carries the toast body text.",
|
|
952
|
-
read: (o) => o.getVisibleToasts()
|
|
953
|
-
}
|
|
954
|
-
},
|
|
955
|
-
actions: {
|
|
956
|
-
dismiss: {
|
|
957
|
-
safety: "destructive",
|
|
958
|
-
argsType: "{ id: string }",
|
|
959
|
-
argsSchema: {
|
|
960
|
-
type: "object",
|
|
961
|
-
properties: { id: { type: "string" } },
|
|
962
|
-
required: ["id"]
|
|
963
|
-
},
|
|
964
|
-
idempotent: !0,
|
|
965
|
-
descriptionKey: "ui.agent.toast.actions.dismiss",
|
|
966
|
-
description: "Dismiss the toast with the given id. Irreversible from the same UI.",
|
|
967
|
-
invoke: (o, a) => {
|
|
968
|
-
o.dismiss(a.id);
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
dismiss_all: {
|
|
972
|
-
safety: "destructive",
|
|
973
|
-
idempotent: !0,
|
|
974
|
-
descriptionKey: "ui.agent.toast.actions.dismissAll",
|
|
975
|
-
description: "Dismiss every visible toast.",
|
|
976
|
-
invoke: (o) => {
|
|
977
|
-
o.dismissAll();
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
domHooks: {
|
|
982
|
-
root: {
|
|
983
|
-
attr: "data-component",
|
|
984
|
-
// The sonner <ol> region wrapper emits `data-component="toast-region"`
|
|
985
|
-
// (not the bare adapter id) — toasts are imperatively created and
|
|
986
|
-
// addressed individually by id, not by a per-instance component root.
|
|
987
|
-
value: "toast-region",
|
|
988
|
-
description: 'Marks the Toaster region wrapper (data-component="toast-region"). Toast is imperatively created; the registry addresses individual toasts by id, not by per-instance root.'
|
|
989
|
-
},
|
|
990
|
-
item: {
|
|
991
|
-
attr: "data-toast-id",
|
|
992
|
-
description: "Stable opaque toast id assigned at creation. Used by `dismiss({id})`."
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
944
|
};
|
|
996
945
|
export {
|
|
997
946
|
Oe as T,
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
aa as t
|
|
947
|
+
ta as a,
|
|
948
|
+
Qe as b,
|
|
949
|
+
Je as c,
|
|
950
|
+
Ze as d,
|
|
951
|
+
ea as t
|
|
1004
952
|
};
|
|
1005
|
-
//# sourceMappingURL=toast
|
|
953
|
+
//# sourceMappingURL=toast-YZz2sBzB.js.map
|