@sensoro-design/icons 2.44.0 → 2.44.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/CHANGELOG.md +11 -0
- package/es/utils.js +2 -2
- package/lib/utils.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.44.1](https://github.com/sensoro-design/sensoro-design-icons/compare/@sensoro-design/icons@2.44.0...@sensoro-design/icons@2.44.1) (2024-04-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* 修复图片 icon 展示异常问题 ([c883e8d](https://github.com/sensoro-design/sensoro-design-icons/commit/c883e8da96590a28ab83183e9c541c9dda38c933))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.44.0](https://github.com/sensoro-design/sensoro-design-icons/compare/@sensoro-design/icons@2.43.0...@sensoro-design/icons@2.44.0) (2024-04-26)
|
|
7
18
|
|
|
8
19
|
|
package/es/utils.js
CHANGED
|
@@ -3,8 +3,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { generate as generateColor } from '@ant-design/colors';
|
|
5
5
|
function camelCase(input) {
|
|
6
|
-
return input.replace(
|
|
7
|
-
return
|
|
6
|
+
return input.replace(/(-|:)\w/g, function (v) {
|
|
7
|
+
return v.substring(1).toUpperCase();
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
export function normalizeAttrs() {
|
package/lib/utils.js
CHANGED
|
@@ -40,7 +40,9 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
40
40
|
var import_react = __toESM(require("react"));
|
|
41
41
|
var import_colors = require("@ant-design/colors");
|
|
42
42
|
function camelCase(input) {
|
|
43
|
-
return input.replace(
|
|
43
|
+
return input.replace(/(-|:)\w/g, function(v) {
|
|
44
|
+
return v.substring(1).toUpperCase();
|
|
45
|
+
});
|
|
44
46
|
}
|
|
45
47
|
function normalizeAttrs(attrs = {}) {
|
|
46
48
|
return Object.keys(attrs).reduce((acc, key) => {
|