@apexcura/ui-components 0.0.15-Beta24 → 0.0.15-Beta25
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.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +118 -81
- package/dist/index.mjs +113 -79
- package/package.json +1 -1
- package/dist/index.css +0 -482
package/dist/index.d.mts
CHANGED
|
@@ -72,6 +72,14 @@ type ElementType = {
|
|
|
72
72
|
pagination?: boolean;
|
|
73
73
|
is_detail?: boolean;
|
|
74
74
|
dateTime?: string;
|
|
75
|
+
minRows?: number;
|
|
76
|
+
maxRows?: number;
|
|
77
|
+
mode?: "multiple" | "tags" | undefined;
|
|
78
|
+
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
79
|
+
weekrange?: boolean;
|
|
80
|
+
message?: string;
|
|
81
|
+
description?: string;
|
|
82
|
+
notificationType?: 'success' | 'info' | 'warning' | 'error';
|
|
75
83
|
};
|
|
76
84
|
|
|
77
85
|
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
@@ -139,4 +147,10 @@ declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
|
|
|
139
147
|
|
|
140
148
|
declare const BarChart: (props: ElementType) => React$1.JSX.Element;
|
|
141
149
|
|
|
142
|
-
|
|
150
|
+
declare const DivContainer: (props: ElementType) => React$1.JSX.Element;
|
|
151
|
+
|
|
152
|
+
declare const ColorPickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
153
|
+
|
|
154
|
+
declare const NotificationAlert: (props: ElementType) => React$1.JSX.Element;
|
|
155
|
+
|
|
156
|
+
export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
|
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,14 @@ type ElementType = {
|
|
|
72
72
|
pagination?: boolean;
|
|
73
73
|
is_detail?: boolean;
|
|
74
74
|
dateTime?: string;
|
|
75
|
+
minRows?: number;
|
|
76
|
+
maxRows?: number;
|
|
77
|
+
mode?: "multiple" | "tags" | undefined;
|
|
78
|
+
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
79
|
+
weekrange?: boolean;
|
|
80
|
+
message?: string;
|
|
81
|
+
description?: string;
|
|
82
|
+
notificationType?: 'success' | 'info' | 'warning' | 'error';
|
|
75
83
|
};
|
|
76
84
|
|
|
77
85
|
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
@@ -139,4 +147,10 @@ declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
|
|
|
139
147
|
|
|
140
148
|
declare const BarChart: (props: ElementType) => React$1.JSX.Element;
|
|
141
149
|
|
|
142
|
-
|
|
150
|
+
declare const DivContainer: (props: ElementType) => React$1.JSX.Element;
|
|
151
|
+
|
|
152
|
+
declare const ColorPickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
153
|
+
|
|
154
|
+
declare const NotificationAlert: (props: ElementType) => React$1.JSX.Element;
|
|
155
|
+
|
|
156
|
+
export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
|
package/dist/index.js
CHANGED
|
@@ -36,8 +36,10 @@ __export(src_exports, {
|
|
|
36
36
|
CheckboxElement: () => CheckboxElement,
|
|
37
37
|
CircleDonut: () => CircleDonut,
|
|
38
38
|
CkEditor: () => CkEditor,
|
|
39
|
+
ColorPickerElement: () => ColorPickerElement,
|
|
39
40
|
DatePickerElement: () => DatePickerElement,
|
|
40
41
|
DateRangePickerElement: () => DateRangePickerElement,
|
|
42
|
+
DivContainer: () => DivContainer,
|
|
41
43
|
DoubleBarChart: () => DoubleBarChart,
|
|
42
44
|
DropDownGroup: () => DropDownGroup,
|
|
43
45
|
FileUpload: () => FileUpload,
|
|
@@ -46,6 +48,7 @@ __export(src_exports, {
|
|
|
46
48
|
LineChart: () => LineChart,
|
|
47
49
|
MultipleSelectElement: () => MultipleSelectElement,
|
|
48
50
|
Navbar: () => Navbar,
|
|
51
|
+
NotificationAlert: () => NotificationAlert,
|
|
49
52
|
NumberElement: () => NumberElement,
|
|
50
53
|
OtpElement: () => OtpElement,
|
|
51
54
|
PasswordElement: () => PasswordElement,
|
|
@@ -117,7 +120,7 @@ var PasswordElement = (props) => {
|
|
|
117
120
|
},
|
|
118
121
|
iconRender: renderVisibilityIcon,
|
|
119
122
|
visibilityToggle: {
|
|
120
|
-
visible: passwordVisible,
|
|
123
|
+
visible: passwordVisible && passwordVisible,
|
|
121
124
|
onVisibleChange: handleVisibilityToggle
|
|
122
125
|
}
|
|
123
126
|
}
|
|
@@ -165,20 +168,19 @@ var TextareaElement = (props) => {
|
|
|
165
168
|
props.onChange(e.target.value);
|
|
166
169
|
}
|
|
167
170
|
};
|
|
171
|
+
const defaultMinRows = 2;
|
|
172
|
+
const defaultMaxRows = 6;
|
|
168
173
|
return /* @__PURE__ */ import_react4.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react4.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react4.default.createElement(
|
|
169
174
|
TextArea,
|
|
170
175
|
{
|
|
171
176
|
placeholder: props.placeholder,
|
|
172
177
|
allowClear: true,
|
|
173
|
-
defaultValue: props.defaultValue,
|
|
174
178
|
disabled: props.disabled,
|
|
175
179
|
id: props.name,
|
|
176
|
-
|
|
180
|
+
autoSize: { minRows: props.minRows ? props.minRows : defaultMinRows, maxRows: props.maxRows ? props.maxRows : defaultMaxRows },
|
|
177
181
|
className: props.className,
|
|
178
|
-
variant: props.variant,
|
|
179
182
|
name: props.name,
|
|
180
183
|
showCount: true,
|
|
181
|
-
maxLength: props.maxLength,
|
|
182
184
|
onChange: (e) => {
|
|
183
185
|
handleChange(e);
|
|
184
186
|
}
|
|
@@ -194,11 +196,9 @@ var filterOptions = (input, option) => {
|
|
|
194
196
|
};
|
|
195
197
|
var SelectElement = (props) => {
|
|
196
198
|
const handleChange = (value) => {
|
|
197
|
-
console.log("++=====", typeof value);
|
|
198
199
|
if (props.onChange) {
|
|
199
200
|
if (typeof value === "string") {
|
|
200
201
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
201
|
-
console.log(filterOption2);
|
|
202
202
|
props.onChange(filterOption2);
|
|
203
203
|
} else {
|
|
204
204
|
const selectedOptions = value ? value.map((eachVal) => {
|
|
@@ -208,7 +208,7 @@ var SelectElement = (props) => {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
return /* @__PURE__ */ import_react5.default.createElement("div", { className:
|
|
211
|
+
return /* @__PURE__ */ import_react5.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: props.name, className: props.className }, props.label), /* @__PURE__ */ import_react5.default.createElement(
|
|
212
212
|
import_antd5.Select,
|
|
213
213
|
{
|
|
214
214
|
options: props.options,
|
|
@@ -217,7 +217,8 @@ var SelectElement = (props) => {
|
|
|
217
217
|
filterOption: filterOptions,
|
|
218
218
|
showSearch: true,
|
|
219
219
|
className: props.className,
|
|
220
|
-
onChange: handleChange
|
|
220
|
+
onChange: handleChange,
|
|
221
|
+
mode: props.mode
|
|
221
222
|
}
|
|
222
223
|
));
|
|
223
224
|
};
|
|
@@ -232,7 +233,6 @@ var RadioElement = (props) => {
|
|
|
232
233
|
const [selectedValue, setSelectedValue] = (0, import_react6.useState)(props.value);
|
|
233
234
|
const optionType = props.optionType === "button" ? "button" : void 0;
|
|
234
235
|
const handleChange = (option) => {
|
|
235
|
-
console.log(option);
|
|
236
236
|
setSelectedValue(option);
|
|
237
237
|
setIsDisabled(true);
|
|
238
238
|
if (props.onChange) {
|
|
@@ -272,19 +272,20 @@ var RadioElement = (props) => {
|
|
|
272
272
|
var import_react7 = __toESM(require("react"));
|
|
273
273
|
var import_antd7 = require("antd");
|
|
274
274
|
var CheckboxGroup = import_antd7.Checkbox.Group;
|
|
275
|
-
var defaultCheckedList = [];
|
|
275
|
+
var defaultCheckedList = ["lakku"];
|
|
276
276
|
var CheckboxElement = (props) => {
|
|
277
277
|
const [checkedList, setCheckedList] = (0, import_react7.useState)(defaultCheckedList);
|
|
278
|
-
const
|
|
278
|
+
const options = props.options || [];
|
|
279
|
+
const checkAll = options.length > 0 && options.length === checkedList.length;
|
|
279
280
|
const handleChange = (list) => {
|
|
280
281
|
setCheckedList(list);
|
|
281
282
|
if (props.onChange) {
|
|
282
|
-
const selectedOptions =
|
|
283
|
+
const selectedOptions = options.filter((option) => list.includes(option.value));
|
|
283
284
|
props.onChange(selectedOptions);
|
|
284
285
|
}
|
|
285
286
|
};
|
|
286
287
|
const onHandleAllChanges = (e) => {
|
|
287
|
-
const newList = e.target.checked ?
|
|
288
|
+
const newList = e.target.checked ? options.map((option) => option.value) : [];
|
|
288
289
|
setCheckedList(newList);
|
|
289
290
|
if (props.onChange) {
|
|
290
291
|
props.onChange(newList);
|
|
@@ -307,8 +308,8 @@ var CheckboxElement = (props) => {
|
|
|
307
308
|
disabled: props.disabled,
|
|
308
309
|
style: props.styles,
|
|
309
310
|
className: props.className,
|
|
310
|
-
options
|
|
311
|
-
value: checkedList,
|
|
311
|
+
options,
|
|
312
|
+
value: checkedList && checkedList,
|
|
312
313
|
onChange: handleChange
|
|
313
314
|
}
|
|
314
315
|
));
|
|
@@ -324,7 +325,6 @@ var CkEditor = (props) => {
|
|
|
324
325
|
var import_react9 = __toESM(require("react"));
|
|
325
326
|
var import_antd8 = require("antd");
|
|
326
327
|
var onSearch = (value) => {
|
|
327
|
-
console.log("search:", value);
|
|
328
328
|
};
|
|
329
329
|
var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
330
330
|
var SingleSelectElement = (props) => {
|
|
@@ -605,7 +605,6 @@ var AddMoreTable = (props) => {
|
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
(0, import_react13.useEffect)(() => {
|
|
608
|
-
console.log(rows);
|
|
609
608
|
}, [rows]);
|
|
610
609
|
const renderInputElement = (element, value) => {
|
|
611
610
|
if (!element) return null;
|
|
@@ -750,11 +749,9 @@ var Navbar = (props) => {
|
|
|
750
749
|
// src/Components/TableElement.tsx
|
|
751
750
|
var import_react19 = __toESM(require("react"));
|
|
752
751
|
var import_antd13 = require("antd");
|
|
753
|
-
var import_icons5 = require("@ant-design/icons");
|
|
754
752
|
var TableElement = (props) => {
|
|
755
753
|
const { thead, tbody } = props;
|
|
756
754
|
const [dataSource, setDataSource] = (0, import_react19.useState)([]);
|
|
757
|
-
const defaultVal = props.value;
|
|
758
755
|
(0, import_react19.useEffect)(() => {
|
|
759
756
|
if (tbody) {
|
|
760
757
|
setDataSource(
|
|
@@ -766,13 +763,6 @@ var TableElement = (props) => {
|
|
|
766
763
|
);
|
|
767
764
|
}
|
|
768
765
|
}, [tbody]);
|
|
769
|
-
const handleChange = (record) => {
|
|
770
|
-
if (record) {
|
|
771
|
-
props.onChange && props.onChange(record);
|
|
772
|
-
} else {
|
|
773
|
-
props.onChange && props.onChange(defaultVal);
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
766
|
let columns = [];
|
|
777
767
|
if (thead) {
|
|
778
768
|
columns = [
|
|
@@ -799,26 +789,6 @@ var TableElement = (props) => {
|
|
|
799
789
|
}
|
|
800
790
|
}))
|
|
801
791
|
];
|
|
802
|
-
if (props.view) {
|
|
803
|
-
columns.push({
|
|
804
|
-
title: "View",
|
|
805
|
-
dataIndex: "View",
|
|
806
|
-
key: "View",
|
|
807
|
-
render: (_, record) => {
|
|
808
|
-
return /* @__PURE__ */ import_react19.default.createElement(
|
|
809
|
-
"a",
|
|
810
|
-
{
|
|
811
|
-
onClick: () => {
|
|
812
|
-
if (props.view) {
|
|
813
|
-
handleChange(record);
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
},
|
|
817
|
-
/* @__PURE__ */ import_react19.default.createElement(import_icons5.EyeOutlined, null)
|
|
818
|
-
);
|
|
819
|
-
}
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
792
|
}
|
|
823
793
|
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
824
794
|
if (extra && extra.currentDataSource) {
|
|
@@ -837,11 +807,6 @@ var TableElement = (props) => {
|
|
|
837
807
|
};
|
|
838
808
|
const rowSelectionConfig = props.rowSelection ? {
|
|
839
809
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
840
|
-
console.log(
|
|
841
|
-
`selectedRowKeys: ${selectedRowKeys}`,
|
|
842
|
-
"selectedRows: ",
|
|
843
|
-
selectedRows
|
|
844
|
-
);
|
|
845
810
|
if (props.onChange) {
|
|
846
811
|
props.onChange(selectedRows);
|
|
847
812
|
}
|
|
@@ -859,16 +824,6 @@ var TableElement = (props) => {
|
|
|
859
824
|
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
860
825
|
onChange: onChangePage
|
|
861
826
|
} : false,
|
|
862
|
-
onRow: (record) => {
|
|
863
|
-
return {
|
|
864
|
-
onClick: () => {
|
|
865
|
-
if (props.view) {
|
|
866
|
-
handleChange(record);
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
style: { cursor: "pointer" }
|
|
870
|
-
};
|
|
871
|
-
},
|
|
872
827
|
rowSelection: rowSelectionConfig,
|
|
873
828
|
dataSource,
|
|
874
829
|
columns,
|
|
@@ -890,10 +845,9 @@ var DatePickerElement = (props) => {
|
|
|
890
845
|
const [dateState, setDateState] = (0, import_react20.useState)("");
|
|
891
846
|
const handleChange = (date, dateString) => {
|
|
892
847
|
if (date) {
|
|
893
|
-
const formattedDate = dateString;
|
|
894
848
|
setDateState(date);
|
|
895
849
|
if (props.onChange) {
|
|
896
|
-
props.onChange(
|
|
850
|
+
props.onChange(dateString);
|
|
897
851
|
}
|
|
898
852
|
} else {
|
|
899
853
|
setDateState("");
|
|
@@ -911,8 +865,9 @@ var DatePickerElement = (props) => {
|
|
|
911
865
|
disabledDate,
|
|
912
866
|
placeholder: props.placeholder,
|
|
913
867
|
value: dateState,
|
|
914
|
-
format:
|
|
915
|
-
onChange: handleChange
|
|
868
|
+
format: "DD-MM-YYYY",
|
|
869
|
+
onChange: handleChange,
|
|
870
|
+
picker: props.picker
|
|
916
871
|
}
|
|
917
872
|
));
|
|
918
873
|
};
|
|
@@ -921,34 +876,59 @@ var DatePickerElement = (props) => {
|
|
|
921
876
|
var import_react21 = __toESM(require("react"));
|
|
922
877
|
var import_antd15 = require("antd");
|
|
923
878
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
924
|
-
var import_moment2 = __toESM(require("moment"));
|
|
925
879
|
var DateRangePickerElement = (props) => {
|
|
926
880
|
const { value } = props;
|
|
927
881
|
const { RangePicker } = import_antd15.DatePicker;
|
|
928
882
|
const dateValues = value ? value.map((date) => (0, import_dayjs2.default)(date, "DD-MM-YYYY")) : null;
|
|
883
|
+
const today = (0, import_dayjs2.default)();
|
|
929
884
|
const handleChange = (dates, dateStrings) => {
|
|
930
885
|
if (dates) {
|
|
931
|
-
|
|
886
|
+
let [start, end] = dates;
|
|
887
|
+
if (start && start.isBefore(today) && end && end.isAfter(today)) {
|
|
888
|
+
end = today;
|
|
889
|
+
}
|
|
890
|
+
const adjustedDates = [start, end].map(
|
|
891
|
+
(date) => date ? date.format("DD-MM-YYYY") : null
|
|
892
|
+
);
|
|
893
|
+
props.onChange && props.onChange(adjustedDates);
|
|
932
894
|
} else {
|
|
933
895
|
props.onChange && props.onChange("");
|
|
934
896
|
}
|
|
935
897
|
};
|
|
936
|
-
|
|
937
|
-
{ label: "Last 7 Days", value: [(0, import_dayjs2.default)().
|
|
938
|
-
{ label: "Last 14 Days", value: [(0, import_dayjs2.default)().
|
|
939
|
-
{ label: "Last 30 Days", value: [(0, import_dayjs2.default)().
|
|
940
|
-
{ label: "Last 90 Days", value: [(0, import_dayjs2.default)().
|
|
898
|
+
let rangePresets = [
|
|
899
|
+
{ label: "Last 7 Days", value: [(0, import_dayjs2.default)().subtract(6, "d"), today] },
|
|
900
|
+
{ label: "Last 14 Days", value: [(0, import_dayjs2.default)().subtract(13, "d"), today] },
|
|
901
|
+
{ label: "Last 30 Days", value: [(0, import_dayjs2.default)().subtract(29, "d"), today] },
|
|
902
|
+
{ label: "Last 90 Days", value: [(0, import_dayjs2.default)().subtract(89, "d"), today] }
|
|
941
903
|
];
|
|
942
904
|
const disabledDate = (current) => {
|
|
943
|
-
|
|
905
|
+
if (props.weekrange) {
|
|
906
|
+
return current && current < today.subtract(7, "d") || current > today;
|
|
907
|
+
}
|
|
908
|
+
return current && current > today;
|
|
909
|
+
};
|
|
910
|
+
const handleCalendarChange = (dates) => {
|
|
911
|
+
if (dates) {
|
|
912
|
+
let [start, end] = dates;
|
|
913
|
+
if (start && start.isBefore(today) && end && end.isAfter(today)) {
|
|
914
|
+
end = today;
|
|
915
|
+
}
|
|
916
|
+
const adjustedDates = [start, end].map(
|
|
917
|
+
(date) => date ? date.format("DD-MM-YYYY") : null
|
|
918
|
+
);
|
|
919
|
+
props.onChange && props.onChange(adjustedDates);
|
|
920
|
+
} else {
|
|
921
|
+
props.onChange && props.onChange("");
|
|
922
|
+
}
|
|
944
923
|
};
|
|
945
924
|
return /* @__PURE__ */ import_react21.default.createElement(import_antd15.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react21.default.createElement(
|
|
946
925
|
RangePicker,
|
|
947
926
|
{
|
|
948
927
|
disabledDate,
|
|
949
|
-
presets: rangePresets,
|
|
950
|
-
format:
|
|
928
|
+
...!props.weekrange && { presets: rangePresets },
|
|
929
|
+
format: "DD-MM-YYYY",
|
|
951
930
|
onChange: handleChange,
|
|
931
|
+
onCalendarChange: handleCalendarChange,
|
|
952
932
|
value: dateValues
|
|
953
933
|
}
|
|
954
934
|
));
|
|
@@ -1040,10 +1020,12 @@ var DropDownGroup = (props) => {
|
|
|
1040
1020
|
// src/Components/FilesUpload.tsx
|
|
1041
1021
|
var import_react25 = __toESM(require("react"));
|
|
1042
1022
|
var import_antd18 = require("antd");
|
|
1043
|
-
var
|
|
1023
|
+
var import_icons5 = require("@ant-design/icons");
|
|
1044
1024
|
var FileUpload = (props) => {
|
|
1045
1025
|
const { Dragger } = import_antd18.Upload;
|
|
1046
|
-
const [files, setFiles] = (0, import_react25.useState)(
|
|
1026
|
+
const [files, setFiles] = (0, import_react25.useState)(
|
|
1027
|
+
props.value && props.value.length > 0 ? props.value : []
|
|
1028
|
+
);
|
|
1047
1029
|
const handleChange = ({ fileList }) => {
|
|
1048
1030
|
setFiles(fileList);
|
|
1049
1031
|
if (props.onChange) {
|
|
@@ -1071,7 +1053,7 @@ var FileUpload = (props) => {
|
|
|
1071
1053
|
showUploadList: true,
|
|
1072
1054
|
customRequest
|
|
1073
1055
|
},
|
|
1074
|
-
/* @__PURE__ */ import_react25.default.createElement("p", null, /* @__PURE__ */ import_react25.default.createElement(
|
|
1056
|
+
/* @__PURE__ */ import_react25.default.createElement("p", null, /* @__PURE__ */ import_react25.default.createElement(import_icons5.InboxOutlined, null)),
|
|
1075
1057
|
/* @__PURE__ */ import_react25.default.createElement("p", null, "Click or drag file to upload")
|
|
1076
1058
|
));
|
|
1077
1059
|
};
|
|
@@ -1092,7 +1074,6 @@ var TabsElement = (props) => {
|
|
|
1092
1074
|
var import_react27 = __toESM(require("react"));
|
|
1093
1075
|
var import_antd20 = require("antd");
|
|
1094
1076
|
var onChange = (checked) => {
|
|
1095
|
-
console.log(`switch to ${checked}`);
|
|
1096
1077
|
};
|
|
1097
1078
|
var SwitchElement = () => /* @__PURE__ */ import_react27.default.createElement(import_antd20.Switch, { defaultChecked: true, onChange });
|
|
1098
1079
|
|
|
@@ -1103,12 +1084,12 @@ var Upload2 = (props) => {
|
|
|
1103
1084
|
const handleFileChange = (e) => {
|
|
1104
1085
|
setFile(e.target.files[0]);
|
|
1105
1086
|
if (props.onChange) {
|
|
1087
|
+
console.log(e.target.files[0]);
|
|
1106
1088
|
props.onChange(e.target.files[0]);
|
|
1107
1089
|
}
|
|
1108
1090
|
};
|
|
1109
1091
|
const handleUpload = async () => {
|
|
1110
1092
|
if (!file) {
|
|
1111
|
-
console.error("No file selected");
|
|
1112
1093
|
return;
|
|
1113
1094
|
}
|
|
1114
1095
|
};
|
|
@@ -1611,6 +1592,59 @@ var BarChart = (props) => {
|
|
|
1611
1592
|
};
|
|
1612
1593
|
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(import_react_chartjs_24.Bar, { data, options }));
|
|
1613
1594
|
};
|
|
1595
|
+
|
|
1596
|
+
// src/Components/DivContainer.tsx
|
|
1597
|
+
var import_react36 = __toESM(require("react"));
|
|
1598
|
+
var DivContainer = (props) => {
|
|
1599
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { className: props.className, onClick: props.onClick }, props.label);
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
// src/Components/ColorPickerElement.tsx
|
|
1603
|
+
var import_react37 = __toESM(require("react"));
|
|
1604
|
+
var import_antd22 = require("antd");
|
|
1605
|
+
var ColorPickerElement = (props) => {
|
|
1606
|
+
const onHandleChange = (value, hex) => {
|
|
1607
|
+
console.log(hex);
|
|
1608
|
+
props.onChange && props.onChange(hex);
|
|
1609
|
+
};
|
|
1610
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react37.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react37.default.createElement("br", null), /* @__PURE__ */ import_react37.default.createElement(
|
|
1611
|
+
import_antd22.ColorPicker,
|
|
1612
|
+
{
|
|
1613
|
+
className: props.className,
|
|
1614
|
+
showText: true,
|
|
1615
|
+
defaultValue: props.defaultValue,
|
|
1616
|
+
onChange: onHandleChange
|
|
1617
|
+
}
|
|
1618
|
+
));
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
// src/Components/NotificationAlert.tsx
|
|
1622
|
+
var import_react38 = __toESM(require("react"));
|
|
1623
|
+
var import_antd23 = require("antd");
|
|
1624
|
+
var NotificationAlert = (props) => {
|
|
1625
|
+
const [api, contextHolder] = import_antd23.notification.useNotification();
|
|
1626
|
+
const openNotificationType = (pauseOnHover, type) => {
|
|
1627
|
+
api[type]({
|
|
1628
|
+
message: props.message,
|
|
1629
|
+
description: props.description,
|
|
1630
|
+
duration: 4.5,
|
|
1631
|
+
pauseOnHover
|
|
1632
|
+
});
|
|
1633
|
+
};
|
|
1634
|
+
const openNotification = (pauseOnHover) => {
|
|
1635
|
+
api.open({
|
|
1636
|
+
message: props.message,
|
|
1637
|
+
description: props.description,
|
|
1638
|
+
duration: 4.5,
|
|
1639
|
+
pauseOnHover
|
|
1640
|
+
});
|
|
1641
|
+
};
|
|
1642
|
+
const handleClick = () => {
|
|
1643
|
+
const notificationType = props.notificationType || "info";
|
|
1644
|
+
props.notificationType ? openNotificationType(true, notificationType) : openNotification(true);
|
|
1645
|
+
};
|
|
1646
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: props.containerClassName }, contextHolder, /* @__PURE__ */ import_react38.default.createElement(import_antd23.Button, { type: "primary", onClick: handleClick, className: props.className }, props.label));
|
|
1647
|
+
};
|
|
1614
1648
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1615
1649
|
0 && (module.exports = {
|
|
1616
1650
|
AddMoreTable,
|
|
@@ -1619,8 +1653,10 @@ var BarChart = (props) => {
|
|
|
1619
1653
|
CheckboxElement,
|
|
1620
1654
|
CircleDonut,
|
|
1621
1655
|
CkEditor,
|
|
1656
|
+
ColorPickerElement,
|
|
1622
1657
|
DatePickerElement,
|
|
1623
1658
|
DateRangePickerElement,
|
|
1659
|
+
DivContainer,
|
|
1624
1660
|
DoubleBarChart,
|
|
1625
1661
|
DropDownGroup,
|
|
1626
1662
|
FileUpload,
|
|
@@ -1629,6 +1665,7 @@ var BarChart = (props) => {
|
|
|
1629
1665
|
LineChart,
|
|
1630
1666
|
MultipleSelectElement,
|
|
1631
1667
|
Navbar,
|
|
1668
|
+
NotificationAlert,
|
|
1632
1669
|
NumberElement,
|
|
1633
1670
|
OtpElement,
|
|
1634
1671
|
PasswordElement,
|
package/dist/index.mjs
CHANGED
|
@@ -51,7 +51,7 @@ var PasswordElement = (props) => {
|
|
|
51
51
|
},
|
|
52
52
|
iconRender: renderVisibilityIcon,
|
|
53
53
|
visibilityToggle: {
|
|
54
|
-
visible: passwordVisible,
|
|
54
|
+
visible: passwordVisible && passwordVisible,
|
|
55
55
|
onVisibleChange: handleVisibilityToggle
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -99,20 +99,19 @@ var TextareaElement = (props) => {
|
|
|
99
99
|
props.onChange(e.target.value);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
+
const defaultMinRows = 2;
|
|
103
|
+
const defaultMaxRows = 6;
|
|
102
104
|
return /* @__PURE__ */ React4.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React4.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React4.createElement(
|
|
103
105
|
TextArea,
|
|
104
106
|
{
|
|
105
107
|
placeholder: props.placeholder,
|
|
106
108
|
allowClear: true,
|
|
107
|
-
defaultValue: props.defaultValue,
|
|
108
109
|
disabled: props.disabled,
|
|
109
110
|
id: props.name,
|
|
110
|
-
|
|
111
|
+
autoSize: { minRows: props.minRows ? props.minRows : defaultMinRows, maxRows: props.maxRows ? props.maxRows : defaultMaxRows },
|
|
111
112
|
className: props.className,
|
|
112
|
-
variant: props.variant,
|
|
113
113
|
name: props.name,
|
|
114
114
|
showCount: true,
|
|
115
|
-
maxLength: props.maxLength,
|
|
116
115
|
onChange: (e) => {
|
|
117
116
|
handleChange(e);
|
|
118
117
|
}
|
|
@@ -128,11 +127,9 @@ var filterOptions = (input, option) => {
|
|
|
128
127
|
};
|
|
129
128
|
var SelectElement = (props) => {
|
|
130
129
|
const handleChange = (value) => {
|
|
131
|
-
console.log("++=====", typeof value);
|
|
132
130
|
if (props.onChange) {
|
|
133
131
|
if (typeof value === "string") {
|
|
134
132
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
135
|
-
console.log(filterOption2);
|
|
136
133
|
props.onChange(filterOption2);
|
|
137
134
|
} else {
|
|
138
135
|
const selectedOptions = value ? value.map((eachVal) => {
|
|
@@ -142,7 +139,7 @@ var SelectElement = (props) => {
|
|
|
142
139
|
}
|
|
143
140
|
}
|
|
144
141
|
};
|
|
145
|
-
return /* @__PURE__ */ React5.createElement("div", { className:
|
|
142
|
+
return /* @__PURE__ */ React5.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React5.createElement("label", { htmlFor: props.name, className: props.className }, props.label), /* @__PURE__ */ React5.createElement(
|
|
146
143
|
Select,
|
|
147
144
|
{
|
|
148
145
|
options: props.options,
|
|
@@ -151,7 +148,8 @@ var SelectElement = (props) => {
|
|
|
151
148
|
filterOption: filterOptions,
|
|
152
149
|
showSearch: true,
|
|
153
150
|
className: props.className,
|
|
154
|
-
onChange: handleChange
|
|
151
|
+
onChange: handleChange,
|
|
152
|
+
mode: props.mode
|
|
155
153
|
}
|
|
156
154
|
));
|
|
157
155
|
};
|
|
@@ -166,7 +164,6 @@ var RadioElement = (props) => {
|
|
|
166
164
|
const [selectedValue, setSelectedValue] = useState2(props.value);
|
|
167
165
|
const optionType = props.optionType === "button" ? "button" : void 0;
|
|
168
166
|
const handleChange = (option) => {
|
|
169
|
-
console.log(option);
|
|
170
167
|
setSelectedValue(option);
|
|
171
168
|
setIsDisabled(true);
|
|
172
169
|
if (props.onChange) {
|
|
@@ -206,19 +203,20 @@ var RadioElement = (props) => {
|
|
|
206
203
|
import React7, { useState as useState3 } from "react";
|
|
207
204
|
import { Checkbox } from "antd";
|
|
208
205
|
var CheckboxGroup = Checkbox.Group;
|
|
209
|
-
var defaultCheckedList = [];
|
|
206
|
+
var defaultCheckedList = ["lakku"];
|
|
210
207
|
var CheckboxElement = (props) => {
|
|
211
208
|
const [checkedList, setCheckedList] = useState3(defaultCheckedList);
|
|
212
|
-
const
|
|
209
|
+
const options = props.options || [];
|
|
210
|
+
const checkAll = options.length > 0 && options.length === checkedList.length;
|
|
213
211
|
const handleChange = (list) => {
|
|
214
212
|
setCheckedList(list);
|
|
215
213
|
if (props.onChange) {
|
|
216
|
-
const selectedOptions =
|
|
214
|
+
const selectedOptions = options.filter((option) => list.includes(option.value));
|
|
217
215
|
props.onChange(selectedOptions);
|
|
218
216
|
}
|
|
219
217
|
};
|
|
220
218
|
const onHandleAllChanges = (e) => {
|
|
221
|
-
const newList = e.target.checked ?
|
|
219
|
+
const newList = e.target.checked ? options.map((option) => option.value) : [];
|
|
222
220
|
setCheckedList(newList);
|
|
223
221
|
if (props.onChange) {
|
|
224
222
|
props.onChange(newList);
|
|
@@ -241,8 +239,8 @@ var CheckboxElement = (props) => {
|
|
|
241
239
|
disabled: props.disabled,
|
|
242
240
|
style: props.styles,
|
|
243
241
|
className: props.className,
|
|
244
|
-
options
|
|
245
|
-
value: checkedList,
|
|
242
|
+
options,
|
|
243
|
+
value: checkedList && checkedList,
|
|
246
244
|
onChange: handleChange
|
|
247
245
|
}
|
|
248
246
|
));
|
|
@@ -258,7 +256,6 @@ var CkEditor = (props) => {
|
|
|
258
256
|
import React9 from "react";
|
|
259
257
|
import { Select as Select2 } from "antd";
|
|
260
258
|
var onSearch = (value) => {
|
|
261
|
-
console.log("search:", value);
|
|
262
259
|
};
|
|
263
260
|
var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
264
261
|
var SingleSelectElement = (props) => {
|
|
@@ -539,7 +536,6 @@ var AddMoreTable = (props) => {
|
|
|
539
536
|
});
|
|
540
537
|
};
|
|
541
538
|
useEffect(() => {
|
|
542
|
-
console.log(rows);
|
|
543
539
|
}, [rows]);
|
|
544
540
|
const renderInputElement = (element, value) => {
|
|
545
541
|
if (!element) return null;
|
|
@@ -684,11 +680,9 @@ var Navbar = (props) => {
|
|
|
684
680
|
// src/Components/TableElement.tsx
|
|
685
681
|
import React19, { useState as useState5, useEffect as useEffect2 } from "react";
|
|
686
682
|
import { Table as Table2 } from "antd";
|
|
687
|
-
import { EyeOutlined } from "@ant-design/icons";
|
|
688
683
|
var TableElement = (props) => {
|
|
689
684
|
const { thead, tbody } = props;
|
|
690
685
|
const [dataSource, setDataSource] = useState5([]);
|
|
691
|
-
const defaultVal = props.value;
|
|
692
686
|
useEffect2(() => {
|
|
693
687
|
if (tbody) {
|
|
694
688
|
setDataSource(
|
|
@@ -700,13 +694,6 @@ var TableElement = (props) => {
|
|
|
700
694
|
);
|
|
701
695
|
}
|
|
702
696
|
}, [tbody]);
|
|
703
|
-
const handleChange = (record) => {
|
|
704
|
-
if (record) {
|
|
705
|
-
props.onChange && props.onChange(record);
|
|
706
|
-
} else {
|
|
707
|
-
props.onChange && props.onChange(defaultVal);
|
|
708
|
-
}
|
|
709
|
-
};
|
|
710
697
|
let columns = [];
|
|
711
698
|
if (thead) {
|
|
712
699
|
columns = [
|
|
@@ -733,26 +720,6 @@ var TableElement = (props) => {
|
|
|
733
720
|
}
|
|
734
721
|
}))
|
|
735
722
|
];
|
|
736
|
-
if (props.view) {
|
|
737
|
-
columns.push({
|
|
738
|
-
title: "View",
|
|
739
|
-
dataIndex: "View",
|
|
740
|
-
key: "View",
|
|
741
|
-
render: (_, record) => {
|
|
742
|
-
return /* @__PURE__ */ React19.createElement(
|
|
743
|
-
"a",
|
|
744
|
-
{
|
|
745
|
-
onClick: () => {
|
|
746
|
-
if (props.view) {
|
|
747
|
-
handleChange(record);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
/* @__PURE__ */ React19.createElement(EyeOutlined, null)
|
|
752
|
-
);
|
|
753
|
-
}
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
723
|
}
|
|
757
724
|
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
758
725
|
if (extra && extra.currentDataSource) {
|
|
@@ -771,11 +738,6 @@ var TableElement = (props) => {
|
|
|
771
738
|
};
|
|
772
739
|
const rowSelectionConfig = props.rowSelection ? {
|
|
773
740
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
774
|
-
console.log(
|
|
775
|
-
`selectedRowKeys: ${selectedRowKeys}`,
|
|
776
|
-
"selectedRows: ",
|
|
777
|
-
selectedRows
|
|
778
|
-
);
|
|
779
741
|
if (props.onChange) {
|
|
780
742
|
props.onChange(selectedRows);
|
|
781
743
|
}
|
|
@@ -793,16 +755,6 @@ var TableElement = (props) => {
|
|
|
793
755
|
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
794
756
|
onChange: onChangePage
|
|
795
757
|
} : false,
|
|
796
|
-
onRow: (record) => {
|
|
797
|
-
return {
|
|
798
|
-
onClick: () => {
|
|
799
|
-
if (props.view) {
|
|
800
|
-
handleChange(record);
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
style: { cursor: "pointer" }
|
|
804
|
-
};
|
|
805
|
-
},
|
|
806
758
|
rowSelection: rowSelectionConfig,
|
|
807
759
|
dataSource,
|
|
808
760
|
columns,
|
|
@@ -824,10 +776,9 @@ var DatePickerElement = (props) => {
|
|
|
824
776
|
const [dateState, setDateState] = useState6("");
|
|
825
777
|
const handleChange = (date, dateString) => {
|
|
826
778
|
if (date) {
|
|
827
|
-
const formattedDate = dateString;
|
|
828
779
|
setDateState(date);
|
|
829
780
|
if (props.onChange) {
|
|
830
|
-
props.onChange(
|
|
781
|
+
props.onChange(dateString);
|
|
831
782
|
}
|
|
832
783
|
} else {
|
|
833
784
|
setDateState("");
|
|
@@ -845,8 +796,9 @@ var DatePickerElement = (props) => {
|
|
|
845
796
|
disabledDate,
|
|
846
797
|
placeholder: props.placeholder,
|
|
847
798
|
value: dateState,
|
|
848
|
-
format:
|
|
849
|
-
onChange: handleChange
|
|
799
|
+
format: "DD-MM-YYYY",
|
|
800
|
+
onChange: handleChange,
|
|
801
|
+
picker: props.picker
|
|
850
802
|
}
|
|
851
803
|
));
|
|
852
804
|
};
|
|
@@ -855,34 +807,59 @@ var DatePickerElement = (props) => {
|
|
|
855
807
|
import React21 from "react";
|
|
856
808
|
import { DatePicker as DatePicker2, Space } from "antd";
|
|
857
809
|
import dayjs2 from "dayjs";
|
|
858
|
-
import moment2 from "moment";
|
|
859
810
|
var DateRangePickerElement = (props) => {
|
|
860
811
|
const { value } = props;
|
|
861
812
|
const { RangePicker } = DatePicker2;
|
|
862
813
|
const dateValues = value ? value.map((date) => dayjs2(date, "DD-MM-YYYY")) : null;
|
|
814
|
+
const today = dayjs2();
|
|
863
815
|
const handleChange = (dates, dateStrings) => {
|
|
864
816
|
if (dates) {
|
|
865
|
-
|
|
817
|
+
let [start, end] = dates;
|
|
818
|
+
if (start && start.isBefore(today) && end && end.isAfter(today)) {
|
|
819
|
+
end = today;
|
|
820
|
+
}
|
|
821
|
+
const adjustedDates = [start, end].map(
|
|
822
|
+
(date) => date ? date.format("DD-MM-YYYY") : null
|
|
823
|
+
);
|
|
824
|
+
props.onChange && props.onChange(adjustedDates);
|
|
866
825
|
} else {
|
|
867
826
|
props.onChange && props.onChange("");
|
|
868
827
|
}
|
|
869
828
|
};
|
|
870
|
-
|
|
871
|
-
{ label: "Last 7 Days", value: [dayjs2().
|
|
872
|
-
{ label: "Last 14 Days", value: [dayjs2().
|
|
873
|
-
{ label: "Last 30 Days", value: [dayjs2().
|
|
874
|
-
{ label: "Last 90 Days", value: [dayjs2().
|
|
829
|
+
let rangePresets = [
|
|
830
|
+
{ label: "Last 7 Days", value: [dayjs2().subtract(6, "d"), today] },
|
|
831
|
+
{ label: "Last 14 Days", value: [dayjs2().subtract(13, "d"), today] },
|
|
832
|
+
{ label: "Last 30 Days", value: [dayjs2().subtract(29, "d"), today] },
|
|
833
|
+
{ label: "Last 90 Days", value: [dayjs2().subtract(89, "d"), today] }
|
|
875
834
|
];
|
|
876
835
|
const disabledDate = (current) => {
|
|
877
|
-
|
|
836
|
+
if (props.weekrange) {
|
|
837
|
+
return current && current < today.subtract(7, "d") || current > today;
|
|
838
|
+
}
|
|
839
|
+
return current && current > today;
|
|
840
|
+
};
|
|
841
|
+
const handleCalendarChange = (dates) => {
|
|
842
|
+
if (dates) {
|
|
843
|
+
let [start, end] = dates;
|
|
844
|
+
if (start && start.isBefore(today) && end && end.isAfter(today)) {
|
|
845
|
+
end = today;
|
|
846
|
+
}
|
|
847
|
+
const adjustedDates = [start, end].map(
|
|
848
|
+
(date) => date ? date.format("DD-MM-YYYY") : null
|
|
849
|
+
);
|
|
850
|
+
props.onChange && props.onChange(adjustedDates);
|
|
851
|
+
} else {
|
|
852
|
+
props.onChange && props.onChange("");
|
|
853
|
+
}
|
|
878
854
|
};
|
|
879
855
|
return /* @__PURE__ */ React21.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React21.createElement(
|
|
880
856
|
RangePicker,
|
|
881
857
|
{
|
|
882
858
|
disabledDate,
|
|
883
|
-
presets: rangePresets,
|
|
884
|
-
format:
|
|
859
|
+
...!props.weekrange && { presets: rangePresets },
|
|
860
|
+
format: "DD-MM-YYYY",
|
|
885
861
|
onChange: handleChange,
|
|
862
|
+
onCalendarChange: handleCalendarChange,
|
|
886
863
|
value: dateValues
|
|
887
864
|
}
|
|
888
865
|
));
|
|
@@ -977,7 +954,9 @@ import { Upload } from "antd";
|
|
|
977
954
|
import { InboxOutlined } from "@ant-design/icons";
|
|
978
955
|
var FileUpload = (props) => {
|
|
979
956
|
const { Dragger } = Upload;
|
|
980
|
-
const [files, setFiles] = useState8(
|
|
957
|
+
const [files, setFiles] = useState8(
|
|
958
|
+
props.value && props.value.length > 0 ? props.value : []
|
|
959
|
+
);
|
|
981
960
|
const handleChange = ({ fileList }) => {
|
|
982
961
|
setFiles(fileList);
|
|
983
962
|
if (props.onChange) {
|
|
@@ -1026,7 +1005,6 @@ var TabsElement = (props) => {
|
|
|
1026
1005
|
import React27 from "react";
|
|
1027
1006
|
import { Switch } from "antd";
|
|
1028
1007
|
var onChange = (checked) => {
|
|
1029
|
-
console.log(`switch to ${checked}`);
|
|
1030
1008
|
};
|
|
1031
1009
|
var SwitchElement = () => /* @__PURE__ */ React27.createElement(Switch, { defaultChecked: true, onChange });
|
|
1032
1010
|
|
|
@@ -1037,12 +1015,12 @@ var Upload2 = (props) => {
|
|
|
1037
1015
|
const handleFileChange = (e) => {
|
|
1038
1016
|
setFile(e.target.files[0]);
|
|
1039
1017
|
if (props.onChange) {
|
|
1018
|
+
console.log(e.target.files[0]);
|
|
1040
1019
|
props.onChange(e.target.files[0]);
|
|
1041
1020
|
}
|
|
1042
1021
|
};
|
|
1043
1022
|
const handleUpload = async () => {
|
|
1044
1023
|
if (!file) {
|
|
1045
|
-
console.error("No file selected");
|
|
1046
1024
|
return;
|
|
1047
1025
|
}
|
|
1048
1026
|
};
|
|
@@ -1569,6 +1547,59 @@ var BarChart = (props) => {
|
|
|
1569
1547
|
};
|
|
1570
1548
|
return /* @__PURE__ */ React35.createElement("div", { className: props.className }, /* @__PURE__ */ React35.createElement("h1", { className: props.labelClassName }, props.label), /* @__PURE__ */ React35.createElement(Bar2, { data, options }));
|
|
1571
1549
|
};
|
|
1550
|
+
|
|
1551
|
+
// src/Components/DivContainer.tsx
|
|
1552
|
+
import React36 from "react";
|
|
1553
|
+
var DivContainer = (props) => {
|
|
1554
|
+
return /* @__PURE__ */ React36.createElement("div", { className: props.className, onClick: props.onClick }, props.label);
|
|
1555
|
+
};
|
|
1556
|
+
|
|
1557
|
+
// src/Components/ColorPickerElement.tsx
|
|
1558
|
+
import React37 from "react";
|
|
1559
|
+
import { ColorPicker } from "antd";
|
|
1560
|
+
var ColorPickerElement = (props) => {
|
|
1561
|
+
const onHandleChange = (value, hex) => {
|
|
1562
|
+
console.log(hex);
|
|
1563
|
+
props.onChange && props.onChange(hex);
|
|
1564
|
+
};
|
|
1565
|
+
return /* @__PURE__ */ React37.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React37.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React37.createElement("br", null), /* @__PURE__ */ React37.createElement(
|
|
1566
|
+
ColorPicker,
|
|
1567
|
+
{
|
|
1568
|
+
className: props.className,
|
|
1569
|
+
showText: true,
|
|
1570
|
+
defaultValue: props.defaultValue,
|
|
1571
|
+
onChange: onHandleChange
|
|
1572
|
+
}
|
|
1573
|
+
));
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
// src/Components/NotificationAlert.tsx
|
|
1577
|
+
import React38 from "react";
|
|
1578
|
+
import { Button as Button3, notification } from "antd";
|
|
1579
|
+
var NotificationAlert = (props) => {
|
|
1580
|
+
const [api, contextHolder] = notification.useNotification();
|
|
1581
|
+
const openNotificationType = (pauseOnHover, type) => {
|
|
1582
|
+
api[type]({
|
|
1583
|
+
message: props.message,
|
|
1584
|
+
description: props.description,
|
|
1585
|
+
duration: 4.5,
|
|
1586
|
+
pauseOnHover
|
|
1587
|
+
});
|
|
1588
|
+
};
|
|
1589
|
+
const openNotification = (pauseOnHover) => {
|
|
1590
|
+
api.open({
|
|
1591
|
+
message: props.message,
|
|
1592
|
+
description: props.description,
|
|
1593
|
+
duration: 4.5,
|
|
1594
|
+
pauseOnHover
|
|
1595
|
+
});
|
|
1596
|
+
};
|
|
1597
|
+
const handleClick = () => {
|
|
1598
|
+
const notificationType = props.notificationType || "info";
|
|
1599
|
+
props.notificationType ? openNotificationType(true, notificationType) : openNotification(true);
|
|
1600
|
+
};
|
|
1601
|
+
return /* @__PURE__ */ React38.createElement("div", { className: props.containerClassName }, contextHolder, /* @__PURE__ */ React38.createElement(Button3, { type: "primary", onClick: handleClick, className: props.className }, props.label));
|
|
1602
|
+
};
|
|
1572
1603
|
export {
|
|
1573
1604
|
AddMoreTable,
|
|
1574
1605
|
BarChart,
|
|
@@ -1576,8 +1607,10 @@ export {
|
|
|
1576
1607
|
CheckboxElement,
|
|
1577
1608
|
CircleDonut,
|
|
1578
1609
|
CkEditor,
|
|
1610
|
+
ColorPickerElement,
|
|
1579
1611
|
DatePickerElement,
|
|
1580
1612
|
DateRangePickerElement,
|
|
1613
|
+
DivContainer,
|
|
1581
1614
|
DoubleBarChart,
|
|
1582
1615
|
DropDownGroup,
|
|
1583
1616
|
FileUpload,
|
|
@@ -1586,6 +1619,7 @@ export {
|
|
|
1586
1619
|
LineChart,
|
|
1587
1620
|
MultipleSelectElement,
|
|
1588
1621
|
Navbar,
|
|
1622
|
+
NotificationAlert,
|
|
1589
1623
|
NumberElement,
|
|
1590
1624
|
OtpElement,
|
|
1591
1625
|
PasswordElement,
|
package/package.json
CHANGED
package/dist/index.css
DELETED
|
@@ -1,482 +0,0 @@
|
|
|
1
|
-
/* src/styles/index.css */
|
|
2
|
-
*,
|
|
3
|
-
::before,
|
|
4
|
-
::after {
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
border-width: 0;
|
|
7
|
-
border-style: solid;
|
|
8
|
-
border-color: #e5e7eb;
|
|
9
|
-
}
|
|
10
|
-
::before,
|
|
11
|
-
::after {
|
|
12
|
-
--tw-content: "";
|
|
13
|
-
}
|
|
14
|
-
html,
|
|
15
|
-
:host {
|
|
16
|
-
line-height: 1.5;
|
|
17
|
-
-webkit-text-size-adjust: 100%;
|
|
18
|
-
-moz-tab-size: 4;
|
|
19
|
-
-o-tab-size: 4;
|
|
20
|
-
tab-size: 4;
|
|
21
|
-
font-family:
|
|
22
|
-
ui-sans-serif,
|
|
23
|
-
system-ui,
|
|
24
|
-
sans-serif,
|
|
25
|
-
"Apple Color Emoji",
|
|
26
|
-
"Segoe UI Emoji",
|
|
27
|
-
"Segoe UI Symbol",
|
|
28
|
-
"Noto Color Emoji";
|
|
29
|
-
font-feature-settings: normal;
|
|
30
|
-
font-variation-settings: normal;
|
|
31
|
-
-webkit-tap-highlight-color: transparent;
|
|
32
|
-
}
|
|
33
|
-
body {
|
|
34
|
-
margin: 0;
|
|
35
|
-
line-height: inherit;
|
|
36
|
-
}
|
|
37
|
-
hr {
|
|
38
|
-
height: 0;
|
|
39
|
-
color: inherit;
|
|
40
|
-
border-top-width: 1px;
|
|
41
|
-
}
|
|
42
|
-
abbr:where([title]) {
|
|
43
|
-
-webkit-text-decoration: underline dotted;
|
|
44
|
-
text-decoration: underline dotted;
|
|
45
|
-
}
|
|
46
|
-
h1,
|
|
47
|
-
h2,
|
|
48
|
-
h3,
|
|
49
|
-
h4,
|
|
50
|
-
h5,
|
|
51
|
-
h6 {
|
|
52
|
-
font-size: inherit;
|
|
53
|
-
font-weight: inherit;
|
|
54
|
-
}
|
|
55
|
-
a {
|
|
56
|
-
color: inherit;
|
|
57
|
-
text-decoration: inherit;
|
|
58
|
-
}
|
|
59
|
-
b,
|
|
60
|
-
strong {
|
|
61
|
-
font-weight: bolder;
|
|
62
|
-
}
|
|
63
|
-
code,
|
|
64
|
-
kbd,
|
|
65
|
-
samp,
|
|
66
|
-
pre {
|
|
67
|
-
font-family:
|
|
68
|
-
ui-monospace,
|
|
69
|
-
SFMono-Regular,
|
|
70
|
-
Menlo,
|
|
71
|
-
Monaco,
|
|
72
|
-
Consolas,
|
|
73
|
-
"Liberation Mono",
|
|
74
|
-
"Courier New",
|
|
75
|
-
monospace;
|
|
76
|
-
font-feature-settings: normal;
|
|
77
|
-
font-variation-settings: normal;
|
|
78
|
-
font-size: 1em;
|
|
79
|
-
}
|
|
80
|
-
small {
|
|
81
|
-
font-size: 80%;
|
|
82
|
-
}
|
|
83
|
-
sub,
|
|
84
|
-
sup {
|
|
85
|
-
font-size: 75%;
|
|
86
|
-
line-height: 0;
|
|
87
|
-
position: relative;
|
|
88
|
-
vertical-align: baseline;
|
|
89
|
-
}
|
|
90
|
-
sub {
|
|
91
|
-
bottom: -0.25em;
|
|
92
|
-
}
|
|
93
|
-
sup {
|
|
94
|
-
top: -0.5em;
|
|
95
|
-
}
|
|
96
|
-
table {
|
|
97
|
-
text-indent: 0;
|
|
98
|
-
border-color: inherit;
|
|
99
|
-
border-collapse: collapse;
|
|
100
|
-
}
|
|
101
|
-
button,
|
|
102
|
-
input,
|
|
103
|
-
optgroup,
|
|
104
|
-
select,
|
|
105
|
-
textarea {
|
|
106
|
-
font-family: inherit;
|
|
107
|
-
font-feature-settings: inherit;
|
|
108
|
-
font-variation-settings: inherit;
|
|
109
|
-
font-size: 100%;
|
|
110
|
-
font-weight: inherit;
|
|
111
|
-
line-height: inherit;
|
|
112
|
-
letter-spacing: inherit;
|
|
113
|
-
color: inherit;
|
|
114
|
-
margin: 0;
|
|
115
|
-
padding: 0;
|
|
116
|
-
}
|
|
117
|
-
button,
|
|
118
|
-
select {
|
|
119
|
-
text-transform: none;
|
|
120
|
-
}
|
|
121
|
-
button,
|
|
122
|
-
input:where([type=button]),
|
|
123
|
-
input:where([type=reset]),
|
|
124
|
-
input:where([type=submit]) {
|
|
125
|
-
-webkit-appearance: button;
|
|
126
|
-
background-color: transparent;
|
|
127
|
-
background-image: none;
|
|
128
|
-
}
|
|
129
|
-
:-moz-focusring {
|
|
130
|
-
outline: auto;
|
|
131
|
-
}
|
|
132
|
-
:-moz-ui-invalid {
|
|
133
|
-
box-shadow: none;
|
|
134
|
-
}
|
|
135
|
-
progress {
|
|
136
|
-
vertical-align: baseline;
|
|
137
|
-
}
|
|
138
|
-
::-webkit-inner-spin-button,
|
|
139
|
-
::-webkit-outer-spin-button {
|
|
140
|
-
height: auto;
|
|
141
|
-
}
|
|
142
|
-
[type=search] {
|
|
143
|
-
-webkit-appearance: textfield;
|
|
144
|
-
outline-offset: -2px;
|
|
145
|
-
}
|
|
146
|
-
::-webkit-search-decoration {
|
|
147
|
-
-webkit-appearance: none;
|
|
148
|
-
}
|
|
149
|
-
::-webkit-file-upload-button {
|
|
150
|
-
-webkit-appearance: button;
|
|
151
|
-
font: inherit;
|
|
152
|
-
}
|
|
153
|
-
summary {
|
|
154
|
-
display: list-item;
|
|
155
|
-
}
|
|
156
|
-
blockquote,
|
|
157
|
-
dl,
|
|
158
|
-
dd,
|
|
159
|
-
h1,
|
|
160
|
-
h2,
|
|
161
|
-
h3,
|
|
162
|
-
h4,
|
|
163
|
-
h5,
|
|
164
|
-
h6,
|
|
165
|
-
hr,
|
|
166
|
-
figure,
|
|
167
|
-
p,
|
|
168
|
-
pre {
|
|
169
|
-
margin: 0;
|
|
170
|
-
}
|
|
171
|
-
fieldset {
|
|
172
|
-
margin: 0;
|
|
173
|
-
padding: 0;
|
|
174
|
-
}
|
|
175
|
-
legend {
|
|
176
|
-
padding: 0;
|
|
177
|
-
}
|
|
178
|
-
ol,
|
|
179
|
-
ul,
|
|
180
|
-
menu {
|
|
181
|
-
list-style: none;
|
|
182
|
-
margin: 0;
|
|
183
|
-
padding: 0;
|
|
184
|
-
}
|
|
185
|
-
dialog {
|
|
186
|
-
padding: 0;
|
|
187
|
-
}
|
|
188
|
-
textarea {
|
|
189
|
-
resize: vertical;
|
|
190
|
-
}
|
|
191
|
-
input::-moz-placeholder,
|
|
192
|
-
textarea::-moz-placeholder {
|
|
193
|
-
opacity: 1;
|
|
194
|
-
color: #9ca3af;
|
|
195
|
-
}
|
|
196
|
-
input::placeholder,
|
|
197
|
-
textarea::placeholder {
|
|
198
|
-
opacity: 1;
|
|
199
|
-
color: #9ca3af;
|
|
200
|
-
}
|
|
201
|
-
button,
|
|
202
|
-
[role=button] {
|
|
203
|
-
cursor: pointer;
|
|
204
|
-
}
|
|
205
|
-
:disabled {
|
|
206
|
-
cursor: default;
|
|
207
|
-
}
|
|
208
|
-
img,
|
|
209
|
-
svg,
|
|
210
|
-
video,
|
|
211
|
-
canvas,
|
|
212
|
-
audio,
|
|
213
|
-
iframe,
|
|
214
|
-
embed,
|
|
215
|
-
object {
|
|
216
|
-
display: block;
|
|
217
|
-
vertical-align: middle;
|
|
218
|
-
}
|
|
219
|
-
img,
|
|
220
|
-
video {
|
|
221
|
-
max-width: 100%;
|
|
222
|
-
height: auto;
|
|
223
|
-
}
|
|
224
|
-
[hidden] {
|
|
225
|
-
display: none;
|
|
226
|
-
}
|
|
227
|
-
*,
|
|
228
|
-
::before,
|
|
229
|
-
::after {
|
|
230
|
-
--tw-border-spacing-x: 0;
|
|
231
|
-
--tw-border-spacing-y: 0;
|
|
232
|
-
--tw-translate-x: 0;
|
|
233
|
-
--tw-translate-y: 0;
|
|
234
|
-
--tw-rotate: 0;
|
|
235
|
-
--tw-skew-x: 0;
|
|
236
|
-
--tw-skew-y: 0;
|
|
237
|
-
--tw-scale-x: 1;
|
|
238
|
-
--tw-scale-y: 1;
|
|
239
|
-
--tw-pan-x: ;
|
|
240
|
-
--tw-pan-y: ;
|
|
241
|
-
--tw-pinch-zoom: ;
|
|
242
|
-
--tw-scroll-snap-strictness: proximity;
|
|
243
|
-
--tw-gradient-from-position: ;
|
|
244
|
-
--tw-gradient-via-position: ;
|
|
245
|
-
--tw-gradient-to-position: ;
|
|
246
|
-
--tw-ordinal: ;
|
|
247
|
-
--tw-slashed-zero: ;
|
|
248
|
-
--tw-numeric-figure: ;
|
|
249
|
-
--tw-numeric-spacing: ;
|
|
250
|
-
--tw-numeric-fraction: ;
|
|
251
|
-
--tw-ring-inset: ;
|
|
252
|
-
--tw-ring-offset-width: 0px;
|
|
253
|
-
--tw-ring-offset-color: #fff;
|
|
254
|
-
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
255
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
256
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
257
|
-
--tw-shadow: 0 0 #0000;
|
|
258
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
259
|
-
--tw-blur: ;
|
|
260
|
-
--tw-brightness: ;
|
|
261
|
-
--tw-contrast: ;
|
|
262
|
-
--tw-grayscale: ;
|
|
263
|
-
--tw-hue-rotate: ;
|
|
264
|
-
--tw-invert: ;
|
|
265
|
-
--tw-saturate: ;
|
|
266
|
-
--tw-sepia: ;
|
|
267
|
-
--tw-drop-shadow: ;
|
|
268
|
-
--tw-backdrop-blur: ;
|
|
269
|
-
--tw-backdrop-brightness: ;
|
|
270
|
-
--tw-backdrop-contrast: ;
|
|
271
|
-
--tw-backdrop-grayscale: ;
|
|
272
|
-
--tw-backdrop-hue-rotate: ;
|
|
273
|
-
--tw-backdrop-invert: ;
|
|
274
|
-
--tw-backdrop-opacity: ;
|
|
275
|
-
--tw-backdrop-saturate: ;
|
|
276
|
-
--tw-backdrop-sepia: ;
|
|
277
|
-
--tw-contain-size: ;
|
|
278
|
-
--tw-contain-layout: ;
|
|
279
|
-
--tw-contain-paint: ;
|
|
280
|
-
--tw-contain-style: ;
|
|
281
|
-
}
|
|
282
|
-
::backdrop {
|
|
283
|
-
--tw-border-spacing-x: 0;
|
|
284
|
-
--tw-border-spacing-y: 0;
|
|
285
|
-
--tw-translate-x: 0;
|
|
286
|
-
--tw-translate-y: 0;
|
|
287
|
-
--tw-rotate: 0;
|
|
288
|
-
--tw-skew-x: 0;
|
|
289
|
-
--tw-skew-y: 0;
|
|
290
|
-
--tw-scale-x: 1;
|
|
291
|
-
--tw-scale-y: 1;
|
|
292
|
-
--tw-pan-x: ;
|
|
293
|
-
--tw-pan-y: ;
|
|
294
|
-
--tw-pinch-zoom: ;
|
|
295
|
-
--tw-scroll-snap-strictness: proximity;
|
|
296
|
-
--tw-gradient-from-position: ;
|
|
297
|
-
--tw-gradient-via-position: ;
|
|
298
|
-
--tw-gradient-to-position: ;
|
|
299
|
-
--tw-ordinal: ;
|
|
300
|
-
--tw-slashed-zero: ;
|
|
301
|
-
--tw-numeric-figure: ;
|
|
302
|
-
--tw-numeric-spacing: ;
|
|
303
|
-
--tw-numeric-fraction: ;
|
|
304
|
-
--tw-ring-inset: ;
|
|
305
|
-
--tw-ring-offset-width: 0px;
|
|
306
|
-
--tw-ring-offset-color: #fff;
|
|
307
|
-
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
308
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
309
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
310
|
-
--tw-shadow: 0 0 #0000;
|
|
311
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
312
|
-
--tw-blur: ;
|
|
313
|
-
--tw-brightness: ;
|
|
314
|
-
--tw-contrast: ;
|
|
315
|
-
--tw-grayscale: ;
|
|
316
|
-
--tw-hue-rotate: ;
|
|
317
|
-
--tw-invert: ;
|
|
318
|
-
--tw-saturate: ;
|
|
319
|
-
--tw-sepia: ;
|
|
320
|
-
--tw-drop-shadow: ;
|
|
321
|
-
--tw-backdrop-blur: ;
|
|
322
|
-
--tw-backdrop-brightness: ;
|
|
323
|
-
--tw-backdrop-contrast: ;
|
|
324
|
-
--tw-backdrop-grayscale: ;
|
|
325
|
-
--tw-backdrop-hue-rotate: ;
|
|
326
|
-
--tw-backdrop-invert: ;
|
|
327
|
-
--tw-backdrop-opacity: ;
|
|
328
|
-
--tw-backdrop-saturate: ;
|
|
329
|
-
--tw-backdrop-sepia: ;
|
|
330
|
-
--tw-contain-size: ;
|
|
331
|
-
--tw-contain-layout: ;
|
|
332
|
-
--tw-contain-paint: ;
|
|
333
|
-
--tw-contain-style: ;
|
|
334
|
-
}
|
|
335
|
-
.visible {
|
|
336
|
-
visibility: visible;
|
|
337
|
-
}
|
|
338
|
-
.fixed {
|
|
339
|
-
position: fixed;
|
|
340
|
-
}
|
|
341
|
-
.m-10 {
|
|
342
|
-
margin: 2.5rem;
|
|
343
|
-
}
|
|
344
|
-
.m-\[10px\] {
|
|
345
|
-
margin: 10px;
|
|
346
|
-
}
|
|
347
|
-
.flex {
|
|
348
|
-
display: flex;
|
|
349
|
-
}
|
|
350
|
-
.table {
|
|
351
|
-
display: table;
|
|
352
|
-
}
|
|
353
|
-
.grid {
|
|
354
|
-
display: grid;
|
|
355
|
-
}
|
|
356
|
-
.flex-col {
|
|
357
|
-
flex-direction: column;
|
|
358
|
-
}
|
|
359
|
-
.rounded-\[8px\] {
|
|
360
|
-
border-radius: 8px;
|
|
361
|
-
}
|
|
362
|
-
.border {
|
|
363
|
-
border-width: 1px;
|
|
364
|
-
}
|
|
365
|
-
.border-4 {
|
|
366
|
-
border-width: 4px;
|
|
367
|
-
}
|
|
368
|
-
.border-\[\#919191\] {
|
|
369
|
-
--tw-border-opacity: 1;
|
|
370
|
-
border-color: rgb(145 145 145 / var(--tw-border-opacity));
|
|
371
|
-
}
|
|
372
|
-
.border-\[\#B8A4DE\] {
|
|
373
|
-
--tw-border-opacity: 1;
|
|
374
|
-
border-color: rgb(184 164 222 / var(--tw-border-opacity));
|
|
375
|
-
}
|
|
376
|
-
.bg-\[\#E2D6F8\] {
|
|
377
|
-
--tw-bg-opacity: 1;
|
|
378
|
-
background-color: rgb(226 214 248 / var(--tw-bg-opacity));
|
|
379
|
-
}
|
|
380
|
-
.bg-\[\#F2F2F2\] {
|
|
381
|
-
--tw-bg-opacity: 1;
|
|
382
|
-
background-color: rgb(242 242 242 / var(--tw-bg-opacity));
|
|
383
|
-
}
|
|
384
|
-
.bg-green-500 {
|
|
385
|
-
--tw-bg-opacity: 1;
|
|
386
|
-
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
|
|
387
|
-
}
|
|
388
|
-
.p-10 {
|
|
389
|
-
padding: 2.5rem;
|
|
390
|
-
}
|
|
391
|
-
.p-\[6px\] {
|
|
392
|
-
padding: 6px;
|
|
393
|
-
}
|
|
394
|
-
.text-center {
|
|
395
|
-
text-align: center;
|
|
396
|
-
}
|
|
397
|
-
.font-semibold {
|
|
398
|
-
font-weight: 600;
|
|
399
|
-
}
|
|
400
|
-
.italic {
|
|
401
|
-
font-style: italic;
|
|
402
|
-
}
|
|
403
|
-
.text-\[\\w-\] {
|
|
404
|
-
color: w-;
|
|
405
|
-
}
|
|
406
|
-
.text-black {
|
|
407
|
-
--tw-text-opacity: 1;
|
|
408
|
-
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
409
|
-
}
|
|
410
|
-
.text-white {
|
|
411
|
-
--tw-text-opacity: 1;
|
|
412
|
-
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
413
|
-
}
|
|
414
|
-
.shadow-\[0px_0px_1px_1px_\#919191\] {
|
|
415
|
-
--tw-shadow: 0px 0px 1px 1px #919191;
|
|
416
|
-
--tw-shadow-colored: 0px 0px 1px 1px var(--tw-shadow-color);
|
|
417
|
-
box-shadow:
|
|
418
|
-
var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
419
|
-
var(--tw-ring-shadow, 0 0 #0000),
|
|
420
|
-
var(--tw-shadow);
|
|
421
|
-
}
|
|
422
|
-
.shadow-\[0px_0px_1px_1px_\#B8A4DE\] {
|
|
423
|
-
--tw-shadow: 0px 0px 1px 1px #B8A4DE;
|
|
424
|
-
--tw-shadow-colored: 0px 0px 1px 1px var(--tw-shadow-color);
|
|
425
|
-
box-shadow:
|
|
426
|
-
var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
427
|
-
var(--tw-ring-shadow, 0 0 #0000),
|
|
428
|
-
var(--tw-shadow);
|
|
429
|
-
}
|
|
430
|
-
.invert {
|
|
431
|
-
--tw-invert: invert(100%);
|
|
432
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
433
|
-
}
|
|
434
|
-
.filter {
|
|
435
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
436
|
-
}
|
|
437
|
-
.bg-sky-700 .icon-active {
|
|
438
|
-
filter: brightness(0) invert(1);
|
|
439
|
-
}
|
|
440
|
-
.submit.ant-btn-default:not(:disabled):not(.ant-btn-disabled):hover {
|
|
441
|
-
color: #472D7A;
|
|
442
|
-
background-color: white;
|
|
443
|
-
border: solid 1px #472D7A;
|
|
444
|
-
}
|
|
445
|
-
.ant-radio-button-wrapper {
|
|
446
|
-
border: 1px solid #919191 !important;
|
|
447
|
-
}
|
|
448
|
-
.ant-input-affix-wrapper {
|
|
449
|
-
border: solid 1px #919191 !important;
|
|
450
|
-
width: 275px !important;
|
|
451
|
-
height: 16px !important;
|
|
452
|
-
padding: 16px !important;
|
|
453
|
-
gap: 10px !important;
|
|
454
|
-
}
|
|
455
|
-
.ant-input-outlined:hover {
|
|
456
|
-
border: solid 1px #919191 !important;
|
|
457
|
-
}
|
|
458
|
-
.ant-input-outlined:focus {
|
|
459
|
-
border: solid 1px #919191 !important;
|
|
460
|
-
}
|
|
461
|
-
.ant-input-outlined:focus-within {
|
|
462
|
-
border: solid 1px #919191 !important;
|
|
463
|
-
}
|
|
464
|
-
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
|
|
465
|
-
display: none !important;
|
|
466
|
-
}
|
|
467
|
-
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::after {
|
|
468
|
-
display: none !important;
|
|
469
|
-
}
|
|
470
|
-
.ant-radio-button-wrapper:not(:first-child)::before {
|
|
471
|
-
width: 0 !important;
|
|
472
|
-
}
|
|
473
|
-
.ant-radio-button-wrapper:first-child {
|
|
474
|
-
border-inline-start: 1px solid rgb(145 145 145) !important;
|
|
475
|
-
}
|
|
476
|
-
.ant-tabs-top > .ant-tabs-nav {
|
|
477
|
-
margin: 0px !important;
|
|
478
|
-
}
|
|
479
|
-
.hover\:bg-\[\#F2F2F2\]:hover {
|
|
480
|
-
--tw-bg-opacity: 1;
|
|
481
|
-
background-color: rgb(242 242 242 / var(--tw-bg-opacity));
|
|
482
|
-
}
|