mada-design-system 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs112.js +1 -1
- package/index.cjs113.js +1 -1
- package/index.cjs118.js +1 -1
- package/index.cjs175.js +1 -1
- package/index.cjs177.js +1 -1
- package/index.cjs185.js +1 -1
- package/index.cjs186.js +1 -1
- package/index.cjs191.js +1 -1
- package/index.cjs192.js +1 -1
- package/index.cjs193.js +1 -1
- package/index.cjs196.js +1 -1
- package/index.cjs197.js +1 -1
- package/index.cjs198.js +1 -1
- package/index.cjs199.js +1 -1
- package/index.cjs200.js +1 -1
- package/index.cjs201.js +1 -1
- package/index.cjs202.js +1 -1
- package/index.cjs203.js +1 -1
- package/index.cjs205.js +1 -1
- package/index.cjs206.js +1 -1
- package/index.cjs209.js +1 -1
- package/index.cjs221.js +1 -1
- package/index.cjs225.js +1 -1
- package/index.cjs226.js +1 -1
- package/index.cjs227.js +1 -1
- package/index.cjs228.js +1 -1
- package/index.cjs230.js +1 -1
- package/index.cjs231.js +1 -1
- package/index.cjs29.js +1 -1
- package/index.cjs296.js +1 -1
- package/index.cjs297.js +1 -1
- package/index.cjs300.js +1 -1
- package/index.cjs301.js +1 -1
- package/index.cjs302.js +1 -1
- package/index.cjs303.js +1 -1
- package/index.cjs304.js +1 -1
- package/index.cjs306.js +1 -1
- package/index.cjs310.js +1 -1
- package/index.cjs362.js +1 -1
- package/index.cjs363.js +1 -1
- package/index.cjs364.js +1 -1
- package/index.cjs365.js +1 -15
- package/index.cjs366.js +1 -1
- package/index.cjs367.js +15 -1
- package/index.cjs368.js +1 -1
- package/index.cjs369.js +1 -1
- package/index.cjs370.js +1 -1
- package/index.cjs371.js +1 -1
- package/index.cjs372.js +1 -1
- package/index.cjs373.js +1 -1
- package/index.cjs374.js +1 -1
- package/index.cjs375.js +1 -1
- package/index.cjs376.js +1 -1
- package/index.cjs377.js +1 -1
- package/index.cjs378.js +1 -1
- package/index.cjs379.js +1 -1
- package/index.cjs380.js +1 -1
- package/index.cjs382.js +1 -1
- package/index.cjs383.js +1 -1
- package/index.cjs384.js +3 -1
- package/index.cjs385.js +1 -1
- package/index.cjs386.js +1 -1
- package/index.cjs387.js +1 -3
- package/index.cjs388.js +1 -1
- package/index.cjs389.js +1 -1
- package/index.cjs390.js +1 -1
- package/index.cjs391.js +1 -1
- package/index.cjs394.js +1 -1
- package/index.cjs403.js +1 -1
- package/index.cjs404.js +1 -1
- package/index.cjs405.js +1 -1
- package/index.cjs406.js +1 -1
- package/index.cjs407.js +1 -1
- package/index.cjs408.js +1 -1
- package/index.cjs409.js +1 -1
- package/index.cjs410.js +1 -1
- package/index.cjs411.js +1 -1
- package/index.cjs412.js +1 -1
- package/index.cjs413.js +1 -1
- package/index.cjs414.js +1 -1
- package/index.cjs415.js +1 -1
- package/index.cjs416.js +1 -1
- package/index.cjs417.js +1 -1
- package/index.cjs418.js +1 -1
- package/index.cjs419.js +1 -1
- package/index.cjs420.js +1 -1
- package/index.cjs421.js +1 -1
- package/index.cjs422.js +1 -1
- package/index.cjs423.js +1 -1
- package/index.cjs424.js +1 -1
- package/index.cjs425.js +1 -1
- package/index.cjs426.js +1 -1
- package/index.cjs427.js +1 -1
- package/index.cjs428.js +1 -1
- package/index.cjs429.js +1 -1
- package/index.cjs430.js +1 -1
- package/index.cjs431.js +1 -1
- package/index.cjs432.js +1 -1
- package/index.cjs433.js +1 -1
- package/index.cjs434.js +1 -1
- package/index.cjs435.js +1 -1
- package/index.cjs436.js +1 -1
- package/index.cjs437.js +1 -1
- package/index.cjs438.js +1 -1
- package/index.cjs439.js +1 -1
- package/index.cjs440.js +1 -1
- package/index.cjs441.js +1 -1
- package/index.cjs454.js +1 -1
- package/index.cjs455.js +1 -1
- package/index.cjs460.js +1 -1
- package/index.cjs461.js +1 -1
- package/index.cjs462.js +1 -1
- package/index.cjs463.js +1 -1
- package/index.cjs464.js +1 -1
- package/index.cjs465.js +1 -1
- package/index.cjs466.js +1 -2
- package/index.cjs467.js +1 -1
- package/index.cjs468.js +1 -1
- package/index.cjs469.js +2 -1
- package/index.cjs470.js +1 -1
- package/index.cjs471.js +1 -1
- package/index.cjs472.js +1 -1
- package/index.cjs473.js +1 -1
- package/index.cjs474.js +1 -1
- package/index.cjs475.js +1 -1
- package/index.cjs478.js +1 -1
- package/index.cjs479.js +74 -1
- package/index.cjs480.js +1 -74
- package/index.cjs481.js +1 -1
- package/index.cjs482.js +1 -1
- package/index.cjs483.js +1 -1
- package/index.cjs484.js +1 -1
- package/index.cjs486.js +1 -1
- package/index.cjs487.js +1 -1
- package/index.cjs488.js +1 -1
- package/index.cjs489.js +1 -1
- package/index.cjs490.js +1 -1
- package/index.cjs491.js +1 -1
- package/index.cjs492.js +1 -1
- package/index.cjs493.js +1 -1
- package/index.cjs494.js +1 -1
- package/index.cjs495.js +1 -1
- package/index.cjs496.js +1 -1
- package/index.cjs497.js +1 -1
- package/index.cjs498.js +1 -1
- package/index.cjs499.js +1 -1
- package/index.cjs500.js +1 -1
- package/index.es112.js +2 -2
- package/index.es113.js +1 -1
- package/index.es118.js +2 -2
- package/index.es175.js +2 -2
- package/index.es177.js +2 -2
- package/index.es185.js +1 -1
- package/index.es186.js +1 -1
- package/index.es191.js +1 -1
- package/index.es192.js +468 -221
- package/index.es193.js +5 -53
- package/index.es196.js +38 -5
- package/index.es197.js +221 -468
- package/index.es198.js +51 -15
- package/index.es199.js +15 -32
- package/index.es200.js +34 -1223
- package/index.es201.js +1223 -13
- package/index.es202.js +14 -8
- package/index.es203.js +8 -50
- package/index.es205.js +1 -1
- package/index.es206.js +47 -36
- package/index.es209.js +1 -1
- package/index.es221.js +3 -3
- package/index.es225.js +4 -4
- package/index.es226.js +1 -1
- package/index.es227.js +2 -2
- package/index.es228.js +3 -3
- package/index.es230.js +3 -3
- package/index.es231.js +1 -1
- package/index.es29.js +1 -1
- package/index.es296.js +1 -1
- package/index.es297.js +1 -1
- package/index.es300.js +3 -3
- package/index.es301.js +2 -2
- package/index.es302.js +5 -5
- package/index.es303.js +1 -1
- package/index.es304.js +1 -1
- package/index.es306.js +2 -2
- package/index.es310.js +4 -4
- package/index.es362.js +38 -2
- package/index.es363.js +3 -60
- package/index.es364.js +1 -16
- package/index.es365.js +57 -241
- package/index.es366.js +15 -72
- package/index.es367.js +243 -4
- package/index.es368.js +70 -54
- package/index.es369.js +5 -11
- package/index.es370.js +57 -6
- package/index.es371.js +11 -36
- package/index.es372.js +6 -26
- package/index.es373.js +36 -291
- package/index.es374.js +24 -88
- package/index.es375.js +291 -3
- package/index.es376.js +90 -7
- package/index.es377.js +3 -16
- package/index.es378.js +7 -146
- package/index.es379.js +16 -38
- package/index.es380.js +147 -3
- package/index.es382.js +8 -120
- package/index.es383.js +351 -7
- package/index.es384.js +94 -7
- package/index.es385.js +9 -7
- package/index.es386.js +3 -351
- package/index.es387.js +205 -94
- package/index.es388.js +120 -10
- package/index.es389.js +7 -3
- package/index.es390.js +8 -206
- package/index.es391.js +1 -1
- package/index.es394.js +1 -1
- package/index.es403.js +23 -12
- package/index.es404.js +6 -143
- package/index.es405.js +19 -41
- package/index.es406.js +32 -3
- package/index.es407.js +6 -41
- package/index.es408.js +6 -7
- package/index.es409.js +3 -76
- package/index.es410.js +3 -54
- package/index.es411.js +18 -7
- package/index.es412.js +64 -73
- package/index.es413.js +15 -23
- package/index.es414.js +15 -62
- package/index.es415.js +3 -4
- package/index.es416.js +5 -7
- package/index.es417.js +17 -32
- package/index.es418.js +17 -59
- package/index.es419.js +17 -13
- package/index.es420.js +17 -4
- package/index.es421.js +17 -10
- package/index.es422.js +17 -55
- package/index.es423.js +17 -4
- package/index.es424.js +13 -5
- package/index.es425.js +143 -17
- package/index.es426.js +43 -17
- package/index.es427.js +3 -17
- package/index.es428.js +41 -17
- package/index.es429.js +8 -17
- package/index.es430.js +76 -17
- package/index.es431.js +55 -17
- package/index.es432.js +7 -5
- package/index.es433.js +76 -21
- package/index.es434.js +23 -23
- package/index.es435.js +62 -6
- package/index.es436.js +5 -3
- package/index.es437.js +58 -3
- package/index.es438.js +12 -18
- package/index.es439.js +4 -67
- package/index.es440.js +9 -15
- package/index.es441.js +55 -15
- package/index.es454.js +2 -2
- package/index.es455.js +1 -1
- package/index.es460.js +2 -11
- package/index.es461.js +66 -3
- package/index.es462.js +65 -8
- package/index.es463.js +8 -3
- package/index.es464.js +9 -44
- package/index.es465.js +3 -24
- package/index.es466.js +4 -78
- package/index.es467.js +42 -255
- package/index.es468.js +24 -31
- package/index.es469.js +78 -6
- package/index.es470.js +247 -120
- package/index.es471.js +34 -17
- package/index.es472.js +6 -7
- package/index.es473.js +132 -2
- package/index.es474.js +17 -69
- package/index.es475.js +6 -65
- package/index.es478.js +1 -1
- package/index.es479.js +251 -2
- package/index.es480.js +8 -251
- package/index.es481.js +3 -8
- package/index.es482.js +2 -3
- package/index.es483.js +174 -2
- package/index.es484.js +2 -174
- package/index.es486.js +1 -1
- package/index.es487.js +2 -8
- package/index.es488.js +2 -7
- package/index.es489.js +7 -19
- package/index.es490.js +7 -51
- package/index.es491.js +18 -247
- package/index.es492.js +51 -43
- package/index.es493.js +247 -14
- package/index.es494.js +43 -10
- package/index.es495.js +15 -47
- package/index.es496.js +10 -26
- package/index.es497.js +37 -118
- package/index.es498.js +23 -109
- package/index.es499.js +129 -2
- package/index.es500.js +112 -2
- package/package.json +1 -1
package/index.es365.js
CHANGED
|
@@ -1,246 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// The most important text.
|
|
18
|
-
primary: "rgba(0, 0, 0, 0.87)",
|
|
19
|
-
// Secondary text.
|
|
20
|
-
secondary: "rgba(0, 0, 0, 0.6)",
|
|
21
|
-
// Disabled text have even lower visual prominence.
|
|
22
|
-
disabled: "rgba(0, 0, 0, 0.38)"
|
|
23
|
-
},
|
|
24
|
-
// The color used to divide different elements.
|
|
25
|
-
divider: "rgba(0, 0, 0, 0.12)",
|
|
26
|
-
// The background colors used to style the surfaces.
|
|
27
|
-
// Consistency between these values is important.
|
|
28
|
-
background: {
|
|
29
|
-
paper: l.white,
|
|
30
|
-
default: l.white
|
|
31
|
-
},
|
|
32
|
-
// The colors used to style the action elements.
|
|
33
|
-
action: {
|
|
34
|
-
// The color of an active action like an icon button.
|
|
35
|
-
active: "rgba(0, 0, 0, 0.54)",
|
|
36
|
-
// The color of an hovered action.
|
|
37
|
-
hover: "rgba(0, 0, 0, 0.04)",
|
|
38
|
-
hoverOpacity: 0.04,
|
|
39
|
-
// The color of a selected action.
|
|
40
|
-
selected: "rgba(0, 0, 0, 0.08)",
|
|
41
|
-
selectedOpacity: 0.08,
|
|
42
|
-
// The color of a disabled action.
|
|
43
|
-
disabled: "rgba(0, 0, 0, 0.26)",
|
|
44
|
-
// The background color of a disabled action.
|
|
45
|
-
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
46
|
-
disabledOpacity: 0.38,
|
|
47
|
-
focus: "rgba(0, 0, 0, 0.12)",
|
|
48
|
-
focusOpacity: 0.12,
|
|
49
|
-
activatedOpacity: 0.12
|
|
50
|
-
}
|
|
51
|
-
}, b = {
|
|
52
|
-
text: {
|
|
53
|
-
primary: l.white,
|
|
54
|
-
secondary: "rgba(255, 255, 255, 0.7)",
|
|
55
|
-
disabled: "rgba(255, 255, 255, 0.5)",
|
|
56
|
-
icon: "rgba(255, 255, 255, 0.5)"
|
|
57
|
-
},
|
|
58
|
-
divider: "rgba(255, 255, 255, 0.12)",
|
|
59
|
-
background: {
|
|
60
|
-
paper: "#121212",
|
|
61
|
-
default: "#121212"
|
|
62
|
-
},
|
|
63
|
-
action: {
|
|
64
|
-
active: l.white,
|
|
65
|
-
hover: "rgba(255, 255, 255, 0.08)",
|
|
66
|
-
hoverOpacity: 0.08,
|
|
67
|
-
selected: "rgba(255, 255, 255, 0.16)",
|
|
68
|
-
selectedOpacity: 0.16,
|
|
69
|
-
disabled: "rgba(255, 255, 255, 0.3)",
|
|
70
|
-
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
71
|
-
disabledOpacity: 0.38,
|
|
72
|
-
focus: "rgba(255, 255, 255, 0.12)",
|
|
73
|
-
focusOpacity: 0.12,
|
|
74
|
-
activatedOpacity: 0.24
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
function x(r, e, g, a) {
|
|
78
|
-
const p = a.light || a, h = a.dark || a * 1.5;
|
|
79
|
-
r[e] || (r.hasOwnProperty(g) ? r[e] = r[g] : e === "light" ? r.light = S(r.main, p) : e === "dark" && (r.dark = U(r.main, h)));
|
|
80
|
-
}
|
|
81
|
-
function W(r = "light") {
|
|
82
|
-
return r === "dark" ? {
|
|
83
|
-
main: c[200],
|
|
84
|
-
light: c[50],
|
|
85
|
-
dark: c[400]
|
|
86
|
-
} : {
|
|
87
|
-
main: c[700],
|
|
88
|
-
light: c[400],
|
|
89
|
-
dark: c[800]
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function j(r = "light") {
|
|
93
|
-
return r === "dark" ? {
|
|
94
|
-
main: n[200],
|
|
95
|
-
light: n[50],
|
|
96
|
-
dark: n[400]
|
|
97
|
-
} : {
|
|
98
|
-
main: n[500],
|
|
99
|
-
light: n[300],
|
|
100
|
-
dark: n[700]
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function B(r = "light") {
|
|
104
|
-
return r === "dark" ? {
|
|
105
|
-
main: s[500],
|
|
106
|
-
light: s[300],
|
|
107
|
-
dark: s[700]
|
|
108
|
-
} : {
|
|
109
|
-
main: s[700],
|
|
110
|
-
light: s[400],
|
|
111
|
-
dark: s[800]
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function L(r = "light") {
|
|
115
|
-
return r === "dark" ? {
|
|
116
|
-
main: d[400],
|
|
117
|
-
light: d[300],
|
|
118
|
-
dark: d[700]
|
|
119
|
-
} : {
|
|
120
|
-
main: d[700],
|
|
121
|
-
light: d[500],
|
|
122
|
-
dark: d[900]
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function R(r = "light") {
|
|
126
|
-
return r === "dark" ? {
|
|
127
|
-
main: m[400],
|
|
128
|
-
light: m[300],
|
|
129
|
-
dark: m[700]
|
|
130
|
-
} : {
|
|
131
|
-
main: m[800],
|
|
132
|
-
light: m[500],
|
|
133
|
-
dark: m[900]
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
function G(r = "light") {
|
|
137
|
-
return r === "dark" ? {
|
|
138
|
-
main: f[400],
|
|
139
|
-
light: f[300],
|
|
140
|
-
dark: f[700]
|
|
141
|
-
} : {
|
|
142
|
-
main: "#ed6c02",
|
|
143
|
-
// closest to orange[800] that pass 3:1.
|
|
144
|
-
light: f[500],
|
|
145
|
-
dark: f[900]
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
function ar(r) {
|
|
1
|
+
import l from "./index.es207.js";
|
|
2
|
+
import g from "./index.es208.js";
|
|
3
|
+
import v from "./index.es366.js";
|
|
4
|
+
import b from "./index.es367.js";
|
|
5
|
+
import O from "./index.es368.js";
|
|
6
|
+
import C from "./index.es369.js";
|
|
7
|
+
import E from "./index.es370.js";
|
|
8
|
+
import I from "./index.es371.js";
|
|
9
|
+
import _ from "./index.es372.js";
|
|
10
|
+
import k from "./index.es373.js";
|
|
11
|
+
import p from "./index.es374.js";
|
|
12
|
+
import N from "./index.es375.js";
|
|
13
|
+
import S from "./index.es376.js";
|
|
14
|
+
import T from "./index.es231.js";
|
|
15
|
+
const M = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
16
|
+
function B(o = {}, ...f) {
|
|
149
17
|
const {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
18
|
+
mixins: u = {},
|
|
19
|
+
palette: d = {},
|
|
20
|
+
transitions: h = {},
|
|
21
|
+
typography: y = {}
|
|
22
|
+
} = o, n = g(o, M);
|
|
23
|
+
if (o.vars)
|
|
24
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : _(18));
|
|
25
|
+
const c = b(d), m = k(o);
|
|
26
|
+
let e = p(m, {
|
|
27
|
+
mixins: v(m.breakpoints, u),
|
|
28
|
+
palette: c,
|
|
29
|
+
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
30
|
+
shadows: C.slice(),
|
|
31
|
+
typography: O(c, y),
|
|
32
|
+
transitions: E(h),
|
|
33
|
+
zIndex: l({}, I)
|
|
34
|
+
});
|
|
35
|
+
if (e = p(e, n), e = f.reduce((i, s) => p(i, s), e), process.env.NODE_ENV !== "production") {
|
|
36
|
+
const i = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], s = (t, a) => {
|
|
37
|
+
let r;
|
|
38
|
+
for (r in t) {
|
|
39
|
+
const x = t[r];
|
|
40
|
+
if (i.indexOf(r) !== -1 && Object.keys(x).length > 0) {
|
|
41
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42
|
+
const $ = T("", r);
|
|
43
|
+
}
|
|
44
|
+
t[r] = {};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
Object.keys(e.components).forEach((t) => {
|
|
49
|
+
const a = e.components[t].styleOverrides;
|
|
50
|
+
a && t.indexOf("Mui") === 0 && s(a, t);
|
|
51
|
+
});
|
|
157
52
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}) => {
|
|
165
|
-
if (t = y({}, t), !t.main && t[u] && (t.main = t[u]), !t.hasOwnProperty("main"))
|
|
166
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${o ? ` (${o})` : ""} provided to augmentColor(color) is invalid.
|
|
167
|
-
The color object needs to have a \`main\` property or a \`${u}\` property.` : w(11, o ? ` (${o})` : "", u));
|
|
168
|
-
if (typeof t.main != "string")
|
|
169
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${o ? ` (${o})` : ""} provided to augmentColor(color) is invalid.
|
|
170
|
-
\`color.main\` should be a string, but \`${JSON.stringify(t.main)}\` was provided instead.
|
|
171
|
-
|
|
172
|
-
Did you intend to use one of the following approaches?
|
|
173
|
-
|
|
174
|
-
import { green } from "@mui/material/colors";
|
|
175
|
-
|
|
176
|
-
const theme1 = createTheme({ palette: {
|
|
177
|
-
primary: green,
|
|
178
|
-
} });
|
|
179
|
-
|
|
180
|
-
const theme2 = createTheme({ palette: {
|
|
181
|
-
primary: { main: green[500] },
|
|
182
|
-
} });` : w(12, o ? ` (${o})` : "", JSON.stringify(t.main)));
|
|
183
|
-
return x(t, "light", _, a), x(t, "dark", M, a), t.contrastText || (t.contrastText = k(t.main)), t;
|
|
184
|
-
}, O = {
|
|
185
|
-
dark: b,
|
|
186
|
-
light: T
|
|
187
|
-
};
|
|
188
|
-
return process.env.NODE_ENV !== "production" && O[e], P(y({
|
|
189
|
-
// A collection of common colors.
|
|
190
|
-
common: y({}, l),
|
|
191
|
-
// prevent mutable object.
|
|
192
|
-
// The palette mode, can be light or dark.
|
|
193
|
-
mode: e,
|
|
194
|
-
// The colors used to represent primary interface elements for a user.
|
|
195
|
-
primary: i({
|
|
196
|
-
color: h,
|
|
197
|
-
name: "primary"
|
|
198
|
-
}),
|
|
199
|
-
// The colors used to represent secondary interface elements for a user.
|
|
200
|
-
secondary: i({
|
|
201
|
-
color: D,
|
|
202
|
-
name: "secondary",
|
|
203
|
-
mainShade: "A400",
|
|
204
|
-
lightShade: "A200",
|
|
205
|
-
darkShade: "A700"
|
|
206
|
-
}),
|
|
207
|
-
// The colors used to represent interface elements that the user should be made aware of.
|
|
208
|
-
error: i({
|
|
209
|
-
color: E,
|
|
210
|
-
name: "error"
|
|
211
|
-
}),
|
|
212
|
-
// The colors used to represent potentially dangerous actions or important messages.
|
|
213
|
-
warning: i({
|
|
214
|
-
color: C,
|
|
215
|
-
name: "warning"
|
|
216
|
-
}),
|
|
217
|
-
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
218
|
-
info: i({
|
|
219
|
-
color: $,
|
|
220
|
-
name: "info"
|
|
221
|
-
}),
|
|
222
|
-
// The colors used to indicate the successful completion of an action that user triggered.
|
|
223
|
-
success: i({
|
|
224
|
-
color: N,
|
|
225
|
-
name: "success"
|
|
226
|
-
}),
|
|
227
|
-
// The grey colors.
|
|
228
|
-
grey: I,
|
|
229
|
-
// Used by `getContrastText()` to maximize the contrast between
|
|
230
|
-
// the background and the text.
|
|
231
|
-
contrastThreshold: g,
|
|
232
|
-
// Takes a background color and returns the text color that maximizes the contrast.
|
|
233
|
-
getContrastText: k,
|
|
234
|
-
// Generate a rich color object.
|
|
235
|
-
augmentColor: i,
|
|
236
|
-
// Used by the functions below to shift a color's luminance by approximately
|
|
237
|
-
// two indexes within its tonal palette.
|
|
238
|
-
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
239
|
-
tonalOffset: a
|
|
240
|
-
}, O[e]), p);
|
|
53
|
+
return e.unstable_sxConfig = l({}, N, n == null ? void 0 : n.unstable_sxConfig), e.unstable_sx = function(s) {
|
|
54
|
+
return S({
|
|
55
|
+
sx: s,
|
|
56
|
+
theme: this
|
|
57
|
+
});
|
|
58
|
+
}, e;
|
|
241
59
|
}
|
|
242
60
|
export {
|
|
243
|
-
|
|
244
|
-
ar as default,
|
|
245
|
-
T as light
|
|
61
|
+
B as default
|
|
246
62
|
};
|
package/index.es366.js
CHANGED
|
@@ -1,76 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// The default font size of the Material Specification.
|
|
15
|
-
fontSize: f = 14,
|
|
16
|
-
// px
|
|
17
|
-
fontWeightLight: a = 300,
|
|
18
|
-
fontWeightRegular: t = 400,
|
|
19
|
-
fontWeightMedium: o = 500,
|
|
20
|
-
fontWeightBold: g = 700,
|
|
21
|
-
// Tell MUI what's the font-size on the html element.
|
|
22
|
-
// 16px is the default font-size used by browsers.
|
|
23
|
-
htmlFontSize: l = 16,
|
|
24
|
-
// Apply the CSS properties to all the variants.
|
|
25
|
-
allVariants: b,
|
|
26
|
-
pxToRem: S
|
|
27
|
-
} = h, W = T(h, _);
|
|
28
|
-
process.env.NODE_ENV;
|
|
29
|
-
const x = f / 14, m = S || ((s) => `${s / l * x}rem`), e = (s, u, y, z, R) => c({
|
|
30
|
-
fontFamily: r,
|
|
31
|
-
fontWeight: s,
|
|
32
|
-
fontSize: m(u),
|
|
33
|
-
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
34
|
-
lineHeight: y
|
|
35
|
-
}, r === d ? {
|
|
36
|
-
letterSpacing: `${v(z / u)}em`
|
|
37
|
-
} : {}, R, b), F = {
|
|
38
|
-
h1: e(a, 96, 1.167, -1.5),
|
|
39
|
-
h2: e(a, 60, 1.2, -0.5),
|
|
40
|
-
h3: e(t, 48, 1.167, 0),
|
|
41
|
-
h4: e(t, 34, 1.235, 0.25),
|
|
42
|
-
h5: e(t, 24, 1.334, 0),
|
|
43
|
-
h6: e(o, 20, 1.6, 0.15),
|
|
44
|
-
subtitle1: e(t, 16, 1.75, 0.15),
|
|
45
|
-
subtitle2: e(o, 14, 1.57, 0.1),
|
|
46
|
-
body1: e(t, 16, 1.5, 0.15),
|
|
47
|
-
body2: e(t, 14, 1.43, 0.15),
|
|
48
|
-
button: e(o, 14, 1.75, 0.4, p),
|
|
49
|
-
caption: e(t, 12, 1.66, 0.4),
|
|
50
|
-
overline: e(t, 12, 2.66, 1, p),
|
|
51
|
-
// 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.
|
|
52
|
-
inherit: {
|
|
53
|
-
fontFamily: "inherit",
|
|
54
|
-
fontWeight: "inherit",
|
|
55
|
-
fontSize: "inherit",
|
|
56
|
-
lineHeight: "inherit",
|
|
57
|
-
letterSpacing: "inherit"
|
|
1
|
+
import t from "./index.es207.js";
|
|
2
|
+
function a(e, i) {
|
|
3
|
+
return t({
|
|
4
|
+
toolbar: {
|
|
5
|
+
minHeight: 56,
|
|
6
|
+
[e.up("xs")]: {
|
|
7
|
+
"@media (orientation: landscape)": {
|
|
8
|
+
minHeight: 48
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
[e.up("sm")]: {
|
|
12
|
+
minHeight: 64
|
|
13
|
+
}
|
|
58
14
|
}
|
|
59
|
-
};
|
|
60
|
-
return M(c({
|
|
61
|
-
htmlFontSize: l,
|
|
62
|
-
pxToRem: m,
|
|
63
|
-
fontFamily: r,
|
|
64
|
-
fontSize: f,
|
|
65
|
-
fontWeightLight: a,
|
|
66
|
-
fontWeightRegular: t,
|
|
67
|
-
fontWeightMedium: o,
|
|
68
|
-
fontWeightBold: g
|
|
69
|
-
}, F), W, {
|
|
70
|
-
clone: !1
|
|
71
|
-
// No need to clone deep
|
|
72
|
-
});
|
|
15
|
+
}, i);
|
|
73
16
|
}
|
|
74
17
|
export {
|
|
75
|
-
|
|
18
|
+
a as default
|
|
76
19
|
};
|
package/index.es367.js
CHANGED
|
@@ -1,7 +1,246 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import y from "./index.es207.js";
|
|
2
|
+
import A from "./index.es208.js";
|
|
3
|
+
import l from "./index.es416.js";
|
|
4
|
+
import I from "./index.es417.js";
|
|
5
|
+
import n from "./index.es418.js";
|
|
6
|
+
import s from "./index.es419.js";
|
|
7
|
+
import f from "./index.es420.js";
|
|
8
|
+
import c from "./index.es421.js";
|
|
9
|
+
import d from "./index.es422.js";
|
|
10
|
+
import m from "./index.es423.js";
|
|
11
|
+
import P from "./index.es374.js";
|
|
12
|
+
import { getContrastRatio as v, lighten as S, darken as U } from "./index.es384.js";
|
|
13
|
+
import w from "./index.es372.js";
|
|
14
|
+
const V = ["mode", "contrastThreshold", "tonalOffset"], T = {
|
|
15
|
+
// The colors used to style the text.
|
|
16
|
+
text: {
|
|
17
|
+
// The most important text.
|
|
18
|
+
primary: "rgba(0, 0, 0, 0.87)",
|
|
19
|
+
// Secondary text.
|
|
20
|
+
secondary: "rgba(0, 0, 0, 0.6)",
|
|
21
|
+
// Disabled text have even lower visual prominence.
|
|
22
|
+
disabled: "rgba(0, 0, 0, 0.38)"
|
|
23
|
+
},
|
|
24
|
+
// The color used to divide different elements.
|
|
25
|
+
divider: "rgba(0, 0, 0, 0.12)",
|
|
26
|
+
// The background colors used to style the surfaces.
|
|
27
|
+
// Consistency between these values is important.
|
|
28
|
+
background: {
|
|
29
|
+
paper: l.white,
|
|
30
|
+
default: l.white
|
|
31
|
+
},
|
|
32
|
+
// The colors used to style the action elements.
|
|
33
|
+
action: {
|
|
34
|
+
// The color of an active action like an icon button.
|
|
35
|
+
active: "rgba(0, 0, 0, 0.54)",
|
|
36
|
+
// The color of an hovered action.
|
|
37
|
+
hover: "rgba(0, 0, 0, 0.04)",
|
|
38
|
+
hoverOpacity: 0.04,
|
|
39
|
+
// The color of a selected action.
|
|
40
|
+
selected: "rgba(0, 0, 0, 0.08)",
|
|
41
|
+
selectedOpacity: 0.08,
|
|
42
|
+
// The color of a disabled action.
|
|
43
|
+
disabled: "rgba(0, 0, 0, 0.26)",
|
|
44
|
+
// The background color of a disabled action.
|
|
45
|
+
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
46
|
+
disabledOpacity: 0.38,
|
|
47
|
+
focus: "rgba(0, 0, 0, 0.12)",
|
|
48
|
+
focusOpacity: 0.12,
|
|
49
|
+
activatedOpacity: 0.12
|
|
50
|
+
}
|
|
51
|
+
}, b = {
|
|
52
|
+
text: {
|
|
53
|
+
primary: l.white,
|
|
54
|
+
secondary: "rgba(255, 255, 255, 0.7)",
|
|
55
|
+
disabled: "rgba(255, 255, 255, 0.5)",
|
|
56
|
+
icon: "rgba(255, 255, 255, 0.5)"
|
|
57
|
+
},
|
|
58
|
+
divider: "rgba(255, 255, 255, 0.12)",
|
|
59
|
+
background: {
|
|
60
|
+
paper: "#121212",
|
|
61
|
+
default: "#121212"
|
|
62
|
+
},
|
|
63
|
+
action: {
|
|
64
|
+
active: l.white,
|
|
65
|
+
hover: "rgba(255, 255, 255, 0.08)",
|
|
66
|
+
hoverOpacity: 0.08,
|
|
67
|
+
selected: "rgba(255, 255, 255, 0.16)",
|
|
68
|
+
selectedOpacity: 0.16,
|
|
69
|
+
disabled: "rgba(255, 255, 255, 0.3)",
|
|
70
|
+
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
71
|
+
disabledOpacity: 0.38,
|
|
72
|
+
focus: "rgba(255, 255, 255, 0.12)",
|
|
73
|
+
focusOpacity: 0.12,
|
|
74
|
+
activatedOpacity: 0.24
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function x(r, e, g, a) {
|
|
78
|
+
const p = a.light || a, h = a.dark || a * 1.5;
|
|
79
|
+
r[e] || (r.hasOwnProperty(g) ? r[e] = r[g] : e === "light" ? r.light = S(r.main, p) : e === "dark" && (r.dark = U(r.main, h)));
|
|
80
|
+
}
|
|
81
|
+
function W(r = "light") {
|
|
82
|
+
return r === "dark" ? {
|
|
83
|
+
main: c[200],
|
|
84
|
+
light: c[50],
|
|
85
|
+
dark: c[400]
|
|
86
|
+
} : {
|
|
87
|
+
main: c[700],
|
|
88
|
+
light: c[400],
|
|
89
|
+
dark: c[800]
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function j(r = "light") {
|
|
93
|
+
return r === "dark" ? {
|
|
94
|
+
main: n[200],
|
|
95
|
+
light: n[50],
|
|
96
|
+
dark: n[400]
|
|
97
|
+
} : {
|
|
98
|
+
main: n[500],
|
|
99
|
+
light: n[300],
|
|
100
|
+
dark: n[700]
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function B(r = "light") {
|
|
104
|
+
return r === "dark" ? {
|
|
105
|
+
main: s[500],
|
|
106
|
+
light: s[300],
|
|
107
|
+
dark: s[700]
|
|
108
|
+
} : {
|
|
109
|
+
main: s[700],
|
|
110
|
+
light: s[400],
|
|
111
|
+
dark: s[800]
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function L(r = "light") {
|
|
115
|
+
return r === "dark" ? {
|
|
116
|
+
main: d[400],
|
|
117
|
+
light: d[300],
|
|
118
|
+
dark: d[700]
|
|
119
|
+
} : {
|
|
120
|
+
main: d[700],
|
|
121
|
+
light: d[500],
|
|
122
|
+
dark: d[900]
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function R(r = "light") {
|
|
126
|
+
return r === "dark" ? {
|
|
127
|
+
main: m[400],
|
|
128
|
+
light: m[300],
|
|
129
|
+
dark: m[700]
|
|
130
|
+
} : {
|
|
131
|
+
main: m[800],
|
|
132
|
+
light: m[500],
|
|
133
|
+
dark: m[900]
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function G(r = "light") {
|
|
137
|
+
return r === "dark" ? {
|
|
138
|
+
main: f[400],
|
|
139
|
+
light: f[300],
|
|
140
|
+
dark: f[700]
|
|
141
|
+
} : {
|
|
142
|
+
main: "#ed6c02",
|
|
143
|
+
// closest to orange[800] that pass 3:1.
|
|
144
|
+
light: f[500],
|
|
145
|
+
dark: f[900]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function ar(r) {
|
|
149
|
+
const {
|
|
150
|
+
mode: e = "light",
|
|
151
|
+
contrastThreshold: g = 3,
|
|
152
|
+
tonalOffset: a = 0.2
|
|
153
|
+
} = r, p = A(r, V), h = r.primary || W(e), D = r.secondary || j(e), E = r.error || B(e), $ = r.info || L(e), N = r.success || R(e), C = r.warning || G(e);
|
|
154
|
+
function k(t) {
|
|
155
|
+
const o = v(t, b.text.primary) >= g ? b.text.primary : T.text.primary;
|
|
156
|
+
return process.env.NODE_ENV !== "production" && v(t, o) < 3, o;
|
|
157
|
+
}
|
|
158
|
+
const i = ({
|
|
159
|
+
color: t,
|
|
160
|
+
name: o,
|
|
161
|
+
mainShade: u = 500,
|
|
162
|
+
lightShade: _ = 300,
|
|
163
|
+
darkShade: M = 700
|
|
164
|
+
}) => {
|
|
165
|
+
if (t = y({}, t), !t.main && t[u] && (t.main = t[u]), !t.hasOwnProperty("main"))
|
|
166
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${o ? ` (${o})` : ""} provided to augmentColor(color) is invalid.
|
|
167
|
+
The color object needs to have a \`main\` property or a \`${u}\` property.` : w(11, o ? ` (${o})` : "", u));
|
|
168
|
+
if (typeof t.main != "string")
|
|
169
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${o ? ` (${o})` : ""} provided to augmentColor(color) is invalid.
|
|
170
|
+
\`color.main\` should be a string, but \`${JSON.stringify(t.main)}\` was provided instead.
|
|
171
|
+
|
|
172
|
+
Did you intend to use one of the following approaches?
|
|
173
|
+
|
|
174
|
+
import { green } from "@mui/material/colors";
|
|
175
|
+
|
|
176
|
+
const theme1 = createTheme({ palette: {
|
|
177
|
+
primary: green,
|
|
178
|
+
} });
|
|
179
|
+
|
|
180
|
+
const theme2 = createTheme({ palette: {
|
|
181
|
+
primary: { main: green[500] },
|
|
182
|
+
} });` : w(12, o ? ` (${o})` : "", JSON.stringify(t.main)));
|
|
183
|
+
return x(t, "light", _, a), x(t, "dark", M, a), t.contrastText || (t.contrastText = k(t.main)), t;
|
|
184
|
+
}, O = {
|
|
185
|
+
dark: b,
|
|
186
|
+
light: T
|
|
187
|
+
};
|
|
188
|
+
return process.env.NODE_ENV !== "production" && O[e], P(y({
|
|
189
|
+
// A collection of common colors.
|
|
190
|
+
common: y({}, l),
|
|
191
|
+
// prevent mutable object.
|
|
192
|
+
// The palette mode, can be light or dark.
|
|
193
|
+
mode: e,
|
|
194
|
+
// The colors used to represent primary interface elements for a user.
|
|
195
|
+
primary: i({
|
|
196
|
+
color: h,
|
|
197
|
+
name: "primary"
|
|
198
|
+
}),
|
|
199
|
+
// The colors used to represent secondary interface elements for a user.
|
|
200
|
+
secondary: i({
|
|
201
|
+
color: D,
|
|
202
|
+
name: "secondary",
|
|
203
|
+
mainShade: "A400",
|
|
204
|
+
lightShade: "A200",
|
|
205
|
+
darkShade: "A700"
|
|
206
|
+
}),
|
|
207
|
+
// The colors used to represent interface elements that the user should be made aware of.
|
|
208
|
+
error: i({
|
|
209
|
+
color: E,
|
|
210
|
+
name: "error"
|
|
211
|
+
}),
|
|
212
|
+
// The colors used to represent potentially dangerous actions or important messages.
|
|
213
|
+
warning: i({
|
|
214
|
+
color: C,
|
|
215
|
+
name: "warning"
|
|
216
|
+
}),
|
|
217
|
+
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
218
|
+
info: i({
|
|
219
|
+
color: $,
|
|
220
|
+
name: "info"
|
|
221
|
+
}),
|
|
222
|
+
// The colors used to indicate the successful completion of an action that user triggered.
|
|
223
|
+
success: i({
|
|
224
|
+
color: N,
|
|
225
|
+
name: "success"
|
|
226
|
+
}),
|
|
227
|
+
// The grey colors.
|
|
228
|
+
grey: I,
|
|
229
|
+
// Used by `getContrastText()` to maximize the contrast between
|
|
230
|
+
// the background and the text.
|
|
231
|
+
contrastThreshold: g,
|
|
232
|
+
// Takes a background color and returns the text color that maximizes the contrast.
|
|
233
|
+
getContrastText: k,
|
|
234
|
+
// Generate a rich color object.
|
|
235
|
+
augmentColor: i,
|
|
236
|
+
// Used by the functions below to shift a color's luminance by approximately
|
|
237
|
+
// two indexes within its tonal palette.
|
|
238
|
+
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
239
|
+
tonalOffset: a
|
|
240
|
+
}, O[e]), p);
|
|
3
241
|
}
|
|
4
|
-
const t = ["none", a(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), a(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), a(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), a(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), a(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), a(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), a(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), a(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), a(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), a(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), a(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), a(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), a(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), a(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), a(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), a(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), a(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), a(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), a(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), a(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), a(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), a(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), a(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), a(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], s = t;
|
|
5
242
|
export {
|
|
6
|
-
|
|
243
|
+
b as dark,
|
|
244
|
+
ar as default,
|
|
245
|
+
T as light
|
|
7
246
|
};
|