@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 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)(true);
392
+ const [loading, setLoading] = (0, import_react11.useState)(false);
393
393
  (0, import_react11.useEffect)(() => {
394
394
  if (props.icon) {
395
- setLoading(false);
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(true);
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(true);
326
+ const [loading, setLoading] = useState4(false);
327
327
  useEffect(() => {
328
328
  if (props.icon) {
329
- setLoading(false);
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(true);
363
+ setLoading(false);
364
364
  }, []);
365
365
  const handleMouseEnter = () => {
366
366
  if (hoverColor && originalSvgContent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta193",
3
+ "version": "0.0.14-Beta195",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",