@mechane-ai/elements 0.11.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 (69) hide show
  1. package/README.md +23 -4
  2. package/dist/ai.js +167 -141
  3. package/dist/{categorical-values-FYc43JCa.js → categorical-values-DwobbjBq.js} +2 -2
  4. package/dist/{chart-frame-Bczk5sWj.js → chart-frame-DAxsgMyl.js} +4 -4
  5. package/dist/{chart-input-CbzVN76m.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 +3 -3
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +4 -4
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-B7xzM3tD.js → code-block-VwrOHz5j.js} +2 -2
  14. package/dist/collections.js +402 -267
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +3 -3
  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-CatGOrbo.js → content-link-Oj-MtNYi.js} +1 -1
  21. package/dist/content.js +3 -4
  22. package/dist/elements.css +141 -96
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +22 -23
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +223 -237
  28. package/dist/navigation/commands.js +3 -3
  29. package/dist/navigation.js +26 -12
  30. package/dist/overlays.js +1 -1
  31. package/dist/packages/ai/src/index.d.ts +2 -2
  32. package/dist/packages/ai/src/prompt-input.d.ts +4 -0
  33. package/dist/packages/collections/src/collection-controls.d.ts +1 -1
  34. package/dist/packages/collections/src/data-table.d.ts +24 -6
  35. package/dist/packages/collections/src/index.d.ts +2 -2
  36. package/dist/packages/core/src/actions.d.ts +5 -8
  37. package/dist/packages/feedback/src/async-region.d.ts +15 -9
  38. package/dist/packages/feedback/src/control-placeholders.d.ts +21 -0
  39. package/dist/packages/feedback/src/index.d.ts +4 -3
  40. package/dist/packages/forms/src/field-styles.d.ts +2 -74
  41. package/dist/packages/forms/src/form-actions.d.ts +11 -0
  42. package/dist/packages/forms/src/form-controls.d.ts +1 -1
  43. package/dist/packages/forms/src/forms.d.ts +3 -3
  44. package/dist/packages/forms/src/index.d.ts +2 -0
  45. package/dist/packages/forms/src/select.d.ts +2 -2
  46. package/dist/packages/forms/src/selection-styles.d.ts +0 -13
  47. package/dist/packages/foundations/src/control-styles.d.ts +122 -0
  48. package/dist/packages/foundations/src/style-composition.d.ts +0 -2
  49. package/dist/packages/foundations/src/tokens.stylex.d.ts +13 -2
  50. package/dist/packages/layout/src/frame.stylex.d.ts +0 -1
  51. package/dist/packages/layout/src/index.d.ts +2 -0
  52. package/dist/packages/layout/src/page-content.d.ts +5 -0
  53. package/dist/packages/layout/src/page-toolbar.d.ts +1 -1
  54. package/dist/packages/layout/src/sidebar.d.ts +3 -3
  55. package/dist/packages/navigation/src/index.d.ts +2 -2
  56. package/dist/packages/navigation/src/page-navigation.d.ts +5 -0
  57. package/dist/{pierre-diff--zsiHCCB.js → pierre-diff-sUAU-xeL.js} +1 -1
  58. package/dist/{pierre-theme-D9hnHv3Z.js → pierre-theme-CBAncKdH.js} +1 -1
  59. package/dist/{pierre-tree-D47uA7lb.js → pierre-tree-Db1yaDM2.js} +3 -3
  60. package/dist/src-B0UTwpOz.js +1003 -0
  61. package/dist/{src-D05isEh_.js → src-BNlyCwOr.js} +141 -69
  62. package/dist/{src-Cs0dRc4X.js → src-CVlgjAlw.js} +1 -1
  63. package/dist/src-DMsnWyru.js +1184 -0
  64. package/dist/tokens.js +18 -8
  65. package/package.json +1 -1
  66. package/packages/foundations/src/tokens.stylex.ts +15 -5
  67. package/dist/packages/feedback/src/loading.d.ts +0 -7
  68. package/dist/src-C_heP5kL.js +0 -1264
  69. package/dist/src-DXsGTJgv.js +0 -969
package/dist/tokens.js CHANGED
@@ -155,8 +155,7 @@ var e = {
155
155
  headingTracking: "var(--xgto76l)",
156
156
  __varGroupHash__: "xledmcz"
157
157
  }, u = {
158
- smHeight: "var(--x1hdxzrk)",
159
- mdHeight: "var(--xymjgzc)",
158
+ height: "var(--x14tmdi9)",
160
159
  coarseTarget: "var(--x6uufy4)",
161
160
  iconSize: "var(--x1ud0cvw)",
162
161
  paddingInline: "var(--xrzkwmd)",
@@ -166,32 +165,43 @@ var e = {
166
165
  disabledOpacity: "var(--x9ngs59)",
167
166
  __varGroupHash__: "x1sjug0q"
168
167
  }, d = {
168
+ inset: "var(--xnv5ly4)",
169
+ toolbarHeight: "var(--x1m0ogk9)",
170
+ sectionGap: "var(--xe6nmbs)",
171
+ __varGroupHash__: "x1vss23x"
172
+ }, f = {
169
173
  sm: "var(--x1asdyoo)",
170
174
  md: "var(--xz1oyae)",
171
175
  __varGroupHash__: "x1i152zt"
172
- }, f = {
176
+ }, p = {
173
177
  duration: "var(--xjjzqp4)",
174
178
  easing: "var(--x5xz5r2)",
175
179
  drawerDuration: "var(--xrmqybo)",
176
180
  drawerEasing: "var(--xumjr7l)",
177
181
  __varGroupHash__: "xtoz1ri"
178
- }, p = {
182
+ }, m = {
183
+ delaySeconds: 2,
184
+ revealMs: 80,
185
+ placeholderMs: 120
186
+ }, h = {
179
187
  popup: "var(--xfou7vv)",
188
+ selection: "var(--x1qr3jy8)",
180
189
  __varGroupHash__: "x1e8hs47"
181
- }, m = { popup: "0 4px 16px #00000066" }, h = {
190
+ }, g = { popup: "0 4px 16px #00000066" }, _ = {
191
+ sticky: "1",
182
192
  backdrop: "20",
183
193
  dialog: "21",
184
194
  popup: "30",
185
195
  tooltip: "40",
186
196
  skipLink: "50"
187
- }, g = {
197
+ }, v = {
188
198
  rowHeight: 48,
189
199
  headerHeight: 36
190
- }, _ = {
200
+ }, y = {
191
201
  coarsePointer: "@media (pointer: coarse)",
192
202
  hoverPointer: "@media (hover: hover) and (pointer: fine)",
193
203
  compactText: "@media (max-width:639px)",
194
204
  compactTable: "@media (max-width:600px)",
195
205
  reducedMotion: "@media (prefers-reduced-motion: reduce)"
196
206
  };
197
- export { i as avatarColors, n as chartColors, e as colors, _ as conditions, u as controls, a as darkAvatarColors, r as darkChartColors, t as darkColors, m as darkShadows, s as darkSyntaxColors, h as layers, f as motion, d as radii, p as shadows, c as spacing, o as syntaxColors, g 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.11.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": {
@@ -169,17 +169,18 @@ export const typography = stylex.defineVars({
169
169
  });
170
170
 
171
171
  export const controls = stylex.defineVars({
172
- smHeight: '32px',
173
- mdHeight: '36px',
172
+ height: '32px',
174
173
  coarseTarget: '44px',
175
174
  iconSize: '16px',
176
175
  paddingInline: '10px',
177
- paddingBlock: '7px',
176
+ paddingBlock: '5px',
178
177
  gap: '6px',
179
178
  focusWidth: '2px',
180
179
  disabledOpacity: '0.45',
181
180
  });
182
181
 
182
+ export const pageGeometry = stylex.defineVars({ inset: '16px', toolbarHeight: '48px', sectionGap: '32px' });
183
+
183
184
  export const radii = stylex.defineVars({ sm: '4px', md: '6px' });
184
185
 
185
186
  export const motion = stylex.defineVars({
@@ -189,11 +190,20 @@ export const motion = stylex.defineVars({
189
190
  drawerEasing: 'cubic-bezier(0.32, 0.72, 0, 1)',
190
191
  });
191
192
 
192
- export const shadows = stylex.defineVars({ popup: '0 4px 16px #00000014' });
193
+ export const loading = stylex.defineConsts({ delaySeconds: 2, revealMs: 80, placeholderMs: 120 });
194
+
195
+ export const shadows = stylex.defineVars({ popup: '0 4px 16px #00000014', selection: 'inset 2px 0 currentColor' });
193
196
 
194
197
  export const darkShadows = stylex.defineConsts({ popup: '0 4px 16px #00000066' });
195
198
 
196
- export const layers = stylex.defineConsts({ backdrop: '20', dialog: '21', popup: '30', tooltip: '40', skipLink: '50' });
199
+ export const layers = stylex.defineConsts({
200
+ sticky: '1',
201
+ backdrop: '20',
202
+ dialog: '21',
203
+ popup: '30',
204
+ tooltip: '40',
205
+ skipLink: '50',
206
+ });
197
207
 
198
208
  export const tableGeometry = stylex.defineConsts({ rowHeight: 48, headerHeight: 36 });
199
209
 
@@ -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 {};