@apexcura/ui-components 0.0.14-Beta174 → 0.0.14-Beta176
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.css +3 -0
- package/dist/index.js +16 -10
- package/dist/index.mjs +16 -10
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -460,6 +460,9 @@ video {
|
|
|
460
460
|
:where(.css-dev-only-do-not-override-1r287do).ant-radio-button-wrapper:first-child {
|
|
461
461
|
border-inline-start: 1px solid rgb(145 145 145);
|
|
462
462
|
}
|
|
463
|
+
:where(.css-dev-only-do-not-override-m4timi).ant-tabs-top > .ant-tabs-nav {
|
|
464
|
+
margin: 0px;
|
|
465
|
+
}
|
|
463
466
|
.hover\:bg-\[\#F2F2F2\]:hover {
|
|
464
467
|
--tw-bg-opacity: 1;
|
|
465
468
|
background-color: rgb(242 242 242 / var(--tw-bg-opacity));
|
package/dist/index.js
CHANGED
|
@@ -385,7 +385,9 @@ var MultipleSelectElement = (props) => {
|
|
|
385
385
|
var import_react11 = __toESM(require("react"));
|
|
386
386
|
var ButtonElement = (props) => {
|
|
387
387
|
const [svgContent, setSvgContent] = (0, import_react11.useState)(null);
|
|
388
|
-
const [originalSvgContent, setOriginalSvgContent] = (0, import_react11.useState)(
|
|
388
|
+
const [originalSvgContent, setOriginalSvgContent] = (0, import_react11.useState)(
|
|
389
|
+
null
|
|
390
|
+
);
|
|
389
391
|
const [hoverColor, setHoverColor] = (0, import_react11.useState)(null);
|
|
390
392
|
(0, import_react11.useEffect)(() => {
|
|
391
393
|
if (props.icon) {
|
|
@@ -450,12 +452,14 @@ var ButtonElement = (props) => {
|
|
|
450
452
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
451
453
|
}
|
|
452
454
|
},
|
|
453
|
-
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
|
|
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 ? /* @__PURE__ */ import_react11.default.createElement(
|
|
456
|
+
"img",
|
|
455
457
|
{
|
|
456
|
-
|
|
458
|
+
className: props.iconsClassName,
|
|
459
|
+
src: props.icon,
|
|
460
|
+
alt: props.label
|
|
457
461
|
}
|
|
458
|
-
), props.label)
|
|
462
|
+
) : /* @__PURE__ */ import_react11.default.createElement("img", { src: "", alt: "", className: props.iconsClassName }) : svgContent && /* @__PURE__ */ import_react11.default.createElement("span", { dangerouslySetInnerHTML: { __html: svgContent } }), props.label)
|
|
459
463
|
);
|
|
460
464
|
};
|
|
461
465
|
|
|
@@ -845,11 +849,13 @@ var TableElement = (props) => {
|
|
|
845
849
|
import_antd14.Table,
|
|
846
850
|
{
|
|
847
851
|
className: props.className,
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
852
|
+
...props.pagination && {
|
|
853
|
+
pagination: {
|
|
854
|
+
showTotal: (total) => `Total: ${total} items`,
|
|
855
|
+
total: props.count,
|
|
856
|
+
showSizeChanger: props.count ? props.count > 10 : false,
|
|
857
|
+
onChange: onChangePage
|
|
858
|
+
}
|
|
853
859
|
},
|
|
854
860
|
onRow: (record) => {
|
|
855
861
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -319,7 +319,9 @@ var MultipleSelectElement = (props) => {
|
|
|
319
319
|
import React11, { useEffect, useState as useState4 } from "react";
|
|
320
320
|
var ButtonElement = (props) => {
|
|
321
321
|
const [svgContent, setSvgContent] = useState4(null);
|
|
322
|
-
const [originalSvgContent, setOriginalSvgContent] = useState4(
|
|
322
|
+
const [originalSvgContent, setOriginalSvgContent] = useState4(
|
|
323
|
+
null
|
|
324
|
+
);
|
|
323
325
|
const [hoverColor, setHoverColor] = useState4(null);
|
|
324
326
|
useEffect(() => {
|
|
325
327
|
if (props.icon) {
|
|
@@ -384,12 +386,14 @@ var ButtonElement = (props) => {
|
|
|
384
386
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
385
387
|
}
|
|
386
388
|
},
|
|
387
|
-
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
|
|
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 ? /* @__PURE__ */ React11.createElement(
|
|
390
|
+
"img",
|
|
389
391
|
{
|
|
390
|
-
|
|
392
|
+
className: props.iconsClassName,
|
|
393
|
+
src: props.icon,
|
|
394
|
+
alt: props.label
|
|
391
395
|
}
|
|
392
|
-
), props.label)
|
|
396
|
+
) : /* @__PURE__ */ React11.createElement("img", { src: "", alt: "", className: props.iconsClassName }) : svgContent && /* @__PURE__ */ React11.createElement("span", { dangerouslySetInnerHTML: { __html: svgContent } }), props.label)
|
|
393
397
|
);
|
|
394
398
|
};
|
|
395
399
|
|
|
@@ -779,11 +783,13 @@ var TableElement = (props) => {
|
|
|
779
783
|
Table2,
|
|
780
784
|
{
|
|
781
785
|
className: props.className,
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
786
|
+
...props.pagination && {
|
|
787
|
+
pagination: {
|
|
788
|
+
showTotal: (total) => `Total: ${total} items`,
|
|
789
|
+
total: props.count,
|
|
790
|
+
showSizeChanger: props.count ? props.count > 10 : false,
|
|
791
|
+
onChange: onChangePage
|
|
792
|
+
}
|
|
787
793
|
},
|
|
788
794
|
onRow: (record) => {
|
|
789
795
|
return {
|