@synerise/ds-avatar 0.15.5 → 0.15.7
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/CHANGELOG.md +16 -0
- package/dist/Avatar.styles.d.ts +0 -1
- package/dist/Avatar.types.d.ts +9 -9
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.15.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.15.6...@synerise/ds-avatar@0.15.7) (2023-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-avatar
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.15.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.15.5...@synerise/ds-avatar@0.15.6) (2023-10-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-avatar
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.15.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.15.4...@synerise/ds-avatar@0.15.5) (2023-09-26)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-avatar
|
package/dist/Avatar.styles.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TooltipGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
2
|
declare const _default: import("styled-components").StyledComponent<({ backgroundColorHue, backgroundColor, onClick, hasStatus, hasTooltip, ...rest }: any) => JSX.Element, any, {}, never>;
|
|
4
3
|
export default _default;
|
package/dist/Avatar.types.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import type { BadgeStatus } from '@synerise/ds-badge';
|
|
3
3
|
import { AvatarProps as AntAvatarProps } from 'antd/lib/avatar';
|
|
4
4
|
import { TooltipProps } from '@synerise/ds-tooltip/dist/Tooltip.types';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export type Color = 'red' | 'green' | 'grey' | 'yellow' | 'blue' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
|
|
6
|
+
export type ColorHue = '900' | '800' | '700' | '600' | '500' | '400' | '300' | '200' | '100' | '050';
|
|
7
|
+
export type Size = 'small' | 'medium' | 'large' | 'extraLarge' | undefined;
|
|
8
|
+
export type TooltipObject = TooltipProps & {
|
|
9
9
|
name?: React.ReactNode;
|
|
10
10
|
email?: React.ReactNode;
|
|
11
11
|
};
|
|
@@ -44,30 +44,30 @@ export interface AvatarProps extends Omit<AntAvatarProps, 'size' | 'icon'> {
|
|
|
44
44
|
*/
|
|
45
45
|
tooltip?: TooltipObject | boolean;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
type DefinedAvatarProps = Pick<AvatarProps, 'style' | 'disabled' | 'iconComponent' | 'size' | 'src'> & {
|
|
48
48
|
backgroundColor?: 'auto' | Color | string;
|
|
49
49
|
badgeStatus?: BadgeStatus;
|
|
50
50
|
text?: string;
|
|
51
51
|
tooltip?: TooltipObject | boolean;
|
|
52
52
|
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type ObjectAvatar = {
|
|
55
55
|
name?: string | null;
|
|
56
56
|
status?: string | null;
|
|
57
57
|
description?: string | null;
|
|
58
58
|
avatar?: string | null;
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type ObjectAvatarProps = DefinedAvatarProps & {
|
|
61
61
|
object?: ObjectAvatar;
|
|
62
62
|
color?: Color;
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type UserAvatar = {
|
|
65
65
|
firstName?: string | null;
|
|
66
66
|
lastName?: string | null;
|
|
67
67
|
email?: string | null;
|
|
68
68
|
avatar?: string | null;
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type UserAvatarProps = DefinedAvatarProps & {
|
|
71
71
|
user?: UserAvatar;
|
|
72
72
|
};
|
|
73
73
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-avatar",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.7",
|
|
4
4
|
"description": "Avatar UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-badge": "^0.6.
|
|
36
|
-
"@synerise/ds-icon": "^0.58.
|
|
37
|
-
"@synerise/ds-status": "^0.5.
|
|
38
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
39
|
-
"@synerise/ds-typography": "^0.13.
|
|
35
|
+
"@synerise/ds-badge": "^0.6.38",
|
|
36
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
37
|
+
"@synerise/ds-status": "^0.5.86",
|
|
38
|
+
"@synerise/ds-tooltip": "^0.14.5",
|
|
39
|
+
"@synerise/ds-typography": "^0.13.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@synerise/ds-core": "*",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"styled-components": "5.0.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@synerise/ds-utils": "^0.24.
|
|
48
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
49
49
|
"@testing-library/jest-dom": "5.1.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "d944339a738211d8f74b27360481aafd7ef51ddd"
|
|
52
52
|
}
|