@davincihealthcare/elty-design-system-vue 1.41.0 → 1.42.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.
- package/dist/ElActionButton.vue.d.ts +54 -0
- package/dist/ElTag.vue.d.ts +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1635 -1578
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +16 -16
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ElBadge, ElIcon } from '.';
|
|
2
|
+
|
|
3
|
+
export interface ActionButtonProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
size: ElActionButtonSizes;
|
|
7
|
+
color: ElActionButtonColors;
|
|
8
|
+
status: ElActionButtonStatus;
|
|
9
|
+
leadingIcon?: InstanceType<typeof ElIcon>['$props'];
|
|
10
|
+
trailingIcon?: InstanceType<typeof ElIcon>['$props'];
|
|
11
|
+
badge?: InstanceType<typeof ElBadge>['$props'];
|
|
12
|
+
onClick?: (() => unknown) | (() => Promise<unknown>);
|
|
13
|
+
}
|
|
14
|
+
export declare const elActionButtonSizes: readonly ["base", "l"];
|
|
15
|
+
export type ElActionButtonSizes = (typeof elActionButtonSizes)[number];
|
|
16
|
+
export declare const elActionButtonColors: readonly ["primary", "secondary"];
|
|
17
|
+
export type ElActionButtonColors = (typeof elActionButtonColors)[number];
|
|
18
|
+
export declare const elActionButtonStatus: readonly ["default", "hover", "pressed", "active"];
|
|
19
|
+
export type ElActionButtonStatus = (typeof elActionButtonStatus)[number];
|
|
20
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ActionButtonProps>, {
|
|
21
|
+
size: string;
|
|
22
|
+
color: string;
|
|
23
|
+
status: string;
|
|
24
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
click: (...args: any[]) => void;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ActionButtonProps>, {
|
|
27
|
+
size: string;
|
|
28
|
+
color: string;
|
|
29
|
+
status: string;
|
|
30
|
+
}>>> & {
|
|
31
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
color: "primary" | "secondary";
|
|
34
|
+
size: "base" | "l";
|
|
35
|
+
status: "default" | "active" | "hover" | "pressed";
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
40
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
+
} : {
|
|
43
|
+
type: import('vue').PropType<T[K]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type __VLS_WithDefaults<P, D> = {
|
|
48
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
|
+
default: D[K];
|
|
50
|
+
}> : P[K];
|
|
51
|
+
};
|
|
52
|
+
type __VLS_Prettify<T> = {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} & {};
|
package/dist/ElTag.vue.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const elTagSizes: readonly ["xxs", "xs"];
|
|
|
6
6
|
export type ElTagSize = (typeof elTagSizes)[number];
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
text: string;
|
|
9
|
-
color?: "pink" | "yellow" | "orange" | "cyan" | "rose" | "green" | "red" | "purple" | "indigo" | "primary" | "
|
|
9
|
+
color?: "pink" | "yellow" | "orange" | "cyan" | "rose" | "green" | "red" | "purple" | "indigo" | "primary" | "blue" | "gray" | "teal" | undefined;
|
|
10
10
|
size?: "xxs" | "xs" | undefined;
|
|
11
11
|
outlined?: boolean | undefined;
|
|
12
12
|
leadingIcon?: ElIconProps | undefined;
|
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
19
|
trailingIcon: undefined;
|
|
20
20
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
21
21
|
text: string;
|
|
22
|
-
color?: "pink" | "yellow" | "orange" | "cyan" | "rose" | "green" | "red" | "purple" | "indigo" | "primary" | "
|
|
22
|
+
color?: "pink" | "yellow" | "orange" | "cyan" | "rose" | "green" | "red" | "purple" | "indigo" | "primary" | "blue" | "gray" | "teal" | undefined;
|
|
23
23
|
size?: "xxs" | "xs" | undefined;
|
|
24
24
|
outlined?: boolean | undefined;
|
|
25
25
|
leadingIcon?: ElIconProps | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -90,3 +90,5 @@ export * from './forms/ElInputSwitch.vue';
|
|
|
90
90
|
export { default as ElInputSwitch } from './forms/ElInputSwitch.vue';
|
|
91
91
|
export * from './ElCarousel.vue';
|
|
92
92
|
export { default as ElCarousel } from './ElCarousel.vue';
|
|
93
|
+
export * from './ElActionButton.vue';
|
|
94
|
+
export { default as ElActionButton } from './ElActionButton.vue';
|