@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
17 lines (16 loc) • 734 B
TypeScript
import { TagColor } from "./tag.types.js";
//#region src/tag/utils.d.ts
/**
* Converts a two-prop variant+color pair into the combined theme key used
* internally (e.g. `resolveTagVariantKey('subtle','blue') => 'subtleBlue'`).
* When `color` is omitted, `'blue'` is used as the default.
*
* If `variant` is already a fully-qualified legacy key (e.g. `'subtleBlue'` or
* `'subtleBlue'`) it is returned unchanged so the new API is backward-compatible.
*
* Returns `'subtleBlue'` (the default variant) when `variant` is absent.
*/
declare const resolveTagVariantKey: (variant: string | undefined, color: TagColor | string | undefined) => string;
//#endregion
export { resolveTagVariantKey };
//# sourceMappingURL=utils.d.ts.map