UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

355 lines (354 loc) 8.11 kB
import type { VariantProps } from 'tailwind-variants'; import type { CheckboxRootProps } from 'reka-ui'; declare const checkbox: import("tailwind-variants").TVReturnType<{ color: { default: string; danger: string; success: string; warning: string; primary: string; secondary: string; collab: string; ai: string; }; size: { xs: { base: string; container: string; wrapper: string; label: string; }; sm: { base: string; container: string; wrapper: string; label: string; }; md: { base: string; container: string; wrapper: string; label: string; }; lg: { base: string; container: string; wrapper: string; label: string; }; }; required: { true: { label: string; }; }; disabled: { true: { base: string; label: string; description: string; }; }; checked: { true: string; }; }, { root: string; base: string; container: string; wrapper: string; icon: string; label: string; description: string; }, undefined, { color: { default: string; danger: string; success: string; warning: string; primary: string; secondary: string; collab: string; ai: string; }; size: { xs: { base: string; container: string; wrapper: string; label: string; }; sm: { base: string; container: string; wrapper: string; label: string; }; md: { base: string; container: string; wrapper: string; label: string; }; lg: { base: string; container: string; wrapper: string; label: string; }; }; required: { true: { label: string; }; }; disabled: { true: { base: string; label: string; description: string; }; }; checked: { true: string; }; }, { root: string; base: string; container: string; wrapper: string; icon: string; label: string; description: string; }, import("tailwind-variants").TVReturnType<{ color: { default: string; danger: string; success: string; warning: string; primary: string; secondary: string; collab: string; ai: string; }; size: { xs: { base: string; container: string; wrapper: string; label: string; }; sm: { base: string; container: string; wrapper: string; label: string; }; md: { base: string; container: string; wrapper: string; label: string; }; lg: { base: string; container: string; wrapper: string; label: string; }; }; required: { true: { label: string; }; }; disabled: { true: { base: string; label: string; description: string; }; }; checked: { true: string; }; }, { root: string; base: string; container: string; wrapper: string; icon: string; label: string; description: string; }, undefined, { color: { default: string; danger: string; success: string; warning: string; primary: string; secondary: string; collab: string; ai: string; }; size: { xs: { base: string; container: string; wrapper: string; label: string; }; sm: { base: string; container: string; wrapper: string; label: string; }; md: { base: string; container: string; wrapper: string; label: string; }; lg: { base: string; container: string; wrapper: string; label: string; }; }; required: { true: { label: string; }; }; disabled: { true: { base: string; label: string; description: string; }; }; checked: { true: string; }; }, { root: string; base: string; container: string; wrapper: string; icon: string; label: string; description: string; }, import("tailwind-variants").TVReturnType<{ color: { default: string; danger: string; success: string; warning: string; primary: string; secondary: string; collab: string; ai: string; }; size: { xs: { base: string; container: string; wrapper: string; label: string; }; sm: { base: string; container: string; wrapper: string; label: string; }; md: { base: string; container: string; wrapper: string; label: string; }; lg: { base: string; container: string; wrapper: string; label: string; }; }; required: { true: { label: string; }; }; disabled: { true: { base: string; label: string; description: string; }; }; checked: { true: string; }; }, { root: string; base: string; container: string; wrapper: string; icon: string; label: string; description: string; }, undefined, unknown, unknown, undefined>>>; type CheckboxVariants = VariantProps<typeof checkbox>; export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'required' | 'name' | 'value' | 'id' | 'defaultValue'> { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; label?: string; description?: string; /** * @defaultValue 'primary' */ color?: CheckboxVariants['color']; /** * @defaultValue 'md' */ size?: CheckboxVariants['size']; class?: any; b24ui?: Partial<typeof checkbox.slots>; } export type CheckboxEmits = { change: [payload: Event]; }; export interface CheckboxSlots { label(props: { label?: string; }): any; description(props: { description?: string; }): any; } declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{ modelValue?: boolean | "indeterminate"; } & CheckboxProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{ modelValue?: boolean | "indeterminate"; } & CheckboxProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<CheckboxSlots> & CheckboxSlots>; export default _default; 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; }; };