@televet/kibble-ui 1.20.1 → 1.20.2
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/build/components/MediaAndIcons/Avatar/avatar.argTypes.d.ts +100 -41
- package/build/components/MediaAndIcons/Avatar/avatar.component.d.ts +14 -23
- package/build/components/MediaAndIcons/Avatar/avatar.types.d.ts +9 -0
- package/build/components/MediaAndIcons/Avatar/index.d.ts +0 -1
- package/build/components/MediaAndIcons/AvatarGroup/avatarGroup.argTypes.d.ts +94 -0
- package/build/components/MediaAndIcons/AvatarGroup/avatarGroup.component.d.ts +13 -0
- package/build/components/MediaAndIcons/AvatarGroup/avatarGroup.storiesData.d.ts +11 -0
- package/build/components/MediaAndIcons/AvatarGroup/index.d.ts +1 -0
- package/build/index.js +179 -193
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/build/components/MediaAndIcons/Avatar/components/AvatarGroup/avatarGroup.component.d.ts +0 -13
- /package/build/components/MediaAndIcons/{Avatar/components/AvatarGroup → AvatarGroup}/avatarGroup.utilities.d.ts +0 -0
|
@@ -1,8 +1,81 @@
|
|
|
1
|
+
import { Placement } from '@chakra-ui/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AvatarSize, AvatarVariant } from './index';
|
|
4
|
+
import { IconName } from '../Icon';
|
|
5
|
+
import { AvatarBadgePosition, AvatarBadgeProps } from './components/AvatarBadge/avatarBadge.component';
|
|
6
|
+
export interface AvatarArgTypeProps {
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
badgeBackgroundColor?: string;
|
|
9
|
+
badgeBorderColor?: string;
|
|
10
|
+
badgeIconColor?: string;
|
|
11
|
+
badgeIconName?: IconName;
|
|
12
|
+
badgePosition?: AvatarBadgePosition;
|
|
13
|
+
badgeProps?: AvatarBadgeProps;
|
|
14
|
+
color?: string;
|
|
15
|
+
handleClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
16
|
+
handleRemoveButtonClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
17
|
+
hideBorder?: boolean;
|
|
18
|
+
iconName?: IconName;
|
|
19
|
+
name?: string;
|
|
20
|
+
randomizeVariant?: boolean;
|
|
21
|
+
showBadge?: boolean;
|
|
22
|
+
showRemoveButton?: boolean;
|
|
23
|
+
showTooltip?: boolean;
|
|
24
|
+
size?: AvatarSize;
|
|
25
|
+
src?: string;
|
|
26
|
+
tooltipPlacement?: Placement;
|
|
27
|
+
tooltipText?: string;
|
|
28
|
+
variant?: AvatarVariant;
|
|
29
|
+
}
|
|
1
30
|
export declare const avatarArgTypes: {
|
|
31
|
+
backgroundColor: {
|
|
32
|
+
description: string;
|
|
33
|
+
control: string;
|
|
34
|
+
};
|
|
35
|
+
badgeBackgroundColor: any;
|
|
36
|
+
badgeBorderColor: any;
|
|
37
|
+
badgeIconColor: any;
|
|
38
|
+
badgeIconName: any;
|
|
39
|
+
badgePosition: any;
|
|
40
|
+
badgeProps: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
color: {
|
|
45
|
+
description: string;
|
|
46
|
+
control: string;
|
|
47
|
+
};
|
|
48
|
+
handleClick: {
|
|
49
|
+
type: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
handleRemoveButtonClick: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
hideBorder: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
defaultValue: boolean;
|
|
60
|
+
table: {
|
|
61
|
+
type: {
|
|
62
|
+
summary: string;
|
|
63
|
+
};
|
|
64
|
+
defaultValue: {
|
|
65
|
+
summary: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
iconName: {
|
|
70
|
+
control: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
options: string[];
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
2
76
|
name: {
|
|
3
77
|
type: {
|
|
4
78
|
name: string;
|
|
5
|
-
required: boolean;
|
|
6
79
|
};
|
|
7
80
|
control: string;
|
|
8
81
|
description: string;
|
|
@@ -12,29 +85,22 @@ export declare const avatarArgTypes: {
|
|
|
12
85
|
};
|
|
13
86
|
};
|
|
14
87
|
};
|
|
15
|
-
|
|
88
|
+
randomizeVariant: {
|
|
16
89
|
type: string;
|
|
17
|
-
control: string;
|
|
18
90
|
description: string;
|
|
91
|
+
defaultValue: boolean;
|
|
19
92
|
table: {
|
|
20
93
|
type: {
|
|
21
94
|
summary: string;
|
|
22
95
|
};
|
|
96
|
+
defaultValue: {
|
|
97
|
+
summary: string;
|
|
98
|
+
};
|
|
23
99
|
};
|
|
24
100
|
};
|
|
25
|
-
|
|
26
|
-
control: {
|
|
27
|
-
type: string;
|
|
28
|
-
};
|
|
29
|
-
options: string[];
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
size: {
|
|
101
|
+
showBadge: {
|
|
33
102
|
type: string;
|
|
34
|
-
control: string;
|
|
35
103
|
description: string;
|
|
36
|
-
defaultValue: string;
|
|
37
|
-
options: string[];
|
|
38
104
|
table: {
|
|
39
105
|
type: {
|
|
40
106
|
summary: string;
|
|
@@ -44,7 +110,7 @@ export declare const avatarArgTypes: {
|
|
|
44
110
|
};
|
|
45
111
|
};
|
|
46
112
|
};
|
|
47
|
-
|
|
113
|
+
showRemoveButton: {
|
|
48
114
|
type: string;
|
|
49
115
|
description: string;
|
|
50
116
|
defaultValue: boolean;
|
|
@@ -70,11 +136,12 @@ export declare const avatarArgTypes: {
|
|
|
70
136
|
};
|
|
71
137
|
};
|
|
72
138
|
};
|
|
73
|
-
|
|
139
|
+
size: {
|
|
140
|
+
type: string;
|
|
74
141
|
control: string;
|
|
75
|
-
options: import("@popperjs/core").Placement[];
|
|
76
|
-
defaultValue: string;
|
|
77
142
|
description: string;
|
|
143
|
+
defaultValue: string;
|
|
144
|
+
options: string[];
|
|
78
145
|
table: {
|
|
79
146
|
type: {
|
|
80
147
|
summary: string;
|
|
@@ -84,8 +151,9 @@ export declare const avatarArgTypes: {
|
|
|
84
151
|
};
|
|
85
152
|
};
|
|
86
153
|
};
|
|
87
|
-
|
|
154
|
+
src: {
|
|
88
155
|
type: string;
|
|
156
|
+
control: string;
|
|
89
157
|
description: string;
|
|
90
158
|
table: {
|
|
91
159
|
type: {
|
|
@@ -93,18 +161,21 @@ export declare const avatarArgTypes: {
|
|
|
93
161
|
};
|
|
94
162
|
};
|
|
95
163
|
};
|
|
96
|
-
|
|
97
|
-
type: string;
|
|
164
|
+
tooltipPlacement: {
|
|
98
165
|
control: string;
|
|
166
|
+
options: Placement[];
|
|
167
|
+
defaultValue: string;
|
|
99
168
|
description: string;
|
|
100
|
-
options: string[];
|
|
101
169
|
table: {
|
|
102
170
|
type: {
|
|
103
171
|
summary: string;
|
|
104
172
|
};
|
|
173
|
+
defaultValue: {
|
|
174
|
+
summary: string;
|
|
175
|
+
};
|
|
105
176
|
};
|
|
106
177
|
};
|
|
107
|
-
|
|
178
|
+
tooltipText: {
|
|
108
179
|
type: string;
|
|
109
180
|
description: string;
|
|
110
181
|
table: {
|
|
@@ -113,30 +184,18 @@ export declare const avatarArgTypes: {
|
|
|
113
184
|
};
|
|
114
185
|
};
|
|
115
186
|
};
|
|
116
|
-
|
|
117
|
-
description: string;
|
|
118
|
-
control: string;
|
|
119
|
-
};
|
|
120
|
-
color: {
|
|
121
|
-
description: string;
|
|
187
|
+
variant: {
|
|
122
188
|
control: string;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
type: string;
|
|
189
|
+
options: AvatarVariant[];
|
|
190
|
+
defaultValue: AvatarVariant;
|
|
126
191
|
description: string;
|
|
127
192
|
table: {
|
|
128
193
|
type: {
|
|
129
194
|
summary: string;
|
|
130
195
|
};
|
|
196
|
+
defaultValue: {
|
|
197
|
+
summary: AvatarVariant;
|
|
198
|
+
};
|
|
131
199
|
};
|
|
132
200
|
};
|
|
133
|
-
badgeProps: {
|
|
134
|
-
type: string;
|
|
135
|
-
description: string;
|
|
136
|
-
};
|
|
137
|
-
badgeIconName: any;
|
|
138
|
-
badgePosition: any;
|
|
139
|
-
badgeIconColor: any;
|
|
140
|
-
badgeBorderColor: any;
|
|
141
|
-
badgeBackgroundColor: any;
|
|
142
201
|
};
|
|
@@ -1,32 +1,23 @@
|
|
|
1
1
|
import { AvatarProps as CAvatarProps, Placement } from '@chakra-ui/react';
|
|
2
2
|
import { IconName } from 'components/MediaAndIcons/Icon';
|
|
3
|
-
import React
|
|
4
|
-
import { AvatarSize } from './avatar.types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { AvatarSize, AvatarVariant } from './avatar.types';
|
|
5
5
|
import { AvatarBadgeProps } from './components/AvatarBadge/avatarBadge.component';
|
|
6
|
-
export declare enum AvatarVariant {
|
|
7
|
-
Green = "green",
|
|
8
|
-
Red = "red",
|
|
9
|
-
Blue = "blue",
|
|
10
|
-
Comet = "comet",
|
|
11
|
-
Number = "number",
|
|
12
|
-
Dashed = "dashed",
|
|
13
|
-
Image = "image",
|
|
14
|
-
Icon = "icon"
|
|
15
|
-
}
|
|
16
6
|
export interface AvatarProps extends CAvatarProps {
|
|
17
|
-
|
|
18
|
-
size?: AvatarSize;
|
|
19
|
-
isClinic?: boolean;
|
|
20
|
-
showTooltip?: boolean;
|
|
21
|
-
tooltipPlacement?: Placement;
|
|
22
|
-
style?: CSSProperties;
|
|
7
|
+
badgeProps?: AvatarBadgeProps;
|
|
23
8
|
handleClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
24
|
-
showRemoveButton?: boolean;
|
|
25
9
|
handleRemoveButtonClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
26
|
-
|
|
10
|
+
hideBorder?: boolean;
|
|
27
11
|
iconName?: IconName;
|
|
28
|
-
|
|
12
|
+
name?: string;
|
|
13
|
+
randomizeVariant?: boolean;
|
|
29
14
|
showBadge?: boolean;
|
|
30
|
-
|
|
15
|
+
showRemoveButton?: boolean;
|
|
16
|
+
showTooltip?: boolean;
|
|
17
|
+
size?: AvatarSize;
|
|
18
|
+
src?: string;
|
|
19
|
+
tooltipPlacement?: Placement;
|
|
20
|
+
tooltipText?: string;
|
|
21
|
+
variant?: AvatarVariant;
|
|
31
22
|
}
|
|
32
|
-
export declare const Avatar: ({
|
|
23
|
+
export declare const Avatar: ({ badgeProps, handleClick, handleRemoveButtonClick, hideBorder, iconName, name, randomizeVariant, showBadge, showRemoveButton, showTooltip, size, src, tooltipPlacement, tooltipText, variant, ...rest }: AvatarProps) => JSX.Element;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export declare const avatarGroupArgTypes: {
|
|
2
|
+
addButtonTooltipText: {
|
|
3
|
+
type: string;
|
|
4
|
+
description: string;
|
|
5
|
+
table: {
|
|
6
|
+
type: {
|
|
7
|
+
summary: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
avatars: {
|
|
12
|
+
type: {
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
description: string;
|
|
16
|
+
table: {
|
|
17
|
+
type: {
|
|
18
|
+
summary: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
handleAddButtonClick: {
|
|
23
|
+
type: string;
|
|
24
|
+
description: string;
|
|
25
|
+
table: {
|
|
26
|
+
type: {
|
|
27
|
+
summary: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
handleRemoveButtonClick: {
|
|
32
|
+
type: string;
|
|
33
|
+
description: string;
|
|
34
|
+
table: {
|
|
35
|
+
type: {
|
|
36
|
+
summary: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
max: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
defaultValue: number;
|
|
44
|
+
table: {
|
|
45
|
+
type: {
|
|
46
|
+
summary: string;
|
|
47
|
+
};
|
|
48
|
+
defaultValue: {
|
|
49
|
+
summary: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
showAddButton: {
|
|
54
|
+
type: string;
|
|
55
|
+
defaultValue: boolean;
|
|
56
|
+
description: string;
|
|
57
|
+
table: {
|
|
58
|
+
type: {
|
|
59
|
+
summary: string;
|
|
60
|
+
};
|
|
61
|
+
defaultValue: {
|
|
62
|
+
summary: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
showRemoveAvatarButton: {
|
|
67
|
+
type: string;
|
|
68
|
+
defaultValue: boolean;
|
|
69
|
+
description: string;
|
|
70
|
+
table: {
|
|
71
|
+
type: {
|
|
72
|
+
summary: string;
|
|
73
|
+
};
|
|
74
|
+
defaultValue: {
|
|
75
|
+
summary: boolean;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
type: string;
|
|
81
|
+
control: string;
|
|
82
|
+
description: string;
|
|
83
|
+
defaultValue: string;
|
|
84
|
+
options: string[];
|
|
85
|
+
table: {
|
|
86
|
+
type: {
|
|
87
|
+
summary: string;
|
|
88
|
+
};
|
|
89
|
+
defaultValue: {
|
|
90
|
+
summary: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AvatarProps } from '../Avatar/avatar.component';
|
|
2
|
+
import { AvatarSize } from '../Avatar/avatar.types';
|
|
3
|
+
export interface AvatarGroupProps {
|
|
4
|
+
addButtonTooltipText?: string;
|
|
5
|
+
avatars: AvatarProps[];
|
|
6
|
+
handleAddButtonClick?: () => void;
|
|
7
|
+
handleRemoveButtonClick?: () => void;
|
|
8
|
+
max?: number;
|
|
9
|
+
showAddButton?: boolean;
|
|
10
|
+
showRemoveAvatarButton?: boolean;
|
|
11
|
+
size?: AvatarSize;
|
|
12
|
+
}
|
|
13
|
+
export declare const AvatarGroup: ({ addButtonTooltipText, avatars, handleAddButtonClick, handleRemoveButtonClick, max, showAddButton, showRemoveAvatarButton, size, }: AvatarGroupProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './avatarGroup.component';
|