@instructure/ui-avatar 10.15.2-snapshot-0 → 10.15.2-snapshot-2
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 +5 -2
- package/es/Avatar/props.js +1 -2
- package/lib/Avatar/props.js +1 -2
- package/package.json +13 -13
- package/src/Avatar/props.ts +1 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Avatar/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
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
|
-
## [10.15.2-snapshot-
|
|
6
|
+
## [10.15.2-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.15.1...v10.15.2-snapshot-2) (2025-04-04)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update PropTypes to align with the new spacing tokens ([223d55b](https://github.com/instructure/instructure-ui/commit/223d55bad95e2a3a8b298d622e5b1d0fbab6b289))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Avatar/props.js
CHANGED
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import PropTypes from 'prop-types';
|
|
26
|
-
import { ThemeablePropTypes } from '@instructure/emotion';
|
|
27
26
|
const propTypes = {
|
|
28
27
|
name: PropTypes.string.isRequired,
|
|
29
28
|
src: PropTypes.string,
|
|
@@ -33,7 +32,7 @@ const propTypes = {
|
|
|
33
32
|
hasInverseColor: PropTypes.bool,
|
|
34
33
|
showBorder: PropTypes.oneOf(['auto', 'always', 'never']),
|
|
35
34
|
shape: PropTypes.oneOf(['circle', 'rectangle']),
|
|
36
|
-
margin:
|
|
35
|
+
margin: PropTypes.string,
|
|
37
36
|
display: PropTypes.oneOf(['inline-block', 'block']),
|
|
38
37
|
onImageLoaded: PropTypes.func,
|
|
39
38
|
as: PropTypes.elementType,
|
package/lib/Avatar/props.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _emotion = require("@instructure/emotion");
|
|
10
9
|
/*
|
|
11
10
|
* The MIT License (MIT)
|
|
12
11
|
*
|
|
@@ -40,7 +39,7 @@ const propTypes = exports.propTypes = {
|
|
|
40
39
|
hasInverseColor: _propTypes.default.bool,
|
|
41
40
|
showBorder: _propTypes.default.oneOf(['auto', 'always', 'never']),
|
|
42
41
|
shape: _propTypes.default.oneOf(['circle', 'rectangle']),
|
|
43
|
-
margin:
|
|
42
|
+
margin: _propTypes.default.string,
|
|
44
43
|
display: _propTypes.default.oneOf(['inline-block', 'block']),
|
|
45
44
|
onImageLoaded: _propTypes.default.func,
|
|
46
45
|
as: _propTypes.default.elementType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-avatar",
|
|
3
|
-
"version": "10.15.2-snapshot-
|
|
3
|
+
"version": "10.15.2-snapshot-2",
|
|
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",
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.26.0",
|
|
27
|
-
"@instructure/emotion": "10.15.2-snapshot-
|
|
28
|
-
"@instructure/shared-types": "10.15.2-snapshot-
|
|
29
|
-
"@instructure/ui-icons": "10.15.2-snapshot-
|
|
30
|
-
"@instructure/ui-react-utils": "10.15.2-snapshot-
|
|
31
|
-
"@instructure/ui-testable": "10.15.2-snapshot-
|
|
32
|
-
"@instructure/ui-view": "10.15.2-snapshot-
|
|
27
|
+
"@instructure/emotion": "10.15.2-snapshot-2",
|
|
28
|
+
"@instructure/shared-types": "10.15.2-snapshot-2",
|
|
29
|
+
"@instructure/ui-icons": "10.15.2-snapshot-2",
|
|
30
|
+
"@instructure/ui-react-utils": "10.15.2-snapshot-2",
|
|
31
|
+
"@instructure/ui-testable": "10.15.2-snapshot-2",
|
|
32
|
+
"@instructure/ui-view": "10.15.2-snapshot-2",
|
|
33
33
|
"prop-types": "^15.8.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@instructure/ui-axe-check": "10.15.2-snapshot-
|
|
37
|
-
"@instructure/ui-babel-preset": "10.15.2-snapshot-
|
|
38
|
-
"@instructure/ui-color-utils": "10.15.2-snapshot-
|
|
39
|
-
"@instructure/ui-test-locator": "10.15.2-snapshot-
|
|
40
|
-
"@instructure/ui-test-utils": "10.15.2-snapshot-
|
|
41
|
-
"@instructure/ui-themes": "10.15.2-snapshot-
|
|
36
|
+
"@instructure/ui-axe-check": "10.15.2-snapshot-2",
|
|
37
|
+
"@instructure/ui-babel-preset": "10.15.2-snapshot-2",
|
|
38
|
+
"@instructure/ui-color-utils": "10.15.2-snapshot-2",
|
|
39
|
+
"@instructure/ui-test-locator": "10.15.2-snapshot-2",
|
|
40
|
+
"@instructure/ui-test-utils": "10.15.2-snapshot-2",
|
|
41
|
+
"@instructure/ui-themes": "10.15.2-snapshot-2",
|
|
42
42
|
"@testing-library/jest-dom": "^6.6.3",
|
|
43
43
|
"@testing-library/react": "^16.0.1",
|
|
44
44
|
"vitest": "^2.1.8"
|
package/src/Avatar/props.ts
CHANGED
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
import { SyntheticEvent } from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
|
27
27
|
|
|
28
|
-
import { ThemeablePropTypes } from '@instructure/emotion'
|
|
29
|
-
|
|
30
28
|
import type {
|
|
31
29
|
Spacing,
|
|
32
30
|
WithStyleProps,
|
|
@@ -146,7 +144,7 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
146
144
|
hasInverseColor: PropTypes.bool,
|
|
147
145
|
showBorder: PropTypes.oneOf(['auto', 'always', 'never']),
|
|
148
146
|
shape: PropTypes.oneOf(['circle', 'rectangle']),
|
|
149
|
-
margin:
|
|
147
|
+
margin: PropTypes.string,
|
|
150
148
|
display: PropTypes.oneOf(['inline-block', 'block']),
|
|
151
149
|
onImageLoaded: PropTypes.func,
|
|
152
150
|
as: PropTypes.elementType,
|