tailwindcss 0.0.0-insiders.2fb33ee → 0.0.0-insiders.2fdbe10

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 (90) hide show
  1. package/CHANGELOG.md +157 -1
  2. package/colors.js +2 -1
  3. package/defaultConfig.js +2 -1
  4. package/defaultTheme.js +2 -1
  5. package/lib/cli.js +50 -49
  6. package/lib/constants.js +1 -1
  7. package/lib/corePluginList.js +15 -1
  8. package/lib/corePlugins.js +738 -381
  9. package/lib/css/preflight.css +16 -3
  10. package/lib/featureFlags.js +14 -9
  11. package/lib/lib/collapseDuplicateDeclarations.js +29 -0
  12. package/lib/lib/detectNesting.js +17 -2
  13. package/lib/lib/evaluateTailwindFunctions.js +10 -6
  14. package/lib/lib/expandApplyAtRules.js +63 -10
  15. package/lib/lib/expandTailwindAtRules.js +41 -27
  16. package/lib/lib/generateRules.js +226 -26
  17. package/lib/lib/normalizeTailwindDirectives.js +3 -2
  18. package/lib/lib/resolveDefaultsAtRules.js +67 -56
  19. package/lib/lib/setupContextUtils.js +236 -190
  20. package/lib/lib/setupTrackingContext.js +8 -5
  21. package/lib/lib/setupWatchingContext.js +9 -5
  22. package/lib/lib/sharedState.js +2 -12
  23. package/lib/lib/substituteScreenAtRules.js +7 -4
  24. package/lib/processTailwindFeatures.js +4 -0
  25. package/lib/public/colors.js +4 -8
  26. package/lib/util/buildMediaQuery.js +13 -24
  27. package/lib/util/createUtilityPlugin.js +5 -5
  28. package/lib/util/dataTypes.js +38 -7
  29. package/lib/util/defaults.js +6 -0
  30. package/lib/util/formatVariantSelector.js +186 -0
  31. package/lib/util/isValidArbitraryValue.js +64 -0
  32. package/lib/util/log.js +34 -18
  33. package/lib/util/nameClass.js +2 -1
  34. package/lib/util/negateValue.js +3 -1
  35. package/lib/util/normalizeConfig.js +237 -0
  36. package/lib/util/normalizeScreens.js +61 -0
  37. package/lib/util/parseBoxShadowValue.js +77 -0
  38. package/lib/util/parseDependency.js +3 -0
  39. package/lib/util/pluginUtils.js +62 -158
  40. package/lib/util/prefixSelector.js +1 -3
  41. package/lib/util/resolveConfig.js +31 -82
  42. package/lib/util/toPath.js +6 -1
  43. package/lib/util/transformThemeValue.js +23 -13
  44. package/lib/util/withAlphaVariable.js +29 -14
  45. package/package.json +18 -17
  46. package/peers/index.js +4498 -5349
  47. package/plugin.js +2 -1
  48. package/resolveConfig.js +2 -1
  49. package/scripts/create-plugin-list.js +2 -2
  50. package/src/cli.js +27 -18
  51. package/src/corePluginList.js +1 -1
  52. package/src/corePlugins.js +603 -511
  53. package/src/css/preflight.css +16 -3
  54. package/src/featureFlags.js +16 -6
  55. package/src/lib/collapseDuplicateDeclarations.js +28 -0
  56. package/src/lib/detectNesting.js +22 -3
  57. package/src/lib/evaluateTailwindFunctions.js +6 -3
  58. package/src/lib/expandApplyAtRules.js +65 -3
  59. package/src/lib/expandTailwindAtRules.js +40 -29
  60. package/src/lib/generateRules.js +253 -17
  61. package/src/lib/normalizeTailwindDirectives.js +3 -2
  62. package/src/lib/resolveDefaultsAtRules.js +67 -50
  63. package/src/lib/setupContextUtils.js +227 -168
  64. package/src/lib/setupTrackingContext.js +8 -7
  65. package/src/lib/setupWatchingContext.js +11 -6
  66. package/src/lib/sharedState.js +1 -4
  67. package/src/lib/substituteScreenAtRules.js +6 -3
  68. package/src/processTailwindFeatures.js +5 -0
  69. package/src/public/colors.js +4 -9
  70. package/src/util/buildMediaQuery.js +14 -18
  71. package/src/util/createUtilityPlugin.js +2 -2
  72. package/src/util/dataTypes.js +43 -11
  73. package/src/util/defaults.js +6 -0
  74. package/src/util/formatVariantSelector.js +196 -0
  75. package/src/util/isValidArbitraryValue.js +61 -0
  76. package/src/util/log.js +22 -21
  77. package/src/util/nameClass.js +2 -2
  78. package/src/util/negateValue.js +4 -2
  79. package/src/util/normalizeConfig.js +262 -0
  80. package/src/util/normalizeScreens.js +45 -0
  81. package/src/util/parseBoxShadowValue.js +71 -0
  82. package/src/util/parseDependency.js +4 -0
  83. package/src/util/pluginUtils.js +50 -146
  84. package/src/util/prefixSelector.js +1 -4
  85. package/src/util/resolveConfig.js +22 -65
  86. package/src/util/toPath.js +23 -1
  87. package/src/util/transformThemeValue.js +22 -7
  88. package/src/util/withAlphaVariable.js +13 -8
  89. package/stubs/defaultConfig.stub.js +155 -90
  90. package/stubs/simpleConfig.stub.js +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,120 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Fixed
11
+
12
+ - Don't mutate custom color palette when overriding per-plugin colors ([#6546](https://github.com/tailwindlabs/tailwindcss/pull/6546))
13
+ - Improve circular dependency detection when using `@apply` ([#6588](https://github.com/tailwindlabs/tailwindcss/pull/6588))
14
+ - Only generate variants for non-`user` layers ([#6589](https://github.com/tailwindlabs/tailwindcss/pull/6589))
15
+
16
+ ## [3.0.6] - 2021-12-16
17
+
18
+ ### Fixed
19
+
20
+ - Support square bracket notation in paths ([#6519](https://github.com/tailwindlabs/tailwindcss/pull/6519))
21
+ - Ensure all plugins are executed for a given candidate ([#6540](https://github.com/tailwindlabs/tailwindcss/pull/6540))
22
+
23
+ ## [3.0.5] - 2021-12-15
24
+
25
+ ### Fixed
26
+
27
+ - Revert: add `li` to list-style reset ([9777562d](https://github.com/tailwindlabs/tailwindcss/commit/9777562da37ee631bbf77374c0d14825f09ef9af))
28
+
29
+ ## [3.0.4] - 2021-12-15
30
+
31
+ ### Fixed
32
+
33
+ - Insert always-on defaults layer in correct spot ([#6526](https://github.com/tailwindlabs/tailwindcss/pull/6526))
34
+
35
+ ## [3.0.3] - 2021-12-15
36
+
37
+ ### Added
38
+
39
+ - Warn about invalid globs in `content` ([#6449](https://github.com/tailwindlabs/tailwindcss/pull/6449))
40
+ - Add standalone tailwindcss CLI ([#6506](https://github.com/tailwindlabs/tailwindcss/pull/6506))
41
+ - Add `li` to list-style reset ([00f60e6](https://github.com/tailwindlabs/tailwindcss/commit/00f60e61013c6e4e3419e4b699371a13eb30b75d))
42
+
43
+ ### Fixed
44
+
45
+ - Don't output unparsable values ([#6469](https://github.com/tailwindlabs/tailwindcss/pull/6469))
46
+ - Fix text decoration utilities from overriding the new text decoration color/style/thickness utilities when used with a modifier ([#6378](https://github.com/tailwindlabs/tailwindcss/pull/6378))
47
+ - Move defaults to their own always-on layer ([#6500](https://github.com/tailwindlabs/tailwindcss/pull/6500))
48
+ - Support negative values in safelist patterns ([#6480](https://github.com/tailwindlabs/tailwindcss/pull/6480))
49
+
50
+ ## [3.0.2] - 2021-12-13
51
+
52
+ ### Fixed
53
+
54
+ - Temporarily disable optimize universal defaults, fixes issue with transforms/filters/rings not being `@apply`-able in CSS modules/Svelte components/Vue components ([#6461](https://github.com/tailwindlabs/tailwindcss/pull/6461))
55
+
56
+ ## [3.0.1] - 2021-12-10
57
+
58
+ ### Fixed
59
+
60
+ - Ensure complex variants with multiple classes work ([#6311](https://github.com/tailwindlabs/tailwindcss/pull/6311))
61
+ - Re-add `default` interop to public available functions ([#6348](https://github.com/tailwindlabs/tailwindcss/pull/6348))
62
+ - Detect circular dependencies when using `@apply` ([#6365](https://github.com/tailwindlabs/tailwindcss/pull/6365))
63
+ - Fix defaults optimization when vendor prefixes are involved ([#6369](https://github.com/tailwindlabs/tailwindcss/pull/6369))
64
+
65
+ ## [3.0.0] - 2021-12-09
66
+
67
+ ### Fixed
68
+
69
+ - Enforce the order of some variants (like `before` and `after`) ([#6018](https://github.com/tailwindlabs/tailwindcss/pull/6018))
70
+
71
+ ### Added
72
+
73
+ - Add `placeholder` variant ([#6106](https://github.com/tailwindlabs/tailwindcss/pull/6106))
74
+ - Add composable `touch-action` utilities ([#6115](https://github.com/tailwindlabs/tailwindcss/pull/6115))
75
+ - Add support for "arbitrary properties" ([#6161](https://github.com/tailwindlabs/tailwindcss/pull/6161))
76
+ - Add `portrait` and `landscape` variants ([#6046](https://github.com/tailwindlabs/tailwindcss/pull/6046))
77
+ - Add `text-decoration-style`, `text-decoration-thickness`, and `text-underline-offset` utilities ([#6004](https://github.com/tailwindlabs/tailwindcss/pull/6004))
78
+ - Add `menu` reset to preflight ([#6213](https://github.com/tailwindlabs/tailwindcss/pull/6213))
79
+ - Allow `0` as a valid `length` value ([#6233](https://github.com/tailwindlabs/tailwindcss/pull/6233), [#6259](https://github.com/tailwindlabs/tailwindcss/pull/6259))
80
+ - Add CSS functions to data types ([#6258](https://github.com/tailwindlabs/tailwindcss/pull/6258))
81
+ - Support negative values for `scale-*` utilities ([c48e629](https://github.com/tailwindlabs/tailwindcss/commit/c48e629955585ad18dadba9f470fda59cc448ab7))
82
+ - Improve `length` data type, by validating each value individually ([#6283](https://github.com/tailwindlabs/tailwindcss/pull/6283))
83
+
84
+ ### Changed
85
+
86
+ - Deprecate `decoration-slice` and `decoration-break` in favor `box-decoration-slice` and `box-decoration-break` _(non-breaking)_ ([#6004](https://github.com/tailwindlabs/tailwindcss/pull/6004))
87
+
88
+ ## [3.0.0-alpha.2] - 2021-11-08
89
+
90
+ ### Changed
91
+
92
+ - Don't use pointer cursor on disabled buttons by default ([#5772](https://github.com/tailwindlabs/tailwindcss/pull/5772))
93
+ - Set default content value in preflight instead of within each before/after utility ([#5820](https://github.com/tailwindlabs/tailwindcss/pull/5820))
94
+ - Remove `prefix` as a function ([#5829](https://github.com/tailwindlabs/tailwindcss/pull/5829))
95
+
96
+ ### Added
97
+
98
+ - Add `flex-basis` utilities ([#5671](https://github.com/tailwindlabs/tailwindcss/pull/5671))
99
+ - Make negative values a first-class feature ([#5709](https://github.com/tailwindlabs/tailwindcss/pull/5709))
100
+ - Add `fit-content` values for `min/max-width/height` utilities ([#5638](https://github.com/tailwindlabs/tailwindcss/pull/5638))
101
+ - Add `min/max-content` values for `min/max-height` utilities ([#5729](https://github.com/tailwindlabs/tailwindcss/pull/5729))
102
+ - Add all standard `cursor-*` values by default ([#5734](https://github.com/tailwindlabs/tailwindcss/pull/5734))
103
+ - Add `grow-*` and `shrink-*` utilities, deprecate `flex-grow-*` and `flex-shrink-*` ([#5733](https://github.com/tailwindlabs/tailwindcss/pull/5733))
104
+ - Add `text-decoration-color` utilities ([#5760](https://github.com/tailwindlabs/tailwindcss/pull/5760))
105
+ - Add new declarative `addVariant` API ([#5809](https://github.com/tailwindlabs/tailwindcss/pull/5809))
106
+ - Add first-class `print` variant for targeting printed media ([#5885](https://github.com/tailwindlabs/tailwindcss/pull/5885))
107
+ - Add `outline-style`, `outline-color`, `outline-width` and `outline-offset` utilities ([#5887](https://github.com/tailwindlabs/tailwindcss/pull/5887))
108
+ - Add full color palette for `fill-*` and `stroke-*` utilities (#5933[](https://github.com/tailwindlabs/tailwindcss/pull/5933))
109
+ - Add composable API for colored box shadows ([#5979](https://github.com/tailwindlabs/tailwindcss/pull/5979))
110
+
111
+ ### Fixed
112
+
113
+ - Configure chokidar's `awaitWriteFinish` setting to avoid occasional stale builds on Windows ([#5774](https://github.com/tailwindlabs/tailwindcss/pull/5774))
114
+ - Fix CLI `--content` option ([#5775](https://github.com/tailwindlabs/tailwindcss/pull/5775))
115
+ - Fix before/after utilities overriding custom content values at larger breakpoints ([#5820](https://github.com/tailwindlabs/tailwindcss/pull/5820))
116
+ - Cleanup duplicate properties ([#5830](https://github.com/tailwindlabs/tailwindcss/pull/5830))
117
+ - Allow `_` inside `url()` when using arbitrary values ([#5853](https://github.com/tailwindlabs/tailwindcss/pull/5853))
118
+ - Prevent crashes when using comments in `@layer` AtRules ([#5854](https://github.com/tailwindlabs/tailwindcss/pull/5854))
119
+ - Handle color transformations properly with `theme(...)` for all relevant plugins ([#4533](https://github.com/tailwindlabs/tailwindcss/pull/4533), [#5871](https://github.com/tailwindlabs/tailwindcss/pull/5871))
120
+ - Ensure `@apply`-ing a utility with multiple definitions works ([#5870](https://github.com/tailwindlabs/tailwindcss/pull/5870))
121
+
122
+ ## [3.0.0-alpha.1] - 2021-10-01
123
+
10
124
  ### Changed
11
125
 
12
126
  - Remove AOT engine, make JIT the default ([#5340](https://github.com/tailwindlabs/tailwindcss/pull/5340))
@@ -14,23 +128,53 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
128
  - Remove dependency on `modern-normalize`, inline and consolidate with Preflight ([#5358](https://github.com/tailwindlabs/tailwindcss/pull/5358))
15
129
  - Enable extended color palette by default with updated color names ([#5384](https://github.com/tailwindlabs/tailwindcss/pull/5384))
16
130
  - Move `vertical-align` values to config file instead of hard-coding ([#5487](https://github.com/tailwindlabs/tailwindcss/pull/5487))
131
+ - Rename `overflow-clip` to `text-clip` and `overflow-ellipsis` to `text-ellipsis` ([#5630](https://github.com/tailwindlabs/tailwindcss/pull/5630))
17
132
 
18
133
  ### Added
19
134
 
20
135
  - Add native `aspect-ratio` utilities ([#5359](https://github.com/tailwindlabs/tailwindcss/pull/5359))
21
136
  - Unify config callback helpers into single object ([#5382](https://github.com/tailwindlabs/tailwindcss/pull/5382))
22
137
  - Preserve original color format when adding opacity whenever possible ([#5154](https://github.com/tailwindlabs/tailwindcss/pull/5154))
138
+ - Add `accent-color` utilities ([#5387](https://github.com/tailwindlabs/tailwindcss/pull/5387))
23
139
  - Add `scroll-behavior` utilities ([#5388](https://github.com/tailwindlabs/tailwindcss/pull/5388))
140
+ - Add `will-change` utilities ([#5448](https://github.com/tailwindlabs/tailwindcss/pull/5448))
141
+ - Add `text-indent` utilities ([#5449](https://github.com/tailwindlabs/tailwindcss/pull/5449))
142
+ - Add `column` utilities ([#5457](https://github.com/tailwindlabs/tailwindcss/pull/5457))
24
143
  - Add `border-hidden` utility ([#5485](https://github.com/tailwindlabs/tailwindcss/pull/5485))
25
144
  - Add `align-sub` and `align-super` utilities by default ([#5486](https://github.com/tailwindlabs/tailwindcss/pull/5486))
26
145
  - Add `break-before`, `break-inside` and `break-after` utilities ([#5530](https://github.com/tailwindlabs/tailwindcss/pull/5530))
27
146
  - Add `file` variant for `::file-selector-button` pseudo element ([#4936](https://github.com/tailwindlabs/tailwindcss/pull/4936))
147
+ - Add comprehensive arbitrary value support ([#5568](https://github.com/tailwindlabs/tailwindcss/pull/5568))
28
148
  - Add `touch-action` utilities ([#5603](https://github.com/tailwindlabs/tailwindcss/pull/5603))
29
149
  - Add `inherit` to default color palette ([#5597](https://github.com/tailwindlabs/tailwindcss/pull/5597))
150
+ - Add `overflow-clip`, `overflow-x-clip` and `overflow-y-clip` utilities ([#5630](https://github.com/tailwindlabs/tailwindcss/pull/5630))
151
+ - Add `[open]` variant ([#5627](https://github.com/tailwindlabs/tailwindcss/pull/5627))
152
+ - Add `scroll-snap` utilities ([#5637](https://github.com/tailwindlabs/tailwindcss/pull/5637))
153
+ - Add `border-x` and `border-y` width and color utilities ([#5639](https://github.com/tailwindlabs/tailwindcss/pull/5639))
30
154
 
31
155
  ### Fixed
32
156
 
33
157
  - Fix defining colors as functions when color opacity plugins are disabled ([#5470](https://github.com/tailwindlabs/tailwindcss/pull/5470))
158
+ - Fix using negated `content` globs ([#5625](https://github.com/tailwindlabs/tailwindcss/pull/5625))
159
+ - Fix using backslashes in `content` globs ([#5628](https://github.com/tailwindlabs/tailwindcss/pull/5628))
160
+
161
+ ## [2.2.19] - 2021-10-29
162
+
163
+ ### Fixed
164
+
165
+ - Ensure `corePlugins` order is consisent in AOT mode ([#5928](https://github.com/tailwindlabs/tailwindcss/pull/5928))
166
+
167
+ ## [2.2.18] - 2021-10-29
168
+
169
+ ### Fixed
170
+
171
+ - Bump versions for security vulnerabilities ([#5924](https://github.com/tailwindlabs/tailwindcss/pull/5924))
172
+
173
+ ## [2.2.17] - 2021-10-13
174
+
175
+ ### Fixed
176
+
177
+ - Configure chokidar's `awaitWriteFinish` setting to avoid occasional stale builds on Windows ([#5758](https://github.com/tailwindlabs/tailwindcss/pull/5758))
34
178
 
35
179
  ## [2.2.16] - 2021-09-26
36
180
 
@@ -1590,7 +1734,19 @@ No release notes
1590
1734
 
1591
1735
  - Everything!
1592
1736
 
1593
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...HEAD
1737
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.6...HEAD
1738
+ [3.0.6]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.6...v3.0.6
1739
+ [3.0.5]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.4...v3.0.5
1740
+ [3.0.4]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.3...v3.0.4
1741
+ [3.0.3]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.2...v3.0.3
1742
+ [3.0.2]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.1...v3.0.2
1743
+ [3.0.1]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0...v3.0.1
1744
+ [3.0.0]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0-alpha.2...v3.0.0
1745
+ [3.0.0-alpha.2]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0-alpha.1...v3.0.0-alpha.2
1746
+ [3.0.0-alpha.1]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.19...v3.0.0-alpha.1
1747
+ [2.2.19]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.18...v2.2.19
1748
+ [2.2.18]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.17...v2.2.18
1749
+ [2.2.17]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...v2.2.17
1594
1750
  [2.2.16]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...v2.2.16
1595
1751
  [2.2.15]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15
1596
1752
  [2.2.14]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.13...v2.2.14
package/colors.js CHANGED
@@ -1 +1,2 @@
1
- module.exports = require('./lib/public/colors').default
1
+ let colors = require('./lib/public/colors')
2
+ module.exports = (colors.__esModule ? colors : { default: colors }).default
package/defaultConfig.js CHANGED
@@ -1 +1,2 @@
1
- module.exports = require('./lib/public/default-config').default
1
+ let defaultConfig = require('./lib/public/default-config')
2
+ module.exports = (defaultConfig.__esModule ? defaultConfig : { default: defaultConfig }).default
package/defaultTheme.js CHANGED
@@ -1 +1,2 @@
1
- module.exports = require('./lib/public/default-theme').default
1
+ let defaultTheme = require('./lib/public/default-theme')
2
+ module.exports = (defaultTheme.__esModule ? defaultTheme : { default: defaultTheme }).default
package/lib/cli.js CHANGED
@@ -15,13 +15,14 @@ var _fastGlob = _interopRequireDefault(require("fast-glob"));
15
15
  var _getModuleDependencies = _interopRequireDefault(require("./lib/getModuleDependencies"));
16
16
  var _log = _interopRequireDefault(require("./util/log"));
17
17
  var _packageJson = _interopRequireDefault(require("../package.json"));
18
+ var _normalizePath = _interopRequireDefault(require("normalize-path"));
18
19
  function _interopRequireDefault(obj) {
19
20
  return obj && obj.__esModule ? obj : {
20
21
  default: obj
21
22
  };
22
23
  }
23
24
  let env = {
24
- DEBUG: process.env.DEBUG !== undefined
25
+ DEBUG: process.env.DEBUG !== undefined && process.env.DEBUG !== '0'
25
26
  };
26
27
  // ---
27
28
  function indentRecursive(node, indent = 0) {
@@ -39,7 +40,7 @@ function formatNodes(root) {
39
40
  root.first.raws.before = '';
40
41
  }
41
42
  }
42
- function help({ message , usage , commands , options }) {
43
+ function help({ message , usage , commands: commands1 , options }) {
43
44
  let indent = 2;
44
45
  // Render header
45
46
  console.log();
@@ -60,11 +61,11 @@ function help({ message , usage , commands , options }) {
60
61
  }
61
62
  }
62
63
  // Render commands
63
- if (commands && commands.length > 0) {
64
+ if (commands1 && commands1.length > 0) {
64
65
  console.log();
65
66
  console.log('Commands:');
66
- for (let command of commands){
67
- console.log(' '.repeat(indent), command);
67
+ for (let command1 of commands1){
68
+ console.log(' '.repeat(indent), command1);
68
69
  }
69
70
  }
70
71
  // Render options
@@ -85,12 +86,12 @@ function help({ message , usage , commands , options }) {
85
86
  }
86
87
  console.log();
87
88
  console.log('Options:');
88
- for (let { flags , description , deprecated } of Object.values(groupedOptions)){
89
+ for (let { flags: flags1 , description , deprecated } of Object.values(groupedOptions)){
89
90
  if (deprecated) continue;
90
- if (flags.length === 1) {
91
- console.log(' '.repeat(indent + 4 /* 4 = "-i, ".length */ ), flags.slice().reverse().join(', ').padEnd(20, ' '), description);
91
+ if (flags1.length === 1) {
92
+ console.log(' '.repeat(indent + 4 /* 4 = "-i, ".length */ ), flags1.slice().reverse().join(', ').padEnd(20, ' '), description);
92
93
  } else {
93
- console.log(' '.repeat(indent), flags.slice().reverse().join(', ').padEnd(24, ' '), description);
94
+ console.log(' '.repeat(indent), flags1.slice().reverse().join(', ').padEnd(24, ' '), description);
94
95
  }
95
96
  }
96
97
  }
@@ -186,8 +187,8 @@ if (process.stdout.isTTY /* Detect redirecting output to a file */ && (process.
186
187
  'tailwindcss [--input input.css] [--output output.css] [--watch] [options...]',
187
188
  'tailwindcss init [--full] [--postcss] [options...]',
188
189
  ],
189
- commands: Object.keys(commands).filter((command)=>command !== 'build'
190
- ).map((command)=>`${command} [options]`
190
+ commands: Object.keys(commands).filter((command2)=>command2 !== 'build'
191
+ ).map((command3)=>`${command3} [options]`
191
192
  ),
192
193
  options: {
193
194
  ...commands.build.args,
@@ -209,8 +210,8 @@ if (commands[command] === undefined) {
209
210
  usage: [
210
211
  'tailwindcss <command> [options]'
211
212
  ],
212
- commands: Object.keys(commands).filter((command)=>command !== 'build'
213
- ).map((command)=>`${command} [options]`
213
+ commands: Object.keys(commands).filter((command4)=>command4 !== 'build'
214
+ ).map((command5)=>`${command5} [options]`
214
215
  ),
215
216
  options: sharedFlags
216
217
  });
@@ -246,16 +247,16 @@ let args = (()=>{
246
247
  handler = flags[handler];
247
248
  }
248
249
  if (!handler) continue;
249
- let args = [];
250
+ let args1 = [];
250
251
  let offset = i + 1;
251
252
  // Parse args for current flag
252
253
  while(result['_'][offset] && !result['_'][offset].startsWith('-')){
253
- args.push(result['_'][offset++]);
254
+ args1.push(result['_'][offset++]);
254
255
  }
255
256
  // Cleanup manually parsed flags + args
256
- result['_'].splice(i, 1 + args.length);
257
+ result['_'].splice(i, 1 + args1.length);
257
258
  // Set the resolved value in the `result` object
258
- result[flagName] = handler.type(args.length === 0 ? undefined : args.length === 1 ? args[0] : args, flagName);
259
+ result[flagName] = handler.type(args1.length === 0 ? undefined : args1.length === 1 ? args1[0] : args1, flagName);
259
260
  }
260
261
  // Ensure that the `command` is always the first argument in the `args`.
261
262
  // This is important so that we don't have to check if a default command
@@ -386,34 +387,30 @@ async function build() {
386
387
  };
387
388
  let resolvedConfig = (0, _resolveConfig).default(config);
388
389
  if (args['--purge']) {
389
- _log.default.warn([
390
+ _log.default.warn('purge-flag-deprecated', [
390
391
  'The `--purge` flag has been deprecated.',
391
- 'Please use `--content` instead.'
392
+ 'Please use `--content` instead.',
392
393
  ]);
393
394
  if (!args['--content']) {
394
- args['--content'] = [
395
- '--purge'
396
- ];
395
+ args['--content'] = args['--purge'];
397
396
  }
398
397
  }
399
398
  if (args['--content']) {
400
- resolvedConfig.content = args['--content'].split(/(?<!{[^}]+),/);
399
+ resolvedConfig.content.files = args['--content'].split(/(?<!{[^}]+),/);
401
400
  }
402
401
  return resolvedConfig;
403
402
  }
404
- function extractContent(config) {
405
- return config.content.content.concat(config.content.safelist);
406
- }
407
403
  function extractFileGlobs(config) {
408
- return extractContent(config).filter((file)=>{
404
+ return config.content.files.filter((file)=>{
409
405
  // Strings in this case are files / globs. If it is something else,
410
406
  // like an object it's probably a raw content object. But this object
411
407
  // is not watchable, so let's remove it.
412
408
  return typeof file === 'string';
413
- });
409
+ }).map((glob)=>(0, _normalizePath).default(glob)
410
+ );
414
411
  }
415
412
  function extractRawContent(config) {
416
- return extractContent(config).filter((file)=>{
413
+ return config.content.files.filter((file)=>{
417
414
  return typeof file === 'object' && file !== null;
418
415
  });
419
416
  }
@@ -425,7 +422,7 @@ async function build() {
425
422
  for (let file of files){
426
423
  changedContent.push({
427
424
  content: _fs.default.readFileSync(_path.default.resolve(file), 'utf8'),
428
- extension: _path.default.extname(file)
425
+ extension: _path.default.extname(file).slice(1)
429
426
  });
430
427
  }
431
428
  // Resolve raw content in the tailwind config
@@ -513,8 +510,8 @@ async function build() {
513
510
  console.error('Done in', (end - start) / BigInt(1000000) + 'ms.');
514
511
  });
515
512
  }
516
- let css = input ? _fs.default.readFileSync(_path.default.resolve(input), 'utf8') : '@tailwind base; @tailwind components; @tailwind utilities';
517
- return processCSS(css);
513
+ let css1 = input ? _fs.default.readFileSync(_path.default.resolve(input), 'utf8') : '@tailwind base; @tailwind components; @tailwind utilities';
514
+ return processCSS(css1);
518
515
  }
519
516
  let context = null;
520
517
  async function startWatcher() {
@@ -524,8 +521,8 @@ async function build() {
524
521
  let watcher = null;
525
522
  function refreshConfig() {
526
523
  env.DEBUG && console.time('Module dependencies');
527
- for (let file of configDependencies){
528
- delete require.cache[require.resolve(file)];
524
+ for (let file1 of configDependencies){
525
+ delete require.cache[require.resolve(file1)];
529
526
  }
530
527
  if (configPath) {
531
528
  configDependencies = (0, _getModuleDependencies).default(configPath).map(({ file })=>file
@@ -639,44 +636,48 @@ async function build() {
639
636
  }
640
637
  });
641
638
  }
642
- let css = input ? _fs.default.readFileSync(_path.default.resolve(input), 'utf8') : '@tailwind base; @tailwind components; @tailwind utilities';
643
- let result1 = await processCSS(css);
639
+ let css2 = input ? _fs.default.readFileSync(_path.default.resolve(input), 'utf8') : '@tailwind base; @tailwind components; @tailwind utilities';
640
+ let result1 = await processCSS(css2);
644
641
  env.DEBUG && console.timeEnd('Finished in');
645
642
  return result1;
646
643
  }
647
- let config = refreshConfig(configPath);
644
+ let config1 = refreshConfig(configPath);
648
645
  if (input) {
649
646
  contextDependencies.add(_path.default.resolve(input));
650
647
  }
651
648
  watcher = _chokidar.default.watch([
652
649
  ...contextDependencies,
653
- ...extractFileGlobs(config)
650
+ ...extractFileGlobs(config1)
654
651
  ], {
655
- ignoreInitial: true
652
+ ignoreInitial: true,
653
+ awaitWriteFinish: process.platform === 'win32' ? {
654
+ stabilityThreshold: 50,
655
+ pollInterval: 10
656
+ } : false
656
657
  });
657
658
  let chain = Promise.resolve();
658
659
  watcher.on('change', async (file)=>{
659
660
  if (contextDependencies.has(file)) {
660
661
  env.DEBUG && console.time('Resolve config');
661
662
  context = null;
662
- config = refreshConfig(configPath);
663
+ config1 = refreshConfig(configPath);
663
664
  env.DEBUG && console.timeEnd('Resolve config');
664
665
  env.DEBUG && console.time('Watch new files');
665
- let globs = extractFileGlobs(config);
666
+ let globs = extractFileGlobs(config1);
666
667
  watcher.add(configDependencies);
667
668
  watcher.add(globs);
668
669
  env.DEBUG && console.timeEnd('Watch new files');
669
670
  chain = chain.then(async ()=>{
670
- changedContent.push(...getChangedContent(config));
671
- await rebuild(config);
671
+ changedContent.push(...getChangedContent(config1));
672
+ await rebuild(config1);
672
673
  });
673
674
  } else {
674
675
  chain = chain.then(async ()=>{
675
676
  changedContent.push({
676
677
  content: _fs.default.readFileSync(_path.default.resolve(file), 'utf8'),
677
- extension: _path.default.extname(file)
678
+ extension: _path.default.extname(file).slice(1)
678
679
  });
679
- await rebuild(config);
680
+ await rebuild(config1);
680
681
  });
681
682
  }
682
683
  });
@@ -684,14 +685,14 @@ async function build() {
684
685
  chain = chain.then(async ()=>{
685
686
  changedContent.push({
686
687
  content: _fs.default.readFileSync(_path.default.resolve(file), 'utf8'),
687
- extension: _path.default.extname(file)
688
+ extension: _path.default.extname(file).slice(1)
688
689
  });
689
- await rebuild(config);
690
+ await rebuild(config1);
690
691
  });
691
692
  });
692
693
  chain = chain.then(()=>{
693
- changedContent.push(...getChangedContent(config));
694
- return rebuild(config);
694
+ changedContent.push(...getChangedContent(config1));
695
+ return rebuild(config1);
695
696
  });
696
697
  }
697
698
  if (shouldWatch) {
package/lib/constants.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- exports.simpleConfigStubFile = exports.defaultPostCssConfigFile = exports.defaultConfigStubFile = exports.supportedPostCssConfigFile = exports.cjsConfigFile = exports.supportedConfigFiles = exports.defaultPostCssConfigStubFile = exports.cli = exports.cjsPostCssConfigFile = exports.defaultConfigFile = void 0;
5
+ exports.defaultPostCssConfigStubFile = exports.simpleConfigStubFile = exports.defaultConfigStubFile = exports.supportedPostCssConfigFile = exports.supportedConfigFiles = exports.cjsPostCssConfigFile = exports.cjsConfigFile = exports.defaultPostCssConfigFile = exports.defaultConfigFile = exports.cli = void 0;
6
6
  var _path = _interopRequireDefault(require("path"));
7
7
  function _interopRequireDefault(obj) {
8
8
  return obj && obj.__esModule ? obj : {
@@ -35,6 +35,7 @@ var _default = [
35
35
  "flex",
36
36
  "flexShrink",
37
37
  "flexGrow",
38
+ "flexBasis",
38
39
  "tableLayout",
39
40
  "borderCollapse",
40
41
  "transformOrigin",
@@ -48,6 +49,11 @@ var _default = [
48
49
  "touchAction",
49
50
  "userSelect",
50
51
  "resize",
52
+ "scrollSnapType",
53
+ "scrollSnapAlign",
54
+ "scrollSnapStop",
55
+ "scrollMargin",
56
+ "scrollPadding",
51
57
  "listStylePosition",
52
58
  "listStyleType",
53
59
  "appearance",
@@ -119,6 +125,10 @@ var _default = [
119
125
  "textColor",
120
126
  "textOpacity",
121
127
  "textDecoration",
128
+ "textDecorationColor",
129
+ "textDecorationStyle",
130
+ "textDecorationThickness",
131
+ "textUnderlineOffset",
122
132
  "fontSmoothing",
123
133
  "placeholderColor",
124
134
  "placeholderOpacity",
@@ -128,7 +138,11 @@ var _default = [
128
138
  "backgroundBlendMode",
129
139
  "mixBlendMode",
130
140
  "boxShadow",
131
- "outline",
141
+ "boxShadowColor",
142
+ "outlineStyle",
143
+ "outlineWidth",
144
+ "outlineOffset",
145
+ "outlineColor",
132
146
  "ringWidth",
133
147
  "ringColor",
134
148
  "ringOpacity",