@tamagui/normalize-css-color 1.135.4-1761748186554 → 1.135.4

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.
@@ -36,7 +36,7 @@ __export(index_exports, {
36
36
  rgba: () => rgba
37
37
  });
38
38
  module.exports = __toCommonJS(index_exports);
39
- var normalizeColor = __toESM(require("@react-native/normalize-color"), 1);
39
+ var normalizeColor = __toESM(require("@react-native/normalize-color"));
40
40
  const norm = normalizeColor.default || normalizeColor,
41
41
  normalizeCSSColor = norm;
42
42
  function rgba(colorInt) {
package/dist/cjs/index.js CHANGED
@@ -27,7 +27,7 @@ __export(index_exports, {
27
27
  rgba: () => rgba
28
28
  });
29
29
  module.exports = __toCommonJS(index_exports);
30
- var normalizeColor = __toESM(require("@react-native/normalize-color"), 1);
30
+ var normalizeColor = __toESM(require("@react-native/normalize-color"));
31
31
  const norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
32
32
  function rgba(colorInt) {
33
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;
@@ -1,36 +1,26 @@
1
1
  "use strict";
2
-
3
2
  var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
9
7
  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, {
17
- get: () => from[key],
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- return to;
21
- };
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: !0 });
10
+ }, __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ };
22
16
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
17
  // If the importer is in node compatibility mode or this is not an ESM
24
18
  // file that has been converted to a CommonJS file using a Babel-
25
19
  // compatible transform (i.e. "__esModule" has not been set), then set
26
20
  // "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);
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
+ mod
23
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
34
24
  var index_exports = {};
35
25
  __export(index_exports, {
36
26
  default: () => index_default,
@@ -38,14 +28,9 @@ __export(index_exports, {
38
28
  rgba: () => rgba
39
29
  });
40
30
  module.exports = __toCommonJS(index_exports);
41
- var normalizeColor = __toESM(require("@react-native/normalize-color"), 1),
42
- norm = normalizeColor.default || normalizeColor,
43
- normalizeCSSColor = norm;
31
+ var normalizeColor = __toESM(require("@react-native/normalize-color")), norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
44
32
  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;
33
+ var r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
49
34
  return {
50
35
  r,
51
36
  g,
@@ -54,4 +39,9 @@ function rgba(colorInt) {
54
39
  };
55
40
  }
56
41
  var index_default = normalizeCSSColor;
57
- //# sourceMappingURL=index.native.js.map
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ normalizeCSSColor,
45
+ rgba
46
+ });
47
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
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
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAgC,mDAE5B,OAAO,eAAe,WAAW,gBAC1B,oBAAoB;AACxB,SAAS,KAAK,UAAU;AAC3B,MAAI,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;AAC1C,SAAO;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACJ;AACA,IAAO,gBAAQ;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/normalize-css-color",
3
- "version": "1.135.4-1761748186554",
4
- "type": "module",
3
+ "version": "1.135.4",
5
4
  "sideEffects": [
6
5
  "*.css"
7
6
  ],
@@ -24,7 +23,7 @@
24
23
  "@react-native/normalize-color": "^2.1.0"
25
24
  },
26
25
  "devDependencies": {
27
- "@tamagui/build": "1.135.4-1761748186554"
26
+ "@tamagui/build": "1.135.4"
28
27
  },
29
28
  "exports": {
30
29
  "./package.json": "./package.json",