@tamagui/adapt 1.89.28 → 1.89.30
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/Adapt.native.js
CHANGED
|
@@ -21,7 +21,7 @@ __export(Adapt_exports, {
|
|
|
21
21
|
useAdaptParent: () => useAdaptParent
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(Adapt_exports);
|
|
24
|
-
var import_constants = require("@tamagui/constants"), import_constants2 = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_helpers = require("@tamagui/helpers"), import_react = require("react");
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_constants = require("@tamagui/constants"), import_constants2 = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_helpers = require("@tamagui/helpers"), import_react = require("react");
|
|
25
25
|
function _array_like_to_array(arr, len) {
|
|
26
26
|
(len == null || len > arr.length) && (len = arr.length);
|
|
27
27
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -79,9 +79,10 @@ AdaptContents.shouldForwardSpace = !0;
|
|
|
79
79
|
var useAdaptParent = function(param) {
|
|
80
80
|
var Contents = param.Contents, _useState = _sliced_to_array((0, import_react.useState)(null), 2), when = _useState[0], setWhen = _useState[1], AdaptProvider = (0, import_react.useMemo)(function() {
|
|
81
81
|
var AdaptProviderView = function(props) {
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
value: context
|
|
84
|
-
|
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptParentContext.Provider, {
|
|
83
|
+
value: context,
|
|
84
|
+
children: props.children
|
|
85
|
+
});
|
|
85
86
|
}, context = {
|
|
86
87
|
Contents,
|
|
87
88
|
setWhen
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/adapt/src/Adapt.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;
|
|
5
|
-
"names": ["import_constants", "AdaptParentContext", "createContext", "AdaptContents", "props", "context", "useContext", "Contents", "Error", "createElement", "shouldForwardSpace", "useAdaptParent", "useState", "when", "setWhen", "AdaptProvider", "useMemo", "AdaptProviderView", "Provider", "value", "children", "Adapt", "withStaticProperties", "platform", "media", "useMedia", "enabled", "isTouchable", "isWeb", "useIsomorphicLayoutEffect"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;uDAAA,mBAAiD,+BACjDA,oBAA4B,+BAE5B,cAAyB,0BACzB,iBAAqC,6BACrC,eAA4E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBrE,IAAMC,qBAAqBC,gDAA0C,IAAA,GAG/DC,gBAAgB,SAACC,OAAAA;AAC5B,MAAMC,cAAUC,yBAAWL,kBAAAA;AAC3B,MAAI,EAACI,WAAAA,QAAAA,QAASE;AACZ,UAAM,IAAIC,MAAM,uCAAA;AAElB,SAAOC,gDAAcJ,QAAQE,UAAUH,KAAAA;AACzC;AAEAD,cAAcO,qBAAqB;AAE5B,IAAMC,iBAAiB,SAAA,OAAA;MAC5BJ,WAAAA,MAAAA,UAIwBK,YAAAA,qBAAAA,uBAAe,IAAA,GAAA,CAAA,GAAhCC,OAAiBD,UAAAA,CAAAA,GAAXE,UAAWF,UAAAA,CAAAA,GAElBG,oBAAgBC,sBAAQ,WAAA;QAMnBC,oBAAT,SAA2Bb,OAAyB;AAClD,aACE,uCAAAc,KAACjB,mBAAmBkB,UAAQ;QAACC,OAAOf;kBACjCD,MAAMiB;;IAGb,GAXMhB,UAA+B;MACnCE;MACAO;IACF;AAUA,WAAOG;EACT,GAAG;IAACV;GAAS;AAEb,SAAO;IACLQ;IACAF;EACF;AACF,GAEaS,YAAQC,qCACnB,SAAe,OAAwC;MAAtCC,WAAF,MAAEA,UAAUX,OAAZ,MAAYA,MAAMQ,WAAlB,MAAkBA,UACzBhB,cAAUC,yBAAWL,kBAAAA,GACrBwB,YAAQC,sBAAAA,GAEVC,UAAU,CAACH;AAcf,SAbIA,aAAa,YAASG,UAAUC,gCAChCJ,aAAa,aAAUG,UAAU,CAACE,yBAClCL,aAAa,UAAOG,UAAUE,yBAE9BhB,QAAQ,CAACY,MAAMZ,IAAAA,MACjBc,UAAU,SAGZG,4CAA0B,WAAA;AACxB,IAAKH,YACLtB,WAAAA,QAAAA,QAASS,QAASD,QAAQc,OAAAA;EAC5B,GAAG;IAACd;IAAMR;IAASsB;GAAQ,GAEtBA,UAIEN,WAHE;AAIX,GACA;EACEd,UAAUJ;AACZ,CAAA;",
|
|
5
|
+
"names": ["import_constants", "AdaptParentContext", "createContext", "AdaptContents", "props", "context", "useContext", "Contents", "Error", "createElement", "shouldForwardSpace", "useAdaptParent", "useState", "when", "setWhen", "AdaptProvider", "useMemo", "AdaptProviderView", "_jsx", "Provider", "value", "children", "Adapt", "withStaticProperties", "platform", "media", "useMedia", "enabled", "isTouchable", "isWeb", "useIsomorphicLayoutEffect"]
|
|
6
6
|
}
|
package/dist/esm/Adapt.native.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
2
3
|
import { isTouchable } from "@tamagui/constants";
|
|
3
4
|
import { useMedia } from "@tamagui/core";
|
|
@@ -60,9 +61,10 @@ AdaptContents.shouldForwardSpace = !0;
|
|
|
60
61
|
var useAdaptParent = function(param) {
|
|
61
62
|
var Contents = param.Contents, _useState = _sliced_to_array(useState(null), 2), when = _useState[0], setWhen = _useState[1], AdaptProvider = useMemo(function() {
|
|
62
63
|
var AdaptProviderView = function(props) {
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
value: context
|
|
65
|
-
|
|
64
|
+
return /* @__PURE__ */ _jsx(AdaptParentContext.Provider, {
|
|
65
|
+
value: context,
|
|
66
|
+
children: props.children
|
|
67
|
+
});
|
|
66
68
|
}, context = {
|
|
67
69
|
Contents,
|
|
68
70
|
setWhen
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/adapt/src/Adapt.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAASA,OAAOC,iCAAiC;AACjD,SAASC,mBAAmB;AAE5B,SAASC,gBAAgB;AACzB,SAASC,4BAA4B;AACrC,SAASC,eAAeC,eAAeC,YAAYC,SAASC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBrE,IAAMC,qBAAqBL,8BAA0C,IAAA,GAG/DM,gBAAgB,SAACC,OAAAA;AAC5B,MAAMC,UAAUN,WAAWG,kBAAAA;AAC3B,MAAI,EAACG,WAAAA,QAAAA,QAASC;AACZ,UAAM,IAAIC,MAAM,uCAAA;AAElB,SAAOT,8BAAcO,QAAQC,UAAUF,KAAAA;AACzC;AAEAD,cAAcK,qBAAqB;AAE5B,IAAMC,iBAAiB,SAAA,OAAA;MAC5BH,WAAAA,MAAAA,UAIwBL,YAAAA,iBAAAA,SAAe,IAAA,GAAA,CAAA,GAAhCS,OAAiBT,UAAAA,CAAAA,GAAXU,UAAWV,UAAAA,CAAAA,GAElBW,gBAAgBZ,QAAQ,WAAA;QAMnBa,oBAAT,SAA2BT,OAAyB;AAClD,aACE,
|
|
4
|
+
"mappings": ";AAAA,SAASA,OAAOC,iCAAiC;AACjD,SAASC,mBAAmB;AAE5B,SAASC,gBAAgB;AACzB,SAASC,4BAA4B;AACrC,SAASC,eAAeC,eAAeC,YAAYC,SAASC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBrE,IAAMC,qBAAqBL,8BAA0C,IAAA,GAG/DM,gBAAgB,SAACC,OAAAA;AAC5B,MAAMC,UAAUN,WAAWG,kBAAAA;AAC3B,MAAI,EAACG,WAAAA,QAAAA,QAASC;AACZ,UAAM,IAAIC,MAAM,uCAAA;AAElB,SAAOT,8BAAcO,QAAQC,UAAUF,KAAAA;AACzC;AAEAD,cAAcK,qBAAqB;AAE5B,IAAMC,iBAAiB,SAAA,OAAA;MAC5BH,WAAAA,MAAAA,UAIwBL,YAAAA,iBAAAA,SAAe,IAAA,GAAA,CAAA,GAAhCS,OAAiBT,UAAAA,CAAAA,GAAXU,UAAWV,UAAAA,CAAAA,GAElBW,gBAAgBZ,QAAQ,WAAA;QAMnBa,oBAAT,SAA2BT,OAAyB;AAClD,aACE,qBAACF,mBAAmBY,UAAQ;QAACC,OAAOV;kBACjCD,MAAMY;;IAGb,GAXMX,UAA+B;MACnCC;MACAK;IACF;AAUA,WAAOE;EACT,GAAG;IAACP;GAAS;AAEb,SAAO;IACLM;IACAF;EACF;AACF,GAEaO,QAAQrB,qBACnB,SAAe,OAAwC;MAAtCsB,WAAF,MAAEA,UAAUR,OAAZ,MAAYA,MAAMM,WAAlB,MAAkBA,UACzBX,UAAUN,WAAWG,kBAAAA,GACrBiB,QAAQxB,SAAAA,GAEVyB,UAAU,CAACF;AAcf,SAbIA,aAAa,YAASE,UAAU1B,cAChCwB,aAAa,aAAUE,UAAU,CAAC5B,QAClC0B,aAAa,UAAOE,UAAU5B,QAE9BkB,QAAQ,CAACS,MAAMT,IAAAA,MACjBU,UAAU,KAGZ3B,0BAA0B,WAAA;AACxB,IAAK2B,YACLf,WAAAA,QAAAA,QAASM,QAASD,QAAQU,OAAAA;EAC5B,GAAG;IAACV;IAAML;IAASe;GAAQ,GAEtBA,UAIEJ,WAHE;AAIX,GACA;EACEV,UAAUH;AACZ,CAAA;",
|
|
5
5
|
"names": ["isWeb", "useIsomorphicLayoutEffect", "isTouchable", "useMedia", "withStaticProperties", "createContext", "createElement", "useContext", "useMemo", "useState", "AdaptParentContext", "AdaptContents", "props", "context", "Contents", "Error", "shouldForwardSpace", "useAdaptParent", "when", "setWhen", "AdaptProvider", "AdaptProviderView", "Provider", "value", "children", "Adapt", "platform", "media", "enabled"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/adapt",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.30",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/constants": "1.89.
|
|
31
|
-
"@tamagui/core": "1.89.
|
|
32
|
-
"@tamagui/helpers": "1.89.
|
|
30
|
+
"@tamagui/constants": "1.89.30",
|
|
31
|
+
"@tamagui/core": "1.89.30",
|
|
32
|
+
"@tamagui/helpers": "1.89.30"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@tamagui/build": "1.89.
|
|
35
|
+
"@tamagui/build": "1.89.30"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|