@apexcura/ui-components 0.0.14-Beta195 → 0.0.14-Beta196
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 +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -455,14 +455,21 @@ var ButtonElement = (props) => {
|
|
|
455
455
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
|
-
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
|
|
458
|
+
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(
|
|
459
459
|
"img",
|
|
460
460
|
{
|
|
461
461
|
className: props.iconsClassName,
|
|
462
462
|
src: props.icon,
|
|
463
463
|
alt: props.label
|
|
464
464
|
}
|
|
465
|
-
) :
|
|
465
|
+
) : loading ? /* @__PURE__ */ import_react11.default.createElement(
|
|
466
|
+
"img",
|
|
467
|
+
{
|
|
468
|
+
className: props.iconsClassName,
|
|
469
|
+
src: props.icon,
|
|
470
|
+
alt: props.label
|
|
471
|
+
}
|
|
472
|
+
) : /* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName }, /* @__PURE__ */ import_react11.default.createElement("span", { dangerouslySetInnerHTML: { __html: svgContent || "" } })), props.label)
|
|
466
473
|
);
|
|
467
474
|
};
|
|
468
475
|
|
package/dist/index.mjs
CHANGED
|
@@ -389,14 +389,21 @@ var ButtonElement = (props) => {
|
|
|
389
389
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
|
-
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
|
|
392
|
+
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(
|
|
393
393
|
"img",
|
|
394
394
|
{
|
|
395
395
|
className: props.iconsClassName,
|
|
396
396
|
src: props.icon,
|
|
397
397
|
alt: props.label
|
|
398
398
|
}
|
|
399
|
-
) :
|
|
399
|
+
) : loading ? /* @__PURE__ */ React11.createElement(
|
|
400
|
+
"img",
|
|
401
|
+
{
|
|
402
|
+
className: props.iconsClassName,
|
|
403
|
+
src: props.icon,
|
|
404
|
+
alt: props.label
|
|
405
|
+
}
|
|
406
|
+
) : /* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName }, /* @__PURE__ */ React11.createElement("span", { dangerouslySetInnerHTML: { __html: svgContent || "" } })), props.label)
|
|
400
407
|
);
|
|
401
408
|
};
|
|
402
409
|
|