@tamagui/native 2.0.0-rc.26 → 2.0.0-rc.26-1773452370596

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.
Files changed (82) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/package.json +2 -2
  3. package/dist/cjs/burntState.js +0 -39
  4. package/dist/cjs/burntState.js.map +0 -6
  5. package/dist/cjs/components.js +0 -41
  6. package/dist/cjs/components.js.map +0 -6
  7. package/dist/cjs/gestureState.js +0 -57
  8. package/dist/cjs/gestureState.js.map +0 -6
  9. package/dist/cjs/globalState.js +0 -34
  10. package/dist/cjs/globalState.js.map +0 -6
  11. package/dist/cjs/keyboardControllerState.js +0 -42
  12. package/dist/cjs/keyboardControllerState.js.map +0 -6
  13. package/dist/cjs/linearGradientState.js +0 -38
  14. package/dist/cjs/linearGradientState.js.map +0 -6
  15. package/dist/cjs/nativeMenuContext.js +0 -22
  16. package/dist/cjs/nativeMenuContext.js.map +0 -6
  17. package/dist/cjs/portalState.js +0 -38
  18. package/dist/cjs/portalState.js.map +0 -6
  19. package/dist/cjs/safeAreaState.js +0 -48
  20. package/dist/cjs/safeAreaState.js.map +0 -6
  21. package/dist/cjs/setup-burnt.js +0 -18
  22. package/dist/cjs/setup-burnt.js.map +0 -6
  23. package/dist/cjs/setup-expo-linear-gradient.js +0 -17
  24. package/dist/cjs/setup-expo-linear-gradient.js.map +0 -6
  25. package/dist/cjs/setup-gesture-handler.js +0 -24
  26. package/dist/cjs/setup-gesture-handler.js.map +0 -6
  27. package/dist/cjs/setup-keyboard-controller.js +0 -1
  28. package/dist/cjs/setup-keyboard-controller.js.map +0 -6
  29. package/dist/cjs/setup-safe-area.js +0 -2
  30. package/dist/cjs/setup-safe-area.js.map +0 -6
  31. package/dist/cjs/setup-teleport.js +0 -17
  32. package/dist/cjs/setup-teleport.js.map +0 -6
  33. package/dist/cjs/setup-worklets.js +0 -20
  34. package/dist/cjs/setup-worklets.js.map +0 -6
  35. package/dist/cjs/setup-zeego.js +0 -19
  36. package/dist/cjs/setup-zeego.js.map +0 -6
  37. package/dist/cjs/types.js +0 -14
  38. package/dist/cjs/types.js.map +0 -6
  39. package/dist/cjs/workletsState.js +0 -41
  40. package/dist/cjs/workletsState.js.map +0 -6
  41. package/dist/cjs/zeegoState.js +0 -39
  42. package/dist/cjs/zeegoState.js.map +0 -6
  43. package/dist/esm/burntState.js +0 -23
  44. package/dist/esm/burntState.js.map +0 -6
  45. package/dist/esm/components.js +0 -26
  46. package/dist/esm/components.js.map +0 -6
  47. package/dist/esm/gestureState.js +0 -41
  48. package/dist/esm/gestureState.js.map +0 -6
  49. package/dist/esm/globalState.js +0 -18
  50. package/dist/esm/globalState.js.map +0 -6
  51. package/dist/esm/keyboardControllerState.js +0 -26
  52. package/dist/esm/keyboardControllerState.js.map +0 -6
  53. package/dist/esm/linearGradientState.js +0 -22
  54. package/dist/esm/linearGradientState.js.map +0 -6
  55. package/dist/esm/nativeMenuContext.js +0 -6
  56. package/dist/esm/nativeMenuContext.js.map +0 -6
  57. package/dist/esm/portalState.js +0 -22
  58. package/dist/esm/portalState.js.map +0 -6
  59. package/dist/esm/safeAreaState.js +0 -32
  60. package/dist/esm/safeAreaState.js.map +0 -6
  61. package/dist/esm/setup-burnt.js +0 -18
  62. package/dist/esm/setup-burnt.js.map +0 -6
  63. package/dist/esm/setup-expo-linear-gradient.js +0 -17
  64. package/dist/esm/setup-expo-linear-gradient.js.map +0 -6
  65. package/dist/esm/setup-gesture-handler.js +0 -24
  66. package/dist/esm/setup-gesture-handler.js.map +0 -6
  67. package/dist/esm/setup-keyboard-controller.js +0 -1
  68. package/dist/esm/setup-keyboard-controller.js.map +0 -6
  69. package/dist/esm/setup-safe-area.js +0 -2
  70. package/dist/esm/setup-safe-area.js.map +0 -6
  71. package/dist/esm/setup-teleport.js +0 -17
  72. package/dist/esm/setup-teleport.js.map +0 -6
  73. package/dist/esm/setup-worklets.js +0 -20
  74. package/dist/esm/setup-worklets.js.map +0 -6
  75. package/dist/esm/setup-zeego.js +0 -19
  76. package/dist/esm/setup-zeego.js.map +0 -6
  77. package/dist/esm/types.js +0 -1
  78. package/dist/esm/types.js.map +0 -6
  79. package/dist/esm/workletsState.js +0 -25
  80. package/dist/esm/workletsState.js.map +0 -6
  81. package/dist/esm/zeegoState.js +0 -23
  82. package/dist/esm/zeegoState.js.map +0 -6
@@ -1,2 +1,2 @@
1
1
  $ tamagui-build
2
- built @tamagui/native in 523 ms
2
+ built @tamagui/native in 445 ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/native",
3
- "version": "2.0.0-rc.26",
3
+ "version": "2.0.0-rc.26-1773452370596",
4
4
  "description": "Native setup modules for Tamagui - portals, gesture handler, worklets, and more",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -131,7 +131,7 @@
131
131
  "clean:build": "tamagui-build clean:build"
132
132
  },
133
133
  "devDependencies": {
134
- "@tamagui/build": "2.0.0-rc.26",
134
+ "@tamagui/build": "2.0.0-rc.26-1773452370596",
135
135
  "burnt": "^0.12.2",
136
136
  "react": ">=19",
137
137
  "react-native": "0.81.5",
@@ -1,39 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var burntState_exports = {};
16
- __export(burntState_exports, {
17
- getBurnt: () => getBurnt
18
- });
19
- module.exports = __toCommonJS(burntState_exports);
20
- var import_globalState = require("./globalState");
21
- const state = (0, import_globalState.createGlobalState)("burnt", {
22
- enabled: !1,
23
- toast: null,
24
- dismissAllAlerts: null
25
- });
26
- function getBurnt() {
27
- return {
28
- get isEnabled() {
29
- return state.get().enabled;
30
- },
31
- get state() {
32
- return state.get();
33
- },
34
- set(newState) {
35
- state.set(newState);
36
- }
37
- };
38
- }
39
- //# sourceMappingURL=burntState.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/burntState.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAGlC,MAAM,YAAQ,sCAA8B,SAAS;AAAA,EACnD,SAAS;AAAA,EACT,OAAO;AAAA,EACP,kBAAkB;AACpB,CAAC;AAQM,SAAS,WAA0B;AACxC,SAAO;AAAA,IACL,IAAI,YAAqB;AACvB,aAAO,MAAM,IAAI,EAAE;AAAA,IACrB;AAAA,IACA,IAAI,QAAoB;AACtB,aAAO,MAAM,IAAI;AAAA,IACnB;AAAA,IACA,IAAI,UAA4B;AAC9B,YAAM,IAAI,QAAQ;AAAA,IACpB;AAAA,EACF;AACF;",
5
- "names": []
6
- }
@@ -1,41 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var components_exports = {};
16
- __export(components_exports, {
17
- NativePortal: () => NativePortal,
18
- NativePortalHost: () => NativePortalHost,
19
- NativePortalProvider: () => NativePortalProvider
20
- });
21
- module.exports = __toCommonJS(components_exports);
22
- var import_portalState = require("./portalState"), import_jsx_runtime = require("react/jsx-runtime");
23
- function NativePortal({
24
- hostName = "root",
25
- children
26
- }) {
27
- if ((0, import_portalState.getPortal)().state.type !== "teleport") return null;
28
- const { Portal } = globalThis.__tamagui_teleport;
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal, { hostName, children });
30
- }
31
- function NativePortalHost({ name }) {
32
- if ((0, import_portalState.getPortal)().state.type !== "teleport") return null;
33
- const { PortalHost } = globalThis.__tamagui_teleport;
34
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalHost, { name });
35
- }
36
- function NativePortalProvider({ children }) {
37
- if ((0, import_portalState.getPortal)().state.type !== "teleport") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
38
- const { PortalProvider } = globalThis.__tamagui_teleport;
39
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider, { children });
40
- }
41
- //# sourceMappingURL=components.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,yBAA0B,0BAqBjB;AARF,SAAS,aAAa;AAAA,EAC3B,WAAW;AAAA,EACX;AACF,GAAiC;AAE/B,UADc,8BAAU,EAAE,MAChB,SAAS,WAAY,QAAO;AAEtC,QAAM,EAAE,OAAO,IAAK,WAAmB;AACvC,SAAO,4CAAC,UAAO,UAAqB,UAAS;AAC/C;AAMO,SAAS,iBAAiB,EAAE,KAAK,GAAqC;AAE3E,UADc,8BAAU,EAAE,MAChB,SAAS,WAAY,QAAO;AAEtC,QAAM,EAAE,WAAW,IAAK,WAAmB;AAC3C,SAAO,4CAAC,cAAW,MAAY;AACjC;AAMO,SAAS,qBAAqB,EAAE,SAAS,GAAyC;AAEvF,UADc,8BAAU,EAAE,MAChB,SAAS,WAAY,QAAO,2EAAG,UAAS;AAElD,QAAM,EAAE,eAAe,IAAK,WAAmB;AAC/C,SAAO,4CAAC,kBAAgB,UAAS;AACnC;",
5
- "names": []
6
- }
@@ -1,57 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var gestureState_exports = {};
16
- __export(gestureState_exports, {
17
- getGestureHandler: () => getGestureHandler
18
- });
19
- module.exports = __toCommonJS(gestureState_exports);
20
- var import_globalState = require("./globalState");
21
- const state = (0, import_globalState.createGlobalState)("gesture", {
22
- enabled: !1,
23
- Gesture: null,
24
- GestureDetector: null,
25
- ScrollView: null
26
- });
27
- function getGestureHandler() {
28
- return {
29
- get isEnabled() {
30
- return state.get().enabled;
31
- },
32
- get state() {
33
- return state.get();
34
- },
35
- set(updates) {
36
- Object.assign(state.get(), updates);
37
- },
38
- disable() {
39
- state.get().enabled = !1;
40
- },
41
- createPressGesture(config) {
42
- const { Gesture } = state.get();
43
- if (!Gesture) return null;
44
- const longPressDuration = config.delayLongPress ?? 500, tap = Gesture.Tap().runOnJS(!0).maxDuration(1e4).onBegin((e) => {
45
- config.onPressIn?.(e);
46
- }).onEnd((e) => {
47
- config.onPress?.(e);
48
- }).onFinalize((e) => {
49
- config.onPressOut?.(e);
50
- });
51
- if (config.hitSlop && tap.hitSlop(config.hitSlop), !config.onLongPress) return tap;
52
- const longPress = Gesture.LongPress().runOnJS(!0).minDuration(longPressDuration).onBegin((e) => config.onPressIn?.(e)).onStart((e) => config.onLongPress?.(e)).onFinalize((e) => config.onPressOut?.(e));
53
- return config.hitSlop && longPress.hitSlop(config.hitSlop), Gesture.Exclusive(longPress, tap);
54
- }
55
- };
56
- }
57
- //# sourceMappingURL=gestureState.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/gestureState.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAGlC,MAAM,YAAQ,sCAAgC,WAAW;AAAA,EACvD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,YAAY;AACd,CAAC;AA0BM,SAAS,oBAA4C;AAC1D,SAAO;AAAA,IACL,IAAI,YAAqB;AACvB,aAAO,MAAM,IAAI,EAAE;AAAA,IACrB;AAAA,IACA,IAAI,QAAsB;AACxB,aAAO,MAAM,IAAI;AAAA,IACnB;AAAA,IACA,IAAI,SAAsC;AACxC,aAAO,OAAO,MAAM,IAAI,GAAG,OAAO;AAAA,IACpC;AAAA,IAEA,UAAgB;AACd,YAAM,IAAI,EAAE,UAAU;AAAA,IACxB;AAAA,IAEA,mBAAmB,QAAiC;AAClD,YAAM,EAAE,QAAQ,IAAI,MAAM,IAAI;AAC9B,UAAI,CAAC,QAAS,QAAO;AAErB,YAAM,oBAAoB,OAAO,kBAAkB,KAI7C,MAAM,QAAQ,IAAI,EACrB,QAAQ,EAAI,EACZ,YAAY,GAAK,EACjB,QAAQ,CAAC,MAAW;AACnB,eAAO,YAAY,CAAC;AAAA,MACtB,CAAC,EACA,MAAM,CAAC,MAAW;AACjB,eAAO,UAAU,CAAC;AAAA,MACpB,CAAC,EACA,WAAW,CAAC,MAAW;AACtB,eAAO,aAAa,CAAC;AAAA,MACvB,CAAC;AAKH,UAHI,OAAO,WAAS,IAAI,QAAQ,OAAO,OAAO,GAG1C,CAAC,OAAO,YAAa,QAAO;AAGhC,YAAM,YAAY,QAAQ,UAAU,EACjC,QAAQ,EAAI,EACZ,YAAY,iBAAiB,EAC7B,QAAQ,CAAC,MAAW,OAAO,YAAY,CAAC,CAAC,EACzC,QAAQ,CAAC,MAAW,OAAO,cAAc,CAAC,CAAC,EAC3C,WAAW,CAAC,MAAW,OAAO,aAAa,CAAC,CAAC;AAEhD,aAAI,OAAO,WAAS,UAAU,QAAQ,OAAO,OAAO,GAG7C,QAAQ,UAAU,WAAW,GAAG;AAAA,IACzC;AAAA,EACF;AACF;",
5
- "names": []
6
- }
@@ -1,34 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var globalState_exports = {};
16
- __export(globalState_exports, {
17
- createGlobalState: () => createGlobalState
18
- });
19
- module.exports = __toCommonJS(globalState_exports);
20
- function createGlobalState(key, defaultValue) {
21
- const GLOBAL_KEY = `__tamagui_${key}__`;
22
- function getGlobalState() {
23
- const g = globalThis;
24
- return g[GLOBAL_KEY] || (g[GLOBAL_KEY] = defaultValue), g[GLOBAL_KEY];
25
- }
26
- function setGlobalState(newState) {
27
- globalThis[GLOBAL_KEY] = newState;
28
- }
29
- return {
30
- get: getGlobalState,
31
- set: setGlobalState
32
- };
33
- }
34
- //# sourceMappingURL=globalState.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/globalState.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,kBACd,KACA,cAIA;AACA,QAAM,aAAa,aAAa,GAAG;AAMnC,WAAS,iBAAoB;AAC3B,UAAM,IAAI;AACV,WAAK,EAAE,UAAU,MAGf,EAAE,UAAU,IAAI,eAEX,EAAE,UAAU;AAAA,EACrB;AAEA,WAAS,eAAe,UAAmB;AACxC,IAAC,WAA6B,UAAU,IAAI;AAAA,EAC/C;AAEA,SAAO;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AACF;",
5
- "names": []
6
- }
@@ -1,42 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var keyboardControllerState_exports = {};
16
- __export(keyboardControllerState_exports, {
17
- getKeyboardControllerState: () => getKeyboardControllerState,
18
- isKeyboardControllerEnabled: () => isKeyboardControllerEnabled,
19
- setKeyboardControllerState: () => setKeyboardControllerState
20
- });
21
- module.exports = __toCommonJS(keyboardControllerState_exports);
22
- var import_globalState = require("./globalState");
23
- const state = (0, import_globalState.createGlobalState)("keyboard_controller", {
24
- enabled: !1,
25
- KeyboardProvider: null,
26
- KeyboardAwareScrollView: null,
27
- useKeyboardHandler: null,
28
- useReanimatedKeyboardAnimation: null,
29
- KeyboardController: null,
30
- KeyboardEvents: null,
31
- KeyboardStickyView: null
32
- });
33
- function isKeyboardControllerEnabled() {
34
- return state.get().enabled;
35
- }
36
- function getKeyboardControllerState() {
37
- return state.get();
38
- }
39
- function setKeyboardControllerState(updates) {
40
- Object.assign(state.get(), updates);
41
- }
42
- //# sourceMappingURL=keyboardControllerState.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/keyboardControllerState.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAKlC,MAAM,YAAQ,sCAA2C,uBAAuB;AAAA,EAC9E,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,yBAAyB;AAAA,EACzB,oBAAoB;AAAA,EACpB,gCAAgC;AAAA,EAChC,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,oBAAoB;AACtB,CAAC;AAEM,SAAS,8BAAuC;AACrD,SAAO,MAAM,IAAI,EAAE;AACrB;AAEO,SAAS,6BAAsD;AACpE,SAAO,MAAM,IAAI;AACnB;AAEO,SAAS,2BACd,SACM;AACN,SAAO,OAAO,MAAM,IAAI,GAAG,OAAO;AACpC;",
5
- "names": []
6
- }
@@ -1,38 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var linearGradientState_exports = {};
16
- __export(linearGradientState_exports, {
17
- getLinearGradient: () => getLinearGradient
18
- });
19
- module.exports = __toCommonJS(linearGradientState_exports);
20
- var import_globalState = require("./globalState");
21
- const state = (0, import_globalState.createGlobalState)("linear_gradient", {
22
- enabled: !1,
23
- Component: null
24
- });
25
- function getLinearGradient() {
26
- return {
27
- get isEnabled() {
28
- return state.get().enabled;
29
- },
30
- get state() {
31
- return state.get();
32
- },
33
- set(newState) {
34
- state.set(newState);
35
- }
36
- };
37
- }
38
- //# sourceMappingURL=linearGradientState.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/linearGradientState.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAGlC,MAAM,YAAQ,sCAAuC,mBAAmB;AAAA,EACtE,SAAS;AAAA,EACT,WAAW;AACb,CAAC;AAQM,SAAS,oBAA4C;AAC1D,SAAO;AAAA,IACL,IAAI,YAAqB;AACvB,aAAO,MAAM,IAAI,EAAE;AAAA,IACrB;AAAA,IACA,IAAI,QAA6B;AAC/B,aAAO,MAAM,IAAI;AAAA,IACnB;AAAA,IACA,IAAI,UAAqC;AACvC,YAAM,IAAI,QAAQ;AAAA,IACpB;AAAA,EACF;AACF;",
5
- "names": []
6
- }
@@ -1,22 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var nativeMenuContext_exports = {};
16
- __export(nativeMenuContext_exports, {
17
- NativeMenuContext: () => NativeMenuContext
18
- });
19
- module.exports = __toCommonJS(nativeMenuContext_exports);
20
- var import_react = require("react");
21
- const NativeMenuContext = (0, import_react.createContext)(!1);
22
- //# sourceMappingURL=nativeMenuContext.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/nativeMenuContext.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAA8B;AAEvB,MAAM,wBAA4C,4BAAc,EAAK;",
5
- "names": []
6
- }
@@ -1,38 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var portalState_exports = {};
16
- __export(portalState_exports, {
17
- getPortal: () => getPortal
18
- });
19
- module.exports = __toCommonJS(portalState_exports);
20
- var import_globalState = require("./globalState");
21
- const state = (0, import_globalState.createGlobalState)("portal", {
22
- enabled: !1,
23
- type: null
24
- });
25
- function getPortal() {
26
- return {
27
- get isEnabled() {
28
- return state.get().enabled;
29
- },
30
- get state() {
31
- return state.get();
32
- },
33
- set(newState) {
34
- state.set(newState);
35
- }
36
- };
37
- }
38
- //# sourceMappingURL=portalState.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/portalState.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAGlC,MAAM,YAAQ,sCAAqC,UAAU;AAAA,EAC3D,SAAS;AAAA,EACT,MAAM;AACR,CAAC;AAQM,SAAS,YAA4B;AAC1C,SAAO;AAAA,IACL,IAAI,YAAqB;AACvB,aAAO,MAAM,IAAI,EAAE;AAAA,IACrB;AAAA,IACA,IAAI,QAA2B;AAC7B,aAAO,MAAM,IAAI;AAAA,IACnB;AAAA,IACA,IAAI,UAAmC;AACrC,YAAM,IAAI,QAAQ;AAAA,IACpB;AAAA,EACF;AACF;",
5
- "names": []
6
- }
@@ -1,48 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var safeAreaState_exports = {};
16
- __export(safeAreaState_exports, {
17
- getSafeArea: () => getSafeArea
18
- });
19
- module.exports = __toCommonJS(safeAreaState_exports);
20
- var import_globalState = require("./globalState");
21
- const state = (0, import_globalState.createGlobalState)("safe_area", {
22
- enabled: !1,
23
- useSafeAreaInsets: null,
24
- useSafeAreaFrame: null,
25
- initialMetrics: null
26
- }), defaultInsets = { top: 0, right: 0, bottom: 0, left: 0 }, defaultFrame = { x: 0, y: 0, width: 0, height: 0 };
27
- function getSafeArea() {
28
- return {
29
- get isEnabled() {
30
- return state.get().enabled;
31
- },
32
- get state() {
33
- return state.get();
34
- },
35
- set(updates) {
36
- Object.assign(state.get(), updates);
37
- },
38
- getInsets() {
39
- const s = state.get();
40
- return !s.enabled || !s.initialMetrics ? defaultInsets : s.initialMetrics.insets;
41
- },
42
- getFrame() {
43
- const s = state.get();
44
- return !s.enabled || !s.initialMetrics ? defaultFrame : s.initialMetrics.frame;
45
- }
46
- };
47
- }
48
- //# sourceMappingURL=safeAreaState.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/safeAreaState.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAGlC,MAAM,YAAQ,sCAAiC,aAAa;AAAA,EAC1D,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,kBAAkB;AAAA,EAClB,gBAAgB;AAClB,CAAC,GAEK,gBAAgC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE,GACvE,eAA8B,EAAE,GAAG,GAAG,GAAG,GAAG,OAAO,GAAG,QAAQ,EAAE;AAY/D,SAAS,cAAgC;AAC9C,SAAO;AAAA,IACL,IAAI,YAAY;AACd,aAAO,MAAM,IAAI,EAAE;AAAA,IACrB;AAAA,IACA,IAAI,QAAQ;AACV,aAAO,MAAM,IAAI;AAAA,IACnB;AAAA,IACA,IAAI,SAAiC;AACnC,aAAO,OAAO,MAAM,IAAI,GAAG,OAAO;AAAA,IACpC;AAAA,IACA,YAAY;AACV,YAAM,IAAI,MAAM,IAAI;AACpB,aAAI,CAAC,EAAE,WAAW,CAAC,EAAE,iBACZ,gBAEF,EAAE,eAAe;AAAA,IAC1B;AAAA,IACA,WAAW;AACT,YAAM,IAAI,MAAM,IAAI;AACpB,aAAI,CAAC,EAAE,WAAW,CAAC,EAAE,iBACZ,eAEF,EAAE,eAAe;AAAA,IAC1B;AAAA,EACF;AACF;",
5
- "names": []
6
- }
@@ -1,18 +0,0 @@
1
- var import_burntState = require("./burntState");
2
- function setup() {
3
- const g = globalThis;
4
- if (!g.__tamagui_native_burnt_setup) {
5
- g.__tamagui_native_burnt_setup = !0;
6
- try {
7
- const Burnt = require("burnt");
8
- Burnt && (0, import_burntState.getBurnt)().set({
9
- enabled: !0,
10
- toast: Burnt.toast,
11
- dismissAllAlerts: Burnt.dismissAllAlerts
12
- });
13
- } catch {
14
- }
15
- }
16
- }
17
- setup();
18
- //# sourceMappingURL=setup-burnt.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/setup-burnt.ts"],
4
- "mappings": "AAcA,wBAAyB;AAEzB,SAAS,QAAc;AACrB,QAAM,IAAI;AACV,MAAI,GAAE,8BACN;AAAA,MAAE,+BAA+B;AAEjC,QAAI;AACF,YAAM,QAAQ,QAAQ,OAAO;AAE7B,MAAI,aACF,4BAAS,EAAE,IAAI;AAAA,QACb,SAAS;AAAA,QACT,OAAO,MAAM;AAAA,QACb,kBAAkB,MAAM;AAAA,MAC1B,CAAC;AAAA,IAEL,QAAQ;AAAA,IAER;AAAA;AACF;AAGA,MAAM;",
5
- "names": []
6
- }
@@ -1,17 +0,0 @@
1
- var import_linearGradientState = require("./linearGradientState");
2
- function setup() {
3
- const g = globalThis;
4
- if (!g.__tamagui_native_linear_gradient_setup) {
5
- g.__tamagui_native_linear_gradient_setup = !0;
6
- try {
7
- const expoLinearGradient = require("expo-linear-gradient");
8
- expoLinearGradient?.LinearGradient && (0, import_linearGradientState.getLinearGradient)().set({
9
- enabled: !0,
10
- Component: expoLinearGradient.LinearGradient
11
- });
12
- } catch {
13
- }
14
- }
15
- }
16
- setup();
17
- //# sourceMappingURL=setup-expo-linear-gradient.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/setup-expo-linear-gradient.ts"],
4
- "mappings": "AAcA,iCAAkC;AAElC,SAAS,QAAc;AACrB,QAAM,IAAI;AACV,MAAI,GAAE,wCACN;AAAA,MAAE,yCAAyC;AAE3C,QAAI;AACF,YAAM,qBAAqB,QAAQ,sBAAsB;AACzD,MAAI,oBAAoB,sBACtB,8CAAkB,EAAE,IAAI;AAAA,QACtB,SAAS;AAAA,QACT,WAAW,mBAAmB;AAAA,MAChC,CAAC;AAAA,IAEL,QAAQ;AAAA,IAER;AAAA;AACF;AAGA,MAAM;",
5
- "names": []
6
- }
@@ -1,24 +0,0 @@
1
- var import_gestureState = require("./gestureState");
2
- function setup() {
3
- const g = globalThis;
4
- if (!g.__tamagui_native_gesture_setup_complete) {
5
- g.__tamagui_native_gesture_setup_complete = !0;
6
- try {
7
- const rngh = require("react-native-gesture-handler"), { Gesture, GestureDetector, ScrollView } = rngh;
8
- Gesture && GestureDetector && ((0, import_gestureState.getGestureHandler)().set({
9
- enabled: !0,
10
- Gesture,
11
- GestureDetector,
12
- ScrollView: ScrollView || null
13
- }), g.__tamagui_sheet_gesture_state__ = {
14
- enabled: !0,
15
- Gesture,
16
- GestureDetector,
17
- ScrollView: ScrollView || null
18
- });
19
- } catch {
20
- }
21
- }
22
- }
23
- setup();
24
- //# sourceMappingURL=setup-gesture-handler.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/setup-gesture-handler.ts"],
4
- "mappings": "AAcA,0BAAkC;AAElC,SAAS,QAAQ;AACf,QAAM,IAAI;AACV,MAAI,GAAE,yCAGN;AAAA,MAAE,0CAA0C;AAE5C,QAAI;AAEF,YAAM,OAAO,QAAQ,8BAA8B,GAC7C,EAAE,SAAS,iBAAiB,WAAW,IAAI;AAEjD,MAAI,WAAW,wBACb,uCAAkB,EAAE,IAAI;AAAA,QACtB,SAAS;AAAA,QACT;AAAA,QACA;AAAA,QACA,YAAY,cAAc;AAAA,MAC5B,CAAC,GAGD,EAAE,kCAAkC;AAAA,QAClC,SAAS;AAAA,QACT;AAAA,QACA;AAAA,QACA,YAAY,cAAc;AAAA,MAC5B;AAAA,IAEJ,QAAQ;AAAA,IAER;AAAA;AACF;AAGA,MAAM;",
5
- "names": []
6
- }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=setup-keyboard-controller.web.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "mappings": "",
5
- "names": []
6
- }
@@ -1,2 +0,0 @@
1
- var import_safeAreaState = require("./safeAreaState");
2
- //# sourceMappingURL=setup-safe-area.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/setup-safe-area.ts"],
4
- "mappings": "AAwBA,2BAA4B;",
5
- "names": []
6
- }
@@ -1,17 +0,0 @@
1
- var import_portalState = require("./portalState");
2
- function setup() {
3
- const g = globalThis;
4
- if (!g.__tamagui_native_portal_setup) {
5
- g.__tamagui_native_portal_setup = !0;
6
- try {
7
- const teleport = require("react-native-teleport");
8
- if (teleport?.Portal && teleport?.PortalHost && teleport?.PortalProvider) {
9
- g.__tamagui_teleport = teleport, (0, import_portalState.getPortal)().set({ enabled: !0, type: "teleport" });
10
- return;
11
- }
12
- } catch {
13
- }
14
- }
15
- }
16
- setup();
17
- //# sourceMappingURL=setup-teleport.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/setup-teleport.ts"],
4
- "mappings": "AAcA,yBAA0B;AAE1B,SAAS,QAAc;AACrB,QAAM,IAAI;AACV,MAAI,GAAE,+BACN;AAAA,MAAE,gCAAgC;AAGlC,QAAI;AACF,YAAM,WAAW,QAAQ,uBAAuB;AAChD,UAAI,UAAU,UAAU,UAAU,cAAc,UAAU,gBAAgB;AACxE,UAAE,qBAAqB,cACvB,8BAAU,EAAE,IAAI,EAAE,SAAS,IAAM,MAAM,WAAW,CAAC;AACnD;AAAA,MACF;AAAA,IACF,QAAQ;AAAA,IAER;AAAA;AACF;AAGA,MAAM;",
5
- "names": []
6
- }
@@ -1,20 +0,0 @@
1
- var import_workletsState = require("./workletsState");
2
- function setup() {
3
- const g = globalThis;
4
- if (!g.__tamagui_native_worklets_setup_complete) {
5
- g.__tamagui_native_worklets_setup_complete = !0;
6
- try {
7
- const worklets = require("react-native-worklets-core");
8
- worklets && (0, import_workletsState.getWorklets)().set({
9
- enabled: !0,
10
- Worklets: worklets.Worklets,
11
- useRunOnJS: worklets.useRunOnJS,
12
- useWorklet: worklets.useWorklet,
13
- createWorkletContextValue: worklets.createWorkletContextValue
14
- });
15
- } catch {
16
- }
17
- }
18
- }
19
- setup();
20
- //# sourceMappingURL=setup-worklets.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/setup-worklets.ts"],
4
- "mappings": "AAoBA,2BAA4B;AAE5B,SAAS,QAAQ;AACf,QAAM,IAAI;AACV,MAAI,GAAE,0CAGN;AAAA,MAAE,2CAA2C;AAE7C,QAAI;AAEF,YAAM,WAAW,QAAQ,4BAA4B;AAErD,MAAI,gBACF,kCAAY,EAAE,IAAI;AAAA,QAChB,SAAS;AAAA,QACT,UAAU,SAAS;AAAA,QACnB,YAAY,SAAS;AAAA,QACrB,YAAY,SAAS;AAAA,QACrB,2BAA2B,SAAS;AAAA,MACtC,CAAC;AAAA,IAEL,QAAQ;AAAA,IAER;AAAA;AACF;AAGA,MAAM;",
5
- "names": []
6
- }
@@ -1,19 +0,0 @@
1
- var import_zeegoState = require("./zeegoState");
2
- function setup() {
3
- const g = globalThis;
4
- if (!g.__tamagui_native_zeego_setup) {
5
- g.__tamagui_native_zeego_setup = !0;
6
- try {
7
- const DropdownMenu = require("zeego/dropdown-menu"), ContextMenu = require("zeego/context-menu");
8
- DropdownMenu && ContextMenu && (0, import_zeegoState.getZeego)().set({
9
- enabled: !0,
10
- DropdownMenu,
11
- ContextMenu
12
- });
13
- } catch (err) {
14
- process.env.NODE_ENV === "development" && console.warn("Error setting up Zeego", err);
15
- }
16
- }
17
- }
18
- setup();
19
- //# sourceMappingURL=setup-zeego.js.map