@serenity-ui/styles
Advanced tools
Comparing version 0.1.26 to 0.1.27
@@ -1,18 +0,10 @@ | ||
export declare const resolveWhiteVariant: (color: string, defaultShade?: number) => { | ||
"text-color": string; | ||
"background-color": string; | ||
}; | ||
export declare const resolveTransparentVariant: (color: string, defaultShade?: number) => { | ||
"text-color": string; | ||
}; | ||
/** | ||
* | ||
* @param color | ||
* @param defaultShade | ||
* @returns | ||
*/ | ||
export declare const resolveLightVariant: (color: string, defaultShade?: number, interactive?: boolean) => Record<string, string | undefined>; | ||
export declare const resolveOutlineVariant: (color: string, defaultShade?: number, interactive?: boolean) => Record<string, string | undefined>; | ||
export declare const resolveFilledVariant: (color: string, defaultShade?: number, interactive?: boolean) => Record<string, string | undefined>; | ||
export declare const resolveSubtleVariant: (color: string, defaultShade?: number, interactive?: boolean) => Record<string, string | undefined>; | ||
export interface VariantResolver { | ||
(color: string, interactive: boolean): Record<string, string | undefined>; | ||
} | ||
export declare const resolveWhiteVariant: VariantResolver; | ||
export declare const resolveTransparentVariant: VariantResolver; | ||
export declare const resolveLightVariant: VariantResolver; | ||
export declare const resolveOutlineVariant: VariantResolver; | ||
export declare const resolveFilledVariant: VariantResolver; | ||
export declare const resolveSubtleVariant: VariantResolver; | ||
//# sourceMappingURL=variants.d.ts.map |
@@ -437,33 +437,33 @@ const c = { | ||
} | ||
const Q = (e, t) => ({ | ||
"text-color": b(e, t), | ||
const Q = (e) => ({ | ||
"text-color": b(e, 6), | ||
"background-color": "#ffffff" | ||
}), X = (e, t) => ({ | ||
"text-color": b(e, t) | ||
}), D = (e, t, r = !0) => { | ||
const n = b(e, t), f = { | ||
"text-color": n, | ||
"background-color": h(n, 0.1, c) | ||
}), X = (e) => ({ | ||
"text-color": b(e, 6) | ||
}), D = (e, t = !0) => { | ||
const r = b(e, 6), n = { | ||
"text-color": r, | ||
"background-color": h(r, 0.1, c) | ||
}; | ||
return r && (f["hover-color"] = h(n, 0.12, c)), f; | ||
}, ee = (e, t, r = !0) => { | ||
const n = b(e, t), f = { | ||
"text-color": n, | ||
"border-color": n | ||
return t && (n["hover-color"] = h(r, 0.12, c)), n; | ||
}, ee = (e, t = !0) => { | ||
const r = b(e, 6), n = { | ||
"text-color": r, | ||
"border-color": r | ||
}; | ||
return r && (f["hover-color"] = h(n, 0.12, c)), f; | ||
}, te = (e, t, r = !0) => { | ||
const n = b(e, t), f = { | ||
"text-color": j(n) ? "#000" : "#fff", | ||
"background-color": n | ||
return t && (n["hover-color"] = h(r, 0.12, c)), n; | ||
}, te = (e, t = !0) => { | ||
const r = b(e, 6), n = { | ||
"text-color": j(r) ? "#000" : "#fff", | ||
"background-color": r | ||
}; | ||
return r && Object.assign(f, { | ||
"hover-color": y(n, 12), | ||
"active-color": y(n, 15) | ||
}), f; | ||
}, re = (e, t, r = !0) => { | ||
const n = b(e, t), f = { | ||
"text-color": n | ||
return t && Object.assign(n, { | ||
"hover-color": y(r, 12), | ||
"active-color": y(r, 15) | ||
}), n; | ||
}, re = (e, t = !0) => { | ||
const r = b(e, 6), n = { | ||
"text-color": r | ||
}; | ||
return r && (f["hover-color"] = h(n, 0.12, c)), f; | ||
return t && (n["hover-color"] = h(r, 0.12, c)), n; | ||
}; | ||
@@ -470,0 +470,0 @@ export { |
{ | ||
"name": "@serenity-ui/styles", | ||
"version": "0.1.26", | ||
"version": "0.1.27", | ||
"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
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
71197
1264