tailwindcss 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/README.md +2 -3
  3. package/lib/cli/build/plugin.js +4 -11
  4. package/lib/cli.js +1 -5
  5. package/lib/corePluginList.js +1 -0
  6. package/lib/corePlugins.js +92 -25
  7. package/lib/css/preflight.css +4 -3
  8. package/lib/featureFlags.js +2 -6
  9. package/lib/lib/content.js +36 -3
  10. package/lib/lib/defaultExtractor.js +2 -2
  11. package/lib/lib/expandApplyAtRules.js +13 -0
  12. package/lib/lib/expandTailwindAtRules.js +20 -32
  13. package/lib/lib/generateRules.js +13 -2
  14. package/lib/lib/load-config.js +4 -0
  15. package/lib/lib/offsets.js +51 -2
  16. package/lib/lib/resolveDefaultsAtRules.js +3 -1
  17. package/lib/lib/setupContextUtils.js +23 -3
  18. package/lib/lib/sharedState.js +2 -10
  19. package/lib/plugin.js +0 -50
  20. package/lib/processTailwindFeatures.js +0 -2
  21. package/lib/util/dataTypes.js +12 -2
  22. package/lib/util/pseudoElements.js +3 -0
  23. package/package.json +5 -8
  24. package/peers/index.js +61 -61
  25. package/src/cli/build/plugin.js +4 -11
  26. package/src/cli.js +1 -5
  27. package/src/corePluginList.js +1 -1
  28. package/src/corePlugins.js +88 -27
  29. package/src/css/preflight.css +4 -3
  30. package/src/featureFlags.js +2 -6
  31. package/src/lib/content.js +42 -1
  32. package/src/lib/defaultExtractor.js +2 -2
  33. package/src/lib/expandApplyAtRules.js +17 -0
  34. package/src/lib/expandTailwindAtRules.js +23 -41
  35. package/src/lib/generateRules.js +12 -2
  36. package/src/lib/load-config.ts +5 -0
  37. package/src/lib/offsets.js +61 -2
  38. package/src/lib/resolveDefaultsAtRules.js +5 -1
  39. package/src/lib/setupContextUtils.js +28 -2
  40. package/src/lib/sharedState.js +0 -4
  41. package/src/plugin.js +0 -60
  42. package/src/processTailwindFeatures.js +0 -3
  43. package/src/util/dataTypes.js +13 -1
  44. package/src/util/pseudoElements.js +4 -0
  45. package/types/config.d.ts +7 -0
  46. package/types/generated/corePluginList.d.ts +1 -1
  47. package/lib/lib/detectNesting.js +0 -45
  48. package/lib/oxide/cli/build/deps.js +0 -89
  49. package/lib/oxide/cli/build/index.js +0 -53
  50. package/lib/oxide/cli/build/plugin.js +0 -375
  51. package/lib/oxide/cli/build/utils.js +0 -87
  52. package/lib/oxide/cli/build/watching.js +0 -179
  53. package/lib/oxide/cli/help/index.js +0 -72
  54. package/lib/oxide/cli/index.js +0 -214
  55. package/lib/oxide/cli/init/index.js +0 -52
  56. package/lib/oxide/cli.js +0 -5
  57. package/lib/oxide/postcss-plugin.js +0 -2
  58. package/scripts/swap-engines.js +0 -40
  59. package/src/lib/detectNesting.js +0 -47
  60. package/src/oxide/cli/build/deps.ts +0 -91
  61. package/src/oxide/cli/build/index.ts +0 -47
  62. package/src/oxide/cli/build/plugin.ts +0 -442
  63. package/src/oxide/cli/build/utils.ts +0 -74
  64. package/src/oxide/cli/build/watching.ts +0 -225
  65. package/src/oxide/cli/help/index.ts +0 -69
  66. package/src/oxide/cli/index.ts +0 -204
  67. package/src/oxide/cli/init/index.ts +0 -59
  68. package/src/oxide/cli.ts +0 -1
  69. package/src/oxide/postcss-plugin.ts +0 -1
package/peers/index.js CHANGED
@@ -339,7 +339,7 @@ var require_css_syntax_error = __commonJS({
339
339
  "use strict";
340
340
  var pico = require_picocolors();
341
341
  var terminalHighlight = require_terminal_highlight();
342
- var CssSyntaxError = class extends Error {
342
+ var CssSyntaxError = class _CssSyntaxError extends Error {
343
343
  constructor(message, line, column, source, file, plugin) {
344
344
  super(message);
345
345
  this.name = "CssSyntaxError";
@@ -366,7 +366,7 @@ var require_css_syntax_error = __commonJS({
366
366
  }
367
367
  this.setMessage();
368
368
  if (Error.captureStackTrace) {
369
- Error.captureStackTrace(this, CssSyntaxError);
369
+ Error.captureStackTrace(this, _CssSyntaxError);
370
370
  }
371
371
  }
372
372
  setMessage() {
@@ -3721,7 +3721,7 @@ var require_container = __commonJS({
3721
3721
  }
3722
3722
  }
3723
3723
  }
3724
- var Container = class extends Node {
3724
+ var Container = class _Container extends Node {
3725
3725
  push(child) {
3726
3726
  child.parent = this;
3727
3727
  this.proxyOf.nodes.push(child);
@@ -3985,7 +3985,7 @@ var require_container = __commonJS({
3985
3985
  }
3986
3986
  let processed = nodes.map((i) => {
3987
3987
  if (!i[my])
3988
- Container.rebuild(i);
3988
+ _Container.rebuild(i);
3989
3989
  i = i.proxyOf;
3990
3990
  if (i.parent)
3991
3991
  i.parent.removeChild(i);
@@ -5060,14 +5060,14 @@ var require_lazy_result = __commonJS({
5060
5060
  return node;
5061
5061
  }
5062
5062
  var postcss = {};
5063
- var LazyResult = class {
5063
+ var LazyResult = class _LazyResult {
5064
5064
  constructor(processor, css, opts) {
5065
5065
  this.stringified = false;
5066
5066
  this.processed = false;
5067
5067
  let root;
5068
5068
  if (typeof css === "object" && css !== null && (css.type === "root" || css.type === "document")) {
5069
5069
  root = cleanMarks(css);
5070
- } else if (css instanceof LazyResult || css instanceof Result) {
5070
+ } else if (css instanceof _LazyResult || css instanceof Result) {
5071
5071
  root = cleanMarks(css.root);
5072
5072
  if (css.map) {
5073
5073
  if (typeof opts.map === "undefined")
@@ -10259,7 +10259,7 @@ var require_prefixer = __commonJS({
10259
10259
  }
10260
10260
  return cloned;
10261
10261
  }
10262
- var Prefixer = class {
10262
+ var Prefixer = class _Prefixer {
10263
10263
  /**
10264
10264
  * Add hack to selected names
10265
10265
  */
@@ -10345,7 +10345,7 @@ var require_prefixer = __commonJS({
10345
10345
  * Shortcut for Prefixer.clone
10346
10346
  */
10347
10347
  clone(node, overrides) {
10348
- return Prefixer.clone(node, overrides);
10348
+ return _Prefixer.clone(node, overrides);
10349
10349
  }
10350
10350
  };
10351
10351
  module2.exports = Prefixer;
@@ -13684,7 +13684,7 @@ var require_flex = __commonJS({
13684
13684
  var list = require_postcss().list;
13685
13685
  var flexSpec = require_flex_spec();
13686
13686
  var Declaration = require_declaration2();
13687
- var Flex = class extends Declaration {
13687
+ var Flex = class _Flex extends Declaration {
13688
13688
  /**
13689
13689
  * Change property name for 2009 spec
13690
13690
  */
@@ -13710,7 +13710,7 @@ var require_flex = __commonJS({
13710
13710
  let spec = flexSpec(prefix)[0];
13711
13711
  if (spec === 2009) {
13712
13712
  decl.value = list.space(decl.value)[0];
13713
- decl.value = Flex.oldValues[decl.value] || decl.value;
13713
+ decl.value = _Flex.oldValues[decl.value] || decl.value;
13714
13714
  return super.set(decl, prefix);
13715
13715
  }
13716
13716
  if (spec === 2012) {
@@ -14067,7 +14067,7 @@ var require_align_self = __commonJS({
14067
14067
  "node_modules/autoprefixer/lib/hacks/align-self.js"(exports2, module2) {
14068
14068
  var flexSpec = require_flex_spec();
14069
14069
  var Declaration = require_declaration2();
14070
- var AlignSelf = class extends Declaration {
14070
+ var AlignSelf = class _AlignSelf extends Declaration {
14071
14071
  check(decl) {
14072
14072
  return decl.parent && !decl.parent.some((i) => {
14073
14073
  return i.prop && i.prop.startsWith("grid-");
@@ -14096,7 +14096,7 @@ var require_align_self = __commonJS({
14096
14096
  set(decl, prefix) {
14097
14097
  let spec = flexSpec(prefix)[0];
14098
14098
  if (spec === 2012) {
14099
- decl.value = AlignSelf.oldValues[decl.value] || decl.value;
14099
+ decl.value = _AlignSelf.oldValues[decl.value] || decl.value;
14100
14100
  return super.set(decl, prefix);
14101
14101
  }
14102
14102
  if (spec === "final") {
@@ -14223,7 +14223,7 @@ var require_mask_border = __commonJS({
14223
14223
  var require_mask_composite = __commonJS({
14224
14224
  "node_modules/autoprefixer/lib/hacks/mask-composite.js"(exports2, module2) {
14225
14225
  var Declaration = require_declaration2();
14226
- var MaskComposite = class extends Declaration {
14226
+ var MaskComposite = class _MaskComposite extends Declaration {
14227
14227
  /**
14228
14228
  * Prefix mask-composite for webkit
14229
14229
  */
@@ -14233,14 +14233,14 @@ var require_mask_composite = __commonJS({
14233
14233
  if (isCompositeProp) {
14234
14234
  compositeValues = decl.value.split(",");
14235
14235
  } else {
14236
- compositeValues = decl.value.match(MaskComposite.regexp) || [];
14236
+ compositeValues = decl.value.match(_MaskComposite.regexp) || [];
14237
14237
  }
14238
14238
  compositeValues = compositeValues.map((el) => el.trim()).filter((el) => el);
14239
14239
  let hasCompositeValues = compositeValues.length;
14240
14240
  let compositeDecl;
14241
14241
  if (hasCompositeValues) {
14242
14242
  compositeDecl = this.clone(decl);
14243
- compositeDecl.value = compositeValues.map((value) => MaskComposite.oldValues[value] || value).join(", ");
14243
+ compositeDecl.value = compositeValues.map((value) => _MaskComposite.oldValues[value] || value).join(", ");
14244
14244
  if (compositeValues.includes("intersect")) {
14245
14245
  compositeDecl.value += ", xor";
14246
14246
  }
@@ -14258,7 +14258,7 @@ var require_mask_composite = __commonJS({
14258
14258
  let cloned = this.clone(decl);
14259
14259
  cloned.prop = prefix + cloned.prop;
14260
14260
  if (hasCompositeValues) {
14261
- cloned.value = cloned.value.replace(MaskComposite.regexp, "");
14261
+ cloned.value = cloned.value.replace(_MaskComposite.regexp, "");
14262
14262
  }
14263
14263
  if (this.needCascade(decl)) {
14264
14264
  cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
@@ -14295,7 +14295,7 @@ var require_align_items = __commonJS({
14295
14295
  "node_modules/autoprefixer/lib/hacks/align-items.js"(exports2, module2) {
14296
14296
  var flexSpec = require_flex_spec();
14297
14297
  var Declaration = require_declaration2();
14298
- var AlignItems = class extends Declaration {
14298
+ var AlignItems = class _AlignItems extends Declaration {
14299
14299
  /**
14300
14300
  * Change property name for 2009 and 2012 specs
14301
14301
  */
@@ -14322,7 +14322,7 @@ var require_align_items = __commonJS({
14322
14322
  set(decl, prefix) {
14323
14323
  let spec = flexSpec(prefix)[0];
14324
14324
  if (spec === 2009 || spec === 2012) {
14325
- decl.value = AlignItems.oldValues[decl.value] || decl.value;
14325
+ decl.value = _AlignItems.oldValues[decl.value] || decl.value;
14326
14326
  }
14327
14327
  return super.set(decl, prefix);
14328
14328
  }
@@ -14470,7 +14470,7 @@ var require_break_props = __commonJS({
14470
14470
  var require_writing_mode = __commonJS({
14471
14471
  "node_modules/autoprefixer/lib/hacks/writing-mode.js"(exports2, module2) {
14472
14472
  var Declaration = require_declaration2();
14473
- var WritingMode = class extends Declaration {
14473
+ var WritingMode = class _WritingMode extends Declaration {
14474
14474
  insert(decl, prefix, prefixes) {
14475
14475
  if (prefix === "-ms-") {
14476
14476
  let cloned = this.set(this.clone(decl), prefix);
@@ -14484,7 +14484,7 @@ var require_writing_mode = __commonJS({
14484
14484
  direction = i.value;
14485
14485
  }
14486
14486
  });
14487
- cloned.value = WritingMode.msValues[direction][decl.value] || decl.value;
14487
+ cloned.value = _WritingMode.msValues[direction][decl.value] || decl.value;
14488
14488
  return decl.parent.insertBefore(decl, cloned);
14489
14489
  }
14490
14490
  return super.insert(decl, prefix, prefixes);
@@ -14530,7 +14530,7 @@ var require_align_content = __commonJS({
14530
14530
  "node_modules/autoprefixer/lib/hacks/align-content.js"(exports2, module2) {
14531
14531
  var flexSpec = require_flex_spec();
14532
14532
  var Declaration = require_declaration2();
14533
- var AlignContent = class extends Declaration {
14533
+ var AlignContent = class _AlignContent extends Declaration {
14534
14534
  /**
14535
14535
  * Change property name for 2012 spec
14536
14536
  */
@@ -14554,7 +14554,7 @@ var require_align_content = __commonJS({
14554
14554
  set(decl, prefix) {
14555
14555
  let spec = flexSpec(prefix)[0];
14556
14556
  if (spec === 2012) {
14557
- decl.value = AlignContent.oldValues[decl.value] || decl.value;
14557
+ decl.value = _AlignContent.oldValues[decl.value] || decl.value;
14558
14558
  return super.set(decl, prefix);
14559
14559
  }
14560
14560
  if (spec === "final") {
@@ -14578,13 +14578,13 @@ var require_align_content = __commonJS({
14578
14578
  var require_border_radius = __commonJS({
14579
14579
  "node_modules/autoprefixer/lib/hacks/border-radius.js"(exports2, module2) {
14580
14580
  var Declaration = require_declaration2();
14581
- var BorderRadius = class extends Declaration {
14581
+ var BorderRadius = class _BorderRadius extends Declaration {
14582
14582
  /**
14583
14583
  * Change syntax, when add Mozilla prefix
14584
14584
  */
14585
14585
  prefixed(prop, prefix) {
14586
14586
  if (prefix === "-moz-") {
14587
- return prefix + (BorderRadius.toMozilla[prop] || prop);
14587
+ return prefix + (_BorderRadius.toMozilla[prop] || prop);
14588
14588
  }
14589
14589
  return super.prefixed(prop, prefix);
14590
14590
  }
@@ -14592,7 +14592,7 @@ var require_border_radius = __commonJS({
14592
14592
  * Return unprefixed version of property
14593
14593
  */
14594
14594
  normalize(prop) {
14595
- return BorderRadius.toNormal[prop] || prop;
14595
+ return _BorderRadius.toNormal[prop] || prop;
14596
14596
  }
14597
14597
  };
14598
14598
  BorderRadius.names = ["border-radius"];
@@ -14782,7 +14782,7 @@ var require_grid_row_align = __commonJS({
14782
14782
  var require_transform_decl = __commonJS({
14783
14783
  "node_modules/autoprefixer/lib/hacks/transform-decl.js"(exports2, module2) {
14784
14784
  var Declaration = require_declaration2();
14785
- var TransformDecl = class extends Declaration {
14785
+ var TransformDecl = class _TransformDecl extends Declaration {
14786
14786
  /**
14787
14787
  * Recursively check all parents for @keyframes
14788
14788
  */
@@ -14804,7 +14804,7 @@ var require_transform_decl = __commonJS({
14804
14804
  if (decl.prop === "transform-origin") {
14805
14805
  return false;
14806
14806
  }
14807
- for (let func of TransformDecl.functions3d) {
14807
+ for (let func of _TransformDecl.functions3d) {
14808
14808
  if (decl.value.includes(`${func}(`)) {
14809
14809
  return true;
14810
14810
  }
@@ -15051,7 +15051,7 @@ var require_justify_content = __commonJS({
15051
15051
  "node_modules/autoprefixer/lib/hacks/justify-content.js"(exports2, module2) {
15052
15052
  var flexSpec = require_flex_spec();
15053
15053
  var Declaration = require_declaration2();
15054
- var JustifyContent = class extends Declaration {
15054
+ var JustifyContent = class _JustifyContent extends Declaration {
15055
15055
  /**
15056
15056
  * Change property name for 2009 and 2012 specs
15057
15057
  */
@@ -15078,7 +15078,7 @@ var require_justify_content = __commonJS({
15078
15078
  set(decl, prefix) {
15079
15079
  let spec = flexSpec(prefix)[0];
15080
15080
  if (spec === 2009 || spec === 2012) {
15081
- let value = JustifyContent.oldValues[decl.value] || decl.value;
15081
+ let value = _JustifyContent.oldValues[decl.value] || decl.value;
15082
15082
  decl.value = value;
15083
15083
  if (spec !== 2009 || value !== "distribute") {
15084
15084
  return super.set(decl, prefix);
@@ -15514,7 +15514,7 @@ var require_gradient = __commonJS({
15514
15514
  var Value = require_value();
15515
15515
  var utils = require_utils();
15516
15516
  var IS_DIRECTION = /top|left|right|bottom/gi;
15517
- var Gradient = class extends Value {
15517
+ var Gradient = class _Gradient extends Value {
15518
15518
  /**
15519
15519
  * Change degrees for webkit prefix
15520
15520
  */
@@ -15709,7 +15709,7 @@ var require_gradient = __commonJS({
15709
15709
  params.splice(0, i, ...second, div, ...first);
15710
15710
  }
15711
15711
  revertDirection(word) {
15712
- return Gradient.directions[word.toLowerCase()] || word;
15712
+ return _Gradient.directions[word.toLowerCase()] || word;
15713
15713
  }
15714
15714
  /**
15715
15715
  * Round float and save digits under dot
@@ -15759,7 +15759,7 @@ var require_gradient = __commonJS({
15759
15759
  let div = this.cloneDiv(params[0]);
15760
15760
  if (params[0][0].value !== "to") {
15761
15761
  return params.unshift([
15762
- { type: "word", value: Gradient.oldDirections.bottom },
15762
+ { type: "word", value: _Gradient.oldDirections.bottom },
15763
15763
  div
15764
15764
  ]);
15765
15765
  } else {
@@ -15770,7 +15770,7 @@ var require_gradient = __commonJS({
15770
15770
  }
15771
15771
  }
15772
15772
  words = words.join(" ");
15773
- let old = Gradient.oldDirections[words] || words;
15773
+ let old = _Gradient.oldDirections[words] || words;
15774
15774
  params[0] = [{ type: "word", value: old }, div];
15775
15775
  return params[0];
15776
15776
  }
@@ -16302,7 +16302,7 @@ var require_prefixes = __commonJS({
16302
16302
  Value.hack(hackDisplayGrid);
16303
16303
  Value.hack(hackFilterValue);
16304
16304
  var declsCache = /* @__PURE__ */ new Map();
16305
- var Prefixes = class {
16305
+ var Prefixes = class _Prefixes {
16306
16306
  constructor(data, browsers, options = {}) {
16307
16307
  this.data = data;
16308
16308
  this.browsers = browsers;
@@ -16320,7 +16320,7 @@ var require_prefixes = __commonJS({
16320
16320
  }
16321
16321
  if (this.browsers.selected.length) {
16322
16322
  let empty = new Browsers(this.browsers.data, []);
16323
- this.cleanerCache = new Prefixes(this.data, empty, this.options);
16323
+ this.cleanerCache = new _Prefixes(this.data, empty, this.options);
16324
16324
  } else {
16325
16325
  return this;
16326
16326
  }
@@ -16391,7 +16391,7 @@ var require_prefixes = __commonJS({
16391
16391
  preprocess(selected) {
16392
16392
  let add = {
16393
16393
  "selectors": [],
16394
- "@supports": new Supports(Prefixes, this)
16394
+ "@supports": new Supports(_Prefixes, this)
16395
16395
  };
16396
16396
  for (let name in selected.add) {
16397
16397
  let prefixes = selected.add[name];
@@ -29023,7 +29023,7 @@ var require_parser2 = __commonJS({
29023
29023
  "use strict";
29024
29024
  var SAX = require_sax();
29025
29025
  var { textElems } = require_collections();
29026
- var SvgoParserError = class extends Error {
29026
+ var SvgoParserError = class _SvgoParserError extends Error {
29027
29027
  /**
29028
29028
  * @param message {string}
29029
29029
  * @param line {number}
@@ -29040,7 +29040,7 @@ var require_parser2 = __commonJS({
29040
29040
  this.column = column;
29041
29041
  this.source = source;
29042
29042
  if (Error.captureStackTrace) {
29043
- Error.captureStackTrace(this, SvgoParserError);
29043
+ Error.captureStackTrace(this, _SvgoParserError);
29044
29044
  }
29045
29045
  }
29046
29046
  toString() {
@@ -29403,7 +29403,7 @@ var require_lib2 = __commonJS({
29403
29403
  var require_node3 = __commonJS({
29404
29404
  "node_modules/domhandler/lib/node.js"(exports2) {
29405
29405
  "use strict";
29406
- var __extends = exports2 && exports2.__extends || function() {
29406
+ var __extends = exports2 && exports2.__extends || /* @__PURE__ */ function() {
29407
29407
  var extendStatics = function(d, b) {
29408
29408
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
29409
29409
  d2.__proto__ = b2;
@@ -35087,7 +35087,7 @@ var require_List = __commonJS({
35087
35087
  "node_modules/css-tree/cjs/utils/List.cjs"(exports2) {
35088
35088
  "use strict";
35089
35089
  var releasedCursors = null;
35090
- var List = class {
35090
+ var List = class _List {
35091
35091
  static createItem(data) {
35092
35092
  return {
35093
35093
  prev: null,
@@ -35101,7 +35101,7 @@ var require_List = __commonJS({
35101
35101
  this.cursor = null;
35102
35102
  }
35103
35103
  createItem(data) {
35104
- return List.createItem(data);
35104
+ return _List.createItem(data);
35105
35105
  }
35106
35106
  // cursor helpers
35107
35107
  allocateCursor(prev, next) {
@@ -35169,7 +35169,7 @@ var require_List = __commonJS({
35169
35169
  let cursor = null;
35170
35170
  this.head = null;
35171
35171
  for (let data of array) {
35172
- const item = List.createItem(data);
35172
+ const item = _List.createItem(data);
35173
35173
  if (cursor !== null) {
35174
35174
  cursor.next = item;
35175
35175
  } else {
@@ -35239,14 +35239,14 @@ var require_List = __commonJS({
35239
35239
  return false;
35240
35240
  }
35241
35241
  map(fn, thisArg = this) {
35242
- const result = new List();
35242
+ const result = new _List();
35243
35243
  for (let cursor = this.head; cursor !== null; cursor = cursor.next) {
35244
35244
  result.appendData(fn.call(thisArg, cursor.data, cursor, this));
35245
35245
  }
35246
35246
  return result;
35247
35247
  }
35248
35248
  filter(fn, thisArg = this) {
35249
- const result = new List();
35249
+ const result = new _List();
35250
35250
  for (let cursor = this.head; cursor !== null; cursor = cursor.next) {
35251
35251
  if (fn.call(thisArg, cursor.data, cursor, this)) {
35252
35252
  result.appendData(cursor.data);
@@ -35288,7 +35288,7 @@ var require_List = __commonJS({
35288
35288
  this.tail = null;
35289
35289
  }
35290
35290
  copy() {
35291
- const result = new List();
35291
+ const result = new _List();
35292
35292
  for (let data of this) {
35293
35293
  result.appendData(data);
35294
35294
  }
@@ -35306,13 +35306,13 @@ var require_List = __commonJS({
35306
35306
  return this;
35307
35307
  }
35308
35308
  prependData(data) {
35309
- return this.prepend(List.createItem(data));
35309
+ return this.prepend(_List.createItem(data));
35310
35310
  }
35311
35311
  append(item) {
35312
35312
  return this.insert(item);
35313
35313
  }
35314
35314
  appendData(data) {
35315
- return this.insert(List.createItem(data));
35315
+ return this.insert(_List.createItem(data));
35316
35316
  }
35317
35317
  insert(item, before = null) {
35318
35318
  if (before !== null) {
@@ -35344,7 +35344,7 @@ var require_List = __commonJS({
35344
35344
  return this;
35345
35345
  }
35346
35346
  insertData(data, before) {
35347
- return this.insert(List.createItem(data), before);
35347
+ return this.insert(_List.createItem(data), before);
35348
35348
  }
35349
35349
  remove(item) {
35350
35350
  this.updateCursors(item, item.prev, item, item.next);
@@ -35369,13 +35369,13 @@ var require_List = __commonJS({
35369
35369
  return item;
35370
35370
  }
35371
35371
  push(data) {
35372
- this.insert(List.createItem(data));
35372
+ this.insert(_List.createItem(data));
35373
35373
  }
35374
35374
  pop() {
35375
35375
  return this.tail !== null ? this.remove(this.tail) : null;
35376
35376
  }
35377
35377
  unshift(data) {
35378
- this.prepend(List.createItem(data));
35378
+ this.prepend(_List.createItem(data));
35379
35379
  }
35380
35380
  shift() {
35381
35381
  return this.head !== null ? this.remove(this.head) : null;
@@ -56049,7 +56049,7 @@ var require_List2 = __commonJS({
56049
56049
  "node_modules/csso/node_modules/css-tree/cjs/utils/List.cjs"(exports2) {
56050
56050
  "use strict";
56051
56051
  var releasedCursors = null;
56052
- var List = class {
56052
+ var List = class _List {
56053
56053
  static createItem(data) {
56054
56054
  return {
56055
56055
  prev: null,
@@ -56063,7 +56063,7 @@ var require_List2 = __commonJS({
56063
56063
  this.cursor = null;
56064
56064
  }
56065
56065
  createItem(data) {
56066
- return List.createItem(data);
56066
+ return _List.createItem(data);
56067
56067
  }
56068
56068
  // cursor helpers
56069
56069
  allocateCursor(prev, next) {
@@ -56131,7 +56131,7 @@ var require_List2 = __commonJS({
56131
56131
  let cursor = null;
56132
56132
  this.head = null;
56133
56133
  for (let data of array) {
56134
- const item = List.createItem(data);
56134
+ const item = _List.createItem(data);
56135
56135
  if (cursor !== null) {
56136
56136
  cursor.next = item;
56137
56137
  } else {
@@ -56201,14 +56201,14 @@ var require_List2 = __commonJS({
56201
56201
  return false;
56202
56202
  }
56203
56203
  map(fn, thisArg = this) {
56204
- const result = new List();
56204
+ const result = new _List();
56205
56205
  for (let cursor = this.head; cursor !== null; cursor = cursor.next) {
56206
56206
  result.appendData(fn.call(thisArg, cursor.data, cursor, this));
56207
56207
  }
56208
56208
  return result;
56209
56209
  }
56210
56210
  filter(fn, thisArg = this) {
56211
- const result = new List();
56211
+ const result = new _List();
56212
56212
  for (let cursor = this.head; cursor !== null; cursor = cursor.next) {
56213
56213
  if (fn.call(thisArg, cursor.data, cursor, this)) {
56214
56214
  result.appendData(cursor.data);
@@ -56250,7 +56250,7 @@ var require_List2 = __commonJS({
56250
56250
  this.tail = null;
56251
56251
  }
56252
56252
  copy() {
56253
- const result = new List();
56253
+ const result = new _List();
56254
56254
  for (let data of this) {
56255
56255
  result.appendData(data);
56256
56256
  }
@@ -56268,13 +56268,13 @@ var require_List2 = __commonJS({
56268
56268
  return this;
56269
56269
  }
56270
56270
  prependData(data) {
56271
- return this.prepend(List.createItem(data));
56271
+ return this.prepend(_List.createItem(data));
56272
56272
  }
56273
56273
  append(item) {
56274
56274
  return this.insert(item);
56275
56275
  }
56276
56276
  appendData(data) {
56277
- return this.insert(List.createItem(data));
56277
+ return this.insert(_List.createItem(data));
56278
56278
  }
56279
56279
  insert(item, before = null) {
56280
56280
  if (before !== null) {
@@ -56306,7 +56306,7 @@ var require_List2 = __commonJS({
56306
56306
  return this;
56307
56307
  }
56308
56308
  insertData(data, before) {
56309
- return this.insert(List.createItem(data), before);
56309
+ return this.insert(_List.createItem(data), before);
56310
56310
  }
56311
56311
  remove(item) {
56312
56312
  this.updateCursors(item, item.prev, item, item.next);
@@ -56331,13 +56331,13 @@ var require_List2 = __commonJS({
56331
56331
  return item;
56332
56332
  }
56333
56333
  push(data) {
56334
- this.insert(List.createItem(data));
56334
+ this.insert(_List.createItem(data));
56335
56335
  }
56336
56336
  pop() {
56337
56337
  return this.tail !== null ? this.remove(this.tail) : null;
56338
56338
  }
56339
56339
  unshift(data) {
56340
- this.prepend(List.createItem(data));
56340
+ this.prepend(_List.createItem(data));
56341
56341
  }
56342
56342
  shift() {
56343
56343
  return this.head !== null ? this.remove(this.head) : null;
@@ -185,17 +185,10 @@ let state = {
185
185
  let files = fastGlob.sync(this.contentPatterns.all)
186
186
 
187
187
  for (let file of files) {
188
- if (__OXIDE__) {
189
- content.push({
190
- file,
191
- extension: path.extname(file).slice(1),
192
- })
193
- } else {
194
- content.push({
195
- content: fs.readFileSync(path.resolve(file), 'utf8'),
196
- extension: path.extname(file).slice(1),
197
- })
198
- }
188
+ content.push({
189
+ content: fs.readFileSync(path.resolve(file), 'utf8'),
190
+ extension: path.extname(file).slice(1),
191
+ })
199
192
  }
200
193
 
201
194
  // Resolve raw content in the tailwind config
package/src/cli.js CHANGED
@@ -1,7 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- if (__OXIDE__) {
4
- module.exports = require('./oxide/cli')
5
- } else {
6
- module.exports = require('./cli/index')
7
- }
3
+ module.exports = require('./cli/index')
@@ -1 +1 @@
1
- export default ["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content","forcedColorAdjust"]
1
+ export default ["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]