@md-code/styles 0.0.0-stage → 0.0.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/README.md +771 -2
- package/dist/colors-0AY7L5dk.js +244 -0
- package/dist/index.js +129 -0
- package/dist/themes/colors.js +1 -0
- package/dist/themes-BJwXZ1XG.js +419 -0
- package/dist/themes.js +3 -0
- package/dist/types/GlobalStyles.d.ts +9 -0
- package/dist/types/GlobalStyles.d.ts.map +1 -0
- package/dist/types/ThemeProviderWrapper.d.ts +4 -0
- package/dist/types/ThemeProviderWrapper.d.ts.map +1 -0
- package/dist/types/helpers/font.d.ts +2 -0
- package/dist/types/helpers/font.d.ts.map +1 -0
- package/dist/types/helpers/fullWidth.d.ts +3 -0
- package/dist/types/helpers/fullWidth.d.ts.map +1 -0
- package/dist/types/helpers/index.d.ts +5 -0
- package/dist/types/helpers/index.d.ts.map +1 -0
- package/dist/types/helpers/offsets.d.ts +3 -0
- package/dist/types/helpers/offsets.d.ts.map +1 -0
- package/dist/types/helpers/spaceBetween.d.ts +3 -0
- package/dist/types/helpers/spaceBetween.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/theme-provider/styles.d.ts +19 -0
- package/dist/types/theme-provider/styles.d.ts.map +1 -0
- package/dist/types/themes/baseTheme.d.ts +166 -0
- package/dist/types/themes/baseTheme.d.ts.map +1 -0
- package/dist/types/themes/board.d.ts +287 -0
- package/dist/types/themes/board.d.ts.map +1 -0
- package/dist/types/themes/colors.d.ts +3 -0
- package/dist/types/themes/colors.d.ts.map +1 -0
- package/dist/types/themes/contract/defineTheme.d.ts +17 -0
- package/dist/types/themes/contract/defineTheme.d.ts.map +1 -0
- package/dist/types/themes/contract/index.d.ts +102 -0
- package/dist/types/themes/contract/index.d.ts.map +1 -0
- package/dist/types/themes/editor.d.ts +170 -0
- package/dist/types/themes/editor.d.ts.map +1 -0
- package/dist/types/themes/index.d.ts +12 -0
- package/dist/types/themes/index.d.ts.map +1 -0
- package/dist/types/themes/liquidGlass.d.ts +157 -0
- package/dist/types/themes/liquidGlass.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/animation.d.ts +17 -0
- package/dist/types/themes/tokens/base/animation.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/colors.d.ts +10 -0
- package/dist/types/themes/tokens/base/colors.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/effects.d.ts +11 -0
- package/dist/types/themes/tokens/base/effects.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/offsets.d.ts +8 -0
- package/dist/types/themes/tokens/base/offsets.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/shadows.d.ts +7 -0
- package/dist/types/themes/tokens/base/shadows.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/shape.d.ts +10 -0
- package/dist/types/themes/tokens/base/shape.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/typography.d.ts +22 -0
- package/dist/types/themes/tokens/base/typography.d.ts.map +1 -0
- package/dist/types/themes/tokens/board.d.ts +298 -0
- package/dist/types/themes/tokens/board.d.ts.map +1 -0
- package/dist/types/themes/tokens/elements.d.ts +24 -0
- package/dist/types/themes/tokens/elements.d.ts.map +1 -0
- package/dist/types/themes/tokens/offsets.d.ts +20 -0
- package/dist/types/themes/tokens/offsets.d.ts.map +1 -0
- package/dist/types/themes/tokens/report.d.ts +241 -0
- package/dist/types/themes/tokens/report.d.ts.map +1 -0
- package/dist/types/themes/tokens/screens.d.ts +24 -0
- package/dist/types/themes/tokens/screens.d.ts.map +1 -0
- package/dist/types/themes/tokens/variables.d.ts +39 -0
- package/dist/types/themes/tokens/variables.d.ts.map +1 -0
- package/dist/types/themes/tokens/zIndexes.d.ts +13 -0
- package/dist/types/themes/tokens/zIndexes.d.ts.map +1 -0
- package/dist/types/themes/types/index.d.ts +8 -0
- package/dist/types/themes/types/index.d.ts.map +1 -0
- package/dist/types/themes/viking.d.ts +157 -0
- package/dist/types/themes/viking.d.ts.map +1 -0
- package/dist/types/themes/zones/pair.d.ts +297 -0
- package/dist/types/themes/zones/pair.d.ts.map +1 -0
- package/dist/types/themes/zones/report.d.ts +451 -0
- package/dist/types/themes/zones/report.d.ts.map +1 -0
- package/dist/types/types.d.ts +179 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types.js +0 -0
- package/package.json +325 -5
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
import { c as e, i as t, l as n, o as r, r as i, s as a, u as o } from "./colors-0AY7L5dk.js";
|
|
2
|
+
// themes/tokens/base/animation.ts
|
|
3
|
+
var s = {
|
|
4
|
+
speed: {
|
|
5
|
+
fast: "0.2s",
|
|
6
|
+
normal: "0.3s",
|
|
7
|
+
slow: "0.4s",
|
|
8
|
+
pulse: "2s"
|
|
9
|
+
},
|
|
10
|
+
easing: {
|
|
11
|
+
standard: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
12
|
+
inOut: "ease-in-out",
|
|
13
|
+
out: "ease-out",
|
|
14
|
+
linear: "linear",
|
|
15
|
+
spring: "cubic-bezier(0.175, 0.885, 0.32, 1.275)"
|
|
16
|
+
}
|
|
17
|
+
}, c = {
|
|
18
|
+
section: "#fff",
|
|
19
|
+
sectionContent: "#000",
|
|
20
|
+
overlay: "rgba(0,0,0,0.1)",
|
|
21
|
+
highlighted: "#00f",
|
|
22
|
+
highlightedContent: "#fff",
|
|
23
|
+
status: {}
|
|
24
|
+
}, l = {
|
|
25
|
+
texture: "none",
|
|
26
|
+
interaction: {
|
|
27
|
+
hover: "",
|
|
28
|
+
active: "",
|
|
29
|
+
focus: "",
|
|
30
|
+
disabled: "opacity: 0.5; cursor: not-allowed"
|
|
31
|
+
}
|
|
32
|
+
}, u = {
|
|
33
|
+
section: "0 2px 4px rgba(0,0,0,0.1)",
|
|
34
|
+
notification: "0 8px 16px rgba(0,0,0,0.2)",
|
|
35
|
+
content: "0 1px 2px rgba(0,0,0,0.3)"
|
|
36
|
+
}, d = {
|
|
37
|
+
radius: "var(--border-radius)",
|
|
38
|
+
size: "var(--border-size)"
|
|
39
|
+
}, f = {
|
|
40
|
+
shape: "none",
|
|
41
|
+
imprint: ""
|
|
42
|
+
}, p = (e) => i[e], m = /* @__PURE__ */ o(() => ({
|
|
43
|
+
theme: "base",
|
|
44
|
+
zIndex: i,
|
|
45
|
+
border: d,
|
|
46
|
+
shadows: u,
|
|
47
|
+
animation: s,
|
|
48
|
+
font: e,
|
|
49
|
+
elements: a,
|
|
50
|
+
offsets: n,
|
|
51
|
+
colors: c,
|
|
52
|
+
screens: r,
|
|
53
|
+
effects: l,
|
|
54
|
+
geometry: f,
|
|
55
|
+
variables: t
|
|
56
|
+
})), h = /* @__PURE__ */ o(() => ({
|
|
57
|
+
theme: "codeEditor",
|
|
58
|
+
zIndex: i,
|
|
59
|
+
border: d,
|
|
60
|
+
shadows: u,
|
|
61
|
+
animation: s,
|
|
62
|
+
font: {
|
|
63
|
+
...e,
|
|
64
|
+
family: {
|
|
65
|
+
text: "monospace",
|
|
66
|
+
title: "monospace"
|
|
67
|
+
},
|
|
68
|
+
weight: {
|
|
69
|
+
...e.weight,
|
|
70
|
+
text: "400"
|
|
71
|
+
},
|
|
72
|
+
transform: {
|
|
73
|
+
...e.transform,
|
|
74
|
+
text: "none"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
elements: a,
|
|
78
|
+
offsets: n,
|
|
79
|
+
colors: c,
|
|
80
|
+
screens: r,
|
|
81
|
+
effects: l,
|
|
82
|
+
geometry: f,
|
|
83
|
+
variables: t
|
|
84
|
+
})), g = {
|
|
85
|
+
section: "#1e1f22",
|
|
86
|
+
sectionContent: "#dfe1e5",
|
|
87
|
+
overlay: "#2b2d30",
|
|
88
|
+
highlighted: "rgba(120,160,255,0.4)",
|
|
89
|
+
highlightedContent: "#dfe1e5",
|
|
90
|
+
status: {
|
|
91
|
+
duplicate: {
|
|
92
|
+
background: "rgba(255,107,107,0.16)",
|
|
93
|
+
content: "rgba(255,107,107,0.85)",
|
|
94
|
+
hot: "rgba(255,107,107,0.34)",
|
|
95
|
+
paint: "rgba(255,107,107,0.42)"
|
|
96
|
+
},
|
|
97
|
+
unique: {
|
|
98
|
+
background: "rgba(120,200,170,0.14)",
|
|
99
|
+
content: "rgba(120,200,170,0.85)",
|
|
100
|
+
hot: "rgba(120,200,170,0.32)",
|
|
101
|
+
paint: "rgba(120,200,170,0.36)"
|
|
102
|
+
},
|
|
103
|
+
added: {
|
|
104
|
+
background: "rgba(120,200,170,0.18)",
|
|
105
|
+
content: "rgba(120,200,170,0.9)",
|
|
106
|
+
hot: "rgba(120,200,170,0.38)",
|
|
107
|
+
paint: "rgba(120,200,170,0.38)"
|
|
108
|
+
},
|
|
109
|
+
removed: {
|
|
110
|
+
background: "rgba(255,107,107,0.18)",
|
|
111
|
+
content: "rgba(255,107,107,0.9)",
|
|
112
|
+
hot: "rgba(255,107,107,0.38)",
|
|
113
|
+
paint: "rgba(255,107,107,0.42)"
|
|
114
|
+
},
|
|
115
|
+
changed: {
|
|
116
|
+
background: "rgba(255,193,94,0.16)",
|
|
117
|
+
content: "rgba(255,193,94,0.9)",
|
|
118
|
+
hot: "rgba(255,193,94,0.34)",
|
|
119
|
+
paint: "rgba(255,193,94,0.4)"
|
|
120
|
+
},
|
|
121
|
+
conflict: {
|
|
122
|
+
background: "rgba(120,160,255,0.18)",
|
|
123
|
+
content: "rgba(120,160,255,0.9)",
|
|
124
|
+
hot: "rgba(120,160,255,0.38)",
|
|
125
|
+
paint: "rgba(120,160,255,0.4)"
|
|
126
|
+
},
|
|
127
|
+
edge: {
|
|
128
|
+
background: "#393b40",
|
|
129
|
+
content: "#393b40"
|
|
130
|
+
},
|
|
131
|
+
dim: {
|
|
132
|
+
background: "#a8adbd",
|
|
133
|
+
content: "#a8adbd"
|
|
134
|
+
},
|
|
135
|
+
faint: {
|
|
136
|
+
background: "#6f737a",
|
|
137
|
+
content: "#6f737a"
|
|
138
|
+
},
|
|
139
|
+
ribbon: {
|
|
140
|
+
background: "#8a8f98",
|
|
141
|
+
content: "#8a8f98"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, _ = {
|
|
145
|
+
...u,
|
|
146
|
+
content: "0 1px 2px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.85)"
|
|
147
|
+
}, v = {
|
|
148
|
+
...e,
|
|
149
|
+
family: {
|
|
150
|
+
text: "'JetBrains Mono', 'Fira Code', ui-monospace, monospace",
|
|
151
|
+
title: "'JetBrains Mono', 'Fira Code', ui-monospace, monospace"
|
|
152
|
+
},
|
|
153
|
+
weight: {
|
|
154
|
+
...e.weight,
|
|
155
|
+
text: "400",
|
|
156
|
+
title: "600"
|
|
157
|
+
},
|
|
158
|
+
transform: {
|
|
159
|
+
...e.transform,
|
|
160
|
+
text: "none"
|
|
161
|
+
},
|
|
162
|
+
sizes: {
|
|
163
|
+
small: "10.5px",
|
|
164
|
+
regular: "12px",
|
|
165
|
+
large: "11px"
|
|
166
|
+
}
|
|
167
|
+
}, y = {
|
|
168
|
+
zIndex: {
|
|
169
|
+
...i,
|
|
170
|
+
boardSurface: 1,
|
|
171
|
+
boardPlate: 2,
|
|
172
|
+
boardBadge: 3,
|
|
173
|
+
boardAbove: 4
|
|
174
|
+
},
|
|
175
|
+
border: {
|
|
176
|
+
radius: "3px",
|
|
177
|
+
size: "1px"
|
|
178
|
+
},
|
|
179
|
+
shadows: _,
|
|
180
|
+
animation: s,
|
|
181
|
+
font: v,
|
|
182
|
+
elements: a,
|
|
183
|
+
offsets: {
|
|
184
|
+
...n,
|
|
185
|
+
betweenElements: "2px",
|
|
186
|
+
elementContent: "8px"
|
|
187
|
+
},
|
|
188
|
+
colors: g,
|
|
189
|
+
screens: r,
|
|
190
|
+
effects: {
|
|
191
|
+
...l,
|
|
192
|
+
interaction: {
|
|
193
|
+
...l.interaction,
|
|
194
|
+
disabled: "opacity: 0.4; cursor: default"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
geometry: f,
|
|
198
|
+
variables: t
|
|
199
|
+
}, b = /* @__PURE__ */ o(() => ({
|
|
200
|
+
theme: "codeBoard",
|
|
201
|
+
...y
|
|
202
|
+
})), x = /* @__PURE__ */ o(() => ({
|
|
203
|
+
...y,
|
|
204
|
+
theme: "pair",
|
|
205
|
+
colors: {
|
|
206
|
+
...g,
|
|
207
|
+
section: "#171f2e",
|
|
208
|
+
overlay: "#121722",
|
|
209
|
+
sectionContent: "#e2e8f2",
|
|
210
|
+
highlighted: "rgba(255, 107, 107, 0.42)",
|
|
211
|
+
highlightedContent: "#e2e8f2",
|
|
212
|
+
status: {
|
|
213
|
+
same: {
|
|
214
|
+
background: "rgba(255, 107, 107, 0.16)",
|
|
215
|
+
content: "rgba(255, 107, 107, 0.3)",
|
|
216
|
+
hot: "rgba(255, 107, 107, 0.3)",
|
|
217
|
+
paint: "rgba(255, 107, 107, 0.42)"
|
|
218
|
+
},
|
|
219
|
+
differs: {
|
|
220
|
+
background: "rgba(120, 200, 170, 0.12)",
|
|
221
|
+
content: "rgba(120, 200, 170, 0.24)",
|
|
222
|
+
hot: "rgba(120, 200, 170, 0.24)",
|
|
223
|
+
paint: "rgba(120, 200, 170, 0.34)"
|
|
224
|
+
},
|
|
225
|
+
added: {
|
|
226
|
+
background: "rgba(120, 200, 170, 0.12)",
|
|
227
|
+
content: "rgba(120, 200, 170, 0.24)",
|
|
228
|
+
hot: "rgba(120, 200, 170, 0.24)",
|
|
229
|
+
paint: "rgba(120, 200, 170, 0.34)"
|
|
230
|
+
},
|
|
231
|
+
removed: {
|
|
232
|
+
background: "rgba(255, 107, 107, 0.16)",
|
|
233
|
+
content: "rgba(255, 107, 107, 0.3)",
|
|
234
|
+
hot: "rgba(255, 107, 107, 0.3)",
|
|
235
|
+
paint: "rgba(255, 107, 107, 0.42)"
|
|
236
|
+
},
|
|
237
|
+
sameBand: {
|
|
238
|
+
background: "rgb(255,107,107)",
|
|
239
|
+
content: "rgb(255,107,107)"
|
|
240
|
+
},
|
|
241
|
+
differsBand: {
|
|
242
|
+
background: "rgb(120,200,170)",
|
|
243
|
+
content: "rgb(120,200,170)"
|
|
244
|
+
},
|
|
245
|
+
edge: {
|
|
246
|
+
background: "#243044",
|
|
247
|
+
content: "#243044"
|
|
248
|
+
},
|
|
249
|
+
dim: {
|
|
250
|
+
background: "#a9b5c5",
|
|
251
|
+
content: "#a9b5c5"
|
|
252
|
+
},
|
|
253
|
+
faint: {
|
|
254
|
+
background: "#7c8899",
|
|
255
|
+
content: "#7c8899"
|
|
256
|
+
},
|
|
257
|
+
ribbon: {
|
|
258
|
+
background: "#e2e8f2",
|
|
259
|
+
content: "#e2e8f2"
|
|
260
|
+
},
|
|
261
|
+
comment: {
|
|
262
|
+
background: "#8b98a9",
|
|
263
|
+
content: "#8b98a9"
|
|
264
|
+
},
|
|
265
|
+
keyword: {
|
|
266
|
+
background: "#c792ea",
|
|
267
|
+
content: "#c792ea"
|
|
268
|
+
},
|
|
269
|
+
string: {
|
|
270
|
+
background: "#c3e88d",
|
|
271
|
+
content: "#c3e88d"
|
|
272
|
+
},
|
|
273
|
+
number: {
|
|
274
|
+
background: "#f78c6c",
|
|
275
|
+
content: "#f78c6c"
|
|
276
|
+
},
|
|
277
|
+
"class-name": {
|
|
278
|
+
background: "#ffcb6b",
|
|
279
|
+
content: "#ffcb6b"
|
|
280
|
+
},
|
|
281
|
+
"function-variable": {
|
|
282
|
+
background: "#82aaff",
|
|
283
|
+
content: "#82aaff"
|
|
284
|
+
},
|
|
285
|
+
operator: {
|
|
286
|
+
background: "#89ddff",
|
|
287
|
+
content: "#89ddff"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
shadows: {
|
|
292
|
+
..._,
|
|
293
|
+
content: "0 1px 2px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.85)"
|
|
294
|
+
},
|
|
295
|
+
font: {
|
|
296
|
+
...v,
|
|
297
|
+
family: {
|
|
298
|
+
text: "'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace",
|
|
299
|
+
title: "'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace"
|
|
300
|
+
},
|
|
301
|
+
weight: {
|
|
302
|
+
...v.weight,
|
|
303
|
+
text: "400"
|
|
304
|
+
},
|
|
305
|
+
transform: {
|
|
306
|
+
...v.transform,
|
|
307
|
+
text: "none"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
})), S = "'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace", C = "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif", w = (e) => ({
|
|
311
|
+
background: `${e}1f`,
|
|
312
|
+
content: e,
|
|
313
|
+
paint: `${e}55`
|
|
314
|
+
}), T = {
|
|
315
|
+
section: "#0b0e14",
|
|
316
|
+
sectionContent: "#e2e8f2",
|
|
317
|
+
overlay: "#171f2e",
|
|
318
|
+
highlighted: "#3a4a64",
|
|
319
|
+
highlightedContent: "#e2e8f2",
|
|
320
|
+
status: {
|
|
321
|
+
edge: {
|
|
322
|
+
background: "#243044",
|
|
323
|
+
content: "#243044",
|
|
324
|
+
paint: "#24304488"
|
|
325
|
+
},
|
|
326
|
+
dim: {
|
|
327
|
+
background: "#a9b5c5",
|
|
328
|
+
content: "#a9b5c5"
|
|
329
|
+
},
|
|
330
|
+
faint: {
|
|
331
|
+
background: "#7c8899",
|
|
332
|
+
content: "#7c8899"
|
|
333
|
+
},
|
|
334
|
+
accent: w("#6ea8fe"),
|
|
335
|
+
amber: w("#f0a35e"),
|
|
336
|
+
violet: w("#b48ef0"),
|
|
337
|
+
teal: w("#56c8a8"),
|
|
338
|
+
rose: w("#e879a0"),
|
|
339
|
+
indigo: w("#9aa7ff"),
|
|
340
|
+
gold: w("#ffd166"),
|
|
341
|
+
grey: w("#6b7788"),
|
|
342
|
+
coral: w("#f78c6c"),
|
|
343
|
+
danger: w("#ff6b6b"),
|
|
344
|
+
warn: w("#fbbf24"),
|
|
345
|
+
ok: w("#4ade80"),
|
|
346
|
+
mute: w("#a9b5c5"),
|
|
347
|
+
same: {
|
|
348
|
+
background: "#ff6b6b",
|
|
349
|
+
content: "#ff6b6b"
|
|
350
|
+
},
|
|
351
|
+
differs: {
|
|
352
|
+
background: "#5a6678",
|
|
353
|
+
content: "#5a6678"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}, E = {
|
|
357
|
+
...e,
|
|
358
|
+
family: {
|
|
359
|
+
text: S,
|
|
360
|
+
title: C
|
|
361
|
+
},
|
|
362
|
+
weight: {
|
|
363
|
+
...e.weight,
|
|
364
|
+
text: "400",
|
|
365
|
+
title: "650"
|
|
366
|
+
},
|
|
367
|
+
sizes: {
|
|
368
|
+
small: "12px",
|
|
369
|
+
regular: "12.5px",
|
|
370
|
+
large: "15px"
|
|
371
|
+
},
|
|
372
|
+
spacing: "0.2px"
|
|
373
|
+
}, D = {
|
|
374
|
+
zIndex: i,
|
|
375
|
+
border: {
|
|
376
|
+
radius: "6px",
|
|
377
|
+
size: "1px"
|
|
378
|
+
},
|
|
379
|
+
shadows: {
|
|
380
|
+
...u,
|
|
381
|
+
section: "none"
|
|
382
|
+
},
|
|
383
|
+
animation: s,
|
|
384
|
+
font: E,
|
|
385
|
+
elements: {
|
|
386
|
+
...a,
|
|
387
|
+
sidebar: { width: "260px" }
|
|
388
|
+
},
|
|
389
|
+
offsets: {
|
|
390
|
+
...n,
|
|
391
|
+
page: "16px",
|
|
392
|
+
section: "16px",
|
|
393
|
+
betweenElements: "12px",
|
|
394
|
+
elementContent: "8px"
|
|
395
|
+
},
|
|
396
|
+
colors: T,
|
|
397
|
+
screens: r,
|
|
398
|
+
effects: {
|
|
399
|
+
...l,
|
|
400
|
+
interaction: {
|
|
401
|
+
...l.interaction,
|
|
402
|
+
hover: "background: #171f2e; text-decoration: none;",
|
|
403
|
+
focus: "border-color: #3a4a64;"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
geometry: f,
|
|
407
|
+
variables: t
|
|
408
|
+
}, O = /* @__PURE__ */ o(() => ({
|
|
409
|
+
theme: "report",
|
|
410
|
+
...D
|
|
411
|
+
})), k = /* @__PURE__ */ o(() => ({
|
|
412
|
+
...D,
|
|
413
|
+
theme: "reportPanel",
|
|
414
|
+
colors: {
|
|
415
|
+
...T,
|
|
416
|
+
section: "#121722"
|
|
417
|
+
}
|
|
418
|
+
}));
|
|
419
|
+
export { h as a, b as i, O as n, m as o, x as r, p as s, k as t };
|
package/dist/themes.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as e, n as t, r as n, t as r } from "./colors-0AY7L5dk.js";
|
|
2
|
+
import { a as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./themes-BJwXZ1XG.js";
|
|
3
|
+
export { s as baseTheme, a as codeBoard, i as codeEditor, e as devices, l as getZIndex, r as liquidGlass, c as pairTheme, u as reportPanelTheme, o as reportTheme, t as viking, n as zIndexes };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The page's own reset, mounted once beside `ThemeProvider`: styled-reset, the
|
|
3
|
+
* HTML5 display rules older browsers need, and the `body` ink/surface pair and
|
|
4
|
+
* base line-height the THEME declares. A global stylesheet may only READ the
|
|
5
|
+
* theme — the base line-height comes from `variables.font`, which the provider
|
|
6
|
+
* turns into CSS, so no number is typed here (README §1.3, §5.6).
|
|
7
|
+
*/
|
|
8
|
+
export declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
9
|
+
//# sourceMappingURL=GlobalStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalStyles.d.ts","sourceRoot":"","sources":["../../GlobalStyles.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,2FA2CxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProviderWrapper.d.ts","sourceRoot":"","sources":["../../ThemeProviderWrapper.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAgB;AAEzD,QAAA,MAAM,oBAAoB,GAAI,qBAAqB,yBAAyB,gCAQ3E,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../../helpers/font.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,6CAKrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fullWidth.d.ts","sourceRoot":"","sources":["../../../helpers/fullWidth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,eAAO,MAAM,aAAa,0DAEzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,qBAAkB;AAC/D,OAAO,EAAE,aAAa,EAAE,uBAAoB;AAC5C,OAAO,EAAE,gBAAgB,EAAE,0BAAuB;AAClD,OAAO,EAAE,SAAS,EAAE,kBAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offsets.d.ts","sourceRoot":"","sources":["../../../helpers/offsets.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,6CAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6CAG5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spaceBetween.d.ts","sourceRoot":"","sources":["../../../helpers/spaceBetween.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,eAAO,MAAM,gBAAgB,iEAG5B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as ThemeProvider } from "./ThemeProviderWrapper.js";
|
|
2
|
+
export { viking, liquidGlass, codeEditor, codeBoard, pairTheme, reportTheme, reportPanelTheme } from "./themes/index.js";
|
|
3
|
+
export { baseTheme, devices, getZIndex, zIndexes } from "./themes/index.js";
|
|
4
|
+
export type { ZIndexName } from "./themes/index.js";
|
|
5
|
+
export { withFullWidth, withOffsetBottom, withOffsetsRight, withSpaceBetween, basicFont } from "./helpers/index.js";
|
|
6
|
+
export type { TFullWidth, TWithBasicElementOffsets, TWithSpaceBetween } from "./types.js";
|
|
7
|
+
export { GlobalStyles } from "./GlobalStyles.js";
|
|
8
|
+
export type { ThemeInterface, StatusPair, StatusKeyOf, ThemeStatusKeys } from "./types.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,kCAA+B;AAElE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAuB;AAEtH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAuB;AACzE,YAAY,EAAE,UAAU,EAAE,0BAAuB;AAEjD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,2BAAwB;AACjH,YAAY,EAAE,UAAU,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,mBAAgB;AAGvF,OAAO,EAAE,YAAY,EAAE,0BAAuB;AAE9C,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,mBAAgB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The provider's CSS variables — the ONE place media queries live (README §1.3):
|
|
3
|
+
* every variable is a numeric theme field turned into a length here, and the same
|
|
4
|
+
* variable is re-declared per device breakpoint so a component never writes a
|
|
5
|
+
* media query of its own. `--page-offset` is derived from the desktop width and
|
|
6
|
+
* the section rhythm rather than typed, and the modal takes the screen when it
|
|
7
|
+
* cannot fit the page.
|
|
8
|
+
*/
|
|
9
|
+
export declare const MediaProvider: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}> & string;
|
|
12
|
+
/**
|
|
13
|
+
* The root text defaults every zone inherits: zeroed margins, the theme's text
|
|
14
|
+
* family, size and spacing, and the document's base weight/line-height from
|
|
15
|
+
* `variables.font` — the reset reads the theme exactly like a component does, so
|
|
16
|
+
* a new design changes it by DATA, not by editing this file (README §1.3, §5.6).
|
|
17
|
+
*/
|
|
18
|
+
export declare const ResetStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
19
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../theme-provider/styles.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;WAuCzB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,2FAiBtB,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import zIndexes from "./tokens/zIndexes.js";
|
|
2
|
+
export declare const getZIndex: (name: keyof typeof zIndexes) => number;
|
|
3
|
+
/**
|
|
4
|
+
* The abstract base theme: every contract field with a neutral value. It is
|
|
5
|
+
* COMPOSED from the token tables under `tokens/` — a derived theme imports the
|
|
6
|
+
* table it words differently instead of this object, so importing one theme
|
|
7
|
+
* never drags the base theme (and its `theme: "base"`) into a consumer bundle.
|
|
8
|
+
*/
|
|
9
|
+
declare const base: {
|
|
10
|
+
theme: string;
|
|
11
|
+
zIndex: {
|
|
12
|
+
animatedElements: number;
|
|
13
|
+
content: number;
|
|
14
|
+
overlay: number;
|
|
15
|
+
alert: number;
|
|
16
|
+
};
|
|
17
|
+
border: {
|
|
18
|
+
radius: string;
|
|
19
|
+
size: string;
|
|
20
|
+
};
|
|
21
|
+
shadows: {
|
|
22
|
+
section: string;
|
|
23
|
+
notification: string;
|
|
24
|
+
content: string;
|
|
25
|
+
};
|
|
26
|
+
animation: {
|
|
27
|
+
speed: {
|
|
28
|
+
fast: string;
|
|
29
|
+
normal: string;
|
|
30
|
+
slow: string;
|
|
31
|
+
pulse: string;
|
|
32
|
+
};
|
|
33
|
+
easing: {
|
|
34
|
+
standard: string;
|
|
35
|
+
inOut: string;
|
|
36
|
+
out: string;
|
|
37
|
+
linear: string;
|
|
38
|
+
spring: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
font: {
|
|
42
|
+
family: {
|
|
43
|
+
text: string;
|
|
44
|
+
title: string;
|
|
45
|
+
};
|
|
46
|
+
weight: {
|
|
47
|
+
text: string;
|
|
48
|
+
title: string;
|
|
49
|
+
};
|
|
50
|
+
transform: {
|
|
51
|
+
text: string;
|
|
52
|
+
title: string;
|
|
53
|
+
};
|
|
54
|
+
sizes: {
|
|
55
|
+
small: string;
|
|
56
|
+
regular: string;
|
|
57
|
+
large: string;
|
|
58
|
+
};
|
|
59
|
+
spacing: string;
|
|
60
|
+
};
|
|
61
|
+
elements: {
|
|
62
|
+
header: {
|
|
63
|
+
height: string;
|
|
64
|
+
};
|
|
65
|
+
form: {
|
|
66
|
+
height: string;
|
|
67
|
+
minWidth: string;
|
|
68
|
+
};
|
|
69
|
+
icons: {
|
|
70
|
+
height: string;
|
|
71
|
+
width: string;
|
|
72
|
+
radius: string;
|
|
73
|
+
};
|
|
74
|
+
modal: {
|
|
75
|
+
width: string;
|
|
76
|
+
height: string;
|
|
77
|
+
};
|
|
78
|
+
sidebar: {
|
|
79
|
+
width: string;
|
|
80
|
+
collapsedWidth: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
offsets: {
|
|
84
|
+
page: string;
|
|
85
|
+
section: string;
|
|
86
|
+
betweenElements: string;
|
|
87
|
+
elementContent: string;
|
|
88
|
+
};
|
|
89
|
+
colors: {
|
|
90
|
+
section: string;
|
|
91
|
+
sectionContent: string;
|
|
92
|
+
overlay: string;
|
|
93
|
+
highlighted: string;
|
|
94
|
+
highlightedContent: string;
|
|
95
|
+
status: {};
|
|
96
|
+
};
|
|
97
|
+
screens: {
|
|
98
|
+
mobile: {
|
|
99
|
+
device: string;
|
|
100
|
+
height: number;
|
|
101
|
+
width: number;
|
|
102
|
+
};
|
|
103
|
+
tablet: {
|
|
104
|
+
device: string;
|
|
105
|
+
height: number;
|
|
106
|
+
width: number;
|
|
107
|
+
};
|
|
108
|
+
desktop: {
|
|
109
|
+
device: string;
|
|
110
|
+
height: number;
|
|
111
|
+
width: number;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
effects: {
|
|
115
|
+
texture: string;
|
|
116
|
+
interaction: {
|
|
117
|
+
hover: string;
|
|
118
|
+
active: string;
|
|
119
|
+
focus: string;
|
|
120
|
+
disabled: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
geometry: {
|
|
124
|
+
shape: string;
|
|
125
|
+
imprint: string;
|
|
126
|
+
};
|
|
127
|
+
variables: {
|
|
128
|
+
border: {
|
|
129
|
+
size: number;
|
|
130
|
+
radius: number;
|
|
131
|
+
};
|
|
132
|
+
header: {
|
|
133
|
+
height: {
|
|
134
|
+
mobile: number;
|
|
135
|
+
tablet: number;
|
|
136
|
+
desktop: number;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
sidebar: {
|
|
140
|
+
width: number;
|
|
141
|
+
};
|
|
142
|
+
font: {
|
|
143
|
+
weight: number;
|
|
144
|
+
lineHeight: number;
|
|
145
|
+
};
|
|
146
|
+
offsets: {
|
|
147
|
+
section: {
|
|
148
|
+
mobile: number;
|
|
149
|
+
tablet: number;
|
|
150
|
+
desktop: number;
|
|
151
|
+
};
|
|
152
|
+
betweenElements: {
|
|
153
|
+
mobile: number;
|
|
154
|
+
tablet: number;
|
|
155
|
+
desktop: number;
|
|
156
|
+
};
|
|
157
|
+
elementContent: {
|
|
158
|
+
mobile: number;
|
|
159
|
+
tablet: number;
|
|
160
|
+
desktop: number;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export default base;
|
|
166
|
+
//# sourceMappingURL=baseTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseTheme.d.ts","sourceRoot":"","sources":["../../../themes/baseTheme.ts"],"names":[],"mappings":"AAYA,OAAO,QAAQ,6BAA0B;AAEzC,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,OAAO,QAAQ,WAAmB,CAAC;AAEzE;;;;;GAKG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAekB,CAAC;AAE7B,eAAe,IAAI,CAAC"}
|