@tamagui/adapt 1.125.5 → 1.125.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.
@@ -4,121 +4,143 @@ import { createStyledContext, useMedia } from "@tamagui/core";
4
4
  import { withStaticProperties } from "@tamagui/helpers";
5
5
  import { PortalHost, PortalItem } from "@tamagui/portal";
6
6
  import React, { createContext, useContext, useEffect, useId } from "react";
7
- var CurrentAdaptContextScope = /* @__PURE__ */ createContext(""), AdaptContext = createStyledContext({
8
- Contents: null,
9
- scopeName: "",
10
- portalName: "",
11
- platform: null,
12
- setPlatform: function(x) {
7
+ var CurrentAdaptContextScope = /* @__PURE__ */createContext(""),
8
+ AdaptContext = createStyledContext({
9
+ Contents: null,
10
+ scopeName: "",
11
+ portalName: "",
12
+ platform: null,
13
+ setPlatform: function (x) {},
14
+ when: null,
15
+ setChildren: null,
16
+ setWhen: function () {}
17
+ }),
18
+ ProvideAdaptContext = function (param) {
19
+ var {
20
+ children,
21
+ ...context
22
+ } = param,
23
+ scope = context.scopeName || "";
24
+ return /* @__PURE__ */_jsx(CurrentAdaptContextScope.Provider, {
25
+ value: scope,
26
+ children: /* @__PURE__ */_jsx(AdaptContext.Provider, {
27
+ scope,
28
+ ...context,
29
+ children
30
+ })
31
+ });
32
+ },
33
+ useAdaptContext = function () {
34
+ var scope = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "",
35
+ contextScope = useContext(CurrentAdaptContextScope),
36
+ context = AdaptContext.useStyledContext(scope === "" && contextScope || scope);
37
+ return context;
13
38
  },
14
- when: null,
15
- setChildren: null,
16
- setWhen: function() {
17
- }
18
- }), ProvideAdaptContext = function(param) {
19
- var { children, ...context } = param, scope = context.scopeName || "";
20
- return /* @__PURE__ */ _jsx(CurrentAdaptContextScope.Provider, {
21
- value: scope,
22
- children: /* @__PURE__ */ _jsx(AdaptContext.Provider, {
23
- scope,
24
- ...context,
39
+ AdaptPortals = /* @__PURE__ */new Map(),
40
+ AdaptParent = function (param) {
41
+ var {
42
+ children,
43
+ Contents,
44
+ scope,
45
+ portal
46
+ } = param,
47
+ portalName = `AdaptPortal${scope}`,
48
+ id = useId(),
49
+ FinalContents = Contents || AdaptPortals.get(id);
50
+ FinalContents || (FinalContents = function () {
51
+ return /* @__PURE__ */_jsx(PortalHost, {
52
+ name: portalName,
53
+ forwardProps: typeof portal == "boolean" ? void 0 : portal?.forwardProps
54
+ });
55
+ }, AdaptPortals.set(id, FinalContents)), useEffect(function () {
56
+ return function () {
57
+ AdaptPortals.delete(id);
58
+ };
59
+ }, []);
60
+ var [when, setWhen] = React.useState(null),
61
+ [platform, setPlatform] = React.useState(null),
62
+ [children2, setChildren] = React.useState(null);
63
+ return /* @__PURE__ */_jsx(ProvideAdaptContext, {
64
+ Contents: FinalContents,
65
+ when,
66
+ platform,
67
+ setPlatform,
68
+ setWhen,
69
+ setChildren,
70
+ portalName,
71
+ scopeName: scope,
25
72
  children
26
- })
27
- });
28
- }, useAdaptContext = function() {
29
- var scope = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", contextScope = useContext(CurrentAdaptContextScope), context = AdaptContext.useStyledContext(scope === "" && contextScope || scope);
30
- return context;
31
- }, AdaptPortals = /* @__PURE__ */ new Map(), AdaptParent = function(param) {
32
- var { children, Contents, scope, portal } = param, portalName = `AdaptPortal${scope}`, id = useId(), FinalContents = Contents || AdaptPortals.get(id);
33
- FinalContents || (FinalContents = function() {
34
- return /* @__PURE__ */ _jsx(PortalHost, {
35
- name: portalName,
36
- forwardProps: typeof portal == "boolean" ? void 0 : portal?.forwardProps
37
73
  });
38
- }, AdaptPortals.set(id, FinalContents)), useEffect(function() {
39
- return function() {
40
- AdaptPortals.delete(id);
41
- };
42
- }, []);
43
- var [when, setWhen] = React.useState(null), [platform, setPlatform] = React.useState(null), [children2, setChildren] = React.useState(null);
44
- return /* @__PURE__ */ _jsx(ProvideAdaptContext, {
45
- Contents: FinalContents,
46
- when,
47
- platform,
48
- setPlatform,
49
- setWhen,
50
- setChildren,
51
- portalName,
52
- scopeName: scope,
53
- children
54
- });
55
- }, AdaptContents = function(param) {
56
- var { scope, ...rest } = param, context = useAdaptContext(scope);
57
- if (!context?.Contents)
58
- throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.");
59
- return /* @__PURE__ */ React.createElement(context.Contents, {
60
- ...rest,
61
- key: "stable"
62
- });
63
- };
74
+ },
75
+ AdaptContents = function (param) {
76
+ var {
77
+ scope,
78
+ ...rest
79
+ } = param,
80
+ context = useAdaptContext(scope);
81
+ if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.");
82
+ return /* @__PURE__ */React.createElement(context.Contents, {
83
+ ...rest,
84
+ key: "stable"
85
+ });
86
+ };
64
87
  AdaptContents.shouldForwardSpace = !0;
65
- var Adapt = withStaticProperties(function(props) {
66
- var { platform, when, children, scope } = props, context = useAdaptContext(scope), scopeName = scope ?? context.scopeName, enabled = useAdaptIsActiveGiven(props);
67
- useIsomorphicLayoutEffect(function() {
68
- var _context_setWhen, _context_setPlatform;
69
- context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, when || enabled), context == null || (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 || _context_setPlatform.call(context, platform || null);
70
- }, [
71
- when,
72
- platform,
73
- context,
74
- enabled
75
- ]), useIsomorphicLayoutEffect(function() {
76
- return function() {
88
+ var Adapt = withStaticProperties(function (props) {
89
+ var {
90
+ platform,
91
+ when,
92
+ children,
93
+ scope
94
+ } = props,
95
+ context = useAdaptContext(scope),
96
+ scopeName = scope ?? context.scopeName,
97
+ enabled = useAdaptIsActiveGiven(props);
98
+ useIsomorphicLayoutEffect(function () {
77
99
  var _context_setWhen, _context_setPlatform;
78
- context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, null), context == null || (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 || _context_setPlatform.call(context, null);
79
- };
80
- }, []);
81
- var output;
82
- if (typeof children == "function") {
83
- var Component = context?.Contents;
84
- output = children(Component ? /* @__PURE__ */ _jsx(Component, {}) : null);
85
- } else
86
- output = children;
87
- return useIsomorphicLayoutEffect(function() {
88
- typeof children == "function" && output !== void 0 && context?.setChildren(output);
89
- }, [
90
- output
91
- ]), /* @__PURE__ */ _jsx(CurrentAdaptContextScope.Provider, {
92
- value: scopeName,
93
- children: enabled ? output : null
94
- });
95
- }, {
96
- Contents: AdaptContents
97
- }), AdaptPortalContents = function(props) {
98
- var { portalName } = useAdaptContext(props.scope);
99
- return /* @__PURE__ */ _jsx(PortalItem, {
100
- // passthrough={!isWeb && !isActive}
101
- hostName: portalName,
102
- children: props.children
103
- });
104
- }, useAdaptIsActiveGiven = function(param) {
105
- var { when, platform } = param, media = useMedia();
106
- if (when == null && platform == null)
107
- return !1;
108
- var enabled = !1;
109
- return platform === "touch" ? enabled = isTouchable : platform === "native" ? enabled = !isWeb : platform === "web" ? enabled = isWeb : platform === "ios" ? enabled = isIos : platform === "android" && (enabled = isAndroid), platform && enabled == !1 ? !1 : (when && typeof when == "string" && (enabled = media[when]), enabled);
110
- }, useAdaptIsActive = function(scope) {
111
- var props = useAdaptContext(scope);
112
- return useAdaptIsActiveGiven(props);
113
- };
114
- export {
115
- Adapt,
116
- AdaptContents,
117
- AdaptContext,
118
- AdaptParent,
119
- AdaptPortalContents,
120
- ProvideAdaptContext,
121
- useAdaptContext,
122
- useAdaptIsActive
123
- };
124
- //# sourceMappingURL=Adapt.js.map
100
+ context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, when || enabled), context == null || (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 || _context_setPlatform.call(context, platform || null);
101
+ }, [when, platform, context, enabled]), useIsomorphicLayoutEffect(function () {
102
+ return function () {
103
+ var _context_setWhen, _context_setPlatform;
104
+ context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, null), context == null || (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 || _context_setPlatform.call(context, null);
105
+ };
106
+ }, []);
107
+ var output;
108
+ if (typeof children == "function") {
109
+ var Component = context?.Contents;
110
+ output = children(Component ? /* @__PURE__ */_jsx(Component, {}) : null);
111
+ } else output = children;
112
+ return useIsomorphicLayoutEffect(function () {
113
+ typeof children == "function" && output !== void 0 && context?.setChildren(output);
114
+ }, [output]), /* @__PURE__ */_jsx(CurrentAdaptContextScope.Provider, {
115
+ value: scopeName,
116
+ children: enabled ? output : null
117
+ });
118
+ }, {
119
+ Contents: AdaptContents
120
+ }),
121
+ AdaptPortalContents = function (props) {
122
+ var {
123
+ portalName
124
+ } = useAdaptContext(props.scope);
125
+ return /* @__PURE__ */_jsx(PortalItem, {
126
+ // passthrough={!isWeb && !isActive}
127
+ hostName: portalName,
128
+ children: props.children
129
+ });
130
+ },
131
+ useAdaptIsActiveGiven = function (param) {
132
+ var {
133
+ when,
134
+ platform
135
+ } = param,
136
+ media = useMedia();
137
+ if (when == null && platform == null) return !1;
138
+ var enabled = !1;
139
+ return platform === "touch" ? enabled = isTouchable : platform === "native" ? enabled = !isWeb : platform === "web" ? enabled = isWeb : platform === "ios" ? enabled = isIos : platform === "android" && (enabled = isAndroid), platform && enabled == !1 ? !1 : (when && typeof when == "string" && (enabled = media[when]), enabled);
140
+ },
141
+ useAdaptIsActive = function (scope) {
142
+ var props = useAdaptContext(scope);
143
+ return useAdaptIsActiveGiven(props);
144
+ };
145
+ export { Adapt, AdaptContents, AdaptContext, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive };
146
+ //# sourceMappingURL=Adapt.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../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,OAAAA;AAC/B,MAAM8B,QAAQ3B,gBAAgBH,KAAAA;AAC9B,SAAOgC,sBAAsBF,KAAAA;AAC/B;",
5
- "names": ["isAndroid", "isIos", "isTouchable", "isWeb", "useIsomorphicLayoutEffect", "createStyledContext", "useMedia", "withStaticProperties", "PortalHost", "PortalItem", "React", "createContext", "useContext", "useEffect", "useId", "CurrentAdaptContextScope", "AdaptContext", "Contents", "scopeName", "portalName", "platform", "setPlatform", "x", "when", "setChildren", "setWhen", "ProvideAdaptContext", "children", "context", "scope", "Provider", "value", "useAdaptContext", "contextScope", "useStyledContext", "AdaptPortals", "Map", "AdaptParent", "portal", "id", "FinalContents", "get", "name", "forwardProps", "undefined", "set", "delete", "useState", "children2", "AdaptContents", "rest", "Error", "process", "env", "NODE_ENV", "createElement", "key", "shouldForwardSpace", "Adapt", "props", "enabled", "useAdaptIsActiveGiven", "output", "Component", "AdaptPortalContents", "hostName", "media", "useAdaptIsActive"]
6
- }
1
+ {"version":3,"names":["jsx","_jsx","isAndroid","isIos","isTouchable","isWeb","useIsomorphicLayoutEffect","createStyledContext","useMedia","withStaticProperties","PortalHost","PortalItem","React","createContext","useContext","useEffect","useId","CurrentAdaptContextScope","AdaptContext","Contents","scopeName","portalName","platform","setPlatform","x","when","setChildren","setWhen","ProvideAdaptContext","param","children","context","scope","Provider","value","useAdaptContext","arguments","length","contextScope","useStyledContext","AdaptPortals","Map","AdaptParent","portal","id","FinalContents","get","name","forwardProps","set","delete","useState","children2","AdaptContents","rest","Error","process","env","NODE_ENV","createElement","key","shouldForwardSpace","Adapt","props","enabled","useAdaptIsActiveGiven","_context_setWhen","_context_setPlatform","call","output","Component","AdaptPortalContents","hostName","media","useAdaptIsActive"],"sources":["../../src/Adapt.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAAAA,GAAA,IAAAC,IAAA;AAAA,SACEC,SAAA,EAAAC,KAAA,EAAAC,WAAA,EAAAC,KAAA,EAAAC,yBAAA;AAAA,SACAC,mBAAA,EAAAC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AAA;MAKXU,QAAQ,EAAAkC,OAAW,GAAAK,MAAI;IAMvB;EACE;IAAClD,QAAA,EAAAkC;EAAA;EAAAkB,mBAEW,YAAAA,CAAAR,KAAA;IAAA,IAET;MAAA1C;IAAA,IAAMc,eAAA,CAAA4B,KAAA,CAAA/B,KAAA;IAAA,sBAAA/B,IAAA,CAAAU,UAAA;MACT;MAIE6D,QAAA,EAAAnD,UAAA;MACJS,QAAA,EAAAiC,KAAA,CAAAjC;IACA;EACF;EAAAmC,qBAA6C,YAAAA,CAAApC,KAAA;IAC3C;QAAMJ,IAAA;QAAAH;MAAQ,IAASO,KAAA;MAAA4C,KAAA,GAAAjE,QAAA;IAEvB,IAAIiB,IAAA,IAAQ,QAAQH,QAAA,IAAY,MAC9B,OAAO;IAGT,IAAI0C,OAAA,GAAU;IAQd,OANI1C,QAAA,KAAa,UAAS0C,OAAA,GAAU5D,WAAA,GAC3BkB,QAAA,KAAa,WAAU0C,OAAA,GAAU,CAAC3D,KAAA,GAClCiB,QAAA,KAAa,QAAO0C,OAAA,GAAU3D,KAAA,GAC9BiB,QAAA,KAAa,QAAO0C,OAAA,GAAU7D,KAAA,GAC9BmB,QAAA,KAAa,cAAW0C,OAAA,GAAU9D,SAAA,GAEvCoB,QAAA,IAAY0C,OAAA,IAAW,KAClB,MAGLvC,IAAA,IAAQ,OAAOA,IAAA,IAAS,aAC1BuC,OAAA,GAAUS,KAAA,CAAMhD,IAAI,IAGfuC,OAAA;EACT;EAEaU,gBAAA,GAAmB,SAAAA,CAAC1C,KAAmB;IAClD,IAAA+B,KAAM,GAAA5B,eAAQ,CAAAH,KAAgB;IAC9B,OAAOiC,qBAAA,CAAsBF,KAAK;EACpC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export * from "./Adapt";
2
- //# sourceMappingURL=index.js.map
1
+ export * from "./Adapt.native.js";
2
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/ui/adapt/src/index.tsx"],
4
- "mappings": "AAAA,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/adapt",
3
- "version": "1.125.5",
3
+ "version": "1.125.7",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -31,13 +31,13 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/constants": "1.125.5",
35
- "@tamagui/core": "1.125.5",
36
- "@tamagui/helpers": "1.125.5",
37
- "@tamagui/portal": "1.125.5"
34
+ "@tamagui/constants": "1.125.7",
35
+ "@tamagui/core": "1.125.7",
36
+ "@tamagui/helpers": "1.125.7",
37
+ "@tamagui/portal": "1.125.7"
38
38
  },
39
39
  "devDependencies": {
40
- "@tamagui/build": "1.125.5"
40
+ "@tamagui/build": "1.125.7"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"