@bpfdev/oly-ui 1.0.1
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/README.md +371 -0
- package/dist/index.d.mts +195 -0
- package/dist/index.d.ts +195 -0
- package/dist/index.js +3532 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3497 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +60 -0
- package/tailwind.preset.js +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3532 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/index.ts
|
|
32
|
+
var index_exports = {};
|
|
33
|
+
__export(index_exports, {
|
|
34
|
+
AddCommentInput: () => AddCommentInput,
|
|
35
|
+
AdvancedFiltersDialog: () => AdvancedFiltersDialog,
|
|
36
|
+
ButtonWithIcon: () => ButtonWithIcon,
|
|
37
|
+
FalconButton: () => FalconButton,
|
|
38
|
+
FalconDIstrictFilter: () => FalconDIstrictFilter,
|
|
39
|
+
FalconGrayButton: () => FalconGrayButton,
|
|
40
|
+
FalconMultiSelect: () => FalconMultiSelect,
|
|
41
|
+
FalconPagination: () => FalconPagination,
|
|
42
|
+
FalconSelect: () => FalconSelect,
|
|
43
|
+
FalconSingleSwitch: () => FalconSingleSwitch,
|
|
44
|
+
FalconTable: () => FalconTable,
|
|
45
|
+
FalconThemeProvider: () => ThemeComponent_default,
|
|
46
|
+
FalconTicketColumsFilter: () => FalconTicketColumsFilter,
|
|
47
|
+
FalconTicketFilter: () => FalconTicketFilter,
|
|
48
|
+
HeatMapChartLegend: () => HeatMapChartLegend,
|
|
49
|
+
ProgressBarNumber: () => ProgressBarNumber
|
|
50
|
+
});
|
|
51
|
+
module.exports = __toCommonJS(index_exports);
|
|
52
|
+
|
|
53
|
+
// src/components/AddCommentInput/AddCommentInput.tsx
|
|
54
|
+
var import_material = require("@mui/material");
|
|
55
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
56
|
+
var AddCommentInput = ({
|
|
57
|
+
value,
|
|
58
|
+
setValue,
|
|
59
|
+
handleAddComment,
|
|
60
|
+
placeholder = "Write Comment here",
|
|
61
|
+
buttonLabel = "Add Comment"
|
|
62
|
+
}) => {
|
|
63
|
+
const handleChange = (event) => {
|
|
64
|
+
setValue(event.target.value);
|
|
65
|
+
};
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
+
import_material.TextField,
|
|
68
|
+
{
|
|
69
|
+
label: "",
|
|
70
|
+
fullWidth: true,
|
|
71
|
+
sx: { width: "550px", maxWidth: "100%" },
|
|
72
|
+
value,
|
|
73
|
+
placeholder,
|
|
74
|
+
onChange: handleChange,
|
|
75
|
+
type: "text",
|
|
76
|
+
InputProps: {
|
|
77
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
|
+
import_material.Button,
|
|
79
|
+
{
|
|
80
|
+
variant: "contained",
|
|
81
|
+
sx: {
|
|
82
|
+
background: "#000",
|
|
83
|
+
color: "#fff",
|
|
84
|
+
position: "absolute",
|
|
85
|
+
right: 0,
|
|
86
|
+
top: 0,
|
|
87
|
+
padding: "16px",
|
|
88
|
+
cursor: "pointer",
|
|
89
|
+
borderRadius: "0 5px 5px 0"
|
|
90
|
+
},
|
|
91
|
+
onClick: handleAddComment,
|
|
92
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
93
|
+
children: buttonLabel
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// src/components/AdvancedFiltersDialog/AdvancedFiltersDialog.tsx
|
|
102
|
+
var import_icons_material = require("@mui/icons-material");
|
|
103
|
+
var import_material3 = require("@mui/material");
|
|
104
|
+
|
|
105
|
+
// src/components/FalconMultiSelect/FalconMultiSelect.tsx
|
|
106
|
+
var import_react = require("@iconify/react");
|
|
107
|
+
var import_material2 = require("@mui/material");
|
|
108
|
+
var import_Autocomplete = __toESM(require("@mui/material/Autocomplete"));
|
|
109
|
+
var import_Box = __toESM(require("@mui/material/Box"));
|
|
110
|
+
var import_Checkbox = __toESM(require("@mui/material/Checkbox"));
|
|
111
|
+
var import_ClickAwayListener = __toESM(require("@mui/material/ClickAwayListener"));
|
|
112
|
+
var import_Popper = __toESM(require("@mui/material/Popper"));
|
|
113
|
+
var import_TextField = __toESM(require("@mui/material/TextField"));
|
|
114
|
+
var import_styles = require("@mui/material/styles");
|
|
115
|
+
var React = __toESM(require("react"));
|
|
116
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
117
|
+
var FalconMultiSelect = ({ label, data, setData, list }) => {
|
|
118
|
+
const [checked, setChecked] = React.useState([]);
|
|
119
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
120
|
+
const [value, setValue] = React.useState(
|
|
121
|
+
list.length >= 12 ? [list[1], list[11]] : list.length >= 2 ? [list[0], list[1]] : []
|
|
122
|
+
);
|
|
123
|
+
const [pendingValue, setPendingValue] = React.useState([]);
|
|
124
|
+
React.useEffect(() => {
|
|
125
|
+
setChecked(data || []);
|
|
126
|
+
}, [data]);
|
|
127
|
+
const handleClick = (event) => {
|
|
128
|
+
setPendingValue(value);
|
|
129
|
+
setAnchorEl(event.currentTarget);
|
|
130
|
+
};
|
|
131
|
+
const OnSubmit = () => {
|
|
132
|
+
if (checked.length > 0) {
|
|
133
|
+
setData(checked);
|
|
134
|
+
handleClose();
|
|
135
|
+
} else {
|
|
136
|
+
setData([]);
|
|
137
|
+
handleClose();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
const handleClose = () => {
|
|
141
|
+
setValue(pendingValue);
|
|
142
|
+
if (anchorEl) {
|
|
143
|
+
anchorEl.focus();
|
|
144
|
+
}
|
|
145
|
+
setAnchorEl(null);
|
|
146
|
+
};
|
|
147
|
+
const label1 = { inputProps: { "aria-label": "Checkbox demo" } };
|
|
148
|
+
const open = Boolean(anchorEl);
|
|
149
|
+
const id = open ? "github-label" : void 0;
|
|
150
|
+
const handleMultiSelectChange = (obj) => {
|
|
151
|
+
if (obj.id) {
|
|
152
|
+
if (checked.length > 0) {
|
|
153
|
+
const isThere = checked.filter((x) => x.id === obj.id);
|
|
154
|
+
if (isThere.length == 0) {
|
|
155
|
+
setChecked((pre) => [...pre, obj]);
|
|
156
|
+
} else {
|
|
157
|
+
const value2 = checked.filter((x) => x.id !== obj.id);
|
|
158
|
+
setChecked(value2);
|
|
159
|
+
}
|
|
160
|
+
} else {
|
|
161
|
+
setChecked((pre) => [...pre, obj]);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(React.Fragment, { children: [
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
167
|
+
import_Box.default,
|
|
168
|
+
{
|
|
169
|
+
component: "form",
|
|
170
|
+
sx: {
|
|
171
|
+
"& > :not(style)": { m: 1, width: "35ch" }
|
|
172
|
+
},
|
|
173
|
+
noValidate: true,
|
|
174
|
+
autoComplete: "off",
|
|
175
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
176
|
+
import_material2.Stack,
|
|
177
|
+
{
|
|
178
|
+
direction: "row",
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
justifyContent: "space-between",
|
|
181
|
+
gap: 2,
|
|
182
|
+
sx: {
|
|
183
|
+
minWidth: 100,
|
|
184
|
+
background: "#EFEFEF",
|
|
185
|
+
borderRadius: "6px",
|
|
186
|
+
cursor: "pointer",
|
|
187
|
+
padding: 4,
|
|
188
|
+
opacity: 1
|
|
189
|
+
},
|
|
190
|
+
onClick: handleClick,
|
|
191
|
+
children: [
|
|
192
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Typography, { variant: "body2", children: checked.length > 0 ? checked.length > 1 ? `${checked[0].name}, ${checked[1].name}${checked.length > 2 ? ` +${checked.length - 2} more` : ""}` : `${checked[0].name}` : `Filter by ${label}` }),
|
|
193
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react.Icon, { icon: anchorEl ? "tabler:chevron-up" : "tabler:chevron-down" })
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
}
|
|
198
|
+
),
|
|
199
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
200
|
+
StyledPopper,
|
|
201
|
+
{
|
|
202
|
+
id,
|
|
203
|
+
open,
|
|
204
|
+
anchorEl,
|
|
205
|
+
placement: "bottom",
|
|
206
|
+
sx: { width: "250px" },
|
|
207
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ClickAwayListener.default, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
|
|
208
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
209
|
+
import_Autocomplete.default,
|
|
210
|
+
{
|
|
211
|
+
open: true,
|
|
212
|
+
multiple: true,
|
|
213
|
+
onClose: (event, reason) => {
|
|
214
|
+
if (reason === "escape") {
|
|
215
|
+
handleClose();
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
value: pendingValue,
|
|
219
|
+
renderTags: () => null,
|
|
220
|
+
disableCloseOnSelect: true,
|
|
221
|
+
PopperComponent,
|
|
222
|
+
noOptionsText: "No labels",
|
|
223
|
+
renderOption: (props, option) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
224
|
+
"li",
|
|
225
|
+
{
|
|
226
|
+
...props,
|
|
227
|
+
style: {
|
|
228
|
+
justifyContent: "space-between",
|
|
229
|
+
alignItems: "center"
|
|
230
|
+
},
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
233
|
+
import_Box.default,
|
|
234
|
+
{
|
|
235
|
+
sx: {
|
|
236
|
+
borderRadius: "3px",
|
|
237
|
+
alignItem: "center",
|
|
238
|
+
ml: 1,
|
|
239
|
+
mt: "1px",
|
|
240
|
+
justifyContent: "start",
|
|
241
|
+
alignItems: "center",
|
|
242
|
+
width: "80%",
|
|
243
|
+
fontSize: "13px"
|
|
244
|
+
},
|
|
245
|
+
children: option.name
|
|
246
|
+
}
|
|
247
|
+
),
|
|
248
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
249
|
+
import_Box.default,
|
|
250
|
+
{
|
|
251
|
+
component: "span",
|
|
252
|
+
sx: {
|
|
253
|
+
flexShrink: 0,
|
|
254
|
+
borderRadius: "3px",
|
|
255
|
+
mr: 1,
|
|
256
|
+
mt: "2px",
|
|
257
|
+
justifyContent: "end",
|
|
258
|
+
width: "20%",
|
|
259
|
+
alignItems: "center"
|
|
260
|
+
},
|
|
261
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
262
|
+
import_Checkbox.default,
|
|
263
|
+
{
|
|
264
|
+
sx: {
|
|
265
|
+
color: "green",
|
|
266
|
+
"&.Mui-checked": {
|
|
267
|
+
color: "#6750A4"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
...label1,
|
|
271
|
+
checked: checked.some((x) => Number(x.id) === option.id),
|
|
272
|
+
onChange: () => {
|
|
273
|
+
handleMultiSelectChange(option);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
)
|
|
277
|
+
}
|
|
278
|
+
)
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
),
|
|
282
|
+
options: [...list]?.sort((a, b) => {
|
|
283
|
+
let ai = value.indexOf(a);
|
|
284
|
+
ai = ai === -1 ? value.length + list?.indexOf(a) : ai;
|
|
285
|
+
let bi = value.indexOf(b);
|
|
286
|
+
bi = bi === -1 ? value.length + list?.indexOf(b) : bi;
|
|
287
|
+
return ai - bi;
|
|
288
|
+
}),
|
|
289
|
+
getOptionLabel: (option) => {
|
|
290
|
+
return option?.name;
|
|
291
|
+
},
|
|
292
|
+
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
293
|
+
import_Box.default,
|
|
294
|
+
{
|
|
295
|
+
component: "form",
|
|
296
|
+
sx: {
|
|
297
|
+
"& > :not(style)": {
|
|
298
|
+
justifyContent: "center",
|
|
299
|
+
width: "100%"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
noValidate: true,
|
|
303
|
+
autoComplete: "off",
|
|
304
|
+
children: [
|
|
305
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
306
|
+
import_TextField.default,
|
|
307
|
+
{
|
|
308
|
+
id: "filled-basic",
|
|
309
|
+
label: "Search State",
|
|
310
|
+
variant: "filled",
|
|
311
|
+
sx: {
|
|
312
|
+
width: "100%",
|
|
313
|
+
margin: "10px",
|
|
314
|
+
"& MuiInputBase-root & MuiFilledInput-root": {
|
|
315
|
+
width: "94%"
|
|
316
|
+
},
|
|
317
|
+
"& > :not(style)": {
|
|
318
|
+
justifyContent: "center",
|
|
319
|
+
width: "94%"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
ref: params.InputProps.ref,
|
|
323
|
+
inputProps: params.inputProps
|
|
324
|
+
}
|
|
325
|
+
),
|
|
326
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
327
|
+
"svg",
|
|
328
|
+
{
|
|
329
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
330
|
+
style: { position: "absolute", left: "90px", top: "30px" },
|
|
331
|
+
width: "24",
|
|
332
|
+
height: "24",
|
|
333
|
+
viewBox: "0 0 24 24",
|
|
334
|
+
fill: "none",
|
|
335
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
336
|
+
"path",
|
|
337
|
+
{
|
|
338
|
+
fillRule: "evenodd",
|
|
339
|
+
clipRule: "evenodd",
|
|
340
|
+
d: "M14.76 13.27L20.49 19L19 20.49L13.27 14.76C12.2 15.53 10.91 16 9.5 16C5.91 16 3 13.09 3 9.5C3 5.91 5.91 3 9.5 3C13.09 3 16 5.91 16 9.5C16 10.91 15.53 12.2 14.76 13.27ZM9.5 5C7.01 5 5 7.01 5 9.5C5 11.99 7.01 14 9.5 14C11.99 14 14 11.99 14 9.5C14 7.01 11.99 5 9.5 5Z",
|
|
341
|
+
fill: "#49454F"
|
|
342
|
+
}
|
|
343
|
+
)
|
|
344
|
+
}
|
|
345
|
+
)
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
)
|
|
349
|
+
}
|
|
350
|
+
),
|
|
351
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
352
|
+
import_Box.default,
|
|
353
|
+
{
|
|
354
|
+
sx: {
|
|
355
|
+
display: "flex",
|
|
356
|
+
flexDirection: "row",
|
|
357
|
+
alignItems: "center",
|
|
358
|
+
justifyContent: "space-between",
|
|
359
|
+
padding: 2,
|
|
360
|
+
gap: 2,
|
|
361
|
+
width: "100%"
|
|
362
|
+
},
|
|
363
|
+
children: [
|
|
364
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
365
|
+
import_material2.Button,
|
|
366
|
+
{
|
|
367
|
+
onClick: () => OnSubmit(),
|
|
368
|
+
variant: "contained",
|
|
369
|
+
fullWidth: true,
|
|
370
|
+
sx: {
|
|
371
|
+
textTransform: "none",
|
|
372
|
+
minWidth: 100,
|
|
373
|
+
backgroundColor: "#7c3aed",
|
|
374
|
+
"&:hover": {
|
|
375
|
+
backgroundColor: "#6d28d9"
|
|
376
|
+
},
|
|
377
|
+
height: "40px"
|
|
378
|
+
},
|
|
379
|
+
children: "Apply"
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
383
|
+
import_material2.Button,
|
|
384
|
+
{
|
|
385
|
+
onClick: () => {
|
|
386
|
+
setChecked([]);
|
|
387
|
+
setData([]);
|
|
388
|
+
handleClose();
|
|
389
|
+
},
|
|
390
|
+
variant: "outlined",
|
|
391
|
+
fullWidth: true,
|
|
392
|
+
color: "inherit",
|
|
393
|
+
sx: { textTransform: "none", minWidth: 100, height: "40px" },
|
|
394
|
+
children: "Clear"
|
|
395
|
+
}
|
|
396
|
+
)
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
)
|
|
400
|
+
] }) })
|
|
401
|
+
}
|
|
402
|
+
)
|
|
403
|
+
] });
|
|
404
|
+
};
|
|
405
|
+
var StyledAutocompletePopper = (0, import_styles.styled)("div")(({ theme }) => ({
|
|
406
|
+
width: 250,
|
|
407
|
+
minWidth: 250,
|
|
408
|
+
[`& .${import_Autocomplete.autocompleteClasses.paper}`]: {
|
|
409
|
+
boxShadow: "none",
|
|
410
|
+
color: "inherit",
|
|
411
|
+
fontSize: 13
|
|
412
|
+
},
|
|
413
|
+
[`& .${import_Autocomplete.autocompleteClasses.listbox}`]: {
|
|
414
|
+
backgroundColor: theme.palette.mode === "light" ? "#fff" : "#1c2128",
|
|
415
|
+
padding: 0,
|
|
416
|
+
maxHeight: 280,
|
|
417
|
+
[`& .${import_Autocomplete.autocompleteClasses.option}`]: {
|
|
418
|
+
minHeight: "auto",
|
|
419
|
+
alignItems: "flex-start",
|
|
420
|
+
padding: 8,
|
|
421
|
+
borderBottom: `1px solid ${theme.palette.mode === "light" ? "#eaecef" : "#30363d"}`,
|
|
422
|
+
'&[aria-selected="true"]': {
|
|
423
|
+
backgroundColor: "transparent"
|
|
424
|
+
},
|
|
425
|
+
[`&.${import_Autocomplete.autocompleteClasses.focused}, &.${import_Autocomplete.autocompleteClasses.focused}[aria-selected="true"]`]: {
|
|
426
|
+
backgroundColor: theme.palette.action.hover
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
[`&.${import_Autocomplete.autocompleteClasses.popperDisablePortal}`]: {
|
|
431
|
+
position: "relative"
|
|
432
|
+
}
|
|
433
|
+
}));
|
|
434
|
+
function PopperComponent(props) {
|
|
435
|
+
const { disablePortal, anchorEl, open, ...other } = props;
|
|
436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StyledAutocompletePopper, { ...other });
|
|
437
|
+
}
|
|
438
|
+
var StyledPopper = (0, import_styles.styled)(import_Popper.default)(({ theme }) => ({
|
|
439
|
+
border: `1px solid ${theme.palette.mode === "light" ? "#e1e4e8" : "#30363d"}`,
|
|
440
|
+
boxShadow: `0 8px 24px ${theme.palette.mode === "light" ? "rgba(149, 157, 165, 0.2)" : "rgb(1, 4, 9)"}`,
|
|
441
|
+
borderRadius: 6,
|
|
442
|
+
width: 250,
|
|
443
|
+
minWidth: 250,
|
|
444
|
+
zIndex: theme.zIndex.modal,
|
|
445
|
+
fontSize: 13,
|
|
446
|
+
color: theme.palette.mode === "light" ? "#24292e" : "#c9d1d9",
|
|
447
|
+
backgroundColor: theme.palette.mode === "light" ? "#fff" : "#1c2128"
|
|
448
|
+
}));
|
|
449
|
+
|
|
450
|
+
// src/components/AdvancedFiltersDialog/AdvancedFiltersDialog.tsx
|
|
451
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
452
|
+
var defaultLocationOptions = [
|
|
453
|
+
{ id: 1, label: "Location A" },
|
|
454
|
+
{ id: 2, label: "Location B" }
|
|
455
|
+
];
|
|
456
|
+
var defaultBusinessAreaOptions = [
|
|
457
|
+
{ id: 1, label: "Retail" },
|
|
458
|
+
{ id: 2, label: "Healthcare" }
|
|
459
|
+
];
|
|
460
|
+
var AdvancedFiltersDialog = ({
|
|
461
|
+
open,
|
|
462
|
+
onClose,
|
|
463
|
+
locationOptions = defaultLocationOptions.map((option) => ({
|
|
464
|
+
id: option.id,
|
|
465
|
+
name: option.label
|
|
466
|
+
})),
|
|
467
|
+
businessAreaOptions = defaultBusinessAreaOptions.map((option) => ({
|
|
468
|
+
id: option.id,
|
|
469
|
+
name: option.label
|
|
470
|
+
})),
|
|
471
|
+
selectedLocations = [],
|
|
472
|
+
selectedBusinessAreas = [],
|
|
473
|
+
onLocationsChange = () => {
|
|
474
|
+
},
|
|
475
|
+
onBusinessAreasChange = () => {
|
|
476
|
+
},
|
|
477
|
+
onApply,
|
|
478
|
+
onCancel
|
|
479
|
+
}) => {
|
|
480
|
+
const handleApply = () => {
|
|
481
|
+
onApply?.();
|
|
482
|
+
onClose();
|
|
483
|
+
};
|
|
484
|
+
const handleCancel = () => {
|
|
485
|
+
onCancel?.();
|
|
486
|
+
onClose();
|
|
487
|
+
};
|
|
488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material3.Dialog, { open, onClose, maxWidth: "sm", fullWidth: true, children: [
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.DialogTitle, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material3.Box, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
490
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Typography, { variant: "h6", children: "Advanced Filters" }),
|
|
491
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.IconButton, { onClick: onClose, size: "small", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material.Close, {}) })
|
|
492
|
+
] }) }),
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.DialogContent, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material3.Box, { sx: { display: "flex", flexDirection: "column", gap: 2, pt: 1 }, children: [
|
|
494
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
495
|
+
FalconMultiSelect,
|
|
496
|
+
{
|
|
497
|
+
label: "Locations",
|
|
498
|
+
list: locationOptions,
|
|
499
|
+
data: selectedLocations,
|
|
500
|
+
setData: onLocationsChange
|
|
501
|
+
}
|
|
502
|
+
),
|
|
503
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
504
|
+
FalconMultiSelect,
|
|
505
|
+
{
|
|
506
|
+
label: "Business Areas",
|
|
507
|
+
list: businessAreaOptions,
|
|
508
|
+
data: selectedBusinessAreas,
|
|
509
|
+
setData: onBusinessAreasChange
|
|
510
|
+
}
|
|
511
|
+
)
|
|
512
|
+
] }) }),
|
|
513
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material3.DialogActions, { children: [
|
|
514
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Button, { onClick: handleCancel, children: "Cancel" }),
|
|
515
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Button, { variant: "contained", onClick: handleApply, children: "Apply" })
|
|
516
|
+
] })
|
|
517
|
+
] });
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
// src/components/ButtonWithIcon/ButtonWithIcon.tsx
|
|
521
|
+
var import_material4 = require("@mui/material");
|
|
522
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
523
|
+
var ButtonWithIcon = ({
|
|
524
|
+
size = "large",
|
|
525
|
+
variant = "contained",
|
|
526
|
+
children,
|
|
527
|
+
icon,
|
|
528
|
+
...props
|
|
529
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
530
|
+
import_material4.Button,
|
|
531
|
+
{
|
|
532
|
+
fullWidth: true,
|
|
533
|
+
size,
|
|
534
|
+
variant,
|
|
535
|
+
sx: { minWidth: "200px", maxWidth: "250px", backgroundColor: "white", color: "black" },
|
|
536
|
+
...props,
|
|
537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.Box, { display: "flex", gap: 1, justifyContent: "space-between", alignItems: "center", children: [
|
|
538
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Typography, { variant: "inherit", children }),
|
|
539
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Box, { mt: 0.25, ml: 0.5, children: icon })
|
|
540
|
+
] })
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
|
|
544
|
+
// src/components/FalconButton/FalconButton.tsx
|
|
545
|
+
var import_material5 = require("@mui/material");
|
|
546
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
547
|
+
var FalconButton = ({
|
|
548
|
+
loading = false,
|
|
549
|
+
disabled,
|
|
550
|
+
children,
|
|
551
|
+
size = "large",
|
|
552
|
+
variant = "contained",
|
|
553
|
+
type = "submit",
|
|
554
|
+
fullWidth = true,
|
|
555
|
+
className = "falcon-btn",
|
|
556
|
+
...props
|
|
557
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
558
|
+
import_material5.Button,
|
|
559
|
+
{
|
|
560
|
+
disabled: disabled || loading,
|
|
561
|
+
size,
|
|
562
|
+
variant,
|
|
563
|
+
type,
|
|
564
|
+
fullWidth,
|
|
565
|
+
className,
|
|
566
|
+
...props,
|
|
567
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.CircularProgress, { size: 16, color: "inherit" }) : children
|
|
568
|
+
}
|
|
569
|
+
);
|
|
570
|
+
|
|
571
|
+
// src/components/FalconDIstrictFilter/FalconDIstrictFilter.tsx
|
|
572
|
+
var import_material6 = require("@mui/material");
|
|
573
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
574
|
+
var FalconDIstrictFilter = ({
|
|
575
|
+
label = "District",
|
|
576
|
+
options = [],
|
|
577
|
+
value = [],
|
|
578
|
+
onChange
|
|
579
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
580
|
+
import_material6.Autocomplete,
|
|
581
|
+
{
|
|
582
|
+
multiple: true,
|
|
583
|
+
options,
|
|
584
|
+
value,
|
|
585
|
+
onChange: (_, newValue) => onChange?.(newValue),
|
|
586
|
+
getOptionLabel: (opt) => typeof opt === "object" && opt !== null ? opt.label : "",
|
|
587
|
+
isOptionEqualToValue: (a, b) => a.id === b.id,
|
|
588
|
+
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.TextField, { ...params, label, placeholder: "Select districts" })
|
|
589
|
+
}
|
|
590
|
+
);
|
|
591
|
+
|
|
592
|
+
// src/components/FalconGrayButton/FalconGrayButton.tsx
|
|
593
|
+
var import_material7 = require("@mui/material");
|
|
594
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
595
|
+
var FalconGrayButton = ({
|
|
596
|
+
text,
|
|
597
|
+
Icon: Icon4,
|
|
598
|
+
onClick
|
|
599
|
+
}) => {
|
|
600
|
+
const theme = (0, import_material7.useTheme)();
|
|
601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
602
|
+
import_material7.Box,
|
|
603
|
+
{
|
|
604
|
+
sx: {
|
|
605
|
+
cursor: onClick ? "pointer" : "default",
|
|
606
|
+
padding: 4,
|
|
607
|
+
borderRadius: "8px",
|
|
608
|
+
background: theme.palette.secondary?.light ?? "#f0f0f0"
|
|
609
|
+
},
|
|
610
|
+
onClick,
|
|
611
|
+
role: onClick ? "button" : void 0,
|
|
612
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_material7.Stack, { direction: "row", justifyContent: "center", gap: 4, alignItems: "center", children: [
|
|
613
|
+
Icon4,
|
|
614
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.Typography, { fontSize: 12, align: "center", fontWeight: "bold", children: text })
|
|
615
|
+
] })
|
|
616
|
+
}
|
|
617
|
+
);
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
// src/components/FalconPagination/FalconPagination.tsx
|
|
621
|
+
var import_material8 = require("@mui/material");
|
|
622
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
623
|
+
var selectStyle = {
|
|
624
|
+
border: "none",
|
|
625
|
+
backgroundColor: "transparent",
|
|
626
|
+
padding: "5px 10px",
|
|
627
|
+
fontSize: "14px",
|
|
628
|
+
fontWeight: 500,
|
|
629
|
+
color: "#555770",
|
|
630
|
+
cursor: "pointer",
|
|
631
|
+
outline: "none"
|
|
632
|
+
};
|
|
633
|
+
var optionStyle = { padding: "5px 10px" };
|
|
634
|
+
var btnStyle = {
|
|
635
|
+
border: "none",
|
|
636
|
+
backgroundColor: "transparent",
|
|
637
|
+
padding: "5px 10px",
|
|
638
|
+
cursor: "pointer",
|
|
639
|
+
outline: "none"
|
|
640
|
+
};
|
|
641
|
+
var FalconPagination = ({
|
|
642
|
+
pageNo,
|
|
643
|
+
setPageNo,
|
|
644
|
+
perPage,
|
|
645
|
+
setPerPage,
|
|
646
|
+
totalItems,
|
|
647
|
+
perPageOptions = [12, 24, 36]
|
|
648
|
+
}) => {
|
|
649
|
+
const totalPage = Math.ceil(totalItems / perPage) || 1;
|
|
650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
651
|
+
import_material8.Stack,
|
|
652
|
+
{
|
|
653
|
+
spacing: 2,
|
|
654
|
+
alignItems: "center",
|
|
655
|
+
direction: "row",
|
|
656
|
+
width: "100%",
|
|
657
|
+
bgcolor: "#F0F0F0",
|
|
658
|
+
children: [
|
|
659
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
660
|
+
"select",
|
|
661
|
+
{
|
|
662
|
+
style: selectStyle,
|
|
663
|
+
value: perPage,
|
|
664
|
+
onChange: (e) => setPerPage(Number(e.target.value)),
|
|
665
|
+
"aria-label": "Items per page",
|
|
666
|
+
children: perPageOptions.map((n) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { style: optionStyle, value: n, children: n }, n))
|
|
667
|
+
}
|
|
668
|
+
) }),
|
|
669
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Divider, { orientation: "vertical", flexItem: true }),
|
|
670
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material8.Box, { sx: { color: "#525252", fontFamily: "roboto" }, children: [
|
|
671
|
+
perPage * (pageNo - 1) + 1,
|
|
672
|
+
" - ",
|
|
673
|
+
Math.min(perPage * pageNo, totalItems),
|
|
674
|
+
" ",
|
|
675
|
+
"of ",
|
|
676
|
+
totalItems,
|
|
677
|
+
" items"
|
|
678
|
+
] }) }),
|
|
679
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Divider, { orientation: "vertical", flexItem: true }),
|
|
680
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material8.Stack, { alignItems: "center", direction: "row", gap: 1, children: [
|
|
681
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
682
|
+
"select",
|
|
683
|
+
{
|
|
684
|
+
style: selectStyle,
|
|
685
|
+
value: pageNo,
|
|
686
|
+
onChange: (e) => setPageNo(Number(e.target.value)),
|
|
687
|
+
"aria-label": "Page number",
|
|
688
|
+
children: Array.from({ length: totalPage }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { style: optionStyle, value: i + 1, children: i + 1 }, i))
|
|
689
|
+
}
|
|
690
|
+
) }),
|
|
691
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material8.Box, { sx: { color: "#525252", fontFamily: "roboto" }, children: [
|
|
692
|
+
"of ",
|
|
693
|
+
totalPage,
|
|
694
|
+
" pages"
|
|
695
|
+
] })
|
|
696
|
+
] }),
|
|
697
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Divider, { orientation: "vertical", flexItem: true }),
|
|
698
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material8.Stack, { direction: "row", gap: 1, children: [
|
|
699
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
700
|
+
"button",
|
|
701
|
+
{
|
|
702
|
+
type: "button",
|
|
703
|
+
disabled: pageNo === 1,
|
|
704
|
+
onClick: () => setPageNo(pageNo - 1),
|
|
705
|
+
style: btnStyle,
|
|
706
|
+
"aria-label": "Previous page",
|
|
707
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
708
|
+
"svg",
|
|
709
|
+
{
|
|
710
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
711
|
+
width: "16",
|
|
712
|
+
height: "16",
|
|
713
|
+
viewBox: "0 0 16 16",
|
|
714
|
+
fill: "none",
|
|
715
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M10 12L5 8L10 4V12Z", fill: "#161616" })
|
|
716
|
+
}
|
|
717
|
+
)
|
|
718
|
+
}
|
|
719
|
+
),
|
|
720
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
721
|
+
"button",
|
|
722
|
+
{
|
|
723
|
+
type: "button",
|
|
724
|
+
disabled: pageNo === totalPage,
|
|
725
|
+
onClick: () => setPageNo(pageNo + 1),
|
|
726
|
+
style: btnStyle,
|
|
727
|
+
"aria-label": "Next page",
|
|
728
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
729
|
+
"svg",
|
|
730
|
+
{
|
|
731
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
732
|
+
width: "16",
|
|
733
|
+
height: "16",
|
|
734
|
+
viewBox: "0 0 16 16",
|
|
735
|
+
fill: "none",
|
|
736
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M6 4L11 8L6 12V4Z", fill: "#161616" })
|
|
737
|
+
}
|
|
738
|
+
)
|
|
739
|
+
}
|
|
740
|
+
)
|
|
741
|
+
] })
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
);
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
// src/components/FalconSelect/FalconSelect.tsx
|
|
748
|
+
var import_material9 = require("@mui/material");
|
|
749
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
750
|
+
function normalizeOptions(options) {
|
|
751
|
+
return options.map(
|
|
752
|
+
(opt) => typeof opt === "string" ? { value: opt.toLowerCase(), label: opt } : opt
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
var FalconSelect = ({
|
|
756
|
+
label,
|
|
757
|
+
value,
|
|
758
|
+
onChange,
|
|
759
|
+
options,
|
|
760
|
+
disabled = false,
|
|
761
|
+
clearable = true
|
|
762
|
+
}) => {
|
|
763
|
+
const items = normalizeOptions(options);
|
|
764
|
+
const handleChange = (event) => {
|
|
765
|
+
const v = event.target.value;
|
|
766
|
+
onChange(v !== "" ? v : "");
|
|
767
|
+
};
|
|
768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material9.FormControl, { variant: "filled", fullWidth: true, color: "primary", children: [
|
|
769
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material9.InputLabel, { id: `falcon-select-${label}-label`, children: [
|
|
770
|
+
"Select ",
|
|
771
|
+
label,
|
|
772
|
+
" *"
|
|
773
|
+
] }),
|
|
774
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
775
|
+
import_material9.Select,
|
|
776
|
+
{
|
|
777
|
+
disabled,
|
|
778
|
+
value: value?.toLowerCase() ?? "",
|
|
779
|
+
label: `Select ${label}`,
|
|
780
|
+
onChange: handleChange,
|
|
781
|
+
labelId: `falcon-select-${label}-label`,
|
|
782
|
+
id: `falcon-select-${label}`,
|
|
783
|
+
children: [
|
|
784
|
+
clearable && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.MenuItem, { value: "", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("em", { children: "--Clear--" }) }),
|
|
785
|
+
items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.MenuItem, { value: item.value, children: item.label }, i))
|
|
786
|
+
]
|
|
787
|
+
}
|
|
788
|
+
)
|
|
789
|
+
] });
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
// src/components/FalconSingleSwitch/FalconSingleSwitch.tsx
|
|
793
|
+
var import_Stack = __toESM(require("@mui/material/Stack"));
|
|
794
|
+
var import_Switch = __toESM(require("@mui/material/Switch"));
|
|
795
|
+
var import_styles2 = require("@mui/material/styles");
|
|
796
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
797
|
+
var AntSwitch = (0, import_styles2.styled)(import_Switch.default)(() => ({
|
|
798
|
+
width: 28,
|
|
799
|
+
height: 16,
|
|
800
|
+
padding: 0,
|
|
801
|
+
display: "flex",
|
|
802
|
+
"&:active": {
|
|
803
|
+
"& .MuiSwitch-thumb": { width: 15 },
|
|
804
|
+
"& .MuiSwitch-switchBase.Mui-checked": { transform: "translateX(9px)" }
|
|
805
|
+
},
|
|
806
|
+
"& .MuiSwitch-switchBase": {
|
|
807
|
+
padding: 2,
|
|
808
|
+
"&.Mui-checked": {
|
|
809
|
+
transform: "translateX(12px)",
|
|
810
|
+
color: "#fff",
|
|
811
|
+
"& + .MuiSwitch-track": { opacity: 1 }
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"& .MuiSwitch-thumb": {
|
|
815
|
+
boxShadow: "0 2px 4px 0 rgb(0 35 11 / 20%)",
|
|
816
|
+
width: 12,
|
|
817
|
+
height: 12,
|
|
818
|
+
borderRadius: 6
|
|
819
|
+
},
|
|
820
|
+
"& .MuiSwitch-track": {
|
|
821
|
+
borderRadius: 8,
|
|
822
|
+
opacity: 1,
|
|
823
|
+
backgroundColor: "rgba(0,0,0,.25)",
|
|
824
|
+
boxSizing: "border-box"
|
|
825
|
+
}
|
|
826
|
+
}));
|
|
827
|
+
var FalconSingleSwitch = ({
|
|
828
|
+
color,
|
|
829
|
+
setStatus,
|
|
830
|
+
value = false,
|
|
831
|
+
onChange
|
|
832
|
+
}) => {
|
|
833
|
+
const handleChange = (event, checked) => {
|
|
834
|
+
setStatus?.(checked);
|
|
835
|
+
onChange?.(event, checked);
|
|
836
|
+
};
|
|
837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Stack.default, { direction: "row", margin: 2, spacing: 1, alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
838
|
+
AntSwitch,
|
|
839
|
+
{
|
|
840
|
+
checked: value,
|
|
841
|
+
onChange: handleChange,
|
|
842
|
+
color,
|
|
843
|
+
size: "medium",
|
|
844
|
+
inputProps: { "aria-label": "toggle" }
|
|
845
|
+
}
|
|
846
|
+
) });
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
// src/components/FalconTable/FalconTable.tsx
|
|
850
|
+
var import_material10 = require("@mui/material");
|
|
851
|
+
var import_x_data_grid = require("@mui/x-data-grid");
|
|
852
|
+
var import_react2 = require("react");
|
|
853
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
854
|
+
var FalconTable = ({
|
|
855
|
+
rows,
|
|
856
|
+
getRowId,
|
|
857
|
+
columns,
|
|
858
|
+
pageSizeOptions = [7, 10, 25, 50]
|
|
859
|
+
}) => {
|
|
860
|
+
const [paginationModel, setPaginationModel] = (0, import_react2.useState)({
|
|
861
|
+
page: 0,
|
|
862
|
+
pageSize: 7
|
|
863
|
+
});
|
|
864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
865
|
+
import_material10.Box,
|
|
866
|
+
{
|
|
867
|
+
sx: {
|
|
868
|
+
border: "2px solid #F2F2F2",
|
|
869
|
+
padding: "16px",
|
|
870
|
+
borderRadius: "12px"
|
|
871
|
+
},
|
|
872
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
873
|
+
import_x_data_grid.DataGrid,
|
|
874
|
+
{
|
|
875
|
+
autoHeight: true,
|
|
876
|
+
sx: {
|
|
877
|
+
minHeight: "48px",
|
|
878
|
+
"& .MuiDataGrid-columnHeaders": {
|
|
879
|
+
borderBottom: "0px",
|
|
880
|
+
borderRadius: "6px !important"
|
|
881
|
+
},
|
|
882
|
+
"& .MuiDataGrid-columnHeaderTitle": {
|
|
883
|
+
color: "#7A7A7A !important"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
rows: rows ?? [],
|
|
887
|
+
getRowId,
|
|
888
|
+
columns,
|
|
889
|
+
disableRowSelectionOnClick: true,
|
|
890
|
+
pageSizeOptions,
|
|
891
|
+
paginationModel,
|
|
892
|
+
onPaginationModelChange: setPaginationModel
|
|
893
|
+
}
|
|
894
|
+
)
|
|
895
|
+
}
|
|
896
|
+
);
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
// src/components/FalconTicketColumsFilter/FalconTicketColumsFilter.tsx
|
|
900
|
+
var import_material11 = require("@mui/material");
|
|
901
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
902
|
+
var FalconTicketColumsFilter = ({
|
|
903
|
+
columns = [],
|
|
904
|
+
selected = [],
|
|
905
|
+
onSelectionChange
|
|
906
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material11.Box, { sx: { p: 2, minWidth: 280 }, children: [
|
|
907
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material11.Typography, { variant: "subtitle2", gutterBottom: true, children: "Select columns" }),
|
|
908
|
+
columns.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material11.Typography, { variant: "body2", color: "text.secondary", children: "No columns configured. Pass columns prop." }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material11.Typography, { variant: "body2", children: [
|
|
909
|
+
selected.length,
|
|
910
|
+
" of ",
|
|
911
|
+
columns.length,
|
|
912
|
+
" selected"
|
|
913
|
+
] }),
|
|
914
|
+
onSelectionChange && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material11.Typography, { variant: "caption", display: "block", sx: { mt: 1 }, children: "(Column checkboxes to be wired from app)" })
|
|
915
|
+
] });
|
|
916
|
+
|
|
917
|
+
// src/components/FalconTicketFilter/FalconTicketFilter.tsx
|
|
918
|
+
var import_material12 = require("@mui/material");
|
|
919
|
+
var import_react3 = require("react");
|
|
920
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
921
|
+
var FalconTicketFilter = ({
|
|
922
|
+
children,
|
|
923
|
+
label = "FILTERS",
|
|
924
|
+
open: controlledOpen,
|
|
925
|
+
onOpenChange
|
|
926
|
+
}) => {
|
|
927
|
+
const [internalOpen, setInternalOpen] = (0, import_react3.useState)(false);
|
|
928
|
+
const open = controlledOpen ?? internalOpen;
|
|
929
|
+
const setOpen = onOpenChange ?? setInternalOpen;
|
|
930
|
+
const [anchorEl, setAnchorEl] = (0, import_react3.useState)(null);
|
|
931
|
+
const handleClick = (event) => {
|
|
932
|
+
setAnchorEl(event.currentTarget);
|
|
933
|
+
setOpen(true);
|
|
934
|
+
};
|
|
935
|
+
const handleClose = () => {
|
|
936
|
+
setAnchorEl(null);
|
|
937
|
+
setOpen(false);
|
|
938
|
+
};
|
|
939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
|
|
940
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material12.Button, { onClick: handleClick, variant: "outlined", size: "medium", children: label }),
|
|
941
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
942
|
+
import_material12.Popover,
|
|
943
|
+
{
|
|
944
|
+
open,
|
|
945
|
+
anchorEl,
|
|
946
|
+
onClose: handleClose,
|
|
947
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
948
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { padding: 16, minWidth: 280 }, children })
|
|
949
|
+
}
|
|
950
|
+
)
|
|
951
|
+
] });
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
// src/components/HeatMapChartLegend/HeatMapChartLegend.tsx
|
|
955
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
956
|
+
var HeatMapChartLegend = ({
|
|
957
|
+
title,
|
|
958
|
+
items,
|
|
959
|
+
gradientId,
|
|
960
|
+
gradientStops
|
|
961
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
962
|
+
"div",
|
|
963
|
+
{
|
|
964
|
+
style: {
|
|
965
|
+
display: "flex",
|
|
966
|
+
alignItems: "center",
|
|
967
|
+
gap: "12px",
|
|
968
|
+
marginBottom: "16px",
|
|
969
|
+
fontFamily: "sans-serif"
|
|
970
|
+
},
|
|
971
|
+
children: [
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
973
|
+
"span",
|
|
974
|
+
{
|
|
975
|
+
style: {
|
|
976
|
+
fontSize: "12px",
|
|
977
|
+
fontWeight: 700,
|
|
978
|
+
color: "#374151",
|
|
979
|
+
minWidth: "80px",
|
|
980
|
+
textAlign: "right"
|
|
981
|
+
},
|
|
982
|
+
children: title
|
|
983
|
+
}
|
|
984
|
+
),
|
|
985
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
986
|
+
"div",
|
|
987
|
+
{
|
|
988
|
+
style: {
|
|
989
|
+
display: "flex",
|
|
990
|
+
alignItems: "center",
|
|
991
|
+
position: "relative",
|
|
992
|
+
flex: 1,
|
|
993
|
+
maxWidth: "600px"
|
|
994
|
+
},
|
|
995
|
+
children: [
|
|
996
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
997
|
+
"svg",
|
|
998
|
+
{
|
|
999
|
+
width: "100%",
|
|
1000
|
+
height: "32",
|
|
1001
|
+
style: { filter: "drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))" },
|
|
1002
|
+
children: [
|
|
1003
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1004
|
+
"linearGradient",
|
|
1005
|
+
{
|
|
1006
|
+
id: gradientId,
|
|
1007
|
+
x1: "0%",
|
|
1008
|
+
y1: "0%",
|
|
1009
|
+
x2: "100%",
|
|
1010
|
+
y2: "0%",
|
|
1011
|
+
children: gradientStops.map((stop, index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1012
|
+
"stop",
|
|
1013
|
+
{
|
|
1014
|
+
offset: stop.offset,
|
|
1015
|
+
stopColor: stop.color,
|
|
1016
|
+
stopOpacity: "1"
|
|
1017
|
+
},
|
|
1018
|
+
index
|
|
1019
|
+
))
|
|
1020
|
+
}
|
|
1021
|
+
) }),
|
|
1022
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1023
|
+
"rect",
|
|
1024
|
+
{
|
|
1025
|
+
width: "100%",
|
|
1026
|
+
height: "100%",
|
|
1027
|
+
fill: `url(#${gradientId})`
|
|
1028
|
+
}
|
|
1029
|
+
)
|
|
1030
|
+
]
|
|
1031
|
+
}
|
|
1032
|
+
),
|
|
1033
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1034
|
+
"div",
|
|
1035
|
+
{
|
|
1036
|
+
style: {
|
|
1037
|
+
position: "absolute",
|
|
1038
|
+
top: 0,
|
|
1039
|
+
left: 0,
|
|
1040
|
+
right: 0,
|
|
1041
|
+
bottom: 0,
|
|
1042
|
+
display: "flex",
|
|
1043
|
+
alignItems: "center",
|
|
1044
|
+
justifyContent: "space-between",
|
|
1045
|
+
paddingLeft: "16px",
|
|
1046
|
+
paddingRight: "16px"
|
|
1047
|
+
},
|
|
1048
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1049
|
+
"span",
|
|
1050
|
+
{
|
|
1051
|
+
style: {
|
|
1052
|
+
fontSize: "9px",
|
|
1053
|
+
fontWeight: 600,
|
|
1054
|
+
color: "white",
|
|
1055
|
+
textShadow: "0 1px 2px rgba(0, 0, 0, 0.5)",
|
|
1056
|
+
letterSpacing: "0.025em"
|
|
1057
|
+
},
|
|
1058
|
+
children: item.label
|
|
1059
|
+
},
|
|
1060
|
+
index
|
|
1061
|
+
))
|
|
1062
|
+
}
|
|
1063
|
+
)
|
|
1064
|
+
]
|
|
1065
|
+
}
|
|
1066
|
+
)
|
|
1067
|
+
]
|
|
1068
|
+
}
|
|
1069
|
+
);
|
|
1070
|
+
|
|
1071
|
+
// src/components/ProgressBarNumber/ProgressBarNumber.tsx
|
|
1072
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1073
|
+
var FullProgress = ({
|
|
1074
|
+
number,
|
|
1075
|
+
numColor
|
|
1076
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1077
|
+
"svg",
|
|
1078
|
+
{
|
|
1079
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1080
|
+
width: 56,
|
|
1081
|
+
height: 56,
|
|
1082
|
+
viewBox: "0 0 56 56",
|
|
1083
|
+
fill: "none",
|
|
1084
|
+
children: [
|
|
1085
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1086
|
+
"circle",
|
|
1087
|
+
{
|
|
1088
|
+
cx: 28,
|
|
1089
|
+
cy: 28,
|
|
1090
|
+
r: 26,
|
|
1091
|
+
fill: "#D9D9D9",
|
|
1092
|
+
stroke: "#222222",
|
|
1093
|
+
strokeWidth: 4
|
|
1094
|
+
}
|
|
1095
|
+
),
|
|
1096
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("text", { x: 28, y: 36, fontSize: 24, textAnchor: "middle", fill: numColor, children: number })
|
|
1097
|
+
]
|
|
1098
|
+
}
|
|
1099
|
+
);
|
|
1100
|
+
var HalfProgress = ({
|
|
1101
|
+
number,
|
|
1102
|
+
numColor
|
|
1103
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1104
|
+
"svg",
|
|
1105
|
+
{
|
|
1106
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1107
|
+
width: 56,
|
|
1108
|
+
height: 56,
|
|
1109
|
+
viewBox: "0 0 56 56",
|
|
1110
|
+
fill: "none",
|
|
1111
|
+
children: [
|
|
1112
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1113
|
+
"circle",
|
|
1114
|
+
{
|
|
1115
|
+
cx: 28,
|
|
1116
|
+
cy: 28,
|
|
1117
|
+
r: 26,
|
|
1118
|
+
fill: "#D9D9D9",
|
|
1119
|
+
stroke: "#222222",
|
|
1120
|
+
strokeWidth: 4,
|
|
1121
|
+
strokeDasharray: 85,
|
|
1122
|
+
strokeDashoffset: 130
|
|
1123
|
+
}
|
|
1124
|
+
),
|
|
1125
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("text", { x: 28, y: 36, fontSize: 24, textAnchor: "middle", fill: numColor, children: number })
|
|
1126
|
+
]
|
|
1127
|
+
}
|
|
1128
|
+
);
|
|
1129
|
+
var NoProgress = ({
|
|
1130
|
+
number,
|
|
1131
|
+
numColor
|
|
1132
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1133
|
+
"svg",
|
|
1134
|
+
{
|
|
1135
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1136
|
+
width: 56,
|
|
1137
|
+
height: 56,
|
|
1138
|
+
viewBox: "0 0 56 56",
|
|
1139
|
+
fill: "none",
|
|
1140
|
+
children: [
|
|
1141
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1142
|
+
"circle",
|
|
1143
|
+
{
|
|
1144
|
+
cx: 28,
|
|
1145
|
+
cy: 28,
|
|
1146
|
+
r: 26,
|
|
1147
|
+
fill: "#D9D9D9",
|
|
1148
|
+
stroke: "#222222",
|
|
1149
|
+
strokeOpacity: "0.1",
|
|
1150
|
+
strokeWidth: "4"
|
|
1151
|
+
}
|
|
1152
|
+
),
|
|
1153
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("text", { x: 28, y: 36, fontSize: 24, textAnchor: "middle", fill: numColor, children: number })
|
|
1154
|
+
]
|
|
1155
|
+
}
|
|
1156
|
+
);
|
|
1157
|
+
var ProgressBarNumber = ({
|
|
1158
|
+
number,
|
|
1159
|
+
progress,
|
|
1160
|
+
numColor
|
|
1161
|
+
}) => {
|
|
1162
|
+
if (progress === 0) {
|
|
1163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(NoProgress, { number, numColor });
|
|
1164
|
+
}
|
|
1165
|
+
if (progress === 50) {
|
|
1166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(HalfProgress, { number, numColor });
|
|
1167
|
+
}
|
|
1168
|
+
if (progress === 100) {
|
|
1169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FullProgress, { number, numColor });
|
|
1170
|
+
}
|
|
1171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children: "Invalid Progress" });
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
// src/@core/theme/ThemeComponent.tsx
|
|
1175
|
+
var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
|
|
1176
|
+
var import_GlobalStyles = __toESM(require("@mui/material/GlobalStyles"));
|
|
1177
|
+
var import_styles5 = require("@mui/material/styles");
|
|
1178
|
+
|
|
1179
|
+
// src/@core/configs/themeConfig.ts
|
|
1180
|
+
var themeConfig = {
|
|
1181
|
+
// ** Layout Configs
|
|
1182
|
+
templateName: "OLY",
|
|
1183
|
+
layout: "vertical",
|
|
1184
|
+
direction: "ltr",
|
|
1185
|
+
// ** Routing Configs
|
|
1186
|
+
routingLoader: true,
|
|
1187
|
+
// ** Navigation (Menu) Configs
|
|
1188
|
+
navHidden: false,
|
|
1189
|
+
menuTextTruncate: true,
|
|
1190
|
+
navSubItemIcon: "tabler:chevron-right",
|
|
1191
|
+
navCollapsed: false,
|
|
1192
|
+
navigationSize: 260,
|
|
1193
|
+
collapsedNavigationSize: 82,
|
|
1194
|
+
afterVerticalNavMenuContentPosition: "fixed",
|
|
1195
|
+
beforeVerticalNavMenuContentPosition: "fixed",
|
|
1196
|
+
horizontalMenuAnimation: true,
|
|
1197
|
+
// ** AppBar Configs
|
|
1198
|
+
appBarBlur: true,
|
|
1199
|
+
// ** Other Configs
|
|
1200
|
+
responsiveFontSizes: true,
|
|
1201
|
+
disableRipple: false,
|
|
1202
|
+
disableCustomizer: true,
|
|
1203
|
+
toastPosition: "top-center"
|
|
1204
|
+
};
|
|
1205
|
+
var themeConfig_default = themeConfig;
|
|
1206
|
+
|
|
1207
|
+
// src/@core/theme/ThemeOptions.ts
|
|
1208
|
+
var import_utils = require("@mui/utils");
|
|
1209
|
+
|
|
1210
|
+
// src/@core/theme/UserThemeOptions.ts
|
|
1211
|
+
var UserThemeOptions = () => {
|
|
1212
|
+
return {
|
|
1213
|
+
/*
|
|
1214
|
+
palette:{
|
|
1215
|
+
primary: {
|
|
1216
|
+
light: '#8479F2',
|
|
1217
|
+
main: '#7367F0',
|
|
1218
|
+
dark: '#655BD3',
|
|
1219
|
+
contrastText: '#FFF'
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
breakpoints: {
|
|
1223
|
+
values: {
|
|
1224
|
+
xs: 0,
|
|
1225
|
+
sm: 768,
|
|
1226
|
+
md: 992,
|
|
1227
|
+
lg: 1200,
|
|
1228
|
+
xl: 1920
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
components: {
|
|
1232
|
+
MuiButton: {
|
|
1233
|
+
defaultProps: {
|
|
1234
|
+
disableElevation: true
|
|
1235
|
+
},
|
|
1236
|
+
styleOverrides: {
|
|
1237
|
+
root: {
|
|
1238
|
+
textTransform: 'none'
|
|
1239
|
+
},
|
|
1240
|
+
sizeSmall: {
|
|
1241
|
+
padding: '6px 16px'
|
|
1242
|
+
},
|
|
1243
|
+
sizeMedium: {
|
|
1244
|
+
padding: '8px 20px'
|
|
1245
|
+
},
|
|
1246
|
+
sizeLarge: {
|
|
1247
|
+
padding: '11px 24px'
|
|
1248
|
+
},
|
|
1249
|
+
textSizeSmall: {
|
|
1250
|
+
padding: '7px 12px'
|
|
1251
|
+
},
|
|
1252
|
+
textSizeMedium: {
|
|
1253
|
+
padding: '9px 16px'
|
|
1254
|
+
},
|
|
1255
|
+
textSizeLarge: {
|
|
1256
|
+
padding: '12px 16px'
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
MuiCardActions: {
|
|
1261
|
+
styleOverrides: {
|
|
1262
|
+
root: {
|
|
1263
|
+
padding: '16px 24px'
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
MuiCardContent: {
|
|
1268
|
+
styleOverrides: {
|
|
1269
|
+
root: {
|
|
1270
|
+
padding: '32px 24px',
|
|
1271
|
+
'&:last-child': {
|
|
1272
|
+
paddingBottom: '32px'
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
MuiCssBaseline: {
|
|
1278
|
+
styleOverrides: {
|
|
1279
|
+
'*': {
|
|
1280
|
+
boxSizing: 'border-box'
|
|
1281
|
+
},
|
|
1282
|
+
html: {
|
|
1283
|
+
MozOsxFontSmoothing: 'grayscale',
|
|
1284
|
+
WebkitFontSmoothing: 'antialiased',
|
|
1285
|
+
display: 'flex',
|
|
1286
|
+
flexDirection: 'column',
|
|
1287
|
+
minHeight: '100%',
|
|
1288
|
+
width: '100%'
|
|
1289
|
+
},
|
|
1290
|
+
body: {
|
|
1291
|
+
display: 'flex',
|
|
1292
|
+
flex: '1 1 auto',
|
|
1293
|
+
flexDirection: 'column',
|
|
1294
|
+
minHeight: '100%',
|
|
1295
|
+
width: '100%'
|
|
1296
|
+
},
|
|
1297
|
+
'#__next': {
|
|
1298
|
+
display: 'flex',
|
|
1299
|
+
flex: '1 1 auto',
|
|
1300
|
+
flexDirection: 'column',
|
|
1301
|
+
height: '100%',
|
|
1302
|
+
width: '100%'
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
shape: {
|
|
1308
|
+
borderRadius: 8
|
|
1309
|
+
},
|
|
1310
|
+
typography: {
|
|
1311
|
+
fontFamily:
|
|
1312
|
+
'"Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
|
|
1313
|
+
},
|
|
1314
|
+
shadows: mode === 'light' ? [
|
|
1315
|
+
'none',
|
|
1316
|
+
'0px 2px 4px 1px rgba(51, 48, 60, 0.03), 0px 3px 4px 0px rgba(51, 48, 60, 0.02), 0px 1px 3px 2px rgba(51, 48, 60, 0.01)',
|
|
1317
|
+
'0px 3px 5px 2px rgba(51, 48, 60, 0.03), 0px 3px 5px 0px rgba(51, 48, 60, 0.02), 0px 1px 4px 2px rgba(51, 48, 60, 0.01)',
|
|
1318
|
+
'0px 3px 6px 2px rgba(51, 48, 60, 0.03), 0px 4px 6px 0px rgba(51, 48, 60, 0.02), 0px 1px 4px 2px rgba(51, 48, 60, 0.01)',
|
|
1319
|
+
'0px 2px 7px 1px rgba(51, 48, 60, 0.03), 0px 4px 7px 0px rgba(51, 48, 60, 0.02), 0px 1px 4px 2px rgba(51, 48, 60, 0.01)',
|
|
1320
|
+
'0px 3px 8px 1px rgba(51, 48, 60, 0.03), 0px 6px 8px 0px rgba(51, 48, 60, 0.02), 0px 1px 5px 4px rgba(51, 48, 60, 0.01)',
|
|
1321
|
+
'0px 3px 9px 1px rgba(51, 48, 60, 0.03), 0px 8px 9px 0px rgba(51, 48, 60, 0.02), 0px 1px 6px 4px rgba(51, 48, 60, 0.01)',
|
|
1322
|
+
'0px 4px 10px 2px rgba(51, 48, 60, 0.03), 0px 9px 10px 1px rgba(51, 48, 60, 0.02), 0px 2px 7px 4px rgba(51, 48, 60, 0.01)',
|
|
1323
|
+
'0px 5px 11px 3px rgba(51, 48, 60, 0.03), 0px 8px 11px 1px rgba(51, 48, 60, 0.02), 0px 3px 8px 4px rgba(51, 48, 60, 0.01)',
|
|
1324
|
+
'0px 5px 12px 3px rgba(51, 48, 60, 0.03), 0px 9px 12px 1px rgba(51, 48, 60, 0.02), 0px 3px 9px 5px rgba(51, 48, 60, 0.01)',
|
|
1325
|
+
'0px 6px 13px 3px rgba(51, 48, 60, 0.03), 0px 10px 13px 1px rgba(51, 48, 60, 0.02), 0px 4px 10px 5px rgba(51, 48, 60, 0.01)',
|
|
1326
|
+
'0px 6px 14px 4px rgba(51, 48, 60, 0.03), 0px 11px 14px 1px rgba(51, 48, 60, 0.02), 0px 4px 11px 5px rgba(51, 48, 60, 0.01)',
|
|
1327
|
+
'0px 7px 15px 4px rgba(51, 48, 60, 0.03), 0px 12px 15px 2px rgba(51, 48, 60, 0.02), 0px 5px 12px 5px rgba(51, 48, 60, 0.01)',
|
|
1328
|
+
'0px 7px 16px 4px rgba(51, 48, 60, 0.03), 0px 13px 16px 2px rgba(51, 48, 60, 0.02), 0px 5px 13px 6px rgba(51, 48, 60, 0.01)',
|
|
1329
|
+
'0px 7px 17px 4px rgba(51, 48, 60, 0.03), 0px 14px 17px 2px rgba(51, 48, 60, 0.02), 0px 5px 14px 6px rgba(51, 48, 60, 0.01)',
|
|
1330
|
+
'0px 8px 18px 5px rgba(51, 48, 60, 0.03), 0px 15px 18px 2px rgba(51, 48, 60, 0.02), 0px 6px 15px 6px rgba(51, 48, 60, 0.01)',
|
|
1331
|
+
'0px 8px 19px 5px rgba(51, 48, 60, 0.03), 0px 16px 19px 2px rgba(51, 48, 60, 0.02), 0px 6px 16px 6px rgba(51, 48, 60, 0.01)',
|
|
1332
|
+
'0px 8px 20px 5px rgba(51, 48, 60, 0.03), 0px 17px 20px 2px rgba(51, 48, 60, 0.02), 0px 6px 17px 7px rgba(51, 48, 60, 0.01)',
|
|
1333
|
+
'0px 9px 21px 5px rgba(51, 48, 60, 0.03), 0px 18px 21px 2px rgba(51, 48, 60, 0.02), 0px 7px 18px 7px rgba(51, 48, 60, 0.01)',
|
|
1334
|
+
'0px 9px 22px 6px rgba(51, 48, 60, 0.03), 0px 19px 22px 2px rgba(51, 48, 60, 0.02), 0px 7px 19px 7px rgba(51, 48, 60, 0.01)',
|
|
1335
|
+
'0px 10px 23px 6px rgba(51, 48, 60, 0.03), 0px 20px 23px 3px rgba(51, 48, 60, 0.02), 0px 8px 20px 7px rgba(51, 48, 60, 0.01)',
|
|
1336
|
+
'0px 10px 24px 6px rgba(51, 48, 60, 0.03), 0px 21px 24px 3px rgba(51, 48, 60, 0.02), 0px 8px 21px 7px rgba(51, 48, 60, 0.01)',
|
|
1337
|
+
'0px 10px 25px 6px rgba(51, 48, 60, 0.03), 0px 22px 25px 3px rgba(51, 48, 60, 0.02), 0px 8px 22px 7px rgba(51, 48, 60, 0.01)',
|
|
1338
|
+
'0px 11px 26px 7px rgba(51, 48, 60, 0.03), 0px 23px 26px 3px rgba(51, 48, 60, 0.02), 0px 9px 23px 7px rgba(51, 48, 60, 0.01)',
|
|
1339
|
+
'0px 11px 27px 7px rgba(51, 48, 60, 0.03), 0px 24px 27px 3px rgba(51, 48, 60, 0.02), 0px 9px 24px 7px rgba(51, 48, 60, 0.01)'
|
|
1340
|
+
] : [
|
|
1341
|
+
'none',
|
|
1342
|
+
'0px 2px 4px 1px rgba(12, 16, 27, 0.15), 0px 3px 4px 0px rgba(12, 16, 27, 0.1), 0px 1px 3px 2px rgba(12, 16, 27, 0.08)',
|
|
1343
|
+
'0px 3px 5px 2px rgba(12, 16, 27, 0.15), 0px 3px 5px 0px rgba(12, 16, 27, 0.1), 0px 1px 4px 2px rgba(12, 16, 27, 0.08)',
|
|
1344
|
+
'0px 3px 6px 2px rgba(12, 16, 27, 0.15), 0px 4px 6px 0px rgba(12, 16, 27, 0.1), 0px 1px 4px 2px rgba(12, 16, 27, 0.08)',
|
|
1345
|
+
'0px 2px 7px 1px rgba(12, 16, 27, 0.15), 0px 4px 7px 0px rgba(12, 16, 27, 0.1), 0px 1px 4px 2px rgba(12, 16, 27, 0.08)',
|
|
1346
|
+
'0px 3px 8px 1px rgba(12, 16, 27, 0.15), 0px 6px 8px 0px rgba(12, 16, 27, 0.1), 0px 1px 5px 4px rgba(12, 16, 27, 0.08)',
|
|
1347
|
+
'0px 3px 9px 1px rgba(12, 16, 27, 0.15), 0px 8px 9px 0px rgba(12, 16, 27, 0.1), 0px 1px 6px 4px rgba(12, 16, 27, 0.08)',
|
|
1348
|
+
'0px 4px 10px 2px rgba(12, 16, 27, 0.15), 0px 9px 10px 1px rgba(12, 16, 27, 0.1), 0px 2px 7px 4px rgba(12, 16, 27, 0.08)',
|
|
1349
|
+
'0px 5px 11px 3px rgba(12, 16, 27, 0.15), 0px 8px 11px 1px rgba(12, 16, 27, 0.1), 0px 3px 8px 4px rgba(12, 16, 27, 0.08)',
|
|
1350
|
+
'0px 5px 12px 3px rgba(12, 16, 27, 0.15), 0px 9px 12px 1px rgba(12, 16, 27, 0.1), 0px 3px 9px 5px rgba(12, 16, 27, 0.08)',
|
|
1351
|
+
'0px 6px 13px 3px rgba(12, 16, 27, 0.15), 0px 10px 13px 1px rgba(12, 16, 27, 0.1), 0px 4px 10px 5px rgba(12, 16, 27, 0.08)',
|
|
1352
|
+
'0px 6px 14px 4px rgba(12, 16, 27, 0.15), 0px 11px 14px 1px rgba(12, 16, 27, 0.1), 0px 4px 11px 5px rgba(12, 16, 27, 0.08)',
|
|
1353
|
+
'0px 7px 15px 4px rgba(12, 16, 27, 0.15), 0px 12px 15px 2px rgba(12, 16, 27, 0.1), 0px 5px 12px 5px rgba(12, 16, 27, 0.08)',
|
|
1354
|
+
'0px 7px 16px 4px rgba(12, 16, 27, 0.15), 0px 13px 16px 2px rgba(12, 16, 27, 0.1), 0px 5px 13px 6px rgba(12, 16, 27, 0.08)',
|
|
1355
|
+
'0px 7px 17px 4px rgba(12, 16, 27, 0.15), 0px 14px 17px 2px rgba(12, 16, 27, 0.1), 0px 5px 14px 6px rgba(12, 16, 27, 0.08)',
|
|
1356
|
+
'0px 8px 18px 5px rgba(12, 16, 27, 0.15), 0px 15px 18px 2px rgba(12, 16, 27, 0.1), 0px 6px 15px 6px rgba(12, 16, 27, 0.08)',
|
|
1357
|
+
'0px 8px 19px 5px rgba(12, 16, 27, 0.15), 0px 16px 19px 2px rgba(12, 16, 27, 0.1), 0px 6px 16px 6px rgba(12, 16, 27, 0.08)',
|
|
1358
|
+
'0px 8px 20px 5px rgba(12, 16, 27, 0.15), 0px 17px 20px 2px rgba(12, 16, 27, 0.1), 0px 6px 17px 7px rgba(12, 16, 27, 0.08)',
|
|
1359
|
+
'0px 9px 21px 5px rgba(12, 16, 27, 0.15), 0px 18px 21px 2px rgba(12, 16, 27, 0.1), 0px 7px 18px 7px rgba(12, 16, 27, 0.08)',
|
|
1360
|
+
'0px 9px 22px 6px rgba(12, 16, 27, 0.15), 0px 19px 22px 2px rgba(12, 16, 27, 0.1), 0px 7px 19px 7px rgba(12, 16, 27, 0.08)',
|
|
1361
|
+
'0px 10px 23px 6px rgba(12, 16, 27, 0.15), 0px 20px 23px 3px rgba(12, 16, 27, 0.1), 0px 8px 20px 7px rgba(12, 16, 27, 0.08)',
|
|
1362
|
+
'0px 10px 24px 6px rgba(12, 16, 27, 0.15), 0px 21px 24px 3px rgba(12, 16, 27, 0.1), 0px 8px 21px 7px rgba(12, 16, 27, 0.08)',
|
|
1363
|
+
'0px 10px 25px 6px rgba(12, 16, 27, 0.15), 0px 22px 25px 3px rgba(12, 16, 27, 0.1), 0px 8px 22px 7px rgba(12, 16, 27, 0.08)',
|
|
1364
|
+
'0px 11px 26px 7px rgba(12, 16, 27, 0.15), 0px 23px 26px 3px rgba(12, 16, 27, 0.1), 0px 9px 23px 7px rgba(12, 16, 27, 0.08)',
|
|
1365
|
+
'0px 11px 27px 7px rgba(12, 16, 27, 0.15), 0px 24px 27px 3px rgba(12, 16, 27, 0.1), 0px 9px 24px 7px rgba(12, 16, 27, 0.08)'
|
|
1366
|
+
],
|
|
1367
|
+
zIndex: {
|
|
1368
|
+
appBar: 1200,
|
|
1369
|
+
drawer: 1100
|
|
1370
|
+
} */
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
var UserThemeOptions_default = UserThemeOptions;
|
|
1374
|
+
|
|
1375
|
+
// src/@core/theme/breakpoints/index.ts
|
|
1376
|
+
var breakpoints = () => ({
|
|
1377
|
+
values: {
|
|
1378
|
+
xs: 0,
|
|
1379
|
+
sm: 600,
|
|
1380
|
+
md: 900,
|
|
1381
|
+
lg: 1200,
|
|
1382
|
+
xl: 1536
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
var breakpoints_default = breakpoints;
|
|
1386
|
+
|
|
1387
|
+
// src/@core/utils/hex-to-rgba.ts
|
|
1388
|
+
var hexToRGBA = (hexCode, opacity) => {
|
|
1389
|
+
let hex = hexCode.replace("#", "");
|
|
1390
|
+
if (hex.length === 3) {
|
|
1391
|
+
hex = `${hex[0]}${hex[0]}${hex[1]}${hex[1]}${hex[2]}${hex[2]}`;
|
|
1392
|
+
}
|
|
1393
|
+
const r = parseInt(hex.substring(0, 2), 16);
|
|
1394
|
+
const g = parseInt(hex.substring(2, 4), 16);
|
|
1395
|
+
const b = parseInt(hex.substring(4, 6), 16);
|
|
1396
|
+
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
// src/@core/theme/overrides/alerts.ts
|
|
1400
|
+
var Alert = () => {
|
|
1401
|
+
return {
|
|
1402
|
+
MuiAlert: {
|
|
1403
|
+
styleOverrides: {
|
|
1404
|
+
root: ({ theme }) => ({
|
|
1405
|
+
fontWeight: 500,
|
|
1406
|
+
fontSize: "1rem",
|
|
1407
|
+
lineHeight: 1.375,
|
|
1408
|
+
alignItems: "flex-start",
|
|
1409
|
+
padding: theme.spacing(1.25, 3.5),
|
|
1410
|
+
"& .MuiAlertTitle-root": {
|
|
1411
|
+
marginBottom: theme.spacing(2.5)
|
|
1412
|
+
},
|
|
1413
|
+
"& a": {
|
|
1414
|
+
fontWeight: 700,
|
|
1415
|
+
color: "inherit"
|
|
1416
|
+
}
|
|
1417
|
+
}),
|
|
1418
|
+
icon: ({ theme }) => ({
|
|
1419
|
+
opacity: 1,
|
|
1420
|
+
fontSize: "1.125rem",
|
|
1421
|
+
padding: theme.spacing(1),
|
|
1422
|
+
borderRadius: theme.shape.borderRadius,
|
|
1423
|
+
margin: theme.spacing(1.75, 2.5, 1.75, 0),
|
|
1424
|
+
backgroundColor: theme.palette.common.white,
|
|
1425
|
+
"& + .MuiAlert-message": {
|
|
1426
|
+
padding: theme.spacing(2.25, 0)
|
|
1427
|
+
},
|
|
1428
|
+
"& ~ .MuiAlert-action": {
|
|
1429
|
+
paddingTop: theme.spacing(1.25)
|
|
1430
|
+
}
|
|
1431
|
+
}),
|
|
1432
|
+
message: ({ theme }) => ({
|
|
1433
|
+
padding: theme.spacing(1.75, 0)
|
|
1434
|
+
}),
|
|
1435
|
+
action: ({ theme }) => ({
|
|
1436
|
+
paddingTop: theme.spacing(0.75)
|
|
1437
|
+
}),
|
|
1438
|
+
standardSuccess: ({ theme }) => ({
|
|
1439
|
+
color: theme.palette.success.main,
|
|
1440
|
+
backgroundColor: hexToRGBA(theme.palette.success.main, 0.16),
|
|
1441
|
+
"& .MuiAlertTitle-root": {
|
|
1442
|
+
color: theme.palette.success.main
|
|
1443
|
+
},
|
|
1444
|
+
"& .MuiAlert-icon": {
|
|
1445
|
+
color: theme.palette.success.main
|
|
1446
|
+
}
|
|
1447
|
+
}),
|
|
1448
|
+
standardInfo: ({ theme }) => ({
|
|
1449
|
+
color: theme.palette.info.main,
|
|
1450
|
+
backgroundColor: hexToRGBA(theme.palette.info.main, 0.16),
|
|
1451
|
+
"& .MuiAlertTitle-root": {
|
|
1452
|
+
color: theme.palette.info.main
|
|
1453
|
+
},
|
|
1454
|
+
"& .MuiAlert-icon": {
|
|
1455
|
+
color: theme.palette.info.main
|
|
1456
|
+
}
|
|
1457
|
+
}),
|
|
1458
|
+
standardWarning: ({ theme }) => ({
|
|
1459
|
+
color: theme.palette.warning.main,
|
|
1460
|
+
backgroundColor: hexToRGBA(theme.palette.warning.main, 0.16),
|
|
1461
|
+
"& .MuiAlertTitle-root": {
|
|
1462
|
+
color: theme.palette.warning.main
|
|
1463
|
+
},
|
|
1464
|
+
"& .MuiAlert-icon": {
|
|
1465
|
+
color: theme.palette.warning.main
|
|
1466
|
+
}
|
|
1467
|
+
}),
|
|
1468
|
+
standardError: ({ theme }) => ({
|
|
1469
|
+
color: theme.palette.error.main,
|
|
1470
|
+
backgroundColor: hexToRGBA(theme.palette.error.main, 0.16),
|
|
1471
|
+
"& .MuiAlertTitle-root": {
|
|
1472
|
+
color: theme.palette.error.main
|
|
1473
|
+
},
|
|
1474
|
+
"& .MuiAlert-icon": {
|
|
1475
|
+
color: theme.palette.error.main
|
|
1476
|
+
}
|
|
1477
|
+
}),
|
|
1478
|
+
outlined: ({ theme }) => ({
|
|
1479
|
+
padding: theme.spacing(1, 3.25)
|
|
1480
|
+
}),
|
|
1481
|
+
outlinedSuccess: ({ theme }) => ({
|
|
1482
|
+
borderColor: theme.palette.success.main,
|
|
1483
|
+
color: theme.palette.success.main,
|
|
1484
|
+
"& .MuiAlertTitle-root": {
|
|
1485
|
+
color: theme.palette.success.main
|
|
1486
|
+
},
|
|
1487
|
+
"& .MuiAlert-icon": {
|
|
1488
|
+
color: theme.palette.common.white,
|
|
1489
|
+
backgroundColor: theme.palette.success.main
|
|
1490
|
+
}
|
|
1491
|
+
}),
|
|
1492
|
+
outlinedInfo: ({ theme }) => ({
|
|
1493
|
+
borderColor: theme.palette.info.main,
|
|
1494
|
+
color: theme.palette.info.main,
|
|
1495
|
+
"& .MuiAlertTitle-root": {
|
|
1496
|
+
color: theme.palette.info.main
|
|
1497
|
+
},
|
|
1498
|
+
"& .MuiAlert-icon": {
|
|
1499
|
+
color: theme.palette.common.white,
|
|
1500
|
+
backgroundColor: theme.palette.info.main
|
|
1501
|
+
}
|
|
1502
|
+
}),
|
|
1503
|
+
outlinedWarning: ({ theme }) => ({
|
|
1504
|
+
borderColor: theme.palette.warning.main,
|
|
1505
|
+
color: theme.palette.warning.main,
|
|
1506
|
+
"& .MuiAlertTitle-root": {
|
|
1507
|
+
color: theme.palette.warning.main
|
|
1508
|
+
},
|
|
1509
|
+
"& .MuiAlert-icon": {
|
|
1510
|
+
color: theme.palette.common.white,
|
|
1511
|
+
backgroundColor: theme.palette.warning.main
|
|
1512
|
+
}
|
|
1513
|
+
}),
|
|
1514
|
+
outlinedError: ({ theme }) => ({
|
|
1515
|
+
borderColor: theme.palette.error.main,
|
|
1516
|
+
color: theme.palette.error.main,
|
|
1517
|
+
"& .MuiAlertTitle-root": {
|
|
1518
|
+
color: theme.palette.error.main
|
|
1519
|
+
},
|
|
1520
|
+
"& .MuiAlert-icon": {
|
|
1521
|
+
color: theme.palette.common.white,
|
|
1522
|
+
backgroundColor: theme.palette.error.main
|
|
1523
|
+
}
|
|
1524
|
+
}),
|
|
1525
|
+
filled: ({ theme }) => ({
|
|
1526
|
+
color: theme.palette.common.white
|
|
1527
|
+
}),
|
|
1528
|
+
filledSuccess: ({ theme }) => ({
|
|
1529
|
+
"& .MuiAlert-icon": {
|
|
1530
|
+
color: theme.palette.success.main
|
|
1531
|
+
}
|
|
1532
|
+
}),
|
|
1533
|
+
filledInfo: ({ theme }) => ({
|
|
1534
|
+
"& .MuiAlert-icon": {
|
|
1535
|
+
color: theme.palette.info.main
|
|
1536
|
+
}
|
|
1537
|
+
}),
|
|
1538
|
+
filledWarning: ({ theme }) => ({
|
|
1539
|
+
"& .MuiAlert-icon": {
|
|
1540
|
+
color: theme.palette.warning.main
|
|
1541
|
+
}
|
|
1542
|
+
}),
|
|
1543
|
+
filledError: ({ theme }) => ({
|
|
1544
|
+
"& .MuiAlert-icon": {
|
|
1545
|
+
color: theme.palette.error.main
|
|
1546
|
+
}
|
|
1547
|
+
})
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
MuiAlertTitle: {
|
|
1551
|
+
styleOverrides: {
|
|
1552
|
+
root: {
|
|
1553
|
+
fontWeight: 600,
|
|
1554
|
+
marginTop: "-1px",
|
|
1555
|
+
lineHeight: 1.33333,
|
|
1556
|
+
fontSize: "1.125rem"
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
var alerts_default = Alert;
|
|
1563
|
+
|
|
1564
|
+
// src/@core/theme/overrides/avatars.ts
|
|
1565
|
+
var Avatar = () => {
|
|
1566
|
+
return {
|
|
1567
|
+
MuiAvatar: {
|
|
1568
|
+
styleOverrides: {
|
|
1569
|
+
colorDefault: ({ theme }) => ({
|
|
1570
|
+
color: theme.palette.text.secondary,
|
|
1571
|
+
backgroundColor: theme.palette.customColors.avatarBg
|
|
1572
|
+
})
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
MuiAvatarGroup: {
|
|
1576
|
+
styleOverrides: {
|
|
1577
|
+
root: ({ theme }) => ({
|
|
1578
|
+
"&.pull-up": {
|
|
1579
|
+
"& .MuiAvatar-root": {
|
|
1580
|
+
cursor: "pointer",
|
|
1581
|
+
transition: "box-shadow 0.2s ease, transform 0.2s ease",
|
|
1582
|
+
"&:hover": {
|
|
1583
|
+
zIndex: 2,
|
|
1584
|
+
boxShadow: theme.shadows[3],
|
|
1585
|
+
transform: "translateY(-4px)"
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
justifyContent: "flex-end",
|
|
1590
|
+
".MuiCard-root & .MuiAvatar-root": {
|
|
1591
|
+
borderColor: theme.palette.background.paper
|
|
1592
|
+
}
|
|
1593
|
+
})
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
var avatars_default = Avatar;
|
|
1599
|
+
|
|
1600
|
+
// src/@core/theme/overrides/backdrop.ts
|
|
1601
|
+
var Backdrop = () => {
|
|
1602
|
+
return {
|
|
1603
|
+
MuiBackdrop: {
|
|
1604
|
+
styleOverrides: {
|
|
1605
|
+
root: ({ theme }) => ({
|
|
1606
|
+
backgroundColor: theme.palette.mode === "light" ? `rgba(${theme.palette.customColors.main}, 0.7)` : hexToRGBA(theme.palette.background.default, 0.7)
|
|
1607
|
+
}),
|
|
1608
|
+
invisible: {
|
|
1609
|
+
backgroundColor: "transparent"
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
var backdrop_default = Backdrop;
|
|
1616
|
+
|
|
1617
|
+
// src/@core/theme/overrides/button.ts
|
|
1618
|
+
var Button6 = () => {
|
|
1619
|
+
return {
|
|
1620
|
+
MuiButton: {
|
|
1621
|
+
styleOverrides: {
|
|
1622
|
+
root: ({ ownerState, theme }) => ({
|
|
1623
|
+
fontWeight: 500,
|
|
1624
|
+
lineHeight: 1.7143,
|
|
1625
|
+
letterSpacing: "0.43px",
|
|
1626
|
+
textTransform: "capitalize",
|
|
1627
|
+
color: theme.palette.common.black,
|
|
1628
|
+
...ownerState.size === "medium" && ownerState.variant === "text" && {
|
|
1629
|
+
padding: theme.spacing(1.75, 5)
|
|
1630
|
+
},
|
|
1631
|
+
...ownerState.variant === "contained" && {
|
|
1632
|
+
"&:hover": {
|
|
1633
|
+
backgroundColor: theme.palette.common.black,
|
|
1634
|
+
opacity: 0.8
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
}),
|
|
1638
|
+
contained: ({ theme }) => ({
|
|
1639
|
+
boxShadow: theme.shadows[2],
|
|
1640
|
+
padding: theme.spacing(1.75, 5),
|
|
1641
|
+
backgroundColor: theme.palette.common.black,
|
|
1642
|
+
color: theme.palette.common.white,
|
|
1643
|
+
"&:hover": {
|
|
1644
|
+
backgroundColor: theme.palette.common.black,
|
|
1645
|
+
opacity: 0.8
|
|
1646
|
+
}
|
|
1647
|
+
}),
|
|
1648
|
+
outlined: ({ theme }) => ({
|
|
1649
|
+
padding: theme.spacing(1.5, 4.75),
|
|
1650
|
+
whiteSpace: "nowrap",
|
|
1651
|
+
border: "1px solid black"
|
|
1652
|
+
}),
|
|
1653
|
+
sizeSmall: ({ ownerState, theme }) => ({
|
|
1654
|
+
...ownerState.variant === "text" && {
|
|
1655
|
+
lineHeight: 1.53846,
|
|
1656
|
+
borderRadius: "4px",
|
|
1657
|
+
padding: theme.spacing(1, 3.5)
|
|
1658
|
+
},
|
|
1659
|
+
...ownerState.variant === "contained" && {
|
|
1660
|
+
padding: theme.spacing(1, 3.5)
|
|
1661
|
+
},
|
|
1662
|
+
...ownerState.variant === "outlined" && {
|
|
1663
|
+
padding: theme.spacing(0.75, 3.25)
|
|
1664
|
+
}
|
|
1665
|
+
}),
|
|
1666
|
+
sizeLarge: ({ ownerState, theme }) => ({
|
|
1667
|
+
...ownerState.variant === "text" && {
|
|
1668
|
+
lineHeight: 2,
|
|
1669
|
+
borderRadius: "8px",
|
|
1670
|
+
padding: theme.spacing(2.25, 6.5)
|
|
1671
|
+
},
|
|
1672
|
+
...ownerState.variant === "contained" && {
|
|
1673
|
+
padding: theme.spacing(2.25, 6.5)
|
|
1674
|
+
},
|
|
1675
|
+
...ownerState.variant === "outlined" && {
|
|
1676
|
+
padding: theme.spacing(2, 6.25)
|
|
1677
|
+
}
|
|
1678
|
+
})
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
MuiButtonBase: {
|
|
1682
|
+
defaultProps: {
|
|
1683
|
+
disableRipple: themeConfig_default.disableRipple
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
var button_default = Button6;
|
|
1689
|
+
|
|
1690
|
+
// src/@core/theme/overrides/card.ts
|
|
1691
|
+
var Card = (skin) => {
|
|
1692
|
+
return {
|
|
1693
|
+
MuiCard: {
|
|
1694
|
+
styleOverrides: {
|
|
1695
|
+
root: ({ theme }) => ({
|
|
1696
|
+
...skin === "bordered" && {
|
|
1697
|
+
border: `1px solid ${theme.palette.divider}`
|
|
1698
|
+
},
|
|
1699
|
+
backgroundColor: theme.palette.background.default,
|
|
1700
|
+
"& .card-more-options": {
|
|
1701
|
+
marginTop: theme.spacing(-1),
|
|
1702
|
+
marginRight: theme.spacing(-3)
|
|
1703
|
+
},
|
|
1704
|
+
"& .MuiTableContainer-root, & .MuiDataGrid-root, & .MuiDataGrid-columnHeaders": {
|
|
1705
|
+
borderRadius: 0
|
|
1706
|
+
}
|
|
1707
|
+
})
|
|
1708
|
+
},
|
|
1709
|
+
defaultProps: {
|
|
1710
|
+
elevation: skin === "bordered" ? 0 : 6
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
MuiCardHeader: {
|
|
1714
|
+
styleOverrides: {
|
|
1715
|
+
root: ({ theme }) => ({
|
|
1716
|
+
padding: theme.spacing(6),
|
|
1717
|
+
"& + .MuiCardContent-root, & + .MuiCardActions-root, & + .MuiCollapse-root .MuiCardContent-root": {
|
|
1718
|
+
paddingTop: 0
|
|
1719
|
+
},
|
|
1720
|
+
"& .MuiCardHeader-subheader": {
|
|
1721
|
+
fontSize: "0.875rem",
|
|
1722
|
+
marginTop: theme.spacing(1),
|
|
1723
|
+
color: theme.palette.text.disabled
|
|
1724
|
+
}
|
|
1725
|
+
}),
|
|
1726
|
+
title: {
|
|
1727
|
+
lineHeight: 1.6,
|
|
1728
|
+
fontWeight: 500,
|
|
1729
|
+
fontSize: "1.125rem",
|
|
1730
|
+
letterSpacing: "0.15px",
|
|
1731
|
+
"@media (min-width: 600px)": {
|
|
1732
|
+
fontSize: "1.25rem"
|
|
1733
|
+
}
|
|
1734
|
+
},
|
|
1735
|
+
action: {
|
|
1736
|
+
marginTop: 0,
|
|
1737
|
+
marginRight: 0
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
MuiCardContent: {
|
|
1742
|
+
styleOverrides: {
|
|
1743
|
+
root: ({ theme }) => ({
|
|
1744
|
+
padding: theme.spacing(6),
|
|
1745
|
+
"& + .MuiCardHeader-root, & + .MuiCardContent-root, & + .MuiCardActions-root": {
|
|
1746
|
+
paddingTop: 0
|
|
1747
|
+
},
|
|
1748
|
+
"&:last-of-type": {
|
|
1749
|
+
paddingBottom: theme.spacing(6)
|
|
1750
|
+
}
|
|
1751
|
+
})
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
MuiCardActions: {
|
|
1755
|
+
styleOverrides: {
|
|
1756
|
+
root: ({ theme }) => ({
|
|
1757
|
+
padding: theme.spacing(6),
|
|
1758
|
+
"& .MuiButton-text": {
|
|
1759
|
+
paddingLeft: theme.spacing(3),
|
|
1760
|
+
paddingRight: theme.spacing(3)
|
|
1761
|
+
},
|
|
1762
|
+
"&.card-action-dense": {
|
|
1763
|
+
padding: theme.spacing(0, 3, 3),
|
|
1764
|
+
".MuiCard-root .MuiCardMedia-root + &": {
|
|
1765
|
+
paddingTop: theme.spacing(3)
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
".MuiCard-root &:first-of-type": {
|
|
1769
|
+
paddingTop: theme.spacing(3),
|
|
1770
|
+
"& + .MuiCardHeader-root, & + .MuiCardContent-root, & + .MuiCardActions-root": {
|
|
1771
|
+
paddingTop: 0
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
})
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
var card_default = Card;
|
|
1780
|
+
|
|
1781
|
+
// src/@core/theme/overrides/checkbox.tsx
|
|
1782
|
+
var import_styles3 = require("@mui/material/styles");
|
|
1783
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1784
|
+
var CheckedIcon = () => {
|
|
1785
|
+
const theme = (0, import_styles3.useTheme)();
|
|
1786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1787
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1788
|
+
"path",
|
|
1789
|
+
{
|
|
1790
|
+
fill: "#6750A4",
|
|
1791
|
+
d: "M17.5514 3H6.75137C4.76314 3 3.15137 4.61177 3.15137 6.6V17.4C3.15137 19.3882 4.76314 21 6.75137 21H17.5514C19.5396 21 21.1514 19.3882 21.1514 17.4V6.6C21.1514 4.61177 19.5396 3 17.5514 3Z"
|
|
1792
|
+
}
|
|
1793
|
+
),
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1795
|
+
"path",
|
|
1796
|
+
{
|
|
1797
|
+
strokeWidth: "0.3",
|
|
1798
|
+
fill: theme.palette.common.white,
|
|
1799
|
+
stroke: theme.palette.common.white,
|
|
1800
|
+
d: "M8.63616 11.5663L8.53426 11.472L8.43235 11.5663L7.54946 12.3837L7.43057 12.4938L7.54946 12.6039L10.4885 15.3248L10.5904 15.4191L10.6923 15.3248L16.7533 9.71358L16.8722 9.60351L16.7533 9.49344L15.8704 8.67606L15.7685 8.58172L15.6666 8.67606L10.5904 13.3756L8.63616 11.5663Z"
|
|
1801
|
+
}
|
|
1802
|
+
)
|
|
1803
|
+
] });
|
|
1804
|
+
};
|
|
1805
|
+
var Icon2 = () => {
|
|
1806
|
+
const theme = (0, import_styles3.useTheme)();
|
|
1807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1808
|
+
"svg",
|
|
1809
|
+
{
|
|
1810
|
+
width: "24",
|
|
1811
|
+
height: "24",
|
|
1812
|
+
fill: "none",
|
|
1813
|
+
viewBox: "0 0 24 24",
|
|
1814
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1815
|
+
stroke: theme.palette.text.disabled,
|
|
1816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M17.2105 3.5H6.78947C4.69661 3.5 3 5.19661 3 7.28947V17.7105C3 19.8034 4.69661 21.5 6.78947 21.5H17.2105C19.3034 21.5 21 19.8034 21 17.7105V7.28947C21 5.19661 19.3034 3.5 17.2105 3.5Z" })
|
|
1817
|
+
}
|
|
1818
|
+
);
|
|
1819
|
+
};
|
|
1820
|
+
var IndeterminateIcon = () => {
|
|
1821
|
+
const theme = (0, import_styles3.useTheme)();
|
|
1822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1823
|
+
"svg",
|
|
1824
|
+
{
|
|
1825
|
+
width: "24",
|
|
1826
|
+
height: "24",
|
|
1827
|
+
viewBox: "0 0 24 24",
|
|
1828
|
+
fill: theme.palette.primary.main,
|
|
1829
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1830
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1831
|
+
"path",
|
|
1832
|
+
{
|
|
1833
|
+
fillRule: "evenodd",
|
|
1834
|
+
clipRule: "evenodd",
|
|
1835
|
+
d: "M6.6 3.5H17.4C19.3882 3.5 21 5.11177 21 7.1V17.9C21 19.8882 19.3882 21.5 17.4 21.5H6.6C4.61177 21.5 3 19.8882 3 17.9V7.1C3 5.11177 4.61177 3.5 6.6 3.5ZM16.5 11.8569H7.5V13.1426H16.5V11.8569Z"
|
|
1836
|
+
}
|
|
1837
|
+
)
|
|
1838
|
+
}
|
|
1839
|
+
);
|
|
1840
|
+
};
|
|
1841
|
+
var Checkbox2 = () => {
|
|
1842
|
+
return {
|
|
1843
|
+
MuiCheckbox: {
|
|
1844
|
+
defaultProps: {
|
|
1845
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon2, {}),
|
|
1846
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CheckedIcon, {}),
|
|
1847
|
+
indeterminateIcon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(IndeterminateIcon, {})
|
|
1848
|
+
},
|
|
1849
|
+
styleOverrides: {
|
|
1850
|
+
root: ({ theme }) => ({
|
|
1851
|
+
"&.Mui-checked": {
|
|
1852
|
+
"& svg": {
|
|
1853
|
+
filter: `drop-shadow(0 2px 3px ${(0, import_styles3.alpha)(theme.palette.mode === "light" ? theme.palette.customColors.main : "#0c101b", 0.16)})`
|
|
1854
|
+
},
|
|
1855
|
+
"&.Mui-disabled svg": {
|
|
1856
|
+
filter: "none",
|
|
1857
|
+
"& path:first-of-type": {
|
|
1858
|
+
fill: theme.palette.action.disabled
|
|
1859
|
+
},
|
|
1860
|
+
"& path:last-of-type": {
|
|
1861
|
+
fill: theme.palette.background.paper,
|
|
1862
|
+
stroke: theme.palette.background.paper
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
"&.Mui-disabled:not(.Mui-checked) svg": {
|
|
1867
|
+
stroke: theme.palette.action.disabled
|
|
1868
|
+
},
|
|
1869
|
+
"&.Mui-checked.MuiCheckbox-colorSecondary svg path:first-of-type": {
|
|
1870
|
+
fill: theme.palette.secondary.main
|
|
1871
|
+
},
|
|
1872
|
+
"&.Mui-checked.MuiCheckbox-colorSuccess svg path:first-of-type": {
|
|
1873
|
+
fill: theme.palette.success.main
|
|
1874
|
+
},
|
|
1875
|
+
"&.Mui-checked.MuiCheckbox-colorError svg path:first-of-type": {
|
|
1876
|
+
fill: theme.palette.error.main
|
|
1877
|
+
},
|
|
1878
|
+
"&.Mui-checked.MuiCheckbox-colorWarning svg path:first-of-type": {
|
|
1879
|
+
fill: theme.palette.warning.main
|
|
1880
|
+
},
|
|
1881
|
+
"&.Mui-checked.MuiCheckbox-colorInfo svg path:first-of-type": {
|
|
1882
|
+
fill: theme.palette.info.main
|
|
1883
|
+
}
|
|
1884
|
+
})
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
var checkbox_default = Checkbox2;
|
|
1890
|
+
|
|
1891
|
+
// src/@core/theme/overrides/chip.ts
|
|
1892
|
+
var Chip = () => {
|
|
1893
|
+
return {
|
|
1894
|
+
MuiChip: {
|
|
1895
|
+
styleOverrides: {
|
|
1896
|
+
root: {
|
|
1897
|
+
height: 30,
|
|
1898
|
+
fontWeight: 500,
|
|
1899
|
+
backgroundColor: "#6e6f6f",
|
|
1900
|
+
color: "#f6f6f6",
|
|
1901
|
+
"&.MuiChip-rounded": {
|
|
1902
|
+
borderRadius: 4
|
|
1903
|
+
}
|
|
1904
|
+
},
|
|
1905
|
+
outlined: ({ theme }) => ({
|
|
1906
|
+
"&.MuiChip-colorDefault": {
|
|
1907
|
+
borderColor: `rgba(${theme.palette.customColors.main}, 0.22)`
|
|
1908
|
+
}
|
|
1909
|
+
}),
|
|
1910
|
+
sizeSmall: {
|
|
1911
|
+
height: 24
|
|
1912
|
+
},
|
|
1913
|
+
labelSmall: ({ theme }) => ({
|
|
1914
|
+
paddingLeft: theme.spacing(2.5),
|
|
1915
|
+
paddingRight: theme.spacing(2.5)
|
|
1916
|
+
}),
|
|
1917
|
+
deleteIcon: {
|
|
1918
|
+
width: 18,
|
|
1919
|
+
height: 18
|
|
1920
|
+
},
|
|
1921
|
+
avatar: ({ theme }) => ({
|
|
1922
|
+
color: theme.palette.text.primary
|
|
1923
|
+
}),
|
|
1924
|
+
deletableColorPrimary: ({ theme }) => ({
|
|
1925
|
+
"&.MuiChip-light .MuiChip-deleteIcon": {
|
|
1926
|
+
color: "#fff",
|
|
1927
|
+
"&:hover": {
|
|
1928
|
+
color: theme.palette.primary.main
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}),
|
|
1932
|
+
deletableColorSecondary: ({ theme }) => ({
|
|
1933
|
+
"&.MuiChip-light .MuiChip-deleteIcon": {
|
|
1934
|
+
color: hexToRGBA(theme.palette.secondary.main, 0.7),
|
|
1935
|
+
"&:hover": {
|
|
1936
|
+
color: theme.palette.secondary.main
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
}),
|
|
1940
|
+
deletableColorSuccess: ({ theme }) => ({
|
|
1941
|
+
"&.MuiChip-light .MuiChip-deleteIcon": {
|
|
1942
|
+
color: hexToRGBA(theme.palette.success.main, 0.7),
|
|
1943
|
+
"&:hover": {
|
|
1944
|
+
color: theme.palette.success.main
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
}),
|
|
1948
|
+
deletableColorError: ({ theme }) => ({
|
|
1949
|
+
"&.MuiChip-light .MuiChip-deleteIcon": {
|
|
1950
|
+
color: hexToRGBA(theme.palette.error.main, 0.7),
|
|
1951
|
+
"&:hover": {
|
|
1952
|
+
color: theme.palette.error.main
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
}),
|
|
1956
|
+
deletableColorWarning: ({ theme }) => ({
|
|
1957
|
+
"&.MuiChip-light .MuiChip-deleteIcon": {
|
|
1958
|
+
color: hexToRGBA(theme.palette.warning.main, 0.7),
|
|
1959
|
+
"&:hover": {
|
|
1960
|
+
color: theme.palette.warning.main
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
}),
|
|
1964
|
+
deletableColorInfo: ({ theme }) => ({
|
|
1965
|
+
"&.MuiChip-light .MuiChip-deleteIcon": {
|
|
1966
|
+
color: hexToRGBA(theme.palette.info.main, 0.7),
|
|
1967
|
+
"&:hover": {
|
|
1968
|
+
color: theme.palette.info.main
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
})
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
var chip_default = Chip;
|
|
1977
|
+
|
|
1978
|
+
// src/@core/theme/overrides/dataGrid.ts
|
|
1979
|
+
var DataGrid2 = () => {
|
|
1980
|
+
return {
|
|
1981
|
+
MuiDataGrid: {
|
|
1982
|
+
styleOverrides: {
|
|
1983
|
+
root: ({ theme }) => ({
|
|
1984
|
+
border: 0,
|
|
1985
|
+
color: theme.palette.text.primary,
|
|
1986
|
+
"& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within": {
|
|
1987
|
+
outline: "none"
|
|
1988
|
+
}
|
|
1989
|
+
}),
|
|
1990
|
+
toolbarContainer: ({ theme }) => ({
|
|
1991
|
+
paddingRight: `${theme.spacing(6)} !important`,
|
|
1992
|
+
paddingLeft: `${theme.spacing(3.25)} !important`
|
|
1993
|
+
}),
|
|
1994
|
+
columnHeaders: ({ theme }) => ({
|
|
1995
|
+
backgroundColor: theme.palette.customColors.tableHeaderBg
|
|
1996
|
+
}),
|
|
1997
|
+
columnHeader: ({ theme }) => ({
|
|
1998
|
+
"&:not(.MuiDataGrid-columnHeaderCheckbox)": {
|
|
1999
|
+
paddingLeft: theme.spacing(4),
|
|
2000
|
+
paddingRight: theme.spacing(4),
|
|
2001
|
+
"&:first-of-type": {
|
|
2002
|
+
paddingLeft: theme.spacing(6)
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
"&:last-of-type": {
|
|
2006
|
+
paddingRight: theme.spacing(6)
|
|
2007
|
+
}
|
|
2008
|
+
}),
|
|
2009
|
+
columnHeaderCheckbox: {
|
|
2010
|
+
maxWidth: "58px !important",
|
|
2011
|
+
minWidth: "58px !important"
|
|
2012
|
+
},
|
|
2013
|
+
columnHeaderTitleContainer: {
|
|
2014
|
+
padding: 0
|
|
2015
|
+
},
|
|
2016
|
+
columnHeaderTitle: {
|
|
2017
|
+
fontWeight: 600,
|
|
2018
|
+
fontSize: "0.75rem",
|
|
2019
|
+
letterSpacing: "1px",
|
|
2020
|
+
textTransform: "uppercase"
|
|
2021
|
+
},
|
|
2022
|
+
columnSeparator: ({ theme }) => ({
|
|
2023
|
+
color: theme.palette.divider
|
|
2024
|
+
}),
|
|
2025
|
+
row: {
|
|
2026
|
+
"&:last-child": {
|
|
2027
|
+
"& .MuiDataGrid-cell": {
|
|
2028
|
+
borderBottom: 0
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
cell: ({ theme }) => ({
|
|
2033
|
+
borderColor: theme.palette.divider,
|
|
2034
|
+
"&:not(.MuiDataGrid-cellCheckbox)": {
|
|
2035
|
+
paddingLeft: theme.spacing(4),
|
|
2036
|
+
paddingRight: theme.spacing(4),
|
|
2037
|
+
"&:first-of-type": {
|
|
2038
|
+
paddingLeft: theme.spacing(6)
|
|
2039
|
+
}
|
|
2040
|
+
},
|
|
2041
|
+
"&:last-of-type": {
|
|
2042
|
+
paddingRight: theme.spacing(6)
|
|
2043
|
+
},
|
|
2044
|
+
"&:focus, &:focus-within": {
|
|
2045
|
+
outline: "none"
|
|
2046
|
+
}
|
|
2047
|
+
}),
|
|
2048
|
+
cellCheckbox: {
|
|
2049
|
+
maxWidth: "58px !important",
|
|
2050
|
+
minWidth: "58px !important"
|
|
2051
|
+
},
|
|
2052
|
+
editInputCell: ({ theme }) => ({
|
|
2053
|
+
padding: 0,
|
|
2054
|
+
color: theme.palette.text.primary,
|
|
2055
|
+
"& .MuiInputBase-input": {
|
|
2056
|
+
padding: 0
|
|
2057
|
+
}
|
|
2058
|
+
}),
|
|
2059
|
+
footerContainer: ({ theme }) => ({
|
|
2060
|
+
borderTop: `1px solid ${theme.palette.divider}`,
|
|
2061
|
+
"& .MuiTablePagination-toolbar": {
|
|
2062
|
+
paddingLeft: `${theme.spacing(4)} !important`,
|
|
2063
|
+
paddingRight: `${theme.spacing(4)} !important`
|
|
2064
|
+
},
|
|
2065
|
+
"& .MuiTablePagination-displayedRows, & .MuiTablePagination-selectLabel": {
|
|
2066
|
+
color: theme.palette.text.primary
|
|
2067
|
+
}
|
|
2068
|
+
}),
|
|
2069
|
+
selectedRowCount: ({ theme }) => ({
|
|
2070
|
+
margin: 0,
|
|
2071
|
+
paddingLeft: theme.spacing(4),
|
|
2072
|
+
paddingRight: theme.spacing(4)
|
|
2073
|
+
})
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
var dataGrid_default = DataGrid2;
|
|
2079
|
+
|
|
2080
|
+
// src/@core/theme/overrides/dialog.ts
|
|
2081
|
+
var Dialog2 = (skin) => {
|
|
2082
|
+
return {
|
|
2083
|
+
MuiDialog: {
|
|
2084
|
+
styleOverrides: {
|
|
2085
|
+
paper: ({ theme }) => ({
|
|
2086
|
+
boxShadow: theme.shadows[skin === "bordered" ? 0 : 9],
|
|
2087
|
+
background: theme.palette.background.default,
|
|
2088
|
+
...skin === "bordered" && {
|
|
2089
|
+
border: `1px solid ${theme.palette.divider}`
|
|
2090
|
+
},
|
|
2091
|
+
"&:not(.MuiDialog-paperFullScreen)": {
|
|
2092
|
+
[theme.breakpoints.down("sm")]: {
|
|
2093
|
+
margin: theme.spacing(4),
|
|
2094
|
+
width: `calc(100% - ${theme.spacing(8)})`,
|
|
2095
|
+
maxWidth: `calc(100% - ${theme.spacing(8)}) !important`
|
|
2096
|
+
}
|
|
2097
|
+
},
|
|
2098
|
+
"& > .MuiList-root": {
|
|
2099
|
+
paddingLeft: theme.spacing(5),
|
|
2100
|
+
paddingRight: theme.spacing(5)
|
|
2101
|
+
}
|
|
2102
|
+
})
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2105
|
+
MuiDialogTitle: {
|
|
2106
|
+
styleOverrides: {
|
|
2107
|
+
root: ({ theme }) => ({
|
|
2108
|
+
padding: theme.spacing(5, 6, 1)
|
|
2109
|
+
})
|
|
2110
|
+
}
|
|
2111
|
+
},
|
|
2112
|
+
MuiDialogContent: {
|
|
2113
|
+
styleOverrides: {
|
|
2114
|
+
root: ({ theme }) => ({
|
|
2115
|
+
padding: `${theme.spacing(5, 10)} !important`
|
|
2116
|
+
})
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
MuiDialogActions: {
|
|
2120
|
+
styleOverrides: {
|
|
2121
|
+
root: ({ theme }) => ({
|
|
2122
|
+
padding: theme.spacing(1, 6, 5),
|
|
2123
|
+
"&.dialog-actions-dense": {
|
|
2124
|
+
padding: theme.spacing(1, 2.5, 2.5)
|
|
2125
|
+
}
|
|
2126
|
+
})
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
2130
|
+
};
|
|
2131
|
+
var dialog_default = Dialog2;
|
|
2132
|
+
|
|
2133
|
+
// src/@core/theme/overrides/divider.ts
|
|
2134
|
+
var Divider2 = () => {
|
|
2135
|
+
return {
|
|
2136
|
+
MuiDivider: {
|
|
2137
|
+
styleOverrides: {
|
|
2138
|
+
root: ({ theme }) => ({
|
|
2139
|
+
".MuiStack-root &:not(.MuiDivider-vertical)": {
|
|
2140
|
+
marginTop: theme.spacing(2),
|
|
2141
|
+
marginBottom: theme.spacing(2)
|
|
2142
|
+
}
|
|
2143
|
+
}),
|
|
2144
|
+
middle: ({ theme }) => ({
|
|
2145
|
+
"&:not(.MuiDivider-vertical)": {
|
|
2146
|
+
marginLeft: theme.spacing(5),
|
|
2147
|
+
marginRight: theme.spacing(5)
|
|
2148
|
+
},
|
|
2149
|
+
"&.MuiDivider-vertical": {
|
|
2150
|
+
marginTop: theme.spacing(2),
|
|
2151
|
+
marginBottom: theme.spacing(2)
|
|
2152
|
+
}
|
|
2153
|
+
})
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
};
|
|
2157
|
+
};
|
|
2158
|
+
var divider_default = Divider2;
|
|
2159
|
+
|
|
2160
|
+
// src/@core/theme/overrides/input.ts
|
|
2161
|
+
var input = () => {
|
|
2162
|
+
return {
|
|
2163
|
+
MuiInputLabel: {
|
|
2164
|
+
styleOverrides: {
|
|
2165
|
+
root: ({ theme }) => ({
|
|
2166
|
+
color: theme.palette.text.secondary
|
|
2167
|
+
})
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
MuiInput: {
|
|
2171
|
+
styleOverrides: {
|
|
2172
|
+
root: ({ theme }) => ({
|
|
2173
|
+
"&:before": {
|
|
2174
|
+
borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.22)`
|
|
2175
|
+
},
|
|
2176
|
+
"&:hover:not(.Mui-disabled):before": {
|
|
2177
|
+
borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.32)`
|
|
2178
|
+
},
|
|
2179
|
+
"&.Mui-disabled:before": {
|
|
2180
|
+
borderBottomStyle: "solid"
|
|
2181
|
+
}
|
|
2182
|
+
})
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
MuiFilledInput: {
|
|
2186
|
+
styleOverrides: {
|
|
2187
|
+
root: ({ theme }) => ({
|
|
2188
|
+
backgroundColor: `rgba(${theme.palette.customColors.main}, 0.04)`,
|
|
2189
|
+
"&:hover:not(.Mui-disabled)": {
|
|
2190
|
+
backgroundColor: `rgba(${theme.palette.customColors.main}, 0.08)`
|
|
2191
|
+
},
|
|
2192
|
+
"&:before": {
|
|
2193
|
+
borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.22)`
|
|
2194
|
+
},
|
|
2195
|
+
"&:hover:not(.Mui-disabled):before": {
|
|
2196
|
+
borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.32)`
|
|
2197
|
+
}
|
|
2198
|
+
})
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
MuiOutlinedInput: {
|
|
2202
|
+
styleOverrides: {
|
|
2203
|
+
root: ({ theme }) => ({
|
|
2204
|
+
"&:hover:not(.Mui-focused):not(.Mui-disabled):not(.Mui-error) .MuiOutlinedInput-notchedOutline": {
|
|
2205
|
+
borderColor: `rgba(${theme.palette.customColors.main}, 0.32)`
|
|
2206
|
+
},
|
|
2207
|
+
"&:hover.Mui-error .MuiOutlinedInput-notchedOutline": {
|
|
2208
|
+
borderColor: theme.palette.error.main
|
|
2209
|
+
},
|
|
2210
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
2211
|
+
borderColor: `rgba(${theme.palette.customColors.main}, 0.22)`
|
|
2212
|
+
},
|
|
2213
|
+
"&.Mui-disabled .MuiOutlinedInput-notchedOutline": {
|
|
2214
|
+
borderColor: theme.palette.text.disabled
|
|
2215
|
+
},
|
|
2216
|
+
"&.Mui-focused": {
|
|
2217
|
+
boxShadow: `0 2px 3px 0 rgba(${theme.palette.customColors.main}, 0.1)`,
|
|
2218
|
+
color: theme.palette.text.secondary + " !important"
|
|
2219
|
+
}
|
|
2220
|
+
})
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
};
|
|
2224
|
+
};
|
|
2225
|
+
var input_default = input;
|
|
2226
|
+
|
|
2227
|
+
// src/@core/theme/overrides/link.ts
|
|
2228
|
+
var link_default = {
|
|
2229
|
+
MuiLink: {
|
|
2230
|
+
styleOverrides: {
|
|
2231
|
+
root: {
|
|
2232
|
+
textDecoration: "none"
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
};
|
|
2237
|
+
|
|
2238
|
+
// src/@core/theme/overrides/list.ts
|
|
2239
|
+
var List = () => {
|
|
2240
|
+
return {
|
|
2241
|
+
MuiListItemIcon: {
|
|
2242
|
+
styleOverrides: {
|
|
2243
|
+
root: ({ theme }) => ({
|
|
2244
|
+
minWidth: "0 !important",
|
|
2245
|
+
marginRight: theme.spacing(2.25),
|
|
2246
|
+
color: theme.palette.text.secondary
|
|
2247
|
+
})
|
|
2248
|
+
}
|
|
2249
|
+
},
|
|
2250
|
+
MuiListItemAvatar: {
|
|
2251
|
+
styleOverrides: {
|
|
2252
|
+
root: ({ theme }) => ({
|
|
2253
|
+
minWidth: 0,
|
|
2254
|
+
marginRight: theme.spacing(4)
|
|
2255
|
+
})
|
|
2256
|
+
}
|
|
2257
|
+
},
|
|
2258
|
+
MuiListItemText: {
|
|
2259
|
+
styleOverrides: {
|
|
2260
|
+
dense: ({ theme }) => ({
|
|
2261
|
+
"& .MuiListItemText-primary": {
|
|
2262
|
+
color: theme.palette.text.primary
|
|
2263
|
+
}
|
|
2264
|
+
})
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
MuiListSubheader: {
|
|
2268
|
+
styleOverrides: {
|
|
2269
|
+
root: ({ theme }) => ({
|
|
2270
|
+
fontWeight: 600,
|
|
2271
|
+
textTransform: "uppercase",
|
|
2272
|
+
color: theme.palette.text.primary
|
|
2273
|
+
})
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
var list_default = List;
|
|
2279
|
+
|
|
2280
|
+
// src/@core/theme/overrides/menu.ts
|
|
2281
|
+
var Menu = (skin) => {
|
|
2282
|
+
const boxShadow = (theme) => {
|
|
2283
|
+
if (skin === "bordered") {
|
|
2284
|
+
return theme.shadows[0];
|
|
2285
|
+
} else if (theme.palette.mode === "light") {
|
|
2286
|
+
return theme.shadows[8];
|
|
2287
|
+
} else return theme.shadows[9];
|
|
2288
|
+
};
|
|
2289
|
+
return {
|
|
2290
|
+
MuiMenu: {
|
|
2291
|
+
styleOverrides: {
|
|
2292
|
+
root: ({ theme }) => ({
|
|
2293
|
+
"& .MuiMenu-paper": {
|
|
2294
|
+
boxShadow: boxShadow(theme),
|
|
2295
|
+
backgroundColor: theme.palette.background.default,
|
|
2296
|
+
...skin === "bordered" && {
|
|
2297
|
+
border: `1px solid ${theme.palette.divider}`
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
})
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2303
|
+
MuiMenuItem: {
|
|
2304
|
+
styleOverrides: {
|
|
2305
|
+
root: ({ theme }) => ({
|
|
2306
|
+
margin: theme.spacing(0, 2, 1),
|
|
2307
|
+
backgroundColor: theme.palette.background.default,
|
|
2308
|
+
padding: theme.spacing(1.75, 4),
|
|
2309
|
+
borderRadius: theme.shape.borderRadius,
|
|
2310
|
+
"&:hover": {
|
|
2311
|
+
color: `${theme.palette.common.black} !important`
|
|
2312
|
+
},
|
|
2313
|
+
"&:last-child": {
|
|
2314
|
+
marginBottom: 0
|
|
2315
|
+
},
|
|
2316
|
+
"&:not(.Mui-focusVisible):hover": {
|
|
2317
|
+
color: theme.palette.common.black,
|
|
2318
|
+
backgroundColor: hexToRGBA(theme.palette.primary.main, 0.08)
|
|
2319
|
+
},
|
|
2320
|
+
"&.Mui-selected": {
|
|
2321
|
+
color: `${theme.palette.common.black} !important`,
|
|
2322
|
+
backgroundColor: `${theme.palette.primary.main} !important`,
|
|
2323
|
+
"&.Mui-focusVisible": {
|
|
2324
|
+
backgroundColor: `${theme.palette.primary.dark} !important`
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
})
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
};
|
|
2331
|
+
};
|
|
2332
|
+
var menu_default = Menu;
|
|
2333
|
+
|
|
2334
|
+
// src/@core/theme/overrides/paper.ts
|
|
2335
|
+
var paper_default = {
|
|
2336
|
+
MuiPaper: {
|
|
2337
|
+
styleOverrides: {
|
|
2338
|
+
root: {
|
|
2339
|
+
backgroundImage: "none",
|
|
2340
|
+
backgroundColor: "white"
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2346
|
+
// src/@core/theme/overrides/popover.ts
|
|
2347
|
+
var Popover2 = (skin) => {
|
|
2348
|
+
return {
|
|
2349
|
+
MuiPopover: {
|
|
2350
|
+
styleOverrides: {
|
|
2351
|
+
root: ({ theme }) => ({
|
|
2352
|
+
"& .MuiPopover-paper": {
|
|
2353
|
+
boxShadow: theme.shadows[skin === "bordered" ? 0 : 6],
|
|
2354
|
+
...skin === "bordered" && { border: `1px solid ${theme.palette.divider}` }
|
|
2355
|
+
}
|
|
2356
|
+
})
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
};
|
|
2360
|
+
};
|
|
2361
|
+
var popover_default = Popover2;
|
|
2362
|
+
|
|
2363
|
+
// src/@core/theme/overrides/progress.ts
|
|
2364
|
+
var Progress = () => {
|
|
2365
|
+
return {
|
|
2366
|
+
MuiLinearProgress: {
|
|
2367
|
+
styleOverrides: {
|
|
2368
|
+
root: ({ theme }) => ({
|
|
2369
|
+
height: 12,
|
|
2370
|
+
borderRadius: "10px",
|
|
2371
|
+
backgroundColor: theme.palette.customColors.trackBg
|
|
2372
|
+
}),
|
|
2373
|
+
bar: {
|
|
2374
|
+
borderRadius: "10px"
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
var progress_default = Progress;
|
|
2381
|
+
|
|
2382
|
+
// src/@core/theme/overrides/radio.tsx
|
|
2383
|
+
var import_styles4 = require("@mui/material/styles");
|
|
2384
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2385
|
+
var CheckedIcon2 = () => {
|
|
2386
|
+
const theme = (0, import_styles4.useTheme)();
|
|
2387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2388
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2389
|
+
"path",
|
|
2390
|
+
{
|
|
2391
|
+
fillRule: "evenodd",
|
|
2392
|
+
clipRule: "evenodd",
|
|
2393
|
+
fill: theme.palette.primary.main,
|
|
2394
|
+
d: "M12 3C16.9705 3 21 7.02944 21 12C21 16.9705 16.9705 21 12 21C7.02944 21 3 16.9705 3 12C3 7.02944 7.02944 3 12 3Z"
|
|
2395
|
+
}
|
|
2396
|
+
),
|
|
2397
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2398
|
+
"path",
|
|
2399
|
+
{
|
|
2400
|
+
fill: theme.palette.common.white,
|
|
2401
|
+
d: "M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z"
|
|
2402
|
+
}
|
|
2403
|
+
)
|
|
2404
|
+
] });
|
|
2405
|
+
};
|
|
2406
|
+
var Icon3 = () => {
|
|
2407
|
+
const theme = (0, import_styles4.useTheme)();
|
|
2408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2409
|
+
"svg",
|
|
2410
|
+
{
|
|
2411
|
+
width: "24",
|
|
2412
|
+
height: "24",
|
|
2413
|
+
fill: "none",
|
|
2414
|
+
viewBox: "0 0 24 24",
|
|
2415
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2416
|
+
stroke: theme.palette.text.disabled,
|
|
2417
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M12 3.5C16.6944 3.5 20.5 7.30558 20.5 12C20.5 16.6944 16.6944 20.5 12 20.5C7.30558 20.5 3.5 16.6944 3.5 12C3.5 7.30558 7.30558 3.5 12 3.5Z" })
|
|
2418
|
+
}
|
|
2419
|
+
);
|
|
2420
|
+
};
|
|
2421
|
+
var Radio = () => {
|
|
2422
|
+
return {
|
|
2423
|
+
MuiRadio: {
|
|
2424
|
+
defaultProps: {
|
|
2425
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon3, {}),
|
|
2426
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CheckedIcon2, {})
|
|
2427
|
+
},
|
|
2428
|
+
styleOverrides: {
|
|
2429
|
+
root: ({ theme }) => ({
|
|
2430
|
+
"&.Mui-checked": {
|
|
2431
|
+
"& svg": {
|
|
2432
|
+
fill: theme.palette.primary.main,
|
|
2433
|
+
filter: `drop-shadow(0 2px 3px ${(0, import_styles4.alpha)(theme.palette.mode === "light" ? theme.palette.customColors.main : "#0c101b", 0.16)})`
|
|
2434
|
+
},
|
|
2435
|
+
"&.Mui-disabled svg": {
|
|
2436
|
+
opacity: 0.4,
|
|
2437
|
+
filter: "none",
|
|
2438
|
+
"& path:first-of-type": {
|
|
2439
|
+
fill: theme.palette.text.disabled
|
|
2440
|
+
},
|
|
2441
|
+
"& path:last-of-type": {
|
|
2442
|
+
fill: theme.palette.common.white,
|
|
2443
|
+
stroke: theme.palette.common.white,
|
|
2444
|
+
opacity: theme.palette.mode === "dark" ? 0.5 : 0.9
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
},
|
|
2448
|
+
"&.Mui-disabled:not(.Mui-checked) svg": {
|
|
2449
|
+
opacity: 0.5
|
|
2450
|
+
},
|
|
2451
|
+
"&.Mui-checked.MuiRadio-colorSecondary svg path:first-of-type": {
|
|
2452
|
+
fill: theme.palette.secondary.main
|
|
2453
|
+
},
|
|
2454
|
+
"&.Mui-checked.MuiRadio-colorSuccess svg path:first-of-type": {
|
|
2455
|
+
fill: theme.palette.success.main
|
|
2456
|
+
},
|
|
2457
|
+
"&.Mui-checked.MuiRadio-colorError svg path:first-of-type": {
|
|
2458
|
+
fill: theme.palette.error.main
|
|
2459
|
+
},
|
|
2460
|
+
"&.Mui-checked.MuiRadio-colorWarning svg path:first-of-type": {
|
|
2461
|
+
fill: theme.palette.warning.main
|
|
2462
|
+
},
|
|
2463
|
+
"&.Mui-checked.MuiRadio-colorInfo svg path:first-of-type": {
|
|
2464
|
+
fill: theme.palette.info.main
|
|
2465
|
+
}
|
|
2466
|
+
})
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
var radio_default = Radio;
|
|
2472
|
+
|
|
2473
|
+
// src/@core/theme/overrides/rating.ts
|
|
2474
|
+
var Rating = () => {
|
|
2475
|
+
return {
|
|
2476
|
+
MuiRating: {
|
|
2477
|
+
styleOverrides: {
|
|
2478
|
+
root: ({ theme }) => ({
|
|
2479
|
+
color: theme.palette.warning.main,
|
|
2480
|
+
"& svg": {
|
|
2481
|
+
flexShrink: 0
|
|
2482
|
+
}
|
|
2483
|
+
})
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
};
|
|
2487
|
+
};
|
|
2488
|
+
var rating_default = Rating;
|
|
2489
|
+
|
|
2490
|
+
// src/@core/theme/overrides/select.ts
|
|
2491
|
+
var select_default = {
|
|
2492
|
+
MuiSelect: {
|
|
2493
|
+
styleOverrides: {
|
|
2494
|
+
select: {
|
|
2495
|
+
minWidth: "6rem !important",
|
|
2496
|
+
"&.MuiTablePagination-select": {
|
|
2497
|
+
minWidth: "1.5rem !important"
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
};
|
|
2503
|
+
|
|
2504
|
+
// src/@core/theme/overrides/slider.ts
|
|
2505
|
+
var Slider = () => {
|
|
2506
|
+
return {
|
|
2507
|
+
MuiSlider: {
|
|
2508
|
+
styleOverrides: {
|
|
2509
|
+
root: ({ theme }) => ({
|
|
2510
|
+
"&:not(.MuiSlider-vertical)": {
|
|
2511
|
+
height: 6
|
|
2512
|
+
},
|
|
2513
|
+
"&.MuiSlider-vertical": {
|
|
2514
|
+
width: 6
|
|
2515
|
+
},
|
|
2516
|
+
"&.MuiSlider-colorPrimary": {
|
|
2517
|
+
"& .MuiSlider-thumb.Mui-active": {
|
|
2518
|
+
boxShadow: `0 0 0 10px ${hexToRGBA(theme.palette.primary.main, 0.16)}`
|
|
2519
|
+
},
|
|
2520
|
+
"& .MuiSlider-thumbSizeSmall:hover, &.MuiSlider-sizeSmall .MuiSlider-thumb.Mui-focusVisible": {
|
|
2521
|
+
boxShadow: `0 0 0 6px ${hexToRGBA(theme.palette.primary.main, 0.16)}`
|
|
2522
|
+
},
|
|
2523
|
+
"& .MuiSlider-thumbSizeSmall.Mui-active": {
|
|
2524
|
+
boxShadow: `0 0 0 8px ${hexToRGBA(theme.palette.primary.main, 0.16)} !important`
|
|
2525
|
+
}
|
|
2526
|
+
},
|
|
2527
|
+
"&.MuiSlider-colorSecondary": {
|
|
2528
|
+
"& .MuiSlider-thumb.Mui-active": {
|
|
2529
|
+
boxShadow: `0 0 0 10px ${hexToRGBA(theme.palette.secondary.main, 0.16)}`
|
|
2530
|
+
},
|
|
2531
|
+
"& .MuiSlider-thumbSizeSmall:hover, &.MuiSlider-sizeSmall .MuiSlider-thumb.Mui-focusVisible": {
|
|
2532
|
+
boxShadow: `0 0 0 6px ${hexToRGBA(theme.palette.secondary.main, 0.16)}`
|
|
2533
|
+
},
|
|
2534
|
+
"& .MuiSlider-thumbSizeSmall.Mui-active": {
|
|
2535
|
+
boxShadow: `0 0 0 8px ${hexToRGBA(theme.palette.secondary.main, 0.16)} !important`
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
}),
|
|
2539
|
+
rail: ({ theme }) => ({
|
|
2540
|
+
opacity: 1,
|
|
2541
|
+
backgroundColor: theme.palette.action.selected
|
|
2542
|
+
}),
|
|
2543
|
+
track: {
|
|
2544
|
+
border: 0
|
|
2545
|
+
},
|
|
2546
|
+
thumb: ({ theme }) => ({
|
|
2547
|
+
width: 14,
|
|
2548
|
+
height: 14,
|
|
2549
|
+
"&:before": {
|
|
2550
|
+
boxShadow: theme.shadows[3],
|
|
2551
|
+
border: `2px solid ${theme.palette.background.paper}`
|
|
2552
|
+
},
|
|
2553
|
+
"&:not(.Mui-active):after": {
|
|
2554
|
+
width: 30,
|
|
2555
|
+
height: 30
|
|
2556
|
+
},
|
|
2557
|
+
"&.Mui-active": {
|
|
2558
|
+
width: 18,
|
|
2559
|
+
height: 18,
|
|
2560
|
+
"&:before": {
|
|
2561
|
+
borderWidth: 3
|
|
2562
|
+
},
|
|
2563
|
+
"&:after": {
|
|
2564
|
+
width: 38,
|
|
2565
|
+
height: 38
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
}),
|
|
2569
|
+
sizeSmall: {
|
|
2570
|
+
"&:not(.MuiSlider-vertical)": {
|
|
2571
|
+
height: 4
|
|
2572
|
+
},
|
|
2573
|
+
"&.MuiSlider-vertical": {
|
|
2574
|
+
width: 4
|
|
2575
|
+
}
|
|
2576
|
+
},
|
|
2577
|
+
thumbSizeSmall: ({ theme }) => ({
|
|
2578
|
+
width: 12,
|
|
2579
|
+
height: 12,
|
|
2580
|
+
"&:before": {
|
|
2581
|
+
boxShadow: theme.shadows[2]
|
|
2582
|
+
},
|
|
2583
|
+
"&:not(.Mui-active):after": {
|
|
2584
|
+
width: 24,
|
|
2585
|
+
height: 24
|
|
2586
|
+
},
|
|
2587
|
+
"&.Mui-active": {
|
|
2588
|
+
width: 14,
|
|
2589
|
+
height: 14,
|
|
2590
|
+
"&:before": {
|
|
2591
|
+
borderWidth: 2
|
|
2592
|
+
},
|
|
2593
|
+
"&:after": {
|
|
2594
|
+
width: 30,
|
|
2595
|
+
height: 30
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
})
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
};
|
|
2602
|
+
};
|
|
2603
|
+
var slider_default = Slider;
|
|
2604
|
+
|
|
2605
|
+
// src/@core/theme/overrides/snackbar.ts
|
|
2606
|
+
var Snackbar = (skin) => {
|
|
2607
|
+
return {
|
|
2608
|
+
MuiSnackbarContent: {
|
|
2609
|
+
styleOverrides: {
|
|
2610
|
+
root: ({ theme }) => ({
|
|
2611
|
+
...skin === "bordered" && { boxShadow: "none" },
|
|
2612
|
+
backgroundColor: `rgb(${theme.palette.customColors.main})`,
|
|
2613
|
+
color: theme.palette.common[theme.palette.mode === "light" ? "white" : "black"]
|
|
2614
|
+
})
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
};
|
|
2618
|
+
};
|
|
2619
|
+
var snackbar_default = Snackbar;
|
|
2620
|
+
|
|
2621
|
+
// src/@core/theme/overrides/table.ts
|
|
2622
|
+
var Table = () => {
|
|
2623
|
+
return {
|
|
2624
|
+
MuiTableContainer: {
|
|
2625
|
+
styleOverrides: {
|
|
2626
|
+
root: ({ theme }) => ({
|
|
2627
|
+
boxShadow: theme.shadows[0],
|
|
2628
|
+
borderTopColor: theme.palette.divider
|
|
2629
|
+
})
|
|
2630
|
+
}
|
|
2631
|
+
},
|
|
2632
|
+
MuiTableHead: {
|
|
2633
|
+
styleOverrides: {
|
|
2634
|
+
root: {
|
|
2635
|
+
textTransform: "uppercase",
|
|
2636
|
+
"& .MuiTableCell-head": {
|
|
2637
|
+
fontSize: "0.75rem",
|
|
2638
|
+
fontWeight: 600,
|
|
2639
|
+
letterSpacing: "1px"
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
},
|
|
2644
|
+
MuiTableBody: {
|
|
2645
|
+
styleOverrides: {
|
|
2646
|
+
root: ({ theme }) => ({
|
|
2647
|
+
"& .MuiTableCell-body": {
|
|
2648
|
+
letterSpacing: "0.25px",
|
|
2649
|
+
color: theme.palette.text.secondary,
|
|
2650
|
+
"&:not(.MuiTableCell-sizeSmall):not(.MuiTableCell-paddingCheckbox):not(.MuiTableCell-paddingNone)": {
|
|
2651
|
+
paddingTop: theme.spacing(3.5),
|
|
2652
|
+
paddingBottom: theme.spacing(3.5)
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
})
|
|
2656
|
+
}
|
|
2657
|
+
},
|
|
2658
|
+
MuiTableRow: {
|
|
2659
|
+
styleOverrides: {
|
|
2660
|
+
root: ({ theme }) => ({
|
|
2661
|
+
"& .MuiTableCell-head:not(.MuiTableCell-paddingCheckbox):first-child, & .MuiTableCell-root:not(.MuiTableCell-paddingCheckbox):first-child ": {
|
|
2662
|
+
paddingLeft: theme.spacing(6)
|
|
2663
|
+
},
|
|
2664
|
+
"& .MuiTableCell-head:last-child, & .MuiTableCell-root:last-child": {
|
|
2665
|
+
paddingRight: theme.spacing(6)
|
|
2666
|
+
}
|
|
2667
|
+
})
|
|
2668
|
+
}
|
|
2669
|
+
},
|
|
2670
|
+
MuiTableCell: {
|
|
2671
|
+
styleOverrides: {
|
|
2672
|
+
root: ({ theme }) => ({
|
|
2673
|
+
borderBottom: `1px solid ${theme.palette.divider}`
|
|
2674
|
+
}),
|
|
2675
|
+
paddingCheckbox: ({ theme }) => ({
|
|
2676
|
+
paddingLeft: theme.spacing(3.25)
|
|
2677
|
+
}),
|
|
2678
|
+
stickyHeader: ({ theme }) => ({
|
|
2679
|
+
backgroundColor: theme.palette.customColors.tableHeaderBg
|
|
2680
|
+
})
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
};
|
|
2684
|
+
};
|
|
2685
|
+
var table_default = Table;
|
|
2686
|
+
|
|
2687
|
+
// src/@core/theme/overrides/tabs.ts
|
|
2688
|
+
var Tabs = () => {
|
|
2689
|
+
return {
|
|
2690
|
+
MuiTabs: {
|
|
2691
|
+
styleOverrides: {
|
|
2692
|
+
root: ({ theme }) => ({
|
|
2693
|
+
minHeight: 38,
|
|
2694
|
+
"&:not(.MuiTabs-vertical)": {
|
|
2695
|
+
borderBottom: `1px solid ${theme.palette.divider}`
|
|
2696
|
+
}
|
|
2697
|
+
}),
|
|
2698
|
+
vertical: ({ theme }) => ({
|
|
2699
|
+
minWidth: 130,
|
|
2700
|
+
marginRight: theme.spacing(4),
|
|
2701
|
+
borderRight: `1px solid ${theme.palette.divider}`,
|
|
2702
|
+
"& .MuiTab-root": {
|
|
2703
|
+
minWidth: 130
|
|
2704
|
+
}
|
|
2705
|
+
})
|
|
2706
|
+
}
|
|
2707
|
+
},
|
|
2708
|
+
MuiTab: {
|
|
2709
|
+
styleOverrides: {
|
|
2710
|
+
root: ({ theme }) => ({
|
|
2711
|
+
minHeight: 38,
|
|
2712
|
+
padding: theme.spacing(1.75, 5)
|
|
2713
|
+
}),
|
|
2714
|
+
textColorSecondary: ({ theme }) => ({
|
|
2715
|
+
"&.Mui-selected": {
|
|
2716
|
+
color: theme.palette.text.secondary
|
|
2717
|
+
}
|
|
2718
|
+
})
|
|
2719
|
+
}
|
|
2720
|
+
},
|
|
2721
|
+
MuiTabPanel: {
|
|
2722
|
+
styleOverrides: {
|
|
2723
|
+
root: ({ theme }) => ({
|
|
2724
|
+
padding: theme.spacing(6)
|
|
2725
|
+
})
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
};
|
|
2729
|
+
};
|
|
2730
|
+
var tabs_default = Tabs;
|
|
2731
|
+
|
|
2732
|
+
// src/@core/theme/overrides/tooltip.ts
|
|
2733
|
+
var Tooltip = () => {
|
|
2734
|
+
return {
|
|
2735
|
+
MuiTooltip: {
|
|
2736
|
+
styleOverrides: {
|
|
2737
|
+
tooltip: ({ theme }) => ({
|
|
2738
|
+
backgroundColor: theme.palette.mode === "light" ? `rgba(${theme.palette.customColors.main}, 0.9)` : hexToRGBA(theme.palette.customColors.trackBg, 0.9)
|
|
2739
|
+
}),
|
|
2740
|
+
arrow: ({ theme }) => ({
|
|
2741
|
+
color: theme.palette.mode === "light" ? `rgba(${theme.palette.customColors.main}, 0.9)` : hexToRGBA(theme.palette.customColors.trackBg, 0.9)
|
|
2742
|
+
})
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
};
|
|
2746
|
+
};
|
|
2747
|
+
var tooltip_default = Tooltip;
|
|
2748
|
+
|
|
2749
|
+
// src/@core/hooks/useSettings.ts
|
|
2750
|
+
var import_react5 = require("react");
|
|
2751
|
+
|
|
2752
|
+
// src/@core/context/settingsContext.tsx
|
|
2753
|
+
var import_react4 = require("react");
|
|
2754
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2755
|
+
var initialSettings = {
|
|
2756
|
+
mode: "light",
|
|
2757
|
+
layout: themeConfig_default.layout,
|
|
2758
|
+
lastLayout: themeConfig_default.layout,
|
|
2759
|
+
direction: themeConfig_default.direction,
|
|
2760
|
+
navHidden: themeConfig_default.navHidden,
|
|
2761
|
+
appBarBlur: themeConfig_default.appBarBlur,
|
|
2762
|
+
navCollapsed: themeConfig_default.navCollapsed
|
|
2763
|
+
};
|
|
2764
|
+
var staticSettings = {
|
|
2765
|
+
layout: initialSettings.layout,
|
|
2766
|
+
navHidden: initialSettings.navHidden,
|
|
2767
|
+
lastLayout: initialSettings.lastLayout
|
|
2768
|
+
};
|
|
2769
|
+
var SettingsContext = (0, import_react4.createContext)({
|
|
2770
|
+
saveSettings: () => null,
|
|
2771
|
+
settings: initialSettings
|
|
2772
|
+
});
|
|
2773
|
+
var SettingsConsumer = SettingsContext.Consumer;
|
|
2774
|
+
|
|
2775
|
+
// src/@core/hooks/useSettings.ts
|
|
2776
|
+
var useSettings = () => (0, import_react5.useContext)(SettingsContext);
|
|
2777
|
+
|
|
2778
|
+
// src/@core/theme/overrides/accordion.ts
|
|
2779
|
+
var Accordion = () => {
|
|
2780
|
+
const { settings } = useSettings();
|
|
2781
|
+
const { skin } = settings;
|
|
2782
|
+
return {
|
|
2783
|
+
MuiAccordion: {
|
|
2784
|
+
styleOverrides: {
|
|
2785
|
+
root: ({ theme }) => ({
|
|
2786
|
+
margin: theme.spacing(2, 0),
|
|
2787
|
+
"&:before": { display: "none" },
|
|
2788
|
+
borderRadius: theme.shape.borderRadius,
|
|
2789
|
+
transition: "box-shadow .35s ease, margin .35s ease",
|
|
2790
|
+
boxShadow: theme.shadows[skin === "bordered" ? 0 : 1],
|
|
2791
|
+
...skin === "bordered" && { border: `1px solid ${theme.palette.divider}` },
|
|
2792
|
+
"&.Mui-disabled": {
|
|
2793
|
+
backgroundColor: `rgba(${theme.palette.customColors.main}, 0.12)`
|
|
2794
|
+
},
|
|
2795
|
+
"&.Mui-expanded": {
|
|
2796
|
+
margin: theme.spacing(2, 0),
|
|
2797
|
+
boxShadow: theme.shadows[skin === "bordered" ? 0 : 6]
|
|
2798
|
+
},
|
|
2799
|
+
"& .MuiCollapse-root": {
|
|
2800
|
+
minHeight: "unset !important",
|
|
2801
|
+
transition: "height .35s ease !important",
|
|
2802
|
+
"&.MuiCollapse-entered": {
|
|
2803
|
+
height: "auto !important"
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
})
|
|
2807
|
+
}
|
|
2808
|
+
},
|
|
2809
|
+
MuiAccordionSummary: {
|
|
2810
|
+
styleOverrides: {
|
|
2811
|
+
root: ({ theme }) => ({
|
|
2812
|
+
fontWeight: 500,
|
|
2813
|
+
borderRadius: "inherit",
|
|
2814
|
+
padding: `0 ${theme.spacing(4.5)}`,
|
|
2815
|
+
"& + .MuiCollapse-root": {
|
|
2816
|
+
"& .MuiAccordionDetails-root:first-child": {
|
|
2817
|
+
paddingTop: 0
|
|
2818
|
+
}
|
|
2819
|
+
},
|
|
2820
|
+
"&.Mui-expanded": {
|
|
2821
|
+
minHeight: "unset",
|
|
2822
|
+
borderBottomLeftRadius: 0,
|
|
2823
|
+
borderBottomRightRadius: 0,
|
|
2824
|
+
"& .MuiAccordionSummary-content": {
|
|
2825
|
+
margin: theme.spacing(3, 0)
|
|
2826
|
+
}
|
|
2827
|
+
},
|
|
2828
|
+
"& .MuiTypography-root": {
|
|
2829
|
+
fontWeight: 500
|
|
2830
|
+
}
|
|
2831
|
+
}),
|
|
2832
|
+
content: ({ theme }) => ({
|
|
2833
|
+
margin: theme.spacing(3, 0)
|
|
2834
|
+
}),
|
|
2835
|
+
expandIconWrapper: ({ theme }) => ({
|
|
2836
|
+
color: theme.palette.text.primary
|
|
2837
|
+
})
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
MuiAccordionDetails: {
|
|
2841
|
+
styleOverrides: {
|
|
2842
|
+
root: ({ theme }) => ({
|
|
2843
|
+
padding: theme.spacing(4.5),
|
|
2844
|
+
"& + .MuiAccordionDetails-root": {
|
|
2845
|
+
paddingTop: 0
|
|
2846
|
+
}
|
|
2847
|
+
})
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
};
|
|
2851
|
+
};
|
|
2852
|
+
var accordion_default = Accordion;
|
|
2853
|
+
|
|
2854
|
+
// src/@core/theme/overrides/autocomplete.ts
|
|
2855
|
+
var Autocomplete3 = (skin) => {
|
|
2856
|
+
return {
|
|
2857
|
+
MuiAutocomplete: {
|
|
2858
|
+
styleOverrides: {
|
|
2859
|
+
paper: ({ theme }) => ({
|
|
2860
|
+
...skin === "bordered" && { boxShadow: "none", border: `1px solid ${theme.palette.divider}` }
|
|
2861
|
+
})
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
};
|
|
2865
|
+
};
|
|
2866
|
+
var autocomplete_default = Autocomplete3;
|
|
2867
|
+
|
|
2868
|
+
// src/@core/theme/overrides/breadcrumbs.ts
|
|
2869
|
+
var Breadcrumbs = () => {
|
|
2870
|
+
return {
|
|
2871
|
+
MuiBreadcrumbs: {
|
|
2872
|
+
styleOverrides: {
|
|
2873
|
+
root: ({ theme }) => ({
|
|
2874
|
+
"& a": {
|
|
2875
|
+
textDecoration: "none",
|
|
2876
|
+
color: theme.palette.primary.main
|
|
2877
|
+
}
|
|
2878
|
+
}),
|
|
2879
|
+
li: ({ theme }) => ({
|
|
2880
|
+
color: theme.palette.text.secondary,
|
|
2881
|
+
"& .MuiTypography-root": {
|
|
2882
|
+
color: "inherit"
|
|
2883
|
+
}
|
|
2884
|
+
})
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2889
|
+
var breadcrumbs_default = Breadcrumbs;
|
|
2890
|
+
|
|
2891
|
+
// src/@core/theme/overrides/pagination.ts
|
|
2892
|
+
var Pagination = () => {
|
|
2893
|
+
return {
|
|
2894
|
+
MuiPaginationItem: {
|
|
2895
|
+
styleOverrides: {
|
|
2896
|
+
root: ({ theme }) => ({
|
|
2897
|
+
"&:not(.MuiPaginationItem-outlined):not(.Mui-disabled)": {
|
|
2898
|
+
transition: theme.transitions.create(["color", "background-color", "box-shadow"], {
|
|
2899
|
+
duration: 250,
|
|
2900
|
+
easing: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
2901
|
+
}),
|
|
2902
|
+
"&.Mui-selected": {
|
|
2903
|
+
boxShadow: theme.shadows[2]
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
}),
|
|
2907
|
+
outlined: ({ theme }) => ({
|
|
2908
|
+
borderColor: `rgba(${theme.palette.customColors.main}, 0.22)`
|
|
2909
|
+
}),
|
|
2910
|
+
outlinedPrimary: ({ theme }) => ({
|
|
2911
|
+
"&.Mui-selected": {
|
|
2912
|
+
backgroundColor: hexToRGBA(theme.palette.primary.main, 0.16)
|
|
2913
|
+
}
|
|
2914
|
+
}),
|
|
2915
|
+
outlinedSecondary: ({ theme }) => ({
|
|
2916
|
+
"&.Mui-selected": {
|
|
2917
|
+
backgroundColor: hexToRGBA(theme.palette.secondary.main, 0.16)
|
|
2918
|
+
}
|
|
2919
|
+
})
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
};
|
|
2923
|
+
};
|
|
2924
|
+
var pagination_default = Pagination;
|
|
2925
|
+
|
|
2926
|
+
// src/@core/theme/overrides/timeline.ts
|
|
2927
|
+
var Timeline = () => {
|
|
2928
|
+
return {
|
|
2929
|
+
MuiTimelineItem: {
|
|
2930
|
+
styleOverrides: {
|
|
2931
|
+
root: ({ theme }) => ({
|
|
2932
|
+
"&:not(:last-of-type)": {
|
|
2933
|
+
"& .MuiTimelineContent-root": {
|
|
2934
|
+
marginBottom: theme.spacing(4)
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
})
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
MuiTimelineConnector: {
|
|
2941
|
+
styleOverrides: {
|
|
2942
|
+
root: ({ theme }) => ({
|
|
2943
|
+
backgroundColor: theme.palette.divider
|
|
2944
|
+
})
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
MuiTimelineContent: {
|
|
2948
|
+
styleOverrides: {
|
|
2949
|
+
root: ({ theme }) => ({
|
|
2950
|
+
marginTop: theme.spacing(0.5)
|
|
2951
|
+
})
|
|
2952
|
+
}
|
|
2953
|
+
},
|
|
2954
|
+
MuiTimelineDot: {
|
|
2955
|
+
styleOverrides: {
|
|
2956
|
+
filledPrimary: ({ theme }) => ({
|
|
2957
|
+
boxShadow: `0 0 0 3px ${hexToRGBA(theme.palette.primary.main, 0.16)}`
|
|
2958
|
+
}),
|
|
2959
|
+
filledSecondary: ({ theme }) => ({
|
|
2960
|
+
boxShadow: `0 0 0 3px ${hexToRGBA(theme.palette.secondary.main, 0.16)}`
|
|
2961
|
+
}),
|
|
2962
|
+
filledSuccess: ({ theme }) => ({
|
|
2963
|
+
boxShadow: `0 0 0 3px ${hexToRGBA(theme.palette.success.main, 0.16)}`
|
|
2964
|
+
}),
|
|
2965
|
+
filledError: ({ theme }) => ({
|
|
2966
|
+
boxShadow: `0 0 0 3px ${hexToRGBA(theme.palette.error.main, 0.16)}`
|
|
2967
|
+
}),
|
|
2968
|
+
filledWarning: ({ theme }) => ({
|
|
2969
|
+
boxShadow: `0 0 0 3px ${hexToRGBA(theme.palette.warning.main, 0.16)}`
|
|
2970
|
+
}),
|
|
2971
|
+
filledInfo: ({ theme }) => ({
|
|
2972
|
+
boxShadow: `0 0 0 3px ${hexToRGBA(theme.palette.info.main, 0.16)}`
|
|
2973
|
+
}),
|
|
2974
|
+
filledGrey: ({ theme }) => ({
|
|
2975
|
+
boxShadow: `0 0 0 3px ${hexToRGBA(theme.palette.grey[400], 0.16)}`
|
|
2976
|
+
}),
|
|
2977
|
+
outlinedPrimary: ({ theme }) => ({
|
|
2978
|
+
"& svg": { color: theme.palette.primary.main }
|
|
2979
|
+
}),
|
|
2980
|
+
outlinedSecondary: ({ theme }) => ({
|
|
2981
|
+
"& svg": { color: theme.palette.secondary.main }
|
|
2982
|
+
}),
|
|
2983
|
+
outlinedSuccess: ({ theme }) => ({
|
|
2984
|
+
"& svg": { color: theme.palette.success.main }
|
|
2985
|
+
}),
|
|
2986
|
+
outlinedError: ({ theme }) => ({
|
|
2987
|
+
"& svg": { color: theme.palette.error.main }
|
|
2988
|
+
}),
|
|
2989
|
+
outlinedWarning: ({ theme }) => ({
|
|
2990
|
+
"& svg": { color: theme.palette.warning.main }
|
|
2991
|
+
}),
|
|
2992
|
+
outlinedInfo: ({ theme }) => ({
|
|
2993
|
+
"& svg": { color: theme.palette.info.main }
|
|
2994
|
+
}),
|
|
2995
|
+
outlinedGrey: ({ theme }) => ({
|
|
2996
|
+
"& svg": { color: theme.palette.grey[400] }
|
|
2997
|
+
})
|
|
2998
|
+
}
|
|
2999
|
+
}
|
|
3000
|
+
};
|
|
3001
|
+
};
|
|
3002
|
+
var timeline_default = Timeline;
|
|
3003
|
+
|
|
3004
|
+
// src/@core/theme/overrides/toggleButton.ts
|
|
3005
|
+
var toggleButton_default = {
|
|
3006
|
+
MuiToggleButtonGroup: {
|
|
3007
|
+
styleOverrides: {
|
|
3008
|
+
root: {
|
|
3009
|
+
borderRadius: 4
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
3013
|
+
MuiToggleButton: {
|
|
3014
|
+
styleOverrides: {
|
|
3015
|
+
root: {
|
|
3016
|
+
borderRadius: 4
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
};
|
|
3021
|
+
|
|
3022
|
+
// src/@core/theme/overrides/typography.ts
|
|
3023
|
+
var typography = {
|
|
3024
|
+
MuiTypography: {
|
|
3025
|
+
styleOverrides: {
|
|
3026
|
+
gutterBottom: ({ theme }) => ({
|
|
3027
|
+
marginBottom: theme.spacing(2)
|
|
3028
|
+
})
|
|
3029
|
+
},
|
|
3030
|
+
variants: [
|
|
3031
|
+
{
|
|
3032
|
+
props: { variant: "h1" },
|
|
3033
|
+
style: ({ theme }) => ({
|
|
3034
|
+
color: theme.palette.common.black
|
|
3035
|
+
})
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
props: { variant: "h2" },
|
|
3039
|
+
style: ({ theme }) => ({
|
|
3040
|
+
color: theme.palette.common.black
|
|
3041
|
+
})
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
props: { variant: "h3" },
|
|
3045
|
+
style: ({ theme }) => ({
|
|
3046
|
+
color: theme.palette.common.black,
|
|
3047
|
+
fontSize: "2.25rem !important"
|
|
3048
|
+
})
|
|
3049
|
+
},
|
|
3050
|
+
{
|
|
3051
|
+
props: { variant: "h4" },
|
|
3052
|
+
style: ({ theme }) => ({
|
|
3053
|
+
color: theme.palette.common.black,
|
|
3054
|
+
fontSize: "1.875rem !important"
|
|
3055
|
+
})
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
props: { variant: "h5" },
|
|
3059
|
+
style: ({ theme }) => ({
|
|
3060
|
+
color: theme.palette.common.black,
|
|
3061
|
+
fontSize: "1.375rem !important"
|
|
3062
|
+
})
|
|
3063
|
+
},
|
|
3064
|
+
{
|
|
3065
|
+
props: { variant: "h6" },
|
|
3066
|
+
style: ({ theme }) => ({
|
|
3067
|
+
color: theme.palette.common.black
|
|
3068
|
+
})
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
props: { variant: "subtitle1" },
|
|
3072
|
+
style: ({ theme }) => ({
|
|
3073
|
+
color: theme.palette.common.black,
|
|
3074
|
+
fontSize: "1.2rem"
|
|
3075
|
+
})
|
|
3076
|
+
},
|
|
3077
|
+
{
|
|
3078
|
+
props: { variant: "subtitle2" },
|
|
3079
|
+
style: ({}) => ({
|
|
3080
|
+
color: "#28293D"
|
|
3081
|
+
})
|
|
3082
|
+
},
|
|
3083
|
+
{
|
|
3084
|
+
props: { variant: "body1" },
|
|
3085
|
+
style: ({ theme }) => ({
|
|
3086
|
+
color: theme.palette.common.black,
|
|
3087
|
+
fontSize: "1.2rem !important"
|
|
3088
|
+
})
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
props: { variant: "body2" },
|
|
3092
|
+
style: ({}) => ({
|
|
3093
|
+
color: "#222",
|
|
3094
|
+
fontSize: "12px !important"
|
|
3095
|
+
})
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
props: { variant: "body" },
|
|
3099
|
+
style: ({}) => ({
|
|
3100
|
+
color: "#222",
|
|
3101
|
+
fontSize: "12px !important"
|
|
3102
|
+
})
|
|
3103
|
+
},
|
|
3104
|
+
{
|
|
3105
|
+
props: { variant: "button" },
|
|
3106
|
+
style: ({ theme }) => ({
|
|
3107
|
+
color: theme.palette.common.black,
|
|
3108
|
+
fontSize: "16px !important"
|
|
3109
|
+
})
|
|
3110
|
+
},
|
|
3111
|
+
{
|
|
3112
|
+
props: { variant: "caption" },
|
|
3113
|
+
style: ({ theme }) => ({
|
|
3114
|
+
color: theme.palette.text.secondary
|
|
3115
|
+
})
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
props: { variant: "overline" },
|
|
3119
|
+
style: ({ theme }) => ({
|
|
3120
|
+
color: theme.palette.text.secondary
|
|
3121
|
+
})
|
|
3122
|
+
}
|
|
3123
|
+
]
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
var typography_default = typography;
|
|
3127
|
+
|
|
3128
|
+
// src/@core/theme/overrides/index.ts
|
|
3129
|
+
var Overrides = (settings) => {
|
|
3130
|
+
const { skin } = settings;
|
|
3131
|
+
const button = button_default();
|
|
3132
|
+
const chip = chip_default();
|
|
3133
|
+
const list = list_default();
|
|
3134
|
+
const tabs = tabs_default();
|
|
3135
|
+
const radio = radio_default();
|
|
3136
|
+
const input2 = input_default();
|
|
3137
|
+
const tables = table_default();
|
|
3138
|
+
const alerts = alerts_default();
|
|
3139
|
+
const rating = rating_default();
|
|
3140
|
+
const slider = slider_default();
|
|
3141
|
+
const avatars = avatars_default();
|
|
3142
|
+
const divider = divider_default();
|
|
3143
|
+
const menu = menu_default(skin);
|
|
3144
|
+
const tooltip = tooltip_default();
|
|
3145
|
+
const cards = card_default(skin);
|
|
3146
|
+
const checkbox = checkbox_default();
|
|
3147
|
+
const backdrop = backdrop_default();
|
|
3148
|
+
const dataGrid = dataGrid_default();
|
|
3149
|
+
const progress = progress_default();
|
|
3150
|
+
const timeline = timeline_default();
|
|
3151
|
+
const accordion = accordion_default();
|
|
3152
|
+
const dialog = dialog_default(skin);
|
|
3153
|
+
const pagination = pagination_default();
|
|
3154
|
+
const popover = popover_default(skin);
|
|
3155
|
+
const breadcrumb = breadcrumbs_default();
|
|
3156
|
+
const snackbar = snackbar_default(skin);
|
|
3157
|
+
const autocomplete = autocomplete_default(skin);
|
|
3158
|
+
return Object.assign(
|
|
3159
|
+
chip,
|
|
3160
|
+
list,
|
|
3161
|
+
menu,
|
|
3162
|
+
tabs,
|
|
3163
|
+
cards,
|
|
3164
|
+
radio,
|
|
3165
|
+
input2,
|
|
3166
|
+
alerts,
|
|
3167
|
+
button,
|
|
3168
|
+
dialog,
|
|
3169
|
+
rating,
|
|
3170
|
+
slider,
|
|
3171
|
+
tables,
|
|
3172
|
+
avatars,
|
|
3173
|
+
divider,
|
|
3174
|
+
link_default,
|
|
3175
|
+
popover,
|
|
3176
|
+
tooltip,
|
|
3177
|
+
checkbox,
|
|
3178
|
+
backdrop,
|
|
3179
|
+
dataGrid,
|
|
3180
|
+
paper_default,
|
|
3181
|
+
progress,
|
|
3182
|
+
snackbar,
|
|
3183
|
+
// switches,
|
|
3184
|
+
timeline,
|
|
3185
|
+
accordion,
|
|
3186
|
+
select_default,
|
|
3187
|
+
breadcrumb,
|
|
3188
|
+
pagination,
|
|
3189
|
+
autocomplete,
|
|
3190
|
+
typography_default,
|
|
3191
|
+
toggleButton_default
|
|
3192
|
+
);
|
|
3193
|
+
};
|
|
3194
|
+
var overrides_default = Overrides;
|
|
3195
|
+
|
|
3196
|
+
// src/@core/theme/palette/index.ts
|
|
3197
|
+
var DefaultPalette = (mode, skin) => {
|
|
3198
|
+
const whiteColor = "#FFF";
|
|
3199
|
+
const lightColor = "51, 48, 60";
|
|
3200
|
+
const darkColor = "228, 230, 244";
|
|
3201
|
+
const lightColorHex = "#33303c";
|
|
3202
|
+
const darkColorHex = "#e4e6f4";
|
|
3203
|
+
const darkPaperBgColor = "#2F3349";
|
|
3204
|
+
const mainColor = mode === "light" ? lightColor : darkColor;
|
|
3205
|
+
const defaultBgColor = () => {
|
|
3206
|
+
if (skin === "bordered" && mode === "light") {
|
|
3207
|
+
return whiteColor;
|
|
3208
|
+
} else if (skin === "bordered" && mode === "dark") {
|
|
3209
|
+
return darkPaperBgColor;
|
|
3210
|
+
} else if (mode === "light") {
|
|
3211
|
+
return "#F8F7FA";
|
|
3212
|
+
} else return "#25293C";
|
|
3213
|
+
};
|
|
3214
|
+
return {
|
|
3215
|
+
customColors: {
|
|
3216
|
+
dark: darkColorHex,
|
|
3217
|
+
main: lightColorHex,
|
|
3218
|
+
light: lightColorHex,
|
|
3219
|
+
lightPaperBg: whiteColor,
|
|
3220
|
+
darkPaperBg: darkPaperBgColor,
|
|
3221
|
+
bodyBg: mode === "light" ? "#F8F7FA" : "#25293C",
|
|
3222
|
+
trackBg: mode === "light" ? "#F1F0F2" : "#3B405B",
|
|
3223
|
+
avatarBg: mode === "light" ? "#F6F6F7" : "#4A5072",
|
|
3224
|
+
tableHeaderBg: mode === "light" ? "#F6F6F7" : "#4A5072"
|
|
3225
|
+
},
|
|
3226
|
+
mode,
|
|
3227
|
+
common: {
|
|
3228
|
+
black: "#000",
|
|
3229
|
+
white: whiteColor
|
|
3230
|
+
},
|
|
3231
|
+
primary: {
|
|
3232
|
+
light: "rgba(103, 80, 164, 0.02)",
|
|
3233
|
+
main: "#d8c5f9",
|
|
3234
|
+
dark: "#8710D8",
|
|
3235
|
+
contrastText: whiteColor
|
|
3236
|
+
},
|
|
3237
|
+
secondary: {
|
|
3238
|
+
light: "#EFEFEF",
|
|
3239
|
+
main: "#1D192B",
|
|
3240
|
+
dark: "#949699",
|
|
3241
|
+
contrastText: whiteColor
|
|
3242
|
+
},
|
|
3243
|
+
error: {
|
|
3244
|
+
light: "#ED6F70",
|
|
3245
|
+
main: "#EA5455",
|
|
3246
|
+
dark: "#CE4A4B",
|
|
3247
|
+
contrastText: whiteColor
|
|
3248
|
+
},
|
|
3249
|
+
warning: {
|
|
3250
|
+
light: "#FFAB5A",
|
|
3251
|
+
main: "#FF9F43",
|
|
3252
|
+
dark: "#E08C3B",
|
|
3253
|
+
contrastText: whiteColor
|
|
3254
|
+
},
|
|
3255
|
+
info: {
|
|
3256
|
+
light: "#1FD5EB",
|
|
3257
|
+
main: "#00CFE8",
|
|
3258
|
+
dark: "#00B6CC",
|
|
3259
|
+
contrastText: whiteColor
|
|
3260
|
+
},
|
|
3261
|
+
success: {
|
|
3262
|
+
light: "#42CE80",
|
|
3263
|
+
main: "#28C76F",
|
|
3264
|
+
dark: "#23AF62",
|
|
3265
|
+
contrastText: whiteColor
|
|
3266
|
+
},
|
|
3267
|
+
grey: {
|
|
3268
|
+
50: "#FAFAFA",
|
|
3269
|
+
100: "#F5F5F5",
|
|
3270
|
+
200: "#EEEEEE",
|
|
3271
|
+
300: "#E0E0E0",
|
|
3272
|
+
400: "#BDBDBD",
|
|
3273
|
+
500: "#9E9E9E",
|
|
3274
|
+
600: "#757575",
|
|
3275
|
+
700: "#616161",
|
|
3276
|
+
800: "#424242",
|
|
3277
|
+
900: "#212121",
|
|
3278
|
+
A100: "#F5F5F5",
|
|
3279
|
+
A200: "#EEEEEE",
|
|
3280
|
+
A400: "#BDBDBD",
|
|
3281
|
+
A700: "#616161"
|
|
3282
|
+
},
|
|
3283
|
+
text: {
|
|
3284
|
+
primary: `rgba(${mainColor}, 0.87)`,
|
|
3285
|
+
secondary: `rgba(${mainColor}, 0.6)`,
|
|
3286
|
+
disabled: `rgba(${mainColor}, 0.38)`
|
|
3287
|
+
},
|
|
3288
|
+
divider: `rgba(${mainColor}, 0.12)`,
|
|
3289
|
+
background: {
|
|
3290
|
+
// paper: mode === "light" ? whiteColor : darkPaperBgColor,
|
|
3291
|
+
paper: mode === "light" ? "#F2EBFF" : darkPaperBgColor,
|
|
3292
|
+
default: defaultBgColor()
|
|
3293
|
+
},
|
|
3294
|
+
action: {
|
|
3295
|
+
active: `rgba(${mainColor}, 0.54)`,
|
|
3296
|
+
hover: `rgba(${mainColor}, 0.04)`,
|
|
3297
|
+
selected: `rgba(${mainColor}, 0.08)`,
|
|
3298
|
+
disabled: `rgba(${mainColor}, 0.26)`,
|
|
3299
|
+
disabledBackground: `rgba(${mainColor}, 0.12)`,
|
|
3300
|
+
focus: `rgba(${mainColor}, 0.12)`
|
|
3301
|
+
}
|
|
3302
|
+
};
|
|
3303
|
+
};
|
|
3304
|
+
var palette_default = DefaultPalette;
|
|
3305
|
+
|
|
3306
|
+
// src/@core/theme/shadows/index.ts
|
|
3307
|
+
var Shadows = (mode) => {
|
|
3308
|
+
if (mode === "light") {
|
|
3309
|
+
return [
|
|
3310
|
+
"none",
|
|
3311
|
+
"0px 2px 4px 1px rgba(51, 48, 60, 0.03), 0px 3px 4px 0px rgba(51, 48, 60, 0.02), 0px 1px 3px 2px rgba(51, 48, 60, 0.01)",
|
|
3312
|
+
"0px 3px 5px 2px rgba(51, 48, 60, 0.03), 0px 3px 5px 0px rgba(51, 48, 60, 0.02), 0px 1px 4px 2px rgba(51, 48, 60, 0.01)",
|
|
3313
|
+
"0px 3px 6px 2px rgba(51, 48, 60, 0.03), 0px 4px 6px 0px rgba(51, 48, 60, 0.02), 0px 1px 4px 2px rgba(51, 48, 60, 0.01)",
|
|
3314
|
+
"0px 2px 7px 1px rgba(51, 48, 60, 0.03), 0px 4px 7px 0px rgba(51, 48, 60, 0.02), 0px 1px 4px 2px rgba(51, 48, 60, 0.01)",
|
|
3315
|
+
"0px 3px 8px 1px rgba(51, 48, 60, 0.03), 0px 6px 8px 0px rgba(51, 48, 60, 0.02), 0px 1px 5px 4px rgba(51, 48, 60, 0.01)",
|
|
3316
|
+
"0px 3px 9px 1px rgba(51, 48, 60, 0.03), 0px 8px 9px 0px rgba(51, 48, 60, 0.02), 0px 1px 6px 4px rgba(51, 48, 60, 0.01)",
|
|
3317
|
+
"0px 4px 10px 2px rgba(51, 48, 60, 0.03), 0px 9px 10px 1px rgba(51, 48, 60, 0.02), 0px 2px 7px 4px rgba(51, 48, 60, 0.01)",
|
|
3318
|
+
"0px 5px 11px 3px rgba(51, 48, 60, 0.03), 0px 8px 11px 1px rgba(51, 48, 60, 0.02), 0px 3px 8px 4px rgba(51, 48, 60, 0.01)",
|
|
3319
|
+
"0px 5px 12px 3px rgba(51, 48, 60, 0.03), 0px 9px 12px 1px rgba(51, 48, 60, 0.02), 0px 3px 9px 5px rgba(51, 48, 60, 0.01)",
|
|
3320
|
+
"0px 6px 13px 3px rgba(51, 48, 60, 0.03), 0px 10px 13px 1px rgba(51, 48, 60, 0.02), 0px 4px 10px 5px rgba(51, 48, 60, 0.01)",
|
|
3321
|
+
"0px 6px 14px 4px rgba(51, 48, 60, 0.03), 0px 11px 14px 1px rgba(51, 48, 60, 0.02), 0px 4px 11px 5px rgba(51, 48, 60, 0.01)",
|
|
3322
|
+
"0px 7px 15px 4px rgba(51, 48, 60, 0.03), 0px 12px 15px 2px rgba(51, 48, 60, 0.02), 0px 5px 12px 5px rgba(51, 48, 60, 0.01)",
|
|
3323
|
+
"0px 7px 16px 4px rgba(51, 48, 60, 0.03), 0px 13px 16px 2px rgba(51, 48, 60, 0.02), 0px 5px 13px 6px rgba(51, 48, 60, 0.01)",
|
|
3324
|
+
"0px 7px 17px 4px rgba(51, 48, 60, 0.03), 0px 14px 17px 2px rgba(51, 48, 60, 0.02), 0px 5px 14px 6px rgba(51, 48, 60, 0.01)",
|
|
3325
|
+
"0px 8px 18px 5px rgba(51, 48, 60, 0.03), 0px 15px 18px 2px rgba(51, 48, 60, 0.02), 0px 6px 15px 6px rgba(51, 48, 60, 0.01)",
|
|
3326
|
+
"0px 8px 19px 5px rgba(51, 48, 60, 0.03), 0px 16px 19px 2px rgba(51, 48, 60, 0.02), 0px 6px 16px 6px rgba(51, 48, 60, 0.01)",
|
|
3327
|
+
"0px 8px 20px 5px rgba(51, 48, 60, 0.03), 0px 17px 20px 2px rgba(51, 48, 60, 0.02), 0px 6px 17px 7px rgba(51, 48, 60, 0.01)",
|
|
3328
|
+
"0px 9px 21px 5px rgba(51, 48, 60, 0.03), 0px 18px 21px 2px rgba(51, 48, 60, 0.02), 0px 7px 18px 7px rgba(51, 48, 60, 0.01)",
|
|
3329
|
+
"0px 9px 22px 6px rgba(51, 48, 60, 0.03), 0px 19px 22px 2px rgba(51, 48, 60, 0.02), 0px 7px 19px 7px rgba(51, 48, 60, 0.01)",
|
|
3330
|
+
"0px 10px 23px 6px rgba(51, 48, 60, 0.03), 0px 20px 23px 3px rgba(51, 48, 60, 0.02), 0px 8px 20px 7px rgba(51, 48, 60, 0.01)",
|
|
3331
|
+
"0px 10px 24px 6px rgba(51, 48, 60, 0.03), 0px 21px 24px 3px rgba(51, 48, 60, 0.02), 0px 8px 21px 7px rgba(51, 48, 60, 0.01)",
|
|
3332
|
+
"0px 10px 25px 6px rgba(51, 48, 60, 0.03), 0px 22px 25px 3px rgba(51, 48, 60, 0.02), 0px 8px 22px 7px rgba(51, 48, 60, 0.01)",
|
|
3333
|
+
"0px 11px 26px 7px rgba(51, 48, 60, 0.03), 0px 23px 26px 3px rgba(51, 48, 60, 0.02), 0px 9px 23px 7px rgba(51, 48, 60, 0.01)",
|
|
3334
|
+
"0px 11px 27px 7px rgba(51, 48, 60, 0.03), 0px 24px 27px 3px rgba(51, 48, 60, 0.02), 0px 9px 24px 7px rgba(51, 48, 60, 0.01)"
|
|
3335
|
+
];
|
|
3336
|
+
} else {
|
|
3337
|
+
return [
|
|
3338
|
+
"none",
|
|
3339
|
+
"0px 2px 4px 1px rgba(12, 16, 27, 0.15), 0px 3px 4px 0px rgba(12, 16, 27, 0.1), 0px 1px 3px 2px rgba(12, 16, 27, 0.08)",
|
|
3340
|
+
"0px 3px 5px 2px rgba(12, 16, 27, 0.15), 0px 3px 5px 0px rgba(12, 16, 27, 0.1), 0px 1px 4px 2px rgba(12, 16, 27, 0.08)",
|
|
3341
|
+
"0px 3px 6px 2px rgba(12, 16, 27, 0.15), 0px 4px 6px 0px rgba(12, 16, 27, 0.1), 0px 1px 4px 2px rgba(12, 16, 27, 0.08)",
|
|
3342
|
+
"0px 2px 7px 1px rgba(12, 16, 27, 0.15), 0px 4px 7px 0px rgba(12, 16, 27, 0.1), 0px 1px 4px 2px rgba(12, 16, 27, 0.08)",
|
|
3343
|
+
"0px 3px 8px 1px rgba(12, 16, 27, 0.15), 0px 6px 8px 0px rgba(12, 16, 27, 0.1), 0px 1px 5px 4px rgba(12, 16, 27, 0.08)",
|
|
3344
|
+
"0px 3px 9px 1px rgba(12, 16, 27, 0.15), 0px 8px 9px 0px rgba(12, 16, 27, 0.1), 0px 1px 6px 4px rgba(12, 16, 27, 0.08)",
|
|
3345
|
+
"0px 4px 10px 2px rgba(12, 16, 27, 0.15), 0px 9px 10px 1px rgba(12, 16, 27, 0.1), 0px 2px 7px 4px rgba(12, 16, 27, 0.08)",
|
|
3346
|
+
"0px 5px 11px 3px rgba(12, 16, 27, 0.15), 0px 8px 11px 1px rgba(12, 16, 27, 0.1), 0px 3px 8px 4px rgba(12, 16, 27, 0.08)",
|
|
3347
|
+
"0px 5px 12px 3px rgba(12, 16, 27, 0.15), 0px 9px 12px 1px rgba(12, 16, 27, 0.1), 0px 3px 9px 5px rgba(12, 16, 27, 0.08)",
|
|
3348
|
+
"0px 6px 13px 3px rgba(12, 16, 27, 0.15), 0px 10px 13px 1px rgba(12, 16, 27, 0.1), 0px 4px 10px 5px rgba(12, 16, 27, 0.08)",
|
|
3349
|
+
"0px 6px 14px 4px rgba(12, 16, 27, 0.15), 0px 11px 14px 1px rgba(12, 16, 27, 0.1), 0px 4px 11px 5px rgba(12, 16, 27, 0.08)",
|
|
3350
|
+
"0px 7px 15px 4px rgba(12, 16, 27, 0.15), 0px 12px 15px 2px rgba(12, 16, 27, 0.1), 0px 5px 12px 5px rgba(12, 16, 27, 0.08)",
|
|
3351
|
+
"0px 7px 16px 4px rgba(12, 16, 27, 0.15), 0px 13px 16px 2px rgba(12, 16, 27, 0.1), 0px 5px 13px 6px rgba(12, 16, 27, 0.08)",
|
|
3352
|
+
"0px 7px 17px 4px rgba(12, 16, 27, 0.15), 0px 14px 17px 2px rgba(12, 16, 27, 0.1), 0px 5px 14px 6px rgba(12, 16, 27, 0.08)",
|
|
3353
|
+
"0px 8px 18px 5px rgba(12, 16, 27, 0.15), 0px 15px 18px 2px rgba(12, 16, 27, 0.1), 0px 6px 15px 6px rgba(12, 16, 27, 0.08)",
|
|
3354
|
+
"0px 8px 19px 5px rgba(12, 16, 27, 0.15), 0px 16px 19px 2px rgba(12, 16, 27, 0.1), 0px 6px 16px 6px rgba(12, 16, 27, 0.08)",
|
|
3355
|
+
"0px 8px 20px 5px rgba(12, 16, 27, 0.15), 0px 17px 20px 2px rgba(12, 16, 27, 0.1), 0px 6px 17px 7px rgba(12, 16, 27, 0.08)",
|
|
3356
|
+
"0px 9px 21px 5px rgba(12, 16, 27, 0.15), 0px 18px 21px 2px rgba(12, 16, 27, 0.1), 0px 7px 18px 7px rgba(12, 16, 27, 0.08)",
|
|
3357
|
+
"0px 9px 22px 6px rgba(12, 16, 27, 0.15), 0px 19px 22px 2px rgba(12, 16, 27, 0.1), 0px 7px 19px 7px rgba(12, 16, 27, 0.08)",
|
|
3358
|
+
"0px 10px 23px 6px rgba(12, 16, 27, 0.15), 0px 20px 23px 3px rgba(12, 16, 27, 0.1), 0px 8px 20px 7px rgba(12, 16, 27, 0.08)",
|
|
3359
|
+
"0px 10px 24px 6px rgba(12, 16, 27, 0.15), 0px 21px 24px 3px rgba(12, 16, 27, 0.1), 0px 8px 21px 7px rgba(12, 16, 27, 0.08)",
|
|
3360
|
+
"0px 10px 25px 6px rgba(12, 16, 27, 0.15), 0px 22px 25px 3px rgba(12, 16, 27, 0.1), 0px 8px 22px 7px rgba(12, 16, 27, 0.08)",
|
|
3361
|
+
"0px 11px 26px 7px rgba(12, 16, 27, 0.15), 0px 23px 26px 3px rgba(12, 16, 27, 0.1), 0px 9px 23px 7px rgba(12, 16, 27, 0.08)",
|
|
3362
|
+
"0px 11px 27px 7px rgba(12, 16, 27, 0.15), 0px 24px 27px 3px rgba(12, 16, 27, 0.1), 0px 9px 24px 7px rgba(12, 16, 27, 0.08)"
|
|
3363
|
+
];
|
|
3364
|
+
}
|
|
3365
|
+
};
|
|
3366
|
+
var shadows_default = Shadows;
|
|
3367
|
+
|
|
3368
|
+
// src/@core/theme/spacing/index.ts
|
|
3369
|
+
var spacing_default = {
|
|
3370
|
+
spacing: (factor) => `${0.25 * factor}rem`
|
|
3371
|
+
};
|
|
3372
|
+
|
|
3373
|
+
// src/@core/theme/typography/index.ts
|
|
3374
|
+
var typography2 = {
|
|
3375
|
+
fontFamily: [
|
|
3376
|
+
"Roboto",
|
|
3377
|
+
"Public Sans",
|
|
3378
|
+
"sans-serif",
|
|
3379
|
+
"-apple-system",
|
|
3380
|
+
"BlinkMacSystemFont",
|
|
3381
|
+
'"Segoe UI"',
|
|
3382
|
+
'"Helvetica Neue"',
|
|
3383
|
+
"Arial",
|
|
3384
|
+
"sans-serif",
|
|
3385
|
+
'"Apple Color Emoji"',
|
|
3386
|
+
'"Segoe UI Emoji"',
|
|
3387
|
+
'"Segoe UI Symbol"'
|
|
3388
|
+
].join(","),
|
|
3389
|
+
h1: {
|
|
3390
|
+
fontWeight: 500
|
|
3391
|
+
},
|
|
3392
|
+
h2: {
|
|
3393
|
+
fontWeight: 500
|
|
3394
|
+
},
|
|
3395
|
+
h3: {
|
|
3396
|
+
fontWeight: 500
|
|
3397
|
+
},
|
|
3398
|
+
h4: {
|
|
3399
|
+
fontWeight: 500
|
|
3400
|
+
},
|
|
3401
|
+
h5: {
|
|
3402
|
+
fontWeight: 500
|
|
3403
|
+
}
|
|
3404
|
+
};
|
|
3405
|
+
var typography_default2 = typography2;
|
|
3406
|
+
|
|
3407
|
+
// src/@core/theme/ThemeOptions.ts
|
|
3408
|
+
var themeOptions = (settings, overrideMode) => {
|
|
3409
|
+
const { mode, direction } = settings;
|
|
3410
|
+
const userThemeConfig = Object.assign({}, UserThemeOptions_default());
|
|
3411
|
+
const mergedThemeConfig = (0, import_utils.deepmerge)(
|
|
3412
|
+
{
|
|
3413
|
+
breakpoints: breakpoints_default(),
|
|
3414
|
+
direction,
|
|
3415
|
+
components: overrides_default(settings),
|
|
3416
|
+
palette: palette_default(mode, "default"),
|
|
3417
|
+
...spacing_default,
|
|
3418
|
+
shape: {
|
|
3419
|
+
borderRadius: 6
|
|
3420
|
+
},
|
|
3421
|
+
mixins: {
|
|
3422
|
+
toolbar: {
|
|
3423
|
+
minHeight: 64
|
|
3424
|
+
}
|
|
3425
|
+
},
|
|
3426
|
+
shadows: shadows_default(mode),
|
|
3427
|
+
typography: typography_default2
|
|
3428
|
+
},
|
|
3429
|
+
userThemeConfig
|
|
3430
|
+
);
|
|
3431
|
+
return (0, import_utils.deepmerge)(mergedThemeConfig, {
|
|
3432
|
+
palette: {
|
|
3433
|
+
primary: {
|
|
3434
|
+
...mergedThemeConfig.palette ? mergedThemeConfig.palette.primary : palette_default(mode, "default").primary
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
});
|
|
3438
|
+
};
|
|
3439
|
+
var ThemeOptions_default = themeOptions;
|
|
3440
|
+
|
|
3441
|
+
// src/@core/theme/globalStyles.ts
|
|
3442
|
+
var GlobalStyles = (theme) => {
|
|
3443
|
+
return {
|
|
3444
|
+
".demo-space-x > *": {
|
|
3445
|
+
marginTop: "1rem !important",
|
|
3446
|
+
marginRight: "1rem !important",
|
|
3447
|
+
'body[dir="rtl"] &': {
|
|
3448
|
+
marginRight: "0 !important",
|
|
3449
|
+
marginLeft: "1rem !important"
|
|
3450
|
+
}
|
|
3451
|
+
},
|
|
3452
|
+
".demo-space-y > *:not(:last-of-type)": {
|
|
3453
|
+
marginBottom: "1rem"
|
|
3454
|
+
},
|
|
3455
|
+
".MuiGrid-container.match-height .MuiCard-root": {
|
|
3456
|
+
height: "100%"
|
|
3457
|
+
},
|
|
3458
|
+
".ps__rail-y": {
|
|
3459
|
+
zIndex: 1,
|
|
3460
|
+
right: "0 !important",
|
|
3461
|
+
left: "auto !important",
|
|
3462
|
+
"&:hover, &:focus, &.ps--clicking": {
|
|
3463
|
+
backgroundColor: theme.palette.mode === "light" ? "#F1F0F5 !important" : "#393D55 !important"
|
|
3464
|
+
},
|
|
3465
|
+
"& .ps__thumb-y": {
|
|
3466
|
+
right: "3px !important",
|
|
3467
|
+
left: "auto !important",
|
|
3468
|
+
backgroundColor: theme.palette.mode === "light" ? "rgba(93, 89, 108, 0.2) !important" : "rgba(207, 211, 236, 0.3) !important"
|
|
3469
|
+
},
|
|
3470
|
+
".layout-vertical-nav &": {
|
|
3471
|
+
"& .ps__thumb-y": {
|
|
3472
|
+
width: 4
|
|
3473
|
+
},
|
|
3474
|
+
"&:hover, &:focus, &.ps--clicking": {
|
|
3475
|
+
backgroundColor: "transparent !important",
|
|
3476
|
+
"& .ps__thumb-y": {
|
|
3477
|
+
width: 6
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
},
|
|
3482
|
+
"#nprogress": {
|
|
3483
|
+
pointerEvents: "none",
|
|
3484
|
+
"& .bar": {
|
|
3485
|
+
left: 0,
|
|
3486
|
+
top: 0,
|
|
3487
|
+
height: 3,
|
|
3488
|
+
width: "100%",
|
|
3489
|
+
zIndex: 2e3,
|
|
3490
|
+
position: "fixed",
|
|
3491
|
+
backgroundColor: theme.palette.primary.main
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
};
|
|
3495
|
+
};
|
|
3496
|
+
var globalStyles_default = GlobalStyles;
|
|
3497
|
+
|
|
3498
|
+
// src/@core/theme/ThemeComponent.tsx
|
|
3499
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3500
|
+
var ThemeComponent = (props) => {
|
|
3501
|
+
const { settings, children } = props;
|
|
3502
|
+
let theme = (0, import_styles5.createTheme)(ThemeOptions_default(settings, "light"));
|
|
3503
|
+
if (themeConfig_default.responsiveFontSizes) {
|
|
3504
|
+
theme = (0, import_styles5.responsiveFontSizes)(theme);
|
|
3505
|
+
}
|
|
3506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_styles5.ThemeProvider, { theme, children: [
|
|
3507
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_CssBaseline.default, {}),
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_GlobalStyles.default, { styles: () => globalStyles_default(theme) }),
|
|
3509
|
+
children
|
|
3510
|
+
] });
|
|
3511
|
+
};
|
|
3512
|
+
var ThemeComponent_default = ThemeComponent;
|
|
3513
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3514
|
+
0 && (module.exports = {
|
|
3515
|
+
AddCommentInput,
|
|
3516
|
+
AdvancedFiltersDialog,
|
|
3517
|
+
ButtonWithIcon,
|
|
3518
|
+
FalconButton,
|
|
3519
|
+
FalconDIstrictFilter,
|
|
3520
|
+
FalconGrayButton,
|
|
3521
|
+
FalconMultiSelect,
|
|
3522
|
+
FalconPagination,
|
|
3523
|
+
FalconSelect,
|
|
3524
|
+
FalconSingleSwitch,
|
|
3525
|
+
FalconTable,
|
|
3526
|
+
FalconThemeProvider,
|
|
3527
|
+
FalconTicketColumsFilter,
|
|
3528
|
+
FalconTicketFilter,
|
|
3529
|
+
HeatMapChartLegend,
|
|
3530
|
+
ProgressBarNumber
|
|
3531
|
+
});
|
|
3532
|
+
//# sourceMappingURL=index.js.map
|