@mechane-ai/elements 0.26.0 → 0.28.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 +13 -6
- package/dist/ai.js +56 -56
- package/dist/{categorical-values-CPRt9uzI.js → categorical-values-DqoH9l1M.js} +2 -2
- package/dist/chart-frame-CYdrUwvP.js +239 -0
- package/dist/{chart-input-DDAjzy-O.js → chart-input--Q3Jdono.js} +4 -3
- package/dist/charts/cartesian.js +527 -434
- package/dist/charts/distribution.js +134 -126
- package/dist/charts/graph.js +46 -43
- package/dist/charts/hierarchy.js +28 -26
- package/dist/charts/matrix.js +81 -77
- package/dist/charts/timeline.js +87 -80
- package/dist/charts.js +1 -1
- package/dist/{code-block-DENC5fD_.js → code-block-DPeyW4sm.js} +3 -3
- package/dist/collections.js +52 -52
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +10 -10
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-CGIua9If.js → content-link-5oRGjDHa.js} +1 -1
- package/dist/content.js +18 -18
- package/dist/elements.css +14 -0
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +7 -7
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +40 -40
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +1 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -4
- package/dist/packages/charts/src/cartesian/breakdown-bar.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +2 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +12 -3
- package/dist/packages/charts/src/chart-frame.d.ts +15 -7
- package/dist/packages/charts/src/chart-input.d.ts +3 -1
- package/dist/packages/charts/src/chart-inspection.d.ts +3 -1
- package/dist/packages/charts/src/chart-series-summary.d.ts +6 -0
- package/dist/packages/charts/src/chart-theme.d.ts +5 -0
- package/dist/packages/charts/src/distribution/ecdf.d.ts +3 -2
- package/dist/packages/charts/src/distribution/histogram.d.ts +3 -2
- package/dist/packages/charts/src/distribution/interval-plot.d.ts +3 -2
- package/dist/packages/charts/src/distribution/ranked-bars.d.ts +3 -2
- package/dist/packages/charts/src/graph/relation-graph.d.ts +3 -2
- package/dist/packages/charts/src/hierarchy/treemap.d.ts +3 -2
- package/dist/packages/charts/src/index.d.ts +1 -1
- package/dist/packages/charts/src/matrix/matrix.d.ts +3 -2
- package/dist/packages/charts/src/matrix/token-heatmap.d.ts +3 -2
- package/dist/packages/charts/src/timeline/waterfall.d.ts +4 -1
- package/dist/packages/core/src/index.d.ts +2 -0
- package/dist/packages/core/src/section-heading.d.ts +8 -0
- package/dist/packages/forms/src/settings-row.d.ts +10 -3
- package/dist/packages/layout/src/report-content.d.ts +1 -1
- package/dist/packages/navigation/src/content-tabs.d.ts +9 -2
- package/dist/{pierre-diff-CHQsoQSZ.js → pierre-diff-C3U_qae6.js} +1 -1
- package/dist/{pierre-theme-CLgk9v3e.js → pierre-theme-DsrSwl5m.js} +19 -20
- package/dist/{pierre-tree-C3nKYyoN.js → pierre-tree-D2kRr4h4.js} +4 -4
- package/dist/{src-CQOgWIzP.js → src-BfPaaDxg.js} +106 -104
- package/dist/{src-DLReNPV9.js → src-E3Or8tkO.js} +38 -18
- package/dist/{src-DHYcohZP.js → src-eWcNz_oB.js} +25 -26
- package/dist/tokens.js +1 -3
- package/dist/{tokens.stylex-DTHHFbyl.js → tokens.stylex-BoRZ3D8s.js} +92 -12
- package/package.json +1 -1
- package/dist/chart-frame-CNr8M_b2.js +0 -166
- package/dist/constants.stylex-BILvnwUk.js +0 -84
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as r, l as i } from "./tokens.stylex-
|
|
3
|
-
import { t as
|
|
4
|
-
import { c as o, s } from "./constants.stylex-BILvnwUk.js";
|
|
1
|
+
import { i as e, k as t, s as n } from "./src-E3Or8tkO.js";
|
|
2
|
+
import { i as r, l as i, v as a, y as o } from "./tokens.stylex-BoRZ3D8s.js";
|
|
3
|
+
import { t as s } from "./accessibility-C-aIZ1Yx.js";
|
|
5
4
|
import { mergeProps as c } from "@base-ui/react/merge-props";
|
|
6
5
|
import * as l from "@stylexjs/stylex";
|
|
7
6
|
import u, { createContext as d, useContext as f, useEffect as p, useRef as m, useState as h } from "react";
|
|
@@ -11,7 +10,7 @@ import { Meter as w } from "@base-ui/react/meter";
|
|
|
11
10
|
import { Progress as T } from "@base-ui/react/progress";
|
|
12
11
|
import E from "react-dom";
|
|
13
12
|
// packages/feedback/src/feedback.tsx
|
|
14
|
-
function ne({ title:
|
|
13
|
+
function ne({ title: t, children: r, action: i, ...a }) {
|
|
15
14
|
return /* @__PURE__ */ _("div", {
|
|
16
15
|
...c({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, a),
|
|
17
16
|
children: [
|
|
@@ -20,8 +19,8 @@ function ne({ title: e, children: r, action: i, ...a }) {
|
|
|
20
19
|
"aria-hidden": !0,
|
|
21
20
|
className: "x153jb6y x2lah0s"
|
|
22
21
|
}),
|
|
23
|
-
/* @__PURE__ */ g(n, { children:
|
|
24
|
-
r != null && /* @__PURE__ */ g(
|
|
22
|
+
/* @__PURE__ */ g(n, { children: t }),
|
|
23
|
+
r != null && /* @__PURE__ */ g(e, { children: r }),
|
|
25
24
|
i != null && /* @__PURE__ */ g("div", {
|
|
26
25
|
className: "x78zum5 xl56j7k x1a02dak x1hnptsi xeuugli x193iq5w",
|
|
27
26
|
children: i
|
|
@@ -105,7 +104,7 @@ function j({ label: e, showLabel: t = !1 }) {
|
|
|
105
104
|
"aria-hidden": !0,
|
|
106
105
|
className: "xtwnzbg x18utl2x x2lah0s"
|
|
107
106
|
}), /* @__PURE__ */ g("span", {
|
|
108
|
-
...l.props(D.label, !t &&
|
|
107
|
+
...l.props(D.label, !t && s.hidden),
|
|
109
108
|
children: e
|
|
110
109
|
})]
|
|
111
110
|
});
|
|
@@ -138,36 +137,36 @@ var M = {
|
|
|
138
137
|
],
|
|
139
138
|
rows: (e) => [N, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${r.paddingBlock} + 2px)`) }]
|
|
140
139
|
};
|
|
141
|
-
function F({ width:
|
|
140
|
+
function F({ width: e = "7ch", isIconOnly: n = !1, xstyle: i }) {
|
|
142
141
|
return /* @__PURE__ */ g("span", {
|
|
143
142
|
"aria-hidden": !0,
|
|
144
143
|
inert: !0,
|
|
145
|
-
...l.props(
|
|
144
|
+
...l.props(t.base, t.button, n && t.iconButton, P.button, i),
|
|
146
145
|
children: n ? /* @__PURE__ */ g(k, {
|
|
147
146
|
width: r.iconSize,
|
|
148
147
|
height: r.iconSize
|
|
149
|
-
}) : /* @__PURE__ */ g(A, { width:
|
|
148
|
+
}) : /* @__PURE__ */ g(A, { width: e })
|
|
150
149
|
});
|
|
151
150
|
}
|
|
152
|
-
function I({ label:
|
|
151
|
+
function I({ label: e, hint: n, isMultiline: r = !1, rows: i = 4, width: a = "100%", xstyle: o }) {
|
|
153
152
|
let s = r ? Math.min(i, 6) : 1;
|
|
154
153
|
return /* @__PURE__ */ _("div", {
|
|
155
154
|
"aria-hidden": !0,
|
|
156
|
-
...l.props(
|
|
155
|
+
...l.props(t.fieldRoot, P.width(a), o),
|
|
157
156
|
children: [
|
|
158
|
-
|
|
159
|
-
...l.props(
|
|
160
|
-
children:
|
|
157
|
+
e !== void 0 && /* @__PURE__ */ g("span", {
|
|
158
|
+
...l.props(t.label),
|
|
159
|
+
children: e
|
|
161
160
|
}),
|
|
162
161
|
/* @__PURE__ */ g("div", {
|
|
163
|
-
...l.props(
|
|
162
|
+
...l.props(t.base, t.field, !r && P.singleLine, r && t.textarea, r && P.rows(i)),
|
|
164
163
|
children: /* @__PURE__ */ g(A, {
|
|
165
164
|
width: "60%",
|
|
166
165
|
lines: s
|
|
167
166
|
})
|
|
168
167
|
}),
|
|
169
168
|
n !== void 0 && /* @__PURE__ */ g("span", {
|
|
170
|
-
...l.props(
|
|
169
|
+
...l.props(t.description),
|
|
171
170
|
children: n
|
|
172
171
|
})
|
|
173
172
|
]
|
|
@@ -852,12 +851,12 @@ var we = /*#__PURE__*/ u.forwardRef(function(e, t) {
|
|
|
852
851
|
}));
|
|
853
852
|
});
|
|
854
853
|
// packages/feedback/src/toast.tsx
|
|
855
|
-
function Te({ closeButton: e = !0, closeButtonAriaLabel: t = "Dismiss notification", offset: n = i.xl, mobileOffset: r = i.lg, ...
|
|
854
|
+
function Te({ closeButton: e = !0, closeButtonAriaLabel: t = "Dismiss notification", offset: n = i.xl, mobileOffset: r = i.lg, ...o }) {
|
|
856
855
|
return /* @__PURE__ */ g(we, {
|
|
857
|
-
...
|
|
856
|
+
...o,
|
|
858
857
|
className: "x7kce61 xkwcdv0 x19hn9gq x350ok5 x1dknavn x1qgcmqu x19j7ixz xgam3oh x7s97pk",
|
|
859
858
|
style: {
|
|
860
|
-
zIndex:
|
|
859
|
+
zIndex: a.popup,
|
|
861
860
|
transitionProperty: "opacity, transform"
|
|
862
861
|
},
|
|
863
862
|
offset: n,
|
|
@@ -965,9 +964,9 @@ function $({ shouldEnter: e, presentation: t = "content", children: n }) {
|
|
|
965
964
|
});
|
|
966
965
|
}
|
|
967
966
|
function Oe({ label: e, placeholder: t, startedAt: n, presentation: r }) {
|
|
968
|
-
let [i,
|
|
967
|
+
let [i, a] = h(() => Date.now() - n >= Ee ? n : void 0), o = i === n, c = r === "image";
|
|
969
968
|
return p(() => {
|
|
970
|
-
let e = Math.max(0, Ee - (Date.now() - n)), t = setTimeout(() =>
|
|
969
|
+
let e = Math.max(0, Ee - (Date.now() - n)), t = setTimeout(() => a(n), e);
|
|
971
970
|
return () => clearTimeout(t);
|
|
972
971
|
}, [n]), /* @__PURE__ */ _(ee, { children: [/* @__PURE__ */ g("div", {
|
|
973
972
|
"aria-busy": !0,
|
|
@@ -980,12 +979,12 @@ function Oe({ label: e, placeholder: t, startedAt: n, presentation: r }) {
|
|
|
980
979
|
2: { className: "xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu xlshs6z x18usnwx" },
|
|
981
980
|
1: { className: "xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu xqcmdr3 x1qme5af x1c3o69q x18usnwx" },
|
|
982
981
|
3: { className: "xeuugli x2lwn1j x78zum5 xdt5ytf x98rzlu xlshs6z xqcmdr3 x1qme5af x1c3o69q x18usnwx" }
|
|
983
|
-
}[!(c ||
|
|
982
|
+
}[!(c || o) << 1 | !(c || !o)],
|
|
984
983
|
children: t
|
|
985
984
|
})
|
|
986
|
-
}),
|
|
985
|
+
}), o && /* @__PURE__ */ g("span", {
|
|
987
986
|
role: "status",
|
|
988
|
-
...l.props(
|
|
987
|
+
...l.props(s.hidden),
|
|
989
988
|
children: e
|
|
990
989
|
})] });
|
|
991
990
|
}
|
package/dist/tokens.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { a as l, c as u, d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./tokens.stylex-DTHHFbyl.js";
|
|
3
|
-
export { v as avatarColors, m as chartColors, g as colors, c as conditions, f 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, h as pageGeometry, _ as radii, u as shadows, p as spacing, y as syntaxColors, r as tableGeometry, d as typography };
|
|
1
|
+
export { t as avatarColors, n as chartColors, r as colors, f as conditions, i as controls, p as darkAvatarColors, m as darkChartColors, h as darkColors, g as darkShadows, _ as darkSyntaxColors, v as layers, y as loading, a as motion, o as pageGeometry, s as radii, c as shadows, l as spacing, u as syntaxColors, b as tableGeometry, d as typography } from "./tokens.stylex-BoRZ3D8s.js";
|
|
@@ -1,6 +1,86 @@
|
|
|
1
1
|
import "@stylexjs/stylex";
|
|
2
|
-
// packages/foundations/src/
|
|
2
|
+
// packages/foundations/src/constants.stylex.ts
|
|
3
3
|
var e = {
|
|
4
|
+
canvas: "#191919",
|
|
5
|
+
surface: "#101010",
|
|
6
|
+
ink: "#f2f2f2",
|
|
7
|
+
inkHover: "#d6d6d6",
|
|
8
|
+
inverse: "#0a0a0a",
|
|
9
|
+
muted: "#b0b0b0",
|
|
10
|
+
faint: "#777777",
|
|
11
|
+
line: "#303030",
|
|
12
|
+
focus: "#79b3ff",
|
|
13
|
+
accent: "#8ed3b3",
|
|
14
|
+
accentSoft: "#152b22",
|
|
15
|
+
warning: "#edc479",
|
|
16
|
+
warningSoft: "#302511",
|
|
17
|
+
danger: "#f59696",
|
|
18
|
+
dangerHover: "#ffc3c3",
|
|
19
|
+
dangerSoft: "#321c1c",
|
|
20
|
+
overlay: "#00000099"
|
|
21
|
+
}, t = {
|
|
22
|
+
series1: "#86a9d3",
|
|
23
|
+
series2: "#83b69f",
|
|
24
|
+
series3: "#b49bce",
|
|
25
|
+
series4: "#cfad70",
|
|
26
|
+
series5: "#80bbc0",
|
|
27
|
+
series6: "#d39aad",
|
|
28
|
+
negative: "#e0929b",
|
|
29
|
+
positive: "#80add0",
|
|
30
|
+
missing: "#363636"
|
|
31
|
+
}, n = {
|
|
32
|
+
identity1: "#f07d75",
|
|
33
|
+
identity2: "#f09a75",
|
|
34
|
+
identity3: "#f07598",
|
|
35
|
+
identity4: "#f075bb",
|
|
36
|
+
identity5: "#f075e6",
|
|
37
|
+
identity6: "#d375f0",
|
|
38
|
+
identity7: "#b375f0",
|
|
39
|
+
identity8: "#9275f0",
|
|
40
|
+
identity9: "#7575f0",
|
|
41
|
+
identity10: "#7596f0",
|
|
42
|
+
identity11: "#75b3f0",
|
|
43
|
+
identity12: "#75cff0",
|
|
44
|
+
identity13: "#75e8f0",
|
|
45
|
+
identity14: "#75f0e3",
|
|
46
|
+
identity15: "#75f0cd",
|
|
47
|
+
identity16: "#75f0b5",
|
|
48
|
+
identity17: "#75f09c",
|
|
49
|
+
identity18: "#75f080",
|
|
50
|
+
identity19: "#8cf075",
|
|
51
|
+
identity20: "#b0f075",
|
|
52
|
+
identity21: "#d7f075",
|
|
53
|
+
identity22: "#f0e175",
|
|
54
|
+
identity23: "#f0c375",
|
|
55
|
+
identity24: "#f0a875"
|
|
56
|
+
}, r = {
|
|
57
|
+
keyword: "#c4a1e5",
|
|
58
|
+
string: "#8ed3b3",
|
|
59
|
+
comment: "#a3a3a3",
|
|
60
|
+
number: "#edc479",
|
|
61
|
+
type: "#84bce3"
|
|
62
|
+
}, i = {
|
|
63
|
+
delaySeconds: 2,
|
|
64
|
+
revealMs: 80,
|
|
65
|
+
imageRevealMs: 200,
|
|
66
|
+
placeholderMs: 120
|
|
67
|
+
}, a = { popup: "0 4px 16px #00000066" }, o = {
|
|
68
|
+
sticky: "1",
|
|
69
|
+
backdrop: "20",
|
|
70
|
+
dialog: "21",
|
|
71
|
+
popup: "30",
|
|
72
|
+
tooltip: "40",
|
|
73
|
+
skipLink: "50"
|
|
74
|
+
}, s = {
|
|
75
|
+
rowHeight: 48,
|
|
76
|
+
headerHeight: 36
|
|
77
|
+
}, c = {
|
|
78
|
+
coarsePointer: "@media (pointer: coarse)",
|
|
79
|
+
hoverPointer: "@media (hover: hover) and (pointer: fine)",
|
|
80
|
+
compactText: "@media (max-width:639px)",
|
|
81
|
+
compactTable: "@media (max-width:600px)",
|
|
82
|
+
reducedMotion: "@media (prefers-reduced-motion: reduce)"
|
|
83
|
+
}, l = {
|
|
4
84
|
canvas: "var(--x7wqmh8)",
|
|
5
85
|
surface: "var(--x13kja51)",
|
|
6
86
|
ink: "var(--x169lqhw)",
|
|
@@ -19,7 +99,7 @@ var e = {
|
|
|
19
99
|
dangerSoft: "var(--x1im53j)",
|
|
20
100
|
overlay: "var(--x1i8t5sg)",
|
|
21
101
|
__varGroupHash__: "xm90lv7"
|
|
22
|
-
},
|
|
102
|
+
}, u = {
|
|
23
103
|
series1: "var(--x1nlt3ga)",
|
|
24
104
|
series2: "var(--x5yb4il)",
|
|
25
105
|
series3: "var(--x3s82iy)",
|
|
@@ -30,7 +110,7 @@ var e = {
|
|
|
30
110
|
positive: "var(--x1l35zjm)",
|
|
31
111
|
missing: "var(--x5dm89x)",
|
|
32
112
|
__varGroupHash__: "x102x4ow"
|
|
33
|
-
},
|
|
113
|
+
}, d = {
|
|
34
114
|
identity1: "var(--xervi70)",
|
|
35
115
|
identity2: "var(--x1scgmo8)",
|
|
36
116
|
identity3: "var(--xu5wby9)",
|
|
@@ -56,14 +136,14 @@ var e = {
|
|
|
56
136
|
identity23: "var(--xh8xsxd)",
|
|
57
137
|
identity24: "var(--x9u8ejr)",
|
|
58
138
|
__varGroupHash__: "x6mvf7n"
|
|
59
|
-
},
|
|
139
|
+
}, f = {
|
|
60
140
|
keyword: "var(--x1t6rq9)",
|
|
61
141
|
string: "var(--x1pa6z6o)",
|
|
62
142
|
comment: "var(--x4crkt3)",
|
|
63
143
|
number: "var(--x1ih6ezv)",
|
|
64
144
|
type: "var(--x1gibtqd)",
|
|
65
145
|
__varGroupHash__: "x181h4q1"
|
|
66
|
-
},
|
|
146
|
+
}, p = {
|
|
67
147
|
xxs: "var(--xjighox)",
|
|
68
148
|
xs: "var(--x1xijsos)",
|
|
69
149
|
sm: "var(--xxhyxt)",
|
|
@@ -72,7 +152,7 @@ var e = {
|
|
|
72
152
|
xl: "var(--x1iwxfi2)",
|
|
73
153
|
xxl: "var(--x153fiic)",
|
|
74
154
|
__varGroupHash__: "xi13snk"
|
|
75
|
-
},
|
|
155
|
+
}, m = {
|
|
76
156
|
fontFamily: "var(--xax3y77)",
|
|
77
157
|
monoFamily: "var(--xntcpct)",
|
|
78
158
|
regularWeight: "var(--x15yhtsr)",
|
|
@@ -95,7 +175,7 @@ var e = {
|
|
|
95
175
|
compactHeadingLineHeight: "var(--x1q14agh)",
|
|
96
176
|
headingTracking: "var(--xgto76l)",
|
|
97
177
|
__varGroupHash__: "xledmcz"
|
|
98
|
-
},
|
|
178
|
+
}, h = {
|
|
99
179
|
height: "var(--x14tmdi9)",
|
|
100
180
|
coarseTarget: "var(--x6uufy4)",
|
|
101
181
|
iconSize: "var(--x1ud0cvw)",
|
|
@@ -105,24 +185,24 @@ var e = {
|
|
|
105
185
|
focusWidth: "var(--xxx3t85)",
|
|
106
186
|
disabledOpacity: "var(--x9ngs59)",
|
|
107
187
|
__varGroupHash__: "x1sjug0q"
|
|
108
|
-
},
|
|
188
|
+
}, g = {
|
|
109
189
|
inset: "var(--xnv5ly4)",
|
|
110
190
|
toolbarHeight: "var(--x1m0ogk9)",
|
|
111
191
|
sectionGap: "var(--xe6nmbs)",
|
|
112
192
|
__varGroupHash__: "x1vss23x"
|
|
113
|
-
},
|
|
193
|
+
}, _ = {
|
|
114
194
|
sm: "var(--x1asdyoo)",
|
|
115
195
|
md: "var(--xz1oyae)",
|
|
116
196
|
__varGroupHash__: "x1i152zt"
|
|
117
|
-
},
|
|
197
|
+
}, v = {
|
|
118
198
|
duration: "var(--xjjzqp4)",
|
|
119
199
|
easing: "var(--x5xz5r2)",
|
|
120
200
|
drawerDuration: "var(--xrmqybo)",
|
|
121
201
|
drawerEasing: "var(--xumjr7l)",
|
|
122
202
|
__varGroupHash__: "xtoz1ri"
|
|
123
|
-
},
|
|
203
|
+
}, y = {
|
|
124
204
|
popup: "var(--xfou7vv)",
|
|
125
205
|
selection: "var(--x1qr3jy8)",
|
|
126
206
|
__varGroupHash__: "x1e8hs47"
|
|
127
207
|
};
|
|
128
|
-
export {
|
|
208
|
+
export { r as _, v as a, s as b, y as c, m as d, c as f, a as g, e as h, h as i, p as l, t as m, u as n, g as o, n as p, l as r, _ as s, d as t, f as u, o as v, i as y };
|
package/package.json
CHANGED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { g as e } from "./src-DLReNPV9.js";
|
|
2
|
-
import { t } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
-
import { n, r } from "./tokens.stylex-DTHHFbyl.js";
|
|
4
|
-
import * as i from "@stylexjs/stylex";
|
|
5
|
-
import { useId as a } from "react";
|
|
6
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
// packages/charts/src/chart-theme.ts
|
|
8
|
-
var c = {
|
|
9
|
-
series1: n.series1,
|
|
10
|
-
series2: n.series2,
|
|
11
|
-
series3: n.series3,
|
|
12
|
-
series4: n.series4,
|
|
13
|
-
series5: n.series5,
|
|
14
|
-
series6: n.series6,
|
|
15
|
-
positive: n.positive,
|
|
16
|
-
negative: n.negative,
|
|
17
|
-
neutral: r.muted
|
|
18
|
-
}, l = {
|
|
19
|
-
plot: {
|
|
20
|
-
k7Eaqz: "xeuugli",
|
|
21
|
-
kVQacm: "xb3r6kr",
|
|
22
|
-
$$css: !0
|
|
23
|
-
},
|
|
24
|
-
svg: {
|
|
25
|
-
k1xSpc: "x1lliihq",
|
|
26
|
-
kzqmXN: "xh8yej3",
|
|
27
|
-
kVQacm: "x1rea2x4",
|
|
28
|
-
$$css: !0
|
|
29
|
-
},
|
|
30
|
-
axis: {
|
|
31
|
-
kjVXCG: "x13hfdr1",
|
|
32
|
-
kfJifR: "xnpr05h",
|
|
33
|
-
kREpy8: "x13efnbd",
|
|
34
|
-
$$css: !0
|
|
35
|
-
},
|
|
36
|
-
grid: {
|
|
37
|
-
kjVXCG: "x13hfdr1",
|
|
38
|
-
kfJifR: "xnpr05h",
|
|
39
|
-
k5rJSQ: "x1ntoi03",
|
|
40
|
-
kREpy8: "x13efnbd",
|
|
41
|
-
$$css: !0
|
|
42
|
-
},
|
|
43
|
-
label: {
|
|
44
|
-
kDwRjp: "x1q7gtio",
|
|
45
|
-
kMv6JI: "x1hz01jw",
|
|
46
|
-
kGuDYH: "xy8obcc",
|
|
47
|
-
k63SB2: "xj57cvi",
|
|
48
|
-
kcqcaj: "xss6m8b",
|
|
49
|
-
$$css: !0
|
|
50
|
-
},
|
|
51
|
-
mark: {
|
|
52
|
-
kfJifR: "xhr4kjn",
|
|
53
|
-
kREpy8: "x13efnbd",
|
|
54
|
-
$$css: !0
|
|
55
|
-
},
|
|
56
|
-
selected: {
|
|
57
|
-
kjVXCG: "x17y187c",
|
|
58
|
-
kfJifR: "xvlca1e",
|
|
59
|
-
kREpy8: "x13efnbd",
|
|
60
|
-
$$css: !0
|
|
61
|
-
},
|
|
62
|
-
inspectable: {
|
|
63
|
-
k3XXqK: "x1t137rt",
|
|
64
|
-
$$css: !0
|
|
65
|
-
}
|
|
66
|
-
}, u = {
|
|
67
|
-
kzqmXN: "x1xc55vz",
|
|
68
|
-
kZKoxP: "xdk7pt",
|
|
69
|
-
kmuXW: "x2lah0s",
|
|
70
|
-
$$css: !0
|
|
71
|
-
}, d = { swatch: (e) => [
|
|
72
|
-
u,
|
|
73
|
-
{
|
|
74
|
-
kWkggS: e == null ? e : "xl8spv7",
|
|
75
|
-
$$css: !0
|
|
76
|
-
},
|
|
77
|
-
{ "--x-backgroundColor": e ?? void 0 }
|
|
78
|
-
] };
|
|
79
|
-
function f({ title: e, description: t, children: n, actions: r, footer: i }) {
|
|
80
|
-
let c = a();
|
|
81
|
-
return /* @__PURE__ */ s("figure", {
|
|
82
|
-
"aria-labelledby": c,
|
|
83
|
-
className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt",
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ s("figcaption", {
|
|
86
|
-
className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www",
|
|
87
|
-
children: [/* @__PURE__ */ s("div", {
|
|
88
|
-
className: "x1cqoux5 xeuugli xj0a0fe",
|
|
89
|
-
children: [/* @__PURE__ */ o("p", {
|
|
90
|
-
id: c,
|
|
91
|
-
className: "x1ghz6dp x12myhf4 x1778rvt xk4h15q",
|
|
92
|
-
children: e
|
|
93
|
-
}), t !== void 0 && /* @__PURE__ */ o("p", {
|
|
94
|
-
className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
|
|
95
|
-
children: t
|
|
96
|
-
})]
|
|
97
|
-
}), r !== void 0 && /* @__PURE__ */ o("div", {
|
|
98
|
-
className: "x78zum5 x1a02dak x1hnptsi x193iq5w",
|
|
99
|
-
children: r
|
|
100
|
-
})]
|
|
101
|
-
}),
|
|
102
|
-
n,
|
|
103
|
-
i !== void 0 && /* @__PURE__ */ o("div", {
|
|
104
|
-
className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
105
|
-
children: i
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function p({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
|
|
111
|
-
return /* @__PURE__ */ o("ul", {
|
|
112
|
-
"aria-label": t,
|
|
113
|
-
...{
|
|
114
|
-
0: { className: "x78zum5 x1a02dak x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k" },
|
|
115
|
-
1: { className: "x78zum5 x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k xozqiw3 xw2csxc x1mqbd49" }
|
|
116
|
-
}[!!n | 0],
|
|
117
|
-
children: e.map((e) => /* @__PURE__ */ s("li", {
|
|
118
|
-
...{
|
|
119
|
-
0: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli x193iq5w xj0a0fe" },
|
|
120
|
-
1: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli xj0a0fe x2lah0s x1x1rfll xuxw1ft" }
|
|
121
|
-
}[!!n | 0],
|
|
122
|
-
children: [/* @__PURE__ */ o("span", {
|
|
123
|
-
"aria-hidden": !0,
|
|
124
|
-
...i.props(d.swatch(c[e.tone]))
|
|
125
|
-
}), e.label]
|
|
126
|
-
}, e.id))
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function m({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
|
|
130
|
-
return n === void 0 ? /* @__PURE__ */ o("div", {
|
|
131
|
-
className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b",
|
|
132
|
-
children: r
|
|
133
|
-
}) : /* @__PURE__ */ o("button", {
|
|
134
|
-
type: "button",
|
|
135
|
-
"aria-label": e,
|
|
136
|
-
"aria-pressed": t,
|
|
137
|
-
onClick: n,
|
|
138
|
-
...{
|
|
139
|
-
0: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal" },
|
|
140
|
-
1: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1r7kqkb xh3r7i3" }
|
|
141
|
-
}[!!t | 0],
|
|
142
|
-
children: r
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function h({ children: e }) {
|
|
146
|
-
return /* @__PURE__ */ o("p", {
|
|
147
|
-
"aria-live": "polite",
|
|
148
|
-
className: "x1ghz6dp xeuugli x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xj0a0fe",
|
|
149
|
-
children: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
function g({ children: n, label: r = "View data" }) {
|
|
153
|
-
let i = t();
|
|
154
|
-
return /* @__PURE__ */ o("div", {
|
|
155
|
-
className: "x1xxf3xd x178xt8z x13fuv20 xhjagg4",
|
|
156
|
-
children: /* @__PURE__ */ s(e.Root, { children: [/* @__PURE__ */ o(e.Trigger, { children: r }), /* @__PURE__ */ o(e.Panel, { children: /* @__PURE__ */ o("div", {
|
|
157
|
-
ref: i.ref,
|
|
158
|
-
role: "region",
|
|
159
|
-
"aria-label": r,
|
|
160
|
-
tabIndex: i.tabIndex,
|
|
161
|
-
className: "xeuugli x1sslpiy xysyzu8 x1t137rt x19rmrnh x9v5kkp x13qnu6 x1bqaal",
|
|
162
|
-
children: n
|
|
163
|
-
}) })] })
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
export { h as a, p as i, m as n, l as o, f as r, c as s, g as t };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import "@stylexjs/stylex";
|
|
2
|
-
// packages/foundations/src/constants.stylex.ts
|
|
3
|
-
var e = {
|
|
4
|
-
canvas: "#191919",
|
|
5
|
-
surface: "#101010",
|
|
6
|
-
ink: "#f2f2f2",
|
|
7
|
-
inkHover: "#d6d6d6",
|
|
8
|
-
inverse: "#0a0a0a",
|
|
9
|
-
muted: "#b0b0b0",
|
|
10
|
-
faint: "#777777",
|
|
11
|
-
line: "#303030",
|
|
12
|
-
focus: "#79b3ff",
|
|
13
|
-
accent: "#8ed3b3",
|
|
14
|
-
accentSoft: "#152b22",
|
|
15
|
-
warning: "#edc479",
|
|
16
|
-
warningSoft: "#302511",
|
|
17
|
-
danger: "#f59696",
|
|
18
|
-
dangerHover: "#ffc3c3",
|
|
19
|
-
dangerSoft: "#321c1c",
|
|
20
|
-
overlay: "#00000099"
|
|
21
|
-
}, t = {
|
|
22
|
-
series1: "#86a9d3",
|
|
23
|
-
series2: "#83b69f",
|
|
24
|
-
series3: "#b49bce",
|
|
25
|
-
series4: "#cfad70",
|
|
26
|
-
series5: "#80bbc0",
|
|
27
|
-
series6: "#d39aad",
|
|
28
|
-
negative: "#e0929b",
|
|
29
|
-
positive: "#80add0",
|
|
30
|
-
missing: "#363636"
|
|
31
|
-
}, n = {
|
|
32
|
-
identity1: "#f07d75",
|
|
33
|
-
identity2: "#f09a75",
|
|
34
|
-
identity3: "#f07598",
|
|
35
|
-
identity4: "#f075bb",
|
|
36
|
-
identity5: "#f075e6",
|
|
37
|
-
identity6: "#d375f0",
|
|
38
|
-
identity7: "#b375f0",
|
|
39
|
-
identity8: "#9275f0",
|
|
40
|
-
identity9: "#7575f0",
|
|
41
|
-
identity10: "#7596f0",
|
|
42
|
-
identity11: "#75b3f0",
|
|
43
|
-
identity12: "#75cff0",
|
|
44
|
-
identity13: "#75e8f0",
|
|
45
|
-
identity14: "#75f0e3",
|
|
46
|
-
identity15: "#75f0cd",
|
|
47
|
-
identity16: "#75f0b5",
|
|
48
|
-
identity17: "#75f09c",
|
|
49
|
-
identity18: "#75f080",
|
|
50
|
-
identity19: "#8cf075",
|
|
51
|
-
identity20: "#b0f075",
|
|
52
|
-
identity21: "#d7f075",
|
|
53
|
-
identity22: "#f0e175",
|
|
54
|
-
identity23: "#f0c375",
|
|
55
|
-
identity24: "#f0a875"
|
|
56
|
-
}, r = {
|
|
57
|
-
keyword: "#c4a1e5",
|
|
58
|
-
string: "#8ed3b3",
|
|
59
|
-
comment: "#a3a3a3",
|
|
60
|
-
number: "#edc479",
|
|
61
|
-
type: "#84bce3"
|
|
62
|
-
}, i = {
|
|
63
|
-
delaySeconds: 2,
|
|
64
|
-
revealMs: 80,
|
|
65
|
-
imageRevealMs: 200,
|
|
66
|
-
placeholderMs: 120
|
|
67
|
-
}, a = { popup: "0 4px 16px #00000066" }, o = {
|
|
68
|
-
sticky: "1",
|
|
69
|
-
backdrop: "20",
|
|
70
|
-
dialog: "21",
|
|
71
|
-
popup: "30",
|
|
72
|
-
tooltip: "40",
|
|
73
|
-
skipLink: "50"
|
|
74
|
-
}, s = {
|
|
75
|
-
rowHeight: 48,
|
|
76
|
-
headerHeight: 36
|
|
77
|
-
}, c = {
|
|
78
|
-
coarsePointer: "@media (pointer: coarse)",
|
|
79
|
-
hoverPointer: "@media (hover: hover) and (pointer: fine)",
|
|
80
|
-
compactText: "@media (max-width:639px)",
|
|
81
|
-
compactTable: "@media (max-width:600px)",
|
|
82
|
-
reducedMotion: "@media (prefers-reduced-motion: reduce)"
|
|
83
|
-
};
|
|
84
|
-
export { a, i as c, e as i, s as l, n, r as o, t as r, o as s, c as t };
|