@unocss/preset-wind4 66.1.0-beta.1 → 66.1.0-beta.3
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/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.mjs +406 -10
- package/dist/postprocess.d.mts +2 -2
- package/dist/postprocess.d.ts +2 -2
- package/dist/rules.d.mts +2 -2
- package/dist/rules.d.ts +2 -2
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-wind4.CegCmYvq.d.ts → preset-wind4.BJEl798_.d.ts} +1 -1
- package/dist/shared/{preset-wind4.Cie2xZTI.mjs → preset-wind4.Bjnac6Vf.mjs} +1 -1
- package/dist/shared/{preset-wind4.vGe3tcGx.mjs → preset-wind4.C2WJ-LPg.mjs} +10 -4
- package/dist/shared/{preset-wind4.hRJr-mxL.mjs → preset-wind4.D0X5sI2o.mjs} +1 -1
- package/dist/shared/{preset-wind4.CgaZg2nY.mjs → preset-wind4.DAFeae-M.mjs} +1 -1
- package/dist/shared/{preset-wind4.2MnQGJ1R.d.mts → preset-wind4.DIUjJahF.d.mts} +1 -1
- package/dist/shared/{preset-wind4.LxGeOha5.d.mts → preset-wind4.MiZzPO05.d.mts} +1 -1
- package/dist/shared/{preset-wind4.LxGeOha5.d.ts → preset-wind4.MiZzPO05.d.ts} +1 -1
- package/dist/shared/{preset-wind4.CK_6y38z.mjs → preset-wind4.kLLgLvQk.mjs} +4 -4
- package/dist/shortcuts.d.mts +1 -1
- package/dist/shortcuts.d.ts +1 -1
- package/dist/shortcuts.mjs +3 -3
- package/dist/theme.d.mts +3 -2
- package/dist/theme.d.ts +3 -2
- package/dist/utils.d.mts +6 -4
- package/dist/utils.d.ts +6 -4
- package/dist/utils.mjs +1 -1
- package/dist/variants.d.mts +2 -2
- package/dist/variants.d.ts +2 -2
- package/dist/variants.mjs +2 -2
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Postprocessor, Preflight, Variant, PresetOptions } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
4
|
-
export { r as rules } from './shared/preset-wind4.
|
|
3
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.mjs';
|
|
4
|
+
export { r as rules } from './shared/preset-wind4.DIUjJahF.mjs';
|
|
5
5
|
export { shortcuts } from './shortcuts.mjs';
|
|
6
6
|
export { t as theme } from './shared/preset-wind4.pue_BigB.mjs';
|
|
7
7
|
|
|
@@ -79,6 +79,12 @@ interface PresetWind4Options extends PresetOptions {
|
|
|
79
79
|
* @default false
|
|
80
80
|
*/
|
|
81
81
|
important?: boolean | string;
|
|
82
|
+
/**
|
|
83
|
+
* Reset the default preflight styles.
|
|
84
|
+
*
|
|
85
|
+
* @default true
|
|
86
|
+
*/
|
|
87
|
+
reset?: boolean;
|
|
82
88
|
}
|
|
83
89
|
declare const presetWind4: _unocss_core.PresetFactory<Theme, PresetWind4Options>;
|
|
84
90
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Postprocessor, Preflight, Variant, PresetOptions } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
4
|
-
export { r as rules } from './shared/preset-wind4.
|
|
3
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.js';
|
|
4
|
+
export { r as rules } from './shared/preset-wind4.BJEl798_.js';
|
|
5
5
|
export { shortcuts } from './shortcuts.js';
|
|
6
6
|
export { t as theme } from './shared/preset-wind4.pue_BigB.js';
|
|
7
7
|
|
|
@@ -79,6 +79,12 @@ interface PresetWind4Options extends PresetOptions {
|
|
|
79
79
|
* @default false
|
|
80
80
|
*/
|
|
81
81
|
important?: boolean | string;
|
|
82
|
+
/**
|
|
83
|
+
* Reset the default preflight styles.
|
|
84
|
+
*
|
|
85
|
+
* @default true
|
|
86
|
+
*/
|
|
87
|
+
reset?: boolean;
|
|
82
88
|
}
|
|
83
89
|
declare const presetWind4: _unocss_core.PresetFactory<Theme, PresetWind4Options>;
|
|
84
90
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,407 @@
|
|
|
1
|
-
import { definePreset } from '@unocss/core';
|
|
1
|
+
import { LAYER_PREFLIGHTS, definePreset } from '@unocss/core';
|
|
2
2
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
3
|
+
import { E as compressCSS, D as camelToHyphen, g as globalKeywords } from './shared/preset-wind4.C2WJ-LPg.mjs';
|
|
3
4
|
import { alphaPlaceholdersRE } from '@unocss/rule-utils';
|
|
4
|
-
import { D as camelToHyphen, g as globalKeywords } from './shared/preset-wind4.vGe3tcGx.mjs';
|
|
5
5
|
import { p as passThemeKey } from './shared/preset-wind4.DRtKeBWc.mjs';
|
|
6
6
|
import { postprocessors } from './postprocess.mjs';
|
|
7
|
-
import { l as variants } from './shared/preset-wind4.
|
|
7
|
+
import { l as variants } from './shared/preset-wind4.D0X5sI2o.mjs';
|
|
8
8
|
import { theme as theme$1 } from './theme.mjs';
|
|
9
|
-
import { s as shortcuts } from './shared/preset-wind4.
|
|
10
|
-
import { r as rules } from './shared/preset-wind4.
|
|
9
|
+
import { s as shortcuts } from './shared/preset-wind4.DAFeae-M.mjs';
|
|
10
|
+
import { r as rules } from './shared/preset-wind4.kLLgLvQk.mjs';
|
|
11
11
|
import './colors.mjs';
|
|
12
|
-
import './shared/preset-wind4.
|
|
12
|
+
import './shared/preset-wind4.Bjnac6Vf.mjs';
|
|
13
|
+
|
|
14
|
+
const resetCSS = `
|
|
15
|
+
/*
|
|
16
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
17
|
+
2. Remove default margins and padding
|
|
18
|
+
3. Reset all borders.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
*,
|
|
22
|
+
::after,
|
|
23
|
+
::before,
|
|
24
|
+
::backdrop,
|
|
25
|
+
::file-selector-button {
|
|
26
|
+
box-sizing: border-box; /* 1 */
|
|
27
|
+
margin: 0; /* 2 */
|
|
28
|
+
padding: 0; /* 2 */
|
|
29
|
+
border: 0 solid; /* 3 */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
34
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
35
|
+
3. Use a more readable tab size.
|
|
36
|
+
4. Use the user's configured \`sans\` font-family by default.
|
|
37
|
+
5. Use the user's configured \`sans\` font-feature-settings by default.
|
|
38
|
+
6. Use the user's configured \`sans\` font-variation-settings by default.
|
|
39
|
+
7. Disable tap highlights on iOS.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
html,
|
|
43
|
+
:host {
|
|
44
|
+
line-height: 1.5; /* 1 */
|
|
45
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
46
|
+
tab-size: 4; /* 3 */
|
|
47
|
+
font-family: var(
|
|
48
|
+
--default-font-family,
|
|
49
|
+
ui-sans-serif,
|
|
50
|
+
system-ui,
|
|
51
|
+
sans-serif,
|
|
52
|
+
'Apple Color Emoji',
|
|
53
|
+
'Segoe UI Emoji',
|
|
54
|
+
'Segoe UI Symbol',
|
|
55
|
+
'Noto Color Emoji'
|
|
56
|
+
); /* 4 */
|
|
57
|
+
font-feature-settings: var(--default-font-feature-settings, normal); /* 5 */
|
|
58
|
+
font-variation-settings: var(--default-font-variation-settings, normal); /* 6 */
|
|
59
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/*
|
|
63
|
+
Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
body {
|
|
67
|
+
line-height: inherit;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/*
|
|
71
|
+
1. Add the correct height in Firefox.
|
|
72
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
73
|
+
3. Reset the default border style to a 1px solid border.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
hr {
|
|
77
|
+
height: 0; /* 1 */
|
|
78
|
+
color: inherit; /* 2 */
|
|
79
|
+
border-top-width: 1px; /* 3 */
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/*
|
|
83
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
abbr:where([title]) {
|
|
87
|
+
-webkit-text-decoration: underline dotted;
|
|
88
|
+
text-decoration: underline dotted;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
Remove the default font size and weight for headings.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
h1,
|
|
96
|
+
h2,
|
|
97
|
+
h3,
|
|
98
|
+
h4,
|
|
99
|
+
h5,
|
|
100
|
+
h6 {
|
|
101
|
+
font-size: inherit;
|
|
102
|
+
font-weight: inherit;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
a {
|
|
110
|
+
color: inherit;
|
|
111
|
+
-webkit-text-decoration: inherit;
|
|
112
|
+
text-decoration: inherit;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/*
|
|
116
|
+
Add the correct font weight in Edge and Safari.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
b,
|
|
120
|
+
strong {
|
|
121
|
+
font-weight: bolder;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
1. Use the user's configured \`mono\` font-family by default.
|
|
126
|
+
2. Use the user's configured \`mono\` font-feature-settings by default.
|
|
127
|
+
3. Use the user's configured \`mono\` font-variation-settings by default.
|
|
128
|
+
4. Correct the odd \`em\` font sizing in all browsers.
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
code,
|
|
132
|
+
kbd,
|
|
133
|
+
samp,
|
|
134
|
+
pre {
|
|
135
|
+
font-family: var(
|
|
136
|
+
--default-mono-font-family,
|
|
137
|
+
ui-monospace,
|
|
138
|
+
SFMono-Regular,
|
|
139
|
+
Menlo,
|
|
140
|
+
Monaco,
|
|
141
|
+
Consolas,
|
|
142
|
+
'Liberation Mono',
|
|
143
|
+
'Courier New',
|
|
144
|
+
monospace
|
|
145
|
+
); /* 1 */
|
|
146
|
+
font-feature-settings: var(--default-mono-font-feature-settings, normal); /* 2 */
|
|
147
|
+
font-variation-settings: var(--default-mono-font-variation-settings, normal); /* 3 */
|
|
148
|
+
font-size: 1em; /* 4 */
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/*
|
|
152
|
+
Add the correct font size in all browsers.
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
small {
|
|
156
|
+
font-size: 80%;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/*
|
|
160
|
+
Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
sub,
|
|
164
|
+
sup {
|
|
165
|
+
font-size: 75%;
|
|
166
|
+
line-height: 0;
|
|
167
|
+
position: relative;
|
|
168
|
+
vertical-align: baseline;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
sub {
|
|
172
|
+
bottom: -0.25em;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
sup {
|
|
176
|
+
top: -0.5em;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
181
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
182
|
+
3. Remove gaps between table borders by default.
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
table {
|
|
186
|
+
text-indent: 0; /* 1 */
|
|
187
|
+
border-color: inherit; /* 2 */
|
|
188
|
+
border-collapse: collapse; /* 3 */
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/*
|
|
192
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
:-moz-focusring {
|
|
196
|
+
outline: auto;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/*
|
|
200
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
progress {
|
|
204
|
+
vertical-align: baseline;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/*
|
|
208
|
+
Add the correct display in Chrome and Safari.
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
summary {
|
|
212
|
+
display: list-item;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/*
|
|
216
|
+
Make lists unstyled by default.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
ol,
|
|
220
|
+
ul,
|
|
221
|
+
menu {
|
|
222
|
+
list-style: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/*
|
|
226
|
+
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
227
|
+
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
228
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
img,
|
|
232
|
+
svg,
|
|
233
|
+
video,
|
|
234
|
+
canvas,
|
|
235
|
+
audio,
|
|
236
|
+
iframe,
|
|
237
|
+
embed,
|
|
238
|
+
object {
|
|
239
|
+
display: block; /* 1 */
|
|
240
|
+
vertical-align: middle; /* 2 */
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/*
|
|
244
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
img,
|
|
248
|
+
video {
|
|
249
|
+
max-width: 100%;
|
|
250
|
+
height: auto;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/*
|
|
254
|
+
1. Inherit font styles in all browsers.
|
|
255
|
+
2. Remove border radius in all browsers.
|
|
256
|
+
3. Remove background color in all browsers.
|
|
257
|
+
4. Ensure consistent opacity for disabled states in all browsers.
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
button,
|
|
261
|
+
input,
|
|
262
|
+
select,
|
|
263
|
+
optgroup,
|
|
264
|
+
textarea,
|
|
265
|
+
::file-selector-button {
|
|
266
|
+
font: inherit; /* 1 */
|
|
267
|
+
font-feature-settings: inherit; /* 1 */
|
|
268
|
+
font-variation-settings: inherit; /* 1 */
|
|
269
|
+
letter-spacing: inherit; /* 1 */
|
|
270
|
+
color: inherit; /* 1 */
|
|
271
|
+
border-radius: 0; /* 2 */
|
|
272
|
+
background-color: transparent; /* 3 */
|
|
273
|
+
opacity: 1; /* 4 */
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/*
|
|
277
|
+
Restore default font weight.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
281
|
+
font-weight: bolder;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/*
|
|
285
|
+
Restore indentation.
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
289
|
+
padding-inline-start: 20px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/*
|
|
293
|
+
Restore space after button.
|
|
294
|
+
*/
|
|
295
|
+
|
|
296
|
+
::file-selector-button {
|
|
297
|
+
margin-inline-end: 4px;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/*
|
|
301
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
302
|
+
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
::placeholder {
|
|
306
|
+
opacity: 1; /* 1 */
|
|
307
|
+
color: color-mix(in oklab, currentColor 50%, transparent); /* 2 */
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/*
|
|
311
|
+
Prevent resizing textareas horizontally by default.
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
textarea {
|
|
315
|
+
resize: vertical;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/*
|
|
319
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
::-webkit-search-decoration {
|
|
323
|
+
-webkit-appearance: none;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/*
|
|
327
|
+
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
|
328
|
+
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
|
329
|
+
*/
|
|
330
|
+
|
|
331
|
+
::-webkit-date-and-time-value {
|
|
332
|
+
min-height: 1lh; /* 1 */
|
|
333
|
+
text-align: inherit; /* 2 */
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/*
|
|
337
|
+
Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
::-webkit-datetime-edit {
|
|
341
|
+
display: inline-flex;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/*
|
|
345
|
+
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
|
346
|
+
*/
|
|
347
|
+
|
|
348
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
349
|
+
padding: 0;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
::-webkit-datetime-edit,
|
|
353
|
+
::-webkit-datetime-edit-year-field,
|
|
354
|
+
::-webkit-datetime-edit-month-field,
|
|
355
|
+
::-webkit-datetime-edit-day-field,
|
|
356
|
+
::-webkit-datetime-edit-hour-field,
|
|
357
|
+
::-webkit-datetime-edit-minute-field,
|
|
358
|
+
::-webkit-datetime-edit-second-field,
|
|
359
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
360
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
361
|
+
padding-block: 0;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/*
|
|
365
|
+
Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
:-moz-ui-invalid {
|
|
369
|
+
box-shadow: none;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/*
|
|
373
|
+
Correct the inability to style the border radius in iOS Safari.
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
button,
|
|
377
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
|
378
|
+
::file-selector-button {
|
|
379
|
+
appearance: button;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/*
|
|
383
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
::-webkit-inner-spin-button,
|
|
387
|
+
::-webkit-outer-spin-button {
|
|
388
|
+
height: auto;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/*
|
|
392
|
+
Make elements with the HTML hidden attribute stay hidden by default.
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
[hidden]:where(:not([hidden='until-found'])) {
|
|
396
|
+
display: none !important;
|
|
397
|
+
}
|
|
398
|
+
`;
|
|
399
|
+
function reset(options) {
|
|
400
|
+
return options.reset === false ? void 0 : {
|
|
401
|
+
getCSS: () => compressCSS(resetCSS),
|
|
402
|
+
layer: LAYER_PREFLIGHTS
|
|
403
|
+
};
|
|
404
|
+
}
|
|
13
405
|
|
|
14
406
|
const DefaultCssVarKeys = [
|
|
15
407
|
"font",
|
|
@@ -72,19 +464,20 @@ function theme(options) {
|
|
|
72
464
|
return {
|
|
73
465
|
layer: "theme",
|
|
74
466
|
getCSS({ theme: theme2 }) {
|
|
75
|
-
return `
|
|
467
|
+
return compressCSS(`
|
|
76
468
|
:root {
|
|
77
469
|
--spacing: ${theme2.spacing.DEFAULT};
|
|
78
470
|
${themeToCSSVars(theme2, themeKeys).trim()}
|
|
79
|
-
}
|
|
471
|
+
}`);
|
|
80
472
|
}
|
|
81
473
|
};
|
|
82
474
|
}
|
|
83
475
|
|
|
84
476
|
const preflights = (options) => {
|
|
85
477
|
return [
|
|
86
|
-
theme(options)
|
|
87
|
-
|
|
478
|
+
theme(options),
|
|
479
|
+
reset(options)
|
|
480
|
+
].filter(Boolean);
|
|
88
481
|
};
|
|
89
482
|
|
|
90
483
|
const shorthands = {
|
|
@@ -108,6 +501,9 @@ const presetWind4 = definePreset((options = {}) => {
|
|
|
108
501
|
rules,
|
|
109
502
|
shortcuts,
|
|
110
503
|
theme: theme$1,
|
|
504
|
+
layers: {
|
|
505
|
+
theme: -150
|
|
506
|
+
},
|
|
111
507
|
preflights: preflights(options),
|
|
112
508
|
variants: variants(options),
|
|
113
509
|
prefix: options.prefix,
|
package/dist/postprocess.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PresetWind4Options } from './index.mjs';
|
|
2
2
|
export { postprocessors } from './index.mjs';
|
|
3
3
|
import { Postprocessor } from '@unocss/core';
|
|
4
|
-
import './shared/preset-wind4.
|
|
5
|
-
import './shared/preset-wind4.
|
|
4
|
+
import './shared/preset-wind4.MiZzPO05.mjs';
|
|
5
|
+
import './shared/preset-wind4.DIUjJahF.mjs';
|
|
6
6
|
import './shortcuts.mjs';
|
|
7
7
|
import './shared/preset-wind4.pue_BigB.mjs';
|
|
8
8
|
|
package/dist/postprocess.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PresetWind4Options } from './index.js';
|
|
2
2
|
export { postprocessors } from './index.js';
|
|
3
3
|
import { Postprocessor } from '@unocss/core';
|
|
4
|
-
import './shared/preset-wind4.
|
|
5
|
-
import './shared/preset-wind4.
|
|
4
|
+
import './shared/preset-wind4.MiZzPO05.js';
|
|
5
|
+
import './shared/preset-wind4.BJEl798_.js';
|
|
6
6
|
import './shortcuts.js';
|
|
7
7
|
import './shared/preset-wind4.pue_BigB.js';
|
|
8
8
|
|
package/dist/rules.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Rule, CSSEntries, Shortcut, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
3
|
-
export { r as rules } from './shared/preset-wind4.
|
|
2
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.mjs';
|
|
3
|
+
export { r as rules } from './shared/preset-wind4.DIUjJahF.mjs';
|
|
4
4
|
|
|
5
5
|
declare const verticalAligns: Rule<Theme>[];
|
|
6
6
|
declare const textAligns: Rule<Theme>[];
|
package/dist/rules.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Rule, CSSEntries, Shortcut, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
3
|
-
export { r as rules } from './shared/preset-wind4.
|
|
2
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.js';
|
|
3
|
+
export { r as rules } from './shared/preset-wind4.BJEl798_.js';
|
|
4
4
|
|
|
5
5
|
declare const verticalAligns: Rule<Theme>[];
|
|
6
6
|
declare const textAligns: Rule<Theme>[];
|
package/dist/rules.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { d as accents, ar as accessibility, J as alignments, a as animations, c as appearance, a3 as appearances, Y as aspectRatio, y as backdropFilterBase, ao as backgroundBlendModes, b as backgroundStyles, m as bgColors, at as borderSpacingBase, g as borderStyles, h as borders, W as boxShadows, V as boxShadowsBase, P as boxSizing, ac as breaks, e as carets, n as colorScheme, p as columns, a5 as contains, aa as contentVisibility, ab as contents, aJ as cssProperty, aI as cssVariables, a4 as cursors, a2 as displays, u as divides, aq as dynamicViewportHeight, x as filterBase, z as filters, A as flex, L as flexGridJustifiesAlignments, N as floats, ah as fontSmoothings, ag as fontStyles, aG as fontVariantNumeric, aF as fontVariantNumericBase, aA as fonts, B as gaps, C as grids, j as handlerBorderStyle, ai as hyphens, i as imageRenderings, M as insets, am as isolations, H as justifies, E as lineClamps, l as listStyle, _ as margins, ap as mixBlendModes, a0 as notLastChildSelector, an as objectPositions, k as opacity, I as orders, o as outline, D as overflows, f as overscrolls, Z as paddings, F as placeholders, K as placements, a6 as pointerEvents, G as positions, Q as questionMark, a7 as resizes, R as ringBase, S as rings, r as rules, al as screenReadersAccess, s as scrollBehaviors, T as scrollSnapTypeBase, U as scrolls, X as sizes, $ as spaces, aH as splitShorthand, as as svgUtilities, aB as tabSizes, au as tables, t as textAligns, q as textDecorations, aC as textIndents, ae as textOverflows, aE as textShadows, aD as textStrokes, af as textTransforms, ad as textWraps, av as touchActionBase, aw as touchActions, ax as transformBase, ay as transforms, az as transitions, a8 as userSelects, a1 as varEmpty, v as verticalAligns, aK as viewTransition, a9 as whitespaces, w as willChange, aj as writingModes, ak as writingOrientations, O as zIndexes } from './shared/preset-wind4.
|
|
2
|
-
export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.
|
|
3
|
-
import './shared/preset-wind4.
|
|
1
|
+
export { d as accents, ar as accessibility, J as alignments, a as animations, c as appearance, a3 as appearances, Y as aspectRatio, y as backdropFilterBase, ao as backgroundBlendModes, b as backgroundStyles, m as bgColors, at as borderSpacingBase, g as borderStyles, h as borders, W as boxShadows, V as boxShadowsBase, P as boxSizing, ac as breaks, e as carets, n as colorScheme, p as columns, a5 as contains, aa as contentVisibility, ab as contents, aJ as cssProperty, aI as cssVariables, a4 as cursors, a2 as displays, u as divides, aq as dynamicViewportHeight, x as filterBase, z as filters, A as flex, L as flexGridJustifiesAlignments, N as floats, ah as fontSmoothings, ag as fontStyles, aG as fontVariantNumeric, aF as fontVariantNumericBase, aA as fonts, B as gaps, C as grids, j as handlerBorderStyle, ai as hyphens, i as imageRenderings, M as insets, am as isolations, H as justifies, E as lineClamps, l as listStyle, _ as margins, ap as mixBlendModes, a0 as notLastChildSelector, an as objectPositions, k as opacity, I as orders, o as outline, D as overflows, f as overscrolls, Z as paddings, F as placeholders, K as placements, a6 as pointerEvents, G as positions, Q as questionMark, a7 as resizes, R as ringBase, S as rings, r as rules, al as screenReadersAccess, s as scrollBehaviors, T as scrollSnapTypeBase, U as scrolls, X as sizes, $ as spaces, aH as splitShorthand, as as svgUtilities, aB as tabSizes, au as tables, t as textAligns, q as textDecorations, aC as textIndents, ae as textOverflows, aE as textShadows, aD as textStrokes, af as textTransforms, ad as textWraps, av as touchActionBase, aw as touchActions, ax as transformBase, ay as transforms, az as transitions, a8 as userSelects, a1 as varEmpty, v as verticalAligns, aK as viewTransition, a9 as whitespaces, w as willChange, aj as writingModes, ak as writingOrientations, O as zIndexes } from './shared/preset-wind4.kLLgLvQk.mjs';
|
|
2
|
+
export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.Bjnac6Vf.mjs';
|
|
3
|
+
import './shared/preset-wind4.C2WJ-LPg.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
import '@unocss/rule-utils';
|
|
6
6
|
import './shared/preset-wind4.DRtKeBWc.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isString } from '@unocss/core';
|
|
2
|
-
import { u as resolveBreakpoints } from './preset-wind4.
|
|
2
|
+
import { u as resolveBreakpoints } from './preset-wind4.C2WJ-LPg.mjs';
|
|
3
3
|
|
|
4
4
|
const containerParent = [
|
|
5
5
|
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { escapeSelector, toArray } from '@unocss/core';
|
|
2
|
-
import { createValueHandler,
|
|
2
|
+
import { createValueHandler, parseCssColor, getStringComponents, colorToString, getStringComponent } from '@unocss/rule-utils';
|
|
3
3
|
|
|
4
4
|
const directionMap = {
|
|
5
5
|
"l": ["-left"],
|
|
@@ -493,7 +493,7 @@ function colorResolver(property, varName) {
|
|
|
493
493
|
css[property] = color;
|
|
494
494
|
} else {
|
|
495
495
|
css[`--un-${varName}-opacity`] = `${opacity || 100}%`;
|
|
496
|
-
const value = key ? `var(--
|
|
496
|
+
const value = key ? `var(--colors-${key})` : color;
|
|
497
497
|
css[property] = `color-mix(in oklch, ${value} var(--un-${varName}-opacity), transparent)${rawColorComment}`;
|
|
498
498
|
}
|
|
499
499
|
}
|
|
@@ -532,7 +532,10 @@ function parseColor(body, theme) {
|
|
|
532
532
|
/**
|
|
533
533
|
* Key means the color is from theme object.
|
|
534
534
|
*/
|
|
535
|
-
key
|
|
535
|
+
key,
|
|
536
|
+
get cssColor() {
|
|
537
|
+
return parseCssColor(this.color);
|
|
538
|
+
}
|
|
536
539
|
};
|
|
537
540
|
}
|
|
538
541
|
function parseThemeColor(theme, keys) {
|
|
@@ -621,5 +624,8 @@ function transformXYZ(d, v, name) {
|
|
|
621
624
|
function camelToHyphen(str) {
|
|
622
625
|
return str.replace(/[A-Z]/g, "-$&").toLowerCase();
|
|
623
626
|
}
|
|
627
|
+
function compressCSS(css) {
|
|
628
|
+
return css.trim().replace(/\s+/g, " ").replace(/\/\*[\s\S]*?\*\//g, "");
|
|
629
|
+
}
|
|
624
630
|
|
|
625
|
-
export { isSize as A, transformXYZ as B, CONTROL_MINI_NO_NEGATIVE as C, camelToHyphen as D,
|
|
631
|
+
export { isSize as A, transformXYZ as B, CONTROL_MINI_NO_NEGATIVE as C, camelToHyphen as D, compressCSS as E, bracketTypeRe as F, SpecialColorKey as S, h as a, xyzArray as b, cornerMap as c, directionMap as d, cssMathFnRE as e, cssVarFnRE as f, globalKeywords as g, handler as h, insetMap as i, directionSize as j, colorableShadows as k, colorResolver as l, parseColor as m, numberResolver as n, parseThemeColor as o, positionMap as p, getThemeColor as q, colorVariable as r, splitShorthand as s, hasParseableColor as t, resolveBreakpoints as u, valueHandlers as v, resolveVerticalBreakpoints as w, xyzMap as x, makeGlobalStaticRules as y, isCSSMathFn as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { variantGetParameter, variantMatcher, variantGetBracket, variantParentMatcher, getBracket, hasThemeFn, transformThemeFn, getStringComponent } from '@unocss/rule-utils';
|
|
2
|
-
import { a as h, u as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, e as cssMathFnRE, f as cssVarFnRE, t as hasParseableColor } from './preset-wind4.
|
|
2
|
+
import { a as h, u as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, e as cssMathFnRE, f as cssVarFnRE, t as hasParseableColor } from './preset-wind4.C2WJ-LPg.mjs';
|
|
3
3
|
import { escapeRegExp, escapeSelector } from '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const variantAria = {
|
|
@@ -16,7 +16,7 @@ interface Theme {
|
|
|
16
16
|
breakpoint?: Record<string, string>;
|
|
17
17
|
verticalBreakpoint?: Record<string, string>;
|
|
18
18
|
container?: Record<string, string>;
|
|
19
|
-
text
|
|
19
|
+
text?: Record<string, {
|
|
20
20
|
fontSize?: string;
|
|
21
21
|
lineHeight?: string;
|
|
22
22
|
letterSpacing?: string;
|
|
@@ -16,7 +16,7 @@ interface Theme {
|
|
|
16
16
|
breakpoint?: Record<string, string>;
|
|
17
17
|
verticalBreakpoint?: Record<string, string>;
|
|
18
18
|
container?: Record<string, string>;
|
|
19
|
-
text
|
|
19
|
+
text?: Record<string, {
|
|
20
20
|
fontSize?: string;
|
|
21
21
|
lineHeight?: string;
|
|
22
22
|
letterSpacing?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as globalKeywords, a as h, y as makeGlobalStaticRules, p as positionMap, m as parseColor, S as SpecialColorKey, l as colorResolver, z as isCSSMathFn, d as directionMap, t as hasParseableColor, c as cornerMap, A as isSize, j as directionSize, n as numberResolver, k as colorableShadows, i as insetMap, D as camelToHyphen, u as resolveBreakpoints, B as transformXYZ, x as xyzMap,
|
|
1
|
+
import { g as globalKeywords, a as h, y as makeGlobalStaticRules, p as positionMap, m as parseColor, S as SpecialColorKey, l as colorResolver, z as isCSSMathFn, d as directionMap, t as hasParseableColor, c as cornerMap, A as isSize, j as directionSize, n as numberResolver, k as colorableShadows, i as insetMap, D as camelToHyphen, u as resolveBreakpoints, B as transformXYZ, x as xyzMap, F as bracketTypeRe } from './preset-wind4.C2WJ-LPg.mjs';
|
|
2
2
|
import { p as passThemeKey } from './preset-wind4.DRtKeBWc.mjs';
|
|
3
|
-
import { a as container, c as containerParent } from './preset-wind4.
|
|
3
|
+
import { a as container, c as containerParent } from './preset-wind4.Bjnac6Vf.mjs';
|
|
4
4
|
import { getStringComponent } from '@unocss/rule-utils';
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
@@ -131,7 +131,7 @@ function bgGradientColorResolver() {
|
|
|
131
131
|
css[`--un-gradient-${position}`] = color;
|
|
132
132
|
} else {
|
|
133
133
|
css[`--un-${position}-opacity`] = `${opacity || 100}%`;
|
|
134
|
-
const value = key ? `var(--
|
|
134
|
+
const value = key ? `var(--colors-${key})` : color;
|
|
135
135
|
css[`--un-gradient-${position}`] = `color-mix(in oklab, ${value} var(--un-${position}-opacity), transparent)`;
|
|
136
136
|
}
|
|
137
137
|
} else {
|
|
@@ -421,7 +421,7 @@ function transformBorderColor(color, opacity, key, direction) {
|
|
|
421
421
|
if (direction && direction !== "") {
|
|
422
422
|
css[`--un-border${direction}-opacity`] = `var(--un-border-opacity)`;
|
|
423
423
|
}
|
|
424
|
-
const value = key ? `var(--
|
|
424
|
+
const value = key ? `var(--colors-${key})` : color;
|
|
425
425
|
css[`border${direction}-color`] = `color-mix(in oklch, ${value} var(--un-border${direction}-opacity), transparent)`;
|
|
426
426
|
}
|
|
427
427
|
}
|
package/dist/shortcuts.d.mts
CHANGED
package/dist/shortcuts.d.ts
CHANGED
package/dist/shortcuts.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as shortcuts } from './shared/preset-wind4.
|
|
2
|
-
import './shared/preset-wind4.
|
|
1
|
+
export { s as shortcuts } from './shared/preset-wind4.DAFeae-M.mjs';
|
|
2
|
+
import './shared/preset-wind4.Bjnac6Vf.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-wind4.
|
|
4
|
+
import './shared/preset-wind4.C2WJ-LPg.mjs';
|
|
5
5
|
import '@unocss/rule-utils';
|
package/dist/theme.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { colors } from './colors.mjs';
|
|
2
2
|
export { t as theme } from './shared/preset-wind4.pue_BigB.mjs';
|
|
3
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
4
|
-
export { C as Colors, a as ThemeAnimation } from './shared/preset-wind4.
|
|
3
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.mjs';
|
|
4
|
+
export { C as Colors, a as ThemeAnimation } from './shared/preset-wind4.MiZzPO05.mjs';
|
|
5
5
|
|
|
6
6
|
declare const animation: {
|
|
7
7
|
keyframes: {
|
|
@@ -510,6 +510,7 @@ declare const perspective: {
|
|
|
510
510
|
midrange: string;
|
|
511
511
|
distant: string;
|
|
512
512
|
};
|
|
513
|
+
/** For reset css */
|
|
513
514
|
declare const defaults: {
|
|
514
515
|
transition: {
|
|
515
516
|
duration: string;
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { colors } from './colors.js';
|
|
2
2
|
export { t as theme } from './shared/preset-wind4.pue_BigB.js';
|
|
3
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
4
|
-
export { C as Colors, a as ThemeAnimation } from './shared/preset-wind4.
|
|
3
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.js';
|
|
4
|
+
export { C as Colors, a as ThemeAnimation } from './shared/preset-wind4.MiZzPO05.js';
|
|
5
5
|
|
|
6
6
|
declare const animation: {
|
|
7
7
|
keyframes: {
|
|
@@ -510,6 +510,7 @@ declare const perspective: {
|
|
|
510
510
|
midrange: string;
|
|
511
511
|
distant: string;
|
|
512
512
|
};
|
|
513
|
+
/** For reset css */
|
|
513
514
|
declare const defaults: {
|
|
514
515
|
transition: {
|
|
515
516
|
duration: string;
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
3
|
import { DynamicMatcher, RuleContext, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
4
|
-
import { T as Theme, C as Colors } from './shared/preset-wind4.
|
|
4
|
+
import { T as Theme, C as Colors } from './shared/preset-wind4.MiZzPO05.mjs';
|
|
5
5
|
|
|
6
6
|
/** Keys will not appear in the theme variable. */
|
|
7
7
|
declare const passThemeKey: string[];
|
|
@@ -47,8 +47,8 @@ declare namespace handlers {
|
|
|
47
47
|
export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_none as none, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
51
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
50
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
51
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
52
52
|
|
|
53
53
|
declare const directionMap: Record<string, string[]>;
|
|
54
54
|
declare const insetMap: Record<string, string[]>;
|
|
@@ -103,6 +103,7 @@ declare function parseColor(body: string, theme: Theme): {
|
|
|
103
103
|
* Key means the color is from theme object.
|
|
104
104
|
*/
|
|
105
105
|
key: string | undefined;
|
|
106
|
+
readonly cssColor: _unocss_rule_utils.CSSColorValue | undefined;
|
|
106
107
|
} | undefined;
|
|
107
108
|
declare function parseThemeColor(theme: Theme, keys: string[]): {
|
|
108
109
|
color: string;
|
|
@@ -125,5 +126,6 @@ declare function isCSSMathFn(value: string | undefined): boolean;
|
|
|
125
126
|
declare function isSize(str: string): boolean;
|
|
126
127
|
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
127
128
|
declare function camelToHyphen(str: string): string;
|
|
129
|
+
declare function compressCSS(css: string): string;
|
|
128
130
|
|
|
129
|
-
export { CONTROL_MINI_NO_NEGATIVE, SpecialColorKey, camelToHyphen, colorResolver, colorVariable, colorableShadows, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, getThemeColor, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, passThemeKey, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers as valueHandlers, xyzArray, xyzMap };
|
|
131
|
+
export { CONTROL_MINI_NO_NEGATIVE, SpecialColorKey, camelToHyphen, colorResolver, colorVariable, colorableShadows, compressCSS, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, getThemeColor, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, passThemeKey, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
3
|
import { DynamicMatcher, RuleContext, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
4
|
-
import { T as Theme, C as Colors } from './shared/preset-wind4.
|
|
4
|
+
import { T as Theme, C as Colors } from './shared/preset-wind4.MiZzPO05.js';
|
|
5
5
|
|
|
6
6
|
/** Keys will not appear in the theme variable. */
|
|
7
7
|
declare const passThemeKey: string[];
|
|
@@ -47,8 +47,8 @@ declare namespace handlers {
|
|
|
47
47
|
export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_none as none, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
51
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
50
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
51
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
52
52
|
|
|
53
53
|
declare const directionMap: Record<string, string[]>;
|
|
54
54
|
declare const insetMap: Record<string, string[]>;
|
|
@@ -103,6 +103,7 @@ declare function parseColor(body: string, theme: Theme): {
|
|
|
103
103
|
* Key means the color is from theme object.
|
|
104
104
|
*/
|
|
105
105
|
key: string | undefined;
|
|
106
|
+
readonly cssColor: _unocss_rule_utils.CSSColorValue | undefined;
|
|
106
107
|
} | undefined;
|
|
107
108
|
declare function parseThemeColor(theme: Theme, keys: string[]): {
|
|
108
109
|
color: string;
|
|
@@ -125,5 +126,6 @@ declare function isCSSMathFn(value: string | undefined): boolean;
|
|
|
125
126
|
declare function isSize(str: string): boolean;
|
|
126
127
|
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
127
128
|
declare function camelToHyphen(str: string): string;
|
|
129
|
+
declare function compressCSS(css: string): string;
|
|
128
130
|
|
|
129
|
-
export { CONTROL_MINI_NO_NEGATIVE, SpecialColorKey, camelToHyphen, colorResolver, colorVariable, colorableShadows, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, getThemeColor, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, passThemeKey, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers as valueHandlers, xyzArray, xyzMap };
|
|
131
|
+
export { CONTROL_MINI_NO_NEGATIVE, SpecialColorKey, camelToHyphen, colorResolver, colorVariable, colorableShadows, compressCSS, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, getThemeColor, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, passThemeKey, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { p as passThemeKey } from './shared/preset-wind4.DRtKeBWc.mjs';
|
|
2
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, S as SpecialColorKey, D as camelToHyphen, l as colorResolver, r as colorVariable, k as colorableShadows, c as cornerMap, e as cssMathFnRE, f as cssVarFnRE, d as directionMap, j as directionSize, q as getThemeColor, g as globalKeywords, a as h, h as handler, t as hasParseableColor, i as insetMap, z as isCSSMathFn, A as isSize, y as makeGlobalStaticRules, n as numberResolver, m as parseColor, o as parseThemeColor, p as positionMap, u as resolveBreakpoints, w as resolveVerticalBreakpoints, s as splitShorthand, B as transformXYZ, v as valueHandlers, b as xyzArray, x as xyzMap } from './shared/preset-wind4.
|
|
2
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, S as SpecialColorKey, D as camelToHyphen, l as colorResolver, r as colorVariable, k as colorableShadows, E as compressCSS, c as cornerMap, e as cssMathFnRE, f as cssVarFnRE, d as directionMap, j as directionSize, q as getThemeColor, g as globalKeywords, a as h, h as handler, t as hasParseableColor, i as insetMap, z as isCSSMathFn, A as isSize, y as makeGlobalStaticRules, n as numberResolver, m as parseColor, o as parseThemeColor, p as positionMap, u as resolveBreakpoints, w as resolveVerticalBreakpoints, s as splitShorthand, B as transformXYZ, v as valueHandlers, b as xyzArray, x as xyzMap } from './shared/preset-wind4.C2WJ-LPg.mjs';
|
|
3
3
|
export * from '@unocss/rule-utils';
|
|
4
4
|
import '@unocss/core';
|
package/dist/variants.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantObject, Variant, VariantFunction } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
2
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.mjs';
|
|
3
3
|
import { PresetWind4Options } from './index.mjs';
|
|
4
4
|
export { variants } from './index.mjs';
|
|
5
|
-
import './shared/preset-wind4.
|
|
5
|
+
import './shared/preset-wind4.DIUjJahF.mjs';
|
|
6
6
|
import './shortcuts.mjs';
|
|
7
7
|
import './shared/preset-wind4.pue_BigB.mjs';
|
|
8
8
|
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantObject, Variant, VariantFunction } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './shared/preset-wind4.
|
|
2
|
+
import { T as Theme } from './shared/preset-wind4.MiZzPO05.js';
|
|
3
3
|
import { PresetWind4Options } from './index.js';
|
|
4
4
|
export { variants } from './index.js';
|
|
5
|
-
import './shared/preset-wind4.
|
|
5
|
+
import './shared/preset-wind4.BJEl798_.js';
|
|
6
6
|
import './shortcuts.js';
|
|
7
7
|
import './shared/preset-wind4.pue_BigB.js';
|
|
8
8
|
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize, D as placeholderModifier, v as variantAria, b as variantBreakpoints, d as variantChildren, h as variantColorsMediaOrClass, i as variantColorsScheme, e as variantCombinators, g as variantContainerQuery, q as variantContrasts, w as variantCssLayer, p as variantCustomMedia, j as variantDataAttribute, t as variantForcedColors, n as variantImportant, x as variantInternalLayer, m as variantLanguageDirections, r as variantMotions, C as variantNegative, s as variantOrientations, H as variantPartClasses, o as variantPrint, F as variantPseudoClassFunctions, E as variantPseudoClassesAndElements, y as variantScope, u as variantSelector, I as variantStartingStyle, B as variantStickyHover, J as variantSupports, f as variantSvgCombinators, a as variantTaggedAriaAttributes, k as variantTaggedDataAttributes, G as variantTaggedPseudoClasses, A as variantTheme, z as variantVariables, l as variants } from './shared/preset-wind4.
|
|
1
|
+
export { c as calcMaxWidthBySize, D as placeholderModifier, v as variantAria, b as variantBreakpoints, d as variantChildren, h as variantColorsMediaOrClass, i as variantColorsScheme, e as variantCombinators, g as variantContainerQuery, q as variantContrasts, w as variantCssLayer, p as variantCustomMedia, j as variantDataAttribute, t as variantForcedColors, n as variantImportant, x as variantInternalLayer, m as variantLanguageDirections, r as variantMotions, C as variantNegative, s as variantOrientations, H as variantPartClasses, o as variantPrint, F as variantPseudoClassFunctions, E as variantPseudoClassesAndElements, y as variantScope, u as variantSelector, I as variantStartingStyle, B as variantStickyHover, J as variantSupports, f as variantSvgCombinators, a as variantTaggedAriaAttributes, k as variantTaggedDataAttributes, G as variantTaggedPseudoClasses, A as variantTheme, z as variantVariables, l as variants } from './shared/preset-wind4.D0X5sI2o.mjs';
|
|
2
2
|
import '@unocss/rule-utils';
|
|
3
|
-
import './shared/preset-wind4.
|
|
3
|
+
import './shared/preset-wind4.C2WJ-LPg.mjs';
|
|
4
4
|
import '@unocss/core';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind4",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.1.0-beta.
|
|
4
|
+
"version": "66.1.0-beta.3",
|
|
5
5
|
"description": "Tailwind 4 compact preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"dist"
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@unocss/
|
|
69
|
-
"@unocss/
|
|
70
|
-
"@unocss/rule-utils": "66.1.0-beta.
|
|
68
|
+
"@unocss/core": "66.1.0-beta.3",
|
|
69
|
+
"@unocss/extractor-arbitrary-variants": "66.1.0-beta.3",
|
|
70
|
+
"@unocss/rule-utils": "66.1.0-beta.3"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "unbuild",
|