@tamagui/normalize-css-color 1.86.0 → 1.86.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.
package/dist/cjs/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var normalizeColor = __toESM(require("@react-native/normalize-color"));
31
31
  const norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
32
32
  function rgba(colorInt) {
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;
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
34
  return {
35
35
  r,
36
36
  g,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
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,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,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,cAAQ;",
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,cAAQ;",
5
5
  "names": []
6
6
  }
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(src_exports);
31
31
  var normalizeColor = __toESM(require("@react-native/normalize-color"));
32
32
  const norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
33
33
  function rgba(colorInt) {
34
- var r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
34
+ const r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
35
35
  return {
36
36
  r,
37
37
  g,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
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,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,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,cAAQ;",
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,cAAQ;",
5
5
  "names": []
6
6
  }
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as normalizeColor from "@react-native/normalize-color";
2
2
  const norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
3
3
  function rgba(colorInt) {
4
- var r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
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
5
  return {
6
6
  r,
7
7
  g,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,YAAY,oBAAoB;AAGhC,MAAM,OAAO,eAAe,WAAW,gBAC1B,oBAAoB;AAE1B,SAAS,KAAK,UAAkB;AACrC,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,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,cAAQ;",
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,cAAQ;",
5
5
  "names": []
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import * as normalizeColor from "@react-native/normalize-color";
2
2
  const norm = normalizeColor.default || normalizeColor, normalizeCSSColor = norm;
3
3
  function rgba(colorInt) {
4
- var r = Math.round((colorInt & 4278190080) >>> 24), g = Math.round((colorInt & 16711680) >>> 16), b = Math.round((colorInt & 65280) >>> 8), a = ((colorInt & 255) >>> 0) / 255;
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
5
  return {
6
6
  r,
7
7
  g,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,YAAY,oBAAoB;AAGhC,MAAM,OAAO,eAAe,WAAW,gBAC1B,oBAAoB;AAE1B,SAAS,KAAK,UAAkB;AACrC,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,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,cAAQ;",
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,cAAQ;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/normalize-css-color",
3
- "version": "1.86.0",
3
+ "version": "1.86.2",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -23,7 +23,7 @@
23
23
  "@react-native/normalize-color": "^2.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@tamagui/build": "1.86.0"
26
+ "@tamagui/build": "1.86.2"
27
27
  },
28
28
  "exports": {
29
29
  "./package.json": "./package.json",
package/src/index.ts CHANGED
@@ -5,10 +5,10 @@ const norm = normalizeColor.default || normalizeColor
5
5
  export const normalizeCSSColor = norm as (color: string) => number | null
6
6
 
7
7
  export function rgba(colorInt: number) {
8
- var r = Math.round((colorInt & 0xff000000) >>> 24)
9
- var g = Math.round((colorInt & 0x00ff0000) >>> 16)
10
- var b = Math.round((colorInt & 0x0000ff00) >>> 8)
11
- var a = ((colorInt & 0x000000ff) >>> 0) / 255
8
+ const r = Math.round((colorInt & 0xff000000) >>> 24)
9
+ const g = Math.round((colorInt & 0x00ff0000) >>> 16)
10
+ const b = Math.round((colorInt & 0x0000ff00) >>> 8)
11
+ const a = ((colorInt & 0x000000ff) >>> 0) / 255
12
12
  return {
13
13
  r,
14
14
  g,