@mechane-ai/elements 0.5.0 → 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 +6 -3
- 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 +7 -1
- package/styles.css +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,8 @@ receive values and callbacks; applications own routing, data, identity, and pers
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
Install [Elements from npm](https://www.npmjs.com/package/@mechane-ai/elements). React and React DOM are peer
|
|
10
|
-
dependencies.
|
|
10
|
+
dependencies. TypeScript consumers also supply the optional `@types/react` peer so declarations resolve in isolated
|
|
11
|
+
builds without relying on hoisted development dependencies.
|
|
11
12
|
|
|
12
13
|
```sh
|
|
13
14
|
pnpm add @mechane-ai/elements react react-dom
|
|
@@ -38,8 +39,10 @@ export function Example() {
|
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
Elements supplies compiled ESM, TypeScript declarations, and CSS. Ordinary React consumers need no StyleX compiler.
|
|
41
|
-
Applications install their own reset and fonts. Put reset rules in the `reset` CSS layer
|
|
42
|
-
|
|
42
|
+
Applications install their own reset and fonts. Put reset rules in the `reset` CSS layer. Elements and consumer StyleX
|
|
43
|
+
rules share the compiler's ordered `priority` layers. Keep those layers at the top level: wrapping Elements in another
|
|
44
|
+
layer lets consumer base declarations override component hover and focus states. Unlayered application themes can
|
|
45
|
+
override token defaults.
|
|
43
46
|
|
|
44
47
|
## Imports
|
|
45
48
|
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as e, f as t, p as n, t as r, v as i } from "./src-
|
|
2
|
-
import { t as a } from "./content-link-
|
|
3
|
-
import { c as o, u as s } from "./src-
|
|
1
|
+
import { b as e, f as t, p as n, t as r, v as i } from "./src-DuTmAQp5.js";
|
|
2
|
+
import { t as a } from "./content-link-DLiDJzwq.js";
|
|
3
|
+
import { c as o, u as s } from "./src-DjvJJoaw.js";
|
|
4
4
|
import { r as c } from "./src-CfDf8TY8.js";
|
|
5
5
|
import * as l from "@stylexjs/stylex";
|
|
6
6
|
import { createContext as u, useContext as d, useId as f, useRef as p } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t } from "./chart-frame-
|
|
2
|
-
import { n } from "./chart-input
|
|
1
|
+
import { n as e, o as t } from "./chart-frame-cfBPXmni.js";
|
|
2
|
+
import { n } from "./chart-input-hK9U0Ql0.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
// packages/charts/src/categorical-values.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e } from "./src-
|
|
2
|
-
import { r as t } from "./chart-frame-
|
|
1
|
+
import { d as e } from "./src-Daf4PUD6.js";
|
|
2
|
+
import { r as t } from "./chart-frame-cfBPXmni.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// packages/charts/src/chart-input.tsx
|
|
5
5
|
function r(e) {
|