New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hi-ui/avatar

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hi-ui/avatar - npm Package Compare versions

Comparing version 4.0.0-beta.1 to 4.0.0-beta.2

25

lib/types/Avatar.d.ts
import React from 'react';
import { HiBaseHTMLProps } from '@hi-ui/core';
/**

@@ -6,24 +7,22 @@ * 头像组件

export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement | null>>;
export interface AvatarProps {
export interface AvatarProps extends HiBaseHTMLProps<'div'> {
/**
* 组件默认的选择器类
* 头像尺寸
*/
prefixCls?: string;
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
/**
* 组件的语义化 Role 属性
* 头像缩写字母
*/
role?: string;
initials?: string;
/**
* 组件的注入选择器类
* 设置形状
*/
className?: string;
shape?: 'circle' | 'square';
/**
* 组件的注入样式
* 头像 url
*/
style?: React.CSSProperties;
children?: React.ReactNode;
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
initials?: string;
shape?: 'circle' | 'square';
src?: string;
/**
* 头像名,用于语义化设置
*/
name?: string;

@@ -30,0 +29,0 @@ /**

{
"name": "@hi-ui/avatar",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"description": "A sub-package for @hi-ui/hiui.",

@@ -47,2 +47,3 @@ "keywords": [],

"@hi-ui/classname": "^4.0.0-beta.0",
"@hi-ui/core": "^4.0.0-beta.0",
"@hi-ui/core-css": "^4.0.0-beta.0",

@@ -61,3 +62,3 @@ "@hi-ui/env": "^4.0.0-beta.0",

},
"gitHead": "2c7c7d85ab4894563394fc892b02008a16ba72a6"
"gitHead": "c1dbc0c574e70ef14c6dec6494bafaf2c4f1b865"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc