@availity/mui-avatar 0.3.6 → 1.0.0-alpha.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.
- package/CHANGELOG.md +24 -0
- package/dist/index.js +3 -3
- package/package.json +15 -7
- package/src/lib/Avatar.stories.tsx +19 -19
- /package/{introduction.stories.mdx → introduction.mdx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.0-alpha.0](https://github.com/Availity/element/compare/@availity/mui-avatar@0.4.0...@availity/mui-avatar@1.0.0-alpha.0) (2025-02-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* upgraded to @mui/material v6
|
|
11
|
+
* **element:** upgraded to @mui/material v6
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **element:** upgrade to @mui/material v6 ([cb958bb](https://github.com/Availity/element/commit/cb958bba99a4f1ee6dab323f0ff54b69e6fd3493))
|
|
16
|
+
* upgrade @mui/material ([571453a](https://github.com/Availity/element/commit/571453a34b21c344594ab4c03bc497d19aba942b))
|
|
17
|
+
* upgrade to MUI v6 ([7febd6f](https://github.com/Availity/element/commit/7febd6fd4fd58e87e1c97a832cea3b4595a35d58))
|
|
18
|
+
|
|
19
|
+
## [0.4.0](https://github.com/Availity/element/compare/@availity/mui-avatar@0.3.6...@availity/mui-avatar@0.4.0) (2025-02-04)
|
|
20
|
+
|
|
21
|
+
### Dependency Updates
|
|
22
|
+
|
|
23
|
+
* `mui-icon` updated to version `0.3.6`
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* configure package.json to allow esm to be used ([5a5393d](https://github.com/Availity/element/commit/5a5393de761f52608e714dd94a05106937dd95db))
|
|
28
|
+
|
|
5
29
|
## [0.3.6](https://github.com/Availity/element/compare/@availity/mui-avatar@0.3.5...@availity/mui-avatar@0.3.6) (2025-01-27)
|
|
6
30
|
|
|
7
31
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -77,11 +77,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
// src/index.ts
|
|
80
|
-
var
|
|
81
|
-
__export(
|
|
80
|
+
var index_exports = {};
|
|
81
|
+
__export(index_exports, {
|
|
82
82
|
Avatar: () => Avatar
|
|
83
83
|
});
|
|
84
|
-
module.exports = __toCommonJS(
|
|
84
|
+
module.exports = __toCommonJS(index_exports);
|
|
85
85
|
|
|
86
86
|
// src/lib/Avatar.tsx
|
|
87
87
|
var import_Avatar = __toESM(require("@mui/material/Avatar"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-avatar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"description": "Availity MUI Avatar Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
"main": "./dist/index.js",
|
|
24
24
|
"module": "./dist/index.mjs",
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.mjs",
|
|
31
|
+
"require": "./dist/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
26
34
|
"scripts": {
|
|
27
35
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
28
36
|
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
|
|
@@ -32,22 +40,22 @@
|
|
|
32
40
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
33
41
|
},
|
|
34
42
|
"devDependencies": {
|
|
35
|
-
"@availity/mui-icon": "^0.
|
|
36
|
-
"@mui/material": "^
|
|
43
|
+
"@availity/mui-icon": "^1.0.0-alpha.0",
|
|
44
|
+
"@mui/material": "^6.4.5",
|
|
37
45
|
"react": "18.2.0",
|
|
38
46
|
"react-dom": "18.2.0",
|
|
39
|
-
"tsup": "^8.
|
|
47
|
+
"tsup": "^8.3.6",
|
|
40
48
|
"typescript": "^5.4.5"
|
|
41
49
|
},
|
|
42
50
|
"peerDependencies": {
|
|
43
|
-
"@availity/mui-icon": "^0.
|
|
44
|
-
"@mui/material": "^
|
|
51
|
+
"@availity/mui-icon": "^1.0.0-alpha.0",
|
|
52
|
+
"@mui/material": "^6.4.5",
|
|
45
53
|
"react": ">=16.3.0"
|
|
46
54
|
},
|
|
47
55
|
"publishConfig": {
|
|
48
56
|
"access": "public"
|
|
49
57
|
},
|
|
50
58
|
"dependencies": {
|
|
51
|
-
"@availity/api-axios": "^
|
|
59
|
+
"@availity/api-axios": "^10.0.0"
|
|
52
60
|
}
|
|
53
61
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
4
|
import { Avatar, AvatarProps } from './Avatar';
|
|
5
5
|
import { HomeIcon } from '@availity/mui-icon';
|
|
6
|
-
import Grid from '@mui/material/
|
|
6
|
+
import Grid from '@mui/material/Grid2';
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof Avatar> = {
|
|
9
9
|
title: 'Components/Avatar/Avatar',
|
|
@@ -49,25 +49,25 @@ export const _IconAvatar: StoryObj<typeof Avatar> = {
|
|
|
49
49
|
export const _Sizes: StoryObj<typeof Avatar> = {
|
|
50
50
|
render: (args: AvatarProps) => (
|
|
51
51
|
<Grid container spacing={1}>
|
|
52
|
-
<Grid
|
|
53
|
-
<Grid
|
|
54
|
-
<Avatar {...args} size="xs"/>
|
|
52
|
+
<Grid size={{ xs: 2 }}>XSmall</Grid>
|
|
53
|
+
<Grid size={{ xs: 10 }}>
|
|
54
|
+
<Avatar {...args} size="xs" />
|
|
55
55
|
</Grid>
|
|
56
|
-
<Grid
|
|
57
|
-
<Grid
|
|
58
|
-
<Avatar {...args} size="s"/>
|
|
56
|
+
<Grid size={{ xs: 2 }}>Small</Grid>
|
|
57
|
+
<Grid size={{ xs: 10 }}>
|
|
58
|
+
<Avatar {...args} size="s" />
|
|
59
59
|
</Grid>
|
|
60
|
-
<Grid
|
|
61
|
-
<Grid
|
|
62
|
-
<Avatar {...args} size="m"/>
|
|
60
|
+
<Grid size={{ xs: 2 }}>Medium</Grid>
|
|
61
|
+
<Grid size={{ xs: 10 }}>
|
|
62
|
+
<Avatar {...args} size="m" />
|
|
63
63
|
</Grid>
|
|
64
|
-
<Grid
|
|
65
|
-
<Grid
|
|
66
|
-
<Avatar {...args} size="l"/>
|
|
64
|
+
<Grid size={{ xs: 2 }}>Large</Grid>
|
|
65
|
+
<Grid size={{ xs: 10 }}>
|
|
66
|
+
<Avatar {...args} size="l" />
|
|
67
67
|
</Grid>
|
|
68
|
-
<Grid
|
|
69
|
-
<Grid
|
|
70
|
-
<Avatar {...args} size="xl"/>
|
|
68
|
+
<Grid size={{ xs: 2 }}>XLarge</Grid>
|
|
69
|
+
<Grid size={{ xs: 10 }}>
|
|
70
|
+
<Avatar {...args} size="xl" />
|
|
71
71
|
</Grid>
|
|
72
72
|
</Grid>
|
|
73
73
|
),
|
|
@@ -76,7 +76,7 @@ export const _Sizes: StoryObj<typeof Avatar> = {
|
|
|
76
76
|
},
|
|
77
77
|
parameters: {
|
|
78
78
|
controls: {
|
|
79
|
-
include: 'children'
|
|
80
|
-
}
|
|
81
|
-
}
|
|
79
|
+
include: 'children',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
82
|
};
|
|
File without changes
|