@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
418 lines (417 loc) • 9.01 kB
TypeScript
import type { VariantProps } from 'tailwind-variants';
import type { SliderRootProps } from 'reka-ui';
declare const range: import("tailwind-variants").TVReturnType<{
color: {
default: {
range: string;
thumb: string;
};
danger: {
range: string;
thumb: string;
};
success: {
range: string;
thumb: string;
};
warning: {
range: string;
thumb: string;
};
primary: {
range: string;
thumb: string;
};
secondary: {
range: string;
thumb: string;
};
collab: {
range: string;
thumb: string;
};
ai: {
range: string;
thumb: string;
};
};
size: {
xs: {
thumb: string;
};
sm: {
thumb: string;
};
md: {
thumb: string;
};
lg: {
thumb: string;
};
};
orientation: {
horizontal: {
root: string;
range: string;
};
vertical: {
root: string;
range: string;
};
};
disabled: {
true: {
root: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
}, undefined, {
color: {
default: {
range: string;
thumb: string;
};
danger: {
range: string;
thumb: string;
};
success: {
range: string;
thumb: string;
};
warning: {
range: string;
thumb: string;
};
primary: {
range: string;
thumb: string;
};
secondary: {
range: string;
thumb: string;
};
collab: {
range: string;
thumb: string;
};
ai: {
range: string;
thumb: string;
};
};
size: {
xs: {
thumb: string;
};
sm: {
thumb: string;
};
md: {
thumb: string;
};
lg: {
thumb: string;
};
};
orientation: {
horizontal: {
root: string;
range: string;
};
vertical: {
root: string;
range: string;
};
};
disabled: {
true: {
root: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
}, import("tailwind-variants").TVReturnType<{
color: {
default: {
range: string;
thumb: string;
};
danger: {
range: string;
thumb: string;
};
success: {
range: string;
thumb: string;
};
warning: {
range: string;
thumb: string;
};
primary: {
range: string;
thumb: string;
};
secondary: {
range: string;
thumb: string;
};
collab: {
range: string;
thumb: string;
};
ai: {
range: string;
thumb: string;
};
};
size: {
xs: {
thumb: string;
};
sm: {
thumb: string;
};
md: {
thumb: string;
};
lg: {
thumb: string;
};
};
orientation: {
horizontal: {
root: string;
range: string;
};
vertical: {
root: string;
range: string;
};
};
disabled: {
true: {
root: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
}, undefined, {
color: {
default: {
range: string;
thumb: string;
};
danger: {
range: string;
thumb: string;
};
success: {
range: string;
thumb: string;
};
warning: {
range: string;
thumb: string;
};
primary: {
range: string;
thumb: string;
};
secondary: {
range: string;
thumb: string;
};
collab: {
range: string;
thumb: string;
};
ai: {
range: string;
thumb: string;
};
};
size: {
xs: {
thumb: string;
};
sm: {
thumb: string;
};
md: {
thumb: string;
};
lg: {
thumb: string;
};
};
orientation: {
horizontal: {
root: string;
range: string;
};
vertical: {
root: string;
range: string;
};
};
disabled: {
true: {
root: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
}, import("tailwind-variants").TVReturnType<{
color: {
default: {
range: string;
thumb: string;
};
danger: {
range: string;
thumb: string;
};
success: {
range: string;
thumb: string;
};
warning: {
range: string;
thumb: string;
};
primary: {
range: string;
thumb: string;
};
secondary: {
range: string;
thumb: string;
};
collab: {
range: string;
thumb: string;
};
ai: {
range: string;
thumb: string;
};
};
size: {
xs: {
thumb: string;
};
sm: {
thumb: string;
};
md: {
thumb: string;
};
lg: {
thumb: string;
};
};
orientation: {
horizontal: {
root: string;
range: string;
};
vertical: {
root: string;
range: string;
};
};
disabled: {
true: {
root: string;
};
};
}, {
root: string;
track: string;
range: string;
thumb: string;
}, undefined, unknown, unknown, undefined>>>;
type RangeVariants = VariantProps<typeof range>;
export interface RangeProps extends Pick<SliderRootProps, 'name' | 'disabled' | 'inverted' | 'min' | 'max' | 'step' | 'minStepsBetweenThumbs'> {
/**
* The element or component this component should render as.
* @defaultValue 'div'
*/
as?: any;
/**
* @defaultValue 'md'
*/
size?: RangeVariants['size'];
/**
* @defaultValue 'primary'
*/
color?: RangeVariants['color'];
/**
* The orientation of the Range.
* @defaultValue 'horizontal'
*/
orientation?: SliderRootProps['orientation'];
/**
* The value of the Range when initially rendered. Use when you do not need to control the state of the Range
*/
defaultValue?: number | number[];
class?: any;
b24ui?: Partial<typeof range.slots>;
}
export interface RangeEmits {
(e: 'update:modelValue', payload: number | number[]): void;
(e: 'change', payload: Event): void;
}
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
modelValue?: number | number[];
} & RangeProps>, {
min: number;
max: number;
step: number;
orientation: string;
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
modelValue?: number | number[];
} & RangeProps>, {
min: number;
max: number;
step: number;
orientation: string;
}>>> & Readonly<{}>, {
orientation: "horizontal" | "vertical";
step: number;
max: number;
min: number;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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_PrettifyLocal<T> = {
[K in keyof T]: T[K];
} & {};