@webitel/ui-sdk 25.6.28 → 25.6.30

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,77 +1,113 @@
1
- import { ButtonColor, ComponentSize } from '../../enums';
2
- declare const primevueSizeMap: {
3
- sm: string;
4
- md: string;
5
- };
6
- type __VLS_Props = {
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
2
  /**
8
3
  * @values 'primary', 'secondary', 'success', 'error', 'transfer', 'job', 'info'
9
4
  * @example <wt-button color="success"></wt-button>
10
5
  */
11
- color?: ButtonColor;
12
- disabled?: boolean;
13
- loading?: boolean;
6
+ color: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ loading: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
14
18
  /**
15
19
  * @values 'sm', 'md'
16
20
  * @example <wt-button size="sm"></wt-button>
17
21
  */
18
- size?: ComponentSize;
22
+ size: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ options: string[];
26
+ };
19
27
  /**
20
28
  * Stretches button to all available width
21
29
  */
22
- wide?: boolean;
30
+ wide: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
23
34
  /**
24
35
  * Shrinks button to content width
25
36
  */
26
- widthByContent?: boolean;
37
+ widthByContent: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
27
41
  /**
28
42
  * sets wt-button line-height to 0 to prevent height changing: [stack overflow](https://stackoverflow.com/a/11126701)
29
43
  */
30
- containsIcon?: boolean;
31
- };
32
- declare const emit: (event: "click", ...args: any[]) => void;
33
- declare const showLoader: import("vue").Ref<boolean, boolean>;
34
- declare const loaderColor: import("vue").ComputedRef<string>;
35
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
36
- declare var __VLS_14: {};
37
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
38
- default?: (props: typeof __VLS_14) => any;
39
- }>;
40
- declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
41
- primevueSizeMap: typeof primevueSizeMap;
42
- emit: typeof emit;
43
- showLoader: typeof showLoader;
44
- loaderColor: typeof loaderColor;
45
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
- click: (...args: any[]) => void;
47
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
48
- onClick?: (...args: any[]) => any;
49
- }>, {
50
- size: ComponentSize;
51
- disabled: boolean;
52
- color: ButtonColor;
53
- wide: boolean;
54
- loading: boolean;
55
- widthByContent: boolean;
56
- containsIcon: boolean;
57
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
- click: (...args: any[]) => void;
60
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
44
+ containsIcon: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ description: string;
48
+ };
49
+ }>, {}, {
50
+ showLoader: boolean;
51
+ }, {
52
+ colorClass(): string;
53
+ loaderColor(): "on-dark";
54
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
55
+ /**
56
+ * @values 'primary', 'secondary', 'success', 'error', 'transfer', 'job', 'info'
57
+ * @example <wt-button color="success"></wt-button>
58
+ */
59
+ color: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ disabled: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ loading: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ /**
72
+ * @values 'sm', 'md'
73
+ * @example <wt-button size="sm"></wt-button>
74
+ */
75
+ size: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ options: string[];
79
+ };
80
+ /**
81
+ * Stretches button to all available width
82
+ */
83
+ wide: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ /**
88
+ * Shrinks button to content width
89
+ */
90
+ widthByContent: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ /**
95
+ * sets wt-button line-height to 0 to prevent height changing: [stack overflow](https://stackoverflow.com/a/11126701)
96
+ */
97
+ containsIcon: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ description: string;
101
+ };
102
+ }>> & Readonly<{
61
103
  onClick?: (...args: any[]) => any;
62
104
  }>, {
63
- size: ComponentSize;
105
+ size: string;
64
106
  disabled: boolean;
65
- color: ButtonColor;
107
+ color: string;
66
108
  wide: boolean;
67
109
  loading: boolean;
68
110
  widthByContent: boolean;
69
111
  containsIcon: boolean;
70
112
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
72
113
  export default _default;
73
- type __VLS_WithSlots<T, S> = T & {
74
- new (): {
75
- $slots: S;
76
- };
77
- };