@mechane-ai/elements 0.31.0 → 0.32.1

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 (53) hide show
  1. package/dist/ai.js +19 -19
  2. package/dist/{categorical-values-Cfn6nwHi.js → categorical-values-Devj1xYe.js} +2 -2
  3. package/dist/{chart-frame-C8JU2tlM.js → chart-frame-DepdezdL.js} +91 -61
  4. package/dist/{chart-input-D0hBpH1r.js → chart-input-8sNm47Rp.js} +2 -2
  5. package/dist/charts/cartesian.js +8 -8
  6. package/dist/charts/distribution.js +2 -2
  7. package/dist/charts/graph.js +2 -2
  8. package/dist/charts/hierarchy.js +3 -3
  9. package/dist/charts/matrix.js +3 -3
  10. package/dist/charts/timeline.js +3 -3
  11. package/dist/charts.js +1 -1
  12. package/dist/{code-block-DlzYynjv.js → code-block-B_qJ1JJ3.js} +3 -3
  13. package/dist/collections.js +8 -8
  14. package/dist/content/code.js +1 -1
  15. package/dist/content/diff.js +3 -3
  16. package/dist/content/link.js +1 -1
  17. package/dist/content/markdown.js +2 -2
  18. package/dist/content/tree.js +2 -2
  19. package/dist/{content-link-Dh1hon1m.js → content-link-BtaiSKk8.js} +1 -1
  20. package/dist/content.js +1 -1
  21. package/dist/elements.css +56 -0
  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 +16 -16
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/charts/src/chart-frame.d.ts +6 -4
  29. package/dist/packages/charts/src/chart-heading.d.ts +9 -0
  30. package/dist/packages/core/src/actions.d.ts +6 -2
  31. package/dist/packages/core/src/index.d.ts +1 -0
  32. package/dist/packages/feedback/src/control-placeholders.d.ts +11 -4
  33. package/dist/packages/forms/src/combobox.d.ts +5 -2
  34. package/dist/packages/forms/src/form-controls.d.ts +9 -4
  35. package/dist/packages/forms/src/forms.d.ts +3 -1
  36. package/dist/packages/forms/src/select.d.ts +3 -1
  37. package/dist/packages/foundations/src/control-density.d.ts +1 -0
  38. package/dist/packages/foundations/src/control-styles.d.ts +33 -1
  39. package/dist/packages/foundations/src/header-styles.d.ts +38 -0
  40. package/dist/packages/foundations/src/tokens.d.ts +1 -1
  41. package/dist/packages/foundations/src/tokens.stylex.d.ts +7 -0
  42. package/dist/{pierre-diff-DOkqEUqx.js → pierre-diff-CaPsfQRo.js} +1 -1
  43. package/dist/{pierre-theme-DsrSwl5m.js → pierre-theme-BpNaWn1x.js} +30 -30
  44. package/dist/{pierre-tree-tdFSl55t.js → pierre-tree-CPhT5CUP.js} +4 -4
  45. package/dist/src-BPIIuMeE.js +1291 -0
  46. package/dist/{src-DvLYUTID.js → src-BjmKVOb2.js} +310 -310
  47. package/dist/{src-SE6QORrJ.js → src-CALHXF-U.js} +331 -229
  48. package/dist/{src-CVleZrPa.js → src-DfPfFOu1.js} +3 -3
  49. package/dist/tokens.js +1 -1
  50. package/dist/{tokens.stylex-BoRZ3D8s.js → tokens.stylex-CJbIDPB9.js} +10 -3
  51. package/package.json +1 -1
  52. package/packages/foundations/src/tokens.stylex.ts +6 -0
  53. package/dist/src-Bb2fDOeE.js +0 -1193
@@ -96,11 +96,15 @@ export declare const typography: stylex.VarGroup<Readonly<{
96
96
  }>, symbol>;
97
97
  export declare const controls: stylex.VarGroup<Readonly<{
98
98
  height: string;
99
+ compactHeight: string;
99
100
  coarseTarget: string;
100
101
  iconSize: string;
101
102
  paddingInline: string;
103
+ compactPaddingInline: string;
102
104
  paddingBlock: string;
105
+ compactPaddingBlock: string;
103
106
  gap: string;
107
+ compactGap: string;
104
108
  focusWidth: string;
105
109
  disabledOpacity: string;
106
110
  }>, symbol>;
@@ -109,6 +113,9 @@ export declare const pageGeometry: stylex.VarGroup<Readonly<{
109
113
  toolbarHeight: string;
110
114
  sectionGap: string;
111
115
  }>, symbol>;
116
+ export declare const reportGeometry: stylex.VarGroup<Readonly<{
117
+ headerHeight: string;
118
+ }>, symbol>;
112
119
  export declare const radii: stylex.VarGroup<Readonly<{
113
120
  sm: string;
114
121
  md: string;
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./use-scroll-tab-index-Dxpdh4W7.js";
2
- import { n as t, t as n } from "./pierre-theme-DsrSwl5m.js";
2
+ import { n as t, t as n } from "./pierre-theme-BpNaWn1x.js";
3
3
  import { t as r } from "./viewer-styles-DsFYri4K.js";
4
4
  import * as i from "@stylexjs/stylex";
5
5
  import { useCallback as a, useState as o } from "react";
@@ -1,4 +1,4 @@
1
- import { d as e, f as t, i as n, l as r, r as i, u as a } from "./tokens.stylex-BoRZ3D8s.js";
1
+ import { d as e, f as t, i as n, p as r, r as i, u as a } from "./tokens.stylex-CJbIDPB9.js";
2
2
  // packages/content/src/pierre-theme.ts
3
3
  var o = {
4
4
  name: "Elements",
@@ -8,11 +8,11 @@ var o = {
8
8
  defaults: {
9
9
  foreground: i.ink,
10
10
  background: i.surface,
11
- keyword: a.keyword,
12
- string: a.string,
13
- comment: a.comment,
14
- number: a.number,
15
- type: a.type,
11
+ keyword: e.keyword,
12
+ string: e.string,
13
+ comment: e.comment,
14
+ number: e.number,
15
+ type: e.type,
16
16
  punctuation: i.muted
17
17
  }
18
18
  },
@@ -36,12 +36,12 @@ var o = {
36
36
  }, s = `
37
37
  :host {
38
38
  color-scheme: inherit;
39
- --diffs-font-family: ${e.monoFamily};
40
- --diffs-header-font-family: ${e.fontFamily};
41
- --diffs-font-size: ${e.captionSize};
42
- --diffs-line-height: ${e.bodyLineHeight};
43
- --diffs-gap-inline: ${r.sm};
44
- --diffs-gap-block: ${r.sm};
39
+ --diffs-font-family: ${t.monoFamily};
40
+ --diffs-header-font-family: ${t.fontFamily};
41
+ --diffs-font-size: ${t.captionSize};
42
+ --diffs-line-height: ${t.bodyLineHeight};
43
+ --diffs-gap-inline: ${a.sm};
44
+ --diffs-gap-block: ${a.sm};
45
45
  --diffs-bg: ${i.surface};
46
46
  --diffs-fg: ${i.ink};
47
47
  --diffs-fg-number: ${i.muted};
@@ -54,21 +54,21 @@ var o = {
54
54
  --diffs-bg-context-gutter-override: ${i.canvas};
55
55
  --diffs-bg-separator-override: ${i.canvas};
56
56
  --diffs-selection-background: ${i.accentSoft};
57
- font-family: ${e.monoFamily};
58
- font-size: ${e.captionSize};
57
+ font-family: ${t.monoFamily};
58
+ font-size: ${t.captionSize};
59
59
  color: ${i.ink};
60
60
  background: ${i.surface};
61
61
  }
62
- pre { font-family: ${e.monoFamily}; font-size: ${e.captionSize}; line-height: ${e.bodyLineHeight}; }
62
+ pre { font-family: ${t.monoFamily}; font-size: ${t.captionSize}; line-height: ${t.bodyLineHeight}; }
63
63
  [data-line-number] { color: ${i.muted}; }
64
64
  [data-diffs-header] {
65
65
  min-height: ${n.height};
66
- padding-block: ${r.sm};
67
- padding-inline: ${r.md};
66
+ padding-block: ${a.sm};
67
+ padding-inline: ${a.md};
68
68
  border-bottom: 1px solid ${i.line};
69
- font-size: ${e.captionSize};
70
- line-height: ${e.captionLineHeight};
71
- font-weight: ${e.mediumWeight};
69
+ font-size: ${t.captionSize};
70
+ line-height: ${t.captionLineHeight};
71
+ font-weight: ${t.mediumWeight};
72
72
  flex-wrap: wrap;
73
73
  }
74
74
  [data-header-content] { flex: 1 1 12ch; }
@@ -77,15 +77,15 @@ pre { font-family: ${e.monoFamily}; font-size: ${e.captionSize}; line-height: ${
77
77
  color-scheme: inherit;
78
78
  color: ${i.ink};
79
79
  background: ${i.surface};
80
- font-family: ${e.fontFamily};
81
- font-size: ${e.bodySize};
82
- --trees-font-family-override: ${e.fontFamily};
83
- --trees-font-size-override: ${e.bodySize};
84
- --trees-font-weight-regular-override: ${e.regularWeight};
85
- --trees-font-weight-semibold-override: ${e.strongWeight};
86
- --trees-search-font-weight-override: ${e.strongWeight};
87
- --trees-padding-inline-override: ${r.md};
88
- --trees-item-padding-x-override: ${r.sm};
80
+ font-family: ${t.fontFamily};
81
+ font-size: ${t.bodySize};
82
+ --trees-font-family-override: ${t.fontFamily};
83
+ --trees-font-size-override: ${t.bodySize};
84
+ --trees-font-weight-regular-override: ${t.regularWeight};
85
+ --trees-font-weight-semibold-override: ${t.strongWeight};
86
+ --trees-search-font-weight-override: ${t.strongWeight};
87
+ --trees-padding-inline-override: ${a.md};
88
+ --trees-item-padding-x-override: ${a.sm};
89
89
  --trees-item-row-gap-override: ${n.gap};
90
90
  --trees-bg-override: ${i.surface};
91
91
  --trees-fg-override: ${i.ink};
@@ -112,7 +112,7 @@ pre { font-family: ${e.monoFamily}; font-size: ${e.captionSize}; line-height: ${
112
112
  background-color: ${i.surface};
113
113
  --truncate-marker-background-overlay-color: transparent;
114
114
  }
115
- ${t.hoverPointer} {
115
+ ${r.hoverPointer} {
116
116
  [data-type="item"]:hover:not([data-item-selected="true"]):not([data-item-context-hover="true"]) {
117
117
  background-color: ${i.canvas};
118
118
  --truncate-marker-background-overlay-color: ${i.canvas};
@@ -1,7 +1,7 @@
1
- import { c as e } from "./src-SE6QORrJ.js";
2
- import { l as t } from "./src-Bb2fDOeE.js";
3
- import { f as n } from "./tokens.stylex-BoRZ3D8s.js";
4
- import { r } from "./pierre-theme-DsrSwl5m.js";
1
+ import { c as e } from "./src-CALHXF-U.js";
2
+ import { l as t } from "./src-BPIIuMeE.js";
3
+ import { p as n } from "./tokens.stylex-CJbIDPB9.js";
4
+ import { r } from "./pierre-theme-BpNaWn1x.js";
5
5
  import * as i from "@stylexjs/stylex";
6
6
  import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";