tailwindcss 0.0.0-insiders.ea10bb9 → 0.0.0-insiders.ea3d9cd

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 (187) hide show
  1. package/README.md +1 -1
  2. package/index.css +5 -0
  3. package/lib/cli/build/index.js +23 -10
  4. package/lib/cli/build/plugin.js +136 -117
  5. package/lib/cli/build/utils.js +18 -8
  6. package/lib/cli/build/watching.js +16 -12
  7. package/lib/cli/help/index.js +6 -4
  8. package/lib/cli/index.js +223 -10
  9. package/lib/cli/init/index.js +29 -12
  10. package/lib/cli.js +1 -227
  11. package/lib/corePluginList.js +8 -1
  12. package/lib/corePlugins.js +374 -77
  13. package/lib/css/preflight.css +9 -1
  14. package/lib/featureFlags.js +30 -17
  15. package/lib/index.js +1 -47
  16. package/lib/lib/cacheInvalidation.js +7 -5
  17. package/lib/lib/collapseAdjacentRules.js +5 -3
  18. package/lib/lib/collapseDuplicateDeclarations.js +12 -10
  19. package/lib/lib/content.js +61 -31
  20. package/lib/lib/defaultExtractor.js +15 -8
  21. package/lib/lib/detectNesting.js +10 -2
  22. package/lib/lib/evaluateTailwindFunctions.js +24 -20
  23. package/lib/lib/expandApplyAtRules.js +43 -35
  24. package/lib/lib/expandTailwindAtRules.js +89 -22
  25. package/lib/lib/findAtConfigPath.js +9 -7
  26. package/lib/lib/generateRules.js +160 -98
  27. package/lib/lib/getModuleDependencies.js +85 -37
  28. package/lib/lib/handleImportAtRules.js +50 -0
  29. package/lib/lib/load-config.js +42 -0
  30. package/lib/lib/normalizeTailwindDirectives.js +5 -18
  31. package/lib/lib/offsets.js +93 -4
  32. package/lib/lib/partitionApplyAtRules.js +3 -1
  33. package/lib/lib/regex.js +21 -7
  34. package/lib/lib/remap-bitfield.js +89 -0
  35. package/lib/lib/resolveDefaultsAtRules.js +28 -24
  36. package/lib/lib/setupContextUtils.js +191 -142
  37. package/lib/lib/setupTrackingContext.js +50 -26
  38. package/lib/lib/sharedState.js +28 -9
  39. package/lib/lib/substituteScreenAtRules.js +5 -3
  40. package/lib/plugin.js +116 -0
  41. package/lib/postcss-plugins/nesting/index.js +3 -1
  42. package/lib/postcss-plugins/nesting/plugin.js +10 -8
  43. package/lib/processTailwindFeatures.js +14 -12
  44. package/lib/public/colors.js +49 -25
  45. package/lib/public/create-plugin.js +5 -3
  46. package/lib/public/default-config.js +6 -4
  47. package/lib/public/default-theme.js +6 -4
  48. package/lib/public/load-config.js +12 -0
  49. package/lib/public/resolve-config.js +6 -4
  50. package/lib/util/applyImportantSelector.js +36 -0
  51. package/lib/util/bigSign.js +3 -1
  52. package/lib/util/buildMediaQuery.js +3 -1
  53. package/lib/util/cloneDeep.js +3 -1
  54. package/lib/util/cloneNodes.js +5 -3
  55. package/lib/util/color.js +30 -12
  56. package/lib/util/colorNames.js +752 -0
  57. package/lib/util/configurePlugins.js +3 -1
  58. package/lib/util/createPlugin.js +3 -1
  59. package/lib/util/createUtilityPlugin.js +7 -5
  60. package/lib/util/dataTypes.js +88 -23
  61. package/lib/util/defaults.js +9 -7
  62. package/lib/util/escapeClassName.js +10 -8
  63. package/lib/util/escapeCommas.js +3 -1
  64. package/lib/util/flattenColorPalette.js +3 -1
  65. package/lib/util/formatVariantSelector.js +138 -160
  66. package/lib/util/getAllConfigs.js +8 -6
  67. package/lib/util/hashConfig.js +6 -4
  68. package/lib/util/isKeyframeRule.js +3 -1
  69. package/lib/util/isPlainObject.js +3 -1
  70. package/lib/util/isSyntacticallyValidPropertyValue.js +3 -1
  71. package/lib/util/log.js +25 -4
  72. package/lib/util/nameClass.js +12 -6
  73. package/lib/util/negateValue.js +4 -2
  74. package/lib/util/normalizeConfig.js +63 -36
  75. package/lib/util/normalizeScreens.js +12 -4
  76. package/lib/util/parseAnimationValue.js +3 -1
  77. package/lib/util/parseBoxShadowValue.js +6 -2
  78. package/lib/util/parseDependency.js +3 -1
  79. package/lib/util/parseGlob.js +6 -4
  80. package/lib/util/parseObjectStyles.js +9 -7
  81. package/lib/util/pluginUtils.js +53 -55
  82. package/lib/util/prefixSelector.js +27 -11
  83. package/lib/util/pseudoElements.js +209 -0
  84. package/lib/util/removeAlphaVariables.js +3 -1
  85. package/lib/util/resolveConfig.js +17 -15
  86. package/lib/util/resolveConfigPath.js +26 -10
  87. package/lib/util/responsive.js +6 -4
  88. package/lib/util/splitAtTopLevelOnly.js +10 -2
  89. package/lib/util/tap.js +3 -1
  90. package/lib/util/toColorValue.js +3 -1
  91. package/lib/util/toPath.js +3 -1
  92. package/lib/util/transformThemeValue.js +6 -4
  93. package/lib/util/validateConfig.js +27 -3
  94. package/lib/util/validateFormalSyntax.js +3 -1
  95. package/lib/util/withAlphaVariable.js +6 -2
  96. package/lib/value-parser/LICENSE +22 -0
  97. package/lib/value-parser/README.md +3 -0
  98. package/lib/value-parser/index.d.js +2 -0
  99. package/lib/value-parser/index.js +22 -0
  100. package/lib/value-parser/parse.js +259 -0
  101. package/lib/value-parser/stringify.js +38 -0
  102. package/lib/value-parser/unit.js +86 -0
  103. package/lib/value-parser/walk.js +16 -0
  104. package/loadConfig.d.ts +4 -0
  105. package/loadConfig.js +2 -0
  106. package/package.json +46 -45
  107. package/resolveConfig.d.ts +11 -2
  108. package/src/cli/build/index.js +17 -9
  109. package/src/cli/build/plugin.js +96 -73
  110. package/src/cli/build/watching.js +4 -2
  111. package/src/cli/index.js +217 -3
  112. package/src/cli/init/index.js +37 -8
  113. package/src/cli.js +1 -221
  114. package/src/corePluginList.js +1 -1
  115. package/src/corePlugins.js +237 -34
  116. package/src/css/preflight.css +9 -1
  117. package/src/featureFlags.js +7 -3
  118. package/src/index.js +1 -47
  119. package/src/lib/content.js +45 -18
  120. package/src/lib/defaultExtractor.js +9 -3
  121. package/src/lib/detectNesting.js +9 -1
  122. package/src/lib/evaluateTailwindFunctions.js +4 -1
  123. package/src/lib/expandApplyAtRules.js +8 -1
  124. package/src/lib/expandTailwindAtRules.js +73 -12
  125. package/src/lib/generateRules.js +127 -49
  126. package/src/lib/getModuleDependencies.js +70 -30
  127. package/src/lib/handleImportAtRules.js +34 -0
  128. package/src/lib/load-config.ts +31 -0
  129. package/src/lib/normalizeTailwindDirectives.js +0 -27
  130. package/src/lib/offsets.js +104 -1
  131. package/src/lib/remap-bitfield.js +82 -0
  132. package/src/lib/setupContextUtils.js +109 -69
  133. package/src/lib/setupTrackingContext.js +37 -14
  134. package/src/lib/sharedState.js +11 -4
  135. package/src/plugin.js +124 -0
  136. package/src/public/colors.js +22 -0
  137. package/src/public/default-config.js +1 -1
  138. package/src/public/default-theme.js +2 -2
  139. package/src/public/load-config.js +2 -0
  140. package/src/util/applyImportantSelector.js +27 -0
  141. package/src/util/color.js +18 -3
  142. package/src/util/colorNames.js +150 -0
  143. package/src/util/dataTypes.js +49 -9
  144. package/src/util/formatVariantSelector.js +160 -163
  145. package/src/util/getAllConfigs.js +2 -2
  146. package/src/util/log.js +24 -0
  147. package/src/util/negateValue.js +1 -1
  148. package/src/util/normalizeConfig.js +39 -11
  149. package/src/util/pluginUtils.js +16 -35
  150. package/src/util/prefixSelector.js +28 -10
  151. package/src/util/pseudoElements.js +167 -0
  152. package/src/util/resolveConfigPath.js +12 -1
  153. package/src/util/splitAtTopLevelOnly.js +8 -1
  154. package/src/util/validateConfig.js +23 -0
  155. package/src/value-parser/LICENSE +22 -0
  156. package/src/value-parser/README.md +3 -0
  157. package/src/value-parser/index.d.ts +177 -0
  158. package/src/value-parser/index.js +28 -0
  159. package/src/value-parser/parse.js +303 -0
  160. package/src/value-parser/stringify.js +41 -0
  161. package/src/value-parser/unit.js +118 -0
  162. package/src/value-parser/walk.js +18 -0
  163. package/stubs/.gitignore +1 -0
  164. package/stubs/.prettierrc.json +6 -0
  165. package/stubs/{defaultConfig.stub.js → config.full.js} +197 -147
  166. package/stubs/{simpleConfig.stub.js → config.simple.js} +1 -2
  167. package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -1
  168. package/stubs/postcss.config.js +5 -0
  169. package/stubs/tailwind.config.cjs +2 -0
  170. package/stubs/tailwind.config.js +2 -0
  171. package/stubs/tailwind.config.ts +3 -0
  172. package/types/config.d.ts +17 -10
  173. package/types/generated/colors.d.ts +22 -0
  174. package/types/generated/corePluginList.d.ts +1 -1
  175. package/types/generated/default-theme.d.ts +110 -80
  176. package/CHANGELOG.md +0 -2336
  177. package/lib/cli/build/deps.js +0 -54
  178. package/lib/cli/shared.js +0 -12
  179. package/lib/cli-peer-dependencies.js +0 -28
  180. package/lib/constants.js +0 -44
  181. package/peers/index.js +0 -79512
  182. package/scripts/install-integrations.js +0 -27
  183. package/scripts/rebuildFixtures.js +0 -68
  184. package/src/cli/build/deps.js +0 -56
  185. package/src/cli/shared.js +0 -5
  186. package/src/cli-peer-dependencies.js +0 -15
  187. package/src/constants.js +0 -17
@@ -9,29 +9,33 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- variantPlugins: ()=>variantPlugins,
13
- corePlugins: ()=>corePlugins
12
+ variantPlugins: function() {
13
+ return variantPlugins;
14
+ },
15
+ corePlugins: function() {
16
+ return corePlugins;
17
+ }
14
18
  });
15
- const _fs = /*#__PURE__*/ _interopRequireDefault(require("fs"));
16
- const _path = /*#__PURE__*/ _interopRequireWildcard(require("path"));
17
- const _postcss = /*#__PURE__*/ _interopRequireDefault(require("postcss"));
18
- const _createUtilityPlugin = /*#__PURE__*/ _interopRequireDefault(require("./util/createUtilityPlugin"));
19
- const _buildMediaQuery = /*#__PURE__*/ _interopRequireDefault(require("./util/buildMediaQuery"));
20
- const _escapeClassName = /*#__PURE__*/ _interopRequireDefault(require("./util/escapeClassName"));
21
- const _parseAnimationValue = /*#__PURE__*/ _interopRequireDefault(require("./util/parseAnimationValue"));
22
- const _flattenColorPalette = /*#__PURE__*/ _interopRequireDefault(require("./util/flattenColorPalette"));
23
- const _withAlphaVariable = /*#__PURE__*/ _interopRequireWildcard(require("./util/withAlphaVariable"));
24
- const _toColorValue = /*#__PURE__*/ _interopRequireDefault(require("./util/toColorValue"));
25
- const _isPlainObject = /*#__PURE__*/ _interopRequireDefault(require("./util/isPlainObject"));
26
- const _transformThemeValue = /*#__PURE__*/ _interopRequireDefault(require("./util/transformThemeValue"));
27
- const _packageJson = require("../package.json");
28
- const _log = /*#__PURE__*/ _interopRequireDefault(require("./util/log"));
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"));
29
33
  const _normalizeScreens = require("./util/normalizeScreens");
30
34
  const _parseBoxShadowValue = require("./util/parseBoxShadowValue");
31
35
  const _removeAlphaVariables = require("./util/removeAlphaVariables");
32
36
  const _featureFlags = require("./featureFlags");
33
37
  const _dataTypes = require("./util/dataTypes");
34
- function _interopRequireDefault(obj) {
38
+ function _interop_require_default(obj) {
35
39
  return obj && obj.__esModule ? obj : {
36
40
  default: obj
37
41
  };
@@ -44,7 +48,7 @@ function _getRequireWildcardCache(nodeInterop) {
44
48
  return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
45
49
  })(nodeInterop);
46
50
  }
47
- function _interopRequireWildcard(obj, nodeInterop) {
51
+ function _interop_require_wildcard(obj, nodeInterop) {
48
52
  if (!nodeInterop && obj && obj.__esModule) {
49
53
  return obj;
50
54
  }
@@ -212,14 +216,14 @@ let variantPlugins = {
212
216
  }
213
217
  let variants = {
214
218
  group: (_, { modifier })=>modifier ? [
215
- `:merge(.group\\/${modifier})`,
219
+ `:merge(.group\\/${(0, _escapeClassName.default)(modifier)})`,
216
220
  " &"
217
221
  ] : [
218
222
  `:merge(.group)`,
219
223
  " &"
220
224
  ],
221
225
  peer: (_, { modifier })=>modifier ? [
222
- `:merge(.peer\\/${modifier})`,
226
+ `:merge(.peer\\/${(0, _escapeClassName.default)(modifier)})`,
223
227
  " ~ &"
224
228
  ] : [
225
229
  `:merge(.peer)`,
@@ -231,27 +235,33 @@ let variantPlugins = {
231
235
  let result = (0, _dataTypes.normalize)(typeof value === "function" ? value(extra) : value);
232
236
  if (!result.includes("&")) result = "&" + result;
233
237
  let [a, b] = fn("", extra);
234
- return result.replace(/&(\S+)?/g, (_, pseudo = "")=>a + pseudo + b);
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);
235
257
  }, {
236
258
  values: Object.fromEntries(pseudoVariants)
237
259
  });
238
260
  }
239
261
  },
240
262
  directionVariants: ({ addVariant })=>{
241
- addVariant("ltr", ()=>{
242
- _log.default.warn("rtl-experimental", [
243
- "The RTL features in Tailwind CSS are currently in preview.",
244
- "Preview features are not covered by semver, and may be improved in breaking ways at any time."
245
- ]);
246
- return '[dir="ltr"] &';
247
- });
248
- addVariant("rtl", ()=>{
249
- _log.default.warn("rtl-experimental", [
250
- "The RTL features in Tailwind CSS are currently in preview.",
251
- "Preview features are not covered by semver, and may be improved in breaking ways at any time."
252
- ]);
253
- return '[dir="rtl"] &';
254
- });
263
+ addVariant("ltr", ':is([dir="ltr"] &)');
264
+ addVariant("rtl", ':is([dir="rtl"] &)');
255
265
  },
256
266
  reducedMotionVariants: ({ addVariant })=>{
257
267
  addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
@@ -268,7 +278,7 @@ let variantPlugins = {
268
278
  ]);
269
279
  }
270
280
  if (mode === "class") {
271
- addVariant("dark", `${className} &`);
281
+ addVariant("dark", `:is(${className} &)`);
272
282
  } else if (mode === "media") {
273
283
  addVariant("dark", "@media (prefers-color-scheme: dark)");
274
284
  }
@@ -277,15 +287,15 @@ let variantPlugins = {
277
287
  addVariant("print", "@media print");
278
288
  },
279
289
  screenVariants: ({ theme , addVariant , matchVariant })=>{
280
- var ref;
281
- let rawScreens = (ref = theme("screens")) !== null && ref !== void 0 ? ref : {};
290
+ var _theme;
291
+ let rawScreens = (_theme = theme("screens")) !== null && _theme !== void 0 ? _theme : {};
282
292
  let areSimpleScreens = Object.values(rawScreens).every((v)=>typeof v === "string");
283
293
  let screens = (0, _normalizeScreens.normalizeScreens)(theme("screens"));
284
294
  /** @type {Set<string>} */ let unitCache = new Set([]);
285
295
  /** @param {string} value */ function units(value) {
286
- var ref;
287
- var ref1;
288
- return (ref1 = (ref = value.match(/(\D+)$/)) === null || ref === void 0 ? void 0 : ref[1]) !== null && ref1 !== void 0 ? ref1 : "(none)";
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)";
289
299
  }
290
300
  /** @param {string} value */ function recordUnits(value) {
291
301
  if (value !== undefined) {
@@ -371,11 +381,11 @@ let variantPlugins = {
371
381
  });
372
382
  // screens and min-* are sorted together when they can be
373
383
  let id = "min-screens";
374
- for (let screen1 of screens){
375
- addVariant(screen1.name, `@media ${(0, _buildMediaQuery.default)(screen1)}`, {
384
+ for (let screen of screens){
385
+ addVariant(screen.name, `@media ${(0, _buildMediaQuery.default)(screen)}`, {
376
386
  id,
377
387
  sort: areSimpleScreens && screensUseConsistentUnits ? minSort : undefined,
378
- value: screen1
388
+ value: screen
379
389
  });
380
390
  }
381
391
  matchVariant("min", buildScreenVariant("min"), {
@@ -384,7 +394,7 @@ let variantPlugins = {
384
394
  });
385
395
  },
386
396
  supportsVariants: ({ matchVariant , theme })=>{
387
- var ref;
397
+ var _theme;
388
398
  matchVariant("supports", (value = "")=>{
389
399
  let check = (0, _dataTypes.normalize)(value);
390
400
  let isRaw = /^\w*\s*\(/.test(check);
@@ -402,35 +412,46 @@ let variantPlugins = {
402
412
  }
403
413
  return `@supports ${check}`;
404
414
  }, {
405
- values: (ref = theme("supports")) !== null && ref !== void 0 ? ref : {}
415
+ values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
416
+ });
417
+ },
418
+ hasVariants: ({ matchVariant })=>{
419
+ matchVariant("has", (value)=>`&:has(${(0, _dataTypes.normalize)(value)})`, {
420
+ values: {}
421
+ });
422
+ matchVariant("group-has", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) &` : `:merge(.group):has(${(0, _dataTypes.normalize)(value)}) &`, {
423
+ values: {}
424
+ });
425
+ matchVariant("peer-has", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) ~ &` : `:merge(.peer):has(${(0, _dataTypes.normalize)(value)}) ~ &`, {
426
+ values: {}
406
427
  });
407
428
  },
408
429
  ariaVariants: ({ matchVariant , theme })=>{
409
- var ref;
430
+ var _theme;
410
431
  matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
411
- values: (ref = theme("aria")) !== null && ref !== void 0 ? ref : {}
432
+ values: (_theme = theme("aria")) !== null && _theme !== void 0 ? _theme : {}
412
433
  });
413
- var ref1;
434
+ var _theme1;
414
435
  matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
415
- values: (ref1 = theme("aria")) !== null && ref1 !== void 0 ? ref1 : {}
436
+ values: (_theme1 = theme("aria")) !== null && _theme1 !== void 0 ? _theme1 : {}
416
437
  });
417
- var ref2;
438
+ var _theme2;
418
439
  matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
419
- values: (ref2 = theme("aria")) !== null && ref2 !== void 0 ? ref2 : {}
440
+ values: (_theme2 = theme("aria")) !== null && _theme2 !== void 0 ? _theme2 : {}
420
441
  });
421
442
  },
422
443
  dataVariants: ({ matchVariant , theme })=>{
423
- var ref;
444
+ var _theme;
424
445
  matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
425
- values: (ref = theme("data")) !== null && ref !== void 0 ? ref : {}
446
+ values: (_theme = theme("data")) !== null && _theme !== void 0 ? _theme : {}
426
447
  });
427
- var ref1;
448
+ var _theme1;
428
449
  matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
429
- values: (ref1 = theme("data")) !== null && ref1 !== void 0 ? ref1 : {}
450
+ values: (_theme1 = theme("data")) !== null && _theme1 !== void 0 ? _theme1 : {}
430
451
  });
431
- var ref2;
452
+ var _theme2;
432
453
  matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
433
- values: (ref2 = theme("data")) !== null && ref2 !== void 0 ? ref2 : {}
454
+ values: (_theme2 = theme("data")) !== null && _theme2 !== void 0 ? _theme2 : {}
434
455
  });
435
456
  },
436
457
  orientationVariants: ({ addVariant })=>{
@@ -477,7 +498,7 @@ let corePlugins = {
477
498
  let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(_path.join(__dirname, "./css/preflight.css"), "utf8"));
478
499
  addBase([
479
500
  _postcss.default.comment({
480
- text: `! tailwindcss v${_packageJson.version} | MIT License | https://tailwindcss.com`
501
+ text: `! tailwindcss v${_packagejson.version} | MIT License | https://tailwindcss.com`
481
502
  }),
482
503
  ...preflightStyles.nodes
483
504
  ]);
@@ -627,10 +648,7 @@ let corePlugins = {
627
648
  [
628
649
  "inset",
629
650
  [
630
- "top",
631
- "right",
632
- "bottom",
633
- "left"
651
+ "inset"
634
652
  ]
635
653
  ],
636
654
  [
@@ -650,6 +668,18 @@ let corePlugins = {
650
668
  ]
651
669
  ],
652
670
  [
671
+ [
672
+ "start",
673
+ [
674
+ "inset-inline-start"
675
+ ]
676
+ ],
677
+ [
678
+ "end",
679
+ [
680
+ "inset-inline-end"
681
+ ]
682
+ ],
653
683
  [
654
684
  "top",
655
685
  [
@@ -802,6 +832,18 @@ let corePlugins = {
802
832
  ]
803
833
  ],
804
834
  [
835
+ [
836
+ "ms",
837
+ [
838
+ "margin-inline-start"
839
+ ]
840
+ ],
841
+ [
842
+ "me",
843
+ [
844
+ "margin-inline-end"
845
+ ]
846
+ ],
805
847
  [
806
848
  "mt",
807
849
  [
@@ -840,6 +882,26 @@ let corePlugins = {
840
882
  }
841
883
  });
842
884
  },
885
+ lineClamp: ({ matchUtilities , addUtilities , theme })=>{
886
+ matchUtilities({
887
+ "line-clamp": (value)=>({
888
+ overflow: "hidden",
889
+ display: "-webkit-box",
890
+ "-webkit-box-orient": "vertical",
891
+ "-webkit-line-clamp": `${value}`
892
+ })
893
+ }, {
894
+ values: theme("lineClamp")
895
+ });
896
+ addUtilities({
897
+ ".line-clamp-none": {
898
+ overflow: "visible",
899
+ display: "block",
900
+ "-webkit-box-orient": "horizontal",
901
+ "-webkit-line-clamp": "none"
902
+ }
903
+ });
904
+ },
843
905
  display: ({ addUtilities })=>{
844
906
  addUtilities({
845
907
  ".block": {
@@ -1010,6 +1072,16 @@ let corePlugins = {
1010
1072
  }
1011
1073
  });
1012
1074
  },
1075
+ captionSide: ({ addUtilities })=>{
1076
+ addUtilities({
1077
+ ".caption-top": {
1078
+ "caption-side": "top"
1079
+ },
1080
+ ".caption-bottom": {
1081
+ "caption-side": "bottom"
1082
+ }
1083
+ });
1084
+ },
1013
1085
  borderCollapse: ({ addUtilities })=>{
1014
1086
  addUtilities({
1015
1087
  ".border-collapse": {
@@ -1223,8 +1295,8 @@ let corePlugins = {
1223
1295
  },
1224
1296
  animation: ({ matchUtilities , theme , config })=>{
1225
1297
  let prefixName = (name)=>`${config("prefix")}${(0, _escapeClassName.default)(name)}`;
1226
- var ref;
1227
- let keyframes = Object.fromEntries(Object.entries((ref = theme("keyframes")) !== null && ref !== void 0 ? ref : {}).map(([key, value])=>{
1298
+ var _theme;
1299
+ let keyframes = Object.fromEntries(Object.entries((_theme = theme("keyframes")) !== null && _theme !== void 0 ? _theme : {}).map(([key, value])=>{
1228
1300
  return [
1229
1301
  key,
1230
1302
  {
@@ -1416,6 +1488,18 @@ let corePlugins = {
1416
1488
  ]
1417
1489
  ],
1418
1490
  [
1491
+ [
1492
+ "scroll-ms",
1493
+ [
1494
+ "scroll-margin-inline-start"
1495
+ ]
1496
+ ],
1497
+ [
1498
+ "scroll-me",
1499
+ [
1500
+ "scroll-margin-inline-end"
1501
+ ]
1502
+ ],
1419
1503
  [
1420
1504
  "scroll-mt",
1421
1505
  [
@@ -1468,6 +1552,18 @@ let corePlugins = {
1468
1552
  ]
1469
1553
  ],
1470
1554
  [
1555
+ [
1556
+ "scroll-ps",
1557
+ [
1558
+ "scroll-padding-inline-start"
1559
+ ]
1560
+ ],
1561
+ [
1562
+ "scroll-pe",
1563
+ [
1564
+ "scroll-padding-inline-end"
1565
+ ]
1566
+ ],
1471
1567
  [
1472
1568
  "scroll-pt",
1473
1569
  [
@@ -1512,6 +1608,14 @@ let corePlugins = {
1512
1608
  ]
1513
1609
  ]
1514
1610
  ]),
1611
+ listStyleImage: (0, _createUtilityPlugin.default)("listStyleImage", [
1612
+ [
1613
+ "list-image",
1614
+ [
1615
+ "listStyleImage"
1616
+ ]
1617
+ ]
1618
+ ]),
1515
1619
  appearance: ({ addUtilities })=>{
1516
1620
  addUtilities({
1517
1621
  ".appearance-none": {
@@ -1728,6 +1832,9 @@ let corePlugins = {
1728
1832
  },
1729
1833
  alignContent: ({ addUtilities })=>{
1730
1834
  addUtilities({
1835
+ ".content-normal": {
1836
+ "align-content": "normal"
1837
+ },
1731
1838
  ".content-center": {
1732
1839
  "align-content": "center"
1733
1840
  },
@@ -1748,6 +1855,9 @@ let corePlugins = {
1748
1855
  },
1749
1856
  ".content-baseline": {
1750
1857
  "align-content": "baseline"
1858
+ },
1859
+ ".content-stretch": {
1860
+ "align-content": "stretch"
1751
1861
  }
1752
1862
  });
1753
1863
  },
@@ -1772,6 +1882,9 @@ let corePlugins = {
1772
1882
  },
1773
1883
  justifyContent: ({ addUtilities })=>{
1774
1884
  addUtilities({
1885
+ ".justify-normal": {
1886
+ "justify-content": "normal"
1887
+ },
1775
1888
  ".justify-start": {
1776
1889
  "justify-content": "flex-start"
1777
1890
  },
@@ -1789,6 +1902,9 @@ let corePlugins = {
1789
1902
  },
1790
1903
  ".justify-evenly": {
1791
1904
  "justify-content": "space-evenly"
1905
+ },
1906
+ ".justify-stretch": {
1907
+ "justify-content": "stretch"
1792
1908
  }
1793
1909
  });
1794
1910
  },
@@ -1830,10 +1946,19 @@ let corePlugins = {
1830
1946
  ]
1831
1947
  ]
1832
1948
  ]),
1833
- space: ({ matchUtilities , addUtilities , theme })=>{
1949
+ space: ({ matchUtilities , addUtilities , theme , config })=>{
1834
1950
  matchUtilities({
1835
1951
  "space-x": (value)=>{
1836
1952
  value = value === "0" ? "0px" : value;
1953
+ if ((0, _featureFlags.flagEnabled)(config(), "logicalSiblingUtilities")) {
1954
+ return {
1955
+ "& > :not([hidden]) ~ :not([hidden])": {
1956
+ "--tw-space-x-reverse": "0",
1957
+ "margin-inline-end": `calc(${value} * var(--tw-space-x-reverse))`,
1958
+ "margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1959
+ }
1960
+ };
1961
+ }
1837
1962
  return {
1838
1963
  "& > :not([hidden]) ~ :not([hidden])": {
1839
1964
  "--tw-space-x-reverse": "0",
@@ -1865,10 +1990,20 @@ let corePlugins = {
1865
1990
  }
1866
1991
  });
1867
1992
  },
1868
- divideWidth: ({ matchUtilities , addUtilities , theme })=>{
1993
+ divideWidth: ({ matchUtilities , addUtilities , theme , config })=>{
1869
1994
  matchUtilities({
1870
1995
  "divide-x": (value)=>{
1871
1996
  value = value === "0" ? "0px" : value;
1997
+ if ((0, _featureFlags.flagEnabled)(config(), "logicalSiblingUtilities")) {
1998
+ return {
1999
+ "& > :not([hidden]) ~ :not([hidden])": {
2000
+ "@defaults border-width": {},
2001
+ "--tw-divide-x-reverse": "0",
2002
+ "border-inline-end-width": `calc(${value} * var(--tw-divide-x-reverse))`,
2003
+ "border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
2004
+ }
2005
+ };
2006
+ }
1872
2007
  return {
1873
2008
  "& > :not([hidden]) ~ :not([hidden])": {
1874
2009
  "@defaults border-width": {},
@@ -2134,6 +2269,19 @@ let corePlugins = {
2134
2269
  }
2135
2270
  });
2136
2271
  },
2272
+ hyphens: ({ addUtilities })=>{
2273
+ addUtilities({
2274
+ ".hyphens-none": {
2275
+ hyphens: "none"
2276
+ },
2277
+ ".hyphens-manual": {
2278
+ hyphens: "manual"
2279
+ },
2280
+ ".hyphens-auto": {
2281
+ hyphens: "auto"
2282
+ }
2283
+ });
2284
+ },
2137
2285
  whitespace: ({ addUtilities })=>{
2138
2286
  addUtilities({
2139
2287
  ".whitespace-normal": {
@@ -2150,6 +2298,22 @@ let corePlugins = {
2150
2298
  },
2151
2299
  ".whitespace-pre-wrap": {
2152
2300
  "white-space": "pre-wrap"
2301
+ },
2302
+ ".whitespace-break-spaces": {
2303
+ "white-space": "break-spaces"
2304
+ }
2305
+ });
2306
+ },
2307
+ textWrap: ({ addUtilities })=>{
2308
+ addUtilities({
2309
+ ".text-wrap": {
2310
+ "text-wrap": "wrap"
2311
+ },
2312
+ ".text-nowrap": {
2313
+ "text-wrap": "nowrap"
2314
+ },
2315
+ ".text-balance": {
2316
+ "text-wrap": "balance"
2153
2317
  }
2154
2318
  });
2155
2319
  },
@@ -2178,6 +2342,20 @@ let corePlugins = {
2178
2342
  ]
2179
2343
  ],
2180
2344
  [
2345
+ [
2346
+ "rounded-s",
2347
+ [
2348
+ "border-start-start-radius",
2349
+ "border-end-start-radius"
2350
+ ]
2351
+ ],
2352
+ [
2353
+ "rounded-e",
2354
+ [
2355
+ "border-start-end-radius",
2356
+ "border-end-end-radius"
2357
+ ]
2358
+ ],
2181
2359
  [
2182
2360
  "rounded-t",
2183
2361
  [
@@ -2208,6 +2386,30 @@ let corePlugins = {
2208
2386
  ]
2209
2387
  ],
2210
2388
  [
2389
+ [
2390
+ "rounded-ss",
2391
+ [
2392
+ "border-start-start-radius"
2393
+ ]
2394
+ ],
2395
+ [
2396
+ "rounded-se",
2397
+ [
2398
+ "border-start-end-radius"
2399
+ ]
2400
+ ],
2401
+ [
2402
+ "rounded-ee",
2403
+ [
2404
+ "border-end-end-radius"
2405
+ ]
2406
+ ],
2407
+ [
2408
+ "rounded-es",
2409
+ [
2410
+ "border-end-start-radius"
2411
+ ]
2412
+ ],
2211
2413
  [
2212
2414
  "rounded-tl",
2213
2415
  [
@@ -2270,6 +2472,26 @@ let corePlugins = {
2270
2472
  ]
2271
2473
  ],
2272
2474
  [
2475
+ [
2476
+ "border-s",
2477
+ [
2478
+ [
2479
+ "@defaults border-width",
2480
+ {}
2481
+ ],
2482
+ "border-inline-start-width"
2483
+ ]
2484
+ ],
2485
+ [
2486
+ "border-e",
2487
+ [
2488
+ [
2489
+ "@defaults border-width",
2490
+ {}
2491
+ ],
2492
+ "border-inline-end-width"
2493
+ ]
2494
+ ],
2273
2495
  [
2274
2496
  "border-t",
2275
2497
  [
@@ -2401,6 +2623,30 @@ let corePlugins = {
2401
2623
  ]
2402
2624
  });
2403
2625
  matchUtilities({
2626
+ "border-s": (value)=>{
2627
+ if (!corePlugins("borderOpacity")) {
2628
+ return {
2629
+ "border-inline-start-color": (0, _toColorValue.default)(value)
2630
+ };
2631
+ }
2632
+ return (0, _withAlphaVariable.default)({
2633
+ color: value,
2634
+ property: "border-inline-start-color",
2635
+ variable: "--tw-border-opacity"
2636
+ });
2637
+ },
2638
+ "border-e": (value)=>{
2639
+ if (!corePlugins("borderOpacity")) {
2640
+ return {
2641
+ "border-inline-end-color": (0, _toColorValue.default)(value)
2642
+ };
2643
+ }
2644
+ return (0, _withAlphaVariable.default)({
2645
+ color: value,
2646
+ property: "border-inline-end-color",
2647
+ variable: "--tw-border-opacity"
2648
+ });
2649
+ },
2404
2650
  "border-t": (value)=>{
2405
2651
  if (!corePlugins("borderOpacity")) {
2406
2652
  return {
@@ -2513,7 +2759,12 @@ let corePlugins = {
2513
2759
  function transparentTo(value) {
2514
2760
  return (0, _withAlphaVariable.withAlphaValue)(value, 0, "rgb(255 255 255 / 0)");
2515
2761
  }
2516
- return function({ matchUtilities , theme }) {
2762
+ return function({ matchUtilities , theme , addDefaults }) {
2763
+ addDefaults("gradient-color-stops", {
2764
+ "--tw-gradient-from-position": " ",
2765
+ "--tw-gradient-via-position": " ",
2766
+ "--tw-gradient-to-position": " "
2767
+ });
2517
2768
  let options = {
2518
2769
  values: (0, _flattenColorPalette.default)(theme("gradientColorStops")),
2519
2770
  type: [
@@ -2521,30 +2772,61 @@ let corePlugins = {
2521
2772
  "any"
2522
2773
  ]
2523
2774
  };
2775
+ let positionOptions = {
2776
+ values: theme("gradientColorStopPositions"),
2777
+ type: [
2778
+ "length",
2779
+ "percentage"
2780
+ ]
2781
+ };
2524
2782
  matchUtilities({
2525
2783
  from: (value)=>{
2526
2784
  let transparentToValue = transparentTo(value);
2527
2785
  return {
2528
- "--tw-gradient-from": (0, _toColorValue.default)(value, "from"),
2529
- "--tw-gradient-to": transparentToValue,
2786
+ "@defaults gradient-color-stops": {},
2787
+ "--tw-gradient-from": `${(0, _toColorValue.default)(value)} var(--tw-gradient-from-position)`,
2788
+ "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2530
2789
  "--tw-gradient-stops": `var(--tw-gradient-from), var(--tw-gradient-to)`
2531
2790
  };
2532
2791
  }
2533
2792
  }, options);
2793
+ matchUtilities({
2794
+ from: (value)=>{
2795
+ return {
2796
+ "--tw-gradient-from-position": value
2797
+ };
2798
+ }
2799
+ }, positionOptions);
2534
2800
  matchUtilities({
2535
2801
  via: (value)=>{
2536
2802
  let transparentToValue = transparentTo(value);
2537
2803
  return {
2538
- "--tw-gradient-to": transparentToValue,
2539
- "--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value, "via")}, var(--tw-gradient-to)`
2804
+ "@defaults gradient-color-stops": {},
2805
+ "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2806
+ "--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value)} var(--tw-gradient-via-position), var(--tw-gradient-to)`
2540
2807
  };
2541
2808
  }
2542
2809
  }, options);
2810
+ matchUtilities({
2811
+ via: (value)=>{
2812
+ return {
2813
+ "--tw-gradient-via-position": value
2814
+ };
2815
+ }
2816
+ }, positionOptions);
2543
2817
  matchUtilities({
2544
2818
  to: (value)=>({
2545
- "--tw-gradient-to": (0, _toColorValue.default)(value, "to")
2819
+ "@defaults gradient-color-stops": {},
2820
+ "--tw-gradient-to": `${(0, _toColorValue.default)(value)} var(--tw-gradient-to-position)`
2546
2821
  })
2547
2822
  }, options);
2823
+ matchUtilities({
2824
+ to: (value)=>{
2825
+ return {
2826
+ "--tw-gradient-to-position": value
2827
+ };
2828
+ }
2829
+ }, positionOptions);
2548
2830
  };
2549
2831
  })(),
2550
2832
  boxDecorationBreak: ({ addUtilities })=>{
@@ -2756,6 +3038,18 @@ let corePlugins = {
2756
3038
  ]
2757
3039
  ],
2758
3040
  [
3041
+ [
3042
+ "ps",
3043
+ [
3044
+ "padding-inline-start"
3045
+ ]
3046
+ ],
3047
+ [
3048
+ "pe",
3049
+ [
3050
+ "padding-inline-end"
3051
+ ]
3052
+ ],
2759
3053
  [
2760
3054
  "pt",
2761
3055
  [
@@ -2853,11 +3147,14 @@ let corePlugins = {
2853
3147
  let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
2854
3148
  value
2855
3149
  ];
2856
- let { fontFeatureSettings } = options;
3150
+ let { fontFeatureSettings , fontVariationSettings } = options;
2857
3151
  return {
2858
3152
  "font-family": Array.isArray(families) ? families.join(", ") : families,
2859
3153
  ...fontFeatureSettings === undefined ? {} : {
2860
3154
  "font-feature-settings": fontFeatureSettings
3155
+ },
3156
+ ...fontVariationSettings === undefined ? {} : {
3157
+ "font-variation-settings": fontVariationSettings
2861
3158
  }
2862
3159
  };
2863
3160
  }
@@ -3448,15 +3745,15 @@ let corePlugins = {
3448
3745
  },
3449
3746
  ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
3450
3747
  let ringColorDefault = (()=>{
3451
- var ref, ref1;
3748
+ var _theme, _theme1;
3452
3749
  if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
3453
3750
  return theme("ringColor.DEFAULT");
3454
3751
  }
3455
3752
  let ringOpacityDefault = theme("ringOpacity.DEFAULT", "0.5");
3456
- if (!((ref = theme("ringColor")) === null || ref === void 0 ? void 0 : ref.DEFAULT)) {
3753
+ if (!((_theme = theme("ringColor")) === null || _theme === void 0 ? void 0 : _theme.DEFAULT)) {
3457
3754
  return `rgb(147 197 253 / ${ringOpacityDefault})`;
3458
3755
  }
3459
- return (0, _withAlphaVariable.withAlphaValue)((ref1 = theme("ringColor")) === null || ref1 === void 0 ? void 0 : ref1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3756
+ return (0, _withAlphaVariable.withAlphaValue)((_theme1 = theme("ringColor")) === null || _theme1 === void 0 ? void 0 : _theme1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3460
3757
  })();
3461
3758
  addDefaults("ring-width", {
3462
3759
  "--tw-ring-inset": " ",