@mechane-ai/elements 0.65.0 → 0.67.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/README.md +21 -10
- package/dist/ai.js +285 -203
- package/dist/{article-BrUa4Wz1.js → article-anMy8fA5.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +81 -34
- package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-Bh7ZkEQn.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +3 -3
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
- package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-BQDGe0sQ.js} +3 -3
- package/dist/{embedding-map-BqDEmy88.js → embedding-map-DmmknG7A.js} +6 -6
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-DlyNTDzh.js} +22 -21
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-Dpyqxgwy.js → image-grid-CxEAQvTf.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +13 -13
- package/dist/kits/interpretability.js +47 -43
- package/dist/kits/operations.js +80 -79
- package/dist/kits/research.js +364 -499
- package/dist/kits/training.js +108 -107
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown--nfaDoR1.js → markdown-Diffqqm7.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
- package/dist/navigation.js +3 -3
- package/dist/packages/ai/src/index.d.ts +2 -0
- package/dist/packages/ai/src/message-reactions.d.ts +51 -0
- package/dist/packages/ai/src/message.d.ts +3 -1
- package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
- package/dist/packages/collections/src/card-columns.d.ts +30 -0
- package/dist/packages/collections/src/collection-page.d.ts +43 -0
- package/dist/packages/collections/src/column-card.d.ts +15 -0
- package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
- package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
- package/dist/packages/collections/src/data-table.d.ts +2 -2
- package/dist/packages/collections/src/index.d.ts +5 -0
- package/dist/packages/collections/src/table-query.d.ts +9 -1
- package/dist/packages/feedback/src/feedback.d.ts +0 -4
- package/dist/packages/feedback/src/index.d.ts +1 -1
- package/dist/packages/kits/src/research/index.d.ts +0 -2
- package/dist/{param-CwT1RvUS.js → param-CKr8EYxF.js} +1 -1
- package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
- package/dist/{plot-layout-CvkeUuG6.js → plot-layout-CVzSbcU7.js} +24 -23
- package/dist/{plot-surface-yy37R4vs.js → plot-surface-CBhI1alw.js} +1 -1
- package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C970JwWZ.js} +1 -1
- package/dist/{scene-BRhI8XSy.js → scene-C3dCxckI.js} +6 -6
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-BMOCaa8R.js → slope-chart-DekEJxsy.js} +4 -4
- package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
- package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
- package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
- package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
- package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
- package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
- package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
- package/dist/styles2.css +21 -1
- package/dist/{time-series-CTNVqoUQ.js → time-series-BSNnijxf.js} +8 -8
- package/dist/{timeline-DrsDtEIW.js → timeline-CnxfYSIg.js} +4 -4
- package/dist/{token-heatmap-DddArdH8.js → token-heatmap-CJaXo56P.js} +3 -3
- package/dist/{token-predictions-CBykmPID.js → token-predictions-Bi7aKPnh.js} +3 -3
- package/dist/{transport-r1QgELf8.js → transport-CXj0DV6o.js} +4 -4
- package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-BxOZsjr1.js} +4 -4
- package/dist/{treemap-DgmEw_mr.js → treemap-B2yOAetT.js} +4 -4
- package/dist/{use-tween-BWf44Jy4.js → use-tween-C1TWJwce.js} +1 -1
- package/dist/{violin-plot-BYJnv6sG.js → violin-plot-W2L_2JRo.js} +3 -3
- package/dist/{waterfall-BNseqMas.js → waterfall-Bt73N2Ng.js} +4 -4
- package/package.json +1 -1
- package/recipes/searchable-collection.tsx +74 -76
- package/skills/extend-elements/SKILL.md +2 -1
- package/skills/review-elements/SKILL.md +11 -7
- package/skills/upgrade-elements/SKILL.md +3 -1
- package/skills/upgrade-elements/references/releases.md +20 -0
- package/skills/use-elements/SKILL.md +8 -6
- package/skills/use-elements/references/collections.md +59 -12
- package/skills/use-elements/references/conversations.md +32 -0
- package/skills/use-elements/references/editorial-restraint.md +17 -29
- package/skills/use-elements/references/figures.md +6 -2
- package/skills/use-elements/references/workspace.md +5 -5
- package/dist/packages/kits/src/research/collection-page.d.ts +0 -71
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-
|
|
1
|
+
import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-Bkov5TTa.js";
|
|
2
2
|
import { t as o } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
3
|
import { t as s } from "./viewer-styles-DsFYri4K.js";
|
|
4
|
-
import { i as c, t as l } from "./code-block-
|
|
5
|
-
import { p as u } from "./src-
|
|
6
|
-
import { t as d } from "./content-link-
|
|
4
|
+
import { i as c, t as l } from "./code-block-DbW_t9U4.js";
|
|
5
|
+
import { p as u } from "./src-DceyVyL0.js";
|
|
6
|
+
import { t as d } from "./content-link-BN4NPp0u.js";
|
|
7
7
|
import * as f from "@stylexjs/stylex";
|
|
8
8
|
import { usePart as p, usePrimitive as m } from "@ui-sdk/react/primitive";
|
|
9
9
|
import { useCallback as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as b } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as e, L as t, N as n, P as r, i, s as a } from "./src-
|
|
1
|
+
import { F as e, L as t, N as n, P as r, i, s as a } from "./src-Bkov5TTa.js";
|
|
2
2
|
import { i as o } from "./tokens.stylex-dF5CACEJ.js";
|
|
3
3
|
import { t as s } from "./accessibility-P89UG9-r.js";
|
|
4
4
|
import { t as c } from "./chart-tones-ei3BC2AL.js";
|
|
@@ -7,12 +7,12 @@ import * as u from "@stylexjs/stylex";
|
|
|
7
7
|
import { mergeProps as d } from "@ui-sdk/react/primitive";
|
|
8
8
|
import { createContext as f, useContext as p, useEffect as m, useRef as h, useState as g } from "react";
|
|
9
9
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
|
-
import { Box as b, CircleCheck as
|
|
11
|
-
import { Meter as
|
|
12
|
-
import { Progress as
|
|
13
|
-
import { Toast as
|
|
10
|
+
import { Box as b, CircleCheck as x, CircleX as S, Info as C, LoaderCircle as w, TriangleAlert as T, X as ee } from "lucide-react";
|
|
11
|
+
import { Meter as te, MeterIndicator as ne, MeterLabel as re, MeterTrack as ie } from "@ui-sdk/react/meter";
|
|
12
|
+
import { Progress as ae, ProgressIndicator as oe, ProgressLabel as se, ProgressTrack as ce } from "@ui-sdk/react/progress";
|
|
13
|
+
import { Toast as le, ToastAction as E, ToastClose as D, ToastDescription as O, ToastRegion as k, ToastTitle as A, createToaster as j } from "@ui-sdk/react/toast";
|
|
14
14
|
// packages/feedback/src/feedback.tsx
|
|
15
|
-
function
|
|
15
|
+
function M({ title: e, children: t, action: n, ...r }) {
|
|
16
16
|
return /* @__PURE__ */ y("div", {
|
|
17
17
|
...d({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, r),
|
|
18
18
|
children: [
|
|
@@ -30,14 +30,8 @@ function N({ title: e, children: t, action: n, ...r }) {
|
|
|
30
30
|
]
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function P({ hasError: e = !1, ...t }) {
|
|
34
|
-
return /* @__PURE__ */ v("div", { ...d({ role: e ? "alert" : "status" }, {
|
|
35
|
-
0: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x1dqe72f x1f9ixgr xj0a0fe" },
|
|
36
|
-
1: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xj0a0fe xr5kp14 xcqwzn" }
|
|
37
|
-
}[!!e | 0], t) });
|
|
38
|
-
}
|
|
39
33
|
// packages/feedback/src/skeleton.tsx
|
|
40
|
-
var
|
|
34
|
+
var N = {
|
|
41
35
|
skeleton: {
|
|
42
36
|
k1xSpc: "x1lliihq",
|
|
43
37
|
ks0D6T: "x193iq5w",
|
|
@@ -75,50 +69,50 @@ var F = {
|
|
|
75
69
|
k7Eaqz: "xeuugli",
|
|
76
70
|
$$css: !0
|
|
77
71
|
}
|
|
78
|
-
},
|
|
79
|
-
rectangle:
|
|
80
|
-
circle:
|
|
72
|
+
}, P = {
|
|
73
|
+
rectangle: N.rectangle,
|
|
74
|
+
circle: N.circle
|
|
81
75
|
};
|
|
82
|
-
function
|
|
76
|
+
function F({ width: e = "100%", height: t = 8, shape: n = "rectangle" }) {
|
|
83
77
|
return /* @__PURE__ */ v("span", {
|
|
84
78
|
"aria-hidden": !0,
|
|
85
|
-
...u.props(
|
|
79
|
+
...u.props(N.skeleton, N.dimensions(e, t), P[n])
|
|
86
80
|
});
|
|
87
81
|
}
|
|
88
|
-
function
|
|
82
|
+
function I({ lines: e = 1, width: t = "100%" }) {
|
|
89
83
|
return /* @__PURE__ */ v("span", {
|
|
90
84
|
"aria-hidden": !0,
|
|
91
|
-
...u.props(
|
|
85
|
+
...u.props(N.text, N.width(t)),
|
|
92
86
|
children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ v("span", {
|
|
93
87
|
className: "x78zum5 x6s0dn4 xg2ss61",
|
|
94
|
-
children: /* @__PURE__ */ v(
|
|
88
|
+
children: /* @__PURE__ */ v(F, {
|
|
95
89
|
width: e > 1 && n === e - 1 ? "65%" : "100%",
|
|
96
90
|
height: "0.6em"
|
|
97
91
|
})
|
|
98
92
|
}, `placeholder-${n}`))
|
|
99
93
|
});
|
|
100
94
|
}
|
|
101
|
-
function
|
|
95
|
+
function L({ label: e, showLabel: t = !1 }) {
|
|
102
96
|
return /* @__PURE__ */ y("span", {
|
|
103
97
|
role: "status",
|
|
104
98
|
className: "x3nfvp2 x1n2onr6 x6s0dn4 xeuugli x193iq5w x1hnptsi x153jb6y x1hz01jw xtqrqnz x1778rvt xj57cvi xj0a0fe",
|
|
105
|
-
children: [/* @__PURE__ */ v(
|
|
99
|
+
children: [/* @__PURE__ */ v(w, {
|
|
106
100
|
"aria-hidden": !0,
|
|
107
101
|
className: "xtwnzbg x18utl2x x2lah0s"
|
|
108
102
|
}), /* @__PURE__ */ v("span", {
|
|
109
|
-
...u.props(
|
|
103
|
+
...u.props(N.label, !t && s.hidden),
|
|
110
104
|
children: e
|
|
111
105
|
})]
|
|
112
106
|
});
|
|
113
107
|
}
|
|
114
108
|
// packages/feedback/src/control-placeholders.tsx
|
|
115
|
-
var
|
|
109
|
+
var R = {
|
|
116
110
|
ks0D6T: "x193iq5w",
|
|
117
111
|
$$css: !0
|
|
118
|
-
},
|
|
112
|
+
}, z = {
|
|
119
113
|
kZKoxP: "x16ye13r",
|
|
120
114
|
$$css: !0
|
|
121
|
-
},
|
|
115
|
+
}, B = {
|
|
122
116
|
button: {
|
|
123
117
|
kWkggS: "x1r7kqkb",
|
|
124
118
|
kXLuUW: "xxymvpz",
|
|
@@ -130,39 +124,39 @@ var B = {
|
|
|
130
124
|
$$css: !0
|
|
131
125
|
},
|
|
132
126
|
width: (e) => [
|
|
133
|
-
|
|
127
|
+
R,
|
|
134
128
|
{
|
|
135
129
|
kzqmXN: e == null ? e : "x5lhr3w",
|
|
136
130
|
$$css: !0
|
|
137
131
|
},
|
|
138
132
|
{ "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
139
133
|
],
|
|
140
|
-
rows: (e) => [
|
|
134
|
+
rows: (e) => [z, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
|
|
141
135
|
};
|
|
142
|
-
function
|
|
136
|
+
function V({ width: t = "7ch", isIconOnly: i = !1, density: a = "standard", xstyle: s }) {
|
|
143
137
|
return /* @__PURE__ */ v("span", {
|
|
144
138
|
"aria-hidden": !0,
|
|
145
139
|
inert: !0,
|
|
146
|
-
...u.props(e.base, e.button, r[a], n[a], i && e.iconButton,
|
|
147
|
-
children: i ? /* @__PURE__ */ v(
|
|
140
|
+
...u.props(e.base, e.button, r[a], n[a], i && e.iconButton, B.button, s),
|
|
141
|
+
children: i ? /* @__PURE__ */ v(F, {
|
|
148
142
|
width: o.iconSize,
|
|
149
143
|
height: o.iconSize
|
|
150
|
-
}) : /* @__PURE__ */ v(
|
|
144
|
+
}) : /* @__PURE__ */ v(I, { width: t })
|
|
151
145
|
});
|
|
152
146
|
}
|
|
153
|
-
function
|
|
147
|
+
function H({ label: n, hint: i, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
|
|
154
148
|
let d = a ? Math.min(s, 6) : 1;
|
|
155
149
|
return /* @__PURE__ */ y("div", {
|
|
156
150
|
"aria-hidden": !0,
|
|
157
|
-
...u.props(e.fieldRoot,
|
|
151
|
+
...u.props(e.fieldRoot, B.width(c), l),
|
|
158
152
|
children: [
|
|
159
153
|
n !== void 0 && /* @__PURE__ */ v("span", {
|
|
160
154
|
...u.props(e.label),
|
|
161
155
|
children: n
|
|
162
156
|
}),
|
|
163
157
|
/* @__PURE__ */ v("div", {
|
|
164
|
-
...u.props(e.base, e.field, r[o], !a && e.singleLineField, !a && t[o], !a &&
|
|
165
|
-
children: /* @__PURE__ */ v(
|
|
158
|
+
...u.props(e.base, e.field, r[o], !a && e.singleLineField, !a && t[o], !a && B.singleLine, a && e.textarea, a && B.rows(s)),
|
|
159
|
+
children: /* @__PURE__ */ v(I, {
|
|
166
160
|
width: "60%",
|
|
167
161
|
lines: d
|
|
168
162
|
})
|
|
@@ -175,7 +169,7 @@ function W({ label: n, hint: i, isMultiline: a = !1, density: o = "standard", ro
|
|
|
175
169
|
});
|
|
176
170
|
}
|
|
177
171
|
// packages/feedback/src/progress.tsx
|
|
178
|
-
var
|
|
172
|
+
var U = {
|
|
179
173
|
root: {
|
|
180
174
|
k1xSpc: "x78zum5",
|
|
181
175
|
kXwgrk: "xdt5ytf",
|
|
@@ -256,7 +250,7 @@ var G = {
|
|
|
256
250
|
kB7OPa: "x9f619",
|
|
257
251
|
$$css: !0
|
|
258
252
|
}
|
|
259
|
-
},
|
|
253
|
+
}, W = {
|
|
260
254
|
stacked: {
|
|
261
255
|
root: void 0,
|
|
262
256
|
heading: void 0,
|
|
@@ -265,15 +259,15 @@ var G = {
|
|
|
265
259
|
track: void 0
|
|
266
260
|
},
|
|
267
261
|
inline: {
|
|
268
|
-
root:
|
|
269
|
-
heading:
|
|
262
|
+
root: U.inline,
|
|
263
|
+
heading: U.inlineHeading,
|
|
270
264
|
label: s.hidden,
|
|
271
|
-
value:
|
|
272
|
-
track:
|
|
265
|
+
value: U.inlineValue,
|
|
266
|
+
track: U.inlineTrack
|
|
273
267
|
}
|
|
274
268
|
};
|
|
275
269
|
function ue({ label: e, value: t, max: n, valueLabel: r }) {
|
|
276
|
-
return /* @__PURE__ */ y(
|
|
270
|
+
return /* @__PURE__ */ y(ae, {
|
|
277
271
|
value: t,
|
|
278
272
|
max: n,
|
|
279
273
|
locale: "en-US",
|
|
@@ -281,69 +275,69 @@ function ue({ label: e, value: t, max: n, valueLabel: r }) {
|
|
|
281
275
|
className: "x78zum5 xdt5ytf x1hnptsi xh8yej3 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft xj0a0fe",
|
|
282
276
|
children: [/* @__PURE__ */ y("div", {
|
|
283
277
|
className: "x78zum5 x1pha0wt x1qughib x1n8ia3y x1a02dak",
|
|
284
|
-
children: [/* @__PURE__ */ v(
|
|
278
|
+
children: [/* @__PURE__ */ v(se, {
|
|
285
279
|
className: "xeuugli x193iq5w",
|
|
286
280
|
children: e
|
|
287
281
|
}), /* @__PURE__ */ v("span", {
|
|
288
282
|
className: "xeuugli x193iq5w x153jb6y xss6m8b",
|
|
289
283
|
children: r
|
|
290
284
|
})]
|
|
291
|
-
}), /* @__PURE__ */ v(
|
|
285
|
+
}), /* @__PURE__ */ v(ce, {
|
|
292
286
|
...{
|
|
293
287
|
0: { className: "xqu0tyb xh8yej3 x1ok0vyi x1fa40ue xb3r6kr" },
|
|
294
288
|
1: { className: "xqu0tyb xh8yej3 x1ok0vyi xb3r6kr x1r7kqkb xmkeg23 xbsl7fq xqrc7c3 x9f619" }
|
|
295
289
|
}[t === null | 0],
|
|
296
|
-
children: t !== null && /* @__PURE__ */ v(
|
|
290
|
+
children: t !== null && /* @__PURE__ */ v(oe, { className: "x5yr21d x1pt885t x1ok0vyi" })
|
|
297
291
|
})]
|
|
298
292
|
});
|
|
299
293
|
}
|
|
300
294
|
function de({ label: e, value: t, max: n, valueLabel: r, layout: i = "stacked", tone: a }) {
|
|
301
|
-
let o =
|
|
302
|
-
return Number.isFinite(n) && n > 0 && l && t >= 0 && t <= n ? /* @__PURE__ */ y(
|
|
295
|
+
let o = W[i], s = a === void 0 ? void 0 : U.tone(c[a]), l = t !== null && Number.isFinite(t);
|
|
296
|
+
return Number.isFinite(n) && n > 0 && l && t >= 0 && t <= n ? /* @__PURE__ */ y(te, {
|
|
303
297
|
value: t,
|
|
304
298
|
max: n,
|
|
305
299
|
locale: "en-US",
|
|
306
300
|
getValueLabel: () => r,
|
|
307
|
-
...u.props(
|
|
301
|
+
...u.props(U.root, o.root),
|
|
308
302
|
children: [/* @__PURE__ */ y("div", {
|
|
309
|
-
...u.props(
|
|
310
|
-
children: [/* @__PURE__ */ v(
|
|
311
|
-
...u.props(
|
|
303
|
+
...u.props(U.heading, o.heading),
|
|
304
|
+
children: [/* @__PURE__ */ v(re, {
|
|
305
|
+
...u.props(U.label, o.label),
|
|
312
306
|
children: e
|
|
313
307
|
}), /* @__PURE__ */ v("span", {
|
|
314
|
-
...u.props(
|
|
308
|
+
...u.props(U.value, o.value),
|
|
315
309
|
children: r
|
|
316
310
|
})]
|
|
317
|
-
}), /* @__PURE__ */ v(
|
|
318
|
-
...u.props(
|
|
319
|
-
children: /* @__PURE__ */ v(
|
|
311
|
+
}), /* @__PURE__ */ v(ie, {
|
|
312
|
+
...u.props(U.track, o.track),
|
|
313
|
+
children: /* @__PURE__ */ v(ne, { ...u.props(U.indicator, s) })
|
|
320
314
|
})]
|
|
321
315
|
}) : /* @__PURE__ */ y("div", {
|
|
322
|
-
...u.props(
|
|
316
|
+
...u.props(U.root, o.root),
|
|
323
317
|
children: [/* @__PURE__ */ y("div", {
|
|
324
|
-
...u.props(
|
|
318
|
+
...u.props(U.heading, o.heading),
|
|
325
319
|
children: [/* @__PURE__ */ v("span", {
|
|
326
|
-
...u.props(
|
|
320
|
+
...u.props(U.label, o.label),
|
|
327
321
|
children: e
|
|
328
322
|
}), /* @__PURE__ */ v("span", {
|
|
329
|
-
...u.props(
|
|
323
|
+
...u.props(U.value, o.value),
|
|
330
324
|
children: r
|
|
331
325
|
})]
|
|
332
326
|
}), /* @__PURE__ */ v("div", {
|
|
333
327
|
"aria-hidden": !0,
|
|
334
|
-
...u.props(
|
|
328
|
+
...u.props(U.track, o.track, U.unknown)
|
|
335
329
|
})]
|
|
336
330
|
});
|
|
337
331
|
}
|
|
338
332
|
// packages/feedback/src/notifications.ts
|
|
339
333
|
var fe = 1e3, pe = 4;
|
|
340
334
|
function me() {
|
|
341
|
-
let e =
|
|
335
|
+
let e = j(), t = /* @__PURE__ */ new Map();
|
|
342
336
|
function n(n) {
|
|
343
337
|
if (n === void 0) return e;
|
|
344
338
|
let r = t.get(n);
|
|
345
339
|
if (r !== void 0) return r;
|
|
346
|
-
let i =
|
|
340
|
+
let i = j();
|
|
347
341
|
return typeof document < "u" && t.set(n, i), i;
|
|
348
342
|
}
|
|
349
343
|
function r(e, n) {
|
|
@@ -361,13 +355,13 @@ function me() {
|
|
|
361
355
|
dismiss: i
|
|
362
356
|
};
|
|
363
357
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
358
|
+
var G = me();
|
|
359
|
+
function K(e) {
|
|
366
360
|
return typeof e == "number" ? `#${e}` : e.replace(/^#/, "##");
|
|
367
361
|
}
|
|
368
|
-
function
|
|
369
|
-
let s =
|
|
370
|
-
...t !== void 0 && { id:
|
|
362
|
+
function q(e, { id: t, toasterId: n, title: r, description: i, action: a, shouldPersist: o }) {
|
|
363
|
+
let s = G.queueFor(n)({
|
|
364
|
+
...t !== void 0 && { id: K(t) },
|
|
371
365
|
type: e,
|
|
372
366
|
title: r,
|
|
373
367
|
description: i,
|
|
@@ -381,13 +375,13 @@ function J(e, { id: t, toasterId: n, title: r, description: i, action: a, should
|
|
|
381
375
|
return t ?? s;
|
|
382
376
|
}
|
|
383
377
|
var he = {
|
|
384
|
-
success: (e) =>
|
|
385
|
-
error: (e) =>
|
|
386
|
-
info: (e) =>
|
|
387
|
-
warning: (e) =>
|
|
388
|
-
loading: (e) =>
|
|
389
|
-
dismiss: ({ id: e }) =>
|
|
390
|
-
},
|
|
378
|
+
success: (e) => q("success", e),
|
|
379
|
+
error: (e) => q("error", e),
|
|
380
|
+
info: (e) => q("info", e),
|
|
381
|
+
warning: (e) => q("warning", e),
|
|
382
|
+
loading: (e) => q("loading", e),
|
|
383
|
+
dismiss: ({ id: e }) => G.dismiss(K(e))
|
|
384
|
+
}, J = {
|
|
391
385
|
region: {
|
|
392
386
|
kzqmXN: "x1261nif xqu3jwc",
|
|
393
387
|
kqGvvJ: "xtru72a xf6ji1w",
|
|
@@ -558,36 +552,36 @@ var he = {
|
|
|
558
552
|
}
|
|
559
553
|
}, ge = {
|
|
560
554
|
default: {
|
|
561
|
-
Icon:
|
|
562
|
-
tone:
|
|
555
|
+
Icon: C,
|
|
556
|
+
tone: J.neutral
|
|
563
557
|
},
|
|
564
558
|
info: {
|
|
565
|
-
Icon:
|
|
566
|
-
tone:
|
|
559
|
+
Icon: C,
|
|
560
|
+
tone: J.neutral
|
|
567
561
|
},
|
|
568
562
|
success: {
|
|
569
|
-
Icon:
|
|
570
|
-
tone:
|
|
563
|
+
Icon: x,
|
|
564
|
+
tone: J.success
|
|
571
565
|
},
|
|
572
566
|
warning: {
|
|
573
|
-
Icon:
|
|
574
|
-
tone:
|
|
567
|
+
Icon: T,
|
|
568
|
+
tone: J.warning
|
|
575
569
|
},
|
|
576
570
|
error: {
|
|
577
|
-
Icon:
|
|
578
|
-
tone:
|
|
571
|
+
Icon: S,
|
|
572
|
+
tone: J.error
|
|
579
573
|
},
|
|
580
574
|
loading: {
|
|
581
|
-
Icon:
|
|
582
|
-
tone:
|
|
575
|
+
Icon: w,
|
|
576
|
+
tone: J.neutral
|
|
583
577
|
}
|
|
584
578
|
}, _e = {
|
|
585
579
|
"x-default-marker": "x-default-marker",
|
|
586
580
|
$$css: !0
|
|
587
581
|
};
|
|
588
|
-
function
|
|
589
|
-
let c =
|
|
590
|
-
return m(() =>
|
|
582
|
+
function Y({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, visibleToasts: i = 3, showCloseButton: a = !0, closeButtonAriaLabel: o = "Dismiss notification", containerAriaLabel: s = "Notifications" }) {
|
|
583
|
+
let c = G.queueFor(e);
|
|
584
|
+
return m(() => G.bind(e, c), [e, c]), /* @__PURE__ */ v(k, {
|
|
591
585
|
toaster: c,
|
|
592
586
|
side: t,
|
|
593
587
|
align: n,
|
|
@@ -598,22 +592,22 @@ function ve({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
|
|
|
598
592
|
className: "x1261nif xqu3jwc xtru72a xf6ji1w xlwtff5 xqv9vo9 xyt9zns x1u22o8f xviucbn x1572sgj",
|
|
599
593
|
children: (e) => {
|
|
600
594
|
let { Icon: n, tone: r } = ge[e.type];
|
|
601
|
-
return /* @__PURE__ */ y(
|
|
602
|
-
...u.props(
|
|
595
|
+
return /* @__PURE__ */ y(le, {
|
|
596
|
+
...u.props(J.toast, J[t], J.focus, _e),
|
|
603
597
|
children: [
|
|
604
598
|
/* @__PURE__ */ v(n, {
|
|
605
599
|
"aria-hidden": !0,
|
|
606
|
-
...u.props(
|
|
600
|
+
...u.props(J.icon, J.part, r)
|
|
607
601
|
}),
|
|
608
602
|
/* @__PURE__ */ y("div", {
|
|
609
603
|
className: "x78zum5 xdt5ytf x148l3ej xeuugli xfko13i x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm",
|
|
610
|
-
children: [/* @__PURE__ */ v(
|
|
604
|
+
children: [/* @__PURE__ */ v(A, { className: "xk4h15q x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" }), /* @__PURE__ */ v(O, { className: "x153jb6y x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" })]
|
|
611
605
|
}),
|
|
612
|
-
e.action?.label !== void 0 && /* @__PURE__ */ v(
|
|
613
|
-
a && /* @__PURE__ */ v(
|
|
606
|
+
e.action?.label !== void 0 && /* @__PURE__ */ v(E, { className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9f619 xeuugli x193iq5w x17tes2r x17oiadl x1hmw7ec x1atzlso xc342km x1ok0vyi x1hz01jw xtqrqnz x1778rvt xk4h15q xeaf4i8 xj0a0fe x1ypdohk x1pt885t x1ymx3u3 xmn6lam x1eou8nq x13qnu6 x9v5kkp x19rmrnh x7s97pk x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm" }),
|
|
607
|
+
a && /* @__PURE__ */ v(D, {
|
|
614
608
|
"aria-label": o,
|
|
615
609
|
className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9f619 x193iq5w x17tes2r x17oiadl x1hmw7ec xc342km x1ok0vyi x1hz01jw xtqrqnz x1778rvt xk4h15q xeaf4i8 xj0a0fe x1ypdohk x10l6tqk x1m7q2ru x1b86y6l x16opp91 x1gjsuxi xnjsko4 xjbqb8w x153jb6y x1rfq5r5 x1dqpf9g x15wa9bl xvivl9a x13qnu6 x9v5kkp x19rmrnh x7s97pk x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm",
|
|
616
|
-
children: /* @__PURE__ */ v(
|
|
610
|
+
children: /* @__PURE__ */ v(ee, {
|
|
617
611
|
"aria-hidden": !0,
|
|
618
612
|
className: "xtwnzbg x18utl2x x1m5cc3j"
|
|
619
613
|
})
|
|
@@ -624,7 +618,7 @@ function ve({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
|
|
|
624
618
|
});
|
|
625
619
|
}
|
|
626
620
|
// packages/feedback/src/async-region.tsx
|
|
627
|
-
var X = f(void 0), Z = f(!1),
|
|
621
|
+
var X = f(void 0), Z = f(!1), ve = l.delaySeconds * 1e3, Q = {
|
|
628
622
|
content: {
|
|
629
623
|
k7Eaqz: "xeuugli",
|
|
630
624
|
kAzted: "x2lwn1j",
|
|
@@ -643,11 +637,11 @@ var X = f(void 0), Z = f(!1), ye = l.delaySeconds * 1e3, Q = {
|
|
|
643
637
|
k44tkh: "x11hm9ij",
|
|
644
638
|
$$css: !0
|
|
645
639
|
}
|
|
646
|
-
},
|
|
640
|
+
}, ye = {
|
|
647
641
|
content: null,
|
|
648
642
|
image: Q.imageReveal
|
|
649
643
|
};
|
|
650
|
-
function
|
|
644
|
+
function be({ identity: e, initialStartedAt: t, children: n }) {
|
|
651
645
|
let [r, i] = g(() => ({
|
|
652
646
|
identity: e,
|
|
653
647
|
startedAt: t ?? Date.now()
|
|
@@ -673,14 +667,14 @@ function $({ shouldEnter: e, presentation: t = "content", children: n }) {
|
|
|
673
667
|
};
|
|
674
668
|
}, [i]), /* @__PURE__ */ v("div", {
|
|
675
669
|
ref: o,
|
|
676
|
-
...u.props(Q.content, i && Q.reveal,
|
|
670
|
+
...u.props(Q.content, i && Q.reveal, ye[t]),
|
|
677
671
|
children: /* @__PURE__ */ v(Z, {
|
|
678
672
|
value: r || i,
|
|
679
673
|
children: n
|
|
680
674
|
})
|
|
681
675
|
});
|
|
682
676
|
}
|
|
683
|
-
function
|
|
677
|
+
function xe({ label: e, placeholder: t, startedAt: n, placeholderDelayMs: r, presentation: i }) {
|
|
684
678
|
let [a, o] = g(() => Date.now() - n >= r ? n : void 0), c = a === n, l = i === "image";
|
|
685
679
|
return m(() => {
|
|
686
680
|
let e = Math.max(0, r - (Date.now() - n)), t = setTimeout(() => o(n), e);
|
|
@@ -705,7 +699,7 @@ function Se({ label: e, placeholder: t, startedAt: n, placeholderDelayMs: r, pre
|
|
|
705
699
|
children: e
|
|
706
700
|
})] });
|
|
707
701
|
}
|
|
708
|
-
function
|
|
702
|
+
function Se(e) {
|
|
709
703
|
let t = p(X), [n, r] = g(() => ({
|
|
710
704
|
state: e.state,
|
|
711
705
|
scope: t,
|
|
@@ -723,8 +717,8 @@ function Ce(e) {
|
|
|
723
717
|
}
|
|
724
718
|
return /* @__PURE__ */ v("div", {
|
|
725
719
|
className: "x1n2onr6 xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu",
|
|
726
|
-
children: e.state === "pending" ? /* @__PURE__ */ v(
|
|
727
|
-
placeholderDelayMs: e.placeholderDelayMs ??
|
|
720
|
+
children: e.state === "pending" ? /* @__PURE__ */ v(xe, {
|
|
721
|
+
placeholderDelayMs: e.placeholderDelayMs ?? ve,
|
|
728
722
|
label: e.label,
|
|
729
723
|
placeholder: e.placeholder,
|
|
730
724
|
startedAt: i.startedAt,
|
|
@@ -739,4 +733,4 @@ function Ce(e) {
|
|
|
739
733
|
})
|
|
740
734
|
});
|
|
741
735
|
}
|
|
742
|
-
export { he as a,
|
|
736
|
+
export { he as a, V as c, I as d, L as f, Y as i, H as l, $ as n, de as o, M as p, be as r, ue as s, Se as t, F as u };
|