@tamagui/core 1.86.6 → 1.87.0-1705788268756
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/index.js.map +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/reactNativeTypes.js +14 -1
- package/dist/cjs/reactNativeTypes.js.map +1 -1
- package/dist/cjs/reactNativeTypes.native.js +14 -1
- package/dist/cjs/reactNativeTypes.native.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/reactNativeTypes.js +5 -0
- package/dist/esm/reactNativeTypes.js.map +2 -2
- package/dist/esm/reactNativeTypes.native.js +5 -0
- package/dist/esm/reactNativeTypes.native.js.map +2 -2
- package/dist/native.js +52 -27
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +41 -18
- package/dist/test.native.js.map +3 -3
- package/package.json +7 -7
- package/src/index.tsx +166 -9
- package/src/reactNativeTypes.ts +1 -29
- package/types/index.d.ts +8 -4
- package/types/index.d.ts.map +1 -1
- package/types/reactNativeTypes.d.ts +1 -26
- package/types/reactNativeTypes.d.ts.map +1 -1
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+CAAmC,
|
|
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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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
5
|
"names": ["WebView", "WebStack", "WebText"]
|
|
6
6
|
}
|
|
@@ -2,7 +2,10 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
6
9
|
if (from && typeof from == "object" || typeof from == "function")
|
|
7
10
|
for (let key of __getOwnPropNames(from))
|
|
8
11
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
@@ -10,5 +13,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
10
13
|
};
|
|
11
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
15
|
var reactNativeTypes_exports = {};
|
|
16
|
+
__export(reactNativeTypes_exports, {
|
|
17
|
+
RNTextProps: () => import_web.RNTextProps,
|
|
18
|
+
RNViewProps: () => import_web.RNViewProps
|
|
19
|
+
});
|
|
13
20
|
module.exports = __toCommonJS(reactNativeTypes_exports);
|
|
21
|
+
var import_web = require("@tamagui/web");
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
RNTextProps,
|
|
25
|
+
RNViewProps
|
|
26
|
+
});
|
|
14
27
|
//# sourceMappingURL=reactNativeTypes.js.map
|
|
@@ -3,7 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var
|
|
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) => {
|
|
7
10
|
if (from && typeof from == "object" || typeof from == "function")
|
|
8
11
|
for (let key of __getOwnPropNames(from))
|
|
9
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
@@ -11,5 +14,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
14
|
};
|
|
12
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
16
|
var reactNativeTypes_exports = {};
|
|
17
|
+
__export(reactNativeTypes_exports, {
|
|
18
|
+
RNTextProps: () => import_web.RNTextProps,
|
|
19
|
+
RNViewProps: () => import_web.RNViewProps
|
|
20
|
+
});
|
|
14
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 = {
|
|
25
|
+
RNTextProps,
|
|
26
|
+
RNViewProps
|
|
27
|
+
});
|
|
15
28
|
//# sourceMappingURL=reactNativeTypes.js.map
|
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;
|
|
4
|
+
"mappings": "AAAA,SAAS,0BAA0B;AAYnC;AAAA,EACE,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER;AAAA,OACK;AACP,OAA8B;AAE9B,OAAoC;AACpC,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AAEnC,OAAgC;AA+BhC,cAAc;AAGd,cAAc;AAEd,MAAM,YAAY,aAAa;AAI/B,WAAW;AAAA,EACT;AAAA,EAEA,kBAAkB,aAAa,SAAS,UAAU,aAAa;AACnB;AACxC,YAAM,QAAQ,OAAO,eAAgB,UAG/B;AAAA;AAAA,QAEJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,QAGA;AAAA,QACA;AAAA;AAAA,QAGA;AAAA,QACA;AAAA,QAEA;AAAA,QACA;AAAA,QAEA,GAAG;AAAA,MACL,IAAI;AAEJ,UAAI,eAAe,OAAO;AAExB,cAAM,UAAU;AAAA,UACd,IAAI,UAAU;AACZ,mBAAO,SA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AA,EAClC,SAAS;AACX,GAIa,OAAO,SACP,QAAQ,UACR,OAAO;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/native.js
CHANGED
|
@@ -4015,6 +4015,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
4015
4015
|
theme: { ...theme }
|
|
4016
4016
|
}), console.groupEnd());
|
|
4017
4017
|
for (let keyOg in props) {
|
|
4018
|
+
process.env.NODE_ENV === "development" && console.groupEnd();
|
|
4018
4019
|
let keyInit = keyOg, valInit = props[keyOg];
|
|
4019
4020
|
if (styleProps.disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys || keyInit in skipProps && !styleProps.noSkip && !isHOC)
|
|
4020
4021
|
continue;
|
|
@@ -4082,7 +4083,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
4082
4083
|
isHOCShouldPassThrough,
|
|
4083
4084
|
curProps: { ...styleState.curProps },
|
|
4084
4085
|
parentStaticConfig
|
|
4085
|
-
})
|
|
4086
|
+
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !styleProps.noSkip && keyInit in skipProps)
|
|
4086
4087
|
continue;
|
|
4087
4088
|
if (isText && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && valInit !== "unset" && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
|
|
4088
4089
|
style[keyInit] = valInit;
|
|
@@ -4147,10 +4148,8 @@ current`, {
|
|
|
4147
4148
|
for (let pkey in pseudoStyleObject) {
|
|
4148
4149
|
let val2 = pseudoStyleObject[pkey];
|
|
4149
4150
|
if (isDisabled) {
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
mergeStyle(styleState, pkey, defaultVal);
|
|
4153
|
-
}
|
|
4151
|
+
let defaultValues = animatableDefaults[pkey];
|
|
4152
|
+
defaultValues && !(pkey in usedKeys) && mergeStyle(styleState, pkey, defaultValues);
|
|
4154
4153
|
} else {
|
|
4155
4154
|
let curImportance = usedKeys[pkey] || 0, shouldMerge = importance >= curImportance;
|
|
4156
4155
|
shouldMerge && (pseudos ||= {}, pseudos[key] ||= {}, pseudos[key][pkey] = val2, mergeStyle(styleState, pkey, val2)), process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)(" subKey", pkey, shouldMerge, {
|
|
@@ -4299,7 +4298,7 @@ current`, {
|
|
|
4299
4298
|
}
|
|
4300
4299
|
}
|
|
4301
4300
|
}
|
|
4302
|
-
if (props.style && mergeStylePropIntoStyle(styleState, props.style), styleProps.noNormalize !== !1 && ((0, import_expandStyles.fixStyles)(style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(style), styleState.transforms && Object.entries(styleState.transforms).sort(([a], [b]) => a.localeCompare(b)).forEach(([key, val]) => {
|
|
4301
|
+
if (process.env.NODE_ENV === "development" && console.groupEnd(), props.style && mergeStylePropIntoStyle(styleState, props.style), styleProps.noNormalize !== !1 && ((0, import_expandStyles.fixStyles)(style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(style), styleState.transforms && Object.entries(styleState.transforms).sort(([a], [b]) => a.localeCompare(b)).forEach(([key, val]) => {
|
|
4303
4302
|
mergeTransform(style, key, val, !0);
|
|
4304
4303
|
}), parentSplitStyles && !shouldDoClasses))
|
|
4305
4304
|
for (let key in parentSplitStyles.style)
|
|
@@ -4755,7 +4754,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4755
4754
|
spacedChildren: () => spacedChildren
|
|
4756
4755
|
});
|
|
4757
4756
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
4758
|
-
var import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_jsx_runtime = require("react/jsx-runtime"), tamaguiConfig, time, debugKeyListeners, startVisualizer, mouseUps = /* @__PURE__ */ new Set();
|
|
4757
|
+
var import_compose_refs = require_index_native5(), import_constants = require_index_native3(), import_helpers = require_index_native4(), import_use_did_finish_ssr = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_jsx_runtime = require("react/jsx-runtime"), tamaguiConfig, time, debugKeyListeners, startVisualizer, mouseUps = /* @__PURE__ */ new Set();
|
|
4759
4758
|
if (typeof document < "u") {
|
|
4760
4759
|
let cancelTouches = () => {
|
|
4761
4760
|
mouseUps.forEach((x) => x()), mouseUps.clear();
|
|
@@ -4849,12 +4848,15 @@ var require_createComponent_native = __commonJS({
|
|
|
4849
4848
|
process.env.NODE_ENV === "development" && time && time`stateref`;
|
|
4850
4849
|
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;
|
|
4851
4850
|
willBeAnimated && !curState.hasAnimated && (curState.hasAnimated = !0);
|
|
4852
|
-
let isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && ((_c = animationsConfig == null ? void 0 : animationsConfig.usePresence) == null ? void 0 : _c.call(animationsConfig)) || null, presenceState = presence == null ? void 0 : presence[2],
|
|
4851
|
+
let isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && ((_c = animationsConfig == null ? void 0 : animationsConfig.usePresence) == null ? void 0 : _c.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;
|
|
4853
4852
|
!isReactNative && hasRNAnimation && !isHOC && !isHydrated && (isAnimated = !1, curState.willHydrate = !0), process.env.NODE_ENV === "development" && time && time`pre-use-state`;
|
|
4854
|
-
let
|
|
4855
|
-
if (isHydrated && state.unmounted === "should-enter" && (state.unmounted = !0), presenceState && isAnimated && isHydrated) {
|
|
4856
|
-
|
|
4857
|
-
|
|
4853
|
+
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
|
+
if (isHydrated && state.unmounted === "should-enter" && (state.unmounted = !0), presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
4855
|
+
process.env.NODE_ENV === "development" && debugProp === "verbose" && console.warn(`has presenceState ${JSON.stringify(presenceState)}`);
|
|
4856
|
+
let { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
|
|
4857
|
+
(0, import_isObj.isObj)(custom) && Object.assign(props, custom);
|
|
4858
|
+
let exv = exitVariant ?? enterExitVariant, env = enterVariant ?? enterExitVariant;
|
|
4859
|
+
state.unmounted && env && staticConfig.variants[env] ? (process.env.NODE_ENV === "development" && debugProp === "verbose" && console.warn(`Animating presence ENTER "${env}"`), props[env] = !0) : isExiting && exv && (process.env.NODE_ENV === "development" && debugProp === "verbose" && console.warn(`Animating presence EXIT "${exv}"`), props[exv] = exitVariant !== enterExitVariant);
|
|
4858
4860
|
}
|
|
4859
4861
|
let shouldAvoidClasses = !!(!import_constants.isWeb || isAnimated && !supportsCSSVars || !staticConfig.acceptsClassName || propsIn.disableClassName), shouldForcePseudo = !!propsIn.forceStyle, noClassNames = shouldAvoidClasses || shouldForcePseudo, groupName = props.group, groupClassName = groupName ? `t_group_${props.group}` : "";
|
|
4860
4862
|
if (groupName && !curState.group) {
|
|
@@ -4899,16 +4901,16 @@ var require_createComponent_native = __commonJS({
|
|
|
4899
4901
|
inverse: props.themeInverse,
|
|
4900
4902
|
debug: debugProp
|
|
4901
4903
|
};
|
|
4902
|
-
typeof curState.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = () => stateRef.current.isListeningToTheme), themeStateProps.deopt = willBeAnimated
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
let name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : "") + (isAnimated ? "(animated)" : "") + (isReactNative ? "(rnw)" : ""), dataIs = propsIn["data-is"] || "", banner = `${internalID} ${name}${dataIs ? ` ${dataIs}` : ""} ${type}`;
|
|
4906
|
-
console.group(
|
|
4904
|
+
if (typeof curState.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = () => stateRef.current.isListeningToTheme), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
4905
|
+
let name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : "") + (isAnimated ? "(animated)" : "") + (isReactNative ? "(rnw)" : "") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `${internalID} ${name}${dataIs ? ` ${dataIs}` : ""} ${type}`;
|
|
4906
|
+
if (console.info(
|
|
4907
4907
|
`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`,
|
|
4908
4908
|
"background: green; color: white;"
|
|
4909
|
-
), import_constants.isServer
|
|
4910
|
-
|
|
4911
|
-
|
|
4909
|
+
), !import_constants.isServer) {
|
|
4910
|
+
console.groupEnd();
|
|
4911
|
+
let stateLog = `${`${state.press || state.pressIn ? " PRESS " : ""}`}${state.hover ? " HOVER " : ""}${state.focus ? " FOCUS" : " "}`, ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
4912
|
+
childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog}${stateLog}Props:`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({ state, staticConfig, elementType, themeStateProps }), (0, import_log.log)({ contextProps: styledContextProps, overriddenContextProps }), (0, import_log.log)({ presence, isAnimated, isHOC, hasAnimationProp, useAnimations }), console.groupEnd();
|
|
4913
|
+
}
|
|
4912
4914
|
}
|
|
4913
4915
|
process.env.NODE_ENV === "development" && time && time`pre-theme-media`;
|
|
4914
4916
|
let [themeState, theme] = (0, import_useTheme.useThemeWithState)(themeStateProps);
|
|
@@ -6053,8 +6055,7 @@ var require_styled_native = __commonJS({
|
|
|
6053
6055
|
...!isPlainStyledComponent && {
|
|
6054
6056
|
Component
|
|
6055
6057
|
},
|
|
6056
|
-
//
|
|
6057
|
-
// take away the Partial<> and it's fine
|
|
6058
|
+
// @ts-expect-error
|
|
6058
6059
|
variants,
|
|
6059
6060
|
defaultProps,
|
|
6060
6061
|
defaultVariants,
|
|
@@ -6091,6 +6092,20 @@ var require_types_native3 = __commonJS({
|
|
|
6091
6092
|
}
|
|
6092
6093
|
});
|
|
6093
6094
|
|
|
6095
|
+
// ../web/dist/cjs/interfaces/RNExclusiveTypes.native.js
|
|
6096
|
+
var require_RNExclusiveTypes_native = __commonJS({
|
|
6097
|
+
"../web/dist/cjs/interfaces/RNExclusiveTypes.native.js"(exports2, module2) {
|
|
6098
|
+
"use strict";
|
|
6099
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
6100
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
6101
|
+
for (let key of __getOwnPropNames2(from))
|
|
6102
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
6103
|
+
return to;
|
|
6104
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), RNExclusiveTypes_exports = {};
|
|
6105
|
+
module2.exports = __toCommonJS2(RNExclusiveTypes_exports);
|
|
6106
|
+
}
|
|
6107
|
+
});
|
|
6108
|
+
|
|
6094
6109
|
// ../web/dist/cjs/interfaces/GetRef.native.js
|
|
6095
6110
|
var require_GetRef_native = __commonJS({
|
|
6096
6111
|
"../web/dist/cjs/interfaces/GetRef.native.js"(exports2, module2) {
|
|
@@ -6737,6 +6752,7 @@ var require_index_native9 = __commonJS({
|
|
|
6737
6752
|
__reExport2(src_exports2, require_styled_native(), module2.exports);
|
|
6738
6753
|
__reExport2(src_exports2, require_setupReactNative_native(), module2.exports);
|
|
6739
6754
|
__reExport2(src_exports2, require_types_native3(), module2.exports);
|
|
6755
|
+
__reExport2(src_exports2, require_RNExclusiveTypes_native(), module2.exports);
|
|
6740
6756
|
__reExport2(src_exports2, require_GetRef_native(), module2.exports);
|
|
6741
6757
|
var import_config = require_config_native();
|
|
6742
6758
|
__reExport2(src_exports2, require_constants_native2(), module2.exports);
|
|
@@ -6841,12 +6857,14 @@ var idFn_default, init_idFn = __esm({
|
|
|
6841
6857
|
// src/index.tsx
|
|
6842
6858
|
var src_exports = {};
|
|
6843
6859
|
__export(src_exports, {
|
|
6860
|
+
RNTextProps: () => import_web.RNTextProps,
|
|
6861
|
+
RNViewProps: () => import_web.RNViewProps,
|
|
6844
6862
|
Stack: () => Stack,
|
|
6845
6863
|
Text: () => Text,
|
|
6846
6864
|
View: () => View
|
|
6847
6865
|
});
|
|
6848
6866
|
module.exports = __toCommonJS(src_exports);
|
|
6849
|
-
var import_react_native_use_responder_events = __toESM(require_index_native()),
|
|
6867
|
+
var import_react_native_use_responder_events = __toESM(require_index_native()), import_web2 = __toESM(require_index_native9()), import_react2 = require("react");
|
|
6850
6868
|
|
|
6851
6869
|
// src/createOptimizedView.native.tsx
|
|
6852
6870
|
var import_react = require("react");
|
|
@@ -7066,8 +7084,13 @@ var Pressability = require_fake_react_native().default, usePressability = (init_
|
|
|
7066
7084
|
|
|
7067
7085
|
// src/index.tsx
|
|
7068
7086
|
__reExport(src_exports, __toESM(require_index_native9()), module.exports);
|
|
7087
|
+
|
|
7088
|
+
// src/reactNativeTypes.ts
|
|
7089
|
+
var import_web = __toESM(require_index_native9());
|
|
7090
|
+
|
|
7091
|
+
// src/index.tsx
|
|
7069
7092
|
var baseViews = getBaseViews();
|
|
7070
|
-
(0,
|
|
7093
|
+
(0, import_web2.setupHooks)({
|
|
7071
7094
|
getBaseViews,
|
|
7072
7095
|
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
7073
7096
|
},
|
|
@@ -7078,7 +7101,7 @@ var baseViews = getBaseViews();
|
|
|
7078
7101
|
onPressIn,
|
|
7079
7102
|
onPressOut: onPressOut || onPress
|
|
7080
7103
|
};
|
|
7081
|
-
onPressOut && onPress && (inputEvents.onPressOut = (0,
|
|
7104
|
+
onPressOut && onPress && (inputEvents.onPressOut = (0, import_web2.composeEventHandlers)(onPress, onPressOut)), Object.assign(viewProps, inputEvents);
|
|
7082
7105
|
}
|
|
7083
7106
|
} else {
|
|
7084
7107
|
events && viewProps.hitSlop && (events.hitSlop = viewProps.hitSlop);
|
|
@@ -7090,7 +7113,7 @@ var baseViews = getBaseViews();
|
|
|
7090
7113
|
), events.onPress))
|
|
7091
7114
|
for (let key in pressability) {
|
|
7092
7115
|
let og = viewProps[key], val = pressability[key];
|
|
7093
|
-
viewProps[key] = og && !dontComposePressabilityKeys[key] ? (0,
|
|
7116
|
+
viewProps[key] = og && !dontComposePressabilityKeys[key] ? (0, import_web2.composeEventHandlers)(og, val) : val;
|
|
7094
7117
|
}
|
|
7095
7118
|
}
|
|
7096
7119
|
},
|
|
@@ -7105,9 +7128,11 @@ var baseViews = getBaseViews();
|
|
|
7105
7128
|
});
|
|
7106
7129
|
var dontComposePressabilityKeys = {
|
|
7107
7130
|
onClick: !0
|
|
7108
|
-
}, View =
|
|
7131
|
+
}, View = import_web2.View, Stack = import_web2.Stack, Text = import_web2.Text;
|
|
7109
7132
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7110
7133
|
0 && (module.exports = {
|
|
7134
|
+
RNTextProps,
|
|
7135
|
+
RNViewProps,
|
|
7111
7136
|
Stack,
|
|
7112
7137
|
Text,
|
|
7113
7138
|
View
|