tailwindcss 0.0.0-oxide-insiders.a7fe2fe → 0.0.0-oxide-insiders.759a8c2

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.
Files changed (108) hide show
  1. package/lib/cli/build/deps.js +34 -18
  2. package/lib/cli/build/index.js +45 -12
  3. package/lib/cli/build/plugin.js +273 -90
  4. package/lib/cli/build/utils.js +56 -24
  5. package/lib/cli/build/watching.js +156 -38
  6. package/lib/cli/help/index.js +61 -16
  7. package/lib/cli/index.js +121 -62
  8. package/lib/cli/init/index.js +47 -23
  9. package/lib/cli-peer-dependencies.js +23 -13
  10. package/lib/cli.js +5 -1
  11. package/lib/corePluginList.js +7 -4
  12. package/lib/corePlugins.js +855 -386
  13. package/lib/featureFlags.js +43 -18
  14. package/lib/lib/cacheInvalidation.js +78 -30
  15. package/lib/lib/collapseAdjacentRules.js +46 -23
  16. package/lib/lib/collapseDuplicateDeclarations.js +70 -27
  17. package/lib/lib/content.js +134 -41
  18. package/lib/lib/defaultExtractor.js +201 -96
  19. package/lib/lib/detectNesting.js +38 -12
  20. package/lib/lib/evaluateTailwindFunctions.js +192 -103
  21. package/lib/lib/expandApplyAtRules.js +488 -181
  22. package/lib/lib/expandTailwindAtRules.js +240 -70
  23. package/lib/lib/findAtConfigPath.js +34 -15
  24. package/lib/lib/generateRules.js +775 -353
  25. package/lib/lib/getModuleDependencies.js +67 -29
  26. package/lib/lib/load-config.js +27 -17
  27. package/lib/lib/normalizeTailwindDirectives.js +73 -27
  28. package/lib/lib/offsets.js +227 -62
  29. package/lib/lib/partitionApplyAtRules.js +53 -29
  30. package/lib/lib/regex.js +50 -28
  31. package/lib/lib/remap-bitfield.js +86 -9
  32. package/lib/lib/resolveDefaultsAtRules.js +123 -53
  33. package/lib/lib/setupContextUtils.js +1117 -584
  34. package/lib/lib/setupTrackingContext.js +149 -58
  35. package/lib/lib/sharedState.js +71 -23
  36. package/lib/lib/substituteScreenAtRules.js +19 -9
  37. package/lib/oxide/cli/build/deps.js +46 -23
  38. package/lib/oxide/cli/build/index.js +44 -12
  39. package/lib/oxide/cli/build/plugin.js +271 -89
  40. package/lib/oxide/cli/build/utils.js +55 -24
  41. package/lib/oxide/cli/build/watching.js +153 -36
  42. package/lib/oxide/cli/help/index.js +60 -16
  43. package/lib/oxide/cli/index.js +128 -67
  44. package/lib/oxide/cli/init/index.js +40 -19
  45. package/lib/oxide/cli.js +3 -2
  46. package/lib/plugin.js +58 -31
  47. package/lib/postcss-plugins/nesting/index.js +13 -7
  48. package/lib/postcss-plugins/nesting/plugin.js +65 -20
  49. package/lib/processTailwindFeatures.js +41 -10
  50. package/lib/public/colors.js +25 -16
  51. package/lib/public/create-plugin.js +11 -6
  52. package/lib/public/default-config.js +12 -6
  53. package/lib/public/default-theme.js +12 -6
  54. package/lib/public/load-config.js +9 -5
  55. package/lib/public/resolve-config.js +10 -6
  56. package/lib/util/applyImportantSelector.js +28 -17
  57. package/lib/util/bigSign.js +9 -6
  58. package/lib/util/buildMediaQuery.js +19 -10
  59. package/lib/util/cloneDeep.js +19 -9
  60. package/lib/util/cloneNodes.js +29 -14
  61. package/lib/util/color.js +87 -47
  62. package/lib/util/colorNames.js +752 -0
  63. package/lib/util/configurePlugins.js +18 -9
  64. package/lib/util/createPlugin.js +17 -8
  65. package/lib/util/createUtilityPlugin.js +30 -16
  66. package/lib/util/dataTypes.js +189 -38
  67. package/lib/util/defaults.js +21 -9
  68. package/lib/util/escapeClassName.js +15 -9
  69. package/lib/util/escapeCommas.js +9 -6
  70. package/lib/util/flattenColorPalette.js +11 -7
  71. package/lib/util/formatVariantSelector.js +209 -60
  72. package/lib/util/getAllConfigs.js +44 -35
  73. package/lib/util/hashConfig.js +12 -8
  74. package/lib/util/isKeyframeRule.js +10 -7
  75. package/lib/util/isPlainObject.js +14 -9
  76. package/lib/util/isSyntacticallyValidPropertyValue.js +45 -14
  77. package/lib/util/log.js +20 -9
  78. package/lib/util/nameClass.js +31 -10
  79. package/lib/util/negateValue.js +28 -10
  80. package/lib/util/normalizeConfig.js +242 -63
  81. package/lib/util/normalizeScreens.js +145 -70
  82. package/lib/util/parseAnimationValue.js +64 -14
  83. package/lib/util/parseBoxShadowValue.js +63 -14
  84. package/lib/util/parseDependency.js +39 -13
  85. package/lib/util/parseGlob.js +25 -8
  86. package/lib/util/parseObjectStyles.js +29 -18
  87. package/lib/util/pluginUtils.js +196 -77
  88. package/lib/util/prefixSelector.js +31 -12
  89. package/lib/util/pseudoElements.js +116 -34
  90. package/lib/util/removeAlphaVariables.js +23 -8
  91. package/lib/util/resolveConfig.js +224 -105
  92. package/lib/util/resolveConfigPath.js +45 -15
  93. package/lib/util/responsive.js +10 -6
  94. package/lib/util/splitAtTopLevelOnly.js +46 -10
  95. package/lib/util/tap.js +11 -7
  96. package/lib/util/toColorValue.js +10 -7
  97. package/lib/util/toPath.js +28 -8
  98. package/lib/util/transformThemeValue.js +49 -14
  99. package/lib/util/validateConfig.js +25 -15
  100. package/lib/util/validateFormalSyntax.js +14 -6
  101. package/lib/util/withAlphaVariable.js +54 -30
  102. package/package.json +18 -22
  103. package/peers/index.js +57849 -43101
  104. package/src/lib/expandTailwindAtRules.js +1 -1
  105. package/src/lib/setupTrackingContext.js +1 -1
  106. package/src/util/color.js +1 -1
  107. package/src/util/colorNames.js +150 -0
  108. package/src/util/pseudoElements.js +4 -4
@@ -1,74 +1,143 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: !0
4
- }), function(target, all) {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
5
6
  for(var name in all)Object.defineProperty(target, name, {
6
- enumerable: !0,
7
+ enumerable: true,
7
8
  get: all[name]
8
9
  });
9
- }(exports, {
10
- variantPlugins: ()=>variantPlugins,
11
- corePlugins: ()=>corePlugins
10
+ }
11
+ _export(exports, {
12
+ variantPlugins: function() {
13
+ return variantPlugins;
14
+ },
15
+ corePlugins: function() {
16
+ return corePlugins;
17
+ }
12
18
  });
13
- const _fs = _interopRequireDefault(require("fs")), _path = _interopRequireWildcard(require("path")), _postcss = _interopRequireDefault(require("postcss")), _createUtilityPlugin = _interopRequireDefault(require("./util/createUtilityPlugin")), _buildMediaQuery = _interopRequireDefault(require("./util/buildMediaQuery")), _escapeClassName = _interopRequireDefault(require("./util/escapeClassName")), _parseAnimationValue = _interopRequireDefault(require("./util/parseAnimationValue")), _flattenColorPalette = _interopRequireDefault(require("./util/flattenColorPalette")), _withAlphaVariable = _interopRequireWildcard(require("./util/withAlphaVariable")), _toColorValue = _interopRequireDefault(require("./util/toColorValue")), _isPlainObject = _interopRequireDefault(require("./util/isPlainObject")), _transformThemeValue = _interopRequireDefault(require("./util/transformThemeValue")), _packageJson = require("../package.json"), _log = _interopRequireDefault(require("./util/log")), _normalizeScreens = require("./util/normalizeScreens"), _parseBoxShadowValue = require("./util/parseBoxShadowValue"), _removeAlphaVariables = require("./util/removeAlphaVariables"), _featureFlags = require("./featureFlags"), _dataTypes = require("./util/dataTypes");
14
- function _interopRequireDefault(obj) {
19
+ const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
20
+ const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
21
+ const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
22
+ const _createUtilityPlugin = /*#__PURE__*/ _interop_require_default(require("./util/createUtilityPlugin"));
23
+ const _buildMediaQuery = /*#__PURE__*/ _interop_require_default(require("./util/buildMediaQuery"));
24
+ const _escapeClassName = /*#__PURE__*/ _interop_require_default(require("./util/escapeClassName"));
25
+ const _parseAnimationValue = /*#__PURE__*/ _interop_require_default(require("./util/parseAnimationValue"));
26
+ const _flattenColorPalette = /*#__PURE__*/ _interop_require_default(require("./util/flattenColorPalette"));
27
+ const _withAlphaVariable = /*#__PURE__*/ _interop_require_wildcard(require("./util/withAlphaVariable"));
28
+ const _toColorValue = /*#__PURE__*/ _interop_require_default(require("./util/toColorValue"));
29
+ const _isPlainObject = /*#__PURE__*/ _interop_require_default(require("./util/isPlainObject"));
30
+ const _transformThemeValue = /*#__PURE__*/ _interop_require_default(require("./util/transformThemeValue"));
31
+ const _packagejson = require("../package.json");
32
+ const _log = /*#__PURE__*/ _interop_require_default(require("./util/log"));
33
+ const _normalizeScreens = require("./util/normalizeScreens");
34
+ const _parseBoxShadowValue = require("./util/parseBoxShadowValue");
35
+ const _removeAlphaVariables = require("./util/removeAlphaVariables");
36
+ const _featureFlags = require("./featureFlags");
37
+ const _dataTypes = require("./util/dataTypes");
38
+ function _interop_require_default(obj) {
15
39
  return obj && obj.__esModule ? obj : {
16
40
  default: obj
17
41
  };
18
42
  }
19
43
  function _getRequireWildcardCache(nodeInterop) {
20
- if ("function" != typeof WeakMap) return null;
21
- var cacheBabelInterop = new WeakMap(), cacheNodeInterop = new WeakMap();
44
+ if (typeof WeakMap !== "function") return null;
45
+ var cacheBabelInterop = new WeakMap();
46
+ var cacheNodeInterop = new WeakMap();
22
47
  return (_getRequireWildcardCache = function(nodeInterop) {
23
48
  return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
24
49
  })(nodeInterop);
25
50
  }
26
- function _interopRequireWildcard(obj, nodeInterop) {
27
- if (!nodeInterop && obj && obj.__esModule) return obj;
28
- if (null === obj || "object" != typeof obj && "function" != typeof obj) return {
29
- default: obj
30
- };
51
+ function _interop_require_wildcard(obj, nodeInterop) {
52
+ if (!nodeInterop && obj && obj.__esModule) {
53
+ return obj;
54
+ }
55
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
56
+ return {
57
+ default: obj
58
+ };
59
+ }
31
60
  var cache = _getRequireWildcardCache(nodeInterop);
32
- if (cache && cache.has(obj)) return cache.get(obj);
33
- var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
34
- for(var key in obj)if ("default" !== key && Object.prototype.hasOwnProperty.call(obj, key)) {
35
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
36
- desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key];
61
+ if (cache && cache.has(obj)) {
62
+ return cache.get(obj);
63
+ }
64
+ var newObj = {};
65
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
66
+ for(var key in obj){
67
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
68
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
69
+ if (desc && (desc.get || desc.set)) {
70
+ Object.defineProperty(newObj, key, desc);
71
+ } else {
72
+ newObj[key] = obj[key];
73
+ }
74
+ }
75
+ }
76
+ newObj.default = obj;
77
+ if (cache) {
78
+ cache.set(obj, newObj);
37
79
  }
38
- return newObj.default = obj, cache && cache.set(obj, newObj), newObj;
80
+ return newObj;
39
81
  }
40
82
  let variantPlugins = {
41
83
  pseudoElementVariants: ({ addVariant })=>{
42
- addVariant("first-letter", "&::first-letter"), addVariant("first-line", "&::first-line"), addVariant("marker", [
43
- ({ container })=>((0, _removeAlphaVariables.removeAlphaVariables)(container, [
84
+ addVariant("first-letter", "&::first-letter");
85
+ addVariant("first-line", "&::first-line");
86
+ addVariant("marker", [
87
+ ({ container })=>{
88
+ (0, _removeAlphaVariables.removeAlphaVariables)(container, [
44
89
  "--tw-text-opacity"
45
- ]), "& *::marker"),
46
- ({ container })=>((0, _removeAlphaVariables.removeAlphaVariables)(container, [
90
+ ]);
91
+ return "& *::marker";
92
+ },
93
+ ({ container })=>{
94
+ (0, _removeAlphaVariables.removeAlphaVariables)(container, [
47
95
  "--tw-text-opacity"
48
- ]), "&::marker")
49
- ]), addVariant("selection", [
96
+ ]);
97
+ return "&::marker";
98
+ }
99
+ ]);
100
+ addVariant("selection", [
50
101
  "& *::selection",
51
102
  "&::selection"
52
- ]), addVariant("file", "&::file-selector-button"), addVariant("placeholder", "&::placeholder"), addVariant("backdrop", "&::backdrop"), addVariant("before", ({ container })=>(container.walkRules((rule)=>{
53
- let foundContent = !1;
103
+ ]);
104
+ addVariant("file", "&::file-selector-button");
105
+ addVariant("placeholder", "&::placeholder");
106
+ addVariant("backdrop", "&::backdrop");
107
+ addVariant("before", ({ container })=>{
108
+ container.walkRules((rule)=>{
109
+ let foundContent = false;
54
110
  rule.walkDecls("content", ()=>{
55
- foundContent = !0;
56
- }), foundContent || rule.prepend(_postcss.default.decl({
57
- prop: "content",
58
- value: "var(--tw-content)"
59
- }));
60
- }), "&::before")), addVariant("after", ({ container })=>(container.walkRules((rule)=>{
61
- let foundContent = !1;
111
+ foundContent = true;
112
+ });
113
+ if (!foundContent) {
114
+ rule.prepend(_postcss.default.decl({
115
+ prop: "content",
116
+ value: "var(--tw-content)"
117
+ }));
118
+ }
119
+ });
120
+ return "&::before";
121
+ });
122
+ addVariant("after", ({ container })=>{
123
+ container.walkRules((rule)=>{
124
+ let foundContent = false;
62
125
  rule.walkDecls("content", ()=>{
63
- foundContent = !0;
64
- }), foundContent || rule.prepend(_postcss.default.decl({
65
- prop: "content",
66
- value: "var(--tw-content)"
67
- }));
68
- }), "&::after"));
126
+ foundContent = true;
127
+ });
128
+ if (!foundContent) {
129
+ rule.prepend(_postcss.default.decl({
130
+ prop: "content",
131
+ value: "var(--tw-content)"
132
+ }));
133
+ }
134
+ });
135
+ return "&::after";
136
+ });
69
137
  },
70
138
  pseudoClassVariants: ({ addVariant , matchVariant , config })=>{
71
139
  let pseudoVariants = [
140
+ // Positional
72
141
  [
73
142
  "first",
74
143
  "&:first-child"
@@ -92,19 +161,24 @@ let variantPlugins = {
92
161
  "first-of-type",
93
162
  "last-of-type",
94
163
  "only-of-type",
164
+ // State
95
165
  [
96
166
  "visited",
97
- ({ container })=>((0, _removeAlphaVariables.removeAlphaVariables)(container, [
167
+ ({ container })=>{
168
+ (0, _removeAlphaVariables.removeAlphaVariables)(container, [
98
169
  "--tw-text-opacity",
99
170
  "--tw-border-opacity",
100
171
  "--tw-bg-opacity"
101
- ]), "&:visited")
172
+ ]);
173
+ return "&:visited";
174
+ }
102
175
  ],
103
176
  "target",
104
177
  [
105
178
  "open",
106
179
  "&[open]"
107
180
  ],
181
+ // Forms
108
182
  "default",
109
183
  "checked",
110
184
  "indeterminate",
@@ -117,11 +191,13 @@ let variantPlugins = {
117
191
  "in-range",
118
192
  "out-of-range",
119
193
  "read-only",
194
+ // Content
120
195
  "empty",
196
+ // Interactive
121
197
  "focus-within",
122
198
  [
123
199
  "hover",
124
- (0, _featureFlags.flagEnabled)(config(), "hoverOnlyWhenSupported") ? "@media (hover: hover) and (pointer: fine) { &:hover }" : "&:hover"
200
+ !(0, _featureFlags.flagEnabled)(config(), "hoverOnlyWhenSupported") ? "&:hover" : "@media (hover: hover) and (pointer: fine) { &:hover }"
125
201
  ],
126
202
  "focus",
127
203
  "focus-visible",
@@ -132,102 +208,186 @@ let variantPlugins = {
132
208
  variant,
133
209
  `&:${variant}`
134
210
  ]);
135
- for (let [variantName, state] of pseudoVariants)addVariant(variantName, (ctx)=>"function" == typeof state ? state(ctx) : state);
136
- for (let [name, fn] of Object.entries({
211
+ for (let [variantName, state] of pseudoVariants){
212
+ addVariant(variantName, (ctx)=>{
213
+ let result = typeof state === "function" ? state(ctx) : state;
214
+ return result;
215
+ });
216
+ }
217
+ let variants = {
137
218
  group: (_, { modifier })=>modifier ? [
138
219
  `:merge(.group\\/${(0, _escapeClassName.default)(modifier)})`,
139
220
  " &"
140
221
  ] : [
141
- ":merge(.group)",
222
+ `:merge(.group)`,
142
223
  " &"
143
224
  ],
144
225
  peer: (_, { modifier })=>modifier ? [
145
226
  `:merge(.peer\\/${(0, _escapeClassName.default)(modifier)})`,
146
227
  " ~ &"
147
228
  ] : [
148
- ":merge(.peer)",
229
+ `:merge(.peer)`,
149
230
  " ~ &"
150
231
  ]
151
- }))matchVariant(name, (value = "", extra)=>{
152
- let result = (0, _dataTypes.normalize)("function" == typeof value ? value(extra) : value);
153
- result.includes("&") || (result = "&" + result);
154
- let [a, b] = fn("", extra), start = null, end = null, quotes = 0;
155
- for(let i = 0; i < result.length; ++i){
156
- let c = result[i];
157
- "&" === c ? start = i : "'" === c || '"' === c ? quotes += 1 : null === start || " " !== c || quotes || (end = i);
158
- }
159
- return null !== start && null === end && (end = result.length), result.slice(0, start) + a + result.slice(start + 1, end) + b + result.slice(end);
160
- }, {
161
- values: Object.fromEntries(pseudoVariants)
162
- });
232
+ };
233
+ for (let [name, fn] of Object.entries(variants)){
234
+ matchVariant(name, (value = "", extra)=>{
235
+ let result = (0, _dataTypes.normalize)(typeof value === "function" ? value(extra) : value);
236
+ if (!result.includes("&")) result = "&" + result;
237
+ let [a, b] = fn("", extra);
238
+ let start = null;
239
+ let end = null;
240
+ let quotes = 0;
241
+ for(let i = 0; i < result.length; ++i){
242
+ let c = result[i];
243
+ if (c === "&") {
244
+ start = i;
245
+ } else if (c === "'" || c === '"') {
246
+ quotes += 1;
247
+ } else if (start !== null && c === " " && !quotes) {
248
+ end = i;
249
+ }
250
+ }
251
+ if (start !== null && end === null) {
252
+ end = result.length;
253
+ }
254
+ // Basically this but can handle quotes:
255
+ // result.replace(/&(\S+)?/g, (_, pseudo = '') => a + pseudo + b)
256
+ return result.slice(0, start) + a + result.slice(start + 1, end) + b + result.slice(end);
257
+ }, {
258
+ values: Object.fromEntries(pseudoVariants)
259
+ });
260
+ }
163
261
  },
164
262
  directionVariants: ({ addVariant })=>{
165
- addVariant("ltr", ':is([dir="ltr"] &)'), addVariant("rtl", ':is([dir="rtl"] &)');
263
+ addVariant("ltr", ':is([dir="ltr"] &)');
264
+ addVariant("rtl", ':is([dir="rtl"] &)');
166
265
  },
167
266
  reducedMotionVariants: ({ addVariant })=>{
168
- addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)"), addVariant("motion-reduce", "@media (prefers-reduced-motion: reduce)");
267
+ addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
268
+ addVariant("motion-reduce", "@media (prefers-reduced-motion: reduce)");
169
269
  },
170
270
  darkVariants: ({ config , addVariant })=>{
171
271
  let [mode, className = ".dark"] = [].concat(config("darkMode", "media"));
172
- !1 === mode && (mode = "media", _log.default.warn("darkmode-false", [
173
- "The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.",
174
- "Change `darkMode` to `media` or remove it entirely.",
175
- "https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"
176
- ])), "class" === mode ? addVariant("dark", `:is(${className} &)`) : "media" === mode && addVariant("dark", "@media (prefers-color-scheme: dark)");
272
+ if (mode === false) {
273
+ mode = "media";
274
+ _log.default.warn("darkmode-false", [
275
+ "The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.",
276
+ "Change `darkMode` to `media` or remove it entirely.",
277
+ "https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"
278
+ ]);
279
+ }
280
+ if (mode === "class") {
281
+ addVariant("dark", `:is(${className} &)`);
282
+ } else if (mode === "media") {
283
+ addVariant("dark", "@media (prefers-color-scheme: dark)");
284
+ }
177
285
  },
178
286
  printVariant: ({ addVariant })=>{
179
287
  addVariant("print", "@media print");
180
288
  },
181
289
  screenVariants: ({ theme , addVariant , matchVariant })=>{
182
290
  var _theme;
183
- let areSimpleScreens = Object.values(null !== (_theme = theme("screens")) && void 0 !== _theme ? _theme : {}).every((v)=>"string" == typeof v), screens = (0, _normalizeScreens.normalizeScreens)(theme("screens")), unitCache = new Set([]);
184
- function recordUnits(value) {
185
- if (void 0 !== value) {
186
- var _value_match, _value_match_;
187
- unitCache.add(null !== (_value_match_ = null === (_value_match = value.match(/(\D+)$/)) || void 0 === _value_match ? void 0 : _value_match[1]) && void 0 !== _value_match_ ? _value_match_ : "(none)");
291
+ let rawScreens = (_theme = theme("screens")) !== null && _theme !== void 0 ? _theme : {};
292
+ let areSimpleScreens = Object.values(rawScreens).every((v)=>typeof v === "string");
293
+ let screens = (0, _normalizeScreens.normalizeScreens)(theme("screens"));
294
+ /** @type {Set<string>} */ let unitCache = new Set([]);
295
+ /** @param {string} value */ function units(value) {
296
+ var _value_match;
297
+ var _value_match_;
298
+ return (_value_match_ = (_value_match = value.match(/(\D+)$/)) === null || _value_match === void 0 ? void 0 : _value_match[1]) !== null && _value_match_ !== void 0 ? _value_match_ : "(none)";
299
+ }
300
+ /** @param {string} value */ function recordUnits(value) {
301
+ if (value !== undefined) {
302
+ unitCache.add(units(value));
303
+ }
304
+ }
305
+ /** @param {string} value */ function canUseUnits(value) {
306
+ recordUnits(value);
307
+ // If the cache was empty it'll become 1 because we've just added the current unit
308
+ // If the cache was not empty and the units are the same the size doesn't change
309
+ // Otherwise, if the units are different from what is already known the size will always be > 1
310
+ return unitCache.size === 1;
311
+ }
312
+ for (const screen of screens){
313
+ for (const value of screen.values){
314
+ recordUnits(value.min);
315
+ recordUnits(value.max);
188
316
  }
189
317
  }
190
- for (let screen of screens)for (let value of screen.values)recordUnits(value.min), recordUnits(value.max);
191
318
  let screensUseConsistentUnits = unitCache.size <= 1;
192
- function buildSort(type) {
319
+ /**
320
+ * @typedef {import('./util/normalizeScreens').Screen} Screen
321
+ */ /**
322
+ * @param {'min' | 'max'} type
323
+ * @returns {Record<string, Screen>}
324
+ */ function buildScreenValues(type) {
325
+ return Object.fromEntries(screens.filter((screen)=>(0, _normalizeScreens.isScreenSortable)(screen).result).map((screen)=>{
326
+ let { min , max } = screen.values[0];
327
+ if (type === "min" && min !== undefined) {
328
+ return screen;
329
+ } else if (type === "min" && max !== undefined) {
330
+ return {
331
+ ...screen,
332
+ not: !screen.not
333
+ };
334
+ } else if (type === "max" && max !== undefined) {
335
+ return screen;
336
+ } else if (type === "max" && min !== undefined) {
337
+ return {
338
+ ...screen,
339
+ not: !screen.not
340
+ };
341
+ }
342
+ }).map((screen)=>[
343
+ screen.name,
344
+ screen
345
+ ]));
346
+ }
347
+ /**
348
+ * @param {'min' | 'max'} type
349
+ * @returns {(a: { value: string | Screen }, z: { value: string | Screen }) => number}
350
+ */ function buildSort(type) {
193
351
  return (a, z)=>(0, _normalizeScreens.compareScreens)(type, a.value, z.value);
194
352
  }
195
- let maxSort = buildSort("max"), minSort = buildSort("min");
196
- function buildScreenVariant(type) {
197
- return (value)=>areSimpleScreens ? screensUseConsistentUnits ? "string" == typeof value && (recordUnits(value), 1 !== unitCache.size) ? (_log.default.warn("minmax-have-mixed-units", [
198
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
199
- ]), []) : [
353
+ let maxSort = buildSort("max");
354
+ let minSort = buildSort("min");
355
+ /** @param {'min'|'max'} type */ function buildScreenVariant(type) {
356
+ return (value)=>{
357
+ if (!areSimpleScreens) {
358
+ _log.default.warn("complex-screen-config", [
359
+ "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing objects."
360
+ ]);
361
+ return [];
362
+ } else if (!screensUseConsistentUnits) {
363
+ _log.default.warn("mixed-screen-units", [
364
+ "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
365
+ ]);
366
+ return [];
367
+ } else if (typeof value === "string" && !canUseUnits(value)) {
368
+ _log.default.warn("minmax-have-mixed-units", [
369
+ "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
370
+ ]);
371
+ return [];
372
+ }
373
+ return [
200
374
  `@media ${(0, _buildMediaQuery.default)((0, _normalizeScreens.toScreen)(value, type))}`
201
- ] : (_log.default.warn("mixed-screen-units", [
202
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
203
- ]), []) : (_log.default.warn("complex-screen-config", [
204
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing objects."
205
- ]), []);
375
+ ];
376
+ };
206
377
  }
207
378
  matchVariant("max", buildScreenVariant("max"), {
208
379
  sort: maxSort,
209
- values: areSimpleScreens ? function(type) {
210
- return Object.fromEntries(screens.filter((screen)=>(0, _normalizeScreens.isScreenSortable)(screen).result).map((screen)=>{
211
- let { min , max } = screen.values[0];
212
- return "min" === type && void 0 !== min ? screen : "min" === type && void 0 !== max ? {
213
- ...screen,
214
- not: !screen.not
215
- } : "max" === type && void 0 !== max ? screen : "max" === type && void 0 !== min ? {
216
- ...screen,
217
- not: !screen.not
218
- } : void 0;
219
- }).map((screen)=>[
220
- screen.name,
221
- screen
222
- ]));
223
- }("max") : {}
380
+ values: areSimpleScreens ? buildScreenValues("max") : {}
224
381
  });
382
+ // screens and min-* are sorted together when they can be
225
383
  let id = "min-screens";
226
- for (let screen of screens)addVariant(screen.name, `@media ${(0, _buildMediaQuery.default)(screen)}`, {
227
- id,
228
- sort: areSimpleScreens && screensUseConsistentUnits ? minSort : void 0,
229
- value: screen
230
- });
384
+ for (let screen of screens){
385
+ addVariant(screen.name, `@media ${(0, _buildMediaQuery.default)(screen)}`, {
386
+ id,
387
+ sort: areSimpleScreens && screensUseConsistentUnits ? minSort : undefined,
388
+ value: screen
389
+ });
390
+ }
231
391
  matchVariant("min", buildScreenVariant("min"), {
232
392
  id,
233
393
  sort: minSort
@@ -236,96 +396,176 @@ let variantPlugins = {
236
396
  supportsVariants: ({ matchVariant , theme })=>{
237
397
  var _theme;
238
398
  matchVariant("supports", (value = "")=>{
239
- let check = (0, _dataTypes.normalize)(value), isRaw = /^\w*\s*\(/.test(check);
240
- return check = isRaw ? check.replace(/\b(and|or|not)\b/g, " $1 ") : check, isRaw || (check.includes(":") || (check = `${check}: var(--tw)`), check.startsWith("(") && check.endsWith(")") || (check = `(${check})`)), `@supports ${check}`;
399
+ let check = (0, _dataTypes.normalize)(value);
400
+ let isRaw = /^\w*\s*\(/.test(check);
401
+ // Chrome has a bug where `(condtion1)or(condition2)` is not valid
402
+ // But `(condition1) or (condition2)` is supported.
403
+ check = isRaw ? check.replace(/\b(and|or|not)\b/g, " $1 ") : check;
404
+ if (isRaw) {
405
+ return `@supports ${check}`;
406
+ }
407
+ if (!check.includes(":")) {
408
+ check = `${check}: var(--tw)`;
409
+ }
410
+ if (!(check.startsWith("(") && check.endsWith(")"))) {
411
+ check = `(${check})`;
412
+ }
413
+ return `@supports ${check}`;
241
414
  }, {
242
- values: null !== (_theme = theme("supports")) && void 0 !== _theme ? _theme : {}
415
+ values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
243
416
  });
244
417
  },
245
418
  ariaVariants: ({ matchVariant , theme })=>{
246
- var _theme, _theme1, _theme2;
419
+ var _theme;
247
420
  matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
248
- values: null !== (_theme = theme("aria")) && void 0 !== _theme ? _theme : {}
249
- }), matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
250
- values: null !== (_theme1 = theme("aria")) && void 0 !== _theme1 ? _theme1 : {}
251
- }), matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
252
- values: null !== (_theme2 = theme("aria")) && void 0 !== _theme2 ? _theme2 : {}
421
+ values: (_theme = theme("aria")) !== null && _theme !== void 0 ? _theme : {}
422
+ });
423
+ var _theme1;
424
+ matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
425
+ values: (_theme1 = theme("aria")) !== null && _theme1 !== void 0 ? _theme1 : {}
426
+ });
427
+ var _theme2;
428
+ matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
429
+ values: (_theme2 = theme("aria")) !== null && _theme2 !== void 0 ? _theme2 : {}
253
430
  });
254
431
  },
255
432
  dataVariants: ({ matchVariant , theme })=>{
256
- var _theme, _theme1, _theme2;
433
+ var _theme;
257
434
  matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
258
- values: null !== (_theme = theme("data")) && void 0 !== _theme ? _theme : {}
259
- }), matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
260
- values: null !== (_theme1 = theme("data")) && void 0 !== _theme1 ? _theme1 : {}
261
- }), matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
262
- values: null !== (_theme2 = theme("data")) && void 0 !== _theme2 ? _theme2 : {}
435
+ values: (_theme = theme("data")) !== null && _theme !== void 0 ? _theme : {}
436
+ });
437
+ var _theme1;
438
+ matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
439
+ values: (_theme1 = theme("data")) !== null && _theme1 !== void 0 ? _theme1 : {}
440
+ });
441
+ var _theme2;
442
+ matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
443
+ values: (_theme2 = theme("data")) !== null && _theme2 !== void 0 ? _theme2 : {}
263
444
  });
264
445
  },
265
446
  orientationVariants: ({ addVariant })=>{
266
- addVariant("portrait", "@media (orientation: portrait)"), addVariant("landscape", "@media (orientation: landscape)");
447
+ addVariant("portrait", "@media (orientation: portrait)");
448
+ addVariant("landscape", "@media (orientation: landscape)");
267
449
  },
268
450
  prefersContrastVariants: ({ addVariant })=>{
269
- addVariant("contrast-more", "@media (prefers-contrast: more)"), addVariant("contrast-less", "@media (prefers-contrast: less)");
451
+ addVariant("contrast-more", "@media (prefers-contrast: more)");
452
+ addVariant("contrast-less", "@media (prefers-contrast: less)");
270
453
  }
271
- }, cssTransformValue = "translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))", cssFilterValue = "var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)", cssBackdropFilterValue = "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)", corePlugins = {
454
+ };
455
+ let cssTransformValue = [
456
+ "translate(var(--tw-translate-x), var(--tw-translate-y))",
457
+ "rotate(var(--tw-rotate))",
458
+ "skewX(var(--tw-skew-x))",
459
+ "skewY(var(--tw-skew-y))",
460
+ "scaleX(var(--tw-scale-x))",
461
+ "scaleY(var(--tw-scale-y))"
462
+ ].join(" ");
463
+ let cssFilterValue = [
464
+ "var(--tw-blur)",
465
+ "var(--tw-brightness)",
466
+ "var(--tw-contrast)",
467
+ "var(--tw-grayscale)",
468
+ "var(--tw-hue-rotate)",
469
+ "var(--tw-invert)",
470
+ "var(--tw-saturate)",
471
+ "var(--tw-sepia)",
472
+ "var(--tw-drop-shadow)"
473
+ ].join(" ");
474
+ let cssBackdropFilterValue = [
475
+ "var(--tw-backdrop-blur)",
476
+ "var(--tw-backdrop-brightness)",
477
+ "var(--tw-backdrop-contrast)",
478
+ "var(--tw-backdrop-grayscale)",
479
+ "var(--tw-backdrop-hue-rotate)",
480
+ "var(--tw-backdrop-invert)",
481
+ "var(--tw-backdrop-opacity)",
482
+ "var(--tw-backdrop-saturate)",
483
+ "var(--tw-backdrop-sepia)"
484
+ ].join(" ");
485
+ let corePlugins = {
272
486
  preflight: ({ addBase })=>{
273
487
  let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(_path.join(__dirname, "./css/preflight.css"), "utf8"));
274
488
  addBase([
275
489
  _postcss.default.comment({
276
- text: `! tailwindcss v${_packageJson.version} | MIT License | https://tailwindcss.com`
490
+ text: `! tailwindcss v${_packagejson.version} | MIT License | https://tailwindcss.com`
277
491
  }),
278
492
  ...preflightStyles.nodes
279
493
  ]);
280
494
  },
281
- container: function({ addComponents , theme }) {
282
- let screens = (0, _normalizeScreens.normalizeScreens)(theme("container.screens", theme("screens"))), minWidths = function(breakpoints = []) {
283
- return breakpoints.flatMap((breakpoint)=>breakpoint.values.map((breakpoint)=>breakpoint.min)).filter((v)=>void 0 !== v);
284
- }(screens), paddings = function(minWidths, screens, paddings) {
285
- if (void 0 === paddings) return [];
286
- if (!("object" == typeof paddings && null !== paddings)) return [
287
- {
495
+ container: (()=>{
496
+ function extractMinWidths(breakpoints = []) {
497
+ return breakpoints.flatMap((breakpoint)=>breakpoint.values.map((breakpoint)=>breakpoint.min)).filter((v)=>v !== undefined);
498
+ }
499
+ function mapMinWidthsToPadding(minWidths, screens, paddings) {
500
+ if (typeof paddings === "undefined") {
501
+ return [];
502
+ }
503
+ if (!(typeof paddings === "object" && paddings !== null)) {
504
+ return [
505
+ {
506
+ screen: "DEFAULT",
507
+ minWidth: 0,
508
+ padding: paddings
509
+ }
510
+ ];
511
+ }
512
+ let mapping = [];
513
+ if (paddings.DEFAULT) {
514
+ mapping.push({
288
515
  screen: "DEFAULT",
289
516
  minWidth: 0,
290
- padding: paddings
517
+ padding: paddings.DEFAULT
518
+ });
519
+ }
520
+ for (let minWidth of minWidths){
521
+ for (let screen of screens){
522
+ for (let { min } of screen.values){
523
+ if (min === minWidth) {
524
+ mapping.push({
525
+ minWidth,
526
+ padding: paddings[screen.name]
527
+ });
528
+ }
529
+ }
291
530
  }
292
- ];
293
- let mapping = [];
294
- for (let minWidth of (paddings.DEFAULT && mapping.push({
295
- screen: "DEFAULT",
296
- minWidth: 0,
297
- padding: paddings.DEFAULT
298
- }), minWidths))for (let screen of screens)for (let { min } of screen.values)min === minWidth && mapping.push({
299
- minWidth,
300
- padding: paddings[screen.name]
301
- });
531
+ }
302
532
  return mapping;
303
- }(minWidths, screens, theme("container.padding")), generatePaddingFor = (minWidth)=>{
304
- let paddingConfig = paddings.find((padding)=>padding.minWidth === minWidth);
305
- return paddingConfig ? {
306
- paddingRight: paddingConfig.padding,
307
- paddingLeft: paddingConfig.padding
308
- } : {};
309
- }, atRules = Array.from(new Set(minWidths.slice().sort((a, z)=>parseInt(a) - parseInt(z)))).map((minWidth)=>({
310
- [`@media (min-width: ${minWidth})`]: {
311
- ".container": {
312
- "max-width": minWidth,
313
- ...generatePaddingFor(minWidth)
314
- }
533
+ }
534
+ return function({ addComponents , theme }) {
535
+ let screens = (0, _normalizeScreens.normalizeScreens)(theme("container.screens", theme("screens")));
536
+ let minWidths = extractMinWidths(screens);
537
+ let paddings = mapMinWidthsToPadding(minWidths, screens, theme("container.padding"));
538
+ let generatePaddingFor = (minWidth)=>{
539
+ let paddingConfig = paddings.find((padding)=>padding.minWidth === minWidth);
540
+ if (!paddingConfig) {
541
+ return {};
315
542
  }
316
- }));
317
- addComponents([
318
- {
319
- ".container": Object.assign({
320
- width: "100%"
321
- }, theme("container.center", !1) ? {
322
- marginRight: "auto",
323
- marginLeft: "auto"
324
- } : {}, generatePaddingFor(0))
325
- },
326
- ...atRules
327
- ]);
328
- },
543
+ return {
544
+ paddingRight: paddingConfig.padding,
545
+ paddingLeft: paddingConfig.padding
546
+ };
547
+ };
548
+ let atRules = Array.from(new Set(minWidths.slice().sort((a, z)=>parseInt(a) - parseInt(z)))).map((minWidth)=>({
549
+ [`@media (min-width: ${minWidth})`]: {
550
+ ".container": {
551
+ "max-width": minWidth,
552
+ ...generatePaddingFor(minWidth)
553
+ }
554
+ }
555
+ }));
556
+ addComponents([
557
+ {
558
+ ".container": Object.assign({
559
+ width: "100%"
560
+ }, theme("container.center", false) ? {
561
+ marginRight: "auto",
562
+ marginLeft: "auto"
563
+ } : {}, generatePaddingFor(0))
564
+ },
565
+ ...atRules
566
+ ]);
567
+ };
568
+ })(),
329
569
  accessibility: ({ addUtilities })=>{
330
570
  addUtilities({
331
571
  ".sr-only": {
@@ -455,7 +695,7 @@ let variantPlugins = {
455
695
  ]
456
696
  ]
457
697
  ], {
458
- supportsNegativeValues: !0
698
+ supportsNegativeValues: true
459
699
  }),
460
700
  isolation: ({ addUtilities })=>{
461
701
  addUtilities({
@@ -475,10 +715,10 @@ let variantPlugins = {
475
715
  ]
476
716
  ]
477
717
  ], {
478
- supportsNegativeValues: !0
718
+ supportsNegativeValues: true
479
719
  }),
480
- order: (0, _createUtilityPlugin.default)("order", void 0, {
481
- supportsNegativeValues: !0
720
+ order: (0, _createUtilityPlugin.default)("order", undefined, {
721
+ supportsNegativeValues: true
482
722
  }),
483
723
  gridColumn: (0, _createUtilityPlugin.default)("gridColumn", [
484
724
  [
@@ -619,7 +859,7 @@ let variantPlugins = {
619
859
  ]
620
860
  ]
621
861
  ], {
622
- supportsNegativeValues: !0
862
+ supportsNegativeValues: true
623
863
  }),
624
864
  boxSizing: ({ addUtilities })=>{
625
865
  addUtilities({
@@ -641,7 +881,8 @@ let variantPlugins = {
641
881
  })
642
882
  }, {
643
883
  values: theme("lineClamp")
644
- }), addUtilities({
884
+ });
885
+ addUtilities({
645
886
  ".line-clamp-none": {
646
887
  overflow: "visible",
647
888
  display: "block",
@@ -844,23 +1085,30 @@ let variantPlugins = {
844
1085
  addDefaults("border-spacing", {
845
1086
  "--tw-border-spacing-x": 0,
846
1087
  "--tw-border-spacing-y": 0
847
- }), matchUtilities({
848
- "border-spacing": (value)=>({
1088
+ });
1089
+ matchUtilities({
1090
+ "border-spacing": (value)=>{
1091
+ return {
849
1092
  "--tw-border-spacing-x": value,
850
1093
  "--tw-border-spacing-y": value,
851
1094
  "@defaults border-spacing": {},
852
1095
  "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
853
- }),
854
- "border-spacing-x": (value)=>({
1096
+ };
1097
+ },
1098
+ "border-spacing-x": (value)=>{
1099
+ return {
855
1100
  "--tw-border-spacing-x": value,
856
1101
  "@defaults border-spacing": {},
857
1102
  "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
858
- }),
859
- "border-spacing-y": (value)=>({
1103
+ };
1104
+ },
1105
+ "border-spacing-y": (value)=>{
1106
+ return {
860
1107
  "--tw-border-spacing-y": value,
861
1108
  "@defaults border-spacing": {},
862
1109
  "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
863
- })
1110
+ };
1111
+ }
864
1112
  }, {
865
1113
  values: theme("borderSpacing")
866
1114
  });
@@ -905,7 +1153,7 @@ let variantPlugins = {
905
1153
  ]
906
1154
  ]
907
1155
  ], {
908
- supportsNegativeValues: !0
1156
+ supportsNegativeValues: true
909
1157
  }),
910
1158
  rotate: (0, _createUtilityPlugin.default)("rotate", [
911
1159
  [
@@ -923,7 +1171,7 @@ let variantPlugins = {
923
1171
  ]
924
1172
  ]
925
1173
  ], {
926
- supportsNegativeValues: !0
1174
+ supportsNegativeValues: true
927
1175
  }),
928
1176
  skew: (0, _createUtilityPlugin.default)("skew", [
929
1177
  [
@@ -957,7 +1205,7 @@ let variantPlugins = {
957
1205
  ]
958
1206
  ]
959
1207
  ], {
960
- supportsNegativeValues: !0
1208
+ supportsNegativeValues: true
961
1209
  }),
962
1210
  scale: (0, _createUtilityPlugin.default)("scale", [
963
1211
  [
@@ -1006,7 +1254,7 @@ let variantPlugins = {
1006
1254
  ]
1007
1255
  ]
1008
1256
  ], {
1009
- supportsNegativeValues: !0
1257
+ supportsNegativeValues: true
1010
1258
  }),
1011
1259
  transform: ({ addDefaults , addUtilities })=>{
1012
1260
  addDefaults("transform", {
@@ -1017,7 +1265,8 @@ let variantPlugins = {
1017
1265
  "--tw-skew-y": "0",
1018
1266
  "--tw-scale-x": "1",
1019
1267
  "--tw-scale-y": "1"
1020
- }), addUtilities({
1268
+ });
1269
+ addUtilities({
1021
1270
  ".transform": {
1022
1271
  "@defaults transform": {},
1023
1272
  transform: cssTransformValue
@@ -1034,20 +1283,28 @@ let variantPlugins = {
1034
1283
  });
1035
1284
  },
1036
1285
  animation: ({ matchUtilities , theme , config })=>{
1286
+ let prefixName = (name)=>`${config("prefix")}${(0, _escapeClassName.default)(name)}`;
1037
1287
  var _theme;
1038
- let prefixName = (name)=>`${config("prefix")}${(0, _escapeClassName.default)(name)}`, keyframes = Object.fromEntries(Object.entries(null !== (_theme = theme("keyframes")) && void 0 !== _theme ? _theme : {}).map(([key, value])=>[
1288
+ let keyframes = Object.fromEntries(Object.entries((_theme = theme("keyframes")) !== null && _theme !== void 0 ? _theme : {}).map(([key, value])=>{
1289
+ return [
1039
1290
  key,
1040
1291
  {
1041
1292
  [`@keyframes ${prefixName(key)}`]: value
1042
1293
  }
1043
- ]));
1294
+ ];
1295
+ }));
1044
1296
  matchUtilities({
1045
1297
  animate: (value)=>{
1046
1298
  let animations = (0, _parseAnimationValue.default)(value);
1047
1299
  return [
1048
1300
  ...animations.flatMap((animation)=>keyframes[animation.name]),
1049
1301
  {
1050
- animation: animations.map(({ name , value })=>void 0 === name || void 0 === keyframes[name] ? value : value.replace(name, prefixName(name))).join(", ")
1302
+ animation: animations.map(({ name , value })=>{
1303
+ if (name === undefined || keyframes[name] === undefined) {
1304
+ return value;
1305
+ }
1306
+ return value.replace(name, prefixName(name));
1307
+ }).join(", ")
1051
1308
  }
1052
1309
  ];
1053
1310
  }
@@ -1145,7 +1402,8 @@ let variantPlugins = {
1145
1402
  scrollSnapType: ({ addDefaults , addUtilities })=>{
1146
1403
  addDefaults("scroll-snap-type", {
1147
1404
  "--tw-scroll-snap-strictness": "proximity"
1148
- }), addUtilities({
1405
+ });
1406
+ addUtilities({
1149
1407
  ".snap-none": {
1150
1408
  "scroll-snap-type": "none"
1151
1409
  },
@@ -1257,7 +1515,7 @@ let variantPlugins = {
1257
1515
  ]
1258
1516
  ]
1259
1517
  ], {
1260
- supportsNegativeValues: !0
1518
+ supportsNegativeValues: true
1261
1519
  }),
1262
1520
  scrollPadding: (0, _createUtilityPlugin.default)("scrollPadding", [
1263
1521
  [
@@ -1679,24 +1937,40 @@ let variantPlugins = {
1679
1937
  ]),
1680
1938
  space: ({ matchUtilities , addUtilities , theme })=>{
1681
1939
  matchUtilities({
1682
- "space-x": (value)=>({
1940
+ "space-x": (value)=>{
1941
+ value = value === "0" ? "0px" : value;
1942
+ if (true) {
1943
+ return {
1944
+ "& > :not([hidden]) ~ :not([hidden])": {
1945
+ "--tw-space-x-reverse": "0",
1946
+ "margin-inline-end": `calc(${value} * var(--tw-space-x-reverse))`,
1947
+ "margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1948
+ }
1949
+ };
1950
+ }
1951
+ return {
1683
1952
  "& > :not([hidden]) ~ :not([hidden])": {
1684
1953
  "--tw-space-x-reverse": "0",
1685
- "margin-inline-end": `calc(${value = "0" === value ? "0px" : value} * var(--tw-space-x-reverse))`,
1686
- "margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1954
+ "margin-right": `calc(${value} * var(--tw-space-x-reverse))`,
1955
+ "margin-left": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1687
1956
  }
1688
- }),
1689
- "space-y": (value)=>({
1957
+ };
1958
+ },
1959
+ "space-y": (value)=>{
1960
+ value = value === "0" ? "0px" : value;
1961
+ return {
1690
1962
  "& > :not([hidden]) ~ :not([hidden])": {
1691
1963
  "--tw-space-y-reverse": "0",
1692
- "margin-top": `calc(${value = "0" === value ? "0px" : value} * calc(1 - var(--tw-space-y-reverse)))`,
1964
+ "margin-top": `calc(${value} * calc(1 - var(--tw-space-y-reverse)))`,
1693
1965
  "margin-bottom": `calc(${value} * var(--tw-space-y-reverse))`
1694
1966
  }
1695
- })
1967
+ };
1968
+ }
1696
1969
  }, {
1697
1970
  values: theme("space"),
1698
- supportsNegativeValues: !0
1699
- }), addUtilities({
1971
+ supportsNegativeValues: true
1972
+ });
1973
+ addUtilities({
1700
1974
  ".space-y-reverse > :not([hidden]) ~ :not([hidden])": {
1701
1975
  "--tw-space-y-reverse": "1"
1702
1976
  },
@@ -1707,22 +1981,38 @@ let variantPlugins = {
1707
1981
  },
1708
1982
  divideWidth: ({ matchUtilities , addUtilities , theme })=>{
1709
1983
  matchUtilities({
1710
- "divide-x": (value)=>({
1984
+ "divide-x": (value)=>{
1985
+ value = value === "0" ? "0px" : value;
1986
+ if (true) {
1987
+ return {
1988
+ "& > :not([hidden]) ~ :not([hidden])": {
1989
+ "@defaults border-width": {},
1990
+ "--tw-divide-x-reverse": "0",
1991
+ "border-inline-end-width": `calc(${value} * var(--tw-divide-x-reverse))`,
1992
+ "border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
1993
+ }
1994
+ };
1995
+ }
1996
+ return {
1711
1997
  "& > :not([hidden]) ~ :not([hidden])": {
1712
1998
  "@defaults border-width": {},
1713
1999
  "--tw-divide-x-reverse": "0",
1714
- "border-inline-end-width": `calc(${value = "0" === value ? "0px" : value} * var(--tw-divide-x-reverse))`,
1715
- "border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
2000
+ "border-right-width": `calc(${value} * var(--tw-divide-x-reverse))`,
2001
+ "border-left-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
1716
2002
  }
1717
- }),
1718
- "divide-y": (value)=>({
2003
+ };
2004
+ },
2005
+ "divide-y": (value)=>{
2006
+ value = value === "0" ? "0px" : value;
2007
+ return {
1719
2008
  "& > :not([hidden]) ~ :not([hidden])": {
1720
2009
  "@defaults border-width": {},
1721
2010
  "--tw-divide-y-reverse": "0",
1722
- "border-top-width": `calc(${value = "0" === value ? "0px" : value} * calc(1 - var(--tw-divide-y-reverse)))`,
2011
+ "border-top-width": `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
1723
2012
  "border-bottom-width": `calc(${value} * var(--tw-divide-y-reverse))`
1724
2013
  }
1725
- })
2014
+ };
2015
+ }
1726
2016
  }, {
1727
2017
  values: theme("divideWidth"),
1728
2018
  type: [
@@ -1730,7 +2020,8 @@ let variantPlugins = {
1730
2020
  "length",
1731
2021
  "any"
1732
2022
  ]
1733
- }), addUtilities({
2023
+ });
2024
+ addUtilities({
1734
2025
  ".divide-y-reverse > :not([hidden]) ~ :not([hidden])": {
1735
2026
  "@defaults border-width": {},
1736
2027
  "--tw-divide-y-reverse": "1"
@@ -1762,17 +2053,22 @@ let variantPlugins = {
1762
2053
  },
1763
2054
  divideColor: ({ matchUtilities , theme , corePlugins })=>{
1764
2055
  matchUtilities({
1765
- divide: (value)=>corePlugins("divideOpacity") ? {
1766
- "& > :not([hidden]) ~ :not([hidden])": (0, _withAlphaVariable.default)({
2056
+ divide: (value)=>{
2057
+ if (!corePlugins("divideOpacity")) {
2058
+ return {
2059
+ ["& > :not([hidden]) ~ :not([hidden])"]: {
2060
+ "border-color": (0, _toColorValue.default)(value)
2061
+ }
2062
+ };
2063
+ }
2064
+ return {
2065
+ ["& > :not([hidden]) ~ :not([hidden])"]: (0, _withAlphaVariable.default)({
1767
2066
  color: value,
1768
2067
  property: "border-color",
1769
2068
  variable: "--tw-divide-opacity"
1770
2069
  })
1771
- } : {
1772
- "& > :not([hidden]) ~ :not([hidden])": {
1773
- "border-color": (0, _toColorValue.default)(value)
1774
- }
1775
- }
2070
+ };
2071
+ }
1776
2072
  }, {
1777
2073
  values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("divideColor"))),
1778
2074
  type: [
@@ -1783,11 +2079,13 @@ let variantPlugins = {
1783
2079
  },
1784
2080
  divideOpacity: ({ matchUtilities , theme })=>{
1785
2081
  matchUtilities({
1786
- "divide-opacity": (value)=>({
1787
- "& > :not([hidden]) ~ :not([hidden])": {
2082
+ "divide-opacity": (value)=>{
2083
+ return {
2084
+ [`& > :not([hidden]) ~ :not([hidden])`]: {
1788
2085
  "--tw-divide-opacity": value
1789
2086
  }
1790
- })
2087
+ };
2088
+ }
1791
2089
  }, {
1792
2090
  values: theme("divideOpacity")
1793
2091
  });
@@ -2241,91 +2539,138 @@ let variantPlugins = {
2241
2539
  },
2242
2540
  borderColor: ({ matchUtilities , theme , corePlugins })=>{
2243
2541
  matchUtilities({
2244
- border: (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2542
+ border: (value)=>{
2543
+ if (!corePlugins("borderOpacity")) {
2544
+ return {
2545
+ "border-color": (0, _toColorValue.default)(value)
2546
+ };
2547
+ }
2548
+ return (0, _withAlphaVariable.default)({
2245
2549
  color: value,
2246
2550
  property: "border-color",
2247
2551
  variable: "--tw-border-opacity"
2248
- }) : {
2249
- "border-color": (0, _toColorValue.default)(value)
2250
- }
2552
+ });
2553
+ }
2251
2554
  }, {
2252
2555
  values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2253
2556
  type: [
2254
2557
  "color",
2255
2558
  "any"
2256
2559
  ]
2257
- }), matchUtilities({
2258
- "border-x": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2560
+ });
2561
+ matchUtilities({
2562
+ "border-x": (value)=>{
2563
+ if (!corePlugins("borderOpacity")) {
2564
+ return {
2565
+ "border-left-color": (0, _toColorValue.default)(value),
2566
+ "border-right-color": (0, _toColorValue.default)(value)
2567
+ };
2568
+ }
2569
+ return (0, _withAlphaVariable.default)({
2259
2570
  color: value,
2260
2571
  property: [
2261
2572
  "border-left-color",
2262
2573
  "border-right-color"
2263
2574
  ],
2264
2575
  variable: "--tw-border-opacity"
2265
- }) : {
2266
- "border-left-color": (0, _toColorValue.default)(value),
2267
- "border-right-color": (0, _toColorValue.default)(value)
2268
- },
2269
- "border-y": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2576
+ });
2577
+ },
2578
+ "border-y": (value)=>{
2579
+ if (!corePlugins("borderOpacity")) {
2580
+ return {
2581
+ "border-top-color": (0, _toColorValue.default)(value),
2582
+ "border-bottom-color": (0, _toColorValue.default)(value)
2583
+ };
2584
+ }
2585
+ return (0, _withAlphaVariable.default)({
2270
2586
  color: value,
2271
2587
  property: [
2272
2588
  "border-top-color",
2273
2589
  "border-bottom-color"
2274
2590
  ],
2275
2591
  variable: "--tw-border-opacity"
2276
- }) : {
2277
- "border-top-color": (0, _toColorValue.default)(value),
2278
- "border-bottom-color": (0, _toColorValue.default)(value)
2279
- }
2592
+ });
2593
+ }
2280
2594
  }, {
2281
2595
  values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2282
2596
  type: [
2283
2597
  "color",
2284
2598
  "any"
2285
2599
  ]
2286
- }), matchUtilities({
2287
- "border-s": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2600
+ });
2601
+ matchUtilities({
2602
+ "border-s": (value)=>{
2603
+ if (!corePlugins("borderOpacity")) {
2604
+ return {
2605
+ "border-inline-start-color": (0, _toColorValue.default)(value)
2606
+ };
2607
+ }
2608
+ return (0, _withAlphaVariable.default)({
2288
2609
  color: value,
2289
2610
  property: "border-inline-start-color",
2290
2611
  variable: "--tw-border-opacity"
2291
- }) : {
2292
- "border-inline-start-color": (0, _toColorValue.default)(value)
2293
- },
2294
- "border-e": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2612
+ });
2613
+ },
2614
+ "border-e": (value)=>{
2615
+ if (!corePlugins("borderOpacity")) {
2616
+ return {
2617
+ "border-inline-end-color": (0, _toColorValue.default)(value)
2618
+ };
2619
+ }
2620
+ return (0, _withAlphaVariable.default)({
2295
2621
  color: value,
2296
2622
  property: "border-inline-end-color",
2297
2623
  variable: "--tw-border-opacity"
2298
- }) : {
2299
- "border-inline-end-color": (0, _toColorValue.default)(value)
2300
- },
2301
- "border-t": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2624
+ });
2625
+ },
2626
+ "border-t": (value)=>{
2627
+ if (!corePlugins("borderOpacity")) {
2628
+ return {
2629
+ "border-top-color": (0, _toColorValue.default)(value)
2630
+ };
2631
+ }
2632
+ return (0, _withAlphaVariable.default)({
2302
2633
  color: value,
2303
2634
  property: "border-top-color",
2304
2635
  variable: "--tw-border-opacity"
2305
- }) : {
2306
- "border-top-color": (0, _toColorValue.default)(value)
2307
- },
2308
- "border-r": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2636
+ });
2637
+ },
2638
+ "border-r": (value)=>{
2639
+ if (!corePlugins("borderOpacity")) {
2640
+ return {
2641
+ "border-right-color": (0, _toColorValue.default)(value)
2642
+ };
2643
+ }
2644
+ return (0, _withAlphaVariable.default)({
2309
2645
  color: value,
2310
2646
  property: "border-right-color",
2311
2647
  variable: "--tw-border-opacity"
2312
- }) : {
2313
- "border-right-color": (0, _toColorValue.default)(value)
2314
- },
2315
- "border-b": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2648
+ });
2649
+ },
2650
+ "border-b": (value)=>{
2651
+ if (!corePlugins("borderOpacity")) {
2652
+ return {
2653
+ "border-bottom-color": (0, _toColorValue.default)(value)
2654
+ };
2655
+ }
2656
+ return (0, _withAlphaVariable.default)({
2316
2657
  color: value,
2317
2658
  property: "border-bottom-color",
2318
2659
  variable: "--tw-border-opacity"
2319
- }) : {
2320
- "border-bottom-color": (0, _toColorValue.default)(value)
2321
- },
2322
- "border-l": (value)=>corePlugins("borderOpacity") ? (0, _withAlphaVariable.default)({
2660
+ });
2661
+ },
2662
+ "border-l": (value)=>{
2663
+ if (!corePlugins("borderOpacity")) {
2664
+ return {
2665
+ "border-left-color": (0, _toColorValue.default)(value)
2666
+ };
2667
+ }
2668
+ return (0, _withAlphaVariable.default)({
2323
2669
  color: value,
2324
2670
  property: "border-left-color",
2325
2671
  variable: "--tw-border-opacity"
2326
- }) : {
2327
- "border-left-color": (0, _toColorValue.default)(value)
2328
- }
2672
+ });
2673
+ }
2329
2674
  }, {
2330
2675
  values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2331
2676
  type: [
@@ -2344,13 +2689,18 @@ let variantPlugins = {
2344
2689
  ]),
2345
2690
  backgroundColor: ({ matchUtilities , theme , corePlugins })=>{
2346
2691
  matchUtilities({
2347
- bg: (value)=>corePlugins("backgroundOpacity") ? (0, _withAlphaVariable.default)({
2692
+ bg: (value)=>{
2693
+ if (!corePlugins("backgroundOpacity")) {
2694
+ return {
2695
+ "background-color": (0, _toColorValue.default)(value)
2696
+ };
2697
+ }
2698
+ return (0, _withAlphaVariable.default)({
2348
2699
  color: value,
2349
2700
  property: "background-color",
2350
2701
  variable: "--tw-bg-opacity"
2351
- }) : {
2352
- "background-color": (0, _toColorValue.default)(value)
2353
- }
2702
+ });
2703
+ }
2354
2704
  }, {
2355
2705
  values: (0, _flattenColorPalette.default)(theme("backgroundColor")),
2356
2706
  type: [
@@ -2397,7 +2747,8 @@ let variantPlugins = {
2397
2747
  "color",
2398
2748
  "any"
2399
2749
  ]
2400
- }, positionOptions = {
2750
+ };
2751
+ let positionOptions = {
2401
2752
  values: theme("gradientColorStopPositions"),
2402
2753
  type: [
2403
2754
  "length",
@@ -2411,32 +2762,46 @@ let variantPlugins = {
2411
2762
  "@defaults gradient-color-stops": {},
2412
2763
  "--tw-gradient-from": `${(0, _toColorValue.default)(value)} var(--tw-gradient-from-position)`,
2413
2764
  "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2414
- "--tw-gradient-stops": "var(--tw-gradient-from), var(--tw-gradient-to)"
2765
+ "--tw-gradient-stops": `var(--tw-gradient-from), var(--tw-gradient-to)`
2415
2766
  };
2416
2767
  }
2417
- }, options), matchUtilities({
2418
- from: (value)=>({
2768
+ }, options);
2769
+ matchUtilities({
2770
+ from: (value)=>{
2771
+ return {
2419
2772
  "--tw-gradient-from-position": value
2420
- })
2421
- }, positionOptions), matchUtilities({
2422
- via: (value)=>({
2773
+ };
2774
+ }
2775
+ }, positionOptions);
2776
+ matchUtilities({
2777
+ via: (value)=>{
2778
+ let transparentToValue = transparentTo(value);
2779
+ return {
2423
2780
  "@defaults gradient-color-stops": {},
2424
- "--tw-gradient-to": `${transparentTo(value)} var(--tw-gradient-to-position)`,
2781
+ "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2425
2782
  "--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value)} var(--tw-gradient-via-position), var(--tw-gradient-to)`
2426
- })
2427
- }, options), matchUtilities({
2428
- via: (value)=>({
2783
+ };
2784
+ }
2785
+ }, options);
2786
+ matchUtilities({
2787
+ via: (value)=>{
2788
+ return {
2429
2789
  "--tw-gradient-via-position": value
2430
- })
2431
- }, positionOptions), matchUtilities({
2790
+ };
2791
+ }
2792
+ }, positionOptions);
2793
+ matchUtilities({
2432
2794
  to: (value)=>({
2433
2795
  "@defaults gradient-color-stops": {},
2434
2796
  "--tw-gradient-to": `${(0, _toColorValue.default)(value)} var(--tw-gradient-to-position)`
2435
2797
  })
2436
- }, options), matchUtilities({
2437
- to: (value)=>({
2798
+ }, options);
2799
+ matchUtilities({
2800
+ to: (value)=>{
2801
+ return {
2438
2802
  "--tw-gradient-to-position": value
2439
- })
2803
+ };
2804
+ }
2440
2805
  }, positionOptions);
2441
2806
  };
2442
2807
  })(),
@@ -2513,7 +2878,7 @@ let variantPlugins = {
2513
2878
  [
2514
2879
  "position",
2515
2880
  {
2516
- preferOnConflict: !0
2881
+ preferOnConflict: true
2517
2882
  }
2518
2883
  ]
2519
2884
  ]
@@ -2555,9 +2920,11 @@ let variantPlugins = {
2555
2920
  },
2556
2921
  fill: ({ matchUtilities , theme })=>{
2557
2922
  matchUtilities({
2558
- fill: (value)=>({
2923
+ fill: (value)=>{
2924
+ return {
2559
2925
  fill: (0, _toColorValue.default)(value)
2560
- })
2926
+ };
2927
+ }
2561
2928
  }, {
2562
2929
  values: (0, _flattenColorPalette.default)(theme("fill")),
2563
2930
  type: [
@@ -2568,9 +2935,11 @@ let variantPlugins = {
2568
2935
  },
2569
2936
  stroke: ({ matchUtilities , theme })=>{
2570
2937
  matchUtilities({
2571
- stroke: (value)=>({
2938
+ stroke: (value)=>{
2939
+ return {
2572
2940
  stroke: (0, _toColorValue.default)(value)
2573
- })
2941
+ };
2942
+ }
2574
2943
  }, {
2575
2944
  values: (0, _flattenColorPalette.default)(theme("stroke")),
2576
2945
  type: [
@@ -2713,7 +3082,7 @@ let variantPlugins = {
2713
3082
  ]
2714
3083
  ]
2715
3084
  ], {
2716
- supportsNegativeValues: !0
3085
+ supportsNegativeValues: true
2717
3086
  }),
2718
3087
  verticalAlign: ({ addUtilities , matchUtilities })=>{
2719
3088
  addUtilities({
@@ -2741,7 +3110,8 @@ let variantPlugins = {
2741
3110
  ".align-super": {
2742
3111
  "vertical-align": "super"
2743
3112
  }
2744
- }), matchUtilities({
3113
+ });
3114
+ matchUtilities({
2745
3115
  align: (value)=>({
2746
3116
  "vertical-align": value
2747
3117
  })
@@ -2752,13 +3122,14 @@ let variantPlugins = {
2752
3122
  font: (value)=>{
2753
3123
  let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
2754
3124
  value
2755
- ], { fontFeatureSettings , fontVariationSettings } = options;
3125
+ ];
3126
+ let { fontFeatureSettings , fontVariationSettings } = options;
2756
3127
  return {
2757
3128
  "font-family": Array.isArray(families) ? families.join(", ") : families,
2758
- ...void 0 === fontFeatureSettings ? {} : {
3129
+ ...fontFeatureSettings === undefined ? {} : {
2759
3130
  "font-feature-settings": fontFeatureSettings
2760
3131
  },
2761
- ...void 0 === fontVariationSettings ? {} : {
3132
+ ...fontVariationSettings === undefined ? {} : {
2762
3133
  "font-variation-settings": fontVariationSettings
2763
3134
  }
2764
3135
  };
@@ -2778,22 +3149,24 @@ let variantPlugins = {
2778
3149
  let [fontSize, options] = Array.isArray(value) ? value : [
2779
3150
  value
2780
3151
  ];
2781
- if (modifier) return {
2782
- "font-size": fontSize,
2783
- "line-height": modifier
2784
- };
3152
+ if (modifier) {
3153
+ return {
3154
+ "font-size": fontSize,
3155
+ "line-height": modifier
3156
+ };
3157
+ }
2785
3158
  let { lineHeight , letterSpacing , fontWeight } = (0, _isPlainObject.default)(options) ? options : {
2786
3159
  lineHeight: options
2787
3160
  };
2788
3161
  return {
2789
3162
  "font-size": fontSize,
2790
- ...void 0 === lineHeight ? {} : {
3163
+ ...lineHeight === undefined ? {} : {
2791
3164
  "line-height": lineHeight
2792
3165
  },
2793
- ...void 0 === letterSpacing ? {} : {
3166
+ ...letterSpacing === undefined ? {} : {
2794
3167
  "letter-spacing": letterSpacing
2795
3168
  },
2796
- ...void 0 === fontWeight ? {} : {
3169
+ ...fontWeight === undefined ? {} : {
2797
3170
  "font-weight": fontWeight
2798
3171
  }
2799
3172
  };
@@ -2857,7 +3230,8 @@ let variantPlugins = {
2857
3230
  "--tw-numeric-figure": " ",
2858
3231
  "--tw-numeric-spacing": " ",
2859
3232
  "--tw-numeric-fraction": " "
2860
- }), addUtilities({
3233
+ });
3234
+ addUtilities({
2861
3235
  ".normal-nums": {
2862
3236
  "font-variant-numeric": "normal"
2863
3237
  },
@@ -2919,17 +3293,22 @@ let variantPlugins = {
2919
3293
  ]
2920
3294
  ]
2921
3295
  ], {
2922
- supportsNegativeValues: !0
3296
+ supportsNegativeValues: true
2923
3297
  }),
2924
3298
  textColor: ({ matchUtilities , theme , corePlugins })=>{
2925
3299
  matchUtilities({
2926
- text: (value)=>corePlugins("textOpacity") ? (0, _withAlphaVariable.default)({
3300
+ text: (value)=>{
3301
+ if (!corePlugins("textOpacity")) {
3302
+ return {
3303
+ color: (0, _toColorValue.default)(value)
3304
+ };
3305
+ }
3306
+ return (0, _withAlphaVariable.default)({
2927
3307
  color: value,
2928
3308
  property: "color",
2929
3309
  variable: "--tw-text-opacity"
2930
- }) : {
2931
- color: (0, _toColorValue.default)(value)
2932
- }
3310
+ });
3311
+ }
2933
3312
  }, {
2934
3313
  values: (0, _flattenColorPalette.default)(theme("textColor")),
2935
3314
  type: [
@@ -2964,9 +3343,11 @@ let variantPlugins = {
2964
3343
  },
2965
3344
  textDecorationColor: ({ matchUtilities , theme })=>{
2966
3345
  matchUtilities({
2967
- decoration: (value)=>({
3346
+ decoration: (value)=>{
3347
+ return {
2968
3348
  "text-decoration-color": (0, _toColorValue.default)(value)
2969
- })
3349
+ };
3350
+ }
2970
3351
  }, {
2971
3352
  values: (0, _flattenColorPalette.default)(theme("textDecorationColor")),
2972
3353
  type: [
@@ -3035,17 +3416,22 @@ let variantPlugins = {
3035
3416
  },
3036
3417
  placeholderColor: ({ matchUtilities , theme , corePlugins })=>{
3037
3418
  matchUtilities({
3038
- placeholder: (value)=>corePlugins("placeholderOpacity") ? {
3419
+ placeholder: (value)=>{
3420
+ if (!corePlugins("placeholderOpacity")) {
3421
+ return {
3422
+ "&::placeholder": {
3423
+ color: (0, _toColorValue.default)(value)
3424
+ }
3425
+ };
3426
+ }
3427
+ return {
3039
3428
  "&::placeholder": (0, _withAlphaVariable.default)({
3040
3429
  color: value,
3041
3430
  property: "color",
3042
3431
  variable: "--tw-placeholder-opacity"
3043
3432
  })
3044
- } : {
3045
- "&::placeholder": {
3046
- color: (0, _toColorValue.default)(value)
3047
- }
3048
- }
3433
+ };
3434
+ }
3049
3435
  }, {
3050
3436
  values: (0, _flattenColorPalette.default)(theme("placeholderColor")),
3051
3437
  type: [
@@ -3056,20 +3442,24 @@ let variantPlugins = {
3056
3442
  },
3057
3443
  placeholderOpacity: ({ matchUtilities , theme })=>{
3058
3444
  matchUtilities({
3059
- "placeholder-opacity": (value)=>({
3060
- "&::placeholder": {
3445
+ "placeholder-opacity": (value)=>{
3446
+ return {
3447
+ ["&::placeholder"]: {
3061
3448
  "--tw-placeholder-opacity": value
3062
3449
  }
3063
- })
3450
+ };
3451
+ }
3064
3452
  }, {
3065
3453
  values: theme("placeholderOpacity")
3066
3454
  });
3067
3455
  },
3068
3456
  caretColor: ({ matchUtilities , theme })=>{
3069
3457
  matchUtilities({
3070
- caret: (value)=>({
3458
+ caret: (value)=>{
3459
+ return {
3071
3460
  "caret-color": (0, _toColorValue.default)(value)
3072
- })
3461
+ };
3462
+ }
3073
3463
  }, {
3074
3464
  values: (0, _flattenColorPalette.default)(theme("caretColor")),
3075
3465
  type: [
@@ -3080,9 +3470,11 @@ let variantPlugins = {
3080
3470
  },
3081
3471
  accentColor: ({ matchUtilities , theme })=>{
3082
3472
  matchUtilities({
3083
- accent: (value)=>({
3473
+ accent: (value)=>{
3474
+ return {
3084
3475
  "accent-color": (0, _toColorValue.default)(value)
3085
- })
3476
+ };
3477
+ }
3086
3478
  }, {
3087
3479
  values: (0, _flattenColorPalette.default)(theme("accentColor")),
3088
3480
  type: [
@@ -3208,22 +3600,34 @@ let variantPlugins = {
3208
3600
  },
3209
3601
  boxShadow: (()=>{
3210
3602
  let transformValue = (0, _transformThemeValue.default)("boxShadow");
3603
+ let defaultBoxShadow = [
3604
+ `var(--tw-ring-offset-shadow, 0 0 #0000)`,
3605
+ `var(--tw-ring-shadow, 0 0 #0000)`,
3606
+ `var(--tw-shadow)`
3607
+ ].join(", ");
3211
3608
  return function({ matchUtilities , addDefaults , theme }) {
3212
3609
  addDefaults(" box-shadow", {
3213
3610
  "--tw-ring-offset-shadow": "0 0 #0000",
3214
3611
  "--tw-ring-shadow": "0 0 #0000",
3215
3612
  "--tw-shadow": "0 0 #0000",
3216
3613
  "--tw-shadow-colored": "0 0 #0000"
3217
- }), matchUtilities({
3614
+ });
3615
+ matchUtilities({
3218
3616
  shadow: (value)=>{
3219
3617
  value = transformValue(value);
3220
3618
  let ast = (0, _parseBoxShadowValue.parseBoxShadowValue)(value);
3221
- for (let shadow of ast)shadow.valid && (shadow.color = "var(--tw-shadow-color)");
3619
+ for (let shadow of ast){
3620
+ // Don't override color if the whole shadow is a variable
3621
+ if (!shadow.valid) {
3622
+ continue;
3623
+ }
3624
+ shadow.color = "var(--tw-shadow-color)";
3625
+ }
3222
3626
  return {
3223
3627
  "@defaults box-shadow": {},
3224
- "--tw-shadow": "none" === value ? "0 0 #0000" : value,
3225
- "--tw-shadow-colored": "none" === value ? "0 0 #0000" : (0, _parseBoxShadowValue.formatBoxShadowValue)(ast),
3226
- "box-shadow": "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
3628
+ "--tw-shadow": value === "none" ? "0 0 #0000" : value,
3629
+ "--tw-shadow-colored": value === "none" ? "0 0 #0000" : (0, _parseBoxShadowValue.formatBoxShadowValue)(ast),
3630
+ "box-shadow": defaultBoxShadow
3227
3631
  };
3228
3632
  }
3229
3633
  }, {
@@ -3236,10 +3640,12 @@ let variantPlugins = {
3236
3640
  })(),
3237
3641
  boxShadowColor: ({ matchUtilities , theme })=>{
3238
3642
  matchUtilities({
3239
- shadow: (value)=>({
3643
+ shadow: (value)=>{
3644
+ return {
3240
3645
  "--tw-shadow-color": (0, _toColorValue.default)(value),
3241
3646
  "--tw-shadow": "var(--tw-shadow-colored)"
3242
- })
3647
+ };
3648
+ }
3243
3649
  }, {
3244
3650
  values: (0, _flattenColorPalette.default)(theme("boxShadowColor")),
3245
3651
  type: [
@@ -3296,13 +3702,15 @@ let variantPlugins = {
3296
3702
  "percentage",
3297
3703
  "any"
3298
3704
  ],
3299
- supportsNegativeValues: !0
3705
+ supportsNegativeValues: true
3300
3706
  }),
3301
3707
  outlineColor: ({ matchUtilities , theme })=>{
3302
3708
  matchUtilities({
3303
- outline: (value)=>({
3709
+ outline: (value)=>{
3710
+ return {
3304
3711
  "outline-color": (0, _toColorValue.default)(value)
3305
- })
3712
+ };
3713
+ }
3306
3714
  }, {
3307
3715
  values: (0, _flattenColorPalette.default)(theme("outlineColor")),
3308
3716
  type: [
@@ -3314,9 +3722,14 @@ let variantPlugins = {
3314
3722
  ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
3315
3723
  let ringColorDefault = (()=>{
3316
3724
  var _theme, _theme1;
3317
- if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) return theme("ringColor.DEFAULT");
3725
+ if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
3726
+ return theme("ringColor.DEFAULT");
3727
+ }
3318
3728
  let ringOpacityDefault = theme("ringOpacity.DEFAULT", "0.5");
3319
- return (null === (_theme = theme("ringColor")) || void 0 === _theme ? void 0 : _theme.DEFAULT) ? (0, _withAlphaVariable.withAlphaValue)(null === (_theme1 = theme("ringColor")) || void 0 === _theme1 ? void 0 : _theme1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`) : `rgb(147 197 253 / ${ringOpacityDefault})`;
3729
+ if (!((_theme = theme("ringColor")) === null || _theme === void 0 ? void 0 : _theme.DEFAULT)) {
3730
+ return `rgb(147 197 253 / ${ringOpacityDefault})`;
3731
+ }
3732
+ return (0, _withAlphaVariable.withAlphaValue)((_theme1 = theme("ringColor")) === null || _theme1 === void 0 ? void 0 : _theme1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3320
3733
  })();
3321
3734
  addDefaults("ring-width", {
3322
3735
  "--tw-ring-inset": " ",
@@ -3327,17 +3740,25 @@ let variantPlugins = {
3327
3740
  "--tw-ring-shadow": "0 0 #0000",
3328
3741
  "--tw-shadow": "0 0 #0000",
3329
3742
  "--tw-shadow-colored": "0 0 #0000"
3330
- }), matchUtilities({
3331
- ring: (value)=>({
3743
+ });
3744
+ matchUtilities({
3745
+ ring: (value)=>{
3746
+ return {
3332
3747
  "@defaults ring-width": {},
3333
- "--tw-ring-offset-shadow": "var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)",
3748
+ "--tw-ring-offset-shadow": `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
3334
3749
  "--tw-ring-shadow": `var(--tw-ring-inset) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
3335
- "box-shadow": "var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"
3336
- })
3750
+ "box-shadow": [
3751
+ `var(--tw-ring-offset-shadow)`,
3752
+ `var(--tw-ring-shadow)`,
3753
+ `var(--tw-shadow, 0 0 #0000)`
3754
+ ].join(", ")
3755
+ };
3756
+ }
3337
3757
  }, {
3338
3758
  values: theme("ringWidth"),
3339
3759
  type: "length"
3340
- }), addUtilities({
3760
+ });
3761
+ addUtilities({
3341
3762
  ".ring-inset": {
3342
3763
  "@defaults ring-width": {},
3343
3764
  "--tw-ring-inset": "inset"
@@ -3346,15 +3767,20 @@ let variantPlugins = {
3346
3767
  },
3347
3768
  ringColor: ({ matchUtilities , theme , corePlugins })=>{
3348
3769
  matchUtilities({
3349
- ring: (value)=>corePlugins("ringOpacity") ? (0, _withAlphaVariable.default)({
3770
+ ring: (value)=>{
3771
+ if (!corePlugins("ringOpacity")) {
3772
+ return {
3773
+ "--tw-ring-color": (0, _toColorValue.default)(value)
3774
+ };
3775
+ }
3776
+ return (0, _withAlphaVariable.default)({
3350
3777
  color: value,
3351
3778
  property: "--tw-ring-color",
3352
3779
  variable: "--tw-ring-opacity"
3353
- }) : {
3354
- "--tw-ring-color": (0, _toColorValue.default)(value)
3355
- }
3780
+ });
3781
+ }
3356
3782
  }, {
3357
- values: Object.fromEntries(Object.entries((0, _flattenColorPalette.default)(theme("ringColor"))).filter(([modifier])=>"DEFAULT" !== modifier)),
3783
+ values: Object.fromEntries(Object.entries((0, _flattenColorPalette.default)(theme("ringColor"))).filter(([modifier])=>modifier !== "DEFAULT")),
3358
3784
  type: [
3359
3785
  "color",
3360
3786
  "any"
@@ -3386,9 +3812,11 @@ let variantPlugins = {
3386
3812
  }),
3387
3813
  ringOffsetColor: ({ matchUtilities , theme })=>{
3388
3814
  matchUtilities({
3389
- "ring-offset": (value)=>({
3815
+ "ring-offset": (value)=>{
3816
+ return {
3390
3817
  "--tw-ring-offset-color": (0, _toColorValue.default)(value)
3391
- })
3818
+ };
3819
+ }
3392
3820
  }, {
3393
3821
  values: (0, _flattenColorPalette.default)(theme("ringOffsetColor")),
3394
3822
  type: [
@@ -3399,100 +3827,118 @@ let variantPlugins = {
3399
3827
  },
3400
3828
  blur: ({ matchUtilities , theme })=>{
3401
3829
  matchUtilities({
3402
- blur: (value)=>({
3830
+ blur: (value)=>{
3831
+ return {
3403
3832
  "--tw-blur": `blur(${value})`,
3404
3833
  "@defaults filter": {},
3405
3834
  filter: cssFilterValue
3406
- })
3835
+ };
3836
+ }
3407
3837
  }, {
3408
3838
  values: theme("blur")
3409
3839
  });
3410
3840
  },
3411
3841
  brightness: ({ matchUtilities , theme })=>{
3412
3842
  matchUtilities({
3413
- brightness: (value)=>({
3843
+ brightness: (value)=>{
3844
+ return {
3414
3845
  "--tw-brightness": `brightness(${value})`,
3415
3846
  "@defaults filter": {},
3416
3847
  filter: cssFilterValue
3417
- })
3848
+ };
3849
+ }
3418
3850
  }, {
3419
3851
  values: theme("brightness")
3420
3852
  });
3421
3853
  },
3422
3854
  contrast: ({ matchUtilities , theme })=>{
3423
3855
  matchUtilities({
3424
- contrast: (value)=>({
3856
+ contrast: (value)=>{
3857
+ return {
3425
3858
  "--tw-contrast": `contrast(${value})`,
3426
3859
  "@defaults filter": {},
3427
3860
  filter: cssFilterValue
3428
- })
3861
+ };
3862
+ }
3429
3863
  }, {
3430
3864
  values: theme("contrast")
3431
3865
  });
3432
3866
  },
3433
3867
  dropShadow: ({ matchUtilities , theme })=>{
3434
3868
  matchUtilities({
3435
- "drop-shadow": (value)=>({
3869
+ "drop-shadow": (value)=>{
3870
+ return {
3436
3871
  "--tw-drop-shadow": Array.isArray(value) ? value.map((v)=>`drop-shadow(${v})`).join(" ") : `drop-shadow(${value})`,
3437
3872
  "@defaults filter": {},
3438
3873
  filter: cssFilterValue
3439
- })
3874
+ };
3875
+ }
3440
3876
  }, {
3441
3877
  values: theme("dropShadow")
3442
3878
  });
3443
3879
  },
3444
3880
  grayscale: ({ matchUtilities , theme })=>{
3445
3881
  matchUtilities({
3446
- grayscale: (value)=>({
3882
+ grayscale: (value)=>{
3883
+ return {
3447
3884
  "--tw-grayscale": `grayscale(${value})`,
3448
3885
  "@defaults filter": {},
3449
3886
  filter: cssFilterValue
3450
- })
3887
+ };
3888
+ }
3451
3889
  }, {
3452
3890
  values: theme("grayscale")
3453
3891
  });
3454
3892
  },
3455
3893
  hueRotate: ({ matchUtilities , theme })=>{
3456
3894
  matchUtilities({
3457
- "hue-rotate": (value)=>({
3895
+ "hue-rotate": (value)=>{
3896
+ return {
3458
3897
  "--tw-hue-rotate": `hue-rotate(${value})`,
3459
3898
  "@defaults filter": {},
3460
3899
  filter: cssFilterValue
3461
- })
3900
+ };
3901
+ }
3462
3902
  }, {
3463
3903
  values: theme("hueRotate"),
3464
- supportsNegativeValues: !0
3904
+ supportsNegativeValues: true
3465
3905
  });
3466
3906
  },
3467
3907
  invert: ({ matchUtilities , theme })=>{
3468
3908
  matchUtilities({
3469
- invert: (value)=>({
3909
+ invert: (value)=>{
3910
+ return {
3470
3911
  "--tw-invert": `invert(${value})`,
3471
3912
  "@defaults filter": {},
3472
3913
  filter: cssFilterValue
3473
- })
3914
+ };
3915
+ }
3474
3916
  }, {
3475
3917
  values: theme("invert")
3476
3918
  });
3477
3919
  },
3478
3920
  saturate: ({ matchUtilities , theme })=>{
3479
3921
  matchUtilities({
3480
- saturate: (value)=>({
3922
+ saturate: (value)=>{
3923
+ return {
3481
3924
  "--tw-saturate": `saturate(${value})`,
3482
3925
  "@defaults filter": {},
3483
3926
  filter: cssFilterValue
3484
- })
3927
+ };
3928
+ }
3485
3929
  }, {
3486
3930
  values: theme("saturate")
3487
3931
  });
3488
3932
  },
3489
3933
  sepia: ({ matchUtilities , theme })=>{
3490
3934
  matchUtilities({
3491
- sepia: (value)=>({
3935
+ sepia: (value)=>{
3936
+ return {
3492
3937
  "--tw-sepia": `sepia(${value})`,
3493
3938
  "@defaults filter": {},
3494
3939
  filter: cssFilterValue
3495
- })
3940
+ };
3941
+ }
3496
3942
  }, {
3497
3943
  values: theme("sepia")
3498
3944
  });
@@ -3508,7 +3954,8 @@ let variantPlugins = {
3508
3954
  "--tw-saturate": " ",
3509
3955
  "--tw-sepia": " ",
3510
3956
  "--tw-drop-shadow": " "
3511
- }), addUtilities({
3957
+ });
3958
+ addUtilities({
3512
3959
  ".filter": {
3513
3960
  "@defaults filter": {},
3514
3961
  filter: cssFilterValue
@@ -3520,100 +3967,118 @@ let variantPlugins = {
3520
3967
  },
3521
3968
  backdropBlur: ({ matchUtilities , theme })=>{
3522
3969
  matchUtilities({
3523
- "backdrop-blur": (value)=>({
3970
+ "backdrop-blur": (value)=>{
3971
+ return {
3524
3972
  "--tw-backdrop-blur": `blur(${value})`,
3525
3973
  "@defaults backdrop-filter": {},
3526
3974
  "backdrop-filter": cssBackdropFilterValue
3527
- })
3975
+ };
3976
+ }
3528
3977
  }, {
3529
3978
  values: theme("backdropBlur")
3530
3979
  });
3531
3980
  },
3532
3981
  backdropBrightness: ({ matchUtilities , theme })=>{
3533
3982
  matchUtilities({
3534
- "backdrop-brightness": (value)=>({
3983
+ "backdrop-brightness": (value)=>{
3984
+ return {
3535
3985
  "--tw-backdrop-brightness": `brightness(${value})`,
3536
3986
  "@defaults backdrop-filter": {},
3537
3987
  "backdrop-filter": cssBackdropFilterValue
3538
- })
3988
+ };
3989
+ }
3539
3990
  }, {
3540
3991
  values: theme("backdropBrightness")
3541
3992
  });
3542
3993
  },
3543
3994
  backdropContrast: ({ matchUtilities , theme })=>{
3544
3995
  matchUtilities({
3545
- "backdrop-contrast": (value)=>({
3996
+ "backdrop-contrast": (value)=>{
3997
+ return {
3546
3998
  "--tw-backdrop-contrast": `contrast(${value})`,
3547
3999
  "@defaults backdrop-filter": {},
3548
4000
  "backdrop-filter": cssBackdropFilterValue
3549
- })
4001
+ };
4002
+ }
3550
4003
  }, {
3551
4004
  values: theme("backdropContrast")
3552
4005
  });
3553
4006
  },
3554
4007
  backdropGrayscale: ({ matchUtilities , theme })=>{
3555
4008
  matchUtilities({
3556
- "backdrop-grayscale": (value)=>({
4009
+ "backdrop-grayscale": (value)=>{
4010
+ return {
3557
4011
  "--tw-backdrop-grayscale": `grayscale(${value})`,
3558
4012
  "@defaults backdrop-filter": {},
3559
4013
  "backdrop-filter": cssBackdropFilterValue
3560
- })
4014
+ };
4015
+ }
3561
4016
  }, {
3562
4017
  values: theme("backdropGrayscale")
3563
4018
  });
3564
4019
  },
3565
4020
  backdropHueRotate: ({ matchUtilities , theme })=>{
3566
4021
  matchUtilities({
3567
- "backdrop-hue-rotate": (value)=>({
4022
+ "backdrop-hue-rotate": (value)=>{
4023
+ return {
3568
4024
  "--tw-backdrop-hue-rotate": `hue-rotate(${value})`,
3569
4025
  "@defaults backdrop-filter": {},
3570
4026
  "backdrop-filter": cssBackdropFilterValue
3571
- })
4027
+ };
4028
+ }
3572
4029
  }, {
3573
4030
  values: theme("backdropHueRotate"),
3574
- supportsNegativeValues: !0
4031
+ supportsNegativeValues: true
3575
4032
  });
3576
4033
  },
3577
4034
  backdropInvert: ({ matchUtilities , theme })=>{
3578
4035
  matchUtilities({
3579
- "backdrop-invert": (value)=>({
4036
+ "backdrop-invert": (value)=>{
4037
+ return {
3580
4038
  "--tw-backdrop-invert": `invert(${value})`,
3581
4039
  "@defaults backdrop-filter": {},
3582
4040
  "backdrop-filter": cssBackdropFilterValue
3583
- })
4041
+ };
4042
+ }
3584
4043
  }, {
3585
4044
  values: theme("backdropInvert")
3586
4045
  });
3587
4046
  },
3588
4047
  backdropOpacity: ({ matchUtilities , theme })=>{
3589
4048
  matchUtilities({
3590
- "backdrop-opacity": (value)=>({
4049
+ "backdrop-opacity": (value)=>{
4050
+ return {
3591
4051
  "--tw-backdrop-opacity": `opacity(${value})`,
3592
4052
  "@defaults backdrop-filter": {},
3593
4053
  "backdrop-filter": cssBackdropFilterValue
3594
- })
4054
+ };
4055
+ }
3595
4056
  }, {
3596
4057
  values: theme("backdropOpacity")
3597
4058
  });
3598
4059
  },
3599
4060
  backdropSaturate: ({ matchUtilities , theme })=>{
3600
4061
  matchUtilities({
3601
- "backdrop-saturate": (value)=>({
4062
+ "backdrop-saturate": (value)=>{
4063
+ return {
3602
4064
  "--tw-backdrop-saturate": `saturate(${value})`,
3603
4065
  "@defaults backdrop-filter": {},
3604
4066
  "backdrop-filter": cssBackdropFilterValue
3605
- })
4067
+ };
4068
+ }
3606
4069
  }, {
3607
4070
  values: theme("backdropSaturate")
3608
4071
  });
3609
4072
  },
3610
4073
  backdropSepia: ({ matchUtilities , theme })=>{
3611
4074
  matchUtilities({
3612
- "backdrop-sepia": (value)=>({
4075
+ "backdrop-sepia": (value)=>{
4076
+ return {
3613
4077
  "--tw-backdrop-sepia": `sepia(${value})`,
3614
4078
  "@defaults backdrop-filter": {},
3615
4079
  "backdrop-filter": cssBackdropFilterValue
3616
- })
4080
+ };
4081
+ }
3617
4082
  }, {
3618
4083
  values: theme("backdropSepia")
3619
4084
  });
@@ -3629,7 +4094,8 @@ let variantPlugins = {
3629
4094
  "--tw-backdrop-opacity": " ",
3630
4095
  "--tw-backdrop-saturate": " ",
3631
4096
  "--tw-backdrop-sepia": " "
3632
- }), addUtilities({
4097
+ });
4098
+ addUtilities({
3633
4099
  ".backdrop-filter": {
3634
4100
  "@defaults backdrop-filter": {},
3635
4101
  "backdrop-filter": cssBackdropFilterValue
@@ -3640,15 +4106,18 @@ let variantPlugins = {
3640
4106
  });
3641
4107
  },
3642
4108
  transitionProperty: ({ matchUtilities , theme })=>{
3643
- let defaultTimingFunction = theme("transitionTimingFunction.DEFAULT"), defaultDuration = theme("transitionDuration.DEFAULT");
4109
+ let defaultTimingFunction = theme("transitionTimingFunction.DEFAULT");
4110
+ let defaultDuration = theme("transitionDuration.DEFAULT");
3644
4111
  matchUtilities({
3645
- transition: (value)=>({
4112
+ transition: (value)=>{
4113
+ return {
3646
4114
  "transition-property": value,
3647
- ..."none" === value ? {} : {
4115
+ ...value === "none" ? {} : {
3648
4116
  "transition-timing-function": defaultTimingFunction,
3649
4117
  "transition-duration": defaultDuration
3650
4118
  }
3651
- })
4119
+ };
4120
+ }
3652
4121
  }, {
3653
4122
  values: theme("transitionProperty")
3654
4123
  });
@@ -3669,7 +4138,7 @@ let variantPlugins = {
3669
4138
  ]
3670
4139
  ]
3671
4140
  ], {
3672
- filterDefault: !0
4141
+ filterDefault: true
3673
4142
  }),
3674
4143
  transitionTimingFunction: (0, _createUtilityPlugin.default)("transitionTimingFunction", [
3675
4144
  [
@@ -3679,7 +4148,7 @@ let variantPlugins = {
3679
4148
  ]
3680
4149
  ]
3681
4150
  ], {
3682
- filterDefault: !0
4151
+ filterDefault: true
3683
4152
  }),
3684
4153
  willChange: (0, _createUtilityPlugin.default)("willChange", [
3685
4154
  [