boottent-design 0.1.152 → 0.1.154
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/components.cjs.js +1 -1
- package/dist/components.es.js +2 -2
- package/dist/{portal-container-BR_2ILw2.js → portal-container-B3Inn3dx.js} +296 -298
- package/dist/{portal-container-tinIg0Za.cjs → portal-container-vWuaOamD.cjs} +1 -1
- package/dist/provider.cjs.js +1 -1
- package/dist/provider.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var q = (e, t, o) =>
|
|
1
|
+
var fo = Object.defineProperty;
|
|
2
|
+
var mo = (e, t, o) => t in e ? fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var q = (e, t, o) => mo(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import { jsx as r, jsxs as w, Fragment as U } from "react/jsx-runtime";
|
|
5
|
-
import { p as we, q as L, P as C, r as E, s as se, v as
|
|
5
|
+
import { p as we, q as L, P as C, r as E, s as se, v as go, S as vo, w as ho, x as yo, y as wo, z as To, A as xo, E as Ke, G as ue, H as He, J as Eo, c as m, b as K, I as Te, F as Do, K as No, M as bo, N as oe, O as Ro, Q as Ao, U as Co, V as Po, B as Ve } from "./index-Bapbasgz.js";
|
|
6
6
|
import * as n from "react";
|
|
7
|
-
import
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
7
|
+
import _o, { Fragment as So, useState as Oo, useEffect as Io } from "react";
|
|
8
|
+
import * as Mo from "react-dom";
|
|
9
|
+
import Fo from "react-dom";
|
|
10
10
|
let J;
|
|
11
|
-
const
|
|
12
|
-
function
|
|
11
|
+
const $o = new Uint8Array(16);
|
|
12
|
+
function ko() {
|
|
13
13
|
if (!J && (J = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !J))
|
|
14
14
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
15
|
-
return J(
|
|
15
|
+
return J($o);
|
|
16
16
|
}
|
|
17
17
|
const x = [];
|
|
18
18
|
for (let e = 0; e < 256; ++e)
|
|
19
19
|
x.push((e + 256).toString(16).slice(1));
|
|
20
|
-
function
|
|
20
|
+
function Lo(e, t = 0) {
|
|
21
21
|
return x[e[t + 0]] + x[e[t + 1]] + x[e[t + 2]] + x[e[t + 3]] + "-" + x[e[t + 4]] + x[e[t + 5]] + "-" + x[e[t + 6]] + x[e[t + 7]] + "-" + x[e[t + 8]] + x[e[t + 9]] + "-" + x[e[t + 10]] + x[e[t + 11]] + x[e[t + 12]] + x[e[t + 13]] + x[e[t + 14]] + x[e[t + 15]];
|
|
22
22
|
}
|
|
23
|
-
const
|
|
24
|
-
randomUUID:
|
|
23
|
+
const Vo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ze = {
|
|
24
|
+
randomUUID: Vo
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
if (
|
|
28
|
-
return
|
|
26
|
+
function zo(e, t, o) {
|
|
27
|
+
if (ze.randomUUID && !t && !e)
|
|
28
|
+
return ze.randomUUID();
|
|
29
29
|
e = e || {};
|
|
30
|
-
const a = e.random || (e.rng ||
|
|
31
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
30
|
+
const a = e.random || (e.rng || ko)();
|
|
31
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Lo(a);
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class Wo {
|
|
34
34
|
constructor() {
|
|
35
35
|
q(this, "listeners", /* @__PURE__ */ new Set());
|
|
36
36
|
q(this, "portals", /* @__PURE__ */ new Map());
|
|
@@ -108,15 +108,15 @@ class zo {
|
|
|
108
108
|
// 유니크한 ID를 생성하는 메서드 (UUID 사용)
|
|
109
109
|
generateId(t) {
|
|
110
110
|
const o = `${t}_${window.location.pathname}`;
|
|
111
|
-
return t === "toast" ? `${o}_${
|
|
111
|
+
return t === "toast" ? `${o}_${zo()}` : o;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const Ba = new Wo(), Uo = 5, Ko = 2e3;
|
|
115
115
|
let pe = 0;
|
|
116
|
-
function
|
|
116
|
+
function Be() {
|
|
117
117
|
return pe = (pe + 1) % Number.MAX_SAFE_INTEGER, pe.toString();
|
|
118
118
|
}
|
|
119
|
-
const fe = /* @__PURE__ */ new Map(),
|
|
119
|
+
const fe = /* @__PURE__ */ new Map(), We = (e) => {
|
|
120
120
|
if (fe.has(e))
|
|
121
121
|
return;
|
|
122
122
|
const t = setTimeout(() => {
|
|
@@ -124,14 +124,14 @@ const fe = /* @__PURE__ */ new Map(), ze = (e) => {
|
|
|
124
124
|
type: "REMOVE_TOAST",
|
|
125
125
|
toastId: e
|
|
126
126
|
});
|
|
127
|
-
},
|
|
127
|
+
}, Ko);
|
|
128
128
|
fe.set(e, t);
|
|
129
|
-
},
|
|
129
|
+
}, Ho = (e, t) => {
|
|
130
130
|
switch (t.type) {
|
|
131
131
|
case "ADD_TOAST":
|
|
132
132
|
return {
|
|
133
133
|
...e,
|
|
134
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
134
|
+
toasts: [t.toast, ...e.toasts].slice(0, Uo)
|
|
135
135
|
};
|
|
136
136
|
case "UPDATE_TOAST":
|
|
137
137
|
return {
|
|
@@ -142,8 +142,8 @@ const fe = /* @__PURE__ */ new Map(), ze = (e) => {
|
|
|
142
142
|
};
|
|
143
143
|
case "DISMISS_TOAST": {
|
|
144
144
|
const { toastId: o } = t;
|
|
145
|
-
return o ?
|
|
146
|
-
|
|
145
|
+
return o ? We(o) : e.toasts.forEach((a) => {
|
|
146
|
+
We(a.id || Be());
|
|
147
147
|
}), {
|
|
148
148
|
...e,
|
|
149
149
|
toasts: e.toasts.map(
|
|
@@ -166,12 +166,12 @@ const fe = /* @__PURE__ */ new Map(), ze = (e) => {
|
|
|
166
166
|
}, ee = [];
|
|
167
167
|
let te = { toasts: [] };
|
|
168
168
|
function j(e) {
|
|
169
|
-
te =
|
|
169
|
+
te = Ho(te, e), ee.forEach((t) => {
|
|
170
170
|
t(te);
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
const t =
|
|
173
|
+
function Bo({ ...e }) {
|
|
174
|
+
const t = Be(), o = (s) => j({
|
|
175
175
|
type: "UPDATE_TOAST",
|
|
176
176
|
toast: { ...s, id: t }
|
|
177
177
|
}), a = () => j({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -191,18 +191,18 @@ function Ho({ ...e }) {
|
|
|
191
191
|
update: o
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Go() {
|
|
195
195
|
const [e, t] = n.useState(te);
|
|
196
196
|
return n.useEffect(() => (ee.push(t), () => {
|
|
197
197
|
const o = ee.indexOf(t);
|
|
198
198
|
o > -1 && ee.splice(o, 1);
|
|
199
199
|
}), [e]), {
|
|
200
200
|
...e,
|
|
201
|
-
toast:
|
|
201
|
+
toast: Bo,
|
|
202
202
|
dismiss: (o) => j({ type: "DISMISS_TOAST", toastId: o })
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
var xe = "Dialog", [
|
|
205
|
+
var xe = "Dialog", [Ge, qe] = we(xe), [qo, _] = Ge(xe), je = (e) => {
|
|
206
206
|
const {
|
|
207
207
|
__scopeDialog: t,
|
|
208
208
|
children: o,
|
|
@@ -210,13 +210,13 @@ var xe = "Dialog", [Be, Ge] = we(xe), [Go, _] = Be(xe), qe = (e) => {
|
|
|
210
210
|
defaultOpen: s,
|
|
211
211
|
onOpenChange: i,
|
|
212
212
|
modal: c = !0
|
|
213
|
-
} = e, d = n.useRef(null), u = n.useRef(null), [l = !1, g] =
|
|
213
|
+
} = e, d = n.useRef(null), u = n.useRef(null), [l = !1, g] = Ke({
|
|
214
214
|
prop: a,
|
|
215
215
|
defaultProp: s,
|
|
216
216
|
onChange: i
|
|
217
217
|
});
|
|
218
218
|
return /* @__PURE__ */ r(
|
|
219
|
-
|
|
219
|
+
qo,
|
|
220
220
|
{
|
|
221
221
|
scope: t,
|
|
222
222
|
triggerRef: d,
|
|
@@ -232,10 +232,10 @@ var xe = "Dialog", [Be, Ge] = we(xe), [Go, _] = Be(xe), qe = (e) => {
|
|
|
232
232
|
}
|
|
233
233
|
);
|
|
234
234
|
};
|
|
235
|
-
|
|
236
|
-
var
|
|
235
|
+
je.displayName = xe;
|
|
236
|
+
var Ye = "DialogTrigger", Xe = n.forwardRef(
|
|
237
237
|
(e, t) => {
|
|
238
|
-
const { __scopeDialog: o, ...a } = e, s = _(
|
|
238
|
+
const { __scopeDialog: o, ...a } = e, s = _(Ye, o), i = L(t, s.triggerRef);
|
|
239
239
|
return /* @__PURE__ */ r(
|
|
240
240
|
C.button,
|
|
241
241
|
{
|
|
@@ -251,28 +251,28 @@ var je = "DialogTrigger", Ye = n.forwardRef(
|
|
|
251
251
|
);
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
255
|
-
var Ee = "DialogPortal", [
|
|
254
|
+
Xe.displayName = Ye;
|
|
255
|
+
var Ee = "DialogPortal", [jo, Qe] = Ge(Ee, {
|
|
256
256
|
forceMount: void 0
|
|
257
|
-
}),
|
|
257
|
+
}), Je = (e) => {
|
|
258
258
|
const { __scopeDialog: t, forceMount: o, children: a, container: s } = e, i = _(Ee, t);
|
|
259
|
-
return /* @__PURE__ */ r(
|
|
259
|
+
return /* @__PURE__ */ r(jo, { scope: t, forceMount: o, children: n.Children.map(a, (c) => /* @__PURE__ */ r(se, { present: o || i.open, children: /* @__PURE__ */ r(He, { asChild: !0, container: s, children: c }) })) });
|
|
260
260
|
};
|
|
261
|
-
|
|
262
|
-
var ae = "DialogOverlay",
|
|
261
|
+
Je.displayName = Ee;
|
|
262
|
+
var ae = "DialogOverlay", Ze = n.forwardRef(
|
|
263
263
|
(e, t) => {
|
|
264
|
-
const o =
|
|
265
|
-
return i.modal ? /* @__PURE__ */ r(se, { present: a || i.open, children: /* @__PURE__ */ r(
|
|
264
|
+
const o = Qe(ae, e.__scopeDialog), { forceMount: a = o.forceMount, ...s } = e, i = _(ae, e.__scopeDialog);
|
|
265
|
+
return i.modal ? /* @__PURE__ */ r(se, { present: a || i.open, children: /* @__PURE__ */ r(Yo, { ...s, ref: t }) }) : null;
|
|
266
266
|
}
|
|
267
267
|
);
|
|
268
|
-
|
|
269
|
-
var
|
|
268
|
+
Ze.displayName = ae;
|
|
269
|
+
var Yo = n.forwardRef(
|
|
270
270
|
(e, t) => {
|
|
271
271
|
const { __scopeDialog: o, ...a } = e, s = _(ae, o);
|
|
272
272
|
return (
|
|
273
273
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
274
274
|
// ie. when `Overlay` and `Content` are siblings
|
|
275
|
-
/* @__PURE__ */ r(
|
|
275
|
+
/* @__PURE__ */ r(go, { as: vo, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ r(
|
|
276
276
|
C.div,
|
|
277
277
|
{
|
|
278
278
|
"data-state": Ne(s.open),
|
|
@@ -283,21 +283,21 @@ var jo = n.forwardRef(
|
|
|
283
283
|
) })
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
|
-
), k = "DialogContent",
|
|
286
|
+
), k = "DialogContent", et = n.forwardRef(
|
|
287
287
|
(e, t) => {
|
|
288
|
-
const o =
|
|
289
|
-
return /* @__PURE__ */ r(se, { present: a || i.open, children: i.modal ? /* @__PURE__ */ r(
|
|
288
|
+
const o = Qe(k, e.__scopeDialog), { forceMount: a = o.forceMount, ...s } = e, i = _(k, e.__scopeDialog);
|
|
289
|
+
return /* @__PURE__ */ r(se, { present: a || i.open, children: i.modal ? /* @__PURE__ */ r(Xo, { ...s, ref: t }) : /* @__PURE__ */ r(Qo, { ...s, ref: t }) });
|
|
290
290
|
}
|
|
291
291
|
);
|
|
292
|
-
|
|
293
|
-
var
|
|
292
|
+
et.displayName = k;
|
|
293
|
+
var Xo = n.forwardRef(
|
|
294
294
|
(e, t) => {
|
|
295
295
|
const o = _(k, e.__scopeDialog), a = n.useRef(null), s = L(t, o.contentRef, a);
|
|
296
296
|
return n.useEffect(() => {
|
|
297
297
|
const i = a.current;
|
|
298
|
-
if (i) return
|
|
298
|
+
if (i) return ho(i);
|
|
299
299
|
}, []), /* @__PURE__ */ r(
|
|
300
|
-
|
|
300
|
+
tt,
|
|
301
301
|
{
|
|
302
302
|
...e,
|
|
303
303
|
ref: s,
|
|
@@ -318,11 +318,11 @@ var Yo = n.forwardRef(
|
|
|
318
318
|
}
|
|
319
319
|
);
|
|
320
320
|
}
|
|
321
|
-
),
|
|
321
|
+
), Qo = n.forwardRef(
|
|
322
322
|
(e, t) => {
|
|
323
323
|
const o = _(k, e.__scopeDialog), a = n.useRef(!1), s = n.useRef(!1);
|
|
324
324
|
return /* @__PURE__ */ r(
|
|
325
|
-
|
|
325
|
+
tt,
|
|
326
326
|
{
|
|
327
327
|
...e,
|
|
328
328
|
ref: t,
|
|
@@ -341,12 +341,12 @@ var Yo = n.forwardRef(
|
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
|
-
),
|
|
344
|
+
), tt = n.forwardRef(
|
|
345
345
|
(e, t) => {
|
|
346
346
|
const { __scopeDialog: o, trapFocus: a, onOpenAutoFocus: s, onCloseAutoFocus: i, ...c } = e, d = _(k, o), u = n.useRef(null), l = L(t, u);
|
|
347
|
-
return
|
|
347
|
+
return yo(), /* @__PURE__ */ w(U, { children: [
|
|
348
348
|
/* @__PURE__ */ r(
|
|
349
|
-
|
|
349
|
+
wo,
|
|
350
350
|
{
|
|
351
351
|
asChild: !0,
|
|
352
352
|
loop: !0,
|
|
@@ -354,7 +354,7 @@ var Yo = n.forwardRef(
|
|
|
354
354
|
onMountAutoFocus: s,
|
|
355
355
|
onUnmountAutoFocus: i,
|
|
356
356
|
children: /* @__PURE__ */ r(
|
|
357
|
-
|
|
357
|
+
To,
|
|
358
358
|
{
|
|
359
359
|
role: "dialog",
|
|
360
360
|
id: d.contentId,
|
|
@@ -369,28 +369,28 @@ var Yo = n.forwardRef(
|
|
|
369
369
|
}
|
|
370
370
|
),
|
|
371
371
|
/* @__PURE__ */ w(U, { children: [
|
|
372
|
-
/* @__PURE__ */ r(
|
|
373
|
-
/* @__PURE__ */ r(
|
|
372
|
+
/* @__PURE__ */ r(Zo, { titleId: d.titleId }),
|
|
373
|
+
/* @__PURE__ */ r(ta, { contentRef: u, descriptionId: d.descriptionId })
|
|
374
374
|
] })
|
|
375
375
|
] });
|
|
376
376
|
}
|
|
377
|
-
), De = "DialogTitle",
|
|
377
|
+
), De = "DialogTitle", ot = n.forwardRef(
|
|
378
378
|
(e, t) => {
|
|
379
379
|
const { __scopeDialog: o, ...a } = e, s = _(De, o);
|
|
380
380
|
return /* @__PURE__ */ r(C.h2, { id: s.titleId, ...a, ref: t });
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
|
-
|
|
384
|
-
var
|
|
383
|
+
ot.displayName = De;
|
|
384
|
+
var at = "DialogDescription", rt = n.forwardRef(
|
|
385
385
|
(e, t) => {
|
|
386
|
-
const { __scopeDialog: o, ...a } = e, s = _(
|
|
386
|
+
const { __scopeDialog: o, ...a } = e, s = _(at, o);
|
|
387
387
|
return /* @__PURE__ */ r(C.p, { id: s.descriptionId, ...a, ref: t });
|
|
388
388
|
}
|
|
389
389
|
);
|
|
390
|
-
|
|
391
|
-
var
|
|
390
|
+
rt.displayName = at;
|
|
391
|
+
var st = "DialogClose", nt = n.forwardRef(
|
|
392
392
|
(e, t) => {
|
|
393
|
-
const { __scopeDialog: o, ...a } = e, s = _(
|
|
393
|
+
const { __scopeDialog: o, ...a } = e, s = _(st, o);
|
|
394
394
|
return /* @__PURE__ */ r(
|
|
395
395
|
C.button,
|
|
396
396
|
{
|
|
@@ -402,16 +402,16 @@ var rt = "DialogClose", st = n.forwardRef(
|
|
|
402
402
|
);
|
|
403
403
|
}
|
|
404
404
|
);
|
|
405
|
-
|
|
405
|
+
nt.displayName = st;
|
|
406
406
|
function Ne(e) {
|
|
407
407
|
return e ? "open" : "closed";
|
|
408
408
|
}
|
|
409
|
-
var
|
|
409
|
+
var it = "DialogTitleWarning", [Jo, lt] = xo(it, {
|
|
410
410
|
contentName: k,
|
|
411
411
|
titleName: De,
|
|
412
412
|
docsSlug: "dialog"
|
|
413
|
-
}),
|
|
414
|
-
const t = it
|
|
413
|
+
}), Zo = ({ titleId: e }) => {
|
|
414
|
+
const t = lt(it), o = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
415
415
|
|
|
416
416
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
417
417
|
|
|
@@ -419,49 +419,49 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
419
419
|
return n.useEffect(() => {
|
|
420
420
|
e && (document.getElementById(e) || console.error(o));
|
|
421
421
|
}, [o, e]), null;
|
|
422
|
-
},
|
|
423
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
422
|
+
}, ea = "DialogDescriptionWarning", ta = ({ contentRef: e, descriptionId: t }) => {
|
|
423
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lt(ea).contentName}}.`;
|
|
424
424
|
return n.useEffect(() => {
|
|
425
425
|
var i;
|
|
426
426
|
const s = (i = e.current) == null ? void 0 : i.getAttribute("aria-describedby");
|
|
427
427
|
t && s && (document.getElementById(t) || console.warn(a));
|
|
428
428
|
}, [a, e, t]), null;
|
|
429
|
-
},
|
|
430
|
-
|
|
431
|
-
]), I =
|
|
429
|
+
}, ct = je, dt = Xe, ut = Je, be = Ze, Re = et, Ae = ot, Ce = rt, Pe = nt, pt = "AlertDialog", [oa, Ga] = we(pt, [
|
|
430
|
+
qe
|
|
431
|
+
]), I = qe(), ft = (e) => {
|
|
432
432
|
const { __scopeAlertDialog: t, ...o } = e, a = I(t);
|
|
433
|
-
return /* @__PURE__ */ r(
|
|
433
|
+
return /* @__PURE__ */ r(ct, { ...a, ...o, modal: !0 });
|
|
434
434
|
};
|
|
435
|
-
|
|
436
|
-
var
|
|
435
|
+
ft.displayName = pt;
|
|
436
|
+
var aa = "AlertDialogTrigger", mt = n.forwardRef(
|
|
437
437
|
(e, t) => {
|
|
438
438
|
const { __scopeAlertDialog: o, ...a } = e, s = I(o);
|
|
439
|
-
return /* @__PURE__ */ r(
|
|
439
|
+
return /* @__PURE__ */ r(dt, { ...s, ...a, ref: t });
|
|
440
440
|
}
|
|
441
441
|
);
|
|
442
|
-
|
|
443
|
-
var
|
|
442
|
+
mt.displayName = aa;
|
|
443
|
+
var ra = "AlertDialogPortal", gt = (e) => {
|
|
444
444
|
const { __scopeAlertDialog: t, ...o } = e, a = I(t);
|
|
445
|
-
return /* @__PURE__ */ r(
|
|
445
|
+
return /* @__PURE__ */ r(ut, { ...a, ...o });
|
|
446
446
|
};
|
|
447
|
-
|
|
448
|
-
var
|
|
447
|
+
gt.displayName = ra;
|
|
448
|
+
var sa = "AlertDialogOverlay", vt = n.forwardRef(
|
|
449
449
|
(e, t) => {
|
|
450
450
|
const { __scopeAlertDialog: o, ...a } = e, s = I(o);
|
|
451
451
|
return /* @__PURE__ */ r(be, { ...s, ...a, ref: t });
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
|
-
|
|
455
|
-
var W = "AlertDialogContent", [
|
|
454
|
+
vt.displayName = sa;
|
|
455
|
+
var W = "AlertDialogContent", [na, ia] = oa(W), ht = n.forwardRef(
|
|
456
456
|
(e, t) => {
|
|
457
457
|
const { __scopeAlertDialog: o, children: a, ...s } = e, i = I(o), c = n.useRef(null), d = L(t, c), u = n.useRef(null);
|
|
458
458
|
return /* @__PURE__ */ r(
|
|
459
|
-
|
|
459
|
+
Jo,
|
|
460
460
|
{
|
|
461
461
|
contentName: W,
|
|
462
|
-
titleName:
|
|
462
|
+
titleName: yt,
|
|
463
463
|
docsSlug: "alert-dialog",
|
|
464
|
-
children: /* @__PURE__ */ r(
|
|
464
|
+
children: /* @__PURE__ */ r(na, { scope: o, cancelRef: u, children: /* @__PURE__ */ w(
|
|
465
465
|
Re,
|
|
466
466
|
{
|
|
467
467
|
role: "alertdialog",
|
|
@@ -475,8 +475,8 @@ var W = "AlertDialogContent", [sa, na] = ta(W), vt = n.forwardRef(
|
|
|
475
475
|
onPointerDownOutside: (l) => l.preventDefault(),
|
|
476
476
|
onInteractOutside: (l) => l.preventDefault(),
|
|
477
477
|
children: [
|
|
478
|
-
/* @__PURE__ */ r(
|
|
479
|
-
/* @__PURE__ */ r(
|
|
478
|
+
/* @__PURE__ */ r(Eo, { children: a }),
|
|
479
|
+
/* @__PURE__ */ r(ca, { contentRef: c })
|
|
480
480
|
]
|
|
481
481
|
}
|
|
482
482
|
) })
|
|
@@ -484,37 +484,37 @@ var W = "AlertDialogContent", [sa, na] = ta(W), vt = n.forwardRef(
|
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
486
|
);
|
|
487
|
-
|
|
488
|
-
var
|
|
487
|
+
ht.displayName = W;
|
|
488
|
+
var yt = "AlertDialogTitle", wt = n.forwardRef(
|
|
489
489
|
(e, t) => {
|
|
490
490
|
const { __scopeAlertDialog: o, ...a } = e, s = I(o);
|
|
491
491
|
return /* @__PURE__ */ r(Ae, { ...s, ...a, ref: t });
|
|
492
492
|
}
|
|
493
493
|
);
|
|
494
|
-
|
|
495
|
-
var
|
|
494
|
+
wt.displayName = yt;
|
|
495
|
+
var Tt = "AlertDialogDescription", xt = n.forwardRef((e, t) => {
|
|
496
496
|
const { __scopeAlertDialog: o, ...a } = e, s = I(o);
|
|
497
497
|
return /* @__PURE__ */ r(Ce, { ...s, ...a, ref: t });
|
|
498
498
|
});
|
|
499
|
-
|
|
500
|
-
var
|
|
499
|
+
xt.displayName = Tt;
|
|
500
|
+
var la = "AlertDialogAction", Et = n.forwardRef(
|
|
501
501
|
(e, t) => {
|
|
502
502
|
const { __scopeAlertDialog: o, ...a } = e, s = I(o);
|
|
503
503
|
return /* @__PURE__ */ r(Pe, { ...s, ...a, ref: t });
|
|
504
504
|
}
|
|
505
505
|
);
|
|
506
|
-
|
|
507
|
-
var
|
|
506
|
+
Et.displayName = la;
|
|
507
|
+
var Dt = "AlertDialogCancel", Nt = n.forwardRef(
|
|
508
508
|
(e, t) => {
|
|
509
|
-
const { __scopeAlertDialog: o, ...a } = e, { cancelRef: s } =
|
|
509
|
+
const { __scopeAlertDialog: o, ...a } = e, { cancelRef: s } = ia(Dt, o), i = I(o), c = L(t, s);
|
|
510
510
|
return /* @__PURE__ */ r(Pe, { ...i, ...a, ref: c });
|
|
511
511
|
}
|
|
512
512
|
);
|
|
513
|
-
|
|
514
|
-
var
|
|
513
|
+
Nt.displayName = Dt;
|
|
514
|
+
var ca = ({ contentRef: e }) => {
|
|
515
515
|
const t = `\`${W}\` requires a description for the component to be accessible for screen reader users.
|
|
516
516
|
|
|
517
|
-
You can add a description to the \`${W}\` by passing a \`${
|
|
517
|
+
You can add a description to the \`${W}\` by passing a \`${Tt}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
518
518
|
|
|
519
519
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${W}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
520
520
|
|
|
@@ -525,9 +525,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
525
525
|
(a = e.current) == null ? void 0 : a.getAttribute("aria-describedby")
|
|
526
526
|
) || console.warn(t);
|
|
527
527
|
}, [t, e]), null;
|
|
528
|
-
},
|
|
529
|
-
const
|
|
530
|
-
|
|
528
|
+
}, da = ft, ua = mt, pa = gt, bt = vt, Rt = ht, At = Et, Ct = Nt, Pt = wt, _t = xt;
|
|
529
|
+
const St = da, qa = ua, fa = pa, Ot = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
530
|
+
bt,
|
|
531
531
|
{
|
|
532
532
|
className: m(
|
|
533
533
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60",
|
|
@@ -537,8 +537,8 @@ const _t = ca, Ga = da, pa = ua, St = n.forwardRef(({ className: e, ...t }, o) =
|
|
|
537
537
|
ref: o
|
|
538
538
|
}
|
|
539
539
|
));
|
|
540
|
-
|
|
541
|
-
const
|
|
540
|
+
Ot.displayName = bt.displayName;
|
|
541
|
+
const ma = {
|
|
542
542
|
sm: "max-w-[344px]",
|
|
543
543
|
// 24rem
|
|
544
544
|
md: "max-w-[500px]",
|
|
@@ -546,48 +546,48 @@ const fa = {
|
|
|
546
546
|
lg: "max-w-[640px]",
|
|
547
547
|
// 32rem
|
|
548
548
|
fit: "max-w-fit"
|
|
549
|
-
}, _e = n.forwardRef(({ className: e, size: t = "sm", ...o }, a) => /* @__PURE__ */ w(
|
|
550
|
-
/* @__PURE__ */ r(
|
|
549
|
+
}, _e = n.forwardRef(({ className: e, size: t = "sm", ...o }, a) => /* @__PURE__ */ w(fa, { children: [
|
|
550
|
+
/* @__PURE__ */ r(Ot, {}),
|
|
551
551
|
/* @__PURE__ */ r(
|
|
552
|
-
|
|
552
|
+
Rt,
|
|
553
553
|
{
|
|
554
554
|
ref: a,
|
|
555
555
|
className: m(
|
|
556
556
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] bg-background fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-2 rounded-lg border p-4 shadow-lg duration-200",
|
|
557
|
-
|
|
557
|
+
ma[t],
|
|
558
558
|
e
|
|
559
559
|
),
|
|
560
560
|
...o
|
|
561
561
|
}
|
|
562
562
|
)
|
|
563
563
|
] }));
|
|
564
|
-
_e.displayName =
|
|
564
|
+
_e.displayName = Rt.displayName;
|
|
565
565
|
const Se = ({ className: e, ...t }) => /* @__PURE__ */ r("div", { className: m("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
566
566
|
Se.displayName = "AlertDialogHeader";
|
|
567
567
|
const Oe = ({ className: e, ...t }) => /* @__PURE__ */ r("div", { className: m("flex flex-col-reverse sm:flex-row sm:justify-between sm:space-x-2", e), ...t });
|
|
568
568
|
Oe.displayName = "AlertDialogFooter";
|
|
569
569
|
const Ie = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
570
|
-
|
|
570
|
+
Pt,
|
|
571
571
|
{
|
|
572
572
|
ref: o,
|
|
573
573
|
className: m("whitespace-pre-wrap text-base font-semibold", e),
|
|
574
574
|
...t
|
|
575
575
|
}
|
|
576
576
|
));
|
|
577
|
-
Ie.displayName =
|
|
577
|
+
Ie.displayName = Pt.displayName;
|
|
578
578
|
const re = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
579
|
-
|
|
579
|
+
_t,
|
|
580
580
|
{
|
|
581
581
|
ref: o,
|
|
582
582
|
className: m("text-grey-600 whitespace-pre-wrap text-xs font-normal", e),
|
|
583
583
|
...t
|
|
584
584
|
}
|
|
585
585
|
));
|
|
586
|
-
re.displayName =
|
|
587
|
-
const Me = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
588
|
-
Me.displayName =
|
|
586
|
+
re.displayName = _t.displayName;
|
|
587
|
+
const Me = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(At, { ref: o, className: m(K({ size: "sm" }), e), ...t }));
|
|
588
|
+
Me.displayName = At.displayName;
|
|
589
589
|
const ge = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
590
|
-
|
|
590
|
+
Ct,
|
|
591
591
|
{
|
|
592
592
|
ref: o,
|
|
593
593
|
className: m(
|
|
@@ -598,8 +598,8 @@ const ge = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
|
598
598
|
...t
|
|
599
599
|
}
|
|
600
600
|
));
|
|
601
|
-
ge.displayName =
|
|
602
|
-
const
|
|
601
|
+
ge.displayName = Ct.displayName;
|
|
602
|
+
const ja = ({
|
|
603
603
|
title: e = "알림",
|
|
604
604
|
description: t,
|
|
605
605
|
confirmText: o = "확인",
|
|
@@ -608,7 +608,7 @@ const qa = ({
|
|
|
608
608
|
onClose: i,
|
|
609
609
|
theme: c = "primary"
|
|
610
610
|
}) => /* @__PURE__ */ r(
|
|
611
|
-
|
|
611
|
+
St,
|
|
612
612
|
{
|
|
613
613
|
open: !0,
|
|
614
614
|
onOpenChange: (d) => {
|
|
@@ -631,7 +631,7 @@ const qa = ({
|
|
|
631
631
|
) })
|
|
632
632
|
] })
|
|
633
633
|
}
|
|
634
|
-
),
|
|
634
|
+
), ga = ct, Ya = dt, va = ut, ha = Pe, It = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
635
635
|
be,
|
|
636
636
|
{
|
|
637
637
|
ref: o,
|
|
@@ -642,9 +642,9 @@ const qa = ({
|
|
|
642
642
|
...t
|
|
643
643
|
}
|
|
644
644
|
));
|
|
645
|
-
|
|
646
|
-
const
|
|
647
|
-
/* @__PURE__ */ r(
|
|
645
|
+
It.displayName = be.displayName;
|
|
646
|
+
const Mt = n.forwardRef(({ className: e, children: t, ...o }, a) => /* @__PURE__ */ w(va, { children: [
|
|
647
|
+
/* @__PURE__ */ r(It, {}),
|
|
648
648
|
/* @__PURE__ */ r(
|
|
649
649
|
Re,
|
|
650
650
|
{
|
|
@@ -658,12 +658,12 @@ const It = n.forwardRef(({ className: e, children: t, ...o }, a) => /* @__PURE__
|
|
|
658
658
|
}
|
|
659
659
|
)
|
|
660
660
|
] }));
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
const
|
|
665
|
-
|
|
666
|
-
const
|
|
661
|
+
Mt.displayName = Re.displayName;
|
|
662
|
+
const Ft = ({ className: e, ...t }) => /* @__PURE__ */ r("div", { className: m("flex flex-col text-left md:text-center", e), ...t });
|
|
663
|
+
Ft.displayName = "DialogHeader";
|
|
664
|
+
const $t = ({ className: e, ...t }) => /* @__PURE__ */ r("div", { className: m("flex items-center gap-2", e), ...t });
|
|
665
|
+
$t.displayName = "DialogFooter";
|
|
666
|
+
const kt = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
667
667
|
Ae,
|
|
668
668
|
{
|
|
669
669
|
ref: o,
|
|
@@ -671,32 +671,32 @@ const $t = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
|
671
671
|
...t
|
|
672
672
|
}
|
|
673
673
|
));
|
|
674
|
-
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
const
|
|
674
|
+
kt.displayName = Ae.displayName;
|
|
675
|
+
const Lt = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(Ce, { ref: o, className: m("text-sm text-muted", e), ...t }));
|
|
676
|
+
Lt.displayName = Ce.displayName;
|
|
677
|
+
const Xa = _o.forwardRef(
|
|
678
678
|
({ id: e, title: t, description: o, onClose: a, content: s, className: i, open: c, onOpenChange: d, footer: u, ...l }, g) => /* @__PURE__ */ r(
|
|
679
|
-
|
|
679
|
+
ga,
|
|
680
680
|
{
|
|
681
681
|
open: !0,
|
|
682
682
|
onOpenChange: (v) => {
|
|
683
683
|
!v && a && a();
|
|
684
684
|
},
|
|
685
|
-
children: /* @__PURE__ */ w(
|
|
686
|
-
/* @__PURE__ */ w(
|
|
687
|
-
/* @__PURE__ */ r(
|
|
688
|
-
/* @__PURE__ */ w(
|
|
685
|
+
children: /* @__PURE__ */ w(Mt, { ref: g, className: m("flex flex-col gap-0 px-0 py-0", i), ...l, children: [
|
|
686
|
+
/* @__PURE__ */ w(Ft, { className: "sticky left-0 right-0 top-0 z-50 border-b border-b-border bg-white", children: [
|
|
687
|
+
/* @__PURE__ */ r(kt, { className: "flex h-[57px] w-full items-center justify-start px-5 md:h-[65px] md:justify-center md:px-[30px]", children: t }),
|
|
688
|
+
/* @__PURE__ */ w(ha, { className: "absolute right-4 top-5 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground md:right-[30px] md:top-[25px]", children: [
|
|
689
689
|
/* @__PURE__ */ r(Te.Cancel, { size: "16" }),
|
|
690
690
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
691
691
|
] })
|
|
692
692
|
] }),
|
|
693
|
-
o && /* @__PURE__ */ r(
|
|
693
|
+
o && /* @__PURE__ */ r(Lt, { children: o }),
|
|
694
694
|
s && /* @__PURE__ */ r(U, { children: s }),
|
|
695
|
-
u && /* @__PURE__ */ r(
|
|
695
|
+
u && /* @__PURE__ */ r($t, { children: u })
|
|
696
696
|
] })
|
|
697
697
|
}
|
|
698
698
|
)
|
|
699
|
-
),
|
|
699
|
+
), Qa = n.forwardRef(
|
|
700
700
|
({
|
|
701
701
|
title: e,
|
|
702
702
|
description: t,
|
|
@@ -710,16 +710,16 @@ const Ya = Po.forwardRef(
|
|
|
710
710
|
onClose: l,
|
|
711
711
|
theme: g = "primary",
|
|
712
712
|
...v
|
|
713
|
-
},
|
|
714
|
-
|
|
713
|
+
}, O) => /* @__PURE__ */ r(
|
|
714
|
+
St,
|
|
715
715
|
{
|
|
716
716
|
open: !0,
|
|
717
717
|
onOpenChange: (P) => {
|
|
718
718
|
!P && l && l();
|
|
719
719
|
},
|
|
720
|
-
children: /* @__PURE__ */ w(_e, { size: d, className: u, ...v, ref:
|
|
720
|
+
children: /* @__PURE__ */ w(_e, { size: d, className: u, ...v, ref: O, children: [
|
|
721
721
|
/* @__PURE__ */ w(Se, { children: [
|
|
722
|
-
/* @__PURE__ */ w(
|
|
722
|
+
/* @__PURE__ */ w(Do.Row, { className: "items-start justify-between gap-2", children: [
|
|
723
723
|
/* @__PURE__ */ r(Ie, { children: e }),
|
|
724
724
|
/* @__PURE__ */ r(ge, { className: "h-auto w-auto border-none p-0", children: /* @__PURE__ */ r(Te.Cancel, { size: "16" }) })
|
|
725
725
|
] }),
|
|
@@ -744,7 +744,7 @@ const Ya = Po.forwardRef(
|
|
|
744
744
|
}
|
|
745
745
|
)
|
|
746
746
|
);
|
|
747
|
-
var
|
|
747
|
+
var ya = "VisuallyHidden", ne = n.forwardRef(
|
|
748
748
|
(e, t) => /* @__PURE__ */ r(
|
|
749
749
|
C.span,
|
|
750
750
|
{
|
|
@@ -767,8 +767,8 @@ var ha = "VisuallyHidden", ne = n.forwardRef(
|
|
|
767
767
|
}
|
|
768
768
|
)
|
|
769
769
|
);
|
|
770
|
-
ne.displayName =
|
|
771
|
-
var
|
|
770
|
+
ne.displayName = ya;
|
|
771
|
+
var Ja = ne, Fe = "ToastProvider", [$e, wa, Ta] = No("Toast"), [Vt, Za] = we("Toast", [Ta]), [xa, ie] = Vt(Fe), zt = (e) => {
|
|
772
772
|
const {
|
|
773
773
|
__scopeToast: t,
|
|
774
774
|
label: o = "Notification",
|
|
@@ -776,11 +776,11 @@ var Qa = ne, Fe = "ToastProvider", [$e, ya, wa] = Do("Toast"), [Lt, Ja] = we("To
|
|
|
776
776
|
swipeDirection: s = "right",
|
|
777
777
|
swipeThreshold: i = 50,
|
|
778
778
|
children: c
|
|
779
|
-
} = e, [d, u] = n.useState(null), [l, g] = n.useState(0), v = n.useRef(!1),
|
|
779
|
+
} = e, [d, u] = n.useState(null), [l, g] = n.useState(0), v = n.useRef(!1), O = n.useRef(!1);
|
|
780
780
|
return o.trim() || console.error(
|
|
781
781
|
`Invalid prop \`label\` supplied to \`${Fe}\`. Expected non-empty \`string\`.`
|
|
782
782
|
), /* @__PURE__ */ r($e.Provider, { scope: t, children: /* @__PURE__ */ r(
|
|
783
|
-
|
|
783
|
+
xa,
|
|
784
784
|
{
|
|
785
785
|
scope: t,
|
|
786
786
|
label: o,
|
|
@@ -793,20 +793,20 @@ var Qa = ne, Fe = "ToastProvider", [$e, ya, wa] = Do("Toast"), [Lt, Ja] = we("To
|
|
|
793
793
|
onToastAdd: n.useCallback(() => g((P) => P + 1), []),
|
|
794
794
|
onToastRemove: n.useCallback(() => g((P) => P - 1), []),
|
|
795
795
|
isFocusedToastEscapeKeyDownRef: v,
|
|
796
|
-
isClosePausedRef:
|
|
796
|
+
isClosePausedRef: O,
|
|
797
797
|
children: c
|
|
798
798
|
}
|
|
799
799
|
) });
|
|
800
800
|
};
|
|
801
|
-
|
|
802
|
-
var
|
|
801
|
+
zt.displayName = Fe;
|
|
802
|
+
var Wt = "ToastViewport", Ea = ["F8"], ve = "toast.viewportPause", he = "toast.viewportResume", Ut = n.forwardRef(
|
|
803
803
|
(e, t) => {
|
|
804
804
|
const {
|
|
805
805
|
__scopeToast: o,
|
|
806
|
-
hotkey: a =
|
|
806
|
+
hotkey: a = Ea,
|
|
807
807
|
label: s = "Notifications ({hotkey})",
|
|
808
808
|
...i
|
|
809
|
-
} = e, c = ie(
|
|
809
|
+
} = e, c = ie(Wt, o), d = wa(o), u = n.useRef(null), l = n.useRef(null), g = n.useRef(null), v = n.useRef(null), O = L(t, v, c.onViewportChange), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = c.toastCount > 0;
|
|
810
810
|
n.useEffect(() => {
|
|
811
811
|
const f = (b) => {
|
|
812
812
|
var T;
|
|
@@ -815,7 +815,7 @@ var zt = "ToastViewport", xa = ["F8"], ve = "toast.viewportPause", he = "toast.v
|
|
|
815
815
|
return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
|
|
816
816
|
}, [a]), n.useEffect(() => {
|
|
817
817
|
const f = u.current, b = v.current;
|
|
818
|
-
if (
|
|
818
|
+
if (S && f && b) {
|
|
819
819
|
const y = () => {
|
|
820
820
|
if (!c.isClosePausedRef.current) {
|
|
821
821
|
const R = new CustomEvent(ve);
|
|
@@ -835,11 +835,11 @@ var zt = "ToastViewport", xa = ["F8"], ve = "toast.viewportPause", he = "toast.v
|
|
|
835
835
|
f.removeEventListener("focusin", y), f.removeEventListener("focusout", D), f.removeEventListener("pointermove", y), f.removeEventListener("pointerleave", N), window.removeEventListener("blur", y), window.removeEventListener("focus", T);
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
|
-
}, [
|
|
838
|
+
}, [S, c.isClosePausedRef]);
|
|
839
839
|
const h = n.useCallback(
|
|
840
840
|
({ tabbingDirection: f }) => {
|
|
841
841
|
const y = d().map((T) => {
|
|
842
|
-
const D = T.ref.current, N = [D, ...
|
|
842
|
+
const D = T.ref.current, N = [D, ...Fa(D)];
|
|
843
843
|
return f === "forwards" ? N : N.reverse();
|
|
844
844
|
});
|
|
845
845
|
return (f === "forwards" ? y.reverse() : y).flat();
|
|
@@ -865,15 +865,15 @@ var zt = "ToastViewport", xa = ["F8"], ve = "toast.viewportPause", he = "toast.v
|
|
|
865
865
|
return f.addEventListener("keydown", b), () => f.removeEventListener("keydown", b);
|
|
866
866
|
}
|
|
867
867
|
}, [d, h]), /* @__PURE__ */ w(
|
|
868
|
-
|
|
868
|
+
bo,
|
|
869
869
|
{
|
|
870
870
|
ref: u,
|
|
871
871
|
role: "region",
|
|
872
872
|
"aria-label": s.replace("{hotkey}", P),
|
|
873
873
|
tabIndex: -1,
|
|
874
|
-
style: { pointerEvents:
|
|
874
|
+
style: { pointerEvents: S ? void 0 : "none" },
|
|
875
875
|
children: [
|
|
876
|
-
|
|
876
|
+
S && /* @__PURE__ */ r(
|
|
877
877
|
ye,
|
|
878
878
|
{
|
|
879
879
|
ref: l,
|
|
@@ -885,8 +885,8 @@ var zt = "ToastViewport", xa = ["F8"], ve = "toast.viewportPause", he = "toast.v
|
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
887
|
),
|
|
888
|
-
/* @__PURE__ */ r($e.Slot, { scope: o, children: /* @__PURE__ */ r(C.ol, { tabIndex: -1, ...i, ref:
|
|
889
|
-
|
|
888
|
+
/* @__PURE__ */ r($e.Slot, { scope: o, children: /* @__PURE__ */ r(C.ol, { tabIndex: -1, ...i, ref: O }) }),
|
|
889
|
+
S && /* @__PURE__ */ r(
|
|
890
890
|
ye,
|
|
891
891
|
{
|
|
892
892
|
ref: g,
|
|
@@ -903,10 +903,10 @@ var zt = "ToastViewport", xa = ["F8"], ve = "toast.viewportPause", he = "toast.v
|
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
905
|
);
|
|
906
|
-
|
|
907
|
-
var
|
|
906
|
+
Ut.displayName = Wt;
|
|
907
|
+
var Kt = "ToastFocusProxy", ye = n.forwardRef(
|
|
908
908
|
(e, t) => {
|
|
909
|
-
const { __scopeToast: o, onFocusFromOutsideViewport: a, ...s } = e, i = ie(
|
|
909
|
+
const { __scopeToast: o, onFocusFromOutsideViewport: a, ...s } = e, i = ie(Kt, o);
|
|
910
910
|
return /* @__PURE__ */ r(
|
|
911
911
|
ne,
|
|
912
912
|
{
|
|
@@ -924,16 +924,16 @@ var Ut = "ToastFocusProxy", ye = n.forwardRef(
|
|
|
924
924
|
);
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
|
-
ye.displayName =
|
|
928
|
-
var le = "Toast",
|
|
927
|
+
ye.displayName = Kt;
|
|
928
|
+
var le = "Toast", Da = "toast.swipeStart", Na = "toast.swipeMove", ba = "toast.swipeCancel", Ra = "toast.swipeEnd", Ht = n.forwardRef(
|
|
929
929
|
(e, t) => {
|
|
930
|
-
const { forceMount: o, open: a, defaultOpen: s, onOpenChange: i, ...c } = e, [d = !0, u] =
|
|
930
|
+
const { forceMount: o, open: a, defaultOpen: s, onOpenChange: i, ...c } = e, [d = !0, u] = Ke({
|
|
931
931
|
prop: a,
|
|
932
932
|
defaultProp: s,
|
|
933
933
|
onChange: i
|
|
934
934
|
});
|
|
935
935
|
return /* @__PURE__ */ r(se, { present: o || d, children: /* @__PURE__ */ r(
|
|
936
|
-
|
|
936
|
+
Pa,
|
|
937
937
|
{
|
|
938
938
|
open: d,
|
|
939
939
|
...c,
|
|
@@ -959,11 +959,11 @@ var le = "Toast", Ea = "toast.swipeStart", Da = "toast.swipeMove", Na = "toast.s
|
|
|
959
959
|
) });
|
|
960
960
|
}
|
|
961
961
|
);
|
|
962
|
-
|
|
963
|
-
var [
|
|
962
|
+
Ht.displayName = le;
|
|
963
|
+
var [Aa, Ca] = Vt(le, {
|
|
964
964
|
onClose() {
|
|
965
965
|
}
|
|
966
|
-
}),
|
|
966
|
+
}), Pa = n.forwardRef(
|
|
967
967
|
(e, t) => {
|
|
968
968
|
const {
|
|
969
969
|
__scopeToast: o,
|
|
@@ -976,9 +976,9 @@ var [Ra, Aa] = Lt(le, {
|
|
|
976
976
|
onResume: l,
|
|
977
977
|
onSwipeStart: g,
|
|
978
978
|
onSwipeMove: v,
|
|
979
|
-
onSwipeCancel:
|
|
979
|
+
onSwipeCancel: O,
|
|
980
980
|
onSwipeEnd: P,
|
|
981
|
-
...
|
|
981
|
+
...S
|
|
982
982
|
} = e, h = ie(le, o), [f, b] = n.useState(null), y = L(t, (p) => b(p)), T = n.useRef(null), D = n.useRef(null), N = s || h.duration, R = n.useRef(0), F = n.useRef(N), H = n.useRef(0), { onToastAdd: V, onToastRemove: ce } = h, z = oe(() => {
|
|
983
983
|
var A;
|
|
984
984
|
(f == null ? void 0 : f.contains(document.activeElement)) && ((A = h.viewport) == null || A.focus()), c();
|
|
@@ -1004,10 +1004,10 @@ var [Ra, Aa] = Lt(le, {
|
|
|
1004
1004
|
}, [h.viewport, N, u, l, $]), n.useEffect(() => {
|
|
1005
1005
|
i && !h.isClosePausedRef.current && $(N);
|
|
1006
1006
|
}, [i, N, h.isClosePausedRef, $]), n.useEffect(() => (V(), () => ce()), [V, ce]);
|
|
1007
|
-
const Y = n.useMemo(() => f ?
|
|
1007
|
+
const Y = n.useMemo(() => f ? Qt(f) : null, [f]);
|
|
1008
1008
|
return h.viewport ? /* @__PURE__ */ w(U, { children: [
|
|
1009
1009
|
Y && /* @__PURE__ */ r(
|
|
1010
|
-
|
|
1010
|
+
_a,
|
|
1011
1011
|
{
|
|
1012
1012
|
__scopeToast: o,
|
|
1013
1013
|
role: "status",
|
|
@@ -1016,9 +1016,9 @@ var [Ra, Aa] = Lt(le, {
|
|
|
1016
1016
|
children: Y
|
|
1017
1017
|
}
|
|
1018
1018
|
),
|
|
1019
|
-
/* @__PURE__ */ r(
|
|
1019
|
+
/* @__PURE__ */ r(Aa, { scope: o, onClose: z, children: Mo.createPortal(
|
|
1020
1020
|
/* @__PURE__ */ r($e.ItemSlot, { scope: o, children: /* @__PURE__ */ r(
|
|
1021
|
-
|
|
1021
|
+
Ro,
|
|
1022
1022
|
{
|
|
1023
1023
|
asChild: !0,
|
|
1024
1024
|
onEscapeKeyDown: E(d, () => {
|
|
@@ -1033,7 +1033,7 @@ var [Ra, Aa] = Lt(le, {
|
|
|
1033
1033
|
tabIndex: 0,
|
|
1034
1034
|
"data-state": i ? "open" : "closed",
|
|
1035
1035
|
"data-swipe-direction": h.swipeDirection,
|
|
1036
|
-
...
|
|
1036
|
+
...S,
|
|
1037
1037
|
ref: y,
|
|
1038
1038
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
1039
1039
|
onKeyDown: E(e.onKeyDown, (p) => {
|
|
@@ -1044,10 +1044,10 @@ var [Ra, Aa] = Lt(le, {
|
|
|
1044
1044
|
}),
|
|
1045
1045
|
onPointerMove: E(e.onPointerMove, (p) => {
|
|
1046
1046
|
if (!T.current) return;
|
|
1047
|
-
const A = p.clientX - T.current.x, M = p.clientY - T.current.y, B = !!D.current, G = ["left", "right"].includes(h.swipeDirection), X = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max,
|
|
1048
|
-
B ? (D.current = Q, Z(
|
|
1047
|
+
const A = p.clientX - T.current.x, M = p.clientY - T.current.y, B = !!D.current, G = ["left", "right"].includes(h.swipeDirection), X = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, uo = G ? X(0, A) : 0, po = G ? 0 : X(0, M), de = p.pointerType === "touch" ? 10 : 2, Q = { x: uo, y: po }, Le = { originalEvent: p, delta: Q };
|
|
1048
|
+
B ? (D.current = Q, Z(Na, v, Le, {
|
|
1049
1049
|
discrete: !1
|
|
1050
|
-
})) :
|
|
1050
|
+
})) : Ue(Q, h.swipeDirection, de) ? (D.current = Q, Z(Da, g, Le, {
|
|
1051
1051
|
discrete: !1
|
|
1052
1052
|
}), p.target.setPointerCapture(p.pointerId)) : (Math.abs(A) > de || Math.abs(M) > de) && (T.current = null);
|
|
1053
1053
|
}),
|
|
@@ -1055,11 +1055,11 @@ var [Ra, Aa] = Lt(le, {
|
|
|
1055
1055
|
const A = D.current, M = p.target;
|
|
1056
1056
|
if (M.hasPointerCapture(p.pointerId) && M.releasePointerCapture(p.pointerId), D.current = null, T.current = null, A) {
|
|
1057
1057
|
const B = p.currentTarget, G = { originalEvent: p, delta: A };
|
|
1058
|
-
|
|
1058
|
+
Ue(A, h.swipeDirection, h.swipeThreshold) ? Z(Ra, P, G, {
|
|
1059
1059
|
discrete: !0
|
|
1060
1060
|
}) : Z(
|
|
1061
|
-
|
|
1062
|
-
|
|
1061
|
+
ba,
|
|
1062
|
+
O,
|
|
1063
1063
|
G,
|
|
1064
1064
|
{
|
|
1065
1065
|
discrete: !0
|
|
@@ -1077,43 +1077,43 @@ var [Ra, Aa] = Lt(le, {
|
|
|
1077
1077
|
) })
|
|
1078
1078
|
] }) : null;
|
|
1079
1079
|
}
|
|
1080
|
-
),
|
|
1080
|
+
), _a = (e) => {
|
|
1081
1081
|
const { __scopeToast: t, children: o, ...a } = e, s = ie(le, t), [i, c] = n.useState(!1), [d, u] = n.useState(!1);
|
|
1082
|
-
return
|
|
1082
|
+
return Ia(() => c(!0)), n.useEffect(() => {
|
|
1083
1083
|
const l = window.setTimeout(() => u(!0), 1e3);
|
|
1084
1084
|
return () => window.clearTimeout(l);
|
|
1085
|
-
}, []), d ? null : /* @__PURE__ */ r(
|
|
1085
|
+
}, []), d ? null : /* @__PURE__ */ r(He, { asChild: !0, children: /* @__PURE__ */ r(ne, { ...a, children: i && /* @__PURE__ */ w(U, { children: [
|
|
1086
1086
|
s.label,
|
|
1087
1087
|
" ",
|
|
1088
1088
|
o
|
|
1089
1089
|
] }) }) });
|
|
1090
|
-
},
|
|
1090
|
+
}, Sa = "ToastTitle", Bt = n.forwardRef(
|
|
1091
1091
|
(e, t) => {
|
|
1092
1092
|
const { __scopeToast: o, ...a } = e;
|
|
1093
1093
|
return /* @__PURE__ */ r(C.div, { ...a, ref: t });
|
|
1094
1094
|
}
|
|
1095
1095
|
);
|
|
1096
|
-
|
|
1097
|
-
var
|
|
1096
|
+
Bt.displayName = Sa;
|
|
1097
|
+
var Oa = "ToastDescription", Gt = n.forwardRef(
|
|
1098
1098
|
(e, t) => {
|
|
1099
1099
|
const { __scopeToast: o, ...a } = e;
|
|
1100
1100
|
return /* @__PURE__ */ r(C.div, { ...a, ref: t });
|
|
1101
1101
|
}
|
|
1102
1102
|
);
|
|
1103
|
-
|
|
1104
|
-
var
|
|
1103
|
+
Gt.displayName = Oa;
|
|
1104
|
+
var qt = "ToastAction", jt = n.forwardRef(
|
|
1105
1105
|
(e, t) => {
|
|
1106
1106
|
const { altText: o, ...a } = e;
|
|
1107
|
-
return o.trim() ? /* @__PURE__ */ r(
|
|
1108
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
1107
|
+
return o.trim() ? /* @__PURE__ */ r(Xt, { altText: o, asChild: !0, children: /* @__PURE__ */ r(ke, { ...a, ref: t }) }) : (console.error(
|
|
1108
|
+
`Invalid prop \`altText\` supplied to \`${qt}\`. Expected non-empty \`string\`.`
|
|
1109
1109
|
), null);
|
|
1110
1110
|
}
|
|
1111
1111
|
);
|
|
1112
|
-
|
|
1113
|
-
var
|
|
1112
|
+
jt.displayName = qt;
|
|
1113
|
+
var Yt = "ToastClose", ke = n.forwardRef(
|
|
1114
1114
|
(e, t) => {
|
|
1115
|
-
const { __scopeToast: o, ...a } = e, s =
|
|
1116
|
-
return /* @__PURE__ */ r(
|
|
1115
|
+
const { __scopeToast: o, ...a } = e, s = Ca(Yt, o);
|
|
1116
|
+
return /* @__PURE__ */ r(Xt, { asChild: !0, children: /* @__PURE__ */ r(
|
|
1117
1117
|
C.button,
|
|
1118
1118
|
{
|
|
1119
1119
|
type: "button",
|
|
@@ -1124,8 +1124,8 @@ var jt = "ToastClose", ke = n.forwardRef(
|
|
|
1124
1124
|
) });
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
|
-
ke.displayName =
|
|
1128
|
-
var
|
|
1127
|
+
ke.displayName = Yt;
|
|
1128
|
+
var Xt = n.forwardRef((e, t) => {
|
|
1129
1129
|
const { __scopeToast: o, altText: a, ...s } = e;
|
|
1130
1130
|
return /* @__PURE__ */ r(
|
|
1131
1131
|
C.div,
|
|
@@ -1137,42 +1137,42 @@ var Yt = n.forwardRef((e, t) => {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
);
|
|
1139
1139
|
});
|
|
1140
|
-
function
|
|
1140
|
+
function Qt(e) {
|
|
1141
1141
|
const t = [];
|
|
1142
1142
|
return Array.from(e.childNodes).forEach((a) => {
|
|
1143
|
-
if (a.nodeType === a.TEXT_NODE && a.textContent && t.push(a.textContent),
|
|
1143
|
+
if (a.nodeType === a.TEXT_NODE && a.textContent && t.push(a.textContent), Ma(a)) {
|
|
1144
1144
|
const s = a.ariaHidden || a.hidden || a.style.display === "none", i = a.dataset.radixToastAnnounceExclude === "";
|
|
1145
1145
|
if (!s)
|
|
1146
1146
|
if (i) {
|
|
1147
1147
|
const c = a.dataset.radixToastAnnounceAlt;
|
|
1148
1148
|
c && t.push(c);
|
|
1149
1149
|
} else
|
|
1150
|
-
t.push(...
|
|
1150
|
+
t.push(...Qt(a));
|
|
1151
1151
|
}
|
|
1152
1152
|
}), t;
|
|
1153
1153
|
}
|
|
1154
1154
|
function Z(e, t, o, { discrete: a }) {
|
|
1155
1155
|
const s = o.originalEvent.currentTarget, i = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: o });
|
|
1156
|
-
t && s.addEventListener(e, t, { once: !0 }), a ?
|
|
1156
|
+
t && s.addEventListener(e, t, { once: !0 }), a ? Co(s, i) : s.dispatchEvent(i);
|
|
1157
1157
|
}
|
|
1158
|
-
var
|
|
1158
|
+
var Ue = (e, t, o = 0) => {
|
|
1159
1159
|
const a = Math.abs(e.x), s = Math.abs(e.y), i = a > s;
|
|
1160
1160
|
return t === "left" || t === "right" ? i && a > o : !i && s > o;
|
|
1161
1161
|
};
|
|
1162
|
-
function
|
|
1162
|
+
function Ia(e = () => {
|
|
1163
1163
|
}) {
|
|
1164
1164
|
const t = oe(e);
|
|
1165
|
-
|
|
1165
|
+
Ao(() => {
|
|
1166
1166
|
let o = 0, a = 0;
|
|
1167
1167
|
return o = window.requestAnimationFrame(() => a = window.requestAnimationFrame(t)), () => {
|
|
1168
1168
|
window.cancelAnimationFrame(o), window.cancelAnimationFrame(a);
|
|
1169
1169
|
};
|
|
1170
1170
|
}, [t]);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Ma(e) {
|
|
1173
1173
|
return e.nodeType === e.ELEMENT_NODE;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Fa(e) {
|
|
1176
1176
|
const t = [], o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1177
1177
|
acceptNode: (a) => {
|
|
1178
1178
|
const s = a.tagName === "INPUT" && a.type === "hidden";
|
|
@@ -1186,30 +1186,30 @@ function me(e) {
|
|
|
1186
1186
|
const t = document.activeElement;
|
|
1187
1187
|
return e.some((o) => o === t ? !0 : (o.focus(), document.activeElement !== t));
|
|
1188
1188
|
}
|
|
1189
|
-
var
|
|
1190
|
-
const
|
|
1189
|
+
var $a = zt, Jt = Ut, Zt = Ht, eo = Bt, to = Gt, oo = jt, ao = ke;
|
|
1190
|
+
const ka = $a, La = {
|
|
1191
1191
|
"top-left": "top-0 left-0 bottom-auto mt-10 items-start",
|
|
1192
1192
|
"top-center": "top-0 left-1/2 bottom-auto transform -translate-x-1/2 mt-10 items-center",
|
|
1193
1193
|
"top-right": "top-0 right-0 bottom-auto items-end mt-10",
|
|
1194
1194
|
"bottom-left": "top-auto bottom-4 left-0 items-start",
|
|
1195
1195
|
"bottom-center": "top-auto bottom-4 left-1/2 transform -translate-x-1/2 items-center",
|
|
1196
1196
|
"bottom-right": "top-auto bottom-4 right-0 items-end"
|
|
1197
|
-
},
|
|
1198
|
-
|
|
1197
|
+
}, ro = n.forwardRef(({ className: e, id: t, position: o = "top-center", ...a }, s) => /* @__PURE__ */ r(
|
|
1198
|
+
Jt,
|
|
1199
1199
|
{
|
|
1200
1200
|
ref: s,
|
|
1201
1201
|
id: t,
|
|
1202
1202
|
className: m(
|
|
1203
1203
|
"fixed z-[100] flex flex-col-reverse gap-2 p-4 outline-none ring-transparent md:p-10",
|
|
1204
|
-
|
|
1204
|
+
La[o],
|
|
1205
1205
|
e
|
|
1206
1206
|
),
|
|
1207
1207
|
...a
|
|
1208
1208
|
}
|
|
1209
1209
|
));
|
|
1210
|
-
|
|
1211
|
-
const
|
|
1212
|
-
"group pointer-events-auto
|
|
1210
|
+
ro.displayName = Jt.displayName;
|
|
1211
|
+
const Va = Po(
|
|
1212
|
+
"group pointer-events-auto bg-opacity-90 overflow-hidden rounded-lg border shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-top-full",
|
|
1213
1213
|
{
|
|
1214
1214
|
variants: {
|
|
1215
1215
|
variant: {
|
|
@@ -1230,27 +1230,27 @@ const La = Co(
|
|
|
1230
1230
|
size: "fit"
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
),
|
|
1234
|
-
|
|
1233
|
+
), so = n.forwardRef(({ className: e, variant: t, size: o, ...a }, s) => /* @__PURE__ */ r(
|
|
1234
|
+
Zt,
|
|
1235
1235
|
{
|
|
1236
1236
|
ref: s,
|
|
1237
|
-
className: m(
|
|
1237
|
+
className: m(Va({ variant: t, size: o }), e),
|
|
1238
1238
|
duration: 3e3,
|
|
1239
1239
|
...a
|
|
1240
1240
|
}
|
|
1241
1241
|
));
|
|
1242
|
-
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1242
|
+
so.displayName = Zt.displayName;
|
|
1243
|
+
const no = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(
|
|
1244
|
+
oo,
|
|
1245
1245
|
{
|
|
1246
1246
|
ref: o,
|
|
1247
1247
|
className: m(K({ variant: "outline", size: "sm", theme: "secondary" }), e),
|
|
1248
1248
|
...t
|
|
1249
1249
|
}
|
|
1250
1250
|
));
|
|
1251
|
-
|
|
1252
|
-
const
|
|
1253
|
-
|
|
1251
|
+
no.displayName = oo.displayName;
|
|
1252
|
+
const io = n.forwardRef(({ className: e, children: t, ...o }, a) => /* @__PURE__ */ r(
|
|
1253
|
+
ao,
|
|
1254
1254
|
{
|
|
1255
1255
|
ref: a,
|
|
1256
1256
|
className: m("absolute right-1.5 top-1.5 rounded-md p-1 focus:outline-none", e),
|
|
@@ -1259,21 +1259,21 @@ const no = n.forwardRef(({ className: e, children: t, ...o }, a) => /* @__PURE__
|
|
|
1259
1259
|
children: t
|
|
1260
1260
|
}
|
|
1261
1261
|
));
|
|
1262
|
-
|
|
1263
|
-
const
|
|
1264
|
-
io.displayName = Zt.displayName;
|
|
1265
|
-
const lo = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(eo, { ref: o, className: m("text-sm font-normal", e), ...t }));
|
|
1262
|
+
io.displayName = ao.displayName;
|
|
1263
|
+
const lo = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(eo, { ref: o, className: m("text-sm font-semibold", e), ...t }));
|
|
1266
1264
|
lo.displayName = eo.displayName;
|
|
1267
|
-
|
|
1268
|
-
|
|
1265
|
+
const co = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(to, { ref: o, className: m("text-sm font-normal", e), ...t }));
|
|
1266
|
+
co.displayName = to.displayName;
|
|
1267
|
+
function er() {
|
|
1268
|
+
const { toasts: e } = Go(), t = e.reduce(
|
|
1269
1269
|
(o, a) => {
|
|
1270
1270
|
const s = a.position || "top-center";
|
|
1271
1271
|
return o[s] || (o[s] = []), o[s].push(a), o;
|
|
1272
1272
|
},
|
|
1273
1273
|
{}
|
|
1274
1274
|
);
|
|
1275
|
-
return /* @__PURE__ */ r(
|
|
1276
|
-
/* @__PURE__ */ r(
|
|
1275
|
+
return /* @__PURE__ */ r(So, { children: Object.entries(t).map(([o, a]) => /* @__PURE__ */ w(ka, { children: [
|
|
1276
|
+
/* @__PURE__ */ r(ro, { position: o }),
|
|
1277
1277
|
a.map(function(s) {
|
|
1278
1278
|
const {
|
|
1279
1279
|
id: i,
|
|
@@ -1283,24 +1283,23 @@ function Za() {
|
|
|
1283
1283
|
actionBtnText: l = "확인",
|
|
1284
1284
|
closeButton: g = !1,
|
|
1285
1285
|
variant: v = "black",
|
|
1286
|
-
...
|
|
1287
|
-
} = s, P = v === "black" ? "solid" : "outline",
|
|
1288
|
-
return /* @__PURE__ */ w(
|
|
1289
|
-
|
|
1286
|
+
...O
|
|
1287
|
+
} = s, P = v === "black" ? "solid" : "outline", S = u && l;
|
|
1288
|
+
return /* @__PURE__ */ r(so, { variant: v, ...O, children: /* @__PURE__ */ w(
|
|
1289
|
+
Ve,
|
|
1290
1290
|
{
|
|
1291
|
-
|
|
1292
|
-
|
|
1291
|
+
className: m("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4", {
|
|
1292
|
+
"items-end": c,
|
|
1293
1293
|
"pr-7": g,
|
|
1294
|
-
"
|
|
1294
|
+
"justify-center": !S
|
|
1295
1295
|
}),
|
|
1296
|
-
...S,
|
|
1297
1296
|
children: [
|
|
1298
|
-
/* @__PURE__ */ w(
|
|
1299
|
-
c && c.trim().length > 0 && /* @__PURE__ */ r(
|
|
1300
|
-
/* @__PURE__ */ r(
|
|
1297
|
+
/* @__PURE__ */ w(Ve, { className: "flex flex-col gap-1", children: [
|
|
1298
|
+
c && c.trim().length > 0 && /* @__PURE__ */ r(lo, { children: c }),
|
|
1299
|
+
/* @__PURE__ */ r(co, { children: d })
|
|
1301
1300
|
] }),
|
|
1302
|
-
|
|
1303
|
-
|
|
1301
|
+
S && /* @__PURE__ */ r(
|
|
1302
|
+
no,
|
|
1304
1303
|
{
|
|
1305
1304
|
altText: i || "toast action",
|
|
1306
1305
|
onClick: u,
|
|
@@ -1314,7 +1313,7 @@ function Za() {
|
|
|
1314
1313
|
children: l
|
|
1315
1314
|
}
|
|
1316
1315
|
),
|
|
1317
|
-
g && /* @__PURE__ */ r(
|
|
1316
|
+
g && /* @__PURE__ */ r(io, { children: /* @__PURE__ */ r(
|
|
1318
1317
|
Te.Cancel,
|
|
1319
1318
|
{
|
|
1320
1319
|
size: "10",
|
|
@@ -1325,56 +1324,55 @@ function Za() {
|
|
|
1325
1324
|
}
|
|
1326
1325
|
) })
|
|
1327
1326
|
]
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
);
|
|
1327
|
+
}
|
|
1328
|
+
) }, i);
|
|
1331
1329
|
})
|
|
1332
1330
|
] }, o)) });
|
|
1333
1331
|
}
|
|
1334
|
-
const
|
|
1335
|
-
const [t, o] =
|
|
1336
|
-
return
|
|
1332
|
+
const tr = ({ children: e }) => {
|
|
1333
|
+
const [t, o] = Oo(null);
|
|
1334
|
+
return Io(() => {
|
|
1337
1335
|
let a = document.getElementById("portal");
|
|
1338
1336
|
a || (a = document.createElement("div"), a.id = "portal", document.body.appendChild(a)), o(a);
|
|
1339
|
-
}, []), t ?
|
|
1337
|
+
}, []), t ? Fo.createPortal(e, t) : null;
|
|
1340
1338
|
};
|
|
1341
1339
|
export {
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1340
|
+
ja as A,
|
|
1341
|
+
no as B,
|
|
1342
|
+
io as C,
|
|
1343
|
+
ga as D,
|
|
1344
|
+
co as E,
|
|
1345
|
+
ka as F,
|
|
1346
|
+
lo as G,
|
|
1347
|
+
ro as H,
|
|
1348
|
+
Qa as M,
|
|
1349
|
+
tr as P,
|
|
1350
|
+
Ja as R,
|
|
1351
|
+
er as T,
|
|
1352
|
+
Mt as a,
|
|
1353
|
+
Xa as b,
|
|
1354
|
+
St as c,
|
|
1357
1355
|
Me as d,
|
|
1358
1356
|
ge as e,
|
|
1359
1357
|
_e as f,
|
|
1360
1358
|
re as g,
|
|
1361
1359
|
Oe as h,
|
|
1362
1360
|
Se as i,
|
|
1363
|
-
|
|
1364
|
-
|
|
1361
|
+
Ot as j,
|
|
1362
|
+
fa as k,
|
|
1365
1363
|
Ie as l,
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1364
|
+
qa as m,
|
|
1365
|
+
ha as n,
|
|
1366
|
+
Lt as o,
|
|
1367
|
+
Ba as p,
|
|
1368
|
+
$t as q,
|
|
1369
|
+
Ft as r,
|
|
1370
|
+
It as s,
|
|
1371
|
+
Bo as t,
|
|
1372
|
+
va as u,
|
|
1373
|
+
kt as v,
|
|
1374
|
+
Ya as w,
|
|
1375
|
+
La as x,
|
|
1376
|
+
Va as y,
|
|
1377
|
+
so as z
|
|
1380
1378
|
};
|