@apexcura/ui-components 0.0.14-Beta210 → 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 -13
- package/dist/index.mjs +13 -13
- 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 }, /* @__PURE__ */ import_react11.default.createElement("img", { src: props.icon, className: "icon-active"
|
|
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
|
|
|
@@ -904,15 +912,10 @@ var DateRangePickerElement = (props) => {
|
|
|
904
912
|
const { value } = props;
|
|
905
913
|
const { RangePicker } = import_antd16.DatePicker;
|
|
906
914
|
const handleChange = (dates, dateStrings) => {
|
|
907
|
-
console.log(dateStrings);
|
|
908
915
|
if (dates) {
|
|
909
|
-
|
|
910
|
-
formattedDate.push((0, import_moment3.default)(dateStrings[0]).format("DD-MM-YYYY"));
|
|
911
|
-
formattedDate.push((0, import_moment3.default)(dateStrings[1]).format("DD-MM-YYYY"));
|
|
912
|
-
console.log("formattedDate", formattedDate);
|
|
913
|
-
props.onChange && props.onChange(formattedDate);
|
|
916
|
+
props.onChange && props.onChange(dateStrings);
|
|
914
917
|
} else {
|
|
915
|
-
props.onChange && props.onChange(
|
|
918
|
+
props.onChange && props.onChange("");
|
|
916
919
|
}
|
|
917
920
|
};
|
|
918
921
|
const rangePresets = [
|
|
@@ -922,7 +925,7 @@ var DateRangePickerElement = (props) => {
|
|
|
922
925
|
{ label: "Last 90 Days", value: [(0, import_dayjs2.default)().add(-90, "d"), (0, import_dayjs2.default)()] }
|
|
923
926
|
];
|
|
924
927
|
const disabledDate = (current) => {
|
|
925
|
-
return current && current > (0,
|
|
928
|
+
return current && current > (0, import_moment3.default)();
|
|
926
929
|
};
|
|
927
930
|
return /* @__PURE__ */ import_react22.default.createElement(import_antd16.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react22.default.createElement(
|
|
928
931
|
RangePicker,
|
|
@@ -931,10 +934,7 @@ var DateRangePickerElement = (props) => {
|
|
|
931
934
|
presets: rangePresets,
|
|
932
935
|
format: { format: "DD-MM-YYYY" },
|
|
933
936
|
onChange: handleChange,
|
|
934
|
-
value: value && value
|
|
935
|
-
(0, import_dayjs2.default)(value[0], "DD-MM-YYYY"),
|
|
936
|
-
(0, import_dayjs2.default)(value[1], "DD-MM-YYYY")
|
|
937
|
-
]
|
|
937
|
+
value: value && [(0, import_dayjs2.default)(value[0]), (0, import_dayjs2.default)(value[1])]
|
|
938
938
|
}
|
|
939
939
|
));
|
|
940
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 }, /* @__PURE__ */ React11.createElement("img", { src: props.icon, className: "icon-active"
|
|
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
|
|
|
@@ -838,15 +846,10 @@ var DateRangePickerElement = (props) => {
|
|
|
838
846
|
const { value } = props;
|
|
839
847
|
const { RangePicker } = DatePicker2;
|
|
840
848
|
const handleChange = (dates, dateStrings) => {
|
|
841
|
-
console.log(dateStrings);
|
|
842
849
|
if (dates) {
|
|
843
|
-
|
|
844
|
-
formattedDate.push(moment3(dateStrings[0]).format("DD-MM-YYYY"));
|
|
845
|
-
formattedDate.push(moment3(dateStrings[1]).format("DD-MM-YYYY"));
|
|
846
|
-
console.log("formattedDate", formattedDate);
|
|
847
|
-
props.onChange && props.onChange(formattedDate);
|
|
850
|
+
props.onChange && props.onChange(dateStrings);
|
|
848
851
|
} else {
|
|
849
|
-
props.onChange && props.onChange(
|
|
852
|
+
props.onChange && props.onChange("");
|
|
850
853
|
}
|
|
851
854
|
};
|
|
852
855
|
const rangePresets = [
|
|
@@ -856,7 +859,7 @@ var DateRangePickerElement = (props) => {
|
|
|
856
859
|
{ label: "Last 90 Days", value: [dayjs2().add(-90, "d"), dayjs2()] }
|
|
857
860
|
];
|
|
858
861
|
const disabledDate = (current) => {
|
|
859
|
-
return current && current >
|
|
862
|
+
return current && current > moment3();
|
|
860
863
|
};
|
|
861
864
|
return /* @__PURE__ */ React22.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React22.createElement(
|
|
862
865
|
RangePicker,
|
|
@@ -865,10 +868,7 @@ var DateRangePickerElement = (props) => {
|
|
|
865
868
|
presets: rangePresets,
|
|
866
869
|
format: { format: "DD-MM-YYYY" },
|
|
867
870
|
onChange: handleChange,
|
|
868
|
-
value: value && value
|
|
869
|
-
dayjs2(value[0], "DD-MM-YYYY"),
|
|
870
|
-
dayjs2(value[1], "DD-MM-YYYY")
|
|
871
|
-
]
|
|
871
|
+
value: value && [dayjs2(value[0]), dayjs2(value[1])]
|
|
872
872
|
}
|
|
873
873
|
));
|
|
874
874
|
};
|