@davincihealthcare/elty-design-system-vue 1.36.6 → 1.37.1

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,12 +1,12 @@
1
1
  import { default as ElButton } from './ElButton.vue';
2
2
 
3
- export declare const elInlineBannerStates: readonly ["error", "warning", "info"];
4
- export type ElInlineBannerStates = (typeof elInlineBannerStates)[number];
3
+ export declare const elInlineBannerStatuses: readonly ["error", "warning", "info"];
4
+ export type ElInlineBannerStatuses = (typeof elInlineBannerStatuses)[number];
5
5
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
- state?: "error" | "warning" | "info" | undefined;
6
+ status?: "error" | "warning" | "info" | undefined;
7
7
  title?: string | undefined;
8
8
  description: string;
9
- action?: (Pick<Partial<{
9
+ action?: Pick<Partial<{
10
10
  disabled: boolean;
11
11
  type: "button" | "submit" | "reset";
12
12
  onClick: (() => unknown) | (() => Promise<unknown>);
@@ -80,9 +80,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
80
80
  type: import('vue').PropType<boolean>;
81
81
  default: boolean;
82
82
  };
83
- }>>, "disabled" | "type" | "onClick" | "label" | "size" | "dark" | "loading" | "icon" | "error" | "variant" | "loadOnClick">, "label"> & {
84
- onClick: Function;
85
- }) | undefined;
83
+ }>>, "disabled" | "type" | "onClick" | "label" | "size" | "dark" | "loading" | "icon" | "error" | "variant" | "loadOnClick">, "onClick" | "label" | "loading" | "icon" | "iconRight" | "variant" | "loadOnClick"> | undefined;
86
84
  icon?: (Partial<{}> & Omit<{
87
85
  readonly name: import('./ElIcon.vue').IconNames;
88
86
  readonly solid?: boolean | undefined;
@@ -100,15 +98,15 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
100
98
  };
101
99
  }>>, never>) | undefined;
102
100
  }>, {
103
- state: string;
101
+ status: string;
104
102
  title: undefined;
105
103
  action: undefined;
106
104
  icon: undefined;
107
105
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
108
- state?: "error" | "warning" | "info" | undefined;
106
+ status?: "error" | "warning" | "info" | undefined;
109
107
  title?: string | undefined;
110
108
  description: string;
111
- action?: (Pick<Partial<{
109
+ action?: Pick<Partial<{
112
110
  disabled: boolean;
113
111
  type: "button" | "submit" | "reset";
114
112
  onClick: (() => unknown) | (() => Promise<unknown>);
@@ -182,9 +180,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
182
180
  type: import('vue').PropType<boolean>;
183
181
  default: boolean;
184
182
  };
185
- }>>, "disabled" | "type" | "onClick" | "label" | "size" | "dark" | "loading" | "icon" | "error" | "variant" | "loadOnClick">, "label"> & {
186
- onClick: Function;
187
- }) | undefined;
183
+ }>>, "disabled" | "type" | "onClick" | "label" | "size" | "dark" | "loading" | "icon" | "error" | "variant" | "loadOnClick">, "onClick" | "label" | "loading" | "icon" | "iconRight" | "variant" | "loadOnClick"> | undefined;
188
184
  icon?: (Partial<{}> & Omit<{
189
185
  readonly name: import('./ElIcon.vue').IconNames;
190
186
  readonly solid?: boolean | undefined;
@@ -202,7 +198,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
202
198
  };
203
199
  }>>, never>) | undefined;
204
200
  }>, {
205
- state: string;
201
+ status: string;
206
202
  title: undefined;
207
203
  action: undefined;
208
204
  icon: undefined;
@@ -224,10 +220,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
224
220
  type: import('vue').PropType<boolean>;
225
221
  };
226
222
  }>>, never>;
227
- action: Pick<InstanceType<typeof ElButton>['$props'], 'label'> & {
228
- onClick: Function;
229
- };
230
- state: ElInlineBannerStates;
223
+ status: ElInlineBannerStatuses;
224
+ action: Pick<InstanceType<typeof ElButton>['$props'], 'label' | 'variant' | 'onClick' | 'icon' | 'iconRight' | 'loading' | 'loadOnClick'>;
231
225
  }, {}>;
232
226
  export default _default;
233
227
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,53 @@
1
+ export declare const elSwitchSizes: readonly ["xs", "xxs"];
2
+ type ElSwitchSizes = (typeof elSwitchSizes)[number];
3
+ export declare const elSwitchColors: readonly ["primary", "secondary"];
4
+ type ElSwitchColors = (typeof elSwitchColors)[number];
5
+ export declare const elSwitchAligns: readonly ["left", "right"];
6
+ type ElSwitchAligns = (typeof elSwitchAligns)[number];
7
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ modelValue?: boolean | undefined;
9
+ label: string;
10
+ size?: "xxs" | "xs" | undefined;
11
+ color?: "primary" | "secondary" | undefined;
12
+ align?: "left" | "right" | undefined;
13
+ }>, {
14
+ size: string;
15
+ color: string;
16
+ align: string;
17
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (val: boolean) => void;
19
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
20
+ modelValue?: boolean | undefined;
21
+ label: string;
22
+ size?: "xxs" | "xs" | undefined;
23
+ color?: "primary" | "secondary" | undefined;
24
+ align?: "left" | "right" | undefined;
25
+ }>, {
26
+ size: string;
27
+ color: string;
28
+ align: string;
29
+ }>>> & {
30
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
31
+ }, {
32
+ color: ElSwitchColors;
33
+ size: ElSwitchSizes;
34
+ align: ElSwitchAligns;
35
+ }, {}>;
36
+ export default _default;
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToRuntimeProps<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: import('vue').PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
+ default: D[K];
49
+ }> : P[K];
50
+ };
51
+ type __VLS_Prettify<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
package/dist/index.d.ts CHANGED
@@ -86,3 +86,5 @@ export * from './ElVerticalTab.vue';
86
86
  export { default as ElVerticalTab } from './ElVerticalTab.vue';
87
87
  export * from './ElContainerTemplate.vue';
88
88
  export { default as ElContainerTemplate } from './ElContainerTemplate.vue';
89
+ export * from './forms/ElInputSwitch.vue';
90
+ export { default as ElInputSwitch } from './forms/ElInputSwitch.vue';