@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.
- package/dist/cjs/index.cjs +30 -28
- package/dist/cjs/index.native.js +31 -29
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +6 -6
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +5 -8
- package/dist/cjs/index.js +0 -42
- package/dist/cjs/index.js.map +0 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
-
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
42
|
+
const norm = normalizeColor.default || normalizeColor;
|
|
43
|
+
const normalizeCSSColor = norm;
|
|
42
44
|
function rgba(colorInt) {
|
|
43
|
-
const r = Math.round((colorInt & 4278190080) >>> 24)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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,
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -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
|
-
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
21
|
-
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
22
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
43
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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":["
|
|
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":"AAAA,YAA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IAAIM,CAAC,GAAG,CAAC,CAACN,QAAQ,GAAG,GAAG,MAAM,CAAC,IAAI,GAAG;EACtC,OAAO;IACLC,CAAC;IACDG,CAAC;IACDC,CAAC;IACDC;EACF,CAAC;AACH;AACA,IAAId,aAAa,GAAGC,iBAAiB","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
|
|
2
|
+
const norm = normalizeColor.default || normalizeColor;
|
|
3
|
+
const normalizeCSSColor = norm;
|
|
3
4
|
function rgba(colorInt) {
|
|
4
|
-
const r = Math.round((colorInt & 4278190080) >>> 24)
|
|
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
|
package/dist/esm/index.js.map
CHANGED
|
@@ -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":[]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as normalizeColor from "@react-native/normalize-color";
|
|
2
|
-
const norm = normalizeColor.default || normalizeColor
|
|
3
|
-
|
|
2
|
+
const norm = normalizeColor.default || normalizeColor;
|
|
3
|
+
const normalizeCSSColor = norm;
|
|
4
4
|
function rgba(colorInt) {
|
|
5
|
-
const r = Math.round((colorInt & 4278190080) >>> 24)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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,
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -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;
|
|
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":[]}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as normalizeColor from "@react-native/normalize-color";
|
|
2
|
-
var norm = normalizeColor.default || normalizeColor
|
|
3
|
-
|
|
2
|
+
var norm = normalizeColor.default || normalizeColor;
|
|
3
|
+
var normalizeCSSColor = norm;
|
|
4
4
|
function rgba(colorInt) {
|
|
5
|
-
var r = Math.round((colorInt & 4278190080) >>> 24)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
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.
|
|
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
|
-
|
|
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/
|
|
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.
|
|
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
|
package/dist/cjs/index.js.map
DELETED
|
@@ -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
|
-
}
|