@mechane-ai/elements 0.44.0 → 0.45.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/ai.js +1 -1
- package/dist/catalog.json +5 -1
- package/dist/categorical-values-DZLGQVW1.js +63 -0
- package/dist/{chart-frame-Bcd9Tpt5.js → chart-frame-Ztktqs1b.js} +85 -81
- package/dist/{chart-input-B6_HXFDP.js → chart-input-BO3BqlFO.js} +2 -2
- package/dist/charts/cartesian.js +832 -816
- package/dist/charts/distribution.js +275 -270
- package/dist/charts/graph.js +208 -197
- package/dist/charts/hierarchy.js +6 -6
- package/dist/charts/matrix.js +3 -3
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +3 -3
- package/dist/collections.js +2 -2
- package/dist/{constants.stylex-CaVa9yGN.js → constants.stylex-CqhVl0uU.js} +9 -9
- package/dist/content/tree.js +1 -1
- package/dist/feedback.js +1 -1
- package/dist/packages/charts/src/chart-theme.d.ts +8 -1
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +2 -0
- package/dist/packages/charts/src/index.d.ts +1 -1
- package/dist/packages/foundations/src/chart-tones.d.ts +5 -0
- package/dist/{plot-width-8cXdAjoD.js → plot-width-CIqBiHcd.js} +13 -4
- package/dist/{src-CDp1JtwC.js → src-Dcs3SZ9V.js} +134 -119
- package/dist/styles2.css +31 -18
- package/dist/tokens.js +1 -1
- package/package.json +1 -1
- package/packages/foundations/src/constants.stylex.ts +9 -9
- package/packages/foundations/src/tokens.stylex.ts +9 -9
- package/skills/use-elements/references/reports.md +6 -4
- package/dist/categorical-values-ByvFLaNE.js +0 -59
|
@@ -2,21 +2,21 @@ import { i as e, s as t } from "./src-DcW_gMX8.js";
|
|
|
2
2
|
import { a as n, n as r, r as i, t as a } from "./control-styles-D3q_Qyxi.js";
|
|
3
3
|
import { i as o, n as s, r as c } from "./tokens.stylex-dF5CACEJ.js";
|
|
4
4
|
import { t as l } from "./accessibility-P89UG9-r.js";
|
|
5
|
-
import { c as u } from "./constants.stylex-
|
|
5
|
+
import { c as u } from "./constants.stylex-CqhVl0uU.js";
|
|
6
6
|
import * as d from "@stylexjs/stylex";
|
|
7
7
|
import { mergeProps as f } from "@ui-sdk/react/primitive";
|
|
8
8
|
import { createContext as p, useContext as m, useEffect as h, useRef as g, useState as _ } from "react";
|
|
9
9
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
10
|
-
import { Box as
|
|
11
|
-
import { Meter as
|
|
12
|
-
import { Progress as
|
|
13
|
-
import { Toast as
|
|
10
|
+
import { Box as x, CircleCheck as S, CircleX as C, Info as w, LoaderCircle as T, TriangleAlert as ee, X as te } from "lucide-react";
|
|
11
|
+
import { Meter as ne, MeterIndicator as re, MeterLabel as ie, MeterTrack as ae } from "@ui-sdk/react/meter";
|
|
12
|
+
import { Progress as oe, ProgressIndicator as se, ProgressLabel as ce, ProgressTrack as le } from "@ui-sdk/react/progress";
|
|
13
|
+
import { Toast as ue, ToastAction as de, ToastClose as fe, ToastDescription as pe, ToastRegion as E, ToastTitle as D, createToaster as O } from "@ui-sdk/react/toast";
|
|
14
14
|
// packages/feedback/src/feedback.tsx
|
|
15
|
-
function
|
|
15
|
+
function k({ title: n, children: r, action: i, ...a }) {
|
|
16
16
|
return /* @__PURE__ */ b("div", {
|
|
17
17
|
...f({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, a),
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */ y(
|
|
19
|
+
/* @__PURE__ */ y(x, {
|
|
20
20
|
size: 22,
|
|
21
21
|
"aria-hidden": !0,
|
|
22
22
|
className: "x153jb6y x2lah0s"
|
|
@@ -30,14 +30,14 @@ function j({ title: n, children: r, action: i, ...a }) {
|
|
|
30
30
|
]
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function A({ hasError: e = !1, ...t }) {
|
|
34
34
|
return /* @__PURE__ */ y("div", { ...f({ role: e ? "alert" : "status" }, {
|
|
35
35
|
0: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x1dqe72f x1f9ixgr xj0a0fe" },
|
|
36
36
|
1: { className: "xeuugli x193iq5w x9f619 x1qokhjc x1doqdfy x1ok0vyi x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xj0a0fe xr5kp14 xcqwzn" }
|
|
37
37
|
}[!!e | 0], t) });
|
|
38
38
|
}
|
|
39
39
|
// packages/feedback/src/skeleton.tsx
|
|
40
|
-
var
|
|
40
|
+
var j = {
|
|
41
41
|
skeleton: {
|
|
42
42
|
k1xSpc: "x1lliihq",
|
|
43
43
|
ks0D6T: "x193iq5w",
|
|
@@ -75,50 +75,50 @@ var N = {
|
|
|
75
75
|
k7Eaqz: "xeuugli",
|
|
76
76
|
$$css: !0
|
|
77
77
|
}
|
|
78
|
-
},
|
|
79
|
-
rectangle:
|
|
80
|
-
circle:
|
|
78
|
+
}, M = {
|
|
79
|
+
rectangle: j.rectangle,
|
|
80
|
+
circle: j.circle
|
|
81
81
|
};
|
|
82
|
-
function
|
|
82
|
+
function N({ width: e = "100%", height: t = 8, shape: n = "rectangle" }) {
|
|
83
83
|
return /* @__PURE__ */ y("span", {
|
|
84
84
|
"aria-hidden": !0,
|
|
85
|
-
...d.props(
|
|
85
|
+
...d.props(j.skeleton, j.dimensions(e, t), M[n])
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function P({ lines: e = 1, width: t = "100%" }) {
|
|
89
89
|
return /* @__PURE__ */ y("span", {
|
|
90
90
|
"aria-hidden": !0,
|
|
91
|
-
...d.props(
|
|
91
|
+
...d.props(j.text, j.width(t)),
|
|
92
92
|
children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ y("span", {
|
|
93
93
|
className: "x78zum5 x6s0dn4 xg2ss61",
|
|
94
|
-
children: /* @__PURE__ */ y(
|
|
94
|
+
children: /* @__PURE__ */ y(N, {
|
|
95
95
|
width: e > 1 && n === e - 1 ? "65%" : "100%",
|
|
96
96
|
height: "0.6em"
|
|
97
97
|
})
|
|
98
98
|
}, `placeholder-${n}`))
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function F({ label: e, showLabel: t = !1 }) {
|
|
102
102
|
return /* @__PURE__ */ b("span", {
|
|
103
103
|
role: "status",
|
|
104
104
|
className: "x3nfvp2 x1n2onr6 x6s0dn4 xeuugli x193iq5w x1hnptsi x153jb6y x1hz01jw xtqrqnz x1778rvt xj57cvi xj0a0fe",
|
|
105
|
-
children: [/* @__PURE__ */ y(
|
|
105
|
+
children: [/* @__PURE__ */ y(T, {
|
|
106
106
|
"aria-hidden": !0,
|
|
107
107
|
className: "xtwnzbg x18utl2x x2lah0s"
|
|
108
108
|
}), /* @__PURE__ */ y("span", {
|
|
109
|
-
...d.props(
|
|
109
|
+
...d.props(j.label, !t && l.hidden),
|
|
110
110
|
children: e
|
|
111
111
|
})]
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
// packages/feedback/src/control-placeholders.tsx
|
|
115
|
-
var
|
|
115
|
+
var I = {
|
|
116
116
|
ks0D6T: "x193iq5w",
|
|
117
117
|
$$css: !0
|
|
118
|
-
},
|
|
118
|
+
}, L = {
|
|
119
119
|
kZKoxP: "x16ye13r",
|
|
120
120
|
$$css: !0
|
|
121
|
-
},
|
|
121
|
+
}, R = {
|
|
122
122
|
button: {
|
|
123
123
|
kWkggS: "x1r7kqkb",
|
|
124
124
|
kXLuUW: "xxymvpz",
|
|
@@ -130,39 +130,39 @@ var R = {
|
|
|
130
130
|
$$css: !0
|
|
131
131
|
},
|
|
132
132
|
width: (e) => [
|
|
133
|
-
|
|
133
|
+
I,
|
|
134
134
|
{
|
|
135
135
|
kzqmXN: e == null ? e : "x5lhr3w",
|
|
136
136
|
$$css: !0
|
|
137
137
|
},
|
|
138
138
|
{ "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
139
139
|
],
|
|
140
|
-
rows: (e) => [
|
|
140
|
+
rows: (e) => [L, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
|
|
141
141
|
};
|
|
142
|
-
function
|
|
142
|
+
function z({ width: e = "7ch", isIconOnly: t = !1, density: n = "standard", xstyle: s }) {
|
|
143
143
|
return /* @__PURE__ */ y("span", {
|
|
144
144
|
"aria-hidden": !0,
|
|
145
145
|
inert: !0,
|
|
146
|
-
...d.props(i.base, i.button, r[n], a[n], t && i.iconButton,
|
|
147
|
-
children: t ? /* @__PURE__ */ y(
|
|
146
|
+
...d.props(i.base, i.button, r[n], a[n], t && i.iconButton, R.button, s),
|
|
147
|
+
children: t ? /* @__PURE__ */ y(N, {
|
|
148
148
|
width: o.iconSize,
|
|
149
149
|
height: o.iconSize
|
|
150
|
-
}) : /* @__PURE__ */ y(
|
|
150
|
+
}) : /* @__PURE__ */ y(P, { width: e })
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function B({ label: e, hint: t, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
|
|
154
154
|
let u = a ? Math.min(s, 6) : 1;
|
|
155
155
|
return /* @__PURE__ */ b("div", {
|
|
156
156
|
"aria-hidden": !0,
|
|
157
|
-
...d.props(i.fieldRoot,
|
|
157
|
+
...d.props(i.fieldRoot, R.width(c), l),
|
|
158
158
|
children: [
|
|
159
159
|
e !== void 0 && /* @__PURE__ */ y("span", {
|
|
160
160
|
...d.props(i.label),
|
|
161
161
|
children: e
|
|
162
162
|
}),
|
|
163
163
|
/* @__PURE__ */ y("div", {
|
|
164
|
-
...d.props(i.base, i.field, r[o], !a && i.singleLineField, !a && n[o], !a &&
|
|
165
|
-
children: /* @__PURE__ */ y(
|
|
164
|
+
...d.props(i.base, i.field, r[o], !a && i.singleLineField, !a && n[o], !a && R.singleLine, a && i.textarea, a && R.rows(s)),
|
|
165
|
+
children: /* @__PURE__ */ y(P, {
|
|
166
166
|
width: "60%",
|
|
167
167
|
lines: u
|
|
168
168
|
})
|
|
@@ -175,7 +175,7 @@ function H({ label: e, hint: t, isMultiline: a = !1, density: o = "standard", ro
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
// packages/foundations/src/chart-tones.ts
|
|
178
|
-
var
|
|
178
|
+
var V = {
|
|
179
179
|
series1: s.series1,
|
|
180
180
|
series2: s.series2,
|
|
181
181
|
series3: s.series3,
|
|
@@ -185,7 +185,22 @@ var U = {
|
|
|
185
185
|
positive: s.positive,
|
|
186
186
|
negative: s.negative,
|
|
187
187
|
neutral: c.muted
|
|
188
|
-
},
|
|
188
|
+
}, me = {
|
|
189
|
+
series1: H(s.series1),
|
|
190
|
+
series2: H(s.series2),
|
|
191
|
+
series3: H(s.series3),
|
|
192
|
+
series4: H(s.series4),
|
|
193
|
+
series5: H(s.series5),
|
|
194
|
+
series6: H(s.series6),
|
|
195
|
+
positive: H(s.positive),
|
|
196
|
+
negative: H(s.negative),
|
|
197
|
+
neutral: H(c.muted)
|
|
198
|
+
};
|
|
199
|
+
function H(e) {
|
|
200
|
+
return `color-mix(in srgb, ${e} 62%, ${c.ink})`;
|
|
201
|
+
}
|
|
202
|
+
// packages/feedback/src/progress.tsx
|
|
203
|
+
var U = {
|
|
189
204
|
root: {
|
|
190
205
|
k1xSpc: "x78zum5",
|
|
191
206
|
kXwgrk: "xdt5ytf",
|
|
@@ -266,7 +281,7 @@ var U = {
|
|
|
266
281
|
kB7OPa: "x9f619",
|
|
267
282
|
$$css: !0
|
|
268
283
|
}
|
|
269
|
-
},
|
|
284
|
+
}, he = {
|
|
270
285
|
stacked: {
|
|
271
286
|
root: void 0,
|
|
272
287
|
heading: void 0,
|
|
@@ -275,15 +290,15 @@ var U = {
|
|
|
275
290
|
track: void 0
|
|
276
291
|
},
|
|
277
292
|
inline: {
|
|
278
|
-
root:
|
|
279
|
-
heading:
|
|
293
|
+
root: U.inline,
|
|
294
|
+
heading: U.inlineHeading,
|
|
280
295
|
label: l.hidden,
|
|
281
|
-
value:
|
|
282
|
-
track:
|
|
296
|
+
value: U.inlineValue,
|
|
297
|
+
track: U.inlineTrack
|
|
283
298
|
}
|
|
284
299
|
};
|
|
285
|
-
function
|
|
286
|
-
return /* @__PURE__ */ b(
|
|
300
|
+
function ge({ label: e, value: t, max: n, valueLabel: r }) {
|
|
301
|
+
return /* @__PURE__ */ b(oe, {
|
|
287
302
|
value: t,
|
|
288
303
|
max: n,
|
|
289
304
|
locale: "en-US",
|
|
@@ -291,69 +306,69 @@ function pe({ label: e, value: t, max: n, valueLabel: r }) {
|
|
|
291
306
|
className: "x78zum5 xdt5ytf x1hnptsi xh8yej3 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft xj0a0fe",
|
|
292
307
|
children: [/* @__PURE__ */ b("div", {
|
|
293
308
|
className: "x78zum5 x1pha0wt x1qughib x1n8ia3y x1a02dak",
|
|
294
|
-
children: [/* @__PURE__ */ y(
|
|
309
|
+
children: [/* @__PURE__ */ y(ce, {
|
|
295
310
|
className: "xeuugli x193iq5w",
|
|
296
311
|
children: e
|
|
297
312
|
}), /* @__PURE__ */ y("span", {
|
|
298
313
|
className: "xeuugli x193iq5w x153jb6y xss6m8b",
|
|
299
314
|
children: r
|
|
300
315
|
})]
|
|
301
|
-
}), /* @__PURE__ */ y(
|
|
316
|
+
}), /* @__PURE__ */ y(le, {
|
|
302
317
|
...{
|
|
303
318
|
0: { className: "xqu0tyb xh8yej3 x1ok0vyi x1fa40ue xb3r6kr" },
|
|
304
319
|
1: { className: "xqu0tyb xh8yej3 x1ok0vyi xb3r6kr x1r7kqkb xmkeg23 xbsl7fq xqrc7c3 x9f619" }
|
|
305
320
|
}[t === null | 0],
|
|
306
|
-
children: t !== null && /* @__PURE__ */ y(
|
|
321
|
+
children: t !== null && /* @__PURE__ */ y(se, { className: "x5yr21d x1pt885t x1ok0vyi" })
|
|
307
322
|
})]
|
|
308
323
|
});
|
|
309
324
|
}
|
|
310
|
-
function
|
|
311
|
-
let o =
|
|
312
|
-
return Number.isFinite(n) && n > 0 && c && t >= 0 && t <= n ? /* @__PURE__ */ b(
|
|
325
|
+
function _e({ label: e, value: t, max: n, valueLabel: r, layout: i = "stacked", tone: a }) {
|
|
326
|
+
let o = he[i], s = a === void 0 ? void 0 : U.tone(V[a]), c = t !== null && Number.isFinite(t);
|
|
327
|
+
return Number.isFinite(n) && n > 0 && c && t >= 0 && t <= n ? /* @__PURE__ */ b(ne, {
|
|
313
328
|
value: t,
|
|
314
329
|
max: n,
|
|
315
330
|
locale: "en-US",
|
|
316
331
|
getValueLabel: () => r,
|
|
317
|
-
...d.props(
|
|
332
|
+
...d.props(U.root, o.root),
|
|
318
333
|
children: [/* @__PURE__ */ b("div", {
|
|
319
|
-
...d.props(
|
|
320
|
-
children: [/* @__PURE__ */ y(
|
|
321
|
-
...d.props(
|
|
334
|
+
...d.props(U.heading, o.heading),
|
|
335
|
+
children: [/* @__PURE__ */ y(ie, {
|
|
336
|
+
...d.props(U.label, o.label),
|
|
322
337
|
children: e
|
|
323
338
|
}), /* @__PURE__ */ y("span", {
|
|
324
|
-
...d.props(
|
|
339
|
+
...d.props(U.value, o.value),
|
|
325
340
|
children: r
|
|
326
341
|
})]
|
|
327
|
-
}), /* @__PURE__ */ y(
|
|
328
|
-
...d.props(
|
|
329
|
-
children: /* @__PURE__ */ y(
|
|
342
|
+
}), /* @__PURE__ */ y(ae, {
|
|
343
|
+
...d.props(U.track, o.track),
|
|
344
|
+
children: /* @__PURE__ */ y(re, { ...d.props(U.indicator, s) })
|
|
330
345
|
})]
|
|
331
346
|
}) : /* @__PURE__ */ b("div", {
|
|
332
|
-
...d.props(
|
|
347
|
+
...d.props(U.root, o.root),
|
|
333
348
|
children: [/* @__PURE__ */ b("div", {
|
|
334
|
-
...d.props(
|
|
349
|
+
...d.props(U.heading, o.heading),
|
|
335
350
|
children: [/* @__PURE__ */ y("span", {
|
|
336
|
-
...d.props(
|
|
351
|
+
...d.props(U.label, o.label),
|
|
337
352
|
children: e
|
|
338
353
|
}), /* @__PURE__ */ y("span", {
|
|
339
|
-
...d.props(
|
|
354
|
+
...d.props(U.value, o.value),
|
|
340
355
|
children: r
|
|
341
356
|
})]
|
|
342
357
|
}), /* @__PURE__ */ y("div", {
|
|
343
358
|
"aria-hidden": !0,
|
|
344
|
-
...d.props(
|
|
359
|
+
...d.props(U.track, o.track, U.unknown)
|
|
345
360
|
})]
|
|
346
361
|
});
|
|
347
362
|
}
|
|
348
363
|
// packages/feedback/src/notifications.ts
|
|
349
|
-
var
|
|
350
|
-
function
|
|
351
|
-
let e =
|
|
364
|
+
var ve = 1e3, ye = 4;
|
|
365
|
+
function be() {
|
|
366
|
+
let e = O(), t = /* @__PURE__ */ new Map();
|
|
352
367
|
function n(n) {
|
|
353
368
|
if (n === void 0) return e;
|
|
354
369
|
let r = t.get(n);
|
|
355
370
|
if (r !== void 0) return r;
|
|
356
|
-
let i =
|
|
371
|
+
let i = O();
|
|
357
372
|
return typeof document < "u" && t.set(n, i), i;
|
|
358
373
|
}
|
|
359
374
|
function r(e, n) {
|
|
@@ -371,13 +386,13 @@ function _e() {
|
|
|
371
386
|
dismiss: i
|
|
372
387
|
};
|
|
373
388
|
}
|
|
374
|
-
var
|
|
375
|
-
function
|
|
389
|
+
var W = be();
|
|
390
|
+
function G(e) {
|
|
376
391
|
return typeof e == "number" ? `#${e}` : e.replace(/^#/, "##");
|
|
377
392
|
}
|
|
378
|
-
function
|
|
379
|
-
let s =
|
|
380
|
-
...t !== void 0 && { id:
|
|
393
|
+
function K(e, { id: t, toasterId: n, title: r, description: i, action: a, shouldPersist: o }) {
|
|
394
|
+
let s = W.queueFor(n)({
|
|
395
|
+
...t !== void 0 && { id: G(t) },
|
|
381
396
|
type: e,
|
|
382
397
|
title: r,
|
|
383
398
|
description: i,
|
|
@@ -386,18 +401,18 @@ function q(e, { id: t, toasterId: n, title: r, description: i, action: a, should
|
|
|
386
401
|
dismiss: a?.shouldDismiss ?? !0,
|
|
387
402
|
...a !== void 0 && { onAction: a.onClick }
|
|
388
403
|
},
|
|
389
|
-
duration: o === !0 || a !== void 0 || e === "loading" ? Infinity :
|
|
404
|
+
duration: o === !0 || a !== void 0 || e === "loading" ? Infinity : ye * ve
|
|
390
405
|
});
|
|
391
406
|
return t ?? s;
|
|
392
407
|
}
|
|
393
|
-
var
|
|
394
|
-
success: (e) =>
|
|
395
|
-
error: (e) =>
|
|
396
|
-
info: (e) =>
|
|
397
|
-
warning: (e) =>
|
|
398
|
-
loading: (e) =>
|
|
399
|
-
dismiss: ({ id: e }) =>
|
|
400
|
-
},
|
|
408
|
+
var xe = {
|
|
409
|
+
success: (e) => K("success", e),
|
|
410
|
+
error: (e) => K("error", e),
|
|
411
|
+
info: (e) => K("info", e),
|
|
412
|
+
warning: (e) => K("warning", e),
|
|
413
|
+
loading: (e) => K("loading", e),
|
|
414
|
+
dismiss: ({ id: e }) => W.dismiss(G(e))
|
|
415
|
+
}, q = {
|
|
401
416
|
region: {
|
|
402
417
|
kzqmXN: "x1261nif xqu3jwc",
|
|
403
418
|
kqGvvJ: "xtru72a xf6ji1w",
|
|
@@ -565,38 +580,38 @@ var ve = {
|
|
|
565
580
|
kBLIq6: "xvivl9a",
|
|
566
581
|
$$css: !0
|
|
567
582
|
}
|
|
568
|
-
},
|
|
583
|
+
}, Se = {
|
|
569
584
|
default: {
|
|
570
|
-
Icon:
|
|
571
|
-
tone:
|
|
585
|
+
Icon: w,
|
|
586
|
+
tone: q.neutral
|
|
572
587
|
},
|
|
573
588
|
info: {
|
|
574
|
-
Icon:
|
|
575
|
-
tone:
|
|
589
|
+
Icon: w,
|
|
590
|
+
tone: q.neutral
|
|
576
591
|
},
|
|
577
592
|
success: {
|
|
578
|
-
Icon:
|
|
579
|
-
tone:
|
|
593
|
+
Icon: S,
|
|
594
|
+
tone: q.success
|
|
580
595
|
},
|
|
581
596
|
warning: {
|
|
582
|
-
Icon:
|
|
583
|
-
tone:
|
|
597
|
+
Icon: ee,
|
|
598
|
+
tone: q.warning
|
|
584
599
|
},
|
|
585
600
|
error: {
|
|
586
|
-
Icon:
|
|
587
|
-
tone:
|
|
601
|
+
Icon: C,
|
|
602
|
+
tone: q.error
|
|
588
603
|
},
|
|
589
604
|
loading: {
|
|
590
|
-
Icon:
|
|
591
|
-
tone:
|
|
605
|
+
Icon: T,
|
|
606
|
+
tone: q.neutral
|
|
592
607
|
}
|
|
593
|
-
},
|
|
608
|
+
}, Ce = {
|
|
594
609
|
"x-default-marker": "x-default-marker",
|
|
595
610
|
$$css: !0
|
|
596
611
|
};
|
|
597
|
-
function
|
|
598
|
-
let c =
|
|
599
|
-
return h(() =>
|
|
612
|
+
function we({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, visibleToasts: i = 3, showCloseButton: a = !0, closeButtonAriaLabel: o = "Dismiss notification", containerAriaLabel: s = "Notifications" }) {
|
|
613
|
+
let c = W.queueFor(e);
|
|
614
|
+
return h(() => W.bind(e, c), [e, c]), /* @__PURE__ */ y(E, {
|
|
600
615
|
toaster: c,
|
|
601
616
|
side: t,
|
|
602
617
|
align: n,
|
|
@@ -606,23 +621,23 @@ function xe({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
|
|
|
606
621
|
"aria-label": s,
|
|
607
622
|
className: "x1261nif xqu3jwc xtru72a xf6ji1w xqv9vo9 xyt9zns x1u22o8f xviucbn x1572sgj",
|
|
608
623
|
children: (e) => {
|
|
609
|
-
let { Icon: n, tone: r } =
|
|
610
|
-
return /* @__PURE__ */ b(
|
|
611
|
-
...d.props(
|
|
624
|
+
let { Icon: n, tone: r } = Se[e.type];
|
|
625
|
+
return /* @__PURE__ */ b(ue, {
|
|
626
|
+
...d.props(q.toast, q[t], q.focus, Ce),
|
|
612
627
|
children: [
|
|
613
628
|
/* @__PURE__ */ y(n, {
|
|
614
629
|
"aria-hidden": !0,
|
|
615
|
-
...d.props(
|
|
630
|
+
...d.props(q.icon, q.part, r)
|
|
616
631
|
}),
|
|
617
632
|
/* @__PURE__ */ b("div", {
|
|
618
633
|
className: "x78zum5 xdt5ytf x148l3ej xeuugli xfko13i x1hc1fzr x1gqwzbp x19991ni xtitasy x1faw7qm",
|
|
619
|
-
children: [/* @__PURE__ */ y(
|
|
634
|
+
children: [/* @__PURE__ */ y(D, { className: "xk4h15q x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" }), /* @__PURE__ */ y(pe, { className: "x153jb6y x104kibb x1ua5tub xh0615m xb3r6kr xj0a0fe" })]
|
|
620
635
|
}),
|
|
621
|
-
e.action?.label !== void 0 && /* @__PURE__ */ y(
|
|
622
|
-
a && /* @__PURE__ */ y(
|
|
636
|
+
e.action?.label !== void 0 && /* @__PURE__ */ y(de, { 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" }),
|
|
637
|
+
a && /* @__PURE__ */ y(fe, {
|
|
623
638
|
"aria-label": o,
|
|
624
639
|
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",
|
|
625
|
-
children: /* @__PURE__ */ y(
|
|
640
|
+
children: /* @__PURE__ */ y(te, {
|
|
626
641
|
"aria-hidden": !0,
|
|
627
642
|
className: "xtwnzbg x18utl2x x1m5cc3j"
|
|
628
643
|
})
|
|
@@ -633,7 +648,7 @@ function xe({ id: e, side: t = "bottom", align: n = "end", isExpanded: r = !1, v
|
|
|
633
648
|
});
|
|
634
649
|
}
|
|
635
650
|
// packages/feedback/src/async-region.tsx
|
|
636
|
-
var
|
|
651
|
+
var J = p(void 0), Y = p(!1), X = u.delaySeconds * 1e3, Z = {
|
|
637
652
|
content: {
|
|
638
653
|
k7Eaqz: "xeuugli",
|
|
639
654
|
kAzted: "x2lwn1j",
|
|
@@ -652,11 +667,11 @@ var Y = p(void 0), X = p(!1), Z = u.delaySeconds * 1e3, Q = {
|
|
|
652
667
|
k44tkh: "x11hm9ij",
|
|
653
668
|
$$css: !0
|
|
654
669
|
}
|
|
655
|
-
},
|
|
670
|
+
}, Q = {
|
|
656
671
|
content: null,
|
|
657
|
-
image:
|
|
672
|
+
image: Z.imageReveal
|
|
658
673
|
};
|
|
659
|
-
function
|
|
674
|
+
function Te({ identity: e, initialStartedAt: t, children: n }) {
|
|
660
675
|
let [r, i] = _(() => ({
|
|
661
676
|
identity: e,
|
|
662
677
|
startedAt: t ?? Date.now()
|
|
@@ -664,13 +679,13 @@ function Ce({ identity: e, initialStartedAt: t, children: n }) {
|
|
|
664
679
|
return r.identity !== e && (a = {
|
|
665
680
|
identity: e,
|
|
666
681
|
startedAt: Date.now()
|
|
667
|
-
}, i(a)), /* @__PURE__ */ y(
|
|
682
|
+
}, i(a)), /* @__PURE__ */ y(J, {
|
|
668
683
|
value: a,
|
|
669
684
|
children: n
|
|
670
685
|
});
|
|
671
686
|
}
|
|
672
687
|
function $({ shouldEnter: e, presentation: t = "content", children: n }) {
|
|
673
|
-
let r = m(
|
|
688
|
+
let r = m(Y), [i, a] = _(e && !r), o = g(null);
|
|
674
689
|
return h(() => {
|
|
675
690
|
let e = o.current;
|
|
676
691
|
if (!i || e === null) return;
|
|
@@ -682,17 +697,17 @@ function $({ shouldEnter: e, presentation: t = "content", children: n }) {
|
|
|
682
697
|
};
|
|
683
698
|
}, [i]), /* @__PURE__ */ y("div", {
|
|
684
699
|
ref: o,
|
|
685
|
-
...d.props(
|
|
686
|
-
children: /* @__PURE__ */ y(
|
|
700
|
+
...d.props(Z.content, i && Z.reveal, Q[t]),
|
|
701
|
+
children: /* @__PURE__ */ y(Y, {
|
|
687
702
|
value: r || i,
|
|
688
703
|
children: n
|
|
689
704
|
})
|
|
690
705
|
});
|
|
691
706
|
}
|
|
692
|
-
function
|
|
693
|
-
let [i, a] = _(() => Date.now() - n >=
|
|
707
|
+
function Ee({ label: e, placeholder: t, startedAt: n, presentation: r }) {
|
|
708
|
+
let [i, a] = _(() => Date.now() - n >= X ? n : void 0), o = i === n, s = r === "image";
|
|
694
709
|
return h(() => {
|
|
695
|
-
let e = Math.max(0,
|
|
710
|
+
let e = Math.max(0, X - (Date.now() - n)), t = setTimeout(() => a(n), e);
|
|
696
711
|
return () => clearTimeout(t);
|
|
697
712
|
}, [n]), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("div", {
|
|
698
713
|
"aria-busy": !0,
|
|
@@ -714,8 +729,8 @@ function we({ label: e, placeholder: t, startedAt: n, presentation: r }) {
|
|
|
714
729
|
children: e
|
|
715
730
|
})] });
|
|
716
731
|
}
|
|
717
|
-
function
|
|
718
|
-
let t = m(
|
|
732
|
+
function De(e) {
|
|
733
|
+
let t = m(J), [n, r] = _(() => ({
|
|
719
734
|
state: e.state,
|
|
720
735
|
scope: t,
|
|
721
736
|
startedAt: t?.startedAt ?? Date.now(),
|
|
@@ -732,7 +747,7 @@ function Te(e) {
|
|
|
732
747
|
}
|
|
733
748
|
return /* @__PURE__ */ y("div", {
|
|
734
749
|
className: "x1n2onr6 xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu",
|
|
735
|
-
children: e.state === "pending" ? /* @__PURE__ */ y(
|
|
750
|
+
children: e.state === "pending" ? /* @__PURE__ */ y(Ee, {
|
|
736
751
|
label: e.label,
|
|
737
752
|
placeholder: e.placeholder,
|
|
738
753
|
startedAt: i.startedAt,
|
|
@@ -747,4 +762,4 @@ function Te(e) {
|
|
|
747
762
|
})
|
|
748
763
|
});
|
|
749
764
|
}
|
|
750
|
-
export {
|
|
765
|
+
export { xe as a, V as c, B as d, N as f, A as g, k as h, we as i, me as l, F as m, $ as n, _e as o, P as p, Te as r, ge as s, De as t, z as u };
|
package/dist/styles2.css
CHANGED
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
:root, .x102x4ow {
|
|
25
|
-
--x1nlt3ga: #
|
|
26
|
-
--x5yb4il: #
|
|
27
|
-
--x3s82iy: #
|
|
28
|
-
--x1t7wf97: #
|
|
29
|
-
--x13umt8e: #
|
|
30
|
-
--x1f0bn7f: #
|
|
31
|
-
--xiumgsg: #
|
|
32
|
-
--x1l35zjm: #
|
|
33
|
-
--x5dm89x: #
|
|
25
|
+
--x1nlt3ga: #3f86ec;
|
|
26
|
+
--x5yb4il: #3d9f4a;
|
|
27
|
+
--x3s82iy: #9a6ee9;
|
|
28
|
+
--x1t7wf97: #e8762e;
|
|
29
|
+
--x13umt8e: #e0619f;
|
|
30
|
+
--x1f0bn7f: #c9921a;
|
|
31
|
+
--xiumgsg: #d9443f;
|
|
32
|
+
--x1l35zjm: #3f86ec;
|
|
33
|
+
--x5dm89x: #ececec;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:root, .x181h4q1 {
|
|
@@ -188,15 +188,15 @@
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.x8pee18.x8pee18, .x8pee18.x8pee18:root {
|
|
191
|
-
--x5dm89x: #
|
|
192
|
-
--xiumgsg: #
|
|
193
|
-
--x1l35zjm: #
|
|
194
|
-
--x1nlt3ga: #
|
|
195
|
-
--x5yb4il: #
|
|
196
|
-
--x3s82iy: #
|
|
197
|
-
--x1t7wf97: #
|
|
198
|
-
--x13umt8e: #
|
|
199
|
-
--x1f0bn7f: #
|
|
191
|
+
--x5dm89x: #2b2b2b;
|
|
192
|
+
--xiumgsg: #ff7a72;
|
|
193
|
+
--x1l35zjm: #6ba7ff;
|
|
194
|
+
--x1nlt3ga: #6ba7ff;
|
|
195
|
+
--x5yb4il: #62c06c;
|
|
196
|
+
--x3s82iy: #b694f8;
|
|
197
|
+
--x1t7wf97: #f69552;
|
|
198
|
+
--x13umt8e: #f286bd;
|
|
199
|
+
--x1f0bn7f: #f2c64f;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.xilj48j.xilj48j, .xilj48j.xilj48j:root {
|
|
@@ -906,6 +906,10 @@
|
|
|
906
906
|
box-decoration-break: clone;
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
+
.x1iotiob {
|
|
910
|
+
box-shadow: var(--x-boxShadow);
|
|
911
|
+
}
|
|
912
|
+
|
|
909
913
|
.xh3r7i3 {
|
|
910
914
|
box-shadow: var(--x1qr3jy8);
|
|
911
915
|
}
|
|
@@ -1794,6 +1798,10 @@
|
|
|
1794
1798
|
stroke-width: 1.5px;
|
|
1795
1799
|
}
|
|
1796
1800
|
|
|
1801
|
+
.x1pvypsb {
|
|
1802
|
+
stroke-width: 1.75px;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1797
1805
|
.xnpr05h {
|
|
1798
1806
|
stroke-width: 1px;
|
|
1799
1807
|
}
|
|
@@ -4019,6 +4027,11 @@
|
|
|
4019
4027
|
inherits: false
|
|
4020
4028
|
}
|
|
4021
4029
|
|
|
4030
|
+
@property --x-boxShadow {
|
|
4031
|
+
syntax: "*";
|
|
4032
|
+
inherits: false
|
|
4033
|
+
}
|
|
4034
|
+
|
|
4022
4035
|
@property --x-color {
|
|
4023
4036
|
syntax: "*";
|
|
4024
4037
|
inherits: false
|
package/dist/tokens.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./constants.stylex-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./constants.stylex-CqhVl0uU.js";
|
|
2
2
|
import { a as l, c as u, d, f, i as p, l as m, n as h, o as g, r as _, s as v, t as y, u as b } from "./tokens.stylex-dF5CACEJ.js";
|
|
3
3
|
export { y as avatarColors, h as chartColors, _ as colors, c as conditions, p as controls, i as darkAvatarColors, o as darkChartColors, n as darkColors, e as darkShadows, a as darkSyntaxColors, s as layers, t as loading, l as motion, g as pageGeometry, v as radii, u as reportGeometry, m as shadows, b as spacing, d as syntaxColors, r as tableGeometry, f as typography };
|
package/package.json
CHANGED
|
@@ -21,15 +21,15 @@ export const darkColors = stylex.defineConsts({
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
export const darkChartColors = stylex.defineConsts({
|
|
24
|
-
series1: '#
|
|
25
|
-
series2: '#
|
|
26
|
-
series3: '#
|
|
27
|
-
series4: '#
|
|
28
|
-
series5: '#
|
|
29
|
-
series6: '#
|
|
30
|
-
negative: '#
|
|
31
|
-
positive: '#
|
|
32
|
-
missing: '#
|
|
24
|
+
series1: '#6ba7ff',
|
|
25
|
+
series2: '#62c06c',
|
|
26
|
+
series3: '#b694f8',
|
|
27
|
+
series4: '#f69552',
|
|
28
|
+
series5: '#f286bd',
|
|
29
|
+
series6: '#f2c64f',
|
|
30
|
+
negative: '#ff7a72',
|
|
31
|
+
positive: '#6ba7ff',
|
|
32
|
+
missing: '#2b2b2b',
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
export const darkAvatarColors = stylex.defineConsts({
|