Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zendeskgarden/react-theming

Package Overview
Dependencies
Maintainers
0
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zendeskgarden/react-theming - npm Package Compare versions

Comparing version 9.1.0 to 9.1.1

33

dist/esm/utils/getColor.js

@@ -205,16 +205,25 @@ /**

} = _ref;
let themeColorsKey = CACHE.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS.colors;
CACHE.set(theme.colors, themeColorsKey);
let themeColorsKey;
if (theme.colors) {
themeColorsKey = CACHE.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS.colors;
CACHE.set(theme.colors, themeColorsKey);
}
}
let themeOpacityKey = CACHE.get(theme.opacity);
if (themeOpacityKey === undefined) {
themeOpacityKey = ++KEYS.opacity;
CACHE.set(theme.opacity, themeOpacityKey);
let themeOpacityKey;
if (theme.opacity) {
themeOpacityKey = CACHE.get(theme.opacity);
if (themeOpacityKey === undefined) {
themeOpacityKey = ++KEYS.opacity;
CACHE.set(theme.opacity, themeOpacityKey);
}
}
let themePaletteKey = CACHE.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS.palette;
CACHE.set(theme.palette, themePaletteKey);
let themePaletteKey;
if (theme.palette) {
themePaletteKey = CACHE.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS.palette;
CACHE.set(theme.palette, themePaletteKey);
}
}

@@ -221,0 +230,0 @@ let retVal = `{${themeColorsKey},${themePaletteKey},${themeOpacityKey}}`;

@@ -34,3 +34,3 @@ /**

} = _ref;
let retVal = `${hue}`;
let retVal = `${typeof hue === 'object' ? JSON.stringify(hue) : hue}`;
if (shade !== undefined) {

@@ -40,11 +40,17 @@ retVal += `,${shade}`;

if (theme !== undefined) {
let themeColorsKey = CACHE.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS.colors;
CACHE.set(theme.colors, themeColorsKey);
let themeColorsKey;
if (theme.colors) {
themeColorsKey = CACHE.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS.colors;
CACHE.set(theme.colors, themeColorsKey);
}
}
let themePaletteKey = CACHE.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS.palette;
CACHE.set(theme.palette, themePaletteKey);
let themePaletteKey;
if (theme.palette) {
themePaletteKey = CACHE.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS.palette;
CACHE.set(theme.palette, themePaletteKey);
}
}

@@ -51,0 +57,0 @@ retVal += `,{${themeColorsKey},${themePaletteKey}}`;

@@ -746,16 +746,25 @@ /**

} = _ref;
let themeColorsKey = CACHE$1.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS$1.colors;
CACHE$1.set(theme.colors, themeColorsKey);
let themeColorsKey;
if (theme.colors) {
themeColorsKey = CACHE$1.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS$1.colors;
CACHE$1.set(theme.colors, themeColorsKey);
}
}
let themeOpacityKey = CACHE$1.get(theme.opacity);
if (themeOpacityKey === undefined) {
themeOpacityKey = ++KEYS$1.opacity;
CACHE$1.set(theme.opacity, themeOpacityKey);
let themeOpacityKey;
if (theme.opacity) {
themeOpacityKey = CACHE$1.get(theme.opacity);
if (themeOpacityKey === undefined) {
themeOpacityKey = ++KEYS$1.opacity;
CACHE$1.set(theme.opacity, themeOpacityKey);
}
}
let themePaletteKey = CACHE$1.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS$1.palette;
CACHE$1.set(theme.palette, themePaletteKey);
let themePaletteKey;
if (theme.palette) {
themePaletteKey = CACHE$1.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS$1.palette;
CACHE$1.set(theme.palette, themePaletteKey);
}
}

@@ -1043,3 +1052,3 @@ let retVal = `{${themeColorsKey},${themePaletteKey},${themeOpacityKey}}`;

} = _ref;
let retVal = `${hue}`;
let retVal = `${typeof hue === 'object' ? JSON.stringify(hue) : hue}`;
if (shade !== undefined) {

@@ -1049,11 +1058,17 @@ retVal += `,${shade}`;

if (theme !== undefined) {
let themeColorsKey = CACHE.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS.colors;
CACHE.set(theme.colors, themeColorsKey);
let themeColorsKey;
if (theme.colors) {
themeColorsKey = CACHE.get(theme.colors);
if (themeColorsKey === undefined) {
themeColorsKey = ++KEYS.colors;
CACHE.set(theme.colors, themeColorsKey);
}
}
let themePaletteKey = CACHE.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS.palette;
CACHE.set(theme.palette, themePaletteKey);
let themePaletteKey;
if (theme.palette) {
themePaletteKey = CACHE.get(theme.palette);
if (themePaletteKey === undefined) {
themePaletteKey = ++KEYS.palette;
CACHE.set(theme.palette, themePaletteKey);
}
}

@@ -1060,0 +1075,0 @@ retVal += `,{${themeColorsKey},${themePaletteKey}}`;

{
"name": "@zendeskgarden/react-theming",
"version": "9.1.0",
"version": "9.1.1",
"description": "Theming utilities and components within the Garden Design System",

@@ -50,3 +50,3 @@ "license": "Apache-2.0",

"zendeskgarden:src": "src/index.ts",
"gitHead": "a2842d18615ad057d75988fde4df5a0c79d2714e"
"gitHead": "21eaf7b57f27f1a846ed332f1b8e655d6bc0a13b"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc