@omniviewdev/ui 0.1.10 → 0.1.11
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/AppTheme-BakZ7ezV.cjs +1 -0
- package/dist/AppTheme-wAxlNjgN.js +291 -0
- package/dist/Select-BqA47TdK.cjs +1 -0
- package/dist/Select-D61fKI8Y.js +276 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +1 -1
- package/dist/editors/index.d.ts +1 -1
- package/dist/editors/themes.d.ts +13 -0
- package/dist/editors.cjs +26 -26
- package/dist/editors.js +3860 -3791
- package/dist/inputs.cjs +1 -1
- package/dist/inputs.js +1 -1
- package/dist/theme/AppTheme.d.ts +11 -2
- package/dist/theme/customizations/dataDisplay.d.ts +11 -0
- package/dist/theme/customizations/feedback.d.ts +6 -0
- package/dist/theme/customizations/inputs.d.ts +7 -0
- package/dist/theme/customizations/navigation.d.ts +7 -0
- package/dist/theme/index.d.ts +10 -5
- package/dist/theme/registry/init.d.ts +1 -0
- package/dist/theme/registry/registry.d.ts +9 -0
- package/dist/theme/registry/types.d.ts +19 -0
- package/dist/theme/registry/variants/default/index.d.ts +2 -0
- package/dist/theme/registry/variants/solarized/index.d.ts +2 -0
- package/dist/theme/registry/variants/solarized/palettes.d.ts +147 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +1250 -1275
- package/dist/tokens.css +116 -0
- package/package.json +1 -1
- package/dist/Select-CnRBSc5w.cjs +0 -1
- package/dist/Select-DTUF31OP.js +0 -206
package/dist/theme.js
CHANGED
|
@@ -1,1362 +1,1337 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import { createTheme as L, alpha as e, lighten as S, darken as M } from "@mui/material/styles";
|
|
1
|
+
import { g as x, b as f, a as I, o as P, r as H, p as W, c as j, d as N, T as B } from "./AppTheme-wAxlNjgN.js";
|
|
2
|
+
import { A as Do, e as Ao, s as Io, t as Po, u as Ho } from "./AppTheme-wAxlNjgN.js";
|
|
3
|
+
import * as v from "react";
|
|
4
|
+
import { alpha as e, lighten as T, darken as E, createTheme as U } from "@mui/material/styles";
|
|
6
5
|
import { outlinedInputClasses as u } from "@mui/material/OutlinedInput";
|
|
7
|
-
import { toggleButtonGroupClasses as
|
|
8
|
-
import { toggleButtonClasses as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
300: "#8B9BB5",
|
|
40
|
-
// --ov-scale-gray-10
|
|
41
|
-
400: "#6B7D96",
|
|
42
|
-
// --ov-scale-gray-9
|
|
43
|
-
500: "#3E4F66",
|
|
44
|
-
// --ov-scale-gray-8
|
|
45
|
-
600: "#2D3D52",
|
|
46
|
-
// --ov-scale-gray-6
|
|
47
|
-
700: "#1F2937",
|
|
48
|
-
// --ov-scale-gray-4
|
|
49
|
-
800: "#151B23",
|
|
50
|
-
// --ov-scale-gray-2
|
|
51
|
-
900: "#0D1117"
|
|
52
|
-
// --ov-scale-gray-0
|
|
53
|
-
}, d = {
|
|
54
|
-
50: "hsl(120, 80%, 98%)",
|
|
55
|
-
100: "hsl(120, 75%, 94%)",
|
|
56
|
-
200: "hsl(120, 75%, 87%)",
|
|
57
|
-
300: "hsl(120, 61%, 77%)",
|
|
58
|
-
400: "hsl(120, 44%, 53%)",
|
|
59
|
-
500: "hsl(120, 59%, 30%)",
|
|
60
|
-
600: "hsl(120, 70%, 25%)",
|
|
61
|
-
700: "hsl(120, 75%, 16%)",
|
|
62
|
-
800: "hsl(120, 84%, 10%)",
|
|
63
|
-
900: "hsl(120, 87%, 6%)"
|
|
64
|
-
}, s = {
|
|
65
|
-
50: "hsl(45, 100%, 97%)",
|
|
66
|
-
100: "hsl(45, 92%, 90%)",
|
|
67
|
-
200: "hsl(45, 94%, 80%)",
|
|
68
|
-
300: "hsl(45, 90%, 65%)",
|
|
69
|
-
400: "hsl(45, 90%, 40%)",
|
|
70
|
-
500: "hsl(45, 90%, 35%)",
|
|
71
|
-
600: "hsl(45, 91%, 25%)",
|
|
72
|
-
700: "hsl(45, 94%, 20%)",
|
|
73
|
-
800: "hsl(45, 95%, 16%)",
|
|
74
|
-
900: "hsl(45, 93%, 12%)"
|
|
75
|
-
}, p = {
|
|
76
|
-
50: "hsl(0, 100%, 97%)",
|
|
77
|
-
100: "hsl(0, 92%, 90%)",
|
|
78
|
-
200: "hsl(0, 94%, 80%)",
|
|
79
|
-
300: "hsl(0, 90%, 65%)",
|
|
80
|
-
400: "hsl(0, 90%, 40%)",
|
|
81
|
-
500: "hsl(0, 90%, 30%)",
|
|
82
|
-
600: "hsl(0, 91%, 25%)",
|
|
83
|
-
700: "hsl(0, 94%, 18%)",
|
|
84
|
-
800: "hsl(0, 95%, 12%)",
|
|
85
|
-
900: "hsl(0, 93%, 6%)"
|
|
86
|
-
}, n = {
|
|
87
|
-
50: "hsl(270, 100%, 97%)",
|
|
88
|
-
100: "hsl(270, 92%, 90%)",
|
|
89
|
-
200: "hsl(270, 80%, 80%)",
|
|
90
|
-
300: "hsl(270, 70%, 65%)",
|
|
91
|
-
400: "hsl(270, 70%, 50%)",
|
|
92
|
-
500: "hsl(270, 70%, 42%)",
|
|
93
|
-
600: "hsl(270, 70%, 35%)",
|
|
94
|
-
700: "hsl(270, 75%, 25%)",
|
|
95
|
-
800: "hsl(270, 80%, 16%)",
|
|
96
|
-
900: "hsl(270, 85%, 10%)"
|
|
97
|
-
}, R = (o) => ({
|
|
98
|
-
palette: {
|
|
99
|
-
mode: o,
|
|
100
|
-
primary: {
|
|
101
|
-
light: t[200],
|
|
102
|
-
main: t[400],
|
|
103
|
-
dark: t[700],
|
|
104
|
-
contrastText: t[50],
|
|
105
|
-
...o === "dark" && {
|
|
106
|
-
contrastText: t[50],
|
|
107
|
-
light: t[300],
|
|
108
|
-
main: t[400],
|
|
109
|
-
dark: t[700]
|
|
6
|
+
import { toggleButtonGroupClasses as F } from "@mui/material/ToggleButtonGroup";
|
|
7
|
+
import { toggleButtonClasses as D } from "@mui/material/ToggleButton";
|
|
8
|
+
import X from "@mui/icons-material/CheckBoxOutlineBlankRounded";
|
|
9
|
+
import q from "@mui/icons-material/CheckRounded";
|
|
10
|
+
import J from "@mui/icons-material/RemoveRounded";
|
|
11
|
+
import { jsx as K } from "react/jsx-runtime";
|
|
12
|
+
import { buttonBaseClasses as $ } from "@mui/material/ButtonBase";
|
|
13
|
+
import { dividerClasses as Q } from "@mui/material/Divider";
|
|
14
|
+
import { menuItemClasses as S } from "@mui/material/MenuItem";
|
|
15
|
+
import { tabClasses as A } from "@mui/material/Tab";
|
|
16
|
+
import Y from "@mui/icons-material/UnfoldMoreRounded";
|
|
17
|
+
import { svgIconClasses as m } from "@mui/material/SvgIcon";
|
|
18
|
+
import { typographyClasses as Z } from "@mui/material/Typography";
|
|
19
|
+
import { chipClasses as n } from "@mui/material/Chip";
|
|
20
|
+
import { iconButtonClasses as _ } from "@mui/material/IconButton";
|
|
21
|
+
function w(i) {
|
|
22
|
+
const o = i?.gray ?? x, a = i?.brand ?? f;
|
|
23
|
+
return {
|
|
24
|
+
MuiButtonBase: {
|
|
25
|
+
defaultProps: {
|
|
26
|
+
disableTouchRipple: !0,
|
|
27
|
+
disableRipple: !0
|
|
28
|
+
},
|
|
29
|
+
styleOverrides: {
|
|
30
|
+
root: ({ theme: r }) => ({
|
|
31
|
+
boxSizing: "border-box",
|
|
32
|
+
transition: "color 80ms cubic-bezier(0.33,1,0.68,1), background-color 80ms cubic-bezier(0.33,1,0.68,1), border-color 80ms cubic-bezier(0.33,1,0.68,1), box-shadow 80ms cubic-bezier(0.33,1,0.68,1)",
|
|
33
|
+
"&:focus-visible": {
|
|
34
|
+
outline: `3px solid ${e(r.palette.primary.main, 0.5)}`,
|
|
35
|
+
outlineOffset: "2px"
|
|
36
|
+
}
|
|
37
|
+
})
|
|
110
38
|
}
|
|
111
39
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
40
|
+
MuiButton: {
|
|
41
|
+
defaultProps: {
|
|
42
|
+
disableElevation: !0
|
|
43
|
+
},
|
|
44
|
+
styleOverrides: {
|
|
45
|
+
root: ({ theme: r }) => {
|
|
46
|
+
const d = [
|
|
47
|
+
["primary", r.palette.primary],
|
|
48
|
+
["secondary", r.palette.secondary],
|
|
49
|
+
["success", r.palette.success],
|
|
50
|
+
["warning", r.palette.warning],
|
|
51
|
+
["error", r.palette.error],
|
|
52
|
+
["info", r.palette.info]
|
|
53
|
+
], p = d.map(([b, l]) => ({
|
|
54
|
+
props: { color: b, variant: "contained" },
|
|
55
|
+
style: {
|
|
56
|
+
backgroundColor: l.main,
|
|
57
|
+
color: l.contrastText || "#fff",
|
|
58
|
+
"&:hover": {
|
|
59
|
+
backgroundColor: E(l.main, 0.12)
|
|
60
|
+
},
|
|
61
|
+
"&:active": {
|
|
62
|
+
backgroundColor: E(l.main, 0.2)
|
|
63
|
+
},
|
|
64
|
+
...r.applyStyles("dark", {
|
|
65
|
+
backgroundColor: l.main,
|
|
66
|
+
color: l.contrastText || "#fff",
|
|
67
|
+
"&:hover": {
|
|
68
|
+
backgroundColor: T(l.main, 0.12)
|
|
69
|
+
},
|
|
70
|
+
"&:active": {
|
|
71
|
+
backgroundColor: T(l.main, 0.04)
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
}
|
|
75
|
+
})), c = d.map(([b, l]) => ({
|
|
76
|
+
props: { color: b, variant: "outlined" },
|
|
77
|
+
style: {
|
|
78
|
+
color: l.main,
|
|
79
|
+
borderColor: e(l.main, 0.5),
|
|
80
|
+
backgroundColor: "transparent",
|
|
81
|
+
"&:hover": { backgroundColor: e(l.main, 0.06), borderColor: l.main },
|
|
82
|
+
"&:active": { backgroundColor: e(l.main, 0.12) },
|
|
83
|
+
...r.applyStyles("dark", {
|
|
84
|
+
color: l.light,
|
|
85
|
+
borderColor: e(l.light, 0.4),
|
|
86
|
+
"&:hover": { backgroundColor: e(l.main, 0.12), borderColor: l.light },
|
|
87
|
+
"&:active": { backgroundColor: e(l.main, 0.2) }
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
})), t = d.map(([b, l]) => ({
|
|
91
|
+
props: { color: b, variant: "text" },
|
|
92
|
+
style: {
|
|
93
|
+
color: l.main,
|
|
94
|
+
"&:hover": { backgroundColor: e(l.main, 0.06) },
|
|
95
|
+
"&:active": { backgroundColor: e(l.main, 0.12) },
|
|
96
|
+
...r.applyStyles("dark", {
|
|
97
|
+
color: l.light,
|
|
98
|
+
"&:hover": { backgroundColor: e(l.main, 0.12) },
|
|
99
|
+
"&:active": { backgroundColor: e(l.main, 0.2) }
|
|
100
|
+
})
|
|
101
|
+
}
|
|
102
|
+
})), V = d.map(([b, l]) => ({
|
|
103
|
+
props: { color: b, variant: "soft" },
|
|
104
|
+
style: {
|
|
105
|
+
color: l.main,
|
|
106
|
+
backgroundColor: e(l.main, 0.1),
|
|
107
|
+
"&:hover": { backgroundColor: e(l.main, 0.18) },
|
|
108
|
+
"&:active": { backgroundColor: e(l.main, 0.26) },
|
|
109
|
+
...r.applyStyles("dark", {
|
|
110
|
+
color: l.light,
|
|
111
|
+
backgroundColor: e(l.main, 0.15),
|
|
112
|
+
"&:hover": { backgroundColor: e(l.main, 0.25) },
|
|
113
|
+
"&:active": { backgroundColor: e(l.main, 0.32) }
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
})), G = d.map(([b, l]) => ({
|
|
117
|
+
props: { color: b, variant: "link" },
|
|
118
|
+
style: {
|
|
119
|
+
color: l.main,
|
|
120
|
+
...r.applyStyles("dark", { color: l.light })
|
|
121
|
+
}
|
|
122
|
+
}));
|
|
123
|
+
return {
|
|
124
|
+
boxShadow: "none",
|
|
125
|
+
borderRadius: r.shape.borderRadius,
|
|
126
|
+
textTransform: "none",
|
|
127
|
+
whiteSpace: "nowrap",
|
|
128
|
+
// GitHub Primer-style fast, smooth transition on bg-color
|
|
129
|
+
transition: "color 80ms cubic-bezier(0.33,1,0.68,1), background-color 80ms cubic-bezier(0.33,1,0.68,1), border-color 80ms cubic-bezier(0.33,1,0.68,1), box-shadow 80ms cubic-bezier(0.33,1,0.68,1)",
|
|
130
|
+
variants: [
|
|
131
|
+
// === Sizes ===
|
|
132
|
+
{ props: { size: "small" }, style: { minHeight: "2rem", padding: "6px 12px" } },
|
|
133
|
+
{ props: { size: "medium" }, style: { minHeight: "2.25rem", padding: "8px 16px" } },
|
|
134
|
+
{ props: { size: "large" }, style: { minHeight: "2.75rem", padding: "10px 20px" } },
|
|
135
|
+
{ props: { size: "xs" }, style: { minHeight: "1.5rem", padding: "2px 8px", fontSize: "0.6875rem" } },
|
|
136
|
+
{ props: { size: "xl" }, style: { minHeight: "3.25rem", padding: "12px 24px", fontSize: "1rem" } },
|
|
137
|
+
// === Contained: flat solid ===
|
|
138
|
+
// Default/neutral: gray solid
|
|
139
|
+
{
|
|
140
|
+
props: { variant: "contained" },
|
|
141
|
+
style: {
|
|
142
|
+
boxShadow: "none",
|
|
143
|
+
"&:hover": { boxShadow: "none" }
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
...p,
|
|
147
|
+
// === Outlined: default/neutral gets gray ===
|
|
148
|
+
{
|
|
149
|
+
props: { variant: "outlined" },
|
|
150
|
+
style: {
|
|
151
|
+
color: o[700],
|
|
152
|
+
border: "1px solid",
|
|
153
|
+
borderColor: o[200],
|
|
154
|
+
backgroundColor: e(o[50], 0.3),
|
|
155
|
+
"&:hover": { backgroundColor: o[100], borderColor: o[300] },
|
|
156
|
+
"&:active": { backgroundColor: o[200] },
|
|
157
|
+
...r.applyStyles("dark", {
|
|
158
|
+
color: o[200],
|
|
159
|
+
backgroundColor: e(o[800], 0.3),
|
|
160
|
+
borderColor: o[600],
|
|
161
|
+
"&:hover": { backgroundColor: e(o[700], 0.5), borderColor: o[500] },
|
|
162
|
+
"&:active": { backgroundColor: o[700] }
|
|
163
|
+
})
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
...c,
|
|
167
|
+
// === Text (ghost): default/neutral gets gray ===
|
|
168
|
+
{
|
|
169
|
+
props: { variant: "text" },
|
|
170
|
+
style: {
|
|
171
|
+
color: o[600],
|
|
172
|
+
"&:hover": { backgroundColor: e(o[500], 0.08) },
|
|
173
|
+
"&:active": { backgroundColor: e(o[500], 0.16) },
|
|
174
|
+
...r.applyStyles("dark", {
|
|
175
|
+
color: o[300],
|
|
176
|
+
"&:hover": { backgroundColor: e(o[500], 0.12) },
|
|
177
|
+
"&:active": { backgroundColor: e(o[500], 0.2) }
|
|
178
|
+
})
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
...t,
|
|
182
|
+
// === Soft (custom): default/neutral gets gray ===
|
|
183
|
+
{
|
|
184
|
+
props: { variant: "soft" },
|
|
185
|
+
style: {
|
|
186
|
+
color: o[700],
|
|
187
|
+
backgroundColor: e(o[500], 0.08),
|
|
188
|
+
"&:hover": { backgroundColor: e(o[500], 0.16) },
|
|
189
|
+
"&:active": { backgroundColor: e(o[500], 0.24) },
|
|
190
|
+
...r.applyStyles("dark", {
|
|
191
|
+
color: o[200],
|
|
192
|
+
backgroundColor: e(o[500], 0.12),
|
|
193
|
+
"&:hover": { backgroundColor: e(o[500], 0.2) },
|
|
194
|
+
"&:active": { backgroundColor: e(o[500], 0.28) }
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
...V,
|
|
199
|
+
// === Link (custom): base ===
|
|
200
|
+
{
|
|
201
|
+
props: { variant: "link" },
|
|
202
|
+
style: {
|
|
203
|
+
color: o[600],
|
|
204
|
+
backgroundColor: "transparent",
|
|
205
|
+
padding: "0 4px",
|
|
206
|
+
minWidth: "auto",
|
|
207
|
+
textDecoration: "none",
|
|
208
|
+
"&:hover": {
|
|
209
|
+
backgroundColor: "transparent",
|
|
210
|
+
textDecoration: "underline"
|
|
211
|
+
},
|
|
212
|
+
...r.applyStyles("dark", {
|
|
213
|
+
color: o[300]
|
|
214
|
+
})
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
...G
|
|
218
|
+
]
|
|
219
|
+
};
|
|
220
|
+
}
|
|
122
221
|
}
|
|
123
222
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
223
|
+
MuiIconButton: {
|
|
224
|
+
styleOverrides: {
|
|
225
|
+
root: ({ theme: r }) => ({
|
|
226
|
+
boxSizing: "border-box",
|
|
227
|
+
borderRadius: r.shape.borderRadius,
|
|
228
|
+
color: o[600],
|
|
229
|
+
"&:hover": { backgroundColor: e(o[500], 0.1) },
|
|
230
|
+
...r.applyStyles("dark", {
|
|
231
|
+
color: o[300],
|
|
232
|
+
"&:hover": { backgroundColor: e(o[500], 0.2) }
|
|
233
|
+
}),
|
|
234
|
+
variants: [
|
|
235
|
+
{ props: { size: "small" }, style: { width: "2rem", height: "2rem", padding: "0.25rem" } },
|
|
236
|
+
{ props: { size: "medium" }, style: { width: "2.5rem", height: "2.5rem" } },
|
|
237
|
+
{
|
|
238
|
+
props: { color: "primary" },
|
|
239
|
+
style: {
|
|
240
|
+
color: a[600],
|
|
241
|
+
"&:hover": { backgroundColor: e(a[500], 0.1) },
|
|
242
|
+
...r.applyStyles("dark", {
|
|
243
|
+
color: a[300],
|
|
244
|
+
"&:hover": { backgroundColor: e(a[500], 0.2) }
|
|
245
|
+
})
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
})
|
|
132
250
|
}
|
|
133
251
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
252
|
+
MuiToggleButtonGroup: {
|
|
253
|
+
styleOverrides: {
|
|
254
|
+
root: ({ theme: r }) => ({
|
|
255
|
+
borderRadius: r.shape.borderRadius,
|
|
256
|
+
backgroundColor: o[100],
|
|
257
|
+
border: `1px solid ${o[200]}`,
|
|
258
|
+
boxShadow: "none",
|
|
259
|
+
[`& .${F.grouped}`]: {
|
|
260
|
+
border: "none",
|
|
261
|
+
"&:not(:first-of-type)": { marginLeft: 0, borderLeft: "1px solid", borderLeftColor: o[300] }
|
|
262
|
+
},
|
|
263
|
+
...r.applyStyles("dark", {
|
|
264
|
+
backgroundColor: e(o[800], 0.5),
|
|
265
|
+
border: `1px solid ${o[700]}`,
|
|
266
|
+
[`& .${F.grouped}`]: {
|
|
267
|
+
"&:not(:first-of-type)": { borderLeftColor: o[700] }
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
})
|
|
142
271
|
}
|
|
143
272
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
273
|
+
MuiToggleButton: {
|
|
274
|
+
styleOverrides: {
|
|
275
|
+
root: ({ theme: r }) => ({
|
|
276
|
+
padding: "8px 16px",
|
|
277
|
+
fontWeight: 500,
|
|
278
|
+
color: o[600],
|
|
279
|
+
textTransform: "none",
|
|
280
|
+
border: "none",
|
|
281
|
+
borderRadius: r.shape.borderRadius,
|
|
282
|
+
"&:hover": { backgroundColor: e(o[500], 0.1) },
|
|
283
|
+
[`&.${D.selected}`]: {
|
|
284
|
+
color: a[600],
|
|
285
|
+
backgroundColor: e(a[500], 0.1),
|
|
286
|
+
"&:hover": { backgroundColor: e(a[500], 0.15) }
|
|
287
|
+
},
|
|
288
|
+
...r.applyStyles("dark", {
|
|
289
|
+
color: o[400],
|
|
290
|
+
"&:hover": { backgroundColor: e(o[500], 0.15) },
|
|
291
|
+
[`&.${D.selected}`]: {
|
|
292
|
+
color: a[300],
|
|
293
|
+
backgroundColor: e(a[500], 0.2),
|
|
294
|
+
"&:hover": { backgroundColor: e(a[500], 0.25) }
|
|
295
|
+
}
|
|
296
|
+
})
|
|
297
|
+
})
|
|
152
298
|
}
|
|
153
299
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
300
|
+
MuiCheckbox: {
|
|
301
|
+
defaultProps: {
|
|
302
|
+
disableRipple: !0,
|
|
303
|
+
icon: v.createElement(X, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
304
|
+
checkedIcon: v.createElement(q, { sx: { height: 14, width: 14 } }),
|
|
305
|
+
indeterminateIcon: v.createElement(J, { sx: { height: 14, width: 14 } })
|
|
306
|
+
},
|
|
307
|
+
styleOverrides: {
|
|
308
|
+
root: ({ theme: r }) => ({
|
|
309
|
+
margin: 10,
|
|
310
|
+
height: 16,
|
|
311
|
+
width: 16,
|
|
312
|
+
borderRadius: 5,
|
|
313
|
+
border: "1px solid",
|
|
314
|
+
borderColor: e(o[300], 0.8),
|
|
315
|
+
boxShadow: "0 0 0 1.5px hsla(210, 0%, 0%, 0.04) inset",
|
|
316
|
+
backgroundColor: e(o[100], 0.4),
|
|
317
|
+
transition: "border-color, background-color, 120ms ease-in",
|
|
318
|
+
"&:hover": { borderColor: a[300] },
|
|
319
|
+
"&.Mui-checked": {
|
|
320
|
+
color: "white",
|
|
321
|
+
backgroundColor: a[500],
|
|
322
|
+
borderColor: a[500],
|
|
323
|
+
boxShadow: "none",
|
|
324
|
+
"&:hover": { backgroundColor: a[600] }
|
|
325
|
+
},
|
|
326
|
+
...r.applyStyles("dark", {
|
|
327
|
+
borderColor: e(o[700], 0.8),
|
|
328
|
+
boxShadow: "0 0 0 1.5px hsl(210, 0%, 0%) inset",
|
|
329
|
+
backgroundColor: e(o[900], 0.8),
|
|
330
|
+
"&:hover": { borderColor: a[300] }
|
|
331
|
+
})
|
|
332
|
+
})
|
|
163
333
|
}
|
|
164
334
|
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
335
|
+
MuiSelect: {
|
|
336
|
+
styleOverrides: {
|
|
337
|
+
select: {
|
|
338
|
+
// Prevent chips from wrapping to multiple lines.
|
|
339
|
+
display: "flex",
|
|
340
|
+
alignItems: "center",
|
|
341
|
+
overflow: "hidden",
|
|
342
|
+
"& > .MuiBox-root": {
|
|
343
|
+
flexWrap: "nowrap",
|
|
344
|
+
overflow: "hidden"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
178
348
|
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
349
|
+
MuiAutocomplete: {
|
|
350
|
+
styleOverrides: {
|
|
351
|
+
inputRoot: {
|
|
352
|
+
// Prevent the tag container from wrapping and keep fixed height.
|
|
353
|
+
flexWrap: "nowrap !important",
|
|
354
|
+
overflow: "hidden"
|
|
355
|
+
},
|
|
356
|
+
tag: {
|
|
357
|
+
// Constrain chip tags to match the input line-height.
|
|
358
|
+
maxHeight: 20
|
|
359
|
+
}
|
|
360
|
+
}
|
|
183
361
|
},
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
h1: { fontSize: c.typography.pxToRem(48), fontWeight: 600, lineHeight: 1.2, letterSpacing: -0.5 },
|
|
197
|
-
h2: { fontSize: c.typography.pxToRem(36), fontWeight: 600, lineHeight: 1.2 },
|
|
198
|
-
h3: { fontSize: c.typography.pxToRem(30), fontWeight: 600, lineHeight: 1.2 },
|
|
199
|
-
h4: { fontSize: c.typography.pxToRem(24), fontWeight: 600, lineHeight: 1.5 },
|
|
200
|
-
h5: { fontSize: c.typography.pxToRem(20), fontWeight: 600 },
|
|
201
|
-
h6: { fontSize: c.typography.pxToRem(18), fontWeight: 600 },
|
|
202
|
-
subtitle1: { fontSize: c.typography.pxToRem(18) },
|
|
203
|
-
subtitle2: { fontSize: c.typography.pxToRem(14), fontWeight: 500 },
|
|
204
|
-
body1: { fontSize: c.typography.pxToRem(14) },
|
|
205
|
-
body2: { fontSize: c.typography.pxToRem(14), fontWeight: 400 },
|
|
206
|
-
caption: { fontSize: c.typography.pxToRem(12), fontWeight: 400 },
|
|
207
|
-
button: { textTransform: "none", fontWeight: 600 },
|
|
208
|
-
overline: {
|
|
209
|
-
fontSize: c.typography.pxToRem(12),
|
|
210
|
-
fontWeight: 600,
|
|
211
|
-
textTransform: "uppercase",
|
|
212
|
-
letterSpacing: "0.08em"
|
|
213
|
-
}
|
|
214
|
-
}, q = { borderRadius: 8 }, J = (o) => {
|
|
215
|
-
const i = o === "dark" ? "0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25)" : "0 4px 12px rgba(31, 35, 40, 0.12), 0 2px 4px rgba(31, 35, 40, 0.08)", b = [...c.shadows];
|
|
216
|
-
return b[1] = i, b;
|
|
217
|
-
}, K = {
|
|
218
|
-
MuiButtonBase: {
|
|
219
|
-
defaultProps: {
|
|
220
|
-
disableTouchRipple: !0,
|
|
221
|
-
disableRipple: !0
|
|
362
|
+
MuiFormControl: {
|
|
363
|
+
styleOverrides: {
|
|
364
|
+
root: () => ({
|
|
365
|
+
// Input height token — read by OutlinedInput (height) and
|
|
366
|
+
// InputLabel (vertical centering). Our wrapper components
|
|
367
|
+
// override this for the full xs/sm/md/lg/xl range.
|
|
368
|
+
"--ov-input-height": "2.75rem",
|
|
369
|
+
variants: [
|
|
370
|
+
{ props: { size: "small" }, style: { "--ov-input-height": "2.25rem" } }
|
|
371
|
+
]
|
|
372
|
+
})
|
|
373
|
+
}
|
|
222
374
|
},
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
375
|
+
MuiInputLabel: {
|
|
376
|
+
styleOverrides: {
|
|
377
|
+
root: {
|
|
378
|
+
// Shrunk (floating) label — centered on the top border
|
|
379
|
+
"&.MuiInputLabel-shrink": {
|
|
380
|
+
transform: "translate(14px, -6px) scale(0.75)"
|
|
381
|
+
},
|
|
382
|
+
// Non-shrunk label — auto-center vertically using calc().
|
|
383
|
+
// 1.4375em = the label's line-height (unitless 1.4375 × font-size),
|
|
384
|
+
// expressed in em so it auto-adapts to both small and medium labels.
|
|
385
|
+
"&.MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
|
|
386
|
+
transform: "translate(14px, calc((var(--ov-input-height) - 1.4375em) / 2)) scale(1)"
|
|
387
|
+
}
|
|
230
388
|
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
MuiInputBase: {
|
|
392
|
+
defaultProps: {
|
|
393
|
+
autoCapitalize: "off",
|
|
394
|
+
autoCorrect: "off",
|
|
395
|
+
spellCheck: !1
|
|
396
|
+
},
|
|
397
|
+
styleOverrides: {
|
|
398
|
+
root: ({ theme: r }) => ({
|
|
399
|
+
border: "none",
|
|
400
|
+
...r.applyStyles("dark", { "&.Mui-disabled": { color: o[600] } })
|
|
401
|
+
}),
|
|
402
|
+
input: ({ theme: r }) => ({
|
|
403
|
+
// Disable WebKit auto-capitalize / auto-correct text transformations
|
|
404
|
+
textTransform: "none",
|
|
405
|
+
WebkitTextSecurity: "none",
|
|
406
|
+
"&::placeholder": { opacity: 0.7, color: o[500] },
|
|
407
|
+
...r.applyStyles("dark", { "&::placeholder": { color: o[500] } })
|
|
408
|
+
})
|
|
409
|
+
}
|
|
237
410
|
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
411
|
+
MuiOutlinedInput: {
|
|
412
|
+
styleOverrides: {
|
|
413
|
+
input: { padding: "10px 14px" },
|
|
414
|
+
inputMultiline: { padding: 0 },
|
|
415
|
+
root: ({ theme: r }) => ({
|
|
416
|
+
borderRadius: r.shape.borderRadius,
|
|
417
|
+
backgroundColor: o[50],
|
|
418
|
+
transition: "background-color 120ms ease-in",
|
|
419
|
+
// Fixed height from the --ov-input-height CSS variable
|
|
420
|
+
// (set on the parent FormControl). Multiline inputs use
|
|
421
|
+
// minHeight so they can grow.
|
|
422
|
+
"&:not(.MuiInputBase-multiline)": {
|
|
423
|
+
boxSizing: "border-box",
|
|
424
|
+
height: "var(--ov-input-height)"
|
|
425
|
+
},
|
|
426
|
+
"&.MuiInputBase-multiline": {
|
|
427
|
+
padding: "10px 14px",
|
|
428
|
+
minHeight: "var(--ov-input-height)"
|
|
429
|
+
},
|
|
430
|
+
"&:hover": {
|
|
431
|
+
backgroundColor: o[100],
|
|
432
|
+
[`& .${u.notchedOutline}`]: { borderColor: o[400] }
|
|
433
|
+
},
|
|
434
|
+
[`&.${u.focused}`]: {
|
|
435
|
+
[`& .${u.notchedOutline}`]: { borderColor: a[500], borderWidth: 2 }
|
|
436
|
+
},
|
|
437
|
+
[`&.${u.disabled}`]: {
|
|
438
|
+
backgroundColor: o[100],
|
|
439
|
+
[`& .${u.notchedOutline}`]: { borderColor: o[200] }
|
|
440
|
+
},
|
|
441
|
+
...r.applyStyles("dark", {
|
|
442
|
+
backgroundColor: e(o[800], 0.8),
|
|
252
443
|
"&:hover": {
|
|
253
|
-
backgroundColor:
|
|
444
|
+
backgroundColor: e(o[800], 0.9),
|
|
445
|
+
[`& .${u.notchedOutline}`]: { borderColor: o[500] }
|
|
254
446
|
},
|
|
255
|
-
|
|
256
|
-
backgroundColor:
|
|
447
|
+
[`&.${u.focused}`]: {
|
|
448
|
+
backgroundColor: e(o[800], 0.9),
|
|
449
|
+
[`& .${u.notchedOutline}`]: { borderColor: a[400] }
|
|
257
450
|
},
|
|
258
|
-
|
|
259
|
-
backgroundColor:
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
style
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
451
|
+
[`&.${u.disabled}`]: {
|
|
452
|
+
backgroundColor: e(o[900], 0.6),
|
|
453
|
+
[`& .${u.notchedOutline}`]: { borderColor: o[800] }
|
|
454
|
+
}
|
|
455
|
+
})
|
|
456
|
+
}),
|
|
457
|
+
notchedOutline: ({ theme: r }) => ({
|
|
458
|
+
borderColor: o[300],
|
|
459
|
+
transition: "border-color 120ms ease-in",
|
|
460
|
+
...r.applyStyles("dark", { borderColor: o[700] })
|
|
461
|
+
})
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
MuiInputAdornment: {
|
|
465
|
+
styleOverrides: {
|
|
466
|
+
root: ({ theme: r }) => ({
|
|
467
|
+
color: r.palette.grey[500],
|
|
468
|
+
...r.applyStyles("dark", { color: r.palette.grey[400] })
|
|
469
|
+
})
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
MuiSwitch: {
|
|
473
|
+
styleOverrides: {
|
|
474
|
+
// Track: 44×24 pill (shadcn/Radix proportions).
|
|
475
|
+
root: { width: 44, height: 24, padding: 0 },
|
|
476
|
+
switchBase: ({ theme: r }) => ({
|
|
477
|
+
padding: 0,
|
|
478
|
+
margin: 2,
|
|
479
|
+
// Radix-style snappy thumb slide.
|
|
480
|
+
transitionDuration: "140ms",
|
|
481
|
+
transitionTimingFunction: "cubic-bezier(0.45, 0.05, 0.55, 0.95)",
|
|
482
|
+
transitionProperty: "transform",
|
|
483
|
+
"&.Mui-checked": {
|
|
484
|
+
// translateX = trackWidth - thumbDiameter - 2*margin = 44 - 20 - 4 = 20
|
|
485
|
+
transform: "translateX(20px)",
|
|
486
|
+
color: "#fff",
|
|
487
|
+
"& + .MuiSwitch-track": {
|
|
488
|
+
backgroundColor: a[500],
|
|
489
|
+
opacity: 1,
|
|
490
|
+
border: 0
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"&.Mui-focusVisible + .MuiSwitch-track": {
|
|
494
|
+
outline: `2px solid ${e(a[500], 0.5)}`,
|
|
495
|
+
outlineOffset: 2
|
|
496
|
+
},
|
|
497
|
+
"&.Mui-disabled + .MuiSwitch-track": { opacity: 0.4 },
|
|
498
|
+
"&.Mui-disabled .MuiSwitch-thumb": { opacity: 0.7 },
|
|
499
|
+
...r.applyStyles("dark", {
|
|
500
|
+
"&.Mui-checked": {
|
|
501
|
+
"& + .MuiSwitch-track": { backgroundColor: a[400] }
|
|
502
|
+
}
|
|
503
|
+
})
|
|
504
|
+
}),
|
|
505
|
+
// Thumb: 20px circle with layered shadow for depth (key polish factor).
|
|
506
|
+
thumb: {
|
|
507
|
+
boxSizing: "border-box",
|
|
508
|
+
width: 20,
|
|
509
|
+
height: 20,
|
|
510
|
+
boxShadow: "0 0 0 1px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.08)"
|
|
511
|
+
},
|
|
512
|
+
// Track: full pill with fast color transition.
|
|
513
|
+
track: ({ theme: r }) => ({
|
|
514
|
+
borderRadius: 9999,
|
|
515
|
+
backgroundColor: o[300],
|
|
516
|
+
opacity: 1,
|
|
517
|
+
transition: "background-color 120ms linear",
|
|
518
|
+
...r.applyStyles("dark", { backgroundColor: o[600] })
|
|
519
|
+
})
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
const Mo = w();
|
|
525
|
+
function O(i) {
|
|
526
|
+
const o = i?.gray ?? x, a = i?.brand ?? f;
|
|
527
|
+
return {
|
|
528
|
+
MuiMenuItem: {
|
|
529
|
+
styleOverrides: {
|
|
530
|
+
root: ({ theme: r }) => ({
|
|
531
|
+
borderRadius: r.shape.borderRadius,
|
|
532
|
+
padding: "6px 8px",
|
|
533
|
+
[`&.${S.focusVisible}`]: { backgroundColor: "transparent" },
|
|
534
|
+
[`&.${S.selected}`]: {
|
|
535
|
+
[`&.${S.focusVisible}`]: {
|
|
536
|
+
backgroundColor: e(r.palette.action.selected, 0.3)
|
|
537
|
+
}
|
|
295
538
|
}
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
539
|
+
})
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
MuiMenu: {
|
|
543
|
+
styleOverrides: {
|
|
544
|
+
list: {
|
|
545
|
+
gap: "0px",
|
|
546
|
+
padding: "4px",
|
|
547
|
+
[`&.${Q.root}`]: { margin: "0 -8px" }
|
|
548
|
+
},
|
|
549
|
+
paper: ({ theme: r }) => ({
|
|
550
|
+
marginTop: "4px",
|
|
551
|
+
borderRadius: r.shape.borderRadius,
|
|
552
|
+
border: `1px solid ${r.palette.divider}`,
|
|
553
|
+
backgroundImage: "none",
|
|
554
|
+
background: o[50],
|
|
555
|
+
boxShadow: "hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px",
|
|
556
|
+
[`& .${$.root}`]: {
|
|
557
|
+
"&.Mui-selected": { backgroundColor: e(r.palette.action.selected, 0.3) }
|
|
558
|
+
},
|
|
559
|
+
...r.applyStyles("dark", {
|
|
560
|
+
background: o[900],
|
|
561
|
+
boxShadow: "hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"
|
|
562
|
+
})
|
|
563
|
+
})
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
MuiSelect: {
|
|
567
|
+
defaultProps: {
|
|
568
|
+
IconComponent: v.forwardRef((r, d) => /* @__PURE__ */ K(Y, { fontSize: "small", ...r, ref: d }))
|
|
569
|
+
},
|
|
570
|
+
styleOverrides: {
|
|
571
|
+
select: { display: "flex", alignItems: "center" }
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
MuiLink: {
|
|
575
|
+
defaultProps: { underline: "none" },
|
|
576
|
+
styleOverrides: {
|
|
577
|
+
root: ({ theme: r }) => ({
|
|
578
|
+
color: o[800],
|
|
579
|
+
fontWeight: 500,
|
|
580
|
+
position: "relative",
|
|
581
|
+
textDecoration: "none",
|
|
582
|
+
width: "fit-content",
|
|
583
|
+
"&::before": {
|
|
584
|
+
content: '""',
|
|
585
|
+
position: "absolute",
|
|
586
|
+
width: "100%",
|
|
587
|
+
height: "1px",
|
|
588
|
+
bottom: 0,
|
|
589
|
+
left: 0,
|
|
590
|
+
backgroundColor: o[600],
|
|
591
|
+
opacity: 0.3,
|
|
592
|
+
transition: "width 0.3s ease, opacity 0.3s ease"
|
|
593
|
+
},
|
|
594
|
+
"&:hover::before": { width: 0 },
|
|
595
|
+
"&:focus-visible": {
|
|
596
|
+
outline: `3px solid ${e(a[500], 0.5)}`,
|
|
597
|
+
outlineOffset: "4px",
|
|
598
|
+
borderRadius: "2px"
|
|
599
|
+
},
|
|
600
|
+
...r.applyStyles("dark", {
|
|
601
|
+
color: o[100],
|
|
602
|
+
"&::before": { backgroundColor: o[400] }
|
|
603
|
+
})
|
|
604
|
+
})
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
MuiDrawer: {
|
|
608
|
+
styleOverrides: {
|
|
609
|
+
paper: ({ theme: r }) => ({ backgroundColor: r.palette.background.default })
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
MuiListItemButton: {
|
|
613
|
+
styleOverrides: {
|
|
614
|
+
root: ({ theme: r }) => ({
|
|
615
|
+
borderRadius: r.shape.borderRadius,
|
|
616
|
+
padding: "8px 12px",
|
|
617
|
+
gap: 12,
|
|
618
|
+
border: "1px solid transparent",
|
|
619
|
+
transition: "all 100ms ease-in",
|
|
620
|
+
"&:hover": { backgroundColor: e(o[500], 0.08) },
|
|
621
|
+
"&.Mui-selected": {
|
|
622
|
+
backgroundColor: e(a[500], 0.08),
|
|
623
|
+
border: `1px solid ${e(a[500], 0.2)}`,
|
|
624
|
+
"&:hover": { backgroundColor: e(a[500], 0.12) }
|
|
625
|
+
},
|
|
626
|
+
...r.applyStyles("dark", {
|
|
627
|
+
"&:hover": { backgroundColor: e(o[500], 0.12) },
|
|
628
|
+
"&.Mui-selected": {
|
|
629
|
+
backgroundColor: e(a[400], 0.12),
|
|
630
|
+
border: `1px solid ${e(a[400], 0.25)}`,
|
|
631
|
+
"&:hover": { backgroundColor: e(a[400], 0.16) }
|
|
632
|
+
}
|
|
633
|
+
})
|
|
634
|
+
})
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
MuiTabs: {
|
|
638
|
+
styleOverrides: {
|
|
639
|
+
root: { minHeight: "fit-content" },
|
|
640
|
+
indicator: ({ theme: r }) => ({
|
|
641
|
+
backgroundColor: r.palette.grey[800],
|
|
642
|
+
...r.applyStyles("dark", { backgroundColor: r.palette.grey[200] })
|
|
643
|
+
})
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
MuiTab: {
|
|
647
|
+
styleOverrides: {
|
|
648
|
+
root: ({ theme: r }) => ({
|
|
649
|
+
padding: "6px 8px",
|
|
650
|
+
marginBottom: "8px",
|
|
651
|
+
textTransform: "none",
|
|
652
|
+
minWidth: "fit-content",
|
|
653
|
+
minHeight: "fit-content",
|
|
654
|
+
color: o[600],
|
|
655
|
+
borderRadius: r.shape.borderRadius,
|
|
656
|
+
border: "1px solid transparent",
|
|
657
|
+
":hover": { color: o[800], backgroundColor: o[100], borderColor: o[200] },
|
|
658
|
+
[`&.${A.selected}`]: { color: o[900] },
|
|
659
|
+
...r.applyStyles("dark", {
|
|
660
|
+
color: o[400],
|
|
661
|
+
":hover": { color: o[100], backgroundColor: o[800], borderColor: o[700] },
|
|
662
|
+
[`&.${A.selected}`]: { color: "#fff" }
|
|
663
|
+
})
|
|
664
|
+
})
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
const wo = O();
|
|
670
|
+
function z(i) {
|
|
671
|
+
const o = i?.gray ?? x;
|
|
672
|
+
return {
|
|
673
|
+
MuiAlert: {
|
|
674
|
+
styleOverrides: {
|
|
675
|
+
root: {}
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
MuiDialog: {
|
|
679
|
+
styleOverrides: {
|
|
680
|
+
root: ({ theme: a }) => ({
|
|
681
|
+
"& .MuiDialog-paper": {
|
|
682
|
+
borderRadius: "10px",
|
|
683
|
+
border: "1px solid",
|
|
684
|
+
borderColor: a.palette.divider,
|
|
685
|
+
backgroundColor: o[50],
|
|
686
|
+
...a.applyStyles("dark", {
|
|
687
|
+
backgroundColor: o[900],
|
|
688
|
+
borderColor: e(o[700], 0.6)
|
|
308
689
|
})
|
|
309
690
|
}
|
|
310
|
-
})
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
691
|
+
})
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
MuiPopover: {
|
|
695
|
+
styleOverrides: {
|
|
696
|
+
paper: ({ theme: a }) => ({
|
|
697
|
+
borderRadius: "10px",
|
|
698
|
+
border: "1px solid",
|
|
699
|
+
borderColor: a.palette.divider,
|
|
700
|
+
backgroundImage: "none",
|
|
701
|
+
backgroundColor: o[50],
|
|
702
|
+
boxShadow: "0 4px 20px rgba(0, 0, 0, 0.08)",
|
|
703
|
+
...a.applyStyles("dark", {
|
|
704
|
+
backgroundColor: o[900],
|
|
705
|
+
borderColor: e(o[700], 0.6),
|
|
706
|
+
boxShadow: "0 4px 20px rgba(0, 0, 0, 0.5)"
|
|
707
|
+
})
|
|
708
|
+
})
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
MuiLinearProgress: {
|
|
712
|
+
styleOverrides: {
|
|
713
|
+
root: ({ theme: a }) => ({
|
|
714
|
+
height: 8,
|
|
715
|
+
borderRadius: 8,
|
|
716
|
+
backgroundColor: o[200],
|
|
717
|
+
...a.applyStyles("dark", { backgroundColor: o[800] })
|
|
718
|
+
})
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
const Oo = z();
|
|
724
|
+
function R(i) {
|
|
725
|
+
const o = i?.gray ?? x, a = i?.brand ?? f, r = i?.green ?? I, d = i?.orange ?? P, p = i?.red ?? H, c = i?.purple ?? W;
|
|
726
|
+
return {
|
|
727
|
+
MuiList: {
|
|
728
|
+
styleOverrides: {
|
|
729
|
+
root: { padding: "8px", display: "flex", flexDirection: "column", gap: 0 }
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
MuiListItem: {
|
|
733
|
+
styleOverrides: {
|
|
734
|
+
root: ({ theme: t }) => ({
|
|
735
|
+
[`& > .${m.root}`]: { width: "1rem", height: "1rem", color: o[600] },
|
|
736
|
+
[`& .${Z.root}`]: { fontWeight: 500 },
|
|
737
|
+
[`& .${$.root}`]: {
|
|
738
|
+
display: "flex",
|
|
739
|
+
gap: 8,
|
|
740
|
+
padding: "2px 8px",
|
|
741
|
+
borderRadius: t.shape.borderRadius,
|
|
742
|
+
opacity: 0.7,
|
|
743
|
+
"&.Mui-selected": {
|
|
744
|
+
opacity: 1,
|
|
745
|
+
backgroundColor: e(o[200], 0.6),
|
|
746
|
+
[`& .${m.root}`]: { color: o[800] },
|
|
747
|
+
"&:hover": { backgroundColor: e(o[200], 0.8) }
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
...t.applyStyles("dark", {
|
|
751
|
+
[`& > .${m.root}`]: { color: o[400] },
|
|
752
|
+
[`& .${$.root}`]: {
|
|
753
|
+
"&.Mui-selected": {
|
|
754
|
+
backgroundColor: e(o[600], 0.3),
|
|
755
|
+
[`& .${m.root}`]: { color: o[100] },
|
|
756
|
+
"&:hover": { backgroundColor: e(o[600], 0.5) }
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
})
|
|
760
|
+
})
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
MuiListItemText: {
|
|
764
|
+
styleOverrides: {
|
|
765
|
+
primary: ({ theme: t }) => ({
|
|
766
|
+
fontSize: t.typography.body2.fontSize,
|
|
767
|
+
fontWeight: 500,
|
|
768
|
+
lineHeight: t.typography.body2.lineHeight
|
|
769
|
+
}),
|
|
770
|
+
secondary: ({ theme: t }) => ({
|
|
771
|
+
fontSize: t.typography.caption.fontSize,
|
|
772
|
+
lineHeight: t.typography.caption.lineHeight
|
|
773
|
+
})
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
MuiListSubheader: {
|
|
777
|
+
styleOverrides: {
|
|
778
|
+
root: ({ theme: t }) => ({
|
|
779
|
+
backgroundColor: "transparent",
|
|
780
|
+
padding: "4px 8px",
|
|
781
|
+
fontSize: t.typography.caption.fontSize,
|
|
782
|
+
fontWeight: 500,
|
|
783
|
+
lineHeight: t.typography.caption.lineHeight
|
|
784
|
+
})
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
MuiListItemIcon: {
|
|
788
|
+
styleOverrides: { root: { minWidth: 0 } }
|
|
789
|
+
},
|
|
790
|
+
MuiCard: {
|
|
791
|
+
defaultProps: { elevation: 0 },
|
|
792
|
+
styleOverrides: {
|
|
793
|
+
root: ({ theme: t }) => ({
|
|
794
|
+
display: "flex",
|
|
795
|
+
flexDirection: "column",
|
|
796
|
+
padding: 16,
|
|
797
|
+
gap: 16,
|
|
798
|
+
overflow: "visible",
|
|
799
|
+
transition: "all 150ms ease-in-out",
|
|
800
|
+
backgroundColor: o[50],
|
|
801
|
+
borderRadius: t.shape.borderRadius,
|
|
802
|
+
border: `1px solid ${t.palette.divider}`,
|
|
318
803
|
boxShadow: "none",
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
804
|
+
"&:hover": {
|
|
805
|
+
borderColor: o[300],
|
|
806
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.08)"
|
|
807
|
+
},
|
|
808
|
+
...t.applyStyles("dark", {
|
|
809
|
+
backgroundColor: o[800],
|
|
810
|
+
"&:hover": {
|
|
811
|
+
borderColor: o[600],
|
|
812
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.3)"
|
|
813
|
+
}
|
|
814
|
+
}),
|
|
324
815
|
variants: [
|
|
325
|
-
// === Sizes ===
|
|
326
|
-
{ props: { size: "small" }, style: { minHeight: "2rem", padding: "6px 12px" } },
|
|
327
|
-
{ props: { size: "medium" }, style: { minHeight: "2.25rem", padding: "8px 16px" } },
|
|
328
|
-
{ props: { size: "large" }, style: { minHeight: "2.75rem", padding: "10px 20px" } },
|
|
329
|
-
{ props: { size: "xs" }, style: { minHeight: "1.5rem", padding: "2px 8px", fontSize: "0.6875rem" } },
|
|
330
|
-
{ props: { size: "xl" }, style: { minHeight: "3.25rem", padding: "12px 24px", fontSize: "1rem" } },
|
|
331
|
-
// === Contained: flat solid ===
|
|
332
|
-
// Default/neutral: gray solid
|
|
333
816
|
{
|
|
334
|
-
props: { variant: "
|
|
817
|
+
props: { variant: "outlined" },
|
|
335
818
|
style: {
|
|
819
|
+
border: `1px solid ${t.palette.divider}`,
|
|
336
820
|
boxShadow: "none",
|
|
337
|
-
|
|
821
|
+
background: o[50],
|
|
822
|
+
"&:hover": {
|
|
823
|
+
borderColor: o[300],
|
|
824
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.08)"
|
|
825
|
+
},
|
|
826
|
+
...t.applyStyles("dark", {
|
|
827
|
+
background: e(o[900], 0.4),
|
|
828
|
+
"&:hover": {
|
|
829
|
+
borderColor: o[600],
|
|
830
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.3)"
|
|
831
|
+
}
|
|
832
|
+
})
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
})
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
MuiCardContent: {
|
|
840
|
+
styleOverrides: { root: { padding: 0, "&:last-child": { paddingBottom: 0 } } }
|
|
841
|
+
},
|
|
842
|
+
MuiCardHeader: {
|
|
843
|
+
styleOverrides: { root: { padding: 0 } }
|
|
844
|
+
},
|
|
845
|
+
MuiCardActions: {
|
|
846
|
+
styleOverrides: { root: { padding: 0 } }
|
|
847
|
+
},
|
|
848
|
+
MuiPaper: {
|
|
849
|
+
defaultProps: { elevation: 0 },
|
|
850
|
+
styleOverrides: {
|
|
851
|
+
root: ({ theme: t }) => ({
|
|
852
|
+
backgroundImage: "none",
|
|
853
|
+
...t.applyStyles("dark", { backgroundColor: o[800] })
|
|
854
|
+
})
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
MuiChip: {
|
|
858
|
+
defaultProps: { size: "small" },
|
|
859
|
+
styleOverrides: {
|
|
860
|
+
root: ({ theme: t }) => ({
|
|
861
|
+
border: "1px solid",
|
|
862
|
+
borderRadius: 6,
|
|
863
|
+
[`& .${n.label}`]: { fontWeight: 600 },
|
|
864
|
+
variants: [
|
|
865
|
+
{
|
|
866
|
+
props: { color: "default" },
|
|
867
|
+
style: {
|
|
868
|
+
borderColor: o[200],
|
|
869
|
+
backgroundColor: o[100],
|
|
870
|
+
[`& .${n.label}`]: { color: o[500] },
|
|
871
|
+
[`& .${n.icon}`]: { color: o[500] },
|
|
872
|
+
[`& .${n.deleteIcon}`]: { color: o[400], "&:hover": { color: o[600] } },
|
|
873
|
+
...t.applyStyles("dark", {
|
|
874
|
+
borderColor: o[600],
|
|
875
|
+
backgroundColor: e(o[600], 0.3),
|
|
876
|
+
[`& .${n.label}`]: { color: o[200] },
|
|
877
|
+
[`& .${n.icon}`]: { color: o[200] },
|
|
878
|
+
[`& .${n.deleteIcon}`]: { color: o[400], "&:hover": { color: o[200] } }
|
|
879
|
+
})
|
|
338
880
|
}
|
|
339
881
|
},
|
|
340
|
-
...b,
|
|
341
|
-
// === Outlined: default/neutral gets gray ===
|
|
342
882
|
{
|
|
343
|
-
props: {
|
|
883
|
+
props: { color: "success" },
|
|
344
884
|
style: {
|
|
345
|
-
color: r[700],
|
|
346
|
-
border: "1px solid",
|
|
347
885
|
borderColor: r[200],
|
|
348
|
-
backgroundColor:
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
...
|
|
352
|
-
|
|
353
|
-
backgroundColor:
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
886
|
+
backgroundColor: r[50],
|
|
887
|
+
[`& .${n.label}`]: { color: r[500] },
|
|
888
|
+
[`& .${n.icon}`]: { color: r[500] },
|
|
889
|
+
...t.applyStyles("dark", {
|
|
890
|
+
borderColor: r[800],
|
|
891
|
+
backgroundColor: r[900],
|
|
892
|
+
[`& .${n.label}`]: { color: r[200] },
|
|
893
|
+
[`& .${n.icon}`]: { color: r[200] }
|
|
894
|
+
})
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
props: { color: "error" },
|
|
899
|
+
style: {
|
|
900
|
+
borderColor: p[100],
|
|
901
|
+
backgroundColor: p[50],
|
|
902
|
+
[`& .${n.label}`]: { color: p[500] },
|
|
903
|
+
[`& .${n.icon}`]: { color: p[500] },
|
|
904
|
+
...t.applyStyles("dark", {
|
|
905
|
+
borderColor: p[800],
|
|
906
|
+
backgroundColor: p[900],
|
|
907
|
+
[`& .${n.label}`]: { color: p[100] },
|
|
908
|
+
[`& .${n.icon}`]: { color: p[100] }
|
|
909
|
+
})
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
props: { color: "warning" },
|
|
914
|
+
style: {
|
|
915
|
+
borderColor: d[200],
|
|
916
|
+
backgroundColor: d[50],
|
|
917
|
+
[`& .${n.label}`]: { color: d[500] },
|
|
918
|
+
[`& .${n.icon}`]: { color: d[500] },
|
|
919
|
+
...t.applyStyles("dark", {
|
|
920
|
+
borderColor: d[800],
|
|
921
|
+
backgroundColor: d[900],
|
|
922
|
+
[`& .${n.label}`]: { color: d[200] },
|
|
923
|
+
[`& .${n.icon}`]: { color: d[200] }
|
|
357
924
|
})
|
|
358
925
|
}
|
|
359
926
|
},
|
|
360
|
-
...h,
|
|
361
|
-
// === Text (ghost): default/neutral gets gray ===
|
|
362
927
|
{
|
|
363
|
-
props: {
|
|
928
|
+
props: { color: "primary" },
|
|
364
929
|
style: {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
930
|
+
borderColor: a[200],
|
|
931
|
+
backgroundColor: a[50],
|
|
932
|
+
[`& .${n.label}`]: { color: a[500] },
|
|
933
|
+
[`& .${n.icon}`]: { color: a[500] },
|
|
934
|
+
...t.applyStyles("dark", {
|
|
935
|
+
borderColor: a[800],
|
|
936
|
+
backgroundColor: a[900],
|
|
937
|
+
[`& .${n.label}`]: { color: a[100] },
|
|
938
|
+
[`& .${n.icon}`]: { color: a[100] }
|
|
372
939
|
})
|
|
373
940
|
}
|
|
374
941
|
},
|
|
375
|
-
...y,
|
|
376
|
-
// === Soft (custom): default/neutral gets gray ===
|
|
377
942
|
{
|
|
378
|
-
props: {
|
|
943
|
+
props: { color: "secondary" },
|
|
379
944
|
style: {
|
|
380
|
-
|
|
381
|
-
backgroundColor:
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
...
|
|
385
|
-
|
|
386
|
-
backgroundColor:
|
|
387
|
-
|
|
388
|
-
|
|
945
|
+
borderColor: c[200],
|
|
946
|
+
backgroundColor: c[50],
|
|
947
|
+
[`& .${n.label}`]: { color: c[500] },
|
|
948
|
+
[`& .${n.icon}`]: { color: c[500] },
|
|
949
|
+
...t.applyStyles("dark", {
|
|
950
|
+
borderColor: c[700],
|
|
951
|
+
backgroundColor: c[900],
|
|
952
|
+
[`& .${n.label}`]: { color: c[100] },
|
|
953
|
+
[`& .${n.icon}`]: { color: c[100] }
|
|
389
954
|
})
|
|
390
955
|
}
|
|
391
956
|
},
|
|
392
|
-
...z,
|
|
393
|
-
// === Link (custom): base ===
|
|
394
957
|
{
|
|
395
|
-
props: { variant: "
|
|
958
|
+
props: { variant: "outlined", color: "default" },
|
|
396
959
|
style: {
|
|
397
|
-
color: r[600],
|
|
398
960
|
backgroundColor: "transparent",
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
"&:hover": {
|
|
961
|
+
borderColor: o[300],
|
|
962
|
+
[`& .${n.label}`]: { color: o[500] },
|
|
963
|
+
...t.applyStyles("dark", {
|
|
403
964
|
backgroundColor: "transparent",
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
...o.applyStyles("dark", {
|
|
407
|
-
color: r[300]
|
|
965
|
+
borderColor: o[500],
|
|
966
|
+
[`& .${n.label}`]: { color: o[200] }
|
|
408
967
|
})
|
|
409
968
|
}
|
|
410
969
|
},
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
"&:hover": { backgroundColor: e(r[500], 0.2) }
|
|
427
|
-
}),
|
|
428
|
-
variants: [
|
|
429
|
-
{ props: { size: "small" }, style: { width: "2rem", height: "2rem", padding: "0.25rem" } },
|
|
430
|
-
{ props: { size: "medium" }, style: { width: "2.5rem", height: "2.5rem" } },
|
|
431
|
-
{
|
|
432
|
-
props: { color: "primary" },
|
|
433
|
-
style: {
|
|
434
|
-
color: t[600],
|
|
435
|
-
"&:hover": { backgroundColor: e(t[500], 0.1) },
|
|
436
|
-
...o.applyStyles("dark", {
|
|
437
|
-
color: t[300],
|
|
438
|
-
"&:hover": { backgroundColor: e(t[500], 0.2) }
|
|
439
|
-
})
|
|
970
|
+
{
|
|
971
|
+
props: { size: "small" },
|
|
972
|
+
style: {
|
|
973
|
+
height: 20,
|
|
974
|
+
borderRadius: 6,
|
|
975
|
+
[`& .${n.label}`]: { fontSize: t.typography.caption.fontSize, padding: "0 6px" }
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
props: { size: "medium" },
|
|
980
|
+
style: {
|
|
981
|
+
height: 28,
|
|
982
|
+
borderRadius: 8,
|
|
983
|
+
[`& .${n.label}`]: { fontSize: t.typography.caption.fontSize }
|
|
984
|
+
}
|
|
440
985
|
}
|
|
441
|
-
|
|
442
|
-
]
|
|
443
|
-
})
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
MuiToggleButtonGroup: {
|
|
447
|
-
styleOverrides: {
|
|
448
|
-
root: ({ theme: o }) => ({
|
|
449
|
-
borderRadius: o.shape.borderRadius,
|
|
450
|
-
backgroundColor: r[100],
|
|
451
|
-
border: `1px solid ${r[200]}`,
|
|
452
|
-
boxShadow: "none",
|
|
453
|
-
[`& .${$.grouped}`]: {
|
|
454
|
-
border: "none",
|
|
455
|
-
"&:not(:first-of-type)": { marginLeft: 0, borderLeft: "1px solid", borderLeftColor: r[300] }
|
|
456
|
-
},
|
|
457
|
-
...o.applyStyles("dark", {
|
|
458
|
-
backgroundColor: e(r[800], 0.5),
|
|
459
|
-
border: `1px solid ${r[700]}`,
|
|
460
|
-
[`& .${$.grouped}`]: {
|
|
461
|
-
"&:not(:first-of-type)": { borderLeftColor: r[700] }
|
|
462
|
-
}
|
|
463
|
-
})
|
|
464
|
-
})
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
MuiToggleButton: {
|
|
468
|
-
styleOverrides: {
|
|
469
|
-
root: ({ theme: o }) => ({
|
|
470
|
-
padding: "8px 16px",
|
|
471
|
-
fontWeight: 500,
|
|
472
|
-
color: r[600],
|
|
473
|
-
textTransform: "none",
|
|
474
|
-
border: "none",
|
|
475
|
-
borderRadius: o.shape.borderRadius,
|
|
476
|
-
"&:hover": { backgroundColor: e(r[500], 0.1) },
|
|
477
|
-
[`&.${O.selected}`]: {
|
|
478
|
-
color: t[600],
|
|
479
|
-
backgroundColor: e(t[500], 0.1),
|
|
480
|
-
"&:hover": { backgroundColor: e(t[500], 0.15) }
|
|
481
|
-
},
|
|
482
|
-
...o.applyStyles("dark", {
|
|
483
|
-
color: r[400],
|
|
484
|
-
"&:hover": { backgroundColor: e(r[500], 0.15) },
|
|
485
|
-
[`&.${O.selected}`]: {
|
|
486
|
-
color: t[300],
|
|
487
|
-
backgroundColor: e(t[500], 0.2),
|
|
488
|
-
"&:hover": { backgroundColor: e(t[500], 0.25) }
|
|
489
|
-
}
|
|
986
|
+
]
|
|
490
987
|
})
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
MuiCheckbox: {
|
|
495
|
-
defaultProps: {
|
|
496
|
-
disableRipple: !0,
|
|
497
|
-
icon: C.createElement(A, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
498
|
-
checkedIcon: C.createElement(E, { sx: { height: 14, width: 14 } }),
|
|
499
|
-
indeterminateIcon: C.createElement(V, { sx: { height: 14, width: 14 } })
|
|
988
|
+
}
|
|
500
989
|
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
borderColor: e(r[300], 0.8),
|
|
509
|
-
boxShadow: "0 0 0 1.5px hsla(210, 0%, 0%, 0.04) inset",
|
|
510
|
-
backgroundColor: e(r[100], 0.4),
|
|
511
|
-
transition: "border-color, background-color, 120ms ease-in",
|
|
512
|
-
"&:hover": { borderColor: t[300] },
|
|
513
|
-
"&.Mui-checked": {
|
|
514
|
-
color: "white",
|
|
515
|
-
backgroundColor: t[500],
|
|
516
|
-
borderColor: t[500],
|
|
517
|
-
boxShadow: "none",
|
|
518
|
-
"&:hover": { backgroundColor: t[600] }
|
|
519
|
-
},
|
|
520
|
-
...o.applyStyles("dark", {
|
|
521
|
-
borderColor: e(r[700], 0.8),
|
|
522
|
-
boxShadow: "0 0 0 1.5px hsl(210, 0%, 0%) inset",
|
|
523
|
-
backgroundColor: e(r[900], 0.8),
|
|
524
|
-
"&:hover": { borderColor: t[300] }
|
|
525
|
-
})
|
|
526
|
-
})
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
MuiSelect: {
|
|
530
|
-
styleOverrides: {
|
|
531
|
-
select: {
|
|
532
|
-
// Prevent chips from wrapping to multiple lines.
|
|
533
|
-
display: "flex",
|
|
534
|
-
alignItems: "center",
|
|
535
|
-
overflow: "hidden",
|
|
536
|
-
"& > .MuiBox-root": {
|
|
537
|
-
flexWrap: "nowrap",
|
|
538
|
-
overflow: "hidden"
|
|
990
|
+
MuiTablePagination: {
|
|
991
|
+
styleOverrides: {
|
|
992
|
+
actions: {
|
|
993
|
+
display: "flex",
|
|
994
|
+
gap: 8,
|
|
995
|
+
marginRight: 6,
|
|
996
|
+
[`& .${_.root}`]: { minWidth: 0, width: 36, height: 36 }
|
|
539
997
|
}
|
|
540
998
|
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
flexWrap: "nowrap !important",
|
|
548
|
-
overflow: "hidden"
|
|
549
|
-
},
|
|
550
|
-
tag: {
|
|
551
|
-
// Constrain chip tags to match the input line-height.
|
|
552
|
-
maxHeight: 20
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
MuiFormControl: {
|
|
557
|
-
styleOverrides: {
|
|
558
|
-
root: () => ({
|
|
559
|
-
// Input height token — read by OutlinedInput (height) and
|
|
560
|
-
// InputLabel (vertical centering). Our wrapper components
|
|
561
|
-
// override this for the full xs/sm/md/lg/xl range.
|
|
562
|
-
"--ov-input-height": "2.75rem",
|
|
563
|
-
variants: [
|
|
564
|
-
{ props: { size: "small" }, style: { "--ov-input-height": "2.25rem" } }
|
|
565
|
-
]
|
|
566
|
-
})
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
MuiInputLabel: {
|
|
570
|
-
styleOverrides: {
|
|
571
|
-
root: {
|
|
572
|
-
// Shrunk (floating) label — centered on the top border
|
|
573
|
-
"&.MuiInputLabel-shrink": {
|
|
574
|
-
transform: "translate(14px, -6px) scale(0.75)"
|
|
575
|
-
},
|
|
576
|
-
// Non-shrunk label — auto-center vertically using calc().
|
|
577
|
-
// 1.4375em = the label's line-height (unitless 1.4375 × font-size),
|
|
578
|
-
// expressed in em so it auto-adapts to both small and medium labels.
|
|
579
|
-
"&.MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
|
|
580
|
-
transform: "translate(14px, calc((var(--ov-input-height) - 1.4375em) / 2)) scale(1)"
|
|
999
|
+
},
|
|
1000
|
+
MuiAvatar: {
|
|
1001
|
+
styleOverrides: {
|
|
1002
|
+
root: {
|
|
1003
|
+
color: "#ffffff",
|
|
1004
|
+
fontWeight: 600
|
|
581
1005
|
}
|
|
582
1006
|
}
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
MuiInputBase: {
|
|
586
|
-
defaultProps: {
|
|
587
|
-
autoCapitalize: "off",
|
|
588
|
-
autoCorrect: "off",
|
|
589
|
-
spellCheck: !1
|
|
590
1007
|
},
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
input: ({ theme: o }) => ({
|
|
597
|
-
// Disable WebKit auto-capitalize / auto-correct text transformations
|
|
598
|
-
textTransform: "none",
|
|
599
|
-
WebkitTextSecurity: "none",
|
|
600
|
-
"&::placeholder": { opacity: 0.7, color: r[500] },
|
|
601
|
-
...o.applyStyles("dark", { "&::placeholder": { color: r[500] } })
|
|
602
|
-
})
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
MuiOutlinedInput: {
|
|
606
|
-
styleOverrides: {
|
|
607
|
-
input: { padding: "10px 14px" },
|
|
608
|
-
inputMultiline: { padding: 0 },
|
|
609
|
-
root: ({ theme: o }) => ({
|
|
610
|
-
borderRadius: o.shape.borderRadius,
|
|
611
|
-
backgroundColor: r[50],
|
|
612
|
-
transition: "background-color 120ms ease-in",
|
|
613
|
-
// Fixed height from the --ov-input-height CSS variable
|
|
614
|
-
// (set on the parent FormControl). Multiline inputs use
|
|
615
|
-
// minHeight so they can grow.
|
|
616
|
-
"&:not(.MuiInputBase-multiline)": {
|
|
617
|
-
boxSizing: "border-box",
|
|
618
|
-
height: "var(--ov-input-height)"
|
|
619
|
-
},
|
|
620
|
-
"&.MuiInputBase-multiline": {
|
|
621
|
-
padding: "10px 14px",
|
|
622
|
-
minHeight: "var(--ov-input-height)"
|
|
623
|
-
},
|
|
624
|
-
"&:hover": {
|
|
625
|
-
backgroundColor: r[100],
|
|
626
|
-
[`& .${u.notchedOutline}`]: { borderColor: r[400] }
|
|
627
|
-
},
|
|
628
|
-
[`&.${u.focused}`]: {
|
|
629
|
-
[`& .${u.notchedOutline}`]: { borderColor: t[500], borderWidth: 2 }
|
|
630
|
-
},
|
|
631
|
-
[`&.${u.disabled}`]: {
|
|
632
|
-
backgroundColor: r[100],
|
|
633
|
-
[`& .${u.notchedOutline}`]: { borderColor: r[200] }
|
|
634
|
-
},
|
|
635
|
-
...o.applyStyles("dark", {
|
|
636
|
-
backgroundColor: e(r[800], 0.8),
|
|
637
|
-
"&:hover": {
|
|
638
|
-
backgroundColor: e(r[800], 0.9),
|
|
639
|
-
[`& .${u.notchedOutline}`]: { borderColor: r[500] }
|
|
640
|
-
},
|
|
641
|
-
[`&.${u.focused}`]: {
|
|
642
|
-
backgroundColor: e(r[800], 0.9),
|
|
643
|
-
[`& .${u.notchedOutline}`]: { borderColor: t[400] }
|
|
644
|
-
},
|
|
645
|
-
[`&.${u.disabled}`]: {
|
|
646
|
-
backgroundColor: e(r[900], 0.6),
|
|
647
|
-
[`& .${u.notchedOutline}`]: { borderColor: r[800] }
|
|
648
|
-
}
|
|
649
|
-
})
|
|
650
|
-
}),
|
|
651
|
-
notchedOutline: ({ theme: o }) => ({
|
|
652
|
-
borderColor: r[300],
|
|
653
|
-
transition: "border-color 120ms ease-in",
|
|
654
|
-
...o.applyStyles("dark", { borderColor: r[700] })
|
|
655
|
-
})
|
|
656
|
-
}
|
|
657
|
-
},
|
|
658
|
-
MuiInputAdornment: {
|
|
659
|
-
styleOverrides: {
|
|
660
|
-
root: ({ theme: o }) => ({
|
|
661
|
-
color: o.palette.grey[500],
|
|
662
|
-
...o.applyStyles("dark", { color: o.palette.grey[400] })
|
|
663
|
-
})
|
|
664
|
-
}
|
|
665
|
-
},
|
|
666
|
-
MuiSwitch: {
|
|
667
|
-
styleOverrides: {
|
|
668
|
-
// Track: 44×24 pill (shadcn/Radix proportions).
|
|
669
|
-
root: { width: 44, height: 24, padding: 0 },
|
|
670
|
-
switchBase: ({ theme: o }) => ({
|
|
671
|
-
padding: 0,
|
|
672
|
-
margin: 2,
|
|
673
|
-
// Radix-style snappy thumb slide.
|
|
674
|
-
transitionDuration: "140ms",
|
|
675
|
-
transitionTimingFunction: "cubic-bezier(0.45, 0.05, 0.55, 0.95)",
|
|
676
|
-
transitionProperty: "transform",
|
|
677
|
-
"&.Mui-checked": {
|
|
678
|
-
// translateX = trackWidth - thumbDiameter - 2*margin = 44 - 20 - 4 = 20
|
|
679
|
-
transform: "translateX(20px)",
|
|
680
|
-
color: "#fff",
|
|
681
|
-
"& + .MuiSwitch-track": {
|
|
682
|
-
backgroundColor: t[500],
|
|
683
|
-
opacity: 1,
|
|
684
|
-
border: 0
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
"&.Mui-focusVisible + .MuiSwitch-track": {
|
|
688
|
-
outline: `2px solid ${e(t[500], 0.5)}`,
|
|
689
|
-
outlineOffset: 2
|
|
690
|
-
},
|
|
691
|
-
"&.Mui-disabled + .MuiSwitch-track": { opacity: 0.4 },
|
|
692
|
-
"&.Mui-disabled .MuiSwitch-thumb": { opacity: 0.7 },
|
|
693
|
-
...o.applyStyles("dark", {
|
|
694
|
-
"&.Mui-checked": {
|
|
695
|
-
"& + .MuiSwitch-track": { backgroundColor: t[400] }
|
|
696
|
-
}
|
|
697
|
-
})
|
|
698
|
-
}),
|
|
699
|
-
// Thumb: 20px circle with layered shadow for depth (key polish factor).
|
|
700
|
-
thumb: {
|
|
701
|
-
boxSizing: "border-box",
|
|
702
|
-
width: 20,
|
|
703
|
-
height: 20,
|
|
704
|
-
boxShadow: "0 0 0 1px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.08)"
|
|
705
|
-
},
|
|
706
|
-
// Track: full pill with fast color transition.
|
|
707
|
-
track: ({ theme: o }) => ({
|
|
708
|
-
borderRadius: 9999,
|
|
709
|
-
backgroundColor: r[300],
|
|
710
|
-
opacity: 1,
|
|
711
|
-
transition: "background-color 120ms linear",
|
|
712
|
-
...o.applyStyles("dark", { backgroundColor: r[600] })
|
|
713
|
-
})
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}, Q = {
|
|
717
|
-
MuiMenuItem: {
|
|
718
|
-
styleOverrides: {
|
|
719
|
-
root: ({ theme: o }) => ({
|
|
720
|
-
borderRadius: o.shape.borderRadius,
|
|
721
|
-
padding: "6px 8px",
|
|
722
|
-
[`&.${f.focusVisible}`]: { backgroundColor: "transparent" },
|
|
723
|
-
[`&.${f.selected}`]: {
|
|
724
|
-
[`&.${f.focusVisible}`]: {
|
|
725
|
-
backgroundColor: e(o.palette.action.selected, 0.3)
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
})
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
MuiMenu: {
|
|
732
|
-
styleOverrides: {
|
|
733
|
-
list: {
|
|
734
|
-
gap: "0px",
|
|
735
|
-
padding: "4px",
|
|
736
|
-
[`&.${j.root}`]: { margin: "0 -8px" }
|
|
737
|
-
},
|
|
738
|
-
paper: ({ theme: o }) => ({
|
|
739
|
-
marginTop: "4px",
|
|
740
|
-
borderRadius: o.shape.borderRadius,
|
|
741
|
-
border: `1px solid ${o.palette.divider}`,
|
|
742
|
-
backgroundImage: "none",
|
|
743
|
-
background: "hsl(0, 0%, 100%)",
|
|
744
|
-
boxShadow: "hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px",
|
|
745
|
-
[`& .${m.root}`]: {
|
|
746
|
-
"&.Mui-selected": { backgroundColor: e(o.palette.action.selected, 0.3) }
|
|
747
|
-
},
|
|
748
|
-
...o.applyStyles("dark", {
|
|
749
|
-
background: r[900],
|
|
750
|
-
boxShadow: "hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"
|
|
1008
|
+
MuiDivider: {
|
|
1009
|
+
styleOverrides: {
|
|
1010
|
+
root: ({ theme: t }) => ({
|
|
1011
|
+
borderColor: o[200],
|
|
1012
|
+
...t.applyStyles("dark", { borderColor: o[700] })
|
|
751
1013
|
})
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
},
|
|
755
|
-
MuiSelect: {
|
|
756
|
-
defaultProps: {
|
|
757
|
-
IconComponent: C.forwardRef((o, i) => /* @__PURE__ */ x(G, { fontSize: "small", ...o, ref: i }))
|
|
1014
|
+
}
|
|
758
1015
|
},
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
color: r[800],
|
|
768
|
-
fontWeight: 500,
|
|
769
|
-
position: "relative",
|
|
770
|
-
textDecoration: "none",
|
|
771
|
-
width: "fit-content",
|
|
772
|
-
"&::before": {
|
|
773
|
-
content: '""',
|
|
774
|
-
position: "absolute",
|
|
775
|
-
width: "100%",
|
|
776
|
-
height: "1px",
|
|
777
|
-
bottom: 0,
|
|
778
|
-
left: 0,
|
|
779
|
-
backgroundColor: r[600],
|
|
780
|
-
opacity: 0.3,
|
|
781
|
-
transition: "width 0.3s ease, opacity 0.3s ease"
|
|
782
|
-
},
|
|
783
|
-
"&:hover::before": { width: 0 },
|
|
784
|
-
"&:focus-visible": {
|
|
785
|
-
outline: `3px solid ${e(t[500], 0.5)}`,
|
|
786
|
-
outlineOffset: "4px",
|
|
787
|
-
borderRadius: "2px"
|
|
788
|
-
},
|
|
789
|
-
...o.applyStyles("dark", {
|
|
790
|
-
color: r[100],
|
|
791
|
-
"&::before": { backgroundColor: r[400] }
|
|
792
|
-
})
|
|
793
|
-
})
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
MuiDrawer: {
|
|
797
|
-
styleOverrides: {
|
|
798
|
-
paper: ({ theme: o }) => ({ backgroundColor: o.palette.background.default })
|
|
799
|
-
}
|
|
800
|
-
},
|
|
801
|
-
MuiListItemButton: {
|
|
802
|
-
styleOverrides: {
|
|
803
|
-
root: ({ theme: o }) => ({
|
|
804
|
-
borderRadius: o.shape.borderRadius,
|
|
805
|
-
padding: "8px 12px",
|
|
806
|
-
gap: 12,
|
|
807
|
-
border: "1px solid transparent",
|
|
808
|
-
transition: "all 100ms ease-in",
|
|
809
|
-
"&:hover": { backgroundColor: e(r[500], 0.08) },
|
|
810
|
-
"&.Mui-selected": {
|
|
811
|
-
backgroundColor: e(t[500], 0.08),
|
|
812
|
-
border: `1px solid ${e(t[500], 0.2)}`,
|
|
813
|
-
"&:hover": { backgroundColor: e(t[500], 0.12) }
|
|
814
|
-
},
|
|
815
|
-
...o.applyStyles("dark", {
|
|
816
|
-
"&:hover": { backgroundColor: e(r[500], 0.12) },
|
|
817
|
-
"&.Mui-selected": {
|
|
818
|
-
backgroundColor: e(t[400], 0.12),
|
|
819
|
-
border: `1px solid ${e(t[400], 0.25)}`,
|
|
820
|
-
"&:hover": { backgroundColor: e(t[400], 0.16) }
|
|
821
|
-
}
|
|
822
|
-
})
|
|
823
|
-
})
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
MuiTabs: {
|
|
827
|
-
styleOverrides: {
|
|
828
|
-
root: { minHeight: "fit-content" },
|
|
829
|
-
indicator: ({ theme: o }) => ({
|
|
830
|
-
backgroundColor: o.palette.grey[800],
|
|
831
|
-
...o.applyStyles("dark", { backgroundColor: o.palette.grey[200] })
|
|
832
|
-
})
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
MuiTab: {
|
|
836
|
-
styleOverrides: {
|
|
837
|
-
root: ({ theme: o }) => ({
|
|
838
|
-
padding: "6px 8px",
|
|
839
|
-
marginBottom: "8px",
|
|
840
|
-
textTransform: "none",
|
|
841
|
-
minWidth: "fit-content",
|
|
842
|
-
minHeight: "fit-content",
|
|
843
|
-
color: r[600],
|
|
844
|
-
borderRadius: o.shape.borderRadius,
|
|
845
|
-
border: "1px solid transparent",
|
|
846
|
-
":hover": { color: r[800], backgroundColor: r[100], borderColor: r[200] },
|
|
847
|
-
[`&.${w.selected}`]: { color: r[900] },
|
|
848
|
-
...o.applyStyles("dark", {
|
|
849
|
-
color: r[400],
|
|
850
|
-
":hover": { color: r[100], backgroundColor: r[800], borderColor: r[700] },
|
|
851
|
-
[`&.${w.selected}`]: { color: "#fff" }
|
|
1016
|
+
MuiTable: {
|
|
1017
|
+
styleOverrides: { root: { borderCollapse: "separate", borderSpacing: 0 } }
|
|
1018
|
+
},
|
|
1019
|
+
MuiTableHead: {
|
|
1020
|
+
styleOverrides: {
|
|
1021
|
+
root: ({ theme: t }) => ({
|
|
1022
|
+
backgroundColor: o[50],
|
|
1023
|
+
...t.applyStyles("dark", { backgroundColor: o[900] })
|
|
852
1024
|
})
|
|
853
|
-
})
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
}, Y = {
|
|
857
|
-
MuiAlert: {
|
|
858
|
-
styleOverrides: {
|
|
859
|
-
root: {
|
|
860
|
-
// Sizing and color are handled by the Alert wrapper component.
|
|
861
|
-
// We intentionally don't set padding, borderRadius, or severity-based
|
|
862
|
-
// color variants here to avoid specificity fights with the sx prop.
|
|
863
1025
|
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
borderColor: e(r[700], 0.6)
|
|
877
|
-
})
|
|
878
|
-
}
|
|
879
|
-
})
|
|
880
|
-
}
|
|
881
|
-
},
|
|
882
|
-
MuiPopover: {
|
|
883
|
-
styleOverrides: {
|
|
884
|
-
paper: ({ theme: o }) => ({
|
|
885
|
-
borderRadius: "10px",
|
|
886
|
-
border: "1px solid",
|
|
887
|
-
borderColor: o.palette.divider,
|
|
888
|
-
backgroundImage: "none",
|
|
889
|
-
backgroundColor: r[50],
|
|
890
|
-
boxShadow: "0 4px 20px rgba(0, 0, 0, 0.08)",
|
|
891
|
-
...o.applyStyles("dark", {
|
|
892
|
-
backgroundColor: "hsl(220, 25%, 10%)",
|
|
893
|
-
borderColor: e(r[700], 0.6),
|
|
894
|
-
boxShadow: "0 4px 20px rgba(0, 0, 0, 0.5)"
|
|
1026
|
+
},
|
|
1027
|
+
MuiTableCell: {
|
|
1028
|
+
styleOverrides: {
|
|
1029
|
+
root: ({ theme: t }) => ({
|
|
1030
|
+
borderColor: o[200],
|
|
1031
|
+
padding: "0.75rem 1rem",
|
|
1032
|
+
...t.applyStyles("dark", { borderColor: o[700] })
|
|
1033
|
+
}),
|
|
1034
|
+
head: ({ theme: t }) => ({
|
|
1035
|
+
fontWeight: 600,
|
|
1036
|
+
color: o[700],
|
|
1037
|
+
...t.applyStyles("dark", { color: o[300] })
|
|
895
1038
|
})
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
height: 8,
|
|
903
|
-
borderRadius: 8,
|
|
904
|
-
backgroundColor: r[200],
|
|
905
|
-
...o.applyStyles("dark", { backgroundColor: r[800] })
|
|
906
|
-
})
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
}, Z = {
|
|
910
|
-
MuiList: {
|
|
911
|
-
styleOverrides: {
|
|
912
|
-
root: { padding: "8px", display: "flex", flexDirection: "column", gap: 0 }
|
|
913
|
-
}
|
|
914
|
-
},
|
|
915
|
-
MuiListItem: {
|
|
916
|
-
styleOverrides: {
|
|
917
|
-
root: ({ theme: o }) => ({
|
|
918
|
-
[`& > .${k.root}`]: { width: "1rem", height: "1rem", color: r[600] },
|
|
919
|
-
[`& .${U.root}`]: { fontWeight: 500 },
|
|
920
|
-
[`& .${m.root}`]: {
|
|
921
|
-
display: "flex",
|
|
922
|
-
gap: 8,
|
|
923
|
-
padding: "2px 8px",
|
|
924
|
-
borderRadius: o.shape.borderRadius,
|
|
925
|
-
opacity: 0.7,
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
MuiTableRow: {
|
|
1042
|
+
styleOverrides: {
|
|
1043
|
+
root: ({ theme: t }) => ({
|
|
1044
|
+
"&:hover": { backgroundColor: e(o[100], 0.5) },
|
|
926
1045
|
"&.Mui-selected": {
|
|
927
|
-
|
|
928
|
-
backgroundColor: e(
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
},
|
|
933
|
-
...o.applyStyles("dark", {
|
|
934
|
-
[`& > .${k.root}`]: { color: r[400] },
|
|
935
|
-
[`& .${m.root}`]: {
|
|
1046
|
+
backgroundColor: e(a[500], 0.08),
|
|
1047
|
+
"&:hover": { backgroundColor: e(a[500], 0.12) }
|
|
1048
|
+
},
|
|
1049
|
+
...t.applyStyles("dark", {
|
|
1050
|
+
"&:hover": { backgroundColor: e(o[700], 0.3) },
|
|
936
1051
|
"&.Mui-selected": {
|
|
937
|
-
backgroundColor: e(
|
|
938
|
-
|
|
939
|
-
"&:hover": { backgroundColor: e(r[600], 0.5) }
|
|
1052
|
+
backgroundColor: e(a[400], 0.15),
|
|
1053
|
+
"&:hover": { backgroundColor: e(a[400], 0.2) }
|
|
940
1054
|
}
|
|
941
|
-
}
|
|
1055
|
+
})
|
|
942
1056
|
})
|
|
943
|
-
})
|
|
944
|
-
}
|
|
945
|
-
},
|
|
946
|
-
MuiListItemText: {
|
|
947
|
-
styleOverrides: {
|
|
948
|
-
primary: ({ theme: o }) => ({
|
|
949
|
-
fontSize: o.typography.body2.fontSize,
|
|
950
|
-
fontWeight: 500,
|
|
951
|
-
lineHeight: o.typography.body2.lineHeight
|
|
952
|
-
}),
|
|
953
|
-
secondary: ({ theme: o }) => ({
|
|
954
|
-
fontSize: o.typography.caption.fontSize,
|
|
955
|
-
lineHeight: o.typography.caption.lineHeight
|
|
956
|
-
})
|
|
957
|
-
}
|
|
958
|
-
},
|
|
959
|
-
MuiListSubheader: {
|
|
960
|
-
styleOverrides: {
|
|
961
|
-
root: ({ theme: o }) => ({
|
|
962
|
-
backgroundColor: "transparent",
|
|
963
|
-
padding: "4px 8px",
|
|
964
|
-
fontSize: o.typography.caption.fontSize,
|
|
965
|
-
fontWeight: 500,
|
|
966
|
-
lineHeight: o.typography.caption.lineHeight
|
|
967
|
-
})
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
MuiListItemIcon: {
|
|
971
|
-
styleOverrides: { root: { minWidth: 0 } }
|
|
972
|
-
},
|
|
973
|
-
MuiCard: {
|
|
974
|
-
defaultProps: { elevation: 0 },
|
|
975
|
-
styleOverrides: {
|
|
976
|
-
root: ({ theme: o }) => ({
|
|
977
|
-
display: "flex",
|
|
978
|
-
flexDirection: "column",
|
|
979
|
-
padding: 16,
|
|
980
|
-
gap: 16,
|
|
981
|
-
overflow: "visible",
|
|
982
|
-
transition: "all 150ms ease-in-out",
|
|
983
|
-
backgroundColor: r[50],
|
|
984
|
-
borderRadius: o.shape.borderRadius,
|
|
985
|
-
border: `1px solid ${o.palette.divider}`,
|
|
986
|
-
boxShadow: "none",
|
|
987
|
-
"&:hover": {
|
|
988
|
-
borderColor: r[300],
|
|
989
|
-
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.08)"
|
|
990
|
-
},
|
|
991
|
-
...o.applyStyles("dark", {
|
|
992
|
-
backgroundColor: r[800],
|
|
993
|
-
"&:hover": {
|
|
994
|
-
borderColor: r[600],
|
|
995
|
-
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.3)"
|
|
996
|
-
}
|
|
997
|
-
}),
|
|
998
|
-
variants: [
|
|
999
|
-
{
|
|
1000
|
-
props: { variant: "outlined" },
|
|
1001
|
-
style: {
|
|
1002
|
-
border: `1px solid ${o.palette.divider}`,
|
|
1003
|
-
boxShadow: "none",
|
|
1004
|
-
background: "hsl(0, 0%, 100%)",
|
|
1005
|
-
"&:hover": {
|
|
1006
|
-
borderColor: r[300],
|
|
1007
|
-
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.08)"
|
|
1008
|
-
},
|
|
1009
|
-
...o.applyStyles("dark", {
|
|
1010
|
-
background: e(r[900], 0.4),
|
|
1011
|
-
"&:hover": {
|
|
1012
|
-
borderColor: r[600],
|
|
1013
|
-
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.3)"
|
|
1014
|
-
}
|
|
1015
|
-
})
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
]
|
|
1019
|
-
})
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
MuiCardContent: {
|
|
1023
|
-
styleOverrides: { root: { padding: 0, "&:last-child": { paddingBottom: 0 } } }
|
|
1024
|
-
},
|
|
1025
|
-
MuiCardHeader: {
|
|
1026
|
-
styleOverrides: { root: { padding: 0 } }
|
|
1027
|
-
},
|
|
1028
|
-
MuiCardActions: {
|
|
1029
|
-
styleOverrides: { root: { padding: 0 } }
|
|
1030
|
-
},
|
|
1031
|
-
MuiPaper: {
|
|
1032
|
-
defaultProps: { elevation: 0 },
|
|
1033
|
-
styleOverrides: {
|
|
1034
|
-
root: ({ theme: o }) => ({
|
|
1035
|
-
backgroundImage: "none",
|
|
1036
|
-
...o.applyStyles("dark", { backgroundColor: r[800] })
|
|
1037
|
-
})
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
MuiChip: {
|
|
1041
|
-
defaultProps: { size: "small" },
|
|
1042
|
-
styleOverrides: {
|
|
1043
|
-
root: ({ theme: o }) => ({
|
|
1044
|
-
border: "1px solid",
|
|
1045
|
-
borderRadius: 6,
|
|
1046
|
-
[`& .${l.label}`]: { fontWeight: 600 },
|
|
1047
|
-
variants: [
|
|
1048
|
-
{
|
|
1049
|
-
props: { color: "default" },
|
|
1050
|
-
style: {
|
|
1051
|
-
borderColor: r[200],
|
|
1052
|
-
backgroundColor: r[100],
|
|
1053
|
-
[`& .${l.label}`]: { color: r[500] },
|
|
1054
|
-
[`& .${l.icon}`]: { color: r[500] },
|
|
1055
|
-
[`& .${l.deleteIcon}`]: { color: r[400], "&:hover": { color: r[600] } },
|
|
1056
|
-
...o.applyStyles("dark", {
|
|
1057
|
-
borderColor: r[600],
|
|
1058
|
-
backgroundColor: e(r[600], 0.3),
|
|
1059
|
-
[`& .${l.label}`]: { color: r[200] },
|
|
1060
|
-
[`& .${l.icon}`]: { color: r[200] },
|
|
1061
|
-
[`& .${l.deleteIcon}`]: { color: r[400], "&:hover": { color: r[200] } }
|
|
1062
|
-
})
|
|
1063
|
-
}
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
props: { color: "success" },
|
|
1067
|
-
style: {
|
|
1068
|
-
borderColor: d[200],
|
|
1069
|
-
backgroundColor: d[50],
|
|
1070
|
-
[`& .${l.label}`]: { color: d[500] },
|
|
1071
|
-
[`& .${l.icon}`]: { color: d[500] },
|
|
1072
|
-
...o.applyStyles("dark", {
|
|
1073
|
-
borderColor: d[800],
|
|
1074
|
-
backgroundColor: d[900],
|
|
1075
|
-
[`& .${l.label}`]: { color: d[200] },
|
|
1076
|
-
[`& .${l.icon}`]: { color: d[200] }
|
|
1077
|
-
})
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
props: { color: "error" },
|
|
1082
|
-
style: {
|
|
1083
|
-
borderColor: p[100],
|
|
1084
|
-
backgroundColor: p[50],
|
|
1085
|
-
[`& .${l.label}`]: { color: p[500] },
|
|
1086
|
-
[`& .${l.icon}`]: { color: p[500] },
|
|
1087
|
-
...o.applyStyles("dark", {
|
|
1088
|
-
borderColor: p[800],
|
|
1089
|
-
backgroundColor: p[900],
|
|
1090
|
-
[`& .${l.label}`]: { color: p[100] },
|
|
1091
|
-
[`& .${l.icon}`]: { color: p[100] }
|
|
1092
|
-
})
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
props: { color: "warning" },
|
|
1097
|
-
style: {
|
|
1098
|
-
borderColor: s[200],
|
|
1099
|
-
backgroundColor: s[50],
|
|
1100
|
-
[`& .${l.label}`]: { color: s[500] },
|
|
1101
|
-
[`& .${l.icon}`]: { color: s[500] },
|
|
1102
|
-
...o.applyStyles("dark", {
|
|
1103
|
-
borderColor: s[800],
|
|
1104
|
-
backgroundColor: s[900],
|
|
1105
|
-
[`& .${l.label}`]: { color: s[200] },
|
|
1106
|
-
[`& .${l.icon}`]: { color: s[200] }
|
|
1107
|
-
})
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
props: { color: "primary" },
|
|
1112
|
-
style: {
|
|
1113
|
-
borderColor: t[200],
|
|
1114
|
-
backgroundColor: t[50],
|
|
1115
|
-
[`& .${l.label}`]: { color: t[500] },
|
|
1116
|
-
[`& .${l.icon}`]: { color: t[500] },
|
|
1117
|
-
...o.applyStyles("dark", {
|
|
1118
|
-
borderColor: t[800],
|
|
1119
|
-
backgroundColor: t[900],
|
|
1120
|
-
[`& .${l.label}`]: { color: t[100] },
|
|
1121
|
-
[`& .${l.icon}`]: { color: t[100] }
|
|
1122
|
-
})
|
|
1123
|
-
}
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
props: { color: "secondary" },
|
|
1127
|
-
style: {
|
|
1128
|
-
borderColor: n[200],
|
|
1129
|
-
backgroundColor: n[50],
|
|
1130
|
-
[`& .${l.label}`]: { color: n[500] },
|
|
1131
|
-
[`& .${l.icon}`]: { color: n[500] },
|
|
1132
|
-
...o.applyStyles("dark", {
|
|
1133
|
-
borderColor: n[700],
|
|
1134
|
-
backgroundColor: n[900],
|
|
1135
|
-
[`& .${l.label}`]: { color: n[100] },
|
|
1136
|
-
[`& .${l.icon}`]: { color: n[100] }
|
|
1137
|
-
})
|
|
1138
|
-
}
|
|
1139
|
-
},
|
|
1140
|
-
{
|
|
1141
|
-
props: { variant: "outlined", color: "default" },
|
|
1142
|
-
style: {
|
|
1143
|
-
backgroundColor: "transparent",
|
|
1144
|
-
borderColor: r[300],
|
|
1145
|
-
[`& .${l.label}`]: { color: r[500] },
|
|
1146
|
-
...o.applyStyles("dark", {
|
|
1147
|
-
backgroundColor: "transparent",
|
|
1148
|
-
borderColor: r[500],
|
|
1149
|
-
[`& .${l.label}`]: { color: r[200] }
|
|
1150
|
-
})
|
|
1151
|
-
}
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
props: { size: "small" },
|
|
1155
|
-
style: {
|
|
1156
|
-
height: 20,
|
|
1157
|
-
borderRadius: 6,
|
|
1158
|
-
[`& .${l.label}`]: { fontSize: o.typography.caption.fontSize, padding: "0 6px" }
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
props: { size: "medium" },
|
|
1163
|
-
style: {
|
|
1164
|
-
height: 28,
|
|
1165
|
-
borderRadius: 8,
|
|
1166
|
-
[`& .${l.label}`]: { fontSize: o.typography.caption.fontSize }
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
]
|
|
1170
|
-
})
|
|
1171
|
-
}
|
|
1172
|
-
},
|
|
1173
|
-
MuiTablePagination: {
|
|
1174
|
-
styleOverrides: {
|
|
1175
|
-
actions: {
|
|
1176
|
-
display: "flex",
|
|
1177
|
-
gap: 8,
|
|
1178
|
-
marginRight: 6,
|
|
1179
|
-
[`& .${N.root}`]: { minWidth: 0, width: 36, height: 36 }
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
},
|
|
1183
|
-
MuiAvatar: {
|
|
1184
|
-
styleOverrides: {
|
|
1185
|
-
root: {
|
|
1186
|
-
color: "#ffffff",
|
|
1187
|
-
fontWeight: 600
|
|
1188
1057
|
}
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
},
|
|
1202
|
-
MuiTableHead: {
|
|
1203
|
-
styleOverrides: {
|
|
1204
|
-
root: ({ theme: o }) => ({
|
|
1205
|
-
backgroundColor: r[50],
|
|
1206
|
-
...o.applyStyles("dark", { backgroundColor: r[900] })
|
|
1207
|
-
})
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
MuiTableCell: {
|
|
1211
|
-
styleOverrides: {
|
|
1212
|
-
root: ({ theme: o }) => ({
|
|
1213
|
-
borderColor: r[200],
|
|
1214
|
-
padding: "0.75rem 1rem",
|
|
1215
|
-
...o.applyStyles("dark", { borderColor: r[700] })
|
|
1216
|
-
}),
|
|
1217
|
-
head: ({ theme: o }) => ({
|
|
1218
|
-
fontWeight: 600,
|
|
1219
|
-
color: r[700],
|
|
1220
|
-
...o.applyStyles("dark", { color: r[300] })
|
|
1221
|
-
})
|
|
1222
|
-
}
|
|
1223
|
-
},
|
|
1224
|
-
MuiTableRow: {
|
|
1225
|
-
styleOverrides: {
|
|
1226
|
-
root: ({ theme: o }) => ({
|
|
1227
|
-
"&:hover": { backgroundColor: e(r[100], 0.5) },
|
|
1228
|
-
"&.Mui-selected": {
|
|
1229
|
-
backgroundColor: e(t[500], 0.08),
|
|
1230
|
-
"&:hover": { backgroundColor: e(t[500], 0.12) }
|
|
1231
|
-
},
|
|
1232
|
-
...o.applyStyles("dark", {
|
|
1233
|
-
"&:hover": { backgroundColor: e(r[700], 0.3) },
|
|
1234
|
-
"&.Mui-selected": {
|
|
1235
|
-
backgroundColor: e(t[400], 0.15),
|
|
1236
|
-
"&:hover": { backgroundColor: e(t[400], 0.2) }
|
|
1237
|
-
}
|
|
1058
|
+
},
|
|
1059
|
+
MuiAccordion: {
|
|
1060
|
+
styleOverrides: {
|
|
1061
|
+
root: ({ theme: t }) => ({
|
|
1062
|
+
border: `1px solid ${o[200]}`,
|
|
1063
|
+
borderRadius: t.shape.borderRadius,
|
|
1064
|
+
"&:before": { display: "none" },
|
|
1065
|
+
"&.Mui-expanded": { margin: 0 },
|
|
1066
|
+
...t.applyStyles("dark", {
|
|
1067
|
+
border: `1px solid ${o[700]}`,
|
|
1068
|
+
backgroundColor: o[800]
|
|
1069
|
+
})
|
|
1238
1070
|
})
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
"&.Mui-expanded": { margin: 0 }
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
MuiAccordionSummary: {
|
|
1074
|
+
styleOverrides: {
|
|
1075
|
+
root: ({ theme: t }) => ({
|
|
1076
|
+
borderRadius: t.shape.borderRadius,
|
|
1077
|
+
fontWeight: 600,
|
|
1078
|
+
"&.Mui-expanded": { minHeight: 48 }
|
|
1079
|
+
}),
|
|
1080
|
+
content: { "&.Mui-expanded": { margin: "12px 0" } }
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
MuiAccordionDetails: {
|
|
1084
|
+
styleOverrides: {
|
|
1085
|
+
root: ({ theme: t }) => ({
|
|
1086
|
+
borderTop: `1px solid ${o[200]}`,
|
|
1087
|
+
...t.applyStyles("dark", { borderTop: `1px solid ${o[700]}` })
|
|
1252
1088
|
})
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
borderRadius: o.shape.borderRadius,
|
|
1260
|
-
fontWeight: 600,
|
|
1261
|
-
"&.Mui-expanded": { minHeight: 48 }
|
|
1262
|
-
}),
|
|
1263
|
-
content: { "&.Mui-expanded": { margin: "12px 0" } }
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
MuiAccordionDetails: {
|
|
1267
|
-
styleOverrides: {
|
|
1268
|
-
root: ({ theme: o }) => ({
|
|
1269
|
-
borderTop: `1px solid ${r[200]}`,
|
|
1270
|
-
...o.applyStyles("dark", { borderTop: `1px solid ${r[700]}` })
|
|
1271
|
-
})
|
|
1272
|
-
}
|
|
1273
|
-
},
|
|
1274
|
-
MuiTypography: {
|
|
1275
|
-
styleOverrides: {
|
|
1276
|
-
root: { WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale" }
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
MuiTypography: {
|
|
1092
|
+
styleOverrides: {
|
|
1093
|
+
root: { WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale" }
|
|
1094
|
+
}
|
|
1277
1095
|
}
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
function _({ mode: o }) {
|
|
1281
|
-
const { setMode: i } = H();
|
|
1282
|
-
return D(() => {
|
|
1283
|
-
i && i(o);
|
|
1284
|
-
}, [o, i]), null;
|
|
1096
|
+
};
|
|
1285
1097
|
}
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1098
|
+
const zo = R(), oo = { gray: x, brand: f, green: I, orange: P, red: H, purple: W }, ro = {
|
|
1099
|
+
palettes: oo,
|
|
1100
|
+
getDesignTokens: N,
|
|
1101
|
+
getShadows: j,
|
|
1102
|
+
getCustomizations: () => ({
|
|
1103
|
+
...w(),
|
|
1104
|
+
...O(),
|
|
1105
|
+
...z(),
|
|
1106
|
+
...R()
|
|
1107
|
+
})
|
|
1108
|
+
}, eo = U(), M = {
|
|
1109
|
+
50: "#EEE8D5",
|
|
1110
|
+
// base2
|
|
1111
|
+
100: "#93A1A1",
|
|
1112
|
+
// base1
|
|
1113
|
+
200: "#839496",
|
|
1114
|
+
// base0
|
|
1115
|
+
300: "#657B83",
|
|
1116
|
+
// base00
|
|
1117
|
+
400: "#586E75",
|
|
1118
|
+
// base01
|
|
1119
|
+
500: "#4C666E",
|
|
1120
|
+
600: "#35565F",
|
|
1121
|
+
700: "#1E4651",
|
|
1122
|
+
800: "#073642",
|
|
1123
|
+
// base02
|
|
1124
|
+
900: "#002B36"
|
|
1125
|
+
// base03
|
|
1126
|
+
}, s = {
|
|
1127
|
+
50: "#E4F1FB",
|
|
1128
|
+
100: "#C6E2F8",
|
|
1129
|
+
200: "#7CBCE8",
|
|
1130
|
+
300: "#4FA3DD",
|
|
1131
|
+
400: "#268BD2",
|
|
1132
|
+
500: "#1A73AD",
|
|
1133
|
+
600: "#155F94",
|
|
1134
|
+
700: "#0F4E7A",
|
|
1135
|
+
800: "#07354F",
|
|
1136
|
+
900: "#032A40"
|
|
1137
|
+
}, y = {
|
|
1138
|
+
50: "#F2F7E8",
|
|
1139
|
+
100: "#DCEBC4",
|
|
1140
|
+
200: "#8FBB4D",
|
|
1141
|
+
300: "#84B86A",
|
|
1142
|
+
400: "#7A9B00",
|
|
1143
|
+
500: "#5E7F00",
|
|
1144
|
+
600: "#4D6B06",
|
|
1145
|
+
700: "#384F04",
|
|
1146
|
+
800: "#0F3D2A",
|
|
1147
|
+
900: "#083320"
|
|
1148
|
+
}, k = {
|
|
1149
|
+
50: "#FEF8E6",
|
|
1150
|
+
100: "#FAECBA",
|
|
1151
|
+
200: "#DFB540",
|
|
1152
|
+
300: "#B89A4A",
|
|
1153
|
+
400: "#B58900",
|
|
1154
|
+
500: "#997300",
|
|
1155
|
+
600: "#9B4A08",
|
|
1156
|
+
700: "#6E5302",
|
|
1157
|
+
800: "#2A1E06",
|
|
1158
|
+
900: "#1A1204"
|
|
1159
|
+
}, C = {
|
|
1160
|
+
50: "#FBECEC",
|
|
1161
|
+
100: "#F5CECE",
|
|
1162
|
+
200: "#EA9695",
|
|
1163
|
+
300: "#DE6462",
|
|
1164
|
+
400: "#DC322F",
|
|
1165
|
+
500: "#BC2320",
|
|
1166
|
+
600: "#981D1B",
|
|
1167
|
+
700: "#701411",
|
|
1168
|
+
800: "#4A0B09",
|
|
1169
|
+
900: "#2F0504"
|
|
1170
|
+
}, g = {
|
|
1171
|
+
50: "#EEEEF9",
|
|
1172
|
+
100: "#D1D2F0",
|
|
1173
|
+
200: "#A4A7DD",
|
|
1174
|
+
300: "#8387CF",
|
|
1175
|
+
400: "#6C71C4",
|
|
1176
|
+
500: "#5559AC",
|
|
1177
|
+
600: "#474A92",
|
|
1178
|
+
700: "#363972",
|
|
1179
|
+
800: "#232547",
|
|
1180
|
+
900: "#14152D"
|
|
1181
|
+
}, L = (i) => i === "dark" ? "0 4px 12px rgba(0, 20, 26, 0.35), 0 2px 4px rgba(0, 20, 26, 0.25)" : "0 4px 12px rgba(88, 110, 117, 0.12), 0 2px 4px rgba(88, 110, 117, 0.08)", ao = (i) => ({
|
|
1182
|
+
palette: {
|
|
1183
|
+
mode: i,
|
|
1184
|
+
primary: {
|
|
1185
|
+
light: s[200],
|
|
1186
|
+
main: s[400],
|
|
1187
|
+
dark: s[700],
|
|
1188
|
+
contrastText: s[50],
|
|
1189
|
+
...i === "dark" && {
|
|
1190
|
+
light: s[300],
|
|
1191
|
+
dark: s[700]
|
|
1192
|
+
}
|
|
1296
1193
|
},
|
|
1297
|
-
|
|
1298
|
-
light:
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1194
|
+
info: {
|
|
1195
|
+
light: s[100],
|
|
1196
|
+
main: s[300],
|
|
1197
|
+
dark: s[600],
|
|
1198
|
+
contrastText: M[50],
|
|
1199
|
+
...i === "dark" && {
|
|
1200
|
+
contrastText: s[300],
|
|
1201
|
+
light: s[500],
|
|
1202
|
+
main: s[700],
|
|
1203
|
+
dark: s[900]
|
|
1303
1204
|
}
|
|
1304
1205
|
},
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
...
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1206
|
+
warning: {
|
|
1207
|
+
light: k[300],
|
|
1208
|
+
main: k[400],
|
|
1209
|
+
dark: k[800],
|
|
1210
|
+
...i === "dark" && {
|
|
1211
|
+
light: k[400],
|
|
1212
|
+
main: k[500],
|
|
1213
|
+
dark: k[700]
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
error: {
|
|
1217
|
+
light: C[300],
|
|
1218
|
+
main: C[400],
|
|
1219
|
+
dark: C[800],
|
|
1220
|
+
...i === "dark" && {
|
|
1221
|
+
light: C[400],
|
|
1222
|
+
main: C[500],
|
|
1223
|
+
dark: C[700]
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
success: {
|
|
1227
|
+
light: y[300],
|
|
1228
|
+
main: y[400],
|
|
1229
|
+
dark: y[800],
|
|
1230
|
+
...i === "dark" && {
|
|
1231
|
+
light: y[400],
|
|
1232
|
+
main: y[500],
|
|
1233
|
+
dark: y[700]
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
secondary: {
|
|
1237
|
+
light: g[300],
|
|
1238
|
+
main: g[400],
|
|
1239
|
+
dark: g[700],
|
|
1240
|
+
contrastText: g[50],
|
|
1241
|
+
...i === "dark" && {
|
|
1242
|
+
light: g[300],
|
|
1243
|
+
main: g[400],
|
|
1244
|
+
dark: g[800]
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
grey: M,
|
|
1248
|
+
divider: i === "dark" ? "rgba(76, 102, 110, 0.6)" : "rgba(201, 194, 175, 0.6)",
|
|
1249
|
+
background: {
|
|
1250
|
+
default: i === "dark" ? "#002B36" : "#FDF6E3",
|
|
1251
|
+
paper: i === "dark" ? "#073642" : "#EEE8D5"
|
|
1252
|
+
},
|
|
1253
|
+
text: {
|
|
1254
|
+
primary: i === "dark" ? "rgba(147, 161, 161, 0.92)" : "rgba(88, 110, 117, 0.92)",
|
|
1255
|
+
secondary: i === "dark" ? "rgba(147, 161, 161, 0.64)" : "rgba(88, 110, 117, 0.64)"
|
|
1256
|
+
},
|
|
1257
|
+
action: {
|
|
1258
|
+
hover: i === "dark" ? "rgba(147, 161, 161, 0.04)" : "rgba(88, 110, 117, 0.04)",
|
|
1259
|
+
selected: "rgba(38, 139, 210, 0.10)"
|
|
1260
|
+
},
|
|
1261
|
+
baseShadow: L(i)
|
|
1262
|
+
}
|
|
1263
|
+
}), to = (i) => {
|
|
1264
|
+
const o = L(i), a = [...eo.shadows];
|
|
1265
|
+
return a[1] = o, a;
|
|
1266
|
+
}, h = {
|
|
1267
|
+
gray: M,
|
|
1268
|
+
brand: s,
|
|
1269
|
+
green: y,
|
|
1270
|
+
orange: k,
|
|
1271
|
+
red: C,
|
|
1272
|
+
purple: g
|
|
1273
|
+
}, io = {
|
|
1274
|
+
palettes: h,
|
|
1275
|
+
getDesignTokens: ao,
|
|
1276
|
+
getShadows: to,
|
|
1277
|
+
getCustomizations: () => ({
|
|
1278
|
+
...w(h),
|
|
1279
|
+
...O(h),
|
|
1280
|
+
...z(h),
|
|
1281
|
+
...R(h)
|
|
1282
|
+
})
|
|
1283
|
+
};
|
|
1284
|
+
function Ro() {
|
|
1285
|
+
B.register("default", ro), B.register("solarized", io);
|
|
1327
1286
|
}
|
|
1328
|
-
function
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1331
|
-
for (const [
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1287
|
+
function Bo(i) {
|
|
1288
|
+
const o = document.documentElement;
|
|
1289
|
+
o.setAttribute("data-ov-theme", i.type);
|
|
1290
|
+
for (const [a, r] of Object.entries(i.colors)) {
|
|
1291
|
+
const d = `--ov-${a.replace(/\./g, "-")}`;
|
|
1292
|
+
o.style.setProperty(d, r);
|
|
1334
1293
|
}
|
|
1335
|
-
|
|
1294
|
+
i.typography?.fontFamily && o.style.setProperty("--ov-font-ui", i.typography.fontFamily), i.typography?.monoFontFamily && o.style.setProperty("--ov-font-mono", i.typography.monoFontFamily), i.typography?.fontSize && o.style.setProperty(
|
|
1336
1295
|
"--ov-text-base",
|
|
1337
|
-
`${
|
|
1296
|
+
`${i.typography.fontSize / 16}rem`
|
|
1338
1297
|
);
|
|
1339
1298
|
}
|
|
1340
|
-
function
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1299
|
+
function To(i = "dark") {
|
|
1300
|
+
const o = document.documentElement;
|
|
1301
|
+
o.setAttribute("data-ov-theme", i), o.removeAttribute("style");
|
|
1343
1302
|
}
|
|
1344
1303
|
export {
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1304
|
+
Do as AppTheme,
|
|
1305
|
+
B as ThemeRegistry,
|
|
1306
|
+
Ao as ThemeVariantContext,
|
|
1307
|
+
Bo as applyTheme,
|
|
1308
|
+
f as brand,
|
|
1309
|
+
R as createDataDisplayCustomizations,
|
|
1310
|
+
z as createFeedbackCustomizations,
|
|
1311
|
+
w as createInputsCustomizations,
|
|
1312
|
+
O as createNavigationCustomizations,
|
|
1313
|
+
j as customShadows,
|
|
1314
|
+
zo as dataDisplayCustomizations,
|
|
1315
|
+
Oo as feedbackCustomizations,
|
|
1316
|
+
N as getDesignTokens,
|
|
1317
|
+
ao as getSolarizedDesignTokens,
|
|
1318
|
+
x as gray,
|
|
1319
|
+
I as green,
|
|
1320
|
+
Ro as initThemeRegistry,
|
|
1321
|
+
Mo as inputsCustomizations,
|
|
1322
|
+
wo as navigationCustomizations,
|
|
1323
|
+
P as orange,
|
|
1324
|
+
W as purple,
|
|
1325
|
+
H as red,
|
|
1326
|
+
To as resetTheme,
|
|
1327
|
+
Io as shape,
|
|
1328
|
+
s as solarizedBrand,
|
|
1329
|
+
to as solarizedCustomShadows,
|
|
1330
|
+
M as solarizedGray,
|
|
1331
|
+
y as solarizedGreen,
|
|
1332
|
+
k as solarizedOrange,
|
|
1333
|
+
g as solarizedPurple,
|
|
1334
|
+
C as solarizedRed,
|
|
1335
|
+
Po as typography,
|
|
1336
|
+
Ho as useThemeVariant
|
|
1362
1337
|
};
|