@tamagui/constants 1.116.1 → 1.116.3

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.
@@ -0,0 +1,40 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ 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 __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);
23
+ var constants_exports = {};
24
+ __export(constants_exports, {
25
+ currentPlatform: () => currentPlatform,
26
+ isAndroid: () => isAndroid,
27
+ isChrome: () => isChrome,
28
+ isClient: () => isClient,
29
+ isIos: () => isIos,
30
+ isServer: () => isServer,
31
+ isTouchable: () => isTouchable,
32
+ isWeb: () => isWeb,
33
+ isWebTouchable: () => isWebTouchable,
34
+ isWindowDefined: () => isWindowDefined,
35
+ useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
36
+ });
37
+ module.exports = __toCommonJS(constants_exports);
38
+ var import_react = __toESM(require("react"));
39
+ const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.default.useEffect : import_react.default.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = !1, currentPlatform = "web";
40
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function")
7
+ for (let key of __getOwnPropNames(from))
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
+ return to;
10
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var src_exports = {};
13
+ module.exports = __toCommonJS(src_exports);
14
+ __reExport(src_exports, require("./constants"), module.exports);
15
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/constants",
3
- "version": "1.116.1",
3
+ "version": "1.116.3",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -18,7 +18,7 @@
18
18
  "clean:build": "tamagui-build clean:build"
19
19
  },
20
20
  "devDependencies": {
21
- "@tamagui/build": "1.116.1",
21
+ "@tamagui/build": "1.116.3",
22
22
  "react": "^18.2.0 || ^19.0.0"
23
23
  },
24
24
  "exports": {
@@ -1,58 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
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 __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);
32
- var constants_android_exports = {};
33
- __export(constants_android_exports, {
34
- currentPlatform: () => currentPlatform,
35
- isAndroid: () => isAndroid,
36
- isChrome: () => isChrome,
37
- isClient: () => isClient,
38
- isIos: () => isIos,
39
- isServer: () => isServer,
40
- isTouchable: () => isTouchable,
41
- isWeb: () => isWeb,
42
- isWebTouchable: () => isWebTouchable,
43
- isWindowDefined: () => isWindowDefined,
44
- useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
45
- });
46
- module.exports = __toCommonJS(constants_android_exports);
47
- var import_react = __toESM(require("react"));
48
- const isWeb = !1,
49
- isWindowDefined = !1,
50
- isServer = !1,
51
- isClient = !1,
52
- useIsomorphicLayoutEffect = import_react.default.useLayoutEffect,
53
- isChrome = !1,
54
- isWebTouchable = !1,
55
- isTouchable = !0,
56
- isAndroid = !0,
57
- isIos = !1,
58
- currentPlatform = "android";
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/constants.android.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAEX,MAAM,QAAiB,IACjB,kBAA2B,IAC3B,WAAoB,IACpB,WAAoB,IACpB,4BAA4B,aAAAA,QAAM,iBAClC,WAAoB,IACpB,iBAA0B,IAC1B,cAAuB,IACvB,YAAqB,IACrB,QAAiB,IACjB,kBAAwD;",
5
- "names": ["React"]
6
- }
@@ -1,58 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
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 __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);
32
- var constants_ios_exports = {};
33
- __export(constants_ios_exports, {
34
- currentPlatform: () => currentPlatform,
35
- isAndroid: () => isAndroid,
36
- isChrome: () => isChrome,
37
- isClient: () => isClient,
38
- isIos: () => isIos,
39
- isServer: () => isServer,
40
- isTouchable: () => isTouchable,
41
- isWeb: () => isWeb,
42
- isWebTouchable: () => isWebTouchable,
43
- isWindowDefined: () => isWindowDefined,
44
- useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
45
- });
46
- module.exports = __toCommonJS(constants_ios_exports);
47
- var import_react = __toESM(require("react"));
48
- const isWeb = !1,
49
- isWindowDefined = !1,
50
- isServer = !1,
51
- isClient = !1,
52
- useIsomorphicLayoutEffect = import_react.default.useLayoutEffect,
53
- isChrome = !1,
54
- isWebTouchable = !1,
55
- isTouchable = !0,
56
- isAndroid = !1,
57
- isIos = !0,
58
- currentPlatform = "ios";
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/constants.ios.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAEX,MAAM,QAAiB,IACjB,kBAA2B,IAC3B,WAAoB,IACpB,WAAoB,IACpB,4BAA4B,aAAAA,QAAM,iBAClC,WAAoB,IACpB,iBAA0B,IAC1B,cAAuB,IACvB,YAAqB,IACrB,QAAiB,IACjB,kBAAwD;",
5
- "names": ["React"]
6
- }
@@ -1,58 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
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 __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);
32
- var constants_native_exports = {};
33
- __export(constants_native_exports, {
34
- currentPlatform: () => currentPlatform,
35
- isAndroid: () => isAndroid,
36
- isChrome: () => isChrome,
37
- isClient: () => isClient,
38
- isIos: () => isIos,
39
- isServer: () => isServer,
40
- isTouchable: () => isTouchable,
41
- isWeb: () => isWeb,
42
- isWebTouchable: () => isWebTouchable,
43
- isWindowDefined: () => isWindowDefined,
44
- useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
45
- });
46
- module.exports = __toCommonJS(constants_native_exports);
47
- var import_react = __toESM(require("react"));
48
- const isWeb = !1,
49
- isWindowDefined = !1,
50
- isServer = !1,
51
- isClient = !1,
52
- useIsomorphicLayoutEffect = import_react.default.useLayoutEffect,
53
- isChrome = !1,
54
- isWebTouchable = !1,
55
- isTouchable = !0,
56
- isAndroid = !1,
57
- isIos = !1,
58
- currentPlatform = "native";
@@ -1,6 +0,0 @@
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,mBAAkB;AAEX,MAAM,QAAiB,IACjB,kBAA2B,IAC3B,WAAoB,IACpB,WAAoB,IACpB,4BAA4B,aAAAA,QAAM,iBAClC,WAAoB,IACpB,iBAA0B,IAC1B,cAAuB,IACvB,YAAqB,IACrB,QAAiB,IACjB,kBAAwD;",
5
- "names": ["React"]
6
- }
File without changes