@react-types/avatar 3.0.21 → 3.1.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/package.json +6 -4
- package/src/index.d.ts +1 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/avatar",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,13 +9,15 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-
|
|
12
|
+
"@react-spectrum/avatar": "^3.1.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react": "^
|
|
15
|
+
"@react-spectrum/provider": "^3.0.0",
|
|
16
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
17
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
16
18
|
},
|
|
17
19
|
"publishConfig": {
|
|
18
20
|
"access": "public"
|
|
19
21
|
},
|
|
20
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
21
23
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -10,43 +10,4 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export interface AvatarProps {
|
|
16
|
-
/**
|
|
17
|
-
* Text description of the avatar.
|
|
18
|
-
*
|
|
19
|
-
* @default null
|
|
20
|
-
*/
|
|
21
|
-
alt?: string,
|
|
22
|
-
/**
|
|
23
|
-
* The image URL for the avatar.
|
|
24
|
-
*/
|
|
25
|
-
src: string
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface SpectrumAvatarProps extends AvatarProps, DOMProps, Omit<StyleProps, 'width' | 'height'> {
|
|
29
|
-
/**
|
|
30
|
-
* Whether the avatar is disabled.
|
|
31
|
-
*/
|
|
32
|
-
isDisabled?: boolean,
|
|
33
|
-
/**
|
|
34
|
-
* Size of the avatar. Affects both height and width.
|
|
35
|
-
*
|
|
36
|
-
* @default avatar-size-100
|
|
37
|
-
*/
|
|
38
|
-
size?:
|
|
39
|
-
| 'avatar-size-50'
|
|
40
|
-
| 'avatar-size-75'
|
|
41
|
-
| 'avatar-size-100'
|
|
42
|
-
| 'avatar-size-200'
|
|
43
|
-
| 'avatar-size-300'
|
|
44
|
-
| 'avatar-size-400'
|
|
45
|
-
| 'avatar-size-500'
|
|
46
|
-
| 'avatar-size-600'
|
|
47
|
-
| 'avatar-size-700'
|
|
48
|
-
// This allows autocomplete to work properly and not collapse the above options into just `string`.
|
|
49
|
-
// See https://github.com/microsoft/TypeScript/issues/29729.
|
|
50
|
-
| (string & {})
|
|
51
|
-
| number
|
|
52
|
-
}
|
|
13
|
+
export {AvatarProps, SpectrumAvatarProps} from '@react-spectrum/avatar';
|