@apexcura/ui-components 0.0.14-Beta211 → 0.0.14-Beta212
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 +9 -0
- package/dist/index.js +13 -7
- package/dist/index.mjs +13 -7
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -338,9 +338,15 @@ video {
|
|
|
338
338
|
.fixed {
|
|
339
339
|
position: fixed;
|
|
340
340
|
}
|
|
341
|
+
.relative {
|
|
342
|
+
position: relative;
|
|
343
|
+
}
|
|
341
344
|
.m-\[10px\] {
|
|
342
345
|
margin: 10px;
|
|
343
346
|
}
|
|
347
|
+
.inline-block {
|
|
348
|
+
display: inline-block;
|
|
349
|
+
}
|
|
344
350
|
.flex {
|
|
345
351
|
display: flex;
|
|
346
352
|
}
|
|
@@ -350,6 +356,9 @@ video {
|
|
|
350
356
|
.grid {
|
|
351
357
|
display: grid;
|
|
352
358
|
}
|
|
359
|
+
.transform {
|
|
360
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
361
|
+
}
|
|
353
362
|
.rounded-\[8px\] {
|
|
354
363
|
border-radius: 8px;
|
|
355
364
|
}
|
package/dist/index.js
CHANGED
|
@@ -394,7 +394,15 @@ var ButtonElement = (props) => {
|
|
|
394
394
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
|
-
/* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName }, props.loading ? /* @__PURE__ */ import_react11.default.createElement("img", { src: props.icon, className: "icon-active" }) : /* @__PURE__ */ import_react11.default.createElement(
|
|
397
|
+
/* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, props.loading ? /* @__PURE__ */ import_react11.default.createElement("img", { src: props.icon, className: "icon-active", alt: props.label }) : /* @__PURE__ */ import_react11.default.createElement(
|
|
398
|
+
"span",
|
|
399
|
+
{
|
|
400
|
+
dangerouslySetInnerHTML: { __html: props.icon || "" },
|
|
401
|
+
style: { display: "inline-block" }
|
|
402
|
+
}
|
|
403
|
+
), /* @__PURE__ */ import_react11.default.createElement("style", null, `.${props.iconsClassName}:hover {
|
|
404
|
+
transform: scale(1.1);
|
|
405
|
+
}`)), props.label)
|
|
398
406
|
);
|
|
399
407
|
};
|
|
400
408
|
|
|
@@ -899,6 +907,7 @@ var DatePickerElement = (props) => {
|
|
|
899
907
|
var import_react22 = __toESM(require("react"));
|
|
900
908
|
var import_antd16 = require("antd");
|
|
901
909
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
910
|
+
var import_moment3 = __toESM(require("moment"));
|
|
902
911
|
var DateRangePickerElement = (props) => {
|
|
903
912
|
const { value } = props;
|
|
904
913
|
const { RangePicker } = import_antd16.DatePicker;
|
|
@@ -906,7 +915,7 @@ var DateRangePickerElement = (props) => {
|
|
|
906
915
|
if (dates) {
|
|
907
916
|
props.onChange && props.onChange(dateStrings);
|
|
908
917
|
} else {
|
|
909
|
-
props.onChange && props.onChange(
|
|
918
|
+
props.onChange && props.onChange("");
|
|
910
919
|
}
|
|
911
920
|
};
|
|
912
921
|
const rangePresets = [
|
|
@@ -916,7 +925,7 @@ var DateRangePickerElement = (props) => {
|
|
|
916
925
|
{ label: "Last 90 Days", value: [(0, import_dayjs2.default)().add(-90, "d"), (0, import_dayjs2.default)()] }
|
|
917
926
|
];
|
|
918
927
|
const disabledDate = (current) => {
|
|
919
|
-
return current && current > (0,
|
|
928
|
+
return current && current > (0, import_moment3.default)();
|
|
920
929
|
};
|
|
921
930
|
return /* @__PURE__ */ import_react22.default.createElement(import_antd16.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react22.default.createElement(
|
|
922
931
|
RangePicker,
|
|
@@ -925,10 +934,7 @@ var DateRangePickerElement = (props) => {
|
|
|
925
934
|
presets: rangePresets,
|
|
926
935
|
format: { format: "DD-MM-YYYY" },
|
|
927
936
|
onChange: handleChange,
|
|
928
|
-
value: value && value
|
|
929
|
-
(0, import_dayjs2.default)(value[0]),
|
|
930
|
-
(0, import_dayjs2.default)(value[1])
|
|
931
|
-
]
|
|
937
|
+
value: value && [(0, import_dayjs2.default)(value[0]), (0, import_dayjs2.default)(value[1])]
|
|
932
938
|
}
|
|
933
939
|
));
|
|
934
940
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -328,7 +328,15 @@ var ButtonElement = (props) => {
|
|
|
328
328
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
|
-
/* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName }, props.loading ? /* @__PURE__ */ React11.createElement("img", { src: props.icon, className: "icon-active" }) : /* @__PURE__ */ React11.createElement(
|
|
331
|
+
/* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, props.loading ? /* @__PURE__ */ React11.createElement("img", { src: props.icon, className: "icon-active", alt: props.label }) : /* @__PURE__ */ React11.createElement(
|
|
332
|
+
"span",
|
|
333
|
+
{
|
|
334
|
+
dangerouslySetInnerHTML: { __html: props.icon || "" },
|
|
335
|
+
style: { display: "inline-block" }
|
|
336
|
+
}
|
|
337
|
+
), /* @__PURE__ */ React11.createElement("style", null, `.${props.iconsClassName}:hover {
|
|
338
|
+
transform: scale(1.1);
|
|
339
|
+
}`)), props.label)
|
|
332
340
|
);
|
|
333
341
|
};
|
|
334
342
|
|
|
@@ -833,6 +841,7 @@ var DatePickerElement = (props) => {
|
|
|
833
841
|
import React22 from "react";
|
|
834
842
|
import { DatePicker as DatePicker2, Space } from "antd";
|
|
835
843
|
import dayjs2 from "dayjs";
|
|
844
|
+
import moment3 from "moment";
|
|
836
845
|
var DateRangePickerElement = (props) => {
|
|
837
846
|
const { value } = props;
|
|
838
847
|
const { RangePicker } = DatePicker2;
|
|
@@ -840,7 +849,7 @@ var DateRangePickerElement = (props) => {
|
|
|
840
849
|
if (dates) {
|
|
841
850
|
props.onChange && props.onChange(dateStrings);
|
|
842
851
|
} else {
|
|
843
|
-
props.onChange && props.onChange(
|
|
852
|
+
props.onChange && props.onChange("");
|
|
844
853
|
}
|
|
845
854
|
};
|
|
846
855
|
const rangePresets = [
|
|
@@ -850,7 +859,7 @@ var DateRangePickerElement = (props) => {
|
|
|
850
859
|
{ label: "Last 90 Days", value: [dayjs2().add(-90, "d"), dayjs2()] }
|
|
851
860
|
];
|
|
852
861
|
const disabledDate = (current) => {
|
|
853
|
-
return current && current >
|
|
862
|
+
return current && current > moment3();
|
|
854
863
|
};
|
|
855
864
|
return /* @__PURE__ */ React22.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React22.createElement(
|
|
856
865
|
RangePicker,
|
|
@@ -859,10 +868,7 @@ var DateRangePickerElement = (props) => {
|
|
|
859
868
|
presets: rangePresets,
|
|
860
869
|
format: { format: "DD-MM-YYYY" },
|
|
861
870
|
onChange: handleChange,
|
|
862
|
-
value: value && value
|
|
863
|
-
dayjs2(value[0]),
|
|
864
|
-
dayjs2(value[1])
|
|
865
|
-
]
|
|
871
|
+
value: value && [dayjs2(value[0]), dayjs2(value[1])]
|
|
866
872
|
}
|
|
867
873
|
));
|
|
868
874
|
};
|