@tamagui/normalize-css-color 2.0.0-rc.4 → 2.0.0-rc.40

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.
@@ -2,33 +2,35 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
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, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  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);
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: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
32
34
  var index_exports = {};
33
35
  __export(index_exports, {
34
36
  default: () => index_default,
@@ -37,13 +39,13 @@ __export(index_exports, {
37
39
  });
38
40
  module.exports = __toCommonJS(index_exports);
39
41
  var normalizeColor = __toESM(require("@react-native/normalize-color"), 1);
40
- const norm = normalizeColor.default || normalizeColor,
41
- normalizeCSSColor = norm;
42
+ const norm = normalizeColor.default || normalizeColor;
43
+ const normalizeCSSColor = norm;
42
44
  function rgba(colorInt) {
43
- const r = Math.round((colorInt & 4278190080) >>> 24),
44
- g = Math.round((colorInt & 16711680) >>> 16),
45
- b = Math.round((colorInt & 65280) >>> 8),
46
- a = ((colorInt & 255) >>> 0) / 255;
45
+ const r = Math.round((colorInt & 4278190080) >>> 24);
46
+ const g = Math.round((colorInt & 16711680) >>> 16);
47
+ const b = Math.round((colorInt & 65280) >>> 8);
48
+ const a = ((colorInt & 255) >>> 0) / 255;
47
49
  return {
48
50
  r,
49
51
  g,
@@ -4,33 +4,35 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  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);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var index_exports = {};
35
37
  __export(index_exports, {
36
38
  default: () => index_default,
@@ -38,14 +40,14 @@ __export(index_exports, {
38
40
  rgba: () => rgba
39
41
  });
40
42
  module.exports = __toCommonJS(index_exports);
41
- var normalizeColor = __toESM(require("@react-native/normalize-color"), 1),
42
- norm = normalizeColor.default || normalizeColor,
43
- normalizeCSSColor = norm;
43
+ var normalizeColor = __toESM(require("@react-native/normalize-color"), 1);
44
+ var norm = normalizeColor.default || normalizeColor;
45
+ var normalizeCSSColor = norm;
44
46
  function rgba(colorInt) {
45
- var r = Math.round((colorInt & 4278190080) >>> 24),
46
- g = Math.round((colorInt & 16711680) >>> 16),
47
- b = Math.round((colorInt & 65280) >>> 8),
48
- a = ((colorInt & 255) >>> 0) / 255;
47
+ var r = Math.round((colorInt & 4278190080) >>> 24);
48
+ var g = Math.round((colorInt & 16711680) >>> 16);
49
+ var b = Math.round((colorInt & 65280) >>> 8);
50
+ var a = ((colorInt & 255) >>> 0) / 255;
49
51
  return {
50
52
  r,
51
53
  g,
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","default","index_default","normalizeCSSColor","rgba","module","exports","normalizeColor","__toESM","require","norm","colorInt","r","Math","round","g","b","a"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC,aAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAZ,YAAgC,CAAAK,aAAA;AAGhC,IAAAQ,cAAa,GAAAC,OAAe,CAAAC,OAAA,gCACf;EAAoBC,IAAA,GAAAH,cAAA,CAAAN,OAAA,IAAAM,cAAA;EAAAJ,iBAAA,GAAAO,IAAA;AAE1B,SAASN,KAAKO,QAAA,EAAkB;EACrC,IAAAC,CAAA,GAAMC,IAAI,CAAAC,KAAK,EAAAH,QAAO,aAAW,QAAgB;IAAEI,CAAA,GAC7CF,IAAI,CAAAC,KAAK,EAAAH,QAAO,WAAW,QAAgB;IAAEK,CAAA,GAC7CH,IAAI,CAAAC,KAAK,EAAAH,QAAO,QAAW,QAAgB;IAACM,CAAA,GAC5C,EAAAN,QAAM,MAAW,WAAgB,GAAK;EAC5C,OAAO;IACLC,CAAA;IACAG,CAAA;IACAC,CAAA;IACAC;EACF;AACF;AAEA,IAAOf,aAAA,GAAQC,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","index_exports","default","index_default","normalizeCSSColor","rgba","module","exports","normalizeColor","require","norm","colorInt","r","Math","round","g","b","a"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n default: () => index_default,\n normalizeCSSColor: () => normalizeCSSColor,\n rgba: () => rgba\n});\nmodule.exports = __toCommonJS(index_exports);\nvar normalizeColor = __toESM(require(\"@react-native/normalize-color\"), 1);\nvar norm = normalizeColor.default || normalizeColor;\nvar normalizeCSSColor = norm;\nfunction rgba(colorInt) {\n var r = Math.round((colorInt & 4278190080) >>> 24);\n var g = Math.round((colorInt & 16711680) >>> 16);\n var b = Math.round((colorInt & 65280) >>> 8);\n var a = ((colorInt & 255) >>> 0) / 255;\n return {\n r,\n g,\n b,\n a\n };\n}\nvar index_default = normalizeCSSColor;\n//# sourceMappingURL=index.js.map\n"],"mappings":"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","ignoreList":[]}
package/dist/esm/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  import * as normalizeColor from "@react-native/normalize-color";
2
- const norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
2
+ const norm = normalizeColor.default || normalizeColor;
3
+ const normalizeCSSColor = norm;
3
4
  function rgba(colorInt) {
4
- const r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
5
+ const r = Math.round((colorInt & 4278190080) >>> 24);
6
+ const g = Math.round((colorInt & 16711680) >>> 16);
7
+ const b = Math.round((colorInt & 65280) >>> 8);
8
+ const a = ((colorInt & 255) >>> 0) / 255;
5
9
  return {
6
10
  r,
7
11
  g,
@@ -10,9 +14,5 @@ function rgba(colorInt) {
10
14
  };
11
15
  }
12
16
  var index_default = normalizeCSSColor;
13
- export {
14
- index_default as default,
15
- normalizeCSSColor,
16
- rgba
17
- };
17
+ export { index_default as default, normalizeCSSColor, rgba };
18
18
  //# sourceMappingURL=index.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,YAAY,oBAAoB;AAGhC,MAAM,OAAO,eAAe,WAAW,gBAC1B,oBAAoB;AAE1B,SAAS,KAAK,UAAkB;AACrC,QAAM,IAAI,KAAK,OAAO,WAAW,gBAAgB,EAAE,GAC7C,IAAI,KAAK,OAAO,WAAW,cAAgB,EAAE,GAC7C,IAAI,KAAK,OAAO,WAAW,WAAgB,CAAC,GAC5C,MAAM,WAAW,SAAgB,KAAK;AAC5C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["normalizeColor","norm","default","normalizeCSSColor","rgba","colorInt","r","Math","round","g","b","a","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,cAAA,MAAoB;AAGhC,MAAMC,IAAA,GAAOD,cAAA,CAAeE,OAAA,IAAWF,cAAA;AAChC,MAAMG,iBAAA,GAAoBF,IAAA;AAE1B,SAASG,KAAKC,QAAA,EAAkB;EACrC,MAAMC,CAAA,GAAIC,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,gBAAgB,EAAE;EACnD,MAAMI,CAAA,GAAIF,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,cAAgB,EAAE;EACnD,MAAMK,CAAA,GAAIH,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,WAAgB,CAAC;EAClD,MAAMM,CAAA,KAAMN,QAAA,GAAW,SAAgB,KAAK;EAC5C,OAAO;IACLC,CAAA;IACAG,CAAA;IACAC,CAAA;IACAC;EACF;AACF;AAEA,IAAOC,aAAA,GAAQT,iBAAA","ignoreList":[]}
@@ -1,11 +1,11 @@
1
1
  import * as normalizeColor from "@react-native/normalize-color";
2
- const norm = normalizeColor.default || normalizeColor,
3
- normalizeCSSColor = norm;
2
+ const norm = normalizeColor.default || normalizeColor;
3
+ const normalizeCSSColor = norm;
4
4
  function rgba(colorInt) {
5
- const r = Math.round((colorInt & 4278190080) >>> 24),
6
- g = Math.round((colorInt & 16711680) >>> 16),
7
- b = Math.round((colorInt & 65280) >>> 8),
8
- a = ((colorInt & 255) >>> 0) / 255;
5
+ const r = Math.round((colorInt & 4278190080) >>> 24);
6
+ const g = Math.round((colorInt & 16711680) >>> 16);
7
+ const b = Math.round((colorInt & 65280) >>> 8);
8
+ const a = ((colorInt & 255) >>> 0) / 255;
9
9
  return {
10
10
  r,
11
11
  g,
@@ -1 +1 @@
1
- {"version":3,"names":["normalizeColor","norm","default","normalizeCSSColor","rgba","colorInt","r","Math","round","g","b","a","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,cAAA,MAAoB;AAGhC,MAAMC,IAAA,GAAOD,cAAA,CAAeE,OAAA,IAAWF,cAAA;EAC1BG,iBAAA,GAAoBF,IAAA;AAE1B,SAASG,KAAKC,QAAA,EAAkB;EACrC,MAAMC,CAAA,GAAIC,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,gBAAgB,EAAE;IAC7CI,CAAA,GAAIF,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,cAAgB,EAAE;IAC7CK,CAAA,GAAIH,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,WAAgB,CAAC;IAC5CM,CAAA,KAAMN,QAAA,GAAW,SAAgB,KAAK;EAC5C,OAAO;IACLC,CAAA;IACAG,CAAA;IACAC,CAAA;IACAC;EACF;AACF;AAEA,IAAOC,aAAA,GAAQT,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["normalizeColor","norm","default","normalizeCSSColor","rgba","colorInt","r","Math","round","g","b","a","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,cAAA,MAAoB;AAGhC,MAAMC,IAAA,GAAOD,cAAA,CAAeE,OAAA,IAAWF,cAAA;AAChC,MAAMG,iBAAA,GAAoBF,IAAA;AAE1B,SAASG,KAAKC,QAAA,EAAkB;EACrC,MAAMC,CAAA,GAAIC,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,gBAAgB,EAAE;EACnD,MAAMI,CAAA,GAAIF,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,cAAgB,EAAE;EACnD,MAAMK,CAAA,GAAIH,IAAA,CAAKC,KAAA,EAAOH,QAAA,GAAW,WAAgB,CAAC;EAClD,MAAMM,CAAA,KAAMN,QAAA,GAAW,SAAgB,KAAK;EAC5C,OAAO;IACLC,CAAA;IACAG,CAAA;IACAC,CAAA;IACAC;EACF;AACF;AAEA,IAAOC,aAAA,GAAQT,iBAAA","ignoreList":[]}
@@ -1,11 +1,11 @@
1
1
  import * as normalizeColor from "@react-native/normalize-color";
2
- var norm = normalizeColor.default || normalizeColor,
3
- normalizeCSSColor = norm;
2
+ var norm = normalizeColor.default || normalizeColor;
3
+ var normalizeCSSColor = norm;
4
4
  function rgba(colorInt) {
5
- var r = Math.round((colorInt & 4278190080) >>> 24),
6
- g = Math.round((colorInt & 16711680) >>> 16),
7
- b = Math.round((colorInt & 65280) >>> 8),
8
- a = ((colorInt & 255) >>> 0) / 255;
5
+ var r = Math.round((colorInt & 4278190080) >>> 24);
6
+ var g = Math.round((colorInt & 16711680) >>> 16);
7
+ var b = Math.round((colorInt & 65280) >>> 8);
8
+ var a = ((colorInt & 255) >>> 0) / 255;
9
9
  return {
10
10
  r,
11
11
  g,
@@ -1 +1 @@
1
- {"version":3,"names":["normalizeColor","norm","default","normalizeCSSColor","rgba","colorInt","r","Math","round","g","b","a","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,cAAA,MAAoB;AAGhC,IAAAC,IAAM,GAAAD,cAAO,CAAAE,OAAe,IAAAF,cAAW;EAAAG,iBAC1B,GAAAF,IAAoB;AAE1B,SAASG,KAAKC,QAAA,EAAkB;EACrC,IAAAC,CAAA,GAAMC,IAAI,CAAAC,KAAK,EAAAH,QAAO,aAAW,QAAgB;IAAEI,CAAA,GAC7CF,IAAI,CAAAC,KAAK,EAAAH,QAAO,WAAW,QAAgB;IAAEK,CAAA,GAC7CH,IAAI,CAAAC,KAAK,EAAAH,QAAO,QAAW,QAAgB;IAACM,CAAA,GAC5C,EAAAN,QAAM,MAAW,WAAgB,GAAK;EAC5C,OAAO;IACLC,CAAA;IACAG,CAAA;IACAC,CAAA;IACAC;EACF;AACF;AAEA,IAAOC,aAAA,GAAQT,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["normalizeColor","norm","default","normalizeCSSColor","rgba","colorInt","r","Math","round","g","b","a","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,cAAA,MAAoB;AAGhC,IAAAC,IAAM,GAAAD,cAAO,CAAAE,OAAe,IAAAF,cAAW;AAChC,IAAAG,iBAAM,GAAAF,IAAoB;AAE1B,SAASG,KAAKC,QAAA,EAAkB;EACrC,IAAAC,CAAA,GAAMC,IAAI,CAAAC,KAAK,EAAAH,QAAO,aAAW,QAAgB;EACjD,IAAAI,CAAA,GAAMF,IAAI,CAAAC,KAAK,EAAAH,QAAO,WAAW,QAAgB;EACjD,IAAAK,CAAA,GAAMH,IAAI,CAAAC,KAAK,EAAAH,QAAO,QAAW,QAAgB;EACjD,IAAAM,CAAA,GAAM,EAAAN,QAAM,MAAW,WAAgB,GAAK;EAC5C,OAAO;IACLC,CAAA;IACAG,CAAA;IACAC,CAAA;IACAC;EACF;AACF;AAEA,IAAOC,aAAA,GAAQT,iBAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/normalize-css-color",
3
- "version": "2.0.0-rc.4",
3
+ "version": "2.0.0-rc.40",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -18,15 +18,12 @@
18
18
  "./package.json": "./package.json",
19
19
  ".": {
20
20
  "types": "./types/index.d.ts",
21
- "react-native": {
22
- "module": "./dist/esm/index.native.js",
23
- "import": "./dist/esm/index.native.js",
24
- "require": "./dist/cjs/index.native.js"
25
- },
21
+ "react-native": "./dist/esm/index.native.js",
22
+ "browser": "./dist/esm/index.mjs",
26
23
  "module": "./dist/esm/index.mjs",
27
24
  "import": "./dist/esm/index.mjs",
28
25
  "require": "./dist/cjs/index.cjs",
29
- "default": "./dist/cjs/index.native.js"
26
+ "default": "./dist/esm/index.mjs"
30
27
  }
31
28
  },
32
29
  "publishConfig": {
@@ -42,6 +39,6 @@
42
39
  "@react-native/normalize-color": "^2.1.0"
43
40
  },
44
41
  "devDependencies": {
45
- "@tamagui/build": "2.0.0-rc.4"
42
+ "@tamagui/build": "2.0.0-rc.40"
46
43
  }
47
44
  }
package/dist/cjs/index.js DELETED
@@ -1,42 +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, __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 index_exports = {};
24
- __export(index_exports, {
25
- default: () => index_default,
26
- normalizeCSSColor: () => normalizeCSSColor,
27
- rgba: () => rgba
28
- });
29
- module.exports = __toCommonJS(index_exports);
30
- var normalizeColor = __toESM(require("@react-native/normalize-color"), 1);
31
- const norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
32
- function rgba(colorInt) {
33
- const r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
34
- return {
35
- r,
36
- g,
37
- b,
38
- a
39
- };
40
- }
41
- var index_default = normalizeCSSColor;
42
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAgC;AAGhC,MAAM,OAAO,eAAe,WAAW,gBAC1B,oBAAoB;AAE1B,SAAS,KAAK,UAAkB;AACrC,QAAM,IAAI,KAAK,OAAO,WAAW,gBAAgB,EAAE,GAC7C,IAAI,KAAK,OAAO,WAAW,cAAgB,EAAE,GAC7C,IAAI,KAAK,OAAO,WAAW,WAAgB,CAAC,GAC5C,MAAM,WAAW,SAAgB,KAAK;AAC5C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;",
5
- "names": []
6
- }