|
| 1 | +import type { Components } from '../../types'; |
| 2 | +declare const _default: __VLS_WithTemplateSlots<import('./vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ |
| 3 | + /** |
| 4 | + * The button type. _Is omitted if `href` has been provided._ |
| 5 | + * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type |
| 6 | + * @default "button" |
| 7 | + */ |
| 8 | + type?: "button" | "submit" | "reset" | undefined; |
| 9 | + /** |
| 10 | + * Provide a URL to use `<a :href="href">` instead of a `<button>`. |
| 11 | + */ |
| 12 | + href?: string | undefined; |
| 13 | + status?: Components.Button.Status | undefined; |
| 14 | + outline?: boolean | undefined; |
| 15 | + icon?: Components.Button.Icon | undefined; |
| 16 | + disabled?: boolean | undefined; |
| 17 | +}>, { |
| 18 | + type: string; |
| 19 | + href: undefined; |
| 20 | + status: undefined; |
| 21 | + outline: boolean; |
| 22 | + icon: undefined; |
| 23 | + disabled: boolean; |
| 24 | +}>, {}, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('./vue/dist/vue.esm-bundler.js').VNodeProps & import('./vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('./vue/dist/vue.esm-bundler.js').ComponentCustomProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ |
| 25 | + /** |
| 26 | + * The button type. _Is omitted if `href` has been provided._ |
| 27 | + * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type |
| 28 | + * @default "button" |
| 29 | + */ |
| 30 | + type?: "button" | "submit" | "reset" | undefined; |
| 31 | + /** |
| 32 | + * Provide a URL to use `<a :href="href">` instead of a `<button>`. |
| 33 | + */ |
| 34 | + href?: string | undefined; |
| 35 | + status?: Components.Button.Status | undefined; |
| 36 | + outline?: boolean | undefined; |
| 37 | + icon?: Components.Button.Icon | undefined; |
| 38 | + disabled?: boolean | undefined; |
| 39 | +}>, { |
| 40 | + type: string; |
| 41 | + href: undefined; |
| 42 | + status: undefined; |
| 43 | + outline: boolean; |
| 44 | + icon: undefined; |
| 45 | + disabled: boolean; |
| 46 | +}>>>, { |
| 47 | + icon: Components.Button.Icon; |
| 48 | + type: "button" | "submit" | "reset"; |
| 49 | + href: string; |
| 50 | + status: Components.Button.Status; |
| 51 | + outline: boolean; |
| 52 | + disabled: boolean; |
| 53 | +}, {}>, { |
| 54 | + default?(_: {}): any; |
| 55 | +}>; |
| 56 | +export default _default; |
| 57 | +type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; |
| 58 | +type __VLS_TypePropsToRuntimeProps<T> = { |
| 59 | + [K in keyof T]-?: {} extends Pick<T, K> ? { |
| 60 | + type: import('./vue/dist/vue.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>; |
| 61 | + } : { |
| 62 | + type: import('./vue/dist/vue.esm-bundler.js').PropType<T[K]>; |
| 63 | + required: true; |
| 64 | + }; |
| 65 | +}; |
| 66 | +type __VLS_WithDefaults<P, D> = { |
| 67 | + [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { |
| 68 | + default: D[K]; |
| 69 | + }> : P[K]; |
| 70 | +}; |
| 71 | +type __VLS_Prettify<T> = { |
| 72 | + [K in keyof T]: T[K]; |
| 73 | +} & {}; |
| 74 | +type __VLS_WithTemplateSlots<T, S> = T & { |
| 75 | + new (): { |
| 76 | + $slots: S; |
| 77 | + }; |
| 78 | +}; |
0 commit comments