@apexcura/ui-components 0.0.14-Beta34 → 0.0.14-Beta35
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 +7 -6
- package/dist/index.mjs +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -383,18 +383,19 @@ var ButtonElement = (props) => {
|
|
|
383
383
|
fetch(props.icon).then((response) => response.text()).then((data) => setSvgContent(data)).catch((error) => console.error("Error fetching SVG:", error));
|
|
384
384
|
}
|
|
385
385
|
}, [props.icon]);
|
|
386
|
+
console.log(svgContent);
|
|
386
387
|
return /* @__PURE__ */ import_react11.default.createElement(
|
|
387
388
|
"button",
|
|
388
389
|
{
|
|
389
390
|
onClick: () => props.onClick && props.onClick(),
|
|
390
391
|
className: `${props.className ? props.className : ""}`
|
|
391
392
|
},
|
|
392
|
-
svgContent ?
|
|
393
|
-
|
|
394
|
-
{
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
393
|
+
svgContent ? (
|
|
394
|
+
// <span
|
|
395
|
+
// className={props.iconsClassName}
|
|
396
|
+
// dangerouslySetInnerHTML={{ __html: svgContent }}
|
|
397
|
+
// />
|
|
398
|
+
/* @__PURE__ */ import_react11.default.createElement("h1", null, "hijdwe")
|
|
398
399
|
) : props.icon && /* @__PURE__ */ import_react11.default.createElement("img", { className: props.iconsClassName, src: props.icon }),
|
|
399
400
|
props.label
|
|
400
401
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -324,18 +324,19 @@ var ButtonElement = (props) => {
|
|
|
324
324
|
fetch(props.icon).then((response) => response.text()).then((data) => setSvgContent(data)).catch((error) => console.error("Error fetching SVG:", error));
|
|
325
325
|
}
|
|
326
326
|
}, [props.icon]);
|
|
327
|
+
console.log(svgContent);
|
|
327
328
|
return /* @__PURE__ */ React11.createElement(
|
|
328
329
|
"button",
|
|
329
330
|
{
|
|
330
331
|
onClick: () => props.onClick && props.onClick(),
|
|
331
332
|
className: `${props.className ? props.className : ""}`
|
|
332
333
|
},
|
|
333
|
-
svgContent ?
|
|
334
|
-
|
|
335
|
-
{
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
334
|
+
svgContent ? (
|
|
335
|
+
// <span
|
|
336
|
+
// className={props.iconsClassName}
|
|
337
|
+
// dangerouslySetInnerHTML={{ __html: svgContent }}
|
|
338
|
+
// />
|
|
339
|
+
/* @__PURE__ */ React11.createElement("h1", null, "hijdwe")
|
|
339
340
|
) : props.icon && /* @__PURE__ */ React11.createElement("img", { className: props.iconsClassName, src: props.icon }),
|
|
340
341
|
props.label
|
|
341
342
|
);
|