@hanzogui/normalize-css-color 8.3.1 → 8.3.2

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,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeCSSColor = void 0;
4
+ exports.rgba = rgba;
5
+ const tslib_1 = require("tslib");
6
+ const normalizeColor = tslib_1.__importStar(require("@react-native/normalize-color"));
7
+ // vite/webpack compat
8
+ const norm = normalizeColor.default || normalizeColor;
9
+ exports.normalizeCSSColor = norm;
10
+ function rgba(colorInt) {
11
+ const r = Math.round((colorInt & 0xff000000) >>> 24);
12
+ const g = Math.round((colorInt & 0x00ff0000) >>> 16);
13
+ const b = Math.round((colorInt & 0x0000ff00) >>> 8);
14
+ const a = ((colorInt & 0x000000ff) >>> 0) / 255;
15
+ return {
16
+ r,
17
+ g,
18
+ b,
19
+ a,
20
+ };
21
+ }
22
+ exports.default = exports.normalizeCSSColor;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,MAAY,cAAc,kEAAqC;AAE/D,sBAAsB;AACtB,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,IAAI,cAAc,CAAA;AACxC,QAAA,iBAAiB,GAAG,IAAwC,CAAA;AAEzE,cAAqB,QAAgB;IACnC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;IACpD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;IACpD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;IACnD,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,CAAA;IAC/C,OAAO;QACL,CAAC;QACD,CAAC;QACD,CAAC;QACD,CAAC;KACF,CAAA;AACH,CAAC;kBAEc,QAAA,iBAAiB"}
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/dist/esm/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import * as normalizeColor from "@react-native/normalize-color";
1
+ import * as normalizeColor from '@react-native/normalize-color';
2
+ // vite/webpack compat
2
3
  const norm = normalizeColor.default || normalizeColor;
3
- const normalizeCSSColor = norm;
4
- function rgba(colorInt) {
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
- return {
10
- r,
11
- g,
12
- b,
13
- a
14
- };
4
+ export const normalizeCSSColor = norm;
5
+ export function rgba(colorInt) {
6
+ const r = Math.round((colorInt & 0xff000000) >>> 24);
7
+ const g = Math.round((colorInt & 0x00ff0000) >>> 16);
8
+ const b = Math.round((colorInt & 0x0000ff00) >>> 8);
9
+ const a = ((colorInt & 0x000000ff) >>> 0) / 255;
10
+ return {
11
+ r,
12
+ g,
13
+ b,
14
+ a,
15
+ };
15
16
  }
16
- var index_default = normalizeCSSColor;
17
- export { index_default as default, normalizeCSSColor, rgba };
18
- //# sourceMappingURL=index.js.map
17
+ export default normalizeCSSColor;
18
+ //# sourceMappingURL=index.js.map
@@ -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;AAChC,MAAMG,iBAAA,GAAoBF,IAAA;AAE1B,SAASG,KAAK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
1
1
  {
2
2
  "name": "@hanzogui/normalize-css-color",
3
- "version": "8.3.1",
3
+ "version": "8.3.2",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -9,26 +9,26 @@
9
9
  ],
10
10
  "type": "module",
11
11
  "sideEffects": false,
12
- "main": "dist/cjs",
13
- "module": "dist/esm",
12
+ "main": "./dist/cjs/index.js",
13
+ "module": "./dist/esm/index.js",
14
14
  "types": "./types/index.d.ts",
15
15
  "exports": {
16
16
  "./package.json": "./package.json",
17
17
  ".": {
18
18
  "types": "./types/index.d.ts",
19
- "react-native": "./dist/esm/index.native.js",
20
- "browser": "./dist/esm/index.mjs",
21
- "module": "./dist/esm/index.mjs",
22
- "import": "./dist/esm/index.mjs",
23
- "require": "./dist/cjs/index.cjs",
24
- "default": "./dist/esm/index.mjs"
19
+ "react-native": "./dist/esm/index.js",
20
+ "browser": "./dist/esm/index.js",
21
+ "module": "./dist/esm/index.js",
22
+ "import": "./dist/esm/index.js",
23
+ "require": "./dist/cjs/index.js",
24
+ "default": "./dist/esm/index.js"
25
25
  }
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
30
  "scripts": {
31
- "build": "hanzogui-build",
31
+ "build": "hanzogui-build --skip-native",
32
32
  "watch": "hanzogui-build --watch",
33
33
  "clean": "hanzogui-build clean",
34
34
  "clean:build": "hanzogui-build clean:build"
@@ -37,6 +37,11 @@
37
37
  "@react-native/normalize-color": "^2.1.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@hanzogui/build": "8.3.1"
40
+ "@hanzogui/build": "8.3.2"
41
+ },
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/hanzoai/gui.git",
45
+ "directory": "pkgs/core/normalize-css-color"
41
46
  }
42
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,EAAW,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;AAEzE,wBAAgB,IAAI,CAAC,QAAQ,EAAE,MAAM;;;;;EAWpC;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,EAAW,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;AAEzE,wBAAgB,IAAI,CAAC,QAAQ,EAAE,MAAM;;;;;EAWpC;eAEc,iBAAiB"}
@@ -1,56 +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
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
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, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
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: true
30
- }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
34
- var index_exports = {};
35
- __export(index_exports, {
36
- default: () => index_default,
37
- normalizeCSSColor: () => normalizeCSSColor,
38
- rgba: () => rgba
39
- });
40
- module.exports = __toCommonJS(index_exports);
41
- var normalizeColor = __toESM(require("@react-native/normalize-color"), 1);
42
- const norm = normalizeColor.default || normalizeColor;
43
- const normalizeCSSColor = norm;
44
- function rgba(colorInt) {
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;
49
- return {
50
- r,
51
- g,
52
- b,
53
- a
54
- };
55
- }
56
- var index_default = normalizeCSSColor;
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
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, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
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);
36
- var index_exports = {};
37
- __export(index_exports, {
38
- default: () => index_default,
39
- normalizeCSSColor: () => normalizeCSSColor,
40
- rgba: () => rgba
41
- });
42
- module.exports = __toCommonJS(index_exports);
43
- var normalizeColor = __toESM(require("@react-native/normalize-color"), 1);
44
- var norm = normalizeColor.default || normalizeColor;
45
- var normalizeCSSColor = norm;
46
- function rgba(colorInt) {
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;
51
- return {
52
- r,
53
- g,
54
- b,
55
- a
56
- };
57
- }
58
- var index_default = normalizeCSSColor;
59
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,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,gCAAW;AAChC,IAAAC,IAAM,GAAAH,cAAA,CAAoBN,OAAA,IAAAM,cAAA;AAE1B,IAAAJ,iBAAc,GAAkBO,IAAA;AACrC,SAAMN,IAAIA,CAAAO,QAAK,EAAO;EACtB,IAAAC,CAAA,GAAMC,IAAI,CAAAC,KAAK,EAAAH,QAAO,aAAW,MAAgB,EAAE;EACnD,IAAAI,CAAA,GAAMF,IAAI,CAAAC,KAAK,EAAAH,QAAO,WAAW,MAAiB;EAClD,IAAAK,CAAA,GAAMH,IAAM,CAAAC,KAAA,EAAAH,QAAW,QAAgB,MAAK;EAC5C,IAAAM,CAAA,GAAO,EAAAN,QAAA;EAAA,OACL;IACAC,CAAA;IACAG,CAAA;IACAC,CAAA;IACFC;EACF;AAEA","ignoreList":[]}
@@ -1,18 +0,0 @@
1
- import * as normalizeColor from "@react-native/normalize-color";
2
- const norm = normalizeColor.default || normalizeColor;
3
- const normalizeCSSColor = norm;
4
- function rgba(colorInt) {
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
- return {
10
- r,
11
- g,
12
- b,
13
- a
14
- };
15
- }
16
- var index_default = normalizeCSSColor;
17
- export { index_default as default, normalizeCSSColor, rgba };
18
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
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,18 +0,0 @@
1
- import * as normalizeColor from "@react-native/normalize-color";
2
- var norm = normalizeColor.default || normalizeColor;
3
- var normalizeCSSColor = norm;
4
- function rgba(colorInt) {
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
- return {
10
- r,
11
- g,
12
- b,
13
- a
14
- };
15
- }
16
- var index_default = normalizeCSSColor;
17
- export { index_default as default, normalizeCSSColor, rgba };
18
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
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":[]}