@dcodegroup-au/dsg-vue
Version:
Front-end Vue/Tailwind DSG for UntitledUI.
53 lines (52 loc) • 2.09 kB
TypeScript
import { DsgCheckboxModelType } from './DsgCheckbox.vue';
/**
* ------------------------------------------------
* # Setup: Props/Variables/Models
* ------------------------------------------------
*/
export type DsgCheckboxGroupTheme = "form" | "form-radio" | "panel" | "panel-content";
export type DsgCheckboxGroupSize = "sm" | "md";
export interface DsgCheckboxGroupOption {
label: string;
value: string | number | boolean;
subtext?: string | null;
icon?: string | null;
checked?: boolean;
disabled?: boolean;
}
export interface DsgCheckboxGroupProps {
size?: DsgCheckboxGroupSize;
theme?: DsgCheckboxGroupTheme;
title?: string;
subtext?: string | null;
options?: DsgCheckboxGroupOption[];
tooltip?: string | null;
defaultValue?: DsgCheckboxModelType;
}
type __VLS_Props = DsgCheckboxGroupProps;
type __VLS_PublicProps = {
"modelValue"?: DsgCheckboxModelType;
} & __VLS_Props;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Partial<Record<`dsg-checkbox-group--panel-title--${string}`, (_: {
data: DsgCheckboxGroupOption;
}) => any>> & Partial<Record<`dsg-checkbox-group--panel-subtext--${string}`, (_: {}) => any>> & {
'dsg-checkbox-group--header'?(_: {}): any;
};
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (value: DsgCheckboxModelType) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
"onUpdate:modelValue"?: ((value: DsgCheckboxModelType) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};