@unocss/preset-mini 66.5.11 → 66.5.12
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/colors-C9l2trjD.d.mts +431 -0
- package/dist/colors.d.mts +1 -1
- package/dist/{index-RNt7vgvR.d.mts → index-CnsmLem5.d.mts} +4 -2
- package/dist/index.d.mts +4 -4
- package/dist/rules.d.mts +3 -1
- package/dist/{theme-B_nKnyti.d.mts → theme-5nLH7UVx.d.mts} +3 -2
- package/dist/theme.d.mts +2 -2
- package/dist/utils-CNv_IKMQ.d.mts +122 -0
- package/dist/utils.d.mts +5 -2
- package/dist/variants.d.mts +5 -2
- package/package.json +4 -4
- package/dist/colors-CdGFctaC.d.mts +0 -1377
- package/dist/utils-BIIzJZek.d.mts +0 -234
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { Arrayable, CSSObject } from "@unocss/core";
|
|
2
|
+
|
|
3
|
+
//#region src/_theme/types.d.ts
|
|
4
|
+
interface ThemeAnimation {
|
|
5
|
+
keyframes?: Record<string, string>;
|
|
6
|
+
durations?: Record<string, string>;
|
|
7
|
+
timingFns?: Record<string, string>;
|
|
8
|
+
properties?: Record<string, object>;
|
|
9
|
+
counts?: Record<string, string | number>;
|
|
10
|
+
category?: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
interface Colors {
|
|
13
|
+
[key: string]: Colors & {
|
|
14
|
+
DEFAULT?: string;
|
|
15
|
+
} | string;
|
|
16
|
+
}
|
|
17
|
+
interface Theme {
|
|
18
|
+
width?: Record<string, string>;
|
|
19
|
+
height?: Record<string, string>;
|
|
20
|
+
maxWidth?: Record<string, string>;
|
|
21
|
+
maxHeight?: Record<string, string>;
|
|
22
|
+
minWidth?: Record<string, string>;
|
|
23
|
+
minHeight?: Record<string, string>;
|
|
24
|
+
inlineSize?: Record<string, string>;
|
|
25
|
+
blockSize?: Record<string, string>;
|
|
26
|
+
maxInlineSize?: Record<string, string>;
|
|
27
|
+
maxBlockSize?: Record<string, string>;
|
|
28
|
+
minInlineSize?: Record<string, string>;
|
|
29
|
+
minBlockSize?: Record<string, string>;
|
|
30
|
+
borderRadius?: Record<string, string>;
|
|
31
|
+
breakpoints?: Record<string, string>;
|
|
32
|
+
verticalBreakpoints?: Record<string, string>;
|
|
33
|
+
colors?: Colors;
|
|
34
|
+
borderColor?: Colors;
|
|
35
|
+
backgroundColor?: Colors;
|
|
36
|
+
textColor?: Colors;
|
|
37
|
+
shadowColor?: Colors;
|
|
38
|
+
accentColor?: Colors;
|
|
39
|
+
fontFamily?: Record<string, string>;
|
|
40
|
+
fontSize?: Record<string, string | [string, string | CSSObject] | [string, string, string]>;
|
|
41
|
+
fontWeight?: Record<string, string>;
|
|
42
|
+
lineHeight?: Record<string, string>;
|
|
43
|
+
letterSpacing?: Record<string, string>;
|
|
44
|
+
wordSpacing?: Record<string, string>;
|
|
45
|
+
boxShadow?: Record<string, string | string[]>;
|
|
46
|
+
textIndent?: Record<string, string>;
|
|
47
|
+
textShadow?: Record<string, string | string[]>;
|
|
48
|
+
textStrokeWidth?: Record<string, string>;
|
|
49
|
+
ringWidth?: Record<string, string>;
|
|
50
|
+
lineWidth?: Record<string, string>;
|
|
51
|
+
spacing?: Record<string, string>;
|
|
52
|
+
duration?: Record<string, string>;
|
|
53
|
+
aria?: Record<string, string>;
|
|
54
|
+
data?: Record<string, string>;
|
|
55
|
+
zIndex?: Record<string, string>;
|
|
56
|
+
blur?: Record<string, string>;
|
|
57
|
+
dropShadow?: Record<string, string | string[]>;
|
|
58
|
+
easing?: Record<string, string>;
|
|
59
|
+
transitionProperty?: Record<string, string>;
|
|
60
|
+
media?: Record<string, string>;
|
|
61
|
+
supports?: Record<string, string>;
|
|
62
|
+
containers?: Record<string, string>;
|
|
63
|
+
animation?: ThemeAnimation;
|
|
64
|
+
gridAutoColumn?: Record<string, string>;
|
|
65
|
+
gridAutoRow?: Record<string, string>;
|
|
66
|
+
gridColumn?: Record<string, string>;
|
|
67
|
+
gridRow?: Record<string, string>;
|
|
68
|
+
gridTemplateColumn?: Record<string, string>;
|
|
69
|
+
gridTemplateRow?: Record<string, string>;
|
|
70
|
+
container?: {
|
|
71
|
+
center?: boolean;
|
|
72
|
+
padding?: string | Record<string, string>;
|
|
73
|
+
maxWidth?: Record<string, string>;
|
|
74
|
+
};
|
|
75
|
+
/** Used to generate CSS custom properties placeholder in preflight */
|
|
76
|
+
preflightRoot?: Arrayable<string>;
|
|
77
|
+
preflightBase?: Record<string, string | number>;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/_theme/colors.d.ts
|
|
81
|
+
declare const colors: {
|
|
82
|
+
inherit: string;
|
|
83
|
+
current: string;
|
|
84
|
+
transparent: string;
|
|
85
|
+
black: string;
|
|
86
|
+
white: string;
|
|
87
|
+
rose: {
|
|
88
|
+
50: string;
|
|
89
|
+
100: string;
|
|
90
|
+
200: string;
|
|
91
|
+
300: string;
|
|
92
|
+
400: string;
|
|
93
|
+
500: string;
|
|
94
|
+
600: string;
|
|
95
|
+
700: string;
|
|
96
|
+
800: string;
|
|
97
|
+
900: string;
|
|
98
|
+
950: string;
|
|
99
|
+
};
|
|
100
|
+
pink: {
|
|
101
|
+
50: string;
|
|
102
|
+
100: string;
|
|
103
|
+
200: string;
|
|
104
|
+
300: string;
|
|
105
|
+
400: string;
|
|
106
|
+
500: string;
|
|
107
|
+
600: string;
|
|
108
|
+
700: string;
|
|
109
|
+
800: string;
|
|
110
|
+
900: string;
|
|
111
|
+
950: string;
|
|
112
|
+
};
|
|
113
|
+
fuchsia: {
|
|
114
|
+
50: string;
|
|
115
|
+
100: string;
|
|
116
|
+
200: string;
|
|
117
|
+
300: string;
|
|
118
|
+
400: string;
|
|
119
|
+
500: string;
|
|
120
|
+
600: string;
|
|
121
|
+
700: string;
|
|
122
|
+
800: string;
|
|
123
|
+
900: string;
|
|
124
|
+
950: string;
|
|
125
|
+
};
|
|
126
|
+
purple: {
|
|
127
|
+
50: string;
|
|
128
|
+
100: string;
|
|
129
|
+
200: string;
|
|
130
|
+
300: string;
|
|
131
|
+
400: string;
|
|
132
|
+
500: string;
|
|
133
|
+
600: string;
|
|
134
|
+
700: string;
|
|
135
|
+
800: string;
|
|
136
|
+
900: string;
|
|
137
|
+
950: string;
|
|
138
|
+
};
|
|
139
|
+
violet: {
|
|
140
|
+
50: string;
|
|
141
|
+
100: string;
|
|
142
|
+
200: string;
|
|
143
|
+
300: string;
|
|
144
|
+
400: string;
|
|
145
|
+
500: string;
|
|
146
|
+
600: string;
|
|
147
|
+
700: string;
|
|
148
|
+
800: string;
|
|
149
|
+
900: string;
|
|
150
|
+
950: string;
|
|
151
|
+
};
|
|
152
|
+
indigo: {
|
|
153
|
+
50: string;
|
|
154
|
+
100: string;
|
|
155
|
+
200: string;
|
|
156
|
+
300: string;
|
|
157
|
+
400: string;
|
|
158
|
+
500: string;
|
|
159
|
+
600: string;
|
|
160
|
+
700: string;
|
|
161
|
+
800: string;
|
|
162
|
+
900: string;
|
|
163
|
+
950: string;
|
|
164
|
+
};
|
|
165
|
+
blue: {
|
|
166
|
+
50: string;
|
|
167
|
+
100: string;
|
|
168
|
+
200: string;
|
|
169
|
+
300: string;
|
|
170
|
+
400: string;
|
|
171
|
+
500: string;
|
|
172
|
+
600: string;
|
|
173
|
+
700: string;
|
|
174
|
+
800: string;
|
|
175
|
+
900: string;
|
|
176
|
+
950: string;
|
|
177
|
+
};
|
|
178
|
+
sky: {
|
|
179
|
+
50: string;
|
|
180
|
+
100: string;
|
|
181
|
+
200: string;
|
|
182
|
+
300: string;
|
|
183
|
+
400: string;
|
|
184
|
+
500: string;
|
|
185
|
+
600: string;
|
|
186
|
+
700: string;
|
|
187
|
+
800: string;
|
|
188
|
+
900: string;
|
|
189
|
+
950: string;
|
|
190
|
+
};
|
|
191
|
+
cyan: {
|
|
192
|
+
50: string;
|
|
193
|
+
100: string;
|
|
194
|
+
200: string;
|
|
195
|
+
300: string;
|
|
196
|
+
400: string;
|
|
197
|
+
500: string;
|
|
198
|
+
600: string;
|
|
199
|
+
700: string;
|
|
200
|
+
800: string;
|
|
201
|
+
900: string;
|
|
202
|
+
950: string;
|
|
203
|
+
};
|
|
204
|
+
teal: {
|
|
205
|
+
50: string;
|
|
206
|
+
100: string;
|
|
207
|
+
200: string;
|
|
208
|
+
300: string;
|
|
209
|
+
400: string;
|
|
210
|
+
500: string;
|
|
211
|
+
600: string;
|
|
212
|
+
700: string;
|
|
213
|
+
800: string;
|
|
214
|
+
900: string;
|
|
215
|
+
950: string;
|
|
216
|
+
};
|
|
217
|
+
emerald: {
|
|
218
|
+
50: string;
|
|
219
|
+
100: string;
|
|
220
|
+
200: string;
|
|
221
|
+
300: string;
|
|
222
|
+
400: string;
|
|
223
|
+
500: string;
|
|
224
|
+
600: string;
|
|
225
|
+
700: string;
|
|
226
|
+
800: string;
|
|
227
|
+
900: string;
|
|
228
|
+
950: string;
|
|
229
|
+
};
|
|
230
|
+
green: {
|
|
231
|
+
50: string;
|
|
232
|
+
100: string;
|
|
233
|
+
200: string;
|
|
234
|
+
300: string;
|
|
235
|
+
400: string;
|
|
236
|
+
500: string;
|
|
237
|
+
600: string;
|
|
238
|
+
700: string;
|
|
239
|
+
800: string;
|
|
240
|
+
900: string;
|
|
241
|
+
950: string;
|
|
242
|
+
};
|
|
243
|
+
lime: {
|
|
244
|
+
50: string;
|
|
245
|
+
100: string;
|
|
246
|
+
200: string;
|
|
247
|
+
300: string;
|
|
248
|
+
400: string;
|
|
249
|
+
500: string;
|
|
250
|
+
600: string;
|
|
251
|
+
700: string;
|
|
252
|
+
800: string;
|
|
253
|
+
900: string;
|
|
254
|
+
950: string;
|
|
255
|
+
};
|
|
256
|
+
yellow: {
|
|
257
|
+
50: string;
|
|
258
|
+
100: string;
|
|
259
|
+
200: string;
|
|
260
|
+
300: string;
|
|
261
|
+
400: string;
|
|
262
|
+
500: string;
|
|
263
|
+
600: string;
|
|
264
|
+
700: string;
|
|
265
|
+
800: string;
|
|
266
|
+
900: string;
|
|
267
|
+
950: string;
|
|
268
|
+
};
|
|
269
|
+
amber: {
|
|
270
|
+
50: string;
|
|
271
|
+
100: string;
|
|
272
|
+
200: string;
|
|
273
|
+
300: string;
|
|
274
|
+
400: string;
|
|
275
|
+
500: string;
|
|
276
|
+
600: string;
|
|
277
|
+
700: string;
|
|
278
|
+
800: string;
|
|
279
|
+
900: string;
|
|
280
|
+
950: string;
|
|
281
|
+
};
|
|
282
|
+
orange: {
|
|
283
|
+
50: string;
|
|
284
|
+
100: string;
|
|
285
|
+
200: string;
|
|
286
|
+
300: string;
|
|
287
|
+
400: string;
|
|
288
|
+
500: string;
|
|
289
|
+
600: string;
|
|
290
|
+
700: string;
|
|
291
|
+
800: string;
|
|
292
|
+
900: string;
|
|
293
|
+
950: string;
|
|
294
|
+
};
|
|
295
|
+
red: {
|
|
296
|
+
50: string;
|
|
297
|
+
100: string;
|
|
298
|
+
200: string;
|
|
299
|
+
300: string;
|
|
300
|
+
400: string;
|
|
301
|
+
500: string;
|
|
302
|
+
600: string;
|
|
303
|
+
700: string;
|
|
304
|
+
800: string;
|
|
305
|
+
900: string;
|
|
306
|
+
950: string;
|
|
307
|
+
};
|
|
308
|
+
gray: {
|
|
309
|
+
50: string;
|
|
310
|
+
100: string;
|
|
311
|
+
200: string;
|
|
312
|
+
300: string;
|
|
313
|
+
400: string;
|
|
314
|
+
500: string;
|
|
315
|
+
600: string;
|
|
316
|
+
700: string;
|
|
317
|
+
800: string;
|
|
318
|
+
900: string;
|
|
319
|
+
950: string;
|
|
320
|
+
};
|
|
321
|
+
slate: {
|
|
322
|
+
50: string;
|
|
323
|
+
100: string;
|
|
324
|
+
200: string;
|
|
325
|
+
300: string;
|
|
326
|
+
400: string;
|
|
327
|
+
500: string;
|
|
328
|
+
600: string;
|
|
329
|
+
700: string;
|
|
330
|
+
800: string;
|
|
331
|
+
900: string;
|
|
332
|
+
950: string;
|
|
333
|
+
};
|
|
334
|
+
zinc: {
|
|
335
|
+
50: string;
|
|
336
|
+
100: string;
|
|
337
|
+
200: string;
|
|
338
|
+
300: string;
|
|
339
|
+
400: string;
|
|
340
|
+
500: string;
|
|
341
|
+
600: string;
|
|
342
|
+
700: string;
|
|
343
|
+
800: string;
|
|
344
|
+
900: string;
|
|
345
|
+
950: string;
|
|
346
|
+
};
|
|
347
|
+
neutral: {
|
|
348
|
+
50: string;
|
|
349
|
+
100: string;
|
|
350
|
+
200: string;
|
|
351
|
+
300: string;
|
|
352
|
+
400: string;
|
|
353
|
+
500: string;
|
|
354
|
+
600: string;
|
|
355
|
+
700: string;
|
|
356
|
+
800: string;
|
|
357
|
+
900: string;
|
|
358
|
+
950: string;
|
|
359
|
+
};
|
|
360
|
+
stone: {
|
|
361
|
+
50: string;
|
|
362
|
+
100: string;
|
|
363
|
+
200: string;
|
|
364
|
+
300: string;
|
|
365
|
+
400: string;
|
|
366
|
+
500: string;
|
|
367
|
+
600: string;
|
|
368
|
+
700: string;
|
|
369
|
+
800: string;
|
|
370
|
+
900: string;
|
|
371
|
+
950: string;
|
|
372
|
+
};
|
|
373
|
+
light: {
|
|
374
|
+
50: string;
|
|
375
|
+
100: string;
|
|
376
|
+
200: string;
|
|
377
|
+
300: string;
|
|
378
|
+
400: string;
|
|
379
|
+
500: string;
|
|
380
|
+
600: string;
|
|
381
|
+
700: string;
|
|
382
|
+
800: string;
|
|
383
|
+
900: string;
|
|
384
|
+
950: string;
|
|
385
|
+
};
|
|
386
|
+
dark: {
|
|
387
|
+
50: string;
|
|
388
|
+
100: string;
|
|
389
|
+
200: string;
|
|
390
|
+
300: string;
|
|
391
|
+
400: string;
|
|
392
|
+
500: string;
|
|
393
|
+
600: string;
|
|
394
|
+
700: string;
|
|
395
|
+
800: string;
|
|
396
|
+
900: string;
|
|
397
|
+
950: string;
|
|
398
|
+
};
|
|
399
|
+
readonly lightblue: string | (Colors & {
|
|
400
|
+
DEFAULT?: string;
|
|
401
|
+
});
|
|
402
|
+
readonly lightBlue: string | (Colors & {
|
|
403
|
+
DEFAULT?: string;
|
|
404
|
+
});
|
|
405
|
+
readonly warmgray: string | (Colors & {
|
|
406
|
+
DEFAULT?: string;
|
|
407
|
+
});
|
|
408
|
+
readonly warmGray: string | (Colors & {
|
|
409
|
+
DEFAULT?: string;
|
|
410
|
+
});
|
|
411
|
+
readonly truegray: string | (Colors & {
|
|
412
|
+
DEFAULT?: string;
|
|
413
|
+
});
|
|
414
|
+
readonly trueGray: string | (Colors & {
|
|
415
|
+
DEFAULT?: string;
|
|
416
|
+
});
|
|
417
|
+
readonly coolgray: string | (Colors & {
|
|
418
|
+
DEFAULT?: string;
|
|
419
|
+
});
|
|
420
|
+
readonly coolGray: string | (Colors & {
|
|
421
|
+
DEFAULT?: string;
|
|
422
|
+
});
|
|
423
|
+
readonly bluegray: string | (Colors & {
|
|
424
|
+
DEFAULT?: string;
|
|
425
|
+
});
|
|
426
|
+
readonly blueGray: string | (Colors & {
|
|
427
|
+
DEFAULT?: string;
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
//#endregion
|
|
431
|
+
export { ThemeAnimation as i, Colors as n, Theme as r, colors as t };
|
package/dist/colors.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as colors } from "./colors-
|
|
1
|
+
import { t as colors } from "./colors-C9l2trjD.mjs";
|
|
2
2
|
export { colors };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as Theme } from "./colors-C9l2trjD.mjs";
|
|
2
|
+
import * as _unocss_core0 from "@unocss/core";
|
|
3
|
+
import { Postprocessor, Preflight, PresetOptions } from "@unocss/core";
|
|
2
4
|
|
|
3
5
|
//#region src/preflights.d.ts
|
|
4
6
|
declare function preflights(options: PresetMiniOptions): Preflight<Theme>[] | undefined;
|
|
@@ -63,7 +65,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
63
65
|
*
|
|
64
66
|
* @see https://unocss.dev/presets/mini
|
|
65
67
|
*/
|
|
66
|
-
declare const presetMini: PresetFactory<Theme, PresetMiniOptions>;
|
|
68
|
+
declare const presetMini: _unocss_core0.PresetFactory<Theme, PresetMiniOptions>;
|
|
67
69
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
|
68
70
|
//#endregion
|
|
69
71
|
export { preflights as a, presetMini as i, PresetMiniOptions as n, VarPrefixPostprocessor as r, DarkModeSelectors as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ThemeAnimation, r as Theme, t as colors } from "./colors-
|
|
2
|
-
import { N as theme } from "./theme-
|
|
3
|
-
import { a as preflights, i as presetMini, n as PresetMiniOptions, r as VarPrefixPostprocessor, t as DarkModeSelectors } from "./index-
|
|
4
|
-
import { l as parseColor } from "./utils-
|
|
1
|
+
import { i as ThemeAnimation, r as Theme, t as colors } from "./colors-C9l2trjD.mjs";
|
|
2
|
+
import { N as theme } from "./theme-5nLH7UVx.mjs";
|
|
3
|
+
import { a as preflights, i as presetMini, n as PresetMiniOptions, r as VarPrefixPostprocessor, t as DarkModeSelectors } from "./index-CnsmLem5.mjs";
|
|
4
|
+
import { l as parseColor } from "./utils-CNv_IKMQ.mjs";
|
|
5
5
|
export { DarkModeSelectors, PresetMiniOptions, Theme, ThemeAnimation, VarPrefixPostprocessor, colors, presetMini as default, presetMini, parseColor, preflights, theme };
|
package/dist/rules.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as Theme } from "./colors-C9l2trjD.mjs";
|
|
2
|
+
import "./theme-5nLH7UVx.mjs";
|
|
3
|
+
import { CSSEntries, Rule, StaticRule } from "@unocss/core";
|
|
2
4
|
|
|
3
5
|
//#region src/_rules/align.d.ts
|
|
4
6
|
declare const verticalAligns: Rule[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { n as Colors, r as Theme
|
|
1
|
+
import { n as Colors, r as Theme } from "./colors-C9l2trjD.mjs";
|
|
2
|
+
import * as _unocss_core0 from "@unocss/core";
|
|
2
3
|
|
|
3
4
|
//#region src/_theme/default.d.ts
|
|
4
5
|
declare const theme: {
|
|
@@ -548,7 +549,7 @@ declare const theme: {
|
|
|
548
549
|
serif: string;
|
|
549
550
|
mono: string;
|
|
550
551
|
};
|
|
551
|
-
fontSize: Record<string, string | [string, string | CSSObject] | [string, string, string]> | undefined;
|
|
552
|
+
fontSize: Record<string, string | [string, string | _unocss_core0.CSSObject] | [string, string, string]> | undefined;
|
|
552
553
|
fontWeight: {
|
|
553
554
|
thin: string;
|
|
554
555
|
extralight: string;
|
package/dist/theme.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as ThemeAnimation, n as Colors, r as Theme, t as colors } from "./colors-
|
|
2
|
-
import { A as wordSpacing, C as fontSize, D as textIndent, E as lineHeight, M as dropShadow, N as theme, O as textShadow, S as fontFamily, T as letterSpacing, _ as media, a as inlineSize, b as verticalBreakpoints, c as maxInlineSize, d as preflightBase, f as borderRadius, g as lineWidth, h as duration, i as height, j as blur, k as textStrokeWidth, l as maxWidth, m as breakpoints, n as blockSize, o as maxBlockSize, p as boxShadow, r as containers, s as maxHeight, t as baseSize, u as width, v as ringWidth, w as fontWeight, x as zIndex, y as spacing } from "./theme-
|
|
1
|
+
import { i as ThemeAnimation, n as Colors, r as Theme, t as colors } from "./colors-C9l2trjD.mjs";
|
|
2
|
+
import { A as wordSpacing, C as fontSize, D as textIndent, E as lineHeight, M as dropShadow, N as theme, O as textShadow, S as fontFamily, T as letterSpacing, _ as media, a as inlineSize, b as verticalBreakpoints, c as maxInlineSize, d as preflightBase, f as borderRadius, g as lineWidth, h as duration, i as height, j as blur, k as textStrokeWidth, l as maxWidth, m as breakpoints, n as blockSize, o as maxBlockSize, p as boxShadow, r as containers, s as maxHeight, t as baseSize, u as width, v as ringWidth, w as fontWeight, x as zIndex, y as spacing } from "./theme-5nLH7UVx.mjs";
|
|
3
3
|
export { Colors, Theme, ThemeAnimation, baseSize, blockSize, blur, borderRadius, boxShadow, breakpoints, colors, containers, dropShadow, duration, fontFamily, fontSize, fontWeight, height, inlineSize, letterSpacing, lineHeight, lineWidth, maxBlockSize, maxHeight, maxInlineSize, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, theme, verticalBreakpoints, width, wordSpacing, zIndex };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-gol_9zmq.mjs";
|
|
2
|
+
import { r as Theme } from "./colors-C9l2trjD.mjs";
|
|
3
|
+
import { CSSObject, DynamicMatcher, StaticRule, VariantContext } from "@unocss/core";
|
|
4
|
+
import * as _unocss_rule_utils0 from "@unocss/rule-utils";
|
|
5
|
+
import { ParsedColorValue } from "@unocss/rule-utils";
|
|
6
|
+
|
|
7
|
+
//#region src/_utils/handlers/handlers.d.ts
|
|
8
|
+
declare namespace handlers_d_exports {
|
|
9
|
+
export { auto, bracket, bracketOfColor, bracketOfLength, bracketOfPosition, cssvar, degree, fraction, global, number, numberWithUnit, percent, position, properties, px, rem, time };
|
|
10
|
+
}
|
|
11
|
+
declare function numberWithUnit(str: string): string | undefined;
|
|
12
|
+
declare function auto(str: string): "auto" | undefined;
|
|
13
|
+
declare function rem(str: string): string | undefined;
|
|
14
|
+
declare function px(str: string): string | undefined;
|
|
15
|
+
declare function number(str: string): number | undefined;
|
|
16
|
+
declare function percent(str: string): string | undefined;
|
|
17
|
+
declare function fraction(str: string): string | undefined;
|
|
18
|
+
declare function bracket(str: string): string | undefined;
|
|
19
|
+
declare function bracketOfColor(str: string): string | undefined;
|
|
20
|
+
declare function bracketOfLength(str: string): string | undefined;
|
|
21
|
+
declare function bracketOfPosition(str: string): string | undefined;
|
|
22
|
+
declare function cssvar(str: string): string | undefined;
|
|
23
|
+
declare function time(str: string): string | undefined;
|
|
24
|
+
declare function degree(str: string): string | undefined;
|
|
25
|
+
declare function global(str: string): string | undefined;
|
|
26
|
+
declare function properties(str: string): string | undefined;
|
|
27
|
+
declare function position(str: string): string | undefined;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/_utils/handlers/index.d.ts
|
|
30
|
+
declare const handler: _unocss_rule_utils0.ValueHandler<"number" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties", object>;
|
|
31
|
+
declare const h: _unocss_rule_utils0.ValueHandler<"number" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "global" | "properties", object>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/_utils/mappings.d.ts
|
|
34
|
+
declare const directionMap: Record<string, string[]>;
|
|
35
|
+
declare const insetMap: Record<string, string[]>;
|
|
36
|
+
declare const cornerMap: Record<string, string[]>;
|
|
37
|
+
declare const xyzMap: Record<string, string[]>;
|
|
38
|
+
declare const xyzArray: string[];
|
|
39
|
+
declare const positionMap: Record<string, string>;
|
|
40
|
+
declare const globalKeywords: string[];
|
|
41
|
+
declare const cssMathFnRE: RegExp;
|
|
42
|
+
declare const cssVarFnRE: RegExp;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/_utils/utilities.d.ts
|
|
45
|
+
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
46
|
+
/**
|
|
47
|
+
* Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
|
|
48
|
+
*
|
|
49
|
+
* @param propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
|
|
50
|
+
* @see {@link directionMap}
|
|
51
|
+
*/
|
|
52
|
+
declare function directionSize(propertyPrefix: string): DynamicMatcher;
|
|
53
|
+
type ThemeColorKeys = 'colors' | 'borderColor' | 'backgroundColor' | 'textColor' | 'shadowColor' | 'accentColor';
|
|
54
|
+
/**
|
|
55
|
+
* Split utility shorthand delimited by / or :
|
|
56
|
+
*/
|
|
57
|
+
declare function splitShorthand(body: string, type: string): string[] | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Parse color string into {@link ParsedColorValue} (if possible). Color value will first be matched to theme object before parsing.
|
|
60
|
+
* See also color.tests.ts for more examples.
|
|
61
|
+
*
|
|
62
|
+
* @example Parseable strings:
|
|
63
|
+
* 'red' // From theme, if 'red' is available
|
|
64
|
+
* 'red-100' // From theme, plus scale
|
|
65
|
+
* 'red-100/20' // From theme, plus scale/opacity
|
|
66
|
+
* '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
|
|
67
|
+
*
|
|
68
|
+
* @param body - Color string to be parsed.
|
|
69
|
+
* @param theme - {@link Theme} object.
|
|
70
|
+
* @return object if string is parseable.
|
|
71
|
+
*/
|
|
72
|
+
declare function parseColor(body: string, theme: Theme, key?: ThemeColorKeys): ParsedColorValue | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Provide {@link DynamicMatcher} function to produce color value matched from rule.
|
|
75
|
+
*
|
|
76
|
+
* @see {@link parseColor}
|
|
77
|
+
*
|
|
78
|
+
* @example Resolving 'red' from theme:
|
|
79
|
+
* colorResolver('background-color', 'background')('', 'red')
|
|
80
|
+
* return { 'background-color': '#f12' }
|
|
81
|
+
*
|
|
82
|
+
* @example Resolving 'red-100' from theme:
|
|
83
|
+
* colorResolver('background-color', 'background')('', 'red-100')
|
|
84
|
+
* return { '--un-background-opacity': '1', 'background-color': 'rgb(254 226 226 / var(--un-background-opacity))' }
|
|
85
|
+
*
|
|
86
|
+
* @example Resolving 'red-100/20' from theme:
|
|
87
|
+
* colorResolver('background-color', 'background')('', 'red-100/20')
|
|
88
|
+
* return { 'background-color': 'rgb(204 251 241 / 0.22)' }
|
|
89
|
+
*
|
|
90
|
+
* @example Resolving 'hex-124':
|
|
91
|
+
* colorResolver('color', 'text')('', 'hex-124')
|
|
92
|
+
* return { '--un-text-opacity': '1', 'color': 'rgb(17 34 68 / var(--un-text-opacity))' }
|
|
93
|
+
*
|
|
94
|
+
* @param property - Property for the css value to be created.
|
|
95
|
+
* @param varName - Base name for the opacity variable.
|
|
96
|
+
* @param [key] - Theme key to select the color from.
|
|
97
|
+
* @param [shouldPass] - Function to decide whether to pass the css.
|
|
98
|
+
* @return object.
|
|
99
|
+
*/
|
|
100
|
+
declare function colorResolver(property: string, varName: string, key?: ThemeColorKeys, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
|
|
101
|
+
declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
|
|
102
|
+
declare function hasParseableColor(color: string | undefined, theme: Theme, key: ThemeColorKeys): boolean;
|
|
103
|
+
declare function resolveBreakpoints({
|
|
104
|
+
theme,
|
|
105
|
+
generator
|
|
106
|
+
}: Readonly<VariantContext<Theme>>, key?: 'breakpoints' | 'verticalBreakpoints'): {
|
|
107
|
+
point: string;
|
|
108
|
+
size: string;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>): {
|
|
111
|
+
point: string;
|
|
112
|
+
size: string;
|
|
113
|
+
}[] | undefined;
|
|
114
|
+
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
115
|
+
declare function isCSSMathFn(value: string | undefined): boolean;
|
|
116
|
+
declare function isSize(str: string): boolean;
|
|
117
|
+
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
118
|
+
declare namespace utils_d_exports {
|
|
119
|
+
export { CONTROL_MINI_NO_NEGATIVE, colorResolver, colorableShadows, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, parseColor, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers_d_exports as valueHandlers, xyzArray, xyzMap };
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
122
|
+
export { h as C, xyzMap as S, handlers_d_exports as T, directionMap as _, hasParseableColor as a, positionMap as b, makeGlobalStaticRules as c, resolveVerticalBreakpoints as d, splitShorthand as f, cssVarFnRE as g, cssMathFnRE as h, directionSize as i, parseColor as l, cornerMap as m, colorResolver as n, isCSSMathFn as o, transformXYZ as p, colorableShadows as r, isSize as s, CONTROL_MINI_NO_NEGATIVE as t, resolveBreakpoints as u, globalKeywords as v, handler as w, xyzArray as x, insetMap as y };
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "./colors-C9l2trjD.mjs";
|
|
2
|
+
import "./theme-5nLH7UVx.mjs";
|
|
3
|
+
import { C as h, S as xyzMap, T as handlers_d_exports, _ as directionMap, a as hasParseableColor, b as positionMap, c as makeGlobalStaticRules, d as resolveVerticalBreakpoints, f as splitShorthand, g as cssVarFnRE, h as cssMathFnRE, i as directionSize, l as parseColor, m as cornerMap, n as colorResolver, o as isCSSMathFn, p as transformXYZ, r as colorableShadows, s as isSize, t as CONTROL_MINI_NO_NEGATIVE, u as resolveBreakpoints, v as globalKeywords, w as handler, x as xyzArray, y as insetMap } from "./utils-CNv_IKMQ.mjs";
|
|
4
|
+
export * from "@unocss/rule-utils";
|
|
5
|
+
export { CONTROL_MINI_NO_NEGATIVE, colorResolver, colorableShadows, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, parseColor, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers_d_exports as valueHandlers, xyzArray, xyzMap };
|
package/dist/variants.d.mts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { r as Theme } from "./colors-C9l2trjD.mjs";
|
|
2
|
+
import "./theme-5nLH7UVx.mjs";
|
|
3
|
+
import { n as PresetMiniOptions } from "./index-CnsmLem5.mjs";
|
|
4
|
+
import "./utils-CNv_IKMQ.mjs";
|
|
5
|
+
import { Variant, VariantObject } from "@unocss/core";
|
|
3
6
|
|
|
4
7
|
//#region src/_variants/aria.d.ts
|
|
5
8
|
declare const variantAria: VariantObject;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.5.
|
|
4
|
+
"version": "66.5.12",
|
|
5
5
|
"description": "The minimal preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"dist"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@unocss/core": "66.5.
|
|
60
|
-
"@unocss/
|
|
61
|
-
"@unocss/
|
|
59
|
+
"@unocss/core": "66.5.12",
|
|
60
|
+
"@unocss/extractor-arbitrary-variants": "66.5.12",
|
|
61
|
+
"@unocss/rule-utils": "66.5.12"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "tsdown",
|