@tamagui/constants 1.135.2 → 1.135.4-1761748186554

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,18 +1,25 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var constants_native_exports = {};
17
24
  __export(constants_native_exports, {
18
25
  IS_REACT_19: () => IS_REACT_19,
@@ -29,23 +36,23 @@ __export(constants_native_exports, {
29
36
  useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
30
37
  });
31
38
  module.exports = __toCommonJS(constants_native_exports);
32
- var import_react = require("react"), import_react2 = require("react"), import_react_native = require("react-native"), IS_REACT_19 = !!import_react2.use, isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = import_react_native.Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android", isIos = import_react_native.Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios", platforms = {
33
- ios: "ios",
34
- android: "android"
35
- }, currentPlatform = platforms[import_react_native.Platform.OS] || "native";
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {
38
- IS_REACT_19,
39
- currentPlatform,
40
- isAndroid,
41
- isChrome,
42
- isClient,
43
- isIos,
44
- isServer,
45
- isTouchable,
46
- isWeb,
47
- isWebTouchable,
48
- isWindowDefined,
49
- useIsomorphicLayoutEffect
50
- });
39
+ var import_react = require("react"),
40
+ import_react2 = require("react"),
41
+ import_react_native = require("react-native"),
42
+ IS_REACT_19 = !!import_react2.use,
43
+ isWeb = !1,
44
+ isWindowDefined = !1,
45
+ isServer = !1,
46
+ isClient = !1,
47
+ useIsomorphicLayoutEffect = import_react.useLayoutEffect,
48
+ isChrome = !1,
49
+ isWebTouchable = !1,
50
+ isTouchable = !0,
51
+ isAndroid = import_react_native.Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android",
52
+ isIos = import_react_native.Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios",
53
+ platforms = {
54
+ ios: "ios",
55
+ android: "android"
56
+ },
57
+ currentPlatform = platforms[import_react_native.Platform.OS] || "native";
51
58
  //# sourceMappingURL=constants.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/constants.native.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgC,kBAEhCA,gBAAoB,kBACpB,sBAAyB,yBACd,cAAc,CAAC,CAAC,mBAChB,QAAQ,IACR,kBAAkB,IAClB,WAAW,IACX,WAAW,IACX,4BAA4B,8BAC5B,WAAW,IACX,iBAAiB,IACjB,cAAc,IACd,YAAY,6BAAS,OAAO,aAAa,QAAQ,IAAI,yBAAyB,WAC9E,QAAQ,6BAAS,OAAO,SAAS,QAAQ,IAAI,yBAAyB,OAC7E,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,SAAS;AACb,GACW,kBAAkB,UAAU,6BAAS,EAAE,KAAK;",
5
- "names": ["import_react"]
6
- }
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,20 +1,21 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
13
18
  var index_exports = {};
14
19
  module.exports = __toCommonJS(index_exports);
15
- __reExport(index_exports, require("./constants"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./constants")
19
- });
20
- //# sourceMappingURL=index.js.map
20
+ __reExport(index_exports, require("./constants.native.js"), module.exports);
21
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,wBAAd;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/constants",
3
- "version": "1.135.2",
3
+ "version": "1.135.4-1761748186554",
4
+ "type": "module",
4
5
  "types": "./types/index.d.ts",
5
6
  "main": "dist/cjs",
6
7
  "module": "dist/esm",
@@ -18,7 +19,7 @@
18
19
  "clean:build": "tamagui-build clean:build"
19
20
  },
20
21
  "devDependencies": {
21
- "@tamagui/build": "1.135.2",
22
+ "@tamagui/build": "1.135.4-1761748186554",
22
23
  "react": "*",
23
24
  "react-native": "^0.79.2"
24
25
  },
@@ -8,7 +8,6 @@ export declare const useIsomorphicLayoutEffect: typeof useEffect;
8
8
  export declare const isChrome: boolean;
9
9
  export declare const isWebTouchable: boolean;
10
10
  export declare const isTouchable: boolean;
11
- // set :boolean to avoid inferring type to false
12
11
  export declare const isAndroid: boolean;
13
12
  export declare const isIos: boolean;
14
13
  export declare const currentPlatform: "web" | "ios" | "native" | "android";
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAAA,SAAS,iBAAkC,OAAO;AAIlD,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,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",
3
3
  "names": [
4
4
  "IS_REACT_19: boolean",
5
5
  "isWeb: boolean",
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAAA,cAA+B,iBAAiB,OAAO;AAKvD,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,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",
3
3
  "names": [
4
4
  "IS_REACT_19: boolean",
5
5
  "isWeb: boolean",