@tamagui/toggle-group 2.5.0 → 2.5.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.
|
@@ -141,7 +141,7 @@ var Toggle = /* @__PURE__ */React.forwardRef(function Toggle2(props, forwardedRe
|
|
|
141
141
|
defaultActiveStyle: true
|
|
142
142
|
}),
|
|
143
143
|
...buttonProps,
|
|
144
|
-
// spread activeStyle
|
|
144
|
+
// spread activeStyle after buttonProps so it wins when active: a styled()
|
|
145
145
|
// variant (e.g. a resting `backgroundColor`) forwards that value as a plain
|
|
146
146
|
// prop into buttonProps, which would otherwise clobber the activeStyle merge
|
|
147
147
|
// on overlapping keys and leave the active item stuck at its resting style.
|
|
@@ -100,7 +100,7 @@ var Toggle = /* @__PURE__ */React.forwardRef(function Toggle2(props, forwardedRe
|
|
|
100
100
|
defaultActiveStyle: true
|
|
101
101
|
}),
|
|
102
102
|
...buttonProps,
|
|
103
|
-
// spread activeStyle
|
|
103
|
+
// spread activeStyle after buttonProps so it wins when active: a styled()
|
|
104
104
|
// variant (e.g. a resting `backgroundColor`) forwards that value as a plain
|
|
105
105
|
// prop into buttonProps, which would otherwise clobber the activeStyle merge
|
|
106
106
|
// on overlapping keys and leave the active item stuck at its resting style.
|
|
@@ -141,7 +141,7 @@ var Toggle = /* @__PURE__ */React.forwardRef(function Toggle2(props, forwardedRe
|
|
|
141
141
|
defaultActiveStyle: true
|
|
142
142
|
}),
|
|
143
143
|
...buttonProps,
|
|
144
|
-
// spread activeStyle
|
|
144
|
+
// spread activeStyle after buttonProps so it wins when active: a styled()
|
|
145
145
|
// variant (e.g. a resting `backgroundColor`) forwards that value as a plain
|
|
146
146
|
// prop into buttonProps, which would otherwise clobber the activeStyle merge
|
|
147
147
|
// on overlapping keys and leave the active item stuck at its resting style.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/toggle-group",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"clean:build": "tamagui-build clean:build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tamagui/constants": "2.5.
|
|
38
|
-
"@tamagui/create-context": "2.5.
|
|
39
|
-
"@tamagui/focusable": "2.5.
|
|
40
|
-
"@tamagui/get-token": "2.5.
|
|
41
|
-
"@tamagui/helpers": "2.5.
|
|
42
|
-
"@tamagui/helpers-tamagui": "2.5.
|
|
43
|
-
"@tamagui/roving-focus": "2.5.
|
|
44
|
-
"@tamagui/sizable-context": "2.5.
|
|
45
|
-
"@tamagui/stacks": "2.5.
|
|
46
|
-
"@tamagui/use-controllable-state": "2.5.
|
|
47
|
-
"@tamagui/use-direction": "2.5.
|
|
48
|
-
"@tamagui/font-size": "2.5.
|
|
49
|
-
"@tamagui/web": "2.5.
|
|
37
|
+
"@tamagui/constants": "2.5.1",
|
|
38
|
+
"@tamagui/create-context": "2.5.1",
|
|
39
|
+
"@tamagui/focusable": "2.5.1",
|
|
40
|
+
"@tamagui/get-token": "2.5.1",
|
|
41
|
+
"@tamagui/helpers": "2.5.1",
|
|
42
|
+
"@tamagui/helpers-tamagui": "2.5.1",
|
|
43
|
+
"@tamagui/roving-focus": "2.5.1",
|
|
44
|
+
"@tamagui/sizable-context": "2.5.1",
|
|
45
|
+
"@tamagui/stacks": "2.5.1",
|
|
46
|
+
"@tamagui/use-controllable-state": "2.5.1",
|
|
47
|
+
"@tamagui/use-direction": "2.5.1",
|
|
48
|
+
"@tamagui/font-size": "2.5.1",
|
|
49
|
+
"@tamagui/web": "2.5.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@tamagui/build": "2.5.
|
|
52
|
+
"@tamagui/build": "2.5.1",
|
|
53
53
|
"react": ">=19"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|