@tamagui/core 3.0.0-beta.1449.1 → 3.0.0-beta.1455.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/dist/native.cjs +6 -1
- package/dist/test.native.cjs +6 -1
- package/package.json +12 -12
package/dist/native.cjs
CHANGED
|
@@ -13469,6 +13469,7 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
|
|
|
13469
13469
|
var { _scopeId } = param, props = _objectWithoutProperties(param, _excluded$7);
|
|
13470
13470
|
var { ref, _expressions: _ignoredExpressions } = props, rest = _objectWithoutProperties(props, _excluded2$3);
|
|
13471
13471
|
var link = (0, react.useRef)(null);
|
|
13472
|
+
var [refused, setRefused] = (0, react.useState)(false);
|
|
13472
13473
|
var themeState = getThemeState(_scopeId);
|
|
13473
13474
|
var stateName = themeState === null || themeState === void 0 ? void 0 : themeState.name;
|
|
13474
13475
|
var theme = themeState === null || themeState === void 0 ? void 0 : themeState.theme;
|
|
@@ -13477,13 +13478,17 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
|
|
|
13477
13478
|
(_link_current = link.current) === null || _link_current === void 0 || _link_current.unlink();
|
|
13478
13479
|
link.current = null;
|
|
13479
13480
|
setRef(ref, host);
|
|
13480
|
-
if (host && stateName && theme)
|
|
13481
|
+
if (host && stateName && theme) {
|
|
13482
|
+
link.current = linkNativeStyleMapping(host, baseStyle, themeStyleKeys, _scopeId, stateName, theme);
|
|
13483
|
+
if (!link.current) setRefused(true);
|
|
13484
|
+
}
|
|
13481
13485
|
}, [
|
|
13482
13486
|
ref,
|
|
13483
13487
|
_scopeId,
|
|
13484
13488
|
stateName,
|
|
13485
13489
|
theme
|
|
13486
13490
|
]);
|
|
13491
|
+
if (refused) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Fallback, _objectSpread2({}, props));
|
|
13487
13492
|
var stateStyle = stateName && theme ? resolveNativeStyleMapping(themeStyleKeys, stateName, theme) : void 0;
|
|
13488
13493
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, _objectSpread2({
|
|
13489
13494
|
ref: hostRef,
|
package/dist/test.native.cjs
CHANGED
|
@@ -3735,6 +3735,7 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
|
|
|
3735
3735
|
var { _scopeId } = param, props = _objectWithoutProperties(param, _excluded$7);
|
|
3736
3736
|
var { ref, _expressions: _ignoredExpressions } = props, rest = _objectWithoutProperties(props, _excluded2$3);
|
|
3737
3737
|
var link = (0, react.useRef)(null);
|
|
3738
|
+
var [refused, setRefused] = (0, react.useState)(false);
|
|
3738
3739
|
var themeState = getThemeState(_scopeId);
|
|
3739
3740
|
var stateName = themeState === null || themeState === void 0 ? void 0 : themeState.name;
|
|
3740
3741
|
var theme = themeState === null || themeState === void 0 ? void 0 : themeState.theme;
|
|
@@ -3743,13 +3744,17 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
|
|
|
3743
3744
|
(_link_current = link.current) === null || _link_current === void 0 || _link_current.unlink();
|
|
3744
3745
|
link.current = null;
|
|
3745
3746
|
setRef(ref, host);
|
|
3746
|
-
if (host && stateName && theme)
|
|
3747
|
+
if (host && stateName && theme) {
|
|
3748
|
+
link.current = linkNativeStyleMapping(host, baseStyle, themeStyleKeys, _scopeId, stateName, theme);
|
|
3749
|
+
if (!link.current) setRefused(true);
|
|
3750
|
+
}
|
|
3747
3751
|
}, [
|
|
3748
3752
|
ref,
|
|
3749
3753
|
_scopeId,
|
|
3750
3754
|
stateName,
|
|
3751
3755
|
theme
|
|
3752
3756
|
]);
|
|
3757
|
+
if (refused) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Fallback, _objectSpread2({}, props));
|
|
3753
3758
|
var stateStyle = stateName && theme ? resolveNativeStyleMapping(themeStyleKeys, stateName, theme) : void 0;
|
|
3754
3759
|
if (globalThis.process.env.NODE_ENV === "development" && (!stateName || !theme)) throw new Error(`[@tamagui/core] native fast path cannot resolve theme ${JSON.stringify(stateName)}`);
|
|
3755
3760
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, _objectSpread2({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1455.1",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -137,19 +137,19 @@
|
|
|
137
137
|
"clean:build": "tamagui-build clean:build"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
|
-
"@tamagui/compose-refs": "3.0.0-beta.
|
|
141
|
-
"@tamagui/constants": "3.0.0-beta.
|
|
142
|
-
"@tamagui/helpers": "3.0.0-beta.
|
|
143
|
-
"@tamagui/react-native-media-driver": "3.0.0-beta.
|
|
144
|
-
"@tamagui/react-native-use-pressable": "3.0.0-beta.
|
|
145
|
-
"@tamagui/use-element-layout": "3.0.0-beta.
|
|
146
|
-
"@tamagui/use-event": "3.0.0-beta.
|
|
147
|
-
"@tamagui/web": "3.0.0-beta.
|
|
140
|
+
"@tamagui/compose-refs": "3.0.0-beta.1455.1",
|
|
141
|
+
"@tamagui/constants": "3.0.0-beta.1455.1",
|
|
142
|
+
"@tamagui/helpers": "3.0.0-beta.1455.1",
|
|
143
|
+
"@tamagui/react-native-media-driver": "3.0.0-beta.1455.1",
|
|
144
|
+
"@tamagui/react-native-use-pressable": "3.0.0-beta.1455.1",
|
|
145
|
+
"@tamagui/use-element-layout": "3.0.0-beta.1455.1",
|
|
146
|
+
"@tamagui/use-event": "3.0.0-beta.1455.1",
|
|
147
|
+
"@tamagui/web": "3.0.0-beta.1455.1"
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@tamagui/build": "3.0.0-beta.
|
|
151
|
-
"@tamagui/native-bundle": "3.0.0-beta.
|
|
152
|
-
"@tamagui/react-native-web-lite": "3.0.0-beta.
|
|
150
|
+
"@tamagui/build": "3.0.0-beta.1455.1",
|
|
151
|
+
"@tamagui/native-bundle": "3.0.0-beta.1455.1",
|
|
152
|
+
"@tamagui/react-native-web-lite": "3.0.0-beta.1455.1",
|
|
153
153
|
"@testing-library/react": "^16.1.0",
|
|
154
154
|
"csstype": "^3.0.10",
|
|
155
155
|
"react": "19.2.3",
|