@bpfdev/oly-ui 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ __export(index_exports, {
42
42
  FalconSelect: () => FalconSelect,
43
43
  FalconSingleSwitch: () => FalconSingleSwitch,
44
44
  FalconTable: () => FalconTable,
45
- FalconThemeProvider: () => ThemeComponent_default,
45
+ FalconThemeProvider: () => FalconThemeProvider,
46
46
  FalconTicketColumsFilter: () => FalconTicketColumsFilter,
47
47
  FalconTicketFilter: () => FalconTicketFilter,
48
48
  HeatMapChartLegend: () => HeatMapChartLegend,
@@ -107,6 +107,7 @@ var import_react = require("@iconify/react");
107
107
  var import_material2 = require("@mui/material");
108
108
  var import_Autocomplete = __toESM(require("@mui/material/Autocomplete"));
109
109
  var import_Box = __toESM(require("@mui/material/Box"));
110
+ var import_ButtonBase = __toESM(require("@mui/material/ButtonBase"));
110
111
  var import_Checkbox = __toESM(require("@mui/material/Checkbox"));
111
112
  var import_ClickAwayListener = __toESM(require("@mui/material/ClickAwayListener"));
112
113
  var import_Popper = __toESM(require("@mui/material/Popper"));
@@ -114,86 +115,108 @@ var import_TextField = __toESM(require("@mui/material/TextField"));
114
115
  var import_styles = require("@mui/material/styles");
115
116
  var React = __toESM(require("react"));
116
117
  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]] : []
118
+ var import_react2 = require("react");
119
+ var FalconMultiSelect = ({
120
+ // core
121
+ label,
122
+ data,
123
+ setData,
124
+ list,
125
+ // trigger
126
+ triggerBg = "#EFEFEF",
127
+ triggerColor,
128
+ triggerMinWidth = 250,
129
+ triggerBorderRadius = "6px",
130
+ triggerSx,
131
+ // popper panel
132
+ popperWidth = 300,
133
+ popperBorderColor = "#e1e4e8",
134
+ popperBorderColorDark = "#30363d",
135
+ popperBg = "#fff",
136
+ popperBgDark = "#1c2128",
137
+ popperColor = "#24292e",
138
+ popperColorDark = "#c9d1d9",
139
+ // options
140
+ optionBorderColor = "#D6D6D6",
141
+ optionHeight = 60,
142
+ checkboxColor = "green",
143
+ checkboxCheckedColor = "#6750A4",
144
+ // search
145
+ searchLabel = "Search State",
146
+ searchIconColor = "#49454F",
147
+ // buttons
148
+ applyBg = "#333",
149
+ applyColor = "white",
150
+ applyLabel = "Apply",
151
+ clearColor = "black",
152
+ clearLabel = "Clear"
153
+ }) => {
154
+ const [checked, setChecked] = React.useState(
155
+ data ?? []
122
156
  );
157
+ const [anchorEl, setAnchorEl] = React.useState(null);
123
158
  const [pendingValue, setPendingValue] = React.useState([]);
124
- React.useEffect(() => {
125
- setChecked(data || []);
126
- }, [data]);
159
+ const open = Boolean(anchorEl);
160
+ const id = open ? "falcon-multiselect" : void 0;
127
161
  const handleClick = (event) => {
128
- setPendingValue(value);
162
+ setPendingValue(checked);
129
163
  setAnchorEl(event.currentTarget);
130
164
  };
131
- const OnSubmit = () => {
132
- if (checked.length > 0) {
133
- setData(checked);
134
- handleClose();
135
- } else {
136
- setData([]);
137
- handleClose();
138
- }
139
- };
140
165
  const handleClose = () => {
141
- setValue(pendingValue);
142
- if (anchorEl) {
143
- anchorEl.focus();
144
- }
166
+ if (anchorEl) anchorEl.focus();
145
167
  setAnchorEl(null);
146
168
  };
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
- }
169
+ const handleApply = () => {
170
+ setData(checked);
171
+ handleClose();
172
+ };
173
+ const handleClear = () => {
174
+ setChecked([]);
175
+ setData([]);
176
+ handleClose();
177
+ };
178
+ const handleToggle = (option) => {
179
+ setChecked((prev) => {
180
+ const exists = prev.some((x) => x.id === option.id);
181
+ return exists ? prev.filter((x) => x.id !== option.id) : [...prev, option];
182
+ });
164
183
  };
184
+ const triggerLabel = checked.length === 0 ? `Filter by ${label}` : checked.length === 1 ? checked[0].name : `${checked[0].name}, ${checked[1].name}${checked.length > 2 ? "\u2026" : ""}`;
165
185
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(React.Fragment, { children: [
166
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
167
- import_Box.default,
186
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
187
+ import_material2.Stack,
168
188
  {
169
- component: "form",
189
+ direction: "row",
190
+ alignItems: "center",
191
+ justifyContent: "space-between",
192
+ gap: 2,
193
+ onClick: handleClick,
170
194
  sx: {
171
- "& > :not(style)": { m: 1, width: "35ch" }
195
+ minWidth: triggerMinWidth,
196
+ background: triggerBg,
197
+ borderRadius: triggerBorderRadius,
198
+ cursor: "pointer",
199
+ padding: "12px",
200
+ ...triggerColor ? { color: triggerColor } : {},
201
+ ...triggerSx
172
202
  },
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
- )
203
+ children: [
204
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
205
+ import_material2.Typography,
206
+ {
207
+ variant: "body2",
208
+ sx: triggerColor ? { color: triggerColor } : void 0,
209
+ children: triggerLabel
210
+ }
211
+ ),
212
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
213
+ import_react.Icon,
214
+ {
215
+ icon: open ? "tabler:chevron-up" : "tabler:chevron-down",
216
+ color: triggerColor
217
+ }
218
+ )
219
+ ]
197
220
  }
198
221
  ),
199
222
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
@@ -202,132 +225,120 @@ var FalconMultiSelect = ({ label, data, setData, list }) => {
202
225
  id,
203
226
  open,
204
227
  anchorEl,
205
- placement: "bottom",
206
- sx: { width: "250px" },
228
+ placement: "bottom-start",
229
+ ownerState: {
230
+ popperWidth,
231
+ popperBorderColor,
232
+ popperBorderColorDark,
233
+ popperBg,
234
+ popperBgDark,
235
+ popperColor,
236
+ popperColorDark
237
+ },
207
238
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ClickAwayListener.default, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
208
239
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
209
240
  import_Autocomplete.default,
210
241
  {
211
242
  open: true,
212
243
  multiple: true,
213
- onClose: (event, reason) => {
214
- if (reason === "escape") {
215
- handleClose();
216
- }
244
+ onClose: (_, reason) => {
245
+ if (reason === "escape") handleClose();
217
246
  },
218
247
  value: pendingValue,
219
- renderTags: () => null,
248
+ onChange: (_, newValue) => setPendingValue(newValue),
220
249
  disableCloseOnSelect: true,
221
- PopperComponent,
250
+ slots: { popper: PopperComponent },
222
251
  noOptionsText: "No labels",
223
- renderOption: (props, option) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
252
+ options: list,
253
+ getOptionLabel: (option) => option.name,
254
+ isOptionEqualToValue: (option, val) => option.id === val.id,
255
+ renderOption: (props, option) => /* @__PURE__ */ (0, import_react2.createElement)(
224
256
  "li",
225
257
  {
226
258
  ...props,
259
+ key: option.id,
227
260
  style: {
261
+ height: optionHeight,
262
+ border: `1px solid ${optionBorderColor}`,
263
+ margin: "16px 12px",
264
+ flexShrink: 0,
265
+ borderRadius: 6,
228
266
  justifyContent: "space-between",
229
267
  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,
268
+ }
269
+ },
270
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
271
+ import_Box.default,
272
+ {
273
+ sx: {
274
+ flexGrow: 3,
275
+ borderRadius: "3px",
276
+ ml: 1,
277
+ mt: "1px",
278
+ justifyContent: "start",
279
+ alignItems: "center",
280
+ width: "80%",
281
+ fontSize: "13px"
282
+ },
283
+ children: option.name
284
+ }
285
+ ),
286
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
287
+ import_Box.default,
288
+ {
289
+ component: "span",
290
+ sx: {
291
+ flexShrink: 0,
292
+ borderRadius: "3px",
293
+ mr: 1,
294
+ mt: "2px",
295
+ flexGrow: 1,
296
+ justifyContent: "end",
297
+ width: "20%",
298
+ alignItems: "center"
299
+ },
300
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
301
+ import_Checkbox.default,
250
302
  {
251
- component: "span",
303
+ slotProps: { input: { "aria-label": option.name } },
304
+ checked: checked.some((x) => x.id === option.id),
305
+ onChange: () => handleToggle(option),
252
306
  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
- )
307
+ color: checkboxColor,
308
+ "&.Mui-checked": { color: checkboxCheckedColor }
309
+ }
277
310
  }
278
311
  )
279
- ]
280
- }
312
+ }
313
+ )
281
314
  ),
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
315
  renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
293
316
  import_Box.default,
294
317
  {
295
- component: "form",
296
318
  sx: {
297
- "& > :not(style)": {
298
- justifyContent: "center",
299
- width: "100%"
300
- }
319
+ position: "relative",
320
+ "& > :not(style)": { width: "100%" }
301
321
  },
302
- noValidate: true,
303
- autoComplete: "off",
304
322
  children: [
305
323
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
306
324
  import_TextField.default,
307
325
  {
308
- id: "filled-basic",
309
- label: "Search State",
326
+ label: searchLabel,
310
327
  variant: "filled",
311
328
  sx: {
312
329
  width: "100%",
313
330
  margin: "10px",
314
- "& MuiInputBase-root & MuiFilledInput-root": {
315
- width: "94%"
316
- },
317
- "& > :not(style)": {
318
- justifyContent: "center",
319
- width: "94%"
320
- }
331
+ "& > :not(style)": { width: "94%" }
321
332
  },
322
333
  ref: params.InputProps.ref,
323
- inputProps: params.inputProps
334
+ slotProps: { htmlInput: params.inputProps }
324
335
  }
325
336
  ),
326
337
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
327
338
  "svg",
328
339
  {
329
340
  xmlns: "http://www.w3.org/2000/svg",
330
- style: { position: "absolute", left: "90px", top: "30px" },
341
+ style: { position: "absolute", left: 110, top: 30 },
331
342
  width: "24",
332
343
  height: "24",
333
344
  viewBox: "0 0 24 24",
@@ -338,7 +349,7 @@ var FalconMultiSelect = ({ label, data, setData, list }) => {
338
349
  fillRule: "evenodd",
339
350
  clipRule: "evenodd",
340
351
  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"
352
+ fill: searchIconColor
342
353
  }
343
354
  )
344
355
  }
@@ -353,45 +364,36 @@ var FalconMultiSelect = ({ label, data, setData, list }) => {
353
364
  {
354
365
  sx: {
355
366
  display: "flex",
356
- flexDirection: "row",
357
- alignItems: "center",
358
- justifyContent: "space-between",
359
- padding: 2,
360
- gap: 2,
361
- width: "100%"
367
+ flexDirection: "column",
368
+ m: "8px",
369
+ height: 110
362
370
  },
363
371
  children: [
364
372
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
365
- import_material2.Button,
373
+ ActionButton,
366
374
  {
367
- onClick: () => OnSubmit(),
368
- variant: "contained",
369
- fullWidth: true,
375
+ onClick: handleApply,
370
376
  sx: {
371
- textTransform: "none",
372
- minWidth: 100,
373
- backgroundColor: "#7c3aed",
374
- "&:hover": {
375
- backgroundColor: "#6d28d9"
376
- },
377
- height: "40px"
377
+ height: "42px",
378
+ borderRadius: "3px",
379
+ background: applyBg,
380
+ margin: "5px 0 10px 0",
381
+ color: applyColor
378
382
  },
379
- children: "Apply"
383
+ children: applyLabel
380
384
  }
381
385
  ),
382
386
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
383
- import_material2.Button,
387
+ ActionButton,
384
388
  {
385
- onClick: () => {
386
- setChecked([]);
387
- setData([]);
388
- handleClose();
389
+ onClick: handleClear,
390
+ sx: {
391
+ height: "42px",
392
+ borderRadius: "3px",
393
+ mb: "8px",
394
+ color: clearColor
389
395
  },
390
- variant: "outlined",
391
- fullWidth: true,
392
- color: "inherit",
393
- sx: { textTransform: "none", minWidth: 100, height: "40px" },
394
- children: "Clear"
396
+ children: clearLabel
395
397
  }
396
398
  )
397
399
  ]
@@ -403,8 +405,6 @@ var FalconMultiSelect = ({ label, data, setData, list }) => {
403
405
  ] });
404
406
  };
405
407
  var StyledAutocompletePopper = (0, import_styles.styled)("div")(({ theme }) => ({
406
- width: 250,
407
- minWidth: 250,
408
408
  [`& .${import_Autocomplete.autocompleteClasses.paper}`]: {
409
409
  boxShadow: "none",
410
410
  color: "inherit",
@@ -413,38 +413,47 @@ var StyledAutocompletePopper = (0, import_styles.styled)("div")(({ theme }) => (
413
413
  [`& .${import_Autocomplete.autocompleteClasses.listbox}`]: {
414
414
  backgroundColor: theme.palette.mode === "light" ? "#fff" : "#1c2128",
415
415
  padding: 0,
416
- maxHeight: 280,
417
416
  [`& .${import_Autocomplete.autocompleteClasses.option}`]: {
418
417
  minHeight: "auto",
419
418
  alignItems: "flex-start",
420
419
  padding: 8,
421
420
  borderBottom: `1px solid ${theme.palette.mode === "light" ? "#eaecef" : "#30363d"}`,
422
- '&[aria-selected="true"]': {
423
- backgroundColor: "transparent"
424
- },
421
+ '&[aria-selected="true"]': { backgroundColor: "transparent" },
425
422
  [`&.${import_Autocomplete.autocompleteClasses.focused}, &.${import_Autocomplete.autocompleteClasses.focused}[aria-selected="true"]`]: {
426
423
  backgroundColor: theme.palette.action.hover
427
424
  }
428
425
  }
429
426
  },
430
- [`&.${import_Autocomplete.autocompleteClasses.popperDisablePortal}`]: {
431
- position: "relative"
432
- }
427
+ [`&.${import_Autocomplete.autocompleteClasses.popperDisablePortal}`]: { position: "relative" }
433
428
  }));
434
- function PopperComponent(props) {
435
- const { disablePortal, anchorEl, open, ...other } = props;
429
+ function PopperComponent({
430
+ disablePortal: _d,
431
+ anchorEl: _a,
432
+ open: _o,
433
+ ...other
434
+ }) {
436
435
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StyledAutocompletePopper, { ...other });
437
436
  }
438
- var StyledPopper = (0, import_styles.styled)(import_Popper.default)(({ theme }) => ({
439
- border: `1px solid ${theme.palette.mode === "light" ? "#e1e4e8" : "#30363d"}`,
437
+ var StyledPopper = (0, import_styles.styled)(import_Popper.default, {
438
+ shouldForwardProp: (prop) => prop !== "ownerState"
439
+ })(({ theme, ownerState }) => ({
440
+ border: `1px solid ${theme.palette.mode === "light" ? ownerState.popperBorderColor : ownerState.popperBorderColorDark}`,
440
441
  boxShadow: `0 8px 24px ${theme.palette.mode === "light" ? "rgba(149, 157, 165, 0.2)" : "rgb(1, 4, 9)"}`,
441
442
  borderRadius: 6,
442
- width: 250,
443
- minWidth: 250,
443
+ width: ownerState.popperWidth,
444
444
  zIndex: theme.zIndex.modal,
445
445
  fontSize: 13,
446
- color: theme.palette.mode === "light" ? "#24292e" : "#c9d1d9",
447
- backgroundColor: theme.palette.mode === "light" ? "#fff" : "#1c2128"
446
+ color: theme.palette.mode === "light" ? ownerState.popperColor : ownerState.popperColorDark,
447
+ backgroundColor: theme.palette.mode === "light" ? ownerState.popperBg : ownerState.popperBgDark
448
+ }));
449
+ var ActionButton = (0, import_styles.styled)(import_ButtonBase.default)(() => ({
450
+ fontSize: 13,
451
+ width: "100%",
452
+ textAlign: "left",
453
+ paddingBottom: 8,
454
+ fontWeight: 600,
455
+ "& span": { width: "100%" },
456
+ "& svg": { width: 16, height: 16 }
448
457
  }));
449
458
 
450
459
  // src/components/AdvancedFiltersDialog/AdvancedFiltersDialog.tsx
@@ -594,7 +603,7 @@ var import_material7 = require("@mui/material");
594
603
  var import_jsx_runtime7 = require("react/jsx-runtime");
595
604
  var FalconGrayButton = ({
596
605
  text,
597
- Icon: Icon4,
606
+ Icon: Icon2,
598
607
  onClick
599
608
  }) => {
600
609
  const theme = (0, import_material7.useTheme)();
@@ -610,7 +619,7 @@ var FalconGrayButton = ({
610
619
  onClick,
611
620
  role: onClick ? "button" : void 0,
612
621
  children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_material7.Stack, { direction: "row", justifyContent: "center", gap: 4, alignItems: "center", children: [
613
- Icon4,
622
+ Icon2,
614
623
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.Typography, { fontSize: 12, align: "center", fontWeight: "bold", children: text })
615
624
  ] })
616
625
  }
@@ -849,7 +858,7 @@ var FalconSingleSwitch = ({
849
858
  // src/components/FalconTable/FalconTable.tsx
850
859
  var import_material10 = require("@mui/material");
851
860
  var import_x_data_grid = require("@mui/x-data-grid");
852
- var import_react2 = require("react");
861
+ var import_react3 = require("react");
853
862
  var import_jsx_runtime11 = require("react/jsx-runtime");
854
863
  var FalconTable = ({
855
864
  rows,
@@ -857,7 +866,7 @@ var FalconTable = ({
857
866
  columns,
858
867
  pageSizeOptions = [7, 10, 25, 50]
859
868
  }) => {
860
- const [paginationModel, setPaginationModel] = (0, import_react2.useState)({
869
+ const [paginationModel, setPaginationModel] = (0, import_react3.useState)({
861
870
  page: 0,
862
871
  pageSize: 7
863
872
  });
@@ -916,7 +925,7 @@ var FalconTicketColumsFilter = ({
916
925
 
917
926
  // src/components/FalconTicketFilter/FalconTicketFilter.tsx
918
927
  var import_material12 = require("@mui/material");
919
- var import_react3 = require("react");
928
+ var import_react4 = require("react");
920
929
  var import_jsx_runtime13 = require("react/jsx-runtime");
921
930
  var FalconTicketFilter = ({
922
931
  children,
@@ -924,10 +933,10 @@ var FalconTicketFilter = ({
924
933
  open: controlledOpen,
925
934
  onOpenChange
926
935
  }) => {
927
- const [internalOpen, setInternalOpen] = (0, import_react3.useState)(false);
936
+ const [internalOpen, setInternalOpen] = (0, import_react4.useState)(false);
928
937
  const open = controlledOpen ?? internalOpen;
929
938
  const setOpen = onOpenChange ?? setInternalOpen;
930
- const [anchorEl, setAnchorEl] = (0, import_react3.useState)(null);
939
+ const [anchorEl, setAnchorEl] = (0, import_react4.useState)(null);
931
940
  const handleClick = (event) => {
932
941
  setAnchorEl(event.currentTarget);
933
942
  setOpen(true);
@@ -1171,2345 +1180,94 @@ var ProgressBarNumber = ({
1171
1180
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children: "Invalid Progress" });
1172
1181
  };
1173
1182
 
1174
- // src/@core/theme/ThemeComponent.tsx
1183
+ // src/components/FalconThemeProvider/FalconThemeProvider.tsx
1175
1184
  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 = () => {
1185
+ var import_styles3 = require("@mui/material/styles");
1186
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1187
+ var lightColor = "51, 48, 60";
1188
+ var darkColor = "228, 230, 244";
1189
+ var darkPaperBg = "#2F3349";
1190
+ function buildPalette(mode) {
1191
+ const mainColor = mode === "light" ? lightColor : darkColor;
1212
1192
  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
1193
+ mode,
1194
+ primary: {
1195
+ light: "rgba(103, 80, 164, 0.02)",
1196
+ main: "#d8c5f9",
1197
+ dark: "#8710D8",
1198
+ contrastText: "#FFF"
1309
1199
  },
1310
- typography: {
1311
- fontFamily:
1312
- '"Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
1200
+ secondary: {
1201
+ light: "#EFEFEF",
1202
+ main: "#1D192B",
1203
+ dark: "#949699",
1204
+ contrastText: "#FFF"
1313
1205
  },
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
- }
1206
+ error: {
1207
+ light: "#ED6F70",
1208
+ main: "#EA5455",
1209
+ dark: "#CE4A4B",
1210
+ contrastText: "#FFF"
1549
1211
  },
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
- }
1212
+ warning: {
1213
+ light: "#FFAB5A",
1214
+ main: "#FF9F43",
1215
+ dark: "#E08C3B",
1216
+ contrastText: "#FFF"
1574
1217
  },
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
- }
1218
+ info: {
1219
+ light: "#1FD5EB",
1220
+ main: "#00CFE8",
1221
+ dark: "#00B6CC",
1222
+ contrastText: "#FFF"
1680
1223
  },
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
- }
1224
+ success: {
1225
+ light: "#42CE80",
1226
+ main: "#28C76F",
1227
+ dark: "#23AF62",
1228
+ contrastText: "#FFF"
1712
1229
  },
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
- }
1230
+ text: {
1231
+ primary: `rgba(${mainColor}, 0.87)`,
1232
+ secondary: `rgba(${mainColor}, 0.6)`,
1233
+ disabled: `rgba(${mainColor}, 0.38)`
1740
1234
  },
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
- }
1235
+ divider: `rgba(${mainColor}, 0.12)`,
1236
+ background: {
1237
+ paper: mode === "light" ? "#F2EBFF" : darkPaperBg,
1238
+ default: mode === "light" ? "#F8F7FA" : "#25293C"
1753
1239
  },
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
- }
1240
+ action: {
1241
+ active: `rgba(${mainColor}, 0.54)`,
1242
+ hover: `rgba(${mainColor}, 0.04)`,
1243
+ selected: `rgba(${mainColor}, 0.08)`,
1244
+ disabled: `rgba(${mainColor}, 0.26)`,
1245
+ disabledBackground: `rgba(${mainColor}, 0.12)`,
1246
+ focus: `rgba(${mainColor}, 0.12)`
1776
1247
  }
1777
1248
  };
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(),
1249
+ }
1250
+ var FalconThemeProvider = ({
1251
+ children,
1252
+ mode: modeProp,
1253
+ settings
1254
+ }) => {
1255
+ const mode = settings?.mode ?? modeProp ?? "light";
1256
+ const direction = settings?.direction ?? "ltr";
1257
+ const theme = (0, import_styles3.responsiveFontSizes)(
1258
+ (0, import_styles3.createTheme)({
3414
1259
  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
1260
+ palette: buildPalette(mode),
1261
+ shape: { borderRadius: 6 },
1262
+ typography: { fontFamily: '"Inter", "Public Sans", sans-serif' },
1263
+ mixins: { toolbar: { minHeight: 64 } }
1264
+ })
3430
1265
  );
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) }),
1266
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_styles3.ThemeProvider, { theme, children: [
1267
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_CssBaseline.default, {}),
3509
1268
  children
3510
1269
  ] });
3511
1270
  };
3512
- var ThemeComponent_default = ThemeComponent;
3513
1271
  // Annotate the CommonJS export names for ESM import in node:
3514
1272
  0 && (module.exports = {
3515
1273
  AddCommentInput,