@mechane-ai/elements 0.5.1 → 0.6.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 +4 -2
- package/dist/ai.js +3 -3
- package/dist/{categorical-values-BfAEQUd0.js → categorical-values-DrTcMsSi.js} +2 -2
- package/dist/{chart-frame-bX0VLC_W.js → chart-frame-cfBPXmni.js} +1 -1
- package/dist/{chart-input--VSrlMl-.js → chart-input-hK9U0Ql0.js} +2 -2
- package/dist/charts/cartesian.js +203 -141
- 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 +1 -1
- package/dist/charts.js +1 -1
- package/dist/{code-block-BiMcfdlB.js → code-block-DSmz0jTf.js} +1 -1
- package/dist/collections.js +6 -6
- 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-Bm-Td5wm.js → content-link-DLiDJzwq.js} +1 -1
- package/dist/content.js +2 -2
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +1 -0
- package/dist/packages/forms/src/field-styles.d.ts +8 -0
- package/dist/packages/forms/src/form-controls.d.ts +1 -1
- package/dist/packages/forms/src/forms.d.ts +3 -2
- package/dist/{pierre-tree-LY7PGy-7.js → pierre-tree-C-eebLcZ.js} +2 -2
- package/dist/{src-CbJTK9oP.js → src-Daf4PUD6.js} +1 -1
- package/dist/{src-CjnbzSgq.js → src-DjvJJoaw.js} +167 -159
- package/dist/{src-CbYaLvhD.js → src-DuTmAQp5.js} +1 -0
- package/package.json +1 -1
- package/styles.css +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "../chart-frame-
|
|
2
|
-
import { n as i, r as a, t as o } from "../chart-input
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "../chart-frame-cfBPXmni.js";
|
|
2
|
+
import { n as i, r as a, t as o } from "../chart-input-hK9U0Ql0.js";
|
|
3
3
|
import { t as s } from "../plot-width--OgdohB5.js";
|
|
4
4
|
import * as c from "@stylexjs/stylex";
|
|
5
5
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
package/dist/charts/graph.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e, r as t, t as n } from "../chart-frame-
|
|
2
|
-
import { n as r, t as i } from "../chart-input
|
|
1
|
+
import { o as e, r as t, t as n } from "../chart-frame-cfBPXmni.js";
|
|
2
|
+
import { n as r, t as i } from "../chart-input-hK9U0Ql0.js";
|
|
3
3
|
import * as a from "@stylexjs/stylex";
|
|
4
4
|
import { useId as o } from "react";
|
|
5
5
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
package/dist/charts/hierarchy.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "../categorical-values-
|
|
2
|
-
import { a as r, o as i, r as a } from "../chart-frame-
|
|
3
|
-
import { t as o } from "../chart-input
|
|
1
|
+
import { i as e, r as t, t as n } from "../categorical-values-DrTcMsSi.js";
|
|
2
|
+
import { a as r, o as i, r as a } from "../chart-frame-cfBPXmni.js";
|
|
3
|
+
import { t as o } from "../chart-input-hK9U0Ql0.js";
|
|
4
4
|
import { t as s } from "../plot-width--OgdohB5.js";
|
|
5
5
|
import * as c from "@stylexjs/stylex";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
package/dist/charts/matrix.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { colors as e } from "../tokens.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "../chart-input
|
|
3
|
-
import { n as i, o as a, r as o, t as s } from "../chart-frame-
|
|
2
|
+
import { n as t, r as n, t as r } from "../chart-input-hK9U0Ql0.js";
|
|
3
|
+
import { n as i, o as a, r as o, t as s } from "../chart-frame-cfBPXmni.js";
|
|
4
4
|
import * as c from "@stylexjs/stylex";
|
|
5
5
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
// packages/charts/src/matrix/heatmap-scale.ts
|
package/dist/charts/timeline.js
CHANGED
package/dist/charts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-
|
|
1
|
+
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-cfBPXmni.js";
|
package/dist/collections.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, f as t, i as n, v as r, y as i } from "./src-
|
|
2
|
-
import { r as a } from "./src-
|
|
1
|
+
import { c as e, f as t, i as n, v as r, y as i } from "./src-DuTmAQp5.js";
|
|
2
|
+
import { r as a } from "./src-DjvJJoaw.js";
|
|
3
3
|
import { r as o } from "./src-CfDf8TY8.js";
|
|
4
4
|
import { t as s } from "./accessibility-C-aIZ1Yx.js";
|
|
5
5
|
import { mergeProps as c } from "@base-ui/react/merge-props";
|
|
@@ -402,10 +402,10 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
402
402
|
t?.focus({ preventScroll: !0 }), t?.click();
|
|
403
403
|
},
|
|
404
404
|
...{
|
|
405
|
-
0: { className: "x14o62y9 x17kqdoe
|
|
406
|
-
2: { className: "x14o62y9 x17kqdoe
|
|
407
|
-
1: { className: "x14o62y9 x17kqdoe
|
|
408
|
-
3: { className: "x14o62y9 x17kqdoe
|
|
405
|
+
0: { className: "x14o62y9 x17kqdoe xso031l x1q0q8m5 x1qndepd xzro8vx" },
|
|
406
|
+
2: { className: "x14o62y9 x17kqdoe xso031l x1q0q8m5 x1qndepd xzro8vx x1ypdohk" },
|
|
407
|
+
1: { className: "x14o62y9 x17kqdoe xso031l x1q0q8m5 x1qndepd xzro8vx x1r8u7ye" },
|
|
408
|
+
3: { className: "x14o62y9 x17kqdoe xso031l x1q0q8m5 x1qndepd xzro8vx x1ypdohk x1r8u7ye" }
|
|
409
409
|
}[(y !== void 0) << 1 | (g?.has(e.id) === !0 || b === e.id)],
|
|
410
410
|
children: [g !== void 0 && /* @__PURE__ */ m("td", {
|
|
411
411
|
className: "xn9t2bk xxymvpz xj0a0fe x187nhsf xeuugli x1m92p3w",
|
package/dist/content/code.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CodeBlock } from "../code-block-
|
|
1
|
+
export { t as CodeBlock } from "../code-block-DSmz0jTf.js";
|
package/dist/content/diff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as e, h as t } from "../src-
|
|
2
|
-
import { t as n } from "../code-block-
|
|
1
|
+
import { g as e, h as t } from "../src-DuTmAQp5.js";
|
|
2
|
+
import { t as n } from "../code-block-DSmz0jTf.js";
|
|
3
3
|
import "@stylexjs/stylex";
|
|
4
4
|
import { useEffect as r, useState as i } from "react";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
package/dist/content/link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ContentLink } from "../content-link-
|
|
1
|
+
export { t as ContentLink } from "../content-link-DLiDJzwq.js";
|
package/dist/content/markdown.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../code-block-
|
|
2
|
-
import { n as t, t as n } from "../content-link-
|
|
1
|
+
import { t as e } from "../code-block-DSmz0jTf.js";
|
|
2
|
+
import { n as t, t as n } from "../content-link-DLiDJzwq.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { Children as i, createElement as a } from "react";
|
|
5
5
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
package/dist/content/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as e } from "../src-
|
|
1
|
+
import { b as e } from "../src-DuTmAQp5.js";
|
|
2
2
|
import * as t from "@stylexjs/stylex";
|
|
3
3
|
import { useEffect as n, useState as r } from "react";
|
|
4
4
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -26,7 +26,7 @@ function u(c) {
|
|
|
26
26
|
let e = !0;
|
|
27
27
|
async function t() {
|
|
28
28
|
try {
|
|
29
|
-
let t = await import("../pierre-tree-
|
|
29
|
+
let t = await import("../pierre-tree-C-eebLcZ.js");
|
|
30
30
|
e && d({
|
|
31
31
|
Component: t.PierreTree,
|
|
32
32
|
hasFailed: !1
|
package/dist/content.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as e, g as t, h as n, v as r, x as i } from "./src-
|
|
2
|
-
import { t as a } from "./code-block-
|
|
1
|
+
import { b as e, g as t, h as n, v as r, x as i } from "./src-DuTmAQp5.js";
|
|
2
|
+
import { t as a } from "./code-block-DSmz0jTf.js";
|
|
3
3
|
import * as o from "@stylexjs/stylex";
|
|
4
4
|
import { useCallback as s, useEffect as c, useRef as l, useState as u } from "react";
|
|
5
5
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
package/dist/feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AsyncRegion, n as ContentReveal, u as EmptyState, o as Loading, i as Meter, d as Notice, a as Progress, s as Skeleton, c as SkeletonText, l as Spinner, r as Toast } from "./src-
|
|
1
|
+
export { t as AsyncRegion, n as ContentReveal, u as EmptyState, o as Loading, i as Meter, d as Notice, a as Progress, s as Skeleton, c as SkeletonText, l as Spinner, r as Toast } from "./src-Daf4PUD6.js";
|
package/dist/forms/dates.js
CHANGED
package/dist/forms.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as Checkbox, g as Combobox, c as Field, d as Fieldset, f as FilePicker, l as Input, p as InputGroup, m as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, h as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-
|
|
1
|
+
export { r as Checkbox, g as Combobox, c as Field, d as Fieldset, f as FilePicker, l as Input, p as InputGroup, m as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, h as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-DjvJJoaw.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { m as Accordion, _ as Avatar, t as Badge, v as Button, h as Collapsible, l as Columns, g as CopyValue, u as Divider, n as Heading, y as IconButton, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, c as Text, b as TextButton, x as TextLink } from "./src-
|
|
1
|
+
export { m as Accordion, _ as Avatar, t as Badge, v as Button, h as Collapsible, l as Columns, g as CopyValue, u as Divider, n as Heading, y as IconButton, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, c as Text, b as TextButton, x as TextLink } from "./src-DuTmAQp5.js";
|
package/dist/layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "./src-CfDf8TY8.js";
|
|
2
|
-
import { i as t, n, v as r, y as i } from "./src-
|
|
2
|
+
import { i as t, n, v as r, y as i } from "./src-DuTmAQp5.js";
|
|
3
3
|
import { mergeProps as a } from "@base-ui/react/merge-props";
|
|
4
4
|
import "@stylexjs/stylex";
|
|
5
5
|
import { createContext as o, useContext as s, useEffect as c, useId as l, useRef as u, useState as d } from "react";
|
|
@@ -13,6 +13,7 @@ export type BarChartProps = {
|
|
|
13
13
|
readonly categories: ReadonlyArray<{
|
|
14
14
|
readonly id: string;
|
|
15
15
|
readonly label: string;
|
|
16
|
+
readonly axisLabel?: string | undefined;
|
|
16
17
|
}>;
|
|
17
18
|
readonly series: ReadonlyArray<BarSeries>;
|
|
18
19
|
readonly domain: readonly [number, number];
|
|
@@ -64,3 +64,11 @@ export declare const fieldStyles: Readonly<{
|
|
|
64
64
|
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
65
65
|
}>;
|
|
66
66
|
}>;
|
|
67
|
+
export declare const inputSizeStyles: Readonly<{
|
|
68
|
+
readonly sm: Readonly<{
|
|
69
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
|
|
70
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
71
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
72
|
+
}>;
|
|
73
|
+
readonly md: {};
|
|
74
|
+
}>;
|
|
@@ -39,7 +39,7 @@ declare function FieldsetRoot({ className, style, xstyle, ...props }: FieldsetRo
|
|
|
39
39
|
declare function FieldsetLegend({ className, style, ...props }: FieldsetLegendProps): ReactNode;
|
|
40
40
|
declare function InputGroupRoot({ xstyle, ...props }: InputGroupRootProps): ReactNode;
|
|
41
41
|
declare function InputGroupAddon(props: InputGroupAddonProps): ReactNode;
|
|
42
|
-
declare function InputGroupInput({ className, style, xstyle, ...props }: InputProps): ReactNode;
|
|
42
|
+
declare function InputGroupInput({ className, style, xstyle, size, ...props }: InputProps): ReactNode;
|
|
43
43
|
declare function NumberFieldRoot({ className, style, xstyle, ...props }: NumberFieldRootProps): ReactNode;
|
|
44
44
|
declare function NumberFieldGroup({ className, style, ...props }: NumberFieldGroupProps): ReactNode;
|
|
45
45
|
declare function NumberFieldInput({ className, style, ...props }: NumberFieldInputProps): ReactNode;
|
|
@@ -10,7 +10,8 @@ type FieldLabelProps = ComponentProps<typeof BaseField.Label>;
|
|
|
10
10
|
type FieldDescriptionProps = ComponentProps<typeof BaseField.Description>;
|
|
11
11
|
type FieldErrorProps = ComponentProps<typeof BaseField.Error>;
|
|
12
12
|
type BaseInputProps = ComponentProps<typeof BaseInput>;
|
|
13
|
-
export type InputProps = Omit<BaseInputProps, 'value' | 'defaultValue' | 'onChange' | 'onValueChange' | 'readOnly'> & TextValueProperties<NonNullable<BaseInputProps['value']>, NonNullable<BaseInputProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
|
|
13
|
+
export type InputProps = Omit<BaseInputProps, 'value' | 'defaultValue' | 'onChange' | 'onValueChange' | 'readOnly' | 'size'> & TextValueProperties<NonNullable<BaseInputProps['value']>, NonNullable<BaseInputProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
|
|
14
|
+
readonly size?: 'sm' | 'md';
|
|
14
15
|
readonly xstyle?: PlacementStyle;
|
|
15
16
|
};
|
|
16
17
|
type NativeTextareaProps = ComponentProps<'textarea'>;
|
|
@@ -27,6 +28,6 @@ export declare const Field: {
|
|
|
27
28
|
Description: typeof FieldDescription;
|
|
28
29
|
Error: typeof FieldError;
|
|
29
30
|
};
|
|
30
|
-
export declare function Input({ className, style, xstyle, ...props }: InputProps): ReactNode;
|
|
31
|
+
export declare function Input({ className, style, xstyle, size, ...props }: InputProps): ReactNode;
|
|
31
32
|
export declare function Textarea({ value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
|
|
32
33
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "./src-
|
|
2
|
-
import { l as t } from "./src-
|
|
1
|
+
import { c as e } from "./src-DuTmAQp5.js";
|
|
2
|
+
import { l as t } from "./src-DjvJJoaw.js";
|
|
3
3
|
import { conditions as n } from "./tokens.js";
|
|
4
4
|
import { r } from "./pierre-theme-BpESNIsV.js";
|
|
5
5
|
import * as i from "@stylexjs/stylex";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, s as t } from "./src-
|
|
1
|
+
import { i as e, s as t } from "./src-DuTmAQp5.js";
|
|
2
2
|
import { t as n } from "./accessibility-C-aIZ1Yx.js";
|
|
3
3
|
import { n as r, t as i } from "./popup-styles-CvtZDE2t.js";
|
|
4
4
|
import { t as a } from "./style-composition-uYlczSsB.js";
|