@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
272 lines (271 loc) • 6.24 kB
TypeScript
import type { VariantProps } from 'tailwind-variants';
declare const chip: import("tailwind-variants").TVReturnType<{
color: {
default: string;
danger: string;
success: string;
warning: string;
primary: string;
secondary: string;
collab: string;
ai: string;
link: string;
};
size: {
"3xs": string;
"2xs": string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
};
position: {
"top-right": string;
"bottom-right": string;
"top-left": string;
"bottom-left": string;
};
inset: {
false: string;
};
standalone: {
true: string;
false: string;
};
}, {
root: string;
base: string;
}, undefined, {
color: {
default: string;
danger: string;
success: string;
warning: string;
primary: string;
secondary: string;
collab: string;
ai: string;
link: string;
};
size: {
"3xs": string;
"2xs": string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
};
position: {
"top-right": string;
"bottom-right": string;
"top-left": string;
"bottom-left": string;
};
inset: {
false: string;
};
standalone: {
true: string;
false: string;
};
}, {
root: string;
base: string;
}, import("tailwind-variants").TVReturnType<{
color: {
default: string;
danger: string;
success: string;
warning: string;
primary: string;
secondary: string;
collab: string;
ai: string;
link: string;
};
size: {
"3xs": string;
"2xs": string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
};
position: {
"top-right": string;
"bottom-right": string;
"top-left": string;
"bottom-left": string;
};
inset: {
false: string;
};
standalone: {
true: string;
false: string;
};
}, {
root: string;
base: string;
}, undefined, {
color: {
default: string;
danger: string;
success: string;
warning: string;
primary: string;
secondary: string;
collab: string;
ai: string;
link: string;
};
size: {
"3xs": string;
"2xs": string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
};
position: {
"top-right": string;
"bottom-right": string;
"top-left": string;
"bottom-left": string;
};
inset: {
false: string;
};
standalone: {
true: string;
false: string;
};
}, {
root: string;
base: string;
}, import("tailwind-variants").TVReturnType<{
color: {
default: string;
danger: string;
success: string;
warning: string;
primary: string;
secondary: string;
collab: string;
ai: string;
link: string;
};
size: {
"3xs": string;
"2xs": string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
};
position: {
"top-right": string;
"bottom-right": string;
"top-left": string;
"bottom-left": string;
};
inset: {
false: string;
};
standalone: {
true: string;
false: string;
};
}, {
root: string;
base: string;
}, undefined, unknown, unknown, undefined>>>;
type ChipVariants = VariantProps<typeof chip>;
export interface ChipProps {
/**
* The element or component this component should render as.
* @defaultValue 'div'
*/
as?: any;
/** Display some text inside the chip. */
text?: string | number;
/**
* @defaultValue 'danger'
*/
color?: ChipVariants['color'];
/**
* @defaultValue 'sm'
*/
size?: ChipVariants['size'];
/**
* The position of the chip.
* @defaultValue 'top-right'
*/
position?: ChipVariants['position'];
/**
* When `true`, keep the chip inside the component for rounded elements
* @defaultValue false
*/
inset?: boolean;
/**
* When `true`, render the chip relatively to the parent.
* @defaultValue false
*/
standalone?: boolean;
class?: any;
b24ui?: Partial<typeof chip.slots>;
}
export interface ChipEmits {
(e: 'update:show', payload: boolean): void;
}
export interface ChipSlots {
default(props?: {}): any;
content(props?: {}): any;
}
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
show?: boolean;
} & ChipProps>, {
inset: boolean;
standalone: boolean;
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
inset: boolean;
standalone: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<ChipSlots> & ChipSlots>;
export default _default;
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToOption<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
type __VLS_PrettifyLocal<T> = {
[K in keyof T]: T[K];
} & {};