@tamagui/core 1.129.6-1751237024118 → 1.129.7
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 +0 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +0 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/native.js +77 -76
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +76 -75
- package/dist/test.native.js.map +2 -2
- package/package.json +9 -9
- package/src/index.tsx +0 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -26,7 +26,6 @@ __export(index_exports, {
|
|
|
26
26
|
Text: () => Text,
|
|
27
27
|
View: () => View,
|
|
28
28
|
createTamagui: () => createTamagui,
|
|
29
|
-
getElementLayoutEvent: () => import_use_element_layout2.getElementLayoutEvent,
|
|
30
29
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
31
30
|
});
|
|
32
31
|
module.exports = __toCommonJS(index_exports);
|
package/dist/cjs/index.js
CHANGED
|
@@ -19,7 +19,6 @@ __export(index_exports, {
|
|
|
19
19
|
Text: () => Text,
|
|
20
20
|
View: () => View,
|
|
21
21
|
createTamagui: () => createTamagui,
|
|
22
|
-
getElementLayoutEvent: () => import_use_element_layout2.getElementLayoutEvent,
|
|
23
22
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
24
23
|
});
|
|
25
24
|
module.exports = __toCommonJS(index_exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
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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;AAOJ,WALI,eAAe,eACjB,4CAAiB,UAAW,QAAqB,WAAb,MAA6B,OACjE,6DAAmB,UAAW,QAAoB,UAAZ,MAAmB,IAGvD,OAAO;AAET,YAAI,cAAc,QAAQ,WAAW;AACnC,gBAAM,EAAE,UAAU,KAAK,OAAO,IAAI;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,WAAAC,MACP,QAAQ,WAAAC,OACR,OAAO,WAAAC;",
|
|
5
5
|
"names": ["import_use_element_layout", "WebTamaguiProvider", "createTamaguiWeb", "WebView", "WebStack", "WebText"]
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -27,7 +27,6 @@ __export(index_exports, {
|
|
|
27
27
|
Text: () => Text,
|
|
28
28
|
View: () => View,
|
|
29
29
|
createTamagui: () => createTamagui,
|
|
30
|
-
getElementLayoutEvent: () => import_use_element_layout2.getElementLayoutEvent,
|
|
31
30
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
32
31
|
});
|
|
33
32
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -107,7 +106,6 @@ var dontComposePressabilityKeys = {
|
|
|
107
106
|
Text,
|
|
108
107
|
View,
|
|
109
108
|
createTamagui,
|
|
110
|
-
getElementLayoutEvent,
|
|
111
109
|
setOnLayoutStrategy,
|
|
112
110
|
...require("@tamagui/web"),
|
|
113
111
|
...require("./reactNativeTypes")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,mCAA4B,+CAC5B,2CAAmC,uDAanC,aASO,yBACP,eAAkB,2BAElB,4BAKO,wCACP,8BAAqC,mCACrC,6BAAoC,kCACpC,sBAA6B,2BAE7B,sBAAgC,kCAGhCA,6BAGO;AAkCP,0BAAc;AAGd,0BAAc;IAlCdC,kDAAAA;AAqCO,IAAMC,kBAAkB,SAACC,OAAAA;AAC9BC,mDAA0B,WAAA;AACxBC,0CAAAA;EACF,GAAG,CAAA,CAAE,GAEE,uCAAAC,KAACC,WAAAA,iBAAAA;IAAoB,GAAGJ;;AACjC,GAGaK,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,yCAAcH,MAAM,MAAME,QAAAA;WAEzDF,SAAAA,MAAKG,kBAALH,OAAKG,gBAAkB,SAACC,gBAAgBC,SAAAA;mBACtCF,yCAAcH,MAAqBI,gBAAgBC,OAAAA;WAErDL,SAAAA,MAAKM,oBAALN,OAAKM,kBAAoB,SAACJ,UAAAA;AACxBK,mBAAW,WAAA;AAC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fE,MAAMT,aAAaO,GAAAA;AACzBvB,oBAAUuB,GAAAA,IACRC,MAAM,CAACE,4BAA4BH,GAAAA,QAC/BX,iCAAqBY,IAAIC,GAAAA,IACzBA;QACR;IAGN;EAEJ;EAIEE,YAAY7D,aAAa8D,UAAU5B,WAAS;AAC1C,QAAI9B,QAAQgD,IAAIC,aAAa,QAK7B;UAAIrD,gBAAgBlB,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
5
|
"names": ["import_use_element_layout", "addNativeValidStyles", "TamaguiProvider", "props", "useIsomorphicLayoutEffect", "enable", "_jsx", "WebTamaguiProvider", "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
|
@@ -21,7 +21,6 @@ import "./createOptimizedView";
|
|
|
21
21
|
import { getBaseViews } from "./getBaseViews";
|
|
22
22
|
import "./vendor/Pressability";
|
|
23
23
|
import {
|
|
24
|
-
getElementLayoutEvent,
|
|
25
24
|
setOnLayoutStrategy
|
|
26
25
|
} from "@tamagui/use-element-layout";
|
|
27
26
|
export * from "@tamagui/web";
|
|
@@ -90,7 +89,6 @@ export {
|
|
|
90
89
|
Text,
|
|
91
90
|
View,
|
|
92
91
|
createTamagui,
|
|
93
|
-
getElementLayoutEvent,
|
|
94
92
|
setOnLayoutStrategy
|
|
95
93
|
};
|
|
96
94
|
//# 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,OAA4B;AAC5B,SAAS,0BAA0B;AAanC;AAAA,EACE,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,OACK;AACP,OAAkB;AAElB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,4BAA4B;AACrC,OAAoC;AACpC,SAAS,oBAAoB;AAE7B,OAAgC;AAGhC;AAAA,EACE;AAAA,
|
|
4
|
+
"mappings": "AAAA,OAA4B;AAC5B,SAAS,0BAA0B;AAanC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AAAA,QACA;AAAA;AAAA,QAGA;AAAA,QACA;AAAA,QAEA;AAAA,QACA;AAAA,QAEA,GAAG;AAAA,MACL,IAAI;AAOJ,WALI,eAAe,WACjB,iBAAiB,UAAW,QAAqB,WAAb,MAA6B,GACjE,mBAAmB,UAAW,QAAoB,UAAZ,MAAmB,IAGvD,OAAO;AAET,YAAI,cAAc,QAAQ,WAAW;AACnC,gBAAM,EAAE,UAAU,KAAK,OAAO,IAAI;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
|
@@ -7,7 +7,7 @@ import { addNativeValidStyles } from "./addNativeValidStyles.mjs";
|
|
|
7
7
|
import "./createOptimizedView.mjs";
|
|
8
8
|
import { getBaseViews } from "./getBaseViews.mjs";
|
|
9
9
|
import "./vendor/Pressability.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { setOnLayoutStrategy } from "@tamagui/use-element-layout";
|
|
11
11
|
export * from "@tamagui/web";
|
|
12
12
|
export * from "./reactNativeTypes.mjs";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -85,5 +85,5 @@ setupHooks({
|
|
|
85
85
|
const View = WebView,
|
|
86
86
|
Stack = WebStack,
|
|
87
87
|
Text = WebText;
|
|
88
|
-
export { Stack, TamaguiProvider, Text, View, createTamagui,
|
|
88
|
+
export { Stack, TamaguiProvider, Text, View, createTamagui, setOnLayoutStrategy };
|
|
89
89
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useResponderEvents","Stack","WebStack","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","enable","getRect","measureLayout","useElementLayout","addNativeValidStyles","getBaseViews","
|
|
1
|
+
{"version":3,"names":["useResponderEvents","Stack","WebStack","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","enable","getRect","measureLayout","useElementLayout","addNativeValidStyles","getBaseViews","setOnLayoutStrategy","jsx","props","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;AAanC,SACEC,KAAA,IAASC,QAAA,EACTC,eAAA,IAAmBC,kBAAA,EACnBC,IAAA,IAAQC,OAAA,EACRC,IAAA,IAAQC,OAAA,EAERC,aAAA,IAAiBC,gBAAA,EACjBC,UAAA,EACAC,yBAAA,QACK;AACP,OAAkB;AAElB,SACEC,MAAA,EACAC,OAAA,EACAC,aAAA,EACAC,gBAAA,QACK;AACP,SAASC,oBAAA,QAA4B;AACrC,OAAoC;AACpC,S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ACAC,0BAAA;UACAC,iCAAA;UACAC,mCAAA;UACAC,0CAAA;UACAC,yBAAA;UACAC,gCAAA;UAAA;UAGAC,WAAA;UACAC,SAAA;UAAA;UAGAC,UAAA;UACAC,qBAAA;UAEAC,QAAA;UACAC,SAAA;UAEA,GAAGC;QACL,IAAI1B,OAAA;MAOJ,KALIE,WAAA,IAAeC,KAAA,MACjBzB,gBAAA,CAAiBuB,QAAA,EAAWE,KAAA,GAAqBqB,QAAA,GAAb,MAA6B,GACjE9D,kBAAA,CAAmBuC,QAAA,EAAWE,KAAA,GAAoBH,OAAA,GAAZ,MAAmB,IAGvDG,KAAA,EAAO;QAET,IAAIuB,aAAA,CAAcC,IAAA,IAAQF,SAAA,EAAW;UACnC,MAAM;YAAEG,QAAA;YAAUC,GAAA;YAAKC;UAAO,IAAIL,SAAA;UAC9BG,QAAA,IAAY,SACdF,aAAA,CAAcE,QAAA,GAAWA,QAAA,GAEvBC,GAAA,KACFH,aAAA,CAAcG,GAAA,GAAMA,GAAA,GAElB,OAAOC,MAAA,IAAW,aACpBJ,aAAA,CAAcI,MAAA,GAASA,MAAA,CAAOC,MAAA,CAAO,CAAC,MAAM,MAAM,IAAID,MAAM,KAAKA,MAAA;QAErE;QACA,OAAOJ,aAAA;MACT;IACF;EACF;EAEAM,UAAUC,SAAA,EAAWC,MAAA,EAAQ;IAAEC;EAAQ,GAAGC,eAAA,EAAiBC,YAAA,EAAc,CA0DzE;AAwBF,CAAC;AAQM,MAAMpE,IAAA,GAAOC,OAAA;EACPP,KAAA,GAAQC,QAAA;EACRG,IAAA,GAAOC,OAAA","ignoreList":[]}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -8,7 +8,7 @@ import { addNativeValidStyles } from "./addNativeValidStyles.native.js";
|
|
|
8
8
|
import { createOptimizedView } from "./createOptimizedView.native.js";
|
|
9
9
|
import { getBaseViews } from "./getBaseViews.native.js";
|
|
10
10
|
import { usePressability } from "./vendor/Pressability.native.js";
|
|
11
|
-
import {
|
|
11
|
+
import { setOnLayoutStrategy } from "@tamagui/use-element-layout";
|
|
12
12
|
export * from "@tamagui/web";
|
|
13
13
|
export * from "./reactNativeTypes.native.js";
|
|
14
14
|
addNativeValidStyles();
|
|
@@ -91,5 +91,5 @@ var dontComposePressabilityKeys = {
|
|
|
91
91
|
View = WebView,
|
|
92
92
|
Stack = WebStack,
|
|
93
93
|
Text = WebText;
|
|
94
|
-
export { Stack, TamaguiProvider, Text, View, createTamagui,
|
|
94
|
+
export { Stack, TamaguiProvider, Text, View, createTamagui, setOnLayoutStrategy };
|
|
95
95
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["jsx","_jsx","createMedia","Stack","WebStack","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","composeEventHandlers","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","React","enable","getRect","measureLayout","addNativeValidStyles","createOptimizedView","getBaseViews","usePressability","
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","createMedia","Stack","WebStack","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","composeEventHandlers","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","React","enable","getRect","measureLayout","addNativeValidStyles","createOptimizedView","getBaseViews","usePressability","setOnLayoutStrategy","props","conf","media","baseViews","setElementProps","node","measure","_node","_node1","_node2","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","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,SAA4BA,GAAA,IAAAC,IAAA;AAC5B,SAASC,WAAA,4CAA0B;AAanC;AAAA,SACEC,KAAS,IAAAC,QAAA,EAAAC,eAAA,IAAAC,kBAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,oBAAA,EAAAC,aAAA,IAAAC,gBAAA,EAAAC,UAAA,EAAAC,yBAAA;AAAA,OACTC,KAAA,aAAmB;AAAA,SACnBC,MAAQ,EAAAC,OAAA,EAAAC,aAAA;AAAA,SACRC,oBAAQ;AAAA,SAERC,mBAAiB;AAAA,SACjBC,YAAA;AAAA,SACAC,eAAA;AAAA,SACKC,mBAAA;AACP,cAAkB;AAElB;AAAAJ,oBACE;AAAA,IACAf,eAAA,YAAAA,CAAAoB,KAAA;IACA,OAAAV,yBAAA;MACAE,MAAA;IAAA,KACK,kBAAAhB,IAAA,CAAAK,kBAAA;MACP,GAAAmB;IACA;EACA;EAAAb,aAAS,YAAAA,CAAAc,IAAoB;IAE7B,OAAgCA,IAAA,CAAAC,KAAA,KAAAD,IAAA,CAAAC,KAAA,GAAAzB,WAAA,CAAAwB,IAAA,CAAAC,KAAA,IAAAd,gBAAA,CAAAa,IAAA;EAGhC;EAAAE,SAAA,GAAAN,YAAA;AAAAR,UACE;EAAAQ,YAEK;EAkCPO,eAAc,WAAAA,CAAAC,IAAA;IAGd,IAAAA,IAAA,IAAc,CAAAA,IAAA,CAAAC,OAAA;MAQL,IAAAC,KAAA,EAAAC,MAAA,EAAAC,MAAA;MA1CT,CAAAF,KAAA,GAAAF,IAAA,EAAqBC,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nB,IAAA,EAEA,OAAGY,mBAAA,CAAAsF,QAAA,EAAA7B,SAAA,EAAAlD,SAAA;MACL,IAAImE,OAAA,CAAAC,GAAA,CAAAY,6BAAA,IAAA/D,WAAA,KAAAjB,SAAA,CAAArB,IAAA,EAOJ,OALIuE,SAAA,CAAA6B,QAAe,GAAAA,QACjB,iBAAiB3F,KAAW,CAAA6F,aAAqB,UAAgB,EACjE/B,SAAA;IAKA;EACE;AACA;AAOmE,IAAA2B,2BAErE;IACAK,OAAA;EAAO;EAAArG,IACT,GAAAC,OAAA;EAAAP,KAAA,GAAAC,QAAA;EAAAG,IAAA,GAAAC,OAAA;AAAA,SAEJL,KAAA,EAEAE,eAAU,EA0DVE,IAAA,EAwBDE,IAAA,EAQMG,aAAa,E","ignoreList":[]}
|
package/dist/native.js
CHANGED
|
@@ -1443,7 +1443,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1443
1443
|
return getAllTransforms;
|
|
1444
1444
|
},
|
|
1445
1445
|
insertStyleRules: function() {
|
|
1446
|
-
return
|
|
1446
|
+
return insertStyleRules2;
|
|
1447
1447
|
},
|
|
1448
1448
|
insertedTransforms: function() {
|
|
1449
1449
|
return insertedTransforms;
|
|
@@ -1706,7 +1706,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1706
1706
|
function setNonce2(_) {
|
|
1707
1707
|
nonce = _;
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function insertStyleRules2(rulesToInsert) {
|
|
1710
1710
|
if (!sheet && import_constants.isClient && document.head) {
|
|
1711
1711
|
var styleTag = document.createElement("style");
|
|
1712
1712
|
nonce && (styleTag.nonce = nonce), sheet = document.head.appendChild(styleTag).sheet;
|
|
@@ -5401,7 +5401,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5401
5401
|
try {
|
|
5402
5402
|
for (var _iterator2 = pseudoStyles[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
5403
5403
|
var psuedoStyle = _step2.value, fullKey = `${psuedoStyle[import_helpers2.StyleObjectProperty]}${PROP_SPLIT}${descriptor.name}`;
|
|
5404
|
-
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle), classNames[fullKey] = psuedoStyle[import_helpers2.StyleObjectIdentifier]);
|
|
5404
|
+
fullKey in usedKeys || (addStyleToInsertRules(rulesToInsert, psuedoStyle, startedUnhydrated), classNames[fullKey] = psuedoStyle[import_helpers2.StyleObjectIdentifier]);
|
|
5405
5405
|
}
|
|
5406
5406
|
} catch (err) {
|
|
5407
5407
|
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
@@ -5479,7 +5479,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5479
5479
|
var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_useMedia.mediaQueryConfig, isMedia, !1, priority);
|
|
5480
5480
|
process.env.NODE_ENV === "development" && debug === "verbose" && (0, import_log.log)("\u{1F4FA} media style:", out);
|
|
5481
5481
|
var subKey = isSubStyle ? style3[2] : "", fullKey1 = `${style3[import_helpers2.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers2.StyleObjectPseudo] || ""}`;
|
|
5482
|
-
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out), classNames[fullKey1] = out[import_helpers2.StyleObjectIdentifier]);
|
|
5482
|
+
fullKey1 in usedKeys || (addStyleToInsertRules(rulesToInsert, out, startedUnhydrated), classNames[fullKey1] = out[import_helpers2.StyleObjectIdentifier]);
|
|
5483
5483
|
}
|
|
5484
5484
|
}
|
|
5485
5485
|
} catch (err) {
|
|
@@ -6908,14 +6908,14 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
6908
6908
|
}), mod);
|
|
6909
6909
|
}, wrapStyleTags_exports = {};
|
|
6910
6910
|
__export2(wrapStyleTags_exports, {
|
|
6911
|
-
|
|
6912
|
-
return
|
|
6911
|
+
getStyleTags: function() {
|
|
6912
|
+
return getStyleTags;
|
|
6913
6913
|
}
|
|
6914
6914
|
});
|
|
6915
6915
|
module2.exports = __toCommonJS2(wrapStyleTags_exports);
|
|
6916
|
-
var import_jsx_runtime2 = require("react/jsx-runtime"),
|
|
6917
|
-
function
|
|
6918
|
-
|
|
6916
|
+
var import_jsx_runtime2 = require("react/jsx-runtime"), import_constants = require_index_native2(), import_helpers2 = require_index_native3();
|
|
6917
|
+
function getStyleTags(styles, content) {
|
|
6918
|
+
import_constants.IS_REACT_19;
|
|
6919
6919
|
}
|
|
6920
6920
|
}
|
|
6921
6921
|
});
|
|
@@ -7100,8 +7100,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
7100
7100
|
}
|
|
7101
7101
|
});
|
|
7102
7102
|
module2.exports = __toCommonJS2(useComponentState_exports);
|
|
7103
|
-
var import_constants = require_index_native2(), import_use_did_finish_ssr = require_index_native7(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(),
|
|
7104
|
-
var { animationDriver } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(
|
|
7103
|
+
var import_constants = require_index_native2(), import_is_equal_shallow = require_index_native6(), import_use_did_finish_ssr = require_index_native7(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, param, staticConfig, config) {
|
|
7104
|
+
var { animationDriver } = param, _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
|
|
7105
7105
|
stateRef.current || (stateRef.current = {});
|
|
7106
7106
|
var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars, curStateRef = stateRef.current;
|
|
7107
7107
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
|
|
@@ -7627,7 +7627,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7627
7627
|
]), canAvoidReRender = Object.keys(next).every(function(key3) {
|
|
7628
7628
|
return avoidReRenderKeys.has(key3);
|
|
7629
7629
|
});
|
|
7630
|
-
if (canAvoidReRender) {
|
|
7630
|
+
if (canAvoidReRender && styleListener) {
|
|
7631
7631
|
var updatedState = {
|
|
7632
7632
|
...state,
|
|
7633
7633
|
...next
|
|
@@ -7938,7 +7938,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7938
7938
|
children: content
|
|
7939
7939
|
});
|
|
7940
7940
|
}
|
|
7941
|
-
if (process.env.NODE_ENV === "development" && time2 && time2`context-override`,
|
|
7941
|
+
if (process.env.NODE_ENV === "development" && time2 && time2`context-override`, 0) var styleTags;
|
|
7942
|
+
if (process.env.NODE_ENV === "development" && time2 && time2`style-tags`, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
7942
7943
|
var element1 = typeof elementType == "string" ? elementType : "Component", title = `render <${element1} /> (${internalID}) with props`;
|
|
7943
7944
|
if (import_constants.isWeb) {
|
|
7944
7945
|
console.groupCollapsed(title);
|
|
@@ -10677,6 +10678,9 @@ var require_index_native9 = __commonJS({
|
|
|
10677
10678
|
getTokens: function() {
|
|
10678
10679
|
return import_config.getTokens;
|
|
10679
10680
|
},
|
|
10681
|
+
insertStyleRules: function() {
|
|
10682
|
+
return import_insertStyleRule2.insertStyleRules;
|
|
10683
|
+
},
|
|
10680
10684
|
mediaKeyMatch: function() {
|
|
10681
10685
|
return import_useMedia.mediaKeyMatch;
|
|
10682
10686
|
},
|
|
@@ -10726,6 +10730,7 @@ var require_index_native9 = __commonJS({
|
|
|
10726
10730
|
__reExport2(index_exports2, require_createMediaStyle_native(), module2.exports);
|
|
10727
10731
|
__reExport2(index_exports2, require_getShorthandValue_native(), module2.exports);
|
|
10728
10732
|
__reExport2(index_exports2, require_index_native6(), module2.exports);
|
|
10733
|
+
var import_insertStyleRule2 = require_insertStyleRule_native();
|
|
10729
10734
|
__reExport2(index_exports2, require_createStyledContext_native(), module2.exports);
|
|
10730
10735
|
__reExport2(index_exports2, require_expandStyles_native(), module2.exports);
|
|
10731
10736
|
__reExport2(index_exports2, require_getExpandedShorthands_native(), module2.exports);
|
|
@@ -12198,7 +12203,7 @@ var require_index_native12 = __commonJS({
|
|
|
12198
12203
|
return enable2;
|
|
12199
12204
|
},
|
|
12200
12205
|
getElementLayoutEvent: function() {
|
|
12201
|
-
return
|
|
12206
|
+
return getElementLayoutEvent;
|
|
12202
12207
|
},
|
|
12203
12208
|
getElementLayoutEventAsync: function() {
|
|
12204
12209
|
return getElementLayoutEventAsync;
|
|
@@ -12224,7 +12229,7 @@ var require_index_native12 = __commonJS({
|
|
|
12224
12229
|
function setOnLayoutStrategy2(state) {
|
|
12225
12230
|
strategy = state;
|
|
12226
12231
|
}
|
|
12227
|
-
var NodeRectCache = /* @__PURE__ */ new WeakMap(), ParentRectCache = /* @__PURE__ */ new WeakMap(),
|
|
12232
|
+
var NodeRectCache = /* @__PURE__ */ new WeakMap(), ParentRectCache = /* @__PURE__ */ new WeakMap(), LastChangeTime = /* @__PURE__ */ new WeakMap(), rAF = typeof window < "u" ? window.requestAnimationFrame : void 0, avoidUpdates = !0, queuedUpdates = /* @__PURE__ */ new Map();
|
|
12228
12233
|
function enable2() {
|
|
12229
12234
|
avoidUpdates && (avoidUpdates = !1, queuedUpdates && (queuedUpdates.forEach(function(cb) {
|
|
12230
12235
|
return cb();
|
|
@@ -12235,66 +12240,51 @@ var require_index_native12 = __commonJS({
|
|
|
12235
12240
|
var now = Date.now(), timeSinceLastFrame = now - lastFrameAt;
|
|
12236
12241
|
if (lastFrameAt = now, strategy !== "off") {
|
|
12237
12242
|
var expectedFrameTime = 16.67, hasRecentSyncWork = timeSinceLastFrame > expectedFrameTime * numDroppedFramesUntilPause;
|
|
12238
|
-
hasRecentSyncWork || Nodes.forEach(
|
|
12243
|
+
hasRecentSyncWork || Nodes.forEach(function(node) {
|
|
12244
|
+
updateLayoutIfChanged(node, lastFrameAt);
|
|
12245
|
+
});
|
|
12239
12246
|
}
|
|
12240
12247
|
rAF(layoutOnAnimationFrame);
|
|
12241
12248
|
}, layoutOnAnimationFrame2 = layoutOnAnimationFrame, lastFrameAt = Date.now(), numDroppedFramesUntilPause = 2;
|
|
12242
|
-
async function updateLayoutIfChanged(node) {
|
|
12243
|
-
var
|
|
12244
|
-
if (
|
|
12245
|
-
var
|
|
12246
|
-
|
|
12247
|
-
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
var
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
}, remainingDelay);
|
|
12267
|
-
DebounceTimers.set(node, newTimer);
|
|
12249
|
+
async function updateLayoutIfChanged(node, frameId) {
|
|
12250
|
+
var parentNode = node.parentElement, nodeRect, parentRect;
|
|
12251
|
+
if (strategy === "async") {
|
|
12252
|
+
var [nr, pr] = await Promise.all([
|
|
12253
|
+
getBoundingClientRectAsync(node),
|
|
12254
|
+
getBoundingClientRectAsync(parentNode)
|
|
12255
|
+
]);
|
|
12256
|
+
if (frameId !== lastFrameAt) return;
|
|
12257
|
+
nodeRect = nr, parentRect = pr;
|
|
12258
|
+
} else nodeRect = node.getBoundingClientRect(), parentRect = parentNode == null ? void 0 : parentNode.getBoundingClientRect();
|
|
12259
|
+
if (parentRect) {
|
|
12260
|
+
var onLayout = LayoutHandlers.get(node);
|
|
12261
|
+
if (typeof onLayout == "function") {
|
|
12262
|
+
var cachedRect = NodeRectCache.get(node), cachedParentRect = parentNode ? NodeRectCache.get(parentNode) : null;
|
|
12263
|
+
if (!cachedRect || // has changed one rect
|
|
12264
|
+
!(0, import_is_equal_shallow.isEqualShallow)(cachedRect, nodeRect) && (!cachedParentRect || !(0, import_is_equal_shallow.isEqualShallow)(cachedParentRect, parentRect))) {
|
|
12265
|
+
if (NodeRectCache.set(node, nodeRect), parentRect && parentNode && ParentRectCache.set(parentNode, parentRect), avoidUpdates) {
|
|
12266
|
+
var event = getElementLayoutEvent(nodeRect, parentRect);
|
|
12267
|
+
queuedUpdates.set(node, function() {
|
|
12268
|
+
return onLayout(event);
|
|
12269
|
+
});
|
|
12270
|
+
} else if (strategy !== "async") {
|
|
12271
|
+
var event1 = getElementLayoutEvent(nodeRect, parentRect);
|
|
12272
|
+
onLayout(event1);
|
|
12268
12273
|
}
|
|
12269
|
-
}
|
|
12270
|
-
DebounceTimers.set(node, timer);
|
|
12271
|
-
} else {
|
|
12272
|
-
var event1 = getElementLayoutEvent2(node);
|
|
12273
|
-
onLayout(event1);
|
|
12274
|
+
}
|
|
12274
12275
|
}
|
|
12275
12276
|
}
|
|
12276
12277
|
}
|
|
12277
12278
|
rAF(layoutOnAnimationFrame);
|
|
12278
12279
|
} else process.env.NODE_ENV === "development" && console.warn("No requestAnimationFrame - please polyfill for onLayout to work correctly");
|
|
12279
|
-
var layoutOnAnimationFrame, layoutOnAnimationFrame2, lastFrameAt, numDroppedFramesUntilPause,
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
width,
|
|
12288
|
-
height,
|
|
12289
|
-
left,
|
|
12290
|
-
top
|
|
12291
|
-
},
|
|
12292
|
-
target
|
|
12293
|
-
},
|
|
12294
|
-
timeStamp: Date.now()
|
|
12295
|
-
};
|
|
12296
|
-
}), !res) throw new Error("\u203C\uFE0F");
|
|
12297
|
-
return res;
|
|
12280
|
+
var layoutOnAnimationFrame, layoutOnAnimationFrame2, lastFrameAt, numDroppedFramesUntilPause, getElementLayoutEvent = function(nodeRect, parentRect) {
|
|
12281
|
+
return {
|
|
12282
|
+
nativeEvent: {
|
|
12283
|
+
layout: getRelativeDimensions(nodeRect, parentRect),
|
|
12284
|
+
target: nodeRect
|
|
12285
|
+
},
|
|
12286
|
+
timeStamp: Date.now()
|
|
12287
|
+
};
|
|
12298
12288
|
}, measureLayout2 = function(node, relativeTo, callback) {
|
|
12299
12289
|
var relativeNode = relativeTo || (node == null ? void 0 : node.parentElement);
|
|
12300
12290
|
if (relativeNode instanceof HTMLElement) {
|
|
@@ -12318,8 +12308,8 @@ var require_index_native12 = __commonJS({
|
|
|
12318
12308
|
var relativeNode = relativeTo || (node == null ? void 0 : node.parentElement);
|
|
12319
12309
|
if (relativeNode instanceof HTMLElement) {
|
|
12320
12310
|
var [nodeDim, relativeNodeDim] = await Promise.all([
|
|
12321
|
-
node
|
|
12322
|
-
relativeNode
|
|
12311
|
+
getBoundingClientRectAsync(node),
|
|
12312
|
+
getBoundingClientRectAsync(relativeNode)
|
|
12323
12313
|
]);
|
|
12324
12314
|
if (relativeNodeDim && nodeDim) {
|
|
12325
12315
|
var { x, y, width, height, left, top } = getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
@@ -12351,11 +12341,13 @@ var require_index_native12 = __commonJS({
|
|
|
12351
12341
|
var _ref_current2;
|
|
12352
12342
|
if (onLayout) {
|
|
12353
12343
|
var node2 = (_ref_current2 = ref.current) === null || _ref_current2 === void 0 ? void 0 : _ref_current2.host;
|
|
12354
|
-
if (node2)
|
|
12355
|
-
|
|
12356
|
-
var
|
|
12357
|
-
|
|
12358
|
-
|
|
12344
|
+
if (node2) {
|
|
12345
|
+
LayoutHandlers.set(node2, onLayout), Nodes.add(node2);
|
|
12346
|
+
var parentNode = node2.parentNode;
|
|
12347
|
+
return parentNode && onLayout(getElementLayoutEvent(node2.getBoundingClientRect(), parentNode.getBoundingClientRect())), function() {
|
|
12348
|
+
Nodes.delete(node2), LayoutHandlers.delete(node2), NodeRectCache.delete(node2), LastChangeTime.delete(node2);
|
|
12349
|
+
};
|
|
12350
|
+
}
|
|
12359
12351
|
}
|
|
12360
12352
|
}, [
|
|
12361
12353
|
ref,
|
|
@@ -12365,7 +12357,18 @@ var require_index_native12 = __commonJS({
|
|
|
12365
12357
|
function ensureWebElement(x) {
|
|
12366
12358
|
if (!(typeof HTMLElement > "u")) return x instanceof HTMLElement ? x : void 0;
|
|
12367
12359
|
}
|
|
12368
|
-
var
|
|
12360
|
+
var getBoundingClientRectAsync = function(node) {
|
|
12361
|
+
return new Promise(function(res) {
|
|
12362
|
+
if (!(!node || node.nodeType !== 1)) {
|
|
12363
|
+
var io = new IntersectionObserver(function(entries) {
|
|
12364
|
+
return io.disconnect(), res(entries[0].boundingClientRect);
|
|
12365
|
+
}, {
|
|
12366
|
+
threshold: 0
|
|
12367
|
+
});
|
|
12368
|
+
io.observe(node);
|
|
12369
|
+
}
|
|
12370
|
+
});
|
|
12371
|
+
}, getBoundingClientRect = function(node) {
|
|
12369
12372
|
var _node_getBoundingClientRect;
|
|
12370
12373
|
if (!(!node || node.nodeType !== 1)) return (_node_getBoundingClientRect = node.getBoundingClientRect) === null || _node_getBoundingClientRect === void 0 ? void 0 : _node_getBoundingClientRect.call(node);
|
|
12371
12374
|
}, getRect2 = function(node) {
|
|
@@ -12406,7 +12409,6 @@ __export(index_exports, {
|
|
|
12406
12409
|
Text: () => Text,
|
|
12407
12410
|
View: () => View,
|
|
12408
12411
|
createTamagui: () => createTamagui,
|
|
12409
|
-
getElementLayoutEvent: () => import_use_element_layout2.getElementLayoutEvent,
|
|
12410
12412
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
12411
12413
|
});
|
|
12412
12414
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -12721,7 +12723,6 @@ var dontComposePressabilityKeys = {
|
|
|
12721
12723
|
Text,
|
|
12722
12724
|
View,
|
|
12723
12725
|
createTamagui,
|
|
12724
|
-
getElementLayoutEvent,
|
|
12725
12726
|
setOnLayoutStrategy
|
|
12726
12727
|
});
|
|
12727
12728
|
//# sourceMappingURL=native.js.map
|