@mechane-ai/elements 0.0.0-stage → 0.4.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/LICENSE +202 -0
- package/NOTICE +32 -0
- package/README.md +119 -2
- package/dist/accessibility-C-aIZ1Yx.js +15 -0
- package/dist/ai.js +323 -0
- package/dist/assets/stylex.css +2664 -0
- package/dist/categorical-values-cMX7Mykq.js +58 -0
- package/dist/chart-frame-bX0VLC_W.js +152 -0
- package/dist/chart-input-qnM44oen.js +21 -0
- package/dist/charts/cartesian.js +1040 -0
- package/dist/charts/distribution.js +610 -0
- package/dist/charts/graph.js +231 -0
- package/dist/charts/hierarchy.js +109 -0
- package/dist/charts/matrix.js +439 -0
- package/dist/charts/timeline.js +198 -0
- package/dist/charts.js +1 -0
- package/dist/code-block-BiMcfdlB.js +175 -0
- package/dist/collections.js +466 -0
- package/dist/content/code.js +1 -0
- package/dist/content/diff.js +96 -0
- package/dist/content/link.js +1 -0
- package/dist/content/markdown.js +155 -0
- package/dist/content/tree.js +77 -0
- package/dist/content-link-Bm-Td5wm.js +26 -0
- package/dist/content.js +318 -0
- package/dist/feedback.js +1 -0
- package/dist/forms/dates.js +168 -0
- package/dist/forms.js +1 -0
- package/dist/index.js +1 -0
- package/dist/layout.js +379 -0
- package/dist/navigation/commands.js +80 -0
- package/dist/navigation-yxK3iQXo.js +39 -0
- package/dist/navigation.js +58 -0
- package/dist/overlays.js +1 -0
- package/dist/packages/ai/src/approval.d.ts +29 -0
- package/dist/packages/ai/src/conversation.d.ts +34 -0
- package/dist/packages/ai/src/index.d.ts +10 -0
- package/dist/packages/ai/src/message.d.ts +19 -0
- package/dist/packages/ai/src/prompt-input.d.ts +25 -0
- package/dist/packages/ai/src/sources.d.ts +17 -0
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +24 -0
- package/dist/packages/charts/src/cartesian/breakdown-bar.d.ts +12 -0
- package/dist/packages/charts/src/cartesian/index.d.ts +12 -0
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +37 -0
- package/dist/packages/charts/src/cartesian/sparkline.d.ts +11 -0
- package/dist/packages/charts/src/cartesian/time-series-data.d.ts +54 -0
- package/dist/packages/charts/src/cartesian/time-series-line.d.ts +9 -0
- package/dist/packages/charts/src/cartesian/time-series.d.ts +29 -0
- package/dist/packages/charts/src/categorical-values.d.ts +24 -0
- package/dist/packages/charts/src/chart-frame.d.ts +34 -0
- package/dist/packages/charts/src/chart-input.d.ts +10 -0
- package/dist/packages/charts/src/chart-theme.d.ts +48 -0
- package/dist/packages/charts/src/distribution/distribution-input.d.ts +14 -0
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +135 -0
- package/dist/packages/charts/src/distribution/ecdf.d.ts +23 -0
- package/dist/packages/charts/src/distribution/histogram.d.ts +26 -0
- package/dist/packages/charts/src/distribution/index.d.ts +8 -0
- package/dist/packages/charts/src/distribution/interval-plot.d.ts +24 -0
- package/dist/packages/charts/src/distribution/ranked-bars.d.ts +22 -0
- package/dist/packages/charts/src/graph/index.d.ts +2 -0
- package/dist/packages/charts/src/graph/relation-graph.d.ts +45 -0
- package/dist/packages/charts/src/hierarchy/index.d.ts +2 -0
- package/dist/packages/charts/src/hierarchy/treemap.d.ts +12 -0
- package/dist/packages/charts/src/index.d.ts +4 -0
- package/dist/packages/charts/src/matrix/color-legend.d.ts +7 -0
- package/dist/packages/charts/src/matrix/heatmap-scale.d.ts +8 -0
- package/dist/packages/charts/src/matrix/index.d.ts +7 -0
- package/dist/packages/charts/src/matrix/matrix.d.ts +34 -0
- package/dist/packages/charts/src/matrix/token-heatmap.d.ts +20 -0
- package/dist/packages/charts/src/plot-width.d.ts +5 -0
- package/dist/packages/charts/src/timeline/index.d.ts +2 -0
- package/dist/packages/charts/src/timeline/waterfall.d.ts +34 -0
- package/dist/packages/collections/src/collection-controls.d.ts +41 -0
- package/dist/packages/collections/src/data-table.d.ts +49 -0
- package/dist/packages/collections/src/index.d.ts +10 -0
- package/dist/packages/collections/src/inspector.d.ts +16 -0
- package/dist/packages/collections/src/list-footer.d.ts +6 -0
- package/dist/packages/collections/src/metrics.d.ts +9 -0
- package/dist/packages/collections/src/table.d.ts +17 -0
- package/dist/packages/collections/src/timestamp.d.ts +7 -0
- package/dist/packages/content/src/code/code-block.d.ts +22 -0
- package/dist/packages/content/src/code/index.d.ts +2 -0
- package/dist/packages/content/src/code/use-highlighted-code.d.ts +9 -0
- package/dist/packages/content/src/content-link.d.ts +8 -0
- package/dist/packages/content/src/diff/diff-source.d.ts +32 -0
- package/dist/packages/content/src/diff/diff-viewer.d.ts +3 -0
- package/dist/packages/content/src/diff/index.d.ts +2 -0
- package/dist/packages/content/src/diff/pierre-diff.d.ts +14 -0
- package/dist/packages/content/src/index.d.ts +8 -0
- package/dist/packages/content/src/json-viewer.d.ts +11 -0
- package/dist/packages/content/src/link.d.ts +2 -0
- package/dist/packages/content/src/log-viewer.d.ts +9 -0
- package/dist/packages/content/src/markdown/index.d.ts +2 -0
- package/dist/packages/content/src/markdown/markdown.d.ts +7 -0
- package/dist/packages/content/src/pierre-theme.d.ts +36 -0
- package/dist/packages/content/src/stack-trace.d.ts +16 -0
- package/dist/packages/content/src/trace.d.ts +35 -0
- package/dist/packages/content/src/tree/file-tree-types.d.ts +12 -0
- package/dist/packages/content/src/tree/file-tree.d.ts +3 -0
- package/dist/packages/content/src/tree/index.d.ts +2 -0
- package/dist/packages/content/src/tree/pierre-tree.d.ts +3 -0
- package/dist/packages/core/src/actions.d.ts +31 -0
- package/dist/packages/core/src/avatar.d.ts +10 -0
- package/dist/packages/core/src/copy-value.d.ts +9 -0
- package/dist/packages/core/src/disclosure.d.ts +33 -0
- package/dist/packages/core/src/index.d.ts +7 -0
- package/dist/packages/core/src/surfaces.d.ts +18 -0
- package/dist/packages/core/src/text.d.ts +30 -0
- package/dist/packages/feedback/src/feedback.d.ts +11 -0
- package/dist/packages/feedback/src/index.d.ts +7 -0
- package/dist/packages/feedback/src/loading.d.ts +7 -0
- package/dist/packages/feedback/src/progress.d.ts +10 -0
- package/dist/packages/feedback/src/skeleton.d.ts +18 -0
- package/dist/packages/feedback/src/toast.d.ts +28 -0
- package/dist/packages/forms/src/combobox.d.ts +81 -0
- package/dist/packages/forms/src/dates/calendar.d.ts +32 -0
- package/dist/packages/forms/src/dates/date-range-picker.d.ts +16 -0
- package/dist/packages/forms/src/dates/index.d.ts +4 -0
- package/dist/packages/forms/src/field-styles.d.ts +66 -0
- package/dist/packages/forms/src/form-controls.d.ts +81 -0
- package/dist/packages/forms/src/forms.d.ts +32 -0
- package/dist/packages/forms/src/index.d.ts +7 -0
- package/dist/packages/forms/src/select.d.ts +44 -0
- package/dist/packages/forms/src/selection-styles.d.ts +110 -0
- package/dist/packages/forms/src/selection.d.ts +57 -0
- package/dist/packages/forms/src/settings-row.d.ts +8 -0
- package/dist/packages/foundations/src/accessibility.d.ts +14 -0
- package/dist/packages/foundations/src/control-state.d.ts +67 -0
- package/dist/packages/foundations/src/overlay-styles.d.ts +46 -0
- package/dist/packages/foundations/src/popup-styles.d.ts +84 -0
- package/dist/packages/foundations/src/style-composition.d.ts +22 -0
- package/dist/packages/foundations/src/theme.d.ts +16 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +143 -0
- package/dist/packages/layout/src/app-shell.d.ts +9 -0
- package/dist/packages/layout/src/detail-page.d.ts +6 -0
- package/dist/packages/layout/src/frame.stylex.d.ts +23 -0
- package/dist/packages/layout/src/index.d.ts +6 -0
- package/dist/packages/layout/src/page-toolbar.d.ts +14 -0
- package/dist/packages/layout/src/resizable.d.ts +27 -0
- package/dist/packages/layout/src/sidebar.d.ts +46 -0
- package/dist/packages/navigation/src/commands/command.d.ts +37 -0
- package/dist/packages/navigation/src/commands/index.d.ts +2 -0
- package/dist/packages/navigation/src/index.d.ts +3 -0
- package/dist/packages/navigation/src/navigation.d.ts +24 -0
- package/dist/packages/navigation/src/skip-link.d.ts +6 -0
- package/dist/packages/navigation/src/tabs.d.ts +19 -0
- package/dist/packages/overlays/src/alert-dialog.d.ts +18 -0
- package/dist/packages/overlays/src/dialog.d.ts +27 -0
- package/dist/packages/overlays/src/drawer.d.ts +33 -0
- package/dist/packages/overlays/src/index.d.ts +7 -0
- package/dist/packages/overlays/src/menu.d.ts +51 -0
- package/dist/packages/overlays/src/popover.d.ts +24 -0
- package/dist/packages/overlays/src/preview.d.ts +17 -0
- package/dist/packages/overlays/src/tooltip.d.ts +18 -0
- package/dist/pierre-diff-CZdzgiYm.js +66 -0
- package/dist/pierre-theme-BpESNIsV.js +96 -0
- package/dist/pierre-tree-qZVvI5c1.js +106 -0
- package/dist/plot-width--OgdohB5.js +18 -0
- package/dist/popup-styles-CvtZDE2t.js +135 -0
- package/dist/src-BfvOOeA3.js +272 -0
- package/dist/src-CbYaLvhD.js +671 -0
- package/dist/src-CfDf8TY8.js +466 -0
- package/dist/src-CvpS9XIR.js +1077 -0
- package/dist/style-composition-uYlczSsB.js +9 -0
- package/dist/theme.js +7 -0
- package/dist/tokens.js +138 -0
- package/package.json +148 -3
- package/packages/foundations/src/tokens.stylex.ts +145 -0
- package/styles.css +2 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { mergeProps as e } from "@base-ui/react/merge-props";
|
|
2
|
+
// packages/foundations/src/style-composition.ts
|
|
3
|
+
function t({ className: t, style: n, styles: r }) {
|
|
4
|
+
return {
|
|
5
|
+
className: (n) => typeof t == "function" ? e(r, { className: t(n) }).className : e(r, { className: t }).className,
|
|
6
|
+
style: (t) => typeof n == "function" ? e(r, { style: n(t) }).style : e(r, { style: n }).style
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export { t };
|
package/dist/theme.js
ADDED
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import "@stylexjs/stylex";
|
|
2
|
+
// packages/foundations/src/tokens.stylex.ts
|
|
3
|
+
var e = {
|
|
4
|
+
canvas: "var(--x7wqmh8)",
|
|
5
|
+
surface: "var(--x13kja51)",
|
|
6
|
+
ink: "var(--x169lqhw)",
|
|
7
|
+
inkHover: "var(--x1umbgym)",
|
|
8
|
+
inverse: "var(--x1m6gvuh)",
|
|
9
|
+
muted: "var(--x24btp3)",
|
|
10
|
+
faint: "var(--x1x21x07)",
|
|
11
|
+
line: "var(--xe11pje)",
|
|
12
|
+
focus: "var(--xzqn2nu)",
|
|
13
|
+
accent: "var(--x1mu3en6)",
|
|
14
|
+
accentSoft: "var(--x197nfi7)",
|
|
15
|
+
warning: "var(--x17jbh5p)",
|
|
16
|
+
warningSoft: "var(--xpslqxl)",
|
|
17
|
+
danger: "var(--x5peq9z)",
|
|
18
|
+
dangerHover: "var(--xo9v4xm)",
|
|
19
|
+
dangerSoft: "var(--x1im53j)",
|
|
20
|
+
overlay: "var(--x1i8t5sg)",
|
|
21
|
+
__varGroupHash__: "xm90lv7"
|
|
22
|
+
}, t = {
|
|
23
|
+
canvas: "#191919",
|
|
24
|
+
surface: "#101010",
|
|
25
|
+
ink: "#f2f2f2",
|
|
26
|
+
inkHover: "#d6d6d6",
|
|
27
|
+
inverse: "#0a0a0a",
|
|
28
|
+
muted: "#b0b0b0",
|
|
29
|
+
faint: "#777777",
|
|
30
|
+
line: "#303030",
|
|
31
|
+
focus: "#79b3ff",
|
|
32
|
+
accent: "#8ed3b3",
|
|
33
|
+
accentSoft: "#152b22",
|
|
34
|
+
warning: "#edc479",
|
|
35
|
+
warningSoft: "#302511",
|
|
36
|
+
danger: "#f59696",
|
|
37
|
+
dangerHover: "#ffc3c3",
|
|
38
|
+
dangerSoft: "#321c1c",
|
|
39
|
+
overlay: "#00000099"
|
|
40
|
+
}, n = {
|
|
41
|
+
series1: "var(--x1nlt3ga)",
|
|
42
|
+
series2: "var(--x5yb4il)",
|
|
43
|
+
series3: "var(--x3s82iy)",
|
|
44
|
+
series4: "var(--x1t7wf97)",
|
|
45
|
+
series5: "var(--x13umt8e)",
|
|
46
|
+
series6: "var(--x1f0bn7f)",
|
|
47
|
+
negative: "var(--xiumgsg)",
|
|
48
|
+
positive: "var(--x1l35zjm)",
|
|
49
|
+
missing: "var(--x5dm89x)",
|
|
50
|
+
__varGroupHash__: "x102x4ow"
|
|
51
|
+
}, r = {
|
|
52
|
+
series1: "#86a9d3",
|
|
53
|
+
series2: "#83b69f",
|
|
54
|
+
series3: "#b49bce",
|
|
55
|
+
series4: "#cfad70",
|
|
56
|
+
series5: "#80bbc0",
|
|
57
|
+
series6: "#d39aad",
|
|
58
|
+
negative: "#e0929b",
|
|
59
|
+
positive: "#80add0",
|
|
60
|
+
missing: "#363636"
|
|
61
|
+
}, i = {
|
|
62
|
+
keyword: "var(--x1t6rq9)",
|
|
63
|
+
string: "var(--x1pa6z6o)",
|
|
64
|
+
comment: "var(--x4crkt3)",
|
|
65
|
+
number: "var(--x1ih6ezv)",
|
|
66
|
+
type: "var(--x1gibtqd)",
|
|
67
|
+
__varGroupHash__: "x181h4q1"
|
|
68
|
+
}, a = {
|
|
69
|
+
keyword: "#c4a1e5",
|
|
70
|
+
string: "#8ed3b3",
|
|
71
|
+
comment: "#a3a3a3",
|
|
72
|
+
number: "#edc479",
|
|
73
|
+
type: "#84bce3"
|
|
74
|
+
}, o = {
|
|
75
|
+
xxs: "var(--xjighox)",
|
|
76
|
+
xs: "var(--x1xijsos)",
|
|
77
|
+
sm: "var(--xxhyxt)",
|
|
78
|
+
md: "var(--x1drqizm)",
|
|
79
|
+
lg: "var(--x1qq5i99)",
|
|
80
|
+
xl: "var(--x1iwxfi2)",
|
|
81
|
+
xxl: "var(--x153fiic)",
|
|
82
|
+
__varGroupHash__: "xi13snk"
|
|
83
|
+
}, s = {
|
|
84
|
+
fontFamily: "var(--xax3y77)",
|
|
85
|
+
monoFamily: "var(--xntcpct)",
|
|
86
|
+
bodySize: "var(--x105xqs)",
|
|
87
|
+
bodyLineHeight: "var(--x1eh4a5a)",
|
|
88
|
+
multilineLineHeight: "var(--x1kk28mq)",
|
|
89
|
+
captionSize: "var(--xobsf79)",
|
|
90
|
+
captionLineHeight: "var(--xdvbmuj)",
|
|
91
|
+
inputSize: "var(--x1af0fv0)",
|
|
92
|
+
touchInputSize: "var(--x18ymnwu)",
|
|
93
|
+
sectionSize: "var(--xehpjyu)",
|
|
94
|
+
sectionLineHeight: "var(--x170noae)",
|
|
95
|
+
headingSize: "var(--x14wionz)",
|
|
96
|
+
headingLineHeight: "var(--x1o42vor)",
|
|
97
|
+
compactHeadingSize: "var(--x3ivco5)",
|
|
98
|
+
compactHeadingLineHeight: "var(--x1q14agh)",
|
|
99
|
+
headingTracking: "var(--xgto76l)",
|
|
100
|
+
__varGroupHash__: "xledmcz"
|
|
101
|
+
}, c = {
|
|
102
|
+
smHeight: "var(--x1hdxzrk)",
|
|
103
|
+
mdHeight: "var(--xymjgzc)",
|
|
104
|
+
coarseTarget: "var(--x6uufy4)",
|
|
105
|
+
iconSize: "var(--x1ud0cvw)",
|
|
106
|
+
paddingInline: "var(--xrzkwmd)",
|
|
107
|
+
paddingBlock: "var(--xjz2qh5)",
|
|
108
|
+
gap: "var(--x1z0o8cd)",
|
|
109
|
+
focusWidth: "var(--xxx3t85)",
|
|
110
|
+
disabledOpacity: "var(--x9ngs59)",
|
|
111
|
+
__varGroupHash__: "x1sjug0q"
|
|
112
|
+
}, l = {
|
|
113
|
+
sm: "var(--x1asdyoo)",
|
|
114
|
+
md: "var(--xz1oyae)",
|
|
115
|
+
__varGroupHash__: "x1i152zt"
|
|
116
|
+
}, u = {
|
|
117
|
+
duration: "var(--xjjzqp4)",
|
|
118
|
+
easing: "var(--x5xz5r2)",
|
|
119
|
+
drawerDuration: "var(--xrmqybo)",
|
|
120
|
+
drawerEasing: "var(--xumjr7l)",
|
|
121
|
+
__varGroupHash__: "xtoz1ri"
|
|
122
|
+
}, d = {
|
|
123
|
+
popup: "var(--xfou7vv)",
|
|
124
|
+
__varGroupHash__: "x1e8hs47"
|
|
125
|
+
}, f = { popup: "0 4px 16px #00000066" }, p = {
|
|
126
|
+
backdrop: "20",
|
|
127
|
+
dialog: "21",
|
|
128
|
+
popup: "30",
|
|
129
|
+
tooltip: "40",
|
|
130
|
+
skipLink: "50"
|
|
131
|
+
}, m = {
|
|
132
|
+
coarsePointer: "@media (pointer: coarse)",
|
|
133
|
+
hoverPointer: "@media (hover: hover) and (pointer: fine)",
|
|
134
|
+
compactText: "@media (max-width:639px)",
|
|
135
|
+
compactTable: "@media (max-width:600px)",
|
|
136
|
+
reducedMotion: "@media (prefers-reduced-motion: reduce)"
|
|
137
|
+
};
|
|
138
|
+
export { n as chartColors, e as colors, m as conditions, c as controls, r as darkChartColors, t as darkColors, f as darkShadows, a as darkSyntaxColors, p as layers, u as motion, l as radii, d as shadows, o as spacing, i as syntaxColors, s as typography };
|
package/package.json
CHANGED
|
@@ -1,6 +1,151 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mechane-ai/elements",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/mechane-ai/mechane.git",
|
|
9
|
+
"directory": "workspaces/core/packages/browser/elements"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"packages/foundations/src/tokens.stylex.ts",
|
|
14
|
+
"styles.css",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"NOTICE"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"**/*.css"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/packages/core/src/index.d.ts",
|
|
26
|
+
"import": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./forms": {
|
|
29
|
+
"types": "./dist/packages/forms/src/index.d.ts",
|
|
30
|
+
"import": "./dist/forms.js"
|
|
31
|
+
},
|
|
32
|
+
"./forms/dates": {
|
|
33
|
+
"types": "./dist/packages/forms/src/dates/index.d.ts",
|
|
34
|
+
"import": "./dist/forms/dates.js"
|
|
35
|
+
},
|
|
36
|
+
"./overlays": {
|
|
37
|
+
"types": "./dist/packages/overlays/src/index.d.ts",
|
|
38
|
+
"import": "./dist/overlays.js"
|
|
39
|
+
},
|
|
40
|
+
"./feedback": {
|
|
41
|
+
"types": "./dist/packages/feedback/src/index.d.ts",
|
|
42
|
+
"import": "./dist/feedback.js"
|
|
43
|
+
},
|
|
44
|
+
"./navigation": {
|
|
45
|
+
"types": "./dist/packages/navigation/src/index.d.ts",
|
|
46
|
+
"import": "./dist/navigation.js"
|
|
47
|
+
},
|
|
48
|
+
"./navigation/commands": {
|
|
49
|
+
"types": "./dist/packages/navigation/src/commands/index.d.ts",
|
|
50
|
+
"import": "./dist/navigation/commands.js"
|
|
51
|
+
},
|
|
52
|
+
"./layout": {
|
|
53
|
+
"types": "./dist/packages/layout/src/index.d.ts",
|
|
54
|
+
"import": "./dist/layout.js"
|
|
55
|
+
},
|
|
56
|
+
"./collections": {
|
|
57
|
+
"types": "./dist/packages/collections/src/index.d.ts",
|
|
58
|
+
"import": "./dist/collections.js"
|
|
59
|
+
},
|
|
60
|
+
"./content": {
|
|
61
|
+
"types": "./dist/packages/content/src/index.d.ts",
|
|
62
|
+
"import": "./dist/content.js"
|
|
63
|
+
},
|
|
64
|
+
"./content/link": {
|
|
65
|
+
"types": "./dist/packages/content/src/link.d.ts",
|
|
66
|
+
"import": "./dist/content/link.js"
|
|
67
|
+
},
|
|
68
|
+
"./content/markdown": {
|
|
69
|
+
"types": "./dist/packages/content/src/markdown/index.d.ts",
|
|
70
|
+
"import": "./dist/content/markdown.js"
|
|
71
|
+
},
|
|
72
|
+
"./content/code": {
|
|
73
|
+
"types": "./dist/packages/content/src/code/index.d.ts",
|
|
74
|
+
"import": "./dist/content/code.js"
|
|
75
|
+
},
|
|
76
|
+
"./content/diff": {
|
|
77
|
+
"types": "./dist/packages/content/src/diff/index.d.ts",
|
|
78
|
+
"import": "./dist/content/diff.js"
|
|
79
|
+
},
|
|
80
|
+
"./content/tree": {
|
|
81
|
+
"types": "./dist/packages/content/src/tree/index.d.ts",
|
|
82
|
+
"import": "./dist/content/tree.js"
|
|
83
|
+
},
|
|
84
|
+
"./ai": {
|
|
85
|
+
"types": "./dist/packages/ai/src/index.d.ts",
|
|
86
|
+
"import": "./dist/ai.js"
|
|
87
|
+
},
|
|
88
|
+
"./charts": {
|
|
89
|
+
"types": "./dist/packages/charts/src/index.d.ts",
|
|
90
|
+
"import": "./dist/charts.js"
|
|
91
|
+
},
|
|
92
|
+
"./charts/cartesian": {
|
|
93
|
+
"types": "./dist/packages/charts/src/cartesian/index.d.ts",
|
|
94
|
+
"import": "./dist/charts/cartesian.js"
|
|
95
|
+
},
|
|
96
|
+
"./charts/distribution": {
|
|
97
|
+
"types": "./dist/packages/charts/src/distribution/index.d.ts",
|
|
98
|
+
"import": "./dist/charts/distribution.js"
|
|
99
|
+
},
|
|
100
|
+
"./charts/matrix": {
|
|
101
|
+
"types": "./dist/packages/charts/src/matrix/index.d.ts",
|
|
102
|
+
"import": "./dist/charts/matrix.js"
|
|
103
|
+
},
|
|
104
|
+
"./charts/graph": {
|
|
105
|
+
"types": "./dist/packages/charts/src/graph/index.d.ts",
|
|
106
|
+
"import": "./dist/charts/graph.js"
|
|
107
|
+
},
|
|
108
|
+
"./charts/hierarchy": {
|
|
109
|
+
"types": "./dist/packages/charts/src/hierarchy/index.d.ts",
|
|
110
|
+
"import": "./dist/charts/hierarchy.js"
|
|
111
|
+
},
|
|
112
|
+
"./charts/timeline": {
|
|
113
|
+
"types": "./dist/packages/charts/src/timeline/index.d.ts",
|
|
114
|
+
"import": "./dist/charts/timeline.js"
|
|
115
|
+
},
|
|
116
|
+
"./theme": {
|
|
117
|
+
"types": "./dist/packages/foundations/src/theme.d.ts",
|
|
118
|
+
"import": "./dist/theme.js"
|
|
119
|
+
},
|
|
120
|
+
"./tokens": {
|
|
121
|
+
"types": "./dist/packages/foundations/src/tokens.stylex.d.ts",
|
|
122
|
+
"import": "./dist/tokens.js"
|
|
123
|
+
},
|
|
124
|
+
"./tokens.stylex": "./packages/foundations/src/tokens.stylex.ts",
|
|
125
|
+
"./styles.css": "./styles.css"
|
|
126
|
+
},
|
|
127
|
+
"dependencies": {
|
|
128
|
+
"@base-ui/react": "1.9.0",
|
|
129
|
+
"@daypicker/react": "10.0.2",
|
|
130
|
+
"@pierre/diffs": "1.6.4",
|
|
131
|
+
"@pierre/highlights": "0.4.0",
|
|
132
|
+
"@pierre/theme": "1.1.0",
|
|
133
|
+
"@pierre/trees": "1.0.0-beta.6",
|
|
134
|
+
"@shadcn/react": "0.3.1",
|
|
135
|
+
"@stylexjs/stylex": "0.19.1",
|
|
136
|
+
"@tanstack/react-hotkeys": "0.22.0",
|
|
137
|
+
"@tanstack/react-table": "9.3.1",
|
|
138
|
+
"@tanstack/react-virtual": "3.14.26",
|
|
139
|
+
"@visx/hierarchy": "4.0.0",
|
|
140
|
+
"@visx/scale": "4.0.0",
|
|
141
|
+
"@visx/shape": "4.0.0",
|
|
142
|
+
"lucide-react": "1.66.0",
|
|
143
|
+
"react-resizable-panels": "4.18.0",
|
|
144
|
+
"streamdown": "2.7.1",
|
|
145
|
+
"strip-ansi": "7.2.0"
|
|
146
|
+
},
|
|
147
|
+
"peerDependencies": {
|
|
148
|
+
"react": "^19.3.1",
|
|
149
|
+
"react-dom": "^19.3.1"
|
|
150
|
+
}
|
|
6
151
|
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
|
|
3
|
+
export const colors = stylex.defineVars({
|
|
4
|
+
canvas: '#f5f5f5',
|
|
5
|
+
surface: '#ffffff',
|
|
6
|
+
ink: '#0a0a0a',
|
|
7
|
+
inkHover: '#333333',
|
|
8
|
+
inverse: '#ffffff',
|
|
9
|
+
muted: '#545454',
|
|
10
|
+
faint: '#9d9d9d',
|
|
11
|
+
line: '#ebebeb',
|
|
12
|
+
focus: '#0a69e2',
|
|
13
|
+
accent: '#21684f',
|
|
14
|
+
accentSoft: '#eef6f1',
|
|
15
|
+
warning: '#875900',
|
|
16
|
+
warningSoft: '#fff7e6',
|
|
17
|
+
danger: '#b13838',
|
|
18
|
+
dangerHover: '#922d2d',
|
|
19
|
+
dangerSoft: '#fff1f1',
|
|
20
|
+
overlay: '#00000066',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const darkColors = stylex.defineConsts({
|
|
24
|
+
canvas: '#191919',
|
|
25
|
+
surface: '#101010',
|
|
26
|
+
ink: '#f2f2f2',
|
|
27
|
+
inkHover: '#d6d6d6',
|
|
28
|
+
inverse: '#0a0a0a',
|
|
29
|
+
muted: '#b0b0b0',
|
|
30
|
+
faint: '#777777',
|
|
31
|
+
line: '#303030',
|
|
32
|
+
focus: '#79b3ff',
|
|
33
|
+
accent: '#8ed3b3',
|
|
34
|
+
accentSoft: '#152b22',
|
|
35
|
+
warning: '#edc479',
|
|
36
|
+
warningSoft: '#302511',
|
|
37
|
+
danger: '#f59696',
|
|
38
|
+
dangerHover: '#ffc3c3',
|
|
39
|
+
dangerSoft: '#321c1c',
|
|
40
|
+
overlay: '#00000099',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const chartColors = stylex.defineVars({
|
|
44
|
+
series1: '#5178a8',
|
|
45
|
+
series2: '#568b76',
|
|
46
|
+
series3: '#9077ac',
|
|
47
|
+
series4: '#b18843',
|
|
48
|
+
series5: '#4f9296',
|
|
49
|
+
series6: '#ac7186',
|
|
50
|
+
negative: '#b95d66',
|
|
51
|
+
positive: '#46799f',
|
|
52
|
+
missing: '#e7e7e7',
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const darkChartColors = stylex.defineConsts({
|
|
56
|
+
series1: '#86a9d3',
|
|
57
|
+
series2: '#83b69f',
|
|
58
|
+
series3: '#b49bce',
|
|
59
|
+
series4: '#cfad70',
|
|
60
|
+
series5: '#80bbc0',
|
|
61
|
+
series6: '#d39aad',
|
|
62
|
+
negative: '#e0929b',
|
|
63
|
+
positive: '#80add0',
|
|
64
|
+
missing: '#363636',
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export const syntaxColors = stylex.defineVars({
|
|
68
|
+
keyword: '#785ba1',
|
|
69
|
+
string: '#21684f',
|
|
70
|
+
comment: '#626262',
|
|
71
|
+
number: '#754c00',
|
|
72
|
+
type: '#1c628f',
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export const darkSyntaxColors = stylex.defineConsts({
|
|
76
|
+
keyword: '#c4a1e5',
|
|
77
|
+
string: '#8ed3b3',
|
|
78
|
+
comment: '#a3a3a3',
|
|
79
|
+
number: '#edc479',
|
|
80
|
+
type: '#84bce3',
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export const spacing = stylex.defineVars({
|
|
84
|
+
xxs: '2px',
|
|
85
|
+
xs: '4px',
|
|
86
|
+
sm: '8px',
|
|
87
|
+
md: '12px',
|
|
88
|
+
lg: '16px',
|
|
89
|
+
xl: '24px',
|
|
90
|
+
xxl: '32px',
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export const typography = stylex.defineVars({
|
|
94
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif',
|
|
95
|
+
monoFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace',
|
|
96
|
+
bodySize: '13px',
|
|
97
|
+
bodyLineHeight: '20px',
|
|
98
|
+
multilineLineHeight: '1.6',
|
|
99
|
+
captionSize: '12px',
|
|
100
|
+
captionLineHeight: '18px',
|
|
101
|
+
inputSize: '14px',
|
|
102
|
+
touchInputSize: '16px',
|
|
103
|
+
sectionSize: '16px',
|
|
104
|
+
sectionLineHeight: '22px',
|
|
105
|
+
headingSize: '36px',
|
|
106
|
+
headingLineHeight: '44px',
|
|
107
|
+
compactHeadingSize: '28px',
|
|
108
|
+
compactHeadingLineHeight: '36px',
|
|
109
|
+
headingTracking: '-0.035em',
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export const controls = stylex.defineVars({
|
|
113
|
+
smHeight: '32px',
|
|
114
|
+
mdHeight: '36px',
|
|
115
|
+
coarseTarget: '44px',
|
|
116
|
+
iconSize: '16px',
|
|
117
|
+
paddingInline: '10px',
|
|
118
|
+
paddingBlock: '7px',
|
|
119
|
+
gap: '6px',
|
|
120
|
+
focusWidth: '2px',
|
|
121
|
+
disabledOpacity: '0.45',
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
export const radii = stylex.defineVars({ sm: '4px', md: '6px' });
|
|
125
|
+
|
|
126
|
+
export const motion = stylex.defineVars({
|
|
127
|
+
duration: '140ms',
|
|
128
|
+
easing: 'cubic-bezier(0.23, 1, 0.32, 1)',
|
|
129
|
+
drawerDuration: '220ms',
|
|
130
|
+
drawerEasing: 'cubic-bezier(0.32, 0.72, 0, 1)',
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
export const shadows = stylex.defineVars({ popup: '0 4px 16px #00000014' });
|
|
134
|
+
|
|
135
|
+
export const darkShadows = stylex.defineConsts({ popup: '0 4px 16px #00000066' });
|
|
136
|
+
|
|
137
|
+
export const layers = stylex.defineConsts({ backdrop: '20', dialog: '21', popup: '30', tooltip: '40', skipLink: '50' });
|
|
138
|
+
|
|
139
|
+
export const conditions = stylex.defineConsts({
|
|
140
|
+
coarsePointer: '@media (pointer: coarse)',
|
|
141
|
+
hoverPointer: '@media (hover: hover) and (pointer: fine)',
|
|
142
|
+
compactText: '@media (max-width:639px)',
|
|
143
|
+
compactTable: '@media (max-width:600px)',
|
|
144
|
+
reducedMotion: '@media (prefers-reduced-motion: reduce)',
|
|
145
|
+
});
|
package/styles.css
ADDED