UNPKG

904 BTypeScriptView Raw
1import type { ComponentPublicInstance, ComputedRef } from 'vue';
2import type { CheckboxProps } from './Checkbox';
3import type { CheckerShape, CheckerLabelPosition } from './Checker';
4export type CheckboxShape = CheckerShape;
5export type CheckboxLabelPosition = CheckerLabelPosition;
6export type CheckboxExpose = {
7 toggle: (newValue?: boolean) => void;
8 /** @private */
9 props: CheckboxProps;
10 /** @private */
11 checked: ComputedRef<boolean>;
12};
13export type CheckboxInstance = ComponentPublicInstance<CheckboxProps, CheckboxExpose>;
14export type CheckboxThemeVars = {
15 checkboxSize?: string;
16 checkboxBorderColor?: string;
17 checkboxDuration?: string;
18 checkboxLabelMargin?: string;
19 checkboxLabelColor?: string;
20 checkboxCheckedIconColor?: string;
21 checkboxDisabledIconColor?: string;
22 checkboxDisabledLabelColor?: string;
23 checkboxDisabledBackground?: string;
24};