@mechane-ai/elements 0.44.0 → 0.46.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 +48 -18
- package/bin/mechane-elements-catalog.mjs +42 -4
- package/dist/ai.js +268 -202
- package/dist/catalog.json +95 -31
- package/dist/categorical-values-BXi-rJuv.js +74 -0
- package/dist/chart-cursor-1mFd48Jc.js +23 -0
- package/dist/chart-data-CIJVWCYt.js +21 -0
- package/dist/chart-frame-BaxKn_MB.js +236 -0
- package/dist/{chart-input-B6_HXFDP.js → chart-input-Bm82_9Rd.js} +2 -2
- package/dist/chart-theme-4zprJ3rW.js +404 -0
- package/dist/charts/cartesian.js +1624 -1442
- package/dist/charts/distribution.js +486 -409
- package/dist/charts/graph.js +383 -358
- package/dist/charts/hierarchy.js +103 -94
- package/dist/charts/matrix.js +340 -333
- package/dist/charts/timeline.js +167 -134
- package/dist/charts.js +3 -3
- package/dist/{code-block-Cpfr7B6a.js → code-block-DioAM2bZ.js} +67 -52
- package/dist/collections.js +1648 -1188
- package/dist/{constants.stylex-CaVa9yGN.js → constants.stylex-CqhVl0uU.js} +9 -9
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +67 -66
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +3 -3
- package/dist/{content-link-CGeFFb9F.js → content-link-NWuHp5rC.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/csp.js +6 -11
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +274 -214
- package/dist/{forms-DeU0Tiv3.js → forms-CEbwzlRR.js} +50 -41
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +207 -207
- package/dist/navigation.js +4 -3
- package/dist/packages/ai/src/conversation.d.ts +2 -0
- package/dist/packages/ai/src/prompt-input.d.ts +7 -2
- package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +8 -2
- package/dist/packages/charts/src/cartesian/time-series.d.ts +11 -1
- package/dist/packages/charts/src/categorical-values.d.ts +14 -9
- package/dist/packages/charts/src/chart-frame.d.ts +7 -9
- package/dist/packages/charts/src/chart-inspection.d.ts +1 -2
- package/dist/packages/charts/src/chart-range.d.ts +33 -0
- package/dist/packages/charts/src/chart-rows.d.ts +20 -0
- package/dist/packages/charts/src/chart-theme.d.ts +25 -1
- package/dist/packages/charts/src/chart.d.ts +81 -0
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +6 -4
- package/dist/packages/charts/src/index.d.ts +2 -1
- package/dist/packages/charts/src/matrix/matrix-strip.d.ts +3 -3
- package/dist/packages/charts/src/plot-width.d.ts +0 -1
- package/dist/packages/charts/src/timeline/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +6 -2
- package/dist/packages/collections/src/collection-controls.d.ts +5 -1
- package/dist/packages/collections/src/collection-filters.d.ts +4 -1
- package/dist/packages/collections/src/control-toolbar.d.ts +13 -0
- package/dist/packages/collections/src/data-table-layout.d.ts +78 -0
- package/dist/packages/collections/src/data-table-rows.d.ts +54 -0
- package/dist/packages/collections/src/data-table-styles.d.ts +340 -0
- package/dist/packages/collections/src/data-table-text.d.ts +13 -0
- package/dist/packages/collections/src/data-table-trigger.d.ts +23 -0
- package/dist/packages/collections/src/data-table.d.ts +3 -85
- package/dist/packages/collections/src/index.d.ts +11 -6
- package/dist/packages/collections/src/query-controls.d.ts +6 -2
- package/dist/packages/collections/src/table-results.d.ts +47 -13
- package/dist/packages/collections/src/timeline.d.ts +1 -0
- package/dist/packages/collections/src/use-collection-controls.d.ts +2 -1
- package/dist/packages/collections/src/use-table-window.d.ts +25 -0
- package/dist/packages/content/src/viewer.d.ts +8 -0
- package/dist/packages/core/src/disclosure.d.ts +9 -1
- package/dist/packages/core/src/index.d.ts +1 -0
- package/dist/packages/core/src/route-link.d.ts +11 -0
- package/dist/packages/forms/src/dates/date-inputs.d.ts +3 -1
- package/dist/packages/forms/src/file-picker.d.ts +15 -0
- package/dist/packages/forms/src/form-controls.d.ts +1 -6
- package/dist/packages/forms/src/forms.d.ts +4 -1
- package/dist/packages/forms/src/index.d.ts +4 -2
- package/dist/packages/forms/src/selection.d.ts +14 -0
- package/dist/packages/foundations/src/chart-tones.d.ts +5 -0
- package/dist/packages/foundations/src/csp/index.d.ts +1 -1
- package/dist/packages/foundations/src/csp/provider.d.ts +7 -2
- package/dist/packages/navigation/src/index.d.ts +1 -1
- package/dist/{pierre-diff-B3tD3-6z.js → pierre-diff-DlvjyuJn.js} +1 -1
- package/dist/plot-width-v2c_rA20.js +63 -0
- package/dist/{src-gqEebHEa.js → src-1EHkSFS-.js} +395 -274
- package/dist/{src-DBNncL7_.js → src-BPTDJqt0.js} +48 -68
- package/dist/src-CGc_hjxJ.js +409 -0
- package/dist/{src-DcW_gMX8.js → src-CpdJlDhO.js} +480 -362
- package/dist/{src-CDp1JtwC.js → src-DVHlknB6.js} +135 -120
- package/dist/styles2.css +167 -132
- package/dist/tokens.js +1 -1
- package/package.json +1 -4
- package/packages/foundations/src/constants.stylex.ts +9 -9
- package/packages/foundations/src/tokens.stylex.ts +9 -9
- package/skills/extend-elements/SKILL.md +74 -0
- package/skills/review-elements/SKILL.md +76 -0
- package/skills/upgrade-elements/SKILL.md +34 -0
- package/skills/upgrade-elements/references/releases.md +58 -0
- package/skills/use-elements/SKILL.md +64 -13
- package/skills/use-elements/references/agent.md +57 -0
- package/skills/use-elements/references/charts.md +63 -0
- package/skills/use-elements/references/collections.md +89 -0
- package/skills/use-elements/references/conversations.md +47 -0
- package/skills/use-elements/references/forms.md +81 -0
- package/skills/use-elements/references/reports.md +6 -4
- package/skills/use-elements/references/styling.md +70 -0
- package/skills/use-elements/references/workspace.md +3 -3
- package/dist/categorical-values-ByvFLaNE.js +0 -59
- package/dist/chart-frame-Bcd9Tpt5.js +0 -251
- package/dist/chart-navigation-BAbb5PV9.js +0 -154
- package/dist/header-styles-COxCYFZx.js +0 -90
- package/dist/packages/charts/src/chart-navigation.d.ts +0 -39
- package/dist/packages/charts/src/chart-surface.d.ts +0 -27
- package/dist/packages/navigation/src/route-link.d.ts +0 -2
- package/dist/plot-width-8cXdAjoD.js +0 -96
- package/dist/src-Bk7M67zy.js +0 -396
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t, r as n } from "./control-styles-D3q_Qyxi.js";
|
|
2
2
|
import { n as r } from "./accessibility-P89UG9-r.js";
|
|
3
3
|
import * as i from "@stylexjs/stylex";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { dispatch as a } from "@ui-sdk/core";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
import { Field as s, FieldControl as c, FieldDescription as l, FieldError as u, FieldLabel as d } from "@ui-sdk/react/field";
|
|
7
|
+
import { Input as f } from "@ui-sdk/react/input";
|
|
8
|
+
import { Textarea as p } from "@ui-sdk/react/textarea";
|
|
8
9
|
// packages/forms/src/field-styles.ts
|
|
9
|
-
var
|
|
10
|
+
var m = {
|
|
10
11
|
error: {
|
|
11
12
|
kMwMTN: "xr5kp14",
|
|
12
13
|
kGuDYH: "xy8obcc",
|
|
@@ -26,13 +27,13 @@ var p = {
|
|
|
26
27
|
kHenm0: "xtt52l0",
|
|
27
28
|
$$css: !0
|
|
28
29
|
}
|
|
29
|
-
},
|
|
30
|
+
}, h = {
|
|
30
31
|
field: { field: { $$css: !0 } }.field,
|
|
31
32
|
plain: n.plainTextarea
|
|
32
33
|
};
|
|
33
34
|
// packages/forms/src/forms.tsx
|
|
34
|
-
function
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
function g({ className: e, style: t, xstyle: a, isSensitive: c = !1, ...l }) {
|
|
36
|
+
return /* @__PURE__ */ o(s, {
|
|
36
37
|
...l,
|
|
37
38
|
...c && {
|
|
38
39
|
"data-agent-hidden": "",
|
|
@@ -41,13 +42,13 @@ function h({ className: e, style: t, xstyle: s, isSensitive: c = !1, ...l }) {
|
|
|
41
42
|
...r({
|
|
42
43
|
className: e,
|
|
43
44
|
style: t,
|
|
44
|
-
styles: i.props(n.fieldRoot,
|
|
45
|
+
styles: i.props(n.fieldRoot, a)
|
|
45
46
|
})
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
...
|
|
49
|
+
function _({ className: e, style: t, ...a }) {
|
|
50
|
+
return /* @__PURE__ */ o(d, {
|
|
51
|
+
...a,
|
|
51
52
|
...r({
|
|
52
53
|
className: e,
|
|
53
54
|
style: t,
|
|
@@ -55,9 +56,9 @@ function g({ className: e, style: t, ...o }) {
|
|
|
55
56
|
})
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
...
|
|
59
|
+
function v({ className: e, style: t, ...a }) {
|
|
60
|
+
return /* @__PURE__ */ o(l, {
|
|
61
|
+
...a,
|
|
61
62
|
...r({
|
|
62
63
|
className: e,
|
|
63
64
|
style: t,
|
|
@@ -65,44 +66,52 @@ function _({ className: e, style: t, ...o }) {
|
|
|
65
66
|
})
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
-
return /* @__PURE__ */
|
|
69
|
+
function y({ className: e, style: t, ...n }) {
|
|
70
|
+
return /* @__PURE__ */ o(u, {
|
|
70
71
|
...n,
|
|
71
72
|
...r({
|
|
72
73
|
className: e,
|
|
73
74
|
style: t,
|
|
74
|
-
styles: i.props(
|
|
75
|
+
styles: i.props(m.error)
|
|
75
76
|
})
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
|
-
var
|
|
79
|
-
Root:
|
|
80
|
-
Label:
|
|
81
|
-
Description:
|
|
82
|
-
Error:
|
|
79
|
+
var b = {
|
|
80
|
+
Root: g,
|
|
81
|
+
Label: _,
|
|
82
|
+
Description: v,
|
|
83
|
+
Error: y
|
|
83
84
|
};
|
|
84
|
-
function b(e) {
|
|
85
|
-
return /* @__PURE__ */ a(S, { ...e });
|
|
86
|
-
}
|
|
87
85
|
function x(e) {
|
|
86
|
+
return /* @__PURE__ */ o(w, { ...e });
|
|
87
|
+
}
|
|
88
|
+
function S(e, t) {
|
|
89
|
+
if (e.defaultPrevented || t === void 0) return;
|
|
90
|
+
let { value: n } = e.currentTarget, r = { onReport: (e, r) => t(n, r) };
|
|
91
|
+
a({ options: () => r }, "onReport", null, {
|
|
92
|
+
reason: "input-change",
|
|
93
|
+
event: e.nativeEvent
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function C(e) {
|
|
88
97
|
return /(?:^|\s)(?:current-password|new-password|one-time-code|cc-[a-z-]+)(?:\s|$)/i.test(e ?? "");
|
|
89
98
|
}
|
|
90
|
-
function
|
|
99
|
+
function w({ density: a = "standard", isEmbedded: s = !1, isSensitive: l = !1, className: u, style: d, xstyle: p, value: m, defaultValue: h, onValueChange: g, onChange: _, ...v }) {
|
|
91
100
|
let y = r({
|
|
92
101
|
className: u,
|
|
93
|
-
style:
|
|
94
|
-
styles: i.props(n.base, n.field, n.singleLineField, n.textFieldState, t[
|
|
102
|
+
style: d,
|
|
103
|
+
styles: i.props(n.base, n.field, n.singleLineField, n.textFieldState, t[a], e[a], s && n.embedded, p)
|
|
95
104
|
});
|
|
96
|
-
return l || v.type?.toLowerCase() === "password" ||
|
|
105
|
+
return l || v.type?.toLowerCase() === "password" || C(v.autoComplete) ? /* @__PURE__ */ o(c, {
|
|
97
106
|
...v,
|
|
98
107
|
...y,
|
|
99
108
|
"data-agent-hidden": "",
|
|
100
109
|
value: m,
|
|
101
110
|
defaultValue: h,
|
|
102
111
|
onChange: (e) => {
|
|
103
|
-
_?.(e), e
|
|
112
|
+
_?.(e), S(e, g);
|
|
104
113
|
}
|
|
105
|
-
}) : /* @__PURE__ */
|
|
114
|
+
}) : /* @__PURE__ */ o(f, {
|
|
106
115
|
...v,
|
|
107
116
|
...y,
|
|
108
117
|
...m !== void 0 && { value: String(m) },
|
|
@@ -111,33 +120,33 @@ function S({ density: o = "standard", isEmbedded: c = !1, isSensitive: l = !1, c
|
|
|
111
120
|
...g !== void 0 && { onValueChange: g }
|
|
112
121
|
});
|
|
113
122
|
}
|
|
114
|
-
function
|
|
123
|
+
function T({ isCompact: e = !1, shouldGrow: t = !1, appearance: a = "field", isSensitive: s = !1, className: l, style: u, xstyle: d, value: f, defaultValue: g, onValueChange: _, onChange: v, ...y }) {
|
|
115
124
|
let b = r({
|
|
116
125
|
className: l,
|
|
117
126
|
style: u,
|
|
118
|
-
styles: i.props(n.base, n.field, n.textFieldState, n.textarea, e &&
|
|
127
|
+
styles: i.props(n.base, n.field, n.textFieldState, n.textarea, e && m.compactTextarea, t && m.growingTextarea, h[a], d)
|
|
119
128
|
});
|
|
120
|
-
return
|
|
129
|
+
return s || C(y.autoComplete) ? /* @__PURE__ */ o(c, {
|
|
121
130
|
...y.id !== void 0 && { id: y.id },
|
|
122
131
|
...y.name !== void 0 && { name: y.name },
|
|
123
|
-
render: /* @__PURE__ */
|
|
132
|
+
render: /* @__PURE__ */ o("textarea", {
|
|
124
133
|
...y,
|
|
125
134
|
"data-agent-hidden": "",
|
|
126
135
|
className: b.className({}),
|
|
127
136
|
style: b.style({}),
|
|
128
|
-
value:
|
|
137
|
+
value: f,
|
|
129
138
|
defaultValue: g,
|
|
130
139
|
onChange: (e) => {
|
|
131
|
-
v?.(e), e
|
|
140
|
+
v?.(e), S(e, _);
|
|
132
141
|
}
|
|
133
142
|
})
|
|
134
|
-
}) : /* @__PURE__ */
|
|
143
|
+
}) : /* @__PURE__ */ o(p, {
|
|
135
144
|
...y,
|
|
136
145
|
...b,
|
|
137
|
-
...
|
|
146
|
+
...f !== void 0 && { value: String(f) },
|
|
138
147
|
...g !== void 0 && { defaultValue: String(g) },
|
|
139
148
|
...v !== void 0 && { onChange: v },
|
|
140
149
|
..._ !== void 0 && { onValueChange: _ }
|
|
141
150
|
});
|
|
142
151
|
}
|
|
143
|
-
export {
|
|
152
|
+
export { T as i, x as n, w as r, b as t };
|
package/dist/forms.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./src-
|
|
2
|
-
import { i as
|
|
3
|
-
export {
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./src-1EHkSFS-.js";
|
|
2
|
+
import { i as v, n as y, t as b } from "./forms-CEbwzlRR.js";
|
|
3
|
+
export { e as AgentAvatarPicker, p as Checkbox, _ as Combobox, b as Field, f as Fieldset, i as FilePicker, r as FormActions, g as FormStatus, y as Input, l as InputGroup, o as NumberField, s as RadioGroup, t as SegmentedControl, c as Select, n as SelectControl, u as SettingsRow, h as SettingsSection, a as Slider, d as Switch, v as Textarea, m as ToggleGroup };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { _ as Accordion, b as AgentAvatar, w as Avatar, t as Badge, T as Button, v as Collapsible, d as Columns, E as ConfirmButton, y as CopyValue, f as Divider, n as Heading, D as IconButton, O as IconLink, r as Identifier, i as Muted, p as Panel, a as Prose, j as RouteLink, m as Row, l as SectionHeading, h as Stack, o as Status, s as Subheading, g as SurfaceLink, c as Text, k as TextButton, A as TextLink, x as agentAppearance, S as agentAvatarColors, C as agentAvatarShapes } from "./src-CpdJlDhO.js";
|