@tamagui/core 1.121.10 → 1.121.12
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.cjs +11 -8
- package/dist/cjs/index.js +9 -8
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/index.native.js +12 -8
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +5 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +7 -3
- package/dist/esm/index.native.js.map +2 -2
- package/dist/native.js +5139 -4717
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +6889 -6492
- package/dist/test.native.js.map +3 -3
- package/package.json +7 -6
- package/src/index.tsx +12 -0
- package/types/createOptimizedView.native.d.ts.map +1 -1
- package/types/index.d.ts.map +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -19,14 +19,16 @@ var __export = (target, all) => {
|
|
|
19
19
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
20
|
value: !0
|
|
21
21
|
}), mod);
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
Stack: () => Stack,
|
|
25
25
|
Text: () => Text,
|
|
26
|
-
View: () => View
|
|
26
|
+
View: () => View,
|
|
27
|
+
createTamagui: () => createTamagui
|
|
27
28
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
29
|
-
var
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
|
+
var import_react_native_media_driver = require("@tamagui/react-native-media-driver"),
|
|
31
|
+
import_react_native_use_responder_events = require("@tamagui/react-native-use-responder-events"),
|
|
30
32
|
import_web = require("@tamagui/web"),
|
|
31
33
|
import_react = require("react"),
|
|
32
34
|
import_createOptimizedView = require("./createOptimizedView.cjs"),
|
|
@@ -34,9 +36,10 @@ var import_react_native_use_responder_events = require("@tamagui/react-native-us
|
|
|
34
36
|
import_getRect = require("./helpers/getRect.cjs"),
|
|
35
37
|
import_useElementLayout = require("./hooks/useElementLayout.cjs"),
|
|
36
38
|
import_Pressability = require("./vendor/Pressability.cjs");
|
|
37
|
-
__reExport(
|
|
38
|
-
__reExport(
|
|
39
|
-
const
|
|
39
|
+
__reExport(index_exports, require("@tamagui/web"), module.exports);
|
|
40
|
+
__reExport(index_exports, require("./reactNativeTypes.cjs"), module.exports);
|
|
41
|
+
const createTamagui = conf => (0, import_web.createTamagui)(conf),
|
|
42
|
+
baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
40
43
|
(0, import_web.setupHooks)({
|
|
41
44
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
42
45
|
setElementProps: node => {
|
package/dist/cjs/index.js
CHANGED
|
@@ -12,17 +12,18 @@ var __export = (target, all) => {
|
|
|
12
12
|
return to;
|
|
13
13
|
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var
|
|
16
|
-
__export(
|
|
15
|
+
var index_exports = {};
|
|
16
|
+
__export(index_exports, {
|
|
17
17
|
Stack: () => Stack,
|
|
18
18
|
Text: () => Text,
|
|
19
|
-
View: () => View
|
|
19
|
+
View: () => View,
|
|
20
|
+
createTamagui: () => createTamagui
|
|
20
21
|
});
|
|
21
|
-
module.exports = __toCommonJS(
|
|
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_getRect = require("./helpers/getRect"), import_useElementLayout = require("./hooks/useElementLayout"), import_Pressability = require("./vendor/Pressability");
|
|
23
|
-
__reExport(
|
|
24
|
-
__reExport(
|
|
25
|
-
const baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
22
|
+
module.exports = __toCommonJS(index_exports);
|
|
23
|
+
var import_react_native_media_driver = require("@tamagui/react-native-media-driver"), 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_getRect = require("./helpers/getRect"), import_useElementLayout = require("./hooks/useElementLayout"), import_Pressability = require("./vendor/Pressability");
|
|
24
|
+
__reExport(index_exports, require("@tamagui/web"), module.exports);
|
|
25
|
+
__reExport(index_exports, require("./reactNativeTypes"), module.exports);
|
|
26
|
+
const createTamagui = (conf) => (0, import_web.createTamagui)(conf), baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
26
27
|
(0, import_web.setupHooks)({
|
|
27
28
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
28
29
|
setElementProps: (node) => {
|
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,+
|
|
5
|
-
"names": ["WebView", "WebStack", "WebText"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCAA4B,+CAC5B,2CAAmC,uDAYnC,aAOO,yBACP,eAAkB,kBAElB,6BAAoC,kCACpC,sBAA6B,2BAC7B,iBAAwB,8BACxB,0BAAgD,qCAEhD,sBAAgC;AA+BhC,0BAAc,yBA3Dd;AA8DA,0BAAc,+BA9Dd;AAiEO,MAAM,gBAAyC,CAAC,aAM9C,WAAAA,eAAiB,IAAI,GAGxB,gBAAY,kCAAa;AAAA,IAI/B,uBAAW;AAAA,EACT;AAAA,EAEA,iBAAiB,CAAC,SAAS;AAEzB,IA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M,OAAO,WAAAC,MACP,QAAQ,WAAAC,OACR,OAAO,WAAAC;",
|
|
5
|
+
"names": ["createTamaguiWeb", "WebView", "WebStack", "WebText"]
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -20,17 +20,20 @@ var __export = (target, all) => {
|
|
|
20
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
21
|
mod
|
|
22
22
|
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
23
|
+
var index_exports = {};
|
|
24
|
+
__export(index_exports, {
|
|
25
25
|
Stack: () => Stack,
|
|
26
26
|
Text: () => Text,
|
|
27
|
-
View: () => View
|
|
27
|
+
View: () => View,
|
|
28
|
+
createTamagui: () => createTamagui
|
|
28
29
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
30
|
-
var import_react_native_use_responder_events = require("@tamagui/react-native-use-responder-events"), import_web = require("@tamagui/web"), import_react = __toESM(require("react")), import_createOptimizedView = require("./createOptimizedView"), import_getBaseViews = require("./getBaseViews"), import_getRect = require("./helpers/getRect"), import_useElementLayout = require("./hooks/useElementLayout"), import_Pressability = require("./vendor/Pressability");
|
|
31
|
-
__reExport(
|
|
32
|
-
__reExport(
|
|
33
|
-
var
|
|
30
|
+
module.exports = __toCommonJS(index_exports);
|
|
31
|
+
var import_react_native_media_driver = require("@tamagui/react-native-media-driver"), import_react_native_use_responder_events = require("@tamagui/react-native-use-responder-events"), import_web = require("@tamagui/web"), import_react = __toESM(require("react")), import_createOptimizedView = require("./createOptimizedView"), import_getBaseViews = require("./getBaseViews"), import_getRect = require("./helpers/getRect"), import_useElementLayout = require("./hooks/useElementLayout"), import_Pressability = require("./vendor/Pressability");
|
|
32
|
+
__reExport(index_exports, require("@tamagui/web"), module.exports);
|
|
33
|
+
__reExport(index_exports, require("./reactNativeTypes"), module.exports);
|
|
34
|
+
var createTamagui = function(conf) {
|
|
35
|
+
return conf.media && (conf.media = (0, import_react_native_media_driver.createMedia)(conf.media)), (0, import_web.createTamagui)(conf);
|
|
36
|
+
}, baseViews = (0, import_getBaseViews.getBaseViews)();
|
|
34
37
|
(0, import_web.setupHooks)({
|
|
35
38
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
36
39
|
setElementProps: function(node) {
|
|
@@ -92,6 +95,7 @@ var dontComposePressabilityKeys = {
|
|
|
92
95
|
Stack,
|
|
93
96
|
Text,
|
|
94
97
|
View,
|
|
98
|
+
createTamagui,
|
|
95
99
|
...require("@tamagui/web"),
|
|
96
100
|
...require("./reactNativeTypes")
|
|
97
101
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/core/src/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA
|
|
5
|
-
"names": ["baseViews", "getBaseViews", "setupHooks", "setElementProps", "node", "measure", "callback", "measureLayout", "relativeToNode", "success", "measureInWindow", "setTimeout", "height", "left", "top", "width", "getRect", "usePropsTransform", "elementType", "propsIn", "stateRef", "willHydrate", "process", "isDOM", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onResponderEnd", "onResponderGrant", "onResponderMove", "onResponderReject", "onResponderRelease", "onResponderStart", "onResponderTerminate", "onResponderTerminationRequest", "onScrollShouldSetResponder", "onScrollShouldSetResponderCapture", "onSelectionChangeShouldSetResponder", "onSelectionChangeShouldSetResponderCapture", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "collapsable", "focusable", "accessible", "accessibilityDisabled", "onLayout", "hrefAttrs", "plainDOMProps", "href", "download", "rel", "target", "useEvents", "viewProps", "events", "setStateShallow", "staticConfig", "pseudos", "onFocus", "onBlur", "isInput", "onPressIn", "onPressOut", "onPress", "inputEvents", "composeEventHandlers", "Object", "assign", "hitSlop", "pressability", "usePressability", "env", "NODE_ENV", "console", "info", "keys", "key", "og", "val", "dontComposePressabilityKeys", "useChildren", "children", "View", "createOptimizedView", "TAMAGUI_OPTIMIZE_NATIVE_VIEWS", "Text", "React", "createElement", "onClick", "WebView", "Stack", "WebStack", "WebText"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;uCAA4B,+CAC5B,2CAAmC,uDAYnC,aAOO,yBACP,eAAkB,2BAElB,6BAAoC,kCACpC,sBAA6B,2BAC7B,iBAAwB,8BACxB,0BAAgD,qCAEhD,sBAAgC;AA+BhC,0BAAc,yBA3Dd;AA8DA,0BAAc,+BA9Dd;AAiEO,IAAMA,gBAAyC,SAACC,MAAAA;AAEnD,SAAIA,KAAKC,UACPD,KAAKC,YAAQC,8CAAYF,KAAKC,KAAK,QAGhCE,WAAAA,eAAiBH,IAAAA;AAC1B,GAEMI,gBAAYC,kCAAAA;IAIlBC,uBAAW;EACTD;EAEAE,iBAAiB,SAACC,MAAAA;AAEhB,QAAIA,QAAQ,CAACA,KAAK,SAAY;UAE5BA,OAEAA,QAGAA;AALAA,OAAAA,QAAAA,MAAKC,YAALD,MAAKC,UAAY,SAACC,UAAAA;mBAAaC,uCAAcH,MAAM,MAAME,QAAAA;WAEzDF,SAAAA,MAAKG,kBAALH,OAAKG,gBAAkB,SAACC,gBAAgBC,SAAAA;mBACtCF,uCAAcH,MAAqBI,gBAAgBC,OAAAA;WAErDL,SAAAA,MAAKM,oBAALN,OAAKM,kBAAoB,SAACJ,UAAAA;AACxBK,mBAAW,WAAA;AACT,cAAM,EAAEC,QAAQC,MAAMC,KAAKC,MAAK,QAAKC,wBAAQZ,IAAAA;AAC7CE,mBAASO,MAAMC,KAAKC,OAAOH,MAAAA;QAC7B,GAAG,CAAA;MACL;IACF;EACF;EAEAK,kBAAkBC,aAAaC,SAASC,UAAUC,aAAW;AAC3D,QAAIC,GAAsC;AACxC,UAAMC,OAKJC,0BACAC,iCACAC,gBACAC,kBACAC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UAAUiF;AAE5B,mBAAOC,gDAAoBF,UAAU5B,WAAWpD,SAAAA;AAGlD,UAAIsB,QAAQgD,IAAIa,iCACVjE,gBAAgBlB,UAAUoF;AAE5BhC,yBAAU4B,WAAWA,UACdK,6BAAAA,QAAMC,cAAc,WAAWlC,SAAAA;;EAG5C;AAEJ,CAAA;AAEA,IAAM0B,8BAA8B;EAClCS,SAAS;AACX,GAIaN,OAAOO,WAAAA,MACPC,QAAQC,WAAAA,OACRN,OAAOO,WAAAA;",
|
|
5
|
+
"names": ["createTamagui", "conf", "media", "createMedia", "createTamaguiWeb", "baseViews", "getBaseViews", "setupHooks", "setElementProps", "node", "measure", "callback", "measureLayout", "relativeToNode", "success", "measureInWindow", "setTimeout", "height", "left", "top", "width", "getRect", "usePropsTransform", "elementType", "propsIn", "stateRef", "willHydrate", "process", "isDOM", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onResponderEnd", "onResponderGrant", "onResponderMove", "onResponderReject", "onResponderRelease", "onResponderStart", "onResponderTerminate", "onResponderTerminationRequest", "onScrollShouldSetResponder", "onScrollShouldSetResponderCapture", "onSelectionChangeShouldSetResponder", "onSelectionChangeShouldSetResponderCapture", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "collapsable", "focusable", "accessible", "accessibilityDisabled", "onLayout", "hrefAttrs", "plainDOMProps", "href", "download", "rel", "target", "useEvents", "viewProps", "events", "setStateShallow", "staticConfig", "pseudos", "onFocus", "onBlur", "isInput", "onPressIn", "onPressOut", "onPress", "inputEvents", "composeEventHandlers", "Object", "assign", "hitSlop", "pressability", "usePressability", "env", "NODE_ENV", "console", "info", "keys", "key", "og", "val", "dontComposePressabilityKeys", "useChildren", "children", "View", "createOptimizedView", "TAMAGUI_OPTIMIZE_NATIVE_VIEWS", "Text", "React", "createElement", "onClick", "WebView", "Stack", "WebStack", "WebText"]
|
|
6
6
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import "@tamagui/react-native-media-driver";
|
|
1
2
|
import { useResponderEvents } from "@tamagui/react-native-use-responder-events";
|
|
2
3
|
import {
|
|
3
4
|
Stack as WebStack,
|
|
4
5
|
Text as WebText,
|
|
5
6
|
View as WebView,
|
|
7
|
+
createTamagui as createTamaguiWeb,
|
|
6
8
|
setupHooks
|
|
7
9
|
} from "@tamagui/web";
|
|
8
10
|
import "react";
|
|
@@ -13,7 +15,7 @@ import { measureLayout, useElementLayout } from "./hooks/useElementLayout";
|
|
|
13
15
|
import "./vendor/Pressability";
|
|
14
16
|
export * from "@tamagui/web";
|
|
15
17
|
export * from "./reactNativeTypes";
|
|
16
|
-
const baseViews = getBaseViews();
|
|
18
|
+
const createTamagui = (conf) => createTamaguiWeb(conf), baseViews = getBaseViews();
|
|
17
19
|
setupHooks({
|
|
18
20
|
getBaseViews,
|
|
19
21
|
setElementProps: (node) => {
|
|
@@ -70,6 +72,7 @@ const View = WebView, Stack = WebStack, Text = WebText;
|
|
|
70
72
|
export {
|
|
71
73
|
Stack,
|
|
72
74
|
Text,
|
|
73
|
-
View
|
|
75
|
+
View,
|
|
76
|
+
createTamagui
|
|
74
77
|
};
|
|
75
78
|
//# sourceMappingURL=index.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;AAYnC;AAAA,EACE,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER;AAAA,OACK;AACP,OAAkB;AAElB,OAAoC;AACpC,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,eAAe,wBAAwB;AAEhD,OAAgC;AA+BhC,cAAc;AAGd,cAAc;
|
|
4
|
+
"mappings": "AAAA,OAA4B;AAC5B,SAAS,0BAA0B;AAYnC;AAAA,EACE,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ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AI;AAClC,UAAI,YAAY,SACd,cAAc,WAAW,WAEvB,QACF,cAAc,MAAM,MAElB,OAAO,UAAW,aACpB,cAAc,SAAS,OAAO,OAAO,CAAC,MAAM,MAAM,IAAI,MAAM,KAAK;AAAA,QAErE;AACA,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;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.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import "@tamagui/react-native-media-driver";
|
|
1
2
|
import { useResponderEvents } from "@tamagui/react-native-use-responder-events";
|
|
2
|
-
import { Stack as WebStack, Text as WebText, View as WebView, setupHooks } from "@tamagui/web";
|
|
3
|
+
import { Stack as WebStack, Text as WebText, View as WebView, createTamagui as createTamaguiWeb, setupHooks } from "@tamagui/web";
|
|
3
4
|
import "react";
|
|
4
5
|
import "./createOptimizedView.mjs";
|
|
5
6
|
import { getBaseViews } from "./getBaseViews.mjs";
|
|
@@ -8,7 +9,8 @@ import { measureLayout, useElementLayout } from "./hooks/useElementLayout.mjs";
|
|
|
8
9
|
import "./vendor/Pressability.mjs";
|
|
9
10
|
export * from "@tamagui/web";
|
|
10
11
|
export * from "./reactNativeTypes.mjs";
|
|
11
|
-
const
|
|
12
|
+
const createTamagui = conf => createTamaguiWeb(conf),
|
|
13
|
+
baseViews = getBaseViews();
|
|
12
14
|
setupHooks({
|
|
13
15
|
getBaseViews,
|
|
14
16
|
setElementProps: node => {
|
|
@@ -75,5 +77,5 @@ setupHooks({
|
|
|
75
77
|
const View = WebView,
|
|
76
78
|
Stack = WebStack,
|
|
77
79
|
Text = WebText;
|
|
78
|
-
export { Stack, Text, View };
|
|
80
|
+
export { Stack, Text, View, createTamagui };
|
|
79
81
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useResponderEvents","Stack","WebStack","Text","WebText","View","WebView","setupHooks","getBaseViews","getRect","measureLayout","useElementLayout","baseViews","setElementProps","node","measure","callback","relativeToNode","success","measureInWindow","setTimeout","height","left","top","width","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","href","download","rel","target","charAt","useEvents","viewProps","events","pseudos","setStateShallow","staticConfig"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,kBAAA,QAA0B;AAYnC,SACEC,KAAA,IAASC,QAAA,EACTC,IAAA,IAAQC,OAAA,EACRC,IAAA,IAAQC,OAAA,EAERC,UAAA,QACK;AACP,OAAkB;AAElB,OAAoC;AACpC,SAASC,YAAA,QAAoB;AAC7B,SAASC,OAAA,QAAe;AACxB,SAASC,aAAA,EAAeC,gBAAA,QAAwB;AAEhD,OAAgC;AA+BhC,cAAc;AAGd,cAAc;
|
|
1
|
+
{"version":3,"names":["useResponderEvents","Stack","WebStack","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","getBaseViews","getRect","measureLayout","useElementLayout","conf","baseViews","setElementProps","node","measure","callback","relativeToNode","success","measureInWindow","setTimeout","height","left","top","width","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","href","download","rel","target","charAt","useEvents","viewProps","events","pseudos","setStateShallow","staticConfig"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAA4B;AAC5B,SAASA,kBAAA,QAA0B;AAYnC,SACEC,KAAA,IAASC,QAAA,EACTC,IAAA,IAAQC,OAAA,EACRC,IAAA,IAAQC,OAAA,EAERC,aAAA,IAAiBC,gBAAA,EACjBC,UAAA,QACK;AACP,OAAkB;AAElB,OAAoC;AACpC,SAASC,YAAA,QAAoB;AAC7B,SAASC,OAAA,QAAe;AACxB,SAASC,aAAA,EAAeC,gBAAA,QAAwB;AAEhD,OAAgC;AA+BhC,cAAc;AAGd,cAAc;AAGP,MAAMN,aAAA,GAA0CO,IAAA,IAM9CN,gBAAA,CAAiBM,IAAI;EAGxBC,SAAA,GAAYL,YAAA,CAAa;AAI/BD,UAAA,CAAW;EACTC,YAAA;EAEAM,eAAA,EAAkBC,IAAA,IAAS;IAErBA,IAAA,IAAQ,CAACA,IAAA,CAAKC,OAAA,KAEhBD,IAAA,CAAKC,OAAA,KAAaC,QAAA,IAAaP,aAAA,CAAcK,IAAA,EAAM,MAAME,QAAQ,GAEjEF,IAAA,CAAKL,aAAA,KAAkB,CAACQ,cAAA,EAAgBC,OAAA,KACtCT,aAAA,CAAcK,IAAA,EAAqBG,cAAA,EAAgBC,OAAO,GAE5DJ,IAAA,CAAKK,eAAA,KAAqBH,QAAA,IAAa;MACrCI,UAAA,CAAW,MAAM;QACf,MAAM;UAAEC,MAAA;UAAQC,IAAA;UAAMC,GAAA;UAAKC;QAAM,IAAIhB,OAAA,CAAQM,IAAmB;QAChEE,QAAA,CAASM,IAAA,EAAMC,GAAA,EAAKC,KAAA,EAAOH,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AOC,OAAA;EACPL,KAAA,GAAQC,QAAA;EACRC,IAAA,GAAOC,OAAA","ignoreList":[]}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { createMedia } from "@tamagui/react-native-media-driver";
|
|
1
2
|
import "@tamagui/react-native-use-responder-events";
|
|
2
|
-
import { Stack as WebStack, Text as WebText, View as WebView, composeEventHandlers, setupHooks } from "@tamagui/web";
|
|
3
|
+
import { Stack as WebStack, Text as WebText, View as WebView, composeEventHandlers, createTamagui as createTamaguiWeb, setupHooks } from "@tamagui/web";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { createOptimizedView } from "./createOptimizedView";
|
|
5
6
|
import { getBaseViews } from "./getBaseViews";
|
|
@@ -8,7 +9,9 @@ import { measureLayout } from "./hooks/useElementLayout";
|
|
|
8
9
|
import { usePressability } from "./vendor/Pressability";
|
|
9
10
|
export * from "@tamagui/web";
|
|
10
11
|
export * from "./reactNativeTypes";
|
|
11
|
-
var
|
|
12
|
+
var createTamagui = function(conf) {
|
|
13
|
+
return conf.media && (conf.media = createMedia(conf.media)), createTamaguiWeb(conf);
|
|
14
|
+
}, baseViews = getBaseViews();
|
|
12
15
|
setupHooks({
|
|
13
16
|
getBaseViews,
|
|
14
17
|
setElementProps: function(node) {
|
|
@@ -68,6 +71,7 @@ var dontComposePressabilityKeys = {
|
|
|
68
71
|
export {
|
|
69
72
|
Stack,
|
|
70
73
|
Text,
|
|
71
|
-
View
|
|
74
|
+
View,
|
|
75
|
+
createTamagui
|
|
72
76
|
};
|
|
73
77
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/core/src/index.tsx"],
|
|
4
|
-
"mappings": "AAAA,OAAmC;AAYnC,
|
|
5
|
-
"names": ["Stack", "WebStack", "Text", "WebText", "View", "WebView", "composeEventHandlers", "setupHooks", "React", "createOptimizedView", "getBaseViews", "getRect", "measureLayout", "usePressability", "baseViews", "setElementProps", "node", "measure", "callback", "relativeToNode", "success", "measureInWindow", "setTimeout", "height", "left", "top", "width", "usePropsTransform", "elementType", "propsIn", "stateRef", "willHydrate", "process", "isDOM", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onResponderEnd", "onResponderGrant", "onResponderMove", "onResponderReject", "onResponderRelease", "onResponderStart", "onResponderTerminate", "onResponderTerminationRequest", "onScrollShouldSetResponder", "onScrollShouldSetResponderCapture", "onSelectionChangeShouldSetResponder", "onSelectionChangeShouldSetResponderCapture", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "collapsable", "focusable", "accessible", "accessibilityDisabled", "onLayout", "hrefAttrs", "plainDOMProps", "href", "download", "rel", "target", "useEvents", "viewProps", "events", "setStateShallow", "staticConfig", "pseudos", "onFocus", "onBlur", "isInput", "onPressIn", "onPressOut", "onPress", "inputEvents", "Object", "assign", "hitSlop", "pressability", "env", "NODE_ENV", "console", "info", "keys", "key", "og", "val", "dontComposePressabilityKeys", "useChildren", "children", "TAMAGUI_OPTIMIZE_NATIVE_VIEWS", "createElement", "onClick"]
|
|
4
|
+
"mappings": "AAAA,SAASA,mBAAmB;AAC5B,OAAmC;AAYnC,SACEC,SAASC,UACTC,QAAQC,SACRC,QAAQC,SACRC,sBACAC,iBAAiBC,kBACjBC,kBACK;AACP,OAAOC,WAAW;AAElB,SAASC,2BAA2B;AACpC,SAASC,oBAAoB;AAC7B,SAASC,eAAe;AACxB,SAASC,qBAAuC;AAEhD,SAASC,uBAAuB;AA+BhC,cAAc;AAGd,cAAc;AAGP,IAAMR,gBAAyC,SAACS,MAAAA;AAEnD,SAAIA,KAAKC,UACPD,KAAKC,QAAQlB,YAAYiB,KAAKC,KAAK,IAGhCT,iBAAiBQ,IAAAA;AAC1B,GAEME,YAAYN,aAAAA;AAIlBH,WAAW;EACTG;EAEAO,iBAAiB,SAACC,MAAAA;AAEhB,QAAIA,QAAQ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AUc,YACtBb,OAAOa,UAAUd,UAAUc;AAI7B,UAAMC,eAAelE,gBAAgBoD,MAAAA;AAErC,UAAIA,WACE/B,QAAQ8C,IAAIC,aAAa,iBACvBjB,UAAU,SACZkB,QAAQC,KACN,sBAAsB,CAAC,CAAClB,OAAOS,OAAO,sCAAsCE,OAAOQ,KACjFL,gBAAgB,CAAC,CAAA,CAAA,EAChB,GAKLd,OAAOS;AACT,iBAAWW,OAAON,cAAc;AAC9B,cAAMO,KAAKtB,UAAUqB,GAAAA,GACfE,MAAMR,aAAaM,GAAAA;AACzBrB,oBAAUqB,GAAAA,IACRC,MAAM,CAACE,4BAA4BH,GAAAA,IAC/BjF,qBAAqBkF,IAAIC,GAAAA,IACzBA;QACR;IAGN;EAEJ;EAIEE,YAAY3D,aAAa4D,UAAU1B,WAAWC,QAAQE,cAAY;AAChE,QAAIjC,QAAQ8C,IAAIC,aAAa,QAK7B;UAAInD,gBAAgBd,UAAUd;AAE5B,eAAOO,oBAAoBiF,UAAU1B,WAAWhD,SAAAA;AAGlD,UAAIkB,QAAQ8C,IAAIW,iCACV7D,gBAAgBd,UAAUhB;AAE5BgE,yBAAU0B,WAAWA,UACdlF,sBAAMoF,cAAc,WAAW5B,SAAAA;;EAG5C;AAEJ,CAAA;AAEA,IAAMwB,8BAA8B;EAClCK,SAAS;AACX,GAIa3F,OAAOC,SACPL,QAAQC,UACRC,OAAOC;",
|
|
5
|
+
"names": ["createMedia", "Stack", "WebStack", "Text", "WebText", "View", "WebView", "composeEventHandlers", "createTamagui", "createTamaguiWeb", "setupHooks", "React", "createOptimizedView", "getBaseViews", "getRect", "measureLayout", "usePressability", "conf", "media", "baseViews", "setElementProps", "node", "measure", "callback", "relativeToNode", "success", "measureInWindow", "setTimeout", "height", "left", "top", "width", "usePropsTransform", "elementType", "propsIn", "stateRef", "willHydrate", "process", "isDOM", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onResponderEnd", "onResponderGrant", "onResponderMove", "onResponderReject", "onResponderRelease", "onResponderStart", "onResponderTerminate", "onResponderTerminationRequest", "onScrollShouldSetResponder", "onScrollShouldSetResponderCapture", "onSelectionChangeShouldSetResponder", "onSelectionChangeShouldSetResponderCapture", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "collapsable", "focusable", "accessible", "accessibilityDisabled", "onLayout", "hrefAttrs", "plainDOMProps", "href", "download", "rel", "target", "useEvents", "viewProps", "events", "setStateShallow", "staticConfig", "pseudos", "onFocus", "onBlur", "isInput", "onPressIn", "onPressOut", "onPress", "inputEvents", "Object", "assign", "hitSlop", "pressability", "env", "NODE_ENV", "console", "info", "keys", "key", "og", "val", "dontComposePressabilityKeys", "useChildren", "children", "TAMAGUI_OPTIMIZE_NATIVE_VIEWS", "createElement", "onClick"]
|
|
6
6
|
}
|