@tamagui/core 1.84.1 → 1.85.0
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 +55 -39
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +41 -31
- 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") {
|
|
@@ -4092,10 +4091,10 @@ var require_ThemeManagerContext_native = __commonJS({
|
|
|
4092
4091
|
return to;
|
|
4093
4092
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), ThemeManagerContext_exports = {};
|
|
4094
4093
|
__export2(ThemeManagerContext_exports, {
|
|
4095
|
-
|
|
4094
|
+
ThemeManagerIDContext: () => ThemeManagerIDContext
|
|
4096
4095
|
});
|
|
4097
4096
|
module2.exports = __toCommonJS2(ThemeManagerContext_exports);
|
|
4098
|
-
var import_react3 = require("react"),
|
|
4097
|
+
var import_react3 = require("react"), ThemeManagerIDContext = (0, import_react3.createContext)(1);
|
|
4099
4098
|
}
|
|
4100
4099
|
});
|
|
4101
4100
|
|
|
@@ -4124,7 +4123,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
4124
4123
|
}
|
|
4125
4124
|
var uid = 0, ThemeManager = class {
|
|
4126
4125
|
constructor(props = {}, parentManager) {
|
|
4127
|
-
if (this.props = props, this.id =
|
|
4126
|
+
if (this.props = props, this.id = 0, this.themeListeners = /* @__PURE__ */ new Set(), this.parentManager = null, this.state = emptyState, this._allKeys = null, uid = (uid + 1) % Number.MAX_VALUE, this.id = uid, parentManager === "root") {
|
|
4128
4127
|
this.updateStateFromProps(props, !1);
|
|
4129
4128
|
return;
|
|
4130
4129
|
}
|
|
@@ -4267,6 +4266,7 @@ var require_useTheme_native = __commonJS({
|
|
|
4267
4266
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useTheme_exports = {};
|
|
4268
4267
|
__export2(useTheme_exports, {
|
|
4269
4268
|
activeThemeManagers: () => activeThemeManagers,
|
|
4269
|
+
getThemeManager: () => getThemeManager,
|
|
4270
4270
|
getThemeProxied: () => getThemeProxied,
|
|
4271
4271
|
useChangeThemeEffect: () => useChangeThemeEffect,
|
|
4272
4272
|
useTheme: () => useTheme,
|
|
@@ -4297,13 +4297,13 @@ var require_useTheme_native = __commonJS({
|
|
|
4297
4297
|
}), next;
|
|
4298
4298
|
}
|
|
4299
4299
|
), { themeManager, state } = changedThemeState;
|
|
4300
|
-
state != null && state.theme || process.env.
|
|
4300
|
+
process.env.NODE_ENV === "development" && (state != null && state.theme || process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== "1" && console.warn(
|
|
4301
4301
|
`[tamagui] No theme found, this could be due to an invalid theme name (given theme props ${JSON.stringify(
|
|
4302
4302
|
props
|
|
4303
4303
|
)}).
|
|
4304
4304
|
|
|
4305
4305
|
If this is intended and you are using Tamagui without any themes, you can disable this warning by setting the environment variable TAMAGUI_DISABLE_NO_THEME_WARNING=1`
|
|
4306
|
-
);
|
|
4306
|
+
));
|
|
4307
4307
|
let themeProxied = (0, import_react3.useMemo)(() => !themeManager || !(state != null && state.theme) ? {} : getThemeProxied(state, props.deopt, themeManager, keys.current, props.debug), [state == null ? void 0 : state.theme, themeManager, props.deopt, props.debug]);
|
|
4308
4308
|
return process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} useTheme =>", state == null ? void 0 : state.name), console.info("returning state", changedThemeState, "from props", props), console.groupEnd()), [changedThemeState, themeProxied];
|
|
4309
4309
|
};
|
|
@@ -4381,8 +4381,13 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
4381
4381
|
}
|
|
4382
4382
|
return !1;
|
|
4383
4383
|
}
|
|
4384
|
-
var activeThemeManagers = /* @__PURE__ */ new Set(),
|
|
4385
|
-
|
|
4384
|
+
var activeThemeManagers = /* @__PURE__ */ new Set(), _uidToManager = /* @__PURE__ */ new WeakMap(), _idToUID = {}, getId = (id) => _idToUID[id], getThemeManager = (id) => _uidToManager.get(getId(id)), registerThemeManager = (t) => {
|
|
4385
|
+
if (!_idToUID[t.id]) {
|
|
4386
|
+
let id = _idToUID[t.id] = {};
|
|
4387
|
+
_uidToManager.set(id, t);
|
|
4388
|
+
}
|
|
4389
|
+
}, useChangeThemeEffect = (props, isRoot = !1, keys, shouldUpdate) => {
|
|
4390
|
+
let { disable } = props, parentManagerId = (0, import_react3.useContext)(import_ThemeManagerContext.ThemeManagerIDContext), parentManager = getThemeManager(parentManagerId);
|
|
4386
4391
|
if (!isRoot && !parentManager || disable)
|
|
4387
4392
|
return {
|
|
4388
4393
|
isNewTheme: !1,
|
|
@@ -4408,18 +4413,25 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
4408
4413
|
}));
|
|
4409
4414
|
return;
|
|
4410
4415
|
}
|
|
4411
|
-
isNewTheme
|
|
4416
|
+
(isNewTheme || getShouldUpdateTheme(themeManager)) && (activeThemeManagers.add(themeManager), setThemeState(createState));
|
|
4412
4417
|
let selfListenerDispose = themeManager.onChangeTheme((_a, _b, forced) => {
|
|
4413
4418
|
forced && setThemeState((prev) => createState(prev, !0));
|
|
4414
4419
|
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme(
|
|
4415
4420
|
(name, manager, forced) => {
|
|
4416
4421
|
let force = forced || (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"], shouldTryUpdate = force ?? !!(keys != null && keys.length || isNewTheme);
|
|
4417
|
-
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));
|
|
4418
4430
|
},
|
|
4419
4431
|
themeManager.id
|
|
4420
4432
|
);
|
|
4421
4433
|
return () => {
|
|
4422
|
-
selfListenerDispose(), disposeChangeListener == null || disposeChangeListener(), activeThemeManagers.delete(themeManager);
|
|
4434
|
+
selfListenerDispose(), disposeChangeListener == null || disposeChangeListener(), isNewTheme && activeThemeManagers.delete(themeManager);
|
|
4423
4435
|
};
|
|
4424
4436
|
}, [
|
|
4425
4437
|
themeManager,
|
|
@@ -4467,14 +4479,16 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
4467
4479
|
} else
|
|
4468
4480
|
themeManager2 = getNewThemeManager(), state2 = { ...themeManager2.state };
|
|
4469
4481
|
}
|
|
4470
|
-
let isNewTheme2 = !!(themeManager2 !== parentManager || props.inverse)
|
|
4482
|
+
let isNewTheme2 = !!(themeManager2 !== parentManager || props.inverse);
|
|
4483
|
+
isNewTheme2 && registerThemeManager(themeManager2);
|
|
4484
|
+
let mounted2 = props.inverse ? isRoot || (prev == null ? void 0 : prev.mounted) : !0;
|
|
4471
4485
|
state2 || (isNewTheme2 ? state2 = themeManager2.state : (state2 = parentManager.state, themeManager2 = parentManager));
|
|
4472
4486
|
let wasInversed = prev == null ? void 0 : prev.inversed, inversed2 = isNewTheme2 && state2.scheme !== (parentManager == null ? void 0 : parentManager.state.scheme) ? !0 : wasInversed != null ? !1 : null, response = {
|
|
4473
4487
|
themeManager: themeManager2,
|
|
4474
4488
|
isNewTheme: isNewTheme2,
|
|
4475
4489
|
mounted: mounted2,
|
|
4476
4490
|
inversed: inversed2
|
|
4477
|
-
}, shouldReturnPrev =
|
|
4491
|
+
}, shouldReturnPrev = prev && !force && // isEqualShallow uses the second arg as the keys so this should compare without state first...
|
|
4478
4492
|
(0, import_createShallowSetState.isEqualShallow)(prev, response) && // ... and then compare just the state, because we make a new state obj but is likely the same
|
|
4479
4493
|
(0, import_createShallowSetState.isEqualShallow)(prev.state, state2);
|
|
4480
4494
|
if (prev && shouldReturnPrev)
|
|
@@ -4570,7 +4584,9 @@ var require_Theme_native = __commonJS({
|
|
|
4570
4584
|
function getThemedChildren(themeState, children, props, isRoot = !1) {
|
|
4571
4585
|
let { themeManager, isNewTheme } = themeState;
|
|
4572
4586
|
if (!themeManager)
|
|
4573
|
-
throw
|
|
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
|
+
);
|
|
4574
4590
|
let { shallow, forceClassName } = props, hasEverThemed = (0, import_react3.useRef)(!1), shouldRenderChildrenWithTheme = isNewTheme || props.inverse || hasEverThemed.current || forceClassName || isRoot;
|
|
4575
4591
|
if (shouldRenderChildrenWithTheme && (hasEverThemed.current = !0), !shouldRenderChildrenWithTheme)
|
|
4576
4592
|
return children;
|
|
@@ -4580,7 +4596,7 @@ var require_Theme_native = __commonJS({
|
|
|
4580
4596
|
void 0,
|
|
4581
4597
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Theme, { name: themeManager.state.parentName, children: child.props.children })
|
|
4582
4598
|
) : child));
|
|
4583
|
-
let elementsWithContext = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.
|
|
4599
|
+
let elementsWithContext = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeManagerContext.ThemeManagerIDContext.Provider, { value: themeManager.id, children: next });
|
|
4584
4600
|
return forceClassName === !1 ? elementsWithContext : import_constants3.isWeb ? wrapThemeElements({
|
|
4585
4601
|
children: elementsWithContext,
|
|
4586
4602
|
themeState,
|
|
@@ -4867,7 +4883,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4867
4883
|
{}
|
|
4868
4884
|
);
|
|
4869
4885
|
process.env.NODE_ENV === "development" && time && time`stateref`;
|
|
4870
|
-
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 = (() => {
|
|
4871
4887
|
if (import_constants3.isServer && !supportsCSSVars)
|
|
4872
4888
|
return !1;
|
|
4873
4889
|
let curState = stateRef.current;
|
|
@@ -5925,7 +5941,7 @@ ${runtimeStyles}`;
|
|
|
5925
5941
|
function getThemesDeduped(themes) {
|
|
5926
5942
|
let dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
5927
5943
|
for (let themeName in themes) {
|
|
5928
|
-
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));
|
|
5929
5945
|
if (existing.has(key)) {
|
|
5930
5946
|
existing.get(key).names.push(themeName);
|
|
5931
5947
|
continue;
|
|
@@ -6025,7 +6041,7 @@ var require_setupReactNative_native = __commonJS({
|
|
|
6025
6041
|
});
|
|
6026
6042
|
module2.exports = __toCommonJS2(setupReactNative_exports);
|
|
6027
6043
|
function getReactNativeConfig(Component) {
|
|
6028
|
-
var _a, _b, _c;
|
|
6044
|
+
var _a, _b, _c, _d;
|
|
6029
6045
|
if (Component)
|
|
6030
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;
|
|
6031
6047
|
}
|
|
@@ -6264,9 +6280,9 @@ var require_useThemeName_native = __commonJS({
|
|
|
6264
6280
|
useThemeName: () => useThemeName
|
|
6265
6281
|
});
|
|
6266
6282
|
module2.exports = __toCommonJS2(useThemeName_exports);
|
|
6267
|
-
var import_constants3 = require_index_native3(), import_react3 = require("react"), import_ThemeManagerContext = require_ThemeManagerContext_native();
|
|
6283
|
+
var import_constants3 = require_index_native3(), import_react3 = require("react"), import_ThemeManagerContext = require_ThemeManagerContext_native(), import_useTheme = require_useTheme_native();
|
|
6268
6284
|
function useThemeName(opts) {
|
|
6269
|
-
let manager = (0, import_react3.useContext)(import_ThemeManagerContext.
|
|
6285
|
+
let manager = (0, import_useTheme.getThemeManager)((0, import_react3.useContext)(import_ThemeManagerContext.ThemeManagerIDContext)), [name, setName] = (0, import_react3.useState)((manager == null ? void 0 : manager.state.name) || "");
|
|
6270
6286
|
return (0, import_constants3.useIsomorphicLayoutEffect)(() => {
|
|
6271
6287
|
if (manager)
|
|
6272
6288
|
return setName(manager.state.name), manager.onChangeTheme((next, manager2) => {
|
|
@@ -7152,7 +7168,7 @@ var Pressability = require_fake_react_native().default, usePressability = (init_
|
|
|
7152
7168
|
|
|
7153
7169
|
// src/index.tsx
|
|
7154
7170
|
__reExport(src_exports, __toESM(require_index_native9()), module.exports);
|
|
7155
|
-
var
|
|
7171
|
+
var baseViews = getBaseViews();
|
|
7156
7172
|
(0, import_web.setupHooks)({
|
|
7157
7173
|
getBaseViews,
|
|
7158
7174
|
usePropsTransform(elementType, propsIn, hostRef) {
|
|
@@ -7241,7 +7257,7 @@ var View = import_web.View, Stack = import_web.Stack, Text = import_web.Text, ba
|
|
|
7241
7257
|
});
|
|
7242
7258
|
var dontComposePressabilityKeys = {
|
|
7243
7259
|
onClick: !0
|
|
7244
|
-
};
|
|
7260
|
+
}, View = import_web.View, Stack = import_web.Stack, Text = import_web.Text;
|
|
7245
7261
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7246
7262
|
0 && (module.exports = {
|
|
7247
7263
|
Stack,
|