@unocss/preset-uno 0.13.1 → 0.14.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/{chunk-P5HELYQA.mjs → chunks/colors.cjs} +4 -5
- package/dist/{chunk-7O4GGKN3.js → chunks/colors.mjs} +2 -5
- package/dist/{chunk-GBKIE2NK.js → chunks/default.cjs} +567 -591
- package/dist/{chunk-RDUXYWRV.mjs → chunks/default.mjs} +404 -541
- package/dist/{chunk-BOWXQI3B.js → chunks/default2.cjs} +41 -48
- package/dist/{chunk-BLAKJWHG.mjs → chunks/default2.mjs} +21 -48
- package/dist/chunks/default3.cjs +128 -0
- package/dist/chunks/default3.mjs +119 -0
- package/dist/{chunk-O7YRGPXQ.mjs → chunks/index.cjs} +38 -59
- package/dist/{chunk-LPZDYB4J.js → chunks/index.mjs} +23 -60
- package/dist/chunks/pseudo.cjs +106 -0
- package/dist/chunks/pseudo.mjs +101 -0
- package/dist/chunks/variants.cjs +14 -0
- package/dist/chunks/variants.mjs +12 -0
- package/dist/colors.cjs +9 -0
- package/dist/colors.mjs +1 -7
- package/dist/index.cjs +31 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +12 -26
- package/dist/rules.cjs +123 -0
- package/dist/rules.d.ts +3 -1
- package/dist/rules.mjs +4 -226
- package/dist/theme.cjs +29 -0
- package/dist/theme.mjs +2 -47
- package/dist/utils.cjs +25 -0
- package/dist/utils.mjs +2 -37
- package/dist/variants.cjs +23 -0
- package/dist/variants.d.ts +2 -1
- package/dist/variants.mjs +4 -28
- package/package.json +11 -11
- package/dist/chunk-5SH5BFJ4.mjs +0 -11
- package/dist/chunk-64RIF3V4.js +0 -232
- package/dist/chunk-IFOGL3S7.mjs +0 -232
- package/dist/chunk-Y6EUTGDC.js +0 -11
- package/dist/colors.js +0 -7
- package/dist/index.js +0 -39
- package/dist/rules.js +0 -226
- package/dist/theme.js +0 -47
- package/dist/utils.js +0 -37
- package/dist/variants.js +0 -28
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
directionMap,
|
|
5
|
-
handler,
|
|
6
|
-
xyzMap
|
|
7
|
-
} from "./chunk-O7YRGPXQ.mjs";
|
|
1
|
+
import { hex2rgba, toArray } from '@unocss/core';
|
|
2
|
+
import { h as handler, d as directionMap, c as cornerMap, a as capitalize, x as xyzMap } from './index.mjs';
|
|
3
|
+
import { C as CONTROL_BYPASS_PSEUDO } from './pseudo.mjs';
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
var verticalAlignAlias = {
|
|
5
|
+
const verticalAlignAlias = {
|
|
11
6
|
mid: "middle",
|
|
12
7
|
base: "baseline",
|
|
13
8
|
btm: "bottom"
|
|
14
9
|
};
|
|
15
|
-
|
|
10
|
+
const verticalAligns = [
|
|
16
11
|
[/^(?:vertical|align|v)-(baseline|top|bottom|middle|text-top|text-bottom|mid|base|btm)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] || v })]
|
|
17
12
|
];
|
|
18
|
-
|
|
13
|
+
const textAligns = [
|
|
19
14
|
["text-center", { "text-align": "center" }],
|
|
20
15
|
["text-left", { "text-align": "left" }],
|
|
21
16
|
["text-right", { "text-align": "right" }],
|
|
22
17
|
["text-justify", { "text-align": "justify" }]
|
|
23
18
|
];
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
var keyframes = {
|
|
20
|
+
const keyframes = {
|
|
27
21
|
"spin": "{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}",
|
|
28
22
|
"ping": "{0%{transform:scale(1);opacity:1}75%,100%{transform:scale(2);opacity:0}}",
|
|
29
23
|
"bounce": "{from,20%,53%,80%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}",
|
|
@@ -124,7 +118,7 @@ var keyframes = {
|
|
|
124
118
|
"back-out-right": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}",
|
|
125
119
|
"back-out-left": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"
|
|
126
120
|
};
|
|
127
|
-
|
|
121
|
+
const durations = {
|
|
128
122
|
"heart-beat": "1.3s",
|
|
129
123
|
"bounce-in": "0.75s",
|
|
130
124
|
"bounce-out": "0.75s",
|
|
@@ -132,7 +126,7 @@ var durations = {
|
|
|
132
126
|
"flip-out-y": "0.75s",
|
|
133
127
|
"hinge": "2s"
|
|
134
128
|
};
|
|
135
|
-
|
|
129
|
+
const timingFns = {
|
|
136
130
|
"head-shake": "ease-in-out",
|
|
137
131
|
"heart-beat": "ease-in-out",
|
|
138
132
|
"pulse": "ease-in-out",
|
|
@@ -141,7 +135,7 @@ var timingFns = {
|
|
|
141
135
|
"light-speed-out-left": "ease-in",
|
|
142
136
|
"light-speed-out-right": "ease-in"
|
|
143
137
|
};
|
|
144
|
-
|
|
138
|
+
const properties = {
|
|
145
139
|
"bounce": { "transform-origin": "center bottom" },
|
|
146
140
|
"jello": { "transform-origin": "center" },
|
|
147
141
|
"swing": { "transform-origin": "top center" },
|
|
@@ -166,7 +160,7 @@ var properties = {
|
|
|
166
160
|
"zoom-out-right": { "transform-origin": "right center" },
|
|
167
161
|
"zoom-out-up": { "transform-origin": "center bottom" }
|
|
168
162
|
};
|
|
169
|
-
|
|
163
|
+
const animations = [
|
|
170
164
|
[/^animate-(.*)$/, ([, name], { constructCSS }) => {
|
|
171
165
|
const kf = keyframes[name];
|
|
172
166
|
if (kf) {
|
|
@@ -184,10 +178,7 @@ ${constructCSS(Object.assign({ animation: `${name} ${durations[name] || "1s"} ${
|
|
|
184
178
|
[/^animate-play(?:-state)?-(paused|running|inherit|initial|revert|unset)$/, ([, d]) => ({ "animation-play-state": d })]
|
|
185
179
|
];
|
|
186
180
|
|
|
187
|
-
|
|
188
|
-
import { hex2rgba } from "@unocss/core";
|
|
189
|
-
var parseColorUtil = (body, theme) => {
|
|
190
|
-
var _a;
|
|
181
|
+
const parseColorUtil = (body, theme) => {
|
|
191
182
|
const [main, opacity2] = body.split(/(?:\/|:)/);
|
|
192
183
|
const [name, no = "DEFAULT"] = main.replace(/([a-z])([0-9])/g, "$1-$2").split(/-/g);
|
|
193
184
|
if (!name)
|
|
@@ -199,7 +190,7 @@ var parseColorUtil = (body, theme) => {
|
|
|
199
190
|
if (bracket.startsWith("hex-"))
|
|
200
191
|
color = bracket.slice(4);
|
|
201
192
|
if (!color) {
|
|
202
|
-
const colorData =
|
|
193
|
+
const colorData = theme.colors?.[name];
|
|
203
194
|
if (typeof colorData === "string")
|
|
204
195
|
color = colorData;
|
|
205
196
|
else if (no && colorData)
|
|
@@ -213,14 +204,14 @@ var parseColorUtil = (body, theme) => {
|
|
|
213
204
|
rgba: hex2rgba(color)
|
|
214
205
|
};
|
|
215
206
|
};
|
|
216
|
-
|
|
207
|
+
const colorResolver$2 = (attribute, varName) => ([, body], { theme }) => {
|
|
217
208
|
const data = parseColorUtil(body, theme);
|
|
218
209
|
if (!data)
|
|
219
210
|
return;
|
|
220
211
|
const { opacity: opacity2, color, rgba } = data;
|
|
221
212
|
if (!color)
|
|
222
213
|
return;
|
|
223
|
-
const a = opacity2 ? opacity2[0] === "[" ? handler.bracket.percent(opacity2) : parseFloat(opacity2) / 100 : rgba
|
|
214
|
+
const a = opacity2 ? opacity2[0] === "[" ? handler.bracket.percent(opacity2) : parseFloat(opacity2) / 100 : rgba?.[3];
|
|
224
215
|
if (rgba) {
|
|
225
216
|
if (a != null && !Number.isNaN(a)) {
|
|
226
217
|
rgba[3] = typeof a === "string" && !a.includes("%") ? parseFloat(a) : a;
|
|
@@ -239,16 +230,16 @@ var colorResolver = (attribute, varName) => ([, body], { theme }) => {
|
|
|
239
230
|
};
|
|
240
231
|
}
|
|
241
232
|
};
|
|
242
|
-
|
|
233
|
+
const opacity = [
|
|
243
234
|
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: handler.bracket.percent.cssvar(d) })]
|
|
244
235
|
];
|
|
245
|
-
|
|
246
|
-
[/^(?:text|color|c)-(.+)$/, colorResolver("color", "text")],
|
|
236
|
+
const textColors = [
|
|
237
|
+
[/^(?:text|color|c)-(.+)$/, colorResolver$2("color", "text")],
|
|
247
238
|
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-opacity": handler.bracket.percent.cssvar(opacity2) })]
|
|
248
239
|
];
|
|
249
|
-
|
|
240
|
+
const textDecorationColors = [
|
|
250
241
|
[/^underline-(.+)$/, (match, ctx) => {
|
|
251
|
-
const result = colorResolver("text-decoration-color", "line")(match, ctx);
|
|
242
|
+
const result = colorResolver$2("text-decoration-color", "line")(match, ctx);
|
|
252
243
|
if (result) {
|
|
253
244
|
return {
|
|
254
245
|
"-webkit-text-decoration-color": result["text-decoration-color"],
|
|
@@ -258,47 +249,46 @@ var textDecorationColors = [
|
|
|
258
249
|
}],
|
|
259
250
|
[/^underline-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-line-opacity": handler.bracket.percent(opacity2) })]
|
|
260
251
|
];
|
|
261
|
-
|
|
262
|
-
[/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke")],
|
|
252
|
+
const textStrokeColors = [
|
|
253
|
+
[/^text-stroke-(.+)$/, colorResolver$2("-webkit-text-stroke-color", "text-stroke")],
|
|
263
254
|
[/^text-stroke-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-text-stroke-opacity": handler.bracket.percent(opacity2) })]
|
|
264
255
|
];
|
|
265
|
-
|
|
266
|
-
[/^bg-(.+)$/, colorResolver("background-color", "bg")],
|
|
256
|
+
const bgColors = [
|
|
257
|
+
[/^bg-(.+)$/, colorResolver$2("background-color", "bg")],
|
|
267
258
|
[/^bg-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-bg-opacity": handler.bracket.percent(opacity2) })]
|
|
268
259
|
];
|
|
269
|
-
|
|
270
|
-
[/^(?:border|b)-(.+)$/, colorResolver("border-color", "border")],
|
|
260
|
+
const borderColors = [
|
|
261
|
+
[/^(?:border|b)-(.+)$/, colorResolver$2("border-color", "border")],
|
|
271
262
|
[/^(?:border|b)-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-border-opacity": handler.bracket.percent(opacity2) })]
|
|
272
263
|
];
|
|
273
|
-
|
|
274
|
-
[/^ring-(.+)$/, colorResolver("--un-ring-color", "ring")],
|
|
264
|
+
const ringColors = [
|
|
265
|
+
[/^ring-(.+)$/, colorResolver$2("--un-ring-color", "ring")],
|
|
275
266
|
[/^ring-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-opacity": handler.bracket.percent(opacity2) })]
|
|
276
267
|
];
|
|
277
|
-
|
|
278
|
-
[/^ring-offset-(.+)$/, colorResolver("--un-ring-offset-color", "ring-offset")],
|
|
268
|
+
const ringOffsetColors = [
|
|
269
|
+
[/^ring-offset-(.+)$/, colorResolver$2("--un-ring-offset-color", "ring-offset")],
|
|
279
270
|
[/^ring-offset-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-ring-offset-opacity": handler.bracket.percent(opacity2) })]
|
|
280
271
|
];
|
|
281
|
-
|
|
282
|
-
[/^divide-(.+)$/, colorResolver("border-color", "divide")],
|
|
272
|
+
const divideColors = [
|
|
273
|
+
[/^divide-(.+)$/, colorResolver$2("border-color", "divide")],
|
|
283
274
|
[/^divide-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-divide-opacity": handler.bracket.percent(opacity2) })]
|
|
284
275
|
];
|
|
285
|
-
|
|
276
|
+
const fillColors = [
|
|
286
277
|
["fill-none", { fill: "none" }],
|
|
287
|
-
[/^fill-(.+)$/, colorResolver("fill", "fill")],
|
|
278
|
+
[/^fill-(.+)$/, colorResolver$2("fill", "fill")],
|
|
288
279
|
[/^fill-op(?:acity)?-?(.+)$/m, ([, opacity2]) => ({ "--un-fill-opacity": handler.bracket.percent(opacity2) })]
|
|
289
280
|
];
|
|
290
281
|
|
|
291
|
-
|
|
292
|
-
var colorResolver2 = (mode) => ([, body], { theme }) => {
|
|
282
|
+
const colorResolver$1 = (mode) => ([, body], { theme }) => {
|
|
293
283
|
const data = parseColorUtil(body, theme);
|
|
294
284
|
if (!data)
|
|
295
285
|
return;
|
|
296
|
-
const { opacity
|
|
286
|
+
const { opacity, color, rgba } = data;
|
|
297
287
|
if (!color)
|
|
298
288
|
return;
|
|
299
289
|
let colorString = color;
|
|
300
290
|
if (rgba) {
|
|
301
|
-
const a =
|
|
291
|
+
const a = opacity ? opacity[0] === "[" ? handler.bracket.percent(opacity) : parseFloat(opacity) / 100 : rgba[3];
|
|
302
292
|
if (a != null && !Number.isNaN(a)) {
|
|
303
293
|
rgba[3] = typeof a === "string" && !a.includes("%") ? parseFloat(a) : a;
|
|
304
294
|
colorString = `rgba(${rgba.join(",")})`;
|
|
@@ -322,12 +312,12 @@ var colorResolver2 = (mode) => ([, body], { theme }) => {
|
|
|
322
312
|
};
|
|
323
313
|
}
|
|
324
314
|
};
|
|
325
|
-
|
|
315
|
+
const bgAttachments = [
|
|
326
316
|
["bg-fixed", { "background-attachment": "fixed" }],
|
|
327
317
|
["bg-local", { "background-attachment": "local" }],
|
|
328
318
|
["bg-scroll", { "background-attachment": "scroll" }]
|
|
329
319
|
];
|
|
330
|
-
|
|
320
|
+
const bgBlendModes = [
|
|
331
321
|
["bg-blend-normal", { "background-blend-mode": "normal" }],
|
|
332
322
|
["bg-blend-multiply", { "background-blend-mode": "multiply" }],
|
|
333
323
|
["bg-blend-screen", { "background-blend-mode": "screen" }],
|
|
@@ -345,21 +335,21 @@ var bgBlendModes = [
|
|
|
345
335
|
["bg-blend-color", { "background-blend-mode": "color" }],
|
|
346
336
|
["bg-blend-luminosity", { "background-blend-mode": "luminosity" }]
|
|
347
337
|
];
|
|
348
|
-
|
|
338
|
+
const bgClips = [
|
|
349
339
|
["bg-clip-border", { "-webkit-background-clip": "border-box", "background-attachment": "border-box" }],
|
|
350
340
|
["bg-clip-content", { "-webkit-background-clip": "content-box", "background-attachment": "content-box" }],
|
|
351
341
|
["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-attachment": "padding-box" }],
|
|
352
342
|
["bg-clip-text", { "-webkit-background-clip": "text", "background-attachment": "text" }]
|
|
353
343
|
];
|
|
354
|
-
|
|
355
|
-
[/^from-(.+)$/,
|
|
356
|
-
[/^to-(.+)$/,
|
|
357
|
-
[/^via-(.+)$/,
|
|
358
|
-
[/^from-op(?:acity)?-?(.+)$/m, ([,
|
|
359
|
-
[/^to-op(?:acity)?-?(.+)$/m, ([,
|
|
360
|
-
[/^via-op(?:acity)?-?(.+)$/m, ([,
|
|
344
|
+
const bgGradients = [
|
|
345
|
+
[/^from-(.+)$/, colorResolver$1("from")],
|
|
346
|
+
[/^to-(.+)$/, colorResolver$1("to")],
|
|
347
|
+
[/^via-(.+)$/, colorResolver$1("via")],
|
|
348
|
+
[/^from-op(?:acity)?-?(.+)$/m, ([, opacity]) => ({ "--un-from-opacity": handler.bracket.percent(opacity) })],
|
|
349
|
+
[/^to-op(?:acity)?-?(.+)$/m, ([, opacity]) => ({ "--un-to-opacity": handler.bracket.percent(opacity) })],
|
|
350
|
+
[/^via-op(?:acity)?-?(.+)$/m, ([, opacity]) => ({ "--un-via-opacity": handler.bracket.percent(opacity) })]
|
|
361
351
|
];
|
|
362
|
-
|
|
352
|
+
const bgImages = [
|
|
363
353
|
["bg-none", { "background-image": "none" }],
|
|
364
354
|
["bg-gradient-to-t", {
|
|
365
355
|
"background-image": "linear-gradient(to top, var(--un-gradient-stops))"
|
|
@@ -386,12 +376,12 @@ var bgImages = [
|
|
|
386
376
|
"background-image": "linear-gradient(to top left, var(--un-gradient-stops))"
|
|
387
377
|
}]
|
|
388
378
|
];
|
|
389
|
-
|
|
379
|
+
const bgOrigins = [
|
|
390
380
|
["bg-origin-border", { "background-origin": "border-box" }],
|
|
391
381
|
["bg-origin-padding", { "background-origin": "padding-box" }],
|
|
392
382
|
["bg-origin-content", { "background-origin": "content-box" }]
|
|
393
383
|
];
|
|
394
|
-
|
|
384
|
+
const bgPositions = [
|
|
395
385
|
["bg-bottom", { "background-position": "bottom" }],
|
|
396
386
|
["bg-center", { "background-position": "center" }],
|
|
397
387
|
["bg-left", { "background-position": "left" }],
|
|
@@ -402,7 +392,7 @@ var bgPositions = [
|
|
|
402
392
|
["bg-right-top", { "background-position": "right top" }],
|
|
403
393
|
["bg-top", { "background-position": "top" }]
|
|
404
394
|
];
|
|
405
|
-
|
|
395
|
+
const bgRepeats = [
|
|
406
396
|
["bg-repeat", { "background-repeat": "repeat" }],
|
|
407
397
|
["bg-no-repeat", { "background-repeat": "no-repeat" }],
|
|
408
398
|
["bg-repeat-x", { "background-position": "repeat-x" }],
|
|
@@ -410,16 +400,15 @@ var bgRepeats = [
|
|
|
410
400
|
["bg-repeat-round", { "background-position": "round" }],
|
|
411
401
|
["bg-repeat-space", { "background-position": "space" }]
|
|
412
402
|
];
|
|
413
|
-
|
|
403
|
+
const bgSizes = [
|
|
414
404
|
["bg-auto", { "background-size": "auto" }],
|
|
415
405
|
["bg-cover", { "background-repeat": "cover" }],
|
|
416
406
|
["bg-contain", { "background-position": "contain" }]
|
|
417
407
|
];
|
|
418
408
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
var parseOutlineSize = (s) => {
|
|
409
|
+
const outlineStyle = ["none", "auto", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset", "inherit", "initial", "revert", "unset"];
|
|
410
|
+
const listStyleProps = ["none", "disc", "circle", "square", "decimal", "zero-decimal", "greek", "roman", "upper-roman", "alpha", "upper-alpha"];
|
|
411
|
+
const parseOutlineSize = (s) => {
|
|
423
412
|
const propName = ["width", "offset"].find((item) => s.startsWith(item)) || "width";
|
|
424
413
|
const size = handler.bracket.fraction.rem(s.replace(/^(offset\-|width\-)/, ""));
|
|
425
414
|
if (size) {
|
|
@@ -428,7 +417,7 @@ var parseOutlineSize = (s) => {
|
|
|
428
417
|
};
|
|
429
418
|
}
|
|
430
419
|
};
|
|
431
|
-
|
|
420
|
+
const outline = [
|
|
432
421
|
["outline-none", { "outline": "2px solid transparent", "outline-offset": "2px" }],
|
|
433
422
|
["outline", { "outline-style": "solid" }],
|
|
434
423
|
[
|
|
@@ -449,7 +438,7 @@ var outline = [
|
|
|
449
438
|
const sizeSheet = parseOutlineSize(d);
|
|
450
439
|
if (sizeSheet)
|
|
451
440
|
return sizeSheet;
|
|
452
|
-
const colorSheet = colorResolver("outline-color", "outline-color")([
|
|
441
|
+
const colorSheet = colorResolver$2("outline-color", "outline-color")([
|
|
453
442
|
match[0],
|
|
454
443
|
match[1].replace(/^color-/, "")
|
|
455
444
|
], config);
|
|
@@ -458,11 +447,10 @@ var outline = [
|
|
|
458
447
|
}
|
|
459
448
|
]
|
|
460
449
|
];
|
|
461
|
-
|
|
450
|
+
const listStyle = [
|
|
462
451
|
[new RegExp(`^list-((${listStyleProps.join("|")})(?:(-outside|-inside))?)$`), ([, value]) => {
|
|
463
|
-
var _a;
|
|
464
452
|
const style = value.split(/-outside|-inside/)[0];
|
|
465
|
-
const position =
|
|
453
|
+
const position = /inside|outside/.exec(value) ?? [];
|
|
466
454
|
if (position.length) {
|
|
467
455
|
return {
|
|
468
456
|
"list-style-position": `${position[0]}`,
|
|
@@ -479,17 +467,17 @@ var listStyle = [
|
|
|
479
467
|
};
|
|
480
468
|
}]
|
|
481
469
|
];
|
|
482
|
-
|
|
470
|
+
const boxDecorationBreaks = [
|
|
483
471
|
["decoration-slice", { "box-decoration-break": "slice" }],
|
|
484
472
|
["decoration-clone", { "box-decoration-break": "clone" }]
|
|
485
473
|
];
|
|
486
|
-
|
|
474
|
+
const caretOpacity = [
|
|
487
475
|
[/^caret-op(?:acity)?-?(.+)$/, ([, d]) => ({ "--un-caret-opacity": handler.bracket.percent(d) })]
|
|
488
476
|
];
|
|
489
|
-
|
|
490
|
-
[/^caret-(.+)$/, colorResolver("caret-color", "caret")]
|
|
477
|
+
const caretColors = [
|
|
478
|
+
[/^caret-(.+)$/, colorResolver$2("caret-color", "caret")]
|
|
491
479
|
];
|
|
492
|
-
|
|
480
|
+
const imageRenderings = [
|
|
493
481
|
["image-render-auto", { "image-rendering": "auto" }],
|
|
494
482
|
["image-render-edge", { "image-rendering": "crisp-edges" }],
|
|
495
483
|
["image-render-pixel", [
|
|
@@ -500,13 +488,13 @@ var imageRenderings = [
|
|
|
500
488
|
["image-rendering", "pixelated"]
|
|
501
489
|
]]
|
|
502
490
|
];
|
|
503
|
-
|
|
491
|
+
const appearance = [
|
|
504
492
|
["appearance-none", {
|
|
505
493
|
"appearance": "none",
|
|
506
494
|
"-webkit-appearance": "none"
|
|
507
495
|
}]
|
|
508
496
|
];
|
|
509
|
-
|
|
497
|
+
const placeholder = [
|
|
510
498
|
[
|
|
511
499
|
/^placeholder-opacity-(\d+)$/,
|
|
512
500
|
([, d]) => ({
|
|
@@ -517,11 +505,11 @@ var placeholder = [
|
|
|
517
505
|
/^placeholder-(?!opacity)(.+)$/,
|
|
518
506
|
(match, config) => {
|
|
519
507
|
match[1] = match[1].replace(/^color-/, "");
|
|
520
|
-
return colorResolver("placeholder-color", "placeholder-color")(match, config);
|
|
508
|
+
return colorResolver$2("placeholder-color", "placeholder-color")(match, config);
|
|
521
509
|
}
|
|
522
510
|
]
|
|
523
511
|
];
|
|
524
|
-
|
|
512
|
+
const overflowValues$1 = [
|
|
525
513
|
"none",
|
|
526
514
|
"auto",
|
|
527
515
|
"hidden",
|
|
@@ -529,30 +517,29 @@ var overflowValues = [
|
|
|
529
517
|
"scroll",
|
|
530
518
|
"contain"
|
|
531
519
|
];
|
|
532
|
-
|
|
533
|
-
[/^overscroll-(.+)$/, ([, v]) => overflowValues.includes(v) ? { "overscroll-behavior": v } : void 0],
|
|
534
|
-
[/^overscroll-([xy])-(.+)$/, ([, d, v]) => overflowValues.includes(v) ? { [`overscroll-behavior-${d}`]: v } : void 0]
|
|
520
|
+
const overscrolls = [
|
|
521
|
+
[/^overscroll-(.+)$/, ([, v]) => overflowValues$1.includes(v) ? { "overscroll-behavior": v } : void 0],
|
|
522
|
+
[/^overscroll-([xy])-(.+)$/, ([, d, v]) => overflowValues$1.includes(v) ? { [`overscroll-behavior-${d}`]: v } : void 0]
|
|
535
523
|
];
|
|
536
524
|
|
|
537
|
-
|
|
538
|
-
var borderSizes = [
|
|
525
|
+
const borderSizes = [
|
|
539
526
|
[/^border$/, handlerBorder],
|
|
540
527
|
[/^(?:border|b)(?:-([^-]+))?$/, handlerBorder],
|
|
541
528
|
[/^(?:border|b)(?:-([^-]+))?(?:-([^-]+))?$/, handlerBorder]
|
|
542
529
|
];
|
|
543
|
-
|
|
530
|
+
const borderRadius = [
|
|
544
531
|
[/^(?:border-)?(?:rounded|rd)$/, handlerRounded],
|
|
545
532
|
[/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?$/, handlerRounded],
|
|
546
533
|
[/^(?:border-)?(?:rounded|rd)(?:-([^-]+))?(?:-([^-]+))?$/, handlerRounded]
|
|
547
534
|
];
|
|
548
|
-
|
|
535
|
+
const borderStyles = [
|
|
549
536
|
["border-solid", { "border-style": "solid" }],
|
|
550
537
|
["border-dashed", { "border-style": "dashed" }],
|
|
551
538
|
["border-dotted", { "border-style": "dotted" }],
|
|
552
539
|
["border-double", { "border-style": "double" }],
|
|
553
540
|
["border-none", { "border-style": "none" }]
|
|
554
541
|
];
|
|
555
|
-
|
|
542
|
+
const borders = [
|
|
556
543
|
borderSizes,
|
|
557
544
|
borderColors,
|
|
558
545
|
borderStyles,
|
|
@@ -569,26 +556,22 @@ function handlerBorder([, a, b]) {
|
|
|
569
556
|
}
|
|
570
557
|
}
|
|
571
558
|
function handlerRounded([, a, b], { theme }) {
|
|
572
|
-
var _a;
|
|
573
559
|
const [d, s = "DEFAULT"] = cornerMap[a] ? [a, b] : ["", a];
|
|
574
|
-
const v =
|
|
560
|
+
const v = theme.borderRadius?.[s] || handler.bracket.fraction.rem(s);
|
|
575
561
|
if (v != null)
|
|
576
562
|
return cornerMap[d].map((i) => [`border${i}-radius`, v]);
|
|
577
563
|
}
|
|
578
564
|
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
var queryMatcher = /@media \(min-width: (.+)\)/;
|
|
582
|
-
var container = [
|
|
565
|
+
const queryMatcher = /@media \(min-width: (.+)\)/;
|
|
566
|
+
const container = [
|
|
583
567
|
[
|
|
584
568
|
/^__container$/,
|
|
585
569
|
(m, { variantHandlers }) => {
|
|
586
|
-
var _a;
|
|
587
570
|
let width = "100%";
|
|
588
571
|
for (const v of variantHandlers) {
|
|
589
572
|
const query = toArray(v.parent || [])[0];
|
|
590
573
|
if (typeof query === "string") {
|
|
591
|
-
const match =
|
|
574
|
+
const match = query.match(queryMatcher)?.[1];
|
|
592
575
|
if (match)
|
|
593
576
|
width = match;
|
|
594
577
|
}
|
|
@@ -598,7 +581,7 @@ var container = [
|
|
|
598
581
|
{ internal: true }
|
|
599
582
|
]
|
|
600
583
|
];
|
|
601
|
-
|
|
584
|
+
const containerShortcuts = [
|
|
602
585
|
[/^(?:(\w+)[:-])?container$/, ([, bp], { theme }) => {
|
|
603
586
|
let points = Object.keys(theme.breakpoints || {});
|
|
604
587
|
if (bp) {
|
|
@@ -613,8 +596,7 @@ var containerShortcuts = [
|
|
|
613
596
|
}]
|
|
614
597
|
];
|
|
615
598
|
|
|
616
|
-
|
|
617
|
-
var transitionBasicProps = [
|
|
599
|
+
const transitionBasicProps = [
|
|
618
600
|
"color",
|
|
619
601
|
"border-color",
|
|
620
602
|
"background-color",
|
|
@@ -633,7 +615,7 @@ var transitionBasicProps = [
|
|
|
633
615
|
"transform",
|
|
634
616
|
"box-shadow"
|
|
635
617
|
];
|
|
636
|
-
|
|
618
|
+
const transitionPositionProps = [
|
|
637
619
|
"backround-position",
|
|
638
620
|
"left",
|
|
639
621
|
"right",
|
|
@@ -641,7 +623,7 @@ var transitionPositionProps = [
|
|
|
641
623
|
"bottom",
|
|
642
624
|
"object-position"
|
|
643
625
|
];
|
|
644
|
-
|
|
626
|
+
const transitionSizeProps = [
|
|
645
627
|
"max-height",
|
|
646
628
|
"min-height",
|
|
647
629
|
"max-width",
|
|
@@ -661,21 +643,21 @@ var transitionSizeProps = [
|
|
|
661
643
|
"letter-spacing",
|
|
662
644
|
"word-spacing"
|
|
663
645
|
];
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
646
|
+
const transitionSwitchProps = ["all", "none"];
|
|
647
|
+
const transitionEnhanceProps = ["stroke", "filter", "backdrop-filter", "fill", "mask", "mask-size", "mask-border", "clip-path", "clip"];
|
|
648
|
+
const transitionProps = [
|
|
667
649
|
...transitionBasicProps,
|
|
668
650
|
...transitionPositionProps,
|
|
669
651
|
...transitionSizeProps,
|
|
670
652
|
...transitionEnhanceProps
|
|
671
653
|
];
|
|
672
|
-
|
|
673
|
-
|
|
654
|
+
const transitionPropsStr = transitionProps.join(", ");
|
|
655
|
+
const validateProperty = (prop) => {
|
|
674
656
|
if (prop && ![...transitionProps, ...transitionSwitchProps].includes(prop))
|
|
675
657
|
return;
|
|
676
658
|
return prop || transitionPropsStr;
|
|
677
659
|
};
|
|
678
|
-
|
|
660
|
+
const transitions = [
|
|
679
661
|
[/^transition(?:-([a-z-]+))?(?:-(\d+))?$/, ([, prop, duration = "150"]) => {
|
|
680
662
|
const transitionProperty = validateProperty(prop);
|
|
681
663
|
if (!transitionProperty)
|
|
@@ -704,63 +686,63 @@ var transitions = [
|
|
|
704
686
|
}]
|
|
705
687
|
];
|
|
706
688
|
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
689
|
+
const varEmpty$1 = "var(--un-empty,/*!*/ /*!*/)";
|
|
690
|
+
const filterContnet = "var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia) var(--un-drop-shadow)";
|
|
691
|
+
const filterBase = {
|
|
692
|
+
"--un-blur": varEmpty$1,
|
|
693
|
+
"--un-brightness": varEmpty$1,
|
|
694
|
+
"--un-contrast": varEmpty$1,
|
|
695
|
+
"--un-grayscale": varEmpty$1,
|
|
696
|
+
"--un-hue-rotate": varEmpty$1,
|
|
697
|
+
"--un-invert": varEmpty$1,
|
|
698
|
+
"--un-saturate": varEmpty$1,
|
|
699
|
+
"--un-sepia": varEmpty$1,
|
|
700
|
+
"--un-drop-shadow": varEmpty$1,
|
|
701
|
+
"filter": filterContnet,
|
|
702
|
+
[CONTROL_BYPASS_PSEUDO]: ""
|
|
703
|
+
};
|
|
704
|
+
const backdropFilterContent = "var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-saturate) var(--un-backdrop-sepia)";
|
|
705
|
+
const backdropFilterBase = {
|
|
706
|
+
"--un-backdrop-blur": varEmpty$1,
|
|
707
|
+
"--un-backdrop-brightness": varEmpty$1,
|
|
708
|
+
"--un-backdrop-contrast": varEmpty$1,
|
|
709
|
+
"--un-backdrop-grayscale": varEmpty$1,
|
|
710
|
+
"--un-backdrop-hue-rotate": varEmpty$1,
|
|
711
|
+
"--un-backdrop-invert": varEmpty$1,
|
|
712
|
+
"--un-backdrop-saturate": varEmpty$1,
|
|
713
|
+
"--un-backdrop-sepia": varEmpty$1,
|
|
714
|
+
"-webkit-backdrop-filter": backdropFilterContent,
|
|
715
|
+
"backdrop-filter": backdropFilterContent,
|
|
716
|
+
[CONTROL_BYPASS_PSEUDO]: ""
|
|
717
|
+
};
|
|
718
|
+
const percentWithDefault = (defaultValue = "1") => (str) => {
|
|
711
719
|
const v = str ? handler.bracket.percent(str) : defaultValue;
|
|
712
720
|
return v && parseFloat(v) <= 1 ? v : void 0;
|
|
713
721
|
};
|
|
714
|
-
|
|
722
|
+
const toFilter = (varName, resolver) => ([, b, s], { theme }) => {
|
|
715
723
|
const value = resolver(s, theme);
|
|
716
|
-
if (value)
|
|
717
|
-
return
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
"--un-brightness": varEmpty,
|
|
723
|
-
"--un-contrast": varEmpty,
|
|
724
|
-
"--un-grayscale": varEmpty,
|
|
725
|
-
"--un-hue-rotate": varEmpty,
|
|
726
|
-
"--un-invert": varEmpty,
|
|
727
|
-
"--un-saturate": varEmpty,
|
|
728
|
-
"--un-sepia": varEmpty,
|
|
729
|
-
"--un-drop-shadow": varEmpty,
|
|
730
|
-
"filter": filterContnet
|
|
731
|
-
};
|
|
732
|
-
var backdropFilterContent = "var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-saturate) var(--un-backdrop-sepia)";
|
|
733
|
-
var backdropFilter = {
|
|
734
|
-
"--un-backdrop-blur": varEmpty,
|
|
735
|
-
"--un-backdrop-brightness": varEmpty,
|
|
736
|
-
"--un-backdrop-contrast": varEmpty,
|
|
737
|
-
"--un-backdrop-grayscale": varEmpty,
|
|
738
|
-
"--un-backdrop-hue-rotate": varEmpty,
|
|
739
|
-
"--un-backdrop-invert": varEmpty,
|
|
740
|
-
"--un-backdrop-saturate": varEmpty,
|
|
741
|
-
"--un-backdrop-sepia": varEmpty,
|
|
742
|
-
"-webkit-backdrop-filter": backdropFilterContent,
|
|
743
|
-
"backdrop-filter": backdropFilterContent
|
|
724
|
+
if (value) {
|
|
725
|
+
return [
|
|
726
|
+
b ? backdropFilterBase : filterBase,
|
|
727
|
+
{ [`--un-${b || ""}${varName}`]: `${varName}(${value})` }
|
|
728
|
+
];
|
|
729
|
+
}
|
|
744
730
|
};
|
|
745
|
-
|
|
746
|
-
["filter",
|
|
731
|
+
const filters = [
|
|
732
|
+
["filter", filterBase],
|
|
747
733
|
["filter-none", { filter: "none" }],
|
|
748
|
-
["backdrop-filter",
|
|
734
|
+
["backdrop-filter", backdropFilterBase],
|
|
749
735
|
["backdrop-filter-none", {
|
|
750
736
|
"-webkit-backdrop-filter": "none",
|
|
751
737
|
"backdrop-filter": "none"
|
|
752
738
|
}],
|
|
753
|
-
[/^(backdrop-)?blur(?:-(.+))?$/, toFilter("blur", (s, theme) =>
|
|
754
|
-
var _a;
|
|
755
|
-
return ((_a = theme.blur) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.px(s);
|
|
756
|
-
})],
|
|
739
|
+
[/^(backdrop-)?blur(?:-(.+))?$/, toFilter("blur", (s, theme) => theme.blur?.[s || "DEFAULT"] || handler.bracket.px(s))],
|
|
757
740
|
[/^(backdrop-)?brightness-(\d+)$/, toFilter("brightness", (s) => handler.bracket.percent(s))],
|
|
758
741
|
[/^(backdrop-)?contrast-(\d+)$/, toFilter("contrast", (s) => handler.bracket.percent(s))],
|
|
759
742
|
[/^()?drop-shadow(?:-(.+))?$/, toFilter("drop-shadow", (s, theme) => {
|
|
760
|
-
|
|
761
|
-
const v = handler.bracket(s) || ((_a = theme.dropShadow) == null ? void 0 : _a[s || "DEFAULT"]);
|
|
743
|
+
const v = handler.bracket(s) || theme.dropShadow?.[s || "DEFAULT"];
|
|
762
744
|
if (v)
|
|
763
|
-
return
|
|
745
|
+
return toArray(v).map((v2) => `drop-shadow(${v2})`).join(" ");
|
|
764
746
|
})],
|
|
765
747
|
[/^(backdrop-)?grayscale(?:-(\d+))?$/, toFilter("grayscale", percentWithDefault())],
|
|
766
748
|
[/^(backdrop-)?hue-rotate-(\d+)$/, toFilter("hue-rotate", (s) => `${handler.bracket.number(s)}deg`)],
|
|
@@ -769,8 +751,7 @@ var filters = [
|
|
|
769
751
|
[/^(backdrop-)?sepia(?:-(\d+))?$/, toFilter("sepia", percentWithDefault())]
|
|
770
752
|
];
|
|
771
753
|
|
|
772
|
-
|
|
773
|
-
var flex = [
|
|
754
|
+
const flex = [
|
|
774
755
|
["flex-col", { "flex-direction": "column" }],
|
|
775
756
|
["flex-col-reverse", { "flex-direction": "column-reverse" }],
|
|
776
757
|
["flex-row", { "flex-direction": "row" }],
|
|
@@ -792,12 +773,155 @@ var flex = [
|
|
|
792
773
|
["flex-inline", { display: "inline-flex" }]
|
|
793
774
|
];
|
|
794
775
|
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
776
|
+
const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
777
|
+
const displays = [
|
|
778
|
+
["inline", { display: "inline" }],
|
|
779
|
+
["block", { display: "block" }],
|
|
780
|
+
["inline-block", { display: "inline-block" }],
|
|
781
|
+
["contents", { display: "contents" }],
|
|
782
|
+
["flow-root", { display: "flow-root" }],
|
|
783
|
+
["list-item", { display: "list-item" }],
|
|
784
|
+
["hidden", { display: "none" }]
|
|
785
|
+
];
|
|
786
|
+
const appearances = [
|
|
787
|
+
["visible", { visibility: "visible" }],
|
|
788
|
+
["invisible", { visibility: "hidden" }],
|
|
789
|
+
["backface-visible", { "backface-visibility": "visible" }],
|
|
790
|
+
["backface-hidden", { "backface-visibility": "hidden" }]
|
|
791
|
+
];
|
|
792
|
+
const cursors = [
|
|
793
|
+
[/^cursor-(.+)$/, ([, c]) => ({ cursor: c })]
|
|
794
|
+
];
|
|
795
|
+
const pointerEvents = [
|
|
796
|
+
["pointer-events-none", { "pointer-events": "none" }],
|
|
797
|
+
["pointer-events-auto", { "pointer-events": "auto" }]
|
|
798
|
+
];
|
|
799
|
+
const resizes = [
|
|
800
|
+
["resize-none", { resize: "none" }],
|
|
801
|
+
["resize-x", { resize: "horizontal" }],
|
|
802
|
+
["resize-y", { resize: "vertical" }],
|
|
803
|
+
["resize", { resize: "both" }]
|
|
804
|
+
];
|
|
805
|
+
const userSelects = [
|
|
806
|
+
[/^select-(none|text|all|auto)$/, ([, v]) => ({ "user-select": v })]
|
|
807
|
+
];
|
|
808
|
+
const whitespaces = [
|
|
809
|
+
[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
|
|
810
|
+
];
|
|
811
|
+
const contents = [
|
|
812
|
+
["content-empty", { content: '""' }]
|
|
813
|
+
];
|
|
814
|
+
const breaks = [
|
|
815
|
+
["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
|
|
816
|
+
["break-word", { "overflow-wrap": "break-word" }],
|
|
817
|
+
["break-all", { "word-break": "break-all" }]
|
|
818
|
+
];
|
|
819
|
+
const textOverflows = [
|
|
820
|
+
["truncate", { "overflow": "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }],
|
|
821
|
+
["text-ellipsis", { "text-overflow": "ellipsis" }],
|
|
822
|
+
["text-clip", { "text-overflow": "clip" }]
|
|
823
|
+
];
|
|
824
|
+
const textTransforms = [
|
|
825
|
+
["case-upper", { "text-transform": "uppercase" }],
|
|
826
|
+
["case-lower", { "text-transform": "lowercase" }],
|
|
827
|
+
["case-capital", { "text-transform": "capitalize" }],
|
|
828
|
+
["case-normal", { "text-transform": "none" }],
|
|
829
|
+
["uppercase", { "text-transform": "uppercase" }],
|
|
830
|
+
["lowercase", { "text-transform": "lowercase" }],
|
|
831
|
+
["capitalize", { "text-transform": "capitalize" }],
|
|
832
|
+
["normal-case", { "text-transform": "none" }]
|
|
833
|
+
];
|
|
834
|
+
const textDecorations = [
|
|
835
|
+
["underline", { "text-decoration": "underline" }],
|
|
836
|
+
["line-through", { "text-decoration": "line-through" }],
|
|
837
|
+
["no-underline", { "text-decoration": "none" }]
|
|
838
|
+
];
|
|
839
|
+
const textDecorationStyles = [
|
|
840
|
+
["underline-solid", { "text-decoration-style": "solid" }],
|
|
841
|
+
["underline-double", { "text-decoration-style": "double" }],
|
|
842
|
+
["underline-dotted", { "text-decoration-style": "dotted" }],
|
|
843
|
+
["underline-dashed", { "text-decoration-style": "dashed" }]
|
|
844
|
+
];
|
|
845
|
+
const fontStyles = [
|
|
846
|
+
["italic", { "font-style": "italic" }],
|
|
847
|
+
["not-italic", { "font-style": "normal" }]
|
|
848
|
+
];
|
|
849
|
+
const fontSmoothings = [
|
|
850
|
+
["antialiased", {
|
|
851
|
+
"-webkit-font-smoothing": "antialiased",
|
|
852
|
+
"-moz-osx-font-smoothing": "grayscale",
|
|
853
|
+
"font-smoothing": "grayscale"
|
|
854
|
+
}],
|
|
855
|
+
["subpixel-antialiased", {
|
|
856
|
+
"-webkit-font-smoothing": "auto",
|
|
857
|
+
"-moz-osx-font-smoothing": "auto",
|
|
858
|
+
"font-smoothing": "auto"
|
|
859
|
+
}]
|
|
860
|
+
];
|
|
861
|
+
const hyphens = [
|
|
862
|
+
["hyphens-none", {
|
|
863
|
+
"-webkit-hyphens": "none",
|
|
864
|
+
"-ms-hyphens": "none",
|
|
865
|
+
"hyphens": "none"
|
|
866
|
+
}],
|
|
867
|
+
["hyphens-manual", {
|
|
868
|
+
"-webkit-hyphens": "manual",
|
|
869
|
+
"-ms-hyphens": "manual",
|
|
870
|
+
"hyphens": "manual"
|
|
871
|
+
}],
|
|
872
|
+
["hyphens-auto", {
|
|
873
|
+
"-webkit-hyphens": "auto",
|
|
874
|
+
"-ms-hyphens": "auto",
|
|
875
|
+
"hyphens": "auto"
|
|
876
|
+
}]
|
|
877
|
+
];
|
|
878
|
+
const writingModes = [
|
|
879
|
+
["write-normal", { "writing-mode": "horizontal-tb" }],
|
|
880
|
+
["write-vertical-right", { "writing-mode": "vertical-rl" }],
|
|
881
|
+
["write-vertical-left", { "writing-mode": "vertical-lr" }]
|
|
882
|
+
];
|
|
883
|
+
const writingOrientations = [
|
|
884
|
+
["write-orient-mixed", { "text-orientation": "mixed" }],
|
|
885
|
+
["write-orient-upright", { "text-orientation": "upright" }],
|
|
886
|
+
["write-orient-sideways", { "text-orientation": "sideways" }]
|
|
887
|
+
];
|
|
888
|
+
const screenReadersAccess = [
|
|
889
|
+
[
|
|
890
|
+
"sr-only",
|
|
891
|
+
{
|
|
892
|
+
"position": "absolute",
|
|
893
|
+
"width": "1px",
|
|
894
|
+
"height": "1px",
|
|
895
|
+
"padding": "0",
|
|
896
|
+
"margin": "-1px",
|
|
897
|
+
"overflow": "hidden",
|
|
898
|
+
"clip": "rect(0,0,0,0)",
|
|
899
|
+
"white-space": "nowrap",
|
|
900
|
+
"border-width": 0
|
|
901
|
+
}
|
|
902
|
+
],
|
|
903
|
+
[
|
|
904
|
+
"not-sr-only",
|
|
905
|
+
{
|
|
906
|
+
"position": "static",
|
|
907
|
+
"width": "auto",
|
|
908
|
+
"height": "auto",
|
|
909
|
+
"padding": "0",
|
|
910
|
+
"margin": "0",
|
|
911
|
+
"overflow": "visible",
|
|
912
|
+
"clip": "auto",
|
|
913
|
+
"white-space": "normal"
|
|
914
|
+
}
|
|
915
|
+
]
|
|
916
|
+
];
|
|
917
|
+
const isolations = [
|
|
918
|
+
["isolate", { isolation: "isolate" }],
|
|
919
|
+
["isolate-auto", { isolation: "auto" }]
|
|
920
|
+
];
|
|
921
|
+
|
|
922
|
+
const fontsFamilies = [
|
|
798
923
|
[/^font-(\w+)$/, ([, d], { theme }) => {
|
|
799
|
-
|
|
800
|
-
const font = (_a = theme.fontFamily) == null ? void 0 : _a[d];
|
|
924
|
+
const font = theme.fontFamily?.[d];
|
|
801
925
|
if (font) {
|
|
802
926
|
return {
|
|
803
927
|
"font-family": font
|
|
@@ -805,7 +929,7 @@ var fontsFamilies = [
|
|
|
805
929
|
}
|
|
806
930
|
}]
|
|
807
931
|
];
|
|
808
|
-
|
|
932
|
+
const weightMap = {
|
|
809
933
|
thin: "100",
|
|
810
934
|
extralight: "200",
|
|
811
935
|
light: "300",
|
|
@@ -816,11 +940,10 @@ var weightMap = {
|
|
|
816
940
|
extrabold: "800",
|
|
817
941
|
black: "900"
|
|
818
942
|
};
|
|
819
|
-
|
|
943
|
+
const fontSizes = [
|
|
820
944
|
[/^text-([^-]+)$/, ([, s = "base"], { theme }) => {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
if (result == null ? void 0 : result[0]) {
|
|
945
|
+
const result = toArray(theme.fontSize?.[s] || handler.bracket.rem(s));
|
|
946
|
+
if (result?.[0]) {
|
|
824
947
|
const [size, height = "1"] = result;
|
|
825
948
|
return {
|
|
826
949
|
"font-size": size,
|
|
@@ -829,38 +952,35 @@ var fontSizes = [
|
|
|
829
952
|
}
|
|
830
953
|
}]
|
|
831
954
|
];
|
|
832
|
-
|
|
955
|
+
const fontWeights = [
|
|
833
956
|
[/^(?:font|fw)-?([^-]+)$/, ([, s]) => {
|
|
834
957
|
const v = weightMap[s] || handler.number(s);
|
|
835
958
|
if (v)
|
|
836
959
|
return { "font-weight": v };
|
|
837
960
|
}]
|
|
838
961
|
];
|
|
839
|
-
|
|
962
|
+
const leadings = [
|
|
840
963
|
[/^(?:leading|lh)-([^-]+)$/, ([, s], { theme }) => {
|
|
841
|
-
|
|
842
|
-
const v = ((_a = theme.lineHeight) == null ? void 0 : _a[s]) || handler.bracket.rem(s);
|
|
964
|
+
const v = theme.lineHeight?.[s] || handler.bracket.rem(s);
|
|
843
965
|
if (v !== null)
|
|
844
966
|
return { "line-height": v };
|
|
845
967
|
}]
|
|
846
968
|
];
|
|
847
|
-
|
|
969
|
+
const trackings = [
|
|
848
970
|
[/^tracking-([^-]+)$/, ([, s], { theme }) => {
|
|
849
|
-
|
|
850
|
-
const v = ((_a = theme.letterSpacing) == null ? void 0 : _a[s]) || handler.bracket.rem(s);
|
|
971
|
+
const v = theme.letterSpacing?.[s] || handler.bracket.rem(s);
|
|
851
972
|
if (v !== null)
|
|
852
973
|
return { "letter-spacing": v };
|
|
853
974
|
}]
|
|
854
975
|
];
|
|
855
|
-
|
|
976
|
+
const wordSpacings = [
|
|
856
977
|
[/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
|
|
857
|
-
|
|
858
|
-
const v = ((_a = theme.wordSpacing) == null ? void 0 : _a[s]) || handler.bracket.rem(s);
|
|
978
|
+
const v = theme.wordSpacing?.[s] || handler.bracket.rem(s);
|
|
859
979
|
if (v !== null)
|
|
860
980
|
return { "word-spacing": v };
|
|
861
981
|
}]
|
|
862
982
|
];
|
|
863
|
-
|
|
983
|
+
const tabSizes = [
|
|
864
984
|
[/^tab-?([^-]*)$/, ([, s]) => {
|
|
865
985
|
s = s || "4";
|
|
866
986
|
const v = handler.bracket.global.number(s);
|
|
@@ -873,52 +993,68 @@ var tabSizes = [
|
|
|
873
993
|
}
|
|
874
994
|
}]
|
|
875
995
|
];
|
|
876
|
-
|
|
996
|
+
const textDecorationLengths = [
|
|
877
997
|
[/^underline-([^-]+)$/, ([, s]) => {
|
|
878
998
|
const v = s === "auto" ? s : handler.bracket.px(s);
|
|
879
999
|
if (v != null)
|
|
880
1000
|
return { "text-decoration-thickness": v };
|
|
881
1001
|
}]
|
|
882
1002
|
];
|
|
883
|
-
|
|
1003
|
+
const textDecorationOffsets = [
|
|
884
1004
|
[/^underline-offset-([^-]+)$/, ([, s]) => {
|
|
885
1005
|
const v = s === "auto" ? s : handler.bracket.px(s);
|
|
886
1006
|
if (v != null)
|
|
887
1007
|
return { "text-underline-offset": v };
|
|
888
1008
|
}]
|
|
889
1009
|
];
|
|
890
|
-
|
|
1010
|
+
const textIndents = [
|
|
891
1011
|
[/^indent(?:-(.+))?$/, ([, s], { theme }) => {
|
|
892
|
-
|
|
893
|
-
const v = ((_a = theme.textIndent) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar.fraction.rem(s);
|
|
1012
|
+
const v = theme.textIndent?.[s || "DEFAULT"] || handler.bracket.cssvar.fraction.rem(s);
|
|
894
1013
|
if (v != null)
|
|
895
1014
|
return { "text-indent": v };
|
|
896
1015
|
}]
|
|
897
1016
|
];
|
|
898
|
-
|
|
1017
|
+
const textStrokeWidths = [
|
|
899
1018
|
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => {
|
|
900
|
-
|
|
901
|
-
const v = ((_a = theme.textStrokeWidth) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar.px(s);
|
|
1019
|
+
const v = theme.textStrokeWidth?.[s || "DEFAULT"] || handler.bracket.cssvar.px(s);
|
|
902
1020
|
if (v != null)
|
|
903
1021
|
return { "-webkit-text-stroke-width": v };
|
|
904
1022
|
}]
|
|
905
1023
|
];
|
|
906
|
-
|
|
1024
|
+
const textShadows = [
|
|
907
1025
|
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
908
|
-
|
|
909
|
-
const v = ((_a = theme.textShadow) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar(s);
|
|
1026
|
+
const v = theme.textShadow?.[s || "DEFAULT"] || handler.bracket.cssvar(s);
|
|
910
1027
|
if (v != null)
|
|
911
1028
|
return { "text-shadow": v };
|
|
912
1029
|
}]
|
|
913
1030
|
];
|
|
914
|
-
|
|
1031
|
+
const fontVariantNumericBase = {
|
|
1032
|
+
"--un-ordinal": varEmpty,
|
|
1033
|
+
"--un-slashed-zero": varEmpty,
|
|
1034
|
+
"--un-numeric-figure": varEmpty,
|
|
1035
|
+
"--un-numeric-spacing": varEmpty,
|
|
1036
|
+
"--un-numeric-fraction": varEmpty,
|
|
1037
|
+
"font-variant-numeric": "var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)",
|
|
1038
|
+
[CONTROL_BYPASS_PSEUDO]: ""
|
|
1039
|
+
};
|
|
1040
|
+
const fontVariantNumeric = [
|
|
1041
|
+
[/^ordinal$/, () => [fontVariantNumericBase, { "--un-ordinal": "ordinal" }]],
|
|
1042
|
+
[/^slashed-zero$/, () => [fontVariantNumericBase, { "--un-slashed-zero": "slashed-zero" }]],
|
|
1043
|
+
[/^lining-nums$/, () => [fontVariantNumericBase, { "--un-numeric-figure": "lining-nums" }]],
|
|
1044
|
+
[/^oldstyle-nums$/, () => [fontVariantNumericBase, { "--un-numeric-figure": "oldstyle-nums" }]],
|
|
1045
|
+
[/^proportional-nums$/, () => [fontVariantNumericBase, { "--un-numeric-spacing": "proportional-nums" }]],
|
|
1046
|
+
[/^tabular-nums$/, () => [fontVariantNumericBase, { "--un-numeric-spacing": "tabular-nums" }]],
|
|
1047
|
+
[/^diagonal-fractions$/, () => [fontVariantNumericBase, { "--un-numeric-fraction": "diagonal-fractions" }]],
|
|
1048
|
+
[/^stacked-fractions$/, () => [fontVariantNumericBase, { "--un-numeric-fraction": "stacked-fractions" }]],
|
|
1049
|
+
["normal-nums", { "font-variant-numeric": "normal" }]
|
|
1050
|
+
];
|
|
1051
|
+
const fonts = [
|
|
915
1052
|
fontsFamilies,
|
|
916
1053
|
fontSizes,
|
|
917
1054
|
fontWeights
|
|
918
1055
|
].flat(1);
|
|
919
1056
|
|
|
920
|
-
|
|
921
|
-
var gaps = [
|
|
1057
|
+
const gaps = [
|
|
922
1058
|
[/^(?:flex-|grid-)?gap-([^-]+)$/, ([, s]) => {
|
|
923
1059
|
const v = handler.bracket.rem(s);
|
|
924
1060
|
if (v != null) {
|
|
@@ -948,13 +1084,8 @@ var gaps = [
|
|
|
948
1084
|
}]
|
|
949
1085
|
];
|
|
950
1086
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
var calSize = (s, theme) => {
|
|
954
|
-
var _a;
|
|
955
|
-
return toArray4(((_a = theme.fontSize) == null ? void 0 : _a[s]) || handler.bracket.rem(s))[0];
|
|
956
|
-
};
|
|
957
|
-
var autoDirection = (selector, theme) => {
|
|
1087
|
+
const calSize = (s, theme) => toArray(theme.fontSize?.[s] || handler.bracket.rem(s))[0];
|
|
1088
|
+
const autoDirection = (selector, theme) => {
|
|
958
1089
|
if (selector === "min")
|
|
959
1090
|
return "min-content";
|
|
960
1091
|
else if (selector === "max")
|
|
@@ -963,7 +1094,7 @@ var autoDirection = (selector, theme) => {
|
|
|
963
1094
|
return "minmax(0,1fr)";
|
|
964
1095
|
return calSize(selector, theme);
|
|
965
1096
|
};
|
|
966
|
-
|
|
1097
|
+
const grids = [
|
|
967
1098
|
["grid", { display: "grid" }],
|
|
968
1099
|
["inline-grid", { display: "inline-grid" }],
|
|
969
1100
|
[/^grid-cols-minmax-([\w.-]+)$/, ([, d]) => ({ "grid-template-columns": `repeat(auto-fill, minmax(${d}, 1fr))` })],
|
|
@@ -973,7 +1104,6 @@ var grids = [
|
|
|
973
1104
|
[/^grid-cols-\[(.+)\]$/, ([, v]) => ({ "grid-template-columns": v.replace(/,/g, " ") })],
|
|
974
1105
|
[/^grid-rows-\[(.+)\]$/, ([, v]) => ({ "grid-template-rows": v.replace(/,/g, " ") })],
|
|
975
1106
|
[/^(?:grid-)?(row|col)-(.+)$/, ([, d, v]) => {
|
|
976
|
-
var _a;
|
|
977
1107
|
const key = d === "row" ? "grid-row" : "grid-column";
|
|
978
1108
|
let raw = handler.bracket(v);
|
|
979
1109
|
if (raw)
|
|
@@ -984,7 +1114,7 @@ var grids = [
|
|
|
984
1114
|
if (parts[0] === "span") {
|
|
985
1115
|
if (parts[1] === "full")
|
|
986
1116
|
return { [key]: "1/-1" };
|
|
987
|
-
raw =
|
|
1117
|
+
raw = handler.number.bracket(parts[1])?.toString().replace(/_/g, " ");
|
|
988
1118
|
if (raw)
|
|
989
1119
|
return { [key]: `span ${raw}/span ${raw}` };
|
|
990
1120
|
}
|
|
@@ -998,27 +1128,25 @@ var grids = [
|
|
|
998
1128
|
[/^(?:grid-)?auto-cols-([\w.-]+)$/, ([, v], { theme }) => ({ "grid-auto-columns": `${autoDirection(v, theme)}` })]
|
|
999
1129
|
];
|
|
1000
1130
|
|
|
1001
|
-
|
|
1002
|
-
var overflowValues2 = [
|
|
1131
|
+
const overflowValues = [
|
|
1003
1132
|
"auto",
|
|
1004
1133
|
"hidden",
|
|
1005
1134
|
"visible",
|
|
1006
1135
|
"scroll"
|
|
1007
1136
|
];
|
|
1008
|
-
|
|
1009
|
-
[/^(?:overflow|of)-(.+)$/, ([, v]) =>
|
|
1010
|
-
[/^(?:overflow|of)-([xy])-(.+)$/, ([, d, v]) =>
|
|
1137
|
+
const overflows = [
|
|
1138
|
+
[/^(?:overflow|of)-(.+)$/, ([, v]) => overflowValues.includes(v) ? { overflow: v } : void 0],
|
|
1139
|
+
[/^(?:overflow|of)-([xy])-(.+)$/, ([, d, v]) => overflowValues.includes(v) ? { [`overflow-${d}`]: v } : void 0]
|
|
1011
1140
|
];
|
|
1012
1141
|
|
|
1013
|
-
|
|
1014
|
-
var positions = [
|
|
1142
|
+
const positions = [
|
|
1015
1143
|
["relative", { position: "relative" }],
|
|
1016
1144
|
["absolute", { position: "absolute" }],
|
|
1017
1145
|
["fixed", { position: "fixed" }],
|
|
1018
1146
|
["sticky", { position: "sticky" }],
|
|
1019
1147
|
["static", { position: "static" }]
|
|
1020
1148
|
];
|
|
1021
|
-
|
|
1149
|
+
const justifies = [
|
|
1022
1150
|
["justify-start", { "justify-content": "flex-start" }],
|
|
1023
1151
|
["justify-end", { "justify-content": "flex-end" }],
|
|
1024
1152
|
["justify-center", { "justify-content": "center" }],
|
|
@@ -1026,13 +1154,13 @@ var justifies = [
|
|
|
1026
1154
|
["justify-around", { "justify-content": "space-around" }],
|
|
1027
1155
|
["justify-evenly", { "justify-content": "space-evenly" }]
|
|
1028
1156
|
];
|
|
1029
|
-
|
|
1157
|
+
const orders = [
|
|
1030
1158
|
[/^order-(.+)$/, ([, v]) => ({ order: { first: "-9999", last: "9999", none: "0" }[v] || handler.bracket.number(v) })]
|
|
1031
1159
|
];
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1160
|
+
const basicSet = ["auto", "start", "end", "center", "stretch"];
|
|
1161
|
+
const justifyItems = basicSet.map((i) => [`justify-items-${i}`, { "justify-items": i }]);
|
|
1162
|
+
const justifySelfs = basicSet.map((i) => [`justify-self-${i}`, { "justify-self": i }]);
|
|
1163
|
+
const alignContents = [
|
|
1036
1164
|
["content-start", { "align-content": "flex-start" }],
|
|
1037
1165
|
["content-end", { "align-content": "flex-end" }],
|
|
1038
1166
|
["content-center", { "align-content": "center" }],
|
|
@@ -1040,21 +1168,21 @@ var alignContents = [
|
|
|
1040
1168
|
["content-around", { "align-content": "space-around" }],
|
|
1041
1169
|
["content-evenly", { "align-content": "space-evenly" }]
|
|
1042
1170
|
];
|
|
1043
|
-
|
|
1171
|
+
const alignItems = [
|
|
1044
1172
|
["items-start", { "align-items": "flex-start" }],
|
|
1045
1173
|
["items-end", { "align-items": "flex-end" }],
|
|
1046
1174
|
["items-center", { "align-items": "center" }],
|
|
1047
1175
|
["items-baseline", { "align-items": "baseline" }],
|
|
1048
1176
|
["items-stretch", { "align-items": "stretch" }]
|
|
1049
1177
|
];
|
|
1050
|
-
|
|
1178
|
+
const alignSelfs = [
|
|
1051
1179
|
["self-auto", { "align-self": "auto" }],
|
|
1052
1180
|
["self-start", { "align-self": "flex-start" }],
|
|
1053
1181
|
["self-end", { "align-self": "flex-end" }],
|
|
1054
1182
|
["self-center", { "align-self": "center" }],
|
|
1055
1183
|
["self-stretch", { "align-items": "stretch" }]
|
|
1056
1184
|
];
|
|
1057
|
-
|
|
1185
|
+
const placeContents = [
|
|
1058
1186
|
["place-content-start", { "place-content": "start" }],
|
|
1059
1187
|
["place-content-end", { "place-content": "end" }],
|
|
1060
1188
|
["place-content-center", { "place-content": "center" }],
|
|
@@ -1063,13 +1191,12 @@ var placeContents = [
|
|
|
1063
1191
|
["place-content-evenly", { "place-content": "space-evenly" }],
|
|
1064
1192
|
["place-content-stretch", { "place-content": "stretch" }]
|
|
1065
1193
|
];
|
|
1066
|
-
|
|
1067
|
-
|
|
1194
|
+
const placeItems = basicSet.map((i) => [`place-items-${i}`, { "place-items": i }]);
|
|
1195
|
+
const placeSelfs = basicSet.map((i) => [`place-self-${i}`, { "place-self": i }]);
|
|
1068
1196
|
function handleInsetValue(v) {
|
|
1069
|
-
|
|
1070
|
-
return (_a = { auto: "auto", full: "100%" }[v]) != null ? _a : handler.bracket.fraction.cssvar.rem(v);
|
|
1197
|
+
return { auto: "auto", full: "100%" }[v] ?? handler.bracket.fraction.cssvar.rem(v);
|
|
1071
1198
|
}
|
|
1072
|
-
|
|
1199
|
+
const insets = [
|
|
1073
1200
|
[/^(top|left|right|bottom|inset)-(.+)$/, ([, d, v]) => ({ [d]: handleInsetValue(v) })],
|
|
1074
1201
|
[/^inset-([xy])-(.+)$/, ([, d, v]) => {
|
|
1075
1202
|
const r = handleInsetValue(v);
|
|
@@ -1077,15 +1204,15 @@ var insets = [
|
|
|
1077
1204
|
return directionMap[d].map((i) => [i.slice(1), r]);
|
|
1078
1205
|
}]
|
|
1079
1206
|
];
|
|
1080
|
-
|
|
1207
|
+
const floats = [
|
|
1081
1208
|
[/^float-(left|right|none)$/, ([, value]) => ({ float: value })],
|
|
1082
1209
|
[/^clear-(left|right|both|none)$/, ([, value]) => ({ clear: value })]
|
|
1083
1210
|
];
|
|
1084
|
-
|
|
1211
|
+
const zIndexes = [
|
|
1085
1212
|
["z-auto", { "z-index": "auto" }],
|
|
1086
1213
|
[/^z-([^-]+)$/, ([, v]) => ({ "z-index": handler.number(v) })]
|
|
1087
1214
|
];
|
|
1088
|
-
|
|
1215
|
+
const objectPositions = [
|
|
1089
1216
|
["object-cover", { "object-fit": "cover" }],
|
|
1090
1217
|
["object-contain", { "object-fit": "contain" }],
|
|
1091
1218
|
["object-fill", { "object-fit": "fill" }],
|
|
@@ -1103,7 +1230,7 @@ var objectPositions = [
|
|
|
1103
1230
|
["object-cb", { "object-position": "center bottom" }],
|
|
1104
1231
|
["object-ct", { "object-position": "center top" }]
|
|
1105
1232
|
];
|
|
1106
|
-
|
|
1233
|
+
const boxSizing = [
|
|
1107
1234
|
[
|
|
1108
1235
|
/^box-(border|content)$/,
|
|
1109
1236
|
([, value]) => ({
|
|
@@ -1112,8 +1239,7 @@ var boxSizing = [
|
|
|
1112
1239
|
]
|
|
1113
1240
|
];
|
|
1114
1241
|
|
|
1115
|
-
|
|
1116
|
-
var rings = [
|
|
1242
|
+
const rings = [
|
|
1117
1243
|
[/^ring-?(.*)$/, ([, d]) => {
|
|
1118
1244
|
const value = handler.px(d || "1");
|
|
1119
1245
|
if (value) {
|
|
@@ -1142,8 +1268,7 @@ var rings = [
|
|
|
1142
1268
|
...ringOffsetColors
|
|
1143
1269
|
];
|
|
1144
1270
|
|
|
1145
|
-
|
|
1146
|
-
var colorResolver3 = (body, theme) => {
|
|
1271
|
+
const colorResolver = (body, theme) => {
|
|
1147
1272
|
const data = parseColorUtil(body, theme);
|
|
1148
1273
|
if (!data)
|
|
1149
1274
|
return;
|
|
@@ -1160,7 +1285,7 @@ var colorResolver3 = (body, theme) => {
|
|
|
1160
1285
|
};
|
|
1161
1286
|
}
|
|
1162
1287
|
};
|
|
1163
|
-
|
|
1288
|
+
const mixBlendModes = [
|
|
1164
1289
|
["mix-blend-normal", { "mix-blend-mode": "normal" }],
|
|
1165
1290
|
["mix-blend-multiply", { "mix-blend-mode": "multiply" }],
|
|
1166
1291
|
["mix-blend-screen", { "mix-blend-mode": "screen" }],
|
|
@@ -1178,10 +1303,9 @@ var mixBlendModes = [
|
|
|
1178
1303
|
["mix-blend-color", { "mix-blend-mode": "color" }],
|
|
1179
1304
|
["mix-blend-luminosity", { "mix-blend-mode": "luminosity" }]
|
|
1180
1305
|
];
|
|
1181
|
-
|
|
1306
|
+
const boxShadows = [
|
|
1182
1307
|
[/^shadow-?(.*)$/, ([, d], { theme }) => {
|
|
1183
|
-
|
|
1184
|
-
const value = (_a = theme == null ? void 0 : theme.boxShadow) == null ? void 0 : _a[d || "DEFAULT"];
|
|
1308
|
+
const value = theme?.boxShadow?.[d || "DEFAULT"];
|
|
1185
1309
|
if (value) {
|
|
1186
1310
|
return {
|
|
1187
1311
|
"--un-shadow-color": "0,0,0",
|
|
@@ -1189,37 +1313,34 @@ var boxShadows = [
|
|
|
1189
1313
|
"box-shadow": "var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"
|
|
1190
1314
|
};
|
|
1191
1315
|
}
|
|
1192
|
-
const color =
|
|
1316
|
+
const color = colorResolver(d, theme);
|
|
1193
1317
|
if (color)
|
|
1194
1318
|
return color;
|
|
1195
1319
|
}]
|
|
1196
1320
|
];
|
|
1197
1321
|
|
|
1198
|
-
// src/rules/size.ts
|
|
1199
1322
|
function getPropName(minmax, hw) {
|
|
1200
1323
|
return `${minmax ? `${minmax}-` : ""}${hw === "h" ? "height" : "width"}`;
|
|
1201
1324
|
}
|
|
1202
1325
|
function getThemeValue(minmax, hw, theme, prop) {
|
|
1203
|
-
var _a;
|
|
1204
1326
|
let str = `${hw === "h" ? "height" : "width"}`;
|
|
1205
1327
|
if (minmax)
|
|
1206
1328
|
str = `${minmax}${capitalize(str)}`;
|
|
1207
|
-
return
|
|
1329
|
+
return theme[str]?.[prop];
|
|
1208
1330
|
}
|
|
1209
|
-
|
|
1331
|
+
const sizes = [
|
|
1210
1332
|
[/^(?:(min|max)-)?(w|h)-(.+)$/, ([, m, w, s], { theme }) => {
|
|
1211
1333
|
const v = getThemeValue(m, w, theme, s) || handler.bracket.cssvar.fraction.rem(s);
|
|
1212
1334
|
if (v != null)
|
|
1213
1335
|
return { [getPropName(m, w)]: v };
|
|
1214
1336
|
}],
|
|
1215
1337
|
[/^(?:(min|max)-)?(w)-screen-(.+)$/, ([, m, w, s], { theme }) => {
|
|
1216
|
-
|
|
1217
|
-
const v = (_a = theme.breakpoints) == null ? void 0 : _a[s];
|
|
1338
|
+
const v = theme.breakpoints?.[s];
|
|
1218
1339
|
if (v != null)
|
|
1219
1340
|
return { [getPropName(m, w)]: v };
|
|
1220
1341
|
}]
|
|
1221
1342
|
];
|
|
1222
|
-
|
|
1343
|
+
const aspectRatio = [
|
|
1223
1344
|
["aspect-ratio-auto", { "aspect-ratio": "auto" }],
|
|
1224
1345
|
[/^aspect-ratio-(.+)$/, ([, d]) => {
|
|
1225
1346
|
const v = (/^\d+\/\d+$/.test(d) ? d : null) || handler.bracket.cssvar.number(d);
|
|
@@ -1228,27 +1349,25 @@ var aspectRatio = [
|
|
|
1228
1349
|
}]
|
|
1229
1350
|
];
|
|
1230
1351
|
|
|
1231
|
-
|
|
1232
|
-
var directionSize = (prefix) => ([_, direction, size]) => {
|
|
1352
|
+
const directionSize = (prefix) => ([_, direction, size]) => {
|
|
1233
1353
|
const v = handler.bracket.rem.fraction.cssvar(size);
|
|
1234
1354
|
if (v)
|
|
1235
1355
|
return directionMap[direction].map((i) => [prefix + i, v]);
|
|
1236
1356
|
};
|
|
1237
|
-
|
|
1357
|
+
const paddings = [
|
|
1238
1358
|
[/^pa?()-?(-?.+)$/, directionSize("padding")],
|
|
1239
1359
|
[/^p-?([xy])-?(-?.+)$/, directionSize("padding")],
|
|
1240
1360
|
[/^p-?([rltbse])-?(-?.+)$/, directionSize("padding")]
|
|
1241
1361
|
];
|
|
1242
|
-
|
|
1362
|
+
const margins = [
|
|
1243
1363
|
[/^ma?()-?(-?.+)$/, directionSize("margin")],
|
|
1244
1364
|
[/^m-?([xy])-?(-?.+)$/, directionSize("margin")],
|
|
1245
1365
|
[/^m-?([rltbse])-?(-?.+)$/, directionSize("margin")],
|
|
1246
1366
|
[/^space-?([xy])-?(-?.+)$/, (match) => {
|
|
1247
|
-
var _a;
|
|
1248
1367
|
const [, direction, size] = match;
|
|
1249
1368
|
if (size === "reverse")
|
|
1250
1369
|
return { [`--un-space-${direction}-reverse`]: 1 };
|
|
1251
|
-
const results =
|
|
1370
|
+
const results = directionSize("margin")(match)?.map((item) => {
|
|
1252
1371
|
const value = item[0].endsWith("right") || item[0].endsWith("bottom") ? `calc(${item[1]} * var(--un-space-${direction}-reverse))` : `calc(${item[1]} * calc(1 - var(--un-space-${direction}-reverse)))`;
|
|
1253
1372
|
return [item[0], value];
|
|
1254
1373
|
});
|
|
@@ -1261,154 +1380,7 @@ var margins = [
|
|
|
1261
1380
|
}]
|
|
1262
1381
|
];
|
|
1263
1382
|
|
|
1264
|
-
|
|
1265
|
-
var displays = [
|
|
1266
|
-
["inline", { display: "inline" }],
|
|
1267
|
-
["block", { display: "block" }],
|
|
1268
|
-
["inline-block", { display: "inline-block" }],
|
|
1269
|
-
["contents", { display: "contents" }],
|
|
1270
|
-
["flow-root", { display: "flow-root" }],
|
|
1271
|
-
["list-item", { display: "list-item" }],
|
|
1272
|
-
["hidden", { display: "none" }]
|
|
1273
|
-
];
|
|
1274
|
-
var appearances = [
|
|
1275
|
-
["visible", { visibility: "visible" }],
|
|
1276
|
-
["invisible", { visibility: "hidden" }],
|
|
1277
|
-
["backface-visible", { "backface-visibility": "visible" }],
|
|
1278
|
-
["backface-hidden", { "backface-visibility": "hidden" }]
|
|
1279
|
-
];
|
|
1280
|
-
var cursors = [
|
|
1281
|
-
[/^cursor-(.+)$/, ([, c]) => ({ cursor: c })]
|
|
1282
|
-
];
|
|
1283
|
-
var pointerEvents = [
|
|
1284
|
-
["pointer-events-none", { "pointer-events": "none" }],
|
|
1285
|
-
["pointer-events-auto", { "pointer-events": "auto" }]
|
|
1286
|
-
];
|
|
1287
|
-
var resizes = [
|
|
1288
|
-
["resize-none", { resize: "none" }],
|
|
1289
|
-
["resize-x", { resize: "horizontal" }],
|
|
1290
|
-
["resize-y", { resize: "vertical" }],
|
|
1291
|
-
["resize", { resize: "both" }]
|
|
1292
|
-
];
|
|
1293
|
-
var userSelects = [
|
|
1294
|
-
[/^select-(none|text|all|auto)$/, ([, v]) => ({ "user-select": v })]
|
|
1295
|
-
];
|
|
1296
|
-
var whitespaces = [
|
|
1297
|
-
[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
|
|
1298
|
-
];
|
|
1299
|
-
var contents = [
|
|
1300
|
-
["content-empty", { content: '""' }]
|
|
1301
|
-
];
|
|
1302
|
-
var breaks = [
|
|
1303
|
-
["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
|
|
1304
|
-
["break-word", { "overflow-wrap": "break-word" }],
|
|
1305
|
-
["break-all", { "word-break": "break-all" }]
|
|
1306
|
-
];
|
|
1307
|
-
var textOverflows = [
|
|
1308
|
-
["truncate", { "overflow": "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }],
|
|
1309
|
-
["text-ellipsis", { "text-overflow": "ellipsis" }],
|
|
1310
|
-
["text-clip", { "text-overflow": "clip" }]
|
|
1311
|
-
];
|
|
1312
|
-
var textTransforms = [
|
|
1313
|
-
["case-upper", { "text-transform": "uppercase" }],
|
|
1314
|
-
["case-lower", { "text-transform": "lowercase" }],
|
|
1315
|
-
["case-capital", { "text-transform": "capitalize" }],
|
|
1316
|
-
["case-normal", { "text-transform": "none" }],
|
|
1317
|
-
["uppercase", { "text-transform": "uppercase" }],
|
|
1318
|
-
["lowercase", { "text-transform": "lowercase" }],
|
|
1319
|
-
["capitalize", { "text-transform": "capitalize" }],
|
|
1320
|
-
["normal-case", { "text-transform": "none" }]
|
|
1321
|
-
];
|
|
1322
|
-
var textDecorations = [
|
|
1323
|
-
["underline", { "text-decoration": "underline" }],
|
|
1324
|
-
["line-through", { "text-decoration": "line-through" }],
|
|
1325
|
-
["no-underline", { "text-decoration": "none" }]
|
|
1326
|
-
];
|
|
1327
|
-
var textDecorationStyles = [
|
|
1328
|
-
["underline-solid", { "text-decoration-style": "solid" }],
|
|
1329
|
-
["underline-double", { "text-decoration-style": "double" }],
|
|
1330
|
-
["underline-dotted", { "text-decoration-style": "dotted" }],
|
|
1331
|
-
["underline-dashed", { "text-decoration-style": "dashed" }]
|
|
1332
|
-
];
|
|
1333
|
-
var fontStyles = [
|
|
1334
|
-
["italic", { "font-style": "italic" }],
|
|
1335
|
-
["not-italic", { "font-style": "normal" }]
|
|
1336
|
-
];
|
|
1337
|
-
var fontSmoothings = [
|
|
1338
|
-
["antialiased", {
|
|
1339
|
-
"-webkit-font-smoothing": "antialiased",
|
|
1340
|
-
"-moz-osx-font-smoothing": "grayscale",
|
|
1341
|
-
"font-smoothing": "grayscale"
|
|
1342
|
-
}],
|
|
1343
|
-
["subpixel-antialiased", {
|
|
1344
|
-
"-webkit-font-smoothing": "auto",
|
|
1345
|
-
"-moz-osx-font-smoothing": "auto",
|
|
1346
|
-
"font-smoothing": "auto"
|
|
1347
|
-
}]
|
|
1348
|
-
];
|
|
1349
|
-
var hyphens = [
|
|
1350
|
-
["hyphens-none", {
|
|
1351
|
-
"-webkit-hyphens": "none",
|
|
1352
|
-
"-ms-hyphens": "none",
|
|
1353
|
-
"hyphens": "none"
|
|
1354
|
-
}],
|
|
1355
|
-
["hyphens-manual", {
|
|
1356
|
-
"-webkit-hyphens": "manual",
|
|
1357
|
-
"-ms-hyphens": "manual",
|
|
1358
|
-
"hyphens": "manual"
|
|
1359
|
-
}],
|
|
1360
|
-
["hyphens-auto", {
|
|
1361
|
-
"-webkit-hyphens": "auto",
|
|
1362
|
-
"-ms-hyphens": "auto",
|
|
1363
|
-
"hyphens": "auto"
|
|
1364
|
-
}]
|
|
1365
|
-
];
|
|
1366
|
-
var writingModes = [
|
|
1367
|
-
["write-normal", { "writing-mode": "horizontal-tb" }],
|
|
1368
|
-
["write-vertical-right", { "writing-mode": "vertical-rl" }],
|
|
1369
|
-
["write-vertical-left", { "writing-mode": "vertical-lr" }]
|
|
1370
|
-
];
|
|
1371
|
-
var writingOrientations = [
|
|
1372
|
-
["write-orient-mixed", { "text-orientation": "mixed" }],
|
|
1373
|
-
["write-orient-upright", { "text-orientation": "upright" }],
|
|
1374
|
-
["write-orient-sideways", { "text-orientation": "sideways" }]
|
|
1375
|
-
];
|
|
1376
|
-
var screenReadersAccess = [
|
|
1377
|
-
[
|
|
1378
|
-
"sr-only",
|
|
1379
|
-
{
|
|
1380
|
-
"position": "absolute",
|
|
1381
|
-
"width": "1px",
|
|
1382
|
-
"height": "1px",
|
|
1383
|
-
"padding": "0",
|
|
1384
|
-
"margin": "-1px",
|
|
1385
|
-
"overflow": "hidden",
|
|
1386
|
-
"clip": "rect(0,0,0,0)",
|
|
1387
|
-
"white-space": "nowrap",
|
|
1388
|
-
"border-width": 0
|
|
1389
|
-
}
|
|
1390
|
-
],
|
|
1391
|
-
[
|
|
1392
|
-
"not-sr-only",
|
|
1393
|
-
{
|
|
1394
|
-
"position": "static",
|
|
1395
|
-
"width": "auto",
|
|
1396
|
-
"height": "auto",
|
|
1397
|
-
"padding": "0",
|
|
1398
|
-
"margin": "0",
|
|
1399
|
-
"overflow": "visible",
|
|
1400
|
-
"clip": "auto",
|
|
1401
|
-
"white-space": "normal"
|
|
1402
|
-
}
|
|
1403
|
-
]
|
|
1404
|
-
];
|
|
1405
|
-
var isolations = [
|
|
1406
|
-
["isolate", { isolation: "isolate" }],
|
|
1407
|
-
["isolate-auto", { isolation: "auto" }]
|
|
1408
|
-
];
|
|
1409
|
-
|
|
1410
|
-
// src/rules/table.ts
|
|
1411
|
-
var tables = [
|
|
1383
|
+
const tables = [
|
|
1412
1384
|
["border-collapse", { "border-collapse": "collapse" }],
|
|
1413
1385
|
["border-separate", { "border-collapse": "separate" }],
|
|
1414
1386
|
["caption-top", { "caption-side": "top" }],
|
|
@@ -1429,26 +1401,22 @@ var tables = [
|
|
|
1429
1401
|
["table-row-group", { display: "table-row-group" }]
|
|
1430
1402
|
];
|
|
1431
1403
|
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
],
|
|
1449
|
-
[/^preserve-(3d|flat)$/, ([, value]) => ({
|
|
1450
|
-
"transform-style": value === "3d" ? `preserve-${value}` : value
|
|
1451
|
-
})],
|
|
1404
|
+
const transformBase = {
|
|
1405
|
+
"--un-rotate": 0,
|
|
1406
|
+
"--un-scale-x": 1,
|
|
1407
|
+
"--un-scale-y": 1,
|
|
1408
|
+
"--un-scale-z": 1,
|
|
1409
|
+
"--un-skew-x": 0,
|
|
1410
|
+
"--un-skew-y": 0,
|
|
1411
|
+
"--un-translate-x": 0,
|
|
1412
|
+
"--un-translate-y": 0,
|
|
1413
|
+
"--un-translate-z": 0,
|
|
1414
|
+
"transform": "rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z))",
|
|
1415
|
+
[CONTROL_BYPASS_PSEUDO]: ""
|
|
1416
|
+
};
|
|
1417
|
+
const transforms = [
|
|
1418
|
+
["transform", transformBase],
|
|
1419
|
+
[/^preserve-(3d|flat)$/, ([, value]) => ({ "transform-style": value === "3d" ? `preserve-${value}` : value })],
|
|
1452
1420
|
[/^translate()-([^-]+)$/, handleTranslate],
|
|
1453
1421
|
[/^translate-([xyz])-([^-]+)$/, handleTranslate],
|
|
1454
1422
|
[/^scale()-([^-]+)$/, handleScale],
|
|
@@ -1468,7 +1436,10 @@ function handleTranslate([, d, b]) {
|
|
|
1468
1436
|
const v = handler.bracket.fraction.rem(b);
|
|
1469
1437
|
if (v != null) {
|
|
1470
1438
|
return [
|
|
1471
|
-
|
|
1439
|
+
transformBase,
|
|
1440
|
+
[
|
|
1441
|
+
...xyzMap[d].map((i) => [`--un-translate${i}`, v])
|
|
1442
|
+
]
|
|
1472
1443
|
];
|
|
1473
1444
|
}
|
|
1474
1445
|
}
|
|
@@ -1476,18 +1447,24 @@ function handleScale([, d, b]) {
|
|
|
1476
1447
|
const v = handler.bracket.fraction.percent(b);
|
|
1477
1448
|
if (v != null) {
|
|
1478
1449
|
return [
|
|
1479
|
-
|
|
1450
|
+
transformBase,
|
|
1451
|
+
[
|
|
1452
|
+
...xyzMap[d].map((i) => [`--un-scale${i}`, v])
|
|
1453
|
+
]
|
|
1480
1454
|
];
|
|
1481
1455
|
}
|
|
1482
1456
|
}
|
|
1483
1457
|
function handleRotate([, b]) {
|
|
1484
1458
|
const v = handler.bracket.number(b);
|
|
1485
|
-
if (v != null)
|
|
1486
|
-
return
|
|
1459
|
+
if (v != null) {
|
|
1460
|
+
return [
|
|
1461
|
+
transformBase,
|
|
1462
|
+
{ "--un-rotate": `${v}deg` }
|
|
1463
|
+
];
|
|
1464
|
+
}
|
|
1487
1465
|
}
|
|
1488
1466
|
|
|
1489
|
-
|
|
1490
|
-
var variablesAbbrMap = {
|
|
1467
|
+
const variablesAbbrMap = {
|
|
1491
1468
|
"visible": "visibility",
|
|
1492
1469
|
"select": "user-select",
|
|
1493
1470
|
"vertical": "vertical-align",
|
|
@@ -1525,7 +1502,7 @@ var variablesAbbrMap = {
|
|
|
1525
1502
|
"mix-blend": "mix-blend-mode",
|
|
1526
1503
|
"animate-speed": "animation-speed"
|
|
1527
1504
|
};
|
|
1528
|
-
|
|
1505
|
+
const cssVariables = [[
|
|
1529
1506
|
/^(.+)-\$(.+)$/,
|
|
1530
1507
|
([, name, varname]) => {
|
|
1531
1508
|
const prop = variablesAbbrMap[name];
|
|
@@ -1537,8 +1514,7 @@ var cssVariables = [[
|
|
|
1537
1514
|
}
|
|
1538
1515
|
]];
|
|
1539
1516
|
|
|
1540
|
-
|
|
1541
|
-
var questionMark = [
|
|
1517
|
+
const questionMark = [
|
|
1542
1518
|
[
|
|
1543
1519
|
/^(where|\?)$/,
|
|
1544
1520
|
(_, { constructCSS, generator }) => {
|
|
@@ -1549,20 +1525,19 @@ ${constructCSS({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
|
|
|
1549
1525
|
]
|
|
1550
1526
|
];
|
|
1551
1527
|
|
|
1552
|
-
|
|
1553
|
-
var divideSizes = [
|
|
1528
|
+
const divideSizes = [
|
|
1554
1529
|
[/^divide-?([xy])$/, handlerDivide],
|
|
1555
1530
|
[/^divide-?([xy])-?(-?.+)$/, handlerDivide],
|
|
1556
1531
|
[/^divide-?([xy])-reverse$/, ([, d]) => [[`--un-divide-${d}-reverse`, 1]]]
|
|
1557
1532
|
];
|
|
1558
|
-
|
|
1533
|
+
const divideStyles = [
|
|
1559
1534
|
["divide-solid", { "border-style": "solid" }],
|
|
1560
1535
|
["divide-dashed", { "border-style": "dashed" }],
|
|
1561
1536
|
["divide-dotted", { "border-style": "dotted" }],
|
|
1562
1537
|
["divide-double", { "border-style": "double" }],
|
|
1563
1538
|
["divide-none", { "border-style": "none" }]
|
|
1564
1539
|
];
|
|
1565
|
-
|
|
1540
|
+
const divides = [divideSizes, divideColors, divideStyles].flat(1);
|
|
1566
1541
|
function handlerDivide([, a, b]) {
|
|
1567
1542
|
const [d, s = "1"] = directionMap[a] ? [a, b] : ["", a];
|
|
1568
1543
|
const v = handler.bracket.px(s);
|
|
@@ -1577,8 +1552,7 @@ function handlerDivide([, a, b]) {
|
|
|
1577
1552
|
}
|
|
1578
1553
|
}
|
|
1579
1554
|
|
|
1580
|
-
|
|
1581
|
-
var lineClamps = [
|
|
1555
|
+
const lineClamps = [
|
|
1582
1556
|
[/^line-clamp-(\d+)$/, ([, v]) => ({
|
|
1583
1557
|
"overflow": "hidden",
|
|
1584
1558
|
"display": "-webkit-box",
|
|
@@ -1592,8 +1566,7 @@ var lineClamps = [
|
|
|
1592
1566
|
}]
|
|
1593
1567
|
];
|
|
1594
1568
|
|
|
1595
|
-
|
|
1596
|
-
var rules = [
|
|
1569
|
+
const rules = [
|
|
1597
1570
|
screenReadersAccess,
|
|
1598
1571
|
cssVariables,
|
|
1599
1572
|
paddings,
|
|
@@ -1633,6 +1606,7 @@ var rules = [
|
|
|
1633
1606
|
textAligns,
|
|
1634
1607
|
textColors,
|
|
1635
1608
|
fontStyles,
|
|
1609
|
+
fontVariantNumeric,
|
|
1636
1610
|
fontSmoothings,
|
|
1637
1611
|
hyphens,
|
|
1638
1612
|
writingModes,
|
|
@@ -1691,115 +1665,4 @@ var rules = [
|
|
|
1691
1665
|
questionMark
|
|
1692
1666
|
].flat(1);
|
|
1693
1667
|
|
|
1694
|
-
export {
|
|
1695
|
-
verticalAligns,
|
|
1696
|
-
textAligns,
|
|
1697
|
-
animations,
|
|
1698
|
-
parseColorUtil,
|
|
1699
|
-
colorResolver,
|
|
1700
|
-
opacity,
|
|
1701
|
-
textColors,
|
|
1702
|
-
textDecorationColors,
|
|
1703
|
-
textStrokeColors,
|
|
1704
|
-
bgColors,
|
|
1705
|
-
borderColors,
|
|
1706
|
-
ringColors,
|
|
1707
|
-
ringOffsetColors,
|
|
1708
|
-
divideColors,
|
|
1709
|
-
fillColors,
|
|
1710
|
-
bgAttachments,
|
|
1711
|
-
bgBlendModes,
|
|
1712
|
-
bgClips,
|
|
1713
|
-
bgGradients,
|
|
1714
|
-
bgImages,
|
|
1715
|
-
bgOrigins,
|
|
1716
|
-
bgPositions,
|
|
1717
|
-
bgRepeats,
|
|
1718
|
-
bgSizes,
|
|
1719
|
-
outline,
|
|
1720
|
-
listStyle,
|
|
1721
|
-
boxDecorationBreaks,
|
|
1722
|
-
caretOpacity,
|
|
1723
|
-
caretColors,
|
|
1724
|
-
imageRenderings,
|
|
1725
|
-
appearance,
|
|
1726
|
-
placeholder,
|
|
1727
|
-
overscrolls,
|
|
1728
|
-
borderSizes,
|
|
1729
|
-
borderRadius,
|
|
1730
|
-
borderStyles,
|
|
1731
|
-
borders,
|
|
1732
|
-
container,
|
|
1733
|
-
containerShortcuts,
|
|
1734
|
-
transitions,
|
|
1735
|
-
filters,
|
|
1736
|
-
flex,
|
|
1737
|
-
fontsFamilies,
|
|
1738
|
-
fontSizes,
|
|
1739
|
-
fontWeights,
|
|
1740
|
-
leadings,
|
|
1741
|
-
trackings,
|
|
1742
|
-
wordSpacings,
|
|
1743
|
-
tabSizes,
|
|
1744
|
-
textDecorationLengths,
|
|
1745
|
-
textDecorationOffsets,
|
|
1746
|
-
textIndents,
|
|
1747
|
-
textStrokeWidths,
|
|
1748
|
-
textShadows,
|
|
1749
|
-
fonts,
|
|
1750
|
-
gaps,
|
|
1751
|
-
grids,
|
|
1752
|
-
overflows,
|
|
1753
|
-
positions,
|
|
1754
|
-
justifies,
|
|
1755
|
-
orders,
|
|
1756
|
-
justifyItems,
|
|
1757
|
-
justifySelfs,
|
|
1758
|
-
alignContents,
|
|
1759
|
-
alignItems,
|
|
1760
|
-
alignSelfs,
|
|
1761
|
-
placeContents,
|
|
1762
|
-
placeItems,
|
|
1763
|
-
placeSelfs,
|
|
1764
|
-
insets,
|
|
1765
|
-
floats,
|
|
1766
|
-
zIndexes,
|
|
1767
|
-
objectPositions,
|
|
1768
|
-
boxSizing,
|
|
1769
|
-
rings,
|
|
1770
|
-
mixBlendModes,
|
|
1771
|
-
boxShadows,
|
|
1772
|
-
sizes,
|
|
1773
|
-
aspectRatio,
|
|
1774
|
-
paddings,
|
|
1775
|
-
margins,
|
|
1776
|
-
displays,
|
|
1777
|
-
appearances,
|
|
1778
|
-
cursors,
|
|
1779
|
-
pointerEvents,
|
|
1780
|
-
resizes,
|
|
1781
|
-
userSelects,
|
|
1782
|
-
whitespaces,
|
|
1783
|
-
contents,
|
|
1784
|
-
breaks,
|
|
1785
|
-
textOverflows,
|
|
1786
|
-
textTransforms,
|
|
1787
|
-
textDecorations,
|
|
1788
|
-
textDecorationStyles,
|
|
1789
|
-
fontStyles,
|
|
1790
|
-
fontSmoothings,
|
|
1791
|
-
hyphens,
|
|
1792
|
-
writingModes,
|
|
1793
|
-
writingOrientations,
|
|
1794
|
-
screenReadersAccess,
|
|
1795
|
-
isolations,
|
|
1796
|
-
tables,
|
|
1797
|
-
transforms,
|
|
1798
|
-
cssVariables,
|
|
1799
|
-
questionMark,
|
|
1800
|
-
divideSizes,
|
|
1801
|
-
divideStyles,
|
|
1802
|
-
divides,
|
|
1803
|
-
lineClamps,
|
|
1804
|
-
rules
|
|
1805
|
-
};
|
|
1668
|
+
export { justifySelfs as $, borders as A, parseColorUtil as B, colorResolver$2 as C, opacity as D, textColors as E, textDecorationColors as F, textStrokeColors as G, bgColors as H, borderColors as I, ringColors as J, ringOffsetColors as K, divideColors as L, fillColors as M, container as N, divideSizes as O, divideStyles as P, divides as Q, filters as R, flex as S, gaps as T, grids as U, overflows as V, lineClamps as W, positions as X, justifies as Y, orders as Z, justifyItems as _, animations as a, alignContents as a0, alignItems as a1, alignSelfs as a2, placeContents as a3, placeItems as a4, placeSelfs as a5, insets as a6, floats as a7, zIndexes as a8, objectPositions as a9, writingModes as aA, writingOrientations as aB, screenReadersAccess as aC, isolations as aD, tables as aE, transforms as aF, transitions as aG, fontsFamilies as aH, fontSizes as aI, fontWeights as aJ, leadings as aK, trackings as aL, wordSpacings as aM, tabSizes as aN, textDecorationLengths as aO, textDecorationOffsets as aP, textIndents as aQ, textStrokeWidths as aR, textShadows as aS, fontVariantNumeric as aT, fonts as aU, cssVariables as aV, boxSizing as aa, questionMark as ab, rings as ac, mixBlendModes as ad, boxShadows as ae, sizes as af, aspectRatio as ag, paddings as ah, margins as ai, varEmpty as aj, displays as ak, appearances as al, cursors as am, pointerEvents as an, resizes as ao, userSelects as ap, whitespaces as aq, contents as ar, breaks as as, textOverflows as at, textTransforms as au, textDecorations as av, textDecorationStyles as aw, fontStyles as ax, fontSmoothings as ay, hyphens as az, bgAttachments as b, containerShortcuts as c, bgBlendModes as d, bgClips as e, bgGradients as f, bgImages as g, bgOrigins as h, bgPositions as i, bgRepeats as j, bgSizes as k, listStyle as l, boxDecorationBreaks as m, caretOpacity as n, outline as o, caretColors as p, imageRenderings as q, rules as r, appearance as s, textAligns as t, placeholder as u, verticalAligns as v, overscrolls as w, borderSizes as x, borderRadius as y, borderStyles as z };
|