@tamagui/core 1.129.18 → 1.130.0
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 +1 -3
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +1 -2
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +1 -4
- package/dist/esm/index.native.js.map +1 -1
- package/dist/native.js +88 -56
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +72 -47
- package/dist/test.native.js.map +2 -2
- package/package.json +9 -9
- package/src/index.tsx +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -109,9 +109,7 @@ const TamaguiProvider = props => ((0, import_web.useIsomorphicLayoutEffect)(() =
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
useEvents(viewProps, events, {
|
|
113
|
-
pseudos
|
|
114
|
-
}, setStateShallow, staticConfig) {}
|
|
112
|
+
useEvents(viewProps, events, splitStyles, setStateShallow, staticConfig) {}
|
|
115
113
|
});
|
|
116
114
|
const View = import_web.View,
|
|
117
115
|
Stack = import_web.Stack,
|
package/dist/cjs/index.js
CHANGED
|
@@ -79,7 +79,7 @@ const TamaguiProvider = (props) => ((0, import_web.useIsomorphicLayoutEffect)(()
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
-
useEvents(viewProps, events,
|
|
82
|
+
useEvents(viewProps, events, splitStyles, setStateShallow, staticConfig) {
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
const View = import_web.View, Stack = import_web.Stack, Text = import_web.Text;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3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ebTamaguiProvider", "createTamaguiWeb", "WebView", "WebStack", "WebText"]
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -67,8 +67,7 @@ var TamaguiProvider = function(props) {
|
|
|
67
67
|
var download, rel, target;
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
useEvents(viewProps, events,
|
|
71
|
-
var { pseudos } = param;
|
|
70
|
+
useEvents(viewProps, events, splitStyles, setStateShallow, staticConfig) {
|
|
72
71
|
if (events && (events.onFocus && (viewProps.onFocus = events.onFocus), events.onBlur && (viewProps.onBlur = events.onBlur)), staticConfig.isInput) {
|
|
73
72
|
if (events) {
|
|
74
73
|
var { onPressIn, onPressOut, onPress } = events, inputEvents = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
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;AACT,cAAM,EAAEC,QAAQC,MAAMC,KAAKC,MAAK,QAAKC,mCAAQZ,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,iBACAC,mBACAC,oBACAC,kBACAC,sBACAC,+BACAC,4BACAC,mCACAC,qCACAC,4CACAC,2BACAC,kCAGAC,aACAC,WAGAC,YACAC,uBAEAC,UACAC,WAEGC;AAQL,UAAIvB,SAEEuB,cAAcC,QAAQF;AACxB,YAAQG,UAAUC,KAAKC;IAa7B;EACF;EAEAC,UAAUC,WAAWC,
|
|
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", "
|
|
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;AACT,cAAM,EAAEC,QAAQC,MAAMC,KAAKC,MAAK,QAAKC,mCAAQZ,IAAAA;AAC7CE,mBAASO,MAAM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AA,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
|
+
"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", "splitStyles", "setStateShallow", "staticConfig", "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
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,OAEK;AAkCP,cAAc;AAGd,cAAc;AAQL;AA1CT,qBAAqB;AAqCd,MAAM,kBAAkB,CAAC,WAC9B,0BAA0B,MAAM;AAC9B,SAAO;AACT,GAAG,CAAC,CAAC,GAEE,oBAAC,sBAAoB,GAAG,OAAO,IAI3B,gBAAyC,CAAC,SAM9C,iBAAiB,IAAI,GAGxB,YAAY,aAAa;AAI/B,WAAW;AAAA,EACT;AAAA,EAEA,iBAAiB,CAAC,SAAS;AAEzB,IAAI,QAAQ,CAAC,KAAK,YAEhB,KAAK,YAAY,CAAC,aAAa,cAAc,MAAM,MAAM,QAAQ,GAEjE,KAAK,kBAAkB,CAAC,gBAAgB,YACtC,cAAc,MAAqB,gBAAgB,OAAO,GAE5D,KAAK,oBAAoB,CAAC,aAAa;AACrC,iBAAW,MAAM;AACf,cAAM,EAAE,QAAQ,MAAM,KAAK,MAAM,IAAI,QAAQ,IAAmB;AAChE,iBAAS,MAAM,KAAK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d,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,aAAa,iBAAiB,cAAc;AAAA,EA0DzE;AAwBF,CAAC;AAQM,MAAM,OAAO,SACP,QAAQ,UACR,OAAO;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.mjs
CHANGED
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","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","
|
|
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","splitStyles","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,SAASC,YAAA,QAAoB;AAE7B,OAAgC;AAGhC,SACEC,mBAAA,QAEK;AAkCP,cAAc;AAGd,cAAc;AAQL,SAAAC,GAAA;AA1CTH,oBAAA,CAAqB;AAqCd,MAAMd,eAAA,GAAmBkB,KAAA,KAC9BT,yBAAA,CAA0B,MAAM;IAC9BC,MAAA,CAAO;EACT,GAAG,EAAE,GAEE,eAAAO,GAAA,CAAChB,kBAAA;IAAoB,GAAGiB;EAAA,CAAO;EAI3BZ,aAAA,GAA0Ca,IAAA,IAM9CZ,gBAAA,CAAiBY,IAAI;EAGxBC,SAAA,GAAYL,YAAA,CAAa;AAI/BP,UAAA,CAAW;EACTO,YAAA;EAEAM,eAAA,EAAkBC,IAAA,IAAS;I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nC,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,EAAQC,WAAA,EAAaC,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
|
@@ -51,10 +51,7 @@ setupHooks({
|
|
|
51
51
|
if (isDOM && plainDOMProps.href && hrefAttrs) var download, rel, target;
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
useEvents(viewProps, events,
|
|
55
|
-
var {
|
|
56
|
-
pseudos
|
|
57
|
-
} = param;
|
|
54
|
+
useEvents(viewProps, events, splitStyles, setStateShallow, staticConfig) {
|
|
58
55
|
if (events && (events.onFocus && (viewProps.onFocus = events.onFocus), events.onBlur && (viewProps.onBlur = events.onBlur)), staticConfig.isInput) {
|
|
59
56
|
if (events) {
|
|
60
57
|
var {
|
|
@@ -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","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","
|
|
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","splitStyles","setStateShallow","staticConfig","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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ACA,IAAA0B,2BACE;IAMiEK,OAErE;EACA;EAAApG,IAAA,GAAAC,OAAO;EAAAP,KAAA,GAAAC,QAAA;EAAAG,IAAA,GAAAC,OAAA;AAAA,SACTL,KACF,EACFE,eAAA,EAEAE,IAAA,EA0DAE,IAAA,EAwBDG,aAAA,EAQMY,mBAAa","ignoreList":[]}
|
package/dist/native.js
CHANGED
|
@@ -5445,7 +5445,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5445
5445
|
...styleState.usedKeys
|
|
5446
5446
|
},
|
|
5447
5447
|
parentStaticConfig
|
|
5448
|
-
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo),
|
|
5448
|
+
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), !isVariant)) return "continue";
|
|
5449
|
+
if (!noSkip && keyInit in import_skipProps.skipProps) return process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), "continue";
|
|
5449
5450
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
5450
5451
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
5451
5452
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
@@ -5689,6 +5690,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5689
5690
|
};
|
|
5690
5691
|
conf = conf || (0, import_config.getConfig)();
|
|
5691
5692
|
var animationDriver = (componentContext == null ? void 0 : componentContext.animationDriver) || conf.animations;
|
|
5693
|
+
if (props.passThrough) return null;
|
|
5692
5694
|
import_constants.isWeb && styleProps.isAnimated && animationDriver.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
|
|
5693
5695
|
var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState2 = styleProps.mediaState || import_useMedia.mediaState, shouldDoClasses = acceptsClassName && import_constants.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles2 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers2.stylePropsText : import_helpers2.validStyles);
|
|
5694
5696
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
|
|
@@ -5996,20 +5998,29 @@ var require_mergeProps_native = __commonJS({
|
|
|
5996
5998
|
var out = {};
|
|
5997
5999
|
for (var key in a) mergeProp(out, a, b, key, inverseShorthands);
|
|
5998
6000
|
if (b) for (var key1 in b) mergeProp(out, b, void 0, key1, inverseShorthands);
|
|
6001
|
+
if (b && Object.keys(b).length > 0) {
|
|
6002
|
+
var hasPropsNeedingReorder = Object.keys(b).some(function(key4) {
|
|
6003
|
+
return (key4 in import_pseudoDescriptors.pseudoDescriptors || key4 === "variant") && key4 in a && key4 in out;
|
|
6004
|
+
});
|
|
6005
|
+
if (hasPropsNeedingReorder) {
|
|
6006
|
+
var reordered = {};
|
|
6007
|
+
for (var key2 in b) (key2 in import_pseudoDescriptors.pseudoDescriptors || key2 === "variant") && key2 in out && (reordered[key2] = out[key2]);
|
|
6008
|
+
for (var key3 in out) key3 in reordered || (reordered[key3] = out[key3]);
|
|
6009
|
+
return reordered;
|
|
6010
|
+
}
|
|
6011
|
+
}
|
|
5999
6012
|
return out;
|
|
6000
6013
|
};
|
|
6001
6014
|
function mergeProp(out, a, b, key, inverseShorthands) {
|
|
6002
6015
|
var longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
|
|
6003
|
-
if (
|
|
6004
|
-
|
|
6005
|
-
out[key]
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
return;
|
|
6010
|
-
}
|
|
6011
|
-
out[longhand || key] = val;
|
|
6016
|
+
if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
|
|
6017
|
+
out[key] = {
|
|
6018
|
+
...out[key],
|
|
6019
|
+
...val
|
|
6020
|
+
};
|
|
6021
|
+
return;
|
|
6012
6022
|
}
|
|
6023
|
+
b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
|
|
6013
6024
|
}
|
|
6014
6025
|
}
|
|
6015
6026
|
});
|
|
@@ -6250,7 +6261,7 @@ var require_useThemeState_native = __commonJS({
|
|
|
6250
6261
|
id,
|
|
6251
6262
|
parentId
|
|
6252
6263
|
]), propsKey = getPropsKey(props), getSnapshot = function() {
|
|
6253
|
-
var _keys_current, _props_needsUpdate, local = localStates.get(id), needsUpdate = isRoot || props.name === "light" || props.name === "dark" || props.name === null ? !0 : HasRenderedOnce.get(keys) ? !(keys == null || (_keys_current = keys.current) === null || _keys_current === void 0) && _keys_current.size ? !0 : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props) : !0, [rerender, next] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));
|
|
6264
|
+
var _keys_current, _props_needsUpdate, local = localStates.get(id), needsUpdate = props.passThrough ? !1 : isRoot || props.name === "light" || props.name === "dark" || props.name === null ? !0 : HasRenderedOnce.get(keys) ? !(keys == null || (_keys_current = keys.current) === null || _keys_current === void 0) && _keys_current.size ? !0 : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props) : !0, [rerender, next] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));
|
|
6254
6265
|
return PendingUpdate.delete(id), (!local || rerender) && (local = {
|
|
6255
6266
|
...next
|
|
6256
6267
|
}, localStates.set(id, local)), process.env.NODE_ENV === "development" && props.debug && props.debug !== "profile" && (console.groupCollapsed(` ${id} getSnapshot ${rerender}`, local.name, ">", next.name), console.info({
|
|
@@ -6285,6 +6296,10 @@ var require_useThemeState_native = __commonJS({
|
|
|
6285
6296
|
]), state;
|
|
6286
6297
|
}, getNextState = function(lastState, props, propsKey) {
|
|
6287
6298
|
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0, { debug } = props, parentState = states.get(parentId);
|
|
6299
|
+
if (props.passThrough) return [
|
|
6300
|
+
!1,
|
|
6301
|
+
lastState ?? parentState
|
|
6302
|
+
];
|
|
6288
6303
|
themes || (themes = (0, import_config.getConfig)().themes);
|
|
6289
6304
|
var name = !propsKey && (!lastState || !(lastState != null && lastState.isNew)) ? null : getNewThemeName(parentState == null ? void 0 : parentState.name, props, pendingUpdate === "force" ? !0 : !!needsUpdate), isSameAsParent = parentState && (!name || name === parentState.name), shouldRerender = !!(needsUpdate && (pendingUpdate || (lastState == null ? void 0 : lastState.name) !== (parentState == null ? void 0 : parentState.name)));
|
|
6290
6305
|
if (process.env.NODE_ENV === "development" && debug && debug !== "profile") {
|
|
@@ -6756,8 +6771,8 @@ var require_Theme_native = __commonJS({
|
|
|
6756
6771
|
style: {}
|
|
6757
6772
|
}, Theme = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, ref) {
|
|
6758
6773
|
if (props.disable) return props.children;
|
|
6759
|
-
var isRoot = !!props._isRoot, [_, themeState] = (0, import_useTheme.useThemeWithState)(props, isRoot), disableDirectChildTheme = props["disable-child-theme"], finalChildren = disableDirectChildTheme ? import_react3.Children.map(props.children, function(child) {
|
|
6760
|
-
return /* @__PURE__ */ (0, import_react3.cloneElement)(child, {
|
|
6774
|
+
var { passThrough } = props, isRoot = !!props._isRoot, [_, themeState] = (0, import_useTheme.useThemeWithState)(props, isRoot), disableDirectChildTheme = props["disable-child-theme"], finalChildren = disableDirectChildTheme ? import_react3.Children.map(props.children, function(child) {
|
|
6775
|
+
return passThrough ? child : /* @__PURE__ */ (0, import_react3.cloneElement)(child, {
|
|
6761
6776
|
"data-disable-theme": !0
|
|
6762
6777
|
});
|
|
6763
6778
|
}) : props.children;
|
|
@@ -6770,11 +6785,11 @@ var require_Theme_native = __commonJS({
|
|
|
6770
6785
|
var stateRef = (0, import_react3.useRef)({
|
|
6771
6786
|
hasEverThemed: !1
|
|
6772
6787
|
});
|
|
6773
|
-
return getThemedChildren(themeState, finalChildren, props, isRoot, stateRef);
|
|
6788
|
+
return getThemedChildren(themeState, finalChildren, props, isRoot, stateRef, passThrough);
|
|
6774
6789
|
});
|
|
6775
6790
|
Theme.avoidForwardRef = !0;
|
|
6776
6791
|
function getThemedChildren(themeState, children, props) {
|
|
6777
|
-
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, stateRef = arguments.length > 4 ? arguments[4] : void 0, { shallow, forceClassName } = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || (0, import_useThemeState.hasThemeUpdatingProps)(props);
|
|
6792
|
+
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, stateRef = arguments.length > 4 ? arguments[4] : void 0, passThrough = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !1, { shallow, forceClassName } = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || (0, import_useThemeState.hasThemeUpdatingProps)(props);
|
|
6778
6793
|
if (process.env.NODE_ENV === "development" && props.debug === "visualize" && (children = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
6779
6794
|
themeState,
|
|
6780
6795
|
themeProps: props,
|
|
@@ -6791,7 +6806,7 @@ var require_Theme_native = __commonJS({
|
|
|
6791
6806
|
var parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);
|
|
6792
6807
|
if (!parentState) throw new Error("\u203C\uFE0F010");
|
|
6793
6808
|
children = import_react3.Children.toArray(children).map(function(child) {
|
|
6794
|
-
return /* @__PURE__ */ (0, import_react3.isValidElement)(child) ? /* @__PURE__ */ (0, import_react3.cloneElement)(child, void 0, /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Theme, {
|
|
6809
|
+
return /* @__PURE__ */ (0, import_react3.isValidElement)(child) ? passThrough ? child : /* @__PURE__ */ (0, import_react3.cloneElement)(child, void 0, /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Theme, {
|
|
6795
6810
|
name: parentState.name,
|
|
6796
6811
|
children: child.props.children
|
|
6797
6812
|
})) : child;
|
|
@@ -6808,10 +6823,10 @@ var require_Theme_native = __commonJS({
|
|
|
6808
6823
|
var { className, style } = getThemeClassNameAndStyle(themeState, props, isRoot);
|
|
6809
6824
|
if (children = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", {
|
|
6810
6825
|
className: `${className} _dsp_contents is_Theme`,
|
|
6811
|
-
style,
|
|
6826
|
+
style: passThrough ? void 0 : style,
|
|
6812
6827
|
children
|
|
6813
6828
|
}), state.hasEverThemed === "wrapped") {
|
|
6814
|
-
var className1 = requiresExtraWrapper ? `${isInverse ? name.startsWith("light") ? "t_light is_inversed" : name.startsWith("dark") ? "t_dark is_inversed" : "" : ""} _dsp_contents` : "_dsp_contents";
|
|
6829
|
+
var className1 = !passThrough && requiresExtraWrapper ? `${isInverse ? name.startsWith("light") ? "t_light is_inversed" : name.startsWith("dark") ? "t_dark is_inversed" : "" : ""} _dsp_contents` : "_dsp_contents";
|
|
6815
6830
|
children = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", {
|
|
6816
6831
|
className: className1,
|
|
6817
6832
|
children
|
|
@@ -7236,7 +7251,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7236
7251
|
}
|
|
7237
7252
|
var isDisabled = function(props) {
|
|
7238
7253
|
var _props_accessibilityState;
|
|
7239
|
-
return props.disabled || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props["aria-disabled"] || props.accessibilityDisabled || !1;
|
|
7254
|
+
return props.disabled || props.passThrough || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props["aria-disabled"] || props.accessibilityDisabled || !1;
|
|
7240
7255
|
};
|
|
7241
7256
|
}
|
|
7242
7257
|
});
|
|
@@ -7529,16 +7544,22 @@ var require_createComponent_native = __commonJS({
|
|
|
7529
7544
|
curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
|
|
7530
7545
|
var componentName2 = props.componentName || staticConfig.componentName;
|
|
7531
7546
|
process.env.NODE_ENV === "development" && import_constants.isClient && import_react3.default.useEffect(function() {
|
|
7532
|
-
var overlay = null,
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7547
|
+
var node, overlay = null, remove = function() {
|
|
7548
|
+
if (overlay) try {
|
|
7549
|
+
var _overlay_parentNode;
|
|
7550
|
+
(_overlay_parentNode = overlay.parentNode) === null || _overlay_parentNode === void 0 || _overlay_parentNode.removeChild(overlay), overlay = null;
|
|
7551
|
+
} catch {
|
|
7552
|
+
}
|
|
7553
|
+
}, debugVisualizerHandler = function() {
|
|
7554
|
+
var show = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
7555
|
+
if (node = stateRef.current.host, !!node) if (show) {
|
|
7556
|
+
overlay || (overlay = document.createElement("span"), overlay.style.inset = "0px", overlay.style.zIndex = "1000000", overlay.style.position = "absolute", overlay.style.borderColor = "red", overlay.style.borderWidth = "1px", overlay.style.borderStyle = "dotted");
|
|
7536
7557
|
var dataAt = node.getAttribute("data-at") || "", dataIn = node.getAttribute("data-in") || "", tooltip = document.createElement("span");
|
|
7537
|
-
tooltip.style.position = "absolute", tooltip.style.top = "0px", tooltip.style.left = "0px", tooltip.style.padding = "3px", tooltip.style.background = "rgba(0,0,0,0.75)", tooltip.style.color = "rgba(255,255,255,1)", tooltip.style.fontSize = "12px", tooltip.style.lineHeight = "12px", tooltip.style.fontFamily = "monospace", tooltip.
|
|
7538
|
-
} else
|
|
7558
|
+
tooltip.style.position = "absolute", tooltip.style.top = "0px", tooltip.style.left = "0px", tooltip.style.padding = "3px", tooltip.style.background = "rgba(0,0,0,0.75)", tooltip.style.color = "rgba(255,255,255,1)", tooltip.style.fontSize = "12px", tooltip.style.lineHeight = "12px", tooltip.style.fontFamily = "monospace", tooltip.innerText = `${componentName2 || ""} ${dataAt} ${dataIn}`.trim(), overlay.appendChild(tooltip), node.appendChild(overlay);
|
|
7559
|
+
} else remove();
|
|
7539
7560
|
};
|
|
7540
7561
|
return debugKeyListeners || (debugKeyListeners = /* @__PURE__ */ new Set()), debugKeyListeners.add(debugVisualizerHandler), function() {
|
|
7541
|
-
debugKeyListeners == null || debugKeyListeners.delete(debugVisualizerHandler);
|
|
7562
|
+
remove(), debugKeyListeners == null || debugKeyListeners.delete(debugVisualizerHandler);
|
|
7542
7563
|
};
|
|
7543
7564
|
}, [
|
|
7544
7565
|
componentName2
|
|
@@ -7550,7 +7571,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7550
7571
|
});
|
|
7551
7572
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
7552
7573
|
var _stateRef_current_group;
|
|
7553
|
-
if (!groupName) return groupContextParent;
|
|
7574
|
+
if (!groupName || props.passThrough) return groupContextParent;
|
|
7554
7575
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
7555
7576
|
var listeners = /* @__PURE__ */ new Set();
|
|
7556
7577
|
return stateRef.current.group = {
|
|
@@ -7653,7 +7674,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7653
7674
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7654
7675
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7655
7676
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
7656
|
-
if (groupContext) {
|
|
7677
|
+
if (splitStyles && groupContext) {
|
|
7657
7678
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
7658
7679
|
if (groupState && groupState.layout === void 0) {
|
|
7659
7680
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -7663,8 +7684,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7663
7684
|
});
|
|
7664
7685
|
}
|
|
7665
7686
|
}
|
|
7666
|
-
if ((hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
|
|
7667
|
-
var
|
|
7687
|
+
if (splitStyles && (!hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
|
|
7688
|
+
var useStyleListener = stateRef.current.useStyleListener, ogSetStateShallow = setStateShallow;
|
|
7668
7689
|
stateRef.current.setStateShallow = function(nextOrGetNext) {
|
|
7669
7690
|
var prev = NextState.get(stateRef) || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
|
|
7670
7691
|
if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
|
|
@@ -7681,9 +7702,9 @@ var require_createComponent_native = __commonJS({
|
|
|
7681
7702
|
props
|
|
7682
7703
|
}), console.info(stateRef.current.host), console.groupEnd());
|
|
7683
7704
|
var { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
|
|
7684
|
-
if (groupContext && notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState), !hasAnimationProp || !
|
|
7705
|
+
if (groupContext && notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState), !hasAnimationProp || !useStyleListener) return;
|
|
7685
7706
|
var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp);
|
|
7686
|
-
|
|
7707
|
+
useStyleListener((nextStyles == null ? void 0 : nextStyles.style) || {});
|
|
7687
7708
|
} else process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && console.info("[\u{1F40C}] re-render", {
|
|
7688
7709
|
canAvoidReRender,
|
|
7689
7710
|
next
|
|
@@ -7694,14 +7715,16 @@ var require_createComponent_native = __commonJS({
|
|
|
7694
7715
|
(_stateRef_current_setStateShallow = (_stateRef_current = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current, state2);
|
|
7695
7716
|
};
|
|
7696
7717
|
}
|
|
7697
|
-
if (process.env.NODE_ENV === "development" && time2 && time2`split-styles`,
|
|
7698
|
-
|
|
7699
|
-
|
|
7718
|
+
if (process.env.NODE_ENV === "development" && time2 && time2`split-styles`, splitStyles) {
|
|
7719
|
+
if (props.group && props.untilMeasured === "hide" && !stateRef.current.hasMeasured) {
|
|
7720
|
+
var _splitStyles;
|
|
7721
|
+
(_splitStyles = splitStyles).style || (_splitStyles.style = {}), splitStyles.style.opacity = 0;
|
|
7722
|
+
}
|
|
7723
|
+
splitStyles.dynamicThemeAccess != null && (stateRef.current.isListeningToTheme = splitStyles.dynamicThemeAccess);
|
|
7700
7724
|
}
|
|
7701
|
-
splitStyles
|
|
7702
|
-
var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
7725
|
+
var hasRuntimeMediaKeys = (splitStyles == null ? void 0 : splitStyles.hasMedia) && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && (splitStyles == null ? void 0 : splitStyles.hasMedia) === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
7703
7726
|
process.env.NODE_ENV === "development" && debugProp === "verbose" && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(componentContext, shouldListenForMedia, mediaListeningKeys);
|
|
7704
|
-
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
|
|
7727
|
+
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space, pseudoGroups, mediaGroups } = splitStyles || {}, propsWithAnimation = props, {
|
|
7705
7728
|
asChild,
|
|
7706
7729
|
children,
|
|
7707
7730
|
themeShallow,
|
|
@@ -7725,7 +7748,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7725
7748
|
onClick,
|
|
7726
7749
|
theme: _themeProp,
|
|
7727
7750
|
...nonTamaguiProps
|
|
7728
|
-
} = viewPropsIn, viewProps = nonTamaguiProps;
|
|
7751
|
+
} = viewPropsIn || {}, viewProps = nonTamaguiProps;
|
|
7729
7752
|
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && _themeProp && (viewProps.theme = _themeProp), tagProp && elementType.acceptTagProp && (viewProps.tag = tagProp);
|
|
7730
7753
|
var animationStyles, shouldUseAnimation = (
|
|
7731
7754
|
// if it supports css vars we run it on server too to get matching initial style
|
|
@@ -7749,11 +7772,11 @@ var require_createComponent_native = __commonJS({
|
|
|
7749
7772
|
staticConfig,
|
|
7750
7773
|
stateRef
|
|
7751
7774
|
});
|
|
7752
|
-
isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)
|
|
7775
|
+
animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`))), process.env.NODE_ENV === "development" && time2 && time2`animations`;
|
|
7753
7776
|
}
|
|
7754
7777
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
7755
7778
|
|
|
7756
|
-
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, groupContext && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7779
|
+
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7757
7780
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
7758
7781
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
7759
7782
|
layout
|
|
@@ -7768,7 +7791,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7768
7791
|
typeof item == "string" && item !== `
|
|
7769
7792
|
` && console.error(`Unexpected text node: ${item}. A text node cannot be a child of a <${staticConfig.componentName || propsIn.tag || "View"}>.`, props);
|
|
7770
7793
|
}), process.env.NODE_ENV === "development" && time2 && time2`events-hooks`;
|
|
7771
|
-
var
|
|
7794
|
+
var unPress = function() {
|
|
7772
7795
|
setStateShallow({
|
|
7773
7796
|
press: !1,
|
|
7774
7797
|
pressIn: !1
|
|
@@ -7782,7 +7805,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7782
7805
|
styleObject[prop] = style.getPropertyValue(prop);
|
|
7783
7806
|
}
|
|
7784
7807
|
return styleObject;
|
|
7785
|
-
}, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host));
|
|
7808
|
+
}, cssStyleDeclarationToObject = cssStyleDeclarationToObject2, computed = stateRef.current.host ? cssStyleDeclarationToObject2(getComputedStyle(stateRef.current.host)) : {};
|
|
7786
7809
|
console.groupCollapsed(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), console.groupEnd();
|
|
7787
7810
|
}
|
|
7788
7811
|
}), (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
@@ -7914,7 +7937,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7914
7937
|
}), (_hooks_useEvents = import_setupHooks.hooks.useEvents) === null || _hooks_useEvents === void 0 || _hooks_useEvents.call(import_setupHooks.hooks, viewProps, events, splitStyles, setStateShallow, staticConfig);
|
|
7915
7938
|
var direction = props.spaceDirection || "both";
|
|
7916
7939
|
process.env.NODE_ENV === "development" && time2 && time2`hooks`;
|
|
7917
|
-
var content = !children || asChild ? children : spacedChildren({
|
|
7940
|
+
var content = !children || asChild || !splitStyles ? children : spacedChildren({
|
|
7918
7941
|
separator,
|
|
7919
7942
|
children,
|
|
7920
7943
|
space,
|
|
@@ -7929,9 +7952,19 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7929
7952
|
});
|
|
7930
7953
|
process.env.NODE_ENV === "development" && time2 && time2`spaced-as-child`;
|
|
7931
7954
|
var useChildrenResult;
|
|
7932
|
-
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps)), process.env.NODE_ENV === "development" && time2 && time2`use-children`,
|
|
7933
|
-
|
|
7934
|
-
|
|
7955
|
+
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps)), process.env.NODE_ENV === "development" && time2 && time2`use-children`, splitStyles || (elementType = "span", content = propsIn.children, viewProps = {
|
|
7956
|
+
style: {
|
|
7957
|
+
display: "contents"
|
|
7958
|
+
}
|
|
7959
|
+
}), useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ import_react3.default.createElement(elementType, viewProps, content);
|
|
7960
|
+
var ResetPresence = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence, needsReset = !!// not when passing down to child
|
|
7961
|
+
(!asChild && // not when passThrough
|
|
7962
|
+
splitStyles && // not when HOC
|
|
7963
|
+
!isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
7964
|
+
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = !0);
|
|
7965
|
+
var renderReset = needsReset || hasEverReset;
|
|
7966
|
+
if (renderReset && ResetPresence && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ResetPresence, {
|
|
7967
|
+
disabled: !needsReset,
|
|
7935
7968
|
children: content
|
|
7936
7969
|
})), process.env.NODE_ENV === "development" && time2 && time2`create-element`, "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
7937
7970
|
...componentContext,
|
|
@@ -7940,7 +7973,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7940
7973
|
})), "group" in props && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_GroupContext.GroupContext.Provider, {
|
|
7941
7974
|
value: allGroupContexts,
|
|
7942
7975
|
children: content
|
|
7943
|
-
})), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`, staticConfig.context) {
|
|
7976
|
+
})), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`, staticConfig.context) {
|
|
7944
7977
|
var contextProps = staticConfig.context.props;
|
|
7945
7978
|
for (var key1 in contextProps) if (viewProps.style && key1 in viewProps.style || key1 in viewProps) {
|
|
7946
7979
|
var _viewProps_style;
|
|
@@ -8031,7 +8064,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8031
8064
|
}
|
|
8032
8065
|
function styleable(Component2, options) {
|
|
8033
8066
|
var _Component_render, skipForwardRef = import_constants.IS_REACT_19 && typeof Component2 == "function" && Component2.length === 1 || ((_Component_render = Component2.render) === null || _Component_render === void 0 ? void 0 : _Component_render.length) === 2, out = skipForwardRef ? Component2 : /* @__PURE__ */ import_react3.default.forwardRef(Component2), extendedConfig = extendStyledConfig(options == null ? void 0 : options.staticConfig);
|
|
8034
|
-
return out = options != null && options.disableTheme ? out : (0, import_themeable.themeable)(out, extendedConfig, !0), process.env.TAMAGUI_MEMOIZE_STYLEABLE && (out = /* @__PURE__ */ import_react3.default.memo(out)), out.staticConfig = extendedConfig, out.styleable = styleable, out;
|
|
8067
|
+
return out = options != null && options.disableTheme ? out : (0, import_themeable.themeable)(out, extendedConfig, !0), (extendedConfig.memo || process.env.TAMAGUI_MEMOIZE_STYLEABLE) && (out = /* @__PURE__ */ import_react3.default.memo(out)), out.staticConfig = extendedConfig, out.styleable = styleable, out;
|
|
8035
8068
|
}
|
|
8036
8069
|
return res.extractable = extractable, res.styleable = styleable, res;
|
|
8037
8070
|
}
|
|
@@ -9990,7 +10023,7 @@ var require_useProps_native = __commonJS({
|
|
|
9990
10023
|
noClass: !0,
|
|
9991
10024
|
resolveValues: "auto",
|
|
9992
10025
|
...opts
|
|
9993
|
-
}, null, componentContext, groupContext), { mediaGroups, pseudoGroups } = splitStyles;
|
|
10026
|
+
}, null, componentContext, groupContext), { mediaGroups, pseudoGroups } = splitStyles || {};
|
|
9994
10027
|
return (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
9995
10028
|
if (!disabled) {
|
|
9996
10029
|
if (state.unmounted) {
|
|
@@ -10016,8 +10049,8 @@ var require_useProps_native = __commonJS({
|
|
|
10016
10049
|
...mediaGroups
|
|
10017
10050
|
]).join("") : 0
|
|
10018
10051
|
]), [
|
|
10019
|
-
splitStyles.viewProps,
|
|
10020
|
-
splitStyles.style || {},
|
|
10052
|
+
(splitStyles == null ? void 0 : splitStyles.viewProps) || {},
|
|
10053
|
+
(splitStyles == null ? void 0 : splitStyles.style) || {},
|
|
10021
10054
|
theme,
|
|
10022
10055
|
import_useMedia.mediaState
|
|
10023
10056
|
];
|
|
@@ -12287,7 +12320,7 @@ var require_index_native12 = __commonJS({
|
|
|
12287
12320
|
getBoundingClientRectAsync(node),
|
|
12288
12321
|
getBoundingClientRectAsync(parentNode)
|
|
12289
12322
|
]);
|
|
12290
|
-
if (frameId !== lastFrameAt) return;
|
|
12323
|
+
if (nr === !1 || pr === !1 || frameId !== lastFrameAt) return;
|
|
12291
12324
|
nodeRect = nr, parentRect = pr;
|
|
12292
12325
|
} else nodeRect = node.getBoundingClientRect(), parentRect = parentNode.getBoundingClientRect();
|
|
12293
12326
|
var cachedRect = NodeRectCache.get(node), cachedParentRect = NodeRectCache.get(parentNode);
|
|
@@ -12390,7 +12423,7 @@ var require_index_native12 = __commonJS({
|
|
|
12390
12423
|
return new Promise(function(res) {
|
|
12391
12424
|
if (!(!node || node.nodeType !== 1)) {
|
|
12392
12425
|
var io = new IntersectionObserver(function(entries) {
|
|
12393
|
-
return io.disconnect(), res(entries[0].boundingClientRect);
|
|
12426
|
+
return entries[0].isIntersecting ? (io.disconnect(), res(entries[0].boundingClientRect)) : res(!1);
|
|
12394
12427
|
}, {
|
|
12395
12428
|
threshold: 0
|
|
12396
12429
|
});
|
|
@@ -12713,8 +12746,7 @@ var TamaguiProvider = function(props) {
|
|
|
12713
12746
|
var download, rel, target;
|
|
12714
12747
|
}
|
|
12715
12748
|
},
|
|
12716
|
-
useEvents(viewProps, events,
|
|
12717
|
-
var { pseudos } = param;
|
|
12749
|
+
useEvents(viewProps, events, splitStyles, setStateShallow, staticConfig) {
|
|
12718
12750
|
if (events && (events.onFocus && (viewProps.onFocus = events.onFocus), events.onBlur && (viewProps.onBlur = events.onBlur)), staticConfig.isInput) {
|
|
12719
12751
|
if (events) {
|
|
12720
12752
|
var { onPressIn, onPressOut, onPress } = events, inputEvents = {
|