tailwindcss 0.0.0-insiders.cd5cb00 → 0.0.0-insiders.d6301bd
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.
- package/CHANGELOG.md +51 -1
- package/lib/cli.js +12 -11
- package/lib/corePluginList.js +6 -1
- package/lib/corePlugins.js +258 -221
- package/lib/css/preflight.css +12 -0
- package/lib/featureFlags.js +10 -7
- package/lib/lib/collapseDuplicateDeclarations.js +29 -0
- package/lib/lib/expandTailwindAtRules.js +14 -26
- package/lib/lib/generateRules.js +112 -25
- package/lib/lib/normalizeTailwindDirectives.js +2 -1
- package/lib/lib/resolveDefaultsAtRules.js +44 -47
- package/lib/lib/setupContextUtils.js +184 -110
- package/lib/lib/setupTrackingContext.js +3 -3
- package/lib/lib/setupWatchingContext.js +8 -4
- package/lib/lib/sharedState.js +2 -12
- package/lib/processTailwindFeatures.js +4 -0
- package/lib/public/colors.js +2 -2
- package/lib/util/createUtilityPlugin.js +3 -3
- package/lib/util/dataTypes.js +13 -4
- package/lib/util/formatVariantSelector.js +102 -0
- package/lib/util/nameClass.js +1 -1
- package/lib/util/negateValue.js +3 -1
- package/lib/util/normalizeConfig.js +208 -0
- package/lib/util/pluginUtils.js +58 -155
- package/lib/util/prefixSelector.js +1 -3
- package/lib/util/resolveConfig.js +7 -61
- package/lib/util/transformThemeValue.js +23 -13
- package/package.json +11 -11
- package/peers/index.js +983 -2687
- package/scripts/create-plugin-list.js +2 -2
- package/src/cli.js +14 -11
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +273 -364
- package/src/css/preflight.css +12 -0
- package/src/featureFlags.js +11 -5
- package/src/lib/collapseDuplicateDeclarations.js +28 -0
- package/src/lib/expandTailwindAtRules.js +15 -29
- package/src/lib/generateRules.js +125 -27
- package/src/lib/normalizeTailwindDirectives.js +2 -1
- package/src/lib/resolveDefaultsAtRules.js +39 -43
- package/src/lib/setupContextUtils.js +181 -98
- package/src/lib/setupTrackingContext.js +3 -5
- package/src/lib/setupWatchingContext.js +10 -5
- package/src/lib/sharedState.js +1 -4
- package/src/processTailwindFeatures.js +5 -0
- package/src/public/colors.js +2 -2
- package/src/util/createUtilityPlugin.js +2 -2
- package/src/util/dataTypes.js +19 -5
- package/src/util/formatVariantSelector.js +105 -0
- package/src/util/nameClass.js +1 -1
- package/src/util/negateValue.js +4 -2
- package/src/util/normalizeConfig.js +249 -0
- package/src/util/pluginUtils.js +48 -146
- package/src/util/prefixSelector.js +1 -4
- package/src/util/resolveConfig.js +8 -54
- package/src/util/transformThemeValue.js +22 -7
- package/stubs/defaultConfig.stub.js +93 -49
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Changed
|
|
11
11
|
|
|
12
|
+
- Don't use pointer cursor on disabled buttons by default ([#5772](https://github.com/tailwindlabs/tailwindcss/pull/5772))
|
|
13
|
+
- Set default content value in preflight instead of within each before/after utility ([#5820](https://github.com/tailwindlabs/tailwindcss/pull/5820))
|
|
14
|
+
- Remove `prefix` as a function ([#5829](https://github.com/tailwindlabs/tailwindcss/pull/5829))
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Add `flex-basis` utilities ([#5671](https://github.com/tailwindlabs/tailwindcss/pull/5671))
|
|
19
|
+
- Make negative values a first-class feature ([#5709](https://github.com/tailwindlabs/tailwindcss/pull/5709))
|
|
20
|
+
- Add `fit-content` values for `min/max-width/height` utilities ([#5638](https://github.com/tailwindlabs/tailwindcss/pull/5638))
|
|
21
|
+
- Add `min/max-content` values for `min/max-height` utilities ([#5729](https://github.com/tailwindlabs/tailwindcss/pull/5729))
|
|
22
|
+
- Add all standard `cursor-*` values by default ([#5734](https://github.com/tailwindlabs/tailwindcss/pull/5734))
|
|
23
|
+
- Add `grow-*` and `shrink-*` utilities, deprecate `flex-grow-*` and `flex-shrink-*` ([#5733](https://github.com/tailwindlabs/tailwindcss/pull/5733))
|
|
24
|
+
- Add `text-decoration-color` utilities ([#5760](https://github.com/tailwindlabs/tailwindcss/pull/5760))
|
|
25
|
+
- Add declarative `addVariant` syntax ([#5809](https://github.com/tailwindlabs/tailwindcss/pull/5809))
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- Configure chokidar's `awaitWriteFinish` setting to avoid occasional stale builds on Windows ([#5774](https://github.com/tailwindlabs/tailwindcss/pull/5774))
|
|
30
|
+
- Fix CLI `--content` option ([#5775](https://github.com/tailwindlabs/tailwindcss/pull/5775))
|
|
31
|
+
- Fix before/after utilities overriding custom content values at larger breakpoints ([#5820](https://github.com/tailwindlabs/tailwindcss/pull/5820))
|
|
32
|
+
- Cleanup duplicate properties ([#5830](https://github.com/tailwindlabs/tailwindcss/pull/5830))
|
|
33
|
+
- Allow `_` inside `url()` when using arbitrary values ([#5853](https://github.com/tailwindlabs/tailwindcss/pull/5853))
|
|
34
|
+
- Prevent crashes when using comments in `@layer` AtRules ([#5854](https://github.com/tailwindlabs/tailwindcss/pull/5854))
|
|
35
|
+
- 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))
|
|
36
|
+
|
|
37
|
+
## [3.0.0-alpha.1] - 2021-10-01
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
12
41
|
- Remove AOT engine, make JIT the default ([#5340](https://github.com/tailwindlabs/tailwindcss/pull/5340))
|
|
13
42
|
- Throw when trying to `@apply` the `group` class ([#4666](https://github.com/tailwindlabs/tailwindcss/pull/4666))
|
|
14
43
|
- Remove dependency on `modern-normalize`, inline and consolidate with Preflight ([#5358](https://github.com/tailwindlabs/tailwindcss/pull/5358))
|
|
@@ -21,14 +50,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
21
50
|
- Add native `aspect-ratio` utilities ([#5359](https://github.com/tailwindlabs/tailwindcss/pull/5359))
|
|
22
51
|
- Unify config callback helpers into single object ([#5382](https://github.com/tailwindlabs/tailwindcss/pull/5382))
|
|
23
52
|
- Preserve original color format when adding opacity whenever possible ([#5154](https://github.com/tailwindlabs/tailwindcss/pull/5154))
|
|
53
|
+
- Add `accent-color` utilities ([#5387](https://github.com/tailwindlabs/tailwindcss/pull/5387))
|
|
24
54
|
- Add `scroll-behavior` utilities ([#5388](https://github.com/tailwindlabs/tailwindcss/pull/5388))
|
|
55
|
+
- Add `will-change` utilities ([#5448](https://github.com/tailwindlabs/tailwindcss/pull/5448))
|
|
56
|
+
- Add `text-indent` utilities ([#5449](https://github.com/tailwindlabs/tailwindcss/pull/5449))
|
|
57
|
+
- Add `column` utilities ([#5457](https://github.com/tailwindlabs/tailwindcss/pull/5457))
|
|
25
58
|
- Add `border-hidden` utility ([#5485](https://github.com/tailwindlabs/tailwindcss/pull/5485))
|
|
26
59
|
- Add `align-sub` and `align-super` utilities by default ([#5486](https://github.com/tailwindlabs/tailwindcss/pull/5486))
|
|
27
60
|
- Add `break-before`, `break-inside` and `break-after` utilities ([#5530](https://github.com/tailwindlabs/tailwindcss/pull/5530))
|
|
28
61
|
- Add `file` variant for `::file-selector-button` pseudo element ([#4936](https://github.com/tailwindlabs/tailwindcss/pull/4936))
|
|
62
|
+
- Add comprehensive arbitrary value support ([#5568](https://github.com/tailwindlabs/tailwindcss/pull/5568))
|
|
29
63
|
- Add `touch-action` utilities ([#5603](https://github.com/tailwindlabs/tailwindcss/pull/5603))
|
|
30
64
|
- Add `inherit` to default color palette ([#5597](https://github.com/tailwindlabs/tailwindcss/pull/5597))
|
|
31
65
|
- Add `overflow-clip`, `overflow-x-clip` and `overflow-y-clip` utilities ([#5630](https://github.com/tailwindlabs/tailwindcss/pull/5630))
|
|
66
|
+
- Add `[open]` variant ([#5627](https://github.com/tailwindlabs/tailwindcss/pull/5627))
|
|
32
67
|
- Add `scroll-snap` utilities ([#5637](https://github.com/tailwindlabs/tailwindcss/pull/5637))
|
|
33
68
|
- Add `border-x` and `border-y` width and color utilities ([#5639](https://github.com/tailwindlabs/tailwindcss/pull/5639))
|
|
34
69
|
|
|
@@ -38,6 +73,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
38
73
|
- Fix using negated `content` globs ([#5625](https://github.com/tailwindlabs/tailwindcss/pull/5625))
|
|
39
74
|
- Fix using backslashes in `content` globs ([#5628](https://github.com/tailwindlabs/tailwindcss/pull/5628))
|
|
40
75
|
|
|
76
|
+
## [2.2.18] - 2021-10-29
|
|
77
|
+
|
|
78
|
+
### Fixed
|
|
79
|
+
|
|
80
|
+
- Bump versions for security vulnerabilities ([#5924](https://github.com/tailwindlabs/tailwindcss/pull/5924))
|
|
81
|
+
|
|
82
|
+
## [2.2.17] - 2021-10-13
|
|
83
|
+
|
|
84
|
+
### Fixed
|
|
85
|
+
|
|
86
|
+
- Configure chokidar's `awaitWriteFinish` setting to avoid occasional stale builds on Windows ([#5758](https://github.com/tailwindlabs/tailwindcss/pull/5758))
|
|
87
|
+
|
|
41
88
|
## [2.2.16] - 2021-09-26
|
|
42
89
|
|
|
43
90
|
### Fixed
|
|
@@ -1596,7 +1643,10 @@ No release notes
|
|
|
1596
1643
|
|
|
1597
1644
|
- Everything!
|
|
1598
1645
|
|
|
1599
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/
|
|
1646
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0-alpha.1...HEAD
|
|
1647
|
+
[3.0.0-alpha.1]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.18...v3.0.0-alpha.1
|
|
1648
|
+
[2.2.18]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.17...v2.2.18
|
|
1649
|
+
[2.2.17]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...v2.2.17
|
|
1600
1650
|
[2.2.16]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...v2.2.16
|
|
1601
1651
|
[2.2.15]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15
|
|
1602
1652
|
[2.2.14]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.13...v2.2.14
|
package/lib/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ function _interopRequireDefault(obj) {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
let env = {
|
|
25
|
-
DEBUG: process.env.DEBUG !== undefined
|
|
25
|
+
DEBUG: process.env.DEBUG !== undefined && process.env.DEBUG !== '0'
|
|
26
26
|
};
|
|
27
27
|
// ---
|
|
28
28
|
function indentRecursive(node, indent = 0) {
|
|
@@ -396,15 +396,12 @@ async function build() {
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
if (args['--content']) {
|
|
399
|
-
resolvedConfig.content = args['--content'].split(/(?<!{[^}]+),/);
|
|
399
|
+
resolvedConfig.content.files = args['--content'].split(/(?<!{[^}]+),/);
|
|
400
400
|
}
|
|
401
401
|
return resolvedConfig;
|
|
402
402
|
}
|
|
403
|
-
function extractContent(config) {
|
|
404
|
-
return config.content.content.concat(config.content.safelist);
|
|
405
|
-
}
|
|
406
403
|
function extractFileGlobs(config) {
|
|
407
|
-
return
|
|
404
|
+
return config.content.files.filter((file)=>{
|
|
408
405
|
// Strings in this case are files / globs. If it is something else,
|
|
409
406
|
// like an object it's probably a raw content object. But this object
|
|
410
407
|
// is not watchable, so let's remove it.
|
|
@@ -413,7 +410,7 @@ async function build() {
|
|
|
413
410
|
);
|
|
414
411
|
}
|
|
415
412
|
function extractRawContent(config) {
|
|
416
|
-
return
|
|
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
|
|
@@ -652,7 +649,11 @@ async function build() {
|
|
|
652
649
|
...contextDependencies,
|
|
653
650
|
...extractFileGlobs(config)
|
|
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)=>{
|
|
@@ -674,7 +675,7 @@ async function build() {
|
|
|
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
680
|
await rebuild(config);
|
|
680
681
|
});
|
|
@@ -684,7 +685,7 @@ 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
690
|
await rebuild(config);
|
|
690
691
|
});
|
package/lib/corePluginList.js
CHANGED
|
@@ -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",
|
|
@@ -124,6 +125,7 @@ var _default = [
|
|
|
124
125
|
"textColor",
|
|
125
126
|
"textOpacity",
|
|
126
127
|
"textDecoration",
|
|
128
|
+
"textDecorationColor",
|
|
127
129
|
"fontSmoothing",
|
|
128
130
|
"placeholderColor",
|
|
129
131
|
"placeholderOpacity",
|
|
@@ -133,7 +135,10 @@ var _default = [
|
|
|
133
135
|
"backgroundBlendMode",
|
|
134
136
|
"mixBlendMode",
|
|
135
137
|
"boxShadow",
|
|
136
|
-
"
|
|
138
|
+
"outlineStyle",
|
|
139
|
+
"outlineWidth",
|
|
140
|
+
"outlineOffset",
|
|
141
|
+
"outlineColor",
|
|
137
142
|
"ringWidth",
|
|
138
143
|
"ringColor",
|
|
139
144
|
"ringOpacity",
|