@apexcura/ui-components 0.0.14-Beta179 → 0.0.14-Beta180
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.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -424,7 +424,7 @@ var ButtonElement = (props) => {
|
|
|
424
424
|
}
|
|
425
425
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
426
426
|
}
|
|
427
|
-
}, [
|
|
427
|
+
}, []);
|
|
428
428
|
const handleMouseEnter = () => {
|
|
429
429
|
if (hoverColor && originalSvgContent) {
|
|
430
430
|
const tempDiv = document.createElement("div");
|
|
@@ -452,14 +452,14 @@ var ButtonElement = (props) => {
|
|
|
452
452
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
|
-
props.isLoading ? /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }), props.label) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, props.isSVGStylesOverride === false ? props.icon
|
|
455
|
+
props.isLoading ? /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }), props.label) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ import_react11.default.createElement(
|
|
456
456
|
"img",
|
|
457
457
|
{
|
|
458
458
|
className: props.iconsClassName,
|
|
459
459
|
src: props.icon,
|
|
460
460
|
alt: props.label
|
|
461
461
|
}
|
|
462
|
-
) :
|
|
462
|
+
) : svgContent && /* @__PURE__ */ import_react11.default.createElement("span", { dangerouslySetInnerHTML: { __html: svgContent } }), props.label)
|
|
463
463
|
);
|
|
464
464
|
};
|
|
465
465
|
|
package/dist/index.mjs
CHANGED
|
@@ -358,7 +358,7 @@ var ButtonElement = (props) => {
|
|
|
358
358
|
}
|
|
359
359
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
360
360
|
}
|
|
361
|
-
}, [
|
|
361
|
+
}, []);
|
|
362
362
|
const handleMouseEnter = () => {
|
|
363
363
|
if (hoverColor && originalSvgContent) {
|
|
364
364
|
const tempDiv = document.createElement("div");
|
|
@@ -386,14 +386,14 @@ var ButtonElement = (props) => {
|
|
|
386
386
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
387
387
|
}
|
|
388
388
|
},
|
|
389
|
-
props.isLoading ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }), props.label) : /* @__PURE__ */ React11.createElement(React11.Fragment, null, props.isSVGStylesOverride === false ? props.icon
|
|
389
|
+
props.isLoading ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }), props.label) : /* @__PURE__ */ React11.createElement(React11.Fragment, null, props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ React11.createElement(
|
|
390
390
|
"img",
|
|
391
391
|
{
|
|
392
392
|
className: props.iconsClassName,
|
|
393
393
|
src: props.icon,
|
|
394
394
|
alt: props.label
|
|
395
395
|
}
|
|
396
|
-
) :
|
|
396
|
+
) : svgContent && /* @__PURE__ */ React11.createElement("span", { dangerouslySetInnerHTML: { __html: svgContent } }), props.label)
|
|
397
397
|
);
|
|
398
398
|
};
|
|
399
399
|
|