@pequity/squirrel 1.0.28-beta.1 → 1.0.28-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/cjs/tailwind.js +5 -4333
- package/dist/es/tailwind.js +5 -4333
- package/package.json +1 -1
- package/squirrel/utils/tailwind.ts +1 -1
package/dist/es/tailwind.js
CHANGED
|
@@ -1,4336 +1,8 @@
|
|
|
1
1
|
var _a;
|
|
2
|
+
import resolveConfig from "tailwindcss/resolveConfig";
|
|
2
3
|
import { get } from "lodash-es";
|
|
3
4
|
import { config as config$1 } from "./config.js";
|
|
4
|
-
|
|
5
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
6
|
-
}
|
|
7
|
-
var resolveConfig$3 = {};
|
|
8
|
-
var resolveConfig$2 = {};
|
|
9
|
-
var negateValue = {};
|
|
10
|
-
(function(exports) {
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "default", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return negateValue2;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
function negateValue2(value) {
|
|
21
|
-
value = `${value}`;
|
|
22
|
-
if (value === "0") {
|
|
23
|
-
return "0";
|
|
24
|
-
}
|
|
25
|
-
if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(value)) {
|
|
26
|
-
return value.replace(/^[+-]?/, (sign) => sign === "-" ? "" : "-");
|
|
27
|
-
}
|
|
28
|
-
let numericFunctions = [
|
|
29
|
-
"var",
|
|
30
|
-
"calc",
|
|
31
|
-
"min",
|
|
32
|
-
"max",
|
|
33
|
-
"clamp"
|
|
34
|
-
];
|
|
35
|
-
for (const fn of numericFunctions) {
|
|
36
|
-
if (value.includes(`${fn}(`)) {
|
|
37
|
-
return `calc(${value} * -1)`;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
})(negateValue);
|
|
42
|
-
var corePluginList = {};
|
|
43
|
-
(function(exports) {
|
|
44
|
-
Object.defineProperty(exports, "__esModule", {
|
|
45
|
-
value: true
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "default", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function() {
|
|
50
|
-
return _default;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
const _default = [
|
|
54
|
-
"preflight",
|
|
55
|
-
"container",
|
|
56
|
-
"accessibility",
|
|
57
|
-
"pointerEvents",
|
|
58
|
-
"visibility",
|
|
59
|
-
"position",
|
|
60
|
-
"inset",
|
|
61
|
-
"isolation",
|
|
62
|
-
"zIndex",
|
|
63
|
-
"order",
|
|
64
|
-
"gridColumn",
|
|
65
|
-
"gridColumnStart",
|
|
66
|
-
"gridColumnEnd",
|
|
67
|
-
"gridRow",
|
|
68
|
-
"gridRowStart",
|
|
69
|
-
"gridRowEnd",
|
|
70
|
-
"float",
|
|
71
|
-
"clear",
|
|
72
|
-
"margin",
|
|
73
|
-
"boxSizing",
|
|
74
|
-
"lineClamp",
|
|
75
|
-
"display",
|
|
76
|
-
"aspectRatio",
|
|
77
|
-
"size",
|
|
78
|
-
"height",
|
|
79
|
-
"maxHeight",
|
|
80
|
-
"minHeight",
|
|
81
|
-
"width",
|
|
82
|
-
"minWidth",
|
|
83
|
-
"maxWidth",
|
|
84
|
-
"flex",
|
|
85
|
-
"flexShrink",
|
|
86
|
-
"flexGrow",
|
|
87
|
-
"flexBasis",
|
|
88
|
-
"tableLayout",
|
|
89
|
-
"captionSide",
|
|
90
|
-
"borderCollapse",
|
|
91
|
-
"borderSpacing",
|
|
92
|
-
"transformOrigin",
|
|
93
|
-
"translate",
|
|
94
|
-
"rotate",
|
|
95
|
-
"skew",
|
|
96
|
-
"scale",
|
|
97
|
-
"transform",
|
|
98
|
-
"animation",
|
|
99
|
-
"cursor",
|
|
100
|
-
"touchAction",
|
|
101
|
-
"userSelect",
|
|
102
|
-
"resize",
|
|
103
|
-
"scrollSnapType",
|
|
104
|
-
"scrollSnapAlign",
|
|
105
|
-
"scrollSnapStop",
|
|
106
|
-
"scrollMargin",
|
|
107
|
-
"scrollPadding",
|
|
108
|
-
"listStylePosition",
|
|
109
|
-
"listStyleType",
|
|
110
|
-
"listStyleImage",
|
|
111
|
-
"appearance",
|
|
112
|
-
"columns",
|
|
113
|
-
"breakBefore",
|
|
114
|
-
"breakInside",
|
|
115
|
-
"breakAfter",
|
|
116
|
-
"gridAutoColumns",
|
|
117
|
-
"gridAutoFlow",
|
|
118
|
-
"gridAutoRows",
|
|
119
|
-
"gridTemplateColumns",
|
|
120
|
-
"gridTemplateRows",
|
|
121
|
-
"flexDirection",
|
|
122
|
-
"flexWrap",
|
|
123
|
-
"placeContent",
|
|
124
|
-
"placeItems",
|
|
125
|
-
"alignContent",
|
|
126
|
-
"alignItems",
|
|
127
|
-
"justifyContent",
|
|
128
|
-
"justifyItems",
|
|
129
|
-
"gap",
|
|
130
|
-
"space",
|
|
131
|
-
"divideWidth",
|
|
132
|
-
"divideStyle",
|
|
133
|
-
"divideColor",
|
|
134
|
-
"divideOpacity",
|
|
135
|
-
"placeSelf",
|
|
136
|
-
"alignSelf",
|
|
137
|
-
"justifySelf",
|
|
138
|
-
"overflow",
|
|
139
|
-
"overscrollBehavior",
|
|
140
|
-
"scrollBehavior",
|
|
141
|
-
"textOverflow",
|
|
142
|
-
"hyphens",
|
|
143
|
-
"whitespace",
|
|
144
|
-
"textWrap",
|
|
145
|
-
"wordBreak",
|
|
146
|
-
"borderRadius",
|
|
147
|
-
"borderWidth",
|
|
148
|
-
"borderStyle",
|
|
149
|
-
"borderColor",
|
|
150
|
-
"borderOpacity",
|
|
151
|
-
"backgroundColor",
|
|
152
|
-
"backgroundOpacity",
|
|
153
|
-
"backgroundImage",
|
|
154
|
-
"gradientColorStops",
|
|
155
|
-
"boxDecorationBreak",
|
|
156
|
-
"backgroundSize",
|
|
157
|
-
"backgroundAttachment",
|
|
158
|
-
"backgroundClip",
|
|
159
|
-
"backgroundPosition",
|
|
160
|
-
"backgroundRepeat",
|
|
161
|
-
"backgroundOrigin",
|
|
162
|
-
"fill",
|
|
163
|
-
"stroke",
|
|
164
|
-
"strokeWidth",
|
|
165
|
-
"objectFit",
|
|
166
|
-
"objectPosition",
|
|
167
|
-
"padding",
|
|
168
|
-
"textAlign",
|
|
169
|
-
"textIndent",
|
|
170
|
-
"verticalAlign",
|
|
171
|
-
"fontFamily",
|
|
172
|
-
"fontSize",
|
|
173
|
-
"fontWeight",
|
|
174
|
-
"textTransform",
|
|
175
|
-
"fontStyle",
|
|
176
|
-
"fontVariantNumeric",
|
|
177
|
-
"lineHeight",
|
|
178
|
-
"letterSpacing",
|
|
179
|
-
"textColor",
|
|
180
|
-
"textOpacity",
|
|
181
|
-
"textDecoration",
|
|
182
|
-
"textDecorationColor",
|
|
183
|
-
"textDecorationStyle",
|
|
184
|
-
"textDecorationThickness",
|
|
185
|
-
"textUnderlineOffset",
|
|
186
|
-
"fontSmoothing",
|
|
187
|
-
"placeholderColor",
|
|
188
|
-
"placeholderOpacity",
|
|
189
|
-
"caretColor",
|
|
190
|
-
"accentColor",
|
|
191
|
-
"opacity",
|
|
192
|
-
"backgroundBlendMode",
|
|
193
|
-
"mixBlendMode",
|
|
194
|
-
"boxShadow",
|
|
195
|
-
"boxShadowColor",
|
|
196
|
-
"outlineStyle",
|
|
197
|
-
"outlineWidth",
|
|
198
|
-
"outlineOffset",
|
|
199
|
-
"outlineColor",
|
|
200
|
-
"ringWidth",
|
|
201
|
-
"ringColor",
|
|
202
|
-
"ringOpacity",
|
|
203
|
-
"ringOffsetWidth",
|
|
204
|
-
"ringOffsetColor",
|
|
205
|
-
"blur",
|
|
206
|
-
"brightness",
|
|
207
|
-
"contrast",
|
|
208
|
-
"dropShadow",
|
|
209
|
-
"grayscale",
|
|
210
|
-
"hueRotate",
|
|
211
|
-
"invert",
|
|
212
|
-
"saturate",
|
|
213
|
-
"sepia",
|
|
214
|
-
"filter",
|
|
215
|
-
"backdropBlur",
|
|
216
|
-
"backdropBrightness",
|
|
217
|
-
"backdropContrast",
|
|
218
|
-
"backdropGrayscale",
|
|
219
|
-
"backdropHueRotate",
|
|
220
|
-
"backdropInvert",
|
|
221
|
-
"backdropOpacity",
|
|
222
|
-
"backdropSaturate",
|
|
223
|
-
"backdropSepia",
|
|
224
|
-
"backdropFilter",
|
|
225
|
-
"transitionProperty",
|
|
226
|
-
"transitionDelay",
|
|
227
|
-
"transitionDuration",
|
|
228
|
-
"transitionTimingFunction",
|
|
229
|
-
"willChange",
|
|
230
|
-
"contain",
|
|
231
|
-
"content",
|
|
232
|
-
"forcedColorAdjust"
|
|
233
|
-
];
|
|
234
|
-
})(corePluginList);
|
|
235
|
-
var configurePlugins = {};
|
|
236
|
-
(function(exports) {
|
|
237
|
-
Object.defineProperty(exports, "__esModule", {
|
|
238
|
-
value: true
|
|
239
|
-
});
|
|
240
|
-
Object.defineProperty(exports, "default", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function() {
|
|
243
|
-
return _default;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
function _default(pluginConfig, plugins) {
|
|
247
|
-
if (pluginConfig === void 0) {
|
|
248
|
-
return plugins;
|
|
249
|
-
}
|
|
250
|
-
const pluginNames = Array.isArray(pluginConfig) ? pluginConfig : [
|
|
251
|
-
...new Set(plugins.filter((pluginName) => {
|
|
252
|
-
return pluginConfig !== false && pluginConfig[pluginName] !== false;
|
|
253
|
-
}).concat(Object.keys(pluginConfig).filter((pluginName) => {
|
|
254
|
-
return pluginConfig[pluginName] !== false;
|
|
255
|
-
})))
|
|
256
|
-
];
|
|
257
|
-
return pluginNames;
|
|
258
|
-
}
|
|
259
|
-
})(configurePlugins);
|
|
260
|
-
var colors$1 = {};
|
|
261
|
-
var log = {};
|
|
262
|
-
var picocolors_browser = { exports: {} };
|
|
263
|
-
var x = String;
|
|
264
|
-
var create = function() {
|
|
265
|
-
return { isColorSupported: false, reset: x, bold: x, dim: x, italic: x, underline: x, inverse: x, hidden: x, strikethrough: x, black: x, red: x, green: x, yellow: x, blue: x, magenta: x, cyan: x, white: x, gray: x, bgBlack: x, bgRed: x, bgGreen: x, bgYellow: x, bgBlue: x, bgMagenta: x, bgCyan: x, bgWhite: x };
|
|
266
|
-
};
|
|
267
|
-
picocolors_browser.exports = create();
|
|
268
|
-
picocolors_browser.exports.createColors = create;
|
|
269
|
-
var picocolors_browserExports = picocolors_browser.exports;
|
|
270
|
-
(function(exports) {
|
|
271
|
-
Object.defineProperty(exports, "__esModule", {
|
|
272
|
-
value: true
|
|
273
|
-
});
|
|
274
|
-
function _export(target, all) {
|
|
275
|
-
for (var name in all)
|
|
276
|
-
Object.defineProperty(target, name, {
|
|
277
|
-
enumerable: true,
|
|
278
|
-
get: all[name]
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
_export(exports, {
|
|
282
|
-
dim: function() {
|
|
283
|
-
return dim;
|
|
284
|
-
},
|
|
285
|
-
default: function() {
|
|
286
|
-
return _default;
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
const _picocolors = /* @__PURE__ */ _interop_require_default(picocolors_browserExports);
|
|
290
|
-
function _interop_require_default(obj) {
|
|
291
|
-
return obj && obj.__esModule ? obj : {
|
|
292
|
-
default: obj
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
let alreadyShown = /* @__PURE__ */ new Set();
|
|
296
|
-
function log2(type, messages, key) {
|
|
297
|
-
if (typeof process !== "undefined" && process.env.JEST_WORKER_ID)
|
|
298
|
-
return;
|
|
299
|
-
if (key && alreadyShown.has(key))
|
|
300
|
-
return;
|
|
301
|
-
if (key)
|
|
302
|
-
alreadyShown.add(key);
|
|
303
|
-
console.warn("");
|
|
304
|
-
messages.forEach((message) => console.warn(type, "-", message));
|
|
305
|
-
}
|
|
306
|
-
function dim(input) {
|
|
307
|
-
return _picocolors.default.dim(input);
|
|
308
|
-
}
|
|
309
|
-
const _default = {
|
|
310
|
-
info(key, messages) {
|
|
311
|
-
log2(_picocolors.default.bold(_picocolors.default.cyan("info")), ...Array.isArray(key) ? [
|
|
312
|
-
key
|
|
313
|
-
] : [
|
|
314
|
-
messages,
|
|
315
|
-
key
|
|
316
|
-
]);
|
|
317
|
-
},
|
|
318
|
-
warn(key, messages) {
|
|
319
|
-
log2(_picocolors.default.bold(_picocolors.default.yellow("warn")), ...Array.isArray(key) ? [
|
|
320
|
-
key
|
|
321
|
-
] : [
|
|
322
|
-
messages,
|
|
323
|
-
key
|
|
324
|
-
]);
|
|
325
|
-
},
|
|
326
|
-
risk(key, messages) {
|
|
327
|
-
log2(_picocolors.default.bold(_picocolors.default.magenta("risk")), ...Array.isArray(key) ? [
|
|
328
|
-
key
|
|
329
|
-
] : [
|
|
330
|
-
messages,
|
|
331
|
-
key
|
|
332
|
-
]);
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
})(log);
|
|
336
|
-
(function(exports) {
|
|
337
|
-
Object.defineProperty(exports, "__esModule", {
|
|
338
|
-
value: true
|
|
339
|
-
});
|
|
340
|
-
Object.defineProperty(exports, "default", {
|
|
341
|
-
enumerable: true,
|
|
342
|
-
get: function() {
|
|
343
|
-
return _default;
|
|
344
|
-
}
|
|
345
|
-
});
|
|
346
|
-
const _log = /* @__PURE__ */ _interop_require_default(log);
|
|
347
|
-
function _interop_require_default(obj) {
|
|
348
|
-
return obj && obj.__esModule ? obj : {
|
|
349
|
-
default: obj
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function warn({ version, from, to }) {
|
|
353
|
-
_log.default.warn(`${from}-color-renamed`, [
|
|
354
|
-
`As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
|
|
355
|
-
"Update your configuration file to silence this warning."
|
|
356
|
-
]);
|
|
357
|
-
}
|
|
358
|
-
const _default = {
|
|
359
|
-
inherit: "inherit",
|
|
360
|
-
current: "currentColor",
|
|
361
|
-
transparent: "transparent",
|
|
362
|
-
black: "#000",
|
|
363
|
-
white: "#fff",
|
|
364
|
-
slate: {
|
|
365
|
-
50: "#f8fafc",
|
|
366
|
-
100: "#f1f5f9",
|
|
367
|
-
200: "#e2e8f0",
|
|
368
|
-
300: "#cbd5e1",
|
|
369
|
-
400: "#94a3b8",
|
|
370
|
-
500: "#64748b",
|
|
371
|
-
600: "#475569",
|
|
372
|
-
700: "#334155",
|
|
373
|
-
800: "#1e293b",
|
|
374
|
-
900: "#0f172a",
|
|
375
|
-
950: "#020617"
|
|
376
|
-
},
|
|
377
|
-
gray: {
|
|
378
|
-
50: "#f9fafb",
|
|
379
|
-
100: "#f3f4f6",
|
|
380
|
-
200: "#e5e7eb",
|
|
381
|
-
300: "#d1d5db",
|
|
382
|
-
400: "#9ca3af",
|
|
383
|
-
500: "#6b7280",
|
|
384
|
-
600: "#4b5563",
|
|
385
|
-
700: "#374151",
|
|
386
|
-
800: "#1f2937",
|
|
387
|
-
900: "#111827",
|
|
388
|
-
950: "#030712"
|
|
389
|
-
},
|
|
390
|
-
zinc: {
|
|
391
|
-
50: "#fafafa",
|
|
392
|
-
100: "#f4f4f5",
|
|
393
|
-
200: "#e4e4e7",
|
|
394
|
-
300: "#d4d4d8",
|
|
395
|
-
400: "#a1a1aa",
|
|
396
|
-
500: "#71717a",
|
|
397
|
-
600: "#52525b",
|
|
398
|
-
700: "#3f3f46",
|
|
399
|
-
800: "#27272a",
|
|
400
|
-
900: "#18181b",
|
|
401
|
-
950: "#09090b"
|
|
402
|
-
},
|
|
403
|
-
neutral: {
|
|
404
|
-
50: "#fafafa",
|
|
405
|
-
100: "#f5f5f5",
|
|
406
|
-
200: "#e5e5e5",
|
|
407
|
-
300: "#d4d4d4",
|
|
408
|
-
400: "#a3a3a3",
|
|
409
|
-
500: "#737373",
|
|
410
|
-
600: "#525252",
|
|
411
|
-
700: "#404040",
|
|
412
|
-
800: "#262626",
|
|
413
|
-
900: "#171717",
|
|
414
|
-
950: "#0a0a0a"
|
|
415
|
-
},
|
|
416
|
-
stone: {
|
|
417
|
-
50: "#fafaf9",
|
|
418
|
-
100: "#f5f5f4",
|
|
419
|
-
200: "#e7e5e4",
|
|
420
|
-
300: "#d6d3d1",
|
|
421
|
-
400: "#a8a29e",
|
|
422
|
-
500: "#78716c",
|
|
423
|
-
600: "#57534e",
|
|
424
|
-
700: "#44403c",
|
|
425
|
-
800: "#292524",
|
|
426
|
-
900: "#1c1917",
|
|
427
|
-
950: "#0c0a09"
|
|
428
|
-
},
|
|
429
|
-
red: {
|
|
430
|
-
50: "#fef2f2",
|
|
431
|
-
100: "#fee2e2",
|
|
432
|
-
200: "#fecaca",
|
|
433
|
-
300: "#fca5a5",
|
|
434
|
-
400: "#f87171",
|
|
435
|
-
500: "#ef4444",
|
|
436
|
-
600: "#dc2626",
|
|
437
|
-
700: "#b91c1c",
|
|
438
|
-
800: "#991b1b",
|
|
439
|
-
900: "#7f1d1d",
|
|
440
|
-
950: "#450a0a"
|
|
441
|
-
},
|
|
442
|
-
orange: {
|
|
443
|
-
50: "#fff7ed",
|
|
444
|
-
100: "#ffedd5",
|
|
445
|
-
200: "#fed7aa",
|
|
446
|
-
300: "#fdba74",
|
|
447
|
-
400: "#fb923c",
|
|
448
|
-
500: "#f97316",
|
|
449
|
-
600: "#ea580c",
|
|
450
|
-
700: "#c2410c",
|
|
451
|
-
800: "#9a3412",
|
|
452
|
-
900: "#7c2d12",
|
|
453
|
-
950: "#431407"
|
|
454
|
-
},
|
|
455
|
-
amber: {
|
|
456
|
-
50: "#fffbeb",
|
|
457
|
-
100: "#fef3c7",
|
|
458
|
-
200: "#fde68a",
|
|
459
|
-
300: "#fcd34d",
|
|
460
|
-
400: "#fbbf24",
|
|
461
|
-
500: "#f59e0b",
|
|
462
|
-
600: "#d97706",
|
|
463
|
-
700: "#b45309",
|
|
464
|
-
800: "#92400e",
|
|
465
|
-
900: "#78350f",
|
|
466
|
-
950: "#451a03"
|
|
467
|
-
},
|
|
468
|
-
yellow: {
|
|
469
|
-
50: "#fefce8",
|
|
470
|
-
100: "#fef9c3",
|
|
471
|
-
200: "#fef08a",
|
|
472
|
-
300: "#fde047",
|
|
473
|
-
400: "#facc15",
|
|
474
|
-
500: "#eab308",
|
|
475
|
-
600: "#ca8a04",
|
|
476
|
-
700: "#a16207",
|
|
477
|
-
800: "#854d0e",
|
|
478
|
-
900: "#713f12",
|
|
479
|
-
950: "#422006"
|
|
480
|
-
},
|
|
481
|
-
lime: {
|
|
482
|
-
50: "#f7fee7",
|
|
483
|
-
100: "#ecfccb",
|
|
484
|
-
200: "#d9f99d",
|
|
485
|
-
300: "#bef264",
|
|
486
|
-
400: "#a3e635",
|
|
487
|
-
500: "#84cc16",
|
|
488
|
-
600: "#65a30d",
|
|
489
|
-
700: "#4d7c0f",
|
|
490
|
-
800: "#3f6212",
|
|
491
|
-
900: "#365314",
|
|
492
|
-
950: "#1a2e05"
|
|
493
|
-
},
|
|
494
|
-
green: {
|
|
495
|
-
50: "#f0fdf4",
|
|
496
|
-
100: "#dcfce7",
|
|
497
|
-
200: "#bbf7d0",
|
|
498
|
-
300: "#86efac",
|
|
499
|
-
400: "#4ade80",
|
|
500
|
-
500: "#22c55e",
|
|
501
|
-
600: "#16a34a",
|
|
502
|
-
700: "#15803d",
|
|
503
|
-
800: "#166534",
|
|
504
|
-
900: "#14532d",
|
|
505
|
-
950: "#052e16"
|
|
506
|
-
},
|
|
507
|
-
emerald: {
|
|
508
|
-
50: "#ecfdf5",
|
|
509
|
-
100: "#d1fae5",
|
|
510
|
-
200: "#a7f3d0",
|
|
511
|
-
300: "#6ee7b7",
|
|
512
|
-
400: "#34d399",
|
|
513
|
-
500: "#10b981",
|
|
514
|
-
600: "#059669",
|
|
515
|
-
700: "#047857",
|
|
516
|
-
800: "#065f46",
|
|
517
|
-
900: "#064e3b",
|
|
518
|
-
950: "#022c22"
|
|
519
|
-
},
|
|
520
|
-
teal: {
|
|
521
|
-
50: "#f0fdfa",
|
|
522
|
-
100: "#ccfbf1",
|
|
523
|
-
200: "#99f6e4",
|
|
524
|
-
300: "#5eead4",
|
|
525
|
-
400: "#2dd4bf",
|
|
526
|
-
500: "#14b8a6",
|
|
527
|
-
600: "#0d9488",
|
|
528
|
-
700: "#0f766e",
|
|
529
|
-
800: "#115e59",
|
|
530
|
-
900: "#134e4a",
|
|
531
|
-
950: "#042f2e"
|
|
532
|
-
},
|
|
533
|
-
cyan: {
|
|
534
|
-
50: "#ecfeff",
|
|
535
|
-
100: "#cffafe",
|
|
536
|
-
200: "#a5f3fc",
|
|
537
|
-
300: "#67e8f9",
|
|
538
|
-
400: "#22d3ee",
|
|
539
|
-
500: "#06b6d4",
|
|
540
|
-
600: "#0891b2",
|
|
541
|
-
700: "#0e7490",
|
|
542
|
-
800: "#155e75",
|
|
543
|
-
900: "#164e63",
|
|
544
|
-
950: "#083344"
|
|
545
|
-
},
|
|
546
|
-
sky: {
|
|
547
|
-
50: "#f0f9ff",
|
|
548
|
-
100: "#e0f2fe",
|
|
549
|
-
200: "#bae6fd",
|
|
550
|
-
300: "#7dd3fc",
|
|
551
|
-
400: "#38bdf8",
|
|
552
|
-
500: "#0ea5e9",
|
|
553
|
-
600: "#0284c7",
|
|
554
|
-
700: "#0369a1",
|
|
555
|
-
800: "#075985",
|
|
556
|
-
900: "#0c4a6e",
|
|
557
|
-
950: "#082f49"
|
|
558
|
-
},
|
|
559
|
-
blue: {
|
|
560
|
-
50: "#eff6ff",
|
|
561
|
-
100: "#dbeafe",
|
|
562
|
-
200: "#bfdbfe",
|
|
563
|
-
300: "#93c5fd",
|
|
564
|
-
400: "#60a5fa",
|
|
565
|
-
500: "#3b82f6",
|
|
566
|
-
600: "#2563eb",
|
|
567
|
-
700: "#1d4ed8",
|
|
568
|
-
800: "#1e40af",
|
|
569
|
-
900: "#1e3a8a",
|
|
570
|
-
950: "#172554"
|
|
571
|
-
},
|
|
572
|
-
indigo: {
|
|
573
|
-
50: "#eef2ff",
|
|
574
|
-
100: "#e0e7ff",
|
|
575
|
-
200: "#c7d2fe",
|
|
576
|
-
300: "#a5b4fc",
|
|
577
|
-
400: "#818cf8",
|
|
578
|
-
500: "#6366f1",
|
|
579
|
-
600: "#4f46e5",
|
|
580
|
-
700: "#4338ca",
|
|
581
|
-
800: "#3730a3",
|
|
582
|
-
900: "#312e81",
|
|
583
|
-
950: "#1e1b4b"
|
|
584
|
-
},
|
|
585
|
-
violet: {
|
|
586
|
-
50: "#f5f3ff",
|
|
587
|
-
100: "#ede9fe",
|
|
588
|
-
200: "#ddd6fe",
|
|
589
|
-
300: "#c4b5fd",
|
|
590
|
-
400: "#a78bfa",
|
|
591
|
-
500: "#8b5cf6",
|
|
592
|
-
600: "#7c3aed",
|
|
593
|
-
700: "#6d28d9",
|
|
594
|
-
800: "#5b21b6",
|
|
595
|
-
900: "#4c1d95",
|
|
596
|
-
950: "#2e1065"
|
|
597
|
-
},
|
|
598
|
-
purple: {
|
|
599
|
-
50: "#faf5ff",
|
|
600
|
-
100: "#f3e8ff",
|
|
601
|
-
200: "#e9d5ff",
|
|
602
|
-
300: "#d8b4fe",
|
|
603
|
-
400: "#c084fc",
|
|
604
|
-
500: "#a855f7",
|
|
605
|
-
600: "#9333ea",
|
|
606
|
-
700: "#7e22ce",
|
|
607
|
-
800: "#6b21a8",
|
|
608
|
-
900: "#581c87",
|
|
609
|
-
950: "#3b0764"
|
|
610
|
-
},
|
|
611
|
-
fuchsia: {
|
|
612
|
-
50: "#fdf4ff",
|
|
613
|
-
100: "#fae8ff",
|
|
614
|
-
200: "#f5d0fe",
|
|
615
|
-
300: "#f0abfc",
|
|
616
|
-
400: "#e879f9",
|
|
617
|
-
500: "#d946ef",
|
|
618
|
-
600: "#c026d3",
|
|
619
|
-
700: "#a21caf",
|
|
620
|
-
800: "#86198f",
|
|
621
|
-
900: "#701a75",
|
|
622
|
-
950: "#4a044e"
|
|
623
|
-
},
|
|
624
|
-
pink: {
|
|
625
|
-
50: "#fdf2f8",
|
|
626
|
-
100: "#fce7f3",
|
|
627
|
-
200: "#fbcfe8",
|
|
628
|
-
300: "#f9a8d4",
|
|
629
|
-
400: "#f472b6",
|
|
630
|
-
500: "#ec4899",
|
|
631
|
-
600: "#db2777",
|
|
632
|
-
700: "#be185d",
|
|
633
|
-
800: "#9d174d",
|
|
634
|
-
900: "#831843",
|
|
635
|
-
950: "#500724"
|
|
636
|
-
},
|
|
637
|
-
rose: {
|
|
638
|
-
50: "#fff1f2",
|
|
639
|
-
100: "#ffe4e6",
|
|
640
|
-
200: "#fecdd3",
|
|
641
|
-
300: "#fda4af",
|
|
642
|
-
400: "#fb7185",
|
|
643
|
-
500: "#f43f5e",
|
|
644
|
-
600: "#e11d48",
|
|
645
|
-
700: "#be123c",
|
|
646
|
-
800: "#9f1239",
|
|
647
|
-
900: "#881337",
|
|
648
|
-
950: "#4c0519"
|
|
649
|
-
},
|
|
650
|
-
get lightBlue() {
|
|
651
|
-
warn({
|
|
652
|
-
version: "v2.2",
|
|
653
|
-
from: "lightBlue",
|
|
654
|
-
to: "sky"
|
|
655
|
-
});
|
|
656
|
-
return this.sky;
|
|
657
|
-
},
|
|
658
|
-
get warmGray() {
|
|
659
|
-
warn({
|
|
660
|
-
version: "v3.0",
|
|
661
|
-
from: "warmGray",
|
|
662
|
-
to: "stone"
|
|
663
|
-
});
|
|
664
|
-
return this.stone;
|
|
665
|
-
},
|
|
666
|
-
get trueGray() {
|
|
667
|
-
warn({
|
|
668
|
-
version: "v3.0",
|
|
669
|
-
from: "trueGray",
|
|
670
|
-
to: "neutral"
|
|
671
|
-
});
|
|
672
|
-
return this.neutral;
|
|
673
|
-
},
|
|
674
|
-
get coolGray() {
|
|
675
|
-
warn({
|
|
676
|
-
version: "v3.0",
|
|
677
|
-
from: "coolGray",
|
|
678
|
-
to: "gray"
|
|
679
|
-
});
|
|
680
|
-
return this.gray;
|
|
681
|
-
},
|
|
682
|
-
get blueGray() {
|
|
683
|
-
warn({
|
|
684
|
-
version: "v3.0",
|
|
685
|
-
from: "blueGray",
|
|
686
|
-
to: "slate"
|
|
687
|
-
});
|
|
688
|
-
return this.slate;
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
})(colors$1);
|
|
692
|
-
var defaults = {};
|
|
693
|
-
(function(exports) {
|
|
694
|
-
Object.defineProperty(exports, "__esModule", {
|
|
695
|
-
value: true
|
|
696
|
-
});
|
|
697
|
-
Object.defineProperty(exports, "defaults", {
|
|
698
|
-
enumerable: true,
|
|
699
|
-
get: function() {
|
|
700
|
-
return defaults2;
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
function defaults2(target, ...sources) {
|
|
704
|
-
for (let source of sources) {
|
|
705
|
-
for (let k in source) {
|
|
706
|
-
var _target_hasOwnProperty;
|
|
707
|
-
if (!(target === null || target === void 0 ? void 0 : (_target_hasOwnProperty = target.hasOwnProperty) === null || _target_hasOwnProperty === void 0 ? void 0 : _target_hasOwnProperty.call(target, k))) {
|
|
708
|
-
target[k] = source[k];
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
for (let k of Object.getOwnPropertySymbols(source)) {
|
|
712
|
-
var _target_hasOwnProperty1;
|
|
713
|
-
if (!(target === null || target === void 0 ? void 0 : (_target_hasOwnProperty1 = target.hasOwnProperty) === null || _target_hasOwnProperty1 === void 0 ? void 0 : _target_hasOwnProperty1.call(target, k))) {
|
|
714
|
-
target[k] = source[k];
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
return target;
|
|
719
|
-
}
|
|
720
|
-
})(defaults);
|
|
721
|
-
var toPath = {};
|
|
722
|
-
(function(exports) {
|
|
723
|
-
Object.defineProperty(exports, "__esModule", {
|
|
724
|
-
value: true
|
|
725
|
-
});
|
|
726
|
-
Object.defineProperty(exports, "toPath", {
|
|
727
|
-
enumerable: true,
|
|
728
|
-
get: function() {
|
|
729
|
-
return toPath2;
|
|
730
|
-
}
|
|
731
|
-
});
|
|
732
|
-
function toPath2(path) {
|
|
733
|
-
if (Array.isArray(path))
|
|
734
|
-
return path;
|
|
735
|
-
let openBrackets = path.split("[").length - 1;
|
|
736
|
-
let closedBrackets = path.split("]").length - 1;
|
|
737
|
-
if (openBrackets !== closedBrackets) {
|
|
738
|
-
throw new Error(`Path is invalid. Has unbalanced brackets: ${path}`);
|
|
739
|
-
}
|
|
740
|
-
return path.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
|
|
741
|
-
}
|
|
742
|
-
})(toPath);
|
|
743
|
-
var normalizeConfig = {};
|
|
744
|
-
var featureFlags = {};
|
|
745
|
-
(function(exports) {
|
|
746
|
-
Object.defineProperty(exports, "__esModule", {
|
|
747
|
-
value: true
|
|
748
|
-
});
|
|
749
|
-
function _export(target, all) {
|
|
750
|
-
for (var name in all)
|
|
751
|
-
Object.defineProperty(target, name, {
|
|
752
|
-
enumerable: true,
|
|
753
|
-
get: all[name]
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
_export(exports, {
|
|
757
|
-
flagEnabled: function() {
|
|
758
|
-
return flagEnabled;
|
|
759
|
-
},
|
|
760
|
-
issueFlagNotices: function() {
|
|
761
|
-
return issueFlagNotices;
|
|
762
|
-
},
|
|
763
|
-
default: function() {
|
|
764
|
-
return _default;
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
const _picocolors = /* @__PURE__ */ _interop_require_default(picocolors_browserExports);
|
|
768
|
-
const _log = /* @__PURE__ */ _interop_require_default(log);
|
|
769
|
-
function _interop_require_default(obj) {
|
|
770
|
-
return obj && obj.__esModule ? obj : {
|
|
771
|
-
default: obj
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
let defaults2 = {
|
|
775
|
-
optimizeUniversalDefaults: false,
|
|
776
|
-
generalizedModifiers: true,
|
|
777
|
-
disableColorOpacityUtilitiesByDefault: false,
|
|
778
|
-
relativeContentPathsByDefault: false
|
|
779
|
-
};
|
|
780
|
-
let featureFlags2 = {
|
|
781
|
-
future: [
|
|
782
|
-
"hoverOnlyWhenSupported",
|
|
783
|
-
"respectDefaultRingColorOpacity",
|
|
784
|
-
"disableColorOpacityUtilitiesByDefault",
|
|
785
|
-
"relativeContentPathsByDefault"
|
|
786
|
-
],
|
|
787
|
-
experimental: [
|
|
788
|
-
"optimizeUniversalDefaults",
|
|
789
|
-
"generalizedModifiers"
|
|
790
|
-
]
|
|
791
|
-
};
|
|
792
|
-
function flagEnabled(config2, flag) {
|
|
793
|
-
if (featureFlags2.future.includes(flag)) {
|
|
794
|
-
var _config_future;
|
|
795
|
-
var _config_future_flag, _ref;
|
|
796
|
-
return config2.future === "all" || ((_ref = (_config_future_flag = config2 === null || config2 === void 0 ? void 0 : (_config_future = config2.future) === null || _config_future === void 0 ? void 0 : _config_future[flag]) !== null && _config_future_flag !== void 0 ? _config_future_flag : defaults2[flag]) !== null && _ref !== void 0 ? _ref : false);
|
|
797
|
-
}
|
|
798
|
-
if (featureFlags2.experimental.includes(flag)) {
|
|
799
|
-
var _config_experimental;
|
|
800
|
-
var _config_experimental_flag, _ref1;
|
|
801
|
-
return config2.experimental === "all" || ((_ref1 = (_config_experimental_flag = config2 === null || config2 === void 0 ? void 0 : (_config_experimental = config2.experimental) === null || _config_experimental === void 0 ? void 0 : _config_experimental[flag]) !== null && _config_experimental_flag !== void 0 ? _config_experimental_flag : defaults2[flag]) !== null && _ref1 !== void 0 ? _ref1 : false);
|
|
802
|
-
}
|
|
803
|
-
return false;
|
|
804
|
-
}
|
|
805
|
-
function experimentalFlagsEnabled(config2) {
|
|
806
|
-
if (config2.experimental === "all") {
|
|
807
|
-
return featureFlags2.experimental;
|
|
808
|
-
}
|
|
809
|
-
var _config_experimental;
|
|
810
|
-
return Object.keys((_config_experimental = config2 === null || config2 === void 0 ? void 0 : config2.experimental) !== null && _config_experimental !== void 0 ? _config_experimental : {}).filter((flag) => featureFlags2.experimental.includes(flag) && config2.experimental[flag]);
|
|
811
|
-
}
|
|
812
|
-
function issueFlagNotices(config2) {
|
|
813
|
-
if (process.env.JEST_WORKER_ID !== void 0) {
|
|
814
|
-
return;
|
|
815
|
-
}
|
|
816
|
-
if (experimentalFlagsEnabled(config2).length > 0) {
|
|
817
|
-
let changes = experimentalFlagsEnabled(config2).map((s) => _picocolors.default.yellow(s)).join(", ");
|
|
818
|
-
_log.default.warn("experimental-flags-enabled", [
|
|
819
|
-
`You have enabled experimental features: ${changes}`,
|
|
820
|
-
"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
|
|
821
|
-
]);
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
const _default = featureFlags2;
|
|
825
|
-
})(featureFlags);
|
|
826
|
-
(function(exports) {
|
|
827
|
-
Object.defineProperty(exports, "__esModule", {
|
|
828
|
-
value: true
|
|
829
|
-
});
|
|
830
|
-
Object.defineProperty(exports, "normalizeConfig", {
|
|
831
|
-
enumerable: true,
|
|
832
|
-
get: function() {
|
|
833
|
-
return normalizeConfig2;
|
|
834
|
-
}
|
|
835
|
-
});
|
|
836
|
-
const _featureFlags = featureFlags;
|
|
837
|
-
const _log = /* @__PURE__ */ _interop_require_wildcard(log);
|
|
838
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
839
|
-
if (typeof WeakMap !== "function")
|
|
840
|
-
return null;
|
|
841
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
842
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
843
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
844
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
845
|
-
})(nodeInterop);
|
|
846
|
-
}
|
|
847
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
848
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
849
|
-
return obj;
|
|
850
|
-
}
|
|
851
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
852
|
-
return {
|
|
853
|
-
default: obj
|
|
854
|
-
};
|
|
855
|
-
}
|
|
856
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
857
|
-
if (cache && cache.has(obj)) {
|
|
858
|
-
return cache.get(obj);
|
|
859
|
-
}
|
|
860
|
-
var newObj = {};
|
|
861
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
862
|
-
for (var key in obj) {
|
|
863
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
864
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
865
|
-
if (desc && (desc.get || desc.set)) {
|
|
866
|
-
Object.defineProperty(newObj, key, desc);
|
|
867
|
-
} else {
|
|
868
|
-
newObj[key] = obj[key];
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
newObj.default = obj;
|
|
873
|
-
if (cache) {
|
|
874
|
-
cache.set(obj, newObj);
|
|
875
|
-
}
|
|
876
|
-
return newObj;
|
|
877
|
-
}
|
|
878
|
-
function normalizeConfig2(config2) {
|
|
879
|
-
let valid = (() => {
|
|
880
|
-
if (config2.purge) {
|
|
881
|
-
return false;
|
|
882
|
-
}
|
|
883
|
-
if (!config2.content) {
|
|
884
|
-
return false;
|
|
885
|
-
}
|
|
886
|
-
if (!Array.isArray(config2.content) && !(typeof config2.content === "object" && config2.content !== null)) {
|
|
887
|
-
return false;
|
|
888
|
-
}
|
|
889
|
-
if (Array.isArray(config2.content)) {
|
|
890
|
-
return config2.content.every((path) => {
|
|
891
|
-
if (typeof path === "string")
|
|
892
|
-
return true;
|
|
893
|
-
if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string")
|
|
894
|
-
return false;
|
|
895
|
-
if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
|
|
896
|
-
return false;
|
|
897
|
-
}
|
|
898
|
-
return true;
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
if (typeof config2.content === "object" && config2.content !== null) {
|
|
902
|
-
if (Object.keys(config2.content).some((key) => ![
|
|
903
|
-
"files",
|
|
904
|
-
"relative",
|
|
905
|
-
"extract",
|
|
906
|
-
"transform"
|
|
907
|
-
].includes(key))) {
|
|
908
|
-
return false;
|
|
909
|
-
}
|
|
910
|
-
if (Array.isArray(config2.content.files)) {
|
|
911
|
-
if (!config2.content.files.every((path) => {
|
|
912
|
-
if (typeof path === "string")
|
|
913
|
-
return true;
|
|
914
|
-
if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string")
|
|
915
|
-
return false;
|
|
916
|
-
if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
|
|
917
|
-
return false;
|
|
918
|
-
}
|
|
919
|
-
return true;
|
|
920
|
-
})) {
|
|
921
|
-
return false;
|
|
922
|
-
}
|
|
923
|
-
if (typeof config2.content.extract === "object") {
|
|
924
|
-
for (let value of Object.values(config2.content.extract)) {
|
|
925
|
-
if (typeof value !== "function") {
|
|
926
|
-
return false;
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
} else if (!(config2.content.extract === void 0 || typeof config2.content.extract === "function")) {
|
|
930
|
-
return false;
|
|
931
|
-
}
|
|
932
|
-
if (typeof config2.content.transform === "object") {
|
|
933
|
-
for (let value of Object.values(config2.content.transform)) {
|
|
934
|
-
if (typeof value !== "function") {
|
|
935
|
-
return false;
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
} else if (!(config2.content.transform === void 0 || typeof config2.content.transform === "function")) {
|
|
939
|
-
return false;
|
|
940
|
-
}
|
|
941
|
-
if (typeof config2.content.relative !== "boolean" && typeof config2.content.relative !== "undefined") {
|
|
942
|
-
return false;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
return true;
|
|
946
|
-
}
|
|
947
|
-
return false;
|
|
948
|
-
})();
|
|
949
|
-
if (!valid) {
|
|
950
|
-
_log.default.warn("purge-deprecation", [
|
|
951
|
-
"The `purge`/`content` options have changed in Tailwind CSS v3.0.",
|
|
952
|
-
"Update your configuration file to eliminate this warning.",
|
|
953
|
-
"https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
|
|
954
|
-
]);
|
|
955
|
-
}
|
|
956
|
-
config2.safelist = (() => {
|
|
957
|
-
var _purge_options;
|
|
958
|
-
let { content, purge, safelist } = config2;
|
|
959
|
-
if (Array.isArray(safelist))
|
|
960
|
-
return safelist;
|
|
961
|
-
if (Array.isArray(content === null || content === void 0 ? void 0 : content.safelist))
|
|
962
|
-
return content.safelist;
|
|
963
|
-
if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.safelist))
|
|
964
|
-
return purge.safelist;
|
|
965
|
-
if (Array.isArray(purge === null || purge === void 0 ? void 0 : (_purge_options = purge.options) === null || _purge_options === void 0 ? void 0 : _purge_options.safelist))
|
|
966
|
-
return purge.options.safelist;
|
|
967
|
-
return [];
|
|
968
|
-
})();
|
|
969
|
-
config2.blocklist = (() => {
|
|
970
|
-
let { blocklist } = config2;
|
|
971
|
-
if (Array.isArray(blocklist)) {
|
|
972
|
-
if (blocklist.every((item) => typeof item === "string")) {
|
|
973
|
-
return blocklist;
|
|
974
|
-
}
|
|
975
|
-
_log.default.warn("blocklist-invalid", [
|
|
976
|
-
"The `blocklist` option must be an array of strings.",
|
|
977
|
-
"https://tailwindcss.com/docs/content-configuration#discarding-classes"
|
|
978
|
-
]);
|
|
979
|
-
}
|
|
980
|
-
return [];
|
|
981
|
-
})();
|
|
982
|
-
if (typeof config2.prefix === "function") {
|
|
983
|
-
_log.default.warn("prefix-function", [
|
|
984
|
-
"As of Tailwind CSS v3.0, `prefix` cannot be a function.",
|
|
985
|
-
"Update `prefix` in your configuration to be a string to eliminate this warning.",
|
|
986
|
-
"https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
|
|
987
|
-
]);
|
|
988
|
-
config2.prefix = "";
|
|
989
|
-
} else {
|
|
990
|
-
var _config_prefix;
|
|
991
|
-
config2.prefix = (_config_prefix = config2.prefix) !== null && _config_prefix !== void 0 ? _config_prefix : "";
|
|
992
|
-
}
|
|
993
|
-
config2.content = {
|
|
994
|
-
relative: (() => {
|
|
995
|
-
let { content } = config2;
|
|
996
|
-
if (content === null || content === void 0 ? void 0 : content.relative) {
|
|
997
|
-
return content.relative;
|
|
998
|
-
}
|
|
999
|
-
return (0, _featureFlags.flagEnabled)(config2, "relativeContentPathsByDefault");
|
|
1000
|
-
})(),
|
|
1001
|
-
files: (() => {
|
|
1002
|
-
let { content, purge } = config2;
|
|
1003
|
-
if (Array.isArray(purge))
|
|
1004
|
-
return purge;
|
|
1005
|
-
if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.content))
|
|
1006
|
-
return purge.content;
|
|
1007
|
-
if (Array.isArray(content))
|
|
1008
|
-
return content;
|
|
1009
|
-
if (Array.isArray(content === null || content === void 0 ? void 0 : content.content))
|
|
1010
|
-
return content.content;
|
|
1011
|
-
if (Array.isArray(content === null || content === void 0 ? void 0 : content.files))
|
|
1012
|
-
return content.files;
|
|
1013
|
-
return [];
|
|
1014
|
-
})(),
|
|
1015
|
-
extract: (() => {
|
|
1016
|
-
let extract = (() => {
|
|
1017
|
-
var _config_purge, _config_content, _config_purge1, _config_purge_extract, _config_content1, _config_content_extract, _config_purge2, _config_purge_options, _config_content2, _config_content_options;
|
|
1018
|
-
if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.extract)
|
|
1019
|
-
return config2.purge.extract;
|
|
1020
|
-
if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : _config_content.extract)
|
|
1021
|
-
return config2.content.extract;
|
|
1022
|
-
if ((_config_purge1 = config2.purge) === null || _config_purge1 === void 0 ? void 0 : (_config_purge_extract = _config_purge1.extract) === null || _config_purge_extract === void 0 ? void 0 : _config_purge_extract.DEFAULT)
|
|
1023
|
-
return config2.purge.extract.DEFAULT;
|
|
1024
|
-
if ((_config_content1 = config2.content) === null || _config_content1 === void 0 ? void 0 : (_config_content_extract = _config_content1.extract) === null || _config_content_extract === void 0 ? void 0 : _config_content_extract.DEFAULT)
|
|
1025
|
-
return config2.content.extract.DEFAULT;
|
|
1026
|
-
if ((_config_purge2 = config2.purge) === null || _config_purge2 === void 0 ? void 0 : (_config_purge_options = _config_purge2.options) === null || _config_purge_options === void 0 ? void 0 : _config_purge_options.extractors)
|
|
1027
|
-
return config2.purge.options.extractors;
|
|
1028
|
-
if ((_config_content2 = config2.content) === null || _config_content2 === void 0 ? void 0 : (_config_content_options = _config_content2.options) === null || _config_content_options === void 0 ? void 0 : _config_content_options.extractors)
|
|
1029
|
-
return config2.content.options.extractors;
|
|
1030
|
-
return {};
|
|
1031
|
-
})();
|
|
1032
|
-
let extractors = {};
|
|
1033
|
-
let defaultExtractor = (() => {
|
|
1034
|
-
var _config_purge, _config_purge_options, _config_content, _config_content_options;
|
|
1035
|
-
if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : (_config_purge_options = _config_purge.options) === null || _config_purge_options === void 0 ? void 0 : _config_purge_options.defaultExtractor) {
|
|
1036
|
-
return config2.purge.options.defaultExtractor;
|
|
1037
|
-
}
|
|
1038
|
-
if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : (_config_content_options = _config_content.options) === null || _config_content_options === void 0 ? void 0 : _config_content_options.defaultExtractor) {
|
|
1039
|
-
return config2.content.options.defaultExtractor;
|
|
1040
|
-
}
|
|
1041
|
-
return void 0;
|
|
1042
|
-
})();
|
|
1043
|
-
if (defaultExtractor !== void 0) {
|
|
1044
|
-
extractors.DEFAULT = defaultExtractor;
|
|
1045
|
-
}
|
|
1046
|
-
if (typeof extract === "function") {
|
|
1047
|
-
extractors.DEFAULT = extract;
|
|
1048
|
-
} else if (Array.isArray(extract)) {
|
|
1049
|
-
for (let { extensions, extractor } of extract !== null && extract !== void 0 ? extract : []) {
|
|
1050
|
-
for (let extension of extensions) {
|
|
1051
|
-
extractors[extension] = extractor;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
} else if (typeof extract === "object" && extract !== null) {
|
|
1055
|
-
Object.assign(extractors, extract);
|
|
1056
|
-
}
|
|
1057
|
-
return extractors;
|
|
1058
|
-
})(),
|
|
1059
|
-
transform: (() => {
|
|
1060
|
-
let transform = (() => {
|
|
1061
|
-
var _config_purge, _config_content, _config_purge1, _config_purge_transform, _config_content1, _config_content_transform;
|
|
1062
|
-
if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.transform)
|
|
1063
|
-
return config2.purge.transform;
|
|
1064
|
-
if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : _config_content.transform)
|
|
1065
|
-
return config2.content.transform;
|
|
1066
|
-
if ((_config_purge1 = config2.purge) === null || _config_purge1 === void 0 ? void 0 : (_config_purge_transform = _config_purge1.transform) === null || _config_purge_transform === void 0 ? void 0 : _config_purge_transform.DEFAULT)
|
|
1067
|
-
return config2.purge.transform.DEFAULT;
|
|
1068
|
-
if ((_config_content1 = config2.content) === null || _config_content1 === void 0 ? void 0 : (_config_content_transform = _config_content1.transform) === null || _config_content_transform === void 0 ? void 0 : _config_content_transform.DEFAULT)
|
|
1069
|
-
return config2.content.transform.DEFAULT;
|
|
1070
|
-
return {};
|
|
1071
|
-
})();
|
|
1072
|
-
let transformers = {};
|
|
1073
|
-
if (typeof transform === "function") {
|
|
1074
|
-
transformers.DEFAULT = transform;
|
|
1075
|
-
}
|
|
1076
|
-
if (typeof transform === "object" && transform !== null) {
|
|
1077
|
-
Object.assign(transformers, transform);
|
|
1078
|
-
}
|
|
1079
|
-
return transformers;
|
|
1080
|
-
})()
|
|
1081
|
-
};
|
|
1082
|
-
for (let file of config2.content.files) {
|
|
1083
|
-
if (typeof file === "string" && /{([^,]*?)}/g.test(file)) {
|
|
1084
|
-
_log.default.warn("invalid-glob-braces", [
|
|
1085
|
-
`The glob pattern ${(0, _log.dim)(file)} in your Tailwind CSS configuration is invalid.`,
|
|
1086
|
-
`Update it to ${(0, _log.dim)(file.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
|
|
1087
|
-
]);
|
|
1088
|
-
break;
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
return config2;
|
|
1092
|
-
}
|
|
1093
|
-
})(normalizeConfig);
|
|
1094
|
-
var isPlainObject = {};
|
|
1095
|
-
(function(exports) {
|
|
1096
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1097
|
-
value: true
|
|
1098
|
-
});
|
|
1099
|
-
Object.defineProperty(exports, "default", {
|
|
1100
|
-
enumerable: true,
|
|
1101
|
-
get: function() {
|
|
1102
|
-
return isPlainObject2;
|
|
1103
|
-
}
|
|
1104
|
-
});
|
|
1105
|
-
function isPlainObject2(value) {
|
|
1106
|
-
if (Object.prototype.toString.call(value) !== "[object Object]") {
|
|
1107
|
-
return false;
|
|
1108
|
-
}
|
|
1109
|
-
const prototype = Object.getPrototypeOf(value);
|
|
1110
|
-
return prototype === null || Object.getPrototypeOf(prototype) === null;
|
|
1111
|
-
}
|
|
1112
|
-
})(isPlainObject);
|
|
1113
|
-
var cloneDeep = {};
|
|
1114
|
-
(function(exports) {
|
|
1115
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1116
|
-
value: true
|
|
1117
|
-
});
|
|
1118
|
-
Object.defineProperty(exports, "cloneDeep", {
|
|
1119
|
-
enumerable: true,
|
|
1120
|
-
get: function() {
|
|
1121
|
-
return cloneDeep2;
|
|
1122
|
-
}
|
|
1123
|
-
});
|
|
1124
|
-
function cloneDeep2(value) {
|
|
1125
|
-
if (Array.isArray(value)) {
|
|
1126
|
-
return value.map((child) => cloneDeep2(child));
|
|
1127
|
-
}
|
|
1128
|
-
if (typeof value === "object" && value !== null) {
|
|
1129
|
-
return Object.fromEntries(Object.entries(value).map(([k, v]) => [
|
|
1130
|
-
k,
|
|
1131
|
-
cloneDeep2(v)
|
|
1132
|
-
]));
|
|
1133
|
-
}
|
|
1134
|
-
return value;
|
|
1135
|
-
}
|
|
1136
|
-
})(cloneDeep);
|
|
1137
|
-
var pluginUtils = {};
|
|
1138
|
-
var escapeCommas = {};
|
|
1139
|
-
(function(exports) {
|
|
1140
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1141
|
-
value: true
|
|
1142
|
-
});
|
|
1143
|
-
Object.defineProperty(exports, "default", {
|
|
1144
|
-
enumerable: true,
|
|
1145
|
-
get: function() {
|
|
1146
|
-
return escapeCommas2;
|
|
1147
|
-
}
|
|
1148
|
-
});
|
|
1149
|
-
function escapeCommas2(className) {
|
|
1150
|
-
return className.replace(/\\,/g, "\\2c ");
|
|
1151
|
-
}
|
|
1152
|
-
})(escapeCommas);
|
|
1153
|
-
var withAlphaVariable = {};
|
|
1154
|
-
var color = {};
|
|
1155
|
-
var colorNames = {};
|
|
1156
|
-
(function(exports) {
|
|
1157
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1158
|
-
value: true
|
|
1159
|
-
});
|
|
1160
|
-
Object.defineProperty(exports, "default", {
|
|
1161
|
-
enumerable: true,
|
|
1162
|
-
get: function() {
|
|
1163
|
-
return _default;
|
|
1164
|
-
}
|
|
1165
|
-
});
|
|
1166
|
-
const _default = {
|
|
1167
|
-
aliceblue: [
|
|
1168
|
-
240,
|
|
1169
|
-
248,
|
|
1170
|
-
255
|
|
1171
|
-
],
|
|
1172
|
-
antiquewhite: [
|
|
1173
|
-
250,
|
|
1174
|
-
235,
|
|
1175
|
-
215
|
|
1176
|
-
],
|
|
1177
|
-
aqua: [
|
|
1178
|
-
0,
|
|
1179
|
-
255,
|
|
1180
|
-
255
|
|
1181
|
-
],
|
|
1182
|
-
aquamarine: [
|
|
1183
|
-
127,
|
|
1184
|
-
255,
|
|
1185
|
-
212
|
|
1186
|
-
],
|
|
1187
|
-
azure: [
|
|
1188
|
-
240,
|
|
1189
|
-
255,
|
|
1190
|
-
255
|
|
1191
|
-
],
|
|
1192
|
-
beige: [
|
|
1193
|
-
245,
|
|
1194
|
-
245,
|
|
1195
|
-
220
|
|
1196
|
-
],
|
|
1197
|
-
bisque: [
|
|
1198
|
-
255,
|
|
1199
|
-
228,
|
|
1200
|
-
196
|
|
1201
|
-
],
|
|
1202
|
-
black: [
|
|
1203
|
-
0,
|
|
1204
|
-
0,
|
|
1205
|
-
0
|
|
1206
|
-
],
|
|
1207
|
-
blanchedalmond: [
|
|
1208
|
-
255,
|
|
1209
|
-
235,
|
|
1210
|
-
205
|
|
1211
|
-
],
|
|
1212
|
-
blue: [
|
|
1213
|
-
0,
|
|
1214
|
-
0,
|
|
1215
|
-
255
|
|
1216
|
-
],
|
|
1217
|
-
blueviolet: [
|
|
1218
|
-
138,
|
|
1219
|
-
43,
|
|
1220
|
-
226
|
|
1221
|
-
],
|
|
1222
|
-
brown: [
|
|
1223
|
-
165,
|
|
1224
|
-
42,
|
|
1225
|
-
42
|
|
1226
|
-
],
|
|
1227
|
-
burlywood: [
|
|
1228
|
-
222,
|
|
1229
|
-
184,
|
|
1230
|
-
135
|
|
1231
|
-
],
|
|
1232
|
-
cadetblue: [
|
|
1233
|
-
95,
|
|
1234
|
-
158,
|
|
1235
|
-
160
|
|
1236
|
-
],
|
|
1237
|
-
chartreuse: [
|
|
1238
|
-
127,
|
|
1239
|
-
255,
|
|
1240
|
-
0
|
|
1241
|
-
],
|
|
1242
|
-
chocolate: [
|
|
1243
|
-
210,
|
|
1244
|
-
105,
|
|
1245
|
-
30
|
|
1246
|
-
],
|
|
1247
|
-
coral: [
|
|
1248
|
-
255,
|
|
1249
|
-
127,
|
|
1250
|
-
80
|
|
1251
|
-
],
|
|
1252
|
-
cornflowerblue: [
|
|
1253
|
-
100,
|
|
1254
|
-
149,
|
|
1255
|
-
237
|
|
1256
|
-
],
|
|
1257
|
-
cornsilk: [
|
|
1258
|
-
255,
|
|
1259
|
-
248,
|
|
1260
|
-
220
|
|
1261
|
-
],
|
|
1262
|
-
crimson: [
|
|
1263
|
-
220,
|
|
1264
|
-
20,
|
|
1265
|
-
60
|
|
1266
|
-
],
|
|
1267
|
-
cyan: [
|
|
1268
|
-
0,
|
|
1269
|
-
255,
|
|
1270
|
-
255
|
|
1271
|
-
],
|
|
1272
|
-
darkblue: [
|
|
1273
|
-
0,
|
|
1274
|
-
0,
|
|
1275
|
-
139
|
|
1276
|
-
],
|
|
1277
|
-
darkcyan: [
|
|
1278
|
-
0,
|
|
1279
|
-
139,
|
|
1280
|
-
139
|
|
1281
|
-
],
|
|
1282
|
-
darkgoldenrod: [
|
|
1283
|
-
184,
|
|
1284
|
-
134,
|
|
1285
|
-
11
|
|
1286
|
-
],
|
|
1287
|
-
darkgray: [
|
|
1288
|
-
169,
|
|
1289
|
-
169,
|
|
1290
|
-
169
|
|
1291
|
-
],
|
|
1292
|
-
darkgreen: [
|
|
1293
|
-
0,
|
|
1294
|
-
100,
|
|
1295
|
-
0
|
|
1296
|
-
],
|
|
1297
|
-
darkgrey: [
|
|
1298
|
-
169,
|
|
1299
|
-
169,
|
|
1300
|
-
169
|
|
1301
|
-
],
|
|
1302
|
-
darkkhaki: [
|
|
1303
|
-
189,
|
|
1304
|
-
183,
|
|
1305
|
-
107
|
|
1306
|
-
],
|
|
1307
|
-
darkmagenta: [
|
|
1308
|
-
139,
|
|
1309
|
-
0,
|
|
1310
|
-
139
|
|
1311
|
-
],
|
|
1312
|
-
darkolivegreen: [
|
|
1313
|
-
85,
|
|
1314
|
-
107,
|
|
1315
|
-
47
|
|
1316
|
-
],
|
|
1317
|
-
darkorange: [
|
|
1318
|
-
255,
|
|
1319
|
-
140,
|
|
1320
|
-
0
|
|
1321
|
-
],
|
|
1322
|
-
darkorchid: [
|
|
1323
|
-
153,
|
|
1324
|
-
50,
|
|
1325
|
-
204
|
|
1326
|
-
],
|
|
1327
|
-
darkred: [
|
|
1328
|
-
139,
|
|
1329
|
-
0,
|
|
1330
|
-
0
|
|
1331
|
-
],
|
|
1332
|
-
darksalmon: [
|
|
1333
|
-
233,
|
|
1334
|
-
150,
|
|
1335
|
-
122
|
|
1336
|
-
],
|
|
1337
|
-
darkseagreen: [
|
|
1338
|
-
143,
|
|
1339
|
-
188,
|
|
1340
|
-
143
|
|
1341
|
-
],
|
|
1342
|
-
darkslateblue: [
|
|
1343
|
-
72,
|
|
1344
|
-
61,
|
|
1345
|
-
139
|
|
1346
|
-
],
|
|
1347
|
-
darkslategray: [
|
|
1348
|
-
47,
|
|
1349
|
-
79,
|
|
1350
|
-
79
|
|
1351
|
-
],
|
|
1352
|
-
darkslategrey: [
|
|
1353
|
-
47,
|
|
1354
|
-
79,
|
|
1355
|
-
79
|
|
1356
|
-
],
|
|
1357
|
-
darkturquoise: [
|
|
1358
|
-
0,
|
|
1359
|
-
206,
|
|
1360
|
-
209
|
|
1361
|
-
],
|
|
1362
|
-
darkviolet: [
|
|
1363
|
-
148,
|
|
1364
|
-
0,
|
|
1365
|
-
211
|
|
1366
|
-
],
|
|
1367
|
-
deeppink: [
|
|
1368
|
-
255,
|
|
1369
|
-
20,
|
|
1370
|
-
147
|
|
1371
|
-
],
|
|
1372
|
-
deepskyblue: [
|
|
1373
|
-
0,
|
|
1374
|
-
191,
|
|
1375
|
-
255
|
|
1376
|
-
],
|
|
1377
|
-
dimgray: [
|
|
1378
|
-
105,
|
|
1379
|
-
105,
|
|
1380
|
-
105
|
|
1381
|
-
],
|
|
1382
|
-
dimgrey: [
|
|
1383
|
-
105,
|
|
1384
|
-
105,
|
|
1385
|
-
105
|
|
1386
|
-
],
|
|
1387
|
-
dodgerblue: [
|
|
1388
|
-
30,
|
|
1389
|
-
144,
|
|
1390
|
-
255
|
|
1391
|
-
],
|
|
1392
|
-
firebrick: [
|
|
1393
|
-
178,
|
|
1394
|
-
34,
|
|
1395
|
-
34
|
|
1396
|
-
],
|
|
1397
|
-
floralwhite: [
|
|
1398
|
-
255,
|
|
1399
|
-
250,
|
|
1400
|
-
240
|
|
1401
|
-
],
|
|
1402
|
-
forestgreen: [
|
|
1403
|
-
34,
|
|
1404
|
-
139,
|
|
1405
|
-
34
|
|
1406
|
-
],
|
|
1407
|
-
fuchsia: [
|
|
1408
|
-
255,
|
|
1409
|
-
0,
|
|
1410
|
-
255
|
|
1411
|
-
],
|
|
1412
|
-
gainsboro: [
|
|
1413
|
-
220,
|
|
1414
|
-
220,
|
|
1415
|
-
220
|
|
1416
|
-
],
|
|
1417
|
-
ghostwhite: [
|
|
1418
|
-
248,
|
|
1419
|
-
248,
|
|
1420
|
-
255
|
|
1421
|
-
],
|
|
1422
|
-
gold: [
|
|
1423
|
-
255,
|
|
1424
|
-
215,
|
|
1425
|
-
0
|
|
1426
|
-
],
|
|
1427
|
-
goldenrod: [
|
|
1428
|
-
218,
|
|
1429
|
-
165,
|
|
1430
|
-
32
|
|
1431
|
-
],
|
|
1432
|
-
gray: [
|
|
1433
|
-
128,
|
|
1434
|
-
128,
|
|
1435
|
-
128
|
|
1436
|
-
],
|
|
1437
|
-
green: [
|
|
1438
|
-
0,
|
|
1439
|
-
128,
|
|
1440
|
-
0
|
|
1441
|
-
],
|
|
1442
|
-
greenyellow: [
|
|
1443
|
-
173,
|
|
1444
|
-
255,
|
|
1445
|
-
47
|
|
1446
|
-
],
|
|
1447
|
-
grey: [
|
|
1448
|
-
128,
|
|
1449
|
-
128,
|
|
1450
|
-
128
|
|
1451
|
-
],
|
|
1452
|
-
honeydew: [
|
|
1453
|
-
240,
|
|
1454
|
-
255,
|
|
1455
|
-
240
|
|
1456
|
-
],
|
|
1457
|
-
hotpink: [
|
|
1458
|
-
255,
|
|
1459
|
-
105,
|
|
1460
|
-
180
|
|
1461
|
-
],
|
|
1462
|
-
indianred: [
|
|
1463
|
-
205,
|
|
1464
|
-
92,
|
|
1465
|
-
92
|
|
1466
|
-
],
|
|
1467
|
-
indigo: [
|
|
1468
|
-
75,
|
|
1469
|
-
0,
|
|
1470
|
-
130
|
|
1471
|
-
],
|
|
1472
|
-
ivory: [
|
|
1473
|
-
255,
|
|
1474
|
-
255,
|
|
1475
|
-
240
|
|
1476
|
-
],
|
|
1477
|
-
khaki: [
|
|
1478
|
-
240,
|
|
1479
|
-
230,
|
|
1480
|
-
140
|
|
1481
|
-
],
|
|
1482
|
-
lavender: [
|
|
1483
|
-
230,
|
|
1484
|
-
230,
|
|
1485
|
-
250
|
|
1486
|
-
],
|
|
1487
|
-
lavenderblush: [
|
|
1488
|
-
255,
|
|
1489
|
-
240,
|
|
1490
|
-
245
|
|
1491
|
-
],
|
|
1492
|
-
lawngreen: [
|
|
1493
|
-
124,
|
|
1494
|
-
252,
|
|
1495
|
-
0
|
|
1496
|
-
],
|
|
1497
|
-
lemonchiffon: [
|
|
1498
|
-
255,
|
|
1499
|
-
250,
|
|
1500
|
-
205
|
|
1501
|
-
],
|
|
1502
|
-
lightblue: [
|
|
1503
|
-
173,
|
|
1504
|
-
216,
|
|
1505
|
-
230
|
|
1506
|
-
],
|
|
1507
|
-
lightcoral: [
|
|
1508
|
-
240,
|
|
1509
|
-
128,
|
|
1510
|
-
128
|
|
1511
|
-
],
|
|
1512
|
-
lightcyan: [
|
|
1513
|
-
224,
|
|
1514
|
-
255,
|
|
1515
|
-
255
|
|
1516
|
-
],
|
|
1517
|
-
lightgoldenrodyellow: [
|
|
1518
|
-
250,
|
|
1519
|
-
250,
|
|
1520
|
-
210
|
|
1521
|
-
],
|
|
1522
|
-
lightgray: [
|
|
1523
|
-
211,
|
|
1524
|
-
211,
|
|
1525
|
-
211
|
|
1526
|
-
],
|
|
1527
|
-
lightgreen: [
|
|
1528
|
-
144,
|
|
1529
|
-
238,
|
|
1530
|
-
144
|
|
1531
|
-
],
|
|
1532
|
-
lightgrey: [
|
|
1533
|
-
211,
|
|
1534
|
-
211,
|
|
1535
|
-
211
|
|
1536
|
-
],
|
|
1537
|
-
lightpink: [
|
|
1538
|
-
255,
|
|
1539
|
-
182,
|
|
1540
|
-
193
|
|
1541
|
-
],
|
|
1542
|
-
lightsalmon: [
|
|
1543
|
-
255,
|
|
1544
|
-
160,
|
|
1545
|
-
122
|
|
1546
|
-
],
|
|
1547
|
-
lightseagreen: [
|
|
1548
|
-
32,
|
|
1549
|
-
178,
|
|
1550
|
-
170
|
|
1551
|
-
],
|
|
1552
|
-
lightskyblue: [
|
|
1553
|
-
135,
|
|
1554
|
-
206,
|
|
1555
|
-
250
|
|
1556
|
-
],
|
|
1557
|
-
lightslategray: [
|
|
1558
|
-
119,
|
|
1559
|
-
136,
|
|
1560
|
-
153
|
|
1561
|
-
],
|
|
1562
|
-
lightslategrey: [
|
|
1563
|
-
119,
|
|
1564
|
-
136,
|
|
1565
|
-
153
|
|
1566
|
-
],
|
|
1567
|
-
lightsteelblue: [
|
|
1568
|
-
176,
|
|
1569
|
-
196,
|
|
1570
|
-
222
|
|
1571
|
-
],
|
|
1572
|
-
lightyellow: [
|
|
1573
|
-
255,
|
|
1574
|
-
255,
|
|
1575
|
-
224
|
|
1576
|
-
],
|
|
1577
|
-
lime: [
|
|
1578
|
-
0,
|
|
1579
|
-
255,
|
|
1580
|
-
0
|
|
1581
|
-
],
|
|
1582
|
-
limegreen: [
|
|
1583
|
-
50,
|
|
1584
|
-
205,
|
|
1585
|
-
50
|
|
1586
|
-
],
|
|
1587
|
-
linen: [
|
|
1588
|
-
250,
|
|
1589
|
-
240,
|
|
1590
|
-
230
|
|
1591
|
-
],
|
|
1592
|
-
magenta: [
|
|
1593
|
-
255,
|
|
1594
|
-
0,
|
|
1595
|
-
255
|
|
1596
|
-
],
|
|
1597
|
-
maroon: [
|
|
1598
|
-
128,
|
|
1599
|
-
0,
|
|
1600
|
-
0
|
|
1601
|
-
],
|
|
1602
|
-
mediumaquamarine: [
|
|
1603
|
-
102,
|
|
1604
|
-
205,
|
|
1605
|
-
170
|
|
1606
|
-
],
|
|
1607
|
-
mediumblue: [
|
|
1608
|
-
0,
|
|
1609
|
-
0,
|
|
1610
|
-
205
|
|
1611
|
-
],
|
|
1612
|
-
mediumorchid: [
|
|
1613
|
-
186,
|
|
1614
|
-
85,
|
|
1615
|
-
211
|
|
1616
|
-
],
|
|
1617
|
-
mediumpurple: [
|
|
1618
|
-
147,
|
|
1619
|
-
112,
|
|
1620
|
-
219
|
|
1621
|
-
],
|
|
1622
|
-
mediumseagreen: [
|
|
1623
|
-
60,
|
|
1624
|
-
179,
|
|
1625
|
-
113
|
|
1626
|
-
],
|
|
1627
|
-
mediumslateblue: [
|
|
1628
|
-
123,
|
|
1629
|
-
104,
|
|
1630
|
-
238
|
|
1631
|
-
],
|
|
1632
|
-
mediumspringgreen: [
|
|
1633
|
-
0,
|
|
1634
|
-
250,
|
|
1635
|
-
154
|
|
1636
|
-
],
|
|
1637
|
-
mediumturquoise: [
|
|
1638
|
-
72,
|
|
1639
|
-
209,
|
|
1640
|
-
204
|
|
1641
|
-
],
|
|
1642
|
-
mediumvioletred: [
|
|
1643
|
-
199,
|
|
1644
|
-
21,
|
|
1645
|
-
133
|
|
1646
|
-
],
|
|
1647
|
-
midnightblue: [
|
|
1648
|
-
25,
|
|
1649
|
-
25,
|
|
1650
|
-
112
|
|
1651
|
-
],
|
|
1652
|
-
mintcream: [
|
|
1653
|
-
245,
|
|
1654
|
-
255,
|
|
1655
|
-
250
|
|
1656
|
-
],
|
|
1657
|
-
mistyrose: [
|
|
1658
|
-
255,
|
|
1659
|
-
228,
|
|
1660
|
-
225
|
|
1661
|
-
],
|
|
1662
|
-
moccasin: [
|
|
1663
|
-
255,
|
|
1664
|
-
228,
|
|
1665
|
-
181
|
|
1666
|
-
],
|
|
1667
|
-
navajowhite: [
|
|
1668
|
-
255,
|
|
1669
|
-
222,
|
|
1670
|
-
173
|
|
1671
|
-
],
|
|
1672
|
-
navy: [
|
|
1673
|
-
0,
|
|
1674
|
-
0,
|
|
1675
|
-
128
|
|
1676
|
-
],
|
|
1677
|
-
oldlace: [
|
|
1678
|
-
253,
|
|
1679
|
-
245,
|
|
1680
|
-
230
|
|
1681
|
-
],
|
|
1682
|
-
olive: [
|
|
1683
|
-
128,
|
|
1684
|
-
128,
|
|
1685
|
-
0
|
|
1686
|
-
],
|
|
1687
|
-
olivedrab: [
|
|
1688
|
-
107,
|
|
1689
|
-
142,
|
|
1690
|
-
35
|
|
1691
|
-
],
|
|
1692
|
-
orange: [
|
|
1693
|
-
255,
|
|
1694
|
-
165,
|
|
1695
|
-
0
|
|
1696
|
-
],
|
|
1697
|
-
orangered: [
|
|
1698
|
-
255,
|
|
1699
|
-
69,
|
|
1700
|
-
0
|
|
1701
|
-
],
|
|
1702
|
-
orchid: [
|
|
1703
|
-
218,
|
|
1704
|
-
112,
|
|
1705
|
-
214
|
|
1706
|
-
],
|
|
1707
|
-
palegoldenrod: [
|
|
1708
|
-
238,
|
|
1709
|
-
232,
|
|
1710
|
-
170
|
|
1711
|
-
],
|
|
1712
|
-
palegreen: [
|
|
1713
|
-
152,
|
|
1714
|
-
251,
|
|
1715
|
-
152
|
|
1716
|
-
],
|
|
1717
|
-
paleturquoise: [
|
|
1718
|
-
175,
|
|
1719
|
-
238,
|
|
1720
|
-
238
|
|
1721
|
-
],
|
|
1722
|
-
palevioletred: [
|
|
1723
|
-
219,
|
|
1724
|
-
112,
|
|
1725
|
-
147
|
|
1726
|
-
],
|
|
1727
|
-
papayawhip: [
|
|
1728
|
-
255,
|
|
1729
|
-
239,
|
|
1730
|
-
213
|
|
1731
|
-
],
|
|
1732
|
-
peachpuff: [
|
|
1733
|
-
255,
|
|
1734
|
-
218,
|
|
1735
|
-
185
|
|
1736
|
-
],
|
|
1737
|
-
peru: [
|
|
1738
|
-
205,
|
|
1739
|
-
133,
|
|
1740
|
-
63
|
|
1741
|
-
],
|
|
1742
|
-
pink: [
|
|
1743
|
-
255,
|
|
1744
|
-
192,
|
|
1745
|
-
203
|
|
1746
|
-
],
|
|
1747
|
-
plum: [
|
|
1748
|
-
221,
|
|
1749
|
-
160,
|
|
1750
|
-
221
|
|
1751
|
-
],
|
|
1752
|
-
powderblue: [
|
|
1753
|
-
176,
|
|
1754
|
-
224,
|
|
1755
|
-
230
|
|
1756
|
-
],
|
|
1757
|
-
purple: [
|
|
1758
|
-
128,
|
|
1759
|
-
0,
|
|
1760
|
-
128
|
|
1761
|
-
],
|
|
1762
|
-
rebeccapurple: [
|
|
1763
|
-
102,
|
|
1764
|
-
51,
|
|
1765
|
-
153
|
|
1766
|
-
],
|
|
1767
|
-
red: [
|
|
1768
|
-
255,
|
|
1769
|
-
0,
|
|
1770
|
-
0
|
|
1771
|
-
],
|
|
1772
|
-
rosybrown: [
|
|
1773
|
-
188,
|
|
1774
|
-
143,
|
|
1775
|
-
143
|
|
1776
|
-
],
|
|
1777
|
-
royalblue: [
|
|
1778
|
-
65,
|
|
1779
|
-
105,
|
|
1780
|
-
225
|
|
1781
|
-
],
|
|
1782
|
-
saddlebrown: [
|
|
1783
|
-
139,
|
|
1784
|
-
69,
|
|
1785
|
-
19
|
|
1786
|
-
],
|
|
1787
|
-
salmon: [
|
|
1788
|
-
250,
|
|
1789
|
-
128,
|
|
1790
|
-
114
|
|
1791
|
-
],
|
|
1792
|
-
sandybrown: [
|
|
1793
|
-
244,
|
|
1794
|
-
164,
|
|
1795
|
-
96
|
|
1796
|
-
],
|
|
1797
|
-
seagreen: [
|
|
1798
|
-
46,
|
|
1799
|
-
139,
|
|
1800
|
-
87
|
|
1801
|
-
],
|
|
1802
|
-
seashell: [
|
|
1803
|
-
255,
|
|
1804
|
-
245,
|
|
1805
|
-
238
|
|
1806
|
-
],
|
|
1807
|
-
sienna: [
|
|
1808
|
-
160,
|
|
1809
|
-
82,
|
|
1810
|
-
45
|
|
1811
|
-
],
|
|
1812
|
-
silver: [
|
|
1813
|
-
192,
|
|
1814
|
-
192,
|
|
1815
|
-
192
|
|
1816
|
-
],
|
|
1817
|
-
skyblue: [
|
|
1818
|
-
135,
|
|
1819
|
-
206,
|
|
1820
|
-
235
|
|
1821
|
-
],
|
|
1822
|
-
slateblue: [
|
|
1823
|
-
106,
|
|
1824
|
-
90,
|
|
1825
|
-
205
|
|
1826
|
-
],
|
|
1827
|
-
slategray: [
|
|
1828
|
-
112,
|
|
1829
|
-
128,
|
|
1830
|
-
144
|
|
1831
|
-
],
|
|
1832
|
-
slategrey: [
|
|
1833
|
-
112,
|
|
1834
|
-
128,
|
|
1835
|
-
144
|
|
1836
|
-
],
|
|
1837
|
-
snow: [
|
|
1838
|
-
255,
|
|
1839
|
-
250,
|
|
1840
|
-
250
|
|
1841
|
-
],
|
|
1842
|
-
springgreen: [
|
|
1843
|
-
0,
|
|
1844
|
-
255,
|
|
1845
|
-
127
|
|
1846
|
-
],
|
|
1847
|
-
steelblue: [
|
|
1848
|
-
70,
|
|
1849
|
-
130,
|
|
1850
|
-
180
|
|
1851
|
-
],
|
|
1852
|
-
tan: [
|
|
1853
|
-
210,
|
|
1854
|
-
180,
|
|
1855
|
-
140
|
|
1856
|
-
],
|
|
1857
|
-
teal: [
|
|
1858
|
-
0,
|
|
1859
|
-
128,
|
|
1860
|
-
128
|
|
1861
|
-
],
|
|
1862
|
-
thistle: [
|
|
1863
|
-
216,
|
|
1864
|
-
191,
|
|
1865
|
-
216
|
|
1866
|
-
],
|
|
1867
|
-
tomato: [
|
|
1868
|
-
255,
|
|
1869
|
-
99,
|
|
1870
|
-
71
|
|
1871
|
-
],
|
|
1872
|
-
turquoise: [
|
|
1873
|
-
64,
|
|
1874
|
-
224,
|
|
1875
|
-
208
|
|
1876
|
-
],
|
|
1877
|
-
violet: [
|
|
1878
|
-
238,
|
|
1879
|
-
130,
|
|
1880
|
-
238
|
|
1881
|
-
],
|
|
1882
|
-
wheat: [
|
|
1883
|
-
245,
|
|
1884
|
-
222,
|
|
1885
|
-
179
|
|
1886
|
-
],
|
|
1887
|
-
white: [
|
|
1888
|
-
255,
|
|
1889
|
-
255,
|
|
1890
|
-
255
|
|
1891
|
-
],
|
|
1892
|
-
whitesmoke: [
|
|
1893
|
-
245,
|
|
1894
|
-
245,
|
|
1895
|
-
245
|
|
1896
|
-
],
|
|
1897
|
-
yellow: [
|
|
1898
|
-
255,
|
|
1899
|
-
255,
|
|
1900
|
-
0
|
|
1901
|
-
],
|
|
1902
|
-
yellowgreen: [
|
|
1903
|
-
154,
|
|
1904
|
-
205,
|
|
1905
|
-
50
|
|
1906
|
-
]
|
|
1907
|
-
};
|
|
1908
|
-
})(colorNames);
|
|
1909
|
-
(function(exports) {
|
|
1910
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1911
|
-
value: true
|
|
1912
|
-
});
|
|
1913
|
-
function _export(target, all) {
|
|
1914
|
-
for (var name in all)
|
|
1915
|
-
Object.defineProperty(target, name, {
|
|
1916
|
-
enumerable: true,
|
|
1917
|
-
get: all[name]
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
_export(exports, {
|
|
1921
|
-
parseColor: function() {
|
|
1922
|
-
return parseColor;
|
|
1923
|
-
},
|
|
1924
|
-
formatColor: function() {
|
|
1925
|
-
return formatColor;
|
|
1926
|
-
}
|
|
1927
|
-
});
|
|
1928
|
-
const _colorNames = /* @__PURE__ */ _interop_require_default(colorNames);
|
|
1929
|
-
function _interop_require_default(obj) {
|
|
1930
|
-
return obj && obj.__esModule ? obj : {
|
|
1931
|
-
default: obj
|
|
1932
|
-
};
|
|
1933
|
-
}
|
|
1934
|
-
let HEX = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;
|
|
1935
|
-
let SHORT_HEX = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;
|
|
1936
|
-
let VALUE = /(?:\d+|\d*\.\d+)%?/;
|
|
1937
|
-
let SEP = /(?:\s*,\s*|\s+)/;
|
|
1938
|
-
let ALPHA_SEP = /\s*[,/]\s*/;
|
|
1939
|
-
let CUSTOM_PROPERTY = /var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/;
|
|
1940
|
-
let RGB = new RegExp(`^(rgba?)\\(\\s*(${VALUE.source}|${CUSTOM_PROPERTY.source})(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${ALPHA_SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?\\s*\\)$`);
|
|
1941
|
-
let HSL = new RegExp(`^(hsla?)\\(\\s*((?:${VALUE.source})(?:deg|rad|grad|turn)?|${CUSTOM_PROPERTY.source})(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${ALPHA_SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?\\s*\\)$`);
|
|
1942
|
-
function parseColor(value, { loose = false } = {}) {
|
|
1943
|
-
var _match_, _match__toString;
|
|
1944
|
-
if (typeof value !== "string") {
|
|
1945
|
-
return null;
|
|
1946
|
-
}
|
|
1947
|
-
value = value.trim();
|
|
1948
|
-
if (value === "transparent") {
|
|
1949
|
-
return {
|
|
1950
|
-
mode: "rgb",
|
|
1951
|
-
color: [
|
|
1952
|
-
"0",
|
|
1953
|
-
"0",
|
|
1954
|
-
"0"
|
|
1955
|
-
],
|
|
1956
|
-
alpha: "0"
|
|
1957
|
-
};
|
|
1958
|
-
}
|
|
1959
|
-
if (value in _colorNames.default) {
|
|
1960
|
-
return {
|
|
1961
|
-
mode: "rgb",
|
|
1962
|
-
color: _colorNames.default[value].map((v) => v.toString())
|
|
1963
|
-
};
|
|
1964
|
-
}
|
|
1965
|
-
let hex = value.replace(SHORT_HEX, (_, r, g, b, a) => [
|
|
1966
|
-
"#",
|
|
1967
|
-
r,
|
|
1968
|
-
r,
|
|
1969
|
-
g,
|
|
1970
|
-
g,
|
|
1971
|
-
b,
|
|
1972
|
-
b,
|
|
1973
|
-
a ? a + a : ""
|
|
1974
|
-
].join("")).match(HEX);
|
|
1975
|
-
if (hex !== null) {
|
|
1976
|
-
return {
|
|
1977
|
-
mode: "rgb",
|
|
1978
|
-
color: [
|
|
1979
|
-
parseInt(hex[1], 16),
|
|
1980
|
-
parseInt(hex[2], 16),
|
|
1981
|
-
parseInt(hex[3], 16)
|
|
1982
|
-
].map((v) => v.toString()),
|
|
1983
|
-
alpha: hex[4] ? (parseInt(hex[4], 16) / 255).toString() : void 0
|
|
1984
|
-
};
|
|
1985
|
-
}
|
|
1986
|
-
var _value_match;
|
|
1987
|
-
let match = (_value_match = value.match(RGB)) !== null && _value_match !== void 0 ? _value_match : value.match(HSL);
|
|
1988
|
-
if (match === null) {
|
|
1989
|
-
return null;
|
|
1990
|
-
}
|
|
1991
|
-
let color2 = [
|
|
1992
|
-
match[2],
|
|
1993
|
-
match[3],
|
|
1994
|
-
match[4]
|
|
1995
|
-
].filter(Boolean).map((v) => v.toString());
|
|
1996
|
-
if (color2.length === 2 && color2[0].startsWith("var(")) {
|
|
1997
|
-
return {
|
|
1998
|
-
mode: match[1],
|
|
1999
|
-
color: [
|
|
2000
|
-
color2[0]
|
|
2001
|
-
],
|
|
2002
|
-
alpha: color2[1]
|
|
2003
|
-
};
|
|
2004
|
-
}
|
|
2005
|
-
if (!loose && color2.length !== 3) {
|
|
2006
|
-
return null;
|
|
2007
|
-
}
|
|
2008
|
-
if (color2.length < 3 && !color2.some((part) => /^var\(.*?\)$/.test(part))) {
|
|
2009
|
-
return null;
|
|
2010
|
-
}
|
|
2011
|
-
return {
|
|
2012
|
-
mode: match[1],
|
|
2013
|
-
color: color2,
|
|
2014
|
-
alpha: (_match_ = match[5]) === null || _match_ === void 0 ? void 0 : (_match__toString = _match_.toString) === null || _match__toString === void 0 ? void 0 : _match__toString.call(_match_)
|
|
2015
|
-
};
|
|
2016
|
-
}
|
|
2017
|
-
function formatColor({ mode, color: color2, alpha }) {
|
|
2018
|
-
let hasAlpha = alpha !== void 0;
|
|
2019
|
-
if (mode === "rgba" || mode === "hsla") {
|
|
2020
|
-
return `${mode}(${color2.join(", ")}${hasAlpha ? `, ${alpha}` : ""})`;
|
|
2021
|
-
}
|
|
2022
|
-
return `${mode}(${color2.join(" ")}${hasAlpha ? ` / ${alpha}` : ""})`;
|
|
2023
|
-
}
|
|
2024
|
-
})(color);
|
|
2025
|
-
(function(exports) {
|
|
2026
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2027
|
-
value: true
|
|
2028
|
-
});
|
|
2029
|
-
function _export(target, all) {
|
|
2030
|
-
for (var name in all)
|
|
2031
|
-
Object.defineProperty(target, name, {
|
|
2032
|
-
enumerable: true,
|
|
2033
|
-
get: all[name]
|
|
2034
|
-
});
|
|
2035
|
-
}
|
|
2036
|
-
_export(exports, {
|
|
2037
|
-
withAlphaValue: function() {
|
|
2038
|
-
return withAlphaValue;
|
|
2039
|
-
},
|
|
2040
|
-
default: function() {
|
|
2041
|
-
return withAlphaVariable2;
|
|
2042
|
-
}
|
|
2043
|
-
});
|
|
2044
|
-
const _color = color;
|
|
2045
|
-
function withAlphaValue(color2, alphaValue, defaultValue) {
|
|
2046
|
-
if (typeof color2 === "function") {
|
|
2047
|
-
return color2({
|
|
2048
|
-
opacityValue: alphaValue
|
|
2049
|
-
});
|
|
2050
|
-
}
|
|
2051
|
-
let parsed = (0, _color.parseColor)(color2, {
|
|
2052
|
-
loose: true
|
|
2053
|
-
});
|
|
2054
|
-
if (parsed === null) {
|
|
2055
|
-
return defaultValue;
|
|
2056
|
-
}
|
|
2057
|
-
return (0, _color.formatColor)({
|
|
2058
|
-
...parsed,
|
|
2059
|
-
alpha: alphaValue
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
function withAlphaVariable2({ color: color2, property, variable }) {
|
|
2063
|
-
let properties = [].concat(property);
|
|
2064
|
-
if (typeof color2 === "function") {
|
|
2065
|
-
return {
|
|
2066
|
-
[variable]: "1",
|
|
2067
|
-
...Object.fromEntries(properties.map((p) => {
|
|
2068
|
-
return [
|
|
2069
|
-
p,
|
|
2070
|
-
color2({
|
|
2071
|
-
opacityVariable: variable,
|
|
2072
|
-
opacityValue: `var(${variable})`
|
|
2073
|
-
})
|
|
2074
|
-
];
|
|
2075
|
-
}))
|
|
2076
|
-
};
|
|
2077
|
-
}
|
|
2078
|
-
const parsed = (0, _color.parseColor)(color2);
|
|
2079
|
-
if (parsed === null) {
|
|
2080
|
-
return Object.fromEntries(properties.map((p) => [
|
|
2081
|
-
p,
|
|
2082
|
-
color2
|
|
2083
|
-
]));
|
|
2084
|
-
}
|
|
2085
|
-
if (parsed.alpha !== void 0) {
|
|
2086
|
-
return Object.fromEntries(properties.map((p) => [
|
|
2087
|
-
p,
|
|
2088
|
-
color2
|
|
2089
|
-
]));
|
|
2090
|
-
}
|
|
2091
|
-
return {
|
|
2092
|
-
[variable]: "1",
|
|
2093
|
-
...Object.fromEntries(properties.map((p) => {
|
|
2094
|
-
return [
|
|
2095
|
-
p,
|
|
2096
|
-
(0, _color.formatColor)({
|
|
2097
|
-
...parsed,
|
|
2098
|
-
alpha: `var(${variable})`
|
|
2099
|
-
})
|
|
2100
|
-
];
|
|
2101
|
-
}))
|
|
2102
|
-
};
|
|
2103
|
-
}
|
|
2104
|
-
})(withAlphaVariable);
|
|
2105
|
-
var dataTypes = {};
|
|
2106
|
-
var parseBoxShadowValue = {};
|
|
2107
|
-
var splitAtTopLevelOnly = {};
|
|
2108
|
-
(function(exports) {
|
|
2109
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2110
|
-
value: true
|
|
2111
|
-
});
|
|
2112
|
-
Object.defineProperty(exports, "splitAtTopLevelOnly", {
|
|
2113
|
-
enumerable: true,
|
|
2114
|
-
get: function() {
|
|
2115
|
-
return splitAtTopLevelOnly2;
|
|
2116
|
-
}
|
|
2117
|
-
});
|
|
2118
|
-
function splitAtTopLevelOnly2(input, separator) {
|
|
2119
|
-
let stack = [];
|
|
2120
|
-
let parts = [];
|
|
2121
|
-
let lastPos = 0;
|
|
2122
|
-
let isEscaped = false;
|
|
2123
|
-
for (let idx = 0; idx < input.length; idx++) {
|
|
2124
|
-
let char = input[idx];
|
|
2125
|
-
if (stack.length === 0 && char === separator[0] && !isEscaped) {
|
|
2126
|
-
if (separator.length === 1 || input.slice(idx, idx + separator.length) === separator) {
|
|
2127
|
-
parts.push(input.slice(lastPos, idx));
|
|
2128
|
-
lastPos = idx + separator.length;
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
if (isEscaped) {
|
|
2132
|
-
isEscaped = false;
|
|
2133
|
-
} else if (char === "\\") {
|
|
2134
|
-
isEscaped = true;
|
|
2135
|
-
}
|
|
2136
|
-
if (char === "(" || char === "[" || char === "{") {
|
|
2137
|
-
stack.push(char);
|
|
2138
|
-
} else if (char === ")" && stack[stack.length - 1] === "(" || char === "]" && stack[stack.length - 1] === "[" || char === "}" && stack[stack.length - 1] === "{") {
|
|
2139
|
-
stack.pop();
|
|
2140
|
-
}
|
|
2141
|
-
}
|
|
2142
|
-
parts.push(input.slice(lastPos));
|
|
2143
|
-
return parts;
|
|
2144
|
-
}
|
|
2145
|
-
})(splitAtTopLevelOnly);
|
|
2146
|
-
(function(exports) {
|
|
2147
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2148
|
-
value: true
|
|
2149
|
-
});
|
|
2150
|
-
function _export(target, all) {
|
|
2151
|
-
for (var name in all)
|
|
2152
|
-
Object.defineProperty(target, name, {
|
|
2153
|
-
enumerable: true,
|
|
2154
|
-
get: all[name]
|
|
2155
|
-
});
|
|
2156
|
-
}
|
|
2157
|
-
_export(exports, {
|
|
2158
|
-
parseBoxShadowValue: function() {
|
|
2159
|
-
return parseBoxShadowValue2;
|
|
2160
|
-
},
|
|
2161
|
-
formatBoxShadowValue: function() {
|
|
2162
|
-
return formatBoxShadowValue;
|
|
2163
|
-
}
|
|
2164
|
-
});
|
|
2165
|
-
const _splitAtTopLevelOnly = splitAtTopLevelOnly;
|
|
2166
|
-
let KEYWORDS = /* @__PURE__ */ new Set([
|
|
2167
|
-
"inset",
|
|
2168
|
-
"inherit",
|
|
2169
|
-
"initial",
|
|
2170
|
-
"revert",
|
|
2171
|
-
"unset"
|
|
2172
|
-
]);
|
|
2173
|
-
let SPACE = /\ +(?![^(]*\))/g;
|
|
2174
|
-
let LENGTH = /^-?(\d+|\.\d+)(.*?)$/g;
|
|
2175
|
-
function parseBoxShadowValue2(input) {
|
|
2176
|
-
let shadows = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(input, ",");
|
|
2177
|
-
return shadows.map((shadow) => {
|
|
2178
|
-
let value = shadow.trim();
|
|
2179
|
-
let result = {
|
|
2180
|
-
raw: value
|
|
2181
|
-
};
|
|
2182
|
-
let parts = value.split(SPACE);
|
|
2183
|
-
let seen = /* @__PURE__ */ new Set();
|
|
2184
|
-
for (let part of parts) {
|
|
2185
|
-
LENGTH.lastIndex = 0;
|
|
2186
|
-
if (!seen.has("KEYWORD") && KEYWORDS.has(part)) {
|
|
2187
|
-
result.keyword = part;
|
|
2188
|
-
seen.add("KEYWORD");
|
|
2189
|
-
} else if (LENGTH.test(part)) {
|
|
2190
|
-
if (!seen.has("X")) {
|
|
2191
|
-
result.x = part;
|
|
2192
|
-
seen.add("X");
|
|
2193
|
-
} else if (!seen.has("Y")) {
|
|
2194
|
-
result.y = part;
|
|
2195
|
-
seen.add("Y");
|
|
2196
|
-
} else if (!seen.has("BLUR")) {
|
|
2197
|
-
result.blur = part;
|
|
2198
|
-
seen.add("BLUR");
|
|
2199
|
-
} else if (!seen.has("SPREAD")) {
|
|
2200
|
-
result.spread = part;
|
|
2201
|
-
seen.add("SPREAD");
|
|
2202
|
-
}
|
|
2203
|
-
} else {
|
|
2204
|
-
if (!result.color) {
|
|
2205
|
-
result.color = part;
|
|
2206
|
-
} else {
|
|
2207
|
-
if (!result.unknown)
|
|
2208
|
-
result.unknown = [];
|
|
2209
|
-
result.unknown.push(part);
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
result.valid = result.x !== void 0 && result.y !== void 0;
|
|
2214
|
-
return result;
|
|
2215
|
-
});
|
|
2216
|
-
}
|
|
2217
|
-
function formatBoxShadowValue(shadows) {
|
|
2218
|
-
return shadows.map((shadow) => {
|
|
2219
|
-
if (!shadow.valid) {
|
|
2220
|
-
return shadow.raw;
|
|
2221
|
-
}
|
|
2222
|
-
return [
|
|
2223
|
-
shadow.keyword,
|
|
2224
|
-
shadow.x,
|
|
2225
|
-
shadow.y,
|
|
2226
|
-
shadow.blur,
|
|
2227
|
-
shadow.spread,
|
|
2228
|
-
shadow.color
|
|
2229
|
-
].filter(Boolean).join(" ");
|
|
2230
|
-
}).join(", ");
|
|
2231
|
-
}
|
|
2232
|
-
})(parseBoxShadowValue);
|
|
2233
|
-
(function(exports) {
|
|
2234
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2235
|
-
value: true
|
|
2236
|
-
});
|
|
2237
|
-
function _export(target, all) {
|
|
2238
|
-
for (var name in all)
|
|
2239
|
-
Object.defineProperty(target, name, {
|
|
2240
|
-
enumerable: true,
|
|
2241
|
-
get: all[name]
|
|
2242
|
-
});
|
|
2243
|
-
}
|
|
2244
|
-
_export(exports, {
|
|
2245
|
-
normalize: function() {
|
|
2246
|
-
return normalize;
|
|
2247
|
-
},
|
|
2248
|
-
url: function() {
|
|
2249
|
-
return url;
|
|
2250
|
-
},
|
|
2251
|
-
number: function() {
|
|
2252
|
-
return number;
|
|
2253
|
-
},
|
|
2254
|
-
percentage: function() {
|
|
2255
|
-
return percentage;
|
|
2256
|
-
},
|
|
2257
|
-
length: function() {
|
|
2258
|
-
return length;
|
|
2259
|
-
},
|
|
2260
|
-
lineWidth: function() {
|
|
2261
|
-
return lineWidth;
|
|
2262
|
-
},
|
|
2263
|
-
shadow: function() {
|
|
2264
|
-
return shadow;
|
|
2265
|
-
},
|
|
2266
|
-
color: function() {
|
|
2267
|
-
return color$1;
|
|
2268
|
-
},
|
|
2269
|
-
image: function() {
|
|
2270
|
-
return image;
|
|
2271
|
-
},
|
|
2272
|
-
gradient: function() {
|
|
2273
|
-
return gradient;
|
|
2274
|
-
},
|
|
2275
|
-
position: function() {
|
|
2276
|
-
return position;
|
|
2277
|
-
},
|
|
2278
|
-
familyName: function() {
|
|
2279
|
-
return familyName;
|
|
2280
|
-
},
|
|
2281
|
-
genericName: function() {
|
|
2282
|
-
return genericName;
|
|
2283
|
-
},
|
|
2284
|
-
absoluteSize: function() {
|
|
2285
|
-
return absoluteSize;
|
|
2286
|
-
},
|
|
2287
|
-
relativeSize: function() {
|
|
2288
|
-
return relativeSize;
|
|
2289
|
-
}
|
|
2290
|
-
});
|
|
2291
|
-
const _color = color;
|
|
2292
|
-
const _parseBoxShadowValue = parseBoxShadowValue;
|
|
2293
|
-
const _splitAtTopLevelOnly = splitAtTopLevelOnly;
|
|
2294
|
-
let cssFunctions = [
|
|
2295
|
-
"min",
|
|
2296
|
-
"max",
|
|
2297
|
-
"clamp",
|
|
2298
|
-
"calc"
|
|
2299
|
-
];
|
|
2300
|
-
function isCSSFunction(value) {
|
|
2301
|
-
return cssFunctions.some((fn) => new RegExp(`^${fn}\\(.*\\)`).test(value));
|
|
2302
|
-
}
|
|
2303
|
-
const AUTO_VAR_INJECTION_EXCEPTIONS = /* @__PURE__ */ new Set([
|
|
2304
|
-
// Concrete properties
|
|
2305
|
-
"scroll-timeline-name",
|
|
2306
|
-
"timeline-scope",
|
|
2307
|
-
"view-timeline-name",
|
|
2308
|
-
"font-palette",
|
|
2309
|
-
// Shorthand properties
|
|
2310
|
-
"scroll-timeline",
|
|
2311
|
-
"animation-timeline",
|
|
2312
|
-
"view-timeline"
|
|
2313
|
-
]);
|
|
2314
|
-
function normalize(value, context = null, isRoot = true) {
|
|
2315
|
-
let isVarException = context && AUTO_VAR_INJECTION_EXCEPTIONS.has(context.property);
|
|
2316
|
-
if (value.startsWith("--") && !isVarException) {
|
|
2317
|
-
return `var(${value})`;
|
|
2318
|
-
}
|
|
2319
|
-
if (value.includes("url(")) {
|
|
2320
|
-
return value.split(/(url\(.*?\))/g).filter(Boolean).map((part) => {
|
|
2321
|
-
if (/^url\(.*?\)$/.test(part)) {
|
|
2322
|
-
return part;
|
|
2323
|
-
}
|
|
2324
|
-
return normalize(part, context, false);
|
|
2325
|
-
}).join("");
|
|
2326
|
-
}
|
|
2327
|
-
value = value.replace(/([^\\])_+/g, (fullMatch, characterBefore) => characterBefore + " ".repeat(fullMatch.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_");
|
|
2328
|
-
if (isRoot) {
|
|
2329
|
-
value = value.trim();
|
|
2330
|
-
}
|
|
2331
|
-
value = normalizeMathOperatorSpacing(value);
|
|
2332
|
-
return value;
|
|
2333
|
-
}
|
|
2334
|
-
function normalizeMathOperatorSpacing(value) {
|
|
2335
|
-
let preventFormattingInFunctions = [
|
|
2336
|
-
"theme"
|
|
2337
|
-
];
|
|
2338
|
-
let preventFormattingKeywords = [
|
|
2339
|
-
"min-content",
|
|
2340
|
-
"max-content",
|
|
2341
|
-
"fit-content",
|
|
2342
|
-
// Env
|
|
2343
|
-
"safe-area-inset-top",
|
|
2344
|
-
"safe-area-inset-right",
|
|
2345
|
-
"safe-area-inset-bottom",
|
|
2346
|
-
"safe-area-inset-left",
|
|
2347
|
-
"titlebar-area-x",
|
|
2348
|
-
"titlebar-area-y",
|
|
2349
|
-
"titlebar-area-width",
|
|
2350
|
-
"titlebar-area-height",
|
|
2351
|
-
"keyboard-inset-top",
|
|
2352
|
-
"keyboard-inset-right",
|
|
2353
|
-
"keyboard-inset-bottom",
|
|
2354
|
-
"keyboard-inset-left",
|
|
2355
|
-
"keyboard-inset-width",
|
|
2356
|
-
"keyboard-inset-height",
|
|
2357
|
-
"radial-gradient",
|
|
2358
|
-
"linear-gradient",
|
|
2359
|
-
"conic-gradient",
|
|
2360
|
-
"repeating-radial-gradient",
|
|
2361
|
-
"repeating-linear-gradient",
|
|
2362
|
-
"repeating-conic-gradient"
|
|
2363
|
-
];
|
|
2364
|
-
return value.replace(/(calc|min|max|clamp)\(.+\)/g, (match) => {
|
|
2365
|
-
let result = "";
|
|
2366
|
-
function lastChar() {
|
|
2367
|
-
let char = result.trimEnd();
|
|
2368
|
-
return char[char.length - 1];
|
|
2369
|
-
}
|
|
2370
|
-
for (let i = 0; i < match.length; i++) {
|
|
2371
|
-
let peek = function(word) {
|
|
2372
|
-
return word.split("").every((char2, j) => match[i + j] === char2);
|
|
2373
|
-
}, consumeUntil = function(chars) {
|
|
2374
|
-
let minIndex = Infinity;
|
|
2375
|
-
for (let char2 of chars) {
|
|
2376
|
-
let index = match.indexOf(char2, i);
|
|
2377
|
-
if (index !== -1 && index < minIndex) {
|
|
2378
|
-
minIndex = index;
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
let result2 = match.slice(i, minIndex);
|
|
2382
|
-
i += result2.length - 1;
|
|
2383
|
-
return result2;
|
|
2384
|
-
};
|
|
2385
|
-
let char = match[i];
|
|
2386
|
-
if (peek("var")) {
|
|
2387
|
-
result += consumeUntil([
|
|
2388
|
-
")",
|
|
2389
|
-
","
|
|
2390
|
-
]);
|
|
2391
|
-
} else if (preventFormattingKeywords.some((keyword) => peek(keyword))) {
|
|
2392
|
-
let keyword = preventFormattingKeywords.find((keyword2) => peek(keyword2));
|
|
2393
|
-
result += keyword;
|
|
2394
|
-
i += keyword.length - 1;
|
|
2395
|
-
} else if (preventFormattingInFunctions.some((fn) => peek(fn))) {
|
|
2396
|
-
result += consumeUntil([
|
|
2397
|
-
")"
|
|
2398
|
-
]);
|
|
2399
|
-
} else if (peek("[")) {
|
|
2400
|
-
result += consumeUntil([
|
|
2401
|
-
"]"
|
|
2402
|
-
]);
|
|
2403
|
-
} else if ([
|
|
2404
|
-
"+",
|
|
2405
|
-
"-",
|
|
2406
|
-
"*",
|
|
2407
|
-
"/"
|
|
2408
|
-
].includes(char) && ![
|
|
2409
|
-
"(",
|
|
2410
|
-
"+",
|
|
2411
|
-
"-",
|
|
2412
|
-
"*",
|
|
2413
|
-
"/",
|
|
2414
|
-
","
|
|
2415
|
-
].includes(lastChar())) {
|
|
2416
|
-
result += ` ${char} `;
|
|
2417
|
-
} else {
|
|
2418
|
-
result += char;
|
|
2419
|
-
}
|
|
2420
|
-
}
|
|
2421
|
-
return result.replace(/\s+/g, " ");
|
|
2422
|
-
});
|
|
2423
|
-
}
|
|
2424
|
-
function url(value) {
|
|
2425
|
-
return value.startsWith("url(");
|
|
2426
|
-
}
|
|
2427
|
-
function number(value) {
|
|
2428
|
-
return !isNaN(Number(value)) || isCSSFunction(value);
|
|
2429
|
-
}
|
|
2430
|
-
function percentage(value) {
|
|
2431
|
-
return value.endsWith("%") && number(value.slice(0, -1)) || isCSSFunction(value);
|
|
2432
|
-
}
|
|
2433
|
-
let lengthUnits = [
|
|
2434
|
-
"cm",
|
|
2435
|
-
"mm",
|
|
2436
|
-
"Q",
|
|
2437
|
-
"in",
|
|
2438
|
-
"pc",
|
|
2439
|
-
"pt",
|
|
2440
|
-
"px",
|
|
2441
|
-
"em",
|
|
2442
|
-
"ex",
|
|
2443
|
-
"ch",
|
|
2444
|
-
"rem",
|
|
2445
|
-
"lh",
|
|
2446
|
-
"rlh",
|
|
2447
|
-
"vw",
|
|
2448
|
-
"vh",
|
|
2449
|
-
"vmin",
|
|
2450
|
-
"vmax",
|
|
2451
|
-
"vb",
|
|
2452
|
-
"vi",
|
|
2453
|
-
"svw",
|
|
2454
|
-
"svh",
|
|
2455
|
-
"lvw",
|
|
2456
|
-
"lvh",
|
|
2457
|
-
"dvw",
|
|
2458
|
-
"dvh",
|
|
2459
|
-
"cqw",
|
|
2460
|
-
"cqh",
|
|
2461
|
-
"cqi",
|
|
2462
|
-
"cqb",
|
|
2463
|
-
"cqmin",
|
|
2464
|
-
"cqmax"
|
|
2465
|
-
];
|
|
2466
|
-
let lengthUnitsPattern = `(?:${lengthUnits.join("|")})`;
|
|
2467
|
-
function length(value) {
|
|
2468
|
-
return value === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${lengthUnitsPattern}$`).test(value) || isCSSFunction(value);
|
|
2469
|
-
}
|
|
2470
|
-
let lineWidths = /* @__PURE__ */ new Set([
|
|
2471
|
-
"thin",
|
|
2472
|
-
"medium",
|
|
2473
|
-
"thick"
|
|
2474
|
-
]);
|
|
2475
|
-
function lineWidth(value) {
|
|
2476
|
-
return lineWidths.has(value);
|
|
2477
|
-
}
|
|
2478
|
-
function shadow(value) {
|
|
2479
|
-
let parsedShadows = (0, _parseBoxShadowValue.parseBoxShadowValue)(normalize(value));
|
|
2480
|
-
for (let parsedShadow of parsedShadows) {
|
|
2481
|
-
if (!parsedShadow.valid) {
|
|
2482
|
-
return false;
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
return true;
|
|
2486
|
-
}
|
|
2487
|
-
function color$1(value) {
|
|
2488
|
-
let colors2 = 0;
|
|
2489
|
-
let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, "_").every((part) => {
|
|
2490
|
-
part = normalize(part);
|
|
2491
|
-
if (part.startsWith("var("))
|
|
2492
|
-
return true;
|
|
2493
|
-
if ((0, _color.parseColor)(part, {
|
|
2494
|
-
loose: true
|
|
2495
|
-
}) !== null)
|
|
2496
|
-
return colors2++, true;
|
|
2497
|
-
return false;
|
|
2498
|
-
});
|
|
2499
|
-
if (!result)
|
|
2500
|
-
return false;
|
|
2501
|
-
return colors2 > 0;
|
|
2502
|
-
}
|
|
2503
|
-
function image(value) {
|
|
2504
|
-
let images = 0;
|
|
2505
|
-
let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
|
|
2506
|
-
part = normalize(part);
|
|
2507
|
-
if (part.startsWith("var("))
|
|
2508
|
-
return true;
|
|
2509
|
-
if (url(part) || gradient(part) || [
|
|
2510
|
-
"element(",
|
|
2511
|
-
"image(",
|
|
2512
|
-
"cross-fade(",
|
|
2513
|
-
"image-set("
|
|
2514
|
-
].some((fn) => part.startsWith(fn))) {
|
|
2515
|
-
images++;
|
|
2516
|
-
return true;
|
|
2517
|
-
}
|
|
2518
|
-
return false;
|
|
2519
|
-
});
|
|
2520
|
-
if (!result)
|
|
2521
|
-
return false;
|
|
2522
|
-
return images > 0;
|
|
2523
|
-
}
|
|
2524
|
-
let gradientTypes = /* @__PURE__ */ new Set([
|
|
2525
|
-
"conic-gradient",
|
|
2526
|
-
"linear-gradient",
|
|
2527
|
-
"radial-gradient",
|
|
2528
|
-
"repeating-conic-gradient",
|
|
2529
|
-
"repeating-linear-gradient",
|
|
2530
|
-
"repeating-radial-gradient"
|
|
2531
|
-
]);
|
|
2532
|
-
function gradient(value) {
|
|
2533
|
-
value = normalize(value);
|
|
2534
|
-
for (let type of gradientTypes) {
|
|
2535
|
-
if (value.startsWith(`${type}(`)) {
|
|
2536
|
-
return true;
|
|
2537
|
-
}
|
|
2538
|
-
}
|
|
2539
|
-
return false;
|
|
2540
|
-
}
|
|
2541
|
-
let validPositions = /* @__PURE__ */ new Set([
|
|
2542
|
-
"center",
|
|
2543
|
-
"top",
|
|
2544
|
-
"right",
|
|
2545
|
-
"bottom",
|
|
2546
|
-
"left"
|
|
2547
|
-
]);
|
|
2548
|
-
function position(value) {
|
|
2549
|
-
let positions = 0;
|
|
2550
|
-
let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, "_").every((part) => {
|
|
2551
|
-
part = normalize(part);
|
|
2552
|
-
if (part.startsWith("var("))
|
|
2553
|
-
return true;
|
|
2554
|
-
if (validPositions.has(part) || length(part) || percentage(part)) {
|
|
2555
|
-
positions++;
|
|
2556
|
-
return true;
|
|
2557
|
-
}
|
|
2558
|
-
return false;
|
|
2559
|
-
});
|
|
2560
|
-
if (!result)
|
|
2561
|
-
return false;
|
|
2562
|
-
return positions > 0;
|
|
2563
|
-
}
|
|
2564
|
-
function familyName(value) {
|
|
2565
|
-
let fonts = 0;
|
|
2566
|
-
let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
|
|
2567
|
-
part = normalize(part);
|
|
2568
|
-
if (part.startsWith("var("))
|
|
2569
|
-
return true;
|
|
2570
|
-
if (part.includes(" ")) {
|
|
2571
|
-
if (!/(['"])([^"']+)\1/g.test(part)) {
|
|
2572
|
-
return false;
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
if (/^\d/g.test(part)) {
|
|
2576
|
-
return false;
|
|
2577
|
-
}
|
|
2578
|
-
fonts++;
|
|
2579
|
-
return true;
|
|
2580
|
-
});
|
|
2581
|
-
if (!result)
|
|
2582
|
-
return false;
|
|
2583
|
-
return fonts > 0;
|
|
2584
|
-
}
|
|
2585
|
-
let genericNames = /* @__PURE__ */ new Set([
|
|
2586
|
-
"serif",
|
|
2587
|
-
"sans-serif",
|
|
2588
|
-
"monospace",
|
|
2589
|
-
"cursive",
|
|
2590
|
-
"fantasy",
|
|
2591
|
-
"system-ui",
|
|
2592
|
-
"ui-serif",
|
|
2593
|
-
"ui-sans-serif",
|
|
2594
|
-
"ui-monospace",
|
|
2595
|
-
"ui-rounded",
|
|
2596
|
-
"math",
|
|
2597
|
-
"emoji",
|
|
2598
|
-
"fangsong"
|
|
2599
|
-
]);
|
|
2600
|
-
function genericName(value) {
|
|
2601
|
-
return genericNames.has(value);
|
|
2602
|
-
}
|
|
2603
|
-
let absoluteSizes = /* @__PURE__ */ new Set([
|
|
2604
|
-
"xx-small",
|
|
2605
|
-
"x-small",
|
|
2606
|
-
"small",
|
|
2607
|
-
"medium",
|
|
2608
|
-
"large",
|
|
2609
|
-
"x-large",
|
|
2610
|
-
"xx-large",
|
|
2611
|
-
"xxx-large"
|
|
2612
|
-
]);
|
|
2613
|
-
function absoluteSize(value) {
|
|
2614
|
-
return absoluteSizes.has(value);
|
|
2615
|
-
}
|
|
2616
|
-
let relativeSizes = /* @__PURE__ */ new Set([
|
|
2617
|
-
"larger",
|
|
2618
|
-
"smaller"
|
|
2619
|
-
]);
|
|
2620
|
-
function relativeSize(value) {
|
|
2621
|
-
return relativeSizes.has(value);
|
|
2622
|
-
}
|
|
2623
|
-
})(dataTypes);
|
|
2624
|
-
var validateFormalSyntax = {};
|
|
2625
|
-
(function(exports) {
|
|
2626
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2627
|
-
value: true
|
|
2628
|
-
});
|
|
2629
|
-
Object.defineProperty(exports, "backgroundSize", {
|
|
2630
|
-
enumerable: true,
|
|
2631
|
-
get: function() {
|
|
2632
|
-
return backgroundSize;
|
|
2633
|
-
}
|
|
2634
|
-
});
|
|
2635
|
-
const _dataTypes = dataTypes;
|
|
2636
|
-
const _splitAtTopLevelOnly = splitAtTopLevelOnly;
|
|
2637
|
-
function backgroundSize(value) {
|
|
2638
|
-
let keywordValues = [
|
|
2639
|
-
"cover",
|
|
2640
|
-
"contain"
|
|
2641
|
-
];
|
|
2642
|
-
return (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
|
|
2643
|
-
let sizes = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(part, "_").filter(Boolean);
|
|
2644
|
-
if (sizes.length === 1 && keywordValues.includes(sizes[0]))
|
|
2645
|
-
return true;
|
|
2646
|
-
if (sizes.length !== 1 && sizes.length !== 2)
|
|
2647
|
-
return false;
|
|
2648
|
-
return sizes.every((size) => (0, _dataTypes.length)(size) || (0, _dataTypes.percentage)(size) || size === "auto");
|
|
2649
|
-
});
|
|
2650
|
-
}
|
|
2651
|
-
})(validateFormalSyntax);
|
|
2652
|
-
(function(exports) {
|
|
2653
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2654
|
-
value: true
|
|
2655
|
-
});
|
|
2656
|
-
function _export(target, all) {
|
|
2657
|
-
for (var name in all)
|
|
2658
|
-
Object.defineProperty(target, name, {
|
|
2659
|
-
enumerable: true,
|
|
2660
|
-
get: all[name]
|
|
2661
|
-
});
|
|
2662
|
-
}
|
|
2663
|
-
_export(exports, {
|
|
2664
|
-
updateAllClasses: function() {
|
|
2665
|
-
return updateAllClasses;
|
|
2666
|
-
},
|
|
2667
|
-
asValue: function() {
|
|
2668
|
-
return asValue;
|
|
2669
|
-
},
|
|
2670
|
-
parseColorFormat: function() {
|
|
2671
|
-
return parseColorFormat;
|
|
2672
|
-
},
|
|
2673
|
-
asColor: function() {
|
|
2674
|
-
return asColor;
|
|
2675
|
-
},
|
|
2676
|
-
asLookupValue: function() {
|
|
2677
|
-
return asLookupValue;
|
|
2678
|
-
},
|
|
2679
|
-
typeMap: function() {
|
|
2680
|
-
return typeMap;
|
|
2681
|
-
},
|
|
2682
|
-
coerceValue: function() {
|
|
2683
|
-
return coerceValue;
|
|
2684
|
-
},
|
|
2685
|
-
getMatchingTypes: function() {
|
|
2686
|
-
return getMatchingTypes;
|
|
2687
|
-
}
|
|
2688
|
-
});
|
|
2689
|
-
const _escapeCommas = /* @__PURE__ */ _interop_require_default(escapeCommas);
|
|
2690
|
-
const _withAlphaVariable = withAlphaVariable;
|
|
2691
|
-
const _dataTypes = dataTypes;
|
|
2692
|
-
const _negateValue = /* @__PURE__ */ _interop_require_default(negateValue);
|
|
2693
|
-
const _validateFormalSyntax = validateFormalSyntax;
|
|
2694
|
-
const _featureFlags = featureFlags;
|
|
2695
|
-
function _interop_require_default(obj) {
|
|
2696
|
-
return obj && obj.__esModule ? obj : {
|
|
2697
|
-
default: obj
|
|
2698
|
-
};
|
|
2699
|
-
}
|
|
2700
|
-
function updateAllClasses(selectors, updateClass) {
|
|
2701
|
-
selectors.walkClasses((sel) => {
|
|
2702
|
-
sel.value = updateClass(sel.value);
|
|
2703
|
-
if (sel.raws && sel.raws.value) {
|
|
2704
|
-
sel.raws.value = (0, _escapeCommas.default)(sel.raws.value);
|
|
2705
|
-
}
|
|
2706
|
-
});
|
|
2707
|
-
}
|
|
2708
|
-
function resolveArbitraryValue(modifier, validate) {
|
|
2709
|
-
if (!isArbitraryValue(modifier)) {
|
|
2710
|
-
return void 0;
|
|
2711
|
-
}
|
|
2712
|
-
let value = modifier.slice(1, -1);
|
|
2713
|
-
if (!validate(value)) {
|
|
2714
|
-
return void 0;
|
|
2715
|
-
}
|
|
2716
|
-
return (0, _dataTypes.normalize)(value);
|
|
2717
|
-
}
|
|
2718
|
-
function asNegativeValue(modifier, lookup = {}, validate) {
|
|
2719
|
-
let positiveValue = lookup[modifier];
|
|
2720
|
-
if (positiveValue !== void 0) {
|
|
2721
|
-
return (0, _negateValue.default)(positiveValue);
|
|
2722
|
-
}
|
|
2723
|
-
if (isArbitraryValue(modifier)) {
|
|
2724
|
-
let resolved = resolveArbitraryValue(modifier, validate);
|
|
2725
|
-
if (resolved === void 0) {
|
|
2726
|
-
return void 0;
|
|
2727
|
-
}
|
|
2728
|
-
return (0, _negateValue.default)(resolved);
|
|
2729
|
-
}
|
|
2730
|
-
}
|
|
2731
|
-
function asValue(modifier, options = {}, { validate = () => true } = {}) {
|
|
2732
|
-
var _options_values;
|
|
2733
|
-
let value = (_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier];
|
|
2734
|
-
if (value !== void 0) {
|
|
2735
|
-
return value;
|
|
2736
|
-
}
|
|
2737
|
-
if (options.supportsNegativeValues && modifier.startsWith("-")) {
|
|
2738
|
-
return asNegativeValue(modifier.slice(1), options.values, validate);
|
|
2739
|
-
}
|
|
2740
|
-
return resolveArbitraryValue(modifier, validate);
|
|
2741
|
-
}
|
|
2742
|
-
function isArbitraryValue(input) {
|
|
2743
|
-
return input.startsWith("[") && input.endsWith("]");
|
|
2744
|
-
}
|
|
2745
|
-
function splitUtilityModifier(modifier) {
|
|
2746
|
-
let slashIdx = modifier.lastIndexOf("/");
|
|
2747
|
-
let arbitraryStartIdx = modifier.lastIndexOf("[", slashIdx);
|
|
2748
|
-
let arbitraryEndIdx = modifier.indexOf("]", slashIdx);
|
|
2749
|
-
let isNextToArbitrary = modifier[slashIdx - 1] === "]" || modifier[slashIdx + 1] === "[";
|
|
2750
|
-
if (!isNextToArbitrary) {
|
|
2751
|
-
if (arbitraryStartIdx !== -1 && arbitraryEndIdx !== -1) {
|
|
2752
|
-
if (arbitraryStartIdx < slashIdx && slashIdx < arbitraryEndIdx) {
|
|
2753
|
-
slashIdx = modifier.lastIndexOf("/", arbitraryStartIdx);
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
if (slashIdx === -1 || slashIdx === modifier.length - 1) {
|
|
2758
|
-
return [
|
|
2759
|
-
modifier,
|
|
2760
|
-
void 0
|
|
2761
|
-
];
|
|
2762
|
-
}
|
|
2763
|
-
let arbitrary = isArbitraryValue(modifier);
|
|
2764
|
-
if (arbitrary && !modifier.includes("]/[")) {
|
|
2765
|
-
return [
|
|
2766
|
-
modifier,
|
|
2767
|
-
void 0
|
|
2768
|
-
];
|
|
2769
|
-
}
|
|
2770
|
-
return [
|
|
2771
|
-
modifier.slice(0, slashIdx),
|
|
2772
|
-
modifier.slice(slashIdx + 1)
|
|
2773
|
-
];
|
|
2774
|
-
}
|
|
2775
|
-
function parseColorFormat(value) {
|
|
2776
|
-
if (typeof value === "string" && value.includes("<alpha-value>")) {
|
|
2777
|
-
let oldValue = value;
|
|
2778
|
-
return ({ opacityValue = 1 }) => oldValue.replace("<alpha-value>", opacityValue);
|
|
2779
|
-
}
|
|
2780
|
-
return value;
|
|
2781
|
-
}
|
|
2782
|
-
function unwrapArbitraryModifier(modifier) {
|
|
2783
|
-
return (0, _dataTypes.normalize)(modifier.slice(1, -1));
|
|
2784
|
-
}
|
|
2785
|
-
function asColor(modifier, options = {}, { tailwindConfig = {} } = {}) {
|
|
2786
|
-
var _options_values;
|
|
2787
|
-
if (((_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier]) !== void 0) {
|
|
2788
|
-
var _options_values1;
|
|
2789
|
-
return parseColorFormat((_options_values1 = options.values) === null || _options_values1 === void 0 ? void 0 : _options_values1[modifier]);
|
|
2790
|
-
}
|
|
2791
|
-
let [color2, alpha] = splitUtilityModifier(modifier);
|
|
2792
|
-
if (alpha !== void 0) {
|
|
2793
|
-
var _options_values2, _tailwindConfig_theme, _tailwindConfig_theme_opacity;
|
|
2794
|
-
var _options_values_color;
|
|
2795
|
-
let normalizedColor = (_options_values_color = (_options_values2 = options.values) === null || _options_values2 === void 0 ? void 0 : _options_values2[color2]) !== null && _options_values_color !== void 0 ? _options_values_color : isArbitraryValue(color2) ? color2.slice(1, -1) : void 0;
|
|
2796
|
-
if (normalizedColor === void 0) {
|
|
2797
|
-
return void 0;
|
|
2798
|
-
}
|
|
2799
|
-
normalizedColor = parseColorFormat(normalizedColor);
|
|
2800
|
-
if (isArbitraryValue(alpha)) {
|
|
2801
|
-
return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, unwrapArbitraryModifier(alpha));
|
|
2802
|
-
}
|
|
2803
|
-
if (((_tailwindConfig_theme = tailwindConfig.theme) === null || _tailwindConfig_theme === void 0 ? void 0 : (_tailwindConfig_theme_opacity = _tailwindConfig_theme.opacity) === null || _tailwindConfig_theme_opacity === void 0 ? void 0 : _tailwindConfig_theme_opacity[alpha]) === void 0) {
|
|
2804
|
-
return void 0;
|
|
2805
|
-
}
|
|
2806
|
-
return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, tailwindConfig.theme.opacity[alpha]);
|
|
2807
|
-
}
|
|
2808
|
-
return asValue(modifier, options, {
|
|
2809
|
-
validate: _dataTypes.color
|
|
2810
|
-
});
|
|
2811
|
-
}
|
|
2812
|
-
function asLookupValue(modifier, options = {}) {
|
|
2813
|
-
var _options_values;
|
|
2814
|
-
return (_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier];
|
|
2815
|
-
}
|
|
2816
|
-
function guess(validate) {
|
|
2817
|
-
return (modifier, options) => {
|
|
2818
|
-
return asValue(modifier, options, {
|
|
2819
|
-
validate
|
|
2820
|
-
});
|
|
2821
|
-
};
|
|
2822
|
-
}
|
|
2823
|
-
let typeMap = {
|
|
2824
|
-
any: asValue,
|
|
2825
|
-
color: asColor,
|
|
2826
|
-
url: guess(_dataTypes.url),
|
|
2827
|
-
image: guess(_dataTypes.image),
|
|
2828
|
-
length: guess(_dataTypes.length),
|
|
2829
|
-
percentage: guess(_dataTypes.percentage),
|
|
2830
|
-
position: guess(_dataTypes.position),
|
|
2831
|
-
lookup: asLookupValue,
|
|
2832
|
-
"generic-name": guess(_dataTypes.genericName),
|
|
2833
|
-
"family-name": guess(_dataTypes.familyName),
|
|
2834
|
-
number: guess(_dataTypes.number),
|
|
2835
|
-
"line-width": guess(_dataTypes.lineWidth),
|
|
2836
|
-
"absolute-size": guess(_dataTypes.absoluteSize),
|
|
2837
|
-
"relative-size": guess(_dataTypes.relativeSize),
|
|
2838
|
-
shadow: guess(_dataTypes.shadow),
|
|
2839
|
-
size: guess(_validateFormalSyntax.backgroundSize)
|
|
2840
|
-
};
|
|
2841
|
-
let supportedTypes = Object.keys(typeMap);
|
|
2842
|
-
function splitAtFirst(input, delim) {
|
|
2843
|
-
let idx = input.indexOf(delim);
|
|
2844
|
-
if (idx === -1)
|
|
2845
|
-
return [
|
|
2846
|
-
void 0,
|
|
2847
|
-
input
|
|
2848
|
-
];
|
|
2849
|
-
return [
|
|
2850
|
-
input.slice(0, idx),
|
|
2851
|
-
input.slice(idx + 1)
|
|
2852
|
-
];
|
|
2853
|
-
}
|
|
2854
|
-
function coerceValue(types, modifier, options, tailwindConfig) {
|
|
2855
|
-
if (options.values && modifier in options.values) {
|
|
2856
|
-
for (let { type } of types !== null && types !== void 0 ? types : []) {
|
|
2857
|
-
let result = typeMap[type](modifier, options, {
|
|
2858
|
-
tailwindConfig
|
|
2859
|
-
});
|
|
2860
|
-
if (result === void 0) {
|
|
2861
|
-
continue;
|
|
2862
|
-
}
|
|
2863
|
-
return [
|
|
2864
|
-
result,
|
|
2865
|
-
type,
|
|
2866
|
-
null
|
|
2867
|
-
];
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
if (isArbitraryValue(modifier)) {
|
|
2871
|
-
let arbitraryValue = modifier.slice(1, -1);
|
|
2872
|
-
let [explicitType, value] = splitAtFirst(arbitraryValue, ":");
|
|
2873
|
-
if (!/^[\w-_]+$/g.test(explicitType)) {
|
|
2874
|
-
value = arbitraryValue;
|
|
2875
|
-
} else if (explicitType !== void 0 && !supportedTypes.includes(explicitType)) {
|
|
2876
|
-
return [];
|
|
2877
|
-
}
|
|
2878
|
-
if (value.length > 0 && supportedTypes.includes(explicitType)) {
|
|
2879
|
-
return [
|
|
2880
|
-
asValue(`[${value}]`, options),
|
|
2881
|
-
explicitType,
|
|
2882
|
-
null
|
|
2883
|
-
];
|
|
2884
|
-
}
|
|
2885
|
-
}
|
|
2886
|
-
let matches = getMatchingTypes(types, modifier, options, tailwindConfig);
|
|
2887
|
-
for (let match of matches) {
|
|
2888
|
-
return match;
|
|
2889
|
-
}
|
|
2890
|
-
return [];
|
|
2891
|
-
}
|
|
2892
|
-
function* getMatchingTypes(types, rawModifier, options, tailwindConfig) {
|
|
2893
|
-
let modifiersEnabled = (0, _featureFlags.flagEnabled)(tailwindConfig, "generalizedModifiers");
|
|
2894
|
-
let [modifier, utilityModifier] = splitUtilityModifier(rawModifier);
|
|
2895
|
-
let canUseUtilityModifier = modifiersEnabled && options.modifiers != null && (options.modifiers === "any" || typeof options.modifiers === "object" && (utilityModifier && isArbitraryValue(utilityModifier) || utilityModifier in options.modifiers));
|
|
2896
|
-
if (!canUseUtilityModifier) {
|
|
2897
|
-
modifier = rawModifier;
|
|
2898
|
-
utilityModifier = void 0;
|
|
2899
|
-
}
|
|
2900
|
-
if (utilityModifier !== void 0 && modifier === "") {
|
|
2901
|
-
modifier = "DEFAULT";
|
|
2902
|
-
}
|
|
2903
|
-
if (utilityModifier !== void 0) {
|
|
2904
|
-
if (typeof options.modifiers === "object") {
|
|
2905
|
-
var _options_modifiers;
|
|
2906
|
-
var _options_modifiers_utilityModifier;
|
|
2907
|
-
let configValue = (_options_modifiers_utilityModifier = (_options_modifiers = options.modifiers) === null || _options_modifiers === void 0 ? void 0 : _options_modifiers[utilityModifier]) !== null && _options_modifiers_utilityModifier !== void 0 ? _options_modifiers_utilityModifier : null;
|
|
2908
|
-
if (configValue !== null) {
|
|
2909
|
-
utilityModifier = configValue;
|
|
2910
|
-
} else if (isArbitraryValue(utilityModifier)) {
|
|
2911
|
-
utilityModifier = unwrapArbitraryModifier(utilityModifier);
|
|
2912
|
-
}
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
|
-
for (let { type } of types !== null && types !== void 0 ? types : []) {
|
|
2916
|
-
let result = typeMap[type](modifier, options, {
|
|
2917
|
-
tailwindConfig
|
|
2918
|
-
});
|
|
2919
|
-
if (result === void 0) {
|
|
2920
|
-
continue;
|
|
2921
|
-
}
|
|
2922
|
-
yield [
|
|
2923
|
-
result,
|
|
2924
|
-
type,
|
|
2925
|
-
utilityModifier !== null && utilityModifier !== void 0 ? utilityModifier : null
|
|
2926
|
-
];
|
|
2927
|
-
}
|
|
2928
|
-
}
|
|
2929
|
-
})(pluginUtils);
|
|
2930
|
-
var toColorValue = {};
|
|
2931
|
-
(function(exports) {
|
|
2932
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2933
|
-
value: true
|
|
2934
|
-
});
|
|
2935
|
-
Object.defineProperty(exports, "default", {
|
|
2936
|
-
enumerable: true,
|
|
2937
|
-
get: function() {
|
|
2938
|
-
return toColorValue2;
|
|
2939
|
-
}
|
|
2940
|
-
});
|
|
2941
|
-
function toColorValue2(maybeFunction) {
|
|
2942
|
-
return typeof maybeFunction === "function" ? maybeFunction({}) : maybeFunction;
|
|
2943
|
-
}
|
|
2944
|
-
})(toColorValue);
|
|
2945
|
-
(function(exports) {
|
|
2946
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2947
|
-
value: true
|
|
2948
|
-
});
|
|
2949
|
-
Object.defineProperty(exports, "default", {
|
|
2950
|
-
enumerable: true,
|
|
2951
|
-
get: function() {
|
|
2952
|
-
return resolveConfig2;
|
|
2953
|
-
}
|
|
2954
|
-
});
|
|
2955
|
-
const _negateValue = /* @__PURE__ */ _interop_require_default(negateValue);
|
|
2956
|
-
const _corePluginList = /* @__PURE__ */ _interop_require_default(corePluginList);
|
|
2957
|
-
const _configurePlugins = /* @__PURE__ */ _interop_require_default(configurePlugins);
|
|
2958
|
-
const _colors = /* @__PURE__ */ _interop_require_default(colors$1);
|
|
2959
|
-
const _defaults = defaults;
|
|
2960
|
-
const _toPath = toPath;
|
|
2961
|
-
const _normalizeConfig = normalizeConfig;
|
|
2962
|
-
const _isPlainObject = /* @__PURE__ */ _interop_require_default(isPlainObject);
|
|
2963
|
-
const _cloneDeep = cloneDeep;
|
|
2964
|
-
const _pluginUtils = pluginUtils;
|
|
2965
|
-
const _withAlphaVariable = withAlphaVariable;
|
|
2966
|
-
const _toColorValue = /* @__PURE__ */ _interop_require_default(toColorValue);
|
|
2967
|
-
function _interop_require_default(obj) {
|
|
2968
|
-
return obj && obj.__esModule ? obj : {
|
|
2969
|
-
default: obj
|
|
2970
|
-
};
|
|
2971
|
-
}
|
|
2972
|
-
function isFunction(input) {
|
|
2973
|
-
return typeof input === "function";
|
|
2974
|
-
}
|
|
2975
|
-
function mergeWith(target, ...sources) {
|
|
2976
|
-
let customizer = sources.pop();
|
|
2977
|
-
for (let source of sources) {
|
|
2978
|
-
for (let k in source) {
|
|
2979
|
-
let merged = customizer(target[k], source[k]);
|
|
2980
|
-
if (merged === void 0) {
|
|
2981
|
-
if ((0, _isPlainObject.default)(target[k]) && (0, _isPlainObject.default)(source[k])) {
|
|
2982
|
-
target[k] = mergeWith({}, target[k], source[k], customizer);
|
|
2983
|
-
} else {
|
|
2984
|
-
target[k] = source[k];
|
|
2985
|
-
}
|
|
2986
|
-
} else {
|
|
2987
|
-
target[k] = merged;
|
|
2988
|
-
}
|
|
2989
|
-
}
|
|
2990
|
-
}
|
|
2991
|
-
return target;
|
|
2992
|
-
}
|
|
2993
|
-
const configUtils = {
|
|
2994
|
-
colors: _colors.default,
|
|
2995
|
-
negative(scale) {
|
|
2996
|
-
return Object.keys(scale).filter((key) => scale[key] !== "0").reduce((negativeScale, key) => {
|
|
2997
|
-
let negativeValue = (0, _negateValue.default)(scale[key]);
|
|
2998
|
-
if (negativeValue !== void 0) {
|
|
2999
|
-
negativeScale[`-${key}`] = negativeValue;
|
|
3000
|
-
}
|
|
3001
|
-
return negativeScale;
|
|
3002
|
-
}, {});
|
|
3003
|
-
},
|
|
3004
|
-
breakpoints(screens2) {
|
|
3005
|
-
return Object.keys(screens2).filter((key) => typeof screens2[key] === "string").reduce((breakpoints, key) => ({
|
|
3006
|
-
...breakpoints,
|
|
3007
|
-
[`screen-${key}`]: screens2[key]
|
|
3008
|
-
}), {});
|
|
3009
|
-
}
|
|
3010
|
-
};
|
|
3011
|
-
function value(valueToResolve, ...args) {
|
|
3012
|
-
return isFunction(valueToResolve) ? valueToResolve(...args) : valueToResolve;
|
|
3013
|
-
}
|
|
3014
|
-
function collectExtends(items) {
|
|
3015
|
-
return items.reduce((merged, { extend }) => {
|
|
3016
|
-
return mergeWith(merged, extend, (mergedValue, extendValue) => {
|
|
3017
|
-
if (mergedValue === void 0) {
|
|
3018
|
-
return [
|
|
3019
|
-
extendValue
|
|
3020
|
-
];
|
|
3021
|
-
}
|
|
3022
|
-
if (Array.isArray(mergedValue)) {
|
|
3023
|
-
return [
|
|
3024
|
-
extendValue,
|
|
3025
|
-
...mergedValue
|
|
3026
|
-
];
|
|
3027
|
-
}
|
|
3028
|
-
return [
|
|
3029
|
-
extendValue,
|
|
3030
|
-
mergedValue
|
|
3031
|
-
];
|
|
3032
|
-
});
|
|
3033
|
-
}, {});
|
|
3034
|
-
}
|
|
3035
|
-
function mergeThemes(themes) {
|
|
3036
|
-
return {
|
|
3037
|
-
...themes.reduce((merged, theme2) => (0, _defaults.defaults)(merged, theme2), {}),
|
|
3038
|
-
// In order to resolve n config objects, we combine all of their `extend` properties
|
|
3039
|
-
// into arrays instead of objects so they aren't overridden.
|
|
3040
|
-
extend: collectExtends(themes)
|
|
3041
|
-
};
|
|
3042
|
-
}
|
|
3043
|
-
function mergeExtensionCustomizer(merged, value2) {
|
|
3044
|
-
if (Array.isArray(merged) && (0, _isPlainObject.default)(merged[0])) {
|
|
3045
|
-
return merged.concat(value2);
|
|
3046
|
-
}
|
|
3047
|
-
if (Array.isArray(value2) && (0, _isPlainObject.default)(value2[0]) && (0, _isPlainObject.default)(merged)) {
|
|
3048
|
-
return [
|
|
3049
|
-
merged,
|
|
3050
|
-
...value2
|
|
3051
|
-
];
|
|
3052
|
-
}
|
|
3053
|
-
if (Array.isArray(value2)) {
|
|
3054
|
-
return value2;
|
|
3055
|
-
}
|
|
3056
|
-
return void 0;
|
|
3057
|
-
}
|
|
3058
|
-
function mergeExtensions({ extend, ...theme2 }) {
|
|
3059
|
-
return mergeWith(theme2, extend, (themeValue, extensions) => {
|
|
3060
|
-
if (!isFunction(themeValue) && !extensions.some(isFunction)) {
|
|
3061
|
-
return mergeWith({}, themeValue, ...extensions, mergeExtensionCustomizer);
|
|
3062
|
-
}
|
|
3063
|
-
return (resolveThemePath, utils) => mergeWith({}, ...[
|
|
3064
|
-
themeValue,
|
|
3065
|
-
...extensions
|
|
3066
|
-
].map((e) => value(e, resolveThemePath, utils)), mergeExtensionCustomizer);
|
|
3067
|
-
});
|
|
3068
|
-
}
|
|
3069
|
-
function* toPaths(key) {
|
|
3070
|
-
let path = (0, _toPath.toPath)(key);
|
|
3071
|
-
if (path.length === 0) {
|
|
3072
|
-
return;
|
|
3073
|
-
}
|
|
3074
|
-
yield path;
|
|
3075
|
-
if (Array.isArray(key)) {
|
|
3076
|
-
return;
|
|
3077
|
-
}
|
|
3078
|
-
let pattern = /^(.*?)\s*\/\s*([^/]+)$/;
|
|
3079
|
-
let matches = key.match(pattern);
|
|
3080
|
-
if (matches !== null) {
|
|
3081
|
-
let [, prefix, alpha] = matches;
|
|
3082
|
-
let newPath = (0, _toPath.toPath)(prefix);
|
|
3083
|
-
newPath.alpha = alpha;
|
|
3084
|
-
yield newPath;
|
|
3085
|
-
}
|
|
3086
|
-
}
|
|
3087
|
-
function resolveFunctionKeys(object) {
|
|
3088
|
-
const resolvePath = (key, defaultValue) => {
|
|
3089
|
-
for (const path of toPaths(key)) {
|
|
3090
|
-
let index = 0;
|
|
3091
|
-
let val = object;
|
|
3092
|
-
while (val !== void 0 && val !== null && index < path.length) {
|
|
3093
|
-
val = val[path[index++]];
|
|
3094
|
-
let shouldResolveAsFn = isFunction(val) && (path.alpha === void 0 || index <= path.length - 1);
|
|
3095
|
-
val = shouldResolveAsFn ? val(resolvePath, configUtils) : val;
|
|
3096
|
-
}
|
|
3097
|
-
if (val !== void 0) {
|
|
3098
|
-
if (path.alpha !== void 0) {
|
|
3099
|
-
let normalized = (0, _pluginUtils.parseColorFormat)(val);
|
|
3100
|
-
return (0, _withAlphaVariable.withAlphaValue)(normalized, path.alpha, (0, _toColorValue.default)(normalized));
|
|
3101
|
-
}
|
|
3102
|
-
if ((0, _isPlainObject.default)(val)) {
|
|
3103
|
-
return (0, _cloneDeep.cloneDeep)(val);
|
|
3104
|
-
}
|
|
3105
|
-
return val;
|
|
3106
|
-
}
|
|
3107
|
-
}
|
|
3108
|
-
return defaultValue;
|
|
3109
|
-
};
|
|
3110
|
-
Object.assign(resolvePath, {
|
|
3111
|
-
theme: resolvePath,
|
|
3112
|
-
...configUtils
|
|
3113
|
-
});
|
|
3114
|
-
return Object.keys(object).reduce((resolved, key) => {
|
|
3115
|
-
resolved[key] = isFunction(object[key]) ? object[key](resolvePath, configUtils) : object[key];
|
|
3116
|
-
return resolved;
|
|
3117
|
-
}, {});
|
|
3118
|
-
}
|
|
3119
|
-
function extractPluginConfigs(configs) {
|
|
3120
|
-
let allConfigs = [];
|
|
3121
|
-
configs.forEach((config2) => {
|
|
3122
|
-
allConfigs = [
|
|
3123
|
-
...allConfigs,
|
|
3124
|
-
config2
|
|
3125
|
-
];
|
|
3126
|
-
var _config_plugins;
|
|
3127
|
-
const plugins = (_config_plugins = config2 === null || config2 === void 0 ? void 0 : config2.plugins) !== null && _config_plugins !== void 0 ? _config_plugins : [];
|
|
3128
|
-
if (plugins.length === 0) {
|
|
3129
|
-
return;
|
|
3130
|
-
}
|
|
3131
|
-
plugins.forEach((plugin) => {
|
|
3132
|
-
if (plugin.__isOptionsFunction) {
|
|
3133
|
-
plugin = plugin();
|
|
3134
|
-
}
|
|
3135
|
-
var _plugin_config;
|
|
3136
|
-
allConfigs = [
|
|
3137
|
-
...allConfigs,
|
|
3138
|
-
...extractPluginConfigs([
|
|
3139
|
-
(_plugin_config = plugin === null || plugin === void 0 ? void 0 : plugin.config) !== null && _plugin_config !== void 0 ? _plugin_config : {}
|
|
3140
|
-
])
|
|
3141
|
-
];
|
|
3142
|
-
});
|
|
3143
|
-
});
|
|
3144
|
-
return allConfigs;
|
|
3145
|
-
}
|
|
3146
|
-
function resolveCorePlugins(corePluginConfigs) {
|
|
3147
|
-
const result = [
|
|
3148
|
-
...corePluginConfigs
|
|
3149
|
-
].reduceRight((resolved, corePluginConfig) => {
|
|
3150
|
-
if (isFunction(corePluginConfig)) {
|
|
3151
|
-
return corePluginConfig({
|
|
3152
|
-
corePlugins: resolved
|
|
3153
|
-
});
|
|
3154
|
-
}
|
|
3155
|
-
return (0, _configurePlugins.default)(corePluginConfig, resolved);
|
|
3156
|
-
}, _corePluginList.default);
|
|
3157
|
-
return result;
|
|
3158
|
-
}
|
|
3159
|
-
function resolvePluginLists(pluginLists) {
|
|
3160
|
-
const result = [
|
|
3161
|
-
...pluginLists
|
|
3162
|
-
].reduceRight((resolved, pluginList) => {
|
|
3163
|
-
return [
|
|
3164
|
-
...resolved,
|
|
3165
|
-
...pluginList
|
|
3166
|
-
];
|
|
3167
|
-
}, []);
|
|
3168
|
-
return result;
|
|
3169
|
-
}
|
|
3170
|
-
function resolveConfig2(configs) {
|
|
3171
|
-
let allConfigs = [
|
|
3172
|
-
...extractPluginConfigs(configs),
|
|
3173
|
-
{
|
|
3174
|
-
prefix: "",
|
|
3175
|
-
important: false,
|
|
3176
|
-
separator: ":"
|
|
3177
|
-
}
|
|
3178
|
-
];
|
|
3179
|
-
var _t_theme, _c_plugins;
|
|
3180
|
-
return (0, _normalizeConfig.normalizeConfig)((0, _defaults.defaults)({
|
|
3181
|
-
theme: resolveFunctionKeys(mergeExtensions(mergeThemes(allConfigs.map((t) => {
|
|
3182
|
-
return (_t_theme = t === null || t === void 0 ? void 0 : t.theme) !== null && _t_theme !== void 0 ? _t_theme : {};
|
|
3183
|
-
})))),
|
|
3184
|
-
corePlugins: resolveCorePlugins(allConfigs.map((c) => c.corePlugins)),
|
|
3185
|
-
plugins: resolvePluginLists(configs.map((c) => {
|
|
3186
|
-
return (_c_plugins = c === null || c === void 0 ? void 0 : c.plugins) !== null && _c_plugins !== void 0 ? _c_plugins : [];
|
|
3187
|
-
}))
|
|
3188
|
-
}, ...allConfigs));
|
|
3189
|
-
}
|
|
3190
|
-
})(resolveConfig$2);
|
|
3191
|
-
var getAllConfigs = {};
|
|
3192
|
-
var config_full = {
|
|
3193
|
-
content: [],
|
|
3194
|
-
presets: [],
|
|
3195
|
-
darkMode: "media",
|
|
3196
|
-
// or 'class'
|
|
3197
|
-
theme: {
|
|
3198
|
-
accentColor: ({ theme: theme2 }) => ({
|
|
3199
|
-
...theme2("colors"),
|
|
3200
|
-
auto: "auto"
|
|
3201
|
-
}),
|
|
3202
|
-
animation: {
|
|
3203
|
-
none: "none",
|
|
3204
|
-
spin: "spin 1s linear infinite",
|
|
3205
|
-
ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
|
|
3206
|
-
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
|
|
3207
|
-
bounce: "bounce 1s infinite"
|
|
3208
|
-
},
|
|
3209
|
-
aria: {
|
|
3210
|
-
busy: 'busy="true"',
|
|
3211
|
-
checked: 'checked="true"',
|
|
3212
|
-
disabled: 'disabled="true"',
|
|
3213
|
-
expanded: 'expanded="true"',
|
|
3214
|
-
hidden: 'hidden="true"',
|
|
3215
|
-
pressed: 'pressed="true"',
|
|
3216
|
-
readonly: 'readonly="true"',
|
|
3217
|
-
required: 'required="true"',
|
|
3218
|
-
selected: 'selected="true"'
|
|
3219
|
-
},
|
|
3220
|
-
aspectRatio: {
|
|
3221
|
-
auto: "auto",
|
|
3222
|
-
square: "1 / 1",
|
|
3223
|
-
video: "16 / 9"
|
|
3224
|
-
},
|
|
3225
|
-
backdropBlur: ({ theme: theme2 }) => theme2("blur"),
|
|
3226
|
-
backdropBrightness: ({ theme: theme2 }) => theme2("brightness"),
|
|
3227
|
-
backdropContrast: ({ theme: theme2 }) => theme2("contrast"),
|
|
3228
|
-
backdropGrayscale: ({ theme: theme2 }) => theme2("grayscale"),
|
|
3229
|
-
backdropHueRotate: ({ theme: theme2 }) => theme2("hueRotate"),
|
|
3230
|
-
backdropInvert: ({ theme: theme2 }) => theme2("invert"),
|
|
3231
|
-
backdropOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
3232
|
-
backdropSaturate: ({ theme: theme2 }) => theme2("saturate"),
|
|
3233
|
-
backdropSepia: ({ theme: theme2 }) => theme2("sepia"),
|
|
3234
|
-
backgroundColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3235
|
-
backgroundImage: {
|
|
3236
|
-
none: "none",
|
|
3237
|
-
"gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
|
|
3238
|
-
"gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))",
|
|
3239
|
-
"gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))",
|
|
3240
|
-
"gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))",
|
|
3241
|
-
"gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))",
|
|
3242
|
-
"gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))",
|
|
3243
|
-
"gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
|
|
3244
|
-
"gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
|
|
3245
|
-
},
|
|
3246
|
-
backgroundOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
3247
|
-
backgroundPosition: {
|
|
3248
|
-
bottom: "bottom",
|
|
3249
|
-
center: "center",
|
|
3250
|
-
left: "left",
|
|
3251
|
-
"left-bottom": "left bottom",
|
|
3252
|
-
"left-top": "left top",
|
|
3253
|
-
right: "right",
|
|
3254
|
-
"right-bottom": "right bottom",
|
|
3255
|
-
"right-top": "right top",
|
|
3256
|
-
top: "top"
|
|
3257
|
-
},
|
|
3258
|
-
backgroundSize: {
|
|
3259
|
-
auto: "auto",
|
|
3260
|
-
cover: "cover",
|
|
3261
|
-
contain: "contain"
|
|
3262
|
-
},
|
|
3263
|
-
blur: {
|
|
3264
|
-
0: "0",
|
|
3265
|
-
none: "0",
|
|
3266
|
-
sm: "4px",
|
|
3267
|
-
DEFAULT: "8px",
|
|
3268
|
-
md: "12px",
|
|
3269
|
-
lg: "16px",
|
|
3270
|
-
xl: "24px",
|
|
3271
|
-
"2xl": "40px",
|
|
3272
|
-
"3xl": "64px"
|
|
3273
|
-
},
|
|
3274
|
-
borderColor: ({ theme: theme2 }) => ({
|
|
3275
|
-
...theme2("colors"),
|
|
3276
|
-
DEFAULT: theme2("colors.gray.200", "currentColor")
|
|
3277
|
-
}),
|
|
3278
|
-
borderOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
3279
|
-
borderRadius: {
|
|
3280
|
-
none: "0px",
|
|
3281
|
-
sm: "0.125rem",
|
|
3282
|
-
DEFAULT: "0.25rem",
|
|
3283
|
-
md: "0.375rem",
|
|
3284
|
-
lg: "0.5rem",
|
|
3285
|
-
xl: "0.75rem",
|
|
3286
|
-
"2xl": "1rem",
|
|
3287
|
-
"3xl": "1.5rem",
|
|
3288
|
-
full: "9999px"
|
|
3289
|
-
},
|
|
3290
|
-
borderSpacing: ({ theme: theme2 }) => ({
|
|
3291
|
-
...theme2("spacing")
|
|
3292
|
-
}),
|
|
3293
|
-
borderWidth: {
|
|
3294
|
-
DEFAULT: "1px",
|
|
3295
|
-
0: "0px",
|
|
3296
|
-
2: "2px",
|
|
3297
|
-
4: "4px",
|
|
3298
|
-
8: "8px"
|
|
3299
|
-
},
|
|
3300
|
-
boxShadow: {
|
|
3301
|
-
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
3302
|
-
DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
3303
|
-
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
3304
|
-
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
3305
|
-
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
3306
|
-
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
3307
|
-
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
3308
|
-
none: "none"
|
|
3309
|
-
},
|
|
3310
|
-
boxShadowColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3311
|
-
brightness: {
|
|
3312
|
-
0: "0",
|
|
3313
|
-
50: ".5",
|
|
3314
|
-
75: ".75",
|
|
3315
|
-
90: ".9",
|
|
3316
|
-
95: ".95",
|
|
3317
|
-
100: "1",
|
|
3318
|
-
105: "1.05",
|
|
3319
|
-
110: "1.1",
|
|
3320
|
-
125: "1.25",
|
|
3321
|
-
150: "1.5",
|
|
3322
|
-
200: "2"
|
|
3323
|
-
},
|
|
3324
|
-
caretColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3325
|
-
colors: ({ colors: colors2 }) => ({
|
|
3326
|
-
inherit: colors2.inherit,
|
|
3327
|
-
current: colors2.current,
|
|
3328
|
-
transparent: colors2.transparent,
|
|
3329
|
-
black: colors2.black,
|
|
3330
|
-
white: colors2.white,
|
|
3331
|
-
slate: colors2.slate,
|
|
3332
|
-
gray: colors2.gray,
|
|
3333
|
-
zinc: colors2.zinc,
|
|
3334
|
-
neutral: colors2.neutral,
|
|
3335
|
-
stone: colors2.stone,
|
|
3336
|
-
red: colors2.red,
|
|
3337
|
-
orange: colors2.orange,
|
|
3338
|
-
amber: colors2.amber,
|
|
3339
|
-
yellow: colors2.yellow,
|
|
3340
|
-
lime: colors2.lime,
|
|
3341
|
-
green: colors2.green,
|
|
3342
|
-
emerald: colors2.emerald,
|
|
3343
|
-
teal: colors2.teal,
|
|
3344
|
-
cyan: colors2.cyan,
|
|
3345
|
-
sky: colors2.sky,
|
|
3346
|
-
blue: colors2.blue,
|
|
3347
|
-
indigo: colors2.indigo,
|
|
3348
|
-
violet: colors2.violet,
|
|
3349
|
-
purple: colors2.purple,
|
|
3350
|
-
fuchsia: colors2.fuchsia,
|
|
3351
|
-
pink: colors2.pink,
|
|
3352
|
-
rose: colors2.rose
|
|
3353
|
-
}),
|
|
3354
|
-
columns: {
|
|
3355
|
-
auto: "auto",
|
|
3356
|
-
1: "1",
|
|
3357
|
-
2: "2",
|
|
3358
|
-
3: "3",
|
|
3359
|
-
4: "4",
|
|
3360
|
-
5: "5",
|
|
3361
|
-
6: "6",
|
|
3362
|
-
7: "7",
|
|
3363
|
-
8: "8",
|
|
3364
|
-
9: "9",
|
|
3365
|
-
10: "10",
|
|
3366
|
-
11: "11",
|
|
3367
|
-
12: "12",
|
|
3368
|
-
"3xs": "16rem",
|
|
3369
|
-
"2xs": "18rem",
|
|
3370
|
-
xs: "20rem",
|
|
3371
|
-
sm: "24rem",
|
|
3372
|
-
md: "28rem",
|
|
3373
|
-
lg: "32rem",
|
|
3374
|
-
xl: "36rem",
|
|
3375
|
-
"2xl": "42rem",
|
|
3376
|
-
"3xl": "48rem",
|
|
3377
|
-
"4xl": "56rem",
|
|
3378
|
-
"5xl": "64rem",
|
|
3379
|
-
"6xl": "72rem",
|
|
3380
|
-
"7xl": "80rem"
|
|
3381
|
-
},
|
|
3382
|
-
container: {},
|
|
3383
|
-
content: {
|
|
3384
|
-
none: "none"
|
|
3385
|
-
},
|
|
3386
|
-
contrast: {
|
|
3387
|
-
0: "0",
|
|
3388
|
-
50: ".5",
|
|
3389
|
-
75: ".75",
|
|
3390
|
-
100: "1",
|
|
3391
|
-
125: "1.25",
|
|
3392
|
-
150: "1.5",
|
|
3393
|
-
200: "2"
|
|
3394
|
-
},
|
|
3395
|
-
cursor: {
|
|
3396
|
-
auto: "auto",
|
|
3397
|
-
default: "default",
|
|
3398
|
-
pointer: "pointer",
|
|
3399
|
-
wait: "wait",
|
|
3400
|
-
text: "text",
|
|
3401
|
-
move: "move",
|
|
3402
|
-
help: "help",
|
|
3403
|
-
"not-allowed": "not-allowed",
|
|
3404
|
-
none: "none",
|
|
3405
|
-
"context-menu": "context-menu",
|
|
3406
|
-
progress: "progress",
|
|
3407
|
-
cell: "cell",
|
|
3408
|
-
crosshair: "crosshair",
|
|
3409
|
-
"vertical-text": "vertical-text",
|
|
3410
|
-
alias: "alias",
|
|
3411
|
-
copy: "copy",
|
|
3412
|
-
"no-drop": "no-drop",
|
|
3413
|
-
grab: "grab",
|
|
3414
|
-
grabbing: "grabbing",
|
|
3415
|
-
"all-scroll": "all-scroll",
|
|
3416
|
-
"col-resize": "col-resize",
|
|
3417
|
-
"row-resize": "row-resize",
|
|
3418
|
-
"n-resize": "n-resize",
|
|
3419
|
-
"e-resize": "e-resize",
|
|
3420
|
-
"s-resize": "s-resize",
|
|
3421
|
-
"w-resize": "w-resize",
|
|
3422
|
-
"ne-resize": "ne-resize",
|
|
3423
|
-
"nw-resize": "nw-resize",
|
|
3424
|
-
"se-resize": "se-resize",
|
|
3425
|
-
"sw-resize": "sw-resize",
|
|
3426
|
-
"ew-resize": "ew-resize",
|
|
3427
|
-
"ns-resize": "ns-resize",
|
|
3428
|
-
"nesw-resize": "nesw-resize",
|
|
3429
|
-
"nwse-resize": "nwse-resize",
|
|
3430
|
-
"zoom-in": "zoom-in",
|
|
3431
|
-
"zoom-out": "zoom-out"
|
|
3432
|
-
},
|
|
3433
|
-
divideColor: ({ theme: theme2 }) => theme2("borderColor"),
|
|
3434
|
-
divideOpacity: ({ theme: theme2 }) => theme2("borderOpacity"),
|
|
3435
|
-
divideWidth: ({ theme: theme2 }) => theme2("borderWidth"),
|
|
3436
|
-
dropShadow: {
|
|
3437
|
-
sm: "0 1px 1px rgb(0 0 0 / 0.05)",
|
|
3438
|
-
DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
|
|
3439
|
-
md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
|
|
3440
|
-
lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
|
|
3441
|
-
xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
|
|
3442
|
-
"2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
|
|
3443
|
-
none: "0 0 #0000"
|
|
3444
|
-
},
|
|
3445
|
-
fill: ({ theme: theme2 }) => ({
|
|
3446
|
-
none: "none",
|
|
3447
|
-
...theme2("colors")
|
|
3448
|
-
}),
|
|
3449
|
-
flex: {
|
|
3450
|
-
1: "1 1 0%",
|
|
3451
|
-
auto: "1 1 auto",
|
|
3452
|
-
initial: "0 1 auto",
|
|
3453
|
-
none: "none"
|
|
3454
|
-
},
|
|
3455
|
-
flexBasis: ({ theme: theme2 }) => ({
|
|
3456
|
-
auto: "auto",
|
|
3457
|
-
...theme2("spacing"),
|
|
3458
|
-
"1/2": "50%",
|
|
3459
|
-
"1/3": "33.333333%",
|
|
3460
|
-
"2/3": "66.666667%",
|
|
3461
|
-
"1/4": "25%",
|
|
3462
|
-
"2/4": "50%",
|
|
3463
|
-
"3/4": "75%",
|
|
3464
|
-
"1/5": "20%",
|
|
3465
|
-
"2/5": "40%",
|
|
3466
|
-
"3/5": "60%",
|
|
3467
|
-
"4/5": "80%",
|
|
3468
|
-
"1/6": "16.666667%",
|
|
3469
|
-
"2/6": "33.333333%",
|
|
3470
|
-
"3/6": "50%",
|
|
3471
|
-
"4/6": "66.666667%",
|
|
3472
|
-
"5/6": "83.333333%",
|
|
3473
|
-
"1/12": "8.333333%",
|
|
3474
|
-
"2/12": "16.666667%",
|
|
3475
|
-
"3/12": "25%",
|
|
3476
|
-
"4/12": "33.333333%",
|
|
3477
|
-
"5/12": "41.666667%",
|
|
3478
|
-
"6/12": "50%",
|
|
3479
|
-
"7/12": "58.333333%",
|
|
3480
|
-
"8/12": "66.666667%",
|
|
3481
|
-
"9/12": "75%",
|
|
3482
|
-
"10/12": "83.333333%",
|
|
3483
|
-
"11/12": "91.666667%",
|
|
3484
|
-
full: "100%"
|
|
3485
|
-
}),
|
|
3486
|
-
flexGrow: {
|
|
3487
|
-
0: "0",
|
|
3488
|
-
DEFAULT: "1"
|
|
3489
|
-
},
|
|
3490
|
-
flexShrink: {
|
|
3491
|
-
0: "0",
|
|
3492
|
-
DEFAULT: "1"
|
|
3493
|
-
},
|
|
3494
|
-
fontFamily: {
|
|
3495
|
-
sans: [
|
|
3496
|
-
"ui-sans-serif",
|
|
3497
|
-
"system-ui",
|
|
3498
|
-
"sans-serif",
|
|
3499
|
-
'"Apple Color Emoji"',
|
|
3500
|
-
'"Segoe UI Emoji"',
|
|
3501
|
-
'"Segoe UI Symbol"',
|
|
3502
|
-
'"Noto Color Emoji"'
|
|
3503
|
-
],
|
|
3504
|
-
serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"],
|
|
3505
|
-
mono: [
|
|
3506
|
-
"ui-monospace",
|
|
3507
|
-
"SFMono-Regular",
|
|
3508
|
-
"Menlo",
|
|
3509
|
-
"Monaco",
|
|
3510
|
-
"Consolas",
|
|
3511
|
-
'"Liberation Mono"',
|
|
3512
|
-
'"Courier New"',
|
|
3513
|
-
"monospace"
|
|
3514
|
-
]
|
|
3515
|
-
},
|
|
3516
|
-
fontSize: {
|
|
3517
|
-
xs: ["0.75rem", { lineHeight: "1rem" }],
|
|
3518
|
-
sm: ["0.875rem", { lineHeight: "1.25rem" }],
|
|
3519
|
-
base: ["1rem", { lineHeight: "1.5rem" }],
|
|
3520
|
-
lg: ["1.125rem", { lineHeight: "1.75rem" }],
|
|
3521
|
-
xl: ["1.25rem", { lineHeight: "1.75rem" }],
|
|
3522
|
-
"2xl": ["1.5rem", { lineHeight: "2rem" }],
|
|
3523
|
-
"3xl": ["1.875rem", { lineHeight: "2.25rem" }],
|
|
3524
|
-
"4xl": ["2.25rem", { lineHeight: "2.5rem" }],
|
|
3525
|
-
"5xl": ["3rem", { lineHeight: "1" }],
|
|
3526
|
-
"6xl": ["3.75rem", { lineHeight: "1" }],
|
|
3527
|
-
"7xl": ["4.5rem", { lineHeight: "1" }],
|
|
3528
|
-
"8xl": ["6rem", { lineHeight: "1" }],
|
|
3529
|
-
"9xl": ["8rem", { lineHeight: "1" }]
|
|
3530
|
-
},
|
|
3531
|
-
fontWeight: {
|
|
3532
|
-
thin: "100",
|
|
3533
|
-
extralight: "200",
|
|
3534
|
-
light: "300",
|
|
3535
|
-
normal: "400",
|
|
3536
|
-
medium: "500",
|
|
3537
|
-
semibold: "600",
|
|
3538
|
-
bold: "700",
|
|
3539
|
-
extrabold: "800",
|
|
3540
|
-
black: "900"
|
|
3541
|
-
},
|
|
3542
|
-
gap: ({ theme: theme2 }) => theme2("spacing"),
|
|
3543
|
-
gradientColorStops: ({ theme: theme2 }) => theme2("colors"),
|
|
3544
|
-
gradientColorStopPositions: {
|
|
3545
|
-
"0%": "0%",
|
|
3546
|
-
"5%": "5%",
|
|
3547
|
-
"10%": "10%",
|
|
3548
|
-
"15%": "15%",
|
|
3549
|
-
"20%": "20%",
|
|
3550
|
-
"25%": "25%",
|
|
3551
|
-
"30%": "30%",
|
|
3552
|
-
"35%": "35%",
|
|
3553
|
-
"40%": "40%",
|
|
3554
|
-
"45%": "45%",
|
|
3555
|
-
"50%": "50%",
|
|
3556
|
-
"55%": "55%",
|
|
3557
|
-
"60%": "60%",
|
|
3558
|
-
"65%": "65%",
|
|
3559
|
-
"70%": "70%",
|
|
3560
|
-
"75%": "75%",
|
|
3561
|
-
"80%": "80%",
|
|
3562
|
-
"85%": "85%",
|
|
3563
|
-
"90%": "90%",
|
|
3564
|
-
"95%": "95%",
|
|
3565
|
-
"100%": "100%"
|
|
3566
|
-
},
|
|
3567
|
-
grayscale: {
|
|
3568
|
-
0: "0",
|
|
3569
|
-
DEFAULT: "100%"
|
|
3570
|
-
},
|
|
3571
|
-
gridAutoColumns: {
|
|
3572
|
-
auto: "auto",
|
|
3573
|
-
min: "min-content",
|
|
3574
|
-
max: "max-content",
|
|
3575
|
-
fr: "minmax(0, 1fr)"
|
|
3576
|
-
},
|
|
3577
|
-
gridAutoRows: {
|
|
3578
|
-
auto: "auto",
|
|
3579
|
-
min: "min-content",
|
|
3580
|
-
max: "max-content",
|
|
3581
|
-
fr: "minmax(0, 1fr)"
|
|
3582
|
-
},
|
|
3583
|
-
gridColumn: {
|
|
3584
|
-
auto: "auto",
|
|
3585
|
-
"span-1": "span 1 / span 1",
|
|
3586
|
-
"span-2": "span 2 / span 2",
|
|
3587
|
-
"span-3": "span 3 / span 3",
|
|
3588
|
-
"span-4": "span 4 / span 4",
|
|
3589
|
-
"span-5": "span 5 / span 5",
|
|
3590
|
-
"span-6": "span 6 / span 6",
|
|
3591
|
-
"span-7": "span 7 / span 7",
|
|
3592
|
-
"span-8": "span 8 / span 8",
|
|
3593
|
-
"span-9": "span 9 / span 9",
|
|
3594
|
-
"span-10": "span 10 / span 10",
|
|
3595
|
-
"span-11": "span 11 / span 11",
|
|
3596
|
-
"span-12": "span 12 / span 12",
|
|
3597
|
-
"span-full": "1 / -1"
|
|
3598
|
-
},
|
|
3599
|
-
gridColumnEnd: {
|
|
3600
|
-
auto: "auto",
|
|
3601
|
-
1: "1",
|
|
3602
|
-
2: "2",
|
|
3603
|
-
3: "3",
|
|
3604
|
-
4: "4",
|
|
3605
|
-
5: "5",
|
|
3606
|
-
6: "6",
|
|
3607
|
-
7: "7",
|
|
3608
|
-
8: "8",
|
|
3609
|
-
9: "9",
|
|
3610
|
-
10: "10",
|
|
3611
|
-
11: "11",
|
|
3612
|
-
12: "12",
|
|
3613
|
-
13: "13"
|
|
3614
|
-
},
|
|
3615
|
-
gridColumnStart: {
|
|
3616
|
-
auto: "auto",
|
|
3617
|
-
1: "1",
|
|
3618
|
-
2: "2",
|
|
3619
|
-
3: "3",
|
|
3620
|
-
4: "4",
|
|
3621
|
-
5: "5",
|
|
3622
|
-
6: "6",
|
|
3623
|
-
7: "7",
|
|
3624
|
-
8: "8",
|
|
3625
|
-
9: "9",
|
|
3626
|
-
10: "10",
|
|
3627
|
-
11: "11",
|
|
3628
|
-
12: "12",
|
|
3629
|
-
13: "13"
|
|
3630
|
-
},
|
|
3631
|
-
gridRow: {
|
|
3632
|
-
auto: "auto",
|
|
3633
|
-
"span-1": "span 1 / span 1",
|
|
3634
|
-
"span-2": "span 2 / span 2",
|
|
3635
|
-
"span-3": "span 3 / span 3",
|
|
3636
|
-
"span-4": "span 4 / span 4",
|
|
3637
|
-
"span-5": "span 5 / span 5",
|
|
3638
|
-
"span-6": "span 6 / span 6",
|
|
3639
|
-
"span-7": "span 7 / span 7",
|
|
3640
|
-
"span-8": "span 8 / span 8",
|
|
3641
|
-
"span-9": "span 9 / span 9",
|
|
3642
|
-
"span-10": "span 10 / span 10",
|
|
3643
|
-
"span-11": "span 11 / span 11",
|
|
3644
|
-
"span-12": "span 12 / span 12",
|
|
3645
|
-
"span-full": "1 / -1"
|
|
3646
|
-
},
|
|
3647
|
-
gridRowEnd: {
|
|
3648
|
-
auto: "auto",
|
|
3649
|
-
1: "1",
|
|
3650
|
-
2: "2",
|
|
3651
|
-
3: "3",
|
|
3652
|
-
4: "4",
|
|
3653
|
-
5: "5",
|
|
3654
|
-
6: "6",
|
|
3655
|
-
7: "7",
|
|
3656
|
-
8: "8",
|
|
3657
|
-
9: "9",
|
|
3658
|
-
10: "10",
|
|
3659
|
-
11: "11",
|
|
3660
|
-
12: "12",
|
|
3661
|
-
13: "13"
|
|
3662
|
-
},
|
|
3663
|
-
gridRowStart: {
|
|
3664
|
-
auto: "auto",
|
|
3665
|
-
1: "1",
|
|
3666
|
-
2: "2",
|
|
3667
|
-
3: "3",
|
|
3668
|
-
4: "4",
|
|
3669
|
-
5: "5",
|
|
3670
|
-
6: "6",
|
|
3671
|
-
7: "7",
|
|
3672
|
-
8: "8",
|
|
3673
|
-
9: "9",
|
|
3674
|
-
10: "10",
|
|
3675
|
-
11: "11",
|
|
3676
|
-
12: "12",
|
|
3677
|
-
13: "13"
|
|
3678
|
-
},
|
|
3679
|
-
gridTemplateColumns: {
|
|
3680
|
-
none: "none",
|
|
3681
|
-
subgrid: "subgrid",
|
|
3682
|
-
1: "repeat(1, minmax(0, 1fr))",
|
|
3683
|
-
2: "repeat(2, minmax(0, 1fr))",
|
|
3684
|
-
3: "repeat(3, minmax(0, 1fr))",
|
|
3685
|
-
4: "repeat(4, minmax(0, 1fr))",
|
|
3686
|
-
5: "repeat(5, minmax(0, 1fr))",
|
|
3687
|
-
6: "repeat(6, minmax(0, 1fr))",
|
|
3688
|
-
7: "repeat(7, minmax(0, 1fr))",
|
|
3689
|
-
8: "repeat(8, minmax(0, 1fr))",
|
|
3690
|
-
9: "repeat(9, minmax(0, 1fr))",
|
|
3691
|
-
10: "repeat(10, minmax(0, 1fr))",
|
|
3692
|
-
11: "repeat(11, minmax(0, 1fr))",
|
|
3693
|
-
12: "repeat(12, minmax(0, 1fr))"
|
|
3694
|
-
},
|
|
3695
|
-
gridTemplateRows: {
|
|
3696
|
-
none: "none",
|
|
3697
|
-
subgrid: "subgrid",
|
|
3698
|
-
1: "repeat(1, minmax(0, 1fr))",
|
|
3699
|
-
2: "repeat(2, minmax(0, 1fr))",
|
|
3700
|
-
3: "repeat(3, minmax(0, 1fr))",
|
|
3701
|
-
4: "repeat(4, minmax(0, 1fr))",
|
|
3702
|
-
5: "repeat(5, minmax(0, 1fr))",
|
|
3703
|
-
6: "repeat(6, minmax(0, 1fr))",
|
|
3704
|
-
7: "repeat(7, minmax(0, 1fr))",
|
|
3705
|
-
8: "repeat(8, minmax(0, 1fr))",
|
|
3706
|
-
9: "repeat(9, minmax(0, 1fr))",
|
|
3707
|
-
10: "repeat(10, minmax(0, 1fr))",
|
|
3708
|
-
11: "repeat(11, minmax(0, 1fr))",
|
|
3709
|
-
12: "repeat(12, minmax(0, 1fr))"
|
|
3710
|
-
},
|
|
3711
|
-
height: ({ theme: theme2 }) => ({
|
|
3712
|
-
auto: "auto",
|
|
3713
|
-
...theme2("spacing"),
|
|
3714
|
-
"1/2": "50%",
|
|
3715
|
-
"1/3": "33.333333%",
|
|
3716
|
-
"2/3": "66.666667%",
|
|
3717
|
-
"1/4": "25%",
|
|
3718
|
-
"2/4": "50%",
|
|
3719
|
-
"3/4": "75%",
|
|
3720
|
-
"1/5": "20%",
|
|
3721
|
-
"2/5": "40%",
|
|
3722
|
-
"3/5": "60%",
|
|
3723
|
-
"4/5": "80%",
|
|
3724
|
-
"1/6": "16.666667%",
|
|
3725
|
-
"2/6": "33.333333%",
|
|
3726
|
-
"3/6": "50%",
|
|
3727
|
-
"4/6": "66.666667%",
|
|
3728
|
-
"5/6": "83.333333%",
|
|
3729
|
-
full: "100%",
|
|
3730
|
-
screen: "100vh",
|
|
3731
|
-
svh: "100svh",
|
|
3732
|
-
lvh: "100lvh",
|
|
3733
|
-
dvh: "100dvh",
|
|
3734
|
-
min: "min-content",
|
|
3735
|
-
max: "max-content",
|
|
3736
|
-
fit: "fit-content"
|
|
3737
|
-
}),
|
|
3738
|
-
hueRotate: {
|
|
3739
|
-
0: "0deg",
|
|
3740
|
-
15: "15deg",
|
|
3741
|
-
30: "30deg",
|
|
3742
|
-
60: "60deg",
|
|
3743
|
-
90: "90deg",
|
|
3744
|
-
180: "180deg"
|
|
3745
|
-
},
|
|
3746
|
-
inset: ({ theme: theme2 }) => ({
|
|
3747
|
-
auto: "auto",
|
|
3748
|
-
...theme2("spacing"),
|
|
3749
|
-
"1/2": "50%",
|
|
3750
|
-
"1/3": "33.333333%",
|
|
3751
|
-
"2/3": "66.666667%",
|
|
3752
|
-
"1/4": "25%",
|
|
3753
|
-
"2/4": "50%",
|
|
3754
|
-
"3/4": "75%",
|
|
3755
|
-
full: "100%"
|
|
3756
|
-
}),
|
|
3757
|
-
invert: {
|
|
3758
|
-
0: "0",
|
|
3759
|
-
DEFAULT: "100%"
|
|
3760
|
-
},
|
|
3761
|
-
keyframes: {
|
|
3762
|
-
spin: {
|
|
3763
|
-
to: {
|
|
3764
|
-
transform: "rotate(360deg)"
|
|
3765
|
-
}
|
|
3766
|
-
},
|
|
3767
|
-
ping: {
|
|
3768
|
-
"75%, 100%": {
|
|
3769
|
-
transform: "scale(2)",
|
|
3770
|
-
opacity: "0"
|
|
3771
|
-
}
|
|
3772
|
-
},
|
|
3773
|
-
pulse: {
|
|
3774
|
-
"50%": {
|
|
3775
|
-
opacity: ".5"
|
|
3776
|
-
}
|
|
3777
|
-
},
|
|
3778
|
-
bounce: {
|
|
3779
|
-
"0%, 100%": {
|
|
3780
|
-
transform: "translateY(-25%)",
|
|
3781
|
-
animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
|
|
3782
|
-
},
|
|
3783
|
-
"50%": {
|
|
3784
|
-
transform: "none",
|
|
3785
|
-
animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
},
|
|
3789
|
-
letterSpacing: {
|
|
3790
|
-
tighter: "-0.05em",
|
|
3791
|
-
tight: "-0.025em",
|
|
3792
|
-
normal: "0em",
|
|
3793
|
-
wide: "0.025em",
|
|
3794
|
-
wider: "0.05em",
|
|
3795
|
-
widest: "0.1em"
|
|
3796
|
-
},
|
|
3797
|
-
lineHeight: {
|
|
3798
|
-
none: "1",
|
|
3799
|
-
tight: "1.25",
|
|
3800
|
-
snug: "1.375",
|
|
3801
|
-
normal: "1.5",
|
|
3802
|
-
relaxed: "1.625",
|
|
3803
|
-
loose: "2",
|
|
3804
|
-
3: ".75rem",
|
|
3805
|
-
4: "1rem",
|
|
3806
|
-
5: "1.25rem",
|
|
3807
|
-
6: "1.5rem",
|
|
3808
|
-
7: "1.75rem",
|
|
3809
|
-
8: "2rem",
|
|
3810
|
-
9: "2.25rem",
|
|
3811
|
-
10: "2.5rem"
|
|
3812
|
-
},
|
|
3813
|
-
listStyleType: {
|
|
3814
|
-
none: "none",
|
|
3815
|
-
disc: "disc",
|
|
3816
|
-
decimal: "decimal"
|
|
3817
|
-
},
|
|
3818
|
-
listStyleImage: {
|
|
3819
|
-
none: "none"
|
|
3820
|
-
},
|
|
3821
|
-
margin: ({ theme: theme2 }) => ({
|
|
3822
|
-
auto: "auto",
|
|
3823
|
-
...theme2("spacing")
|
|
3824
|
-
}),
|
|
3825
|
-
lineClamp: {
|
|
3826
|
-
1: "1",
|
|
3827
|
-
2: "2",
|
|
3828
|
-
3: "3",
|
|
3829
|
-
4: "4",
|
|
3830
|
-
5: "5",
|
|
3831
|
-
6: "6"
|
|
3832
|
-
},
|
|
3833
|
-
maxHeight: ({ theme: theme2 }) => ({
|
|
3834
|
-
...theme2("spacing"),
|
|
3835
|
-
none: "none",
|
|
3836
|
-
full: "100%",
|
|
3837
|
-
screen: "100vh",
|
|
3838
|
-
svh: "100svh",
|
|
3839
|
-
lvh: "100lvh",
|
|
3840
|
-
dvh: "100dvh",
|
|
3841
|
-
min: "min-content",
|
|
3842
|
-
max: "max-content",
|
|
3843
|
-
fit: "fit-content"
|
|
3844
|
-
}),
|
|
3845
|
-
maxWidth: ({ theme: theme2, breakpoints }) => ({
|
|
3846
|
-
...theme2("spacing"),
|
|
3847
|
-
none: "none",
|
|
3848
|
-
xs: "20rem",
|
|
3849
|
-
sm: "24rem",
|
|
3850
|
-
md: "28rem",
|
|
3851
|
-
lg: "32rem",
|
|
3852
|
-
xl: "36rem",
|
|
3853
|
-
"2xl": "42rem",
|
|
3854
|
-
"3xl": "48rem",
|
|
3855
|
-
"4xl": "56rem",
|
|
3856
|
-
"5xl": "64rem",
|
|
3857
|
-
"6xl": "72rem",
|
|
3858
|
-
"7xl": "80rem",
|
|
3859
|
-
full: "100%",
|
|
3860
|
-
min: "min-content",
|
|
3861
|
-
max: "max-content",
|
|
3862
|
-
fit: "fit-content",
|
|
3863
|
-
prose: "65ch",
|
|
3864
|
-
...breakpoints(theme2("screens"))
|
|
3865
|
-
}),
|
|
3866
|
-
minHeight: ({ theme: theme2 }) => ({
|
|
3867
|
-
...theme2("spacing"),
|
|
3868
|
-
full: "100%",
|
|
3869
|
-
screen: "100vh",
|
|
3870
|
-
svh: "100svh",
|
|
3871
|
-
lvh: "100lvh",
|
|
3872
|
-
dvh: "100dvh",
|
|
3873
|
-
min: "min-content",
|
|
3874
|
-
max: "max-content",
|
|
3875
|
-
fit: "fit-content"
|
|
3876
|
-
}),
|
|
3877
|
-
minWidth: ({ theme: theme2 }) => ({
|
|
3878
|
-
...theme2("spacing"),
|
|
3879
|
-
full: "100%",
|
|
3880
|
-
min: "min-content",
|
|
3881
|
-
max: "max-content",
|
|
3882
|
-
fit: "fit-content"
|
|
3883
|
-
}),
|
|
3884
|
-
objectPosition: {
|
|
3885
|
-
bottom: "bottom",
|
|
3886
|
-
center: "center",
|
|
3887
|
-
left: "left",
|
|
3888
|
-
"left-bottom": "left bottom",
|
|
3889
|
-
"left-top": "left top",
|
|
3890
|
-
right: "right",
|
|
3891
|
-
"right-bottom": "right bottom",
|
|
3892
|
-
"right-top": "right top",
|
|
3893
|
-
top: "top"
|
|
3894
|
-
},
|
|
3895
|
-
opacity: {
|
|
3896
|
-
0: "0",
|
|
3897
|
-
5: "0.05",
|
|
3898
|
-
10: "0.1",
|
|
3899
|
-
15: "0.15",
|
|
3900
|
-
20: "0.2",
|
|
3901
|
-
25: "0.25",
|
|
3902
|
-
30: "0.3",
|
|
3903
|
-
35: "0.35",
|
|
3904
|
-
40: "0.4",
|
|
3905
|
-
45: "0.45",
|
|
3906
|
-
50: "0.5",
|
|
3907
|
-
55: "0.55",
|
|
3908
|
-
60: "0.6",
|
|
3909
|
-
65: "0.65",
|
|
3910
|
-
70: "0.7",
|
|
3911
|
-
75: "0.75",
|
|
3912
|
-
80: "0.8",
|
|
3913
|
-
85: "0.85",
|
|
3914
|
-
90: "0.9",
|
|
3915
|
-
95: "0.95",
|
|
3916
|
-
100: "1"
|
|
3917
|
-
},
|
|
3918
|
-
order: {
|
|
3919
|
-
first: "-9999",
|
|
3920
|
-
last: "9999",
|
|
3921
|
-
none: "0",
|
|
3922
|
-
1: "1",
|
|
3923
|
-
2: "2",
|
|
3924
|
-
3: "3",
|
|
3925
|
-
4: "4",
|
|
3926
|
-
5: "5",
|
|
3927
|
-
6: "6",
|
|
3928
|
-
7: "7",
|
|
3929
|
-
8: "8",
|
|
3930
|
-
9: "9",
|
|
3931
|
-
10: "10",
|
|
3932
|
-
11: "11",
|
|
3933
|
-
12: "12"
|
|
3934
|
-
},
|
|
3935
|
-
outlineColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3936
|
-
outlineOffset: {
|
|
3937
|
-
0: "0px",
|
|
3938
|
-
1: "1px",
|
|
3939
|
-
2: "2px",
|
|
3940
|
-
4: "4px",
|
|
3941
|
-
8: "8px"
|
|
3942
|
-
},
|
|
3943
|
-
outlineWidth: {
|
|
3944
|
-
0: "0px",
|
|
3945
|
-
1: "1px",
|
|
3946
|
-
2: "2px",
|
|
3947
|
-
4: "4px",
|
|
3948
|
-
8: "8px"
|
|
3949
|
-
},
|
|
3950
|
-
padding: ({ theme: theme2 }) => theme2("spacing"),
|
|
3951
|
-
placeholderColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3952
|
-
placeholderOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
3953
|
-
ringColor: ({ theme: theme2 }) => ({
|
|
3954
|
-
DEFAULT: theme2("colors.blue.500", "#3b82f6"),
|
|
3955
|
-
...theme2("colors")
|
|
3956
|
-
}),
|
|
3957
|
-
ringOffsetColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3958
|
-
ringOffsetWidth: {
|
|
3959
|
-
0: "0px",
|
|
3960
|
-
1: "1px",
|
|
3961
|
-
2: "2px",
|
|
3962
|
-
4: "4px",
|
|
3963
|
-
8: "8px"
|
|
3964
|
-
},
|
|
3965
|
-
ringOpacity: ({ theme: theme2 }) => ({
|
|
3966
|
-
DEFAULT: "0.5",
|
|
3967
|
-
...theme2("opacity")
|
|
3968
|
-
}),
|
|
3969
|
-
ringWidth: {
|
|
3970
|
-
DEFAULT: "3px",
|
|
3971
|
-
0: "0px",
|
|
3972
|
-
1: "1px",
|
|
3973
|
-
2: "2px",
|
|
3974
|
-
4: "4px",
|
|
3975
|
-
8: "8px"
|
|
3976
|
-
},
|
|
3977
|
-
rotate: {
|
|
3978
|
-
0: "0deg",
|
|
3979
|
-
1: "1deg",
|
|
3980
|
-
2: "2deg",
|
|
3981
|
-
3: "3deg",
|
|
3982
|
-
6: "6deg",
|
|
3983
|
-
12: "12deg",
|
|
3984
|
-
45: "45deg",
|
|
3985
|
-
90: "90deg",
|
|
3986
|
-
180: "180deg"
|
|
3987
|
-
},
|
|
3988
|
-
saturate: {
|
|
3989
|
-
0: "0",
|
|
3990
|
-
50: ".5",
|
|
3991
|
-
100: "1",
|
|
3992
|
-
150: "1.5",
|
|
3993
|
-
200: "2"
|
|
3994
|
-
},
|
|
3995
|
-
scale: {
|
|
3996
|
-
0: "0",
|
|
3997
|
-
50: ".5",
|
|
3998
|
-
75: ".75",
|
|
3999
|
-
90: ".9",
|
|
4000
|
-
95: ".95",
|
|
4001
|
-
100: "1",
|
|
4002
|
-
105: "1.05",
|
|
4003
|
-
110: "1.1",
|
|
4004
|
-
125: "1.25",
|
|
4005
|
-
150: "1.5"
|
|
4006
|
-
},
|
|
4007
|
-
screens: {
|
|
4008
|
-
sm: "640px",
|
|
4009
|
-
md: "768px",
|
|
4010
|
-
lg: "1024px",
|
|
4011
|
-
xl: "1280px",
|
|
4012
|
-
"2xl": "1536px"
|
|
4013
|
-
},
|
|
4014
|
-
scrollMargin: ({ theme: theme2 }) => ({
|
|
4015
|
-
...theme2("spacing")
|
|
4016
|
-
}),
|
|
4017
|
-
scrollPadding: ({ theme: theme2 }) => theme2("spacing"),
|
|
4018
|
-
sepia: {
|
|
4019
|
-
0: "0",
|
|
4020
|
-
DEFAULT: "100%"
|
|
4021
|
-
},
|
|
4022
|
-
skew: {
|
|
4023
|
-
0: "0deg",
|
|
4024
|
-
1: "1deg",
|
|
4025
|
-
2: "2deg",
|
|
4026
|
-
3: "3deg",
|
|
4027
|
-
6: "6deg",
|
|
4028
|
-
12: "12deg"
|
|
4029
|
-
},
|
|
4030
|
-
space: ({ theme: theme2 }) => ({
|
|
4031
|
-
...theme2("spacing")
|
|
4032
|
-
}),
|
|
4033
|
-
spacing: {
|
|
4034
|
-
px: "1px",
|
|
4035
|
-
0: "0px",
|
|
4036
|
-
0.5: "0.125rem",
|
|
4037
|
-
1: "0.25rem",
|
|
4038
|
-
1.5: "0.375rem",
|
|
4039
|
-
2: "0.5rem",
|
|
4040
|
-
2.5: "0.625rem",
|
|
4041
|
-
3: "0.75rem",
|
|
4042
|
-
3.5: "0.875rem",
|
|
4043
|
-
4: "1rem",
|
|
4044
|
-
5: "1.25rem",
|
|
4045
|
-
6: "1.5rem",
|
|
4046
|
-
7: "1.75rem",
|
|
4047
|
-
8: "2rem",
|
|
4048
|
-
9: "2.25rem",
|
|
4049
|
-
10: "2.5rem",
|
|
4050
|
-
11: "2.75rem",
|
|
4051
|
-
12: "3rem",
|
|
4052
|
-
14: "3.5rem",
|
|
4053
|
-
16: "4rem",
|
|
4054
|
-
20: "5rem",
|
|
4055
|
-
24: "6rem",
|
|
4056
|
-
28: "7rem",
|
|
4057
|
-
32: "8rem",
|
|
4058
|
-
36: "9rem",
|
|
4059
|
-
40: "10rem",
|
|
4060
|
-
44: "11rem",
|
|
4061
|
-
48: "12rem",
|
|
4062
|
-
52: "13rem",
|
|
4063
|
-
56: "14rem",
|
|
4064
|
-
60: "15rem",
|
|
4065
|
-
64: "16rem",
|
|
4066
|
-
72: "18rem",
|
|
4067
|
-
80: "20rem",
|
|
4068
|
-
96: "24rem"
|
|
4069
|
-
},
|
|
4070
|
-
stroke: ({ theme: theme2 }) => ({
|
|
4071
|
-
none: "none",
|
|
4072
|
-
...theme2("colors")
|
|
4073
|
-
}),
|
|
4074
|
-
strokeWidth: {
|
|
4075
|
-
0: "0",
|
|
4076
|
-
1: "1",
|
|
4077
|
-
2: "2"
|
|
4078
|
-
},
|
|
4079
|
-
supports: {},
|
|
4080
|
-
data: {},
|
|
4081
|
-
textColor: ({ theme: theme2 }) => theme2("colors"),
|
|
4082
|
-
textDecorationColor: ({ theme: theme2 }) => theme2("colors"),
|
|
4083
|
-
textDecorationThickness: {
|
|
4084
|
-
auto: "auto",
|
|
4085
|
-
"from-font": "from-font",
|
|
4086
|
-
0: "0px",
|
|
4087
|
-
1: "1px",
|
|
4088
|
-
2: "2px",
|
|
4089
|
-
4: "4px",
|
|
4090
|
-
8: "8px"
|
|
4091
|
-
},
|
|
4092
|
-
textIndent: ({ theme: theme2 }) => ({
|
|
4093
|
-
...theme2("spacing")
|
|
4094
|
-
}),
|
|
4095
|
-
textOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
4096
|
-
textUnderlineOffset: {
|
|
4097
|
-
auto: "auto",
|
|
4098
|
-
0: "0px",
|
|
4099
|
-
1: "1px",
|
|
4100
|
-
2: "2px",
|
|
4101
|
-
4: "4px",
|
|
4102
|
-
8: "8px"
|
|
4103
|
-
},
|
|
4104
|
-
transformOrigin: {
|
|
4105
|
-
center: "center",
|
|
4106
|
-
top: "top",
|
|
4107
|
-
"top-right": "top right",
|
|
4108
|
-
right: "right",
|
|
4109
|
-
"bottom-right": "bottom right",
|
|
4110
|
-
bottom: "bottom",
|
|
4111
|
-
"bottom-left": "bottom left",
|
|
4112
|
-
left: "left",
|
|
4113
|
-
"top-left": "top left"
|
|
4114
|
-
},
|
|
4115
|
-
transitionDelay: {
|
|
4116
|
-
0: "0s",
|
|
4117
|
-
75: "75ms",
|
|
4118
|
-
100: "100ms",
|
|
4119
|
-
150: "150ms",
|
|
4120
|
-
200: "200ms",
|
|
4121
|
-
300: "300ms",
|
|
4122
|
-
500: "500ms",
|
|
4123
|
-
700: "700ms",
|
|
4124
|
-
1e3: "1000ms"
|
|
4125
|
-
},
|
|
4126
|
-
transitionDuration: {
|
|
4127
|
-
DEFAULT: "150ms",
|
|
4128
|
-
0: "0s",
|
|
4129
|
-
75: "75ms",
|
|
4130
|
-
100: "100ms",
|
|
4131
|
-
150: "150ms",
|
|
4132
|
-
200: "200ms",
|
|
4133
|
-
300: "300ms",
|
|
4134
|
-
500: "500ms",
|
|
4135
|
-
700: "700ms",
|
|
4136
|
-
1e3: "1000ms"
|
|
4137
|
-
},
|
|
4138
|
-
transitionProperty: {
|
|
4139
|
-
none: "none",
|
|
4140
|
-
all: "all",
|
|
4141
|
-
DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
4142
|
-
colors: "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
4143
|
-
opacity: "opacity",
|
|
4144
|
-
shadow: "box-shadow",
|
|
4145
|
-
transform: "transform"
|
|
4146
|
-
},
|
|
4147
|
-
transitionTimingFunction: {
|
|
4148
|
-
DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
4149
|
-
linear: "linear",
|
|
4150
|
-
in: "cubic-bezier(0.4, 0, 1, 1)",
|
|
4151
|
-
out: "cubic-bezier(0, 0, 0.2, 1)",
|
|
4152
|
-
"in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
4153
|
-
},
|
|
4154
|
-
translate: ({ theme: theme2 }) => ({
|
|
4155
|
-
...theme2("spacing"),
|
|
4156
|
-
"1/2": "50%",
|
|
4157
|
-
"1/3": "33.333333%",
|
|
4158
|
-
"2/3": "66.666667%",
|
|
4159
|
-
"1/4": "25%",
|
|
4160
|
-
"2/4": "50%",
|
|
4161
|
-
"3/4": "75%",
|
|
4162
|
-
full: "100%"
|
|
4163
|
-
}),
|
|
4164
|
-
size: ({ theme: theme2 }) => ({
|
|
4165
|
-
auto: "auto",
|
|
4166
|
-
...theme2("spacing"),
|
|
4167
|
-
"1/2": "50%",
|
|
4168
|
-
"1/3": "33.333333%",
|
|
4169
|
-
"2/3": "66.666667%",
|
|
4170
|
-
"1/4": "25%",
|
|
4171
|
-
"2/4": "50%",
|
|
4172
|
-
"3/4": "75%",
|
|
4173
|
-
"1/5": "20%",
|
|
4174
|
-
"2/5": "40%",
|
|
4175
|
-
"3/5": "60%",
|
|
4176
|
-
"4/5": "80%",
|
|
4177
|
-
"1/6": "16.666667%",
|
|
4178
|
-
"2/6": "33.333333%",
|
|
4179
|
-
"3/6": "50%",
|
|
4180
|
-
"4/6": "66.666667%",
|
|
4181
|
-
"5/6": "83.333333%",
|
|
4182
|
-
"1/12": "8.333333%",
|
|
4183
|
-
"2/12": "16.666667%",
|
|
4184
|
-
"3/12": "25%",
|
|
4185
|
-
"4/12": "33.333333%",
|
|
4186
|
-
"5/12": "41.666667%",
|
|
4187
|
-
"6/12": "50%",
|
|
4188
|
-
"7/12": "58.333333%",
|
|
4189
|
-
"8/12": "66.666667%",
|
|
4190
|
-
"9/12": "75%",
|
|
4191
|
-
"10/12": "83.333333%",
|
|
4192
|
-
"11/12": "91.666667%",
|
|
4193
|
-
full: "100%",
|
|
4194
|
-
min: "min-content",
|
|
4195
|
-
max: "max-content",
|
|
4196
|
-
fit: "fit-content"
|
|
4197
|
-
}),
|
|
4198
|
-
width: ({ theme: theme2 }) => ({
|
|
4199
|
-
auto: "auto",
|
|
4200
|
-
...theme2("spacing"),
|
|
4201
|
-
"1/2": "50%",
|
|
4202
|
-
"1/3": "33.333333%",
|
|
4203
|
-
"2/3": "66.666667%",
|
|
4204
|
-
"1/4": "25%",
|
|
4205
|
-
"2/4": "50%",
|
|
4206
|
-
"3/4": "75%",
|
|
4207
|
-
"1/5": "20%",
|
|
4208
|
-
"2/5": "40%",
|
|
4209
|
-
"3/5": "60%",
|
|
4210
|
-
"4/5": "80%",
|
|
4211
|
-
"1/6": "16.666667%",
|
|
4212
|
-
"2/6": "33.333333%",
|
|
4213
|
-
"3/6": "50%",
|
|
4214
|
-
"4/6": "66.666667%",
|
|
4215
|
-
"5/6": "83.333333%",
|
|
4216
|
-
"1/12": "8.333333%",
|
|
4217
|
-
"2/12": "16.666667%",
|
|
4218
|
-
"3/12": "25%",
|
|
4219
|
-
"4/12": "33.333333%",
|
|
4220
|
-
"5/12": "41.666667%",
|
|
4221
|
-
"6/12": "50%",
|
|
4222
|
-
"7/12": "58.333333%",
|
|
4223
|
-
"8/12": "66.666667%",
|
|
4224
|
-
"9/12": "75%",
|
|
4225
|
-
"10/12": "83.333333%",
|
|
4226
|
-
"11/12": "91.666667%",
|
|
4227
|
-
full: "100%",
|
|
4228
|
-
screen: "100vw",
|
|
4229
|
-
svw: "100svw",
|
|
4230
|
-
lvw: "100lvw",
|
|
4231
|
-
dvw: "100dvw",
|
|
4232
|
-
min: "min-content",
|
|
4233
|
-
max: "max-content",
|
|
4234
|
-
fit: "fit-content"
|
|
4235
|
-
}),
|
|
4236
|
-
willChange: {
|
|
4237
|
-
auto: "auto",
|
|
4238
|
-
scroll: "scroll-position",
|
|
4239
|
-
contents: "contents",
|
|
4240
|
-
transform: "transform"
|
|
4241
|
-
},
|
|
4242
|
-
zIndex: {
|
|
4243
|
-
auto: "auto",
|
|
4244
|
-
0: "0",
|
|
4245
|
-
10: "10",
|
|
4246
|
-
20: "20",
|
|
4247
|
-
30: "30",
|
|
4248
|
-
40: "40",
|
|
4249
|
-
50: "50"
|
|
4250
|
-
}
|
|
4251
|
-
},
|
|
4252
|
-
plugins: []
|
|
4253
|
-
};
|
|
4254
|
-
(function(exports) {
|
|
4255
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4256
|
-
value: true
|
|
4257
|
-
});
|
|
4258
|
-
Object.defineProperty(exports, "default", {
|
|
4259
|
-
enumerable: true,
|
|
4260
|
-
get: function() {
|
|
4261
|
-
return getAllConfigs2;
|
|
4262
|
-
}
|
|
4263
|
-
});
|
|
4264
|
-
const _configfull = /* @__PURE__ */ _interop_require_default(config_full);
|
|
4265
|
-
const _featureFlags = featureFlags;
|
|
4266
|
-
function _interop_require_default(obj) {
|
|
4267
|
-
return obj && obj.__esModule ? obj : {
|
|
4268
|
-
default: obj
|
|
4269
|
-
};
|
|
4270
|
-
}
|
|
4271
|
-
function getAllConfigs2(config2) {
|
|
4272
|
-
var _config_presets;
|
|
4273
|
-
const configs = ((_config_presets = config2 === null || config2 === void 0 ? void 0 : config2.presets) !== null && _config_presets !== void 0 ? _config_presets : [
|
|
4274
|
-
_configfull.default
|
|
4275
|
-
]).slice().reverse().flatMap((preset) => getAllConfigs2(preset instanceof Function ? preset() : preset));
|
|
4276
|
-
const features = {
|
|
4277
|
-
// Add experimental configs here...
|
|
4278
|
-
respectDefaultRingColorOpacity: {
|
|
4279
|
-
theme: {
|
|
4280
|
-
ringColor: ({ theme: theme2 }) => ({
|
|
4281
|
-
DEFAULT: "#3b82f67f",
|
|
4282
|
-
...theme2("colors")
|
|
4283
|
-
})
|
|
4284
|
-
}
|
|
4285
|
-
},
|
|
4286
|
-
disableColorOpacityUtilitiesByDefault: {
|
|
4287
|
-
corePlugins: {
|
|
4288
|
-
backgroundOpacity: false,
|
|
4289
|
-
borderOpacity: false,
|
|
4290
|
-
divideOpacity: false,
|
|
4291
|
-
placeholderOpacity: false,
|
|
4292
|
-
ringOpacity: false,
|
|
4293
|
-
textOpacity: false
|
|
4294
|
-
}
|
|
4295
|
-
}
|
|
4296
|
-
};
|
|
4297
|
-
const experimentals = Object.keys(features).filter((feature) => (0, _featureFlags.flagEnabled)(config2, feature)).map((feature) => features[feature]);
|
|
4298
|
-
return [
|
|
4299
|
-
config2,
|
|
4300
|
-
...experimentals,
|
|
4301
|
-
...configs
|
|
4302
|
-
];
|
|
4303
|
-
}
|
|
4304
|
-
})(getAllConfigs);
|
|
4305
|
-
(function(exports) {
|
|
4306
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4307
|
-
value: true
|
|
4308
|
-
});
|
|
4309
|
-
Object.defineProperty(exports, "default", {
|
|
4310
|
-
enumerable: true,
|
|
4311
|
-
get: function() {
|
|
4312
|
-
return resolveConfig2;
|
|
4313
|
-
}
|
|
4314
|
-
});
|
|
4315
|
-
const _resolveConfig = /* @__PURE__ */ _interop_require_default(resolveConfig$2);
|
|
4316
|
-
const _getAllConfigs = /* @__PURE__ */ _interop_require_default(getAllConfigs);
|
|
4317
|
-
function _interop_require_default(obj) {
|
|
4318
|
-
return obj && obj.__esModule ? obj : {
|
|
4319
|
-
default: obj
|
|
4320
|
-
};
|
|
4321
|
-
}
|
|
4322
|
-
function resolveConfig2(...configs) {
|
|
4323
|
-
let [, ...defaultConfigs] = (0, _getAllConfigs.default)(configs[0]);
|
|
4324
|
-
return (0, _resolveConfig.default)([
|
|
4325
|
-
...configs,
|
|
4326
|
-
...defaultConfigs
|
|
4327
|
-
]);
|
|
4328
|
-
}
|
|
4329
|
-
})(resolveConfig$3);
|
|
4330
|
-
let resolveConfig = resolveConfig$3;
|
|
4331
|
-
var resolveConfig_1 = (resolveConfig.__esModule ? resolveConfig : { default: resolveConfig }).default;
|
|
4332
|
-
const resolveConfig$1 = /* @__PURE__ */ getDefaultExportFromCjs(resolveConfig_1);
|
|
4333
|
-
const config = resolveConfig$1(config$1);
|
|
5
|
+
const config = resolveConfig(config$1);
|
|
4334
6
|
const theme = config.theme;
|
|
4335
7
|
const colors = theme == null ? void 0 : theme.colors;
|
|
4336
8
|
(_a = theme == null ? void 0 : theme.extend) == null ? void 0 : _a.colors;
|
|
@@ -4338,9 +10,9 @@ const screens = theme == null ? void 0 : theme.screens;
|
|
|
4338
10
|
const getColor = (name) => {
|
|
4339
11
|
return colors == null ? void 0 : colors[name];
|
|
4340
12
|
};
|
|
4341
|
-
const getColorDeep = (
|
|
4342
|
-
const baseColor =
|
|
4343
|
-
const colorNumber = String(
|
|
13
|
+
const getColorDeep = (color) => {
|
|
14
|
+
const baseColor = color.split("-").slice(0, -1).join("-");
|
|
15
|
+
const colorNumber = String(color.split("-").pop());
|
|
4344
16
|
return get(getColor(baseColor), colorNumber);
|
|
4345
17
|
};
|
|
4346
18
|
const getScreen = (size) => {
|