@unocss/preset-wind 66.5.12 → 66.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/colors.d.mts CHANGED
@@ -1,354 +1 @@
1
- import { t as Colors } from "./types-DPK9k_oB.mjs";
2
-
3
- //#region ../../packages-presets/preset-mini/src/_theme/colors.d.ts
4
- declare const colors: {
5
- inherit: string;
6
- current: string;
7
- transparent: string;
8
- black: string;
9
- white: string;
10
- rose: {
11
- 50: string;
12
- 100: string;
13
- 200: string;
14
- 300: string;
15
- 400: string;
16
- 500: string;
17
- 600: string;
18
- 700: string;
19
- 800: string;
20
- 900: string;
21
- 950: string;
22
- };
23
- pink: {
24
- 50: string;
25
- 100: string;
26
- 200: string;
27
- 300: string;
28
- 400: string;
29
- 500: string;
30
- 600: string;
31
- 700: string;
32
- 800: string;
33
- 900: string;
34
- 950: string;
35
- };
36
- fuchsia: {
37
- 50: string;
38
- 100: string;
39
- 200: string;
40
- 300: string;
41
- 400: string;
42
- 500: string;
43
- 600: string;
44
- 700: string;
45
- 800: string;
46
- 900: string;
47
- 950: string;
48
- };
49
- purple: {
50
- 50: string;
51
- 100: string;
52
- 200: string;
53
- 300: string;
54
- 400: string;
55
- 500: string;
56
- 600: string;
57
- 700: string;
58
- 800: string;
59
- 900: string;
60
- 950: string;
61
- };
62
- violet: {
63
- 50: string;
64
- 100: string;
65
- 200: string;
66
- 300: string;
67
- 400: string;
68
- 500: string;
69
- 600: string;
70
- 700: string;
71
- 800: string;
72
- 900: string;
73
- 950: string;
74
- };
75
- indigo: {
76
- 50: string;
77
- 100: string;
78
- 200: string;
79
- 300: string;
80
- 400: string;
81
- 500: string;
82
- 600: string;
83
- 700: string;
84
- 800: string;
85
- 900: string;
86
- 950: string;
87
- };
88
- blue: {
89
- 50: string;
90
- 100: string;
91
- 200: string;
92
- 300: string;
93
- 400: string;
94
- 500: string;
95
- 600: string;
96
- 700: string;
97
- 800: string;
98
- 900: string;
99
- 950: string;
100
- };
101
- sky: {
102
- 50: string;
103
- 100: string;
104
- 200: string;
105
- 300: string;
106
- 400: string;
107
- 500: string;
108
- 600: string;
109
- 700: string;
110
- 800: string;
111
- 900: string;
112
- 950: string;
113
- };
114
- cyan: {
115
- 50: string;
116
- 100: string;
117
- 200: string;
118
- 300: string;
119
- 400: string;
120
- 500: string;
121
- 600: string;
122
- 700: string;
123
- 800: string;
124
- 900: string;
125
- 950: string;
126
- };
127
- teal: {
128
- 50: string;
129
- 100: string;
130
- 200: string;
131
- 300: string;
132
- 400: string;
133
- 500: string;
134
- 600: string;
135
- 700: string;
136
- 800: string;
137
- 900: string;
138
- 950: string;
139
- };
140
- emerald: {
141
- 50: string;
142
- 100: string;
143
- 200: string;
144
- 300: string;
145
- 400: string;
146
- 500: string;
147
- 600: string;
148
- 700: string;
149
- 800: string;
150
- 900: string;
151
- 950: string;
152
- };
153
- green: {
154
- 50: string;
155
- 100: string;
156
- 200: string;
157
- 300: string;
158
- 400: string;
159
- 500: string;
160
- 600: string;
161
- 700: string;
162
- 800: string;
163
- 900: string;
164
- 950: string;
165
- };
166
- lime: {
167
- 50: string;
168
- 100: string;
169
- 200: string;
170
- 300: string;
171
- 400: string;
172
- 500: string;
173
- 600: string;
174
- 700: string;
175
- 800: string;
176
- 900: string;
177
- 950: string;
178
- };
179
- yellow: {
180
- 50: string;
181
- 100: string;
182
- 200: string;
183
- 300: string;
184
- 400: string;
185
- 500: string;
186
- 600: string;
187
- 700: string;
188
- 800: string;
189
- 900: string;
190
- 950: string;
191
- };
192
- amber: {
193
- 50: string;
194
- 100: string;
195
- 200: string;
196
- 300: string;
197
- 400: string;
198
- 500: string;
199
- 600: string;
200
- 700: string;
201
- 800: string;
202
- 900: string;
203
- 950: string;
204
- };
205
- orange: {
206
- 50: string;
207
- 100: string;
208
- 200: string;
209
- 300: string;
210
- 400: string;
211
- 500: string;
212
- 600: string;
213
- 700: string;
214
- 800: string;
215
- 900: string;
216
- 950: string;
217
- };
218
- red: {
219
- 50: string;
220
- 100: string;
221
- 200: string;
222
- 300: string;
223
- 400: string;
224
- 500: string;
225
- 600: string;
226
- 700: string;
227
- 800: string;
228
- 900: string;
229
- 950: string;
230
- };
231
- gray: {
232
- 50: string;
233
- 100: string;
234
- 200: string;
235
- 300: string;
236
- 400: string;
237
- 500: string;
238
- 600: string;
239
- 700: string;
240
- 800: string;
241
- 900: string;
242
- 950: string;
243
- };
244
- slate: {
245
- 50: string;
246
- 100: string;
247
- 200: string;
248
- 300: string;
249
- 400: string;
250
- 500: string;
251
- 600: string;
252
- 700: string;
253
- 800: string;
254
- 900: string;
255
- 950: string;
256
- };
257
- zinc: {
258
- 50: string;
259
- 100: string;
260
- 200: string;
261
- 300: string;
262
- 400: string;
263
- 500: string;
264
- 600: string;
265
- 700: string;
266
- 800: string;
267
- 900: string;
268
- 950: string;
269
- };
270
- neutral: {
271
- 50: string;
272
- 100: string;
273
- 200: string;
274
- 300: string;
275
- 400: string;
276
- 500: string;
277
- 600: string;
278
- 700: string;
279
- 800: string;
280
- 900: string;
281
- 950: string;
282
- };
283
- stone: {
284
- 50: string;
285
- 100: string;
286
- 200: string;
287
- 300: string;
288
- 400: string;
289
- 500: string;
290
- 600: string;
291
- 700: string;
292
- 800: string;
293
- 900: string;
294
- 950: string;
295
- };
296
- light: {
297
- 50: string;
298
- 100: string;
299
- 200: string;
300
- 300: string;
301
- 400: string;
302
- 500: string;
303
- 600: string;
304
- 700: string;
305
- 800: string;
306
- 900: string;
307
- 950: string;
308
- };
309
- dark: {
310
- 50: string;
311
- 100: string;
312
- 200: string;
313
- 300: string;
314
- 400: string;
315
- 500: string;
316
- 600: string;
317
- 700: string;
318
- 800: string;
319
- 900: string;
320
- 950: string;
321
- };
322
- readonly lightblue: string | (Colors & {
323
- DEFAULT?: string;
324
- });
325
- readonly lightBlue: string | (Colors & {
326
- DEFAULT?: string;
327
- });
328
- readonly warmgray: string | (Colors & {
329
- DEFAULT?: string;
330
- });
331
- readonly warmGray: string | (Colors & {
332
- DEFAULT?: string;
333
- });
334
- readonly truegray: string | (Colors & {
335
- DEFAULT?: string;
336
- });
337
- readonly trueGray: string | (Colors & {
338
- DEFAULT?: string;
339
- });
340
- readonly coolgray: string | (Colors & {
341
- DEFAULT?: string;
342
- });
343
- readonly coolGray: string | (Colors & {
344
- DEFAULT?: string;
345
- });
346
- readonly bluegray: string | (Colors & {
347
- DEFAULT?: string;
348
- });
349
- readonly blueGray: string | (Colors & {
350
- DEFAULT?: string;
351
- });
352
- };
353
- //#endregion
354
- export { colors };
1
+ export * from "@unocss/preset-wind3/colors";
package/dist/index.d.mts CHANGED
@@ -1,29 +1,11 @@
1
- import { r as PresetFactory } from "./types-DTddWOiY.mjs";
2
- import { n as Theme } from "./types-DPK9k_oB.mjs";
3
- import { n as PresetMiniOptions } from "./theme-CoTS1UVx.mjs";
1
+ import * as _unocss_core0 from "@unocss/core";
2
+ import { PresetWind3Options, Theme } from "@unocss/preset-wind3";
4
3
 
5
- //#region ../../packages-presets/preset-wind3/src/index.d.ts
6
-
7
- interface PresetWind3Options extends PresetMiniOptions {
8
- /**
9
- * The important option lets you control whether UnoCSS’s utilities should be marked with `!important`.
10
- *
11
- * This can be really useful when using UnoCSS with existing CSS that has high specificity selectors.
12
- *
13
- * You can also set `important` to a selector like `#app` instead, which will generate `#app :is(.m-1) { ... }`
14
- *
15
- * Also check out the compatibility with [:is()](https://caniuse.com/?search=%3Ais())
16
- *
17
- * @default false
18
- */
19
- important?: boolean | string;
20
- }
21
- //#endregion
22
4
  //#region src/index.d.ts
23
5
  interface PresetWindOptions extends PresetWind3Options {}
24
6
  /**
25
7
  * @deprecated Use `presetWind3` from `@unocss/preset-wind3` instead
26
8
  */
27
- declare const presetWind: PresetFactory<Theme, PresetWindOptions>;
9
+ declare const presetWind: _unocss_core0.PresetFactory<Theme, PresetWindOptions>;
28
10
  //#endregion
29
11
  export { PresetWindOptions, type Theme, presetWind as default, presetWind };
package/dist/theme.d.mts CHANGED
@@ -1,2 +1 @@
1
- import { t as theme } from "./theme-CoTS1UVx.mjs";
2
- export { theme };
1
+ export * from "@unocss/preset-wind3/theme";
package/dist/utils.d.mts CHANGED
@@ -1,124 +1 @@
1
- import { a as VariantHandlerContext, o as VariantObject, t as Arrayable } from "./types-DTddWOiY.mjs";
2
-
3
- //#region ../../packages-presets/rule-utils/src/colors.d.ts
4
- interface CSSColorValue {
5
- type: string;
6
- components: (string | number)[];
7
- alpha: string | number | undefined;
8
- }
9
- type RGBAColorValue = [number, number, number, number] | [number, number, number];
10
- interface ParsedColorValue {
11
- /**
12
- * Parsed color value.
13
- */
14
- color?: string;
15
- /**
16
- * Parsed opacity value.
17
- */
18
- opacity: string;
19
- /**
20
- * Color name.
21
- */
22
- name: string;
23
- /**
24
- * Color scale, preferably 000 - 999.
25
- */
26
- no: string;
27
- /**
28
- * {@link CSSColorValue}
29
- */
30
- cssColor: CSSColorValue | undefined;
31
- /**
32
- * Parsed alpha value from opacity
33
- */
34
- alpha: string | number | undefined;
35
- }
36
- declare const cssColorFunctions: string[];
37
- declare const rectangularColorSpace: string[];
38
- declare const polarColorSpace: string[];
39
- declare const hueInterpolationMethods: string[];
40
- declare const alphaPlaceholders: string[];
41
- declare const alphaPlaceholdersRE: RegExp;
42
- declare function isInterpolatedMethod(type?: string): boolean;
43
- declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
44
- declare function parseCssColor(str?: string): CSSColorValue | undefined;
45
- declare function colorOpacityToString(color: CSSColorValue): string | number;
46
- declare function colorToString(color: CSSColorValue | string, alphaOverride?: string | number): string;
47
- //#endregion
48
- //#region ../../packages-presets/rule-utils/src/directive.d.ts
49
- declare const themeFnRE: RegExp;
50
- declare function hasThemeFn(str: string): boolean;
51
- declare function transformThemeFn(code: string, theme: Record<string, any>, throwOnMissing?: boolean): string;
52
- declare function transformThemeString(code: string, theme: Record<string, any>, throwOnMissing?: boolean): string | undefined;
53
- declare function calcMaxWidthBySize(size: string): string;
54
- //#endregion
55
- //#region ../../packages-presets/rule-utils/src/handlers.d.ts
56
- type ValueHandlerCallback<T extends object> = (str: string, theme?: T) => string | number | undefined;
57
- type ValueHandler<K extends string, T extends object> = { [S in K]: ValueHandler<K, T> } & {
58
- (str: string, theme?: T): string | undefined;
59
- __options: {
60
- sequence: K[];
61
- };
62
- };
63
- declare function createValueHandler<K extends string, T extends object>(handlers: Record<K, ValueHandlerCallback<T>>): ValueHandler<K, T>;
64
- //#endregion
65
- //#region ../../packages-presets/rule-utils/src/icon.d.ts
66
- declare const iconFnRE: RegExp;
67
- declare function hasIconFn(str: string): boolean;
68
- //#endregion
69
- //#region ../../packages-presets/rule-utils/src/utilities.d.ts
70
- declare function getBracket(str: string, open: string, close: string): string[] | undefined;
71
- declare function getStringComponent(str: string, open: string, close: string, separators: string | string[]): string[] | undefined;
72
- declare function getStringComponents(str: string, separators: string | string[], limit?: number, open?: string, close?: string): string[] | undefined;
73
- //#endregion
74
- //#region ../../packages-presets/rule-utils/src/variants.d.ts
75
- declare function variantMatcher<T extends object = object>(name: string, handler: Arrayable<(input: VariantHandlerContext) => Record<string, any>>, options?: Omit<VariantObject<T>, 'match'>): VariantObject<T>;
76
- declare function variantParentMatcher<T extends object = object>(name: string, parent: string): VariantObject<T>;
77
- declare function variantGetBracket(prefix: string, matcher: string, separators: string[]): string[] | undefined;
78
- declare function variantGetParameter(prefix: Arrayable<string>, matcher: string, separators: string[]): string[] | undefined;
79
- //#endregion
80
- //#region ../../packages-presets/rule-utils/src/pseudo.d.ts
81
- /**
82
- * Note: the order of following pseudo classes will affect the order of generated css.
83
- *
84
- * Reference: https://github.com/tailwindlabs/tailwindcss/blob/main/src/corePlugins.js#L83
85
- */
86
- declare const PseudoClasses: Record<string, string>;
87
- declare const PseudoClassesKeys: string[];
88
- declare const PseudoClassesColon: Record<string, string>;
89
- declare const PseudoClassesColonKeys: string[];
90
- declare const PseudoClassFunctions: string[];
91
- declare const PseudoClassesMulti: Record<string, string[]>;
92
- declare const PseudoClassesStr: string;
93
- declare const PseudoClassesColonStr: string;
94
- declare const PseudoClassFunctionsStr: string;
95
- declare const PseudoClassesMultiStr: string;
96
- declare const excludedPseudo: string[];
97
- declare const PseudoClassesAndElementsStr: string;
98
- declare const PseudoClassesAndElementsColonStr: string;
99
- interface PseudoVariantOptions {
100
- /**
101
- * Generate tagged pseudo selector as `[group=""]` instead of `.group`
102
- *
103
- * @default false
104
- */
105
- attributifyPseudo?: boolean;
106
- /**
107
- * Utils prefix
108
- */
109
- prefix?: string | string[];
110
- }
111
- interface PseudoVariantUtilities<Theme extends object = object> {
112
- getBracket: typeof getBracket;
113
- h: {
114
- bracket: (s: string, theme?: Theme) => string | undefined;
115
- };
116
- variantGetBracket: typeof variantGetBracket;
117
- }
118
- declare function createTaggedPseudoClassMatcher<T extends object = object>(tag: string, parent: string, combinator: string, utils: PseudoVariantUtilities): VariantObject<T>;
119
- declare function createPseudoClassesAndElements<T extends object = object>(utils: PseudoVariantUtilities): VariantObject<T>[];
120
- declare function createPseudoClassFunctions<T extends object = object>(utils: PseudoVariantUtilities): VariantObject<T>;
121
- declare function createTaggedPseudoClasses<T extends object = object>(options: PseudoVariantOptions, utils: PseudoVariantUtilities): VariantObject<T>[];
122
- declare function createPartClasses<T extends object = object>(): VariantObject<T>;
123
- //#endregion
124
- export { CSSColorValue, ParsedColorValue, PseudoClassFunctions, PseudoClassFunctionsStr, PseudoClasses, PseudoClassesAndElementsColonStr, PseudoClassesAndElementsStr, PseudoClassesColon, PseudoClassesColonKeys, PseudoClassesColonStr, PseudoClassesKeys, PseudoClassesMulti, PseudoClassesMultiStr, PseudoClassesStr, PseudoVariantOptions, PseudoVariantUtilities, RGBAColorValue, ValueHandler, ValueHandlerCallback, alphaPlaceholders, alphaPlaceholdersRE, calcMaxWidthBySize, colorOpacityToString, colorToString, createPartClasses, createPseudoClassFunctions, createPseudoClassesAndElements, createTaggedPseudoClassMatcher, createTaggedPseudoClasses, createValueHandler, cssColorFunctions, excludedPseudo, getBracket, getStringComponent, getStringComponents, hasIconFn, hasThemeFn, hex2rgba, hueInterpolationMethods, iconFnRE, isInterpolatedMethod, parseCssColor, polarColorSpace, rectangularColorSpace, themeFnRE, transformThemeFn, transformThemeString, variantGetBracket, variantGetParameter, variantMatcher, variantParentMatcher };
1
+ export * from "@unocss/preset-wind3/utils";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
3
  "type": "module",
4
- "version": "66.5.12",
4
+ "version": "66.6.0",
5
5
  "description": "Deprecated, renamed to `@unocss/preset-wind3`",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -55,8 +55,8 @@
55
55
  "dist"
56
56
  ],
57
57
  "dependencies": {
58
- "@unocss/core": "66.5.12",
59
- "@unocss/preset-wind3": "66.5.12"
58
+ "@unocss/core": "66.6.0",
59
+ "@unocss/preset-wind3": "66.6.0"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsdown --config-loader unrun",
@@ -1,64 +0,0 @@
1
- import { i as PresetOptions } from "./types-DTddWOiY.mjs";
2
- import { n as Theme } from "./types-DPK9k_oB.mjs";
3
-
4
- //#region ../../packages-presets/preset-mini/src/index.d.ts
5
-
6
- interface DarkModeSelectors {
7
- /**
8
- * Selectors for light variant.
9
- *
10
- * @default '.light'
11
- */
12
- light?: string | string[];
13
- /**
14
- * Selectors for dark variant.
15
- *
16
- * @default '.dark'
17
- */
18
- dark?: string | string[];
19
- }
20
- interface PresetMiniOptions extends PresetOptions {
21
- /**
22
- * Dark mode options
23
- *
24
- * @default 'class'
25
- */
26
- dark?: 'class' | 'media' | DarkModeSelectors;
27
- /**
28
- * Generate tagged pseudo selector as `[group=""]` instead of `.group`
29
- *
30
- * @default false
31
- */
32
- attributifyPseudo?: boolean;
33
- /**
34
- * Prefix for CSS variables.
35
- *
36
- * @default 'un-'
37
- */
38
- variablePrefix?: string;
39
- /**
40
- * Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
41
- *
42
- * @default undefined
43
- */
44
- prefix?: string | string[];
45
- /**
46
- * Generate preflight
47
- *
48
- * @default true
49
- */
50
- preflight?: boolean | 'on-demand';
51
- /**
52
- * Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
53
- *
54
- * Disable this might slightly improve the performance.
55
- *
56
- * @default true
57
- */
58
- arbitraryVariants?: boolean;
59
- }
60
- //#endregion
61
- //#region ../../packages-presets/preset-wind3/src/theme.d.ts
62
- declare const theme: Theme;
63
- //#endregion
64
- export { PresetMiniOptions as n, theme as t };
@@ -1,80 +0,0 @@
1
- import { n as CSSObject, t as Arrayable } from "./types-DTddWOiY.mjs";
2
-
3
- //#region ../../packages-presets/preset-mini/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
- export { Theme as n, Colors as t };