@dt-dds/react-avatar 1.0.0-beta.53 → 1.0.0-beta.54
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 +10 -0
- package/dist/index.d.mts +38 -0
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @dt-ui/react-avatar
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.54
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- chore(dependencies): upgrade builders versions
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @dt-dds/react-core@1.0.0-beta.45
|
|
10
|
+
- @dt-dds/react-tooltip@1.0.0-beta.53
|
|
11
|
+
- @dt-dds/themes@1.0.0-beta.5
|
|
12
|
+
|
|
3
13
|
## 1.0.0-beta.53
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CustomTheme } from '@dt-dds/themes';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const AvatarType: {
|
|
5
|
+
readonly Primary: "primary";
|
|
6
|
+
readonly Secondary: "secondary";
|
|
7
|
+
readonly Tertiary: "tertiary";
|
|
8
|
+
readonly Profile: "profile";
|
|
9
|
+
};
|
|
10
|
+
type AvatarType = (typeof AvatarType)[keyof typeof AvatarType];
|
|
11
|
+
|
|
12
|
+
declare const AvatarSize: {
|
|
13
|
+
readonly Small: "small";
|
|
14
|
+
readonly Medium: "medium";
|
|
15
|
+
readonly Large: "large";
|
|
16
|
+
};
|
|
17
|
+
type AvatarSize = (typeof AvatarSize)[keyof typeof AvatarSize];
|
|
18
|
+
|
|
19
|
+
interface AvatarStyledProps {
|
|
20
|
+
type: AvatarType;
|
|
21
|
+
size: AvatarSize;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface AvatarProps extends AvatarStyledProps {
|
|
25
|
+
title: string;
|
|
26
|
+
imageSrc?: string;
|
|
27
|
+
dataTestId?: string;
|
|
28
|
+
customInitials?: string;
|
|
29
|
+
hasTooltip?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare const Avatar: ({ title, type, size, imageSrc, dataTestId, customInitials, hasTooltip, }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
declare module '@emotion/react' {
|
|
34
|
+
interface Theme extends CustomTheme {
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { Avatar, AvatarSize, AvatarType };
|
package/dist/index.js
CHANGED
|
@@ -45,13 +45,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
46
|
|
|
47
47
|
// index.ts
|
|
48
|
-
var
|
|
49
|
-
__export(
|
|
48
|
+
var index_exports = {};
|
|
49
|
+
__export(index_exports, {
|
|
50
50
|
Avatar: () => Avatar_default,
|
|
51
51
|
AvatarSize: () => AvatarSize,
|
|
52
52
|
AvatarType: () => AvatarType
|
|
53
53
|
});
|
|
54
|
-
module.exports = __toCommonJS(
|
|
54
|
+
module.exports = __toCommonJS(index_exports);
|
|
55
55
|
|
|
56
56
|
// src/Avatar.tsx
|
|
57
57
|
var import_react_tooltip = require("@dt-dds/react-tooltip");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-avatar",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.54",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-tooltip": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-core": "1.0.0-beta.45",
|
|
24
|
+
"@dt-dds/react-tooltip": "1.0.0-beta.53",
|
|
25
|
+
"@dt-dds/themes": "1.0.0-beta.5"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.22.9",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react": "^18.1.0",
|
|
44
44
|
"react-dom": "^18.2.0",
|
|
45
45
|
"tsconfig": "*",
|
|
46
|
-
"tsup": "^
|
|
46
|
+
"tsup": "^8.5.0",
|
|
47
47
|
"typescript": "^4.5.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|