@tamagui/core 1.111.2 → 1.111.4
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/esm/helpers/getRect.native.mjs +1 -1
- package/dist/esm/hooks/useElementLayout.native.mjs +1 -1
- package/dist/esm/hooks/usePlatformMethods.native.mjs +2 -2
- package/dist/esm/index.native.mjs +6 -6
- package/dist/esm/index.native.mjs.map +1 -1
- package/dist/native.js +3 -2
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +3 -2
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
2
|
-
import { getBoundingClientRect } from "../helpers/getBoundingClientRect.mjs";
|
|
2
|
+
import { getBoundingClientRect } from "../helpers/getBoundingClientRect.native.mjs";
|
|
3
3
|
function _type_of(obj) {
|
|
4
4
|
"@swc/helpers - typeof";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
2
|
-
import { getRect } from "../helpers/getRect.mjs";
|
|
3
|
-
import { measureLayout } from "./useElementLayout.mjs";
|
|
2
|
+
import { getRect } from "../helpers/getRect.native.mjs";
|
|
3
|
+
import { measureLayout } from "./useElementLayout.native.mjs";
|
|
4
4
|
function usePlatformMethods(hostRef) {
|
|
5
5
|
useIsomorphicLayoutEffect(function () {
|
|
6
6
|
var node = hostRef.current;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "@tamagui/react-native-use-responder-events";
|
|
3
3
|
import { Stack as WebStack, Text as WebText, View as WebView, composeEventHandlers, setupHooks } from "@tamagui/web";
|
|
4
|
-
import { createOptimizedView } from "./createOptimizedView.mjs";
|
|
5
|
-
import { getBaseViews } from "./getBaseViews.mjs";
|
|
6
|
-
import "./hooks/useElementLayout.mjs";
|
|
7
|
-
import "./hooks/usePlatformMethods.mjs";
|
|
8
|
-
import { usePressability } from "./vendor/Pressability.mjs";
|
|
4
|
+
import { createOptimizedView } from "./createOptimizedView.native.mjs";
|
|
5
|
+
import { getBaseViews } from "./getBaseViews.native.mjs";
|
|
6
|
+
import "./hooks/useElementLayout.native.mjs";
|
|
7
|
+
import "./hooks/usePlatformMethods.native.mjs";
|
|
8
|
+
import { usePressability } from "./vendor/Pressability.native.mjs";
|
|
9
9
|
export * from "@tamagui/web";
|
|
10
|
-
export * from "./reactNativeTypes.mjs";
|
|
10
|
+
export * from "./reactNativeTypes.native.mjs";
|
|
11
11
|
var baseViews = getBaseViews();
|
|
12
12
|
setupHooks({
|
|
13
13
|
getBaseViews,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Stack","WebStack","Text","WebText","View","WebView","composeEventHandlers","setupHooks","createOptimizedView","getBaseViews","usePressability","baseViews","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","hostRef","href","download","rel","target","useEvents","viewProps","events","param","setStateShallow","staticConfig","pseudos","onFocus","onBlur","isInput","onPressIn","onPressOut","onPress","inputEvents","Object","assign","hitSlop","pressability","process","env","NODE_ENV","debug","console","info","keys","key","og","val","dontComposePressabilityKeys","useChildren","children","TAMAGUI_OPTIMIZE_NATIVE_VIEWS","createElement","onClick"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAClB,mDAAmC;AAYnC,SAAAC,KAAA,IAAAC,QAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,oBAAA,EAAAC,UAAA;AAAA,SACEC,mBAAS;AAAA,SACTC,YAAQ;AAAA,OACR,
|
|
1
|
+
{"version":3,"names":["React","Stack","WebStack","Text","WebText","View","WebView","composeEventHandlers","setupHooks","createOptimizedView","getBaseViews","usePressability","baseViews","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","hostRef","href","download","rel","target","useEvents","viewProps","events","param","setStateShallow","staticConfig","pseudos","onFocus","onBlur","isInput","onPressIn","onPressOut","onPress","inputEvents","Object","assign","hitSlop","pressability","process","env","NODE_ENV","debug","console","info","keys","key","og","val","dontComposePressabilityKeys","useChildren","children","TAMAGUI_OPTIMIZE_NATIVE_VIEWS","createElement","onClick"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAClB,mDAAmC;AAYnC,SAAAC,KAAA,IAAAC,QAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,oBAAA,EAAAC,UAAA;AAAA,SACEC,mBAAS;AAAA,SACTC,YAAQ;AAAA,OACR,qCAAQ;AAAA,OAER;AAAA,SACKC,eAAA;AAEP,cAAoC;AACpC,cAAS,+BAAoB;AAC7B,IAAAC,SAAS,GAAAF,YAAA;AACTF,UAAS;EAETE,YAAgC;EA+BhCG,iBAAcA,CAAAC,WAAA,EAAAC,OAAA,EAAAC,QAAA,EAAAC,WAAA;IAGd;MAEM,IAAAC,KAAA,E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
|
}
|
|
8905
|
-
var niceKey = (0, import_helpers.simpleHash)(key, 1e3), name = parentPath && parentPath !== "color" ? `${parentPath}-${niceKey}` : niceKey;
|
|
8905
|
+
var niceKey = (0, import_helpers.simpleHash)(key, 1e3), name = parentPath && parentPath !== "t-color" ? `${parentPath}-${niceKey}` : niceKey;
|
|
8906
8906
|
if (val && typeof val == "object") {
|
|
8907
8907
|
res[key] = createVariables(tokens[key], name, !1);
|
|
8908
8908
|
continue;
|
|
@@ -9687,7 +9687,8 @@ var require_createTokens_native = __commonJS({
|
|
|
9687
9687
|
module2.exports = __toCommonJS2(createTokens_exports);
|
|
9688
9688
|
var import_createVariables = require_createVariables_native();
|
|
9689
9689
|
function createTokens(tokens) {
|
|
9690
|
-
|
|
9690
|
+
var _process_env_TAMAGUI_TOKEN_PREFIX;
|
|
9691
|
+
return (0, import_createVariables.createVariables)(tokens, (_process_env_TAMAGUI_TOKEN_PREFIX = process.env.TAMAGUI_TOKEN_PREFIX) !== null && _process_env_TAMAGUI_TOKEN_PREFIX !== void 0 ? _process_env_TAMAGUI_TOKEN_PREFIX : "t");
|
|
9691
9692
|
}
|
|
9692
9693
|
}
|
|
9693
9694
|
});
|