@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.
- package/dist/ai.js +19 -19
- package/dist/{categorical-values-Cfn6nwHi.js → categorical-values-Devj1xYe.js} +2 -2
- package/dist/{chart-frame-C8JU2tlM.js → chart-frame-DepdezdL.js} +91 -61
- package/dist/{chart-input-D0hBpH1r.js → chart-input-8sNm47Rp.js} +2 -2
- package/dist/charts/cartesian.js +8 -8
- 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 +3 -3
- package/dist/charts/timeline.js +3 -3
- package/dist/charts.js +1 -1
- package/dist/{code-block-DlzYynjv.js → code-block-B_qJ1JJ3.js} +3 -3
- package/dist/collections.js +8 -8
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- 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-Dh1hon1m.js → content-link-BtaiSKk8.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/elements.css +56 -0
- 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 +16 -16
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/charts/src/chart-frame.d.ts +6 -4
- package/dist/packages/charts/src/chart-heading.d.ts +9 -0
- package/dist/packages/core/src/actions.d.ts +6 -2
- package/dist/packages/core/src/index.d.ts +1 -0
- package/dist/packages/feedback/src/control-placeholders.d.ts +11 -4
- package/dist/packages/forms/src/combobox.d.ts +5 -2
- package/dist/packages/forms/src/form-controls.d.ts +9 -4
- package/dist/packages/forms/src/forms.d.ts +3 -1
- package/dist/packages/forms/src/select.d.ts +3 -1
- package/dist/packages/foundations/src/control-density.d.ts +1 -0
- package/dist/packages/foundations/src/control-styles.d.ts +33 -1
- package/dist/packages/foundations/src/header-styles.d.ts +38 -0
- package/dist/packages/foundations/src/tokens.d.ts +1 -1
- package/dist/packages/foundations/src/tokens.stylex.d.ts +7 -0
- package/dist/{pierre-diff-DOkqEUqx.js → pierre-diff-CaPsfQRo.js} +1 -1
- package/dist/{pierre-theme-DsrSwl5m.js → pierre-theme-BpNaWn1x.js} +30 -30
- package/dist/{pierre-tree-tdFSl55t.js → pierre-tree-CPhT5CUP.js} +4 -4
- package/dist/src-BPIIuMeE.js +1291 -0
- package/dist/{src-DvLYUTID.js → src-BjmKVOb2.js} +310 -310
- package/dist/{src-SE6QORrJ.js → src-CALHXF-U.js} +331 -229
- package/dist/{src-CVleZrPa.js → src-DfPfFOu1.js} +3 -3
- package/dist/tokens.js +1 -1
- package/dist/{tokens.stylex-BoRZ3D8s.js → tokens.stylex-CJbIDPB9.js} +10 -3
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +6 -0
- 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-
|
|
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,
|
|
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:
|
|
12
|
-
string:
|
|
13
|
-
comment:
|
|
14
|
-
number:
|
|
15
|
-
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: ${
|
|
40
|
-
--diffs-header-font-family: ${
|
|
41
|
-
--diffs-font-size: ${
|
|
42
|
-
--diffs-line-height: ${
|
|
43
|
-
--diffs-gap-inline: ${
|
|
44
|
-
--diffs-gap-block: ${
|
|
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: ${
|
|
58
|
-
font-size: ${
|
|
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: ${
|
|
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: ${
|
|
67
|
-
padding-inline: ${
|
|
66
|
+
padding-block: ${a.sm};
|
|
67
|
+
padding-inline: ${a.md};
|
|
68
68
|
border-bottom: 1px solid ${i.line};
|
|
69
|
-
font-size: ${
|
|
70
|
-
line-height: ${
|
|
71
|
-
font-weight: ${
|
|
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: ${
|
|
81
|
-
font-size: ${
|
|
82
|
-
--trees-font-family-override: ${
|
|
83
|
-
--trees-font-size-override: ${
|
|
84
|
-
--trees-font-weight-regular-override: ${
|
|
85
|
-
--trees-font-weight-semibold-override: ${
|
|
86
|
-
--trees-search-font-weight-override: ${
|
|
87
|
-
--trees-padding-inline-override: ${
|
|
88
|
-
--trees-item-padding-x-override: ${
|
|
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
|
-
${
|
|
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-
|
|
2
|
-
import { l as t } from "./src-
|
|
3
|
-
import {
|
|
4
|
-
import { r } from "./pierre-theme-
|
|
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";
|