@ant-design/icons 5.2.1 → 5.2.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/index.umd.js +12037 -2524
- package/dist/index.umd.min.js +1 -1
- package/es/utils.js +5 -3
- package/lib/utils.js +5 -3
- package/package.json +5 -5
package/es/utils.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { generate as generateColor } from "@ant-design/colors";
|
|
2
|
-
import
|
|
3
|
-
import warn from "rc-util/lib/warning";
|
|
2
|
+
import { camelCase } from "lodash";
|
|
4
3
|
import { updateCSS } from "rc-util/lib/Dom/dynamicCSS";
|
|
5
4
|
import { getShadowRoot } from "rc-util/lib/Dom/shadow";
|
|
5
|
+
import warn from "rc-util/lib/warning";
|
|
6
|
+
import React, { useContext, useEffect } from "react";
|
|
6
7
|
import IconContext from "./components/Context";
|
|
7
8
|
export function warning(valid, message) {
|
|
8
9
|
warn(valid, `[@ant-design/icons] ${message}`);
|
|
@@ -19,7 +20,8 @@ export function normalizeAttrs(attrs = {}) {
|
|
|
19
20
|
delete acc.class;
|
|
20
21
|
break;
|
|
21
22
|
default:
|
|
22
|
-
acc[key]
|
|
23
|
+
delete acc[key];
|
|
24
|
+
acc[camelCase(key)] = val;
|
|
23
25
|
}
|
|
24
26
|
return acc;
|
|
25
27
|
}, {});
|
package/lib/utils.js
CHANGED
|
@@ -38,10 +38,11 @@ _export(exports, {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
const _colors = require("@ant-design/colors");
|
|
41
|
-
const
|
|
42
|
-
const _warning = /*#__PURE__*/ _interop_require_default(require("rc-util/lib/warning"));
|
|
41
|
+
const _lodash = require("lodash");
|
|
43
42
|
const _dynamicCSS = require("rc-util/lib/Dom/dynamicCSS");
|
|
44
43
|
const _shadow = require("rc-util/lib/Dom/shadow");
|
|
44
|
+
const _warning = /*#__PURE__*/ _interop_require_default(require("rc-util/lib/warning"));
|
|
45
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
45
46
|
const _Context = /*#__PURE__*/ _interop_require_default(require("./components/Context"));
|
|
46
47
|
function _interop_require_default(obj) {
|
|
47
48
|
return obj && obj.__esModule ? obj : {
|
|
@@ -102,7 +103,8 @@ function normalizeAttrs(attrs = {}) {
|
|
|
102
103
|
delete acc.class;
|
|
103
104
|
break;
|
|
104
105
|
default:
|
|
105
|
-
acc[key]
|
|
106
|
+
delete acc[key];
|
|
107
|
+
acc[(0, _lodash.camelCase)(key)] = val;
|
|
106
108
|
}
|
|
107
109
|
return acc;
|
|
108
110
|
}, {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/icons",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"repository": "https://github.com/ant-design/ant-design-icons/tree/master/packages/icons-react",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@rc-component/father-plugin": "^1.0.2",
|
|
39
|
+
"@swc/core": "^1.3.53",
|
|
39
40
|
"@testing-library/react": "^12",
|
|
40
41
|
"@types/classnames": "^2.2.9",
|
|
41
42
|
"@types/enzyme": "^3.10.3",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"father": "^4.0.0",
|
|
61
62
|
"glob": "^7.1.6",
|
|
62
63
|
"history": "^4.9.0",
|
|
63
|
-
"lodash": "^4.17.
|
|
64
|
+
"lodash": "^4.17.21",
|
|
64
65
|
"mobx": "^5.1.0",
|
|
65
66
|
"mobx-react": "^6.1.3",
|
|
66
67
|
"prettier": "^2.2.1",
|
|
@@ -70,8 +71,7 @@
|
|
|
70
71
|
"rimraf": "^3.0.0",
|
|
71
72
|
"styled-components": "^3.3.3",
|
|
72
73
|
"ts-node": "^8.0.0",
|
|
73
|
-
"typescript": "^4.0.2"
|
|
74
|
-
"@swc/core": "^1.3.53"
|
|
74
|
+
"typescript": "^4.0.2"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": ">=16.0.0",
|
|
@@ -85,4 +85,4 @@
|
|
|
85
85
|
"registry": "https://registry.npmjs.org"
|
|
86
86
|
},
|
|
87
87
|
"gitHead": "225d4d2189720ee3b7e4a4d7a6d80e076fa15cbc"
|
|
88
|
-
}
|
|
88
|
+
}
|