123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- import * as vue from 'vue';
- import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
- interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
- filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
- }
- type ClassValue = any;
- type Density = null | 'default' | 'comfortable' | 'compact';
- declare const allowedVariants: readonly ["elevated", "flat", "tonal", "outlined", "text", "plain"];
- type Variant = typeof allowedVariants[number];
- declare const VBtnGroup: {
- new (...args: any[]): vue.CreateComponentPublicInstance<{
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- style: vue.StyleValue;
- tag: string;
- tile: boolean;
- density: Density;
- divided: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- baseColor?: string | undefined;
- } & {
- $children?: vue.VNodeChild | {
- default?: (() => vue.VNodeChild) | undefined;
- } | (() => vue.VNodeChild);
- 'v-slots'?: {
- default?: false | (() => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
- }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- style: vue.StyleValue;
- tag: string;
- tile: boolean;
- density: Density;
- divided: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- baseColor?: string | undefined;
- } & {
- $children?: vue.VNodeChild | {
- default?: (() => vue.VNodeChild) | undefined;
- } | (() => vue.VNodeChild);
- 'v-slots'?: {
- default?: false | (() => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
- }, {
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- style: vue.StyleValue;
- tag: string;
- rounded: string | number | boolean;
- tile: boolean;
- density: Density;
- divided: boolean;
- }, true, {}, vue.SlotsType<Partial<{
- default: () => vue.VNode[];
- }>>, {
- P: {};
- B: {};
- D: {};
- C: {};
- M: {};
- Defaults: {};
- }, {
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- style: vue.StyleValue;
- tag: string;
- tile: boolean;
- density: Density;
- divided: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- baseColor?: string | undefined;
- } & {
- $children?: vue.VNodeChild | {
- default?: (() => vue.VNodeChild) | undefined;
- } | (() => vue.VNodeChild);
- 'v-slots'?: {
- default?: false | (() => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
- }, {}, {}, {}, {}, {
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- style: vue.StyleValue;
- tag: string;
- rounded: string | number | boolean;
- tile: boolean;
- density: Density;
- divided: boolean;
- }>;
- __isFragment?: never;
- __isTeleport?: never;
- __isSuspense?: never;
- } & vue.ComponentOptionsBase<{
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- style: vue.StyleValue;
- tag: string;
- tile: boolean;
- density: Density;
- divided: boolean;
- } & {
- border?: string | number | boolean | undefined;
- color?: string | undefined;
- class?: any;
- theme?: string | undefined;
- elevation?: string | number | undefined;
- rounded?: string | number | boolean | undefined;
- baseColor?: string | undefined;
- } & {
- $children?: vue.VNodeChild | {
- default?: (() => vue.VNodeChild) | undefined;
- } | (() => vue.VNodeChild);
- 'v-slots'?: {
- default?: false | (() => vue.VNodeChild) | undefined;
- } | undefined;
- } & {
- "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
- }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
- style: vue.StyleValue;
- tag: string;
- rounded: string | number | boolean;
- tile: boolean;
- density: Density;
- divided: boolean;
- }, {}, string, vue.SlotsType<Partial<{
- default: () => vue.VNode[];
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
- color: StringConstructor;
- variant: {
- type: vue.PropType<Variant>;
- default: string;
- validator: (v: any) => boolean;
- };
- theme: StringConstructor;
- tag: {
- type: StringConstructor;
- default: string;
- };
- rounded: {
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- default: undefined;
- };
- tile: BooleanConstructor;
- elevation: {
- type: (StringConstructor | NumberConstructor)[];
- validator(v: any): boolean;
- };
- density: {
- type: vue.PropType<Density>;
- default: string;
- validator: (v: any) => boolean;
- };
- class: vue.PropType<ClassValue>;
- style: {
- type: vue.PropType<vue.StyleValue>;
- default: null;
- };
- border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- baseColor: StringConstructor;
- divided: BooleanConstructor;
- }, vue.ExtractPropTypes<{
- color: StringConstructor;
- variant: {
- type: vue.PropType<Variant>;
- default: string;
- validator: (v: any) => boolean;
- };
- theme: StringConstructor;
- tag: {
- type: StringConstructor;
- default: string;
- };
- rounded: {
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- default: undefined;
- };
- tile: BooleanConstructor;
- elevation: {
- type: (StringConstructor | NumberConstructor)[];
- validator(v: any): boolean;
- };
- density: {
- type: vue.PropType<Density>;
- default: string;
- validator: (v: any) => boolean;
- };
- class: vue.PropType<ClassValue>;
- style: {
- type: vue.PropType<vue.StyleValue>;
- default: null;
- };
- border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
- baseColor: StringConstructor;
- divided: BooleanConstructor;
- }>>;
- type VBtnGroup = InstanceType<typeof VBtnGroup>;
- export { VBtnGroup };
|