@tamagui/constants 1.135.5 → 1.135.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.
@@ -1,7 +1,9 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all) __defProp(target, name, {
7
9
  get: all[name],
@@ -15,9 +17,18 @@ var __export = (target, all) => {
15
17
  });
16
18
  return to;
17
19
  };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
21
32
  var constants_exports = {};
22
33
  __export(constants_exports, {
23
34
  IS_REACT_19: () => IS_REACT_19,
@@ -34,9 +45,8 @@ __export(constants_exports, {
34
45
  useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
35
46
  });
36
47
  module.exports = __toCommonJS(constants_exports);
37
- var import_react = require("react"),
38
- import_react2 = require("react");
39
- const IS_REACT_19 = !!import_react2.use,
48
+ var import_react = __toESM(require("react"), 1);
49
+ const IS_REACT_19 = typeof import_react.default.use < "u",
40
50
  isWeb = !0,
41
51
  isWindowDefined = typeof window < "u",
42
52
  isServer = isWeb && !isWindowDefined,
@@ -1,7 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __export = (target, all) => {
6
7
  for (var name in all)
7
8
  __defProp(target, name, { get: all[name], enumerable: !0 });
@@ -11,7 +12,14 @@ var __export = (target, all) => {
11
12
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
13
  return to;
13
14
  };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
23
  var constants_exports = {};
16
24
  __export(constants_exports, {
17
25
  IS_REACT_19: () => IS_REACT_19,
@@ -28,6 +36,6 @@ __export(constants_exports, {
28
36
  useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
29
37
  });
30
38
  module.exports = __toCommonJS(constants_exports);
31
- var import_react = require("react"), import_react2 = require("react");
32
- const IS_REACT_19 = !!import_react2.use, isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.useEffect : import_react.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
39
+ var import_react = __toESM(require("react"), 1);
40
+ const IS_REACT_19 = typeof import_react.default.use < "u", isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.useEffect : import_react.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
33
41
  //# sourceMappingURL=constants.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C,kBAE3CA,gBAAoB;AAEb,MAAM,cAAuB,CAAC,CAAC,mBAEzB,QAAiB,IACjB,kBAA2B,OAAO,SAAW,KAC7C,WAAoB,SAAS,CAAC,iBAC9B,WAAoB,SAAS,iBAE7B,4BAA8C,WACvD,yBACA,8BAES,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAuB,CAAC,SAAS,gBAEjC,YAAqB,IACrB,QAAiB,QAAQ,IAAI,yBAAyB,OACtD,kBAAwD;",
5
- "names": ["import_react"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkD;AAE3C,MAAM,cAAuB,OAAO,aAAAA,QAAM,MAAQ,KAE5C,QAAiB,IACjB,kBAA2B,OAAO,SAAW,KAC7C,WAAoB,SAAS,CAAC,iBAC9B,WAAoB,SAAS,iBAE7B,4BAA8C,WACvD,yBACA,8BAES,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAuB,CAAC,SAAS,gBAEjC,YAAqB,IACrB,QAAiB,QAAQ,IAAI,yBAAyB,OACtD,kBAAwD;",
5
+ "names": ["React"]
6
6
  }
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
10
  for (var name in all) __defProp(target, name, {
9
11
  get: all[name],
@@ -17,9 +19,18 @@ var __export = (target, all) => {
17
19
  });
18
20
  return to;
19
21
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
22
- }), mod);
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
23
34
  var constants_native_exports = {};
24
35
  __export(constants_native_exports, {
25
36
  IS_REACT_19: () => IS_REACT_19,
@@ -36,10 +47,9 @@ __export(constants_native_exports, {
36
47
  useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
37
48
  });
38
49
  module.exports = __toCommonJS(constants_native_exports);
39
- var import_react = require("react"),
40
- import_react2 = require("react"),
50
+ var import_react = __toESM(require("react"), 1),
41
51
  import_react_native = require("react-native"),
42
- IS_REACT_19 = !!import_react2.use,
52
+ IS_REACT_19 = typeof import_react.default.use < "u",
43
53
  isWeb = !1,
44
54
  isWindowDefined = !1,
45
55
  isServer = !1,
@@ -1 +1 @@
1
- {"version":3,"names":["constants_native_exports","__export","IS_REACT_19","currentPlatform","isAndroid","isChrome","isClient","isIos","isServer","isTouchable","isWeb","isWebTouchable","isWindowDefined","useIsomorphicLayoutEffect","module","exports","__toCommonJS","import_react","require","import_react2","import_react_native","use","useLayoutEffect","Platform","OS","process","env","TEST_NATIVE_PLATFORM","platforms","ios","android"],"sources":["../../src/constants.native.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,yBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAhB,wBAAA;AAAA,IAAAiB,YAAA,GAAgCC,OAAA;EAEhCC,aAAA,GAAoBD,OAAA;EACpBE,mBAAA,GAAyBF,OAAA;EACdhB,WAAA,GAAc,CAAC,CAACiB,aAAA,CAAAE,GAAA;EAChBX,KAAA,GAAQ;EACRE,eAAA,GAAkB;EAClBJ,QAAA,GAAW;EACXF,QAAA,GAAW;EACXO,yBAAA,GAA4BI,YAAA,CAAAK,eAAA;EAC5BjB,QAAA,GAAW;EACXM,cAAA,GAAiB;EACjBF,WAAA,GAAc;EACdL,SAAA,GAAYgB,mBAAA,CAAAG,QAAA,CAASC,EAAA,KAAO,aAAaC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC9EpB,KAAA,GAAQa,mBAAA,CAAAG,QAAA,CAASC,EAAA,KAAO,SAASC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC7EC,SAAA,GAAY;IACZC,GAAA,EAAK;IACLC,OAAA,EAAS;EACb;EACW3B,eAAA,GAAkByB,SAAA,CAAUR,mBAAA,CAAAG,QAAA,CAASC,EAAE,KAAK","ignoreList":[]}
1
+ {"version":3,"names":["constants_native_exports","__export","IS_REACT_19","currentPlatform","isAndroid","isChrome","isClient","isIos","isServer","isTouchable","isWeb","isWebTouchable","isWindowDefined","useIsomorphicLayoutEffect","module","exports","__toCommonJS","import_react","__toESM","require","import_react_native","default","use","useLayoutEffect","Platform","OS","process","env","TEST_NATIVE_PLATFORM","platforms","ios","android"],"sources":["../../src/constants.native.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,yBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAhB,wBAAA;AAAA,IAAAiB,YAAA,GAAuCC,OAAA,CAAAC,OAAA;EACvCC,mBAAA,GAAyBD,OAAA;EACdjB,WAAA,GAAc,OAAOe,YAAA,CAAAI,OAAA,CAAMC,GAAA,GAAQ;EACnCZ,KAAA,GAAQ;EACRE,eAAA,GAAkB;EAClBJ,QAAA,GAAW;EACXF,QAAA,GAAW;EACXO,yBAAA,GAA4BI,YAAA,CAAAM,eAAA;EAC5BlB,QAAA,GAAW;EACXM,cAAA,GAAiB;EACjBF,WAAA,GAAc;EACdL,SAAA,GAAYgB,mBAAA,CAAAI,QAAA,CAASC,EAAA,KAAO,aAAaC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC9ErB,KAAA,GAAQa,mBAAA,CAAAI,QAAA,CAASC,EAAA,KAAO,SAASC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC7EC,SAAA,GAAY;IACZC,GAAA,EAAK;IACLC,OAAA,EAAS;EACb;EACW5B,eAAA,GAAkB0B,SAAA,CAAUT,mBAAA,CAAAI,QAAA,CAASC,EAAE,KAAK","ignoreList":[]}
@@ -1,6 +1,5 @@
1
- import { useEffect, useLayoutEffect } from "react";
2
- import { use } from "react";
3
- const IS_REACT_19 = !!use, isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? useEffect : useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
1
+ import React, { useEffect, useLayoutEffect } from "react";
2
+ const IS_REACT_19 = typeof React.use < "u", isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? useEffect : useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
4
3
  export {
5
4
  IS_REACT_19,
6
5
  currentPlatform,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants.ts"],
4
- "mappings": "AAAA,SAAS,WAAW,uBAAuB;AAE3C,SAAS,WAAW;AAEb,MAAM,cAAuB,CAAC,CAAC,KAEzB,QAAiB,IACjB,kBAA2B,OAAO,SAAW,KAC7C,WAAoB,SAAS,CAAC,iBAC9B,WAAoB,SAAS,iBAE7B,4BAA8C,WACvD,YACA,iBAES,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAuB,CAAC,SAAS,gBAEjC,YAAqB,IACrB,QAAiB,QAAQ,IAAI,yBAAyB,OACtD,kBAAwD;",
4
+ "mappings": "AAAA,OAAO,SAAS,WAAW,uBAAuB;AAE3C,MAAM,cAAuB,OAAO,MAAM,MAAQ,KAE5C,QAAiB,IACjB,kBAA2B,OAAO,SAAW,KAC7C,WAAoB,SAAS,CAAC,iBAC9B,WAAoB,SAAS,iBAE7B,4BAA8C,WACvD,YACA,iBAES,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAuB,CAAC,SAAS,gBAEjC,YAAqB,IACrB,QAAiB,QAAQ,IAAI,yBAAyB,OACtD,kBAAwD;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,5 @@
1
- import { useEffect, useLayoutEffect } from "react";
2
- import { use } from "react";
3
- const IS_REACT_19 = !!use,
1
+ import React, { useEffect, useLayoutEffect } from "react";
2
+ const IS_REACT_19 = typeof React.use < "u",
4
3
  isWeb = !0,
5
4
  isWindowDefined = typeof window < "u",
6
5
  isServer = isWeb && !isWindowDefined,
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useLayoutEffect","use","IS_REACT_19","isWeb","isWindowDefined","window","isServer","isClient","useIsomorphicLayoutEffect","isChrome","navigator","test","userAgent","isWebTouchable","maxTouchPoints","isTouchable","isAndroid","isIos","process","env","TEST_NATIVE_PLATFORM","currentPlatform"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,eAAA,QAAuB;AAE3C,SAASC,GAAA,QAAW;AAEb,MAAMC,WAAA,GAAuB,CAAC,CAACD,GAAA;EAEzBE,KAAA,GAAiB;EACjBC,eAAA,GAA2B,OAAOC,MAAA,GAAW;EAC7CC,QAAA,GAAoBH,KAAA,IAAS,CAACC,eAAA;EAC9BG,QAAA,GAAoBJ,KAAA,IAASC,eAAA;EAE7BI,yBAAA,GAA8CF,QAAA,GACvDP,SAAA,GACAC,eAAA;EAESS,QAAA,GACX,OAAOC,SAAA,GAAc,OAAe,SAASC,IAAA,CAAKD,SAAA,CAAUE,SAAA,IAAa,EAAE;EAEhEC,cAAA,GACXN,QAAA,KAAa,kBAAkBF,MAAA,IAAUK,SAAA,CAAUI,cAAA,GAAiB;EAEzDC,WAAA,GAAuB,CAACZ,KAAA,IAASU,cAAA;EAEjCG,SAAA,GAAqB;EACrBC,KAAA,GAAiBC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EACtDC,eAAA,GAAwD","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useLayoutEffect","IS_REACT_19","use","isWeb","isWindowDefined","window","isServer","isClient","useIsomorphicLayoutEffect","isChrome","navigator","test","userAgent","isWebTouchable","maxTouchPoints","isTouchable","isAndroid","isIos","process","env","TEST_NATIVE_PLATFORM","currentPlatform"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,IAASC,SAAA,EAAWC,eAAA,QAAuB;AAE3C,MAAMC,WAAA,GAAuB,OAAOH,KAAA,CAAMI,GAAA,GAAQ;EAE5CC,KAAA,GAAiB;EACjBC,eAAA,GAA2B,OAAOC,MAAA,GAAW;EAC7CC,QAAA,GAAoBH,KAAA,IAAS,CAACC,eAAA;EAC9BG,QAAA,GAAoBJ,KAAA,IAASC,eAAA;EAE7BI,yBAAA,GAA8CF,QAAA,GACvDP,SAAA,GACAC,eAAA;EAESS,QAAA,GACX,OAAOC,SAAA,GAAc,OAAe,SAASC,IAAA,CAAKD,SAAA,CAAUE,SAAA,IAAa,EAAE;EAEhEC,cAAA,GACXN,QAAA,KAAa,kBAAkBF,MAAA,IAAUK,SAAA,CAAUI,cAAA,GAAiB;EAEzDC,WAAA,GAAuB,CAACZ,KAAA,IAASU,cAAA;EAEjCG,SAAA,GAAqB;EACrBC,KAAA,GAAiBC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EACtDC,eAAA,GAAwD","ignoreList":[]}
@@ -1,7 +1,6 @@
1
- import { useLayoutEffect } from "react";
2
- import { use } from "react";
1
+ import React, { useLayoutEffect } from "react";
3
2
  import { Platform } from "react-native";
4
- var IS_REACT_19 = !!use,
3
+ var IS_REACT_19 = typeof React.use < "u",
5
4
  isWeb = !1,
6
5
  isWindowDefined = !1,
7
6
  isServer = !1,
@@ -1 +1 @@
1
- {"version":3,"names":["useLayoutEffect","use","Platform","IS_REACT_19","isWeb","isWindowDefined","isServer","isClient","useIsomorphicLayoutEffect","isChrome","isWebTouchable","isTouchable","isAndroid","OS","process","env","TEST_NATIVE_PLATFORM","isIos","platforms","ios","android","currentPlatform"],"sources":["../../src/constants.native.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAEhC,SAASC,GAAA,QAAW;AACpB,SAASC,QAAA,QAAgB;AAClB,IAAIC,WAAA,GAAc,CAAC,CAACF,GAAA;EAChBG,KAAA,GAAQ;EACRC,eAAA,GAAkB;EAClBC,QAAA,GAAW;EACXC,QAAA,GAAW;EACXC,yBAAA,GAA4BR,eAAA;EAC5BS,QAAA,GAAW;EACXC,cAAA,GAAiB;EACjBC,WAAA,GAAc;EACdC,SAAA,GAAYV,QAAA,CAASW,EAAA,KAAO,aAAaC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC9EC,KAAA,GAAQf,QAAA,CAASW,EAAA,KAAO,SAASC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC7EE,SAAA,GAAY;IACZC,GAAA,EAAK;IACLC,OAAA,EAAS;EACb;EACWC,eAAA,GAAkBH,SAAA,CAAUhB,QAAA,CAASW,EAAE,KAAK","ignoreList":[]}
1
+ {"version":3,"names":["React","useLayoutEffect","Platform","IS_REACT_19","use","isWeb","isWindowDefined","isServer","isClient","useIsomorphicLayoutEffect","isChrome","isWebTouchable","isTouchable","isAndroid","OS","process","env","TEST_NATIVE_PLATFORM","isIos","platforms","ios","android","currentPlatform"],"sources":["../../src/constants.native.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,IAASC,eAAA,QAAuB;AACvC,SAASC,QAAA,QAAgB;AAClB,IAAIC,WAAA,GAAc,OAAOH,KAAA,CAAMI,GAAA,GAAQ;EACnCC,KAAA,GAAQ;EACRC,eAAA,GAAkB;EAClBC,QAAA,GAAW;EACXC,QAAA,GAAW;EACXC,yBAAA,GAA4BR,eAAA;EAC5BS,QAAA,GAAW;EACXC,cAAA,GAAiB;EACjBC,WAAA,GAAc;EACdC,SAAA,GAAYX,QAAA,CAASY,EAAA,KAAO,aAAaC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC9EC,KAAA,GAAQhB,QAAA,CAASY,EAAA,KAAO,SAASC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EAC7EE,SAAA,GAAY;IACZC,GAAA,EAAK;IACLC,OAAA,EAAS;EACb;EACWC,eAAA,GAAkBH,SAAA,CAAUjB,QAAA,CAASY,EAAE,KAAK","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/constants",
3
- "version": "1.135.5",
3
+ "version": "1.135.7",
4
4
  "type": "module",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -19,7 +19,7 @@
19
19
  "clean:build": "tamagui-build clean:build"
20
20
  },
21
21
  "devDependencies": {
22
- "@tamagui/build": "1.135.5",
22
+ "@tamagui/build": "1.135.7",
23
23
  "react": "*",
24
24
  "react-native": "^0.79.2"
25
25
  },
@@ -1,9 +1,7 @@
1
- import { useLayoutEffect, type useEffect } from 'react'
2
- // @ts-ignore
3
- import { use } from 'react'
1
+ import React, { useLayoutEffect, type useEffect } from 'react'
4
2
  import { Platform } from 'react-native'
5
3
 
6
- export const IS_REACT_19: boolean = !!use
4
+ export const IS_REACT_19: boolean = typeof React.use !== 'undefined'
7
5
 
8
6
  export const isWeb: boolean = false
9
7
  export const isWindowDefined: boolean = false
package/src/constants.ts CHANGED
@@ -1,8 +1,6 @@
1
- import { useEffect, useLayoutEffect } from 'react'
2
- // @ts-ignore
3
- import { use } from 'react'
1
+ import React, { useEffect, useLayoutEffect } from 'react'
4
2
 
5
- export const IS_REACT_19: boolean = !!use
3
+ export const IS_REACT_19: boolean = typeof React.use !== 'undefined'
6
4
 
7
5
  export const isWeb: boolean = true
8
6
  export const isWindowDefined: boolean = typeof window !== 'undefined'
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAAA,SAAS,iBAAkC;AAI3C,OAAO,cAAMA;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AAEb,OAAO,cAAMC,kCAAkC;AAI/C,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
2
+ "mappings": "AAAA,SAAgB,iBAAkC;AAElD,OAAO,cAAMA;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AAEb,OAAO,cAAMC,kCAAkC;AAI/C,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
3
3
  "names": [
4
4
  "IS_REACT_19: boolean",
5
5
  "isWeb: boolean",
@@ -18,7 +18,7 @@
18
18
  "src/constants.ts"
19
19
  ],
20
20
  "sourcesContent": [
21
- "import { useEffect, useLayoutEffect } from 'react'\n// @ts-ignore\nimport { use } from 'react'\n\nexport const IS_REACT_19: boolean = !!use\n\nexport const isWeb: boolean = true\nexport const isWindowDefined: boolean = typeof window !== 'undefined'\nexport const isServer: boolean = isWeb && !isWindowDefined\nexport const isClient: boolean = isWeb && isWindowDefined\n\nexport const useIsomorphicLayoutEffect: typeof useEffect = isServer\n ? useEffect\n : useLayoutEffect\n\nexport const isChrome: boolean =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable: boolean =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable: boolean = !isWeb || isWebTouchable\n// set :boolean to avoid inferring type to false\nexport const isAndroid: boolean = false\nexport const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios'\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'web'\n"
21
+ "import React, { useEffect, useLayoutEffect } from 'react'\n\nexport const IS_REACT_19: boolean = typeof React.use !== 'undefined'\n\nexport const isWeb: boolean = true\nexport const isWindowDefined: boolean = typeof window !== 'undefined'\nexport const isServer: boolean = isWeb && !isWindowDefined\nexport const isClient: boolean = isWeb && isWindowDefined\n\nexport const useIsomorphicLayoutEffect: typeof useEffect = isServer\n ? useEffect\n : useLayoutEffect\n\nexport const isChrome: boolean =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable: boolean =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable: boolean = !isWeb || isWebTouchable\n// set :boolean to avoid inferring type to false\nexport const isAndroid: boolean = false\nexport const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios'\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'web'\n"
22
22
  ],
23
23
  "version": 3
24
24
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAAA,cAA+B,iBAAiB;AAKhD,OAAO,cAAMA;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,kCAAkC;AAC/C,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAIb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
2
+ "mappings": "AAAA,cAAsC,iBAAiB;AAGvD,OAAO,cAAMA;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,kCAAkC;AAC/C,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAIb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
3
3
  "names": [
4
4
  "IS_REACT_19: boolean",
5
5
  "isWeb: boolean",
@@ -18,7 +18,7 @@
18
18
  "src/constants.native.ts"
19
19
  ],
20
20
  "sourcesContent": [
21
- "import { useLayoutEffect, type useEffect } from 'react'\n// @ts-ignore\nimport { use } from 'react'\nimport { Platform } from 'react-native'\n\nexport const IS_REACT_19: boolean = !!use\n\nexport const isWeb: boolean = false\nexport const isWindowDefined: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\nexport const isAndroid: boolean =\n Platform.OS === 'android' || process.env.TEST_NATIVE_PLATFORM === 'android'\nexport const isIos: boolean =\n Platform.OS === 'ios' || process.env.TEST_NATIVE_PLATFORM === 'ios'\n\nconst platforms = { ios: 'ios', android: 'android' } as const\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' =\n platforms[Platform.OS] || 'native'\n"
21
+ "import React, { useLayoutEffect, type useEffect } from 'react'\nimport { Platform } from 'react-native'\n\nexport const IS_REACT_19: boolean = typeof React.use !== 'undefined'\n\nexport const isWeb: boolean = false\nexport const isWindowDefined: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\nexport const isAndroid: boolean =\n Platform.OS === 'android' || process.env.TEST_NATIVE_PLATFORM === 'android'\nexport const isIos: boolean =\n Platform.OS === 'ios' || process.env.TEST_NATIVE_PLATFORM === 'ios'\n\nconst platforms = { ios: 'ios', android: 'android' } as const\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' =\n platforms[Platform.OS] || 'native'\n"
22
22
  ],
23
23
  "version": 3
24
24
  }