@douyinfe/semi-ui 2.25.1 → 2.25.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/dist/css/semi.css +18 -11
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +8 -9
- 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/lib/cjs/tag/index.js +2 -2
- package/lib/cjs/tagInput/index.js +5 -6
- package/lib/es/tag/index.js +2 -2
- package/lib/es/tagInput/index.js +5 -6
- package/package.json +8 -8
package/lib/cjs/tag/index.js
CHANGED
|
@@ -208,9 +208,9 @@ class Tag extends _react.Component {
|
|
|
208
208
|
})) : null;
|
|
209
209
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
210
210
|
"aria-label": this.props['aria-label'] || (0, _isString2.default)(children) ? "".concat(closable ? 'Closable ' : '', "Tag: ").concat(children) : ''
|
|
211
|
-
}, wrapProps), /*#__PURE__*/_react.default.createElement("div", {
|
|
211
|
+
}, wrapProps), avatarSrc ? this.renderAvatar() : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
212
212
|
className: "".concat(prefixCls, "-content")
|
|
213
|
-
},
|
|
213
|
+
}, children), closeIcon);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
}
|
|
@@ -47,16 +47,14 @@ var _reactSortableHoc = require("react-sortable-hoc");
|
|
|
47
47
|
|
|
48
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
49
49
|
|
|
50
|
+
const prefixCls = _constants.cssClasses.PREFIX;
|
|
50
51
|
const SortableItem = (0, _reactSortableHoc.SortableElement)(props => props.item);
|
|
51
52
|
const SortableList = (0, _reactSortableHoc.SortableContainer)(_ref => {
|
|
52
53
|
let {
|
|
53
54
|
items
|
|
54
55
|
} = _ref;
|
|
55
56
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
|
|
57
|
-
display: 'flex',
|
|
58
|
-
flexFlow: 'row wrap'
|
|
59
|
-
}
|
|
57
|
+
className: "".concat(prefixCls, "-sortable-list")
|
|
60
58
|
}, items.map((item, index) =>
|
|
61
59
|
/*#__PURE__*/
|
|
62
60
|
// @ts-ignore skip SortableItem type check
|
|
@@ -66,7 +64,6 @@ const SortableList = (0, _reactSortableHoc.SortableContainer)(_ref => {
|
|
|
66
64
|
item: item.item
|
|
67
65
|
})));
|
|
68
66
|
});
|
|
69
|
-
const prefixCls = _constants.cssClasses.PREFIX;
|
|
70
67
|
|
|
71
68
|
class TagInput extends _baseComponent.default {
|
|
72
69
|
constructor(props) {
|
|
@@ -172,13 +169,15 @@ class TagInput extends _baseComponent.default {
|
|
|
172
169
|
key: elementKey,
|
|
173
170
|
visible: true,
|
|
174
171
|
"aria-label": "".concat(!disabled ? 'Closable ' : '', "Tag: ").concat(value)
|
|
172
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
173
|
+
className: "".concat(prefixCls, "-tag-content-wrapper")
|
|
175
174
|
}, showIconHandler && /*#__PURE__*/_react.default.createElement(DragHandle, null), /*#__PURE__*/_react.default.createElement(_paragraph.default, {
|
|
176
175
|
className: typoCls,
|
|
177
176
|
ellipsis: {
|
|
178
177
|
showTooltip: showContentTooltip,
|
|
179
178
|
rows: 1
|
|
180
179
|
}
|
|
181
|
-
}, value));
|
|
180
|
+
}, value)));
|
|
182
181
|
}
|
|
183
182
|
});
|
|
184
183
|
};
|
package/lib/es/tag/index.js
CHANGED
|
@@ -170,9 +170,9 @@ export default class Tag extends Component {
|
|
|
170
170
|
})) : null;
|
|
171
171
|
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
172
172
|
"aria-label": this.props['aria-label'] || _isString(children) ? "".concat(closable ? 'Closable ' : '', "Tag: ").concat(children) : ''
|
|
173
|
-
}, wrapProps), /*#__PURE__*/React.createElement("div", {
|
|
173
|
+
}, wrapProps), avatarSrc ? this.renderAvatar() : null, /*#__PURE__*/React.createElement("div", {
|
|
174
174
|
className: "".concat(prefixCls, "-content")
|
|
175
|
-
},
|
|
175
|
+
}, children), closeIcon);
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
}
|
package/lib/es/tagInput/index.js
CHANGED
|
@@ -18,16 +18,14 @@ import Popover from '../popover';
|
|
|
18
18
|
import Paragraph from '../typography/paragraph';
|
|
19
19
|
import { IconClear, IconHandle } from '@douyinfe/semi-icons';
|
|
20
20
|
import { SortableContainer, SortableElement, SortableHandle } from 'react-sortable-hoc';
|
|
21
|
+
const prefixCls = cssClasses.PREFIX;
|
|
21
22
|
const SortableItem = SortableElement(props => props.item);
|
|
22
23
|
const SortableList = SortableContainer(_ref => {
|
|
23
24
|
let {
|
|
24
25
|
items
|
|
25
26
|
} = _ref;
|
|
26
27
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
|
|
28
|
-
display: 'flex',
|
|
29
|
-
flexFlow: 'row wrap'
|
|
30
|
-
}
|
|
28
|
+
className: "".concat(prefixCls, "-sortable-list")
|
|
31
29
|
}, items.map((item, index) =>
|
|
32
30
|
/*#__PURE__*/
|
|
33
31
|
// @ts-ignore skip SortableItem type check
|
|
@@ -37,7 +35,6 @@ const SortableList = SortableContainer(_ref => {
|
|
|
37
35
|
item: item.item
|
|
38
36
|
})));
|
|
39
37
|
});
|
|
40
|
-
const prefixCls = cssClasses.PREFIX;
|
|
41
38
|
|
|
42
39
|
class TagInput extends BaseComponent {
|
|
43
40
|
constructor(props) {
|
|
@@ -143,13 +140,15 @@ class TagInput extends BaseComponent {
|
|
|
143
140
|
key: elementKey,
|
|
144
141
|
visible: true,
|
|
145
142
|
"aria-label": "".concat(!disabled ? 'Closable ' : '', "Tag: ").concat(value)
|
|
143
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
144
|
+
className: "".concat(prefixCls, "-tag-content-wrapper")
|
|
146
145
|
}, showIconHandler && /*#__PURE__*/React.createElement(DragHandle, null), /*#__PURE__*/React.createElement(Paragraph, {
|
|
147
146
|
className: typoCls,
|
|
148
147
|
ellipsis: {
|
|
149
148
|
showTooltip: showContentTooltip,
|
|
150
149
|
rows: 1
|
|
151
150
|
}
|
|
152
|
-
}, value));
|
|
151
|
+
}, value)));
|
|
153
152
|
}
|
|
154
153
|
});
|
|
155
154
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.25.
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.25.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.25.
|
|
23
|
-
"@douyinfe/semi-icons": "2.25.
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.25.
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.25.
|
|
20
|
+
"@douyinfe/semi-animation": "2.25.2",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.25.2",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.25.2",
|
|
23
|
+
"@douyinfe/semi-icons": "2.25.2",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.25.2",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.25.2",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "d1cdea565d328c70a4de8636aed30c88f60732dd",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|