@tamagui/core 1.125.26 → 1.125.27
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/getBaseViews.native.js +6 -1
- package/dist/cjs/getBaseViews.native.js.map +2 -2
- package/dist/esm/getBaseViews.native.js +7 -1
- package/dist/esm/getBaseViews.native.js.map +1 -1
- package/dist/native.js +6 -4
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +2 -0
- package/dist/test.native.js.map +2 -2
- package/package.json +8 -8
- package/src/getBaseViews.native.ts +2 -1
- package/types/getBaseViews.native.d.ts.map +1 -1
- package/types/helpers/getBoundingClientRect.d.ts.map +1 -1
- package/types/helpers/getRect.d.ts.map +1 -1
- package/types/hooks/useElementLayout.d.ts.map +1 -1
- package/types/inject-styles.d.ts.map +1 -1
- package/types/vendor/Pressability.d.ts.map +1 -1
|
@@ -20,7 +20,12 @@ __export(getBaseViews_native_exports, {
|
|
|
20
20
|
module.exports = __toCommonJS(getBaseViews_native_exports);
|
|
21
21
|
function getBaseViews() {
|
|
22
22
|
var native = require("react-native"), View, TextAncestor;
|
|
23
|
-
|
|
23
|
+
if (process.env.NODE_ENV !== "test") {
|
|
24
|
+
View = require("react-native/Libraries/Components/View/ViewNativeComponent").default;
|
|
25
|
+
var TextAncestorModule = require("react-native/Libraries/Text/TextAncestor"), _TextAncestorModule_default;
|
|
26
|
+
TextAncestor = (_TextAncestorModule_default = TextAncestorModule.default) !== null && _TextAncestorModule_default !== void 0 ? _TextAncestorModule_default : TextAncestor;
|
|
27
|
+
}
|
|
28
|
+
return View || (View = native.View || native.default.View), {
|
|
24
29
|
View,
|
|
25
30
|
Text: native.Text || native.default.Text,
|
|
26
31
|
StyleSheet: native.StyleSheet || native.default.StyleSheet,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/core/core/src/getBaseViews.native.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,SAASA,eAAAA;AACd,MAAMC,SAASC,QAAQ,cAAA,GAEnBC,MACAC;AAEJ,
|
|
5
|
-
"names": ["getBaseViews", "native", "require", "View", "TextAncestor", "process", "env", "NODE_ENV", "default", "Text", "StyleSheet", "Pressable"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,SAASA,eAAAA;AACd,MAAMC,SAASC,QAAQ,cAAA,GAEnBC,MACAC;AAEJ,MAAIC,QAAQC,IAAIC,aAAa,QAAQ;AACnCJ,WAAOD,QAAQ,4DAAA,EAA8DM;AAC7E,QAAMC,qBAAqBP,QAAQ,0CAAA,GACpBO;AAAfL,oBAAeK,8BAAAA,mBAAmBD,aAAO,QAA1BC,gCAAAA,SAAAA,8BAA8BL;EAC/C;AAEA,SAAKD,SACHA,OAAOF,OAAOE,QAAQF,OAAOO,QAAQL,OAGhC;IACLA;IACAO,MAAMT,OAAOS,QAAQT,OAAOO,QAAQE;IACpCC,YAAYV,OAAOU,cAAcV,OAAOO,QAAQG;IAChDP;IACAQ,WAAWX,OAAOW,aAAaX,OAAOO,QAAQI;EAChD;AACF;",
|
|
5
|
+
"names": ["getBaseViews", "native", "require", "View", "TextAncestor", "process", "env", "NODE_ENV", "default", "TextAncestorModule", "Text", "StyleSheet", "Pressable"]
|
|
6
6
|
}
|
|
@@ -2,7 +2,13 @@ function getBaseViews() {
|
|
|
2
2
|
var native = require("react-native"),
|
|
3
3
|
View,
|
|
4
4
|
TextAncestor;
|
|
5
|
-
|
|
5
|
+
if (process.env.NODE_ENV !== "test") {
|
|
6
|
+
View = require("react-native/Libraries/Components/View/ViewNativeComponent").default;
|
|
7
|
+
var TextAncestorModule = require("react-native/Libraries/Text/TextAncestor"),
|
|
8
|
+
_TextAncestorModule_default;
|
|
9
|
+
TextAncestor = (_TextAncestorModule_default = TextAncestorModule.default) !== null && _TextAncestorModule_default !== void 0 ? _TextAncestorModule_default : TextAncestor;
|
|
10
|
+
}
|
|
11
|
+
return View || (View = native.View || native.default.View), {
|
|
6
12
|
View,
|
|
7
13
|
Text: native.Text || native.default.Text,
|
|
8
14
|
StyleSheet: native.StyleSheet || native.default.StyleSheet,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getBaseViews","native","require","View","TextAncestor","process","env","NODE_ENV","default","Text","StyleSheet","Pressable"],"sources":["../../src/Users/n8/tamagui/code/core/core/src/getBaseViews.native.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,aAAA;EACd,IAAMC,MAAA,GAASC,OAAA,CAAQ;IAEnBC,IAAA;IACAC,YAAA;EAEJ,
|
|
1
|
+
{"version":3,"names":["getBaseViews","native","require","View","TextAncestor","process","env","NODE_ENV","default","TextAncestorModule","_TextAncestorModule_default","Text","StyleSheet","Pressable"],"sources":["../../src/Users/n8/tamagui/code/core/core/src/getBaseViews.native.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,aAAA;EACd,IAAMC,MAAA,GAASC,OAAA,CAAQ;IAEnBC,IAAA;IACAC,YAAA;EAEJ,IAAIC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,QAAQ;IACnCJ,IAAA,GAAOD,OAAA,CAAQ,8DAA8DM,OAAA;IAC7E,IAAMC,kBAAA,GAAqBP,OAAA,CAAQ;MACpBQ,2BAAA;IAAfN,YAAA,IAAeM,2BAAA,GAAAD,kBAAA,CAAmBD,OAAA,MAAO,QAA1BE,2BAAA,cAAAA,2BAAA,GAA8BN,YAAA;EAC/C;EAEA,OAAKD,IAAA,KACHA,IAAA,GAAOF,MAAA,CAAOE,IAAA,IAAQF,MAAA,CAAOO,OAAA,CAAQL,IAAA,GAGhC;IACLA,IAAA;IACAQ,IAAA,EAAMV,MAAA,CAAOU,IAAA,IAAQV,MAAA,CAAOO,OAAA,CAAQG,IAAA;IACpCC,UAAA,EAAYX,MAAA,CAAOW,UAAA,IAAcX,MAAA,CAAOO,OAAA,CAAQI,UAAA;IAChDR,YAAA;IACAS,SAAA,EAAWZ,MAAA,CAAOY,SAAA,IAAaZ,MAAA,CAAOO,OAAA,CAAQK;EAChD;AACF","ignoreList":[]}
|
package/dist/native.js
CHANGED
|
@@ -6688,9 +6688,6 @@ var require_Theme_native = __commonJS({
|
|
|
6688
6688
|
if (import_constants2.isWeb) {
|
|
6689
6689
|
var { className, style } = getThemeClassNameAndStyle(themeState, props, isRoot);
|
|
6690
6690
|
if (children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
6691
|
-
...process.env.NODE_ENV === "development" && {
|
|
6692
|
-
"data-theme-id": themeState.id
|
|
6693
|
-
},
|
|
6694
6691
|
className: `${className} _dsp_contents is_Theme`,
|
|
6695
6692
|
style,
|
|
6696
6693
|
children
|
|
@@ -12171,7 +12168,12 @@ function getAccessibilityRoleFromRole(role) {
|
|
|
12171
12168
|
// src/getBaseViews.native.ts
|
|
12172
12169
|
function getBaseViews() {
|
|
12173
12170
|
var native = require("react-native"), View2, TextAncestor;
|
|
12174
|
-
|
|
12171
|
+
if (process.env.NODE_ENV !== "test") {
|
|
12172
|
+
View2 = require("react-native/Libraries/Components/View/ViewNativeComponent").default;
|
|
12173
|
+
var TextAncestorModule = require("react-native/Libraries/Text/TextAncestor"), _TextAncestorModule_default;
|
|
12174
|
+
TextAncestor = (_TextAncestorModule_default = TextAncestorModule.default) !== null && _TextAncestorModule_default !== void 0 ? _TextAncestorModule_default : TextAncestor;
|
|
12175
|
+
}
|
|
12176
|
+
return View2 || (View2 = native.View || native.default.View), {
|
|
12175
12177
|
View: View2,
|
|
12176
12178
|
Text: native.Text || native.default.Text,
|
|
12177
12179
|
StyleSheet: native.StyleSheet || native.default.StyleSheet,
|