@arbor-css/core 0.0.73 → 0.0.75

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 (75) hide show
  1. package/dist/cli/run.js +34 -35
  2. package/dist/cli/run.js.map +1 -1
  3. package/dist/cli/validate.js +1 -1
  4. package/dist/cli/validate.js.map +1 -1
  5. package/dist/cli/validate.test.js +42 -35
  6. package/dist/cli/validate.test.js.map +1 -1
  7. package/dist/getStructuredTokensMap.js +2 -2
  8. package/dist/getStructuredTokensMap.js.map +1 -1
  9. package/dist/getStructuredTokensMap.test.js +3 -4
  10. package/dist/getStructuredTokensMap.test.js.map +1 -1
  11. package/dist/index.d.ts +3 -2
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/index.js.map +1 -1
  15. package/dist/presets/arborPreset/baseModeValues.d.ts +16 -0
  16. package/dist/presets/arborPreset/baseModeValues.d.ts.map +1 -0
  17. package/dist/presets/arborPreset/baseModeValues.js +231 -0
  18. package/dist/presets/arborPreset/baseModeValues.js.map +1 -0
  19. package/dist/presets/arborPreset/index.d.ts +4 -0
  20. package/dist/presets/arborPreset/index.d.ts.map +1 -0
  21. package/dist/presets/arborPreset/index.js +4 -0
  22. package/dist/presets/arborPreset/index.js.map +1 -0
  23. package/dist/presets/arborPreset/modeSchema.d.ts +448 -0
  24. package/dist/presets/arborPreset/modeSchema.d.ts.map +1 -0
  25. package/dist/presets/arborPreset/modeSchema.js +267 -0
  26. package/dist/presets/arborPreset/modeSchema.js.map +1 -0
  27. package/dist/presets/arborPreset/preset.d.ts +470 -0
  28. package/dist/presets/arborPreset/preset.d.ts.map +1 -0
  29. package/dist/presets/arborPreset/preset.js +51 -0
  30. package/dist/presets/arborPreset/preset.js.map +1 -0
  31. package/dist/presets/basicPreset/commonFunctions.d.ts +13 -0
  32. package/dist/presets/basicPreset/commonFunctions.d.ts.map +1 -0
  33. package/dist/presets/basicPreset/commonFunctions.js +19 -0
  34. package/dist/presets/basicPreset/commonFunctions.js.map +1 -0
  35. package/dist/presets/basicPreset/functions.d.ts +12 -0
  36. package/dist/presets/basicPreset/functions.d.ts.map +1 -0
  37. package/dist/presets/basicPreset/functions.js +52 -0
  38. package/dist/presets/basicPreset/functions.js.map +1 -0
  39. package/dist/presets/basicPreset/functions.test.d.ts +2 -0
  40. package/dist/presets/basicPreset/functions.test.d.ts.map +1 -0
  41. package/dist/presets/basicPreset/functions.test.js +22 -0
  42. package/dist/presets/basicPreset/functions.test.js.map +1 -0
  43. package/dist/presets/basicPreset/index.d.ts +2 -0
  44. package/dist/presets/basicPreset/index.d.ts.map +1 -0
  45. package/dist/presets/basicPreset/index.js +2 -0
  46. package/dist/presets/basicPreset/index.js.map +1 -0
  47. package/dist/presets/basicPreset/mixins.d.ts +1210 -0
  48. package/dist/presets/basicPreset/mixins.d.ts.map +1 -0
  49. package/dist/presets/basicPreset/mixins.js +219 -0
  50. package/dist/presets/basicPreset/mixins.js.map +1 -0
  51. package/dist/presets/basicPreset/mixins.test.d.ts +2 -0
  52. package/dist/presets/basicPreset/mixins.test.d.ts.map +1 -0
  53. package/dist/presets/basicPreset/mixins.test.js +14 -0
  54. package/dist/presets/basicPreset/mixins.test.js.map +1 -0
  55. package/dist/presets/basicPreset/preset.d.ts +1218 -0
  56. package/dist/presets/basicPreset/preset.d.ts.map +1 -0
  57. package/dist/presets/basicPreset/preset.js +14 -0
  58. package/dist/presets/basicPreset/preset.js.map +1 -0
  59. package/dist/runtime/components/BaseElement.d.ts +1 -1
  60. package/dist/runtime/components/BaseElement.d.ts.map +1 -1
  61. package/dist/runtime/components/GlobalsEditor.js +6 -4
  62. package/dist/runtime/components/GlobalsEditor.js.map +1 -1
  63. package/dist/runtime/components/ModeSelector.js +3 -1
  64. package/dist/runtime/components/ModeSelector.js.map +1 -1
  65. package/dist/runtime/components/SchemeSelector.js +3 -1
  66. package/dist/runtime/components/SchemeSelector.js.map +1 -1
  67. package/dist/stylesheet/generateStylesheet.d.ts.map +1 -1
  68. package/dist/stylesheet/generateStylesheet.js +18 -19
  69. package/dist/stylesheet/generateStylesheet.js.map +1 -1
  70. package/dist/util/resolveTokenReferences.d.ts.map +1 -1
  71. package/dist/util/resolveTokenReferences.js +7 -5
  72. package/dist/util/resolveTokenReferences.js.map +1 -1
  73. package/dist/util/resolveTokenReferences.test.js +2 -2
  74. package/dist/util/resolveTokenReferences.test.js.map +1 -1
  75. package/package.json +24 -13
@@ -0,0 +1,448 @@
1
+ export declare const arborModeSchema: {
2
+ color: {
3
+ main: {
4
+ $root: {
5
+ purpose: "color";
6
+ description: string;
7
+ };
8
+ paper: {
9
+ purpose: "color";
10
+ description: "A very light shade, good for backgrounds and surfaces";
11
+ };
12
+ wash: {
13
+ purpose: "color";
14
+ description: "A very faint but colorful shade, good for backgrounds and surfaces";
15
+ };
16
+ light: {
17
+ purpose: "color";
18
+ description: "A light shade of the mode's main color, good for emphasized surfaces.";
19
+ };
20
+ mid: {
21
+ purpose: "color";
22
+ description: "The main shade of the mode's main color, good for primary actions and decoration.";
23
+ };
24
+ heavy: {
25
+ purpose: "color";
26
+ description: "A heavy shade of the mode's main color, good for text emphasis and accents.";
27
+ };
28
+ ink: {
29
+ purpose: "color";
30
+ description: "A very dark but still colorful shade of the mode's main color, good for text and high contrast elements.";
31
+ };
32
+ };
33
+ neutral: {
34
+ $root: {
35
+ purpose: "color";
36
+ description: string;
37
+ };
38
+ paper: {
39
+ purpose: "color";
40
+ description: "A very light neutral shade, good for backgrounds and surfaces";
41
+ };
42
+ wash: {
43
+ purpose: "color";
44
+ description: "A faint neutral shade, good for backgrounds and surfaces";
45
+ };
46
+ light: {
47
+ purpose: "color";
48
+ description: "A light neutral shade, good for emphasized surfaces";
49
+ };
50
+ mid: {
51
+ purpose: "color";
52
+ description: "The main neutral shade, good for primary actions and decoration";
53
+ };
54
+ heavy: {
55
+ purpose: "color";
56
+ description: "A heavy neutral shade, good for low-emphasis text and accents";
57
+ };
58
+ ink: {
59
+ purpose: "color";
60
+ description: "A very dark neutral shade, good for text and high contrast elements";
61
+ };
62
+ };
63
+ };
64
+ action: {
65
+ padding: {
66
+ $root: {
67
+ purpose: "other";
68
+ description: string;
69
+ };
70
+ inline: {
71
+ purpose: "spacing";
72
+ description: "Inline (horizontal, usually) padding";
73
+ };
74
+ block: {
75
+ purpose: "spacing";
76
+ description: "Block (vertical, usually) padding";
77
+ };
78
+ };
79
+ roundness: {
80
+ purpose: "scalar";
81
+ description: "This token controls the overall roundness of actions and stacks with the root roundness token";
82
+ };
83
+ radius: {
84
+ purpose: "border-radius";
85
+ description: "This token captures the border-radius of actions, taking into account the overall roundness";
86
+ };
87
+ primary: {
88
+ fg: {
89
+ purpose: "color";
90
+ description: "Intended for use as the foreground color";
91
+ };
92
+ bg: {
93
+ purpose: "color";
94
+ description: "Intended for use as the background color";
95
+ };
96
+ border: {
97
+ purpose: "color";
98
+ description: "Intended for use as the border color, if desired";
99
+ };
100
+ };
101
+ secondary: {
102
+ fg: {
103
+ purpose: "color";
104
+ description: "Intended for use as the foreground color";
105
+ };
106
+ bg: {
107
+ purpose: "color";
108
+ description: "Intended for use as the background color";
109
+ };
110
+ border: {
111
+ purpose: "color";
112
+ description: "Intended for use as the border color, if desired";
113
+ };
114
+ };
115
+ ambient: {
116
+ fg: {
117
+ purpose: "color";
118
+ description: "Intended for use as the foreground color";
119
+ };
120
+ bg: {
121
+ purpose: "color";
122
+ description: "Intended for use as the background color";
123
+ };
124
+ border: {
125
+ purpose: "color";
126
+ description: "Intended for use as the border color, if desired";
127
+ };
128
+ };
129
+ };
130
+ control: {
131
+ fg: {
132
+ purpose: "color";
133
+ description: "Intended for use as the foreground color";
134
+ };
135
+ bg: {
136
+ purpose: "color";
137
+ description: "Intended for use as the background color";
138
+ };
139
+ border: {
140
+ purpose: "color";
141
+ description: "Intended for use as the border color, if desired";
142
+ };
143
+ padding: {
144
+ $root: {
145
+ purpose: "other";
146
+ description: string;
147
+ };
148
+ inline: {
149
+ purpose: "spacing";
150
+ description: "Inline (horizontal, usually) padding";
151
+ };
152
+ block: {
153
+ purpose: "spacing";
154
+ description: "Block (vertical, usually) padding";
155
+ };
156
+ };
157
+ roundness: {
158
+ purpose: "scalar";
159
+ description: "This token controls the overall roundness of controls and stacks with the root roundness token";
160
+ };
161
+ radius: {
162
+ purpose: "border-radius";
163
+ description: "This token captures the border-radius of controls, taking into account the overall roundness";
164
+ };
165
+ };
166
+ surface: {
167
+ padding: {
168
+ $root: {
169
+ purpose: "other";
170
+ description: string;
171
+ };
172
+ inline: {
173
+ purpose: "spacing";
174
+ description: "Inline (horizontal, usually) padding";
175
+ };
176
+ block: {
177
+ purpose: "spacing";
178
+ description: "Block (vertical, usually) padding";
179
+ };
180
+ };
181
+ roundness: {
182
+ purpose: "scalar";
183
+ description: "This token controls the overall roundness of surfaces and stacks with the root roundness token";
184
+ };
185
+ radius: {
186
+ purpose: "border-radius";
187
+ description: "This token captures the border-radius of surfaces, taking into account the overall roundness";
188
+ };
189
+ primary: {
190
+ fg: {
191
+ purpose: "color";
192
+ description: "Intended for use as the foreground color";
193
+ };
194
+ bg: {
195
+ purpose: "color";
196
+ description: "Intended for use as the background color";
197
+ };
198
+ border: {
199
+ purpose: "color";
200
+ description: "Intended for use as the border color, if desired";
201
+ };
202
+ };
203
+ secondary: {
204
+ fg: {
205
+ purpose: "color";
206
+ description: "Intended for use as the foreground color";
207
+ };
208
+ bg: {
209
+ purpose: "color";
210
+ description: "Intended for use as the background color";
211
+ };
212
+ border: {
213
+ purpose: "color";
214
+ description: "Intended for use as the border color, if desired";
215
+ };
216
+ };
217
+ ambient: {
218
+ fg: {
219
+ purpose: "color";
220
+ description: "Intended for use as the foreground color";
221
+ };
222
+ bg: {
223
+ purpose: "color";
224
+ description: "Intended for use as the background color";
225
+ };
226
+ border: {
227
+ purpose: "color";
228
+ description: "Intended for use as the border color, if desired";
229
+ };
230
+ };
231
+ };
232
+ text: {
233
+ primary: {
234
+ size: "font-size";
235
+ weight: "font-weight";
236
+ lineHeight: "line-height";
237
+ font: "font-family";
238
+ };
239
+ secondary: {
240
+ size: "font-size";
241
+ weight: "font-weight";
242
+ lineHeight: "line-height";
243
+ font: "font-family";
244
+ };
245
+ ambient: {
246
+ size: "font-size";
247
+ weight: "font-weight";
248
+ lineHeight: "line-height";
249
+ font: "font-family";
250
+ };
251
+ };
252
+ density: {
253
+ purpose: "scalar";
254
+ description: "A scaling factor for density. Higher density means smaller, tighter spacing and size";
255
+ };
256
+ spacing: {
257
+ $root: {
258
+ purpose: "spacing";
259
+ description: string;
260
+ };
261
+ xs: "spacing";
262
+ sm: "spacing";
263
+ md: "spacing";
264
+ lg: "spacing";
265
+ xl: "spacing";
266
+ };
267
+ lineWidth: {
268
+ $root: {
269
+ purpose: "border-width";
270
+ description: string;
271
+ };
272
+ sm: {
273
+ purpose: "border-width";
274
+ description: "A hairline border width. Always >= 1px. If the global border width is small, this may be the same as \"md\"";
275
+ };
276
+ md: {
277
+ purpose: "border-width";
278
+ description: "A general-purpose border width";
279
+ };
280
+ lg: {
281
+ purpose: "border-width";
282
+ description: "A thicker border, good for emphasis";
283
+ };
284
+ };
285
+ radius: {
286
+ $root: {
287
+ purpose: "border-radius";
288
+ description: string;
289
+ };
290
+ xs: "border-radius";
291
+ sm: "border-radius";
292
+ md: "border-radius";
293
+ lg: "border-radius";
294
+ xl: "border-radius";
295
+ };
296
+ shadow: {
297
+ $root: {
298
+ purpose: "shadow";
299
+ description: string;
300
+ };
301
+ color: {
302
+ purpose: "color";
303
+ description: "If specified, this token overrides shadow colors from primitives";
304
+ };
305
+ sm: {
306
+ x: {
307
+ purpose: "size";
308
+ description: "Horizontal offset of the shadow";
309
+ };
310
+ y: {
311
+ purpose: "size";
312
+ description: "Vertical offset of the shadow";
313
+ };
314
+ blur: {
315
+ purpose: "size";
316
+ description: "Blur radius of the shadow";
317
+ };
318
+ spread: {
319
+ purpose: "size";
320
+ description: "Spread radius of the shadow";
321
+ };
322
+ color: {
323
+ purpose: "color";
324
+ description: "Color of the shadow";
325
+ };
326
+ $root: {
327
+ purpose: "shadow";
328
+ description: string;
329
+ };
330
+ };
331
+ md: {
332
+ x: {
333
+ purpose: "size";
334
+ description: "Horizontal offset of the shadow";
335
+ };
336
+ y: {
337
+ purpose: "size";
338
+ description: "Vertical offset of the shadow";
339
+ };
340
+ blur: {
341
+ purpose: "size";
342
+ description: "Blur radius of the shadow";
343
+ };
344
+ spread: {
345
+ purpose: "size";
346
+ description: "Spread radius of the shadow";
347
+ };
348
+ color: {
349
+ purpose: "color";
350
+ description: "Color of the shadow";
351
+ };
352
+ $root: {
353
+ purpose: "shadow";
354
+ description: string;
355
+ };
356
+ };
357
+ lg: {
358
+ x: {
359
+ purpose: "size";
360
+ description: "Horizontal offset of the shadow";
361
+ };
362
+ y: {
363
+ purpose: "size";
364
+ description: "Vertical offset of the shadow";
365
+ };
366
+ blur: {
367
+ purpose: "size";
368
+ description: "Blur radius of the shadow";
369
+ };
370
+ spread: {
371
+ purpose: "size";
372
+ description: "Spread radius of the shadow";
373
+ };
374
+ color: {
375
+ purpose: "color";
376
+ description: "Color of the shadow";
377
+ };
378
+ $root: {
379
+ purpose: "shadow";
380
+ description: string;
381
+ };
382
+ };
383
+ xl: {
384
+ x: {
385
+ purpose: "size";
386
+ description: "Horizontal offset of the shadow";
387
+ };
388
+ y: {
389
+ purpose: "size";
390
+ description: "Vertical offset of the shadow";
391
+ };
392
+ blur: {
393
+ purpose: "size";
394
+ description: "Blur radius of the shadow";
395
+ };
396
+ spread: {
397
+ purpose: "size";
398
+ description: "Spread radius of the shadow";
399
+ };
400
+ color: {
401
+ purpose: "color";
402
+ description: "Color of the shadow";
403
+ };
404
+ $root: {
405
+ purpose: "shadow";
406
+ description: string;
407
+ };
408
+ };
409
+ };
410
+ easing: {
411
+ $root: {
412
+ purpose: "easing-function";
413
+ description: string;
414
+ };
415
+ tight: {
416
+ purpose: "easing-function";
417
+ description: "A short, snappy easing, good for tight interactions";
418
+ };
419
+ medium: {
420
+ purpose: "easing-function";
421
+ description: "A medium easing, good for general use";
422
+ };
423
+ loose: {
424
+ purpose: "easing-function";
425
+ description: "A long, relaxed easing, good for slow interactions and animations";
426
+ };
427
+ };
428
+ duration: {
429
+ $root: {
430
+ purpose: "duration";
431
+ description: string;
432
+ };
433
+ fast: {
434
+ purpose: "duration";
435
+ description: "A short, snappy duration, good for fast interactions and large animations";
436
+ };
437
+ medium: {
438
+ purpose: "duration";
439
+ description: "A medium duration, good for general use, fast enough for interactions";
440
+ };
441
+ slow: {
442
+ purpose: "duration";
443
+ description: "A long, relaxed duration, good for slow interactions and animations";
444
+ };
445
+ };
446
+ };
447
+ export type ArborModeSchema = typeof arborModeSchema;
448
+ //# sourceMappingURL=modeSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modeSchema.d.ts","sourceRoot":"","sources":["../../../src/presets/arborPreset/modeSchema.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsOC,CAAC;AAE9B,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC"}