@instructure/ui-avatar 11.7.3-snapshot-33 → 11.7.3-snapshot-38
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 +6 -1
- package/es/Avatar/v1/index.js +2 -2
- package/es/Avatar/v2/index.js +2 -2
- package/lib/Avatar/v1/index.js +1 -1
- package/lib/Avatar/v2/index.js +1 -1
- package/package.json +10 -10
- package/src/Avatar/v1/index.tsx +2 -2
- package/src/Avatar/v2/index.tsx +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Avatar/v1/index.d.ts +3 -1
- package/types/Avatar/v1/index.d.ts.map +1 -1
- package/types/Avatar/v2/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
## [11.7.3-snapshot-
|
|
6
|
+
## [11.7.3-snapshot-38](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-38) (2026-05-07)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
@@ -11,6 +11,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
* **many:** update dependencies, remove lots of Babel plugins, remove Webpack 4 support ([f916fca](https://github.com/instructure/instructure-ui/commit/f916fcafdddcb2d7de401f93e8ff92cfdfa47bba))
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **many:** add a way for consumers to pass their own component theme definition so they can build their own components with InstUI ([ce01c3e](https://github.com/instructure/instructure-ui/commit/ce01c3eedc46aa2588f4c8309a6eabf4461aaec7))
|
|
17
|
+
|
|
18
|
+
|
|
14
19
|
|
|
15
20
|
|
|
16
21
|
|
package/es/Avatar/v1/index.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import { useStyle as useStyleNew } from '@instructure/emotion';
|
|
26
26
|
import { useState, useEffect, forwardRef, useRef } from 'react';
|
|
27
27
|
import { View } from '@instructure/ui-view/v11_6';
|
|
28
28
|
import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils';
|
|
@@ -54,7 +54,7 @@ const Avatar = /*#__PURE__*/forwardRef(({
|
|
|
54
54
|
}, ref) => {
|
|
55
55
|
const imgRef = useRef(null);
|
|
56
56
|
const [loaded, setLoaded] = useState(false);
|
|
57
|
-
const styles =
|
|
57
|
+
const styles = useStyleNew({
|
|
58
58
|
generateStyle,
|
|
59
59
|
generateComponentTheme,
|
|
60
60
|
params: {
|
package/es/Avatar/v2/index.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import { useStyleNew } from '@instructure/emotion';
|
|
26
26
|
import { useState, useEffect, forwardRef } from 'react';
|
|
27
27
|
import { passthroughProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { renderIconWithProps } from '@instructure/ui-icons';
|
|
@@ -61,7 +61,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
61
61
|
margin
|
|
62
62
|
} = props;
|
|
63
63
|
const [loaded, setLoaded] = useState(false);
|
|
64
|
-
const styles =
|
|
64
|
+
const styles = useStyleNew({
|
|
65
65
|
generateStyle,
|
|
66
66
|
themeOverride,
|
|
67
67
|
params: {
|
package/lib/Avatar/v1/index.js
CHANGED
|
@@ -61,7 +61,7 @@ category: components
|
|
|
61
61
|
}, ref) => {
|
|
62
62
|
const imgRef = (0, _react.useRef)(null);
|
|
63
63
|
const [loaded, setLoaded] = (0, _react.useState)(false);
|
|
64
|
-
const styles = (0, _emotion.
|
|
64
|
+
const styles = (0, _emotion.useStyle)({
|
|
65
65
|
generateStyle: _styles.default,
|
|
66
66
|
generateComponentTheme: _theme.default,
|
|
67
67
|
params: {
|
package/lib/Avatar/v2/index.js
CHANGED
|
@@ -68,7 +68,7 @@ const Avatar = exports.Avatar = /*#__PURE__*/(0, _react.forwardRef)((props, ref)
|
|
|
68
68
|
margin
|
|
69
69
|
} = props;
|
|
70
70
|
const [loaded, setLoaded] = (0, _react.useState)(false);
|
|
71
|
-
const styles = (0, _emotion.
|
|
71
|
+
const styles = (0, _emotion.useStyleNew)({
|
|
72
72
|
generateStyle: _styles.default,
|
|
73
73
|
themeOverride,
|
|
74
74
|
params: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-avatar",
|
|
3
|
-
"version": "11.7.3-snapshot-
|
|
3
|
+
"version": "11.7.3-snapshot-38",
|
|
4
4
|
"description": "An image or letters that represents a user.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/emotion": "11.7.3-snapshot-
|
|
19
|
-
"@instructure/shared-types": "11.7.3-snapshot-
|
|
20
|
-
"@instructure/ui-icons": "11.7.3-snapshot-
|
|
21
|
-
"@instructure/ui-react-utils": "11.7.3-snapshot-
|
|
22
|
-
"@instructure/ui-themes": "11.7.3-snapshot-
|
|
23
|
-
"@instructure/ui-view": "11.7.3-snapshot-
|
|
18
|
+
"@instructure/emotion": "11.7.3-snapshot-38",
|
|
19
|
+
"@instructure/shared-types": "11.7.3-snapshot-38",
|
|
20
|
+
"@instructure/ui-icons": "11.7.3-snapshot-38",
|
|
21
|
+
"@instructure/ui-react-utils": "11.7.3-snapshot-38",
|
|
22
|
+
"@instructure/ui-themes": "11.7.3-snapshot-38",
|
|
23
|
+
"@instructure/ui-view": "11.7.3-snapshot-38"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@testing-library/jest-dom": "^6.6.3",
|
|
27
27
|
"@testing-library/react": "15.0.7",
|
|
28
28
|
"vitest": "^3.2.2",
|
|
29
|
-
"@instructure/ui-axe-check": "11.7.3-snapshot-
|
|
30
|
-
"@instructure/ui-babel-preset": "11.7.3-snapshot-
|
|
31
|
-
"@instructure/ui-color-utils": "11.7.3-snapshot-
|
|
29
|
+
"@instructure/ui-axe-check": "11.7.3-snapshot-38",
|
|
30
|
+
"@instructure/ui-babel-preset": "11.7.3-snapshot-38",
|
|
31
|
+
"@instructure/ui-color-utils": "11.7.3-snapshot-38"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=18 <=19"
|
package/src/Avatar/v1/index.tsx
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import { useStyle as useStyleNew } from '@instructure/emotion'
|
|
26
26
|
import {
|
|
27
27
|
useState,
|
|
28
28
|
SyntheticEvent,
|
|
@@ -69,7 +69,7 @@ const Avatar = forwardRef(
|
|
|
69
69
|
const imgRef = useRef<HTMLImageElement>(null)
|
|
70
70
|
const [loaded, setLoaded] = useState(false)
|
|
71
71
|
|
|
72
|
-
const styles =
|
|
72
|
+
const styles = useStyleNew({
|
|
73
73
|
generateStyle,
|
|
74
74
|
generateComponentTheme,
|
|
75
75
|
params: {
|
package/src/Avatar/v2/index.tsx
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import { useStyleNew } from '@instructure/emotion'
|
|
26
26
|
import { useState, useEffect, forwardRef, SyntheticEvent } from 'react'
|
|
27
27
|
|
|
28
28
|
import { passthroughProps } from '@instructure/ui-react-utils'
|
|
@@ -65,7 +65,7 @@ const Avatar = forwardRef<HTMLDivElement, AvatarProps>(
|
|
|
65
65
|
} = props
|
|
66
66
|
const [loaded, setLoaded] = useState(false)
|
|
67
67
|
|
|
68
|
-
const styles =
|
|
68
|
+
const styles = useStyleNew({
|
|
69
69
|
generateStyle,
|
|
70
70
|
themeOverride,
|
|
71
71
|
params: {
|