@tamagui/core 1.84.2 → 1.85.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/cjs/helpers/getBoundingClientRect.js.map +1 -1
- package/dist/cjs/helpers/getBoundingClientRect.native.js.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +2 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/helpers/getBoundingClientRect.js.map +1 -1
- package/dist/esm/helpers/getBoundingClientRect.native.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/native.js +33 -25
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +20 -16
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
- package/src/helpers/getBoundingClientRect.tsx +1 -1
- package/src/index.tsx +15 -15
- package/types/helpers/getBoundingClientRect.d.ts +1 -1
- package/types/helpers/getBoundingClientRect.d.ts.map +1 -1
- package/types/index.d.ts +8 -12
- package/types/index.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/getBoundingClientRect.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,wBAAwB,CAAC,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,wBAAwB,CAAC,SAAkD;AAAxF;AACE,MAAI,GAAC,QAAQ,KAAK,aAAa;AAC/B,YAAO,UAAK,0BAAL;AACT;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/getBoundingClientRect.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,wBAAwB,CAAC,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,wBAAwB,CAAC,SAAkD;AAAxF;AACE,MAAI,GAAC,QAAQ,KAAK,aAAa;AAC/B,YAAO,UAAK,0BAAL;AACT;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -22,7 +22,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
22
22
|
var import_react_native_use_responder_events = require("@tamagui/react-native-use-responder-events"), import_web = require("@tamagui/web"), import_react = require("react"), import_createOptimizedView = require("./createOptimizedView"), import_getBaseViews = require("./getBaseViews"), import_useElementLayout = require("./hooks/useElementLayout"), import_usePlatformMethods = require("./hooks/usePlatformMethods"), import_Pressability = require("./vendor/Pressability");
|
|
23
23
|
__reExport(src_exports, require("@tamagui/web"), module.exports);
|
|
24
24
|
__reExport(src_exports, require("./reactNativeTypes"), module.exports);
|
|
25
|
-
const
|
|
25
|
+
const baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
26
26
|
(0, import_web.setupHooks)({
|
|
27
27
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
28
28
|
usePropsTransform(elementType, propsIn, hostRef) {
|
|
@@ -80,6 +80,7 @@ const View = import_web.View, Stack = import_web.Stack, Text = import_web.Text,
|
|
|
80
80
|
useEvents(viewProps, events, { pseudos }, setStateShallow, staticConfig) {
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
+
const View = import_web.View, Stack = import_web.Stack, Text = import_web.Text;
|
|
83
84
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
85
|
0 && (module.exports = {
|
|
85
86
|
Stack,
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
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AAU,KAAK,OAAO,IAAI;AAClC,MAAI,YAAY,SACd,UAAU,WAAW,WAEnB,QACF,UAAU,MAAM,MAEd,OAAO,UAAW,aACpB,UAAU,SAAS,OAAO,OAAO,CAAC,MAAM,MAAM,IAAI,MAAM,KAAK;AAAA,IAEjE;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,UAAU,WAAW,QAAQ,EAAE,QAAQ,GAAG,iBAAiB,cAAc;AAAA,EA0DzE;AAwBF,CAAC;AAQM,MAAM,OAAO,WAAAA,MACP,QAAQ,WAAAC,OACR,OAAO,WAAAC;",
|
|
5
5
|
"names": ["WebView", "WebStack", "WebText"]
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -23,7 +23,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
23
23
|
var import_react_native_use_responder_events = require("@tamagui/react-native-use-responder-events"), import_web = require("@tamagui/web"), import_react = require("react"), import_createOptimizedView = require("./createOptimizedView"), import_getBaseViews = require("./getBaseViews"), import_useElementLayout = require("./hooks/useElementLayout"), import_usePlatformMethods = require("./hooks/usePlatformMethods"), import_Pressability = require("./vendor/Pressability");
|
|
24
24
|
__reExport(src_exports, require("@tamagui/web"), module.exports);
|
|
25
25
|
__reExport(src_exports, require("./reactNativeTypes"), module.exports);
|
|
26
|
-
const
|
|
26
|
+
const baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
27
27
|
(0, import_web.setupHooks)({
|
|
28
28
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
29
29
|
usePropsTransform(elementType, propsIn, hostRef) {
|
|
@@ -112,7 +112,7 @@ const View = import_web.View, Stack = import_web.Stack, Text = import_web.Text,
|
|
|
112
112
|
});
|
|
113
113
|
const dontComposePressabilityKeys = {
|
|
114
114
|
onClick: !0
|
|
115
|
-
};
|
|
115
|
+
}, View = import_web.View, Stack = import_web.Stack, Text = import_web.Text;
|
|
116
116
|
// Annotate the CommonJS export names for ESM import in node:
|
|
117
117
|
0 && (module.exports = {
|
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gBAAgB,UAAU;AAE5B,mBAAO,gDAAoB,UAAU,WAAW,SAAS;AAG3D,UAAI,QAAQ,IAAI,iCACV,gBAAgB,UAAU;AAE5B,yBAAU,WAAW,cACd,4BAAc,WAAW,SAAS;AAAA;AAAA,EAG/C;AAEJ,CAAC;AAED,MAAM,8BAA8B;AAAA,EAClC,SAAS;AACX,GAIa,OAAO,WAAAA,MACP,QAAQ,WAAAC,OACR,OAAO,WAAAC;",
|
|
5
5
|
"names": ["WebView", "WebStack", "WebText"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/getBoundingClientRect.tsx"],
|
|
4
|
-
"mappings": "AAAO,MAAM,wBAAwB,CAAC,
|
|
4
|
+
"mappings": "AAAO,MAAM,wBAAwB,CAAC,SAAkD;AACtF,MAAI,GAAC,QAAQ,KAAK,aAAa;AAC/B,WAAO,KAAK,wBAAwB;AACtC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/getBoundingClientRect.tsx"],
|
|
4
|
-
"mappings": "AAAO,MAAM,wBAAwB,CAAC,
|
|
4
|
+
"mappings": "AAAO,MAAM,wBAAwB,CAAC,SAAkD;AACtF,MAAI,GAAC,QAAQ,KAAK,aAAa;AAC/B,WAAO,KAAK,wBAAwB;AACtC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { usePlatformMethods } from "./hooks/usePlatformMethods";
|
|
|
13
13
|
import "./vendor/Pressability";
|
|
14
14
|
export * from "@tamagui/web";
|
|
15
15
|
export * from "./reactNativeTypes";
|
|
16
|
-
const
|
|
16
|
+
const baseViews = getBaseViews();
|
|
17
17
|
setupHooks({
|
|
18
18
|
getBaseViews,
|
|
19
19
|
usePropsTransform(elementType, propsIn, hostRef) {
|
|
@@ -71,6 +71,7 @@ setupHooks({
|
|
|
71
71
|
useEvents(viewProps, events, { pseudos }, setStateShallow, staticConfig) {
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
+
const View = WebView, Stack = WebStack, Text = WebText;
|
|
74
75
|
export {
|
|
75
76
|
Stack,
|
|
76
77
|
Text,
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,0BAA0B;AAUnC;AAAA,EACE,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER;AAAA,OACK;AACP,OAAyC;AAEzC,OAAoC;AACpC,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AAEnC,OAAgC;
|
|
4
|
+
"mappings": "AAAA,SAAS,0BAA0B;AAUnC;AAAA,EACE,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER;AAAA,OACK;AACP,OAAyC;AAEzC,OAAoC;AACpC,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AAEnC,OAAgC;AAqBhC,cAAc;AAGd,cAAc;AAEd,MAAM,YAAY,aAAa;AAI/B,WAAW;AAAA,EACT;AAAA,EAEA,kBAAkB,aAAa,SAAS,SAAS;AAE/C,UAAM;AAAA;AAAA,MAEJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MAGA;AAAA,MACA;AAAA;AAAA,MAGA;AAAA,MACA;AAAA,MAEA;AAAA,MACA;AAAA,MAEA,GAAG;AAAA,IACL,IAAI;AAyBJ,QAvBA,mBAAmB,OAA6B,GAChD,iBAAiB,SAA+B,QAAe,GAC/D,mBAAmB,SAAS;AAAA,MAC1B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAQ,GAIJ,UAAU,QAAQ,WAAW;AAC/B,YAAM,EAAE,UAAU,KAAK,OAAO,IAAI;AAClC,MAAI,YAAY,SACd,UAAU,WAAW,WAEnB,QACF,UAAU,MAAM,MAEd,OAAO,UAAW,aACpB,UAAU,SAAS,OAAO,OAAO,CAAC,MAAM,MAAM,IAAI,MAAM,KAAK;AAAA,IAEjE;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,UAAU,WAAW,QAAQ,EAAE,QAAQ,GAAG,iBAAiB,cAAc;AAAA,EA0DzE;AAwBF,CAAC;AAQM,MAAM,OAAO,SACP,QAAQ,UACR,OAAO;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -14,7 +14,7 @@ import { usePlatformMethods } from "./hooks/usePlatformMethods";
|
|
|
14
14
|
import { usePressability } from "./vendor/Pressability";
|
|
15
15
|
export * from "@tamagui/web";
|
|
16
16
|
export * from "./reactNativeTypes";
|
|
17
|
-
const
|
|
17
|
+
const baseViews = getBaseViews();
|
|
18
18
|
setupHooks({
|
|
19
19
|
getBaseViews,
|
|
20
20
|
usePropsTransform(elementType, propsIn, hostRef) {
|
|
@@ -103,7 +103,7 @@ setupHooks({
|
|
|
103
103
|
});
|
|
104
104
|
const dontComposePressabilityKeys = {
|
|
105
105
|
onClick: !0
|
|
106
|
-
};
|
|
106
|
+
}, View = WebView, Stack = WebStack, Text = WebText;
|
|
107
107
|
export {
|
|
108
108
|
Stack,
|
|
109
109
|
Text,
|
|
@@ -1,6 +1,6 @@
|
|
|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AAI,aAAa,QAK7B;AAAA,UAAI,gBAAgB,UAAU;AAE5B,eAAO,oBAAoB,UAAU,WAAW,SAAS;AAG3D,UAAI,QAAQ,IAAI,iCACV,gBAAgB,UAAU;AAE5B,yBAAU,WAAW,UACd,cAAc,WAAW,SAAS;AAAA;AAAA,EAG/C;AAEJ,CAAC;AAED,MAAM,8BAA8B;AAAA,EAClC,SAAS;AACX,GAIa,OAAO,SACP,QAAQ,UACR,OAAO;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/native.js
CHANGED
|
@@ -61,8 +61,8 @@ var require_utils_native = __commonJS({
|
|
|
61
61
|
if (domEvent.type === "selectionchange") {
|
|
62
62
|
let target = (_a = window.getSelection()) == null ? void 0 : _a.anchorNode;
|
|
63
63
|
return composedPathFallback(target);
|
|
64
|
-
}
|
|
65
|
-
|
|
64
|
+
}
|
|
65
|
+
return domEvent.composedPath != null ? domEvent.composedPath() : composedPathFallback(domEvent.target);
|
|
66
66
|
}
|
|
67
67
|
function composedPathFallback(target) {
|
|
68
68
|
let path = [];
|
|
@@ -552,7 +552,7 @@ var require_ResponderSystem_native = __commonJS({
|
|
|
552
552
|
function findWantsResponder(eventPaths, domEvent, responderEvent) {
|
|
553
553
|
let shouldSetCallbacks = shouldSetResponderEvents[domEvent.type];
|
|
554
554
|
if (shouldSetCallbacks != null) {
|
|
555
|
-
let { idPath, nodePath } = eventPaths, shouldSetCallbackCaptureName = shouldSetCallbacks[0], shouldSetCallbackBubbleName = shouldSetCallbacks[1], { bubbles } = shouldSetCallbacks[2], check =
|
|
555
|
+
let { idPath, nodePath } = eventPaths, shouldSetCallbackCaptureName = shouldSetCallbacks[0], shouldSetCallbackBubbleName = shouldSetCallbacks[1], { bubbles } = shouldSetCallbacks[2], check = (id, node, callbackName) => {
|
|
556
556
|
let shouldSetCallback = getResponderConfig(id)[callbackName];
|
|
557
557
|
if (shouldSetCallback != null && (responderEvent.currentTarget = node, shouldSetCallback(responderEvent) === !0)) {
|
|
558
558
|
let prunedIdPath = idPath.slice(idPath.indexOf(id));
|
|
@@ -788,7 +788,7 @@ var require_composeEventHandlers_native = __commonJS({
|
|
|
788
788
|
});
|
|
789
789
|
module2.exports = __toCommonJS2(composeEventHandlers_exports);
|
|
790
790
|
function composeEventHandlers2(og, next, { checkDefaultPrevented = !0 } = {}) {
|
|
791
|
-
return !og || !next ? next || og || void 0 :
|
|
791
|
+
return !og || !next ? next || og || void 0 : (event) => {
|
|
792
792
|
if (og == null || og(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) || // @ts-ignore
|
|
793
793
|
"defaultPrevented" in event && !event.defaultPrevented)
|
|
794
794
|
return next == null ? void 0 : next(event);
|
|
@@ -1170,7 +1170,7 @@ var require_withStaticProperties_native = __commonJS({
|
|
|
1170
1170
|
withStaticProperties: () => withStaticProperties
|
|
1171
1171
|
});
|
|
1172
1172
|
module2.exports = __toCommonJS2(withStaticProperties_exports);
|
|
1173
|
-
var import_react3 = require("react"), Decorated = Symbol(), withStaticProperties =
|
|
1173
|
+
var import_react3 = require("react"), Decorated = Symbol(), withStaticProperties = (component, staticProps) => {
|
|
1174
1174
|
let next = (() => {
|
|
1175
1175
|
if (component[Decorated]) {
|
|
1176
1176
|
let _ = (0, import_react3.forwardRef)(
|
|
@@ -2202,14 +2202,14 @@ var require_accessibilityDirectMap_native = __commonJS({
|
|
|
2202
2202
|
return to;
|
|
2203
2203
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), accessibilityDirectMap_native_exports = {};
|
|
2204
2204
|
__export2(accessibilityDirectMap_native_exports, {
|
|
2205
|
-
accessibilityDirectMap: () =>
|
|
2205
|
+
accessibilityDirectMap: () => accessibilityDirectMap,
|
|
2206
2206
|
accessibilityWebRoleToNativeRole: () => accessibilityWebRoleToNativeRole,
|
|
2207
2207
|
nativeAccessibilityState: () => nativeAccessibilityState,
|
|
2208
2208
|
nativeAccessibilityValue: () => nativeAccessibilityValue,
|
|
2209
2209
|
webToNativeAccessibilityDirectMap: () => webToNativeAccessibilityDirectMap
|
|
2210
2210
|
});
|
|
2211
2211
|
module2.exports = __toCommonJS2(accessibilityDirectMap_native_exports);
|
|
2212
|
-
var
|
|
2212
|
+
var accessibilityDirectMap = {}, webToNativeAccessibilityDirectMap = {
|
|
2213
2213
|
"aria-label": "accessibilityLabel",
|
|
2214
2214
|
"aria-labelledby": "accessibilityLabelledBy",
|
|
2215
2215
|
"aria-live": "accessibilityLiveRegion",
|
|
@@ -2953,7 +2953,7 @@ var require_normalizeValueWithProperty_native = __commonJS({
|
|
|
2953
2953
|
return;
|
|
2954
2954
|
}
|
|
2955
2955
|
let cssVal = cssRule.replace(/.*:/, "").replace(/;.*/, "").trim(), res;
|
|
2956
|
-
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
|
|
2956
|
+
return cssVal.startsWith("var(") ? res = cssVal : import_helpers.stylePropsUnitless[key] ? res = +cssVal : cssVal.endsWith("px") ? res = +cssVal.replace("px", "") : res = cssVal, rcache[cssRule] = res, process.env.NODE_ENV === "development" && typeof res == "number" && Number.isNaN(res) && console.info("Tamagui invalid parsed value, NaN:", {
|
|
2957
2957
|
res,
|
|
2958
2958
|
cssVal,
|
|
2959
2959
|
cssRule,
|
|
@@ -3306,9 +3306,9 @@ var require_propMapper_native = __commonJS({
|
|
|
3306
3306
|
}
|
|
3307
3307
|
}) : styleStateIn, { conf, styleProps, fontFamily, staticConfig } = styleState, { variants } = staticConfig;
|
|
3308
3308
|
if (process.env.NODE_ENV === "development" && fontFamily && fontFamily[0] === "$" && !(fontFamily in conf.fontsParsed) && console.warn(
|
|
3309
|
-
`Warning: no fontFamily "${fontFamily}" found in config: ${Object.keys(
|
|
3310
|
-
|
|
3311
|
-
)}`
|
|
3309
|
+
`Warning: no fontFamily "${fontFamily}" found in config: ${Object.keys(
|
|
3310
|
+
conf.fontsParsed
|
|
3311
|
+
).join(", ")}`
|
|
3312
3312
|
), !styleProps.noExpand && variants && key in variants) {
|
|
3313
3313
|
styleState.curProps[key] = value;
|
|
3314
3314
|
let variantValue = resolveVariants(key, value, styleProps, styleState, "");
|
|
@@ -3588,7 +3588,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3588
3588
|
let nativeA11yProp = import_accessibilityDirectMap.webToNativeAccessibilityDirectMap[keyInit];
|
|
3589
3589
|
keyInit === "aria-hidden" && (viewProps["aria-hidden"] = valInit), viewProps[nativeA11yProp] = valInit;
|
|
3590
3590
|
continue;
|
|
3591
|
-
}
|
|
3591
|
+
}
|
|
3592
|
+
if (import_accessibilityDirectMap.nativeAccessibilityValue[keyInit]) {
|
|
3592
3593
|
let field = import_accessibilityDirectMap.nativeAccessibilityValue[keyInit];
|
|
3593
3594
|
viewProps.accessibilityValue ? viewProps.accessibilityValue[field] = valInit : viewProps.accessibilityValue = {
|
|
3594
3595
|
[field]: valInit
|
|
@@ -3611,7 +3612,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3611
3612
|
mergeStylePropIntoStyle(styleState, valInit);
|
|
3612
3613
|
continue;
|
|
3613
3614
|
}
|
|
3614
|
-
if (0
|
|
3615
|
+
if (0)
|
|
3615
3616
|
switch (keyInit) {
|
|
3616
3617
|
case "accessibilityRole":
|
|
3617
3618
|
case "accessibilityLabelledBy":
|
|
@@ -3684,10 +3685,7 @@ current`, {
|
|
|
3684
3685
|
val,
|
|
3685
3686
|
styleProps.noClassNames
|
|
3686
3687
|
), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
|
|
3687
|
-
if (
|
|
3688
|
-
`No animation prop given to component ${staticConfig.componentName || ""} ${props["data-at"] || ""} with enterStyle / exitStyle, these styles will be ignored`,
|
|
3689
|
-
{ props }
|
|
3690
|
-
), !descriptor || isExit && !styleProps.isExiting)
|
|
3688
|
+
if (!descriptor || isExit && !styleProps.isExiting)
|
|
3691
3689
|
continue;
|
|
3692
3690
|
if ((!shouldDoClasses || IS_STATIC) && (pseudos ||= {}, pseudos[key] ||= {}, IS_STATIC)) {
|
|
3693
3691
|
Object.assign(pseudos[key], pseudoStyleObject);
|
|
@@ -3733,7 +3731,8 @@ current`, {
|
|
|
3733
3731
|
}
|
|
3734
3732
|
}
|
|
3735
3733
|
continue;
|
|
3736
|
-
}
|
|
3734
|
+
}
|
|
3735
|
+
if (isMedia) {
|
|
3737
3736
|
if (!val)
|
|
3738
3737
|
continue;
|
|
3739
3738
|
if (isMedia === "platform") {
|
|
@@ -4420,7 +4419,14 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
4420
4419
|
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme(
|
|
4421
4420
|
(name, manager, forced) => {
|
|
4422
4421
|
let force = forced || (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"], shouldTryUpdate = force ?? !!(keys != null && keys.length || isNewTheme);
|
|
4423
|
-
process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F538} onChange", themeManager.id, {
|
|
4422
|
+
process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F538} onChange", themeManager.id, {
|
|
4423
|
+
force,
|
|
4424
|
+
shouldTryUpdate,
|
|
4425
|
+
props,
|
|
4426
|
+
name,
|
|
4427
|
+
manager,
|
|
4428
|
+
keys
|
|
4429
|
+
}), shouldTryUpdate && setThemeState((prev) => createState(prev, force));
|
|
4424
4430
|
},
|
|
4425
4431
|
themeManager.id
|
|
4426
4432
|
);
|
|
@@ -4578,7 +4584,9 @@ var require_Theme_native = __commonJS({
|
|
|
4578
4584
|
function getThemedChildren(themeState, children, props, isRoot = !1) {
|
|
4579
4585
|
let { themeManager, isNewTheme } = themeState;
|
|
4580
4586
|
if (!themeManager)
|
|
4581
|
-
throw new Error(
|
|
4587
|
+
throw new Error(
|
|
4588
|
+
process.env.NODE_ENV === "development" ? "\u274C No theme found, either incorrect name, potential duplicate tamagui deps, or TamaguiProvider not providing themes." : "\u274C"
|
|
4589
|
+
);
|
|
4582
4590
|
let { shallow, forceClassName } = props, hasEverThemed = (0, import_react3.useRef)(!1), shouldRenderChildrenWithTheme = isNewTheme || props.inverse || hasEverThemed.current || forceClassName || isRoot;
|
|
4583
4591
|
if (shouldRenderChildrenWithTheme && (hasEverThemed.current = !0), !shouldRenderChildrenWithTheme)
|
|
4584
4592
|
return children;
|
|
@@ -4875,7 +4883,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4875
4883
|
{}
|
|
4876
4884
|
);
|
|
4877
4885
|
process.env.NODE_ENV === "development" && time && time`stateref`;
|
|
4878
|
-
let hostRef = (0, import_react3.useRef)(null), animationsConfig = componentContext.animationDriver, useAnimations = animationsConfig == null ? void 0 : animationsConfig.useAnimations, hasAnimationProp = !!(
|
|
4886
|
+
let hostRef = (0, import_react3.useRef)(null), animationsConfig = componentContext.animationDriver, useAnimations = animationsConfig == null ? void 0 : animationsConfig.useAnimations, hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationsConfig == null ? void 0 : animationsConfig.supportsCSSVars, willBeAnimated = (() => {
|
|
4879
4887
|
if (import_constants3.isServer && !supportsCSSVars)
|
|
4880
4888
|
return !1;
|
|
4881
4889
|
let curState = stateRef.current;
|
|
@@ -5933,7 +5941,7 @@ ${runtimeStyles}`;
|
|
|
5933
5941
|
function getThemesDeduped(themes) {
|
|
5934
5942
|
let dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
5935
5943
|
for (let themeName in themes) {
|
|
5936
|
-
let darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
5944
|
+
let darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(Object.entries(rawTheme).sort((a, b) => a[0] > b[0] ? -1 : 1));
|
|
5937
5945
|
if (existing.has(key)) {
|
|
5938
5946
|
existing.get(key).names.push(themeName);
|
|
5939
5947
|
continue;
|
|
@@ -6033,7 +6041,7 @@ var require_setupReactNative_native = __commonJS({
|
|
|
6033
6041
|
});
|
|
6034
6042
|
module2.exports = __toCommonJS2(setupReactNative_exports);
|
|
6035
6043
|
function getReactNativeConfig(Component) {
|
|
6036
|
-
var _a, _b, _c;
|
|
6044
|
+
var _a, _b, _c, _d;
|
|
6037
6045
|
if (Component)
|
|
6038
6046
|
return (_a = Component.propTypes) != null && _a.onTextInput || (_b = Component.propTypes) != null && _b.onChangeText ? RNConfigs.TextInput : Component.getSizeWithHeaders ? RNConfigs.Image : (_c = Component.propTypes) != null && _c.textBreakStrategy ? RNConfigs.Text : RNConfigs.default;
|
|
6039
6047
|
}
|
|
@@ -7160,7 +7168,7 @@ var Pressability = require_fake_react_native().default, usePressability = (init_
|
|
|
7160
7168
|
|
|
7161
7169
|
// src/index.tsx
|
|
7162
7170
|
__reExport(src_exports, __toESM(require_index_native9()), module.exports);
|
|
7163
|
-
var
|
|
7171
|
+
var baseViews = getBaseViews();
|
|
7164
7172
|
(0, import_web.setupHooks)({
|
|
7165
7173
|
getBaseViews,
|
|
7166
7174
|
usePropsTransform(elementType, propsIn, hostRef) {
|
|
@@ -7249,7 +7257,7 @@ var View = import_web.View, Stack = import_web.Stack, Text = import_web.Text, ba
|
|
|
7249
7257
|
});
|
|
7250
7258
|
var dontComposePressabilityKeys = {
|
|
7251
7259
|
onClick: !0
|
|
7252
|
-
};
|
|
7260
|
+
}, View = import_web.View, Stack = import_web.Stack, Text = import_web.Text;
|
|
7253
7261
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7254
7262
|
0 && (module.exports = {
|
|
7255
7263
|
Stack,
|