@douyinfe/semi-ui 2.9.0 → 2.9.1
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/badge/_story/badge.stories.js +34 -2
- package/dist/css/semi.css +1 -0
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +159 -260
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/form/hoc/withField.tsx +8 -5
- package/lib/cjs/form/hoc/withField.js +6 -4
- package/lib/cjs/scrollList/scrollItem.js +1 -1
- package/lib/cjs/toast/toast.d.ts +1 -1
- package/lib/cjs/tooltip/index.js +1 -1
- package/lib/es/form/hoc/withField.js +6 -4
- package/lib/es/scrollList/scrollItem.js +1 -1
- package/lib/es/toast/toast.d.ts +1 -1
- package/lib/es/tooltip/index.js +1 -1
- package/package.json +9 -9
- package/scrollList/scrollItem.tsx +1 -1
- package/timePicker/TimePicker.tsx +1 -1
- package/timePicker/_story/timepicker.stories.js +20 -1
- package/tooltip/index.tsx +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Badge from '
|
|
2
|
+
import { Avatar, Badge } from '../../index';
|
|
3
|
+
import { IconLock } from '@douyinfe/semi-icons';
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
title: 'Badge',
|
|
@@ -88,4 +89,35 @@ export const Theme = () => (
|
|
|
88
89
|
<a style={style}></a>
|
|
89
90
|
</Badge>
|
|
90
91
|
</div>
|
|
91
|
-
);
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export const AvatarBadge = () => {
|
|
95
|
+
const style = {
|
|
96
|
+
width: '42px',
|
|
97
|
+
height: '42px',
|
|
98
|
+
borderRadius: '4px',
|
|
99
|
+
};
|
|
100
|
+
return (
|
|
101
|
+
<div>
|
|
102
|
+
<Badge count={5}>
|
|
103
|
+
<Avatar color='blue' shape='square' style={style}>BM</Avatar>
|
|
104
|
+
</Badge>
|
|
105
|
+
<br/>
|
|
106
|
+
<br/>
|
|
107
|
+
<Badge dot>
|
|
108
|
+
<Avatar color='blue' shape='square' style={style}>YL</Avatar>
|
|
109
|
+
</Badge>
|
|
110
|
+
<br/>
|
|
111
|
+
<br/>
|
|
112
|
+
<Badge count={<IconLock style={{color:'var(--semi-color-primary)'}}/>}>
|
|
113
|
+
<Avatar color='light-blue' shape='square' style={style}>XZ</Avatar>
|
|
114
|
+
</Badge>
|
|
115
|
+
<br/>
|
|
116
|
+
<br/>
|
|
117
|
+
<Badge count='NEW' >
|
|
118
|
+
<Avatar color='light-blue' shape='square' style={style}>WF</Avatar>
|
|
119
|
+
</Badge>
|
|
120
|
+
</div>
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
AvatarBadge.storyName = '头像 badge';
|
package/dist/css/semi.css
CHANGED
|
@@ -14622,6 +14622,7 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
14622
14622
|
}
|
|
14623
14623
|
.semi-select-open:hover, .semi-select-focus:hover {
|
|
14624
14624
|
background-color: var(--semi-color-fill-0);
|
|
14625
|
+
border: 1px solid var(--semi-color-focus-border);
|
|
14625
14626
|
}
|
|
14626
14627
|
.semi-select-warning {
|
|
14627
14628
|
background-color: var(--semi-color-warning-light-default);
|