twenty-ui 2.58.0 → 2.60.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/{Button-wpJzTy9O.js → Button-BVp1tP3u.js} +1 -1
- package/dist/{Button-CbJ3qEQ9.cjs → Button-CYgpR3Jw.cjs} +1 -1
- package/dist/{Dropdown-CV8O8IPo.js → Dropdown-C63OU_S6.js} +178 -178
- package/dist/{Dropdown-CTTQTn7B.cjs → Dropdown-qnoxYnTy.cjs} +1 -1
- package/dist/{ListItem-D6FYdx6v.cjs → ListItem-CL7Ccboe.cjs} +1 -1
- package/dist/{ListItem-C9yyYuIT.js → ListItem-CLyf0SKI.js} +1 -1
- package/dist/{ProgressBar-CSCAWfHW.cjs → ProgressBar-B77cH6E4.cjs} +1 -1
- package/dist/{ProgressBar-BTEZiRUL.js → ProgressBar-DLSx-Vbf.js} +1 -1
- package/dist/{Radio-CjaEN7Bt.cjs → Radio-Bc3suBSH.cjs} +1 -1
- package/dist/{Radio-DdZ07JJK.js → Radio-DYFBIqGX.js} +1 -1
- package/dist/Shortcut-DW3f3shu.js +73 -0
- package/dist/Shortcut-DdVgROMz.cjs +1 -0
- 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 +5 -5
- package/dist/{data-display-njtZTjjY.js → data-display-1knPFjFb.js} +47 -47
- package/dist/{data-display-B0ANuV9c.cjs → data-display-DSsYNdOB.cjs} +1 -1
- package/dist/{feedback-DUoCvdM-.cjs → feedback-CvdYiUtl.cjs} +1 -1
- package/dist/{feedback-BuqRtaQX.js → feedback-DAy-YtWF.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +13 -13
- package/dist/{input-B9zsrdsB.cjs → input-CJeJRJEE.cjs} +1 -1
- package/dist/{input-CpFhHo1F.js → input-DbqZOk3B.js} +3 -3
- package/dist/{input-Dwk_oei3.js → input-DlnFdlyP.js} +2 -2
- package/dist/{input-DQfXFl5C.cjs → input-DpOc15uJ.cjs} +1 -1
- package/dist/{navigation-D65GGk3w.js → navigation-BYAaQcFv.js} +3 -3
- package/dist/{navigation-C_MdtheL.cjs → navigation-DNeW09sP.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-DWFRds1d.js → settings-DO8iTxTf.js} +1 -1
- package/dist/{settings-gd-ps3zs.cjs → settings-Drg5Dh7x.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{typography-DvK5mDnG.js → typography-2FnTtHn5.js} +1 -1
- package/dist/{typography-BQbeIT60.cjs → typography-sp0v9uF_.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Shortcut-04Wkuy0i.js +0 -77
- package/dist/Shortcut-Gp5Ix8K2.cjs +0 -1
|
@@ -8,49 +8,49 @@ import { t as j } from "./OverflowingTextWithTooltip-aPLt9O1-.js";
|
|
|
8
8
|
import { isBoolean as L, isFunction as Q, isNonEmptyString as W, isString as P } from "@sniptt/guards";
|
|
9
9
|
import { clsx as x } from "clsx";
|
|
10
10
|
import { Fragment as N, jsx as l, jsxs as h } from "react/jsx-runtime";
|
|
11
|
-
import { useRender as
|
|
11
|
+
import { useRender as k } from "@base-ui/react/use-render";
|
|
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", ra = "_fallback_1bbob_107", B = {
|
|
14
14
|
root: X,
|
|
15
15
|
avatarPulsing: aa,
|
|
16
16
|
image: ta,
|
|
17
|
-
fallback:
|
|
17
|
+
fallback: ra
|
|
18
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
|
-
}), q = ({ name: a, colorSeed: t = a, size:
|
|
25
|
-
const p = H(),
|
|
24
|
+
}), q = ({ name: a, colorSeed: t = a, size: r = "md", shape: i = "square", variant: e = "soft", color: o, backgroundColor: s, borderColor: c, pulsing: d = !1, ring: n = !1, className: _, style: m, ...g }) => {
|
|
25
|
+
const p = H(), u = I(a), T = u ? o ?? A({
|
|
26
26
|
string: t ?? "",
|
|
27
27
|
variant: 12,
|
|
28
28
|
theme: p
|
|
29
|
-
}) : o ?? p.font.color.tertiary, S =
|
|
29
|
+
}) : o ?? p.font.color.tertiary, S = u ? s ?? A({
|
|
30
30
|
string: t ?? "",
|
|
31
|
-
variant:
|
|
31
|
+
variant: e === "outline" ? 5 : 4,
|
|
32
32
|
theme: p
|
|
33
|
-
}) : s ?? p.background.transparent.light,
|
|
33
|
+
}) : s ?? p.background.transparent.light, y = c ?? (u ? A({
|
|
34
34
|
string: t ?? "",
|
|
35
35
|
variant: 6,
|
|
36
36
|
theme: p
|
|
37
37
|
}) : void 0);
|
|
38
38
|
return /* @__PURE__ */ l(z.Root, {
|
|
39
39
|
...g,
|
|
40
|
-
"data-size":
|
|
40
|
+
"data-size": r,
|
|
41
41
|
"data-shape": i,
|
|
42
42
|
"data-pulsing": d || void 0,
|
|
43
43
|
"data-ring": n || void 0,
|
|
44
44
|
className: E(B.root, _),
|
|
45
|
-
style: (
|
|
45
|
+
style: (f) => ({
|
|
46
46
|
"--tw-avatar-color": T,
|
|
47
|
-
"--tw-avatar-background":
|
|
48
|
-
"--tw-avatar-border":
|
|
49
|
-
...Q(m) ? m(
|
|
47
|
+
"--tw-avatar-background": f.imageLoadingStatus === "loaded" ? "none" : S,
|
|
48
|
+
"--tw-avatar-border": e === "outline" && f.imageLoadingStatus !== "loaded" && y ? D(`1px solid ${y}`) : "none",
|
|
49
|
+
...Q(m) ? m(f) : m
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
|
-
},
|
|
53
|
-
const c = I(t), d = v(
|
|
52
|
+
}, ea = ({ src: a, name: t, icon: r, imageProps: i, fallbackProps: e, backgroundColor: o, ...s }) => {
|
|
53
|
+
const c = I(t), d = v(r) && !L(r) && r !== "", n = i?.alt ?? "", _ = !d && W(n), { children: m = d ? r : c || "-", ...g } = e ?? {}, p = v(g.role) || v(g["aria-label"]) || v(g["aria-labelledby"]), u = !_ && !p && !v(g.render);
|
|
54
54
|
return /* @__PURE__ */ h(q, {
|
|
55
55
|
...s,
|
|
56
56
|
name: t,
|
|
@@ -62,12 +62,12 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
62
62
|
}), /* @__PURE__ */ l($, {
|
|
63
63
|
role: _ ? "img" : void 0,
|
|
64
64
|
"aria-label": _ ? n : void 0,
|
|
65
|
-
"aria-hidden":
|
|
65
|
+
"aria-hidden": u || void 0,
|
|
66
66
|
...g,
|
|
67
67
|
children: m
|
|
68
68
|
})]
|
|
69
69
|
});
|
|
70
|
-
}, La = Object.assign(
|
|
70
|
+
}, La = Object.assign(ea, {
|
|
71
71
|
Root: q,
|
|
72
72
|
Image: O,
|
|
73
73
|
Fallback: $
|
|
@@ -96,22 +96,22 @@ 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_eakxs_1", sa = { badge: oa }, Ba = ({ size: a = "sm", color: t = "tertiary", shape:
|
|
99
|
+
}, oa = "_badge_eakxs_1", sa = { badge: oa }, Ba = ({ size: a = "sm", color: t = "tertiary", shape: r = "pill", className: i, render: e, ref: o, ...s }) => k({
|
|
100
100
|
defaultTagName: "span",
|
|
101
|
-
render:
|
|
101
|
+
render: e,
|
|
102
102
|
ref: o,
|
|
103
103
|
props: {
|
|
104
104
|
...s,
|
|
105
105
|
className: x(sa.badge, i),
|
|
106
106
|
"data-badge-size": a,
|
|
107
107
|
"data-badge-color": t,
|
|
108
|
-
"data-badge-shape":
|
|
108
|
+
"data-badge-shape": r
|
|
109
109
|
}
|
|
110
|
-
}), la = "
|
|
110
|
+
}), la = "_chip_i928o_1", ia = "_label_i928o_29", na = "_endElementDivider_i928o_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:
|
|
114
|
+
}, da = { height: "var(--t-spacing-4)" }, Fa = ({ children: a, size: t = "sm", variant: r = "ghost", color: i = "primary", shape: e = "square", weight: o = "regular", onClick: s, clickable: c = v(s), startElement: d, endElement: n, endElementDivider: _ = !1, maxWidth: m, truncate: g = !0, tooltipContent: p, tooltipDelay: u, isTooltipMultiline: T, tooltipPlace: S, alwaysShowTooltip: y = !1, className: f, style: M, render: V, ref: Y, ...U }) => {
|
|
115
115
|
const Z = v(a) && !L(a) && a !== "", G = P(a) ? {
|
|
116
116
|
text: a,
|
|
117
117
|
tooltipContent: p
|
|
@@ -119,14 +119,14 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
119
119
|
text: a ?? !1,
|
|
120
120
|
tooltipContent: p ?? ""
|
|
121
121
|
};
|
|
122
|
-
return
|
|
122
|
+
return k({
|
|
123
123
|
render: V,
|
|
124
124
|
ref: Y,
|
|
125
125
|
state: {
|
|
126
126
|
size: t,
|
|
127
|
-
variant:
|
|
127
|
+
variant: r,
|
|
128
128
|
color: i,
|
|
129
|
-
shape:
|
|
129
|
+
shape: e,
|
|
130
130
|
weight: o,
|
|
131
131
|
clickable: c,
|
|
132
132
|
truncate: g
|
|
@@ -134,7 +134,7 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
134
134
|
props: {
|
|
135
135
|
...U,
|
|
136
136
|
onClick: s,
|
|
137
|
-
className: x(C.chip,
|
|
137
|
+
className: x(C.chip, f),
|
|
138
138
|
style: {
|
|
139
139
|
...v(m) ? { "--tw-chip-max-width": D(`${m}px`) } : {},
|
|
140
140
|
...M
|
|
@@ -147,10 +147,10 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
|
|
|
147
147
|
className: C.label,
|
|
148
148
|
style: t === "md" ? da : void 0,
|
|
149
149
|
truncate: g,
|
|
150
|
-
tooltipDelay:
|
|
150
|
+
tooltipDelay: u,
|
|
151
151
|
isTooltipMultiline: T,
|
|
152
152
|
tooltipPlace: S,
|
|
153
|
-
alwaysShowTooltip:
|
|
153
|
+
alwaysShowTooltip: y
|
|
154
154
|
}),
|
|
155
155
|
v(n) && n !== !1 && /* @__PURE__ */ h(N, { children: [_ && /* @__PURE__ */ l("span", { className: C.endElementDivider }), n] })
|
|
156
156
|
] })
|
|
@@ -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: r, className: i, style: e, render: o, ref: s, ...c }) => k({
|
|
163
163
|
defaultTagName: "div",
|
|
164
164
|
render: o,
|
|
165
165
|
ref: s,
|
|
166
166
|
props: {
|
|
167
167
|
...c,
|
|
168
|
-
className: x(F.root,
|
|
168
|
+
className: x(F.root, r === "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
|
+
...e
|
|
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: r = !1, weight: i = "regular", className: e, style: o, render: s, ref: c, ...d }) => {
|
|
179
179
|
const n = J(t);
|
|
180
|
-
return
|
|
180
|
+
return k({
|
|
181
181
|
defaultTagName: "span",
|
|
182
182
|
render: s,
|
|
183
183
|
ref: c,
|
|
184
184
|
state: {
|
|
185
|
-
loading:
|
|
185
|
+
loading: r,
|
|
186
186
|
weight: i
|
|
187
187
|
},
|
|
188
188
|
props: {
|
|
189
|
-
"aria-busy":
|
|
189
|
+
"aria-busy": r || void 0,
|
|
190
190
|
...d,
|
|
191
|
-
className: x(R.status,
|
|
191
|
+
className: x(R.status, e),
|
|
192
192
|
style: {
|
|
193
193
|
"--tw-status-background": b.tag.background[n],
|
|
194
194
|
"--tw-status-text-color": b.tag.text[n],
|
|
@@ -197,46 +197,46 @@ 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
|
+
}), r && /* @__PURE__ */ l(K, {
|
|
201
201
|
color: t,
|
|
202
202
|
"aria-hidden": "true",
|
|
203
203
|
render: /* @__PURE__ */ l("span", {})
|
|
204
204
|
})] })
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
}, va = "_tag_1ot0y_1", _a = "_content_1ot0y_49", ba = "_overflowingText_1ot0y_58",
|
|
207
|
+
}, va = "_tag_1ot0y_1", _a = "_content_1ot0y_49", ba = "_overflowingText_1ot0y_58", ua = "_iconContainer_1ot0y_62", w = {
|
|
208
208
|
tag: va,
|
|
209
209
|
content: _a,
|
|
210
210
|
overflowingText: ba,
|
|
211
|
-
iconContainer:
|
|
212
|
-
}, Ia = ({ children: a, color: t, weight:
|
|
211
|
+
iconContainer: ua
|
|
212
|
+
}, Ia = ({ children: a, color: t, weight: r = "regular", variant: i = "soft", startIcon: e, truncate: o = !0, borderStyle: s = "solid", className: c, style: d, render: n, ref: _, ...m }) => k({
|
|
213
213
|
defaultTagName: "span",
|
|
214
214
|
render: n,
|
|
215
215
|
ref: _,
|
|
216
216
|
state: {
|
|
217
217
|
variant: i,
|
|
218
|
-
weight:
|
|
218
|
+
weight: r,
|
|
219
219
|
truncate: o
|
|
220
220
|
},
|
|
221
221
|
props: {
|
|
222
222
|
...m,
|
|
223
|
-
className: x(
|
|
223
|
+
className: x(w.tag, c),
|
|
224
224
|
style: {
|
|
225
225
|
"--tw-tag-background": t === "transparent" ? "transparent" : b.tag.background[t] ?? b.tag.background.gray,
|
|
226
226
|
"--tw-tag-text": t === "transparent" ? b.font.color.secondary : b.tag.text[t] ?? b.font.color.secondary,
|
|
227
227
|
"--tw-tag-border-style": s,
|
|
228
228
|
...d
|
|
229
229
|
},
|
|
230
|
-
children: /* @__PURE__ */ h(N, { children: [v(
|
|
231
|
-
className:
|
|
230
|
+
children: /* @__PURE__ */ h(N, { children: [v(e) && !L(e) && e !== "" && /* @__PURE__ */ l("span", {
|
|
231
|
+
className: w.iconContainer,
|
|
232
232
|
"aria-hidden": !0,
|
|
233
|
-
children:
|
|
233
|
+
children: e
|
|
234
234
|
}), /* @__PURE__ */ l("span", {
|
|
235
|
-
className:
|
|
235
|
+
className: w.content,
|
|
236
236
|
children: P(a) && o ? /* @__PURE__ */ l(j, {
|
|
237
237
|
text: a,
|
|
238
238
|
render: /* @__PURE__ */ l("span", {}),
|
|
239
|
-
className:
|
|
239
|
+
className: w.overflowingText
|
|
240
240
|
}) : a
|
|
241
241
|
})] })
|
|
242
242
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const m=require("./theme-CeIzO6UU.cjs"),b=require("./isDefined-DS2Q42p5.cjs"),R=require("./doNotTranslate-CHE7WmRS.cjs"),k=require("./mergeClassNames-D4lshrT6.cjs"),x=require("./utilities-9ARl_uku.cjs"),M=require("./Loader-r-OAVzF_.cjs"),O=require("./OverflowingTextWithTooltip-B21zZWP6.cjs");let
|
|
1
|
+
const m=require("./theme-CeIzO6UU.cjs"),b=require("./isDefined-DS2Q42p5.cjs"),R=require("./doNotTranslate-CHE7WmRS.cjs"),k=require("./mergeClassNames-D4lshrT6.cjs"),x=require("./utilities-9ARl_uku.cjs"),M=require("./Loader-r-OAVzF_.cjs"),O=require("./OverflowingTextWithTooltip-B21zZWP6.cjs");let f=require("@sniptt/guards"),T=require("clsx"),t=require("react/jsx-runtime"),j=require("@base-ui/react/use-render"),q=require("@base-ui/react/avatar");var W="_root_1bbob_1",Z="_avatarPulsing_1bbob_1",U="_image_1bbob_95",G="_fallback_1bbob_107",A={root:W,avatarPulsing:Z,image:U,fallback:G},B=({className:e,...a})=>(0,t.jsx)(q.Avatar.Fallback,{...a,className:k.mergeClassNames(A.fallback,e)}),E=({className:e,...a})=>(0,t.jsx)(q.Avatar.Image,{...a,className:k.mergeClassNames(A.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(),p=x.getAvatarInitial(e),N=p?i??x.stringToThemeColorP3String({string:a??"",variant:12,theme:_}):i??_.font.color.tertiary,S=p?n??x.stringToThemeColorP3String({string:a??"",variant:s==="outline"?5:4,theme:_}):n??_.background.transparent.light,y=u??(p?x.stringToThemeColorP3String({string:a??"",variant:6,theme:_}):void 0);return(0,t.jsx)(q.Avatar.Root,{...g,"data-size":r,"data-shape":o,"data-pulsing":d||void 0,"data-ring":l||void 0,className:k.mergeClassNames(A.root,v),style:h=>({"--tw-avatar-color":N,"--tw-avatar-background":h.imageLoadingStatus==="loaded"?"none":S,"--tw-avatar-border":s==="outline"&&h.imageLoadingStatus!=="loaded"&&y?R.doNotTranslate(`1px solid ${y}`):"none",...(0,f.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,f.isBoolean)(r)&&r!=="",l=o?.alt??"",v=!d&&(0,f.isNonEmptyString)(l),{children:c=d?r:u||"-",...g}=s??{},_=b.isDefined(g.role)||b.isDefined(g["aria-label"])||b.isDefined(g["aria-labelledby"]),p=!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":p||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_eakxs_1",X={badge:Q},ee=({size:e="sm",color:a="tertiary",shape:r="pill",className:o,render:s,ref:i,...n})=>(0,j.useRender)({defaultTagName:"span",render:s,ref:i,props:{...n,className:(0,T.clsx)(X.badge,o),"data-badge-size":e,"data-badge-color":a,"data-badge-shape":r}}),ae="_chip_i928o_1",te="_label_i928o_29",re="_endElementDivider_i928o_90",w={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:p,isTooltipMultiline:N,tooltipPlace:S,alwaysShowTooltip:y=!1,className:h,style:F,render:I,ref:L,...z})=>{const $=b.isDefined(e)&&!(0,f.isBoolean)(e)&&e!=="",Y=(0,f.isString)(e)?{text:e,tooltipContent:_}:{text:e??!1,tooltipContent:_??""};return(0,j.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,T.clsx)(w.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:w.label,style:a==="md"?se:void 0,truncate:g,tooltipDelay:p,isTooltipMultiline:N,tooltipPlace:S,alwaysShowTooltip:y}),b.isDefined(l)&&l!==!1&&(0,t.jsxs)(t.Fragment,{children:[v&&(0,t.jsx)("span",{className:w.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,j.useRender)({defaultTagName:"div",render:i,ref:n,props:{...u,className:(0,T.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,j.useRender)({defaultTagName:"span",render:n,ref:u,state:{loading:r,weight:o},props:{"aria-busy":r||void 0,...d,className:(0,T.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,j.useRender)({defaultTagName:"span",render:l,ref:v,state:{variant:o,weight:r,truncate:i},props:{...c,className:(0,T.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,f.isBoolean)(s)&&s!==""&&(0,t.jsx)("span",{className:C.iconContainer,"aria-hidden":!0,children:s}),(0,t.jsx)("span",{className:C.content,children:(0,f.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-CeIzO6UU.cjs"),d=require("./isDefined-DS2Q42p5.cjs"),y=require("./isRenderableSlot-Guryb6Nf.cjs"),P=require("./doNotTranslate-CHE7WmRS.cjs"),fe=require("./mergeClassNames-D4lshrT6.cjs"),I=require("./Button-CbJ3qEQ9.cjs"),O=require("./ProgressBar-CSCAWfHW.cjs"),ve=require("./useProvidedTextDirection-PVaoQCLH.cjs"),_e=require("./OverflowingTextWithTooltip-B21zZWP6.cjs"),me=require("./Separator-UJVlrTzw.cjs");let E=require("@sniptt/guards"),R=require("clsx"),r=require("react/jsx-runtime"),F=require("@base-ui/react/use-render"),p=require("react"),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-CeIzO6UU.cjs"),d=require("./isDefined-DS2Q42p5.cjs"),y=require("./isRenderableSlot-Guryb6Nf.cjs"),P=require("./doNotTranslate-CHE7WmRS.cjs"),fe=require("./mergeClassNames-D4lshrT6.cjs"),I=require("./Button-CYgpR3Jw.cjs"),O=require("./ProgressBar-B77cH6E4.cjs"),ve=require("./useProvidedTextDirection-PVaoQCLH.cjs"),_e=require("./OverflowingTextWithTooltip-B21zZWP6.cjs"),me=require("./Separator-UJVlrTzw.cjs");let E=require("@sniptt/guards"),R=require("clsx"),r=require("react/jsx-runtime"),F=require("@base-ui/react/use-render"),p=require("react"),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 { t as A } from "./isRenderableSlot-DT_depzM.js";
|
|
|
4
4
|
import { As as ge, Ii as Z, Mc as ee, bi as Ce, i as B } from "./TablerIcons-C9XA-vxC.js";
|
|
5
5
|
import { t as I } from "./doNotTranslate-BSVT8Xyd.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-BVp1tP3u.js";
|
|
8
|
+
import { n as te, r as we, t as xe } from "./ProgressBar-DLSx-Vbf.js";
|
|
9
9
|
import { t as Ae } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
10
10
|
import { t as ye } from "./OverflowingTextWithTooltip-aPLt9O1-.js";
|
|
11
11
|
import { t as Ne } from "./Separator-0LzwPfOn.js";
|