@mechane-ai/elements 0.32.1 → 0.34.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 +20 -14
- package/dist/ai.js +43 -43
- package/dist/{categorical-values-Devj1xYe.js → categorical-values-bWZBzMpX.js} +2 -2
- package/dist/{chart-frame-DepdezdL.js → chart-frame-Cr4P6MF5.js} +20 -19
- package/dist/{chart-input-8sNm47Rp.js → chart-input-3wX0JoPE.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +3 -3
- package/dist/charts.js +1 -1
- package/dist/{code-block-B_qJ1JJ3.js → code-block-DT1TCkTC.js} +1 -1
- package/dist/collections.js +47 -46
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- 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-BtaiSKk8.js → content-link-B3ObdyZY.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/elements.css +22 -10
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +519 -73
- package/dist/forms-BQQFas9g.js +118 -0
- package/dist/forms.js +3 -1
- package/dist/header-styles-COxCYFZx.js +90 -0
- package/dist/index.js +1 -1
- package/dist/layout.js +126 -124
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +171 -76
- package/dist/packages/forms/src/dates/calendar.d.ts +2 -5
- package/dist/packages/forms/src/dates/civil.d.ts +28 -0
- package/dist/packages/forms/src/dates/date-inputs.d.ts +20 -0
- package/dist/packages/forms/src/dates/date-picker.d.ts +13 -0
- package/dist/packages/forms/src/dates/date-range-picker.d.ts +14 -12
- package/dist/packages/forms/src/dates/index.d.ts +8 -0
- package/dist/packages/forms/src/dates/month-calendar.d.ts +19 -0
- package/dist/packages/forms/src/dates/month-picker.d.ts +14 -0
- package/dist/packages/forms/src/dates/month-range-picker.d.ts +18 -0
- package/dist/packages/forms/src/dates/picker-popover.d.ts +22 -0
- package/dist/packages/navigation/src/page-navigation.d.ts +4 -2
- package/dist/packages/navigation/src/tab-styles.d.ts +89 -0
- package/dist/{pierre-tree-CPhT5CUP.js → pierre-tree-CYCRjdGG.js} +2 -2
- package/dist/{src-BjmKVOb2.js → src-BOZsJ8td.js} +18 -18
- package/dist/{src-BPIIuMeE.js → src-BYKjPC-0.js} +339 -448
- package/dist/{src-CALHXF-U.js → src-C-Sx37kz.js} +373 -458
- package/dist/{src-DfPfFOu1.js → src-D9DktxEq.js} +17 -17
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e, _ as t, v as n, w as r } from "./src-C-Sx37kz.js";
|
|
2
2
|
import { t as i } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
3
|
import { t as a } from "./viewer-styles-DsFYri4K.js";
|
|
4
|
-
import { t as o } from "./code-block-
|
|
5
|
-
import { t as s } from "./content-link-
|
|
4
|
+
import { t as o } from "./code-block-DT1TCkTC.js";
|
|
5
|
+
import { t as s } from "./content-link-B3ObdyZY.js";
|
|
6
6
|
import * as c from "@stylexjs/stylex";
|
|
7
7
|
import { useCallback as l, useEffect as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
|
|
8
8
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -89,7 +89,7 @@ function T({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a })
|
|
|
89
89
|
})]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
function E({ value: e, label: t, maxDepth:
|
|
92
|
+
function E({ value: e, label: t, maxDepth: r = 6, maxEntries: o = 50 }) {
|
|
93
93
|
let s = i(), u = l(() => JSON.stringify(e, null, 2), [e]);
|
|
94
94
|
return /* @__PURE__ */ h("section", {
|
|
95
95
|
"aria-label": t,
|
|
@@ -99,7 +99,7 @@ function E({ value: e, label: t, maxDepth: n = 6, maxEntries: o = 50 }) {
|
|
|
99
99
|
children: [/* @__PURE__ */ m("span", {
|
|
100
100
|
...c.props(a.label),
|
|
101
101
|
children: t
|
|
102
|
-
}), /* @__PURE__ */ m(
|
|
102
|
+
}), /* @__PURE__ */ m(n, {
|
|
103
103
|
label: t,
|
|
104
104
|
value: u,
|
|
105
105
|
children: "Copy JSON"
|
|
@@ -115,7 +115,7 @@ function E({ value: e, label: t, maxDepth: n = 6, maxEntries: o = 50 }) {
|
|
|
115
115
|
path: "",
|
|
116
116
|
value: e,
|
|
117
117
|
depth: 0,
|
|
118
|
-
maxDepth: Math.max(1,
|
|
118
|
+
maxDepth: Math.max(1, r),
|
|
119
119
|
maxEntries: Math.max(1, o)
|
|
120
120
|
})
|
|
121
121
|
})]
|
|
@@ -149,24 +149,24 @@ var D = {
|
|
|
149
149
|
$$css: !0
|
|
150
150
|
}
|
|
151
151
|
}, k = 2e5;
|
|
152
|
-
function A({ output: e, label:
|
|
152
|
+
function A({ output: e, label: t, variant: o = "default", maxLines: s = 500, maxHeight: l = 320, isRunning: g = !1 }) {
|
|
153
153
|
let _ = i(), v = _.viewport, y = f(!1), [b, x] = p(!0), C = S(e), w = C.slice(-2e5).split("\n"), T = w.slice(-Math.max(1, s)), E = w.length - T.length, D = o === "embedded", A = g && (!D || !b);
|
|
154
154
|
return u(() => {
|
|
155
155
|
b && v.current !== null && (v.current.scrollTop = v.current.scrollHeight);
|
|
156
156
|
}, [e, b]), d(() => {
|
|
157
157
|
!g && y.current && (y.current = !1, v.current?.focus({ preventScroll: !0 }));
|
|
158
158
|
}, [g]), /* @__PURE__ */ h("section", {
|
|
159
|
-
"aria-label":
|
|
159
|
+
"aria-label": t,
|
|
160
160
|
...c.props(a.root, D && a.embedded),
|
|
161
161
|
children: [
|
|
162
162
|
/* @__PURE__ */ h("div", {
|
|
163
163
|
...c.props(a.header, D && a.embeddedHeader),
|
|
164
164
|
children: [/* @__PURE__ */ h("span", {
|
|
165
165
|
...c.props(a.label),
|
|
166
|
-
children: [
|
|
166
|
+
children: [t, g && !D && " · running"]
|
|
167
167
|
}), /* @__PURE__ */ h("div", {
|
|
168
168
|
...c.props(a.actions),
|
|
169
|
-
children: [A && /* @__PURE__ */ m(
|
|
169
|
+
children: [A && /* @__PURE__ */ m(r, {
|
|
170
170
|
variant: "ghost",
|
|
171
171
|
onClick: () => x(!b),
|
|
172
172
|
onFocus: () => {
|
|
@@ -176,9 +176,9 @@ function A({ output: e, label: n, variant: o = "default", maxLines: s = 500, max
|
|
|
176
176
|
y.current = !1;
|
|
177
177
|
},
|
|
178
178
|
children: b ? "Pause following" : "Follow output"
|
|
179
|
-
}), /* @__PURE__ */ m(
|
|
179
|
+
}), /* @__PURE__ */ m(n, {
|
|
180
180
|
value: e,
|
|
181
|
-
label:
|
|
181
|
+
label: t,
|
|
182
182
|
display: D ? "icon" : "value",
|
|
183
183
|
children: "Copy"
|
|
184
184
|
})]
|
|
@@ -195,7 +195,7 @@ function A({ output: e, label: n, variant: o = "default", maxLines: s = 500, max
|
|
|
195
195
|
/* @__PURE__ */ m("pre", {
|
|
196
196
|
ref: _.ref,
|
|
197
197
|
role: "region",
|
|
198
|
-
"aria-label": `${
|
|
198
|
+
"aria-label": `${t} output`,
|
|
199
199
|
tabIndex: _.tabIndex,
|
|
200
200
|
onScroll: (e) => {
|
|
201
201
|
let t = e.currentTarget;
|
|
@@ -347,10 +347,10 @@ function z({ label: e, children: t }) {
|
|
|
347
347
|
children: t
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
function B({ id:
|
|
350
|
+
function B({ id: n, label: r, status: i, statusLabel: a, description: o, detail: s, isSelected: l, onSelect: u, children: d }) {
|
|
351
351
|
let f = L[i];
|
|
352
352
|
return /* @__PURE__ */ h("li", {
|
|
353
|
-
"data-item-id":
|
|
353
|
+
"data-item-id": n,
|
|
354
354
|
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
|
|
355
355
|
children: [/* @__PURE__ */ h("div", {
|
|
356
356
|
"aria-hidden": !0,
|
|
@@ -369,7 +369,7 @@ function B({ id: t, label: r, status: i, statusLabel: a, description: o, detail:
|
|
|
369
369
|
}[l === !0 | 0],
|
|
370
370
|
children: u === void 0 ? r : /* @__PURE__ */ m(e, {
|
|
371
371
|
"aria-pressed": l,
|
|
372
|
-
onClick: () => u(
|
|
372
|
+
onClick: () => u(n),
|
|
373
373
|
children: r
|
|
374
374
|
})
|
|
375
375
|
}),
|
|
@@ -381,7 +381,7 @@ function B({ id: t, label: r, status: i, statusLabel: a, description: o, detail:
|
|
|
381
381
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
382
382
|
children: o
|
|
383
383
|
}),
|
|
384
|
-
s !== void 0 && /* @__PURE__ */ h(
|
|
384
|
+
s !== void 0 && /* @__PURE__ */ h(t.Root, { children: [/* @__PURE__ */ m(t.Trigger, { children: "Details" }), /* @__PURE__ */ m(t.Panel, { children: s })] }),
|
|
385
385
|
d
|
|
386
386
|
]
|
|
387
387
|
})]
|
package/package.json
CHANGED