@carbon/icon-helpers 10.74.0-rc.0 → 10.75.0-rc.0
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/es/index.js +1 -5
- package/lib/index.js +2 -7
- package/package.json +3 -3
- package/umd/index.js +20 -27
package/es/index.js
CHANGED
|
@@ -31,7 +31,6 @@ function getAttributes({ width, height, viewBox = `0 0 ${width} ${height}`, ...a
|
|
|
31
31
|
} else iconAttributes["aria-hidden"] = true;
|
|
32
32
|
return iconAttributes;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
34
|
//#endregion
|
|
36
35
|
//#region src/toString.ts
|
|
37
36
|
/**
|
|
@@ -56,7 +55,6 @@ function formatAttributes(attrs) {
|
|
|
56
55
|
return acc + " " + attribute;
|
|
57
56
|
}, "");
|
|
58
57
|
}
|
|
59
|
-
|
|
60
58
|
//#endregion
|
|
61
59
|
//#region src/toSVG.ts
|
|
62
60
|
/**
|
|
@@ -78,7 +76,6 @@ function toSVG(descriptor) {
|
|
|
78
76
|
for (let i = 0; i < content.length; i++) node.appendChild(toSVG(content[i]));
|
|
79
77
|
return node;
|
|
80
78
|
}
|
|
81
|
-
|
|
82
79
|
//#endregion
|
|
83
80
|
//#region src/index.ts
|
|
84
81
|
/**
|
|
@@ -87,6 +84,5 @@ function toSVG(descriptor) {
|
|
|
87
84
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
88
85
|
* LICENSE file in the root directory of this source tree.
|
|
89
86
|
*/
|
|
90
|
-
|
|
91
87
|
//#endregion
|
|
92
|
-
export { defaultAttributes, formatAttributes, getAttributes, toSVG, toString };
|
|
88
|
+
export { defaultAttributes, formatAttributes, getAttributes, toSVG, toString };
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
//#region src/getAttributes.ts
|
|
4
3
|
/**
|
|
5
4
|
* Copyright IBM Corp. 2018, 2026
|
|
@@ -33,7 +32,6 @@ function getAttributes({ width, height, viewBox = `0 0 ${width} ${height}`, ...a
|
|
|
33
32
|
} else iconAttributes["aria-hidden"] = true;
|
|
34
33
|
return iconAttributes;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
//#endregion
|
|
38
36
|
//#region src/toString.ts
|
|
39
37
|
/**
|
|
@@ -58,7 +56,6 @@ function formatAttributes(attrs) {
|
|
|
58
56
|
return acc + " " + attribute;
|
|
59
57
|
}, "");
|
|
60
58
|
}
|
|
61
|
-
|
|
62
59
|
//#endregion
|
|
63
60
|
//#region src/toSVG.ts
|
|
64
61
|
/**
|
|
@@ -80,7 +77,6 @@ function toSVG(descriptor) {
|
|
|
80
77
|
for (let i = 0; i < content.length; i++) node.appendChild(toSVG(content[i]));
|
|
81
78
|
return node;
|
|
82
79
|
}
|
|
83
|
-
|
|
84
80
|
//#endregion
|
|
85
81
|
//#region src/index.ts
|
|
86
82
|
/**
|
|
@@ -89,10 +85,9 @@ function toSVG(descriptor) {
|
|
|
89
85
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
90
86
|
* LICENSE file in the root directory of this source tree.
|
|
91
87
|
*/
|
|
92
|
-
|
|
93
88
|
//#endregion
|
|
94
89
|
exports.defaultAttributes = defaultAttributes;
|
|
95
90
|
exports.formatAttributes = formatAttributes;
|
|
96
91
|
exports.getAttributes = getAttributes;
|
|
97
92
|
exports.toSVG = toSVG;
|
|
98
|
-
exports.toString = toString;
|
|
93
|
+
exports.toString = toString;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/icon-helpers",
|
|
3
3
|
"description": "Helpers used alongside icons for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.75.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@carbon/cli": "^11.
|
|
40
|
+
"@carbon/cli": "^11.43.0-rc.0",
|
|
41
41
|
"rimraf": "^6.0.1",
|
|
42
42
|
"typescript-config-carbon": "^0.9.0"
|
|
43
43
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@ibm/telemetry-js": "^1.5.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "20a00767571db791cac99d499527e2f995ead478"
|
|
49
49
|
}
|
package/umd/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
(function(global, factory) {
|
|
2
|
-
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.CarbonIconHelpers = {})));
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.CarbonIconHelpers = {}));
|
|
5
3
|
})(this, function(exports) {
|
|
6
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
5
|
+
//#region src/getAttributes.ts
|
|
6
|
+
/**
|
|
10
7
|
* Copyright IBM Corp. 2018, 2026
|
|
11
8
|
*
|
|
12
9
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
@@ -38,10 +35,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
38
35
|
} else iconAttributes["aria-hidden"] = true;
|
|
39
36
|
return iconAttributes;
|
|
40
37
|
}
|
|
41
|
-
|
|
42
|
-
//#
|
|
43
|
-
|
|
44
|
-
/**
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/toString.ts
|
|
40
|
+
/**
|
|
45
41
|
* Copyright IBM Corp. 2018, 2024
|
|
46
42
|
*
|
|
47
43
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
@@ -63,10 +59,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
63
59
|
return acc + " " + attribute;
|
|
64
60
|
}, "");
|
|
65
61
|
}
|
|
66
|
-
|
|
67
|
-
//#
|
|
68
|
-
|
|
69
|
-
/**
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/toSVG.ts
|
|
64
|
+
/**
|
|
70
65
|
* Copyright IBM Corp. 2018, 2024
|
|
71
66
|
*
|
|
72
67
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
@@ -85,20 +80,18 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
85
80
|
for (let i = 0; i < content.length; i++) node.appendChild(toSVG(content[i]));
|
|
86
81
|
return node;
|
|
87
82
|
}
|
|
88
|
-
|
|
89
|
-
//#
|
|
90
|
-
|
|
91
|
-
/**
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/index.ts
|
|
85
|
+
/**
|
|
92
86
|
* Copyright IBM Corp. 2018, 2023
|
|
93
87
|
*
|
|
94
88
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
95
89
|
* LICENSE file in the root directory of this source tree.
|
|
96
90
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
|
|
104
|
-
});
|
|
91
|
+
//#endregion
|
|
92
|
+
exports.defaultAttributes = defaultAttributes;
|
|
93
|
+
exports.formatAttributes = formatAttributes;
|
|
94
|
+
exports.getAttributes = getAttributes;
|
|
95
|
+
exports.toSVG = toSVG;
|
|
96
|
+
exports.toString = toString;
|
|
97
|
+
});
|