@cgi-learning-hub/ui 0.0.1-dev.1709558390 → 0.0.1-dev.1709568003
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/Box-CjHm9A9L.cjs +1 -0
- package/dist/{Box-C0qXdJzV.js → Box-erN4AuKs.js} +8 -8
- package/dist/ButtonBase-BybMkBUd.cjs +75 -0
- package/dist/ButtonBase-CGcs8Gbj.cjs +75 -0
- package/dist/ButtonBase-V1pwsMMs.js +649 -0
- package/dist/ButtonBase-aujiNoUb.js +649 -0
- package/dist/DefaultButton-Cg4tPCgf.cjs +28 -0
- package/dist/{DefaultButton-B-2UppUm.js → DefaultButton-DbpZOb47.js} +355 -146
- package/dist/FileListItem-ChKTjDnV.js +254 -0
- package/dist/FileListItem-CjFIZgYg.cjs +28 -0
- package/dist/IconButton-CHXclgOn.cjs +2 -0
- package/dist/{IconButton-1URziYlU.js → IconButton-DE5JOshS.js} +8 -8
- package/dist/{InputBase-Dc0v-Ihf.js → InputBase-C8AzQJJ9.js} +161 -174
- package/dist/InputBase-D6eXzDaz.cjs +4 -0
- package/dist/LocalizationProvider-42pD7VmS.cjs +5 -0
- package/dist/{LocalizationProvider-BD64DNxF.js → LocalizationProvider-Cov62Xe0.js} +4 -3
- package/dist/Tabs-DiWeNGD4.js +1167 -0
- package/dist/Tabs-DoxP7EMA.cjs +4 -0
- package/dist/TextInput-BbSyyuvO.cjs +12 -0
- package/dist/{TextInput-DsSFDlNR.js → TextInput-DmMk4i-V.js} +1892 -1650
- package/dist/TimePicker-B5MjZCK0.cjs +89 -0
- package/dist/TimePicker-BmxG3a2D.js +28354 -0
- package/dist/TransitionGroup-COuDopJ-.js +188 -0
- package/dist/TransitionGroup-X90dkobW.cjs +1 -0
- package/dist/Typography-B90UzlQW.js +179 -0
- package/dist/Typography-KFjBz5Hm.cjs +1 -0
- package/dist/clamp-0LjYbpE_.cjs +23 -0
- package/dist/clamp-BGJvJ0FN.js +1641 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +12 -11
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +10 -9
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +90 -91
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +174 -6
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +4 -4
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +2 -2
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +7 -39
- package/dist/components/lists/FileList/index.cjs.js +1 -1
- package/dist/components/lists/FileList/index.es.js +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +18 -16
- package/dist/components/lists/index.cjs.js +1 -1
- package/dist/components/lists/index.es.js +4 -4
- package/dist/createSvgIcon-BSYat4nx.js +74 -0
- package/dist/createSvgIcon-BqRWmIPG.cjs +1 -0
- package/dist/{createSvgIcon-Dspfpz-l.js → createSvgIcon-DeRU4e-L.js} +20 -18
- package/dist/createSvgIcon-doNQ5emq.cjs +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +93 -94
- package/dist/refType-Bt58K9Sk.cjs +1 -0
- package/dist/{refType-BBFUe6fu.js → refType-CoCfCK--.js} +1 -1
- package/dist/styled-BU8dAebc.js +1751 -0
- package/dist/styled-DGjsLYEN.cjs +45 -0
- package/dist/styled-DP6LeBLQ.js +261 -0
- package/dist/styled-Dkd1VGM-.cjs +1 -0
- package/dist/useTheme-C132tQV-.js +10 -0
- package/dist/useTheme-CliHZTkE.cjs +1 -0
- package/dist/useThemeProps-63SNG58r.js +753 -0
- package/dist/useThemeProps-CVatCXfo.cjs +20 -0
- package/package.json +6 -7
- package/dist/Box-DjRIKMD0.cjs +0 -1
- package/dist/ButtonBase-BvllyU4w.cjs +0 -75
- package/dist/ButtonBase-C14ZYs6z.js +0 -833
- package/dist/CircularProgress-Bf46-VRs.js +0 -217
- package/dist/CircularProgress-DjSMBYnK.cjs +0 -28
- package/dist/DefaultButton-DPZOltN5.cjs +0 -1
- package/dist/IconButton-X6l-U-im.cjs +0 -2
- package/dist/InputBase-CzupOzjh.cjs +0 -4
- package/dist/LocalizationProvider-DqwEOZOd.cjs +0 -5
- package/dist/SearchInput-Bb3sCx3k.cjs +0 -1
- package/dist/SearchInput-DRjmNW6W.js +0 -177
- package/dist/Tabs-B9BPJaDx.js +0 -1090
- package/dist/Tabs-Dx8YJT4c.cjs +0 -4
- package/dist/TextInput-BFguMDSu.cjs +0 -12
- package/dist/TimePicker-B0HOzxHh.cjs +0 -69
- package/dist/TimePicker-OBZs04Z8.js +0 -19694
- package/dist/Typography-CRt6WSxo.js +0 -204
- package/dist/Typography-DsPQABF2.cjs +0 -1
- package/dist/createSvgIcon-BOQCM03y.cjs +0 -2
- package/dist/createSvgIcon-C2VxBqzG.cjs +0 -1
- package/dist/createSvgIcon-xJp3_zwo.js +0 -84
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/refType-5EEBZL5_.cjs +0 -1
- package/dist/styled-D8lXwcQy.js +0 -423
- package/dist/styled-DFoJwRxe.cjs +0 -24
- package/dist/useSlotProps-BoMYRJkF.js +0 -72
- package/dist/useSlotProps-EKKRQjEn.cjs +0 -1
- package/dist/useTheme-BkW5nNsn.cjs +0 -1
- package/dist/useTheme-Bo1inEHN.js +0 -9
- package/dist/useThemeProps-BRWSvuZw.cjs +0 -42
- package/dist/useThemeProps-CZzcR_pm.js +0 -2288
|
@@ -0,0 +1,753 @@
|
|
|
1
|
+
import { f as D, o as ne, _ as v, b as J, a as I, d as T, e as ae, k as oe, s as se, g as ie, p as ce } from "./clamp-BGJvJ0FN.js";
|
|
2
|
+
const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
default: D
|
|
5
|
+
}, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
|
+
__proto__: null,
|
|
7
|
+
default: ne
|
|
8
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
9
|
+
var G = { exports: {} };
|
|
10
|
+
(function(e) {
|
|
11
|
+
function t(r) {
|
|
12
|
+
return r && r.__esModule ? r : {
|
|
13
|
+
default: r
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
17
|
+
})(G);
|
|
18
|
+
var de = G.exports;
|
|
19
|
+
function le(e, t) {
|
|
20
|
+
return v({
|
|
21
|
+
toolbar: {
|
|
22
|
+
minHeight: 56,
|
|
23
|
+
[e.up("xs")]: {
|
|
24
|
+
"@media (orientation: landscape)": {
|
|
25
|
+
minHeight: 48
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
[e.up("sm")]: {
|
|
29
|
+
minHeight: 64
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, t);
|
|
33
|
+
}
|
|
34
|
+
var d = {};
|
|
35
|
+
const pe = /* @__PURE__ */ J(ue), he = /* @__PURE__ */ J(fe);
|
|
36
|
+
var K = de;
|
|
37
|
+
Object.defineProperty(d, "__esModule", {
|
|
38
|
+
value: !0
|
|
39
|
+
});
|
|
40
|
+
var ft = d.alpha = Z;
|
|
41
|
+
d.blend = Me;
|
|
42
|
+
d.colorChannel = void 0;
|
|
43
|
+
var ge = d.darken = U;
|
|
44
|
+
d.decomposeColor = b;
|
|
45
|
+
d.emphasize = Ee;
|
|
46
|
+
var W = d.getContrastRatio = Oe;
|
|
47
|
+
d.getLuminance = S;
|
|
48
|
+
d.hexToRgb = Y;
|
|
49
|
+
d.hslToRgb = X;
|
|
50
|
+
var me = d.lighten = V;
|
|
51
|
+
d.private_safeAlpha = xe;
|
|
52
|
+
d.private_safeColorChannel = void 0;
|
|
53
|
+
d.private_safeDarken = _e;
|
|
54
|
+
d.private_safeEmphasize = ee;
|
|
55
|
+
d.private_safeLighten = Ae;
|
|
56
|
+
d.recomposeColor = k;
|
|
57
|
+
d.rgbToHex = $e;
|
|
58
|
+
var F = K(pe), be = K(he);
|
|
59
|
+
function R(e, t = 0, r = 1) {
|
|
60
|
+
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), (0, be.default)(e, t, r);
|
|
61
|
+
}
|
|
62
|
+
function Y(e) {
|
|
63
|
+
e = e.slice(1);
|
|
64
|
+
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
65
|
+
let r = e.match(t);
|
|
66
|
+
return r && r[0].length === 1 && (r = r.map((n) => n + n)), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
67
|
+
}
|
|
68
|
+
function ye(e) {
|
|
69
|
+
const t = e.toString(16);
|
|
70
|
+
return t.length === 1 ? `0${t}` : t;
|
|
71
|
+
}
|
|
72
|
+
function b(e) {
|
|
73
|
+
if (e.type)
|
|
74
|
+
return e;
|
|
75
|
+
if (e.charAt(0) === "#")
|
|
76
|
+
return b(Y(e));
|
|
77
|
+
const t = e.indexOf("("), r = e.substring(0, t);
|
|
78
|
+
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(r) === -1)
|
|
79
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
80
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, F.default)(9, e));
|
|
81
|
+
let n = e.substring(t + 1, e.length - 1), o;
|
|
82
|
+
if (r === "color") {
|
|
83
|
+
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
|
|
84
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
85
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, F.default)(10, o));
|
|
86
|
+
} else
|
|
87
|
+
n = n.split(",");
|
|
88
|
+
return n = n.map((c) => parseFloat(c)), {
|
|
89
|
+
type: r,
|
|
90
|
+
values: n,
|
|
91
|
+
colorSpace: o
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
const Q = (e) => {
|
|
95
|
+
const t = b(e);
|
|
96
|
+
return t.values.slice(0, 3).map((r, n) => t.type.indexOf("hsl") !== -1 && n !== 0 ? `${r}%` : r).join(" ");
|
|
97
|
+
};
|
|
98
|
+
d.colorChannel = Q;
|
|
99
|
+
const ve = (e, t) => {
|
|
100
|
+
try {
|
|
101
|
+
return Q(e);
|
|
102
|
+
} catch {
|
|
103
|
+
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
d.private_safeColorChannel = ve;
|
|
107
|
+
function k(e) {
|
|
108
|
+
const {
|
|
109
|
+
type: t,
|
|
110
|
+
colorSpace: r
|
|
111
|
+
} = e;
|
|
112
|
+
let {
|
|
113
|
+
values: n
|
|
114
|
+
} = e;
|
|
115
|
+
return t.indexOf("rgb") !== -1 ? n = n.map((o, c) => c < 3 ? parseInt(o, 10) : o) : t.indexOf("hsl") !== -1 && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.indexOf("color") !== -1 ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
|
|
116
|
+
}
|
|
117
|
+
function $e(e) {
|
|
118
|
+
if (e.indexOf("#") === 0)
|
|
119
|
+
return e;
|
|
120
|
+
const {
|
|
121
|
+
values: t
|
|
122
|
+
} = b(e);
|
|
123
|
+
return `#${t.map((r, n) => ye(n === 3 ? Math.round(255 * r) : r)).join("")}`;
|
|
124
|
+
}
|
|
125
|
+
function X(e) {
|
|
126
|
+
e = b(e);
|
|
127
|
+
const {
|
|
128
|
+
values: t
|
|
129
|
+
} = e, r = t[0], n = t[1] / 100, o = t[2] / 100, c = n * Math.min(o, 1 - o), s = (u, l = (u + r / 30) % 12) => o - c * Math.max(Math.min(l - 3, 9 - l, 1), -1);
|
|
130
|
+
let p = "rgb";
|
|
131
|
+
const h = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
|
|
132
|
+
return e.type === "hsla" && (p += "a", h.push(t[3])), k({
|
|
133
|
+
type: p,
|
|
134
|
+
values: h
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function S(e) {
|
|
138
|
+
e = b(e);
|
|
139
|
+
let t = e.type === "hsl" || e.type === "hsla" ? b(X(e)).values : e.values;
|
|
140
|
+
return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
141
|
+
}
|
|
142
|
+
function Oe(e, t) {
|
|
143
|
+
const r = S(e), n = S(t);
|
|
144
|
+
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
145
|
+
}
|
|
146
|
+
function Z(e, t) {
|
|
147
|
+
return e = b(e), t = R(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, k(e);
|
|
148
|
+
}
|
|
149
|
+
function xe(e, t, r) {
|
|
150
|
+
try {
|
|
151
|
+
return Z(e, t);
|
|
152
|
+
} catch {
|
|
153
|
+
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function U(e, t) {
|
|
157
|
+
if (e = b(e), t = R(t), e.type.indexOf("hsl") !== -1)
|
|
158
|
+
e.values[2] *= 1 - t;
|
|
159
|
+
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
160
|
+
for (let r = 0; r < 3; r += 1)
|
|
161
|
+
e.values[r] *= 1 - t;
|
|
162
|
+
return k(e);
|
|
163
|
+
}
|
|
164
|
+
function _e(e, t, r) {
|
|
165
|
+
try {
|
|
166
|
+
return U(e, t);
|
|
167
|
+
} catch {
|
|
168
|
+
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function V(e, t) {
|
|
172
|
+
if (e = b(e), t = R(t), e.type.indexOf("hsl") !== -1)
|
|
173
|
+
e.values[2] += (100 - e.values[2]) * t;
|
|
174
|
+
else if (e.type.indexOf("rgb") !== -1)
|
|
175
|
+
for (let r = 0; r < 3; r += 1)
|
|
176
|
+
e.values[r] += (255 - e.values[r]) * t;
|
|
177
|
+
else if (e.type.indexOf("color") !== -1)
|
|
178
|
+
for (let r = 0; r < 3; r += 1)
|
|
179
|
+
e.values[r] += (1 - e.values[r]) * t;
|
|
180
|
+
return k(e);
|
|
181
|
+
}
|
|
182
|
+
function Ae(e, t, r) {
|
|
183
|
+
try {
|
|
184
|
+
return V(e, t);
|
|
185
|
+
} catch {
|
|
186
|
+
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function Ee(e, t = 0.15) {
|
|
190
|
+
return S(e) > 0.5 ? U(e, t) : V(e, t);
|
|
191
|
+
}
|
|
192
|
+
function ee(e, t, r) {
|
|
193
|
+
try {
|
|
194
|
+
return ee(e, t);
|
|
195
|
+
} catch {
|
|
196
|
+
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function Me(e, t, r, n = 1) {
|
|
200
|
+
const o = (h, u) => Math.round((h ** (1 / n) * (1 - r) + u ** (1 / n) * r) ** n), c = b(e), s = b(t), p = [o(c.values[0], s.values[0]), o(c.values[1], s.values[1]), o(c.values[2], s.values[2])];
|
|
201
|
+
return k({
|
|
202
|
+
type: "rgb",
|
|
203
|
+
values: p
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
const ke = {
|
|
207
|
+
black: "#000",
|
|
208
|
+
white: "#fff"
|
|
209
|
+
}, w = ke, Ne = {
|
|
210
|
+
50: "#fafafa",
|
|
211
|
+
100: "#f5f5f5",
|
|
212
|
+
200: "#eeeeee",
|
|
213
|
+
300: "#e0e0e0",
|
|
214
|
+
400: "#bdbdbd",
|
|
215
|
+
500: "#9e9e9e",
|
|
216
|
+
600: "#757575",
|
|
217
|
+
700: "#616161",
|
|
218
|
+
800: "#424242",
|
|
219
|
+
900: "#212121",
|
|
220
|
+
A100: "#f5f5f5",
|
|
221
|
+
A200: "#eeeeee",
|
|
222
|
+
A400: "#bdbdbd",
|
|
223
|
+
A700: "#616161"
|
|
224
|
+
}, Te = Ne, we = {
|
|
225
|
+
50: "#f3e5f5",
|
|
226
|
+
100: "#e1bee7",
|
|
227
|
+
200: "#ce93d8",
|
|
228
|
+
300: "#ba68c8",
|
|
229
|
+
400: "#ab47bc",
|
|
230
|
+
500: "#9c27b0",
|
|
231
|
+
600: "#8e24aa",
|
|
232
|
+
700: "#7b1fa2",
|
|
233
|
+
800: "#6a1b9a",
|
|
234
|
+
900: "#4a148c",
|
|
235
|
+
A100: "#ea80fc",
|
|
236
|
+
A200: "#e040fb",
|
|
237
|
+
A400: "#d500f9",
|
|
238
|
+
A700: "#aa00ff"
|
|
239
|
+
}, x = we, Ce = {
|
|
240
|
+
50: "#ffebee",
|
|
241
|
+
100: "#ffcdd2",
|
|
242
|
+
200: "#ef9a9a",
|
|
243
|
+
300: "#e57373",
|
|
244
|
+
400: "#ef5350",
|
|
245
|
+
500: "#f44336",
|
|
246
|
+
600: "#e53935",
|
|
247
|
+
700: "#d32f2f",
|
|
248
|
+
800: "#c62828",
|
|
249
|
+
900: "#b71c1c",
|
|
250
|
+
A100: "#ff8a80",
|
|
251
|
+
A200: "#ff5252",
|
|
252
|
+
A400: "#ff1744",
|
|
253
|
+
A700: "#d50000"
|
|
254
|
+
}, _ = Ce, De = {
|
|
255
|
+
50: "#fff3e0",
|
|
256
|
+
100: "#ffe0b2",
|
|
257
|
+
200: "#ffcc80",
|
|
258
|
+
300: "#ffb74d",
|
|
259
|
+
400: "#ffa726",
|
|
260
|
+
500: "#ff9800",
|
|
261
|
+
600: "#fb8c00",
|
|
262
|
+
700: "#f57c00",
|
|
263
|
+
800: "#ef6c00",
|
|
264
|
+
900: "#e65100",
|
|
265
|
+
A100: "#ffd180",
|
|
266
|
+
A200: "#ffab40",
|
|
267
|
+
A400: "#ff9100",
|
|
268
|
+
A700: "#ff6d00"
|
|
269
|
+
}, N = De, Se = {
|
|
270
|
+
50: "#e3f2fd",
|
|
271
|
+
100: "#bbdefb",
|
|
272
|
+
200: "#90caf9",
|
|
273
|
+
300: "#64b5f6",
|
|
274
|
+
400: "#42a5f5",
|
|
275
|
+
500: "#2196f3",
|
|
276
|
+
600: "#1e88e5",
|
|
277
|
+
700: "#1976d2",
|
|
278
|
+
800: "#1565c0",
|
|
279
|
+
900: "#0d47a1",
|
|
280
|
+
A100: "#82b1ff",
|
|
281
|
+
A200: "#448aff",
|
|
282
|
+
A400: "#2979ff",
|
|
283
|
+
A700: "#2962ff"
|
|
284
|
+
}, A = Se, Ie = {
|
|
285
|
+
50: "#e1f5fe",
|
|
286
|
+
100: "#b3e5fc",
|
|
287
|
+
200: "#81d4fa",
|
|
288
|
+
300: "#4fc3f7",
|
|
289
|
+
400: "#29b6f6",
|
|
290
|
+
500: "#03a9f4",
|
|
291
|
+
600: "#039be5",
|
|
292
|
+
700: "#0288d1",
|
|
293
|
+
800: "#0277bd",
|
|
294
|
+
900: "#01579b",
|
|
295
|
+
A100: "#80d8ff",
|
|
296
|
+
A200: "#40c4ff",
|
|
297
|
+
A400: "#00b0ff",
|
|
298
|
+
A700: "#0091ea"
|
|
299
|
+
}, E = Ie, je = {
|
|
300
|
+
50: "#e8f5e9",
|
|
301
|
+
100: "#c8e6c9",
|
|
302
|
+
200: "#a5d6a7",
|
|
303
|
+
300: "#81c784",
|
|
304
|
+
400: "#66bb6a",
|
|
305
|
+
500: "#4caf50",
|
|
306
|
+
600: "#43a047",
|
|
307
|
+
700: "#388e3c",
|
|
308
|
+
800: "#2e7d32",
|
|
309
|
+
900: "#1b5e20",
|
|
310
|
+
A100: "#b9f6ca",
|
|
311
|
+
A200: "#69f0ae",
|
|
312
|
+
A400: "#00e676",
|
|
313
|
+
A700: "#00c853"
|
|
314
|
+
}, M = je, ze = ["mode", "contrastThreshold", "tonalOffset"], P = {
|
|
315
|
+
// The colors used to style the text.
|
|
316
|
+
text: {
|
|
317
|
+
// The most important text.
|
|
318
|
+
primary: "rgba(0, 0, 0, 0.87)",
|
|
319
|
+
// Secondary text.
|
|
320
|
+
secondary: "rgba(0, 0, 0, 0.6)",
|
|
321
|
+
// Disabled text have even lower visual prominence.
|
|
322
|
+
disabled: "rgba(0, 0, 0, 0.38)"
|
|
323
|
+
},
|
|
324
|
+
// The color used to divide different elements.
|
|
325
|
+
divider: "rgba(0, 0, 0, 0.12)",
|
|
326
|
+
// The background colors used to style the surfaces.
|
|
327
|
+
// Consistency between these values is important.
|
|
328
|
+
background: {
|
|
329
|
+
paper: w.white,
|
|
330
|
+
default: w.white
|
|
331
|
+
},
|
|
332
|
+
// The colors used to style the action elements.
|
|
333
|
+
action: {
|
|
334
|
+
// The color of an active action like an icon button.
|
|
335
|
+
active: "rgba(0, 0, 0, 0.54)",
|
|
336
|
+
// The color of an hovered action.
|
|
337
|
+
hover: "rgba(0, 0, 0, 0.04)",
|
|
338
|
+
hoverOpacity: 0.04,
|
|
339
|
+
// The color of a selected action.
|
|
340
|
+
selected: "rgba(0, 0, 0, 0.08)",
|
|
341
|
+
selectedOpacity: 0.08,
|
|
342
|
+
// The color of a disabled action.
|
|
343
|
+
disabled: "rgba(0, 0, 0, 0.26)",
|
|
344
|
+
// The background color of a disabled action.
|
|
345
|
+
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
346
|
+
disabledOpacity: 0.38,
|
|
347
|
+
focus: "rgba(0, 0, 0, 0.12)",
|
|
348
|
+
focusOpacity: 0.12,
|
|
349
|
+
activatedOpacity: 0.12
|
|
350
|
+
}
|
|
351
|
+
}, z = {
|
|
352
|
+
text: {
|
|
353
|
+
primary: w.white,
|
|
354
|
+
secondary: "rgba(255, 255, 255, 0.7)",
|
|
355
|
+
disabled: "rgba(255, 255, 255, 0.5)",
|
|
356
|
+
icon: "rgba(255, 255, 255, 0.5)"
|
|
357
|
+
},
|
|
358
|
+
divider: "rgba(255, 255, 255, 0.12)",
|
|
359
|
+
background: {
|
|
360
|
+
paper: "#121212",
|
|
361
|
+
default: "#121212"
|
|
362
|
+
},
|
|
363
|
+
action: {
|
|
364
|
+
active: w.white,
|
|
365
|
+
hover: "rgba(255, 255, 255, 0.08)",
|
|
366
|
+
hoverOpacity: 0.08,
|
|
367
|
+
selected: "rgba(255, 255, 255, 0.16)",
|
|
368
|
+
selectedOpacity: 0.16,
|
|
369
|
+
disabled: "rgba(255, 255, 255, 0.3)",
|
|
370
|
+
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
371
|
+
disabledOpacity: 0.38,
|
|
372
|
+
focus: "rgba(255, 255, 255, 0.12)",
|
|
373
|
+
focusOpacity: 0.12,
|
|
374
|
+
activatedOpacity: 0.24
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
function H(e, t, r, n) {
|
|
378
|
+
const o = n.light || n, c = n.dark || n * 1.5;
|
|
379
|
+
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = me(e.main, o) : t === "dark" && (e.dark = ge(e.main, c)));
|
|
380
|
+
}
|
|
381
|
+
function Re(e = "light") {
|
|
382
|
+
return e === "dark" ? {
|
|
383
|
+
main: A[200],
|
|
384
|
+
light: A[50],
|
|
385
|
+
dark: A[400]
|
|
386
|
+
} : {
|
|
387
|
+
main: A[700],
|
|
388
|
+
light: A[400],
|
|
389
|
+
dark: A[800]
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
function Ue(e = "light") {
|
|
393
|
+
return e === "dark" ? {
|
|
394
|
+
main: x[200],
|
|
395
|
+
light: x[50],
|
|
396
|
+
dark: x[400]
|
|
397
|
+
} : {
|
|
398
|
+
main: x[500],
|
|
399
|
+
light: x[300],
|
|
400
|
+
dark: x[700]
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
function Ve(e = "light") {
|
|
404
|
+
return e === "dark" ? {
|
|
405
|
+
main: _[500],
|
|
406
|
+
light: _[300],
|
|
407
|
+
dark: _[700]
|
|
408
|
+
} : {
|
|
409
|
+
main: _[700],
|
|
410
|
+
light: _[400],
|
|
411
|
+
dark: _[800]
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function We(e = "light") {
|
|
415
|
+
return e === "dark" ? {
|
|
416
|
+
main: E[400],
|
|
417
|
+
light: E[300],
|
|
418
|
+
dark: E[700]
|
|
419
|
+
} : {
|
|
420
|
+
main: E[700],
|
|
421
|
+
light: E[500],
|
|
422
|
+
dark: E[900]
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
function Fe(e = "light") {
|
|
426
|
+
return e === "dark" ? {
|
|
427
|
+
main: M[400],
|
|
428
|
+
light: M[300],
|
|
429
|
+
dark: M[700]
|
|
430
|
+
} : {
|
|
431
|
+
main: M[800],
|
|
432
|
+
light: M[500],
|
|
433
|
+
dark: M[900]
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
function Pe(e = "light") {
|
|
437
|
+
return e === "dark" ? {
|
|
438
|
+
main: N[400],
|
|
439
|
+
light: N[300],
|
|
440
|
+
dark: N[700]
|
|
441
|
+
} : {
|
|
442
|
+
main: "#ed6c02",
|
|
443
|
+
// closest to orange[800] that pass 3:1.
|
|
444
|
+
light: N[500],
|
|
445
|
+
dark: N[900]
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
function He(e) {
|
|
449
|
+
const {
|
|
450
|
+
mode: t = "light",
|
|
451
|
+
contrastThreshold: r = 3,
|
|
452
|
+
tonalOffset: n = 0.2
|
|
453
|
+
} = e, o = I(e, ze), c = e.primary || Re(t), s = e.secondary || Ue(t), p = e.error || Ve(t), h = e.info || We(t), u = e.success || Fe(t), l = e.warning || Pe(t);
|
|
454
|
+
function m(a) {
|
|
455
|
+
const g = W(a, z.text.primary) >= r ? z.text.primary : P.text.primary;
|
|
456
|
+
if (process.env.NODE_ENV !== "production") {
|
|
457
|
+
const y = W(a, g);
|
|
458
|
+
y < 3 && console.error([`MUI: The contrast ratio of ${y}:1 for ${g} on ${a}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
459
|
+
`));
|
|
460
|
+
}
|
|
461
|
+
return g;
|
|
462
|
+
}
|
|
463
|
+
const f = ({
|
|
464
|
+
color: a,
|
|
465
|
+
name: g,
|
|
466
|
+
mainShade: y = 500,
|
|
467
|
+
lightShade: C = 300,
|
|
468
|
+
darkShade: j = 700
|
|
469
|
+
}) => {
|
|
470
|
+
if (a = v({}, a), !a.main && a[y] && (a.main = a[y]), !a.hasOwnProperty("main"))
|
|
471
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid.
|
|
472
|
+
The color object needs to have a \`main\` property or a \`${y}\` property.` : D(11, g ? ` (${g})` : "", y));
|
|
473
|
+
if (typeof a.main != "string")
|
|
474
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid.
|
|
475
|
+
\`color.main\` should be a string, but \`${JSON.stringify(a.main)}\` was provided instead.
|
|
476
|
+
|
|
477
|
+
Did you intend to use one of the following approaches?
|
|
478
|
+
|
|
479
|
+
import { green } from "@mui/material/colors";
|
|
480
|
+
|
|
481
|
+
const theme1 = createTheme({ palette: {
|
|
482
|
+
primary: green,
|
|
483
|
+
} });
|
|
484
|
+
|
|
485
|
+
const theme2 = createTheme({ palette: {
|
|
486
|
+
primary: { main: green[500] },
|
|
487
|
+
} });` : D(12, g ? ` (${g})` : "", JSON.stringify(a.main)));
|
|
488
|
+
return H(a, "light", C, n), H(a, "dark", j, n), a.contrastText || (a.contrastText = m(a.main)), a;
|
|
489
|
+
}, O = {
|
|
490
|
+
dark: z,
|
|
491
|
+
light: P
|
|
492
|
+
};
|
|
493
|
+
return process.env.NODE_ENV !== "production" && (O[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), T(v({
|
|
494
|
+
// A collection of common colors.
|
|
495
|
+
common: v({}, w),
|
|
496
|
+
// prevent mutable object.
|
|
497
|
+
// The palette mode, can be light or dark.
|
|
498
|
+
mode: t,
|
|
499
|
+
// The colors used to represent primary interface elements for a user.
|
|
500
|
+
primary: f({
|
|
501
|
+
color: c,
|
|
502
|
+
name: "primary"
|
|
503
|
+
}),
|
|
504
|
+
// The colors used to represent secondary interface elements for a user.
|
|
505
|
+
secondary: f({
|
|
506
|
+
color: s,
|
|
507
|
+
name: "secondary",
|
|
508
|
+
mainShade: "A400",
|
|
509
|
+
lightShade: "A200",
|
|
510
|
+
darkShade: "A700"
|
|
511
|
+
}),
|
|
512
|
+
// The colors used to represent interface elements that the user should be made aware of.
|
|
513
|
+
error: f({
|
|
514
|
+
color: p,
|
|
515
|
+
name: "error"
|
|
516
|
+
}),
|
|
517
|
+
// The colors used to represent potentially dangerous actions or important messages.
|
|
518
|
+
warning: f({
|
|
519
|
+
color: l,
|
|
520
|
+
name: "warning"
|
|
521
|
+
}),
|
|
522
|
+
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
523
|
+
info: f({
|
|
524
|
+
color: h,
|
|
525
|
+
name: "info"
|
|
526
|
+
}),
|
|
527
|
+
// The colors used to indicate the successful completion of an action that user triggered.
|
|
528
|
+
success: f({
|
|
529
|
+
color: u,
|
|
530
|
+
name: "success"
|
|
531
|
+
}),
|
|
532
|
+
// The grey colors.
|
|
533
|
+
grey: Te,
|
|
534
|
+
// Used by `getContrastText()` to maximize the contrast between
|
|
535
|
+
// the background and the text.
|
|
536
|
+
contrastThreshold: r,
|
|
537
|
+
// Takes a background color and returns the text color that maximizes the contrast.
|
|
538
|
+
getContrastText: m,
|
|
539
|
+
// Generate a rich color object.
|
|
540
|
+
augmentColor: f,
|
|
541
|
+
// Used by the functions below to shift a color's luminance by approximately
|
|
542
|
+
// two indexes within its tonal palette.
|
|
543
|
+
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
544
|
+
tonalOffset: n
|
|
545
|
+
}, O[t]), o);
|
|
546
|
+
}
|
|
547
|
+
const qe = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
548
|
+
function Le(e) {
|
|
549
|
+
return Math.round(e * 1e5) / 1e5;
|
|
550
|
+
}
|
|
551
|
+
const q = {
|
|
552
|
+
textTransform: "uppercase"
|
|
553
|
+
}, L = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
554
|
+
function Be(e, t) {
|
|
555
|
+
const r = typeof t == "function" ? t(e) : t, {
|
|
556
|
+
fontFamily: n = L,
|
|
557
|
+
// The default font size of the Material Specification.
|
|
558
|
+
fontSize: o = 14,
|
|
559
|
+
// px
|
|
560
|
+
fontWeightLight: c = 300,
|
|
561
|
+
fontWeightRegular: s = 400,
|
|
562
|
+
fontWeightMedium: p = 500,
|
|
563
|
+
fontWeightBold: h = 700,
|
|
564
|
+
// Tell MUI what's the font-size on the html element.
|
|
565
|
+
// 16px is the default font-size used by browsers.
|
|
566
|
+
htmlFontSize: u = 16,
|
|
567
|
+
// Apply the CSS properties to all the variants.
|
|
568
|
+
allVariants: l,
|
|
569
|
+
pxToRem: m
|
|
570
|
+
} = r, f = I(r, qe);
|
|
571
|
+
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
572
|
+
const O = o / 14, $ = m || ((y) => `${y / u * O}rem`), a = (y, C, j, te, re) => v({
|
|
573
|
+
fontFamily: n,
|
|
574
|
+
fontWeight: y,
|
|
575
|
+
fontSize: $(C),
|
|
576
|
+
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
577
|
+
lineHeight: j
|
|
578
|
+
}, n === L ? {
|
|
579
|
+
letterSpacing: `${Le(te / C)}em`
|
|
580
|
+
} : {}, re, l), g = {
|
|
581
|
+
h1: a(c, 96, 1.167, -1.5),
|
|
582
|
+
h2: a(c, 60, 1.2, -0.5),
|
|
583
|
+
h3: a(s, 48, 1.167, 0),
|
|
584
|
+
h4: a(s, 34, 1.235, 0.25),
|
|
585
|
+
h5: a(s, 24, 1.334, 0),
|
|
586
|
+
h6: a(p, 20, 1.6, 0.15),
|
|
587
|
+
subtitle1: a(s, 16, 1.75, 0.15),
|
|
588
|
+
subtitle2: a(p, 14, 1.57, 0.1),
|
|
589
|
+
body1: a(s, 16, 1.5, 0.15),
|
|
590
|
+
body2: a(s, 14, 1.43, 0.15),
|
|
591
|
+
button: a(p, 14, 1.75, 0.4, q),
|
|
592
|
+
caption: a(s, 12, 1.66, 0.4),
|
|
593
|
+
overline: a(s, 12, 2.66, 1, q),
|
|
594
|
+
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
595
|
+
inherit: {
|
|
596
|
+
fontFamily: "inherit",
|
|
597
|
+
fontWeight: "inherit",
|
|
598
|
+
fontSize: "inherit",
|
|
599
|
+
lineHeight: "inherit",
|
|
600
|
+
letterSpacing: "inherit"
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
return T(v({
|
|
604
|
+
htmlFontSize: u,
|
|
605
|
+
pxToRem: $,
|
|
606
|
+
fontFamily: n,
|
|
607
|
+
fontSize: o,
|
|
608
|
+
fontWeightLight: c,
|
|
609
|
+
fontWeightRegular: s,
|
|
610
|
+
fontWeightMedium: p,
|
|
611
|
+
fontWeightBold: h
|
|
612
|
+
}, g), f, {
|
|
613
|
+
clone: !1
|
|
614
|
+
// No need to clone deep
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
const Je = 0.2, Ge = 0.14, Ke = 0.12;
|
|
618
|
+
function i(...e) {
|
|
619
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Je})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ge})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ke})`].join(",");
|
|
620
|
+
}
|
|
621
|
+
const Ye = ["none", i(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), i(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), i(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), i(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), i(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), i(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), i(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), i(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), i(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), i(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), i(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), i(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), i(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), i(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), i(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), i(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), i(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), i(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), i(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), i(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), i(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), i(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), i(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), i(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Qe = ["duration", "easing", "delay"], Xe = {
|
|
622
|
+
// This is the most common easing curve.
|
|
623
|
+
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
624
|
+
// Objects enter the screen at full velocity from off-screen and
|
|
625
|
+
// slowly decelerate to a resting point.
|
|
626
|
+
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
627
|
+
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
|
628
|
+
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
629
|
+
// The sharp curve is used by objects that may return to the screen at any time.
|
|
630
|
+
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
631
|
+
}, Ze = {
|
|
632
|
+
shortest: 150,
|
|
633
|
+
shorter: 200,
|
|
634
|
+
short: 250,
|
|
635
|
+
// most basic recommended timing
|
|
636
|
+
standard: 300,
|
|
637
|
+
// this is to be used in complex animations
|
|
638
|
+
complex: 375,
|
|
639
|
+
// recommended when something is entering screen
|
|
640
|
+
enteringScreen: 225,
|
|
641
|
+
// recommended when something is leaving screen
|
|
642
|
+
leavingScreen: 195
|
|
643
|
+
};
|
|
644
|
+
function B(e) {
|
|
645
|
+
return `${Math.round(e)}ms`;
|
|
646
|
+
}
|
|
647
|
+
function et(e) {
|
|
648
|
+
if (!e)
|
|
649
|
+
return 0;
|
|
650
|
+
const t = e / 36;
|
|
651
|
+
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
652
|
+
}
|
|
653
|
+
function tt(e) {
|
|
654
|
+
const t = v({}, Xe, e.easing), r = v({}, Ze, e.duration);
|
|
655
|
+
return v({
|
|
656
|
+
getAutoHeightDuration: et,
|
|
657
|
+
create: (o = ["all"], c = {}) => {
|
|
658
|
+
const {
|
|
659
|
+
duration: s = r.standard,
|
|
660
|
+
easing: p = t.easeInOut,
|
|
661
|
+
delay: h = 0
|
|
662
|
+
} = c, u = I(c, Qe);
|
|
663
|
+
if (process.env.NODE_ENV !== "production") {
|
|
664
|
+
const l = (f) => typeof f == "string", m = (f) => !isNaN(parseFloat(f));
|
|
665
|
+
!l(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !m(s) && !l(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), l(p) || console.error('MUI: Argument "easing" must be a string.'), !m(h) && !l(h) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof c != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
666
|
+
`)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
|
|
667
|
+
}
|
|
668
|
+
return (Array.isArray(o) ? o : [o]).map((l) => `${l} ${typeof s == "string" ? s : B(s)} ${p} ${typeof h == "string" ? h : B(h)}`).join(",");
|
|
669
|
+
}
|
|
670
|
+
}, e, {
|
|
671
|
+
easing: t,
|
|
672
|
+
duration: r
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
const rt = {
|
|
676
|
+
mobileStepper: 1e3,
|
|
677
|
+
fab: 1050,
|
|
678
|
+
speedDial: 1050,
|
|
679
|
+
appBar: 1100,
|
|
680
|
+
drawer: 1200,
|
|
681
|
+
modal: 1300,
|
|
682
|
+
snackbar: 1400,
|
|
683
|
+
tooltip: 1500
|
|
684
|
+
}, nt = rt, at = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
685
|
+
function ot(e = {}, ...t) {
|
|
686
|
+
const {
|
|
687
|
+
mixins: r = {},
|
|
688
|
+
palette: n = {},
|
|
689
|
+
transitions: o = {},
|
|
690
|
+
typography: c = {}
|
|
691
|
+
} = e, s = I(e, at);
|
|
692
|
+
if (e.vars)
|
|
693
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : D(18));
|
|
694
|
+
const p = He(n), h = ae(e);
|
|
695
|
+
let u = T(h, {
|
|
696
|
+
mixins: le(h.breakpoints, r),
|
|
697
|
+
palette: p,
|
|
698
|
+
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
699
|
+
shadows: Ye.slice(),
|
|
700
|
+
typography: Be(p, c),
|
|
701
|
+
transitions: tt(o),
|
|
702
|
+
zIndex: v({}, nt)
|
|
703
|
+
});
|
|
704
|
+
if (u = T(u, s), u = t.reduce((l, m) => T(l, m), u), process.env.NODE_ENV !== "production") {
|
|
705
|
+
const l = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], m = (f, O) => {
|
|
706
|
+
let $;
|
|
707
|
+
for ($ in f) {
|
|
708
|
+
const a = f[$];
|
|
709
|
+
if (l.indexOf($) !== -1 && Object.keys(a).length > 0) {
|
|
710
|
+
if (process.env.NODE_ENV !== "production") {
|
|
711
|
+
const g = ie("", $);
|
|
712
|
+
console.error([`MUI: The \`${O}\` component increases the CSS specificity of the \`${$}\` internal state.`, "You can not override it like this: ", JSON.stringify(f, null, 2), "", `Instead, you need to use the '&.${g}' syntax:`, JSON.stringify({
|
|
713
|
+
root: {
|
|
714
|
+
[`&.${g}`]: a
|
|
715
|
+
}
|
|
716
|
+
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
717
|
+
`));
|
|
718
|
+
}
|
|
719
|
+
f[$] = {};
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
Object.keys(u.components).forEach((f) => {
|
|
724
|
+
const O = u.components[f].styleOverrides;
|
|
725
|
+
O && f.indexOf("Mui") === 0 && m(O, f);
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
return u.unstable_sxConfig = v({}, oe, s == null ? void 0 : s.unstable_sxConfig), u.unstable_sx = function(m) {
|
|
729
|
+
return se({
|
|
730
|
+
sx: m,
|
|
731
|
+
theme: this
|
|
732
|
+
});
|
|
733
|
+
}, u;
|
|
734
|
+
}
|
|
735
|
+
const st = ot(), it = st, ct = "$$material";
|
|
736
|
+
function dt({
|
|
737
|
+
props: e,
|
|
738
|
+
name: t
|
|
739
|
+
}) {
|
|
740
|
+
return ce({
|
|
741
|
+
props: e,
|
|
742
|
+
name: t,
|
|
743
|
+
defaultTheme: it,
|
|
744
|
+
themeId: ct
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
export {
|
|
748
|
+
ct as T,
|
|
749
|
+
ft as a,
|
|
750
|
+
it as d,
|
|
751
|
+
de as i,
|
|
752
|
+
dt as u
|
|
753
|
+
};
|