tailwindcss 3.4.3 → 3.4.4
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 +11 -1
- package/lib/corePlugins.js +27 -10
- package/lib/util/pluginUtils.js +1 -1
- package/package.json +1 -1
- package/peers/index.js +2080 -1912
- package/src/corePlugins.js +37 -12
- package/src/util/pluginUtils.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
- Nothing yet!
|
|
11
11
|
|
|
12
|
+
## [3.4.4] - 2024-06-05
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Make it possible to use multiple `<alpha-value>` placeholders in a single color definition ([#13740](https://github.com/tailwindlabs/tailwindcss/pull/13740))
|
|
17
|
+
- Don't prefix classes in arbitrary values of `has-*`, `group-has-*`, and `peer-has-*` variants ([#13770](https://github.com/tailwindlabs/tailwindcss/pull/13770))
|
|
18
|
+
- Support negative values for `{col,row}-{start,end}` utilities ([#13781](https://github.com/tailwindlabs/tailwindcss/pull/13781))
|
|
19
|
+
- Update embedded browserslist database ([#13792](https://github.com/tailwindlabs/tailwindcss/pull/13792))
|
|
20
|
+
|
|
12
21
|
## [3.4.3] - 2024-03-27
|
|
13
22
|
|
|
14
23
|
### Fixed
|
|
@@ -2376,7 +2385,8 @@ No release notes
|
|
|
2376
2385
|
|
|
2377
2386
|
- Everything!
|
|
2378
2387
|
|
|
2379
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.
|
|
2388
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.4...HEAD
|
|
2389
|
+
[3.4.4]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.3...v3.4.4
|
|
2380
2390
|
[3.4.3]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.2...v3.4.3
|
|
2381
2391
|
[3.4.2]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.1...v3.4.2
|
|
2382
2392
|
[3.4.1]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.0...v3.4.1
|
package/lib/corePlugins.js
CHANGED
|
@@ -460,15 +460,24 @@ let variantPlugins = {
|
|
|
460
460
|
values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
|
|
461
461
|
});
|
|
462
462
|
},
|
|
463
|
-
hasVariants: ({ matchVariant })=>{
|
|
463
|
+
hasVariants: ({ matchVariant , prefix })=>{
|
|
464
464
|
matchVariant("has", (value)=>`&:has(${(0, _dataTypes.normalize)(value)})`, {
|
|
465
|
-
values: {}
|
|
465
|
+
values: {},
|
|
466
|
+
[_setupContextUtils.INTERNAL_FEATURES]: {
|
|
467
|
+
respectPrefix: false
|
|
468
|
+
}
|
|
466
469
|
});
|
|
467
|
-
matchVariant("group-has", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) &` : `:merge(.group):has(${(0, _dataTypes.normalize)(value)}) &`, {
|
|
468
|
-
values: {}
|
|
470
|
+
matchVariant("group-has", (value, { modifier })=>modifier ? `:merge(${prefix(".group")}\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) &` : `:merge(${prefix(".group")}):has(${(0, _dataTypes.normalize)(value)}) &`, {
|
|
471
|
+
values: {},
|
|
472
|
+
[_setupContextUtils.INTERNAL_FEATURES]: {
|
|
473
|
+
respectPrefix: false
|
|
474
|
+
}
|
|
469
475
|
});
|
|
470
|
-
matchVariant("peer-has", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) ~ &` : `:merge(.peer):has(${(0, _dataTypes.normalize)(value)}) ~ &`, {
|
|
471
|
-
values: {}
|
|
476
|
+
matchVariant("peer-has", (value, { modifier })=>modifier ? `:merge(${prefix(".peer")}\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) ~ &` : `:merge(${prefix(".peer")}):has(${(0, _dataTypes.normalize)(value)}) ~ &`, {
|
|
477
|
+
values: {},
|
|
478
|
+
[_setupContextUtils.INTERNAL_FEATURES]: {
|
|
479
|
+
respectPrefix: false
|
|
480
|
+
}
|
|
472
481
|
});
|
|
473
482
|
},
|
|
474
483
|
ariaVariants: ({ matchVariant , theme })=>{
|
|
@@ -794,7 +803,9 @@ let corePlugins = {
|
|
|
794
803
|
"gridColumnStart"
|
|
795
804
|
]
|
|
796
805
|
]
|
|
797
|
-
]
|
|
806
|
+
], {
|
|
807
|
+
supportsNegativeValues: true
|
|
808
|
+
}),
|
|
798
809
|
gridColumnEnd: (0, _createUtilityPlugin.default)("gridColumnEnd", [
|
|
799
810
|
[
|
|
800
811
|
"col-end",
|
|
@@ -802,7 +813,9 @@ let corePlugins = {
|
|
|
802
813
|
"gridColumnEnd"
|
|
803
814
|
]
|
|
804
815
|
]
|
|
805
|
-
]
|
|
816
|
+
], {
|
|
817
|
+
supportsNegativeValues: true
|
|
818
|
+
}),
|
|
806
819
|
gridRow: (0, _createUtilityPlugin.default)("gridRow", [
|
|
807
820
|
[
|
|
808
821
|
"row",
|
|
@@ -818,7 +831,9 @@ let corePlugins = {
|
|
|
818
831
|
"gridRowStart"
|
|
819
832
|
]
|
|
820
833
|
]
|
|
821
|
-
]
|
|
834
|
+
], {
|
|
835
|
+
supportsNegativeValues: true
|
|
836
|
+
}),
|
|
822
837
|
gridRowEnd: (0, _createUtilityPlugin.default)("gridRowEnd", [
|
|
823
838
|
[
|
|
824
839
|
"row-end",
|
|
@@ -826,7 +841,9 @@ let corePlugins = {
|
|
|
826
841
|
"gridRowEnd"
|
|
827
842
|
]
|
|
828
843
|
]
|
|
829
|
-
]
|
|
844
|
+
], {
|
|
845
|
+
supportsNegativeValues: true
|
|
846
|
+
}),
|
|
830
847
|
float: ({ addUtilities })=>{
|
|
831
848
|
addUtilities({
|
|
832
849
|
".float-start": {
|
package/lib/util/pluginUtils.js
CHANGED
|
@@ -129,7 +129,7 @@ function splitUtilityModifier(modifier) {
|
|
|
129
129
|
function parseColorFormat(value) {
|
|
130
130
|
if (typeof value === "string" && value.includes("<alpha-value>")) {
|
|
131
131
|
let oldValue = value;
|
|
132
|
-
return ({ opacityValue =1 })=>oldValue.replace(
|
|
132
|
+
return ({ opacityValue =1 })=>oldValue.replace(/<alpha-value>/g, opacityValue);
|
|
133
133
|
}
|
|
134
134
|
return value;
|
|
135
135
|
}
|