@ng-native/tailwind 0.26.1 → 0.27.0
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/flatten.cjs +2 -2
- package/native.css +3 -0
- package/package.json +3 -3
- package/shared.css +4 -3
- package/tailwind-3-preset.cjs +4 -1
package/flatten.cjs
CHANGED
|
@@ -828,7 +828,7 @@ const STACKED = new RegExp(
|
|
|
828
828
|
* Tailwind 3's spelling of the same thing, `.dark .platform-ios .x`, which has no `:is()`. Only
|
|
829
829
|
* the preset's own ancestor classes, so a selector an app wrote is never rewritten.
|
|
830
830
|
*/
|
|
831
|
-
const ANCESTOR = String.raw`\.(?:dark|platform-(?:ios|android|web|macos))`;
|
|
831
|
+
const ANCESTOR = String.raw`\.(?:dark|platform-(?:ios|android|web|macos|linux))`;
|
|
832
832
|
const STACKED_PLAIN_ONE = new RegExp(
|
|
833
833
|
String.raw`^\s*(${ANCESTOR})\s+(${ANCESTOR})\s+([^\s].*?)\s*$`,
|
|
834
834
|
);
|
|
@@ -849,7 +849,7 @@ function unprefixAncestors(css) {
|
|
|
849
849
|
if (!recorded) return css;
|
|
850
850
|
const prefix = JSON.parse(`"${recorded[1]}"`).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
851
851
|
const prefixed = new RegExp(
|
|
852
|
-
String.raw`\.${prefix}(dark|platform-(?:ios|android|web|macos))(?![\w-]|\\)`,
|
|
852
|
+
String.raw`\.${prefix}(dark|platform-(?:ios|android|web|macos|linux))(?![\w-]|\\)`,
|
|
853
853
|
'g',
|
|
854
854
|
);
|
|
855
855
|
return css.replace(PREFIX_RECORD, '').replace(prefixed, '.$1');
|
package/native.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-native/tailwind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Tailwind CSS preset for Angular Native: Tailwind 4 and Tailwind 3, on native and on the web.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"type": "commonjs",
|
|
18
18
|
"main": "flatten.cjs",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ng-native/metro": "0.
|
|
20
|
+
"@ng-native/metro": "0.27.0",
|
|
21
21
|
"lightningcss": "^1.30.2"
|
|
22
22
|
},
|
|
23
23
|
"nx": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"url": "https://github.com/ng-native/ng-native/issues"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@ng-native/metro": "0.
|
|
35
|
+
"@ng-native/metro": "0.27.0",
|
|
36
36
|
"@tailwindcss/cli": "^4.3.3",
|
|
37
37
|
"tailwindcss": "^3.4.1 || ^4.3.3"
|
|
38
38
|
},
|
package/shared.css
CHANGED
|
@@ -32,10 +32,11 @@
|
|
|
32
32
|
@custom-variant android (.platform-android &);
|
|
33
33
|
@custom-variant web (.platform-web &);
|
|
34
34
|
@custom-variant macos (.platform-macos &);
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
@custom-variant linux (.platform-linux &);
|
|
36
|
+
/** A desktop OS: macOS or Linux. */
|
|
37
|
+
@custom-variant desktop (.platform-macos &, .platform-linux &);
|
|
37
38
|
/** Any native OS, for a rule that is about not being a browser: a desktop counts. */
|
|
38
|
-
@custom-variant native (.platform-ios &, .platform-android &, .platform-macos &);
|
|
39
|
+
@custom-variant native (.platform-ios &, .platform-android &, .platform-macos &, .platform-linux &);
|
|
39
40
|
|
|
40
41
|
/*
|
|
41
42
|
* `disabled:` follows the state attribute, not the pseudo-class.
|
package/tailwind-3-preset.cjs
CHANGED
|
@@ -109,11 +109,13 @@ function presetPlugin(
|
|
|
109
109
|
addVariant('android', beneath(platform, 'platform-android'));
|
|
110
110
|
addVariant('web', beneath(platform, 'platform-web'));
|
|
111
111
|
addVariant('macos', beneath(platform, 'platform-macos'));
|
|
112
|
-
addVariant('
|
|
112
|
+
addVariant('linux', beneath(platform, 'platform-linux'));
|
|
113
|
+
addVariant('desktop', [beneath(platform, 'platform-macos'), beneath(platform, 'platform-linux')]);
|
|
113
114
|
addVariant('native', [
|
|
114
115
|
beneath(platform, 'platform-ios'),
|
|
115
116
|
beneath(platform, 'platform-android'),
|
|
116
117
|
beneath(platform, 'platform-macos'),
|
|
118
|
+
beneath(platform, 'platform-linux'),
|
|
117
119
|
]);
|
|
118
120
|
if (platform === 'web') addBase(WEB_BASE);
|
|
119
121
|
else if (config('prefix')) {
|
|
@@ -178,6 +180,7 @@ function presetPlugin(
|
|
|
178
180
|
'.platform-ios .font-mono': { 'font-family': 'Menlo' },
|
|
179
181
|
'.platform-android .font-mono': { 'font-family': 'monospace' },
|
|
180
182
|
'.platform-macos .font-mono': { 'font-family': 'Menlo' },
|
|
183
|
+
'.platform-linux .font-mono': { 'font-family': 'monospace' },
|
|
181
184
|
});
|
|
182
185
|
}
|
|
183
186
|
}
|