@tamagui/tailwind 3.0.0-beta.1161.1 → 3.0.0-beta.1173.1
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/package.json +14 -14
- package/src/candidate.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/tailwind",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1173.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nate Wienert"
|
|
@@ -65,21 +65,21 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@tailwindcss/node": "4.3.0",
|
|
67
67
|
"@tailwindcss/oxide": "4.3.0",
|
|
68
|
-
"@tamagui/constants": "3.0.0-beta.
|
|
69
|
-
"@tamagui/core": "3.0.0-beta.
|
|
70
|
-
"@tamagui/helpers": "3.0.0-beta.
|
|
71
|
-
"@tamagui/react-native-types": "3.0.0-beta.
|
|
72
|
-
"@tamagui/style-grammar": "3.0.0-beta.
|
|
73
|
-
"@tamagui/vite-plugin": "3.0.0-beta.
|
|
68
|
+
"@tamagui/constants": "3.0.0-beta.1173.1",
|
|
69
|
+
"@tamagui/core": "3.0.0-beta.1173.1",
|
|
70
|
+
"@tamagui/helpers": "3.0.0-beta.1173.1",
|
|
71
|
+
"@tamagui/react-native-types": "3.0.0-beta.1173.1",
|
|
72
|
+
"@tamagui/style-grammar": "3.0.0-beta.1173.1",
|
|
73
|
+
"@tamagui/vite-plugin": "3.0.0-beta.1173.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@tamagui/build": "3.0.0-beta.
|
|
77
|
-
"@tamagui/config": "3.0.0-beta.
|
|
78
|
-
"@tamagui/config-default": "3.0.0-beta.
|
|
79
|
-
"@tamagui/fake-react-native": "3.0.0-beta.
|
|
80
|
-
"@tamagui/react-native-web-lite": "3.0.0-beta.
|
|
81
|
-
"@tamagui/to-tailwind": "3.0.0-beta.
|
|
82
|
-
"@tamagui/web": "3.0.0-beta.
|
|
76
|
+
"@tamagui/build": "3.0.0-beta.1173.1",
|
|
77
|
+
"@tamagui/config": "3.0.0-beta.1173.1",
|
|
78
|
+
"@tamagui/config-default": "3.0.0-beta.1173.1",
|
|
79
|
+
"@tamagui/fake-react-native": "3.0.0-beta.1173.1",
|
|
80
|
+
"@tamagui/react-native-web-lite": "3.0.0-beta.1173.1",
|
|
81
|
+
"@tamagui/to-tailwind": "3.0.0-beta.1173.1",
|
|
82
|
+
"@tamagui/web": "3.0.0-beta.1173.1",
|
|
83
83
|
"react": "19.2.3",
|
|
84
84
|
"typescript": "~6.0.3",
|
|
85
85
|
"vite": "^8.2.2",
|
package/src/candidate.ts
CHANGED
|
@@ -129,7 +129,7 @@ function expansionProps(parsed: ParsedCandidate): readonly string[] | null {
|
|
|
129
129
|
/**
|
|
130
130
|
* Adapt a registry-parsed candidate into the ordinary props shared rendering consumes.
|
|
131
131
|
* Examples:
|
|
132
|
-
* "hover:bg-
|
|
132
|
+
* "hover:bg-blue-5" → backgroundColor + a `hover:blue-5` program
|
|
133
133
|
* "sm:p-4" → padding + an `sm:4` program
|
|
134
134
|
* "bg-[red]" → { key: "backgroundColor", value: "red" }
|
|
135
135
|
* "w-100" → { key: "width", value: 100 }
|
|
@@ -287,7 +287,7 @@ function tailwindClassToFlatProp(
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
// arbitrary values: p-[4px], w-[100px], rounded-[8px], min-h-[100vh], rotate-[-8deg],
|
|
290
|
-
// h-[calc(100%-2px)], bg-[var(--
|
|
290
|
+
// h-[calc(100%-2px)], bg-[var(--color-5)], bg-[#fff]. use the bracketed value directly as
|
|
291
291
|
// CSS — no scaling/token resolution. tailwind encodes spaces inside [] as underscores.
|
|
292
292
|
if (value.length > 2 && value[0] === '[' && value[value.length - 1] === ']') {
|
|
293
293
|
const inner = decodeArbitrary(value.slice(1, -1))
|