@mechane-ai/elements 0.10.0 → 0.12.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.
- package/README.md +8 -4
- package/dist/ai.js +56 -41
- package/dist/{categorical-values-DLRE4EEW.js → categorical-values-CTrHn9jH.js} +2 -2
- package/dist/{chart-frame-et6f6Vhg.js → chart-frame-38ES6kwK.js} +4 -4
- package/dist/{chart-input-CdLkFomi.js → chart-input-C9fu7f1Q.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +3 -3
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +17 -16
- package/dist/charts.js +1 -1
- package/dist/{code-block-D77maJBB.js → code-block-BjV2EFZS.js} +2 -2
- package/dist/collections.js +376 -291
- 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-BpSZeTNK.js → content-link-C460m-O7.js} +1 -1
- package/dist/content.js +3 -4
- package/dist/elements.css +251 -128
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +22 -23
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +223 -237
- package/dist/navigation/commands.js +3 -3
- package/dist/overlays.js +1 -1
- package/dist/packages/ai/src/conversation.d.ts +14 -2
- package/dist/packages/ai/src/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -2
- package/dist/packages/collections/src/collection-controls.d.ts +1 -1
- package/dist/packages/collections/src/data-table.d.ts +5 -4
- package/dist/packages/collections/src/index.d.ts +2 -1
- package/dist/packages/collections/src/inspector.d.ts +6 -3
- package/dist/packages/core/src/actions.d.ts +5 -8
- package/dist/packages/core/src/agent-avatar-glyphs.d.ts +1 -1
- package/dist/packages/feedback/src/control-placeholders.d.ts +16 -0
- package/dist/packages/feedback/src/index.d.ts +2 -0
- package/dist/packages/forms/src/field-styles.d.ts +2 -74
- package/dist/packages/forms/src/form-actions.d.ts +11 -0
- package/dist/packages/forms/src/form-controls.d.ts +1 -1
- package/dist/packages/forms/src/forms.d.ts +3 -3
- package/dist/packages/forms/src/index.d.ts +2 -0
- package/dist/packages/forms/src/select.d.ts +2 -2
- package/dist/packages/forms/src/selection-styles.d.ts +0 -13
- package/dist/packages/foundations/src/control-styles.d.ts +101 -0
- package/dist/packages/foundations/src/style-composition.d.ts +0 -2
- package/dist/packages/foundations/src/tokens.stylex.d.ts +8 -2
- package/dist/packages/layout/src/frame.stylex.d.ts +0 -1
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/page-content.d.ts +5 -0
- package/dist/packages/layout/src/page-toolbar.d.ts +1 -1
- package/dist/packages/layout/src/sidebar.d.ts +3 -3
- package/dist/{pierre-diff--zsiHCCB.js → pierre-diff-sUAU-xeL.js} +1 -1
- package/dist/{pierre-theme-D9hnHv3Z.js → pierre-theme-CBAncKdH.js} +1 -1
- package/dist/{pierre-tree-BFxEuxwb.js → pierre-tree-DKN2eGlZ.js} +3 -3
- package/dist/{src-sU9b0oZW.js → src-3gzujMhN.js} +861 -319
- package/dist/{src-CBspCKfO.js → src-CI6KtN2w.js} +366 -307
- package/dist/{src-Cs0dRc4X.js → src-CVlgjAlw.js} +1 -1
- package/dist/src-DOzle5d4.js +1199 -0
- package/dist/tokens.js +38 -32
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +61 -53
- package/dist/src-Be7NLG8c.js +0 -1242
package/dist/tokens.js
CHANGED
|
@@ -85,30 +85,30 @@ var e = {
|
|
|
85
85
|
identity24: "var(--x9u8ejr)",
|
|
86
86
|
__varGroupHash__: "x6mvf7n"
|
|
87
87
|
}, a = {
|
|
88
|
-
identity1: "#
|
|
89
|
-
identity2: "#
|
|
90
|
-
identity3: "#
|
|
91
|
-
identity4: "#
|
|
92
|
-
identity5: "#
|
|
93
|
-
identity6: "#
|
|
94
|
-
identity7: "#
|
|
95
|
-
identity8: "#
|
|
96
|
-
identity9: "#
|
|
97
|
-
identity10: "#
|
|
98
|
-
identity11: "#
|
|
99
|
-
identity12: "#
|
|
100
|
-
identity13: "#
|
|
101
|
-
identity14: "#
|
|
102
|
-
identity15: "#
|
|
103
|
-
identity16: "#
|
|
104
|
-
identity17: "#
|
|
105
|
-
identity18: "#
|
|
106
|
-
identity19: "#
|
|
107
|
-
identity20: "#
|
|
108
|
-
identity21: "#
|
|
109
|
-
identity22: "#
|
|
110
|
-
identity23: "#
|
|
111
|
-
identity24: "#
|
|
88
|
+
identity1: "#f07d75",
|
|
89
|
+
identity2: "#f09a75",
|
|
90
|
+
identity3: "#f07598",
|
|
91
|
+
identity4: "#f075bb",
|
|
92
|
+
identity5: "#f075e6",
|
|
93
|
+
identity6: "#d375f0",
|
|
94
|
+
identity7: "#b375f0",
|
|
95
|
+
identity8: "#9275f0",
|
|
96
|
+
identity9: "#7575f0",
|
|
97
|
+
identity10: "#7596f0",
|
|
98
|
+
identity11: "#75b3f0",
|
|
99
|
+
identity12: "#75cff0",
|
|
100
|
+
identity13: "#75e8f0",
|
|
101
|
+
identity14: "#75f0e3",
|
|
102
|
+
identity15: "#75f0cd",
|
|
103
|
+
identity16: "#75f0b5",
|
|
104
|
+
identity17: "#75f09c",
|
|
105
|
+
identity18: "#75f080",
|
|
106
|
+
identity19: "#8cf075",
|
|
107
|
+
identity20: "#b0f075",
|
|
108
|
+
identity21: "#d7f075",
|
|
109
|
+
identity22: "#f0e175",
|
|
110
|
+
identity23: "#f0c375",
|
|
111
|
+
identity24: "#f0a875"
|
|
112
112
|
}, o = {
|
|
113
113
|
keyword: "var(--x1t6rq9)",
|
|
114
114
|
string: "var(--x1pa6z6o)",
|
|
@@ -155,8 +155,7 @@ var e = {
|
|
|
155
155
|
headingTracking: "var(--xgto76l)",
|
|
156
156
|
__varGroupHash__: "xledmcz"
|
|
157
157
|
}, u = {
|
|
158
|
-
|
|
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,39 @@ 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
|
-
},
|
|
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
|
-
},
|
|
182
|
+
}, m = {
|
|
179
183
|
popup: "var(--xfou7vv)",
|
|
184
|
+
selection: "var(--x1qr3jy8)",
|
|
180
185
|
__varGroupHash__: "x1e8hs47"
|
|
181
|
-
},
|
|
186
|
+
}, h = { popup: "0 4px 16px #00000066" }, g = {
|
|
187
|
+
sticky: "1",
|
|
182
188
|
backdrop: "20",
|
|
183
189
|
dialog: "21",
|
|
184
190
|
popup: "30",
|
|
185
191
|
tooltip: "40",
|
|
186
192
|
skipLink: "50"
|
|
187
|
-
},
|
|
193
|
+
}, _ = {
|
|
188
194
|
rowHeight: 48,
|
|
189
195
|
headerHeight: 36
|
|
190
|
-
},
|
|
196
|
+
}, v = {
|
|
191
197
|
coarsePointer: "@media (pointer: coarse)",
|
|
192
198
|
hoverPointer: "@media (hover: hover) and (pointer: fine)",
|
|
193
199
|
compactText: "@media (max-width:639px)",
|
|
194
200
|
compactTable: "@media (max-width:600px)",
|
|
195
201
|
reducedMotion: "@media (prefers-reduced-motion: reduce)"
|
|
196
202
|
};
|
|
197
|
-
export { i as avatarColors, n as chartColors, e as colors,
|
|
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 };
|
package/package.json
CHANGED
|
@@ -65,57 +65,57 @@ export const darkChartColors = stylex.defineConsts({
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
export const avatarColors = stylex.defineVars({
|
|
68
|
-
identity1: '#
|
|
69
|
-
identity2: '#
|
|
70
|
-
identity3: '#
|
|
71
|
-
identity4: '#
|
|
72
|
-
identity5: '#
|
|
73
|
-
identity6: '#
|
|
74
|
-
identity7: '#
|
|
75
|
-
identity8: '#
|
|
76
|
-
identity9: '#
|
|
77
|
-
identity10: '#
|
|
78
|
-
identity11: '#
|
|
79
|
-
identity12: '#
|
|
80
|
-
identity13: '#
|
|
81
|
-
identity14: '#
|
|
82
|
-
identity15: '#
|
|
83
|
-
identity16: '#
|
|
84
|
-
identity17: '#
|
|
85
|
-
identity18: '#
|
|
86
|
-
identity19: '#
|
|
87
|
-
identity20: '#
|
|
88
|
-
identity21: '#
|
|
89
|
-
identity22: '#
|
|
90
|
-
identity23: '#
|
|
91
|
-
identity24: '#
|
|
68
|
+
identity1: '#e3291c',
|
|
69
|
+
identity2: '#e1571c',
|
|
70
|
+
identity3: '#e31c54',
|
|
71
|
+
identity4: '#e31c8d',
|
|
72
|
+
identity5: '#e31cd2',
|
|
73
|
+
identity6: '#b51ce3',
|
|
74
|
+
identity7: '#801ce3',
|
|
75
|
+
identity8: '#4a1ce3',
|
|
76
|
+
identity9: '#1c1ce3',
|
|
77
|
+
identity10: '#1c51e3',
|
|
78
|
+
identity11: '#1c80e3',
|
|
79
|
+
identity12: '#178db8',
|
|
80
|
+
identity13: '#13919a',
|
|
81
|
+
identity14: '#129487',
|
|
82
|
+
identity15: '#139671',
|
|
83
|
+
identity16: '#139858',
|
|
84
|
+
identity17: '#13983d',
|
|
85
|
+
identity18: '#13981e',
|
|
86
|
+
identity19: '#2b9813',
|
|
87
|
+
identity20: '#519412',
|
|
88
|
+
identity21: '#748d11',
|
|
89
|
+
identity22: '#948412',
|
|
90
|
+
identity23: '#b17816',
|
|
91
|
+
identity24: '#d1661a',
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
export const darkAvatarColors = stylex.defineConsts({
|
|
95
|
-
identity1: '#
|
|
96
|
-
identity2: '#
|
|
97
|
-
identity3: '#
|
|
98
|
-
identity4: '#
|
|
99
|
-
identity5: '#
|
|
100
|
-
identity6: '#
|
|
101
|
-
identity7: '#
|
|
102
|
-
identity8: '#
|
|
103
|
-
identity9: '#
|
|
104
|
-
identity10: '#
|
|
105
|
-
identity11: '#
|
|
106
|
-
identity12: '#
|
|
107
|
-
identity13: '#
|
|
108
|
-
identity14: '#
|
|
109
|
-
identity15: '#
|
|
110
|
-
identity16: '#
|
|
111
|
-
identity17: '#
|
|
112
|
-
identity18: '#
|
|
113
|
-
identity19: '#
|
|
114
|
-
identity20: '#
|
|
115
|
-
identity21: '#
|
|
116
|
-
identity22: '#
|
|
117
|
-
identity23: '#
|
|
118
|
-
identity24: '#
|
|
95
|
+
identity1: '#f07d75',
|
|
96
|
+
identity2: '#f09a75',
|
|
97
|
+
identity3: '#f07598',
|
|
98
|
+
identity4: '#f075bb',
|
|
99
|
+
identity5: '#f075e6',
|
|
100
|
+
identity6: '#d375f0',
|
|
101
|
+
identity7: '#b375f0',
|
|
102
|
+
identity8: '#9275f0',
|
|
103
|
+
identity9: '#7575f0',
|
|
104
|
+
identity10: '#7596f0',
|
|
105
|
+
identity11: '#75b3f0',
|
|
106
|
+
identity12: '#75cff0',
|
|
107
|
+
identity13: '#75e8f0',
|
|
108
|
+
identity14: '#75f0e3',
|
|
109
|
+
identity15: '#75f0cd',
|
|
110
|
+
identity16: '#75f0b5',
|
|
111
|
+
identity17: '#75f09c',
|
|
112
|
+
identity18: '#75f080',
|
|
113
|
+
identity19: '#8cf075',
|
|
114
|
+
identity20: '#b0f075',
|
|
115
|
+
identity21: '#d7f075',
|
|
116
|
+
identity22: '#f0e175',
|
|
117
|
+
identity23: '#f0c375',
|
|
118
|
+
identity24: '#f0a875',
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
export const syntaxColors = stylex.defineVars({
|
|
@@ -169,17 +169,18 @@ export const typography = stylex.defineVars({
|
|
|
169
169
|
});
|
|
170
170
|
|
|
171
171
|
export const controls = stylex.defineVars({
|
|
172
|
-
|
|
173
|
-
mdHeight: '36px',
|
|
172
|
+
height: '32px',
|
|
174
173
|
coarseTarget: '44px',
|
|
175
174
|
iconSize: '16px',
|
|
176
175
|
paddingInline: '10px',
|
|
177
|
-
paddingBlock: '
|
|
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,18 @@ 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 shadows = stylex.defineVars({ popup: '0 4px 16px #00000014', selection: 'inset 2px 0 currentColor' });
|
|
193
194
|
|
|
194
195
|
export const darkShadows = stylex.defineConsts({ popup: '0 4px 16px #00000066' });
|
|
195
196
|
|
|
196
|
-
export const layers = stylex.defineConsts({
|
|
197
|
+
export const layers = stylex.defineConsts({
|
|
198
|
+
sticky: '1',
|
|
199
|
+
backdrop: '20',
|
|
200
|
+
dialog: '21',
|
|
201
|
+
popup: '30',
|
|
202
|
+
tooltip: '40',
|
|
203
|
+
skipLink: '50',
|
|
204
|
+
});
|
|
197
205
|
|
|
198
206
|
export const tableGeometry = stylex.defineConsts({ rowHeight: 48, headerHeight: 36 });
|
|
199
207
|
|