@tamagui/core 1.88.0 → 1.88.2
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/createOptimizedView.js +0 -4
- package/dist/cjs/getBaseViews.js +0 -4
- package/dist/cjs/helpers/getBoundingClientRect.js +1 -6
- package/dist/cjs/helpers/getBoundingClientRect.js.map +1 -1
- package/dist/cjs/helpers/getRect.js +0 -4
- package/dist/cjs/hooks/useElementLayout.js +3 -9
- package/dist/cjs/hooks/useElementLayout.js.map +1 -1
- package/dist/cjs/hooks/usePlatformMethods.js +0 -4
- package/dist/cjs/hooks/usePlatformMethods.native.js +2 -2
- package/dist/cjs/hooks/usePlatformMethods.native.js.map +1 -1
- package/dist/cjs/index.js +0 -8
- package/dist/cjs/inject-styles.js +0 -4
- package/dist/cjs/reactNativeTypes.js +0 -5
- package/dist/cjs/vendor/Pressability.js +0 -5
- package/dist/esm/createOptimizedView.native.js +38 -16
- package/dist/esm/createOptimizedView.native.js.map +1 -1
- package/dist/esm/getBaseViews.native.js +23 -2
- package/dist/esm/getBaseViews.native.js.map +1 -1
- package/dist/esm/helpers/getBoundingClientRect.native.js +25 -3
- package/dist/esm/helpers/getBoundingClientRect.native.js.map +1 -1
- package/dist/esm/helpers/getRect.native.js +25 -4
- package/dist/esm/helpers/getRect.native.js.map +1 -1
- package/dist/esm/hooks/useElementLayout.native.js +31 -9
- package/dist/esm/hooks/useElementLayout.native.js.map +1 -1
- package/dist/esm/hooks/usePlatformMethods.native.js +28 -9
- package/dist/esm/hooks/usePlatformMethods.native.js.map +1 -1
- package/dist/esm/index.native.js +40 -28
- package/dist/esm/index.native.js.map +2 -2
- package/dist/esm/inject-styles.native.js +23 -2
- package/dist/esm/inject-styles.native.js.map +1 -1
- package/dist/esm/reactNativeTypes.native.js +25 -3
- package/dist/esm/reactNativeTypes.native.js.map +1 -1
- package/dist/esm/vendor/Pressability.native.js +24 -2
- package/dist/esm/vendor/Pressability.native.js.map +1 -1
- package/dist/native.js +38 -36
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +36 -34
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/esm/index.native.js
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var src_exports = {};
|
|
17
|
+
__export(src_exports, {
|
|
18
|
+
Stack: () => Stack,
|
|
19
|
+
Text: () => Text,
|
|
20
|
+
View: () => View
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(src_exports);
|
|
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
|
+
__reExport(src_exports, require("@tamagui/web"), module.exports);
|
|
25
|
+
__reExport(src_exports, require("./reactNativeTypes"), module.exports);
|
|
26
|
+
const baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
27
|
+
(0, import_web.setupHooks)({
|
|
28
|
+
getBaseViews: import_getBaseViews.getBaseViews,
|
|
20
29
|
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
21
30
|
},
|
|
22
31
|
useEvents(viewProps, events, { pseudos }, setStateShallow, staticConfig) {
|
|
@@ -26,11 +35,11 @@ setupHooks({
|
|
|
26
35
|
onPressIn,
|
|
27
36
|
onPressOut: onPressOut || onPress
|
|
28
37
|
};
|
|
29
|
-
onPressOut && onPress && (inputEvents.onPressOut = composeEventHandlers(onPress, onPressOut)), Object.assign(viewProps, inputEvents);
|
|
38
|
+
onPressOut && onPress && (inputEvents.onPressOut = (0, import_web.composeEventHandlers)(onPress, onPressOut)), Object.assign(viewProps, inputEvents);
|
|
30
39
|
}
|
|
31
40
|
} else {
|
|
32
41
|
events && viewProps.hitSlop && (events.hitSlop = viewProps.hitSlop);
|
|
33
|
-
const pressability = usePressability(events);
|
|
42
|
+
const pressability = (0, import_Pressability.usePressability)(events);
|
|
34
43
|
if (events && (process.env.NODE_ENV === "development" && viewProps.debug && console.info(
|
|
35
44
|
`Checking for press ${!!events.onPress} then applying pressability props: ${Object.keys(
|
|
36
45
|
pressability || {}
|
|
@@ -38,25 +47,28 @@ setupHooks({
|
|
|
38
47
|
), events.onPress))
|
|
39
48
|
for (const key in pressability) {
|
|
40
49
|
const og = viewProps[key], val = pressability[key];
|
|
41
|
-
viewProps[key] = og && !dontComposePressabilityKeys[key] ? composeEventHandlers(og, val) : val;
|
|
50
|
+
viewProps[key] = og && !dontComposePressabilityKeys[key] ? (0, import_web.composeEventHandlers)(og, val) : val;
|
|
42
51
|
}
|
|
43
52
|
}
|
|
44
53
|
},
|
|
45
54
|
useChildren(elementType, children, viewProps, events, staticConfig) {
|
|
46
55
|
if (process.env.NODE_ENV !== "test") {
|
|
47
56
|
if (elementType === baseViews.View)
|
|
48
|
-
return createOptimizedView(children, viewProps, baseViews);
|
|
57
|
+
return (0, import_createOptimizedView.createOptimizedView)(children, viewProps, baseViews);
|
|
49
58
|
if (process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS && elementType === baseViews.Text)
|
|
50
|
-
return viewProps.children = children, createElement("RCTText", viewProps);
|
|
59
|
+
return viewProps.children = children, (0, import_react.createElement)("RCTText", viewProps);
|
|
51
60
|
}
|
|
52
61
|
}
|
|
53
62
|
});
|
|
54
63
|
const dontComposePressabilityKeys = {
|
|
55
64
|
onClick: !0
|
|
56
|
-
}, View =
|
|
57
|
-
export
|
|
65
|
+
}, View = import_web.View, Stack = import_web.Stack, Text = import_web.Text;
|
|
66
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
67
|
+
0 && (module.exports = {
|
|
58
68
|
Stack,
|
|
59
69
|
Text,
|
|
60
|
-
View
|
|
61
|
-
|
|
70
|
+
View,
|
|
71
|
+
...require("@tamagui/web"),
|
|
72
|
+
...require("./reactNativeTypes")
|
|
73
|
+
});
|
|
62
74
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "AAAA
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+CAAmC,uDAYnC,aAMO,yBACP,eAA8B,kBAE9B,6BAAoC,kCACpC,sBAA6B,2BAC7B,0BAAiC,qCACjC,4BAAmC,uCAEnC,sBAAgC;AA+BhC,wBAAc,yBAzDd;AA4DA,wBAAc,+BA5Dd;AA8DA,MAAM,gBAAY,kCAAa;AAAA,IAI/B,uBAAW;AAAA,EACT;AAAA,EAEA,kBAAkB,aAAa,SAAS,UAAU,aAAa;AAAA,EAyF/D;AAAA,EAEA,UAAU,WAAW,QAAQ,EAAE,QAAQ,GAAG,iBAAiB,cAAc;AAWrE,QATI,WACE,OAAO,YACT,UAAU,UAAa,OAAO,UAE5B,OAAO,WACT,UAAU,SAAY,OAAO,UAI7B,aAAa;AACf,UAAI,QAAQ;AACV,cAAM,EAAE,WAAW,YAAY,QAAQ,IAAI,QACrC,cAAc;AAAA,UAClB;AAAA,UACA,YAAY,cAAc;AAAA,QAC5B;AACA,QAAI,cAAc,YAEhB,YAAY,iBAAa,iCAAqB,SAAS,UAAU,IAEnE,OAAO,OAAO,WAAW,WAAW;AAAA,MACtC;AAAA,WACK;AAGL,MAAI,UAAU,UAAU,YACtB,OAAO,UAAU,UAAU;AAI7B,YAAM,mBAAe,qCAAgB,MAAM;AAE3C,UAAI,WACE,QAAQ,IAAI,aAAa,iBACvB,UAAU,SACZ,QAAQ;AAAA,QACN,sBAAsB,CAAC,CAAC,OAAO,OAAO,sCAAsC,OAAO;AAAA,UACjF,gBAAgB,CAAC;AAAA,QACnB,CAAC;AAAA,MACH,GAIA,OAAO;AACT,mBAAW,OAAO,cAAc;AAC9B,gBAAM,KAAK,UAAU,GAAG,GAClB,MAAM,aAAa,GAAG;AAC5B,oBAAU,GAAG,IACX,MAAM,CAAC,4BAA4B,GAAG,QAClC,iCAAqB,IAAI,GAAG,IAC5B;AAAA,QACR;AAAA,IAGN;AAAA,EAEJ;AAAA,EAIE,YAAY,aAAa,UAAU,WAAW,QAAQ,cAAc;AAClE,QAAI,QAAQ,IAAI,aAAa,QAK7B;AAAA,UAAI,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
|
+
"names": ["WebView", "WebStack", "WebText"]
|
|
6
6
|
}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var inject_styles_exports = {};
|
|
17
|
+
__export(inject_styles_exports, {
|
|
18
|
+
injectStyles: () => injectStyles
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(inject_styles_exports);
|
|
1
21
|
const stylesheets = {}, injectStyles = ({ filePath, css }) => {
|
|
2
22
|
let stylesheet = stylesheets[filePath];
|
|
3
23
|
if (!stylesheet) {
|
|
@@ -6,7 +26,8 @@ const stylesheets = {}, injectStyles = ({ filePath, css }) => {
|
|
|
6
26
|
}
|
|
7
27
|
stylesheet.innerHTML = css;
|
|
8
28
|
};
|
|
9
|
-
export
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
10
31
|
injectStyles
|
|
11
|
-
};
|
|
32
|
+
});
|
|
12
33
|
//# sourceMappingURL=inject-styles.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/inject-styles.ts"],
|
|
4
|
-
"mappings": "AAEA,MAAM,cAA2C,CAAC,GAOrC,eAAe,CAAC,EAAE,UAAU,IAAI,MAA2B;AACtE,MAAI,aAAa,YAAY,QAAQ;AACrC,MAAI,CAAC,YAAY;AACf,UAAM,UAAU,SAAS,cAAc,OAAO;AAC9C,YAAQ,aAAa,aAAa,QAAQ,GAC1C,QAAQ,aAAa,QAAQ,UAAU,GACvC,aAAa,YAAY,QAAQ,IAAI,SACrC,SAAS,KAAK,YAAY,OAAO;AAAA,EACnC;AACA,aAAW,YAAY;AACzB;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,cAA2C,CAAC,GAOrC,eAAe,CAAC,EAAE,UAAU,IAAI,MAA2B;AACtE,MAAI,aAAa,YAAY,QAAQ;AACrC,MAAI,CAAC,YAAY;AACf,UAAM,UAAU,SAAS,cAAc,OAAO;AAC9C,YAAQ,aAAa,aAAa,QAAQ,GAC1C,QAAQ,aAAa,QAAQ,UAAU,GACvC,aAAa,YAAY,QAAQ,IAAI,SACrC,SAAS,KAAK,YAAY,OAAO;AAAA,EACnC;AACA,aAAW,YAAY;AACzB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var reactNativeTypes_exports = {};
|
|
17
|
+
__export(reactNativeTypes_exports, {
|
|
18
|
+
RNTextProps: () => import_web.RNTextProps,
|
|
19
|
+
RNViewProps: () => import_web.RNViewProps
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(reactNativeTypes_exports);
|
|
22
|
+
var import_web = require("@tamagui/web");
|
|
23
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
+
0 && (module.exports = {
|
|
3
25
|
RNTextProps,
|
|
4
26
|
RNViewProps
|
|
5
|
-
};
|
|
27
|
+
});
|
|
6
28
|
//# sourceMappingURL=reactNativeTypes.js.map
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var Pressability_native_exports = {};
|
|
17
|
+
__export(Pressability_native_exports, {
|
|
18
|
+
Pressability: () => Pressability,
|
|
19
|
+
usePressability: () => usePressability
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(Pressability_native_exports);
|
|
1
22
|
const Pressability = require("react-native/Libraries/Pressability/Pressability").default, usePressability = require("react-native/Libraries/Pressability/usePressability").default;
|
|
2
|
-
export
|
|
23
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
+
0 && (module.exports = {
|
|
3
25
|
Pressability,
|
|
4
26
|
usePressability
|
|
5
|
-
};
|
|
27
|
+
});
|
|
6
28
|
//# sourceMappingURL=Pressability.native.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/vendor/Pressability.native.tsx"],
|
|
4
|
-
"mappings": "AAAO,MAAM,eACX,QAAQ,kDAAkD,EAAE,SACjD,kBACX,QAAQ,qDAAqD,EAAE;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,eACX,QAAQ,kDAAkD,EAAE,SACjD,kBACX,QAAQ,qDAAqD,EAAE;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/native.js
CHANGED
|
@@ -1457,7 +1457,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1457
1457
|
let [identifier, cssRule, isTheme] = response;
|
|
1458
1458
|
if (isTheme) {
|
|
1459
1459
|
let deduped = addThemesFromCSS(cssRule, tokens);
|
|
1460
|
-
deduped && (dedupedThemes
|
|
1460
|
+
deduped && (dedupedThemes || (dedupedThemes = []), dedupedThemes.push(deduped));
|
|
1461
1461
|
continue;
|
|
1462
1462
|
}
|
|
1463
1463
|
let total = track(identifier, remove);
|
|
@@ -1485,7 +1485,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1485
1485
|
let key = rule.slice(rule.indexOf("--") + 2, sepI), val = rule.slice(sepI + 2), value;
|
|
1486
1486
|
if (val.startsWith("var(")) {
|
|
1487
1487
|
let varName = val.slice(6, -1), tokenVal = colorVarToVal[varName];
|
|
1488
|
-
tokenVal ? value = tokenVal : (rootComputedStyle
|
|
1488
|
+
tokenVal ? value = tokenVal : (rootComputedStyle || (rootComputedStyle = getComputedStyle(document.body)), value = rootComputedStyle.getPropertyValue("--" + varName));
|
|
1489
1489
|
} else
|
|
1490
1490
|
value = val;
|
|
1491
1491
|
values[key] = (0, import_createVariable.createVariable)(
|
|
@@ -1795,7 +1795,8 @@ var require_useMedia_native = __commonJS({
|
|
|
1795
1795
|
);
|
|
1796
1796
|
return new Proxy(state, {
|
|
1797
1797
|
get(_, key) {
|
|
1798
|
-
|
|
1798
|
+
var _a;
|
|
1799
|
+
return typeof key == "string" && (internal.current || (internal.current = { prev: initialState }), (_a = internal.current).touched || (_a.touched = /* @__PURE__ */ new Set()), internal.current.touched.add(key)), Reflect.get(state, key);
|
|
1799
1800
|
}
|
|
1800
1801
|
});
|
|
1801
1802
|
}
|
|
@@ -1966,16 +1967,16 @@ var require_ThemeManager_native = __commonJS({
|
|
|
1966
1967
|
}
|
|
1967
1968
|
get allKeys() {
|
|
1968
1969
|
var _a;
|
|
1969
|
-
return this._allKeys
|
|
1970
|
+
return this._allKeys || (this._allKeys = /* @__PURE__ */ new Set([
|
|
1970
1971
|
...((_a = this.parentManager) == null ? void 0 : _a.allKeys) || [],
|
|
1971
1972
|
...Object.keys(this.state.theme || {})
|
|
1972
|
-
]), this._allKeys;
|
|
1973
|
+
])), this._allKeys;
|
|
1973
1974
|
}
|
|
1974
1975
|
notify(forced = !1) {
|
|
1975
|
-
this.themeListeners.forEach((cb) => cb(this.state.name, this, forced)), process.env.NODE_ENV !== "production" && (this._numChangeEventsSent
|
|
1976
|
+
this.themeListeners.forEach((cb) => cb(this.state.name, this, forced)), process.env.NODE_ENV !== "production" && (this._numChangeEventsSent ?? (this._numChangeEventsSent = 0), this._numChangeEventsSent++);
|
|
1976
1977
|
}
|
|
1977
1978
|
onChangeTheme(cb, debugId) {
|
|
1978
|
-
return process.env.NODE_ENV !== "production" && debugId && (this._listeningIds
|
|
1979
|
+
return process.env.NODE_ENV !== "production" && debugId && (this._listeningIds ?? (this._listeningIds = /* @__PURE__ */ new Set()), this._listeningIds.add(debugId)), this.themeListeners.add(cb), () => {
|
|
1979
1980
|
this.themeListeners.delete(cb);
|
|
1980
1981
|
};
|
|
1981
1982
|
}
|
|
@@ -2269,7 +2270,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
2269
2270
|
props.name,
|
|
2270
2271
|
props.reset,
|
|
2271
2272
|
mounted
|
|
2272
|
-
]), process.env.NODE_ENV === "development" && props.debug !== "profile" && (0, import_react3.useEffect)(() => (globalThis.TamaguiThemeManagers
|
|
2273
|
+
]), process.env.NODE_ENV === "development" && props.debug !== "profile" && (0, import_react3.useEffect)(() => (globalThis.TamaguiThemeManagers ?? (globalThis.TamaguiThemeManagers = /* @__PURE__ */ new Set()), globalThis.TamaguiThemeManagers.add(themeManager), () => {
|
|
2273
2274
|
globalThis.TamaguiThemeManagers.delete(themeManager);
|
|
2274
2275
|
}), [themeManager])), isInversingOnMount)
|
|
2275
2276
|
return {
|
|
@@ -3416,9 +3417,10 @@ var require_expandStyles_native = __commonJS({
|
|
|
3416
3417
|
module2.exports = __toCommonJS2(expandStyles_exports);
|
|
3417
3418
|
var import_constants = require_index_native3(), import_normalizeShadow = require_normalizeShadow_native();
|
|
3418
3419
|
function fixStyles(style) {
|
|
3420
|
+
var _a;
|
|
3419
3421
|
"elevationAndroid" in style && (style.elevation = style.elevationAndroid, delete style.elevationAndroid), (style.shadowRadius || style.shadowColor || style.shadowOpacity || style.shadowOffset) && Object.assign(style, (0, import_normalizeShadow.normalizeShadow)(style));
|
|
3420
3422
|
for (let key in borderDefaults)
|
|
3421
|
-
key in style && (style[borderDefaults[key]]
|
|
3423
|
+
key in style && (style[_a = borderDefaults[key]] || (style[_a] = "solid"));
|
|
3422
3424
|
}
|
|
3423
3425
|
var nativeStyle = import_constants.isWeb ? null : "borderStyle", borderDefaults = {
|
|
3424
3426
|
borderWidth: "borderStyle",
|
|
@@ -3838,7 +3840,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3838
3840
|
let variantOut = resolveVariants(subKey, val, styleProps, styleState, key);
|
|
3839
3841
|
if (variantOut)
|
|
3840
3842
|
for (let [key2, val2] of variantOut)
|
|
3841
|
-
val2 != null && (key2 in import_pseudoDescriptors.pseudoDescriptors ? (res[key2]
|
|
3843
|
+
val2 != null && (key2 in import_pseudoDescriptors.pseudoDescriptors ? (res[key2] ?? (res[key2] = {}), Object.assign(res[key2], val2)) : res[key2] = val2);
|
|
3842
3844
|
}
|
|
3843
3845
|
continue;
|
|
3844
3846
|
}
|
|
@@ -3856,7 +3858,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3856
3858
|
}
|
|
3857
3859
|
if ((0, import_isObj.isObj)(val)) {
|
|
3858
3860
|
let subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);
|
|
3859
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && console.info("object", subKey, subObject), res[subKey]
|
|
3861
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && console.info("object", subKey, subObject), res[subKey] ?? (res[subKey] = {}), Object.assign(res[subKey], subObject);
|
|
3860
3862
|
} else
|
|
3861
3863
|
res[subKey] = val;
|
|
3862
3864
|
process.env.NODE_ENV === "development" && debug && ((_a = res[subKey]) == null ? void 0 : _a[0]) === "$" && console.warn(
|
|
@@ -4129,9 +4131,9 @@ current`, {
|
|
|
4129
4131
|
val,
|
|
4130
4132
|
styleProps.noClassNames
|
|
4131
4133
|
), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
|
|
4132
|
-
if (!descriptor
|
|
4134
|
+
if (!descriptor)
|
|
4133
4135
|
continue;
|
|
4134
|
-
if ((!shouldDoClasses || IS_STATIC) && (pseudos
|
|
4136
|
+
if ((!shouldDoClasses || IS_STATIC) && (pseudos || (pseudos = {}), pseudos[key] || (pseudos[key] = {}), IS_STATIC)) {
|
|
4135
4137
|
Object.assign(pseudos[key], pseudoStyleObject);
|
|
4136
4138
|
continue;
|
|
4137
4139
|
}
|
|
@@ -4149,10 +4151,10 @@ current`, {
|
|
|
4149
4151
|
let val2 = pseudoStyleObject[pkey];
|
|
4150
4152
|
if (isDisabled) {
|
|
4151
4153
|
let defaultValues = animatableDefaults[pkey];
|
|
4152
|
-
defaultValues && !(pkey in usedKeys) && mergeStyle(styleState, pkey, defaultValues);
|
|
4154
|
+
defaultValues != null && !(pkey in usedKeys) && mergeStyle(styleState, pkey, defaultValues);
|
|
4153
4155
|
} else {
|
|
4154
4156
|
let curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
|
|
4155
|
-
shouldMerge && (pseudos
|
|
4157
|
+
shouldMerge && (pseudos || (pseudos = {}), pseudos[key] || (pseudos[key] = {}), pseudos[key][pkey] = val2, mergeStyle(styleState, pkey, val2)), process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" subKey", pkey, shouldMerge, {
|
|
4156
4158
|
importance,
|
|
4157
4159
|
curImportance,
|
|
4158
4160
|
pkey,
|
|
@@ -4181,7 +4183,7 @@ current`, {
|
|
|
4181
4183
|
)
|
|
4182
4184
|
continue;
|
|
4183
4185
|
}
|
|
4184
|
-
hasMedia
|
|
4186
|
+
hasMedia || (hasMedia = !0);
|
|
4185
4187
|
let mediaStyle = getSubStyle(
|
|
4186
4188
|
styleState,
|
|
4187
4189
|
key,
|
|
@@ -4241,14 +4243,14 @@ current`, {
|
|
|
4241
4243
|
}
|
|
4242
4244
|
let groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media, componentGroupState = (_c = componentState.group) == null ? void 0 : _c[groupName];
|
|
4243
4245
|
if (groupMediaKey) {
|
|
4244
|
-
mediaGroups
|
|
4246
|
+
mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
|
|
4245
4247
|
let mediaState22 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState22 == null ? void 0 : mediaState22[groupMediaKey];
|
|
4246
4248
|
if (!mediaState22 && groupContext.layout && (isActive = (0, import_useMedia.mediaKeyMatch)(groupMediaKey, groupContext.layout)), !isActive)
|
|
4247
4249
|
continue;
|
|
4248
4250
|
importanceBump = 2;
|
|
4249
4251
|
}
|
|
4250
4252
|
if (groupPseudoKey) {
|
|
4251
|
-
pseudoGroups
|
|
4253
|
+
pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set()), pseudoGroups.add(groupName);
|
|
4252
4254
|
let componentGroupPseudoState = (componentGroupState || // fallback to context initially
|
|
4253
4255
|
context.groups.state[groupName]).pseudo;
|
|
4254
4256
|
if (!(componentGroupPseudoState != null && componentGroupPseudoState[groupPseudoKey]))
|
|
@@ -4349,9 +4351,9 @@ current`, {
|
|
|
4349
4351
|
function mergeStyle(styleState, key, val, disableNormalize = !1) {
|
|
4350
4352
|
let { classNames, viewProps, style, usedKeys, styleProps } = styleState;
|
|
4351
4353
|
if (import_constants.isWeb && (val == null ? void 0 : val[0]) === "_")
|
|
4352
|
-
classNames[key] = val, usedKeys[key]
|
|
4354
|
+
classNames[key] = val, usedKeys[key] || (usedKeys[key] = 1);
|
|
4353
4355
|
else if (key in import_helpers.stylePropsTransform)
|
|
4354
|
-
styleState.transforms
|
|
4356
|
+
styleState.transforms || (styleState.transforms = {}), styleState.transforms[key] = val;
|
|
4355
4357
|
else {
|
|
4356
4358
|
let out = import_constants.isWeb && !disableNormalize && !styleProps.noNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
|
|
4357
4359
|
key in import_helpers.validStylesOnBaseProps ? viewProps[key] = out : style[key] = out;
|
|
@@ -4395,7 +4397,7 @@ current`, {
|
|
|
4395
4397
|
x: 0,
|
|
4396
4398
|
y: 0
|
|
4397
4399
|
}, lowercaseHyphenate = (match) => `-${match.toLowerCase()}`, hyphenate = (str) => str.replace(/[A-Z]/g, lowercaseHyphenate), mergeTransform = (obj, key, val, backwards = !1) => {
|
|
4398
|
-
typeof obj.transform != "string" && (obj.transform
|
|
4400
|
+
typeof obj.transform != "string" && (obj.transform || (obj.transform = []), obj.transform[backwards ? "unshift" : "push"]({
|
|
4399
4401
|
[mapTransformKeys[key] || key]: val
|
|
4400
4402
|
}));
|
|
4401
4403
|
}, mapTransformKeys = {
|
|
@@ -4806,14 +4808,14 @@ var require_createComponent_native = __commonJS({
|
|
|
4806
4808
|
defaultPropsKeyOrder: defaultProps ? Object.keys(defaultProps) : []
|
|
4807
4809
|
});
|
|
4808
4810
|
let component = (0, import_react3.forwardRef)((propsIn, forwardedRef) => {
|
|
4809
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
4811
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
4810
4812
|
let internalID = process.env.NODE_ENV === "development" ? (0, import_react3.useId)() : "";
|
|
4811
4813
|
if (process.env.NODE_ENV === "development" && startVisualizer && (startVisualizer(), startVisualizer = void 0), !hasSetupBaseViews) {
|
|
4812
4814
|
hasSetupBaseViews = !0;
|
|
4813
4815
|
let baseViews2 = (_b = (_a2 = import_setupHooks.hooks).getBaseViews) == null ? void 0 : _b.call(_a2);
|
|
4814
4816
|
baseViews2 && (BaseText = baseViews2.Text, BaseView = baseViews2.View);
|
|
4815
4817
|
}
|
|
4816
|
-
process.env.NODE_ENV === "test" && propsIn["data-test-renders"] && (propsIn["data-test-renders"].current
|
|
4818
|
+
process.env.NODE_ENV === "test" && propsIn["data-test-renders"] && ((_c = propsIn["data-test-renders"]).current ?? (_c.current = 0), propsIn["data-test-renders"].current += 1);
|
|
4817
4819
|
let componentContext = (0, import_react3.useContext)(import_ComponentContext.ComponentContext), styledContextProps, overriddenContextProps, contextValue, { context } = staticConfig;
|
|
4818
4820
|
if (context) {
|
|
4819
4821
|
contextValue = (0, import_react3.useContext)(context);
|
|
@@ -4823,7 +4825,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4823
4825
|
// because its after default props but before props this annoying amount of checks
|
|
4824
4826
|
propsIn[key] ?? propsIn[inverseShorthands[key]] ?? (defaultProps == null ? void 0 : defaultProps[key]) ?? (defaultProps == null ? void 0 : defaultProps[inverseShorthands[key]])
|
|
4825
4827
|
);
|
|
4826
|
-
propVal === void 0 ? contextValue && (key in validStyles2 || key in variants) && (styledContextProps
|
|
4828
|
+
propVal === void 0 ? contextValue && (key in validStyles2 || key in variants) && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = contextValue[key]) : (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = propVal);
|
|
4827
4829
|
}
|
|
4828
4830
|
}
|
|
4829
4831
|
let curDefaultProps = styledContextProps ? { ...defaultProps, ...styledContextProps } : defaultProps, props = propsIn;
|
|
@@ -4840,7 +4842,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4840
4842
|
} else
|
|
4841
4843
|
overlay && node.removeChild(overlay);
|
|
4842
4844
|
};
|
|
4843
|
-
return debugKeyListeners
|
|
4845
|
+
return debugKeyListeners || (debugKeyListeners = /* @__PURE__ */ new Set()), debugKeyListeners.add(debugVisualizerHandler), () => {
|
|
4844
4846
|
debugKeyListeners == null || debugKeyListeners.delete(debugVisualizerHandler);
|
|
4845
4847
|
};
|
|
4846
4848
|
}, [componentName2]), process.env.NODE_ENV === "development" && time && time`start (ignore)`, process.env.NODE_ENV === "development" && time && time`did-finish-ssr`;
|
|
@@ -4848,7 +4850,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4848
4850
|
process.env.NODE_ENV === "development" && time && time`stateref`;
|
|
4849
4851
|
let 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, curState = stateRef.current, willBeAnimatedClient = !!(hasAnimationProp && !isHOC && useAnimations || curState.hasAnimated), willBeAnimated = !import_constants.isServer && willBeAnimatedClient;
|
|
4850
4852
|
willBeAnimated && !curState.hasAnimated && (curState.hasAnimated = !0);
|
|
4851
|
-
let isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && ((
|
|
4853
|
+
let isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && ((_d = animationsConfig == null ? void 0 : animationsConfig.usePresence) == null ? void 0 : _d.call(animationsConfig)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasRNAnimation = hasAnimationProp && (animationsConfig == null ? void 0 : animationsConfig.isReactNative), isReactNative = staticConfig.isReactNative, isAnimated = willBeAnimated;
|
|
4852
4854
|
!isReactNative && hasRNAnimation && !isHOC && !isHydrated && (isAnimated = !1, curState.willHydrate = !0), process.env.NODE_ENV === "development" && time && time`pre-use-state`;
|
|
4853
4855
|
let hasEnterState = hasEnterStyle || isEntering, needsToMount = !isHydrated || !curState.host, initialState = hasEnterState ? needsToMount ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateMounted, states = (0, import_react3.useState)(initialState), state = props.forceStyle ? { ...states[0], [props.forceStyle]: !0 } : states[0], setState = states[1], setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, debugProp);
|
|
4854
4856
|
if (isHydrated && state.unmounted === "should-enter" && (state.unmounted = !0), presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -4887,7 +4889,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4887
4889
|
};
|
|
4888
4890
|
}
|
|
4889
4891
|
process.env.NODE_ENV === "development" && time && time`use-state`;
|
|
4890
|
-
let componentNameFinal = props.componentName || componentName2, componentClassName = props.asChild || !componentNameFinal ? "" : `is_${componentNameFinal}`, hasTextAncestor = !!(import_constants.isWeb && isText && componentContext.inText), isDisabled = props.disabled ?? ((
|
|
4892
|
+
let componentNameFinal = props.componentName || componentName2, componentClassName = props.asChild || !componentNameFinal ? "" : `is_${componentNameFinal}`, hasTextAncestor = !!(import_constants.isWeb && isText && componentContext.inText), isDisabled = props.disabled ?? ((_e = props.accessibilityState) == null ? void 0 : _e.disabled);
|
|
4891
4893
|
process.env.NODE_ENV === "development" && time && time`use-context`;
|
|
4892
4894
|
let element = import_constants.isWeb && (!Component || typeof Component == "string") && props.tag || Component, elementType = isText ? BaseText || element || "span" : BaseView || element || (hasTextAncestor ? "span" : "div");
|
|
4893
4895
|
animationsConfig && isAnimated && (elementType = animationsConfig[isText ? "Text" : "View"] || elementType);
|
|
@@ -4932,7 +4934,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4932
4934
|
props,
|
|
4933
4935
|
staticConfig,
|
|
4934
4936
|
theme,
|
|
4935
|
-
((
|
|
4937
|
+
((_f = themeState == null ? void 0 : themeState.state) == null ? void 0 : _f.name) || "",
|
|
4936
4938
|
state,
|
|
4937
4939
|
styleProps,
|
|
4938
4940
|
null,
|
|
@@ -4964,7 +4966,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4964
4966
|
presence,
|
|
4965
4967
|
componentState: state,
|
|
4966
4968
|
styleProps,
|
|
4967
|
-
theme: (
|
|
4969
|
+
theme: (_g = themeState.state) == null ? void 0 : _g.theme,
|
|
4968
4970
|
pseudos: pseudos || null,
|
|
4969
4971
|
staticConfig,
|
|
4970
4972
|
stateRef
|
|
@@ -5004,7 +5006,7 @@ var require_createComponent_native = __commonJS({
|
|
|
5004
5006
|
|
|
5005
5007
|
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`
|
|
5006
5008
|
), process.env.NODE_ENV === "development" && time && time`destructure`;
|
|
5007
|
-
let disabled = ((
|
|
5009
|
+
let disabled = ((_h = props.accessibilityState) == null ? void 0 : _h.disabled) || // @ts-expect-error (comes from core)
|
|
5008
5010
|
props.accessibilityDisabled, viewProps = nonTamaguiProps;
|
|
5009
5011
|
hasAnimationProp && props.tag && !props.role && !props.accessibilityRole && (viewProps.role = props.tag), isHOC && _themeProp && (viewProps.theme = _themeProp), groupName && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(
|
|
5010
5012
|
nonTamaguiProps.onLayout,
|
|
@@ -5013,8 +5015,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5013
5015
|
layout: e.nativeEvent.layout
|
|
5014
5016
|
}), !stateRef.current.hasMeasured && props.untilMeasured === "hide" && setState((prev) => ({ ...prev })), stateRef.current.hasMeasured = !0;
|
|
5015
5017
|
}
|
|
5016
|
-
)), viewProps = ((
|
|
5017
|
-
|
|
5018
|
+
)), viewProps = ((_j = (_i = import_setupHooks.hooks).usePropsTransform) == null ? void 0 : _j.call(
|
|
5019
|
+
_i,
|
|
5018
5020
|
elementType,
|
|
5019
5021
|
nonTamaguiProps,
|
|
5020
5022
|
stateRef,
|
|
@@ -5070,7 +5072,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5070
5072
|
pseudoGroups ? Object.keys([...pseudoGroups]).join("") : 0,
|
|
5071
5073
|
mediaGroups ? Object.keys([...mediaGroups]).join("") : 0
|
|
5072
5074
|
]);
|
|
5073
|
-
let fontFamily = isText ? splitStyles.fontFamily || ((
|
|
5075
|
+
let fontFamily = isText ? splitStyles.fontFamily || ((_k = staticConfig.defaultProps) == null ? void 0 : _k.fontFamily) : null;
|
|
5074
5076
|
fontFamily && fontFamily[0] === "$" && (fontFamily = fontFamily.slice(1));
|
|
5075
5077
|
let fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "", style = animationStyles || splitStyles.style, className;
|
|
5076
5078
|
asChild === "except-style" || asChild === "except-style-web" || (viewProps.style = style);
|
|
@@ -5126,7 +5128,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5126
5128
|
delayPressOut: viewProps.delayPressOut,
|
|
5127
5129
|
focusable: viewProps.focusable ?? !0,
|
|
5128
5130
|
minPressDuration: 0
|
|
5129
|
-
}), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && (0, import_log.log)("events", { events, isHoverable, attachPress }), (
|
|
5131
|
+
}), process.env.NODE_ENV === "development" && time && time`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && (0, import_log.log)("events", { events, isHoverable, attachPress }), (_m = (_l = import_setupHooks.hooks).useEvents) == null || _m.call(_l, viewProps, events, splitStyles, setStateShallow, staticConfig);
|
|
5130
5132
|
let direction = props.spaceDirection || "both";
|
|
5131
5133
|
process.env.NODE_ENV === "development" && time && time`hooks`;
|
|
5132
5134
|
let content = !children || asChild ? children : spacedChildren({
|
|
@@ -5146,7 +5148,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5146
5148
|
events,
|
|
5147
5149
|
staticConfig
|
|
5148
5150
|
)), useChildrenResult ? content = useChildrenResult : content = (0, import_react3.createElement)(elementType, viewProps, content);
|
|
5149
|
-
let ResetPresence = (
|
|
5151
|
+
let ResetPresence = (_n = config == null ? void 0 : config.animations) == null ? void 0 : _n.ResetPresence;
|
|
5150
5152
|
ResetPresence && willBeAnimated && (hasEnterStyle || presenceState) && content && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResetPresence, { children: content })), process.env.NODE_ENV === "development" && time && time`create-element`;
|
|
5151
5153
|
let groupState = curState.group, subGroupContext = (0, import_react3.useMemo)(() => {
|
|
5152
5154
|
if (!(!groupState || !groupName))
|
|
@@ -5172,7 +5174,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5172
5174
|
if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...componentContext, groups: subGroupContext, children: content })), process.env.NODE_ENV === "development" && time && time`group-context`, content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1), process.env.NODE_ENV === "development" && time && time`themed-children`, process.env.NODE_ENV === "development" && props.debug === "visualize" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, { themeState, themeProps: props, children: content })), staticConfig.context) {
|
|
5173
5175
|
let contextProps = staticConfig.context.props;
|
|
5174
5176
|
for (let key in contextProps)
|
|
5175
|
-
(key in style || key in viewProps) && (overriddenContextProps
|
|
5177
|
+
(key in style || key in viewProps) && (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = style[key] ?? viewProps[key]);
|
|
5176
5178
|
}
|
|
5177
5179
|
if (overriddenContextProps) {
|
|
5178
5180
|
let Provider = staticConfig.context.Provider;
|