twenty-ui 2.53.0 → 2.54.2
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/{Button-Dd8cNsn1.js → Button-By-nG5vV.js} +1 -1
- package/dist/{Button-Du8T-dOv.cjs → Button-C3IE0Kup.cjs} +1 -1
- package/dist/{Dropdown-DaSktKdb.cjs → Dropdown-CyEoMEjR.cjs} +1 -1
- package/dist/{Dropdown-COpO_G9D.js → Dropdown-Zdc0J7Bg.js} +3 -3
- package/dist/{ListItem-txrdGXhb.js → ListItem-BgRDvHQG.js} +2 -2
- package/dist/{ListItem-Br5oDPc-.cjs → ListItem-D0WDJG-e.cjs} +1 -1
- package/dist/ListItem.module-BV1vQ5hr.js +34 -0
- package/dist/ListItem.module-Cw0dbXxo.cjs +1 -0
- package/dist/{ProgressBar-CPm791xc.js → ProgressBar-B_QvBWbI.js} +1 -1
- package/dist/{ProgressBar-BG38LPgC.cjs → ProgressBar-km29TA-7.cjs} +1 -1
- package/dist/{Radio-BdbEXBOH.cjs → Radio-DUQ6MLGc.cjs} +1 -1
- package/dist/{Radio-D1PpZdqz.js → Radio-rURvQ923.js} +2 -2
- package/dist/Shortcut-CLngfg7s.cjs +1 -0
- package/dist/Shortcut-CThgcmn_.js +77 -0
- package/dist/components/data-display.cjs +1 -1
- 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.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- 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 +6 -6
- package/dist/{data-display-VghHkQY5.cjs → data-display-Cg9gF6Cb.cjs} +1 -1
- package/dist/{data-display-DVEhI2Rt.js → data-display-CuvXSBLo.js} +1 -1
- package/dist/{data-display-BhQyFKeZ.js → data-display-DKSUI3GC.js} +43 -43
- package/dist/data-display-DlmWaxYb.cjs +1 -0
- package/dist/{feedback-BvCwRZad.cjs → feedback-Cvmm1EZX.cjs} +1 -1
- package/dist/{feedback-B3Qc_Igx.js → feedback-DFTvn5aL.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +127 -126
- package/dist/{input-Btg-WsT6.js → input-BIUZSrhq.js} +3 -3
- package/dist/{input-CEiXoyRz.cjs → input-CX8QPMDn.cjs} +1 -1
- package/dist/{input-BwQqV8Wf.js → input-Clzu-UFH.js} +3 -3
- package/dist/{input-B8_4jnPT.cjs → input-E1x0D2jA.cjs} +1 -1
- package/dist/{navigation-DQe6WaUF.js → navigation-4RI9GlzA.js} +3 -3
- package/dist/{navigation-CP1g7ng9.cjs → navigation-B9jOHv99.cjs} +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +3 -3
- 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 +8 -8
- package/dist/{settings-D3AWPKyH.js → settings-2ZhNkDgW.js} +1 -1
- package/dist/{settings-RYocb2Xg.cjs → settings-DR3dpWzy.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{typography-D7VnzZiR.cjs → typography-B4hug-TZ.cjs} +1 -1
- package/dist/{typography-BisXuVpu.js → typography-jl1UzvVu.js} +1 -1
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/utils/getAvatarInitial.d.ts +1 -0
- package/dist/{utilities-D0KcLLtO.js → utilities-E91ftFp_.js} +16 -15
- package/dist/utilities-YhvQ2XFb.cjs +1 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +18 -17
- package/package.json +1 -1
- package/dist/ListItem.module-B31VK9XZ.js +0 -34
- package/dist/ListItem.module-DiUK6-0Z.cjs +0 -1
- package/dist/Shortcut-CbbRd1uM.cjs +0 -1
- package/dist/Shortcut-YMhkp7f6.js +0 -73
- package/dist/data-display-CZEwUZlM.cjs +0 -1
- package/dist/primitives/data-display/Avatar/internal/getAvatarInitial.d.ts +0 -1
- package/dist/utilities-Bfnz_GAC.cjs +0 -1
|
@@ -2,33 +2,33 @@ import { t as v } from "./isDefined-fMi6eQ4r.js";
|
|
|
2
2
|
import { t as D } from "./doNotTranslate-BSVT8Xyd.js";
|
|
3
3
|
import { a as b, r as H } from "./theme-CuGIQBsJ.js";
|
|
4
4
|
import { t as E } from "./mergeClassNames-ClFMR1v0.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as J, n as I, s as A } from "./utilities-E91ftFp_.js";
|
|
6
6
|
import { t as K } from "./Loader-U1LuZtJf.js";
|
|
7
|
-
import { t as
|
|
7
|
+
import { t as j } from "./OverflowingTextWithTooltip-CAQ-5aUp.js";
|
|
8
8
|
import { useRender as x } from "@base-ui/react/use-render";
|
|
9
|
-
import { isBoolean as L, isFunction as Q, isNonEmptyString as W, isString as
|
|
9
|
+
import { isBoolean as L, isFunction as Q, isNonEmptyString as W, isString as P } from "@sniptt/guards";
|
|
10
10
|
import { clsx as w } from "clsx";
|
|
11
11
|
import { Fragment as N, jsx as l, jsxs as h } from "react/jsx-runtime";
|
|
12
12
|
import { Avatar as z } from "@base-ui/react/avatar";
|
|
13
|
-
var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
13
|
+
var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95", ea = "_fallback_1bbob_107", B = {
|
|
14
14
|
root: X,
|
|
15
15
|
avatarPulsing: aa,
|
|
16
16
|
image: ta,
|
|
17
|
-
fallback:
|
|
18
|
-
},
|
|
17
|
+
fallback: ea
|
|
18
|
+
}, $ = ({ className: a, ...t }) => /* @__PURE__ */ l(z.Fallback, {
|
|
19
19
|
...t,
|
|
20
20
|
className: E(B.fallback, a)
|
|
21
|
-
}),
|
|
21
|
+
}), O = ({ className: a, ...t }) => /* @__PURE__ */ l(z.Image, {
|
|
22
22
|
...t,
|
|
23
23
|
className: E(B.image, a)
|
|
24
|
-
}),
|
|
25
|
-
const p = H(), f =
|
|
24
|
+
}), q = ({ name: a, colorSeed: t = a, size: e = "md", shape: i = "square", variant: r = "soft", color: o, backgroundColor: s, borderColor: c, pulsing: d = !1, ring: n = !1, className: _, style: m, ...g }) => {
|
|
25
|
+
const p = H(), f = I(a), T = f ? o ?? A({
|
|
26
26
|
string: t ?? "",
|
|
27
27
|
variant: 12,
|
|
28
28
|
theme: p
|
|
29
29
|
}) : o ?? p.font.color.tertiary, S = f ? s ?? A({
|
|
30
30
|
string: t ?? "",
|
|
31
|
-
variant:
|
|
31
|
+
variant: r === "outline" ? 5 : 4,
|
|
32
32
|
theme: p
|
|
33
33
|
}) : s ?? p.background.transparent.light, y = c ?? (f ? A({
|
|
34
34
|
string: t ?? "",
|
|
@@ -37,7 +37,7 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
37
37
|
}) : void 0);
|
|
38
38
|
return /* @__PURE__ */ l(z.Root, {
|
|
39
39
|
...g,
|
|
40
|
-
"data-size":
|
|
40
|
+
"data-size": e,
|
|
41
41
|
"data-shape": i,
|
|
42
42
|
"data-pulsing": d || void 0,
|
|
43
43
|
"data-ring": n || void 0,
|
|
@@ -45,21 +45,21 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
45
45
|
style: (u) => ({
|
|
46
46
|
"--tw-avatar-color": T,
|
|
47
47
|
"--tw-avatar-background": u.imageLoadingStatus === "loaded" ? "none" : S,
|
|
48
|
-
"--tw-avatar-border":
|
|
48
|
+
"--tw-avatar-border": r === "outline" && u.imageLoadingStatus !== "loaded" && y ? D(`1px solid ${y}`) : "none",
|
|
49
49
|
...Q(m) ? m(u) : m
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
|
-
},
|
|
53
|
-
const c =
|
|
52
|
+
}, ra = ({ src: a, name: t, icon: e, imageProps: i, fallbackProps: r, backgroundColor: o, ...s }) => {
|
|
53
|
+
const c = I(t), d = v(e) && !L(e) && e !== "", n = i?.alt ?? "", _ = !d && W(n), { children: m = d ? e : c || "-", ...g } = r ?? {}, p = v(g.role) || v(g["aria-label"]) || v(g["aria-labelledby"]), f = !_ && !p && !v(g.render);
|
|
54
54
|
return /* @__PURE__ */ h(q, {
|
|
55
55
|
...s,
|
|
56
56
|
name: t,
|
|
57
57
|
backgroundColor: d ? "inherit" : o,
|
|
58
|
-
children: [!d && /* @__PURE__ */ l(
|
|
58
|
+
children: [!d && /* @__PURE__ */ l(O, {
|
|
59
59
|
src: a ?? void 0,
|
|
60
60
|
...i,
|
|
61
61
|
alt: n
|
|
62
|
-
}), /* @__PURE__ */ l(
|
|
62
|
+
}), /* @__PURE__ */ l($, {
|
|
63
63
|
role: _ ? "img" : void 0,
|
|
64
64
|
"aria-label": _ ? n : void 0,
|
|
65
65
|
"aria-hidden": f || void 0,
|
|
@@ -67,10 +67,10 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
67
67
|
children: m
|
|
68
68
|
})]
|
|
69
69
|
});
|
|
70
|
-
}, La = Object.assign(
|
|
70
|
+
}, La = Object.assign(ra, {
|
|
71
71
|
Root: q,
|
|
72
|
-
Image:
|
|
73
|
-
Fallback:
|
|
72
|
+
Image: O,
|
|
73
|
+
Fallback: $
|
|
74
74
|
}), za = {
|
|
75
75
|
xxl: {
|
|
76
76
|
fontSize: "16px",
|
|
@@ -96,23 +96,23 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
96
96
|
fontSize: "8px",
|
|
97
97
|
width: "12px"
|
|
98
98
|
}
|
|
99
|
-
}, oa = "_badge_1bd5g_1", sa = { badge: oa }, Ba = ({ size: a = "sm", color: t = "tertiary", shape:
|
|
99
|
+
}, oa = "_badge_1bd5g_1", sa = { badge: oa }, Ba = ({ size: a = "sm", color: t = "tertiary", shape: e = "pill", className: i, render: r, ref: o, ...s }) => x({
|
|
100
100
|
defaultTagName: "span",
|
|
101
|
-
render:
|
|
101
|
+
render: r,
|
|
102
102
|
ref: o,
|
|
103
103
|
props: {
|
|
104
104
|
...s,
|
|
105
105
|
className: w(sa.badge, i),
|
|
106
106
|
"data-badge-size": a,
|
|
107
107
|
"data-badge-color": t,
|
|
108
|
-
"data-badge-shape":
|
|
108
|
+
"data-badge-shape": e
|
|
109
109
|
}
|
|
110
110
|
}), la = "_chip_3fwe7_1", ia = "_label_3fwe7_29", na = "_endElementDivider_3fwe7_90", C = {
|
|
111
111
|
chip: la,
|
|
112
112
|
label: ia,
|
|
113
113
|
endElementDivider: na
|
|
114
|
-
}, da = { height: "var(--t-spacing-4)" }, Fa = ({ children: a, size: t = "sm", variant:
|
|
115
|
-
const Z = v(a) && !L(a) && a !== "", G =
|
|
114
|
+
}, da = { height: "var(--t-spacing-4)" }, Fa = ({ children: a, size: t = "sm", variant: e = "ghost", color: i = "primary", shape: r = "square", weight: o = "regular", onClick: s, clickable: c = v(s), startElement: d, endElement: n, endElementDivider: _ = !1, maxWidth: m, truncate: g = !0, tooltipContent: p, tooltipDelay: f, isTooltipMultiline: T, tooltipPlace: S, alwaysShowTooltip: y = !1, className: u, style: M, render: V, ref: Y, ...U }) => {
|
|
115
|
+
const Z = v(a) && !L(a) && a !== "", G = P(a) ? {
|
|
116
116
|
text: a,
|
|
117
117
|
tooltipContent: p
|
|
118
118
|
} : {
|
|
@@ -120,19 +120,19 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
120
120
|
tooltipContent: p ?? ""
|
|
121
121
|
};
|
|
122
122
|
return x({
|
|
123
|
-
render:
|
|
124
|
-
ref:
|
|
123
|
+
render: V,
|
|
124
|
+
ref: Y,
|
|
125
125
|
state: {
|
|
126
126
|
size: t,
|
|
127
|
-
variant:
|
|
127
|
+
variant: e,
|
|
128
128
|
color: i,
|
|
129
|
-
shape:
|
|
129
|
+
shape: r,
|
|
130
130
|
weight: o,
|
|
131
131
|
clickable: c,
|
|
132
132
|
truncate: g
|
|
133
133
|
},
|
|
134
134
|
props: {
|
|
135
|
-
...
|
|
135
|
+
...U,
|
|
136
136
|
onClick: s,
|
|
137
137
|
className: w(C.chip, u),
|
|
138
138
|
style: {
|
|
@@ -141,7 +141,7 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
141
141
|
},
|
|
142
142
|
children: /* @__PURE__ */ h(N, { children: [
|
|
143
143
|
d,
|
|
144
|
-
Z && /* @__PURE__ */ l(
|
|
144
|
+
Z && /* @__PURE__ */ l(j, {
|
|
145
145
|
...G,
|
|
146
146
|
render: /* @__PURE__ */ l("span", {}),
|
|
147
147
|
className: C.label,
|
|
@@ -159,36 +159,36 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
159
159
|
}, ca = "_root_6bfj6_1", ma = "_circle_6bfj6_13", F = {
|
|
160
160
|
root: ca,
|
|
161
161
|
circle: ma
|
|
162
|
-
}, Ra = ({ colorName: a, color: t, variant:
|
|
162
|
+
}, Ra = ({ colorName: a, color: t, variant: e, className: i, style: r, render: o, ref: s, ...c }) => x({
|
|
163
163
|
defaultTagName: "div",
|
|
164
164
|
render: o,
|
|
165
165
|
ref: s,
|
|
166
166
|
props: {
|
|
167
167
|
...c,
|
|
168
|
-
className: w(F.root,
|
|
168
|
+
className: w(F.root, e === "circle" && F.circle, i),
|
|
169
169
|
style: {
|
|
170
170
|
"--color-sample-color": t ?? b.tag.background[a],
|
|
171
171
|
"--color-sample-border-color": b.tag.text[a],
|
|
172
|
-
...
|
|
172
|
+
...r
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
}), ga = "_status_y5v42_1", pa = "_content_y5v42_49", R = {
|
|
176
176
|
status: ga,
|
|
177
177
|
content: pa
|
|
178
|
-
}, Da = ({ children: a, color: t, loading:
|
|
178
|
+
}, Da = ({ children: a, color: t, loading: e = !1, weight: i = "regular", className: r, style: o, render: s, ref: c, ...d }) => {
|
|
179
179
|
const n = J(t);
|
|
180
180
|
return x({
|
|
181
181
|
defaultTagName: "span",
|
|
182
182
|
render: s,
|
|
183
183
|
ref: c,
|
|
184
184
|
state: {
|
|
185
|
-
loading:
|
|
185
|
+
loading: e,
|
|
186
186
|
weight: i
|
|
187
187
|
},
|
|
188
188
|
props: {
|
|
189
|
-
"aria-busy":
|
|
189
|
+
"aria-busy": e || void 0,
|
|
190
190
|
...d,
|
|
191
|
-
className: w(R.status,
|
|
191
|
+
className: w(R.status, r),
|
|
192
192
|
style: {
|
|
193
193
|
"--tw-status-background": b.tag.background[n],
|
|
194
194
|
"--tw-status-text-color": b.tag.text[n],
|
|
@@ -197,7 +197,7 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
197
197
|
children: /* @__PURE__ */ h(N, { children: [/* @__PURE__ */ l("span", {
|
|
198
198
|
className: R.content,
|
|
199
199
|
children: a
|
|
200
|
-
}),
|
|
200
|
+
}), e && /* @__PURE__ */ l(K, {
|
|
201
201
|
color: t,
|
|
202
202
|
"aria-hidden": "true",
|
|
203
203
|
render: /* @__PURE__ */ l("span", {})
|
|
@@ -209,13 +209,13 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
209
209
|
content: _a,
|
|
210
210
|
overflowingText: ba,
|
|
211
211
|
iconContainer: fa
|
|
212
|
-
}, Ia = ({ children: a, color: t, weight:
|
|
212
|
+
}, Ia = ({ children: a, color: t, weight: e = "regular", variant: i = "soft", startIcon: r, truncate: o = !0, borderStyle: s = "solid", className: c, style: d, render: n, ref: _, ...m }) => x({
|
|
213
213
|
defaultTagName: "span",
|
|
214
214
|
render: n,
|
|
215
215
|
ref: _,
|
|
216
216
|
state: {
|
|
217
217
|
variant: i,
|
|
218
|
-
weight:
|
|
218
|
+
weight: e,
|
|
219
219
|
truncate: o
|
|
220
220
|
},
|
|
221
221
|
props: {
|
|
@@ -227,13 +227,13 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
227
227
|
"--tw-tag-border-style": s,
|
|
228
228
|
...d
|
|
229
229
|
},
|
|
230
|
-
children: /* @__PURE__ */ h(N, { children: [v(
|
|
230
|
+
children: /* @__PURE__ */ h(N, { children: [v(r) && !L(r) && r !== "" && /* @__PURE__ */ l("span", {
|
|
231
231
|
className: k.iconContainer,
|
|
232
232
|
"aria-hidden": !0,
|
|
233
|
-
children:
|
|
233
|
+
children: r
|
|
234
234
|
}), /* @__PURE__ */ l("span", {
|
|
235
235
|
className: k.content,
|
|
236
|
-
children:
|
|
236
|
+
children: P(a) && o ? /* @__PURE__ */ l(j, {
|
|
237
237
|
text: a,
|
|
238
238
|
render: /* @__PURE__ */ l("span", {}),
|
|
239
239
|
className: k.overflowingText
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const m=require("./theme-BJRNJNPO.cjs"),b=require("./isDefined-DS2Q42p5.cjs"),R=require("./doNotTranslate-CHE7WmRS.cjs"),q=require("./mergeClassNames-D4lshrT6.cjs"),x=require("./utilities-YhvQ2XFb.cjs"),M=require("./Loader-Dau0YQpY.cjs"),O=require("./OverflowingTextWithTooltip-CuWHF8_e.cjs");let T=require("@base-ui/react/use-render"),p=require("@sniptt/guards"),j=require("clsx"),t=require("react/jsx-runtime"),A=require("@base-ui/react/avatar");var W="_root_1bbob_1",Z="_avatarPulsing_1bbob_1",U="_image_1bbob_95",G="_fallback_1bbob_107",k={root:W,avatarPulsing:Z,image:U,fallback:G},B=({className:e,...a})=>(0,t.jsx)(A.Avatar.Fallback,{...a,className:q.mergeClassNames(k.fallback,e)}),E=({className:e,...a})=>(0,t.jsx)(A.Avatar.Image,{...a,className:q.mergeClassNames(k.image,e)}),V=({name:e,colorSeed:a=e,size:r="md",shape:o="square",variant:s="soft",color:i,backgroundColor:n,borderColor:u,pulsing:d=!1,ring:l=!1,className:v,style:c,...g})=>{const _=m.useTheme(),f=x.getAvatarInitial(e),w=f?i??x.stringToThemeColorP3String({string:a??"",variant:12,theme:_}):i??_.font.color.tertiary,N=f?n??x.stringToThemeColorP3String({string:a??"",variant:s==="outline"?5:4,theme:_}):n??_.background.transparent.light,y=u??(f?x.stringToThemeColorP3String({string:a??"",variant:6,theme:_}):void 0);return(0,t.jsx)(A.Avatar.Root,{...g,"data-size":r,"data-shape":o,"data-pulsing":d||void 0,"data-ring":l||void 0,className:q.mergeClassNames(k.root,v),style:h=>({"--tw-avatar-color":w,"--tw-avatar-background":h.imageLoadingStatus==="loaded"?"none":N,"--tw-avatar-border":s==="outline"&&h.imageLoadingStatus!=="loaded"&&y?R.doNotTranslate(`1px solid ${y}`):"none",...(0,p.isFunction)(c)?c(h):c})})},H=({src:e,name:a,icon:r,imageProps:o,fallbackProps:s,backgroundColor:i,...n})=>{const u=x.getAvatarInitial(a),d=b.isDefined(r)&&!(0,p.isBoolean)(r)&&r!=="",l=o?.alt??"",v=!d&&(0,p.isNonEmptyString)(l),{children:c=d?r:u||"-",...g}=s??{},_=b.isDefined(g.role)||b.isDefined(g["aria-label"])||b.isDefined(g["aria-labelledby"]),f=!v&&!_&&!b.isDefined(g.render);return(0,t.jsxs)(V,{...n,name:a,backgroundColor:d?"inherit":i,children:[!d&&(0,t.jsx)(E,{src:e??void 0,...o,alt:l}),(0,t.jsx)(B,{role:v?"img":void 0,"aria-label":v?l:void 0,"aria-hidden":f||void 0,...g,children:c})]})},J=Object.assign(H,{Root:V,Image:E,Fallback:B}),K={xxl:{fontSize:"16px",width:"40px"},xl:{fontSize:"16px",width:"32px"},lg:{fontSize:"13px",width:"24px"},md:{fontSize:"12px",width:"16px"},sm:{fontSize:"10px",width:"14px"},xs:{fontSize:"8px",width:"12px"}},Q="_badge_1bd5g_1",X={badge:Q},ee=({size:e="sm",color:a="tertiary",shape:r="pill",className:o,render:s,ref:i,...n})=>(0,T.useRender)({defaultTagName:"span",render:s,ref:i,props:{...n,className:(0,j.clsx)(X.badge,o),"data-badge-size":e,"data-badge-color":a,"data-badge-shape":r}}),ae="_chip_3fwe7_1",te="_label_3fwe7_29",re="_endElementDivider_3fwe7_90",S={chip:ae,label:te,endElementDivider:re},se={height:"var(--t-spacing-4)"},ie=({children:e,size:a="sm",variant:r="ghost",color:o="primary",shape:s="square",weight:i="regular",onClick:n,clickable:u=b.isDefined(n),startElement:d,endElement:l,endElementDivider:v=!1,maxWidth:c,truncate:g=!0,tooltipContent:_,tooltipDelay:f,isTooltipMultiline:w,tooltipPlace:N,alwaysShowTooltip:y=!1,className:h,style:F,render:I,ref:L,...z})=>{const $=b.isDefined(e)&&!(0,p.isBoolean)(e)&&e!=="",Y=(0,p.isString)(e)?{text:e,tooltipContent:_}:{text:e??!1,tooltipContent:_??""};return(0,T.useRender)({render:I,ref:L,state:{size:a,variant:r,color:o,shape:s,weight:i,clickable:u,truncate:g},props:{...z,onClick:n,className:(0,j.clsx)(S.chip,h),style:{...b.isDefined(c)?{"--tw-chip-max-width":R.doNotTranslate(`${c}px`)}:{},...F},children:(0,t.jsxs)(t.Fragment,{children:[d,$&&(0,t.jsx)(O.OverflowingTextWithTooltip,{...Y,render:(0,t.jsx)("span",{}),className:S.label,style:a==="md"?se:void 0,truncate:g,tooltipDelay:f,isTooltipMultiline:w,tooltipPlace:N,alwaysShowTooltip:y}),b.isDefined(l)&&l!==!1&&(0,t.jsxs)(t.Fragment,{children:[v&&(0,t.jsx)("span",{className:S.endElementDivider}),l]})]})}})},ne="_root_6bfj6_1",oe="_circle_6bfj6_13",D={root:ne,circle:oe},le=({colorName:e,color:a,variant:r,className:o,style:s,render:i,ref:n,...u})=>(0,T.useRender)({defaultTagName:"div",render:i,ref:n,props:{...u,className:(0,j.clsx)(D.root,r==="circle"&&D.circle,o),style:{"--color-sample-color":a??m.themeCssVariables.tag.background[e],"--color-sample-border-color":m.themeCssVariables.tag.text[e],...s}}}),de="_status_y5v42_1",ue="_content_y5v42_49",P={status:de,content:ue},ce=({children:e,color:a,loading:r=!1,weight:o="regular",className:s,style:i,render:n,ref:u,...d})=>{const l=x.parseThemeColor(a);return(0,T.useRender)({defaultTagName:"span",render:n,ref:u,state:{loading:r,weight:o},props:{"aria-busy":r||void 0,...d,className:(0,j.clsx)(P.status,s),style:{"--tw-status-background":m.themeCssVariables.tag.background[l],"--tw-status-text-color":m.themeCssVariables.tag.text[l],...i},children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:P.content,children:e}),r&&(0,t.jsx)(M.Loader,{color:a,"aria-hidden":"true",render:(0,t.jsx)("span",{})})]})}})},ge="_tag_1ot0y_1",_e="_content_1ot0y_49",me="_overflowingText_1ot0y_58",be="_iconContainer_1ot0y_62",C={tag:ge,content:_e,overflowingText:me,iconContainer:be},ve=({children:e,color:a,weight:r="regular",variant:o="soft",startIcon:s,truncate:i=!0,borderStyle:n="solid",className:u,style:d,render:l,ref:v,...c})=>(0,T.useRender)({defaultTagName:"span",render:l,ref:v,state:{variant:o,weight:r,truncate:i},props:{...c,className:(0,j.clsx)(C.tag,u),style:{"--tw-tag-background":a==="transparent"?"transparent":m.themeCssVariables.tag.background[a]??m.themeCssVariables.tag.background.gray,"--tw-tag-text":a==="transparent"?m.themeCssVariables.font.color.secondary:m.themeCssVariables.tag.text[a]??m.themeCssVariables.font.color.secondary,"--tw-tag-border-style":n,...d},children:(0,t.jsxs)(t.Fragment,{children:[b.isDefined(s)&&!(0,p.isBoolean)(s)&&s!==""&&(0,t.jsx)("span",{className:C.iconContainer,"aria-hidden":!0,children:s}),(0,t.jsx)("span",{className:C.content,children:(0,p.isString)(e)&&i?(0,t.jsx)(O.OverflowingTextWithTooltip,{text:e,render:(0,t.jsx)("span",{}),className:C.overflowingText}):e})]})}});Object.defineProperty(exports,"AVATAR_PROPERTIES_BY_SIZE",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return ie}});Object.defineProperty(exports,"ColorSample",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"Status",{enumerable:!0,get:function(){return ce}});Object.defineProperty(exports,"Tag",{enumerable:!0,get:function(){return ve}});
|
|
@@ -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-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
|
+
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-C3IE0Kup.cjs"),O=require("./ProgressBar-km29TA-7.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}});
|
|
@@ -4,8 +4,8 @@ import { Ec as Z, Ni as ee, _i as _e, i as M, ws as he } from "./TablerIcons-B6B
|
|
|
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
|
-
import { t as z } from "./Button-
|
|
8
|
-
import { n as te, r as we, t as xe } from "./ProgressBar-
|
|
7
|
+
import { t as z } from "./Button-By-nG5vV.js";
|
|
8
|
+
import { n as te, r as we, t as xe } from "./ProgressBar-B_QvBWbI.js";
|
|
9
9
|
import { t as Ne } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
10
10
|
import { t as ye } from "./OverflowingTextWithTooltip-CAQ-5aUp.js";
|
|
11
11
|
import { t as Ae } from "./Separator-0LzwPfOn.js";
|