@douyinfe/semi-icons 2.25.3 → 2.25.4
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/umd/semi-icons.js +10 -10
- package/dist/umd/semi-icons.js.map +1 -1
- package/dist/umd/semi-icons.min.js +1 -1
- package/dist/umd/semi-icons.min.js.map +1 -1
- package/lib/cjs/components/Icon.js +9 -9
- package/lib/es/components/Icon.js +9 -9
- package/package.json +2 -2
- package/src/.DS_Store +0 -0
package/dist/umd/semi-icons.js
CHANGED
|
@@ -564,7 +564,7 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
|
|
|
564
564
|
|
|
565
565
|
// CONCATENATED MODULE: ./lib/es/env.js
|
|
566
566
|
const BASE_CLASS_PREFIX = 'semi';
|
|
567
|
-
// EXTERNAL MODULE: /Users/
|
|
567
|
+
// EXTERNAL MODULE: /Users/bytedance/code/semi-design/node_modules/classnames/index.js
|
|
568
568
|
var classnames = __webpack_require__("O94r");
|
|
569
569
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
570
570
|
|
|
@@ -600,19 +600,19 @@ const Icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
600
600
|
} = props,
|
|
601
601
|
restProps = __rest(props, ["svg", "spin", "rotate", "style", "className", "prefixCls", "type", "size"]);
|
|
602
602
|
|
|
603
|
-
const classes = classnames_default()(
|
|
604
|
-
[
|
|
605
|
-
[
|
|
606
|
-
[
|
|
607
|
-
[
|
|
608
|
-
[
|
|
609
|
-
[
|
|
610
|
-
[
|
|
603
|
+
const classes = classnames_default()(`${prefixCls}-icon`, {
|
|
604
|
+
[`${prefixCls}-icon-extra-small`]: size === 'extra-small',
|
|
605
|
+
[`${prefixCls}-icon-small`]: size === 'small',
|
|
606
|
+
[`${prefixCls}-icon-default`]: size === 'default',
|
|
607
|
+
[`${prefixCls}-icon-large`]: size === 'large',
|
|
608
|
+
[`${prefixCls}-icon-extra-large`]: size === 'extra-large',
|
|
609
|
+
[`${prefixCls}-icon-spinning`]: spin === true,
|
|
610
|
+
[`${prefixCls}-icon-${type}`]: Boolean(type)
|
|
611
611
|
}, className);
|
|
612
612
|
const outerStyle = {};
|
|
613
613
|
|
|
614
614
|
if (Number.isSafeInteger(rotate)) {
|
|
615
|
-
outerStyle.transform =
|
|
615
|
+
outerStyle.transform = `rotate(${rotate}deg)`;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
Object.assign(outerStyle, style);
|