twenty-ui 2.52.0 → 2.53.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/{AllIcons-fCCVOqoJ.js → AllIcons-B9FfQJ70.js} +1 -1
- package/dist/{Dropdown-D3LPyrQI.js → Dropdown-COpO_G9D.js} +51 -50
- package/dist/Dropdown-DaSktKdb.cjs +1 -0
- package/dist/{ListItem-g1B--M70.cjs → ListItem-Br5oDPc-.cjs} +1 -1
- package/dist/{ListItem-DR7Xh2WV.js → ListItem-txrdGXhb.js} +2 -2
- package/dist/{OverflowingTextWithTooltip-Cky5WlIk.js → OverflowingTextWithTooltip-CAQ-5aUp.js} +34 -33
- package/dist/OverflowingTextWithTooltip-CuWHF8_e.cjs +1 -0
- package/dist/{ProgressBar-BO0MkswY.js → ProgressBar-CPm791xc.js} +11 -11
- package/dist/Radio-BdbEXBOH.cjs +1 -0
- package/dist/Radio-D1PpZdqz.js +176 -0
- package/dist/TablerIcons-B6BhOlW_.js +463 -0
- package/dist/components/data-display.mjs +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +1 -1
- package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +1 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +7 -7
- package/dist/{data-display-B7beM2yK.js → data-display-BhQyFKeZ.js} +1 -1
- package/dist/{data-display-C3Q_8G-N.cjs → data-display-CZEwUZlM.cjs} +1 -1
- package/dist/{data-display-CHKKTmH_.js → data-display-DVEhI2Rt.js} +89 -89
- package/dist/{feedback-DHATp8in.js → feedback-B3Qc_Igx.js} +65 -65
- package/dist/{feedback-3S9S-Xi9.cjs → feedback-BvCwRZad.cjs} +1 -1
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-C3fz8p3W.js → icon-BlUO7C4w.js} +2 -2
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +491 -490
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +639 -638
- package/dist/input-B8_4jnPT.cjs +1 -0
- package/dist/{input-jkwxjdtI.js → input-Btg-WsT6.js} +121 -120
- package/dist/{input-BLU0vrJM.js → input-BwQqV8Wf.js} +538 -536
- package/dist/input-CEiXoyRz.cjs +1 -0
- package/dist/{layout-4nLOjbJA.js → layout-4p7UQD7l.js} +29 -28
- package/dist/{layout-DEoY3Qd0.cjs → layout-DHW99Ejj.cjs} +1 -1
- package/dist/{navigation-CSSOuhFm.cjs → navigation-CP1g7ng9.cjs} +1 -1
- package/dist/{navigation-iP54gZTV.js → navigation-DQe6WaUF.js} +4 -4
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +4 -4
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +1 -1
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +2 -2
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +7 -7
- package/dist/{settings-BmsLbd-g.js → settings-D3AWPKyH.js} +1 -1
- package/dist/{settings-DGwyi63i.cjs → settings-RYocb2Xg.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{typography-sorTYmvG.js → typography-BisXuVpu.js} +1 -1
- package/dist/{typography-DeFnsH3k.cjs → typography-D7VnzZiR.cjs} +1 -1
- package/dist/utilities/internal/formatCssLength.d.ts +1 -0
- package/package.json +2 -2
- package/dist/Dropdown-h5-yIsU7.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-Dmsmy-9g.cjs +0 -1
- package/dist/Radio-BK47Ig6J.cjs +0 -1
- package/dist/Radio-WuoC3hJ5.js +0 -175
- package/dist/TablerIcons-CqzhliLC.js +0 -462
- package/dist/input-BLUZOGq8.cjs +0 -1
- package/dist/input-DRIIJ4Zd.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as d } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
2
|
+
import { t as N } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
+
import { Ec as Z, Ni as ee, _i as _e, i as M, ws as he } from "./TablerIcons-B6BhOlW_.js";
|
|
4
4
|
import { t as I } from "./doNotTranslate-BSVT8Xyd.js";
|
|
5
5
|
import { a as Te, r as ge, t as Ce } from "./theme-CuGIQBsJ.js";
|
|
6
6
|
import { t as be } from "./mergeClassNames-ClFMR1v0.js";
|
|
7
7
|
import { t as z } from "./Button-Dd8cNsn1.js";
|
|
8
|
-
import { n as te, r as we, t as xe } from "./ProgressBar-
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
8
|
+
import { n as te, r as we, t as xe } from "./ProgressBar-CPm791xc.js";
|
|
9
|
+
import { t as Ne } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
10
|
+
import { t as ye } from "./OverflowingTextWithTooltip-CAQ-5aUp.js";
|
|
11
|
+
import { t as Ae } from "./Separator-0LzwPfOn.js";
|
|
12
12
|
import { useRender as D } from "@base-ui/react/use-render";
|
|
13
13
|
import { isNonEmptyArray as $, isPositiveInteger as Ee, isString as Pe, isUndefined as Ie } from "@sniptt/guards";
|
|
14
14
|
import { clsx as k } from "clsx";
|
|
15
15
|
import { createContext as oe, useCallback as Re, useContext as j, useEffect as Se, useLayoutEffect as R, useMemo as ke, useRef as We, useState as P, useSyncExternalStore as Oe } from "react";
|
|
16
16
|
import { Fragment as S, jsx as c, jsxs as g } from "react/jsx-runtime";
|
|
17
|
-
import { Store as ze, useStore as
|
|
18
|
-
import { createPortal as
|
|
19
|
-
var
|
|
17
|
+
import { Store as ze, useStore as qe } from "@base-ui/utils/store";
|
|
18
|
+
import { createPortal as Be } from "react-dom";
|
|
19
|
+
var Me = "_action_3r2bm_1", Fe = { action: Me }, De = ({ className: e, ...t }) => /* @__PURE__ */ c(z, {
|
|
20
20
|
...t,
|
|
21
21
|
size: "sm",
|
|
22
22
|
variant: "ghost",
|
|
@@ -33,11 +33,11 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
33
33
|
description: Ge,
|
|
34
34
|
footer: Je,
|
|
35
35
|
closeButton: Qe
|
|
36
|
-
}, Ye = ({ status: e = "info", variant: t = "soft", color: o = we[e], title: s, description: r, fullWidth: a = !1, icon: n = /* @__PURE__ */ c(
|
|
36
|
+
}, Ye = ({ status: e = "info", variant: t = "soft", color: o = we[e], title: s, description: r, fullWidth: a = !1, icon: n = /* @__PURE__ */ c(_e, {
|
|
37
37
|
size: Te.icon.size.md,
|
|
38
38
|
"aria-hidden": "true"
|
|
39
39
|
}), action: v, closeLabel: f = I("Close"), onDismiss: m, className: _, render: h, ref: u, ...l }) => {
|
|
40
|
-
const i =
|
|
40
|
+
const i = N(n), p = N(v);
|
|
41
41
|
return D({
|
|
42
42
|
render: h,
|
|
43
43
|
ref: u,
|
|
@@ -63,7 +63,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
63
63
|
}),
|
|
64
64
|
d(m) && /* @__PURE__ */ c(z, {
|
|
65
65
|
type: "button",
|
|
66
|
-
startIcon: /* @__PURE__ */ c(
|
|
66
|
+
startIcon: /* @__PURE__ */ c(Z, { "aria-hidden": "true" }),
|
|
67
67
|
className: T.closeButton,
|
|
68
68
|
variant: "ghost",
|
|
69
69
|
size: "sm",
|
|
@@ -72,7 +72,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
72
72
|
})
|
|
73
73
|
]
|
|
74
74
|
}),
|
|
75
|
-
|
|
75
|
+
N(r) && /* @__PURE__ */ c("div", {
|
|
76
76
|
className: k(T.descriptionWrapper, i && T.descriptionWrapperWithIcon, p && T.descriptionWrapperWithAction),
|
|
77
77
|
children: /* @__PURE__ */ c("div", {
|
|
78
78
|
className: T.description,
|
|
@@ -94,7 +94,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
94
94
|
bannerText: st,
|
|
95
95
|
compact: rt,
|
|
96
96
|
fullWidth: nt
|
|
97
|
-
}, it = ({ children: e, layout: t = "standard", variant: o = "soft", embedded: s = !1, fullWidth: r = !1, icon: a = /* @__PURE__ */ c(
|
|
97
|
+
}, it = ({ children: e, layout: t = "standard", variant: o = "soft", embedded: s = !1, fullWidth: r = !1, icon: a = /* @__PURE__ */ c(ee, { "aria-hidden": "true" }), className: n, ...v }) => {
|
|
98
98
|
const f = t === "compact", m = !f && Pe(e);
|
|
99
99
|
return /* @__PURE__ */ c(te, {
|
|
100
100
|
...v,
|
|
@@ -103,12 +103,12 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
103
103
|
"data-layout": t,
|
|
104
104
|
children: /* @__PURE__ */ g("div", {
|
|
105
105
|
className: E.bannerContent,
|
|
106
|
-
children: [
|
|
106
|
+
children: [N(a) && /* @__PURE__ */ c("span", {
|
|
107
107
|
className: E.icon,
|
|
108
108
|
children: a
|
|
109
109
|
}), /* @__PURE__ */ c("div", {
|
|
110
110
|
className: E.bannerText,
|
|
111
|
-
children: m ? /* @__PURE__ */ c(
|
|
111
|
+
children: m ? /* @__PURE__ */ c(ye, {
|
|
112
112
|
isFocusable: !0,
|
|
113
113
|
text: /* @__PURE__ */ c(S, { children: e }),
|
|
114
114
|
tooltipContent: e
|
|
@@ -116,37 +116,37 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
116
116
|
})]
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
|
-
}, lo = Object.assign(it, { Action: te.Action }),
|
|
120
|
-
const s = t.filter((n) =>
|
|
119
|
+
}, lo = Object.assign(it, { Action: te.Action }), y = (e) => e.status === "visible", q = ({ store: e, toastsToClose: t, nextToasts: o = e.state.toasts }) => {
|
|
120
|
+
const s = t.filter((n) => y(n) && e.state.toasts.includes(n)), r = o.map((n) => s.includes(n) ? {
|
|
121
121
|
...n,
|
|
122
122
|
status: "closing"
|
|
123
123
|
} : n), a = e.state.mountedToasterCount > 0;
|
|
124
|
-
e.set("toasts", a ? r : r.filter(
|
|
124
|
+
e.set("toasts", a ? r : r.filter(y));
|
|
125
125
|
for (const n of s) n.notification.onClose?.();
|
|
126
|
-
}, se = oe(void 0),
|
|
126
|
+
}, se = oe(void 0), A = () => {
|
|
127
127
|
const e = j(se);
|
|
128
128
|
if (!d(e)) throw new Error(I("Toast components must be used within a ToastProvider."));
|
|
129
129
|
return e;
|
|
130
130
|
}, re = () => {
|
|
131
|
-
const e =
|
|
131
|
+
const e = A();
|
|
132
132
|
return { closeToast: (o) => {
|
|
133
133
|
if (!e.lifecycle.isActive()) return;
|
|
134
|
-
const s = e.state.toasts.filter((r) =>
|
|
135
|
-
$(s) &&
|
|
134
|
+
const s = e.state.toasts.filter((r) => y(r) && (!d(o) || r.notification.id === o));
|
|
135
|
+
$(s) && q({
|
|
136
136
|
store: e,
|
|
137
137
|
toastsToClose: s
|
|
138
138
|
});
|
|
139
139
|
} };
|
|
140
140
|
}, Q = 0, Y = () => (Q += 1, `toast-${Q}`), at = () => {
|
|
141
|
-
const e =
|
|
141
|
+
const e = A();
|
|
142
142
|
return { enqueueToast: ke(() => {
|
|
143
143
|
function t(o) {
|
|
144
144
|
if (!d(o)) return;
|
|
145
145
|
if (!e.lifecycle.isActive()) return Y();
|
|
146
|
-
const { dedupeKey: s, ...r } = o, { toasts: a, limit: n } = e.state, v = a.filter(
|
|
146
|
+
const { dedupeKey: s, ...r } = o, { toasts: a, limit: n } = e.state, v = a.filter(y), f = d(s) ? v.find((h) => h.dedupeKey === s) : void 0;
|
|
147
147
|
if (d(f)) return f.notification.id;
|
|
148
148
|
const m = Y(), _ = Math.max(0, v.length - n + 1);
|
|
149
|
-
return
|
|
149
|
+
return q({
|
|
150
150
|
store: e,
|
|
151
151
|
toastsToClose: v.slice(0, _),
|
|
152
152
|
nextToasts: [...a, {
|
|
@@ -163,7 +163,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
163
163
|
}, [e]) };
|
|
164
164
|
}, ct = ({ store: e, id: t, ...o }) => {
|
|
165
165
|
if (!e.lifecycle.isActive()) return;
|
|
166
|
-
const s = e.state.toasts.find((n) => n.notification.id === t &&
|
|
166
|
+
const s = e.state.toasts.find((n) => n.notification.id === t && y(n)), r = Object.keys(o);
|
|
167
167
|
if (!d(s) || !$(r)) return;
|
|
168
168
|
const a = r.includes("duration") || d(s.notification.progress) && r.includes("progress") && !d(o.progress);
|
|
169
169
|
e.set("toasts", e.state.toasts.map((n) => n === s ? {
|
|
@@ -176,7 +176,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
176
176
|
...a ? { durationRevision: (n.durationRevision ?? 0) + 1 } : {}
|
|
177
177
|
} : n));
|
|
178
178
|
}, lt = () => {
|
|
179
|
-
const e =
|
|
179
|
+
const e = A();
|
|
180
180
|
return { updateToast: Re((t) => ct({
|
|
181
181
|
store: e,
|
|
182
182
|
...t
|
|
@@ -271,21 +271,21 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
271
271
|
e,
|
|
272
272
|
t,
|
|
273
273
|
o
|
|
274
|
-
]), null), ne = 6e3, ie = (e) => Number.isFinite(e) && e > 0, wt = "_countdown_1vuo8_1", xt = "_toastCountdown_1vuo8_1",
|
|
274
|
+
]), null), ne = 6e3, ie = (e) => Number.isFinite(e) && e > 0, wt = "_countdown_1vuo8_1", xt = "_toastCountdown_1vuo8_1", Nt = {
|
|
275
275
|
countdown: wt,
|
|
276
276
|
toastCountdown: xt
|
|
277
|
-
},
|
|
277
|
+
}, yt = ({ progress: e, duration: t, remainingDuration: o, revision: s, isPaused: r, barColor: a }) => d(e) ? /* @__PURE__ */ c(xe, {
|
|
278
278
|
value: e,
|
|
279
279
|
barColor: a
|
|
280
280
|
}) : ie(t) ? /* @__PURE__ */ c("div", {
|
|
281
|
-
className:
|
|
281
|
+
className: Nt.countdown,
|
|
282
282
|
"data-paused": r || void 0,
|
|
283
283
|
style: {
|
|
284
284
|
"--toast-countdown-color": a,
|
|
285
285
|
"--toast-countdown-width": `${o / t * 100}%`,
|
|
286
286
|
"--toast-countdown-duration": `${o}ms`
|
|
287
287
|
}
|
|
288
|
-
}, s) : null,
|
|
288
|
+
}, s) : null, At = 2 ** 31 - 1, Et = ({ onChange: e }) => {
|
|
289
289
|
let t, o = 0, s, r, a = 0, n = 0, v = !1;
|
|
290
290
|
const f = () => {
|
|
291
291
|
n += 1, d(s) && (o = Math.max(0, o - (performance.now() - s)), s = void 0), clearTimeout(r), r = void 0;
|
|
@@ -310,7 +310,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
310
310
|
}
|
|
311
311
|
_();
|
|
312
312
|
}
|
|
313
|
-
}, Math.min(o,
|
|
313
|
+
}, Math.min(o, At));
|
|
314
314
|
};
|
|
315
315
|
return {
|
|
316
316
|
update: (i) => {
|
|
@@ -353,13 +353,13 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
353
353
|
setClock: n
|
|
354
354
|
};
|
|
355
355
|
}, It = {
|
|
356
|
-
neutral:
|
|
357
|
-
error:
|
|
358
|
-
success:
|
|
359
|
-
info:
|
|
360
|
-
warning:
|
|
356
|
+
neutral: M,
|
|
357
|
+
error: M,
|
|
358
|
+
success: he,
|
|
359
|
+
info: ee,
|
|
360
|
+
warning: M
|
|
361
361
|
}, Rt = ({ children: e, description: t, icon: o, iconLabel: s, action: r, progress: a, duration: n = ne, onCancel: v, onClose: f, cancelLabel: m = I("Cancel"), closeLabel: _ = I("Close"), status: h = "neutral", role: u = "status", className: l, onMouseEnter: i, onMouseLeave: p, onFocus: x, onBlur: C, render: W, ref: le, ...de }) => {
|
|
362
|
-
const L = ge(), [ue, K] = P(!1), [H,
|
|
362
|
+
const L = ge(), [ue, K] = P(!1), [H, B] = P(!1), [ve, fe] = P(null), V = ue || H, { countdown: O, clock: X, setClock: me } = Pt({
|
|
363
363
|
duration: n,
|
|
364
364
|
isPaused: V
|
|
365
365
|
}), pe = It[h], G = L.snackBar[h === "neutral" ? "default" : h], J = Ie(o) ? /* @__PURE__ */ c(pe, {
|
|
@@ -384,16 +384,16 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
384
384
|
K(!1), p?.(w);
|
|
385
385
|
},
|
|
386
386
|
onFocus: (w) => {
|
|
387
|
-
|
|
387
|
+
B(!0), x?.(w);
|
|
388
388
|
},
|
|
389
389
|
onBlur: (w) => {
|
|
390
|
-
w.currentTarget.contains(w.relatedTarget) ||
|
|
390
|
+
w.currentTarget.contains(w.relatedTarget) || B(!1), C?.(w);
|
|
391
391
|
},
|
|
392
392
|
children: /* @__PURE__ */ g(S, { children: [
|
|
393
393
|
/* @__PURE__ */ c("div", {
|
|
394
394
|
className: b.progress,
|
|
395
395
|
"aria-hidden": !0,
|
|
396
|
-
children: /* @__PURE__ */ c(
|
|
396
|
+
children: /* @__PURE__ */ c(yt, {
|
|
397
397
|
barColor: G.backgroundColor,
|
|
398
398
|
progress: a,
|
|
399
399
|
duration: O.duration,
|
|
@@ -405,7 +405,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
405
405
|
/* @__PURE__ */ g("div", {
|
|
406
406
|
className: b.header,
|
|
407
407
|
children: [
|
|
408
|
-
|
|
408
|
+
N(J) && /* @__PURE__ */ c("div", {
|
|
409
409
|
className: b.icon,
|
|
410
410
|
children: J
|
|
411
411
|
}),
|
|
@@ -415,7 +415,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
415
415
|
}),
|
|
416
416
|
/* @__PURE__ */ g("div", {
|
|
417
417
|
className: b.actions,
|
|
418
|
-
children: [d(v) &&
|
|
418
|
+
children: [d(v) && N(m) && /* @__PURE__ */ c(z, {
|
|
419
419
|
onClick: v,
|
|
420
420
|
size: "sm",
|
|
421
421
|
variant: "ghost",
|
|
@@ -424,7 +424,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
424
424
|
}), d(f) && /* @__PURE__ */ c(z, {
|
|
425
425
|
title: _,
|
|
426
426
|
"aria-label": _,
|
|
427
|
-
startIcon: /* @__PURE__ */ c(
|
|
427
|
+
startIcon: /* @__PURE__ */ c(Z, {}),
|
|
428
428
|
className: b.closeButton,
|
|
429
429
|
variant: "ghost",
|
|
430
430
|
size: "sm",
|
|
@@ -433,13 +433,13 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
433
433
|
})
|
|
434
434
|
]
|
|
435
435
|
}),
|
|
436
|
-
|
|
436
|
+
N(t) && /* @__PURE__ */ c("div", {
|
|
437
437
|
className: b.description,
|
|
438
438
|
children: t
|
|
439
439
|
}),
|
|
440
|
-
|
|
440
|
+
N(r) && /* @__PURE__ */ g("div", {
|
|
441
441
|
className: b.footer,
|
|
442
|
-
children: [/* @__PURE__ */ c(
|
|
442
|
+
children: [/* @__PURE__ */ c(Ae, {}), /* @__PURE__ */ c("div", {
|
|
443
443
|
className: b.footerAction,
|
|
444
444
|
children: r
|
|
445
445
|
})]
|
|
@@ -450,7 +450,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
450
450
|
/* @__PURE__ */ c(bt, {
|
|
451
451
|
element: ve,
|
|
452
452
|
isFocused: H,
|
|
453
|
-
onFocusChange:
|
|
453
|
+
onFocusChange: B
|
|
454
454
|
}),
|
|
455
455
|
/* @__PURE__ */ c(Ct, {
|
|
456
456
|
clock: X,
|
|
@@ -466,13 +466,13 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
466
466
|
}, St = ({ store: e, limit: t }) => {
|
|
467
467
|
if (ce(t), e.state.limit === t) return;
|
|
468
468
|
e.set("limit", t);
|
|
469
|
-
const o = e.state.toasts.filter(
|
|
470
|
-
s !== 0 &&
|
|
469
|
+
const o = e.state.toasts.filter(y), s = Math.max(0, o.length - t);
|
|
470
|
+
s !== 0 && q({
|
|
471
471
|
store: e,
|
|
472
472
|
toastsToClose: o.slice(0, s)
|
|
473
473
|
});
|
|
474
474
|
}, kt = ({ limit: e }) => {
|
|
475
|
-
const t =
|
|
475
|
+
const t = A();
|
|
476
476
|
return Se(() => t.lifecycle.mount(), [t]), R(() => St({
|
|
477
477
|
store: t,
|
|
478
478
|
limit: e
|
|
@@ -520,8 +520,8 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
520
520
|
isPaused: x,
|
|
521
521
|
isActive: i.status === "visible",
|
|
522
522
|
onClose: () => {
|
|
523
|
-
const C = e.state.toasts.find((W) => W.notification.id === u &&
|
|
524
|
-
!o || !d(C) ||
|
|
523
|
+
const C = e.state.toasts.find((W) => W.notification.id === u && y(W));
|
|
524
|
+
!o || !d(C) || q({
|
|
525
525
|
store: e,
|
|
526
526
|
toastsToClose: [C]
|
|
527
527
|
});
|
|
@@ -570,12 +570,12 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
570
570
|
value: o,
|
|
571
571
|
children: [e, /* @__PURE__ */ c(kt, { limit: t })]
|
|
572
572
|
});
|
|
573
|
-
},
|
|
574
|
-
root:
|
|
575
|
-
item:
|
|
576
|
-
itemContent:
|
|
577
|
-
}, Ft = () =>
|
|
578
|
-
const s =
|
|
573
|
+
}, qt = "_root_1q2cc_1", Bt = "_item_1q2cc_20", Mt = "_itemContent_1q2cc_47", F = {
|
|
574
|
+
root: qt,
|
|
575
|
+
item: Bt,
|
|
576
|
+
itemContent: Mt
|
|
577
|
+
}, Ft = () => qe(A(), (e) => e.toasts), Dt = ({ elementRef: e, toastEntry: t, rendererKey: o }) => {
|
|
578
|
+
const s = A();
|
|
579
579
|
return R(() => {
|
|
580
580
|
if (t.status === "visible") return;
|
|
581
581
|
const r = () => s.lifecycle.finishExit({
|
|
@@ -599,7 +599,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
599
599
|
o
|
|
600
600
|
]), null;
|
|
601
601
|
}, $t = ({ toastEntry: e, getToastProps: t, onClose: o }) => {
|
|
602
|
-
const { notification: s, status: r, durationRevision: a = 0 } = e, { id: n, ...v } = s, f =
|
|
602
|
+
const { notification: s, status: r, durationRevision: a = 0 } = e, { id: n, ...v } = s, f = A(), m = t?.(s), [_] = P(() => /* @__PURE__ */ Symbol()), h = We(null);
|
|
603
603
|
return /* @__PURE__ */ g(S, { children: [/* @__PURE__ */ c("div", {
|
|
604
604
|
ref: h,
|
|
605
605
|
className: F.item,
|
|
@@ -637,12 +637,12 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
637
637
|
onClose: o
|
|
638
638
|
}, s.notification.id));
|
|
639
639
|
}, Ut = () => {
|
|
640
|
-
const e =
|
|
640
|
+
const e = A();
|
|
641
641
|
return R(() => (e.set("mountedToasterCount", e.state.mountedToasterCount + 1), () => {
|
|
642
|
-
e.set("mountedToasterCount", e.state.mountedToasterCount - 1), !(e.state.mountedToasterCount > 0) && e.set("toasts", e.state.toasts.filter(
|
|
642
|
+
e.set("mountedToasterCount", e.state.mountedToasterCount - 1), !(e.state.mountedToasterCount > 0) && e.set("toasts", e.state.toasts.filter(y));
|
|
643
643
|
}), [e]), null;
|
|
644
644
|
}, fo = ({ container: e, getToastProps: t, className: o, render: s, ref: r, ...a }) => {
|
|
645
|
-
const n = Ce(), v =
|
|
645
|
+
const n = Ce(), v = Ne(), f = e === void 0 ? n ?? (typeof document > "u" ? null : document.body) : e, m = D({
|
|
646
646
|
render: s,
|
|
647
647
|
ref: r,
|
|
648
648
|
props: {
|
|
@@ -654,7 +654,7 @@ var Be = "_action_3r2bm_1", Fe = { action: Be }, De = ({ className: e, ...t }) =
|
|
|
654
654
|
children: /* @__PURE__ */ g(S, { children: [/* @__PURE__ */ c(Ut, {}), /* @__PURE__ */ c(jt, { getToastProps: t })] })
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
|
-
return d(f) ?
|
|
657
|
+
return d(f) ? Be(m, f) : null;
|
|
658
658
|
};
|
|
659
659
|
export {
|
|
660
660
|
lo as a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const z=require("./theme-BJRNJNPO.cjs"),d=require("./isDefined-DS2Q42p5.cjs"),y=require("./isRenderableSlot-Guryb6Nf.cjs"),P=require("./doNotTranslate-CHE7WmRS.cjs"),fe=require("./mergeClassNames-D4lshrT6.cjs"),I=require("./Button-Du8T-dOv.cjs"),O=require("./ProgressBar-BG38LPgC.cjs"),ve=require("./useProvidedTextDirection-PVaoQCLH.cjs"),_e=require("./OverflowingTextWithTooltip-Dmsmy-9g.cjs"),me=require("./Separator-UJVlrTzw.cjs");let F=require("@base-ui/react/use-render"),E=require("@sniptt/guards"),R=require("clsx"),p=require("react"),r=require("react/jsx-runtime"),Q=require("@base-ui/utils/store"),pe=require("react-dom"),j=require("@tabler/icons-react");var Te="_action_3r2bm_1",xe={action:Te},he=({className:e,...t})=>(0,r.jsx)(I.Button,{...t,size:"sm",variant:"ghost",className:fe.mergeClassNames(xe.action,e)}),ge="_container_1ix4w_1",be="_containerFullWidth_1ix4w_40",Ce="_header_1ix4w_44",je="_iconContainer_1ix4w_53",we="_title_1ix4w_63",ye="_descriptionWrapper_1ix4w_75",De="_descriptionWrapperWithIcon_1ix4w_82",Ne="_descriptionWrapperWithAction_1ix4w_86",qe="_description_1ix4w_75",Pe="_footer_1ix4w_99",Ee="_closeButton_1ix4w_106",h={container:ge,containerFullWidth:be,header:Ce,iconContainer:je,title:we,descriptionWrapper:ye,descriptionWrapperWithIcon:De,descriptionWrapperWithAction:Ne,description:qe,footer:Pe,closeButton:Ee},Re=({status:e="info",variant:t="soft",color:s=O.FEEDBACK_STATUS_COLORS[e],title:n,description:o,fullWidth:c=!1,icon:i=(0,r.jsx)(j.IconHelp,{size:z.themeCssVariables.icon.size.md,"aria-hidden":"true"}),action:f,closeLabel:v=P.doNotTranslate("Close"),onDismiss:_,className:T,render:x,ref:l,...u})=>{const a=y.isRenderableSlot(i),m=y.isRenderableSlot(f);return(0,F.useRender)({render:x,ref:l,state:{status:e,variant:t,color:s},props:{...u,className:(0,R.clsx)(h.container,c&&h.containerFullWidth,T),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:h.header,children:[a&&(0,r.jsx)("div",{className:h.iconContainer,children:i}),(0,r.jsx)("div",{className:h.title,children:n}),d.isDefined(_)&&(0,r.jsx)(I.Button,{type:"button",startIcon:(0,r.jsx)(j.IconX,{"aria-hidden":"true"}),className:h.closeButton,variant:"ghost",size:"sm","aria-label":v,onClick:()=>_()})]}),y.isRenderableSlot(o)&&(0,r.jsx)("div",{className:(0,R.clsx)(h.descriptionWrapper,a&&h.descriptionWrapperWithIcon,m&&h.descriptionWrapperWithAction),children:(0,r.jsx)("div",{className:h.description,children:o})}),m&&(0,r.jsx)("div",{className:h.footer,children:f})]})}})},Ae=Object.assign(Re,{Action:he}),Se="_banner_qbpcz_1",Ie="_embedded_qbpcz_6",Oe="_bannerContent_qbpcz_10",ke="_icon_qbpcz_18",We="_bannerText_qbpcz_28",Be="_compact_qbpcz_33",ze="_fullWidth_qbpcz_58",q={banner:Se,embedded:Ie,bannerContent:Oe,icon:ke,bannerText:We,compact:Be,fullWidth:ze},Fe=({children:e,layout:t="standard",variant:s="soft",embedded:n=!1,fullWidth:o=!1,icon:c=(0,r.jsx)(j.IconInfoCircle,{"aria-hidden":"true"}),className:i,...f})=>{const v=t==="compact",_=!v&&(0,E.isString)(e);return(0,r.jsx)(O.Banner,{...f,className:(0,R.clsx)(q.banner,v&&q.compact,n&&q.embedded,o&&q.fullWidth,i),variant:s,"data-layout":t,children:(0,r.jsxs)("div",{className:q.bannerContent,children:[y.isRenderableSlot(c)&&(0,r.jsx)("span",{className:q.icon,children:c}),(0,r.jsx)("div",{className:q.bannerText,children:_?(0,r.jsx)(_e.OverflowingTextWithTooltip,{isFocusable:!0,text:(0,r.jsx)(r.Fragment,{children:e}),tooltipContent:e}):e})]})})},Me=Object.assign(Fe,{Action:O.Banner.Action}),D=e=>e.status==="visible",k=({store:e,toastsToClose:t,nextToasts:s=e.state.toasts})=>{const n=t.filter(i=>D(i)&&e.state.toasts.includes(i)),o=s.map(i=>n.includes(i)?{...i,status:"closing"}:i),c=e.state.mountedToasterCount>0;e.set("toasts",c?o:o.filter(D));for(const i of n)i.notification.onClose?.()},Y=(0,p.createContext)(void 0),N=()=>{const e=(0,p.useContext)(Y);if(!d.isDefined(e))throw new Error(P.doNotTranslate("Toast components must be used within a ToastProvider."));return e},Z=()=>{const e=N();return{closeToast:s=>{if(!e.lifecycle.isActive())return;const n=e.state.toasts.filter(o=>D(o)&&(!d.isDefined(s)||o.notification.id===s));(0,E.isNonEmptyArray)(n)&&k({store:e,toastsToClose:n})}}},G=0,J=()=>(G+=1,`toast-${G}`),Le=()=>{const e=N();return{enqueueToast:(0,p.useMemo)(()=>{function t(s){if(!d.isDefined(s))return;if(!e.lifecycle.isActive())return J();const{dedupeKey:n,...o}=s,{toasts:c,limit:i}=e.state,f=c.filter(D),v=d.isDefined(n)?f.find(x=>x.dedupeKey===n):void 0;if(d.isDefined(v))return v.notification.id;const _=J(),T=Math.max(0,f.length-i+1);return k({store:e,toastsToClose:f.slice(0,T),nextToasts:[...c,{notification:{...o,id:_},dedupeKey:n,status:"visible"}]}),_}return t},[e])}},$e=({store:e,id:t,...s})=>{if(!e.lifecycle.isActive())return;const n=e.state.toasts.find(i=>i.notification.id===t&&D(i)),o=Object.keys(s);if(!d.isDefined(n)||!(0,E.isNonEmptyArray)(o))return;const c=o.includes("duration")||d.isDefined(n.notification.progress)&&o.includes("progress")&&!d.isDefined(s.progress);e.set("toasts",e.state.toasts.map(i=>i===n?{...i,notification:{...i.notification,...s,id:t},...c?{durationRevision:(i.durationRevision??0)+1}:{}}:i))},Ue=()=>{const e=N();return{updateToast:(0,p.useCallback)(t=>$e({store:e,...t}),[e])}},Ke=()=>{const{closeToast:e}=Z(),{enqueueToast:t}=Le(),{updateToast:s}=Ue();return{enqueueToast:t,closeToast:e,updateToast:s}},He="_root_181ka_1",Ve="_progress_181ka_19",Xe="_header_181ka_30",Ge="_message_181ka_40",Je="_icon_181ka_45",Qe="_actions_181ka_50",Ye="_description_181ka_56",Ze="_footer_181ka_65",et="_footerAction_181ka_69",tt="_closeButton_181ka_76",b={root:He,progress:Ve,header:Xe,message:Ge,icon:Je,actions:Qe,description:Ye,footer:Ze,footerAction:et,closeButton:tt},M=(0,p.createContext)({durationRevision:0,isActive:!0}),st=({clock:e,onClockChange:t,duration:s,progress:n,isPaused:o,onClose:c})=>{const{durationRevision:i,isActive:f,lifecycle:v,id:_,rendererKey:T,timingOverrides:x}=(0,p.useContext)(M),l=d.isDefined(v)&&d.isDefined(_)&&d.isDefined(T),u=l?void 0:e,a=d.isDefined(n),m=d.isDefined(x)&&Object.prototype.propertyIsEnumerable.call(x,"duration"),w=d.isDefined(x)&&Object.prototype.propertyIsEnumerable.call(x,"progress");return(0,p.useLayoutEffect)(()=>{if(l){t(v.updateRenderer({id:_,key:T,configuration:{duration:m?s:void 0,isProgress:w?a:void 0,isPaused:o}}));return}u?.update({duration:s,durationRevision:i,isPaused:o,isProgress:a,isActive:f,onClose:c})},[u,t,l,s,i,o,a,f,c,v,_,T,m,w]),(0,p.useLayoutEffect)(()=>()=>{if(l){v.removeRenderer({id:_,key:T});return}u?.stop()},[u,v,_,T,l]),null},nt=({element:e,isFocused:t,onFocusChange:s})=>((0,p.useLayoutEffect)(()=>{if(!t||!d.isDefined(e))return;const n=()=>{e.contains(e.ownerDocument.activeElement)||s(!1)};n();const o=new MutationObserver(n);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()},[e,t,s]),null),ee=6e3,te=e=>Number.isFinite(e)&&e>0,rt="_countdown_1vuo8_1",ot="_toastCountdown_1vuo8_1",it={countdown:rt,toastCountdown:ot},at=({progress:e,duration:t,remainingDuration:s,revision:n,isPaused:o,barColor:c})=>d.isDefined(e)?(0,r.jsx)(O.ProgressBar,{value:e,barColor:c}):te(t)?(0,r.jsx)("div",{className:it.countdown,"data-paused":o||void 0,style:{"--toast-countdown-color":c,"--toast-countdown-width":`${s/t*100}%`,"--toast-countdown-duration":`${s}ms`}},n):null,ct=2**31-1,ut=({onChange:e})=>{let t,s=0,n,o,c=0,i=0,f=!1;const v=()=>{i+=1,d.isDefined(n)&&(s=Math.max(0,s-(performance.now()-n)),n=void 0),clearTimeout(o),o=void 0},_=()=>{d.isDefined(t)&&(c+=1,e({duration:t.duration,remainingDuration:s,revision:c,isPaused:t.isPaused||!t.isActive}))},T=()=>{f||(v(),f=!0,s=0,_(),t?.onClose?.())},x=()=>d.isDefined(t)&&t.isActive&&!t.isPaused&&!t.isProgress&&te(t.duration)&&!f,l=()=>{if(!x())return;n=performance.now();const a=i;o=setTimeout(()=>{if(a===i){if(v(),s>0){l();return}T()}},Math.min(s,ct))};return{update:a=>{const m=!d.isDefined(t)||a.duration!==t.duration||a.durationRevision!==t.durationRevision||t.isProgress&&!a.isProgress,w=m||a.isProgress!==t?.isProgress||a.isPaused!==t?.isPaused||a.isActive!==t?.isActive,g=!d.isDefined(n)&&x();if(!w&&!g){t=a;return}v(),t=a,!f&&(m&&(s=Math.max(0,a.duration)),_(),l())},close:T,stop:v}},se=({duration:e,isPaused:t})=>{let s={duration:e,remainingDuration:e,revision:0,isPaused:t};const n=new Set;return{...ut({onChange:o=>{s=o;for(const c of n)c()}}),getSnapshot:()=>s,subscribe:o=>(n.add(o),()=>{n.delete(o)})}},dt=({duration:e,isPaused:t})=>{const{lifecycle:s,id:n,rendererKey:o}=(0,p.useContext)(M),[c,i]=(0,p.useState)(()=>(d.isDefined(s)&&d.isDefined(n)&&d.isDefined(o)?s.getCountdown(n):void 0)??se({duration:e,isPaused:t}));return{countdown:(0,p.useSyncExternalStore)(c.subscribe,c.getSnapshot,c.getSnapshot),clock:c,setClock:i}},lt={neutral:j.IconAlertTriangle,error:j.IconAlertTriangle,success:j.IconSquareRoundedCheck,info:j.IconInfoCircle,warning:j.IconAlertTriangle},ne=({children:e,description:t,icon:s,iconLabel:n,action:o,progress:c,duration:i=ee,onCancel:f,onClose:v,cancelLabel:_=P.doNotTranslate("Cancel"),closeLabel:T=P.doNotTranslate("Close"),status:x="neutral",role:l="status",className:u,onMouseEnter:a,onMouseLeave:m,onFocus:w,onBlur:g,render:A,ref:oe,...ie})=>{const L=z.useTheme(),[ae,$]=(0,p.useState)(!1),[U,W]=(0,p.useState)(!1),[ce,ue]=(0,p.useState)(null),K=ae||U,{countdown:S,clock:H,setClock:de}=dt({duration:i,isPaused:K}),le=lt[x],V=L.snackBar[x==="neutral"?"default":x],X=(0,E.isUndefined)(s)?(0,r.jsx)(le,{"aria-label":n,"aria-hidden":!d.isDefined(n),color:V.color,size:L.icon.size.md}):s;return(0,r.jsxs)(r.Fragment,{children:[(0,F.useRender)({render:A,ref:[oe??null,ue],props:{role:l,"aria-live":l==="alert"?"assertive":"polite",...ie,className:(0,R.clsx)(b.root,u),onMouseEnter:C=>{$(!0),a?.(C)},onMouseLeave:C=>{$(!1),m?.(C)},onFocus:C=>{W(!0),w?.(C)},onBlur:C=>{C.currentTarget.contains(C.relatedTarget)||W(!1),g?.(C)},children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:b.progress,"aria-hidden":!0,children:(0,r.jsx)(at,{barColor:V.backgroundColor,progress:c,duration:S.duration,remainingDuration:S.remainingDuration,revision:S.revision,isPaused:S.isPaused})}),(0,r.jsxs)("div",{className:b.header,children:[y.isRenderableSlot(X)&&(0,r.jsx)("div",{className:b.icon,children:X}),(0,r.jsx)("div",{className:b.message,children:e}),(0,r.jsxs)("div",{className:b.actions,children:[d.isDefined(f)&&y.isRenderableSlot(_)&&(0,r.jsx)(I.Button,{onClick:f,size:"sm",variant:"ghost",style:{fontWeight:"var(--t-font-weight-regular)"},children:_}),d.isDefined(v)&&(0,r.jsx)(I.Button,{title:T,"aria-label":T,startIcon:(0,r.jsx)(j.IconX,{}),className:b.closeButton,variant:"ghost",size:"sm",onClick:H.close})]})]}),y.isRenderableSlot(t)&&(0,r.jsx)("div",{className:b.description,children:t}),y.isRenderableSlot(o)&&(0,r.jsxs)("div",{className:b.footer,children:[(0,r.jsx)(me.Separator,{}),(0,r.jsx)("div",{className:b.footerAction,children:o})]})]})}}),(0,r.jsx)(nt,{element:ce,isFocused:U,onFocusChange:W}),(0,r.jsx)(st,{clock:H,onClockChange:de,duration:i,progress:c,isPaused:K,onClose:v})]})},re=e=>{if(!(0,E.isPositiveInteger)(e))throw new Error(P.doNotTranslate("Toast limit must be a positive integer."))},ft=({store:e,limit:t})=>{if(re(t),e.state.limit===t)return;e.set("limit",t);const s=e.state.toasts.filter(D),n=Math.max(0,s.length-t);n!==0&&k({store:e,toastsToClose:s.slice(0,n)})},vt=({limit:e})=>{const t=N();return(0,p.useEffect)(()=>t.lifecycle.mount(),[t]),(0,p.useLayoutEffect)(()=>ft({store:t,limit:e}),[t,e]),null},_t=({store:e,toast:t})=>{const{toasts:s}=e.state;t.status==="closing"&&s.includes(t)&&e.set("toasts",s.filter(n=>n!==t))},mt=e=>{const t=new Map;let s=!1,n=!1,o=0;const c=l=>{const u=t.get(l);if(d.isDefined(u))return u;const a={countdown:se({duration:ee,isPaused:!0}),renderers:new Map};return t.set(l,a),a},i=l=>{if(!s)return;const u=t.get(l);if(!d.isDefined(u?.pendingExits)||u.pendingExits.size>0)return;const a=e.state.toasts.find(m=>m.notification.id===l);d.isDefined(a)&&_t({store:e,toast:a})},f=()=>{for(const[l,u]of t){const a=e.state.toasts.find(g=>g.notification.id===l);if(!d.isDefined(a)){u.countdown.stop(),t.delete(l);continue}const m=u.renderers.values().next().value??u.lastRenderer;u.lastRenderer=m;const w=!s||u.renderers.size===0||[...u.renderers.values()].some(g=>g.isPaused);u.countdown.update({duration:m?.duration??a.notification.duration??6e3,durationRevision:a.durationRevision??0,isProgress:m?.isProgress??d.isDefined(a.notification.progress),isPaused:w,isActive:a.status==="visible",onClose:()=>{const g=e.state.toasts.find(A=>A.notification.id===l&&D(A));!s||!d.isDefined(g)||k({store:e,toastsToClose:[g]})}}),a.status!=="visible"&&(u.pendingExits??=new Set(u.renderers.keys()),i(l))}};return{mount:()=>{s=!0,n=!1,o+=1;const l=e.subscribe(f);return f(),()=>{s=!1,l();for(const a of t.values())a.countdown.stop();const u=++o;queueMicrotask(()=>{s||o!==u||(n=!0,t.clear(),e.set("toasts",[]))})}},isActive:()=>!n,getCountdown:l=>t.get(l)?.countdown,updateRenderer:({id:l,key:u,configuration:a})=>{const m=c(l);return m.renderers.has(u)||(m.countdown.stop(),m.pendingExits?.add(u)),m.renderers.set(u,a),f(),m.countdown},removeRenderer:({id:l,key:u})=>{const a=t.get(l);d.isDefined(a)&&(a.renderers.delete(u),a.pendingExits?.delete(u),f())},finishExit:({id:l,key:u})=>{t.get(l)?.pendingExits?.delete(u),i(l)}}},pt=(e=3)=>{re(e);const t=new Q.Store({toasts:[],limit:e,mountedToasterCount:0});return Object.assign(t,{lifecycle:mt(t)})},Tt=({children:e,limit:t=3})=>{const[s]=(0,p.useState)(()=>pt(t));return(0,r.jsxs)(Y.Provider,{value:s,children:[e,(0,r.jsx)(vt,{limit:t})]})},xt="_root_1q2cc_1",ht="_item_1q2cc_20",gt="_itemContent_1q2cc_47",B={root:xt,item:ht,itemContent:gt},bt=()=>(0,Q.useStore)(N(),e=>e.toasts),Ct=({elementRef:e,toastEntry:t,rendererKey:s})=>{const n=N();return(0,p.useLayoutEffect)(()=>{if(t.status==="visible")return;const o=()=>n.lifecycle.finishExit({id:t.notification.id,key:s}),c=e.current?.getAnimations?.()??[];if(!(0,E.isNonEmptyArray)(c)){o();return}let i=!1;return Promise.allSettled(c.map(f=>f.finished)).then(()=>{i||o()}),()=>{i=!0}},[e,t,n,s]),null},jt=({toastEntry:e,getToastProps:t,onClose:s})=>{const{notification:n,status:o,durationRevision:c=0}=e,{id:i,...f}=n,v=N(),_=t?.(n),[T]=(0,p.useState)(()=>Symbol()),x=(0,p.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:x,className:B.item,"data-exiting":o==="closing"||void 0,inert:o==="closing",children:(0,r.jsx)("div",{className:B.itemContent,children:(0,r.jsx)(M.Provider,{value:{durationRevision:c,isActive:o==="visible",lifecycle:v.lifecycle,id:i,rendererKey:T,timingOverrides:_},children:(0,r.jsx)(ne,{...f,..._,id:i,onClose:()=>s(i)})})})}),(0,r.jsx)(Ct,{elementRef:x,toastEntry:e,rendererKey:T})]})},wt=({getToastProps:e})=>{const t=bt(),{closeToast:s}=Z();return t.map(n=>(0,r.jsx)(jt,{toastEntry:n,getToastProps:e,onClose:s},n.notification.id))},yt=()=>{const e=N();return(0,p.useLayoutEffect)(()=>(e.set("mountedToasterCount",e.state.mountedToasterCount+1),()=>{e.set("mountedToasterCount",e.state.mountedToasterCount-1),!(e.state.mountedToasterCount>0)&&e.set("toasts",e.state.toasts.filter(D))}),[e]),null},Dt=({container:e,getToastProps:t,className:s,render:n,ref:o,...c})=>{const i=z.useThemeContainer(),f=ve.useProvidedTextDirection(),v=e===void 0?i??(typeof document>"u"?null:document.body):e,_=(0,F.useRender)({render:n,ref:o,props:{role:"region",dir:f,"aria-label":P.doNotTranslate("Notifications"),...c,className:(0,R.clsx)(B.root,s),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(yt,{}),(0,r.jsx)(wt,{getToastProps:t})]})}});return d.isDefined(v)?(0,pe.createPortal)(_,v):null};Object.defineProperty(exports,"Callout",{enumerable:!0,get:function(){return Ae}});Object.defineProperty(exports,"InlineBanner",{enumerable:!0,get:function(){return Me}});Object.defineProperty(exports,"Toast",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"ToastProvider",{enumerable:!0,get:function(){return Tt}});Object.defineProperty(exports,"Toaster",{enumerable:!0,get:function(){return Dt}});Object.defineProperty(exports,"useToast",{enumerable:!0,get:function(){return Ke}});
|
|
1
|
+
const z=require("./theme-BJRNJNPO.cjs"),d=require("./isDefined-DS2Q42p5.cjs"),y=require("./isRenderableSlot-Guryb6Nf.cjs"),P=require("./doNotTranslate-CHE7WmRS.cjs"),fe=require("./mergeClassNames-D4lshrT6.cjs"),I=require("./Button-Du8T-dOv.cjs"),O=require("./ProgressBar-BG38LPgC.cjs"),ve=require("./useProvidedTextDirection-PVaoQCLH.cjs"),_e=require("./OverflowingTextWithTooltip-CuWHF8_e.cjs"),me=require("./Separator-UJVlrTzw.cjs");let F=require("@base-ui/react/use-render"),E=require("@sniptt/guards"),R=require("clsx"),p=require("react"),r=require("react/jsx-runtime"),Q=require("@base-ui/utils/store"),pe=require("react-dom"),j=require("@tabler/icons-react");var Te="_action_3r2bm_1",xe={action:Te},he=({className:e,...t})=>(0,r.jsx)(I.Button,{...t,size:"sm",variant:"ghost",className:fe.mergeClassNames(xe.action,e)}),ge="_container_1ix4w_1",be="_containerFullWidth_1ix4w_40",Ce="_header_1ix4w_44",je="_iconContainer_1ix4w_53",we="_title_1ix4w_63",ye="_descriptionWrapper_1ix4w_75",De="_descriptionWrapperWithIcon_1ix4w_82",Ne="_descriptionWrapperWithAction_1ix4w_86",qe="_description_1ix4w_75",Pe="_footer_1ix4w_99",Ee="_closeButton_1ix4w_106",h={container:ge,containerFullWidth:be,header:Ce,iconContainer:je,title:we,descriptionWrapper:ye,descriptionWrapperWithIcon:De,descriptionWrapperWithAction:Ne,description:qe,footer:Pe,closeButton:Ee},Re=({status:e="info",variant:t="soft",color:s=O.FEEDBACK_STATUS_COLORS[e],title:n,description:o,fullWidth:c=!1,icon:i=(0,r.jsx)(j.IconHelp,{size:z.themeCssVariables.icon.size.md,"aria-hidden":"true"}),action:f,closeLabel:v=P.doNotTranslate("Close"),onDismiss:_,className:T,render:x,ref:l,...u})=>{const a=y.isRenderableSlot(i),m=y.isRenderableSlot(f);return(0,F.useRender)({render:x,ref:l,state:{status:e,variant:t,color:s},props:{...u,className:(0,R.clsx)(h.container,c&&h.containerFullWidth,T),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:h.header,children:[a&&(0,r.jsx)("div",{className:h.iconContainer,children:i}),(0,r.jsx)("div",{className:h.title,children:n}),d.isDefined(_)&&(0,r.jsx)(I.Button,{type:"button",startIcon:(0,r.jsx)(j.IconX,{"aria-hidden":"true"}),className:h.closeButton,variant:"ghost",size:"sm","aria-label":v,onClick:()=>_()})]}),y.isRenderableSlot(o)&&(0,r.jsx)("div",{className:(0,R.clsx)(h.descriptionWrapper,a&&h.descriptionWrapperWithIcon,m&&h.descriptionWrapperWithAction),children:(0,r.jsx)("div",{className:h.description,children:o})}),m&&(0,r.jsx)("div",{className:h.footer,children:f})]})}})},Ae=Object.assign(Re,{Action:he}),Se="_banner_qbpcz_1",Ie="_embedded_qbpcz_6",Oe="_bannerContent_qbpcz_10",ke="_icon_qbpcz_18",We="_bannerText_qbpcz_28",Be="_compact_qbpcz_33",ze="_fullWidth_qbpcz_58",q={banner:Se,embedded:Ie,bannerContent:Oe,icon:ke,bannerText:We,compact:Be,fullWidth:ze},Fe=({children:e,layout:t="standard",variant:s="soft",embedded:n=!1,fullWidth:o=!1,icon:c=(0,r.jsx)(j.IconInfoCircle,{"aria-hidden":"true"}),className:i,...f})=>{const v=t==="compact",_=!v&&(0,E.isString)(e);return(0,r.jsx)(O.Banner,{...f,className:(0,R.clsx)(q.banner,v&&q.compact,n&&q.embedded,o&&q.fullWidth,i),variant:s,"data-layout":t,children:(0,r.jsxs)("div",{className:q.bannerContent,children:[y.isRenderableSlot(c)&&(0,r.jsx)("span",{className:q.icon,children:c}),(0,r.jsx)("div",{className:q.bannerText,children:_?(0,r.jsx)(_e.OverflowingTextWithTooltip,{isFocusable:!0,text:(0,r.jsx)(r.Fragment,{children:e}),tooltipContent:e}):e})]})})},Me=Object.assign(Fe,{Action:O.Banner.Action}),D=e=>e.status==="visible",k=({store:e,toastsToClose:t,nextToasts:s=e.state.toasts})=>{const n=t.filter(i=>D(i)&&e.state.toasts.includes(i)),o=s.map(i=>n.includes(i)?{...i,status:"closing"}:i),c=e.state.mountedToasterCount>0;e.set("toasts",c?o:o.filter(D));for(const i of n)i.notification.onClose?.()},Y=(0,p.createContext)(void 0),N=()=>{const e=(0,p.useContext)(Y);if(!d.isDefined(e))throw new Error(P.doNotTranslate("Toast components must be used within a ToastProvider."));return e},Z=()=>{const e=N();return{closeToast:s=>{if(!e.lifecycle.isActive())return;const n=e.state.toasts.filter(o=>D(o)&&(!d.isDefined(s)||o.notification.id===s));(0,E.isNonEmptyArray)(n)&&k({store:e,toastsToClose:n})}}},G=0,J=()=>(G+=1,`toast-${G}`),Le=()=>{const e=N();return{enqueueToast:(0,p.useMemo)(()=>{function t(s){if(!d.isDefined(s))return;if(!e.lifecycle.isActive())return J();const{dedupeKey:n,...o}=s,{toasts:c,limit:i}=e.state,f=c.filter(D),v=d.isDefined(n)?f.find(x=>x.dedupeKey===n):void 0;if(d.isDefined(v))return v.notification.id;const _=J(),T=Math.max(0,f.length-i+1);return k({store:e,toastsToClose:f.slice(0,T),nextToasts:[...c,{notification:{...o,id:_},dedupeKey:n,status:"visible"}]}),_}return t},[e])}},$e=({store:e,id:t,...s})=>{if(!e.lifecycle.isActive())return;const n=e.state.toasts.find(i=>i.notification.id===t&&D(i)),o=Object.keys(s);if(!d.isDefined(n)||!(0,E.isNonEmptyArray)(o))return;const c=o.includes("duration")||d.isDefined(n.notification.progress)&&o.includes("progress")&&!d.isDefined(s.progress);e.set("toasts",e.state.toasts.map(i=>i===n?{...i,notification:{...i.notification,...s,id:t},...c?{durationRevision:(i.durationRevision??0)+1}:{}}:i))},Ue=()=>{const e=N();return{updateToast:(0,p.useCallback)(t=>$e({store:e,...t}),[e])}},Ke=()=>{const{closeToast:e}=Z(),{enqueueToast:t}=Le(),{updateToast:s}=Ue();return{enqueueToast:t,closeToast:e,updateToast:s}},He="_root_181ka_1",Ve="_progress_181ka_19",Xe="_header_181ka_30",Ge="_message_181ka_40",Je="_icon_181ka_45",Qe="_actions_181ka_50",Ye="_description_181ka_56",Ze="_footer_181ka_65",et="_footerAction_181ka_69",tt="_closeButton_181ka_76",b={root:He,progress:Ve,header:Xe,message:Ge,icon:Je,actions:Qe,description:Ye,footer:Ze,footerAction:et,closeButton:tt},M=(0,p.createContext)({durationRevision:0,isActive:!0}),st=({clock:e,onClockChange:t,duration:s,progress:n,isPaused:o,onClose:c})=>{const{durationRevision:i,isActive:f,lifecycle:v,id:_,rendererKey:T,timingOverrides:x}=(0,p.useContext)(M),l=d.isDefined(v)&&d.isDefined(_)&&d.isDefined(T),u=l?void 0:e,a=d.isDefined(n),m=d.isDefined(x)&&Object.prototype.propertyIsEnumerable.call(x,"duration"),w=d.isDefined(x)&&Object.prototype.propertyIsEnumerable.call(x,"progress");return(0,p.useLayoutEffect)(()=>{if(l){t(v.updateRenderer({id:_,key:T,configuration:{duration:m?s:void 0,isProgress:w?a:void 0,isPaused:o}}));return}u?.update({duration:s,durationRevision:i,isPaused:o,isProgress:a,isActive:f,onClose:c})},[u,t,l,s,i,o,a,f,c,v,_,T,m,w]),(0,p.useLayoutEffect)(()=>()=>{if(l){v.removeRenderer({id:_,key:T});return}u?.stop()},[u,v,_,T,l]),null},nt=({element:e,isFocused:t,onFocusChange:s})=>((0,p.useLayoutEffect)(()=>{if(!t||!d.isDefined(e))return;const n=()=>{e.contains(e.ownerDocument.activeElement)||s(!1)};n();const o=new MutationObserver(n);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()},[e,t,s]),null),ee=6e3,te=e=>Number.isFinite(e)&&e>0,rt="_countdown_1vuo8_1",ot="_toastCountdown_1vuo8_1",it={countdown:rt,toastCountdown:ot},at=({progress:e,duration:t,remainingDuration:s,revision:n,isPaused:o,barColor:c})=>d.isDefined(e)?(0,r.jsx)(O.ProgressBar,{value:e,barColor:c}):te(t)?(0,r.jsx)("div",{className:it.countdown,"data-paused":o||void 0,style:{"--toast-countdown-color":c,"--toast-countdown-width":`${s/t*100}%`,"--toast-countdown-duration":`${s}ms`}},n):null,ct=2**31-1,ut=({onChange:e})=>{let t,s=0,n,o,c=0,i=0,f=!1;const v=()=>{i+=1,d.isDefined(n)&&(s=Math.max(0,s-(performance.now()-n)),n=void 0),clearTimeout(o),o=void 0},_=()=>{d.isDefined(t)&&(c+=1,e({duration:t.duration,remainingDuration:s,revision:c,isPaused:t.isPaused||!t.isActive}))},T=()=>{f||(v(),f=!0,s=0,_(),t?.onClose?.())},x=()=>d.isDefined(t)&&t.isActive&&!t.isPaused&&!t.isProgress&&te(t.duration)&&!f,l=()=>{if(!x())return;n=performance.now();const a=i;o=setTimeout(()=>{if(a===i){if(v(),s>0){l();return}T()}},Math.min(s,ct))};return{update:a=>{const m=!d.isDefined(t)||a.duration!==t.duration||a.durationRevision!==t.durationRevision||t.isProgress&&!a.isProgress,w=m||a.isProgress!==t?.isProgress||a.isPaused!==t?.isPaused||a.isActive!==t?.isActive,g=!d.isDefined(n)&&x();if(!w&&!g){t=a;return}v(),t=a,!f&&(m&&(s=Math.max(0,a.duration)),_(),l())},close:T,stop:v}},se=({duration:e,isPaused:t})=>{let s={duration:e,remainingDuration:e,revision:0,isPaused:t};const n=new Set;return{...ut({onChange:o=>{s=o;for(const c of n)c()}}),getSnapshot:()=>s,subscribe:o=>(n.add(o),()=>{n.delete(o)})}},dt=({duration:e,isPaused:t})=>{const{lifecycle:s,id:n,rendererKey:o}=(0,p.useContext)(M),[c,i]=(0,p.useState)(()=>(d.isDefined(s)&&d.isDefined(n)&&d.isDefined(o)?s.getCountdown(n):void 0)??se({duration:e,isPaused:t}));return{countdown:(0,p.useSyncExternalStore)(c.subscribe,c.getSnapshot,c.getSnapshot),clock:c,setClock:i}},lt={neutral:j.IconAlertTriangle,error:j.IconAlertTriangle,success:j.IconSquareRoundedCheck,info:j.IconInfoCircle,warning:j.IconAlertTriangle},ne=({children:e,description:t,icon:s,iconLabel:n,action:o,progress:c,duration:i=ee,onCancel:f,onClose:v,cancelLabel:_=P.doNotTranslate("Cancel"),closeLabel:T=P.doNotTranslate("Close"),status:x="neutral",role:l="status",className:u,onMouseEnter:a,onMouseLeave:m,onFocus:w,onBlur:g,render:A,ref:oe,...ie})=>{const L=z.useTheme(),[ae,$]=(0,p.useState)(!1),[U,W]=(0,p.useState)(!1),[ce,ue]=(0,p.useState)(null),K=ae||U,{countdown:S,clock:H,setClock:de}=dt({duration:i,isPaused:K}),le=lt[x],V=L.snackBar[x==="neutral"?"default":x],X=(0,E.isUndefined)(s)?(0,r.jsx)(le,{"aria-label":n,"aria-hidden":!d.isDefined(n),color:V.color,size:L.icon.size.md}):s;return(0,r.jsxs)(r.Fragment,{children:[(0,F.useRender)({render:A,ref:[oe??null,ue],props:{role:l,"aria-live":l==="alert"?"assertive":"polite",...ie,className:(0,R.clsx)(b.root,u),onMouseEnter:C=>{$(!0),a?.(C)},onMouseLeave:C=>{$(!1),m?.(C)},onFocus:C=>{W(!0),w?.(C)},onBlur:C=>{C.currentTarget.contains(C.relatedTarget)||W(!1),g?.(C)},children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:b.progress,"aria-hidden":!0,children:(0,r.jsx)(at,{barColor:V.backgroundColor,progress:c,duration:S.duration,remainingDuration:S.remainingDuration,revision:S.revision,isPaused:S.isPaused})}),(0,r.jsxs)("div",{className:b.header,children:[y.isRenderableSlot(X)&&(0,r.jsx)("div",{className:b.icon,children:X}),(0,r.jsx)("div",{className:b.message,children:e}),(0,r.jsxs)("div",{className:b.actions,children:[d.isDefined(f)&&y.isRenderableSlot(_)&&(0,r.jsx)(I.Button,{onClick:f,size:"sm",variant:"ghost",style:{fontWeight:"var(--t-font-weight-regular)"},children:_}),d.isDefined(v)&&(0,r.jsx)(I.Button,{title:T,"aria-label":T,startIcon:(0,r.jsx)(j.IconX,{}),className:b.closeButton,variant:"ghost",size:"sm",onClick:H.close})]})]}),y.isRenderableSlot(t)&&(0,r.jsx)("div",{className:b.description,children:t}),y.isRenderableSlot(o)&&(0,r.jsxs)("div",{className:b.footer,children:[(0,r.jsx)(me.Separator,{}),(0,r.jsx)("div",{className:b.footerAction,children:o})]})]})}}),(0,r.jsx)(nt,{element:ce,isFocused:U,onFocusChange:W}),(0,r.jsx)(st,{clock:H,onClockChange:de,duration:i,progress:c,isPaused:K,onClose:v})]})},re=e=>{if(!(0,E.isPositiveInteger)(e))throw new Error(P.doNotTranslate("Toast limit must be a positive integer."))},ft=({store:e,limit:t})=>{if(re(t),e.state.limit===t)return;e.set("limit",t);const s=e.state.toasts.filter(D),n=Math.max(0,s.length-t);n!==0&&k({store:e,toastsToClose:s.slice(0,n)})},vt=({limit:e})=>{const t=N();return(0,p.useEffect)(()=>t.lifecycle.mount(),[t]),(0,p.useLayoutEffect)(()=>ft({store:t,limit:e}),[t,e]),null},_t=({store:e,toast:t})=>{const{toasts:s}=e.state;t.status==="closing"&&s.includes(t)&&e.set("toasts",s.filter(n=>n!==t))},mt=e=>{const t=new Map;let s=!1,n=!1,o=0;const c=l=>{const u=t.get(l);if(d.isDefined(u))return u;const a={countdown:se({duration:ee,isPaused:!0}),renderers:new Map};return t.set(l,a),a},i=l=>{if(!s)return;const u=t.get(l);if(!d.isDefined(u?.pendingExits)||u.pendingExits.size>0)return;const a=e.state.toasts.find(m=>m.notification.id===l);d.isDefined(a)&&_t({store:e,toast:a})},f=()=>{for(const[l,u]of t){const a=e.state.toasts.find(g=>g.notification.id===l);if(!d.isDefined(a)){u.countdown.stop(),t.delete(l);continue}const m=u.renderers.values().next().value??u.lastRenderer;u.lastRenderer=m;const w=!s||u.renderers.size===0||[...u.renderers.values()].some(g=>g.isPaused);u.countdown.update({duration:m?.duration??a.notification.duration??6e3,durationRevision:a.durationRevision??0,isProgress:m?.isProgress??d.isDefined(a.notification.progress),isPaused:w,isActive:a.status==="visible",onClose:()=>{const g=e.state.toasts.find(A=>A.notification.id===l&&D(A));!s||!d.isDefined(g)||k({store:e,toastsToClose:[g]})}}),a.status!=="visible"&&(u.pendingExits??=new Set(u.renderers.keys()),i(l))}};return{mount:()=>{s=!0,n=!1,o+=1;const l=e.subscribe(f);return f(),()=>{s=!1,l();for(const a of t.values())a.countdown.stop();const u=++o;queueMicrotask(()=>{s||o!==u||(n=!0,t.clear(),e.set("toasts",[]))})}},isActive:()=>!n,getCountdown:l=>t.get(l)?.countdown,updateRenderer:({id:l,key:u,configuration:a})=>{const m=c(l);return m.renderers.has(u)||(m.countdown.stop(),m.pendingExits?.add(u)),m.renderers.set(u,a),f(),m.countdown},removeRenderer:({id:l,key:u})=>{const a=t.get(l);d.isDefined(a)&&(a.renderers.delete(u),a.pendingExits?.delete(u),f())},finishExit:({id:l,key:u})=>{t.get(l)?.pendingExits?.delete(u),i(l)}}},pt=(e=3)=>{re(e);const t=new Q.Store({toasts:[],limit:e,mountedToasterCount:0});return Object.assign(t,{lifecycle:mt(t)})},Tt=({children:e,limit:t=3})=>{const[s]=(0,p.useState)(()=>pt(t));return(0,r.jsxs)(Y.Provider,{value:s,children:[e,(0,r.jsx)(vt,{limit:t})]})},xt="_root_1q2cc_1",ht="_item_1q2cc_20",gt="_itemContent_1q2cc_47",B={root:xt,item:ht,itemContent:gt},bt=()=>(0,Q.useStore)(N(),e=>e.toasts),Ct=({elementRef:e,toastEntry:t,rendererKey:s})=>{const n=N();return(0,p.useLayoutEffect)(()=>{if(t.status==="visible")return;const o=()=>n.lifecycle.finishExit({id:t.notification.id,key:s}),c=e.current?.getAnimations?.()??[];if(!(0,E.isNonEmptyArray)(c)){o();return}let i=!1;return Promise.allSettled(c.map(f=>f.finished)).then(()=>{i||o()}),()=>{i=!0}},[e,t,n,s]),null},jt=({toastEntry:e,getToastProps:t,onClose:s})=>{const{notification:n,status:o,durationRevision:c=0}=e,{id:i,...f}=n,v=N(),_=t?.(n),[T]=(0,p.useState)(()=>Symbol()),x=(0,p.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:x,className:B.item,"data-exiting":o==="closing"||void 0,inert:o==="closing",children:(0,r.jsx)("div",{className:B.itemContent,children:(0,r.jsx)(M.Provider,{value:{durationRevision:c,isActive:o==="visible",lifecycle:v.lifecycle,id:i,rendererKey:T,timingOverrides:_},children:(0,r.jsx)(ne,{...f,..._,id:i,onClose:()=>s(i)})})})}),(0,r.jsx)(Ct,{elementRef:x,toastEntry:e,rendererKey:T})]})},wt=({getToastProps:e})=>{const t=bt(),{closeToast:s}=Z();return t.map(n=>(0,r.jsx)(jt,{toastEntry:n,getToastProps:e,onClose:s},n.notification.id))},yt=()=>{const e=N();return(0,p.useLayoutEffect)(()=>(e.set("mountedToasterCount",e.state.mountedToasterCount+1),()=>{e.set("mountedToasterCount",e.state.mountedToasterCount-1),!(e.state.mountedToasterCount>0)&&e.set("toasts",e.state.toasts.filter(D))}),[e]),null},Dt=({container:e,getToastProps:t,className:s,render:n,ref:o,...c})=>{const i=z.useThemeContainer(),f=ve.useProvidedTextDirection(),v=e===void 0?i??(typeof document>"u"?null:document.body):e,_=(0,F.useRender)({render:n,ref:o,props:{role:"region",dir:f,"aria-label":P.doNotTranslate("Notifications"),...c,className:(0,R.clsx)(B.root,s),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(yt,{}),(0,r.jsx)(wt,{getToastProps:t})]})}});return d.isDefined(v)?(0,pe.createPortal)(_,v):null};Object.defineProperty(exports,"Callout",{enumerable:!0,get:function(){return Ae}});Object.defineProperty(exports,"InlineBanner",{enumerable:!0,get:function(){return Me}});Object.defineProperty(exports,"Toast",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"ToastProvider",{enumerable:!0,get:function(){return Tt}});Object.defineProperty(exports,"Toaster",{enumerable:!0,get:function(){return Dt}});Object.defineProperty(exports,"useToast",{enumerable:!0,get:function(){return Ke}});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { IconNumber123 as Icon123, IconAdjustments, IconAlertCircle, IconAlertTriangle, IconAlignBoxLeftTop, IconAlignCenter, IconAlignLeft, IconAlignRight, IconApi, IconApps, IconAppWindow, IconArchive, IconArchiveOff, IconArrowBackUp, IconArrowBarToDown, IconArrowBarToDownDashed, IconArrowDown, IconArrowLeft, IconArrowMerge, IconArrowRight, IconArrowsDiagonal, IconArrowsSort, IconArrowsSplit2, IconArrowsVertical, IconArrowUp, IconArrowUpRight, IconAt, IconAxisX, IconAxisY, IconBadge2k, IconBaselineDensitySmall, IconBell, IconBellOff, IconBlockquote, IconBold, IconBolt, IconBook, IconBook2, IconBookmark, IconBookmarkPlus, IconBox, IconBoxMultiple, IconBrackets, IconBracketsAngle, IconBracketsContain, IconBrain, IconBrandDaysCounter, IconBrandDocker, IconBrandGithub, IconBrandGoogle, IconBrandGraphql, IconBrandLinkedin, IconBrandNpm, IconBrandOpenai, IconBrandTypescript, IconBrandWhatsapp, IconBrandX, IconBriefcase, IconBroadcast, IconBrowserMaximize, IconBuildingSkyscraper, IconCalendar, IconCalendarDue, IconCalendarEvent, IconCalendarMonth, IconCalendarRepeat, IconCalendarTime, IconCalendarWeek, IconCalendarX, IconCancel, IconCaretLeft, IconCaretRight, IconChartBar, IconChartBarPopular, IconChartCandle, IconChartDots3, IconChartLine, IconChartPie, IconCheck, IconCheckbox, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronRightPipe, IconChevronsRight, IconChevronUp, IconCircle, IconCircleDashed, IconCircleDot, IconCircleOff, IconCirclePlus, IconCircleX, IconClick, IconClock, IconClockHour8, IconClockPlay, IconClockShare, IconCode, IconCodeCircle, IconCoins, IconColorSwatch, IconColumnInsertLeft, IconColumnInsertRight, IconColumns, IconCommand, IconCompass, IconMessageCircle, IconMessageCircle as IconComment, IconCopy, IconCopyPlus, IconCornerDownRight, IconCpu, IconCreativeCommonsSa, IconCreditCard, IconCsv, IconCube, IconCurrencyAfghani, IconCurrencyBahraini, IconCurrencyBaht, IconCurrencyDinar, IconCurrencyDirham, IconCurrencyDollar, IconCurrencyDollarAustralian, IconCurrencyDollarBrunei, IconCurrencyDollarCanadian, IconCurrencyDollarGuyanese, IconCurrencyDollarSingapore, IconCurrencyDong, IconCurrencyDram, IconCurrencyEuro, IconCurrencyFlorin, IconCurrencyForint, IconCurrencyFrank, IconCurrencyGuarani, IconCurrencyHryvnia, IconCurrencyIranianRial, IconCurrencyKip, IconCurrencyKroneCzech, IconCurrencyKroneDanish, IconCurrencyKroneSwedish, IconCurrencyLari, IconCurrencyLeu, IconCurrencyLira, IconCurrencyLyd, IconCurrencyManat, IconCurrencyNaira, IconCurrencyPaanga, IconCurrencyPeso, IconCurrencyPound, IconCurrencyQuetzal, IconCurrencyReal, IconCurrencyRenminbi, IconCurrencyRiyal, IconCurrencyRubel, IconCurrencyRufiyaa, IconCurrencyRupee, IconCurrencyRupeeNepalese, IconCurrencyShekel, IconCurrencySom, IconCurrencyTaka, IconCurrencyTenge, IconCurrencyTugrik, IconCurrencyWon, IconCurrencyYen, IconCurrencyYuan, IconCurrencyZloty, IconDatabase, IconDatabaseExport, IconDecimal, IconDeviceDesktop, IconDeviceFloppy, IconDoorEnter, IconDotsVertical, IconDownload, IconEdit, IconEditCircle, IconEraser, IconExclamationCircle, IconExternalLink, IconEye, IconEyeOff, IconEyeShare, IconEyeX, IconFile, IconFileCheck, IconFileExport, IconFileImport, IconFileInfo, IconFilePencil, IconFiles, IconFileText, IconFileUpload, IconFileZip, IconFilter, IconFilterCog, IconFilterOff, IconFilterPlus, IconFilters, IconFilterX, IconFlag, IconFlask, IconFocusCentered, IconFolder, IconFolderOpen, IconFolderPlus, IconForms, IconFolderRoot, IconFolderSymlink, IconForbid, IconFrame, IconFunction, IconGauge, IconGitBranch, IconGitBranchDeleted, IconGitCommit, IconGizmo, IconGraph, IconGripHorizontal, IconGripVertical, IconH1, IconH2, IconH3, IconH4, IconH5, IconH6, IconHandClick, IconHandMove, IconHash, IconHeadphones, IconHeart, IconHeartOff, IconHeartRateMonitor, IconHelp, IconHelpCircle, IconHierarchy, IconHierarchy2, IconHistory, IconHistoryToggle, IconHome, IconHourglassHigh, IconHours24, IconHttpDelete, IconHttpGet, IconHttpPatch, IconHttpPost, IconHttpPut, IconId, IconInbox, IconInfoCircle, IconInfoSquareRounded, IconItalic, IconJetpack, IconJson, IconKey, IconLanguage, IconLayersLinked, IconLayout, IconLayoutDashboard, IconLayoutGrid, IconLayoutGridAdd, IconLayoutKanban, IconLayoutList, IconLayoutNavbar, IconLayoutSidebar, IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLayoutSidebarRight, IconLayoutSidebarRightCollapse, IconLayoutSidebarRightExpand, IconLego, IconLetterK, IconLibraryPlus, IconLifebuoy, IconLink, IconLinkOff, IconLinkPlus, IconList, IconListCheck, IconListDetails, IconListNumbers, IconListSearch, IconLoader, IconLock, IconLockOpen, IconLogin2, IconLogout, IconMail, IconMailCog, IconMailX, IconMap, IconMathMax, IconMathMin, IconMathXy, IconMaximize, IconMessage, IconMessageCirclePlus, IconMicrophone, IconMinimize, IconMinus, IconMoneybag, IconMoodPlus, IconMoodSmile, IconMoon, IconMouse2, IconNewSection, IconNorthStar, IconNoteOff, IconNotes, IconNumber, IconNumber123, IconNumber9, IconNumbers, IconPaint, IconPaperclip, IconPassword, IconPencil, IconPencilOff, IconPercentage, IconPerspective, IconPhone, IconPhoto, IconPhotoUp, IconPilcrow, IconPin, IconPinned, IconPinnedOff, IconPlayerPause, IconPlayerPlay, IconPlayerStop, IconPlaylistAdd, IconPlaystationSquare, IconPlug, IconPlus, IconPoint, IconPower, IconPresentation, IconPrinter, IconProgressCheck, IconPrompt, IconPuzzle, IconPuzzle2, IconQuestionMark, IconRadiusBottomLeft, IconRadiusBottomRight, IconRadiusTopLeft, IconRadiusTopRight, IconRefresh, IconRefreshAlert, IconRefreshDot, IconRelationManyToMany, IconRelationOneToMany, IconRelationOneToOne, IconReload, IconReorder, IconRepeat, IconRestore, IconRobot, IconRocket, IconRotate, IconRotate2, IconRowInsertBottom, IconRowInsertTop, IconSearch, IconSend, IconServer, IconServer2, IconSettings, IconSettings2, IconSettingsAutomation, IconSettingsBolt, IconShare, IconShare2, IconShield, IconShoppingBag, IconSitemap, IconSlash, IconSortAscending, IconSortAscendingLetters, IconSortAscendingNumbers, IconSortAZ, IconSortDescending, IconSortDescendingLetters, IconSortDescendingNumbers, IconSortZA, IconSparkles, IconSpy, IconSql, IconSquare, IconSquareCheck, IconSquareKey, IconSquareNumber1, IconSquareNumber2, IconSquareNumber3, IconSquareNumber4, IconSquareNumber5, IconSquareNumber6, IconSquareNumber7, IconSquareNumber8, IconSquareNumber9, IconSquarePlus, IconSquareRoundedCheck, IconSquareRoundedX, IconSquareX, IconStack2, IconStairs, IconStar, IconStatusChange, IconStepInto, IconStrikethrough, IconSum, IconSun, IconSunMoon, IconSwitchHorizontal, IconTable, IconTag, IconTags, IconTarget, IconTargetArrow, IconTerminal, IconTerminal2, IconTestPipe, IconTextCaption, IconTextSize, IconTextWrap, IconTimeDuration30, IconTimeDuration60, IconTimelineEvent, IconTool, IconTransform, IconTrash, IconTrashOff, IconTrashX, IconTrendingDown, IconTrendingUp, IconTypography, IconUnderline, IconUnlink, IconUpload, IconUser, IconUserOff, IconUserCircle, IconUserCog, IconUserPin, IconUserPlus, IconUsers, IconUsersGroup, IconVariable, IconVariablePlus, IconVersions, IconVersionsOff, IconVideo, IconWand, IconWebhook, IconWindow, IconWorld, IconWorldWww, IconX, IconZzz, IconZzzOff, } from '@tabler/icons-react';
|
|
1
|
+
export { IconNumber123 as Icon123, IconAdjustments, IconAlertCircle, IconAlertTriangle, IconAlignBoxLeftTop, IconAlignCenter, IconAlignLeft, IconAlignRight, IconApi, IconApps, IconAppWindow, IconArchive, IconArchiveOff, IconArrowBackUp, IconArrowBarToDown, IconArrowBarToDownDashed, IconArrowDown, IconArrowLeft, IconArrowMerge, IconArrowRight, IconArrowsDiagonal, IconArrowsSort, IconArrowsSplit2, IconArrowsVertical, IconArrowUp, IconArrowUpRight, IconAt, IconAxisX, IconAxisY, IconBadge2k, IconBaselineDensitySmall, IconBell, IconBellOff, IconBlockquote, IconBold, IconBolt, IconBook, IconBook2, IconBookmark, IconBookmarkPlus, IconBox, IconBoxMultiple, IconBrackets, IconBracketsAngle, IconBracketsContain, IconBrain, IconBrandDaysCounter, IconBrandDocker, IconBrandGithub, IconBrandGoogle, IconBrandGraphql, IconBrandLinkedin, IconBrandNpm, IconBrandOpenai, IconBrandTypescript, IconBrandWhatsapp, IconBrandX, IconBriefcase, IconBroadcast, IconBrowserMaximize, IconBuildingSkyscraper, IconCalendar, IconCalendarDue, IconCalendarEvent, IconCalendarMonth, IconCalendarRepeat, IconCalendarTime, IconCalendarWeek, IconCalendarX, IconCancel, IconCaretLeft, IconCaretRight, IconChartBar, IconChartBarPopular, IconChartCandle, IconChartDots3, IconChartLine, IconChartPie, IconCheck, IconCheckbox, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronRightPipe, IconChevronsRight, IconChevronUp, IconCircle, IconCircleCheck, IconCircleDashed, IconCircleDot, IconCircleOff, IconCirclePlus, IconCircleX, IconClick, IconClock, IconClockHour8, IconClockPlay, IconClockShare, IconCode, IconCodeCircle, IconCoins, IconColorSwatch, IconColumnInsertLeft, IconColumnInsertRight, IconColumns, IconCommand, IconCompass, IconMessageCircle, IconMessageCircle as IconComment, IconCopy, IconCopyPlus, IconCornerDownRight, IconCpu, IconCreativeCommonsSa, IconCreditCard, IconCsv, IconCube, IconCurrencyAfghani, IconCurrencyBahraini, IconCurrencyBaht, IconCurrencyDinar, IconCurrencyDirham, IconCurrencyDollar, IconCurrencyDollarAustralian, IconCurrencyDollarBrunei, IconCurrencyDollarCanadian, IconCurrencyDollarGuyanese, IconCurrencyDollarSingapore, IconCurrencyDong, IconCurrencyDram, IconCurrencyEuro, IconCurrencyFlorin, IconCurrencyForint, IconCurrencyFrank, IconCurrencyGuarani, IconCurrencyHryvnia, IconCurrencyIranianRial, IconCurrencyKip, IconCurrencyKroneCzech, IconCurrencyKroneDanish, IconCurrencyKroneSwedish, IconCurrencyLari, IconCurrencyLeu, IconCurrencyLira, IconCurrencyLyd, IconCurrencyManat, IconCurrencyNaira, IconCurrencyPaanga, IconCurrencyPeso, IconCurrencyPound, IconCurrencyQuetzal, IconCurrencyReal, IconCurrencyRenminbi, IconCurrencyRiyal, IconCurrencyRubel, IconCurrencyRufiyaa, IconCurrencyRupee, IconCurrencyRupeeNepalese, IconCurrencyShekel, IconCurrencySom, IconCurrencyTaka, IconCurrencyTenge, IconCurrencyTugrik, IconCurrencyWon, IconCurrencyYen, IconCurrencyYuan, IconCurrencyZloty, IconDatabase, IconDatabaseExport, IconDecimal, IconDeviceDesktop, IconDeviceFloppy, IconDoorEnter, IconDotsVertical, IconDownload, IconEdit, IconEditCircle, IconEraser, IconExclamationCircle, IconExternalLink, IconEye, IconEyeOff, IconEyeShare, IconEyeX, IconFile, IconFileCheck, IconFileExport, IconFileImport, IconFileInfo, IconFilePencil, IconFiles, IconFileText, IconFileUpload, IconFileZip, IconFilter, IconFilterCog, IconFilterOff, IconFilterPlus, IconFilters, IconFilterX, IconFlag, IconFlask, IconFocusCentered, IconFolder, IconFolderOpen, IconFolderPlus, IconForms, IconFolderRoot, IconFolderSymlink, IconForbid, IconFrame, IconFunction, IconGauge, IconGitBranch, IconGitBranchDeleted, IconGitCommit, IconGizmo, IconGraph, IconGripHorizontal, IconGripVertical, IconH1, IconH2, IconH3, IconH4, IconH5, IconH6, IconHandClick, IconHandMove, IconHash, IconHeadphones, IconHeart, IconHeartOff, IconHeartRateMonitor, IconHelp, IconHelpCircle, IconHierarchy, IconHierarchy2, IconHistory, IconHistoryToggle, IconHome, IconHourglassHigh, IconHours24, IconHttpDelete, IconHttpGet, IconHttpPatch, IconHttpPost, IconHttpPut, IconId, IconInbox, IconInfoCircle, IconInfoSquareRounded, IconItalic, IconJetpack, IconJson, IconKey, IconLanguage, IconLayersLinked, IconLayout, IconLayoutDashboard, IconLayoutGrid, IconLayoutGridAdd, IconLayoutKanban, IconLayoutList, IconLayoutNavbar, IconLayoutSidebar, IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLayoutSidebarRight, IconLayoutSidebarRightCollapse, IconLayoutSidebarRightExpand, IconLego, IconLetterK, IconLibraryPlus, IconLifebuoy, IconLink, IconLinkOff, IconLinkPlus, IconList, IconListCheck, IconListDetails, IconListNumbers, IconListSearch, IconLoader, IconLock, IconLockOpen, IconLogin2, IconLogout, IconMail, IconMailCog, IconMailX, IconMap, IconMathMax, IconMathMin, IconMathXy, IconMaximize, IconMessage, IconMessageCirclePlus, IconMicrophone, IconMinimize, IconMinus, IconMoneybag, IconMoodPlus, IconMoodSmile, IconMoon, IconMouse2, IconNewSection, IconNorthStar, IconNoteOff, IconNotes, IconNumber, IconNumber123, IconNumber9, IconNumbers, IconPaint, IconPaperclip, IconPassword, IconPencil, IconPencilOff, IconPercentage, IconPerspective, IconPhone, IconPhoto, IconPhotoUp, IconPilcrow, IconPin, IconPinned, IconPinnedOff, IconPlayerPause, IconPlayerPlay, IconPlayerStop, IconPlaylistAdd, IconPlaystationSquare, IconPlug, IconPlus, IconPoint, IconPower, IconPresentation, IconPrinter, IconProgressCheck, IconPrompt, IconPuzzle, IconPuzzle2, IconQuestionMark, IconRadiusBottomLeft, IconRadiusBottomRight, IconRadiusTopLeft, IconRadiusTopRight, IconRefresh, IconRefreshAlert, IconRefreshDot, IconRelationManyToMany, IconRelationOneToMany, IconRelationOneToOne, IconReload, IconReorder, IconRepeat, IconRestore, IconRobot, IconRocket, IconRotate, IconRotate2, IconRowInsertBottom, IconRowInsertTop, IconSearch, IconSend, IconServer, IconServer2, IconSettings, IconSettings2, IconSettingsAutomation, IconSettingsBolt, IconShare, IconShare2, IconShield, IconShoppingBag, IconSitemap, IconSlash, IconSortAscending, IconSortAscendingLetters, IconSortAscendingNumbers, IconSortAZ, IconSortDescending, IconSortDescendingLetters, IconSortDescendingNumbers, IconSortZA, IconSparkles, IconSpy, IconSql, IconSquare, IconSquareCheck, IconSquareKey, IconSquareNumber1, IconSquareNumber2, IconSquareNumber3, IconSquareNumber4, IconSquareNumber5, IconSquareNumber6, IconSquareNumber7, IconSquareNumber8, IconSquareNumber9, IconSquarePlus, IconSquareRoundedCheck, IconSquareRoundedX, IconSquareX, IconStack2, IconStairs, IconStar, IconStatusChange, IconStepInto, IconStrikethrough, IconSum, IconSun, IconSunMoon, IconSwitchHorizontal, IconTable, IconTag, IconTags, IconTarget, IconTargetArrow, IconTerminal, IconTerminal2, IconTestPipe, IconTextCaption, IconTextSize, IconTextWrap, IconTimeDuration30, IconTimeDuration60, IconTimelineEvent, IconTool, IconTransform, IconTrash, IconTrashOff, IconTrashX, IconTrendingDown, IconTrendingUp, IconTypography, IconUnderline, IconUnlink, IconUpload, IconUser, IconUserOff, IconUserCircle, IconUserCog, IconUserPin, IconUserPlus, IconUsers, IconUsersGroup, IconVariable, IconVariablePlus, IconVersions, IconVersionsOff, IconVideo, IconWand, IconWebhook, IconWindow, IconWorld, IconWorldWww, IconX, IconZzz, IconZzzOff, } from '@tabler/icons-react';
|
|
2
2
|
export type { IconProps as TablerIconsProps } from '@tabler/icons-react';
|
package/dist/icon/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export { IllustrationIconUid } from './components/IllustrationIconUid';
|
|
|
46
46
|
export { IllustrationIconUser } from './components/IllustrationIconUser';
|
|
47
47
|
export { IllustrationIconWrapper } from './components/IllustrationIconWrapper';
|
|
48
48
|
export type { TablerIconsProps } from './components/TablerIcons';
|
|
49
|
-
export { Icon123, IconAdjustments, IconAlertCircle, IconAlertTriangle, IconAlignBoxLeftTop, IconAlignCenter, IconAlignLeft, IconAlignRight, IconApi, IconApps, IconAppWindow, IconArchive, IconArchiveOff, IconArrowBackUp, IconArrowBarToDown, IconArrowBarToDownDashed, IconArrowDown, IconArrowLeft, IconArrowMerge, IconArrowRight, IconArrowsDiagonal, IconArrowsSort, IconArrowsSplit2, IconArrowsVertical, IconArrowUp, IconArrowUpRight, IconAt, IconAxisX, IconAxisY, IconBadge2k, IconBaselineDensitySmall, IconBell, IconBellOff, IconBlockquote, IconBold, IconBolt, IconBook, IconBook2, IconBookmark, IconBookmarkPlus, IconBox, IconBoxMultiple, IconBrackets, IconBracketsAngle, IconBracketsContain, IconBrain, IconBrandDaysCounter, IconBrandDocker, IconBrandGithub, IconBrandGoogle, IconBrandGraphql, IconBrandLinkedin, IconBrandNpm, IconBrandOpenai, IconBrandTypescript, IconBrandWhatsapp, IconBrandX, IconBriefcase, IconBroadcast, IconBrowserMaximize, IconBuildingSkyscraper, IconCalendar, IconCalendarDue, IconCalendarEvent, IconCalendarMonth, IconCalendarRepeat, IconCalendarTime, IconCalendarWeek, IconCalendarX, IconCancel, IconCaretLeft, IconCaretRight, IconChartBar, IconChartBarPopular, IconChartCandle, IconChartDots3, IconChartLine, IconChartPie, IconCheck, IconCheckbox, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronRightPipe, IconChevronsRight, IconChevronUp, IconCircle, IconCircleDashed, IconCircleDot, IconCircleOff, IconCirclePlus, IconCircleX, IconClick, IconClock, IconClockHour8, IconClockPlay, IconClockShare, IconCode, IconCodeCircle, IconCoins, IconColorSwatch, IconColumnInsertLeft, IconColumnInsertRight, IconColumns, IconCommand, IconCompass, IconMessageCircle, IconComment, IconCopy, IconCopyPlus, IconCornerDownRight, IconCpu, IconCreativeCommonsSa, IconCreditCard, IconCsv, IconCube, IconCurrencyAfghani, IconCurrencyBahraini, IconCurrencyBaht, IconCurrencyDinar, IconCurrencyDirham, IconCurrencyDollar, IconCurrencyDollarAustralian, IconCurrencyDollarBrunei, IconCurrencyDollarCanadian, IconCurrencyDollarGuyanese, IconCurrencyDollarSingapore, IconCurrencyDong, IconCurrencyDram, IconCurrencyEuro, IconCurrencyFlorin, IconCurrencyForint, IconCurrencyFrank, IconCurrencyGuarani, IconCurrencyHryvnia, IconCurrencyIranianRial, IconCurrencyKip, IconCurrencyKroneCzech, IconCurrencyKroneDanish, IconCurrencyKroneSwedish, IconCurrencyLari, IconCurrencyLeu, IconCurrencyLira, IconCurrencyLyd, IconCurrencyManat, IconCurrencyNaira, IconCurrencyPaanga, IconCurrencyPeso, IconCurrencyPound, IconCurrencyQuetzal, IconCurrencyReal, IconCurrencyRenminbi, IconCurrencyRiyal, IconCurrencyRubel, IconCurrencyRufiyaa, IconCurrencyRupee, IconCurrencyRupeeNepalese, IconCurrencyShekel, IconCurrencySom, IconCurrencyTaka, IconCurrencyTenge, IconCurrencyTugrik, IconCurrencyWon, IconCurrencyYen, IconCurrencyYuan, IconCurrencyZloty, IconDatabase, IconDatabaseExport, IconDecimal, IconDeviceDesktop, IconDeviceFloppy, IconDoorEnter, IconDotsVertical, IconDownload, IconEdit, IconEditCircle, IconEraser, IconExclamationCircle, IconExternalLink, IconEye, IconEyeOff, IconEyeShare, IconEyeX, IconFile, IconFileCheck, IconFileExport, IconFileImport, IconFileInfo, IconFilePencil, IconFiles, IconFileText, IconFileUpload, IconFileZip, IconFilter, IconFilterCog, IconFilterOff, IconFilterPlus, IconFilters, IconFilterX, IconFlag, IconFlask, IconFocusCentered, IconFolder, IconFolderOpen, IconFolderPlus, IconForms, IconFolderRoot, IconFolderSymlink, IconForbid, IconFrame, IconFunction, IconGauge, IconGitBranch, IconGitBranchDeleted, IconGitCommit, IconGizmo, IconGraph, IconGripHorizontal, IconGripVertical, IconH1, IconH2, IconH3, IconH4, IconH5, IconH6, IconHandClick, IconHandMove, IconHash, IconHeadphones, IconHeart, IconHeartOff, IconHeartRateMonitor, IconHelp, IconHelpCircle, IconHierarchy, IconHierarchy2, IconHistory, IconHistoryToggle, IconHome, IconHourglassHigh, IconHours24, IconHttpDelete, IconHttpGet, IconHttpPatch, IconHttpPost, IconHttpPut, IconId, IconInbox, IconInfoCircle, IconInfoSquareRounded, IconItalic, IconJetpack, IconJson, IconKey, IconLanguage, IconLayersLinked, IconLayout, IconLayoutDashboard, IconLayoutGrid, IconLayoutGridAdd, IconLayoutKanban, IconLayoutList, IconLayoutNavbar, IconLayoutSidebar, IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLayoutSidebarRight, IconLayoutSidebarRightCollapse, IconLayoutSidebarRightExpand, IconLego, IconLetterK, IconLibraryPlus, IconLifebuoy, IconLink, IconLinkOff, IconLinkPlus, IconList, IconListCheck, IconListDetails, IconListNumbers, IconListSearch, IconLoader, IconLock, IconLockOpen, IconLogin2, IconLogout, IconMail, IconMailCog, IconMailX, IconMap, IconMathMax, IconMathMin, IconMathXy, IconMaximize, IconMessage, IconMessageCirclePlus, IconMicrophone, IconMinimize, IconMinus, IconMoneybag, IconMoodPlus, IconMoodSmile, IconMoon, IconMouse2, IconNewSection, IconNorthStar, IconNoteOff, IconNotes, IconNumber, IconNumber123, IconNumber9, IconNumbers, IconPaint, IconPaperclip, IconPassword, IconPencil, IconPencilOff, IconPercentage, IconPerspective, IconPhone, IconPhoto, IconPhotoUp, IconPilcrow, IconPin, IconPinned, IconPinnedOff, IconPlayerPause, IconPlayerPlay, IconPlayerStop, IconPlaylistAdd, IconPlaystationSquare, IconPlug, IconPlus, IconPoint, IconPower, IconPresentation, IconPrinter, IconProgressCheck, IconPrompt, IconPuzzle, IconPuzzle2, IconQuestionMark, IconRadiusBottomLeft, IconRadiusBottomRight, IconRadiusTopLeft, IconRadiusTopRight, IconRefresh, IconRefreshAlert, IconRefreshDot, IconRelationManyToMany, IconRelationOneToMany, IconRelationOneToOne, IconReload, IconReorder, IconRepeat, IconRestore, IconRobot, IconRocket, IconRotate, IconRotate2, IconRowInsertBottom, IconRowInsertTop, IconSearch, IconSend, IconServer, IconServer2, IconSettings, IconSettings2, IconSettingsAutomation, IconSettingsBolt, IconShare, IconShare2, IconShield, IconShoppingBag, IconSitemap, IconSlash, IconSortAscending, IconSortAscendingLetters, IconSortAscendingNumbers, IconSortAZ, IconSortDescending, IconSortDescendingLetters, IconSortDescendingNumbers, IconSortZA, IconSparkles, IconSpy, IconSql, IconSquare, IconSquareCheck, IconSquareKey, IconSquareNumber1, IconSquareNumber2, IconSquareNumber3, IconSquareNumber4, IconSquareNumber5, IconSquareNumber6, IconSquareNumber7, IconSquareNumber8, IconSquareNumber9, IconSquarePlus, IconSquareRoundedCheck, IconSquareRoundedX, IconSquareX, IconStack2, IconStairs, IconStar, IconStatusChange, IconStepInto, IconStrikethrough, IconSum, IconSun, IconSunMoon, IconSwitchHorizontal, IconTable, IconTag, IconTags, IconTarget, IconTargetArrow, IconTerminal, IconTerminal2, IconTestPipe, IconTextCaption, IconTextSize, IconTextWrap, IconTimeDuration30, IconTimeDuration60, IconTimelineEvent, IconTool, IconTransform, IconTrash, IconTrashOff, IconTrashX, IconTrendingDown, IconTrendingUp, IconTypography, IconUnderline, IconUnlink, IconUpload, IconUser, IconUserOff, IconUserCircle, IconUserCog, IconUserPin, IconUserPlus, IconUsers, IconUsersGroup, IconVariable, IconVariablePlus, IconVersions, IconVersionsOff, IconVideo, IconWand, IconWebhook, IconWindow, IconWorld, IconWorldWww, IconX, IconZzz, IconZzzOff, } from './components/TablerIcons';
|
|
49
|
+
export { Icon123, IconAdjustments, IconAlertCircle, IconAlertTriangle, IconAlignBoxLeftTop, IconAlignCenter, IconAlignLeft, IconAlignRight, IconApi, IconApps, IconAppWindow, IconArchive, IconArchiveOff, IconArrowBackUp, IconArrowBarToDown, IconArrowBarToDownDashed, IconArrowDown, IconArrowLeft, IconArrowMerge, IconArrowRight, IconArrowsDiagonal, IconArrowsSort, IconArrowsSplit2, IconArrowsVertical, IconArrowUp, IconArrowUpRight, IconAt, IconAxisX, IconAxisY, IconBadge2k, IconBaselineDensitySmall, IconBell, IconBellOff, IconBlockquote, IconBold, IconBolt, IconBook, IconBook2, IconBookmark, IconBookmarkPlus, IconBox, IconBoxMultiple, IconBrackets, IconBracketsAngle, IconBracketsContain, IconBrain, IconBrandDaysCounter, IconBrandDocker, IconBrandGithub, IconBrandGoogle, IconBrandGraphql, IconBrandLinkedin, IconBrandNpm, IconBrandOpenai, IconBrandTypescript, IconBrandWhatsapp, IconBrandX, IconBriefcase, IconBroadcast, IconBrowserMaximize, IconBuildingSkyscraper, IconCalendar, IconCalendarDue, IconCalendarEvent, IconCalendarMonth, IconCalendarRepeat, IconCalendarTime, IconCalendarWeek, IconCalendarX, IconCancel, IconCaretLeft, IconCaretRight, IconChartBar, IconChartBarPopular, IconChartCandle, IconChartDots3, IconChartLine, IconChartPie, IconCheck, IconCheckbox, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronRightPipe, IconChevronsRight, IconChevronUp, IconCircle, IconCircleCheck, IconCircleDashed, IconCircleDot, IconCircleOff, IconCirclePlus, IconCircleX, IconClick, IconClock, IconClockHour8, IconClockPlay, IconClockShare, IconCode, IconCodeCircle, IconCoins, IconColorSwatch, IconColumnInsertLeft, IconColumnInsertRight, IconColumns, IconCommand, IconCompass, IconMessageCircle, IconComment, IconCopy, IconCopyPlus, IconCornerDownRight, IconCpu, IconCreativeCommonsSa, IconCreditCard, IconCsv, IconCube, IconCurrencyAfghani, IconCurrencyBahraini, IconCurrencyBaht, IconCurrencyDinar, IconCurrencyDirham, IconCurrencyDollar, IconCurrencyDollarAustralian, IconCurrencyDollarBrunei, IconCurrencyDollarCanadian, IconCurrencyDollarGuyanese, IconCurrencyDollarSingapore, IconCurrencyDong, IconCurrencyDram, IconCurrencyEuro, IconCurrencyFlorin, IconCurrencyForint, IconCurrencyFrank, IconCurrencyGuarani, IconCurrencyHryvnia, IconCurrencyIranianRial, IconCurrencyKip, IconCurrencyKroneCzech, IconCurrencyKroneDanish, IconCurrencyKroneSwedish, IconCurrencyLari, IconCurrencyLeu, IconCurrencyLira, IconCurrencyLyd, IconCurrencyManat, IconCurrencyNaira, IconCurrencyPaanga, IconCurrencyPeso, IconCurrencyPound, IconCurrencyQuetzal, IconCurrencyReal, IconCurrencyRenminbi, IconCurrencyRiyal, IconCurrencyRubel, IconCurrencyRufiyaa, IconCurrencyRupee, IconCurrencyRupeeNepalese, IconCurrencyShekel, IconCurrencySom, IconCurrencyTaka, IconCurrencyTenge, IconCurrencyTugrik, IconCurrencyWon, IconCurrencyYen, IconCurrencyYuan, IconCurrencyZloty, IconDatabase, IconDatabaseExport, IconDecimal, IconDeviceDesktop, IconDeviceFloppy, IconDoorEnter, IconDotsVertical, IconDownload, IconEdit, IconEditCircle, IconEraser, IconExclamationCircle, IconExternalLink, IconEye, IconEyeOff, IconEyeShare, IconEyeX, IconFile, IconFileCheck, IconFileExport, IconFileImport, IconFileInfo, IconFilePencil, IconFiles, IconFileText, IconFileUpload, IconFileZip, IconFilter, IconFilterCog, IconFilterOff, IconFilterPlus, IconFilters, IconFilterX, IconFlag, IconFlask, IconFocusCentered, IconFolder, IconFolderOpen, IconFolderPlus, IconForms, IconFolderRoot, IconFolderSymlink, IconForbid, IconFrame, IconFunction, IconGauge, IconGitBranch, IconGitBranchDeleted, IconGitCommit, IconGizmo, IconGraph, IconGripHorizontal, IconGripVertical, IconH1, IconH2, IconH3, IconH4, IconH5, IconH6, IconHandClick, IconHandMove, IconHash, IconHeadphones, IconHeart, IconHeartOff, IconHeartRateMonitor, IconHelp, IconHelpCircle, IconHierarchy, IconHierarchy2, IconHistory, IconHistoryToggle, IconHome, IconHourglassHigh, IconHours24, IconHttpDelete, IconHttpGet, IconHttpPatch, IconHttpPost, IconHttpPut, IconId, IconInbox, IconInfoCircle, IconInfoSquareRounded, IconItalic, IconJetpack, IconJson, IconKey, IconLanguage, IconLayersLinked, IconLayout, IconLayoutDashboard, IconLayoutGrid, IconLayoutGridAdd, IconLayoutKanban, IconLayoutList, IconLayoutNavbar, IconLayoutSidebar, IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLayoutSidebarRight, IconLayoutSidebarRightCollapse, IconLayoutSidebarRightExpand, IconLego, IconLetterK, IconLibraryPlus, IconLifebuoy, IconLink, IconLinkOff, IconLinkPlus, IconList, IconListCheck, IconListDetails, IconListNumbers, IconListSearch, IconLoader, IconLock, IconLockOpen, IconLogin2, IconLogout, IconMail, IconMailCog, IconMailX, IconMap, IconMathMax, IconMathMin, IconMathXy, IconMaximize, IconMessage, IconMessageCirclePlus, IconMicrophone, IconMinimize, IconMinus, IconMoneybag, IconMoodPlus, IconMoodSmile, IconMoon, IconMouse2, IconNewSection, IconNorthStar, IconNoteOff, IconNotes, IconNumber, IconNumber123, IconNumber9, IconNumbers, IconPaint, IconPaperclip, IconPassword, IconPencil, IconPencilOff, IconPercentage, IconPerspective, IconPhone, IconPhoto, IconPhotoUp, IconPilcrow, IconPin, IconPinned, IconPinnedOff, IconPlayerPause, IconPlayerPlay, IconPlayerStop, IconPlaylistAdd, IconPlaystationSquare, IconPlug, IconPlus, IconPoint, IconPower, IconPresentation, IconPrinter, IconProgressCheck, IconPrompt, IconPuzzle, IconPuzzle2, IconQuestionMark, IconRadiusBottomLeft, IconRadiusBottomRight, IconRadiusTopLeft, IconRadiusTopRight, IconRefresh, IconRefreshAlert, IconRefreshDot, IconRelationManyToMany, IconRelationOneToMany, IconRelationOneToOne, IconReload, IconReorder, IconRepeat, IconRestore, IconRobot, IconRocket, IconRotate, IconRotate2, IconRowInsertBottom, IconRowInsertTop, IconSearch, IconSend, IconServer, IconServer2, IconSettings, IconSettings2, IconSettingsAutomation, IconSettingsBolt, IconShare, IconShare2, IconShield, IconShoppingBag, IconSitemap, IconSlash, IconSortAscending, IconSortAscendingLetters, IconSortAscendingNumbers, IconSortAZ, IconSortDescending, IconSortDescendingLetters, IconSortDescendingNumbers, IconSortZA, IconSparkles, IconSpy, IconSql, IconSquare, IconSquareCheck, IconSquareKey, IconSquareNumber1, IconSquareNumber2, IconSquareNumber3, IconSquareNumber4, IconSquareNumber5, IconSquareNumber6, IconSquareNumber7, IconSquareNumber8, IconSquareNumber9, IconSquarePlus, IconSquareRoundedCheck, IconSquareRoundedX, IconSquareX, IconStack2, IconStairs, IconStar, IconStatusChange, IconStepInto, IconStrikethrough, IconSum, IconSun, IconSunMoon, IconSwitchHorizontal, IconTable, IconTag, IconTags, IconTarget, IconTargetArrow, IconTerminal, IconTerminal2, IconTestPipe, IconTextCaption, IconTextSize, IconTextWrap, IconTimeDuration30, IconTimeDuration60, IconTimelineEvent, IconTool, IconTransform, IconTrash, IconTrashOff, IconTrashX, IconTrendingDown, IconTrendingUp, IconTypography, IconUnderline, IconUnlink, IconUpload, IconUser, IconUserOff, IconUserCircle, IconUserCog, IconUserPin, IconUserPlus, IconUsers, IconUsersGroup, IconVariable, IconVariablePlus, IconVersions, IconVersionsOff, IconVideo, IconWand, IconWebhook, IconWindow, IconWorld, IconWorldWww, IconX, IconZzz, IconZzzOff, } from './components/TablerIcons';
|
|
50
50
|
export { ThinkingOrbitLoaderIcon } from './components/ThinkingOrbitLoaderIcon';
|
|
51
51
|
export type { TwentyIconDictionaryCategory, TwentyIconDictionaryEntry, } from './constants/TwentyIconDictionary';
|
|
52
52
|
export { TWENTY_ICON_DICTIONARY_FIGMA_URL, TWENTY_ICON_DICTIONARY_CATEGORIES, TWENTY_ICON_DICTIONARY, } from './constants/TwentyIconDictionary';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as p, yt as g } from "./TablerIcons-
|
|
1
|
+
import { t as p, yt as g } from "./TablerIcons-B6BhOlW_.js";
|
|
2
2
|
import { r } from "./theme-CuGIQBsJ.js";
|
|
3
3
|
import { clsx as f } from "clsx";
|
|
4
4
|
import { createContext as u, forwardRef as m, useContext as y, useEffect as w, useState as L } from "react";
|
|
@@ -3767,7 +3767,7 @@ var P1 = (t) => {
|
|
|
3767
3767
|
], g2 = ({ children: t }) => {
|
|
3768
3768
|
const [o, n] = L({});
|
|
3769
3769
|
return w(() => {
|
|
3770
|
-
import("./AllIcons-
|
|
3770
|
+
import("./AllIcons-B9FfQJ70.js").then(({ ALL_ICONS: l }) => {
|
|
3771
3771
|
n(l);
|
|
3772
3772
|
});
|
|
3773
3773
|
}, []), /* @__PURE__ */ e(d.Provider, {
|