@serenity-ui/styles
Advanced tools
Comparing version 0.1.27 to 0.1.28
@@ -177,9 +177,9 @@ const c = { | ||
} | ||
function E(e, ...t) { | ||
function j(e, ...t) { | ||
return e === "extend" ? k(...t) : t.filter(Boolean).pop() || void 0; | ||
} | ||
function z(e) { | ||
function E(e) { | ||
return e ? "" : void 0; | ||
} | ||
function F(e) { | ||
function z(e) { | ||
const t = {}; | ||
@@ -209,7 +209,7 @@ for (const r in e) { | ||
} | ||
function _(e) { | ||
function F(e) { | ||
if (e) | ||
return m("shadow", e); | ||
} | ||
function U(e, t, r) { | ||
function _(e, t, r) { | ||
if (typeof e == "number") | ||
@@ -223,3 +223,3 @@ return e + r; | ||
} | ||
function Y(e) { | ||
function U(e) { | ||
const t = {}; | ||
@@ -235,2 +235,4 @@ for (const r in e) { | ||
return e; | ||
if (e == "accent") | ||
return "var(--serenity-accent-color)"; | ||
const [r, n] = e.split("."), f = c[r]; | ||
@@ -250,3 +252,3 @@ if (f) { | ||
} | ||
const Z = [ | ||
const Y = [ | ||
"m", | ||
@@ -313,3 +315,3 @@ "my", | ||
}; | ||
function q(e, ...t) { | ||
function Z(e, ...t) { | ||
const r = {}, n = []; | ||
@@ -382,3 +384,3 @@ for (const f in e) { | ||
} | ||
function P(e, t) { | ||
function q(e, t) { | ||
return e.startsWith("#") ? L(e, t) : e.startsWith("rgb") ? R(e, t) : e.startsWith("hsl") ? T(e, t) : e; | ||
@@ -414,3 +416,3 @@ } | ||
} | ||
function J(e, t = 6) { | ||
function P(e, t = 6) { | ||
var f; | ||
@@ -422,3 +424,3 @@ if (e.includes(".")) | ||
} | ||
function j(e) { | ||
function J(e) { | ||
let t, r, n; | ||
@@ -465,3 +467,3 @@ if (e.startsWith("#")) | ||
const r = b(e, 6), n = { | ||
"text-color": j(r) ? "#000" : "#fff", | ||
"text-color": "#fff", | ||
"background-color": r | ||
@@ -480,7 +482,7 @@ }; | ||
export { | ||
Z as UTILITY_NAMES, | ||
Y as UTILITY_NAMES, | ||
C as UTILITY_PARSERS, | ||
z as b, | ||
E as b, | ||
S as buildHexFromRGB, | ||
q as buildStyles, | ||
Z as buildStyles, | ||
k as c, | ||
@@ -496,19 +498,19 @@ K as clamp, | ||
g as getRGBValues, | ||
J as getThemeColor, | ||
j as isColorLight, | ||
P as getThemeColor, | ||
J as isColorLight, | ||
B as isSize, | ||
P as lightenColor, | ||
q as lightenColor, | ||
T as lightenHSL, | ||
L as lightenHex, | ||
R as lightenRGB, | ||
F as localVars, | ||
z as localVars, | ||
N as padZero, | ||
b as resolveColor, | ||
te as resolveFilledVariant, | ||
Y as resolveGridCols, | ||
U as resolveGridSpacing, | ||
U as resolveGridCols, | ||
_ as resolveGridSpacing, | ||
v as resolveLength, | ||
D as resolveLightVariant, | ||
ee as resolveOutlineVariant, | ||
_ as resolveShadow, | ||
F as resolveShadow, | ||
m as resolveSize, | ||
@@ -518,3 +520,3 @@ re as resolveSubtleVariant, | ||
Q as resolveWhiteVariant, | ||
E as s, | ||
j as s, | ||
h as setColorOpacity, | ||
@@ -521,0 +523,0 @@ O as setHSLOpacity, |
@@ -9,3 +9,3 @@ import { Tuple } from "@serenity-ui/utils"; | ||
export type Color = keyof ColorMap; | ||
export type ColorValue = Color | ColorFormat; | ||
export type ColorValue = "accent" | Color | ColorFormat; | ||
export type DefaultThemeNames = ThemeNames | (string & {}); | ||
@@ -12,0 +12,0 @@ export type ThemeOverride = {}; |
{ | ||
"name": "@serenity-ui/styles", | ||
"version": "0.1.27", | ||
"version": "0.1.28", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/serenity-styles.umd.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
71346
1266