tailwindcss 0.0.0-insiders.c6bac2d → 0.0.0-insiders.c7f627d
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 +17 -6
- package/lib/corePlugins.js +22 -13
- package/lib/css/preflight.css +16 -0
- package/lib/lib/expandApplyAtRules.js +5 -0
- package/lib/lib/generateRules.js +1 -3
- package/lib/lib/setupTrackingContext.js +3 -1
- package/lib/util/resolveConfig.js +1 -1
- package/package.json +3 -3
- package/peers/index.js +937 -821
- package/src/corePlugins.js +22 -3
- package/src/css/preflight.css +16 -0
- package/src/lib/expandApplyAtRules.js +6 -0
- package/src/lib/generateRules.js +1 -4
- package/src/lib/setupTrackingContext.js +1 -1
- package/src/util/resolveConfig.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Add support fo configuring default `font-feature-settings` for a font family ([#9039](https://github.com/tailwindlabs/tailwindcss/pull/9039))
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Use absolute paths when resolving changed files for resilience against working directory changes ([#9032](https://github.com/tailwindlabs/tailwindcss/pull/9032))
|
|
17
|
+
|
|
18
|
+
## [3.1.8] - 2022-08-05
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Don’t prefix classes within reused arbitrary variants ([#8992](https://github.com/tailwindlabs/tailwindcss/pull/8992))
|
|
23
|
+
- Fix usage of alpha values inside single-named colors that are functions ([#9008](https://github.com/tailwindlabs/tailwindcss/pull/9008))
|
|
24
|
+
- Fix `@apply` of user utilities when negative and non-negative versions both exist ([#9027](https://github.com/tailwindlabs/tailwindcss/pull/9027))
|
|
11
25
|
|
|
12
26
|
## [3.1.7] - 2022-07-29
|
|
13
27
|
|
|
@@ -19,10 +33,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
19
33
|
|
|
20
34
|
- Added types for `resolveConfig` ([#8924](https://github.com/tailwindlabs/tailwindcss/pull/8924))
|
|
21
35
|
|
|
22
|
-
### Changed
|
|
23
|
-
|
|
24
|
-
- Don't use `cursor: pointer` for buttons by default ([#8962](https://github.com/tailwindlabs/tailwindcss/pull/8962))
|
|
25
|
-
|
|
26
36
|
## [3.1.6] - 2022-07-11
|
|
27
37
|
|
|
28
38
|
### Fixed
|
|
@@ -2025,7 +2035,8 @@ No release notes
|
|
|
2025
2035
|
|
|
2026
2036
|
- Everything!
|
|
2027
2037
|
|
|
2028
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.1.
|
|
2038
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.1.8...HEAD
|
|
2039
|
+
[3.1.8]: https://github.com/tailwindlabs/tailwindcss/compare/v3.1.7...v3.1.8
|
|
2029
2040
|
[3.1.7]: https://github.com/tailwindlabs/tailwindcss/compare/v3.1.6...v3.1.7
|
|
2030
2041
|
[3.1.6]: https://github.com/tailwindlabs/tailwindcss/compare/v3.1.5...v3.1.6
|
|
2031
2042
|
[3.1.5]: https://github.com/tailwindlabs/tailwindcss/compare/v3.1.4...v3.1.5
|
package/lib/corePlugins.js
CHANGED
|
@@ -2645,20 +2645,29 @@ let corePlugins = {
|
|
|
2645
2645
|
})
|
|
2646
2646
|
});
|
|
2647
2647
|
},
|
|
2648
|
-
fontFamily: (
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2648
|
+
fontFamily: ({ matchUtilities , theme })=>{
|
|
2649
|
+
matchUtilities({
|
|
2650
|
+
font: (value)=>{
|
|
2651
|
+
let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
|
|
2652
|
+
value
|
|
2653
|
+
];
|
|
2654
|
+
let { fontFeatureSettings } = options;
|
|
2655
|
+
return {
|
|
2656
|
+
"font-family": Array.isArray(families) ? families.join(", ") : families,
|
|
2657
|
+
...fontFeatureSettings === undefined ? {} : {
|
|
2658
|
+
"font-feature-settings": fontFeatureSettings
|
|
2659
|
+
}
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
}, {
|
|
2663
|
+
values: theme("fontFamily"),
|
|
2664
|
+
type: [
|
|
2665
|
+
"lookup",
|
|
2666
|
+
"generic-name",
|
|
2667
|
+
"family-name"
|
|
2653
2668
|
]
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
type: [
|
|
2657
|
-
"lookup",
|
|
2658
|
-
"generic-name",
|
|
2659
|
-
"family-name"
|
|
2660
|
-
]
|
|
2661
|
-
}),
|
|
2669
|
+
});
|
|
2670
|
+
},
|
|
2662
2671
|
fontSize: ({ matchUtilities , theme })=>{
|
|
2663
2672
|
matchUtilities({
|
|
2664
2673
|
text: (value)=>{
|
package/lib/css/preflight.css
CHANGED
|
@@ -315,6 +315,22 @@ textarea::placeholder {
|
|
|
315
315
|
color: theme('colors.gray.400', #9ca3af); /* 2 */
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
+
/*
|
|
319
|
+
Set the default cursor for buttons.
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
button,
|
|
323
|
+
[role="button"] {
|
|
324
|
+
cursor: pointer;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/*
|
|
328
|
+
Make sure disabled buttons don't get the pointer cursor.
|
|
329
|
+
*/
|
|
330
|
+
:disabled {
|
|
331
|
+
cursor: default;
|
|
332
|
+
}
|
|
333
|
+
|
|
318
334
|
/*
|
|
319
335
|
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
320
336
|
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
@@ -436,6 +436,11 @@ function processApply(root, context, localCache) {
|
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
+
// It could be that the node we were inserted was removed because the class didn't match
|
|
440
|
+
// If that was the *only* rule in the parent, then we have nothing add so we skip it
|
|
441
|
+
if (!root1.nodes[0]) {
|
|
442
|
+
continue;
|
|
443
|
+
}
|
|
439
444
|
// Insert it
|
|
440
445
|
siblings.push([
|
|
441
446
|
// Ensure that when we are sorting, that we take the layer order into account
|
package/lib/lib/generateRules.js
CHANGED
|
@@ -180,7 +180,6 @@ function applyVariant(variant, matches, context) {
|
|
|
180
180
|
return matches;
|
|
181
181
|
}
|
|
182
182
|
let args;
|
|
183
|
-
let isArbitraryVariant = false;
|
|
184
183
|
// Find partial arbitrary variants
|
|
185
184
|
if (variant.endsWith("]") && !variant.startsWith("[")) {
|
|
186
185
|
args = variant.slice(variant.lastIndexOf("[") + 1, -1);
|
|
@@ -192,7 +191,6 @@ function applyVariant(variant, matches, context) {
|
|
|
192
191
|
if (!(0, _setupContextUtils.isValidVariantFormatString)(selector)) {
|
|
193
192
|
return [];
|
|
194
193
|
}
|
|
195
|
-
isArbitraryVariant = true;
|
|
196
194
|
let fn = (0, _setupContextUtils.parseVariant)(selector);
|
|
197
195
|
let sort = Array.from(context.variantOrder.values()).pop() << 1n;
|
|
198
196
|
context.variantMap.set(variant, [
|
|
@@ -341,7 +339,7 @@ function applyVariant(variant, matches, context) {
|
|
|
341
339
|
...meta,
|
|
342
340
|
sort: variantSort | meta.sort,
|
|
343
341
|
collectedFormats: ((_collectedFormats = meta.collectedFormats) !== null && _collectedFormats !== void 0 ? _collectedFormats : []).concat(collectedFormats),
|
|
344
|
-
isArbitraryVariant
|
|
342
|
+
isArbitraryVariant: isArbitraryValue(variant)
|
|
345
343
|
},
|
|
346
344
|
clone.nodes[0],
|
|
347
345
|
];
|
|
@@ -111,7 +111,9 @@ function resolvedChangedContent(context, candidateFiles, fileModifiedMap) {
|
|
|
111
111
|
function resolveChangedFiles(candidateFiles, fileModifiedMap) {
|
|
112
112
|
let changedFiles = new Set();
|
|
113
113
|
_sharedState.env.DEBUG && console.time("Finding changed files");
|
|
114
|
-
let files = _fastGlob.default.sync(candidateFiles
|
|
114
|
+
let files = _fastGlob.default.sync(candidateFiles, {
|
|
115
|
+
absolute: true
|
|
116
|
+
});
|
|
115
117
|
for (let file of files){
|
|
116
118
|
let prevModified = fileModifiedMap.has(file) ? fileModifiedMap.get(file) : -Infinity;
|
|
117
119
|
let modified = _fs.default.statSync(file).mtimeMs;
|
|
@@ -160,7 +160,7 @@ function resolveFunctionKeys(object) {
|
|
|
160
160
|
let val = object;
|
|
161
161
|
while(val !== undefined && val !== null && index < path.length){
|
|
162
162
|
val = val[path[index++]];
|
|
163
|
-
let shouldResolveAsFn = isFunction(val) && (path.alpha === undefined || index
|
|
163
|
+
let shouldResolveAsFn = isFunction(val) && (path.alpha === undefined || index <= path.length - 1);
|
|
164
164
|
val = shouldResolveAsFn ? val(resolvePath, configUtils) : val;
|
|
165
165
|
}
|
|
166
166
|
if (val !== undefined) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss",
|
|
3
|
-
"version": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.c7f627d",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@swc/core": "^1.2.218",
|
|
47
47
|
"@swc/jest": "^0.2.22",
|
|
48
48
|
"@swc/register": "^0.1.10",
|
|
49
|
-
"autoprefixer": "^10.4.
|
|
49
|
+
"autoprefixer": "^10.4.8",
|
|
50
50
|
"cssnano": "^5.1.12",
|
|
51
51
|
"esbuild": "^0.14.48",
|
|
52
52
|
"eslint": "^8.20.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"jest": "^28.1.3",
|
|
56
56
|
"jest-diff": "^28.1.3",
|
|
57
57
|
"prettier": "^2.7.1",
|
|
58
|
-
"prettier-plugin-tailwindcss": "^0.1.
|
|
58
|
+
"prettier-plugin-tailwindcss": "^0.1.13",
|
|
59
59
|
"rimraf": "^3.0.0",
|
|
60
60
|
"source-map-js": "^1.0.2"
|
|
61
61
|
},
|