@davincihealthcare/elty-design-system-vue 1.49.0 → 1.50.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.
@@ -1,11 +1,7 @@
1
1
  import { ButtonHTMLAttributes } from 'vue';
2
2
  import { ElIconProps } from './ElIcon.vue';
3
3
 
4
- export declare const elButtonSizes: readonly ["xs", "sm", "base", "l", "xl"];
5
- export type ElButtonSize = (typeof elButtonSizes)[number];
6
- export declare const elButtonVariants: readonly ["primary", "secondary", "tertiary"];
7
- export type ElButtonVariant = (typeof elButtonVariants)[number];
8
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ export interface ElButtonProps {
9
5
  disabled?: boolean;
10
6
  dark?: boolean;
11
7
  loading?: boolean;
@@ -15,10 +11,15 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
15
11
  label: string;
16
12
  size?: ElButtonSize;
17
13
  variant?: ElButtonVariant;
18
- type?: ButtonHTMLAttributes["type"];
14
+ type?: ButtonHTMLAttributes['type'];
19
15
  loadOnClick?: boolean;
20
16
  onClick?: (() => unknown) | (() => Promise<unknown>);
21
- }>, {
17
+ }
18
+ export declare const elButtonSizes: readonly ["xs", "sm", "base", "l", "xl"];
19
+ export type ElButtonSize = (typeof elButtonSizes)[number];
20
+ export declare const elButtonVariants: readonly ["primary", "secondary", "tertiary"];
21
+ export type ElButtonVariant = (typeof elButtonVariants)[number];
22
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ElButtonProps>, {
22
23
  disabled: boolean;
23
24
  dark: boolean;
24
25
  loading: boolean;
@@ -30,20 +31,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
30
31
  type: string;
31
32
  loadOnClick: boolean;
32
33
  onClick: undefined;
33
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
34
- disabled?: boolean;
35
- dark?: boolean;
36
- loading?: boolean;
37
- icon?: ElIconProps;
38
- iconRight?: boolean;
39
- error?: boolean;
40
- label: string;
41
- size?: ElButtonSize;
42
- variant?: ElButtonVariant;
43
- type?: ButtonHTMLAttributes["type"];
44
- loadOnClick?: boolean;
45
- onClick?: (() => unknown) | (() => Promise<unknown>);
46
- }>, {
34
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ElButtonProps>, {
47
35
  disabled: boolean;
48
36
  dark: boolean;
49
37
  loading: boolean;
@@ -1,3 +1,4 @@
1
+ import { ElBadgeColors } from './ElBadge.vue';
1
2
  import { ElIconProps } from './ElIcon.vue';
2
3
 
3
4
  export interface ElIconButtonProps {
@@ -7,6 +8,7 @@ export interface ElIconButtonProps {
7
8
  size?: ElIconButtonSize;
8
9
  loading?: boolean;
9
10
  badge?: string | boolean;
11
+ badgeColor?: ElBadgeColors;
10
12
  error?: boolean;
11
13
  }
12
14
  export declare const elIconButtonSizes: readonly ["xs", "sm", "base", "l", "xl"];
@@ -14,6 +16,7 @@ export type ElIconButtonSize = (typeof elIconButtonSizes)[number];
14
16
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ElIconButtonProps>, {
15
17
  tooltip: undefined;
16
18
  size: string;
19
+ badgeColor: string;
17
20
  disabled: boolean;
18
21
  loading: boolean;
19
22
  badge: boolean;
@@ -23,6 +26,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
23
26
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ElIconButtonProps>, {
24
27
  tooltip: undefined;
25
28
  size: string;
29
+ badgeColor: string;
26
30
  disabled: boolean;
27
31
  loading: boolean;
28
32
  badge: boolean;
@@ -36,6 +40,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
36
40
  error: boolean;
37
41
  badge: string | boolean;
38
42
  tooltip: string;
43
+ badgeColor: ElBadgeColors;
39
44
  }, {}>;
40
45
  export default _default;
41
46
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,47 @@
1
+ import { ElTextCellColor, ElTextCellStyle } from './ElTextCell.vue';
2
+ import { ElIconProps } from './ElIcon.vue';
3
+ import { ElTagColor } from './ElTag.vue';
4
+
5
+ export interface ElListItemProps {
6
+ avatar?: {
7
+ picture: string;
8
+ label?: string;
9
+ } | {
10
+ picture?: string;
11
+ label: string;
12
+ };
13
+ time?: string;
14
+ mainText: {
15
+ label: string;
16
+ style?: ElTextCellStyle;
17
+ color?: ElTextCellColor;
18
+ };
19
+ secondaryRow?: string;
20
+ tertiaryRow?: string;
21
+ trailingIcon?: ElIconProps;
22
+ amount?: string;
23
+ tags?: {
24
+ key?: string;
25
+ text: string;
26
+ color?: ElTagColor;
27
+ }[];
28
+ modelValue?: boolean;
29
+ color: 'primary' | 'secondary';
30
+ }
31
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<ElListItemProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ "update:modelValue": (checked: boolean | undefined) => void;
33
+ click: (payload: MouseEvent) => void;
34
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ElListItemProps>>> & {
35
+ onClick?: ((payload: MouseEvent) => any) | undefined;
36
+ "onUpdate:modelValue"?: ((checked: boolean | undefined) => any) | undefined;
37
+ }, {}, {}>;
38
+ export default _default;
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToRuntimeProps<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: import('vue').PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
@@ -1,17 +1,17 @@
1
1
  declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
2
  modelValue: string;
3
- tabs: Array<{
3
+ tabs: {
4
4
  label: string;
5
5
  disabled?: boolean;
6
- }>;
6
+ }[];
7
7
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
8
  "update:modelValue": (modelValue: string) => void;
9
9
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
10
  modelValue: string;
11
- tabs: Array<{
11
+ tabs: {
12
12
  label: string;
13
13
  disabled?: boolean;
14
- }>;
14
+ }[];
15
15
  }>>> & {
16
16
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
17
17
  }, {}, {}>;
package/dist/index.d.ts CHANGED
@@ -92,5 +92,13 @@ export * from './ElCarousel.vue';
92
92
  export { default as ElCarousel } from './ElCarousel.vue';
93
93
  export * from './ElActionButton.vue';
94
94
  export { default as ElActionButton } from './ElActionButton.vue';
95
+ export * from './ElListItem.vue';
96
+ export { default as ElListItem } from './ElListItem.vue';
97
+ export * from './table/ElMobileTable.vue';
98
+ export { default as ElMobileTable } from './table/ElMobileTable.vue';
95
99
  export * from './forms/ElInputSearch.vue';
96
100
  export { default as ElInputSearch } from './forms/ElInputSearch.vue';
101
+ export * from './table/ElResponsiveTable.vue';
102
+ export { default as ElResponsiveTable } from './table/ElResponsiveTable.vue';
103
+ export * from './table/ElServerSideMobileTable.vue';
104
+ export { default as ElServerSideMobileTable } from './table/ElServerSideMobileTable.vue';