| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/webhook-relay-web/current/node_modules/cva/dist/ |
Upload File : |
export type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
export type ClassDictionary = Record<string, any>;
export type ClassArray = ClassValue[];
type OmitUndefined<T> = T extends undefined ? never : T;
type StringToBoolean<T> = T extends "true" | "false" ? boolean : T;
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
export type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
export interface Compose {
<T extends ReturnType<CVA>[]>(...components: [...T]): (props?: (UnionToIntersection<{
[K in keyof T]: VariantProps<T[K]>;
}[number]> | undefined) & CVAClassProp) => string;
}
export interface CX {
(...inputs: ClassValue[]): string;
}
export type CXOptions = Parameters<CX>;
export type CXReturn = ReturnType<CX>;
type CVAConfigBase = {
base?: ClassValue;
};
type CVAVariantShape = Record<string, Record<string, ClassValue>>;
type CVAVariantSchema<V extends CVAVariantShape> = {
[Variant in keyof V]?: StringToBoolean<keyof V[Variant]> | undefined;
};
type CVAClassProp = {
class?: ClassValue;
className?: never;
} | {
class?: never;
className?: ClassValue;
};
export interface CVA {
<_ extends "cva's generic parameters are restricted to internal use only.", V>(config: V extends CVAVariantShape ? CVAConfigBase & {
variants?: V;
compoundVariants?: (V extends CVAVariantShape ? (CVAVariantSchema<V> | {
[Variant in keyof V]?: StringToBoolean<keyof V[Variant]> | StringToBoolean<keyof V[Variant]>[] | undefined;
}) & CVAClassProp : CVAClassProp)[];
defaultVariants?: CVAVariantSchema<V>;
} : CVAConfigBase & {
variants?: never;
compoundVariants?: never;
defaultVariants?: never;
}): (props?: V extends CVAVariantShape ? CVAVariantSchema<V> & CVAClassProp : CVAClassProp) => string;
}
export interface DefineConfigOptions {
hooks?: {
/**
* @deprecated please use `onComplete`
*/
"cx:done"?: (className: string) => string;
/**
* Returns the completed string of concatenated classes/classNames.
*/
onComplete?: (className: string) => string;
};
}
export interface DefineConfig {
(options?: DefineConfigOptions): {
compose: Compose;
cx: CX;
cva: CVA;
};
}
export declare const defineConfig: DefineConfig;
export declare const compose: Compose, cva: CVA, cx: CX;
export {};