tailwindcss 0.0.0-insiders.ea10bb9 → 0.0.0-insiders.ea4e1cd

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 (184) hide show
  1. package/README.md +1 -1
  2. package/lib/cli/build/deps.js +17 -9
  3. package/lib/cli/build/index.js +20 -10
  4. package/lib/cli/build/plugin.js +86 -70
  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 +222 -10
  9. package/lib/cli/init/index.js +29 -12
  10. package/lib/cli-peer-dependencies.js +12 -4
  11. package/lib/cli.js +4 -226
  12. package/lib/corePluginList.js +7 -1
  13. package/lib/corePlugins.js +348 -75
  14. package/lib/css/preflight.css +2 -0
  15. package/lib/featureFlags.js +27 -15
  16. package/lib/index.js +1 -47
  17. package/lib/lib/cacheInvalidation.js +7 -5
  18. package/lib/lib/collapseAdjacentRules.js +5 -3
  19. package/lib/lib/collapseDuplicateDeclarations.js +12 -10
  20. package/lib/lib/content.js +34 -30
  21. package/lib/lib/defaultExtractor.js +15 -8
  22. package/lib/lib/detectNesting.js +10 -2
  23. package/lib/lib/evaluateTailwindFunctions.js +22 -20
  24. package/lib/lib/expandApplyAtRules.js +43 -35
  25. package/lib/lib/expandTailwindAtRules.js +46 -19
  26. package/lib/lib/findAtConfigPath.js +9 -7
  27. package/lib/lib/generateRules.js +157 -92
  28. package/lib/lib/getModuleDependencies.js +85 -37
  29. package/lib/lib/load-config.js +42 -0
  30. package/lib/lib/normalizeTailwindDirectives.js +5 -3
  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 +190 -131
  37. package/lib/lib/setupTrackingContext.js +49 -26
  38. package/lib/lib/sharedState.js +37 -10
  39. package/lib/lib/substituteScreenAtRules.js +5 -3
  40. package/lib/oxide/cli/build/deps.js +89 -0
  41. package/lib/oxide/cli/build/index.js +53 -0
  42. package/lib/oxide/cli/build/plugin.js +375 -0
  43. package/lib/oxide/cli/build/utils.js +87 -0
  44. package/lib/oxide/cli/build/watching.js +179 -0
  45. package/lib/oxide/cli/help/index.js +72 -0
  46. package/lib/oxide/cli/index.js +214 -0
  47. package/lib/oxide/cli/init/index.js +52 -0
  48. package/lib/oxide/cli.js +5 -0
  49. package/lib/oxide/postcss-plugin.js +2 -0
  50. package/lib/plugin.js +98 -0
  51. package/lib/postcss-plugins/nesting/index.js +3 -1
  52. package/lib/postcss-plugins/nesting/plugin.js +10 -8
  53. package/lib/processTailwindFeatures.js +14 -12
  54. package/lib/public/colors.js +49 -25
  55. package/lib/public/create-plugin.js +5 -3
  56. package/lib/public/default-config.js +6 -4
  57. package/lib/public/default-theme.js +6 -4
  58. package/lib/public/load-config.js +12 -0
  59. package/lib/public/resolve-config.js +6 -4
  60. package/lib/util/applyImportantSelector.js +36 -0
  61. package/lib/util/bigSign.js +3 -1
  62. package/lib/util/buildMediaQuery.js +3 -1
  63. package/lib/util/cloneDeep.js +3 -1
  64. package/lib/util/cloneNodes.js +5 -3
  65. package/lib/util/color.js +30 -12
  66. package/lib/util/colorNames.js +752 -0
  67. package/lib/util/configurePlugins.js +3 -1
  68. package/lib/util/createPlugin.js +3 -1
  69. package/lib/util/createUtilityPlugin.js +7 -5
  70. package/lib/util/dataTypes.js +74 -17
  71. package/lib/util/defaults.js +9 -7
  72. package/lib/util/escapeClassName.js +10 -8
  73. package/lib/util/escapeCommas.js +3 -1
  74. package/lib/util/flattenColorPalette.js +3 -1
  75. package/lib/util/formatVariantSelector.js +138 -160
  76. package/lib/util/getAllConfigs.js +8 -6
  77. package/lib/util/hashConfig.js +6 -4
  78. package/lib/util/isKeyframeRule.js +3 -1
  79. package/lib/util/isPlainObject.js +3 -1
  80. package/lib/util/isSyntacticallyValidPropertyValue.js +3 -1
  81. package/lib/util/log.js +8 -4
  82. package/lib/util/nameClass.js +12 -6
  83. package/lib/util/negateValue.js +4 -2
  84. package/lib/util/normalizeConfig.js +28 -27
  85. package/lib/util/normalizeScreens.js +12 -4
  86. package/lib/util/parseAnimationValue.js +3 -1
  87. package/lib/util/parseBoxShadowValue.js +6 -2
  88. package/lib/util/parseDependency.js +3 -1
  89. package/lib/util/parseGlob.js +6 -4
  90. package/lib/util/parseObjectStyles.js +9 -7
  91. package/lib/util/pluginUtils.js +54 -54
  92. package/lib/util/prefixSelector.js +27 -11
  93. package/lib/util/pseudoElements.js +229 -0
  94. package/lib/util/removeAlphaVariables.js +3 -1
  95. package/lib/util/resolveConfig.js +17 -15
  96. package/lib/util/resolveConfigPath.js +26 -10
  97. package/lib/util/responsive.js +6 -4
  98. package/lib/util/splitAtTopLevelOnly.js +10 -2
  99. package/lib/util/tap.js +3 -1
  100. package/lib/util/toColorValue.js +3 -1
  101. package/lib/util/toPath.js +3 -1
  102. package/lib/util/transformThemeValue.js +6 -4
  103. package/lib/util/validateConfig.js +16 -3
  104. package/lib/util/validateFormalSyntax.js +3 -1
  105. package/lib/util/withAlphaVariable.js +6 -2
  106. package/loadConfig.d.ts +4 -0
  107. package/loadConfig.js +2 -0
  108. package/package.json +45 -37
  109. package/peers/index.js +63324 -46417
  110. package/resolveConfig.d.ts +11 -2
  111. package/scripts/swap-engines.js +40 -0
  112. package/src/cli/build/index.js +13 -9
  113. package/src/cli/build/plugin.js +42 -32
  114. package/src/cli/build/watching.js +4 -2
  115. package/src/cli/index.js +216 -3
  116. package/src/cli/init/index.js +37 -8
  117. package/src/cli.js +4 -220
  118. package/src/corePluginList.js +1 -1
  119. package/src/corePlugins.js +207 -32
  120. package/src/css/preflight.css +2 -0
  121. package/src/featureFlags.js +6 -0
  122. package/src/index.js +1 -47
  123. package/src/lib/content.js +12 -17
  124. package/src/lib/defaultExtractor.js +9 -3
  125. package/src/lib/detectNesting.js +9 -1
  126. package/src/lib/expandApplyAtRules.js +8 -1
  127. package/src/lib/expandTailwindAtRules.js +36 -7
  128. package/src/lib/generateRules.js +124 -42
  129. package/src/lib/getModuleDependencies.js +70 -30
  130. package/src/lib/load-config.ts +31 -0
  131. package/src/lib/offsets.js +104 -1
  132. package/src/lib/remap-bitfield.js +82 -0
  133. package/src/lib/setupContextUtils.js +103 -54
  134. package/src/lib/setupTrackingContext.js +36 -11
  135. package/src/lib/sharedState.js +15 -4
  136. package/src/oxide/cli/build/deps.ts +91 -0
  137. package/src/oxide/cli/build/index.ts +47 -0
  138. package/src/oxide/cli/build/plugin.ts +442 -0
  139. package/src/oxide/cli/build/utils.ts +74 -0
  140. package/src/oxide/cli/build/watching.ts +225 -0
  141. package/src/oxide/cli/help/index.ts +69 -0
  142. package/src/oxide/cli/index.ts +204 -0
  143. package/src/oxide/cli/init/index.ts +59 -0
  144. package/src/oxide/cli.ts +1 -0
  145. package/src/oxide/postcss-plugin.ts +1 -0
  146. package/src/plugin.js +107 -0
  147. package/src/public/colors.js +22 -0
  148. package/src/public/default-config.js +1 -1
  149. package/src/public/default-theme.js +2 -2
  150. package/src/public/load-config.js +2 -0
  151. package/src/util/applyImportantSelector.js +27 -0
  152. package/src/util/color.js +18 -3
  153. package/src/util/colorNames.js +150 -0
  154. package/src/util/dataTypes.js +33 -4
  155. package/src/util/formatVariantSelector.js +160 -163
  156. package/src/util/getAllConfigs.js +2 -2
  157. package/src/util/negateValue.js +1 -1
  158. package/src/util/normalizeConfig.js +2 -1
  159. package/src/util/pluginUtils.js +16 -31
  160. package/src/util/prefixSelector.js +28 -10
  161. package/src/util/pseudoElements.js +170 -0
  162. package/src/util/resolveConfigPath.js +12 -1
  163. package/src/util/splitAtTopLevelOnly.js +8 -1
  164. package/src/util/validateConfig.js +13 -0
  165. package/stubs/.gitignore +1 -0
  166. package/stubs/.prettierrc.json +6 -0
  167. package/stubs/{defaultConfig.stub.js → config.full.js} +183 -146
  168. package/stubs/{simpleConfig.stub.js → config.simple.js} +0 -1
  169. package/stubs/postcss.config.js +6 -0
  170. package/stubs/tailwind.config.cjs +2 -0
  171. package/stubs/tailwind.config.js +2 -0
  172. package/stubs/tailwind.config.ts +3 -0
  173. package/types/config.d.ts +15 -9
  174. package/types/generated/colors.d.ts +22 -0
  175. package/types/generated/corePluginList.d.ts +1 -1
  176. package/types/generated/default-theme.d.ts +108 -79
  177. package/CHANGELOG.md +0 -2336
  178. package/lib/cli/shared.js +0 -12
  179. package/lib/constants.js +0 -44
  180. package/scripts/install-integrations.js +0 -27
  181. package/scripts/rebuildFixtures.js +0 -68
  182. package/src/cli/shared.js +0 -5
  183. package/src/constants.js +0 -17
  184. /package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -0
@@ -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,35 @@ 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 : {}
406
416
  });
407
417
  },
408
418
  ariaVariants: ({ matchVariant , theme })=>{
409
- var ref;
419
+ var _theme;
410
420
  matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
411
- values: (ref = theme("aria")) !== null && ref !== void 0 ? ref : {}
421
+ values: (_theme = theme("aria")) !== null && _theme !== void 0 ? _theme : {}
412
422
  });
413
- var ref1;
423
+ var _theme1;
414
424
  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 : {}
425
+ values: (_theme1 = theme("aria")) !== null && _theme1 !== void 0 ? _theme1 : {}
416
426
  });
417
- var ref2;
427
+ var _theme2;
418
428
  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 : {}
429
+ values: (_theme2 = theme("aria")) !== null && _theme2 !== void 0 ? _theme2 : {}
420
430
  });
421
431
  },
422
432
  dataVariants: ({ matchVariant , theme })=>{
423
- var ref;
433
+ var _theme;
424
434
  matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
425
- values: (ref = theme("data")) !== null && ref !== void 0 ? ref : {}
435
+ values: (_theme = theme("data")) !== null && _theme !== void 0 ? _theme : {}
426
436
  });
427
- var ref1;
437
+ var _theme1;
428
438
  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 : {}
439
+ values: (_theme1 = theme("data")) !== null && _theme1 !== void 0 ? _theme1 : {}
430
440
  });
431
- var ref2;
441
+ var _theme2;
432
442
  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 : {}
443
+ values: (_theme2 = theme("data")) !== null && _theme2 !== void 0 ? _theme2 : {}
434
444
  });
435
445
  },
436
446
  orientationVariants: ({ addVariant })=>{
@@ -477,7 +487,7 @@ let corePlugins = {
477
487
  let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(_path.join(__dirname, "./css/preflight.css"), "utf8"));
478
488
  addBase([
479
489
  _postcss.default.comment({
480
- text: `! tailwindcss v${_packageJson.version} | MIT License | https://tailwindcss.com`
490
+ text: `! tailwindcss v${_packagejson.version} | MIT License | https://tailwindcss.com`
481
491
  }),
482
492
  ...preflightStyles.nodes
483
493
  ]);
@@ -627,10 +637,7 @@ let corePlugins = {
627
637
  [
628
638
  "inset",
629
639
  [
630
- "top",
631
- "right",
632
- "bottom",
633
- "left"
640
+ "inset"
634
641
  ]
635
642
  ],
636
643
  [
@@ -650,6 +657,18 @@ let corePlugins = {
650
657
  ]
651
658
  ],
652
659
  [
660
+ [
661
+ "start",
662
+ [
663
+ "inset-inline-start"
664
+ ]
665
+ ],
666
+ [
667
+ "end",
668
+ [
669
+ "inset-inline-end"
670
+ ]
671
+ ],
653
672
  [
654
673
  "top",
655
674
  [
@@ -802,6 +821,18 @@ let corePlugins = {
802
821
  ]
803
822
  ],
804
823
  [
824
+ [
825
+ "ms",
826
+ [
827
+ "margin-inline-start"
828
+ ]
829
+ ],
830
+ [
831
+ "me",
832
+ [
833
+ "margin-inline-end"
834
+ ]
835
+ ],
805
836
  [
806
837
  "mt",
807
838
  [
@@ -840,6 +871,26 @@ let corePlugins = {
840
871
  }
841
872
  });
842
873
  },
874
+ lineClamp: ({ matchUtilities , addUtilities , theme })=>{
875
+ matchUtilities({
876
+ "line-clamp": (value)=>({
877
+ overflow: "hidden",
878
+ display: "-webkit-box",
879
+ "-webkit-box-orient": "vertical",
880
+ "-webkit-line-clamp": `${value}`
881
+ })
882
+ }, {
883
+ values: theme("lineClamp")
884
+ });
885
+ addUtilities({
886
+ ".line-clamp-none": {
887
+ overflow: "visible",
888
+ display: "block",
889
+ "-webkit-box-orient": "horizontal",
890
+ "-webkit-line-clamp": "none"
891
+ }
892
+ });
893
+ },
843
894
  display: ({ addUtilities })=>{
844
895
  addUtilities({
845
896
  ".block": {
@@ -1010,6 +1061,16 @@ let corePlugins = {
1010
1061
  }
1011
1062
  });
1012
1063
  },
1064
+ captionSide: ({ addUtilities })=>{
1065
+ addUtilities({
1066
+ ".caption-top": {
1067
+ "caption-side": "top"
1068
+ },
1069
+ ".caption-bottom": {
1070
+ "caption-side": "bottom"
1071
+ }
1072
+ });
1073
+ },
1013
1074
  borderCollapse: ({ addUtilities })=>{
1014
1075
  addUtilities({
1015
1076
  ".border-collapse": {
@@ -1223,8 +1284,8 @@ let corePlugins = {
1223
1284
  },
1224
1285
  animation: ({ matchUtilities , theme , config })=>{
1225
1286
  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])=>{
1287
+ var _theme;
1288
+ let keyframes = Object.fromEntries(Object.entries((_theme = theme("keyframes")) !== null && _theme !== void 0 ? _theme : {}).map(([key, value])=>{
1228
1289
  return [
1229
1290
  key,
1230
1291
  {
@@ -1416,6 +1477,18 @@ let corePlugins = {
1416
1477
  ]
1417
1478
  ],
1418
1479
  [
1480
+ [
1481
+ "scroll-ms",
1482
+ [
1483
+ "scroll-margin-inline-start"
1484
+ ]
1485
+ ],
1486
+ [
1487
+ "scroll-me",
1488
+ [
1489
+ "scroll-margin-inline-end"
1490
+ ]
1491
+ ],
1419
1492
  [
1420
1493
  "scroll-mt",
1421
1494
  [
@@ -1468,6 +1541,18 @@ let corePlugins = {
1468
1541
  ]
1469
1542
  ],
1470
1543
  [
1544
+ [
1545
+ "scroll-ps",
1546
+ [
1547
+ "scroll-padding-inline-start"
1548
+ ]
1549
+ ],
1550
+ [
1551
+ "scroll-pe",
1552
+ [
1553
+ "scroll-padding-inline-end"
1554
+ ]
1555
+ ],
1471
1556
  [
1472
1557
  "scroll-pt",
1473
1558
  [
@@ -1512,6 +1597,14 @@ let corePlugins = {
1512
1597
  ]
1513
1598
  ]
1514
1599
  ]),
1600
+ listStyleImage: (0, _createUtilityPlugin.default)("listStyleImage", [
1601
+ [
1602
+ "list-image",
1603
+ [
1604
+ "listStyleImage"
1605
+ ]
1606
+ ]
1607
+ ]),
1515
1608
  appearance: ({ addUtilities })=>{
1516
1609
  addUtilities({
1517
1610
  ".appearance-none": {
@@ -1728,6 +1821,9 @@ let corePlugins = {
1728
1821
  },
1729
1822
  alignContent: ({ addUtilities })=>{
1730
1823
  addUtilities({
1824
+ ".content-normal": {
1825
+ "align-content": "normal"
1826
+ },
1731
1827
  ".content-center": {
1732
1828
  "align-content": "center"
1733
1829
  },
@@ -1748,6 +1844,9 @@ let corePlugins = {
1748
1844
  },
1749
1845
  ".content-baseline": {
1750
1846
  "align-content": "baseline"
1847
+ },
1848
+ ".content-stretch": {
1849
+ "align-content": "stretch"
1751
1850
  }
1752
1851
  });
1753
1852
  },
@@ -1772,6 +1871,9 @@ let corePlugins = {
1772
1871
  },
1773
1872
  justifyContent: ({ addUtilities })=>{
1774
1873
  addUtilities({
1874
+ ".justify-normal": {
1875
+ "justify-content": "normal"
1876
+ },
1775
1877
  ".justify-start": {
1776
1878
  "justify-content": "flex-start"
1777
1879
  },
@@ -1789,6 +1891,9 @@ let corePlugins = {
1789
1891
  },
1790
1892
  ".justify-evenly": {
1791
1893
  "justify-content": "space-evenly"
1894
+ },
1895
+ ".justify-stretch": {
1896
+ "justify-content": "stretch"
1792
1897
  }
1793
1898
  });
1794
1899
  },
@@ -1834,6 +1939,15 @@ let corePlugins = {
1834
1939
  matchUtilities({
1835
1940
  "space-x": (value)=>{
1836
1941
  value = value === "0" ? "0px" : value;
1942
+ if (false) {
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
+ }
1837
1951
  return {
1838
1952
  "& > :not([hidden]) ~ :not([hidden])": {
1839
1953
  "--tw-space-x-reverse": "0",
@@ -1869,6 +1983,16 @@ let corePlugins = {
1869
1983
  matchUtilities({
1870
1984
  "divide-x": (value)=>{
1871
1985
  value = value === "0" ? "0px" : value;
1986
+ if (false) {
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
+ }
1872
1996
  return {
1873
1997
  "& > :not([hidden]) ~ :not([hidden])": {
1874
1998
  "@defaults border-width": {},
@@ -2134,6 +2258,19 @@ let corePlugins = {
2134
2258
  }
2135
2259
  });
2136
2260
  },
2261
+ hyphens: ({ addUtilities })=>{
2262
+ addUtilities({
2263
+ ".hyphens-none": {
2264
+ hyphens: "none"
2265
+ },
2266
+ ".hyphens-manual": {
2267
+ hyphens: "manual"
2268
+ },
2269
+ ".hyphens-auto": {
2270
+ hyphens: "auto"
2271
+ }
2272
+ });
2273
+ },
2137
2274
  whitespace: ({ addUtilities })=>{
2138
2275
  addUtilities({
2139
2276
  ".whitespace-normal": {
@@ -2150,6 +2287,9 @@ let corePlugins = {
2150
2287
  },
2151
2288
  ".whitespace-pre-wrap": {
2152
2289
  "white-space": "pre-wrap"
2290
+ },
2291
+ ".whitespace-break-spaces": {
2292
+ "white-space": "break-spaces"
2153
2293
  }
2154
2294
  });
2155
2295
  },
@@ -2178,6 +2318,20 @@ let corePlugins = {
2178
2318
  ]
2179
2319
  ],
2180
2320
  [
2321
+ [
2322
+ "rounded-s",
2323
+ [
2324
+ "border-start-start-radius",
2325
+ "border-end-start-radius"
2326
+ ]
2327
+ ],
2328
+ [
2329
+ "rounded-e",
2330
+ [
2331
+ "border-start-end-radius",
2332
+ "border-end-end-radius"
2333
+ ]
2334
+ ],
2181
2335
  [
2182
2336
  "rounded-t",
2183
2337
  [
@@ -2208,6 +2362,30 @@ let corePlugins = {
2208
2362
  ]
2209
2363
  ],
2210
2364
  [
2365
+ [
2366
+ "rounded-ss",
2367
+ [
2368
+ "border-start-start-radius"
2369
+ ]
2370
+ ],
2371
+ [
2372
+ "rounded-se",
2373
+ [
2374
+ "border-start-end-radius"
2375
+ ]
2376
+ ],
2377
+ [
2378
+ "rounded-ee",
2379
+ [
2380
+ "border-end-end-radius"
2381
+ ]
2382
+ ],
2383
+ [
2384
+ "rounded-es",
2385
+ [
2386
+ "border-end-start-radius"
2387
+ ]
2388
+ ],
2211
2389
  [
2212
2390
  "rounded-tl",
2213
2391
  [
@@ -2270,6 +2448,26 @@ let corePlugins = {
2270
2448
  ]
2271
2449
  ],
2272
2450
  [
2451
+ [
2452
+ "border-s",
2453
+ [
2454
+ [
2455
+ "@defaults border-width",
2456
+ {}
2457
+ ],
2458
+ "border-inline-start-width"
2459
+ ]
2460
+ ],
2461
+ [
2462
+ "border-e",
2463
+ [
2464
+ [
2465
+ "@defaults border-width",
2466
+ {}
2467
+ ],
2468
+ "border-inline-end-width"
2469
+ ]
2470
+ ],
2273
2471
  [
2274
2472
  "border-t",
2275
2473
  [
@@ -2401,6 +2599,30 @@ let corePlugins = {
2401
2599
  ]
2402
2600
  });
2403
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)({
2609
+ color: value,
2610
+ property: "border-inline-start-color",
2611
+ variable: "--tw-border-opacity"
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)({
2621
+ color: value,
2622
+ property: "border-inline-end-color",
2623
+ variable: "--tw-border-opacity"
2624
+ });
2625
+ },
2404
2626
  "border-t": (value)=>{
2405
2627
  if (!corePlugins("borderOpacity")) {
2406
2628
  return {
@@ -2513,7 +2735,12 @@ let corePlugins = {
2513
2735
  function transparentTo(value) {
2514
2736
  return (0, _withAlphaVariable.withAlphaValue)(value, 0, "rgb(255 255 255 / 0)");
2515
2737
  }
2516
- return function({ matchUtilities , theme }) {
2738
+ return function({ matchUtilities , theme , addDefaults }) {
2739
+ addDefaults("gradient-color-stops", {
2740
+ "--tw-gradient-from-position": " ",
2741
+ "--tw-gradient-via-position": " ",
2742
+ "--tw-gradient-to-position": " "
2743
+ });
2517
2744
  let options = {
2518
2745
  values: (0, _flattenColorPalette.default)(theme("gradientColorStops")),
2519
2746
  type: [
@@ -2521,30 +2748,61 @@ let corePlugins = {
2521
2748
  "any"
2522
2749
  ]
2523
2750
  };
2751
+ let positionOptions = {
2752
+ values: theme("gradientColorStopPositions"),
2753
+ type: [
2754
+ "length",
2755
+ "percentage"
2756
+ ]
2757
+ };
2524
2758
  matchUtilities({
2525
2759
  from: (value)=>{
2526
2760
  let transparentToValue = transparentTo(value);
2527
2761
  return {
2528
- "--tw-gradient-from": (0, _toColorValue.default)(value, "from"),
2529
- "--tw-gradient-to": transparentToValue,
2762
+ "@defaults gradient-color-stops": {},
2763
+ "--tw-gradient-from": `${(0, _toColorValue.default)(value)} var(--tw-gradient-from-position)`,
2764
+ "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2530
2765
  "--tw-gradient-stops": `var(--tw-gradient-from), var(--tw-gradient-to)`
2531
2766
  };
2532
2767
  }
2533
2768
  }, options);
2769
+ matchUtilities({
2770
+ from: (value)=>{
2771
+ return {
2772
+ "--tw-gradient-from-position": value
2773
+ };
2774
+ }
2775
+ }, positionOptions);
2534
2776
  matchUtilities({
2535
2777
  via: (value)=>{
2536
2778
  let transparentToValue = transparentTo(value);
2537
2779
  return {
2538
- "--tw-gradient-to": transparentToValue,
2539
- "--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value, "via")}, var(--tw-gradient-to)`
2780
+ "@defaults gradient-color-stops": {},
2781
+ "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2782
+ "--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value)} var(--tw-gradient-via-position), var(--tw-gradient-to)`
2540
2783
  };
2541
2784
  }
2542
2785
  }, options);
2786
+ matchUtilities({
2787
+ via: (value)=>{
2788
+ return {
2789
+ "--tw-gradient-via-position": value
2790
+ };
2791
+ }
2792
+ }, positionOptions);
2543
2793
  matchUtilities({
2544
2794
  to: (value)=>({
2545
- "--tw-gradient-to": (0, _toColorValue.default)(value, "to")
2795
+ "@defaults gradient-color-stops": {},
2796
+ "--tw-gradient-to": `${(0, _toColorValue.default)(value)} var(--tw-gradient-to-position)`
2546
2797
  })
2547
2798
  }, options);
2799
+ matchUtilities({
2800
+ to: (value)=>{
2801
+ return {
2802
+ "--tw-gradient-to-position": value
2803
+ };
2804
+ }
2805
+ }, positionOptions);
2548
2806
  };
2549
2807
  })(),
2550
2808
  boxDecorationBreak: ({ addUtilities })=>{
@@ -2756,6 +3014,18 @@ let corePlugins = {
2756
3014
  ]
2757
3015
  ],
2758
3016
  [
3017
+ [
3018
+ "ps",
3019
+ [
3020
+ "padding-inline-start"
3021
+ ]
3022
+ ],
3023
+ [
3024
+ "pe",
3025
+ [
3026
+ "padding-inline-end"
3027
+ ]
3028
+ ],
2759
3029
  [
2760
3030
  "pt",
2761
3031
  [
@@ -2853,11 +3123,14 @@ let corePlugins = {
2853
3123
  let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
2854
3124
  value
2855
3125
  ];
2856
- let { fontFeatureSettings } = options;
3126
+ let { fontFeatureSettings , fontVariationSettings } = options;
2857
3127
  return {
2858
3128
  "font-family": Array.isArray(families) ? families.join(", ") : families,
2859
3129
  ...fontFeatureSettings === undefined ? {} : {
2860
3130
  "font-feature-settings": fontFeatureSettings
3131
+ },
3132
+ ...fontVariationSettings === undefined ? {} : {
3133
+ "font-variation-settings": fontVariationSettings
2861
3134
  }
2862
3135
  };
2863
3136
  }
@@ -3448,15 +3721,15 @@ let corePlugins = {
3448
3721
  },
3449
3722
  ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
3450
3723
  let ringColorDefault = (()=>{
3451
- var ref, ref1;
3724
+ var _theme, _theme1;
3452
3725
  if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
3453
3726
  return theme("ringColor.DEFAULT");
3454
3727
  }
3455
3728
  let ringOpacityDefault = theme("ringOpacity.DEFAULT", "0.5");
3456
- if (!((ref = theme("ringColor")) === null || ref === void 0 ? void 0 : ref.DEFAULT)) {
3729
+ if (!((_theme = theme("ringColor")) === null || _theme === void 0 ? void 0 : _theme.DEFAULT)) {
3457
3730
  return `rgb(147 197 253 / ${ringOpacityDefault})`;
3458
3731
  }
3459
- return (0, _withAlphaVariable.withAlphaValue)((ref1 = theme("ringColor")) === null || ref1 === void 0 ? void 0 : ref1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3732
+ return (0, _withAlphaVariable.withAlphaValue)((_theme1 = theme("ringColor")) === null || _theme1 === void 0 ? void 0 : _theme1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3460
3733
  })();
3461
3734
  addDefaults("ring-width", {
3462
3735
  "--tw-ring-inset": " ",