@apexcura/ui-components 0.0.14-Beta193 → 0.0.14-Beta195
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
|
@@ -389,10 +389,10 @@ var ButtonElement = (props) => {
|
|
|
389
389
|
null
|
|
390
390
|
);
|
|
391
391
|
const [hoverColor, setHoverColor] = (0, import_react11.useState)(null);
|
|
392
|
-
const [loading, setLoading] = (0, import_react11.useState)(
|
|
392
|
+
const [loading, setLoading] = (0, import_react11.useState)(false);
|
|
393
393
|
(0, import_react11.useEffect)(() => {
|
|
394
394
|
if (props.icon) {
|
|
395
|
-
setLoading(
|
|
395
|
+
setLoading(true);
|
|
396
396
|
fetch(props.icon).then((response) => response.text()).then((data) => {
|
|
397
397
|
const tempDiv = document.createElement("div");
|
|
398
398
|
tempDiv.innerHTML = data;
|
|
@@ -426,7 +426,7 @@ var ButtonElement = (props) => {
|
|
|
426
426
|
}
|
|
427
427
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
428
428
|
}
|
|
429
|
-
setLoading(
|
|
429
|
+
setLoading(false);
|
|
430
430
|
}, []);
|
|
431
431
|
const handleMouseEnter = () => {
|
|
432
432
|
if (hoverColor && originalSvgContent) {
|
package/dist/index.mjs
CHANGED
|
@@ -323,10 +323,10 @@ var ButtonElement = (props) => {
|
|
|
323
323
|
null
|
|
324
324
|
);
|
|
325
325
|
const [hoverColor, setHoverColor] = useState4(null);
|
|
326
|
-
const [loading, setLoading] = useState4(
|
|
326
|
+
const [loading, setLoading] = useState4(false);
|
|
327
327
|
useEffect(() => {
|
|
328
328
|
if (props.icon) {
|
|
329
|
-
setLoading(
|
|
329
|
+
setLoading(true);
|
|
330
330
|
fetch(props.icon).then((response) => response.text()).then((data) => {
|
|
331
331
|
const tempDiv = document.createElement("div");
|
|
332
332
|
tempDiv.innerHTML = data;
|
|
@@ -360,7 +360,7 @@ var ButtonElement = (props) => {
|
|
|
360
360
|
}
|
|
361
361
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
362
362
|
}
|
|
363
|
-
setLoading(
|
|
363
|
+
setLoading(false);
|
|
364
364
|
}, []);
|
|
365
365
|
const handleMouseEnter = () => {
|
|
366
366
|
if (hoverColor && originalSvgContent) {
|