@zendeskgarden/react-theming
Advanced tools
Comparing version 9.1.0 to 9.1.1
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136757
4115