@mechane-ai/elements 0.12.0 → 0.13.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 (48) hide show
  1. package/README.md +15 -0
  2. package/dist/ai.js +167 -140
  3. package/dist/{categorical-values-CTrHn9jH.js → categorical-values-DwobbjBq.js} +2 -2
  4. package/dist/{chart-frame-38ES6kwK.js → chart-frame-DAxsgMyl.js} +1 -1
  5. package/dist/{chart-input-C9fu7f1Q.js → chart-input-B0snxbMH.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  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 +2 -2
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-BjV2EFZS.js → code-block-VwrOHz5j.js} +1 -1
  14. package/dist/collections.js +282 -199
  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-C460m-O7.js → content-link-Oj-MtNYi.js} +1 -1
  21. package/dist/content.js +3 -3
  22. package/dist/elements.css +8 -16
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +1 -1
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +1 -1
  28. package/dist/navigation/commands.js +1 -1
  29. package/dist/navigation.js +26 -12
  30. package/dist/packages/ai/src/index.d.ts +2 -2
  31. package/dist/packages/ai/src/prompt-input.d.ts +4 -0
  32. package/dist/packages/collections/src/data-table.d.ts +19 -2
  33. package/dist/packages/collections/src/index.d.ts +2 -2
  34. package/dist/packages/feedback/src/async-region.d.ts +15 -9
  35. package/dist/packages/feedback/src/control-placeholders.d.ts +8 -3
  36. package/dist/packages/feedback/src/index.d.ts +2 -3
  37. package/dist/packages/foundations/src/control-styles.d.ts +21 -0
  38. package/dist/packages/foundations/src/tokens.stylex.d.ts +5 -0
  39. package/dist/packages/navigation/src/index.d.ts +2 -2
  40. package/dist/packages/navigation/src/page-navigation.d.ts +5 -0
  41. package/dist/{pierre-tree-DKN2eGlZ.js → pierre-tree-Db1yaDM2.js} +2 -2
  42. package/dist/{src-CI6KtN2w.js → src-B0UTwpOz.js} +339 -364
  43. package/dist/{src-3gzujMhN.js → src-BNlyCwOr.js} +21 -7
  44. package/dist/{src-DOzle5d4.js → src-DMsnWyru.js} +155 -170
  45. package/dist/tokens.js +8 -4
  46. package/package.json +1 -1
  47. package/packages/foundations/src/tokens.stylex.ts +2 -0
  48. package/dist/packages/feedback/src/loading.d.ts +0 -7
package/dist/tokens.js CHANGED
@@ -180,24 +180,28 @@ var e = {
180
180
  drawerEasing: "var(--xumjr7l)",
181
181
  __varGroupHash__: "xtoz1ri"
182
182
  }, m = {
183
+ delaySeconds: 2,
184
+ revealMs: 80,
185
+ placeholderMs: 120
186
+ }, h = {
183
187
  popup: "var(--xfou7vv)",
184
188
  selection: "var(--x1qr3jy8)",
185
189
  __varGroupHash__: "x1e8hs47"
186
- }, h = { popup: "0 4px 16px #00000066" }, g = {
190
+ }, g = { popup: "0 4px 16px #00000066" }, _ = {
187
191
  sticky: "1",
188
192
  backdrop: "20",
189
193
  dialog: "21",
190
194
  popup: "30",
191
195
  tooltip: "40",
192
196
  skipLink: "50"
193
- }, _ = {
197
+ }, v = {
194
198
  rowHeight: 48,
195
199
  headerHeight: 36
196
- }, v = {
200
+ }, y = {
197
201
  coarsePointer: "@media (pointer: coarse)",
198
202
  hoverPointer: "@media (hover: hover) and (pointer: fine)",
199
203
  compactText: "@media (max-width:639px)",
200
204
  compactTable: "@media (max-width:600px)",
201
205
  reducedMotion: "@media (prefers-reduced-motion: reduce)"
202
206
  };
203
- export { i as avatarColors, n as chartColors, e as colors, v as conditions, u as controls, a as darkAvatarColors, r as darkChartColors, t as darkColors, h as darkShadows, s as darkSyntaxColors, g as layers, p as motion, d as pageGeometry, f as radii, m as shadows, c as spacing, o as syntaxColors, _ as tableGeometry, l as typography };
207
+ export { i as avatarColors, n as chartColors, e as colors, y as conditions, u as controls, a as darkAvatarColors, r as darkChartColors, t as darkColors, g as darkShadows, s as darkSyntaxColors, _ as layers, m as loading, p as motion, d as pageGeometry, f as radii, h as shadows, c as spacing, o as syntaxColors, v as tableGeometry, l as typography };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -190,6 +190,8 @@ export const motion = stylex.defineVars({
190
190
  drawerEasing: 'cubic-bezier(0.32, 0.72, 0, 1)',
191
191
  });
192
192
 
193
+ export const loading = stylex.defineConsts({ delaySeconds: 2, revealMs: 80, placeholderMs: 120 });
194
+
193
195
  export const shadows = stylex.defineVars({ popup: '0 4px 16px #00000014', selection: 'inset 2px 0 currentColor' });
194
196
 
195
197
  export const darkShadows = stylex.defineConsts({ popup: '0 4px 16px #00000066' });
@@ -1,7 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- type LoadingProps = {
3
- readonly label: string;
4
- readonly shape?: 'rows' | 'detail';
5
- };
6
- export declare function Loading({ label, shape }: LoadingProps): ReactNode;
7
- export {};