@dolanske/vui 1.5.1 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,38 +1,47 @@
1
1
  import { Sizes } from '../../shared/types';
2
2
  export type Variants = 'fill' | 'danger' | 'success' | 'link' | 'accent' | 'gray';
3
- interface Props {
4
- /**
5
- * Allows rendering the button as a HTML anchor element.
6
- */
7
- href?: string;
8
- /**
9
- * Display a spinner.
10
- */
11
- loading?: boolean;
12
- size?: Sizes;
13
- expand?: boolean;
14
- square?: boolean;
15
- variant?: Variants;
16
- outline?: boolean;
17
- disabled?: boolean;
18
- plain?: boolean;
19
- }
20
- declare function __VLS_template(): {
21
- attrs: Partial<{}>;
22
- slots: {
23
- start?(_: {}): any;
24
- default?(_: {}): any;
25
- end?(_: {}): any;
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ href: StringConstructor;
5
+ loading: BooleanConstructor;
6
+ size: {
7
+ type: () => Sizes;
8
+ default: string;
26
9
  };
27
- refs: {};
28
- rootEl: any;
29
- };
30
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
- export default _default;
34
- type __VLS_WithTemplateSlots<T, S> = T & {
35
- new (): {
36
- $slots: S;
10
+ expand: BooleanConstructor;
11
+ square: BooleanConstructor;
12
+ variant: {
13
+ type: () => Variants;
14
+ default: string;
15
+ };
16
+ outline: BooleanConstructor;
17
+ disabled: BooleanConstructor;
18
+ plain: BooleanConstructor;
19
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
+ [key: string]: any;
21
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
+ href: StringConstructor;
23
+ loading: BooleanConstructor;
24
+ size: {
25
+ type: () => Sizes;
26
+ default: string;
37
27
  };
38
- };
28
+ expand: BooleanConstructor;
29
+ square: BooleanConstructor;
30
+ variant: {
31
+ type: () => Variants;
32
+ default: string;
33
+ };
34
+ outline: BooleanConstructor;
35
+ disabled: BooleanConstructor;
36
+ plain: BooleanConstructor;
37
+ }>> & Readonly<{}>, {
38
+ size: Sizes;
39
+ variant: Variants;
40
+ outline: boolean;
41
+ loading: boolean;
42
+ expand: boolean;
43
+ square: boolean;
44
+ disabled: boolean;
45
+ plain: boolean;
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
+ export default _default;
@@ -19,12 +19,12 @@ declare function __VLS_template(): {
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
20
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
21
  close: () => any;
22
- confirm: () => any;
23
22
  cancel: () => any;
23
+ confirm: () => any;
24
24
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
25
25
  onClose?: (() => any) | undefined;
26
- onConfirm?: (() => any) | undefined;
27
26
  onCancel?: (() => any) | undefined;
27
+ onConfirm?: (() => any) | undefined;
28
28
  }>, {
29
29
  open: boolean;
30
30
  size: import('../../shared/types').Sizes | "screen";