@unocss/preset-wind4 66.1.0-beta.1 → 66.1.0-beta.2
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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +411 -10
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-wind4.hRJr-mxL.mjs → preset-wind4.BX_E70AB.mjs} +1 -1
- package/dist/shared/{preset-wind4.CK_6y38z.mjs → preset-wind4.Bw3HyQpC.mjs} +2 -2
- package/dist/shared/{preset-wind4.vGe3tcGx.mjs → preset-wind4.DczDGrCy.mjs} +4 -1
- package/dist/shared/{preset-wind4.Cie2xZTI.mjs → preset-wind4.MCNDoe4h.mjs} +1 -1
- package/dist/shared/{preset-wind4.CgaZg2nY.mjs → preset-wind4.X9frrw1J.mjs} +1 -1
- package/dist/shortcuts.mjs +3 -3
- package/dist/theme.d.mts +1 -0
- package/dist/theme.d.ts +1 -0
- package/dist/utils.d.mts +4 -3
- package/dist/utils.d.ts +4 -3
- package/dist/utils.mjs +1 -1
- package/dist/variants.mjs +2 -2
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -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
|
@@ -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,412 @@
|
|
|
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.DczDGrCy.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.BX_E70AB.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.X9frrw1J.mjs';
|
|
10
|
+
import { r as rules } from './shared/preset-wind4.Bw3HyQpC.mjs';
|
|
11
11
|
import './colors.mjs';
|
|
12
|
-
import './shared/preset-wind4.
|
|
12
|
+
import './shared/preset-wind4.MCNDoe4h.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
|
+
th {
|
|
192
|
+
text-align: inherit;
|
|
193
|
+
font-weight: inherit;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/*
|
|
197
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
:-moz-focusring {
|
|
201
|
+
outline: auto;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/*
|
|
205
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
progress {
|
|
209
|
+
vertical-align: baseline;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/*
|
|
213
|
+
Add the correct display in Chrome and Safari.
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
summary {
|
|
217
|
+
display: list-item;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/*
|
|
221
|
+
Make lists unstyled by default.
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
ol,
|
|
225
|
+
ul,
|
|
226
|
+
menu {
|
|
227
|
+
list-style: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/*
|
|
231
|
+
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
232
|
+
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
233
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
img,
|
|
237
|
+
svg,
|
|
238
|
+
video,
|
|
239
|
+
canvas,
|
|
240
|
+
audio,
|
|
241
|
+
iframe,
|
|
242
|
+
embed,
|
|
243
|
+
object {
|
|
244
|
+
display: block; /* 1 */
|
|
245
|
+
vertical-align: middle; /* 2 */
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/*
|
|
249
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
img,
|
|
253
|
+
video {
|
|
254
|
+
max-width: 100%;
|
|
255
|
+
height: auto;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/*
|
|
259
|
+
1. Inherit font styles in all browsers.
|
|
260
|
+
2. Remove border radius in all browsers.
|
|
261
|
+
3. Remove background color in all browsers.
|
|
262
|
+
4. Ensure consistent opacity for disabled states in all browsers.
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
button,
|
|
266
|
+
input,
|
|
267
|
+
select,
|
|
268
|
+
optgroup,
|
|
269
|
+
textarea,
|
|
270
|
+
::file-selector-button {
|
|
271
|
+
font: inherit; /* 1 */
|
|
272
|
+
font-feature-settings: inherit; /* 1 */
|
|
273
|
+
font-variation-settings: inherit; /* 1 */
|
|
274
|
+
letter-spacing: inherit; /* 1 */
|
|
275
|
+
color: inherit; /* 1 */
|
|
276
|
+
border-radius: 0; /* 2 */
|
|
277
|
+
background-color: transparent; /* 3 */
|
|
278
|
+
opacity: 1; /* 4 */
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/*
|
|
282
|
+
Restore default font weight.
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
286
|
+
font-weight: bolder;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/*
|
|
290
|
+
Restore indentation.
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
294
|
+
padding-inline-start: 20px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/*
|
|
298
|
+
Restore space after button.
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
::file-selector-button {
|
|
302
|
+
margin-inline-end: 4px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/*
|
|
306
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
307
|
+
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
::placeholder {
|
|
311
|
+
opacity: 1; /* 1 */
|
|
312
|
+
color: color-mix(in oklab, currentColor 50%, transparent); /* 2 */
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/*
|
|
316
|
+
Prevent resizing textareas horizontally by default.
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
textarea {
|
|
320
|
+
resize: vertical;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/*
|
|
324
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
::-webkit-search-decoration {
|
|
328
|
+
-webkit-appearance: none;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/*
|
|
332
|
+
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
|
333
|
+
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
::-webkit-date-and-time-value {
|
|
337
|
+
min-height: 1lh; /* 1 */
|
|
338
|
+
text-align: inherit; /* 2 */
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/*
|
|
342
|
+
Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`.
|
|
343
|
+
*/
|
|
344
|
+
|
|
345
|
+
::-webkit-datetime-edit {
|
|
346
|
+
display: inline-flex;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/*
|
|
350
|
+
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
354
|
+
padding: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
::-webkit-datetime-edit,
|
|
358
|
+
::-webkit-datetime-edit-year-field,
|
|
359
|
+
::-webkit-datetime-edit-month-field,
|
|
360
|
+
::-webkit-datetime-edit-day-field,
|
|
361
|
+
::-webkit-datetime-edit-hour-field,
|
|
362
|
+
::-webkit-datetime-edit-minute-field,
|
|
363
|
+
::-webkit-datetime-edit-second-field,
|
|
364
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
365
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
366
|
+
padding-block: 0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/*
|
|
370
|
+
Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
:-moz-ui-invalid {
|
|
374
|
+
box-shadow: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/*
|
|
378
|
+
Correct the inability to style the border radius in iOS Safari.
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
button,
|
|
382
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
|
383
|
+
::file-selector-button {
|
|
384
|
+
appearance: button;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/*
|
|
388
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
::-webkit-inner-spin-button,
|
|
392
|
+
::-webkit-outer-spin-button {
|
|
393
|
+
height: auto;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/*
|
|
397
|
+
Make elements with the HTML hidden attribute stay hidden by default.
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
[hidden]:where(:not([hidden='until-found'])) {
|
|
401
|
+
display: none !important;
|
|
402
|
+
}
|
|
403
|
+
`;
|
|
404
|
+
function reset(options) {
|
|
405
|
+
return options.reset === false ? void 0 : {
|
|
406
|
+
getCSS: () => compressCSS(resetCSS),
|
|
407
|
+
layer: LAYER_PREFLIGHTS
|
|
408
|
+
};
|
|
409
|
+
}
|
|
13
410
|
|
|
14
411
|
const DefaultCssVarKeys = [
|
|
15
412
|
"font",
|
|
@@ -72,19 +469,20 @@ function theme(options) {
|
|
|
72
469
|
return {
|
|
73
470
|
layer: "theme",
|
|
74
471
|
getCSS({ theme: theme2 }) {
|
|
75
|
-
return `
|
|
472
|
+
return compressCSS(`
|
|
76
473
|
:root {
|
|
77
474
|
--spacing: ${theme2.spacing.DEFAULT};
|
|
78
475
|
${themeToCSSVars(theme2, themeKeys).trim()}
|
|
79
|
-
}
|
|
476
|
+
}`);
|
|
80
477
|
}
|
|
81
478
|
};
|
|
82
479
|
}
|
|
83
480
|
|
|
84
481
|
const preflights = (options) => {
|
|
85
482
|
return [
|
|
86
|
-
theme(options)
|
|
87
|
-
|
|
483
|
+
theme(options),
|
|
484
|
+
reset(options)
|
|
485
|
+
].filter(Boolean);
|
|
88
486
|
};
|
|
89
487
|
|
|
90
488
|
const shorthands = {
|
|
@@ -108,6 +506,9 @@ const presetWind4 = definePreset((options = {}) => {
|
|
|
108
506
|
rules,
|
|
109
507
|
shortcuts,
|
|
110
508
|
theme: theme$1,
|
|
509
|
+
layers: {
|
|
510
|
+
theme: -150
|
|
511
|
+
},
|
|
111
512
|
preflights: preflights(options),
|
|
112
513
|
variants: variants(options),
|
|
113
514
|
prefix: options.prefix,
|
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.Bw3HyQpC.mjs';
|
|
2
|
+
export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.MCNDoe4h.mjs';
|
|
3
|
+
import './shared/preset-wind4.DczDGrCy.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 { 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.DczDGrCy.mjs';
|
|
3
3
|
import { escapeRegExp, escapeSelector } from '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const variantAria = {
|
|
@@ -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.DczDGrCy.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.MCNDoe4h.mjs';
|
|
4
4
|
import { getStringComponent } from '@unocss/rule-utils';
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
@@ -621,5 +621,8 @@ function transformXYZ(d, v, name) {
|
|
|
621
621
|
function camelToHyphen(str) {
|
|
622
622
|
return str.replace(/[A-Z]/g, "-$&").toLowerCase();
|
|
623
623
|
}
|
|
624
|
+
function compressCSS(css) {
|
|
625
|
+
return css.trim().replace(/\s+/g, " ").replace(/\/\*[\s\S]*?\*\//g, "");
|
|
626
|
+
}
|
|
624
627
|
|
|
625
|
-
export { isSize as A, transformXYZ as B, CONTROL_MINI_NO_NEGATIVE as C, camelToHyphen as D,
|
|
628
|
+
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 { isString } from '@unocss/core';
|
|
2
|
-
import { u as resolveBreakpoints } from './preset-wind4.
|
|
2
|
+
import { u as resolveBreakpoints } from './preset-wind4.DczDGrCy.mjs';
|
|
3
3
|
|
|
4
4
|
const containerParent = [
|
|
5
5
|
[/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
|
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.X9frrw1J.mjs';
|
|
2
|
+
import './shared/preset-wind4.MCNDoe4h.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-wind4.
|
|
4
|
+
import './shared/preset-wind4.DczDGrCy.mjs';
|
|
5
5
|
import '@unocss/rule-utils';
|
package/dist/theme.d.mts
CHANGED
package/dist/theme.d.ts
CHANGED
package/dist/utils.d.mts
CHANGED
|
@@ -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[]>;
|
|
@@ -125,5 +125,6 @@ declare function isCSSMathFn(value: string | undefined): boolean;
|
|
|
125
125
|
declare function isSize(str: string): boolean;
|
|
126
126
|
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
127
127
|
declare function camelToHyphen(str: string): string;
|
|
128
|
+
declare function compressCSS(css: string): string;
|
|
128
129
|
|
|
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 };
|
|
130
|
+
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
|
@@ -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[]>;
|
|
@@ -125,5 +125,6 @@ declare function isCSSMathFn(value: string | undefined): boolean;
|
|
|
125
125
|
declare function isSize(str: string): boolean;
|
|
126
126
|
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
127
127
|
declare function camelToHyphen(str: string): string;
|
|
128
|
+
declare function compressCSS(css: string): string;
|
|
128
129
|
|
|
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 };
|
|
130
|
+
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.DczDGrCy.mjs';
|
|
3
3
|
export * from '@unocss/rule-utils';
|
|
4
4
|
import '@unocss/core';
|
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.BX_E70AB.mjs';
|
|
2
2
|
import '@unocss/rule-utils';
|
|
3
|
-
import './shared/preset-wind4.
|
|
3
|
+
import './shared/preset-wind4.DczDGrCy.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.2",
|
|
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.2",
|
|
69
|
+
"@unocss/extractor-arbitrary-variants": "66.1.0-beta.2",
|
|
70
|
+
"@unocss/rule-utils": "66.1.0-beta.2"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "unbuild",
|