@davincihealthcare/elty-design-system-vue 1.15.1 → 1.16.0

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.
@@ -0,0 +1,199 @@
1
+ import { default as ElButton } from './ElButton.vue';
2
+
3
+ export declare const elInlineBannerStates: readonly ["error", "warning", "info"];
4
+ export type ElInlineBannerStates = (typeof elInlineBannerStates)[number];
5
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ state?: "error" | "warning" | "info" | undefined;
7
+ title?: string | undefined;
8
+ description: string;
9
+ action?: (Pick<Partial<{
10
+ disabled: boolean;
11
+ type: "button" | "submit" | "reset";
12
+ onClick: (() => unknown) | (() => Promise<unknown>);
13
+ label: string;
14
+ icon: import('./ElIcon.vue').ElIconProps;
15
+ size: "base" | "xs" | "sm" | "l" | "xl";
16
+ loading: boolean;
17
+ error: boolean;
18
+ dark: boolean;
19
+ variant: "primary" | "secondary" | "tertiary";
20
+ loadOnClick: boolean;
21
+ }> & Omit<{
22
+ readonly disabled: boolean;
23
+ readonly type: "button" | "submit" | "reset";
24
+ readonly label: string;
25
+ readonly size: "base" | "xs" | "sm" | "l" | "xl";
26
+ readonly loading: boolean;
27
+ readonly error: boolean;
28
+ readonly dark: boolean;
29
+ readonly variant: "primary" | "secondary" | "tertiary";
30
+ readonly loadOnClick: boolean;
31
+ readonly onClick?: (() => unknown) | (() => Promise<unknown>) | undefined;
32
+ readonly icon?: import('./ElIcon.vue').ElIconProps | undefined;
33
+ readonly iconRight?: boolean | undefined;
34
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
35
+ disabled: {
36
+ type: import('vue').PropType<boolean>;
37
+ default: boolean;
38
+ };
39
+ type: {
40
+ type: import('vue').PropType<"button" | "submit" | "reset">;
41
+ default: string;
42
+ };
43
+ onClick: {
44
+ type: import('vue').PropType<(() => unknown) | (() => Promise<unknown>)>;
45
+ default: undefined;
46
+ };
47
+ label: {
48
+ type: import('vue').PropType<string>;
49
+ required: true;
50
+ default: string;
51
+ };
52
+ icon: {
53
+ type: import('vue').PropType<import('./ElIcon.vue').ElIconProps>;
54
+ default: undefined;
55
+ };
56
+ size: {
57
+ type: import('vue').PropType<"base" | "xs" | "sm" | "l" | "xl">;
58
+ default: string;
59
+ };
60
+ loading: {
61
+ type: import('vue').PropType<boolean>;
62
+ default: boolean;
63
+ };
64
+ error: {
65
+ type: import('vue').PropType<boolean>;
66
+ default: boolean;
67
+ };
68
+ dark: {
69
+ type: import('vue').PropType<boolean>;
70
+ default: boolean;
71
+ };
72
+ iconRight: {
73
+ type: import('vue').PropType<boolean>;
74
+ };
75
+ variant: {
76
+ type: import('vue').PropType<"primary" | "secondary" | "tertiary">;
77
+ default: string;
78
+ };
79
+ loadOnClick: {
80
+ type: import('vue').PropType<boolean>;
81
+ default: boolean;
82
+ };
83
+ }>>, "disabled" | "type" | "onClick" | "label" | "icon" | "size" | "loading" | "error" | "dark" | "variant" | "loadOnClick">, "label"> & {
84
+ onClick: Function;
85
+ }) | undefined;
86
+ }>, {
87
+ state: string;
88
+ title: undefined;
89
+ action: undefined;
90
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
91
+ state?: "error" | "warning" | "info" | undefined;
92
+ title?: string | undefined;
93
+ description: string;
94
+ action?: (Pick<Partial<{
95
+ disabled: boolean;
96
+ type: "button" | "submit" | "reset";
97
+ onClick: (() => unknown) | (() => Promise<unknown>);
98
+ label: string;
99
+ icon: import('./ElIcon.vue').ElIconProps;
100
+ size: "base" | "xs" | "sm" | "l" | "xl";
101
+ loading: boolean;
102
+ error: boolean;
103
+ dark: boolean;
104
+ variant: "primary" | "secondary" | "tertiary";
105
+ loadOnClick: boolean;
106
+ }> & Omit<{
107
+ readonly disabled: boolean;
108
+ readonly type: "button" | "submit" | "reset";
109
+ readonly label: string;
110
+ readonly size: "base" | "xs" | "sm" | "l" | "xl";
111
+ readonly loading: boolean;
112
+ readonly error: boolean;
113
+ readonly dark: boolean;
114
+ readonly variant: "primary" | "secondary" | "tertiary";
115
+ readonly loadOnClick: boolean;
116
+ readonly onClick?: (() => unknown) | (() => Promise<unknown>) | undefined;
117
+ readonly icon?: import('./ElIcon.vue').ElIconProps | undefined;
118
+ readonly iconRight?: boolean | undefined;
119
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
120
+ disabled: {
121
+ type: import('vue').PropType<boolean>;
122
+ default: boolean;
123
+ };
124
+ type: {
125
+ type: import('vue').PropType<"button" | "submit" | "reset">;
126
+ default: string;
127
+ };
128
+ onClick: {
129
+ type: import('vue').PropType<(() => unknown) | (() => Promise<unknown>)>;
130
+ default: undefined;
131
+ };
132
+ label: {
133
+ type: import('vue').PropType<string>;
134
+ required: true;
135
+ default: string;
136
+ };
137
+ icon: {
138
+ type: import('vue').PropType<import('./ElIcon.vue').ElIconProps>;
139
+ default: undefined;
140
+ };
141
+ size: {
142
+ type: import('vue').PropType<"base" | "xs" | "sm" | "l" | "xl">;
143
+ default: string;
144
+ };
145
+ loading: {
146
+ type: import('vue').PropType<boolean>;
147
+ default: boolean;
148
+ };
149
+ error: {
150
+ type: import('vue').PropType<boolean>;
151
+ default: boolean;
152
+ };
153
+ dark: {
154
+ type: import('vue').PropType<boolean>;
155
+ default: boolean;
156
+ };
157
+ iconRight: {
158
+ type: import('vue').PropType<boolean>;
159
+ };
160
+ variant: {
161
+ type: import('vue').PropType<"primary" | "secondary" | "tertiary">;
162
+ default: string;
163
+ };
164
+ loadOnClick: {
165
+ type: import('vue').PropType<boolean>;
166
+ default: boolean;
167
+ };
168
+ }>>, "disabled" | "type" | "onClick" | "label" | "icon" | "size" | "loading" | "error" | "dark" | "variant" | "loadOnClick">, "label"> & {
169
+ onClick: Function;
170
+ }) | undefined;
171
+ }>, {
172
+ state: string;
173
+ title: undefined;
174
+ action: undefined;
175
+ }>>>, {
176
+ title: string;
177
+ action: Pick<InstanceType<typeof ElButton>['$props'], 'label'> & {
178
+ onClick: Function;
179
+ };
180
+ state: ElInlineBannerStates;
181
+ }, {}>;
182
+ export default _default;
183
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
184
+ type __VLS_TypePropsToRuntimeProps<T> = {
185
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
186
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
187
+ } : {
188
+ type: import('vue').PropType<T[K]>;
189
+ required: true;
190
+ };
191
+ };
192
+ type __VLS_WithDefaults<P, D> = {
193
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
194
+ default: D[K];
195
+ }> : P[K];
196
+ };
197
+ type __VLS_Prettify<T> = {
198
+ [K in keyof T]: T[K];
199
+ } & {};
package/dist/index.d.ts CHANGED
@@ -66,3 +66,5 @@ export * from './ElTextCell.vue';
66
66
  export { default as ElTextCell } from './ElTextCell.vue';
67
67
  export * from './ElToast.vue';
68
68
  export { default as ElToast } from './ElToast.vue';
69
+ export * from './ElInlineBanner.vue';
70
+ export { default as ElInlineBanner } from './ElInlineBanner.vue';