@apexcura/ui-components 0.0.14-Beta183 → 0.0.14-Beta185
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/.env.defaults +2 -2
- package/dist/index.css +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +169 -63
- package/dist/index.mjs +170 -64
- package/package.json +1 -1
- package/postcss.config.js +6 -6
- package/tailwind.config.js +10 -10
package/.env.defaults
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
GOOGLE_CLIENT_ID=1234
|
|
2
|
-
GOOGLE_AUTH_ORIGINS=1234
|
|
1
|
+
GOOGLE_CLIENT_ID=1234
|
|
2
|
+
GOOGLE_AUTH_ORIGINS=1234
|
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.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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) {
|
|
@@ -422,7 +424,7 @@ var ButtonElement = (props) => {
|
|
|
422
424
|
}
|
|
423
425
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
424
426
|
}
|
|
425
|
-
}, [
|
|
427
|
+
}, []);
|
|
426
428
|
const handleMouseEnter = () => {
|
|
427
429
|
if (hoverColor && originalSvgContent) {
|
|
428
430
|
const tempDiv = document.createElement("div");
|
|
@@ -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
|
|
|
@@ -683,18 +687,48 @@ var import_antd13 = require("antd");
|
|
|
683
687
|
|
|
684
688
|
// src/Components/ModelBody.tsx
|
|
685
689
|
var import_react18 = __toESM(require("react"));
|
|
690
|
+
var import_moment = __toESM(require("moment"));
|
|
686
691
|
var ModelBody = (props) => {
|
|
687
|
-
return /* @__PURE__ */ import_react18.default.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
692
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
693
|
+
(eachField) => {
|
|
694
|
+
if (eachField.element === "div") {
|
|
695
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { className: eachField.className }, eachField.label, eachField.dateTime ? /* @__PURE__ */ import_react18.default.createElement(
|
|
696
|
+
"p",
|
|
697
|
+
{
|
|
698
|
+
style: {
|
|
699
|
+
fontSize: "10px",
|
|
700
|
+
textAlign: eachField.source === "bot" ? "left" : "right"
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
(0, import_moment.default)(eachField.dateTime).format("LT")
|
|
704
|
+
) : "");
|
|
705
|
+
} else if (eachField.element === "input-radio") {
|
|
706
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { className: eachField.className }, /* @__PURE__ */ import_react18.default.createElement(RadioElement, { ...eachField }), eachField.dateTime ? /* @__PURE__ */ import_react18.default.createElement(
|
|
707
|
+
"p",
|
|
708
|
+
{
|
|
709
|
+
style: {
|
|
710
|
+
fontSize: "10px",
|
|
711
|
+
textAlign: eachField.source === "bot" ? "left" : "right"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
(0, import_moment.default)(eachField.dateTime).format("LT")
|
|
715
|
+
) : "");
|
|
716
|
+
} else if (eachField.element === "button") {
|
|
717
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { className: eachField.className }, /* @__PURE__ */ import_react18.default.createElement(ButtonElement, { ...eachField }), eachField.dateTime ? /* @__PURE__ */ import_react18.default.createElement(
|
|
718
|
+
"p",
|
|
719
|
+
{
|
|
720
|
+
style: {
|
|
721
|
+
fontSize: "10px",
|
|
722
|
+
textAlign: eachField.source === "bot" ? "left" : "right"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
(0, import_moment.default)(eachField.dateTime).format("LT")
|
|
726
|
+
) : "");
|
|
727
|
+
} else {
|
|
728
|
+
return null;
|
|
729
|
+
}
|
|
696
730
|
}
|
|
697
|
-
|
|
731
|
+
));
|
|
698
732
|
};
|
|
699
733
|
|
|
700
734
|
// src/Components/Model.tsx
|
|
@@ -719,9 +753,22 @@ var ModelElement = (props) => {
|
|
|
719
753
|
margin: "-10px"
|
|
720
754
|
}
|
|
721
755
|
},
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
756
|
+
columns.map((eachColumn) => {
|
|
757
|
+
if (!["index", "View"].includes(eachColumn.key) && eachColumn?.["is_detail"] !== false) {
|
|
758
|
+
return /* @__PURE__ */ import_react19.default.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ import_react19.default.createElement(
|
|
759
|
+
"span",
|
|
760
|
+
{
|
|
761
|
+
style: {
|
|
762
|
+
fontWeight: "200",
|
|
763
|
+
color: "gray",
|
|
764
|
+
paddingRight: "10px"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
eachColumn.title
|
|
768
|
+
), selectedRecord[eachColumn.key] !== "" ? selectedRecord[eachColumn.key] : "--");
|
|
769
|
+
} else {
|
|
770
|
+
return null;
|
|
771
|
+
}
|
|
725
772
|
})
|
|
726
773
|
)
|
|
727
774
|
},
|
|
@@ -730,12 +777,24 @@ var ModelElement = (props) => {
|
|
|
730
777
|
};
|
|
731
778
|
|
|
732
779
|
// src/Components/TableElement.tsx
|
|
780
|
+
var import_icons4 = require("@ant-design/icons");
|
|
733
781
|
var TableElement = (props) => {
|
|
734
782
|
const { thead, tbody } = props;
|
|
735
783
|
const [selectedRecord, setSelectedRecord] = (0, import_react20.useState)({});
|
|
736
784
|
const [model, setModel] = (0, import_react20.useState)(false);
|
|
785
|
+
const [dataSource, setDataSource] = (0, import_react20.useState)([]);
|
|
786
|
+
(0, import_react20.useEffect)(() => {
|
|
787
|
+
if (tbody) {
|
|
788
|
+
setDataSource(
|
|
789
|
+
tbody.map((row, index) => ({
|
|
790
|
+
...row,
|
|
791
|
+
key: index,
|
|
792
|
+
index: index + 1
|
|
793
|
+
}))
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
}, [tbody]);
|
|
737
797
|
const handleChange = (record) => {
|
|
738
|
-
console.log("record", record);
|
|
739
798
|
if (props.onChange) {
|
|
740
799
|
props.onChange(record);
|
|
741
800
|
}
|
|
@@ -745,8 +804,8 @@ var TableElement = (props) => {
|
|
|
745
804
|
columns = [
|
|
746
805
|
{
|
|
747
806
|
title: "#",
|
|
748
|
-
dataIndex: "
|
|
749
|
-
key: "
|
|
807
|
+
dataIndex: "index",
|
|
808
|
+
key: "index",
|
|
750
809
|
fixed: "left"
|
|
751
810
|
},
|
|
752
811
|
...thead.map((col, ind) => ({
|
|
@@ -757,9 +816,9 @@ var TableElement = (props) => {
|
|
|
757
816
|
render: col.render,
|
|
758
817
|
sorter: {
|
|
759
818
|
compare: (a, b) => {
|
|
760
|
-
if (typeof a[col.key] === "number" && typeof
|
|
819
|
+
if (typeof a[col.key] === "number" && typeof b[col.key] === "number") {
|
|
761
820
|
return a[col.key] - b[col.key];
|
|
762
|
-
} else if (typeof a[col.key] === "string" && typeof
|
|
821
|
+
} else if (typeof a[col.key] === "string" && typeof b[col.key] === "string") {
|
|
763
822
|
return a[col.key].localeCompare(b[col.key]);
|
|
764
823
|
}
|
|
765
824
|
}
|
|
@@ -771,26 +830,34 @@ var TableElement = (props) => {
|
|
|
771
830
|
title: "View",
|
|
772
831
|
dataIndex: "View",
|
|
773
832
|
key: "View",
|
|
774
|
-
render: (_, record) =>
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
833
|
+
render: (_, record) => {
|
|
834
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
|
835
|
+
"a",
|
|
836
|
+
{
|
|
837
|
+
onClick: () => {
|
|
838
|
+
if (props.view) {
|
|
839
|
+
setSelectedRecord(record);
|
|
840
|
+
handleChange(record);
|
|
841
|
+
setModel(true);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
/* @__PURE__ */ import_react20.default.createElement(import_icons4.EyeOutlined, null)
|
|
846
|
+
);
|
|
847
|
+
}
|
|
785
848
|
});
|
|
786
849
|
}
|
|
787
850
|
}
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
851
|
+
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
852
|
+
if (extra && extra.currentDataSource) {
|
|
853
|
+
setDataSource(
|
|
854
|
+
extra.currentDataSource.map((row, index) => ({
|
|
855
|
+
...row,
|
|
856
|
+
index: index + 1
|
|
857
|
+
}))
|
|
858
|
+
);
|
|
859
|
+
}
|
|
860
|
+
};
|
|
794
861
|
const onChangePage = (page, pageSize) => {
|
|
795
862
|
if (props.onChange) {
|
|
796
863
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -798,7 +865,11 @@ var TableElement = (props) => {
|
|
|
798
865
|
};
|
|
799
866
|
const rowSelectionConfig = props.rowSelection ? {
|
|
800
867
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
801
|
-
console.log(
|
|
868
|
+
console.log(
|
|
869
|
+
`selectedRowKeys: ${selectedRowKeys}`,
|
|
870
|
+
"selectedRows: ",
|
|
871
|
+
selectedRows
|
|
872
|
+
);
|
|
802
873
|
if (props.onChange) {
|
|
803
874
|
props.onChange(selectedRows);
|
|
804
875
|
}
|
|
@@ -808,19 +879,41 @@ var TableElement = (props) => {
|
|
|
808
879
|
import_antd14.Table,
|
|
809
880
|
{
|
|
810
881
|
className: props.className,
|
|
811
|
-
pagination: {
|
|
882
|
+
pagination: props.pagination ? {
|
|
812
883
|
showTotal: (total) => `Total: ${total} items`,
|
|
813
|
-
total: count,
|
|
814
|
-
showSizeChanger: count > 10,
|
|
884
|
+
total: props.count,
|
|
885
|
+
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
815
886
|
onChange: onChangePage
|
|
887
|
+
} : false,
|
|
888
|
+
onRow: (record) => {
|
|
889
|
+
return {
|
|
890
|
+
onClick: () => {
|
|
891
|
+
if (props.view) {
|
|
892
|
+
setSelectedRecord(record);
|
|
893
|
+
handleChange(record);
|
|
894
|
+
setModel(true);
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
style: { cursor: "pointer" }
|
|
898
|
+
};
|
|
816
899
|
},
|
|
817
900
|
rowSelection: rowSelectionConfig,
|
|
818
901
|
dataSource,
|
|
819
902
|
columns,
|
|
820
903
|
size: props.size,
|
|
821
|
-
bordered: true
|
|
904
|
+
bordered: true,
|
|
905
|
+
onChange: onChangeTable
|
|
822
906
|
}
|
|
823
|
-
), model && /* @__PURE__ */ import_react20.default.createElement(
|
|
907
|
+
), model && /* @__PURE__ */ import_react20.default.createElement(
|
|
908
|
+
ModelElement,
|
|
909
|
+
{
|
|
910
|
+
selectedRecord,
|
|
911
|
+
...props,
|
|
912
|
+
columns,
|
|
913
|
+
model,
|
|
914
|
+
onCancel: () => setModel(false)
|
|
915
|
+
}
|
|
916
|
+
));
|
|
824
917
|
};
|
|
825
918
|
|
|
826
919
|
// src/Components/DatePicker.tsx
|
|
@@ -828,6 +921,7 @@ var import_react21 = __toESM(require("react"));
|
|
|
828
921
|
var import_antd15 = require("antd");
|
|
829
922
|
var import_dayjs = __toESM(require("dayjs"));
|
|
830
923
|
var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
924
|
+
var import_moment2 = __toESM(require("moment"));
|
|
831
925
|
import_dayjs.default.extend(import_customParseFormat.default);
|
|
832
926
|
var DatePickerElement = (props) => {
|
|
833
927
|
const [dateState, setDateState] = (0, import_react21.useState)("");
|
|
@@ -845,9 +939,13 @@ var DatePickerElement = (props) => {
|
|
|
845
939
|
}
|
|
846
940
|
}
|
|
847
941
|
};
|
|
942
|
+
const disabledDate = (current) => {
|
|
943
|
+
return current && current > (0, import_moment2.default)();
|
|
944
|
+
};
|
|
848
945
|
return /* @__PURE__ */ import_react21.default.createElement("div", null, /* @__PURE__ */ import_react21.default.createElement(
|
|
849
946
|
import_antd15.DatePicker,
|
|
850
947
|
{
|
|
948
|
+
disabledDate,
|
|
851
949
|
placeholder: props.placeholder,
|
|
852
950
|
value: dateState,
|
|
853
951
|
format: { format: "DD-MM-YYYY" },
|
|
@@ -860,13 +958,14 @@ var DatePickerElement = (props) => {
|
|
|
860
958
|
var import_react22 = __toESM(require("react"));
|
|
861
959
|
var import_antd16 = require("antd");
|
|
862
960
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
961
|
+
var import_moment3 = __toESM(require("moment"));
|
|
863
962
|
var DateRangePickerElement = (props) => {
|
|
864
963
|
const { RangePicker } = import_antd16.DatePicker;
|
|
865
964
|
const handleChange = (dates, dateStrings) => {
|
|
866
|
-
if (dates
|
|
867
|
-
props.onChange(dateStrings);
|
|
965
|
+
if (dates) {
|
|
966
|
+
props.onChange && props.onChange(dateStrings);
|
|
868
967
|
} else {
|
|
869
|
-
|
|
968
|
+
props.onChange && props.onChange("clear");
|
|
870
969
|
}
|
|
871
970
|
};
|
|
872
971
|
const rangePresets = [
|
|
@@ -875,7 +974,17 @@ var DateRangePickerElement = (props) => {
|
|
|
875
974
|
{ label: "Last 30 Days", value: [(0, import_dayjs2.default)().add(-30, "d"), (0, import_dayjs2.default)()] },
|
|
876
975
|
{ label: "Last 90 Days", value: [(0, import_dayjs2.default)().add(-90, "d"), (0, import_dayjs2.default)()] }
|
|
877
976
|
];
|
|
878
|
-
|
|
977
|
+
const disabledDate = (current) => {
|
|
978
|
+
return current && current > (0, import_moment3.default)();
|
|
979
|
+
};
|
|
980
|
+
return /* @__PURE__ */ import_react22.default.createElement(import_antd16.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react22.default.createElement(
|
|
981
|
+
RangePicker,
|
|
982
|
+
{
|
|
983
|
+
disabledDate,
|
|
984
|
+
presets: rangePresets,
|
|
985
|
+
onChange: handleChange
|
|
986
|
+
}
|
|
987
|
+
));
|
|
879
988
|
};
|
|
880
989
|
|
|
881
990
|
// src/Components/Image.tsx
|
|
@@ -954,7 +1063,7 @@ var DropDownGroup = (props) => {
|
|
|
954
1063
|
// src/Components/FilesUpload.tsx
|
|
955
1064
|
var import_react26 = __toESM(require("react"));
|
|
956
1065
|
var import_antd19 = require("antd");
|
|
957
|
-
var
|
|
1066
|
+
var import_icons5 = require("@ant-design/icons");
|
|
958
1067
|
var FileUpload = (props) => {
|
|
959
1068
|
const { Dragger } = import_antd19.Upload;
|
|
960
1069
|
const [files, setFiles] = (0, import_react26.useState)([]);
|
|
@@ -985,7 +1094,7 @@ var FileUpload = (props) => {
|
|
|
985
1094
|
showUploadList: true,
|
|
986
1095
|
customRequest
|
|
987
1096
|
},
|
|
988
|
-
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(
|
|
1097
|
+
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(import_icons5.InboxOutlined, null)),
|
|
989
1098
|
/* @__PURE__ */ import_react26.default.createElement("p", null, "Click or drag file to upload")
|
|
990
1099
|
));
|
|
991
1100
|
};
|
|
@@ -1382,16 +1491,13 @@ var LineChart = (props) => {
|
|
|
1382
1491
|
return /* @__PURE__ */ import_react34.default.createElement("div", { className: props.className }, /* @__PURE__ */ import_react34.default.createElement("canvas", { ref: chartRef }));
|
|
1383
1492
|
};
|
|
1384
1493
|
|
|
1385
|
-
// src/Components/highchart.tsx
|
|
1386
|
-
var import_react35 = __toESM(require("react"));
|
|
1387
|
-
|
|
1388
1494
|
// src/Components/DoubleBarChart.tsx
|
|
1389
|
-
var
|
|
1495
|
+
var import_react35 = __toESM(require("react"));
|
|
1390
1496
|
var import_auto2 = __toESM(require("chart.js/auto"));
|
|
1391
1497
|
var DoubleBarChart = (props) => {
|
|
1392
|
-
const chartRef = (0,
|
|
1393
|
-
const chartInstance = (0,
|
|
1394
|
-
(0,
|
|
1498
|
+
const chartRef = (0, import_react35.useRef)(null);
|
|
1499
|
+
const chartInstance = (0, import_react35.useRef)(null);
|
|
1500
|
+
(0, import_react35.useEffect)(() => {
|
|
1395
1501
|
if (chartRef.current) {
|
|
1396
1502
|
if (chartInstance.current) {
|
|
1397
1503
|
chartInstance.current.destroy();
|
|
@@ -1460,11 +1566,11 @@ var DoubleBarChart = (props) => {
|
|
|
1460
1566
|
}
|
|
1461
1567
|
};
|
|
1462
1568
|
}, []);
|
|
1463
|
-
return /* @__PURE__ */
|
|
1569
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", { className: props.className }, /* @__PURE__ */ import_react35.default.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ import_react35.default.createElement("canvas", { ref: chartRef }));
|
|
1464
1570
|
};
|
|
1465
1571
|
|
|
1466
1572
|
// src/Components/BarChart.tsx
|
|
1467
|
-
var
|
|
1573
|
+
var import_react36 = __toESM(require("react"));
|
|
1468
1574
|
var import_react_chartjs_24 = require("react-chartjs-2");
|
|
1469
1575
|
var import_chart4 = require("chart.js");
|
|
1470
1576
|
import_chart4.Chart.register(import_chart4.BarElement, import_chart4.CategoryScale, import_chart4.LinearScale, import_chart4.Tooltip);
|
|
@@ -1526,7 +1632,7 @@ var BarChart = (props) => {
|
|
|
1526
1632
|
}
|
|
1527
1633
|
}
|
|
1528
1634
|
};
|
|
1529
|
-
return /* @__PURE__ */
|
|
1635
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { className: props.className }, /* @__PURE__ */ import_react36.default.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ import_react36.default.createElement(import_react_chartjs_24.Bar, { data, options }));
|
|
1530
1636
|
};
|
|
1531
1637
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1532
1638
|
0 && (module.exports = {
|
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) {
|
|
@@ -356,7 +358,7 @@ var ButtonElement = (props) => {
|
|
|
356
358
|
}
|
|
357
359
|
}).catch((error) => console.error("Error fetching SVG:", error));
|
|
358
360
|
}
|
|
359
|
-
}, [
|
|
361
|
+
}, []);
|
|
360
362
|
const handleMouseEnter = () => {
|
|
361
363
|
if (hoverColor && originalSvgContent) {
|
|
362
364
|
const tempDiv = document.createElement("div");
|
|
@@ -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
|
|
|
@@ -608,7 +612,7 @@ var Navbar = (props) => {
|
|
|
608
612
|
};
|
|
609
613
|
|
|
610
614
|
// src/Components/TableElement.tsx
|
|
611
|
-
import React20, { useState as useState6 } from "react";
|
|
615
|
+
import React20, { useState as useState6, useEffect as useEffect3 } from "react";
|
|
612
616
|
import { Table as Table2 } from "antd";
|
|
613
617
|
|
|
614
618
|
// src/Components/Model.tsx
|
|
@@ -617,18 +621,48 @@ import { Modal } from "antd";
|
|
|
617
621
|
|
|
618
622
|
// src/Components/ModelBody.tsx
|
|
619
623
|
import React18 from "react";
|
|
624
|
+
import moment from "moment";
|
|
620
625
|
var ModelBody = (props) => {
|
|
621
|
-
return /* @__PURE__ */ React18.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
626
|
+
return /* @__PURE__ */ React18.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
627
|
+
(eachField) => {
|
|
628
|
+
if (eachField.element === "div") {
|
|
629
|
+
return /* @__PURE__ */ React18.createElement("div", { className: eachField.className }, eachField.label, eachField.dateTime ? /* @__PURE__ */ React18.createElement(
|
|
630
|
+
"p",
|
|
631
|
+
{
|
|
632
|
+
style: {
|
|
633
|
+
fontSize: "10px",
|
|
634
|
+
textAlign: eachField.source === "bot" ? "left" : "right"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
moment(eachField.dateTime).format("LT")
|
|
638
|
+
) : "");
|
|
639
|
+
} else if (eachField.element === "input-radio") {
|
|
640
|
+
return /* @__PURE__ */ React18.createElement("div", { className: eachField.className }, /* @__PURE__ */ React18.createElement(RadioElement, { ...eachField }), eachField.dateTime ? /* @__PURE__ */ React18.createElement(
|
|
641
|
+
"p",
|
|
642
|
+
{
|
|
643
|
+
style: {
|
|
644
|
+
fontSize: "10px",
|
|
645
|
+
textAlign: eachField.source === "bot" ? "left" : "right"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
moment(eachField.dateTime).format("LT")
|
|
649
|
+
) : "");
|
|
650
|
+
} else if (eachField.element === "button") {
|
|
651
|
+
return /* @__PURE__ */ React18.createElement("div", { className: eachField.className }, /* @__PURE__ */ React18.createElement(ButtonElement, { ...eachField }), eachField.dateTime ? /* @__PURE__ */ React18.createElement(
|
|
652
|
+
"p",
|
|
653
|
+
{
|
|
654
|
+
style: {
|
|
655
|
+
fontSize: "10px",
|
|
656
|
+
textAlign: eachField.source === "bot" ? "left" : "right"
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
moment(eachField.dateTime).format("LT")
|
|
660
|
+
) : "");
|
|
661
|
+
} else {
|
|
662
|
+
return null;
|
|
663
|
+
}
|
|
630
664
|
}
|
|
631
|
-
|
|
665
|
+
));
|
|
632
666
|
};
|
|
633
667
|
|
|
634
668
|
// src/Components/Model.tsx
|
|
@@ -653,9 +687,22 @@ var ModelElement = (props) => {
|
|
|
653
687
|
margin: "-10px"
|
|
654
688
|
}
|
|
655
689
|
},
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
690
|
+
columns.map((eachColumn) => {
|
|
691
|
+
if (!["index", "View"].includes(eachColumn.key) && eachColumn?.["is_detail"] !== false) {
|
|
692
|
+
return /* @__PURE__ */ React19.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ React19.createElement(
|
|
693
|
+
"span",
|
|
694
|
+
{
|
|
695
|
+
style: {
|
|
696
|
+
fontWeight: "200",
|
|
697
|
+
color: "gray",
|
|
698
|
+
paddingRight: "10px"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
eachColumn.title
|
|
702
|
+
), selectedRecord[eachColumn.key] !== "" ? selectedRecord[eachColumn.key] : "--");
|
|
703
|
+
} else {
|
|
704
|
+
return null;
|
|
705
|
+
}
|
|
659
706
|
})
|
|
660
707
|
)
|
|
661
708
|
},
|
|
@@ -664,12 +711,24 @@ var ModelElement = (props) => {
|
|
|
664
711
|
};
|
|
665
712
|
|
|
666
713
|
// src/Components/TableElement.tsx
|
|
714
|
+
import { EyeOutlined } from "@ant-design/icons";
|
|
667
715
|
var TableElement = (props) => {
|
|
668
716
|
const { thead, tbody } = props;
|
|
669
717
|
const [selectedRecord, setSelectedRecord] = useState6({});
|
|
670
718
|
const [model, setModel] = useState6(false);
|
|
719
|
+
const [dataSource, setDataSource] = useState6([]);
|
|
720
|
+
useEffect3(() => {
|
|
721
|
+
if (tbody) {
|
|
722
|
+
setDataSource(
|
|
723
|
+
tbody.map((row, index) => ({
|
|
724
|
+
...row,
|
|
725
|
+
key: index,
|
|
726
|
+
index: index + 1
|
|
727
|
+
}))
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
}, [tbody]);
|
|
671
731
|
const handleChange = (record) => {
|
|
672
|
-
console.log("record", record);
|
|
673
732
|
if (props.onChange) {
|
|
674
733
|
props.onChange(record);
|
|
675
734
|
}
|
|
@@ -679,8 +738,8 @@ var TableElement = (props) => {
|
|
|
679
738
|
columns = [
|
|
680
739
|
{
|
|
681
740
|
title: "#",
|
|
682
|
-
dataIndex: "
|
|
683
|
-
key: "
|
|
741
|
+
dataIndex: "index",
|
|
742
|
+
key: "index",
|
|
684
743
|
fixed: "left"
|
|
685
744
|
},
|
|
686
745
|
...thead.map((col, ind) => ({
|
|
@@ -691,9 +750,9 @@ var TableElement = (props) => {
|
|
|
691
750
|
render: col.render,
|
|
692
751
|
sorter: {
|
|
693
752
|
compare: (a, b) => {
|
|
694
|
-
if (typeof a[col.key] === "number" && typeof
|
|
753
|
+
if (typeof a[col.key] === "number" && typeof b[col.key] === "number") {
|
|
695
754
|
return a[col.key] - b[col.key];
|
|
696
|
-
} else if (typeof a[col.key] === "string" && typeof
|
|
755
|
+
} else if (typeof a[col.key] === "string" && typeof b[col.key] === "string") {
|
|
697
756
|
return a[col.key].localeCompare(b[col.key]);
|
|
698
757
|
}
|
|
699
758
|
}
|
|
@@ -705,26 +764,34 @@ var TableElement = (props) => {
|
|
|
705
764
|
title: "View",
|
|
706
765
|
dataIndex: "View",
|
|
707
766
|
key: "View",
|
|
708
|
-
render: (_, record) =>
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
767
|
+
render: (_, record) => {
|
|
768
|
+
return /* @__PURE__ */ React20.createElement(
|
|
769
|
+
"a",
|
|
770
|
+
{
|
|
771
|
+
onClick: () => {
|
|
772
|
+
if (props.view) {
|
|
773
|
+
setSelectedRecord(record);
|
|
774
|
+
handleChange(record);
|
|
775
|
+
setModel(true);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
/* @__PURE__ */ React20.createElement(EyeOutlined, null)
|
|
780
|
+
);
|
|
781
|
+
}
|
|
719
782
|
});
|
|
720
783
|
}
|
|
721
784
|
}
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
785
|
+
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
786
|
+
if (extra && extra.currentDataSource) {
|
|
787
|
+
setDataSource(
|
|
788
|
+
extra.currentDataSource.map((row, index) => ({
|
|
789
|
+
...row,
|
|
790
|
+
index: index + 1
|
|
791
|
+
}))
|
|
792
|
+
);
|
|
793
|
+
}
|
|
794
|
+
};
|
|
728
795
|
const onChangePage = (page, pageSize) => {
|
|
729
796
|
if (props.onChange) {
|
|
730
797
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -732,7 +799,11 @@ var TableElement = (props) => {
|
|
|
732
799
|
};
|
|
733
800
|
const rowSelectionConfig = props.rowSelection ? {
|
|
734
801
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
735
|
-
console.log(
|
|
802
|
+
console.log(
|
|
803
|
+
`selectedRowKeys: ${selectedRowKeys}`,
|
|
804
|
+
"selectedRows: ",
|
|
805
|
+
selectedRows
|
|
806
|
+
);
|
|
736
807
|
if (props.onChange) {
|
|
737
808
|
props.onChange(selectedRows);
|
|
738
809
|
}
|
|
@@ -742,19 +813,41 @@ var TableElement = (props) => {
|
|
|
742
813
|
Table2,
|
|
743
814
|
{
|
|
744
815
|
className: props.className,
|
|
745
|
-
pagination: {
|
|
816
|
+
pagination: props.pagination ? {
|
|
746
817
|
showTotal: (total) => `Total: ${total} items`,
|
|
747
|
-
total: count,
|
|
748
|
-
showSizeChanger: count > 10,
|
|
818
|
+
total: props.count,
|
|
819
|
+
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
749
820
|
onChange: onChangePage
|
|
821
|
+
} : false,
|
|
822
|
+
onRow: (record) => {
|
|
823
|
+
return {
|
|
824
|
+
onClick: () => {
|
|
825
|
+
if (props.view) {
|
|
826
|
+
setSelectedRecord(record);
|
|
827
|
+
handleChange(record);
|
|
828
|
+
setModel(true);
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
style: { cursor: "pointer" }
|
|
832
|
+
};
|
|
750
833
|
},
|
|
751
834
|
rowSelection: rowSelectionConfig,
|
|
752
835
|
dataSource,
|
|
753
836
|
columns,
|
|
754
837
|
size: props.size,
|
|
755
|
-
bordered: true
|
|
838
|
+
bordered: true,
|
|
839
|
+
onChange: onChangeTable
|
|
756
840
|
}
|
|
757
|
-
), model && /* @__PURE__ */ React20.createElement(
|
|
841
|
+
), model && /* @__PURE__ */ React20.createElement(
|
|
842
|
+
ModelElement,
|
|
843
|
+
{
|
|
844
|
+
selectedRecord,
|
|
845
|
+
...props,
|
|
846
|
+
columns,
|
|
847
|
+
model,
|
|
848
|
+
onCancel: () => setModel(false)
|
|
849
|
+
}
|
|
850
|
+
));
|
|
758
851
|
};
|
|
759
852
|
|
|
760
853
|
// src/Components/DatePicker.tsx
|
|
@@ -762,6 +855,7 @@ import React21, { useState as useState7 } from "react";
|
|
|
762
855
|
import { DatePicker } from "antd";
|
|
763
856
|
import dayjs from "dayjs";
|
|
764
857
|
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
858
|
+
import moment2 from "moment";
|
|
765
859
|
dayjs.extend(customParseFormat);
|
|
766
860
|
var DatePickerElement = (props) => {
|
|
767
861
|
const [dateState, setDateState] = useState7("");
|
|
@@ -779,9 +873,13 @@ var DatePickerElement = (props) => {
|
|
|
779
873
|
}
|
|
780
874
|
}
|
|
781
875
|
};
|
|
876
|
+
const disabledDate = (current) => {
|
|
877
|
+
return current && current > moment2();
|
|
878
|
+
};
|
|
782
879
|
return /* @__PURE__ */ React21.createElement("div", null, /* @__PURE__ */ React21.createElement(
|
|
783
880
|
DatePicker,
|
|
784
881
|
{
|
|
882
|
+
disabledDate,
|
|
785
883
|
placeholder: props.placeholder,
|
|
786
884
|
value: dateState,
|
|
787
885
|
format: { format: "DD-MM-YYYY" },
|
|
@@ -794,13 +892,14 @@ var DatePickerElement = (props) => {
|
|
|
794
892
|
import React22 from "react";
|
|
795
893
|
import { DatePicker as DatePicker2, Space } from "antd";
|
|
796
894
|
import dayjs2 from "dayjs";
|
|
895
|
+
import moment3 from "moment";
|
|
797
896
|
var DateRangePickerElement = (props) => {
|
|
798
897
|
const { RangePicker } = DatePicker2;
|
|
799
898
|
const handleChange = (dates, dateStrings) => {
|
|
800
|
-
if (dates
|
|
801
|
-
props.onChange(dateStrings);
|
|
899
|
+
if (dates) {
|
|
900
|
+
props.onChange && props.onChange(dateStrings);
|
|
802
901
|
} else {
|
|
803
|
-
|
|
902
|
+
props.onChange && props.onChange("clear");
|
|
804
903
|
}
|
|
805
904
|
};
|
|
806
905
|
const rangePresets = [
|
|
@@ -809,7 +908,17 @@ var DateRangePickerElement = (props) => {
|
|
|
809
908
|
{ label: "Last 30 Days", value: [dayjs2().add(-30, "d"), dayjs2()] },
|
|
810
909
|
{ label: "Last 90 Days", value: [dayjs2().add(-90, "d"), dayjs2()] }
|
|
811
910
|
];
|
|
812
|
-
|
|
911
|
+
const disabledDate = (current) => {
|
|
912
|
+
return current && current > moment3();
|
|
913
|
+
};
|
|
914
|
+
return /* @__PURE__ */ React22.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React22.createElement(
|
|
915
|
+
RangePicker,
|
|
916
|
+
{
|
|
917
|
+
disabledDate,
|
|
918
|
+
presets: rangePresets,
|
|
919
|
+
onChange: handleChange
|
|
920
|
+
}
|
|
921
|
+
));
|
|
813
922
|
};
|
|
814
923
|
|
|
815
924
|
// src/Components/Image.tsx
|
|
@@ -973,7 +1082,7 @@ var Upload2 = (props) => {
|
|
|
973
1082
|
};
|
|
974
1083
|
|
|
975
1084
|
// src/Components/OtpElement.tsx
|
|
976
|
-
import React30, { useState as useState11, useRef, useEffect as
|
|
1085
|
+
import React30, { useState as useState11, useRef, useEffect as useEffect4 } from "react";
|
|
977
1086
|
import { Input as Input3 } from "antd";
|
|
978
1087
|
var OtpElement = (props) => {
|
|
979
1088
|
const length = props.length;
|
|
@@ -1010,7 +1119,7 @@ var OtpElement = (props) => {
|
|
|
1010
1119
|
});
|
|
1011
1120
|
}
|
|
1012
1121
|
};
|
|
1013
|
-
|
|
1122
|
+
useEffect4(() => {
|
|
1014
1123
|
inputRefs.current[0]?.focus();
|
|
1015
1124
|
}, []);
|
|
1016
1125
|
return /* @__PURE__ */ React30.createElement("div", { className: props.containerClassName }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React30.createElement(
|
|
@@ -1262,7 +1371,7 @@ var HorizontalBarChart = (props) => {
|
|
|
1262
1371
|
};
|
|
1263
1372
|
|
|
1264
1373
|
// src/Components/LineChart.tsx
|
|
1265
|
-
import React34, { useEffect as
|
|
1374
|
+
import React34, { useEffect as useEffect5, useRef as useRef2 } from "react";
|
|
1266
1375
|
import Chart from "chart.js/auto";
|
|
1267
1376
|
var LineChart = (props) => {
|
|
1268
1377
|
const chartRef = useRef2(null);
|
|
@@ -1273,7 +1382,7 @@ var LineChart = (props) => {
|
|
|
1273
1382
|
{ label: "Conversion Rate", data: [50, 100, 150, 180, 50] }
|
|
1274
1383
|
];
|
|
1275
1384
|
const labels = ["Instagram", "Whatsapp", "Messages", "Telegram", "Linkedin"];
|
|
1276
|
-
|
|
1385
|
+
useEffect5(() => {
|
|
1277
1386
|
if (chartRef.current) {
|
|
1278
1387
|
if (chartInstance.current) {
|
|
1279
1388
|
chartInstance.current.destroy();
|
|
@@ -1334,16 +1443,13 @@ var LineChart = (props) => {
|
|
|
1334
1443
|
return /* @__PURE__ */ React34.createElement("div", { className: props.className }, /* @__PURE__ */ React34.createElement("canvas", { ref: chartRef }));
|
|
1335
1444
|
};
|
|
1336
1445
|
|
|
1337
|
-
// src/Components/highchart.tsx
|
|
1338
|
-
import React35 from "react";
|
|
1339
|
-
|
|
1340
1446
|
// src/Components/DoubleBarChart.tsx
|
|
1341
|
-
import
|
|
1447
|
+
import React35, { useEffect as useEffect6, useRef as useRef3 } from "react";
|
|
1342
1448
|
import Chart2 from "chart.js/auto";
|
|
1343
1449
|
var DoubleBarChart = (props) => {
|
|
1344
1450
|
const chartRef = useRef3(null);
|
|
1345
1451
|
const chartInstance = useRef3(null);
|
|
1346
|
-
|
|
1452
|
+
useEffect6(() => {
|
|
1347
1453
|
if (chartRef.current) {
|
|
1348
1454
|
if (chartInstance.current) {
|
|
1349
1455
|
chartInstance.current.destroy();
|
|
@@ -1412,11 +1518,11 @@ var DoubleBarChart = (props) => {
|
|
|
1412
1518
|
}
|
|
1413
1519
|
};
|
|
1414
1520
|
}, []);
|
|
1415
|
-
return /* @__PURE__ */
|
|
1521
|
+
return /* @__PURE__ */ React35.createElement("div", { className: props.className }, /* @__PURE__ */ React35.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ React35.createElement("canvas", { ref: chartRef }));
|
|
1416
1522
|
};
|
|
1417
1523
|
|
|
1418
1524
|
// src/Components/BarChart.tsx
|
|
1419
|
-
import
|
|
1525
|
+
import React36 from "react";
|
|
1420
1526
|
import { Bar as Bar2 } from "react-chartjs-2";
|
|
1421
1527
|
import {
|
|
1422
1528
|
Chart as ChartJS4,
|
|
@@ -1484,7 +1590,7 @@ var BarChart = (props) => {
|
|
|
1484
1590
|
}
|
|
1485
1591
|
}
|
|
1486
1592
|
};
|
|
1487
|
-
return /* @__PURE__ */
|
|
1593
|
+
return /* @__PURE__ */ React36.createElement("div", { className: props.className }, /* @__PURE__ */ React36.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ React36.createElement(Bar2, { data, options }));
|
|
1488
1594
|
};
|
|
1489
1595
|
export {
|
|
1490
1596
|
AddMoreTable,
|
package/package.json
CHANGED
package/postcss.config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
plugins: {
|
|
3
|
-
tailwindcss: {},
|
|
4
|
-
autoprefixer: {},
|
|
5
|
-
},
|
|
6
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
plugins: {
|
|
3
|
+
tailwindcss: {},
|
|
4
|
+
autoprefixer: {},
|
|
5
|
+
},
|
|
6
|
+
}
|
package/tailwind.config.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
|
|
4
|
-
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
|
5
|
-
theme: {
|
|
6
|
-
extend: {},
|
|
7
|
-
},
|
|
8
|
-
plugins: [],
|
|
9
|
-
}
|
|
10
|
-
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
|
|
4
|
+
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
|
5
|
+
theme: {
|
|
6
|
+
extend: {},
|
|
7
|
+
},
|
|
8
|
+
plugins: [],
|
|
9
|
+
}
|
|
10
|
+
|