@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.
Files changed (37) hide show
  1. package/README.md +6 -3
  2. package/dist/ai.js +3 -3
  3. package/dist/{categorical-values-BfAEQUd0.js → categorical-values-DrTcMsSi.js} +2 -2
  4. package/dist/{chart-frame-bX0VLC_W.js → chart-frame-cfBPXmni.js} +1 -1
  5. package/dist/{chart-input--VSrlMl-.js → chart-input-hK9U0Ql0.js} +2 -2
  6. package/dist/charts/cartesian.js +203 -141
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +1 -1
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-BiMcfdlB.js → code-block-DSmz0jTf.js} +1 -1
  14. package/dist/collections.js +6 -6
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +2 -2
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +2 -2
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-Bm-Td5wm.js → content-link-DLiDJzwq.js} +1 -1
  21. package/dist/content.js +2 -2
  22. package/dist/feedback.js +1 -1
  23. package/dist/forms/dates.js +1 -1
  24. package/dist/forms.js +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/layout.js +1 -1
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/charts/src/cartesian/bar-chart.d.ts +1 -0
  29. package/dist/packages/forms/src/field-styles.d.ts +8 -0
  30. package/dist/packages/forms/src/form-controls.d.ts +1 -1
  31. package/dist/packages/forms/src/forms.d.ts +3 -2
  32. package/dist/{pierre-tree-LY7PGy-7.js → pierre-tree-C-eebLcZ.js} +2 -2
  33. package/dist/{src-CbJTK9oP.js → src-Daf4PUD6.js} +1 -1
  34. package/dist/{src-CjnbzSgq.js → src-DjvJJoaw.js} +167 -159
  35. package/dist/{src-CbYaLvhD.js → src-DuTmAQp5.js} +1 -0
  36. package/package.json +7 -1
  37. 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; the package's `elements` layer
42
- comes after it. Application styles and StyleX themes can override that layer.
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-CbYaLvhD.js";
2
- import { t as a } from "./content-link-Bm-Td5wm.js";
3
- import { c as o, u as s } from "./src-CjnbzSgq.js";
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-bX0VLC_W.js";
2
- import { n } from "./chart-input--VSrlMl-.js";
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,4 +1,4 @@
1
- import { h as e } from "./src-CbYaLvhD.js";
1
+ import { h as e } from "./src-DuTmAQp5.js";
2
2
  import { chartColors as t, colors as n } from "./tokens.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { useId as i } from "react";
@@ -1,5 +1,5 @@
1
- import { d as e } from "./src-CbJTK9oP.js";
2
- import { r as t } from "./chart-frame-bX0VLC_W.js";
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) {