@cypress-design/react-statusicon 0.4.16 → 0.4.17
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +7 -0
- package/ReadMe.md +5 -3
- package/dist/index.es.mjs +7 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +7 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -505,7 +505,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
505
505
|
};
|
|
506
506
|
|
|
507
507
|
var compileReactIconProperties = function (_a) {
|
|
508
|
-
var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name"]);
|
|
508
|
+
var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, alt = _a.alt, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name", "alt"]);
|
|
509
509
|
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
510
510
|
if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
511
511
|
attrName !== 'name') {
|
|
@@ -532,7 +532,11 @@ var compileReactIconProperties = function (_a) {
|
|
|
532
532
|
}
|
|
533
533
|
}, [defs, name, size]);
|
|
534
534
|
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
535
|
-
__html:
|
|
535
|
+
__html: alt
|
|
536
|
+
? "<title>".concat(alt.replace(/[><]/g, function (s) {
|
|
537
|
+
return s === '>' ? '>' : '<';
|
|
538
|
+
}), "</title>").concat(body)
|
|
539
|
+
: body,
|
|
536
540
|
}, className: undefined }, filteredAttributes);
|
|
537
541
|
if (attributes.className) {
|
|
538
542
|
compiledClasses.push(attributes.className);
|
|
@@ -544,7 +548,7 @@ var compileReactIconProperties = function (_a) {
|
|
|
544
548
|
};
|
|
545
549
|
|
|
546
550
|
|
|
547
|
-
/* <wind-keep class="filter icon-light-secondary icon-dark-secondary"> */
|
|
551
|
+
/* <wind-keep class="filter icon-light-secondary icon-dark-secondary h-1 h-2"> */
|
|
548
552
|
|
|
549
553
|
var compileProps = function (_a) {
|
|
550
554
|
var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size, variantName = _a.variantName;
|