@unocss/preset-mini 0.50.6 → 0.50.8
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/README.md +2 -126
- package/dist/{colors-fdadc382.d.ts → colors-e683aa85.d.ts} +24 -0
- package/dist/colors.cjs +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/colors.mjs +1 -1
- package/dist/{default-be74c37e.d.ts → default-d9218dd5.d.ts} +24 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +9 -9
- package/dist/rules.cjs +2 -2
- package/dist/rules.mjs +2 -2
- package/dist/shared/{preset-mini.fc0fd434.cjs → preset-mini.2c84a1da.cjs} +2 -2
- package/dist/shared/{preset-mini.2f75df7e.cjs → preset-mini.4b2d3970.cjs} +12 -8
- package/dist/shared/{preset-mini.305062ab.mjs → preset-mini.6c20780a.mjs} +8 -8
- package/dist/shared/{preset-mini.65ac75be.mjs → preset-mini.74b45c11.mjs} +48 -24
- package/dist/shared/{preset-mini.761cdd48.mjs → preset-mini.94514c53.mjs} +42 -39
- package/dist/shared/{preset-mini.ef35a101.cjs → preset-mini.a8322582.cjs} +73 -69
- package/dist/shared/{preset-mini.be40d10c.mjs → preset-mini.b53c93f8.mjs} +12 -8
- package/dist/shared/{preset-mini.9d7e4452.mjs → preset-mini.b68b942d.mjs} +73 -69
- package/dist/shared/{preset-mini.30606736.cjs → preset-mini.bb7dc365.cjs} +48 -24
- package/dist/shared/{preset-mini.4a5aade9.cjs → preset-mini.c4fc86b9.cjs} +8 -8
- package/dist/shared/{preset-mini.f9468448.mjs → preset-mini.d3cd9ef2.mjs} +2 -2
- package/dist/shared/{preset-mini.e96e6b4a.cjs → preset-mini.fea712fb.cjs} +42 -39
- package/dist/theme.cjs +3 -3
- package/dist/theme.d.ts +2 -2
- package/dist/theme.mjs +3 -3
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +4 -4
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +2 -2
- package/dist/variants.d.ts +10 -10
- package/dist/variants.mjs +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const transform = require('./preset-mini.
|
|
3
|
+
const transform = require('./preset-mini.fea712fb.cjs');
|
|
4
4
|
const colors = require('./preset-mini.2be263e2.cjs');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
|
|
@@ -40,7 +40,7 @@ const directions = {
|
|
|
40
40
|
"x": "column-",
|
|
41
41
|
"y": "row-"
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
function handleGap([, d = "", s], { theme }) {
|
|
44
44
|
const v = theme.spacing?.[s] ?? colors.handler.bracket.cssvar.global.rem(s);
|
|
45
45
|
if (v != null) {
|
|
46
46
|
return {
|
|
@@ -48,15 +48,19 @@ const handleGap = ([, d = "", s], { theme }) => {
|
|
|
48
48
|
[`${directions[d]}gap`]: v
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
52
|
const gaps = [
|
|
53
53
|
[/^(?:flex-|grid-)?gap-?()(.+)$/, handleGap, { autocomplete: ["gap-$spacing", "gap-<num>"] }],
|
|
54
54
|
[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/, handleGap, { autocomplete: ["gap-(x|y)-$spacing", "gap-(x|y)-<num>"] }]
|
|
55
55
|
];
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
function rowCol(s) {
|
|
58
|
+
return s.replace("col", "column");
|
|
59
|
+
}
|
|
60
|
+
function rowColTheme(s) {
|
|
61
|
+
return s[0] === "r" ? "Row" : "Column";
|
|
62
|
+
}
|
|
63
|
+
function autoDirection(c, theme, prop) {
|
|
60
64
|
const v = theme[`gridAuto${rowColTheme(c)}`]?.[prop];
|
|
61
65
|
if (v != null)
|
|
62
66
|
return v;
|
|
@@ -69,7 +73,7 @@ const autoDirection = (c, theme, prop) => {
|
|
|
69
73
|
return "minmax(0,1fr)";
|
|
70
74
|
}
|
|
71
75
|
return colors.handler.bracket.cssvar.auto.rem(prop);
|
|
72
|
-
}
|
|
76
|
+
}
|
|
73
77
|
const grids = [
|
|
74
78
|
["grid", { display: "grid" }],
|
|
75
79
|
["inline-grid", { display: "inline-grid" }],
|
|
@@ -201,7 +205,7 @@ const cssVariables = [
|
|
|
201
205
|
}]
|
|
202
206
|
];
|
|
203
207
|
const cssProperty = [
|
|
204
|
-
[/^\[(--(\w|\\\W)+|[\w-]+):([
|
|
208
|
+
[/^\[(--(\w|\\\W)+|[\w-]+):([^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?)\]$/, ([match, prop, , value]) => {
|
|
205
209
|
if (!isURI(match.slice(1, -1)))
|
|
206
210
|
return { [prop]: colors.handler.bracket(`[${value}]`) };
|
|
207
211
|
}]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { escapeRegExp } from '@unocss/core';
|
|
2
2
|
import { q as getBracket } from './preset-mini.617e6696.mjs';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
function variantMatcher(name, handler) {
|
|
5
5
|
let re;
|
|
6
6
|
return {
|
|
7
7
|
name,
|
|
@@ -21,8 +21,8 @@ const variantMatcher = (name, handler) => {
|
|
|
21
21
|
},
|
|
22
22
|
autocomplete: `${name}:`
|
|
23
23
|
};
|
|
24
|
-
}
|
|
25
|
-
|
|
24
|
+
}
|
|
25
|
+
function variantParentMatcher(name, parent) {
|
|
26
26
|
let re;
|
|
27
27
|
return {
|
|
28
28
|
name,
|
|
@@ -42,8 +42,8 @@ const variantParentMatcher = (name, parent) => {
|
|
|
42
42
|
},
|
|
43
43
|
autocomplete: `${name}:`
|
|
44
44
|
};
|
|
45
|
-
}
|
|
46
|
-
|
|
45
|
+
}
|
|
46
|
+
function variantGetBracket(prefix, matcher, separators) {
|
|
47
47
|
if (matcher.startsWith(`${prefix}[`)) {
|
|
48
48
|
const [match, rest] = getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
|
|
49
49
|
if (match && rest) {
|
|
@@ -54,8 +54,8 @@ const variantGetBracket = (prefix, matcher, separators) => {
|
|
|
54
54
|
return [match, rest, ""];
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
57
|
+
}
|
|
58
|
+
function variantGetParameter(prefix, matcher, separators) {
|
|
59
59
|
if (matcher.startsWith(prefix)) {
|
|
60
60
|
const body = variantGetBracket(prefix, matcher, separators);
|
|
61
61
|
if (body) {
|
|
@@ -75,6 +75,6 @@ const variantGetParameter = (prefix, matcher, separators) => {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
}
|
|
78
|
+
}
|
|
79
79
|
|
|
80
80
|
export { variantGetBracket as a, variantMatcher as b, variantParentMatcher as c, variantGetParameter as v };
|
|
@@ -14,7 +14,8 @@ const colors = {
|
|
|
14
14
|
600: "#e11d48",
|
|
15
15
|
700: "#be123c",
|
|
16
16
|
800: "#9f1239",
|
|
17
|
-
900: "#881337"
|
|
17
|
+
900: "#881337",
|
|
18
|
+
950: "#4c0519"
|
|
18
19
|
},
|
|
19
20
|
pink: {
|
|
20
21
|
50: "#fdf2f8",
|
|
@@ -26,7 +27,8 @@ const colors = {
|
|
|
26
27
|
600: "#db2777",
|
|
27
28
|
700: "#be185d",
|
|
28
29
|
800: "#9d174d",
|
|
29
|
-
900: "#831843"
|
|
30
|
+
900: "#831843",
|
|
31
|
+
950: "#500724"
|
|
30
32
|
},
|
|
31
33
|
fuchsia: {
|
|
32
34
|
50: "#fdf4ff",
|
|
@@ -38,7 +40,8 @@ const colors = {
|
|
|
38
40
|
600: "#c026d3",
|
|
39
41
|
700: "#a21caf",
|
|
40
42
|
800: "#86198f",
|
|
41
|
-
900: "#701a75"
|
|
43
|
+
900: "#701a75",
|
|
44
|
+
950: "#4a044e"
|
|
42
45
|
},
|
|
43
46
|
purple: {
|
|
44
47
|
50: "#faf5ff",
|
|
@@ -50,7 +53,8 @@ const colors = {
|
|
|
50
53
|
600: "#9333ea",
|
|
51
54
|
700: "#7e22ce",
|
|
52
55
|
800: "#6b21a8",
|
|
53
|
-
900: "#581c87"
|
|
56
|
+
900: "#581c87",
|
|
57
|
+
950: "#3b0764"
|
|
54
58
|
},
|
|
55
59
|
violet: {
|
|
56
60
|
50: "#f5f3ff",
|
|
@@ -62,7 +66,8 @@ const colors = {
|
|
|
62
66
|
600: "#7c3aed",
|
|
63
67
|
700: "#6d28d9",
|
|
64
68
|
800: "#5b21b6",
|
|
65
|
-
900: "#4c1d95"
|
|
69
|
+
900: "#4c1d95",
|
|
70
|
+
950: "#2e1065"
|
|
66
71
|
},
|
|
67
72
|
indigo: {
|
|
68
73
|
50: "#eef2ff",
|
|
@@ -74,7 +79,8 @@ const colors = {
|
|
|
74
79
|
600: "#4f46e5",
|
|
75
80
|
700: "#4338ca",
|
|
76
81
|
800: "#3730a3",
|
|
77
|
-
900: "#312e81"
|
|
82
|
+
900: "#312e81",
|
|
83
|
+
950: "#1e1b4b"
|
|
78
84
|
},
|
|
79
85
|
blue: {
|
|
80
86
|
50: "#eff6ff",
|
|
@@ -86,7 +92,8 @@ const colors = {
|
|
|
86
92
|
600: "#2563eb",
|
|
87
93
|
700: "#1d4ed8",
|
|
88
94
|
800: "#1e40af",
|
|
89
|
-
900: "#1e3a8a"
|
|
95
|
+
900: "#1e3a8a",
|
|
96
|
+
950: "#172554"
|
|
90
97
|
},
|
|
91
98
|
sky: {
|
|
92
99
|
50: "#f0f9ff",
|
|
@@ -98,7 +105,8 @@ const colors = {
|
|
|
98
105
|
600: "#0284c7",
|
|
99
106
|
700: "#0369a1",
|
|
100
107
|
800: "#075985",
|
|
101
|
-
900: "#0c4a6e"
|
|
108
|
+
900: "#0c4a6e",
|
|
109
|
+
950: "#082f49"
|
|
102
110
|
},
|
|
103
111
|
cyan: {
|
|
104
112
|
50: "#ecfeff",
|
|
@@ -110,7 +118,8 @@ const colors = {
|
|
|
110
118
|
600: "#0891b2",
|
|
111
119
|
700: "#0e7490",
|
|
112
120
|
800: "#155e75",
|
|
113
|
-
900: "#164e63"
|
|
121
|
+
900: "#164e63",
|
|
122
|
+
950: "#083344"
|
|
114
123
|
},
|
|
115
124
|
teal: {
|
|
116
125
|
50: "#f0fdfa",
|
|
@@ -122,7 +131,8 @@ const colors = {
|
|
|
122
131
|
600: "#0d9488",
|
|
123
132
|
700: "#0f766e",
|
|
124
133
|
800: "#115e59",
|
|
125
|
-
900: "#134e4a"
|
|
134
|
+
900: "#134e4a",
|
|
135
|
+
950: "#042f2e"
|
|
126
136
|
},
|
|
127
137
|
emerald: {
|
|
128
138
|
50: "#ecfdf5",
|
|
@@ -134,7 +144,8 @@ const colors = {
|
|
|
134
144
|
600: "#059669",
|
|
135
145
|
700: "#047857",
|
|
136
146
|
800: "#065f46",
|
|
137
|
-
900: "#064e3b"
|
|
147
|
+
900: "#064e3b",
|
|
148
|
+
950: "#022c22"
|
|
138
149
|
},
|
|
139
150
|
green: {
|
|
140
151
|
50: "#f0fdf4",
|
|
@@ -146,7 +157,8 @@ const colors = {
|
|
|
146
157
|
600: "#16a34a",
|
|
147
158
|
700: "#15803d",
|
|
148
159
|
800: "#166534",
|
|
149
|
-
900: "#14532d"
|
|
160
|
+
900: "#14532d",
|
|
161
|
+
950: "#052e16"
|
|
150
162
|
},
|
|
151
163
|
lime: {
|
|
152
164
|
50: "#f7fee7",
|
|
@@ -158,7 +170,8 @@ const colors = {
|
|
|
158
170
|
600: "#65a30d",
|
|
159
171
|
700: "#4d7c0f",
|
|
160
172
|
800: "#3f6212",
|
|
161
|
-
900: "#365314"
|
|
173
|
+
900: "#365314",
|
|
174
|
+
950: "#1a2e05"
|
|
162
175
|
},
|
|
163
176
|
yellow: {
|
|
164
177
|
50: "#fefce8",
|
|
@@ -170,7 +183,8 @@ const colors = {
|
|
|
170
183
|
600: "#ca8a04",
|
|
171
184
|
700: "#a16207",
|
|
172
185
|
800: "#854d0e",
|
|
173
|
-
900: "#713f12"
|
|
186
|
+
900: "#713f12",
|
|
187
|
+
950: "#422006"
|
|
174
188
|
},
|
|
175
189
|
amber: {
|
|
176
190
|
50: "#fffbeb",
|
|
@@ -182,7 +196,8 @@ const colors = {
|
|
|
182
196
|
600: "#d97706",
|
|
183
197
|
700: "#b45309",
|
|
184
198
|
800: "#92400e",
|
|
185
|
-
900: "#78350f"
|
|
199
|
+
900: "#78350f",
|
|
200
|
+
950: "#451a03"
|
|
186
201
|
},
|
|
187
202
|
orange: {
|
|
188
203
|
50: "#fff7ed",
|
|
@@ -194,7 +209,8 @@ const colors = {
|
|
|
194
209
|
600: "#ea580c",
|
|
195
210
|
700: "#c2410c",
|
|
196
211
|
800: "#9a3412",
|
|
197
|
-
900: "#7c2d12"
|
|
212
|
+
900: "#7c2d12",
|
|
213
|
+
950: "#431407"
|
|
198
214
|
},
|
|
199
215
|
red: {
|
|
200
216
|
50: "#fef2f2",
|
|
@@ -206,7 +222,8 @@ const colors = {
|
|
|
206
222
|
600: "#dc2626",
|
|
207
223
|
700: "#b91c1c",
|
|
208
224
|
800: "#991b1b",
|
|
209
|
-
900: "#7f1d1d"
|
|
225
|
+
900: "#7f1d1d",
|
|
226
|
+
950: "#450a0a"
|
|
210
227
|
},
|
|
211
228
|
gray: {
|
|
212
229
|
50: "#f9fafb",
|
|
@@ -218,7 +235,8 @@ const colors = {
|
|
|
218
235
|
600: "#4b5563",
|
|
219
236
|
700: "#374151",
|
|
220
237
|
800: "#1f2937",
|
|
221
|
-
900: "#111827"
|
|
238
|
+
900: "#111827",
|
|
239
|
+
950: "#030712"
|
|
222
240
|
},
|
|
223
241
|
slate: {
|
|
224
242
|
50: "#f8fafc",
|
|
@@ -230,7 +248,8 @@ const colors = {
|
|
|
230
248
|
600: "#475569",
|
|
231
249
|
700: "#334155",
|
|
232
250
|
800: "#1e293b",
|
|
233
|
-
900: "#0f172a"
|
|
251
|
+
900: "#0f172a",
|
|
252
|
+
950: "#020617"
|
|
234
253
|
},
|
|
235
254
|
zinc: {
|
|
236
255
|
50: "#fafafa",
|
|
@@ -242,7 +261,8 @@ const colors = {
|
|
|
242
261
|
600: "#52525b",
|
|
243
262
|
700: "#3f3f46",
|
|
244
263
|
800: "#27272a",
|
|
245
|
-
900: "#18181b"
|
|
264
|
+
900: "#18181b",
|
|
265
|
+
950: "#09090b"
|
|
246
266
|
},
|
|
247
267
|
neutral: {
|
|
248
268
|
50: "#fafafa",
|
|
@@ -254,7 +274,8 @@ const colors = {
|
|
|
254
274
|
600: "#525252",
|
|
255
275
|
700: "#404040",
|
|
256
276
|
800: "#262626",
|
|
257
|
-
900: "#171717"
|
|
277
|
+
900: "#171717",
|
|
278
|
+
950: "#0a0a0a"
|
|
258
279
|
},
|
|
259
280
|
stone: {
|
|
260
281
|
50: "#fafaf9",
|
|
@@ -266,7 +287,8 @@ const colors = {
|
|
|
266
287
|
600: "#57534e",
|
|
267
288
|
700: "#44403c",
|
|
268
289
|
800: "#292524",
|
|
269
|
-
900: "#1c1917"
|
|
290
|
+
900: "#1c1917",
|
|
291
|
+
950: "#0c0a09"
|
|
270
292
|
},
|
|
271
293
|
light: {
|
|
272
294
|
50: "#fdfdfd",
|
|
@@ -278,7 +300,8 @@ const colors = {
|
|
|
278
300
|
600: "#f1f3f5",
|
|
279
301
|
700: "#e9ecef",
|
|
280
302
|
800: "#dee2e6",
|
|
281
|
-
900: "#dde1e3"
|
|
303
|
+
900: "#dde1e3",
|
|
304
|
+
950: "#d8dcdf"
|
|
282
305
|
},
|
|
283
306
|
dark: {
|
|
284
307
|
50: "#4a4a4a",
|
|
@@ -290,7 +313,8 @@ const colors = {
|
|
|
290
313
|
600: "#1c1c1e",
|
|
291
314
|
700: "#1b1b1b",
|
|
292
315
|
800: "#181818",
|
|
293
|
-
900: "#0f0f0f"
|
|
316
|
+
900: "#0f0f0f",
|
|
317
|
+
950: "#080808"
|
|
294
318
|
},
|
|
295
319
|
get lightblue() {
|
|
296
320
|
return this.sky;
|
|
@@ -32,16 +32,16 @@ const outline = [
|
|
|
32
32
|
];
|
|
33
33
|
const appearance = [
|
|
34
34
|
["appearance-none", {
|
|
35
|
-
"appearance": "none",
|
|
36
|
-
"
|
|
35
|
+
"-webkit-appearance": "none",
|
|
36
|
+
"appearance": "none"
|
|
37
37
|
}]
|
|
38
38
|
];
|
|
39
|
-
|
|
39
|
+
function willChangeProperty(prop) {
|
|
40
40
|
return handler.properties.auto.global(prop) ?? {
|
|
41
41
|
contents: "contents",
|
|
42
42
|
scroll: "scroll-position"
|
|
43
43
|
}[prop];
|
|
44
|
-
}
|
|
44
|
+
}
|
|
45
45
|
const willChange = [
|
|
46
46
|
[/^will-change-(.+)/, ([, p]) => ({ "will-change": willChangeProperty(p) })]
|
|
47
47
|
];
|
|
@@ -79,35 +79,37 @@ const borders = [
|
|
|
79
79
|
[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
80
80
|
[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/, handlerBorderStyle]
|
|
81
81
|
];
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
82
|
+
function borderColorResolver(direction) {
|
|
83
|
+
return ([, body], theme) => {
|
|
84
|
+
const data = parseColor(body, theme);
|
|
85
|
+
if (!data)
|
|
86
|
+
return;
|
|
87
|
+
const { alpha, color, cssColor } = data;
|
|
88
|
+
if (cssColor) {
|
|
89
|
+
if (alpha != null) {
|
|
90
|
+
return {
|
|
91
|
+
[`border${direction}-color`]: colorToString(cssColor, alpha)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
if (direction === "") {
|
|
95
|
+
return {
|
|
96
|
+
"--un-border-opacity": colorOpacityToString(cssColor),
|
|
97
|
+
"border-color": colorToString(cssColor, "var(--un-border-opacity)")
|
|
98
|
+
};
|
|
99
|
+
} else {
|
|
100
|
+
return {
|
|
101
|
+
"--un-border-opacity": colorOpacityToString(cssColor),
|
|
102
|
+
[`--un-border${direction}-opacity`]: "var(--un-border-opacity)",
|
|
103
|
+
[`border${direction}-color`]: colorToString(cssColor, `var(--un-border${direction}-opacity)`)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
} else if (color) {
|
|
99
107
|
return {
|
|
100
|
-
|
|
101
|
-
[`--un-border${direction}-opacity`]: "var(--un-border-opacity)",
|
|
102
|
-
[`border${direction}-color`]: colorToString(cssColor, `var(--un-border${direction}-opacity)`)
|
|
108
|
+
[`border${direction}-color`]: colorToString(color, alpha)
|
|
103
109
|
};
|
|
104
110
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
[`border${direction}-color`]: colorToString(color, alpha)
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
+
};
|
|
112
|
+
}
|
|
111
113
|
function handlerBorder(m, ctx) {
|
|
112
114
|
return handlerBorderSize(m, ctx);
|
|
113
115
|
}
|
|
@@ -183,9 +185,9 @@ const transitionPropertyGroup = {
|
|
|
183
185
|
shadow: "box-shadow",
|
|
184
186
|
transform: "transform"
|
|
185
187
|
};
|
|
186
|
-
|
|
188
|
+
function transitionProperty(prop) {
|
|
187
189
|
return handler.properties(prop) ?? transitionPropertyGroup[prop];
|
|
188
|
-
}
|
|
190
|
+
}
|
|
189
191
|
const transitions = [
|
|
190
192
|
[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/, ([, prop, d], { theme }) => {
|
|
191
193
|
const p = prop != null ? transitionProperty(prop) : [transitionPropertyGroup.colors, "opacity", "box-shadow", "transform", "filter", "backdrop-filter"].join(",");
|
|
@@ -517,10 +519,10 @@ const resizes = [
|
|
|
517
519
|
...makeGlobalStaticRules("resize")
|
|
518
520
|
];
|
|
519
521
|
const userSelects = [
|
|
520
|
-
["select-auto", { "user-select": "auto" }],
|
|
521
|
-
["select-all", { "user-select": "all" }],
|
|
522
|
-
["select-text", { "user-select": "text" }],
|
|
523
|
-
["select-none", { "user-select": "none" }],
|
|
522
|
+
["select-auto", { "-webkit-user-select": "auto", "user-select": "auto" }],
|
|
523
|
+
["select-all", { "-webkit-user-select": "all", "user-select": "all" }],
|
|
524
|
+
["select-text", { "-webkit-user-select": "text", "user-select": "text" }],
|
|
525
|
+
["select-none", { "-webkit-user-select": "none", "user-select": "none" }],
|
|
524
526
|
...makeGlobalStaticRules("select", "user-select")
|
|
525
527
|
];
|
|
526
528
|
const whitespaces = [
|
|
@@ -623,10 +625,11 @@ const boxShadows = [
|
|
|
623
625
|
[/^shadow(?:-(.+))?$/, (match, context) => {
|
|
624
626
|
const [, d] = match;
|
|
625
627
|
const { theme } = context;
|
|
626
|
-
const v = theme.boxShadow?.[d || "DEFAULT"]
|
|
627
|
-
|
|
628
|
+
const v = theme.boxShadow?.[d || "DEFAULT"];
|
|
629
|
+
const c = d ? handler.bracket.cssvar(d) : void 0;
|
|
630
|
+
if ((v != null || c != null) && !hasParseableColor(c, theme)) {
|
|
628
631
|
return {
|
|
629
|
-
"--un-shadow": colorableShadows(v, "--un-shadow-color").join(","),
|
|
632
|
+
"--un-shadow": colorableShadows(v || c, "--un-shadow-color").join(","),
|
|
630
633
|
"box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
|
|
631
634
|
};
|
|
632
635
|
}
|