@pequity/squirrel 1.0.20-beta.2 → 1.0.20-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/chunks/_plugin-vue_export-helper.js +9 -1
- package/dist/cjs/chunks/p-action-bar.js +60 -1
- package/dist/cjs/chunks/p-card.js +28 -1
- package/dist/cjs/chunks/p-checkbox.js +24 -1
- package/dist/cjs/chunks/p-dropdown-select.js +414 -1
- package/dist/cjs/chunks/p-input-percent.js +53 -1
- package/dist/cjs/chunks/p-pagination-info.js +66 -1
- package/dist/cjs/chunks/p-pagination.js +122 -1
- package/dist/cjs/chunks/p-ring-loader.js +81 -1
- package/dist/cjs/chunks/p-select-btn.js +97 -1
- package/dist/cjs/chunks/p-select.js +123 -1
- package/dist/cjs/chunks/p-table-loader.js +70 -1
- package/dist/cjs/chunks/p-tabs.js +52 -1
- package/dist/cjs/config.js +105 -1
- package/dist/cjs/currency.js +9 -1
- package/dist/cjs/dom.js +27 -1
- package/dist/cjs/index.js +976 -1
- package/dist/cjs/inputClassesMixin.js +50 -1
- package/dist/cjs/inputClassesShared.js +76 -1
- package/dist/cjs/listKeyboardNavigation.js +110 -1
- package/dist/cjs/number.js +9 -1
- package/dist/cjs/object.js +4 -1
- package/dist/cjs/p-action-bar.js +3 -1
- package/dist/cjs/p-alert.js +65 -1
- package/dist/cjs/p-avatar.js +71 -1
- package/dist/cjs/p-btn.js +358 -2
- package/dist/cjs/p-card.js +3 -1
- package/dist/cjs/p-checkbox.js +3 -1
- package/dist/cjs/p-chips.js +110 -1
- package/dist/cjs/p-close-btn.js +36 -1
- package/dist/cjs/p-date-picker.js +139 -1
- package/dist/cjs/p-drawer.js +253 -1
- package/dist/cjs/p-dropdown-select.js +3 -1
- package/dist/cjs/p-dropdown.js +138 -1
- package/dist/cjs/p-file-upload.js +21 -1
- package/dist/cjs/p-info-icon.js +35 -1
- package/dist/cjs/p-inline-date-picker.js +142 -1
- package/dist/cjs/p-input-number.js +146 -1
- package/dist/cjs/p-input-percent.js +3 -1
- package/dist/cjs/p-input-search.js +110 -1
- package/dist/cjs/p-input.js +89 -1
- package/dist/cjs/p-loading.js +38 -1
- package/dist/cjs/p-modal.js +369 -1
- package/dist/cjs/p-pagination-info.js +3 -1
- package/dist/cjs/p-pagination.js +3 -1
- package/dist/cjs/p-progress-bar.js +41 -1
- package/dist/cjs/p-ring-loader.js +3 -1
- package/dist/cjs/p-select-btn.js +3 -1
- package/dist/cjs/p-select-list.js +4 -1
- package/dist/cjs/p-select-pill.js +111 -1
- package/dist/cjs/p-select.js +3 -1
- package/dist/cjs/p-skeleton-loader.js +73 -1
- package/dist/cjs/p-table-filter-icon.js +20 -1
- package/dist/cjs/p-table-header-cell.js +75 -1
- package/dist/cjs/p-table-loader.js +3 -1
- package/dist/cjs/p-table-sort.js +8 -1
- package/dist/cjs/p-table-td.js +88 -1
- package/dist/cjs/p-table.js +12 -1
- package/dist/cjs/p-tabs.js +3 -1
- package/dist/cjs/p-textarea.js +73 -1
- package/dist/cjs/p-toggle.js +114 -1
- package/dist/cjs/pagination.js +29 -1
- package/dist/cjs/string.js +12 -1
- package/dist/cjs/tailwind.js +4353 -1
- package/dist/cjs/text.js +16 -1
- package/dist/cjs/useInputClasses.js +44 -1
- package/dist/cjs/usePLoading.js +35 -1
- package/dist/cjs/usePModal.js +21 -1
- package/dist/cjs/usePTableColResize.js +81 -1
- package/dist/cjs/usePTableRowVirtualizer.js +31 -1
- package/dist/cjs/useSelectList.js +256 -1
- package/dist/es/chunks/_plugin-vue_export-helper.js +7 -6
- package/dist/es/chunks/p-action-bar.js +45 -36
- package/dist/es/chunks/p-card.js +18 -14
- package/dist/es/chunks/p-checkbox.js +14 -11
- package/dist/es/chunks/p-dropdown-select.js +232 -183
- package/dist/es/chunks/p-input-percent.js +34 -25
- package/dist/es/chunks/p-pagination-info.js +30 -24
- package/dist/es/chunks/p-pagination.js +78 -48
- package/dist/es/chunks/p-ring-loader.js +63 -40
- package/dist/es/chunks/p-select-btn.js +80 -59
- package/dist/es/chunks/p-select.js +81 -54
- package/dist/es/chunks/p-table-loader.js +46 -32
- package/dist/es/chunks/p-tabs.js +35 -29
- package/dist/es/config.js +2 -2
- package/dist/es/currency.js +3 -3
- package/dist/es/dom.js +24 -12
- package/dist/es/index.js +703 -561
- package/dist/es/inputClassesMixin.js +20 -14
- package/dist/es/inputClassesShared.js +60 -45
- package/dist/es/listKeyboardNavigation.js +86 -36
- package/dist/es/number.js +7 -2
- package/dist/es/object.js +2 -2
- package/dist/es/p-action-bar.js +2 -2
- package/dist/es/p-alert.js +35 -30
- package/dist/es/p-avatar.js +30 -27
- package/dist/es/p-btn.js +209 -164
- package/dist/es/p-card.js +2 -2
- package/dist/es/p-checkbox.js +2 -2
- package/dist/es/p-chips.js +60 -40
- package/dist/es/p-close-btn.js +20 -16
- package/dist/es/p-date-picker.js +66 -58
- package/dist/es/p-drawer.js +108 -89
- package/dist/es/p-dropdown-select.js +2 -2
- package/dist/es/p-dropdown.js +52 -33
- package/dist/es/p-file-upload.js +17 -9
- package/dist/es/p-info-icon.js +21 -16
- package/dist/es/p-inline-date-picker.js +64 -53
- package/dist/es/p-input-number.js +84 -66
- package/dist/es/p-input-percent.js +2 -2
- package/dist/es/p-input-search.js +43 -41
- package/dist/es/p-input.js +51 -45
- package/dist/es/p-loading.js +31 -22
- package/dist/es/p-modal.js +261 -174
- package/dist/es/p-pagination-info.js +2 -2
- package/dist/es/p-pagination.js +2 -2
- package/dist/es/p-progress-bar.js +26 -23
- package/dist/es/p-ring-loader.js +2 -2
- package/dist/es/p-select-btn.js +2 -2
- package/dist/es/p-select-list.js +2 -2
- package/dist/es/p-select-pill.js +58 -41
- package/dist/es/p-select.js +2 -2
- package/dist/es/p-skeleton-loader.js +34 -29
- package/dist/es/p-table-filter-icon.js +11 -11
- package/dist/es/p-table-header-cell.js +38 -33
- package/dist/es/p-table-loader.js +2 -2
- package/dist/es/p-table-sort.js +2 -2
- package/dist/es/p-table-td.js +76 -29
- package/dist/es/p-table.js +10 -6
- package/dist/es/p-tabs.js +2 -2
- package/dist/es/p-textarea.js +36 -34
- package/dist/es/p-toggle.js +53 -48
- package/dist/es/pagination.js +25 -8
- package/dist/es/string.js +10 -2
- package/dist/es/tailwind.js +1660 -1101
- package/dist/es/text.js +13 -8
- package/dist/es/useInputClasses.js +38 -22
- package/dist/es/usePLoading.js +31 -15
- package/dist/es/usePModal.js +15 -12
- package/dist/es/usePTableColResize.js +71 -39
- package/dist/es/usePTableRowVirtualizer.js +24 -15
- package/dist/es/useSelectList.js +234 -121
- package/dist/style.css +2124 -1
- package/package.json +1 -1
package/dist/es/tailwind.js
CHANGED
|
@@ -1,46 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var _a;
|
|
2
|
+
import { get } from "lodash-es";
|
|
3
|
+
import { config as config$1 } from "./config.js";
|
|
4
|
+
function getDefaultExportFromCjs(x2) {
|
|
5
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
5
6
|
}
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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,
|
|
12
16
|
get: function() {
|
|
13
|
-
return
|
|
17
|
+
return negateValue2;
|
|
14
18
|
}
|
|
15
19
|
});
|
|
16
|
-
function
|
|
17
|
-
|
|
20
|
+
function negateValue2(value) {
|
|
21
|
+
value = `${value}`;
|
|
22
|
+
if (value === "0") {
|
|
18
23
|
return "0";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
}
|
|
25
|
+
if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(value)) {
|
|
26
|
+
return value.replace(/^[+-]?/, (sign) => sign === "-" ? "" : "-");
|
|
27
|
+
}
|
|
28
|
+
let numericFunctions = [
|
|
22
29
|
"var",
|
|
23
30
|
"calc",
|
|
24
31
|
"min",
|
|
25
32
|
"max",
|
|
26
33
|
"clamp"
|
|
27
34
|
];
|
|
28
|
-
for (const
|
|
29
|
-
if (
|
|
30
|
-
return `calc(${
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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,
|
|
39
49
|
get: function() {
|
|
40
|
-
return
|
|
50
|
+
return _default;
|
|
41
51
|
}
|
|
42
52
|
});
|
|
43
|
-
const
|
|
53
|
+
const _default = [
|
|
44
54
|
"preflight",
|
|
45
55
|
"container",
|
|
46
56
|
"accessibility",
|
|
@@ -221,110 +231,131 @@ var ue = {};
|
|
|
221
231
|
"content",
|
|
222
232
|
"forcedColorAdjust"
|
|
223
233
|
];
|
|
224
|
-
})(
|
|
225
|
-
var
|
|
226
|
-
(function(
|
|
227
|
-
Object.defineProperty(
|
|
228
|
-
value:
|
|
229
|
-
})
|
|
230
|
-
|
|
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,
|
|
231
242
|
get: function() {
|
|
232
|
-
return
|
|
243
|
+
return _default;
|
|
233
244
|
}
|
|
234
245
|
});
|
|
235
|
-
function
|
|
236
|
-
|
|
237
|
-
|
|
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
|
+
})))
|
|
238
256
|
];
|
|
257
|
+
return pluginNames;
|
|
239
258
|
}
|
|
240
|
-
})(
|
|
241
|
-
var
|
|
242
|
-
|
|
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 };
|
|
243
266
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
var
|
|
247
|
-
(function(
|
|
248
|
-
Object.defineProperty(
|
|
249
|
-
value:
|
|
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
|
|
250
273
|
});
|
|
251
|
-
function
|
|
252
|
-
for (var
|
|
253
|
-
Object.defineProperty(
|
|
254
|
-
enumerable:
|
|
255
|
-
get:
|
|
274
|
+
function _export(target, all) {
|
|
275
|
+
for (var name in all)
|
|
276
|
+
Object.defineProperty(target, name, {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: all[name]
|
|
256
279
|
});
|
|
257
280
|
}
|
|
258
|
-
|
|
281
|
+
_export(exports, {
|
|
259
282
|
dim: function() {
|
|
260
|
-
return
|
|
283
|
+
return dim;
|
|
261
284
|
},
|
|
262
285
|
default: function() {
|
|
263
|
-
return
|
|
286
|
+
return _default;
|
|
264
287
|
}
|
|
265
288
|
});
|
|
266
|
-
const
|
|
267
|
-
function
|
|
268
|
-
return
|
|
269
|
-
default:
|
|
289
|
+
const _picocolors = /* @__PURE__ */ _interop_require_default(picocolors_browserExports);
|
|
290
|
+
function _interop_require_default(obj) {
|
|
291
|
+
return obj && obj.__esModule ? obj : {
|
|
292
|
+
default: obj
|
|
270
293
|
};
|
|
271
294
|
}
|
|
272
|
-
let
|
|
273
|
-
function
|
|
274
|
-
typeof process
|
|
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));
|
|
275
305
|
}
|
|
276
|
-
function
|
|
277
|
-
return
|
|
306
|
+
function dim(input) {
|
|
307
|
+
return _picocolors.default.dim(input);
|
|
278
308
|
}
|
|
279
|
-
const
|
|
280
|
-
info(
|
|
281
|
-
|
|
282
|
-
|
|
309
|
+
const _default = {
|
|
310
|
+
info(key, messages) {
|
|
311
|
+
log2(_picocolors.default.bold(_picocolors.default.cyan("info")), ...Array.isArray(key) ? [
|
|
312
|
+
key
|
|
283
313
|
] : [
|
|
284
|
-
|
|
285
|
-
|
|
314
|
+
messages,
|
|
315
|
+
key
|
|
286
316
|
]);
|
|
287
317
|
},
|
|
288
|
-
warn(
|
|
289
|
-
|
|
290
|
-
|
|
318
|
+
warn(key, messages) {
|
|
319
|
+
log2(_picocolors.default.bold(_picocolors.default.yellow("warn")), ...Array.isArray(key) ? [
|
|
320
|
+
key
|
|
291
321
|
] : [
|
|
292
|
-
|
|
293
|
-
|
|
322
|
+
messages,
|
|
323
|
+
key
|
|
294
324
|
]);
|
|
295
325
|
},
|
|
296
|
-
risk(
|
|
297
|
-
|
|
298
|
-
|
|
326
|
+
risk(key, messages) {
|
|
327
|
+
log2(_picocolors.default.bold(_picocolors.default.magenta("risk")), ...Array.isArray(key) ? [
|
|
328
|
+
key
|
|
299
329
|
] : [
|
|
300
|
-
|
|
301
|
-
|
|
330
|
+
messages,
|
|
331
|
+
key
|
|
302
332
|
]);
|
|
303
333
|
}
|
|
304
334
|
};
|
|
305
|
-
})(
|
|
306
|
-
(function(
|
|
307
|
-
Object.defineProperty(
|
|
308
|
-
value:
|
|
309
|
-
})
|
|
310
|
-
|
|
335
|
+
})(log);
|
|
336
|
+
(function(exports) {
|
|
337
|
+
Object.defineProperty(exports, "__esModule", {
|
|
338
|
+
value: true
|
|
339
|
+
});
|
|
340
|
+
Object.defineProperty(exports, "default", {
|
|
341
|
+
enumerable: true,
|
|
311
342
|
get: function() {
|
|
312
|
-
return
|
|
343
|
+
return _default;
|
|
313
344
|
}
|
|
314
345
|
});
|
|
315
|
-
const
|
|
316
|
-
function
|
|
317
|
-
return
|
|
318
|
-
default:
|
|
346
|
+
const _log = /* @__PURE__ */ _interop_require_default(log);
|
|
347
|
+
function _interop_require_default(obj) {
|
|
348
|
+
return obj && obj.__esModule ? obj : {
|
|
349
|
+
default: obj
|
|
319
350
|
};
|
|
320
351
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
323
|
-
`As of Tailwind CSS ${
|
|
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}\`.`,
|
|
324
355
|
"Update your configuration file to silence this warning."
|
|
325
356
|
]);
|
|
326
357
|
}
|
|
327
|
-
const
|
|
358
|
+
const _default = {
|
|
328
359
|
inherit: "inherit",
|
|
329
360
|
current: "currentColor",
|
|
330
361
|
transparent: "transparent",
|
|
@@ -617,120 +648,136 @@ var de = te.exports;
|
|
|
617
648
|
950: "#4c0519"
|
|
618
649
|
},
|
|
619
650
|
get lightBlue() {
|
|
620
|
-
|
|
651
|
+
warn({
|
|
621
652
|
version: "v2.2",
|
|
622
653
|
from: "lightBlue",
|
|
623
654
|
to: "sky"
|
|
624
|
-
})
|
|
655
|
+
});
|
|
656
|
+
return this.sky;
|
|
625
657
|
},
|
|
626
658
|
get warmGray() {
|
|
627
|
-
|
|
659
|
+
warn({
|
|
628
660
|
version: "v3.0",
|
|
629
661
|
from: "warmGray",
|
|
630
662
|
to: "stone"
|
|
631
|
-
})
|
|
663
|
+
});
|
|
664
|
+
return this.stone;
|
|
632
665
|
},
|
|
633
666
|
get trueGray() {
|
|
634
|
-
|
|
667
|
+
warn({
|
|
635
668
|
version: "v3.0",
|
|
636
669
|
from: "trueGray",
|
|
637
670
|
to: "neutral"
|
|
638
|
-
})
|
|
671
|
+
});
|
|
672
|
+
return this.neutral;
|
|
639
673
|
},
|
|
640
674
|
get coolGray() {
|
|
641
|
-
|
|
675
|
+
warn({
|
|
642
676
|
version: "v3.0",
|
|
643
677
|
from: "coolGray",
|
|
644
678
|
to: "gray"
|
|
645
|
-
})
|
|
679
|
+
});
|
|
680
|
+
return this.gray;
|
|
646
681
|
},
|
|
647
682
|
get blueGray() {
|
|
648
|
-
|
|
683
|
+
warn({
|
|
649
684
|
version: "v3.0",
|
|
650
685
|
from: "blueGray",
|
|
651
686
|
to: "slate"
|
|
652
|
-
})
|
|
687
|
+
});
|
|
688
|
+
return this.slate;
|
|
653
689
|
}
|
|
654
690
|
};
|
|
655
|
-
})(
|
|
656
|
-
var
|
|
657
|
-
(function(
|
|
658
|
-
Object.defineProperty(
|
|
659
|
-
value:
|
|
660
|
-
})
|
|
661
|
-
|
|
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,
|
|
662
699
|
get: function() {
|
|
663
|
-
return
|
|
700
|
+
return defaults2;
|
|
664
701
|
}
|
|
665
702
|
});
|
|
666
|
-
function
|
|
667
|
-
for (let
|
|
668
|
-
for (let
|
|
669
|
-
var
|
|
670
|
-
!(
|
|
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
|
+
}
|
|
671
710
|
}
|
|
672
|
-
for (let
|
|
673
|
-
var
|
|
674
|
-
!(
|
|
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
|
+
}
|
|
675
716
|
}
|
|
676
717
|
}
|
|
677
|
-
return
|
|
718
|
+
return target;
|
|
678
719
|
}
|
|
679
|
-
})(
|
|
680
|
-
var
|
|
681
|
-
(function(
|
|
682
|
-
Object.defineProperty(
|
|
683
|
-
value:
|
|
684
|
-
})
|
|
685
|
-
|
|
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,
|
|
686
728
|
get: function() {
|
|
687
|
-
return
|
|
729
|
+
return toPath2;
|
|
688
730
|
}
|
|
689
731
|
});
|
|
690
|
-
function
|
|
691
|
-
if (Array.isArray(
|
|
692
|
-
return
|
|
693
|
-
let
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
(
|
|
701
|
-
|
|
702
|
-
|
|
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
|
|
703
748
|
});
|
|
704
|
-
function
|
|
705
|
-
for (var
|
|
706
|
-
Object.defineProperty(
|
|
707
|
-
enumerable:
|
|
708
|
-
get:
|
|
749
|
+
function _export(target, all) {
|
|
750
|
+
for (var name in all)
|
|
751
|
+
Object.defineProperty(target, name, {
|
|
752
|
+
enumerable: true,
|
|
753
|
+
get: all[name]
|
|
709
754
|
});
|
|
710
755
|
}
|
|
711
|
-
|
|
756
|
+
_export(exports, {
|
|
712
757
|
flagEnabled: function() {
|
|
713
|
-
return
|
|
758
|
+
return flagEnabled;
|
|
714
759
|
},
|
|
715
760
|
issueFlagNotices: function() {
|
|
716
|
-
return
|
|
761
|
+
return issueFlagNotices;
|
|
717
762
|
},
|
|
718
763
|
default: function() {
|
|
719
|
-
return
|
|
764
|
+
return _default;
|
|
720
765
|
}
|
|
721
766
|
});
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
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
|
|
726
772
|
};
|
|
727
773
|
}
|
|
728
|
-
let
|
|
729
|
-
optimizeUniversalDefaults:
|
|
730
|
-
generalizedModifiers:
|
|
731
|
-
disableColorOpacityUtilitiesByDefault:
|
|
732
|
-
relativeContentPathsByDefault:
|
|
733
|
-
}
|
|
774
|
+
let defaults2 = {
|
|
775
|
+
optimizeUniversalDefaults: false,
|
|
776
|
+
generalizedModifiers: true,
|
|
777
|
+
disableColorOpacityUtilitiesByDefault: false,
|
|
778
|
+
relativeContentPathsByDefault: false
|
|
779
|
+
};
|
|
780
|
+
let featureFlags2 = {
|
|
734
781
|
future: [
|
|
735
782
|
"hoverOnlyWhenSupported",
|
|
736
783
|
"respectDefaultRingColorOpacity",
|
|
@@ -742,242 +789,381 @@ var ge = {}, q = {};
|
|
|
742
789
|
"generalizedModifiers"
|
|
743
790
|
]
|
|
744
791
|
};
|
|
745
|
-
function
|
|
746
|
-
if (
|
|
747
|
-
var
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
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}`,
|
|
767
820
|
"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
|
|
768
821
|
]);
|
|
769
822
|
}
|
|
770
823
|
}
|
|
771
|
-
const
|
|
772
|
-
})(
|
|
773
|
-
(function(
|
|
774
|
-
Object.defineProperty(
|
|
775
|
-
value:
|
|
776
|
-
})
|
|
777
|
-
|
|
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,
|
|
778
832
|
get: function() {
|
|
779
|
-
return
|
|
833
|
+
return normalizeConfig2;
|
|
780
834
|
}
|
|
781
835
|
});
|
|
782
|
-
const
|
|
783
|
-
|
|
784
|
-
|
|
836
|
+
const _featureFlags = featureFlags;
|
|
837
|
+
const _log = /* @__PURE__ */ _interop_require_wildcard(log);
|
|
838
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
839
|
+
if (typeof WeakMap !== "function")
|
|
785
840
|
return null;
|
|
786
|
-
var
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
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") {
|
|
795
852
|
return {
|
|
796
|
-
default:
|
|
853
|
+
default: obj
|
|
797
854
|
};
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
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;
|
|
806
882
|
}
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
if (Array.isArray(
|
|
814
|
-
return
|
|
815
|
-
|
|
816
|
-
|
|
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) => ![
|
|
817
903
|
"files",
|
|
818
904
|
"relative",
|
|
819
905
|
"extract",
|
|
820
906
|
"transform"
|
|
821
|
-
].includes(
|
|
822
|
-
return
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
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
|
+
}
|
|
840
944
|
}
|
|
841
|
-
return
|
|
945
|
+
return true;
|
|
842
946
|
}
|
|
843
|
-
return
|
|
844
|
-
})()
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
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", [
|
|
858
976
|
"The `blocklist` option must be an array of strings.",
|
|
859
977
|
"https://tailwindcss.com/docs/content-configuration#discarding-classes"
|
|
860
978
|
]);
|
|
861
979
|
}
|
|
862
980
|
return [];
|
|
863
|
-
})()
|
|
864
|
-
|
|
981
|
+
})();
|
|
982
|
+
if (typeof config2.prefix === "function") {
|
|
983
|
+
_log.default.warn("prefix-function", [
|
|
865
984
|
"As of Tailwind CSS v3.0, `prefix` cannot be a function.",
|
|
866
985
|
"Update `prefix` in your configuration to be a string to eliminate this warning.",
|
|
867
986
|
"https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
|
|
868
|
-
])
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
987
|
+
]);
|
|
988
|
+
config2.prefix = "";
|
|
989
|
+
} else {
|
|
990
|
+
var _config_prefix;
|
|
991
|
+
config2.prefix = (_config_prefix = config2.prefix) !== null && _config_prefix !== void 0 ? _config_prefix : "";
|
|
872
992
|
}
|
|
873
|
-
|
|
993
|
+
config2.content = {
|
|
874
994
|
relative: (() => {
|
|
875
|
-
let { content
|
|
876
|
-
|
|
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");
|
|
877
1000
|
})(),
|
|
878
1001
|
files: (() => {
|
|
879
|
-
let { content
|
|
880
|
-
|
|
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 [];
|
|
881
1014
|
})(),
|
|
882
1015
|
extract: (() => {
|
|
883
|
-
let
|
|
884
|
-
var
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
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;
|
|
892
1042
|
})();
|
|
893
|
-
if (
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
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;
|
|
902
1058
|
})(),
|
|
903
1059
|
transform: (() => {
|
|
904
|
-
let
|
|
905
|
-
var
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
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;
|
|
909
1080
|
})()
|
|
910
1081
|
};
|
|
911
|
-
for (let
|
|
912
|
-
if (typeof
|
|
913
|
-
|
|
914
|
-
`The glob pattern ${(0,
|
|
915
|
-
`Update it to ${(0,
|
|
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.`
|
|
916
1087
|
]);
|
|
917
1088
|
break;
|
|
918
1089
|
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
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,
|
|
928
1101
|
get: function() {
|
|
929
|
-
return
|
|
1102
|
+
return isPlainObject2;
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
function isPlainObject2(value) {
|
|
1106
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") {
|
|
1107
|
+
return false;
|
|
930
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
|
|
931
1117
|
});
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
return !1;
|
|
935
|
-
const y = Object.getPrototypeOf(n);
|
|
936
|
-
return y === null || Object.getPrototypeOf(y) === null;
|
|
937
|
-
}
|
|
938
|
-
})(be);
|
|
939
|
-
var ve = {};
|
|
940
|
-
(function(e) {
|
|
941
|
-
Object.defineProperty(e, "__esModule", {
|
|
942
|
-
value: !0
|
|
943
|
-
}), Object.defineProperty(e, "cloneDeep", {
|
|
944
|
-
enumerable: !0,
|
|
1118
|
+
Object.defineProperty(exports, "cloneDeep", {
|
|
1119
|
+
enumerable: true,
|
|
945
1120
|
get: function() {
|
|
946
|
-
return
|
|
1121
|
+
return cloneDeep2;
|
|
947
1122
|
}
|
|
948
1123
|
});
|
|
949
|
-
function
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
value
|
|
960
|
-
}
|
|
961
|
-
|
|
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,
|
|
962
1145
|
get: function() {
|
|
963
|
-
return
|
|
1146
|
+
return escapeCommas2;
|
|
964
1147
|
}
|
|
965
1148
|
});
|
|
966
|
-
function
|
|
967
|
-
return
|
|
968
|
-
}
|
|
969
|
-
})(
|
|
970
|
-
var
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
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,
|
|
976
1162
|
get: function() {
|
|
977
|
-
return
|
|
1163
|
+
return _default;
|
|
978
1164
|
}
|
|
979
1165
|
});
|
|
980
|
-
const
|
|
1166
|
+
const _default = {
|
|
981
1167
|
aliceblue: [
|
|
982
1168
|
240,
|
|
983
1169
|
248,
|
|
@@ -1719,38 +1905,47 @@ var re = {}, ne = {}, xe = {};
|
|
|
1719
1905
|
50
|
|
1720
1906
|
]
|
|
1721
1907
|
};
|
|
1722
|
-
})(
|
|
1723
|
-
(function(
|
|
1724
|
-
Object.defineProperty(
|
|
1725
|
-
value:
|
|
1908
|
+
})(colorNames);
|
|
1909
|
+
(function(exports) {
|
|
1910
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1911
|
+
value: true
|
|
1726
1912
|
});
|
|
1727
|
-
function
|
|
1728
|
-
for (var
|
|
1729
|
-
Object.defineProperty(
|
|
1730
|
-
enumerable:
|
|
1731
|
-
get:
|
|
1913
|
+
function _export(target, all) {
|
|
1914
|
+
for (var name in all)
|
|
1915
|
+
Object.defineProperty(target, name, {
|
|
1916
|
+
enumerable: true,
|
|
1917
|
+
get: all[name]
|
|
1732
1918
|
});
|
|
1733
1919
|
}
|
|
1734
|
-
|
|
1920
|
+
_export(exports, {
|
|
1735
1921
|
parseColor: function() {
|
|
1736
|
-
return
|
|
1922
|
+
return parseColor;
|
|
1737
1923
|
},
|
|
1738
1924
|
formatColor: function() {
|
|
1739
|
-
return
|
|
1925
|
+
return formatColor;
|
|
1740
1926
|
}
|
|
1741
1927
|
});
|
|
1742
|
-
const
|
|
1743
|
-
function
|
|
1744
|
-
return
|
|
1745
|
-
default:
|
|
1928
|
+
const _colorNames = /* @__PURE__ */ _interop_require_default(colorNames);
|
|
1929
|
+
function _interop_require_default(obj) {
|
|
1930
|
+
return obj && obj.__esModule ? obj : {
|
|
1931
|
+
default: obj
|
|
1746
1932
|
};
|
|
1747
1933
|
}
|
|
1748
|
-
let
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
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") {
|
|
1752
1945
|
return null;
|
|
1753
|
-
|
|
1946
|
+
}
|
|
1947
|
+
value = value.trim();
|
|
1948
|
+
if (value === "transparent") {
|
|
1754
1949
|
return {
|
|
1755
1950
|
mode: "rgb",
|
|
1756
1951
|
color: [
|
|
@@ -1760,258 +1955,352 @@ var re = {}, ne = {}, xe = {};
|
|
|
1760
1955
|
],
|
|
1761
1956
|
alpha: "0"
|
|
1762
1957
|
};
|
|
1763
|
-
|
|
1958
|
+
}
|
|
1959
|
+
if (value in _colorNames.default) {
|
|
1764
1960
|
return {
|
|
1765
1961
|
mode: "rgb",
|
|
1766
|
-
color:
|
|
1962
|
+
color: _colorNames.default[value].map((v) => v.toString())
|
|
1767
1963
|
};
|
|
1768
|
-
|
|
1964
|
+
}
|
|
1965
|
+
let hex = value.replace(SHORT_HEX, (_, r, g, b, a) => [
|
|
1769
1966
|
"#",
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
].join("")).match(
|
|
1778
|
-
if (
|
|
1967
|
+
r,
|
|
1968
|
+
r,
|
|
1969
|
+
g,
|
|
1970
|
+
g,
|
|
1971
|
+
b,
|
|
1972
|
+
b,
|
|
1973
|
+
a ? a + a : ""
|
|
1974
|
+
].join("")).match(HEX);
|
|
1975
|
+
if (hex !== null) {
|
|
1779
1976
|
return {
|
|
1780
1977
|
mode: "rgb",
|
|
1781
1978
|
color: [
|
|
1782
|
-
parseInt(
|
|
1783
|
-
parseInt(
|
|
1784
|
-
parseInt(
|
|
1785
|
-
].map((
|
|
1786
|
-
alpha:
|
|
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
|
|
1787
1984
|
};
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
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) {
|
|
1791
1989
|
return null;
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
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_)
|
|
1807
2015
|
};
|
|
1808
2016
|
}
|
|
1809
|
-
function
|
|
1810
|
-
let
|
|
1811
|
-
|
|
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}` : ""})`;
|
|
1812
2023
|
}
|
|
1813
|
-
})(
|
|
1814
|
-
(function(
|
|
1815
|
-
Object.defineProperty(
|
|
1816
|
-
value:
|
|
2024
|
+
})(color);
|
|
2025
|
+
(function(exports) {
|
|
2026
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2027
|
+
value: true
|
|
1817
2028
|
});
|
|
1818
|
-
function
|
|
1819
|
-
for (var
|
|
1820
|
-
Object.defineProperty(
|
|
1821
|
-
enumerable:
|
|
1822
|
-
get:
|
|
2029
|
+
function _export(target, all) {
|
|
2030
|
+
for (var name in all)
|
|
2031
|
+
Object.defineProperty(target, name, {
|
|
2032
|
+
enumerable: true,
|
|
2033
|
+
get: all[name]
|
|
1823
2034
|
});
|
|
1824
2035
|
}
|
|
1825
|
-
|
|
2036
|
+
_export(exports, {
|
|
1826
2037
|
withAlphaValue: function() {
|
|
1827
|
-
return
|
|
2038
|
+
return withAlphaValue;
|
|
1828
2039
|
},
|
|
1829
2040
|
default: function() {
|
|
1830
|
-
return
|
|
2041
|
+
return withAlphaVariable2;
|
|
1831
2042
|
}
|
|
1832
2043
|
});
|
|
1833
|
-
const
|
|
1834
|
-
function
|
|
1835
|
-
if (typeof
|
|
1836
|
-
return
|
|
1837
|
-
opacityValue:
|
|
2044
|
+
const _color = color;
|
|
2045
|
+
function withAlphaValue(color2, alphaValue, defaultValue) {
|
|
2046
|
+
if (typeof color2 === "function") {
|
|
2047
|
+
return color2({
|
|
2048
|
+
opacityValue: alphaValue
|
|
1838
2049
|
});
|
|
1839
|
-
|
|
1840
|
-
|
|
2050
|
+
}
|
|
2051
|
+
let parsed = (0, _color.parseColor)(color2, {
|
|
2052
|
+
loose: true
|
|
1841
2053
|
});
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
2054
|
+
if (parsed === null) {
|
|
2055
|
+
return defaultValue;
|
|
2056
|
+
}
|
|
2057
|
+
return (0, _color.formatColor)({
|
|
2058
|
+
...parsed,
|
|
2059
|
+
alpha: alphaValue
|
|
1845
2060
|
});
|
|
1846
2061
|
}
|
|
1847
|
-
function
|
|
1848
|
-
let
|
|
1849
|
-
if (typeof
|
|
2062
|
+
function withAlphaVariable2({ color: color2, property, variable }) {
|
|
2063
|
+
let properties = [].concat(property);
|
|
2064
|
+
if (typeof color2 === "function") {
|
|
1850
2065
|
return {
|
|
1851
|
-
[
|
|
1852
|
-
...Object.fromEntries(
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
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
|
+
}))
|
|
1859
2076
|
};
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
]
|
|
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
|
+
}))
|
|
1876
2102
|
};
|
|
1877
2103
|
}
|
|
1878
|
-
})(
|
|
1879
|
-
var
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
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,
|
|
1885
2114
|
get: function() {
|
|
1886
|
-
return
|
|
2115
|
+
return splitAtTopLevelOnly2;
|
|
1887
2116
|
}
|
|
1888
2117
|
});
|
|
1889
|
-
function
|
|
1890
|
-
let
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
(
|
|
1899
|
-
|
|
1900
|
-
|
|
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
|
|
1901
2149
|
});
|
|
1902
|
-
function
|
|
1903
|
-
for (var
|
|
1904
|
-
Object.defineProperty(
|
|
1905
|
-
enumerable:
|
|
1906
|
-
get:
|
|
2150
|
+
function _export(target, all) {
|
|
2151
|
+
for (var name in all)
|
|
2152
|
+
Object.defineProperty(target, name, {
|
|
2153
|
+
enumerable: true,
|
|
2154
|
+
get: all[name]
|
|
1907
2155
|
});
|
|
1908
2156
|
}
|
|
1909
|
-
|
|
2157
|
+
_export(exports, {
|
|
1910
2158
|
parseBoxShadowValue: function() {
|
|
1911
|
-
return
|
|
2159
|
+
return parseBoxShadowValue2;
|
|
1912
2160
|
},
|
|
1913
2161
|
formatBoxShadowValue: function() {
|
|
1914
|
-
return
|
|
2162
|
+
return formatBoxShadowValue;
|
|
1915
2163
|
}
|
|
1916
2164
|
});
|
|
1917
|
-
const
|
|
1918
|
-
let
|
|
2165
|
+
const _splitAtTopLevelOnly = splitAtTopLevelOnly;
|
|
2166
|
+
let KEYWORDS = /* @__PURE__ */ new Set([
|
|
1919
2167
|
"inset",
|
|
1920
2168
|
"inherit",
|
|
1921
2169
|
"initial",
|
|
1922
2170
|
"revert",
|
|
1923
2171
|
"unset"
|
|
1924
|
-
])
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
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;
|
|
1933
2215
|
});
|
|
1934
2216
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
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
|
|
1949
2236
|
});
|
|
1950
|
-
function
|
|
1951
|
-
for (var
|
|
1952
|
-
Object.defineProperty(
|
|
1953
|
-
enumerable:
|
|
1954
|
-
get:
|
|
2237
|
+
function _export(target, all) {
|
|
2238
|
+
for (var name in all)
|
|
2239
|
+
Object.defineProperty(target, name, {
|
|
2240
|
+
enumerable: true,
|
|
2241
|
+
get: all[name]
|
|
1955
2242
|
});
|
|
1956
2243
|
}
|
|
1957
|
-
|
|
2244
|
+
_export(exports, {
|
|
1958
2245
|
normalize: function() {
|
|
1959
|
-
return
|
|
2246
|
+
return normalize;
|
|
1960
2247
|
},
|
|
1961
2248
|
url: function() {
|
|
1962
|
-
return
|
|
2249
|
+
return url;
|
|
1963
2250
|
},
|
|
1964
2251
|
number: function() {
|
|
1965
|
-
return
|
|
2252
|
+
return number;
|
|
1966
2253
|
},
|
|
1967
2254
|
percentage: function() {
|
|
1968
|
-
return
|
|
2255
|
+
return percentage;
|
|
1969
2256
|
},
|
|
1970
2257
|
length: function() {
|
|
1971
|
-
return
|
|
2258
|
+
return length;
|
|
1972
2259
|
},
|
|
1973
2260
|
lineWidth: function() {
|
|
1974
|
-
return
|
|
2261
|
+
return lineWidth;
|
|
1975
2262
|
},
|
|
1976
2263
|
shadow: function() {
|
|
1977
|
-
return
|
|
2264
|
+
return shadow;
|
|
1978
2265
|
},
|
|
1979
2266
|
color: function() {
|
|
1980
|
-
return
|
|
2267
|
+
return color$1;
|
|
1981
2268
|
},
|
|
1982
2269
|
image: function() {
|
|
1983
|
-
return
|
|
2270
|
+
return image;
|
|
1984
2271
|
},
|
|
1985
2272
|
gradient: function() {
|
|
1986
|
-
return
|
|
2273
|
+
return gradient;
|
|
1987
2274
|
},
|
|
1988
2275
|
position: function() {
|
|
1989
|
-
return
|
|
2276
|
+
return position;
|
|
1990
2277
|
},
|
|
1991
2278
|
familyName: function() {
|
|
1992
|
-
return
|
|
2279
|
+
return familyName;
|
|
1993
2280
|
},
|
|
1994
2281
|
genericName: function() {
|
|
1995
|
-
return
|
|
2282
|
+
return genericName;
|
|
1996
2283
|
},
|
|
1997
2284
|
absoluteSize: function() {
|
|
1998
|
-
return
|
|
2285
|
+
return absoluteSize;
|
|
1999
2286
|
},
|
|
2000
2287
|
relativeSize: function() {
|
|
2001
|
-
return
|
|
2288
|
+
return relativeSize;
|
|
2002
2289
|
}
|
|
2003
2290
|
});
|
|
2004
|
-
const
|
|
2005
|
-
|
|
2291
|
+
const _color = color;
|
|
2292
|
+
const _parseBoxShadowValue = parseBoxShadowValue;
|
|
2293
|
+
const _splitAtTopLevelOnly = splitAtTopLevelOnly;
|
|
2294
|
+
let cssFunctions = [
|
|
2006
2295
|
"min",
|
|
2007
2296
|
"max",
|
|
2008
2297
|
"clamp",
|
|
2009
2298
|
"calc"
|
|
2010
2299
|
];
|
|
2011
|
-
function
|
|
2012
|
-
return
|
|
2300
|
+
function isCSSFunction(value) {
|
|
2301
|
+
return cssFunctions.some((fn) => new RegExp(`^${fn}\\(.*\\)`).test(value));
|
|
2013
2302
|
}
|
|
2014
|
-
const
|
|
2303
|
+
const AUTO_VAR_INJECTION_EXCEPTIONS = /* @__PURE__ */ new Set([
|
|
2015
2304
|
// Concrete properties
|
|
2016
2305
|
"scroll-timeline-name",
|
|
2017
2306
|
"timeline-scope",
|
|
@@ -2022,14 +2311,31 @@ var ie = {}, we = {}, H = {};
|
|
|
2022
2311
|
"animation-timeline",
|
|
2023
2312
|
"view-timeline"
|
|
2024
2313
|
]);
|
|
2025
|
-
function
|
|
2026
|
-
let
|
|
2027
|
-
|
|
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;
|
|
2028
2333
|
}
|
|
2029
|
-
function
|
|
2030
|
-
let
|
|
2334
|
+
function normalizeMathOperatorSpacing(value) {
|
|
2335
|
+
let preventFormattingInFunctions = [
|
|
2031
2336
|
"theme"
|
|
2032
|
-
]
|
|
2337
|
+
];
|
|
2338
|
+
let preventFormattingKeywords = [
|
|
2033
2339
|
"min-content",
|
|
2034
2340
|
"max-content",
|
|
2035
2341
|
"fit-content",
|
|
@@ -2055,64 +2361,76 @@ var ie = {}, we = {}, H = {};
|
|
|
2055
2361
|
"repeating-linear-gradient",
|
|
2056
2362
|
"repeating-conic-gradient"
|
|
2057
2363
|
];
|
|
2058
|
-
return
|
|
2059
|
-
let
|
|
2060
|
-
function
|
|
2061
|
-
let
|
|
2062
|
-
return
|
|
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];
|
|
2063
2369
|
}
|
|
2064
|
-
for (let
|
|
2065
|
-
let
|
|
2066
|
-
return
|
|
2067
|
-
},
|
|
2068
|
-
let
|
|
2069
|
-
for (let
|
|
2070
|
-
let
|
|
2071
|
-
|
|
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
|
+
}
|
|
2072
2380
|
}
|
|
2073
|
-
let
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
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([
|
|
2078
2388
|
")",
|
|
2079
2389
|
","
|
|
2080
2390
|
]);
|
|
2081
|
-
else if (
|
|
2082
|
-
let
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
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([
|
|
2086
2397
|
")"
|
|
2087
|
-
])
|
|
2398
|
+
]);
|
|
2399
|
+
} else if (peek("[")) {
|
|
2400
|
+
result += consumeUntil([
|
|
2088
2401
|
"]"
|
|
2089
|
-
])
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
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
|
+
}
|
|
2102
2420
|
}
|
|
2103
|
-
return
|
|
2421
|
+
return result.replace(/\s+/g, " ");
|
|
2104
2422
|
});
|
|
2105
2423
|
}
|
|
2106
|
-
function
|
|
2107
|
-
return
|
|
2424
|
+
function url(value) {
|
|
2425
|
+
return value.startsWith("url(");
|
|
2108
2426
|
}
|
|
2109
|
-
function
|
|
2110
|
-
return !isNaN(Number(
|
|
2427
|
+
function number(value) {
|
|
2428
|
+
return !isNaN(Number(value)) || isCSSFunction(value);
|
|
2111
2429
|
}
|
|
2112
|
-
function
|
|
2113
|
-
return
|
|
2430
|
+
function percentage(value) {
|
|
2431
|
+
return value.endsWith("%") && number(value.slice(0, -1)) || isCSSFunction(value);
|
|
2114
2432
|
}
|
|
2115
|
-
let
|
|
2433
|
+
let lengthUnits = [
|
|
2116
2434
|
"cm",
|
|
2117
2435
|
"mm",
|
|
2118
2436
|
"Q",
|
|
@@ -2144,41 +2462,66 @@ var ie = {}, we = {}, H = {};
|
|
|
2144
2462
|
"cqb",
|
|
2145
2463
|
"cqmin",
|
|
2146
2464
|
"cqmax"
|
|
2147
|
-
]
|
|
2148
|
-
|
|
2149
|
-
|
|
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);
|
|
2150
2469
|
}
|
|
2151
|
-
let
|
|
2470
|
+
let lineWidths = /* @__PURE__ */ new Set([
|
|
2152
2471
|
"thin",
|
|
2153
2472
|
"medium",
|
|
2154
2473
|
"thick"
|
|
2155
2474
|
]);
|
|
2156
|
-
function
|
|
2157
|
-
return
|
|
2158
|
-
}
|
|
2159
|
-
function
|
|
2160
|
-
let
|
|
2161
|
-
for (let
|
|
2162
|
-
if (!
|
|
2163
|
-
return
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
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([
|
|
2182
2525
|
"conic-gradient",
|
|
2183
2526
|
"linear-gradient",
|
|
2184
2527
|
"radial-gradient",
|
|
@@ -2186,29 +2529,60 @@ var ie = {}, we = {}, H = {};
|
|
|
2186
2529
|
"repeating-linear-gradient",
|
|
2187
2530
|
"repeating-radial-gradient"
|
|
2188
2531
|
]);
|
|
2189
|
-
function
|
|
2190
|
-
|
|
2191
|
-
for (let
|
|
2192
|
-
if (
|
|
2193
|
-
return
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
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([
|
|
2197
2542
|
"center",
|
|
2198
2543
|
"top",
|
|
2199
2544
|
"right",
|
|
2200
2545
|
"bottom",
|
|
2201
2546
|
"left"
|
|
2202
2547
|
]);
|
|
2203
|
-
function
|
|
2204
|
-
let
|
|
2205
|
-
|
|
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;
|
|
2206
2563
|
}
|
|
2207
|
-
function
|
|
2208
|
-
let
|
|
2209
|
-
|
|
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;
|
|
2210
2584
|
}
|
|
2211
|
-
let
|
|
2585
|
+
let genericNames = /* @__PURE__ */ new Set([
|
|
2212
2586
|
"serif",
|
|
2213
2587
|
"sans-serif",
|
|
2214
2588
|
"monospace",
|
|
@@ -2223,10 +2597,10 @@ var ie = {}, we = {}, H = {};
|
|
|
2223
2597
|
"emoji",
|
|
2224
2598
|
"fangsong"
|
|
2225
2599
|
]);
|
|
2226
|
-
function
|
|
2227
|
-
return
|
|
2600
|
+
function genericName(value) {
|
|
2601
|
+
return genericNames.has(value);
|
|
2228
2602
|
}
|
|
2229
|
-
let
|
|
2603
|
+
let absoluteSizes = /* @__PURE__ */ new Set([
|
|
2230
2604
|
"xx-small",
|
|
2231
2605
|
"x-small",
|
|
2232
2606
|
"small",
|
|
@@ -2236,424 +2610,593 @@ var ie = {}, we = {}, H = {};
|
|
|
2236
2610
|
"xx-large",
|
|
2237
2611
|
"xxx-large"
|
|
2238
2612
|
]);
|
|
2239
|
-
function
|
|
2240
|
-
return
|
|
2613
|
+
function absoluteSize(value) {
|
|
2614
|
+
return absoluteSizes.has(value);
|
|
2241
2615
|
}
|
|
2242
|
-
let
|
|
2616
|
+
let relativeSizes = /* @__PURE__ */ new Set([
|
|
2243
2617
|
"larger",
|
|
2244
2618
|
"smaller"
|
|
2245
2619
|
]);
|
|
2246
|
-
function
|
|
2247
|
-
return
|
|
2248
|
-
}
|
|
2249
|
-
})(
|
|
2250
|
-
var
|
|
2251
|
-
(function(
|
|
2252
|
-
Object.defineProperty(
|
|
2253
|
-
value:
|
|
2254
|
-
})
|
|
2255
|
-
|
|
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,
|
|
2256
2631
|
get: function() {
|
|
2257
|
-
return
|
|
2632
|
+
return backgroundSize;
|
|
2258
2633
|
}
|
|
2259
2634
|
});
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
|
|
2635
|
+
const _dataTypes = dataTypes;
|
|
2636
|
+
const _splitAtTopLevelOnly = splitAtTopLevelOnly;
|
|
2637
|
+
function backgroundSize(value) {
|
|
2638
|
+
let keywordValues = [
|
|
2263
2639
|
"cover",
|
|
2264
2640
|
"contain"
|
|
2265
2641
|
];
|
|
2266
|
-
return (0,
|
|
2267
|
-
let
|
|
2268
|
-
|
|
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");
|
|
2269
2649
|
});
|
|
2270
2650
|
}
|
|
2271
|
-
})(
|
|
2272
|
-
(function(
|
|
2273
|
-
Object.defineProperty(
|
|
2274
|
-
value:
|
|
2651
|
+
})(validateFormalSyntax);
|
|
2652
|
+
(function(exports) {
|
|
2653
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2654
|
+
value: true
|
|
2275
2655
|
});
|
|
2276
|
-
function
|
|
2277
|
-
for (var
|
|
2278
|
-
Object.defineProperty(
|
|
2279
|
-
enumerable:
|
|
2280
|
-
get:
|
|
2656
|
+
function _export(target, all) {
|
|
2657
|
+
for (var name in all)
|
|
2658
|
+
Object.defineProperty(target, name, {
|
|
2659
|
+
enumerable: true,
|
|
2660
|
+
get: all[name]
|
|
2281
2661
|
});
|
|
2282
2662
|
}
|
|
2283
|
-
|
|
2663
|
+
_export(exports, {
|
|
2284
2664
|
updateAllClasses: function() {
|
|
2285
|
-
return
|
|
2665
|
+
return updateAllClasses;
|
|
2286
2666
|
},
|
|
2287
2667
|
asValue: function() {
|
|
2288
|
-
return
|
|
2668
|
+
return asValue;
|
|
2289
2669
|
},
|
|
2290
2670
|
parseColorFormat: function() {
|
|
2291
|
-
return
|
|
2671
|
+
return parseColorFormat;
|
|
2292
2672
|
},
|
|
2293
2673
|
asColor: function() {
|
|
2294
|
-
return
|
|
2674
|
+
return asColor;
|
|
2295
2675
|
},
|
|
2296
2676
|
asLookupValue: function() {
|
|
2297
|
-
return
|
|
2677
|
+
return asLookupValue;
|
|
2298
2678
|
},
|
|
2299
2679
|
typeMap: function() {
|
|
2300
|
-
return
|
|
2680
|
+
return typeMap;
|
|
2301
2681
|
},
|
|
2302
2682
|
coerceValue: function() {
|
|
2303
|
-
return
|
|
2683
|
+
return coerceValue;
|
|
2304
2684
|
},
|
|
2305
2685
|
getMatchingTypes: function() {
|
|
2306
|
-
return
|
|
2686
|
+
return getMatchingTypes;
|
|
2307
2687
|
}
|
|
2308
2688
|
});
|
|
2309
|
-
const
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
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
|
|
2313
2698
|
};
|
|
2314
2699
|
}
|
|
2315
|
-
function
|
|
2316
|
-
|
|
2317
|
-
|
|
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
|
+
}
|
|
2318
2706
|
});
|
|
2319
2707
|
}
|
|
2320
|
-
function
|
|
2321
|
-
if (!
|
|
2322
|
-
return;
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
return
|
|
2334
|
-
}
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
let
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
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)
|
|
2355
2773
|
];
|
|
2356
2774
|
}
|
|
2357
|
-
function
|
|
2358
|
-
if (typeof
|
|
2359
|
-
let
|
|
2360
|
-
return ({ opacityValue
|
|
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);
|
|
2361
2779
|
}
|
|
2362
|
-
return
|
|
2780
|
+
return value;
|
|
2363
2781
|
}
|
|
2364
|
-
function
|
|
2365
|
-
return (0,
|
|
2782
|
+
function unwrapArbitraryModifier(modifier) {
|
|
2783
|
+
return (0, _dataTypes.normalize)(modifier.slice(1, -1));
|
|
2366
2784
|
}
|
|
2367
|
-
function
|
|
2368
|
-
var
|
|
2369
|
-
if (((
|
|
2370
|
-
var
|
|
2371
|
-
return
|
|
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]);
|
|
2372
2790
|
}
|
|
2373
|
-
let [
|
|
2374
|
-
if (
|
|
2375
|
-
var
|
|
2376
|
-
|
|
2377
|
-
|
|
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]);
|
|
2378
2807
|
}
|
|
2379
|
-
return
|
|
2380
|
-
validate:
|
|
2808
|
+
return asValue(modifier, options, {
|
|
2809
|
+
validate: _dataTypes.color
|
|
2381
2810
|
});
|
|
2382
2811
|
}
|
|
2383
|
-
function
|
|
2384
|
-
var
|
|
2385
|
-
return (
|
|
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];
|
|
2386
2815
|
}
|
|
2387
|
-
function
|
|
2388
|
-
return (
|
|
2389
|
-
|
|
2390
|
-
|
|
2816
|
+
function guess(validate) {
|
|
2817
|
+
return (modifier, options) => {
|
|
2818
|
+
return asValue(modifier, options, {
|
|
2819
|
+
validate
|
|
2820
|
+
});
|
|
2821
|
+
};
|
|
2391
2822
|
}
|
|
2392
|
-
let
|
|
2393
|
-
any:
|
|
2394
|
-
color:
|
|
2395
|
-
url:
|
|
2396
|
-
image:
|
|
2397
|
-
length:
|
|
2398
|
-
percentage:
|
|
2399
|
-
position:
|
|
2400
|
-
lookup:
|
|
2401
|
-
"generic-name":
|
|
2402
|
-
"family-name":
|
|
2403
|
-
number:
|
|
2404
|
-
"line-width":
|
|
2405
|
-
"absolute-size":
|
|
2406
|
-
"relative-size":
|
|
2407
|
-
shadow:
|
|
2408
|
-
size:
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
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)
|
|
2418
2852
|
];
|
|
2419
2853
|
}
|
|
2420
|
-
function
|
|
2421
|
-
if (
|
|
2422
|
-
for (let { type
|
|
2423
|
-
let
|
|
2424
|
-
tailwindConfig
|
|
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
|
|
2425
2859
|
});
|
|
2426
|
-
if (
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2860
|
+
if (result === void 0) {
|
|
2861
|
+
continue;
|
|
2862
|
+
}
|
|
2863
|
+
return [
|
|
2864
|
+
result,
|
|
2865
|
+
type,
|
|
2866
|
+
null
|
|
2867
|
+
];
|
|
2432
2868
|
}
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
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)) {
|
|
2438
2876
|
return [];
|
|
2439
|
-
|
|
2877
|
+
}
|
|
2878
|
+
if (value.length > 0 && supportedTypes.includes(explicitType)) {
|
|
2440
2879
|
return [
|
|
2441
|
-
|
|
2442
|
-
|
|
2880
|
+
asValue(`[${value}]`, options),
|
|
2881
|
+
explicitType,
|
|
2443
2882
|
null
|
|
2444
2883
|
];
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
let matches = getMatchingTypes(types, modifier, options, tailwindConfig);
|
|
2887
|
+
for (let match of matches) {
|
|
2888
|
+
return match;
|
|
2445
2889
|
}
|
|
2446
|
-
let p = U(l, x, w, o);
|
|
2447
|
-
for (let b of p)
|
|
2448
|
-
return b;
|
|
2449
2890
|
return [];
|
|
2450
2891
|
}
|
|
2451
|
-
function*
|
|
2452
|
-
let
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
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
|
+
}
|
|
2457
2914
|
}
|
|
2458
|
-
for (let { type
|
|
2459
|
-
let
|
|
2460
|
-
tailwindConfig
|
|
2915
|
+
for (let { type } of types !== null && types !== void 0 ? types : []) {
|
|
2916
|
+
let result = typeMap[type](modifier, options, {
|
|
2917
|
+
tailwindConfig
|
|
2461
2918
|
});
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2919
|
+
if (result === void 0) {
|
|
2920
|
+
continue;
|
|
2921
|
+
}
|
|
2922
|
+
yield [
|
|
2923
|
+
result,
|
|
2924
|
+
type,
|
|
2925
|
+
utilityModifier !== null && utilityModifier !== void 0 ? utilityModifier : null
|
|
2926
|
+
];
|
|
2467
2927
|
}
|
|
2468
2928
|
}
|
|
2469
|
-
})(
|
|
2470
|
-
var
|
|
2471
|
-
(function(
|
|
2472
|
-
Object.defineProperty(
|
|
2473
|
-
value:
|
|
2474
|
-
})
|
|
2475
|
-
|
|
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,
|
|
2476
2937
|
get: function() {
|
|
2477
|
-
return
|
|
2938
|
+
return toColorValue2;
|
|
2478
2939
|
}
|
|
2479
2940
|
});
|
|
2480
|
-
function
|
|
2481
|
-
return typeof
|
|
2482
|
-
}
|
|
2483
|
-
})(
|
|
2484
|
-
(function(
|
|
2485
|
-
Object.defineProperty(
|
|
2486
|
-
value:
|
|
2487
|
-
})
|
|
2488
|
-
|
|
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,
|
|
2489
2951
|
get: function() {
|
|
2490
|
-
return
|
|
2952
|
+
return resolveConfig2;
|
|
2491
2953
|
}
|
|
2492
2954
|
});
|
|
2493
|
-
const
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
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
|
|
2497
2970
|
};
|
|
2498
2971
|
}
|
|
2499
|
-
function
|
|
2500
|
-
return typeof
|
|
2972
|
+
function isFunction(input) {
|
|
2973
|
+
return typeof input === "function";
|
|
2501
2974
|
}
|
|
2502
|
-
function
|
|
2503
|
-
let
|
|
2504
|
-
for (let
|
|
2505
|
-
for (let
|
|
2506
|
-
let
|
|
2507
|
-
|
|
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
|
+
}
|
|
2508
2989
|
}
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
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;
|
|
2517
3002
|
}, {});
|
|
2518
3003
|
},
|
|
2519
|
-
breakpoints(
|
|
2520
|
-
return Object.keys(
|
|
2521
|
-
...
|
|
2522
|
-
[`screen-${
|
|
3004
|
+
breakpoints(screens2) {
|
|
3005
|
+
return Object.keys(screens2).filter((key) => typeof screens2[key] === "string").reduce((breakpoints, key) => ({
|
|
3006
|
+
...breakpoints,
|
|
3007
|
+
[`screen-${key}`]: screens2[key]
|
|
2523
3008
|
}), {});
|
|
2524
3009
|
}
|
|
2525
3010
|
};
|
|
2526
|
-
function
|
|
2527
|
-
return
|
|
2528
|
-
}
|
|
2529
|
-
function
|
|
2530
|
-
return
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
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) {
|
|
2541
3036
|
return {
|
|
2542
|
-
...
|
|
3037
|
+
...themes.reduce((merged, theme2) => (0, _defaults.defaults)(merged, theme2), {}),
|
|
2543
3038
|
// In order to resolve n config objects, we combine all of their `extend` properties
|
|
2544
3039
|
// into arrays instead of objects so they aren't overridden.
|
|
2545
|
-
extend:
|
|
3040
|
+
extend: collectExtends(themes)
|
|
2546
3041
|
};
|
|
2547
3042
|
}
|
|
2548
|
-
function
|
|
2549
|
-
if (Array.isArray(
|
|
2550
|
-
return
|
|
2551
|
-
|
|
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)) {
|
|
2552
3048
|
return [
|
|
2553
|
-
|
|
2554
|
-
...
|
|
3049
|
+
merged,
|
|
3050
|
+
...value2
|
|
2555
3051
|
];
|
|
2556
|
-
|
|
2557
|
-
|
|
3052
|
+
}
|
|
3053
|
+
if (Array.isArray(value2)) {
|
|
3054
|
+
return value2;
|
|
3055
|
+
}
|
|
3056
|
+
return void 0;
|
|
2558
3057
|
}
|
|
2559
|
-
function
|
|
2560
|
-
return
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
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
|
+
});
|
|
2564
3068
|
}
|
|
2565
|
-
function*
|
|
2566
|
-
let
|
|
2567
|
-
if (
|
|
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)) {
|
|
2568
3076
|
return;
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
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));
|
|
2585
3101
|
}
|
|
2586
|
-
|
|
3102
|
+
if ((0, _isPlainObject.default)(val)) {
|
|
3103
|
+
return (0, _cloneDeep.cloneDeep)(val);
|
|
3104
|
+
}
|
|
3105
|
+
return val;
|
|
2587
3106
|
}
|
|
2588
3107
|
}
|
|
2589
|
-
return
|
|
3108
|
+
return defaultValue;
|
|
2590
3109
|
};
|
|
2591
|
-
|
|
2592
|
-
theme:
|
|
2593
|
-
...
|
|
2594
|
-
})
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
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
|
|
2602
3125
|
];
|
|
2603
|
-
var
|
|
2604
|
-
const
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
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 : {}
|
|
2612
3140
|
])
|
|
2613
3141
|
];
|
|
2614
3142
|
});
|
|
2615
|
-
})
|
|
3143
|
+
});
|
|
3144
|
+
return allConfigs;
|
|
2616
3145
|
}
|
|
2617
|
-
function
|
|
2618
|
-
|
|
2619
|
-
...
|
|
2620
|
-
].reduceRight((
|
|
2621
|
-
|
|
2622
|
-
|
|
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;
|
|
2623
3158
|
}
|
|
2624
|
-
function
|
|
2625
|
-
|
|
2626
|
-
...
|
|
2627
|
-
].reduceRight((
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
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),
|
|
2635
3173
|
{
|
|
2636
3174
|
prefix: "",
|
|
2637
|
-
important:
|
|
3175
|
+
important: false,
|
|
2638
3176
|
separator: ":"
|
|
2639
3177
|
}
|
|
2640
3178
|
];
|
|
2641
|
-
var
|
|
2642
|
-
return (0,
|
|
2643
|
-
theme:
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
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 = {
|
|
2650
3193
|
content: [],
|
|
2651
3194
|
presets: [],
|
|
2652
3195
|
darkMode: "media",
|
|
2653
3196
|
// or 'class'
|
|
2654
3197
|
theme: {
|
|
2655
|
-
accentColor: ({ theme:
|
|
2656
|
-
...
|
|
3198
|
+
accentColor: ({ theme: theme2 }) => ({
|
|
3199
|
+
...theme2("colors"),
|
|
2657
3200
|
auto: "auto"
|
|
2658
3201
|
}),
|
|
2659
3202
|
animation: {
|
|
@@ -2679,16 +3222,16 @@ var Ae = {}, Ee = {
|
|
|
2679
3222
|
square: "1 / 1",
|
|
2680
3223
|
video: "16 / 9"
|
|
2681
3224
|
},
|
|
2682
|
-
backdropBlur: ({ theme:
|
|
2683
|
-
backdropBrightness: ({ theme:
|
|
2684
|
-
backdropContrast: ({ theme:
|
|
2685
|
-
backdropGrayscale: ({ theme:
|
|
2686
|
-
backdropHueRotate: ({ theme:
|
|
2687
|
-
backdropInvert: ({ theme:
|
|
2688
|
-
backdropOpacity: ({ theme:
|
|
2689
|
-
backdropSaturate: ({ theme:
|
|
2690
|
-
backdropSepia: ({ theme:
|
|
2691
|
-
backgroundColor: ({ theme:
|
|
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"),
|
|
2692
3235
|
backgroundImage: {
|
|
2693
3236
|
none: "none",
|
|
2694
3237
|
"gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
|
|
@@ -2700,7 +3243,7 @@ var Ae = {}, Ee = {
|
|
|
2700
3243
|
"gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
|
|
2701
3244
|
"gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
|
|
2702
3245
|
},
|
|
2703
|
-
backgroundOpacity: ({ theme:
|
|
3246
|
+
backgroundOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
2704
3247
|
backgroundPosition: {
|
|
2705
3248
|
bottom: "bottom",
|
|
2706
3249
|
center: "center",
|
|
@@ -2728,11 +3271,11 @@ var Ae = {}, Ee = {
|
|
|
2728
3271
|
"2xl": "40px",
|
|
2729
3272
|
"3xl": "64px"
|
|
2730
3273
|
},
|
|
2731
|
-
borderColor: ({ theme:
|
|
2732
|
-
...
|
|
2733
|
-
DEFAULT:
|
|
3274
|
+
borderColor: ({ theme: theme2 }) => ({
|
|
3275
|
+
...theme2("colors"),
|
|
3276
|
+
DEFAULT: theme2("colors.gray.200", "currentColor")
|
|
2734
3277
|
}),
|
|
2735
|
-
borderOpacity: ({ theme:
|
|
3278
|
+
borderOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
2736
3279
|
borderRadius: {
|
|
2737
3280
|
none: "0px",
|
|
2738
3281
|
sm: "0.125rem",
|
|
@@ -2744,8 +3287,8 @@ var Ae = {}, Ee = {
|
|
|
2744
3287
|
"3xl": "1.5rem",
|
|
2745
3288
|
full: "9999px"
|
|
2746
3289
|
},
|
|
2747
|
-
borderSpacing: ({ theme:
|
|
2748
|
-
...
|
|
3290
|
+
borderSpacing: ({ theme: theme2 }) => ({
|
|
3291
|
+
...theme2("spacing")
|
|
2749
3292
|
}),
|
|
2750
3293
|
borderWidth: {
|
|
2751
3294
|
DEFAULT: "1px",
|
|
@@ -2764,7 +3307,7 @@ var Ae = {}, Ee = {
|
|
|
2764
3307
|
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
2765
3308
|
none: "none"
|
|
2766
3309
|
},
|
|
2767
|
-
boxShadowColor: ({ theme:
|
|
3310
|
+
boxShadowColor: ({ theme: theme2 }) => theme2("colors"),
|
|
2768
3311
|
brightness: {
|
|
2769
3312
|
0: "0",
|
|
2770
3313
|
50: ".5",
|
|
@@ -2778,35 +3321,35 @@ var Ae = {}, Ee = {
|
|
|
2778
3321
|
150: "1.5",
|
|
2779
3322
|
200: "2"
|
|
2780
3323
|
},
|
|
2781
|
-
caretColor: ({ theme:
|
|
2782
|
-
colors: ({ colors:
|
|
2783
|
-
inherit:
|
|
2784
|
-
current:
|
|
2785
|
-
transparent:
|
|
2786
|
-
black:
|
|
2787
|
-
white:
|
|
2788
|
-
slate:
|
|
2789
|
-
gray:
|
|
2790
|
-
zinc:
|
|
2791
|
-
neutral:
|
|
2792
|
-
stone:
|
|
2793
|
-
red:
|
|
2794
|
-
orange:
|
|
2795
|
-
amber:
|
|
2796
|
-
yellow:
|
|
2797
|
-
lime:
|
|
2798
|
-
green:
|
|
2799
|
-
emerald:
|
|
2800
|
-
teal:
|
|
2801
|
-
cyan:
|
|
2802
|
-
sky:
|
|
2803
|
-
blue:
|
|
2804
|
-
indigo:
|
|
2805
|
-
violet:
|
|
2806
|
-
purple:
|
|
2807
|
-
fuchsia:
|
|
2808
|
-
pink:
|
|
2809
|
-
rose:
|
|
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
|
|
2810
3353
|
}),
|
|
2811
3354
|
columns: {
|
|
2812
3355
|
auto: "auto",
|
|
@@ -2887,9 +3430,9 @@ var Ae = {}, Ee = {
|
|
|
2887
3430
|
"zoom-in": "zoom-in",
|
|
2888
3431
|
"zoom-out": "zoom-out"
|
|
2889
3432
|
},
|
|
2890
|
-
divideColor: ({ theme:
|
|
2891
|
-
divideOpacity: ({ theme:
|
|
2892
|
-
divideWidth: ({ theme:
|
|
3433
|
+
divideColor: ({ theme: theme2 }) => theme2("borderColor"),
|
|
3434
|
+
divideOpacity: ({ theme: theme2 }) => theme2("borderOpacity"),
|
|
3435
|
+
divideWidth: ({ theme: theme2 }) => theme2("borderWidth"),
|
|
2893
3436
|
dropShadow: {
|
|
2894
3437
|
sm: "0 1px 1px rgb(0 0 0 / 0.05)",
|
|
2895
3438
|
DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
|
|
@@ -2899,9 +3442,9 @@ var Ae = {}, Ee = {
|
|
|
2899
3442
|
"2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
|
|
2900
3443
|
none: "0 0 #0000"
|
|
2901
3444
|
},
|
|
2902
|
-
fill: ({ theme:
|
|
3445
|
+
fill: ({ theme: theme2 }) => ({
|
|
2903
3446
|
none: "none",
|
|
2904
|
-
...
|
|
3447
|
+
...theme2("colors")
|
|
2905
3448
|
}),
|
|
2906
3449
|
flex: {
|
|
2907
3450
|
1: "1 1 0%",
|
|
@@ -2909,9 +3452,9 @@ var Ae = {}, Ee = {
|
|
|
2909
3452
|
initial: "0 1 auto",
|
|
2910
3453
|
none: "none"
|
|
2911
3454
|
},
|
|
2912
|
-
flexBasis: ({ theme:
|
|
3455
|
+
flexBasis: ({ theme: theme2 }) => ({
|
|
2913
3456
|
auto: "auto",
|
|
2914
|
-
...
|
|
3457
|
+
...theme2("spacing"),
|
|
2915
3458
|
"1/2": "50%",
|
|
2916
3459
|
"1/3": "33.333333%",
|
|
2917
3460
|
"2/3": "66.666667%",
|
|
@@ -2996,8 +3539,8 @@ var Ae = {}, Ee = {
|
|
|
2996
3539
|
extrabold: "800",
|
|
2997
3540
|
black: "900"
|
|
2998
3541
|
},
|
|
2999
|
-
gap: ({ theme:
|
|
3000
|
-
gradientColorStops: ({ theme:
|
|
3542
|
+
gap: ({ theme: theme2 }) => theme2("spacing"),
|
|
3543
|
+
gradientColorStops: ({ theme: theme2 }) => theme2("colors"),
|
|
3001
3544
|
gradientColorStopPositions: {
|
|
3002
3545
|
"0%": "0%",
|
|
3003
3546
|
"5%": "5%",
|
|
@@ -3165,9 +3708,9 @@ var Ae = {}, Ee = {
|
|
|
3165
3708
|
11: "repeat(11, minmax(0, 1fr))",
|
|
3166
3709
|
12: "repeat(12, minmax(0, 1fr))"
|
|
3167
3710
|
},
|
|
3168
|
-
height: ({ theme:
|
|
3711
|
+
height: ({ theme: theme2 }) => ({
|
|
3169
3712
|
auto: "auto",
|
|
3170
|
-
...
|
|
3713
|
+
...theme2("spacing"),
|
|
3171
3714
|
"1/2": "50%",
|
|
3172
3715
|
"1/3": "33.333333%",
|
|
3173
3716
|
"2/3": "66.666667%",
|
|
@@ -3200,9 +3743,9 @@ var Ae = {}, Ee = {
|
|
|
3200
3743
|
90: "90deg",
|
|
3201
3744
|
180: "180deg"
|
|
3202
3745
|
},
|
|
3203
|
-
inset: ({ theme:
|
|
3746
|
+
inset: ({ theme: theme2 }) => ({
|
|
3204
3747
|
auto: "auto",
|
|
3205
|
-
...
|
|
3748
|
+
...theme2("spacing"),
|
|
3206
3749
|
"1/2": "50%",
|
|
3207
3750
|
"1/3": "33.333333%",
|
|
3208
3751
|
"2/3": "66.666667%",
|
|
@@ -3275,9 +3818,9 @@ var Ae = {}, Ee = {
|
|
|
3275
3818
|
listStyleImage: {
|
|
3276
3819
|
none: "none"
|
|
3277
3820
|
},
|
|
3278
|
-
margin: ({ theme:
|
|
3821
|
+
margin: ({ theme: theme2 }) => ({
|
|
3279
3822
|
auto: "auto",
|
|
3280
|
-
...
|
|
3823
|
+
...theme2("spacing")
|
|
3281
3824
|
}),
|
|
3282
3825
|
lineClamp: {
|
|
3283
3826
|
1: "1",
|
|
@@ -3287,8 +3830,8 @@ var Ae = {}, Ee = {
|
|
|
3287
3830
|
5: "5",
|
|
3288
3831
|
6: "6"
|
|
3289
3832
|
},
|
|
3290
|
-
maxHeight: ({ theme:
|
|
3291
|
-
...
|
|
3833
|
+
maxHeight: ({ theme: theme2 }) => ({
|
|
3834
|
+
...theme2("spacing"),
|
|
3292
3835
|
none: "none",
|
|
3293
3836
|
full: "100%",
|
|
3294
3837
|
screen: "100vh",
|
|
@@ -3299,8 +3842,8 @@ var Ae = {}, Ee = {
|
|
|
3299
3842
|
max: "max-content",
|
|
3300
3843
|
fit: "fit-content"
|
|
3301
3844
|
}),
|
|
3302
|
-
maxWidth: ({ theme:
|
|
3303
|
-
...
|
|
3845
|
+
maxWidth: ({ theme: theme2, breakpoints }) => ({
|
|
3846
|
+
...theme2("spacing"),
|
|
3304
3847
|
none: "none",
|
|
3305
3848
|
xs: "20rem",
|
|
3306
3849
|
sm: "24rem",
|
|
@@ -3318,10 +3861,10 @@ var Ae = {}, Ee = {
|
|
|
3318
3861
|
max: "max-content",
|
|
3319
3862
|
fit: "fit-content",
|
|
3320
3863
|
prose: "65ch",
|
|
3321
|
-
...
|
|
3864
|
+
...breakpoints(theme2("screens"))
|
|
3322
3865
|
}),
|
|
3323
|
-
minHeight: ({ theme:
|
|
3324
|
-
...
|
|
3866
|
+
minHeight: ({ theme: theme2 }) => ({
|
|
3867
|
+
...theme2("spacing"),
|
|
3325
3868
|
full: "100%",
|
|
3326
3869
|
screen: "100vh",
|
|
3327
3870
|
svh: "100svh",
|
|
@@ -3331,8 +3874,8 @@ var Ae = {}, Ee = {
|
|
|
3331
3874
|
max: "max-content",
|
|
3332
3875
|
fit: "fit-content"
|
|
3333
3876
|
}),
|
|
3334
|
-
minWidth: ({ theme:
|
|
3335
|
-
...
|
|
3877
|
+
minWidth: ({ theme: theme2 }) => ({
|
|
3878
|
+
...theme2("spacing"),
|
|
3336
3879
|
full: "100%",
|
|
3337
3880
|
min: "min-content",
|
|
3338
3881
|
max: "max-content",
|
|
@@ -3389,7 +3932,7 @@ var Ae = {}, Ee = {
|
|
|
3389
3932
|
11: "11",
|
|
3390
3933
|
12: "12"
|
|
3391
3934
|
},
|
|
3392
|
-
outlineColor: ({ theme:
|
|
3935
|
+
outlineColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3393
3936
|
outlineOffset: {
|
|
3394
3937
|
0: "0px",
|
|
3395
3938
|
1: "1px",
|
|
@@ -3404,14 +3947,14 @@ var Ae = {}, Ee = {
|
|
|
3404
3947
|
4: "4px",
|
|
3405
3948
|
8: "8px"
|
|
3406
3949
|
},
|
|
3407
|
-
padding: ({ theme:
|
|
3408
|
-
placeholderColor: ({ theme:
|
|
3409
|
-
placeholderOpacity: ({ theme:
|
|
3410
|
-
ringColor: ({ theme:
|
|
3411
|
-
DEFAULT:
|
|
3412
|
-
...
|
|
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")
|
|
3413
3956
|
}),
|
|
3414
|
-
ringOffsetColor: ({ theme:
|
|
3957
|
+
ringOffsetColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3415
3958
|
ringOffsetWidth: {
|
|
3416
3959
|
0: "0px",
|
|
3417
3960
|
1: "1px",
|
|
@@ -3419,9 +3962,9 @@ var Ae = {}, Ee = {
|
|
|
3419
3962
|
4: "4px",
|
|
3420
3963
|
8: "8px"
|
|
3421
3964
|
},
|
|
3422
|
-
ringOpacity: ({ theme:
|
|
3965
|
+
ringOpacity: ({ theme: theme2 }) => ({
|
|
3423
3966
|
DEFAULT: "0.5",
|
|
3424
|
-
...
|
|
3967
|
+
...theme2("opacity")
|
|
3425
3968
|
}),
|
|
3426
3969
|
ringWidth: {
|
|
3427
3970
|
DEFAULT: "3px",
|
|
@@ -3468,10 +4011,10 @@ var Ae = {}, Ee = {
|
|
|
3468
4011
|
xl: "1280px",
|
|
3469
4012
|
"2xl": "1536px"
|
|
3470
4013
|
},
|
|
3471
|
-
scrollMargin: ({ theme:
|
|
3472
|
-
...
|
|
4014
|
+
scrollMargin: ({ theme: theme2 }) => ({
|
|
4015
|
+
...theme2("spacing")
|
|
3473
4016
|
}),
|
|
3474
|
-
scrollPadding: ({ theme:
|
|
4017
|
+
scrollPadding: ({ theme: theme2 }) => theme2("spacing"),
|
|
3475
4018
|
sepia: {
|
|
3476
4019
|
0: "0",
|
|
3477
4020
|
DEFAULT: "100%"
|
|
@@ -3484,8 +4027,8 @@ var Ae = {}, Ee = {
|
|
|
3484
4027
|
6: "6deg",
|
|
3485
4028
|
12: "12deg"
|
|
3486
4029
|
},
|
|
3487
|
-
space: ({ theme:
|
|
3488
|
-
...
|
|
4030
|
+
space: ({ theme: theme2 }) => ({
|
|
4031
|
+
...theme2("spacing")
|
|
3489
4032
|
}),
|
|
3490
4033
|
spacing: {
|
|
3491
4034
|
px: "1px",
|
|
@@ -3524,9 +4067,9 @@ var Ae = {}, Ee = {
|
|
|
3524
4067
|
80: "20rem",
|
|
3525
4068
|
96: "24rem"
|
|
3526
4069
|
},
|
|
3527
|
-
stroke: ({ theme:
|
|
4070
|
+
stroke: ({ theme: theme2 }) => ({
|
|
3528
4071
|
none: "none",
|
|
3529
|
-
...
|
|
4072
|
+
...theme2("colors")
|
|
3530
4073
|
}),
|
|
3531
4074
|
strokeWidth: {
|
|
3532
4075
|
0: "0",
|
|
@@ -3535,8 +4078,8 @@ var Ae = {}, Ee = {
|
|
|
3535
4078
|
},
|
|
3536
4079
|
supports: {},
|
|
3537
4080
|
data: {},
|
|
3538
|
-
textColor: ({ theme:
|
|
3539
|
-
textDecorationColor: ({ theme:
|
|
4081
|
+
textColor: ({ theme: theme2 }) => theme2("colors"),
|
|
4082
|
+
textDecorationColor: ({ theme: theme2 }) => theme2("colors"),
|
|
3540
4083
|
textDecorationThickness: {
|
|
3541
4084
|
auto: "auto",
|
|
3542
4085
|
"from-font": "from-font",
|
|
@@ -3546,10 +4089,10 @@ var Ae = {}, Ee = {
|
|
|
3546
4089
|
4: "4px",
|
|
3547
4090
|
8: "8px"
|
|
3548
4091
|
},
|
|
3549
|
-
textIndent: ({ theme:
|
|
3550
|
-
...
|
|
4092
|
+
textIndent: ({ theme: theme2 }) => ({
|
|
4093
|
+
...theme2("spacing")
|
|
3551
4094
|
}),
|
|
3552
|
-
textOpacity: ({ theme:
|
|
4095
|
+
textOpacity: ({ theme: theme2 }) => theme2("opacity"),
|
|
3553
4096
|
textUnderlineOffset: {
|
|
3554
4097
|
auto: "auto",
|
|
3555
4098
|
0: "0px",
|
|
@@ -3608,8 +4151,8 @@ var Ae = {}, Ee = {
|
|
|
3608
4151
|
out: "cubic-bezier(0, 0, 0.2, 1)",
|
|
3609
4152
|
"in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
3610
4153
|
},
|
|
3611
|
-
translate: ({ theme:
|
|
3612
|
-
...
|
|
4154
|
+
translate: ({ theme: theme2 }) => ({
|
|
4155
|
+
...theme2("spacing"),
|
|
3613
4156
|
"1/2": "50%",
|
|
3614
4157
|
"1/3": "33.333333%",
|
|
3615
4158
|
"2/3": "66.666667%",
|
|
@@ -3618,9 +4161,9 @@ var Ae = {}, Ee = {
|
|
|
3618
4161
|
"3/4": "75%",
|
|
3619
4162
|
full: "100%"
|
|
3620
4163
|
}),
|
|
3621
|
-
size: ({ theme:
|
|
4164
|
+
size: ({ theme: theme2 }) => ({
|
|
3622
4165
|
auto: "auto",
|
|
3623
|
-
...
|
|
4166
|
+
...theme2("spacing"),
|
|
3624
4167
|
"1/2": "50%",
|
|
3625
4168
|
"1/3": "33.333333%",
|
|
3626
4169
|
"2/3": "66.666667%",
|
|
@@ -3652,9 +4195,9 @@ var Ae = {}, Ee = {
|
|
|
3652
4195
|
max: "max-content",
|
|
3653
4196
|
fit: "fit-content"
|
|
3654
4197
|
}),
|
|
3655
|
-
width: ({ theme:
|
|
4198
|
+
width: ({ theme: theme2 }) => ({
|
|
3656
4199
|
auto: "auto",
|
|
3657
|
-
...
|
|
4200
|
+
...theme2("spacing"),
|
|
3658
4201
|
"1/2": "50%",
|
|
3659
4202
|
"1/3": "33.333333%",
|
|
3660
4203
|
"2/3": "66.666667%",
|
|
@@ -3708,87 +4251,103 @@ var Ae = {}, Ee = {
|
|
|
3708
4251
|
},
|
|
3709
4252
|
plugins: []
|
|
3710
4253
|
};
|
|
3711
|
-
(function(
|
|
3712
|
-
Object.defineProperty(
|
|
3713
|
-
value:
|
|
3714
|
-
})
|
|
3715
|
-
|
|
4254
|
+
(function(exports) {
|
|
4255
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4256
|
+
value: true
|
|
4257
|
+
});
|
|
4258
|
+
Object.defineProperty(exports, "default", {
|
|
4259
|
+
enumerable: true,
|
|
3716
4260
|
get: function() {
|
|
3717
|
-
return
|
|
4261
|
+
return getAllConfigs2;
|
|
3718
4262
|
}
|
|
3719
4263
|
});
|
|
3720
|
-
const
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
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
|
|
3724
4269
|
};
|
|
3725
4270
|
}
|
|
3726
|
-
function
|
|
3727
|
-
var
|
|
3728
|
-
const
|
|
3729
|
-
|
|
3730
|
-
]).slice().reverse().flatMap((
|
|
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 = {
|
|
3731
4277
|
// Add experimental configs here...
|
|
3732
4278
|
respectDefaultRingColorOpacity: {
|
|
3733
4279
|
theme: {
|
|
3734
|
-
ringColor: ({ theme:
|
|
4280
|
+
ringColor: ({ theme: theme2 }) => ({
|
|
3735
4281
|
DEFAULT: "#3b82f67f",
|
|
3736
|
-
...
|
|
4282
|
+
...theme2("colors")
|
|
3737
4283
|
})
|
|
3738
4284
|
}
|
|
3739
4285
|
},
|
|
3740
4286
|
disableColorOpacityUtilitiesByDefault: {
|
|
3741
4287
|
corePlugins: {
|
|
3742
|
-
backgroundOpacity:
|
|
3743
|
-
borderOpacity:
|
|
3744
|
-
divideOpacity:
|
|
3745
|
-
placeholderOpacity:
|
|
3746
|
-
ringOpacity:
|
|
3747
|
-
textOpacity:
|
|
4288
|
+
backgroundOpacity: false,
|
|
4289
|
+
borderOpacity: false,
|
|
4290
|
+
divideOpacity: false,
|
|
4291
|
+
placeholderOpacity: false,
|
|
4292
|
+
ringOpacity: false,
|
|
4293
|
+
textOpacity: false
|
|
3748
4294
|
}
|
|
3749
4295
|
}
|
|
3750
|
-
}
|
|
4296
|
+
};
|
|
4297
|
+
const experimentals = Object.keys(features).filter((feature) => (0, _featureFlags.flagEnabled)(config2, feature)).map((feature) => features[feature]);
|
|
3751
4298
|
return [
|
|
3752
|
-
|
|
3753
|
-
...
|
|
3754
|
-
...
|
|
4299
|
+
config2,
|
|
4300
|
+
...experimentals,
|
|
4301
|
+
...configs
|
|
3755
4302
|
];
|
|
3756
4303
|
}
|
|
3757
|
-
})(
|
|
3758
|
-
(function(
|
|
3759
|
-
Object.defineProperty(
|
|
3760
|
-
value:
|
|
3761
|
-
})
|
|
3762
|
-
|
|
4304
|
+
})(getAllConfigs);
|
|
4305
|
+
(function(exports) {
|
|
4306
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4307
|
+
value: true
|
|
4308
|
+
});
|
|
4309
|
+
Object.defineProperty(exports, "default", {
|
|
4310
|
+
enumerable: true,
|
|
3763
4311
|
get: function() {
|
|
3764
|
-
return
|
|
4312
|
+
return resolveConfig2;
|
|
3765
4313
|
}
|
|
3766
4314
|
});
|
|
3767
|
-
const
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
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
|
|
3771
4320
|
};
|
|
3772
4321
|
}
|
|
3773
|
-
function
|
|
3774
|
-
let [, ...
|
|
3775
|
-
return (0,
|
|
3776
|
-
...
|
|
3777
|
-
...
|
|
4322
|
+
function resolveConfig2(...configs) {
|
|
4323
|
+
let [, ...defaultConfigs] = (0, _getAllConfigs.default)(configs[0]);
|
|
4324
|
+
return (0, _resolveConfig.default)([
|
|
4325
|
+
...configs,
|
|
4326
|
+
...defaultConfigs
|
|
3778
4327
|
]);
|
|
3779
4328
|
}
|
|
3780
|
-
})(
|
|
3781
|
-
let
|
|
3782
|
-
var
|
|
3783
|
-
const
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
const
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
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);
|
|
4334
|
+
const theme = config.theme;
|
|
4335
|
+
const colors = theme == null ? void 0 : theme.colors;
|
|
4336
|
+
(_a = theme == null ? void 0 : theme.extend) == null ? void 0 : _a.colors;
|
|
4337
|
+
const screens = theme == null ? void 0 : theme.screens;
|
|
4338
|
+
const getColor = (name) => {
|
|
4339
|
+
return colors == null ? void 0 : colors[name];
|
|
4340
|
+
};
|
|
4341
|
+
const getColorDeep = (color2) => {
|
|
4342
|
+
const baseColor = color2.split("-").slice(0, -1).join("-");
|
|
4343
|
+
const colorNumber = String(color2.split("-").pop());
|
|
4344
|
+
return get(getColor(baseColor), colorNumber);
|
|
4345
|
+
};
|
|
4346
|
+
const getScreen = (size) => {
|
|
4347
|
+
return screens == null ? void 0 : screens[size];
|
|
4348
|
+
};
|
|
3790
4349
|
export {
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
4350
|
+
getColor,
|
|
4351
|
+
getColorDeep,
|
|
4352
|
+
getScreen
|
|
3794
4353
|
};
|