@lumx/react 2.1.9 → 2.2.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/esm/_internal/Avatar2.js +7 -2
- package/esm/_internal/Avatar2.js.map +1 -1
- package/esm/_internal/Slider2.js +21 -2
- package/esm/_internal/Slider2.js.map +1 -1
- package/esm/_internal/Thumbnail2.js +181 -782
- package/esm/_internal/Thumbnail2.js.map +1 -1
- package/esm/_internal/Tooltip2.js +0 -5
- package/esm/_internal/Tooltip2.js.map +1 -1
- package/esm/_internal/UserBlock.js +41 -17
- package/esm/_internal/UserBlock.js.map +1 -1
- package/esm/_internal/avatar.js +0 -3
- package/esm/_internal/avatar.js.map +1 -1
- package/esm/_internal/comment-block.js +0 -3
- package/esm/_internal/comment-block.js.map +1 -1
- package/esm/_internal/image-block.js +0 -3
- package/esm/_internal/image-block.js.map +1 -1
- package/esm/_internal/link-preview.js +0 -3
- package/esm/_internal/link-preview.js.map +1 -1
- package/esm/_internal/mdi.js +2 -2
- package/esm/_internal/mdi.js.map +1 -1
- package/esm/_internal/mosaic.js +0 -3
- package/esm/_internal/mosaic.js.map +1 -1
- package/esm/_internal/post-block.js +0 -3
- package/esm/_internal/post-block.js.map +1 -1
- package/esm/_internal/slider.js +1 -2
- package/esm/_internal/slider.js.map +1 -1
- package/esm/_internal/thumbnail.js +1 -4
- package/esm/_internal/thumbnail.js.map +1 -1
- package/esm/_internal/types.js +1 -0
- package/esm/_internal/types.js.map +1 -1
- package/esm/_internal/user-block.js +2 -3
- package/esm/_internal/user-block.js.map +1 -1
- package/esm/index.js +2 -4
- package/esm/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/avatar/Avatar.stories.tsx +30 -53
- package/src/components/avatar/Avatar.tsx +9 -0
- package/src/components/avatar/__snapshots__/Avatar.test.tsx.snap +220 -357
- package/src/components/image-block/__snapshots__/ImageBlock.test.tsx.snap +1 -1
- package/src/components/mosaic/__snapshots__/Mosaic.test.tsx.snap +30 -30
- package/src/components/post-block/__snapshots__/PostBlock.test.tsx.snap +1 -1
- package/src/components/slideshow/__snapshots__/Slideshow.test.tsx.snap +10 -10
- package/src/components/table/__snapshots__/Table.test.tsx.snap +3 -3
- package/src/components/thumbnail/Thumbnail.stories.tsx +428 -52
- package/src/components/thumbnail/Thumbnail.test.tsx +8 -2
- package/src/components/thumbnail/Thumbnail.tsx +84 -47
- package/src/components/thumbnail/__snapshots__/Thumbnail.test.tsx.snap +28 -81
- package/src/components/thumbnail/index.ts +1 -0
- package/src/components/thumbnail/useFocusPointStyle.tsx +89 -0
- package/src/components/thumbnail/useImageLoad.ts +24 -23
- package/src/components/tooltip/Tooltip.stories.tsx +7 -4
- package/src/components/tooltip/useInjectTooltipRef.tsx +1 -3
- package/src/components/user-block/UserBlock.stories.tsx +65 -105
- package/src/components/user-block/UserBlock.test.tsx +6 -0
- package/src/components/user-block/UserBlock.tsx +50 -25
- package/src/components/user-block/__snapshots__/UserBlock.test.tsx.snap +113 -144
- package/src/stories/generated/Badge/Demos.stories.tsx +1 -0
- package/src/stories/generated/Flag/Demos.stories.tsx +6 -0
- package/src/stories/generated/List/Demos.stories.tsx +2 -0
- package/src/stories/generated/Thumbnail/Demos.stories.tsx +1 -0
- package/src/stories/knobs/focusKnob.ts +1 -1
- package/src/stories/knobs/image.ts +35 -3
- package/src/stories/utils/CustomLink.tsx +7 -0
- package/types.d.ts +21 -4
- package/esm/_internal/clamp.js +0 -22
- package/esm/_internal/clamp.js.map +0 -1
- package/src/components/thumbnail/useClickable.ts +0 -26
- package/src/components/thumbnail/useFocusPoint.ts +0 -154
package/esm/_internal/mosaic.js
CHANGED
|
@@ -7,12 +7,9 @@ import 'lodash/isBoolean';
|
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
|
-
import './constants.js';
|
|
11
10
|
import './mergeRefs.js';
|
|
12
11
|
import './Icon2.js';
|
|
13
12
|
import 'lodash/take';
|
|
14
13
|
export { M as Mosaic } from './Mosaic2.js';
|
|
15
|
-
import './clamp.js';
|
|
16
14
|
import './Thumbnail2.js';
|
|
17
|
-
import 'lodash';
|
|
18
15
|
//# sourceMappingURL=mosaic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mosaic.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mosaic.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -7,13 +7,10 @@ import 'lodash/isBoolean';
|
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
|
-
import './constants.js';
|
|
11
10
|
import './mergeRefs.js';
|
|
12
11
|
import './Icon2.js';
|
|
13
12
|
import 'lodash/isObject';
|
|
14
13
|
export { P as PostBlock } from './PostBlock.js';
|
|
15
|
-
import './clamp.js';
|
|
16
14
|
import './Thumbnail2.js';
|
|
17
|
-
import 'lodash';
|
|
18
15
|
import './types.js';
|
|
19
16
|
//# sourceMappingURL=post-block.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/esm/_internal/slider.js
CHANGED
|
@@ -9,6 +9,5 @@ import 'lodash/kebabCase';
|
|
|
9
9
|
import 'lodash/noop';
|
|
10
10
|
import './InputHelper.js';
|
|
11
11
|
import './InputLabel.js';
|
|
12
|
-
export { S as Slider } from './Slider2.js';
|
|
13
|
-
export { c as clamp } from './clamp.js';
|
|
12
|
+
export { S as Slider, c as clamp } from './Slider2.js';
|
|
14
13
|
//# sourceMappingURL=slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -7,11 +7,8 @@ import 'lodash/isBoolean';
|
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
|
-
import './constants.js';
|
|
11
10
|
import './mergeRefs.js';
|
|
12
11
|
import './Icon2.js';
|
|
13
|
-
|
|
14
|
-
export { T as Thumbnail } from './Thumbnail2.js';
|
|
15
|
-
import 'lodash';
|
|
12
|
+
export { T as Thumbnail, u as useFocusPointStyle } from './Thumbnail2.js';
|
|
16
13
|
export { T as ThumbnailAspectRatio, a as ThumbnailVariant } from './types.js';
|
|
17
14
|
//# sourceMappingURL=thumbnail.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thumbnail.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thumbnail.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/esm/_internal/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../src/components/thumbnail/types.ts"],"sourcesContent":["import React from 'react';\nimport { AspectRatio, Size } from '@lumx/react';\nimport { ValueOf } from '@lumx/react/utils';\n\n/**\n * Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).\n */\nexport type FocusPoint = { x?: number; y?: number };\n\n/**\n * Loading attribute is not yet supported in typescript, so we need\n * to add it in order to avoid a ts error.\n * https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes\n */\ndeclare module 'react' {\n interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {\n loading?: 'eager' | 'lazy';\n }\n}\n\n/**\n * All available aspect ratios.\n * @deprecated\n */\nexport const ThumbnailAspectRatio: Record<string, AspectRatio> = { ...AspectRatio };\n\n/**\n * Thumbnail sizes.\n */\nexport type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;\n\n/**\n * Thumbnail variants.\n */\nexport const ThumbnailVariant = {\n squared: 'squared',\n rounded: 'rounded',\n} as const;\nexport type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;\n"],"names":["ThumbnailAspectRatio","AspectRatio","ThumbnailVariant","squared","rounded"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../src/components/thumbnail/types.ts"],"sourcesContent":["import React from 'react';\nimport { AspectRatio, Size } from '@lumx/react';\nimport { ValueOf } from '@lumx/react/utils';\n\n/**\n * Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).\n */\nexport type FocusPoint = { x?: number; y?: number };\n\n/**\n * Loading attribute is not yet supported in typescript, so we need\n * to add it in order to avoid a ts error.\n * https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes\n */\ndeclare module 'react' {\n interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {\n loading?: 'eager' | 'lazy';\n }\n}\n\n/**\n * All available aspect ratios.\n * @deprecated\n */\nexport const ThumbnailAspectRatio: Record<string, AspectRatio> = { ...AspectRatio };\n\n/**\n * Thumbnail sizes.\n */\nexport type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;\n\n/**\n * Thumbnail variants.\n */\nexport const ThumbnailVariant = {\n squared: 'squared',\n rounded: 'rounded',\n} as const;\nexport type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;\n"],"names":["ThumbnailAspectRatio","AspectRatio","ThumbnailVariant","squared","rounded"],"mappings":";;;;AAoBA;;;;IAIaA,oBAAiD,sBAAQC,WAAR;AAE9D;;;;AAKA;;;IAGaC,gBAAgB,GAAG;AAC5BC,EAAAA,OAAO,EAAE,SADmB;AAE5BC,EAAAA,OAAO,EAAE;AAFmB;;;;"}
|
|
@@ -7,12 +7,11 @@ import 'lodash/isBoolean';
|
|
|
7
7
|
import 'lodash/isEmpty';
|
|
8
8
|
import 'lodash/kebabCase';
|
|
9
9
|
import 'lodash/noop';
|
|
10
|
-
import './constants.js';
|
|
11
10
|
import './mergeRefs.js';
|
|
12
11
|
import './Avatar2.js';
|
|
12
|
+
import './renderLink.js';
|
|
13
13
|
import './Icon2.js';
|
|
14
|
-
import './
|
|
14
|
+
import './Link2.js';
|
|
15
15
|
import './Thumbnail2.js';
|
|
16
|
-
import 'lodash';
|
|
17
16
|
export { U as UserBlock } from './UserBlock.js';
|
|
18
17
|
//# sourceMappingURL=user-block.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-block.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -74,15 +74,13 @@ export { R as RadioButton, a as RadioGroup } from './_internal/RadioGroup.js';
|
|
|
74
74
|
export { a as Select, c as SelectMultiple, b as SelectMultipleField, S as SelectVariant } from './_internal/SelectMultiple.js';
|
|
75
75
|
export { S as SideNavigation, a as SideNavigationItem } from './_internal/SideNavigationItem.js';
|
|
76
76
|
export { S as SkeletonCircle, b as SkeletonRectangle, a as SkeletonRectangleVariant, c as SkeletonTypography } from './_internal/SkeletonTypography.js';
|
|
77
|
-
export { S as Slider } from './_internal/Slider2.js';
|
|
78
|
-
export { c as clamp } from './_internal/clamp.js';
|
|
77
|
+
export { S as Slider, c as clamp } from './_internal/Slider2.js';
|
|
79
78
|
export { S as Slideshow, b as SlideshowControls, a as SlideshowItem } from './_internal/SlideshowControls.js';
|
|
80
79
|
export { S as Switch } from './_internal/Switch2.js';
|
|
81
80
|
export { T as Table, a as TableBody, d as TableCell, c as TableCellVariant, e as TableHeader, f as TableRow, b as ThOrder } from './_internal/TableRow.js';
|
|
82
81
|
export { c as Tab, b as TabList, a as TabListLayout, d as TabPanel, T as TabProvider } from './_internal/TabPanel.js';
|
|
83
82
|
export { T as TextField } from './_internal/TextField.js';
|
|
84
|
-
export { T as Thumbnail } from './_internal/Thumbnail2.js';
|
|
85
|
-
import 'lodash';
|
|
83
|
+
export { T as Thumbnail, u as useFocusPointStyle } from './_internal/Thumbnail2.js';
|
|
86
84
|
export { T as ThumbnailAspectRatio, a as ThumbnailVariant } from './_internal/types.js';
|
|
87
85
|
export { T as Toolbar } from './_internal/Toolbar2.js';
|
|
88
86
|
export { T as Tooltip } from './_internal/Tooltip2.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@juggle/resize-observer": "^3.2.0",
|
|
10
|
-
"@lumx/core": "^2.1
|
|
11
|
-
"@lumx/icons": "^2.1
|
|
10
|
+
"@lumx/core": "^2.2.1",
|
|
11
|
+
"@lumx/icons": "^2.2.1",
|
|
12
12
|
"@popperjs/core": "^2.5.4",
|
|
13
13
|
"body-scroll-lock": "^3.1.5",
|
|
14
14
|
"classnames": "^2.2.6",
|
|
@@ -120,6 +120,6 @@
|
|
|
120
120
|
"build:storybook": "cd storybook && ./build"
|
|
121
121
|
},
|
|
122
122
|
"sideEffects": false,
|
|
123
|
-
"version": "2.1
|
|
124
|
-
"gitHead": "
|
|
123
|
+
"version": "2.2.1",
|
|
124
|
+
"gitHead": "bdea2aa23e6d1bea58c6405bca97228f1eefdee7"
|
|
125
125
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { select } from '@storybook/addon-knobs';
|
|
3
|
+
|
|
1
4
|
import { mdiDelete, mdiEye, mdiPencil, mdiStar } from '@lumx/icons';
|
|
2
|
-
import {
|
|
5
|
+
import { Badge, ColorPalette, FlexBox, Icon, IconButton, Size } from '@lumx/react';
|
|
3
6
|
import { AVATAR_IMAGES, avatarImageKnob, PORTRAIT_IMAGES } from '@lumx/react/stories/knobs/image';
|
|
4
|
-
import {
|
|
5
|
-
import React from 'react';
|
|
7
|
+
import { CustomLink } from '@lumx/react/stories/utils/CustomLink';
|
|
6
8
|
|
|
7
9
|
import { Avatar } from './Avatar';
|
|
8
10
|
|
|
9
11
|
export default { title: 'LumX components/avatar/Avatar' };
|
|
10
12
|
|
|
11
|
-
const AVATAR_SIZES
|
|
13
|
+
const AVATAR_SIZES = [Size.xs, Size.s, Size.m, Size.l, Size.xl, Size.xxl];
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* Avatar stories showing a simple Avatar with different sizes.
|
|
15
17
|
* @return component with different sizes.
|
|
16
18
|
*/
|
|
17
|
-
export const
|
|
19
|
+
export const Sizes = () =>
|
|
18
20
|
AVATAR_SIZES.map((size) => (
|
|
19
21
|
<Avatar
|
|
20
22
|
key={size}
|
|
@@ -29,7 +31,7 @@ export const AvatarSizes = () =>
|
|
|
29
31
|
* Avatar story showing a simple avatar with different actions.
|
|
30
32
|
* @return component with different actions.
|
|
31
33
|
*/
|
|
32
|
-
export const
|
|
34
|
+
export const WithActions = () =>
|
|
33
35
|
AVATAR_SIZES.map((size) => (
|
|
34
36
|
<Avatar
|
|
35
37
|
key={size}
|
|
@@ -37,45 +39,16 @@ export const AvatarWithActions = () =>
|
|
|
37
39
|
alt={size}
|
|
38
40
|
size={size}
|
|
39
41
|
actions={
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
emphasis={Emphasis.low}
|
|
46
|
-
hasBackground
|
|
47
|
-
icon={mdiPencil}
|
|
48
|
-
size={Size.s}
|
|
49
|
-
/>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<div className="lumx-spacing-margin-right-regular">
|
|
53
|
-
<IconButton
|
|
54
|
-
label="See"
|
|
55
|
-
color="dark"
|
|
56
|
-
emphasis={Emphasis.low}
|
|
57
|
-
hasBackground
|
|
58
|
-
icon={mdiEye}
|
|
59
|
-
size={Size.s}
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
<div>
|
|
64
|
-
<IconButton
|
|
65
|
-
label="Delete"
|
|
66
|
-
color="dark"
|
|
67
|
-
emphasis={Emphasis.low}
|
|
68
|
-
hasBackground
|
|
69
|
-
icon={mdiDelete}
|
|
70
|
-
size={Size.s}
|
|
71
|
-
/>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
42
|
+
<FlexBox orientation="horizontal" gap="regular" vAlign="center">
|
|
43
|
+
<IconButton label="Edit" emphasis="low" hasBackground icon={mdiPencil} size="s" />
|
|
44
|
+
<IconButton label="See" emphasis="low" hasBackground icon={mdiEye} size="s" />
|
|
45
|
+
<IconButton label="Delete" emphasis="low" hasBackground icon={mdiDelete} size="s" />
|
|
46
|
+
</FlexBox>
|
|
74
47
|
}
|
|
75
48
|
/>
|
|
76
49
|
));
|
|
77
50
|
|
|
78
|
-
export const
|
|
51
|
+
export const WithBadge = () =>
|
|
79
52
|
AVATAR_SIZES.map((size) => (
|
|
80
53
|
<Avatar
|
|
81
54
|
key={size}
|
|
@@ -91,7 +64,7 @@ export const AvatarWithBadge = () =>
|
|
|
91
64
|
/>
|
|
92
65
|
));
|
|
93
66
|
|
|
94
|
-
export const
|
|
67
|
+
export const WithRectangularImage = () =>
|
|
95
68
|
AVATAR_SIZES.map((size) => (
|
|
96
69
|
<Avatar
|
|
97
70
|
key={size}
|
|
@@ -102,14 +75,18 @@ export const AvatarWithRectangularImage = () =>
|
|
|
102
75
|
/>
|
|
103
76
|
));
|
|
104
77
|
|
|
105
|
-
export const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
78
|
+
export const Clickable = () => {
|
|
79
|
+
const baseProps = { size: 'l', image: AVATAR_IMAGES.avatar2, alt: 'avatar2' } as any;
|
|
80
|
+
return (
|
|
81
|
+
<>
|
|
82
|
+
<p>As a button</p>
|
|
83
|
+
<Avatar {...baseProps} onClick={() => alert('clicked on avatar')} />
|
|
84
|
+
|
|
85
|
+
<p>As a link</p>
|
|
86
|
+
<Avatar {...baseProps} linkProps={{ href: 'https://example.com' }} />
|
|
87
|
+
|
|
88
|
+
<p>As a custom link component</p>
|
|
89
|
+
<Avatar {...baseProps} linkAs={CustomLink} />
|
|
90
|
+
</>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
@@ -23,6 +23,10 @@ export interface AvatarProps extends GenericProps {
|
|
|
23
23
|
badge?: ReactElement;
|
|
24
24
|
/** Image URL. */
|
|
25
25
|
image: string;
|
|
26
|
+
/** Props to pass to the link wrapping the thumbnail. */
|
|
27
|
+
linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
|
|
28
|
+
/** Custom react component for the link (can be used to inject react router Link). */
|
|
29
|
+
linkAs?: 'a' | any;
|
|
26
30
|
/** On click callback. */
|
|
27
31
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
28
32
|
/** On key press callback. */
|
|
@@ -70,6 +74,8 @@ export const Avatar: Comp<AvatarProps, HTMLDivElement> = forwardRef((props, ref)
|
|
|
70
74
|
badge,
|
|
71
75
|
className,
|
|
72
76
|
image,
|
|
77
|
+
linkProps,
|
|
78
|
+
linkAs,
|
|
73
79
|
onClick,
|
|
74
80
|
onKeyPress,
|
|
75
81
|
size,
|
|
@@ -85,6 +91,8 @@ export const Avatar: Comp<AvatarProps, HTMLDivElement> = forwardRef((props, ref)
|
|
|
85
91
|
className={classNames(className, handleBasicClasses({ prefix: CLASSNAME, size, theme }))}
|
|
86
92
|
>
|
|
87
93
|
<Thumbnail
|
|
94
|
+
linkProps={linkProps}
|
|
95
|
+
linkAs={linkAs}
|
|
88
96
|
className={`${CLASSNAME}__thumbnail`}
|
|
89
97
|
onClick={onClick}
|
|
90
98
|
onKeyPress={onKeyPress}
|
|
@@ -93,6 +101,7 @@ export const Avatar: Comp<AvatarProps, HTMLDivElement> = forwardRef((props, ref)
|
|
|
93
101
|
size={size}
|
|
94
102
|
image={image}
|
|
95
103
|
alt={alt}
|
|
104
|
+
theme={theme}
|
|
96
105
|
/>
|
|
97
106
|
{actions && <div className={`${CLASSNAME}__actions`}>{actions}</div>}
|
|
98
107
|
{badge && <div className={`${CLASSNAME}__badge`}>{badge}</div>}
|