jcicl 0.0.0
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/.chunks/AppBar.js +359 -0
- package/.chunks/AppContainer.js +71 -0
- package/.chunks/AppHeader.js +31 -0
- package/.chunks/Avatar.js +38 -0
- package/.chunks/AvatarWithImage.js +36 -0
- package/.chunks/BasicPage.js +31 -0
- package/.chunks/Button.js +486 -0
- package/.chunks/ButtonBase.js +874 -0
- package/.chunks/CompactNav.js +70 -0
- package/.chunks/Divider.js +311 -0
- package/.chunks/Flex.js +21 -0
- package/.chunks/Grid.js +18 -0
- package/.chunks/Input.js +4392 -0
- package/.chunks/Menu.js +3160 -0
- package/.chunks/Nav.js +2138 -0
- package/.chunks/TransitionGroupContext.js +342 -0
- package/.chunks/createSimplePaletteValueFilter.js +17 -0
- package/.chunks/createSvgIcon.js +249 -0
- package/.chunks/emotion-styled.browser.esm.js +1032 -0
- package/.chunks/jocologo.js +4 -0
- package/.chunks/memoTheme.js +15 -0
- package/.chunks/theme.js +3314 -0
- package/base/Avatar/Avatar/index.d.ts +1 -0
- package/base/Avatar/Avatar/index.js +4 -0
- package/base/Avatar/AvatarWithImage/index.d.ts +1 -0
- package/base/Avatar/AvatarWithImage/index.js +4 -0
- package/base/Avatar/index.d.ts +2 -0
- package/base/Avatar/index.js +6 -0
- package/base/Button/index.d.ts +1 -0
- package/base/Button/index.js +4 -0
- package/base/Divider/index.d.ts +1 -0
- package/base/Divider/index.js +4 -0
- package/base/Flex/index.d.ts +1 -0
- package/base/Flex/index.js +4 -0
- package/base/Grid/index.d.ts +1 -0
- package/base/Grid/index.js +4 -0
- package/base/Input/index.d.ts +1 -0
- package/base/Input/index.js +4 -0
- package/base/index.d.ts +7 -0
- package/base/index.js +16 -0
- package/index.d.ts +3 -0
- package/index.js +22 -0
- package/package.json +82 -0
- package/supercomposite/AppBar/index.d.ts +1 -0
- package/supercomposite/AppBar/index.js +4 -0
- package/supercomposite/AppHeader/index.d.ts +1 -0
- package/supercomposite/AppHeader/index.js +4 -0
- package/supercomposite/CompactNav/index.d.ts +1 -0
- package/supercomposite/CompactNav/index.js +4 -0
- package/supercomposite/Nav/index.d.ts +2 -0
- package/supercomposite/Nav/index.js +4 -0
- package/supercomposite/index.d.ts +3 -0
- package/supercomposite/index.js +8 -0
- package/templates/AppContainer/index.d.ts +1 -0
- package/templates/AppContainer/index.js +4 -0
- package/templates/BasicPage/index.d.ts +1 -0
- package/templates/BasicPage/index.js +4 -0
- package/templates/index.d.ts +2 -0
- package/templates/index.js +6 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
var de = Object.defineProperty;
|
|
2
|
+
var ye = (e, t, o) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var C = (e, t, o) => ye(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { P } from "./theme.js";
|
|
5
|
+
import * as T from "react";
|
|
6
|
+
import pe from "react";
|
|
7
|
+
import { s as V, w as Ee, T as ve, u as L, a as Se } from "./emotion-styled.browser.esm.js";
|
|
8
|
+
function _e(e, t) {
|
|
9
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...u) {
|
|
10
|
+
return e(...u) || t(...u);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function Te(e) {
|
|
14
|
+
const {
|
|
15
|
+
prototype: t = {}
|
|
16
|
+
} = e;
|
|
17
|
+
return !!t.isReactComponent;
|
|
18
|
+
}
|
|
19
|
+
function Re(e, t, o, u, d) {
|
|
20
|
+
const c = e[t], i = d || t;
|
|
21
|
+
if (c == null || // When server-side rendering React doesn't warn either.
|
|
22
|
+
// This is not an accurate check for SSR.
|
|
23
|
+
// This is only in place for emotion compat.
|
|
24
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
25
|
+
typeof window > "u")
|
|
26
|
+
return null;
|
|
27
|
+
let f;
|
|
28
|
+
return typeof c == "function" && !Te(c) && (f = "Did you accidentally provide a plain function component instead?"), f !== void 0 ? new Error(`Invalid ${u} \`${i}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${f} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
29
|
+
}
|
|
30
|
+
const Le = _e(P.elementType, Re), De = P.oneOfType([P.func, P.object]);
|
|
31
|
+
function be(e, t) {
|
|
32
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
33
|
+
}
|
|
34
|
+
const Ce = typeof window < "u" ? T.useLayoutEffect : T.useEffect;
|
|
35
|
+
function ze(e) {
|
|
36
|
+
const t = T.useRef(e);
|
|
37
|
+
return Ce(() => {
|
|
38
|
+
t.current = e;
|
|
39
|
+
}), T.useRef((...o) => (
|
|
40
|
+
// @ts-expect-error hide `this`
|
|
41
|
+
(0, t.current)(...o)
|
|
42
|
+
)).current;
|
|
43
|
+
}
|
|
44
|
+
function ke(...e) {
|
|
45
|
+
return T.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
46
|
+
e.forEach((o) => {
|
|
47
|
+
be(o, t);
|
|
48
|
+
});
|
|
49
|
+
}, e);
|
|
50
|
+
}
|
|
51
|
+
const D = {};
|
|
52
|
+
function Pe(e, t) {
|
|
53
|
+
const o = T.useRef(D);
|
|
54
|
+
return o.current === D && (o.current = e(t)), o;
|
|
55
|
+
}
|
|
56
|
+
const $e = [];
|
|
57
|
+
function xe(e) {
|
|
58
|
+
T.useEffect(e, $e);
|
|
59
|
+
}
|
|
60
|
+
class w {
|
|
61
|
+
constructor() {
|
|
62
|
+
C(this, "currentId", null);
|
|
63
|
+
C(this, "clear", () => {
|
|
64
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
65
|
+
});
|
|
66
|
+
C(this, "disposeEffect", () => this.clear);
|
|
67
|
+
}
|
|
68
|
+
static create() {
|
|
69
|
+
return new w();
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
73
|
+
*/
|
|
74
|
+
start(t, o) {
|
|
75
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
76
|
+
this.currentId = null, o();
|
|
77
|
+
}, t);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function Ve() {
|
|
81
|
+
const e = Pe(w.create).current;
|
|
82
|
+
return xe(e.disposeEffect), e;
|
|
83
|
+
}
|
|
84
|
+
var g = { exports: {} }, s = {};
|
|
85
|
+
/** @license React v16.13.1
|
|
86
|
+
* react-is.production.min.js
|
|
87
|
+
*
|
|
88
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the MIT license found in the
|
|
91
|
+
* LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/
|
|
93
|
+
var z;
|
|
94
|
+
function he() {
|
|
95
|
+
if (z) return s;
|
|
96
|
+
z = 1;
|
|
97
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, u = e ? Symbol.for("react.fragment") : 60107, d = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, $ = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
98
|
+
function m(r) {
|
|
99
|
+
if (typeof r == "object" && r !== null) {
|
|
100
|
+
var R = r.$$typeof;
|
|
101
|
+
switch (R) {
|
|
102
|
+
case t:
|
|
103
|
+
switch (r = r.type, r) {
|
|
104
|
+
case y:
|
|
105
|
+
case p:
|
|
106
|
+
case u:
|
|
107
|
+
case c:
|
|
108
|
+
case d:
|
|
109
|
+
case v:
|
|
110
|
+
return r;
|
|
111
|
+
default:
|
|
112
|
+
switch (r = r && r.$$typeof, r) {
|
|
113
|
+
case f:
|
|
114
|
+
case E:
|
|
115
|
+
case _:
|
|
116
|
+
case S:
|
|
117
|
+
case i:
|
|
118
|
+
return r;
|
|
119
|
+
default:
|
|
120
|
+
return R;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
case o:
|
|
124
|
+
return R;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function l(r) {
|
|
129
|
+
return m(r) === p;
|
|
130
|
+
}
|
|
131
|
+
return s.AsyncMode = y, s.ConcurrentMode = p, s.ContextConsumer = f, s.ContextProvider = i, s.Element = t, s.ForwardRef = E, s.Fragment = u, s.Lazy = _, s.Memo = S, s.Portal = o, s.Profiler = c, s.StrictMode = d, s.Suspense = v, s.isAsyncMode = function(r) {
|
|
132
|
+
return l(r) || m(r) === y;
|
|
133
|
+
}, s.isConcurrentMode = l, s.isContextConsumer = function(r) {
|
|
134
|
+
return m(r) === f;
|
|
135
|
+
}, s.isContextProvider = function(r) {
|
|
136
|
+
return m(r) === i;
|
|
137
|
+
}, s.isElement = function(r) {
|
|
138
|
+
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
139
|
+
}, s.isForwardRef = function(r) {
|
|
140
|
+
return m(r) === E;
|
|
141
|
+
}, s.isFragment = function(r) {
|
|
142
|
+
return m(r) === u;
|
|
143
|
+
}, s.isLazy = function(r) {
|
|
144
|
+
return m(r) === _;
|
|
145
|
+
}, s.isMemo = function(r) {
|
|
146
|
+
return m(r) === S;
|
|
147
|
+
}, s.isPortal = function(r) {
|
|
148
|
+
return m(r) === o;
|
|
149
|
+
}, s.isProfiler = function(r) {
|
|
150
|
+
return m(r) === c;
|
|
151
|
+
}, s.isStrictMode = function(r) {
|
|
152
|
+
return m(r) === d;
|
|
153
|
+
}, s.isSuspense = function(r) {
|
|
154
|
+
return m(r) === v;
|
|
155
|
+
}, s.isValidElementType = function(r) {
|
|
156
|
+
return typeof r == "string" || typeof r == "function" || r === u || r === p || r === c || r === d || r === v || r === $ || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === S || r.$$typeof === i || r.$$typeof === f || r.$$typeof === E || r.$$typeof === h || r.$$typeof === A || r.$$typeof === M || r.$$typeof === x);
|
|
157
|
+
}, s.typeOf = m, s;
|
|
158
|
+
}
|
|
159
|
+
var a = {};
|
|
160
|
+
/** @license React v16.13.1
|
|
161
|
+
* react-is.development.js
|
|
162
|
+
*
|
|
163
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the MIT license found in the
|
|
166
|
+
* LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/
|
|
168
|
+
var k;
|
|
169
|
+
function Ae() {
|
|
170
|
+
return k || (k = 1, process.env.NODE_ENV !== "production" && function() {
|
|
171
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, u = e ? Symbol.for("react.fragment") : 60107, d = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, $ = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
172
|
+
function m(n) {
|
|
173
|
+
return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
174
|
+
n === u || n === p || n === c || n === d || n === v || n === $ || typeof n == "object" && n !== null && (n.$$typeof === _ || n.$$typeof === S || n.$$typeof === i || n.$$typeof === f || n.$$typeof === E || n.$$typeof === h || n.$$typeof === A || n.$$typeof === M || n.$$typeof === x);
|
|
175
|
+
}
|
|
176
|
+
function l(n) {
|
|
177
|
+
if (typeof n == "object" && n !== null) {
|
|
178
|
+
var I = n.$$typeof;
|
|
179
|
+
switch (I) {
|
|
180
|
+
case t:
|
|
181
|
+
var b = n.type;
|
|
182
|
+
switch (b) {
|
|
183
|
+
case y:
|
|
184
|
+
case p:
|
|
185
|
+
case u:
|
|
186
|
+
case c:
|
|
187
|
+
case d:
|
|
188
|
+
case v:
|
|
189
|
+
return b;
|
|
190
|
+
default:
|
|
191
|
+
var N = b && b.$$typeof;
|
|
192
|
+
switch (N) {
|
|
193
|
+
case f:
|
|
194
|
+
case E:
|
|
195
|
+
case _:
|
|
196
|
+
case S:
|
|
197
|
+
case i:
|
|
198
|
+
return N;
|
|
199
|
+
default:
|
|
200
|
+
return I;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
case o:
|
|
204
|
+
return I;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
var r = y, R = p, j = f, W = i, G = t, B = E, Z = u, H = _, K = S, X = o, J = c, Q = d, ee = v, F = !1;
|
|
209
|
+
function re(n) {
|
|
210
|
+
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Y(n) || l(n) === y;
|
|
211
|
+
}
|
|
212
|
+
function Y(n) {
|
|
213
|
+
return l(n) === p;
|
|
214
|
+
}
|
|
215
|
+
function te(n) {
|
|
216
|
+
return l(n) === f;
|
|
217
|
+
}
|
|
218
|
+
function ne(n) {
|
|
219
|
+
return l(n) === i;
|
|
220
|
+
}
|
|
221
|
+
function oe(n) {
|
|
222
|
+
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
223
|
+
}
|
|
224
|
+
function se(n) {
|
|
225
|
+
return l(n) === E;
|
|
226
|
+
}
|
|
227
|
+
function ae(n) {
|
|
228
|
+
return l(n) === u;
|
|
229
|
+
}
|
|
230
|
+
function ue(n) {
|
|
231
|
+
return l(n) === _;
|
|
232
|
+
}
|
|
233
|
+
function ie(n) {
|
|
234
|
+
return l(n) === S;
|
|
235
|
+
}
|
|
236
|
+
function ce(n) {
|
|
237
|
+
return l(n) === o;
|
|
238
|
+
}
|
|
239
|
+
function fe(n) {
|
|
240
|
+
return l(n) === c;
|
|
241
|
+
}
|
|
242
|
+
function le(n) {
|
|
243
|
+
return l(n) === d;
|
|
244
|
+
}
|
|
245
|
+
function me(n) {
|
|
246
|
+
return l(n) === v;
|
|
247
|
+
}
|
|
248
|
+
a.AsyncMode = r, a.ConcurrentMode = R, a.ContextConsumer = j, a.ContextProvider = W, a.Element = G, a.ForwardRef = B, a.Fragment = Z, a.Lazy = H, a.Memo = K, a.Portal = X, a.Profiler = J, a.StrictMode = Q, a.Suspense = ee, a.isAsyncMode = re, a.isConcurrentMode = Y, a.isContextConsumer = te, a.isContextProvider = ne, a.isElement = oe, a.isForwardRef = se, a.isFragment = ae, a.isLazy = ue, a.isMemo = ie, a.isPortal = ce, a.isProfiler = fe, a.isStrictMode = le, a.isSuspense = me, a.isValidElementType = m, a.typeOf = l;
|
|
249
|
+
}()), a;
|
|
250
|
+
}
|
|
251
|
+
process.env.NODE_ENV === "production" ? g.exports = he() : g.exports = Ae();
|
|
252
|
+
var Me = g.exports, q = Me, Ie = {
|
|
253
|
+
$$typeof: !0,
|
|
254
|
+
render: !0,
|
|
255
|
+
defaultProps: !0,
|
|
256
|
+
displayName: !0,
|
|
257
|
+
propTypes: !0
|
|
258
|
+
}, ge = {
|
|
259
|
+
$$typeof: !0,
|
|
260
|
+
compare: !0,
|
|
261
|
+
defaultProps: !0,
|
|
262
|
+
displayName: !0,
|
|
263
|
+
propTypes: !0,
|
|
264
|
+
type: !0
|
|
265
|
+
}, U = {};
|
|
266
|
+
U[q.ForwardRef] = Ie;
|
|
267
|
+
U[q.Memo] = ge;
|
|
268
|
+
var qe = /* @__PURE__ */ Ee(function(e, t) {
|
|
269
|
+
var o = e.styles, u = V([o], void 0, T.useContext(ve)), d = T.useRef();
|
|
270
|
+
return L(function() {
|
|
271
|
+
var c = t.key + "-global", i = new t.sheet.constructor({
|
|
272
|
+
key: c,
|
|
273
|
+
nonce: t.sheet.nonce,
|
|
274
|
+
container: t.sheet.container,
|
|
275
|
+
speedy: t.sheet.isSpeedy
|
|
276
|
+
}), f = !1, y = document.querySelector('style[data-emotion="' + c + " " + u.name + '"]');
|
|
277
|
+
return t.sheet.tags.length && (i.before = t.sheet.tags[0]), y !== null && (f = !0, y.setAttribute("data-emotion", c), i.hydrate([y])), d.current = [i, f], function() {
|
|
278
|
+
i.flush();
|
|
279
|
+
};
|
|
280
|
+
}, [t]), L(function() {
|
|
281
|
+
var c = d.current, i = c[0], f = c[1];
|
|
282
|
+
if (f) {
|
|
283
|
+
c[1] = !1;
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
if (u.next !== void 0 && Se(t, u.next, !0), i.tags.length) {
|
|
287
|
+
var y = i.tags[i.tags.length - 1].nextElementSibling;
|
|
288
|
+
i.before = y, i.flush();
|
|
289
|
+
}
|
|
290
|
+
t.insert("", u, i, !1);
|
|
291
|
+
}, [t, u.name]), null;
|
|
292
|
+
});
|
|
293
|
+
function Oe() {
|
|
294
|
+
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
295
|
+
t[o] = arguments[o];
|
|
296
|
+
return V(t);
|
|
297
|
+
}
|
|
298
|
+
var Ue = function() {
|
|
299
|
+
var t = Oe.apply(void 0, arguments), o = "animation-" + t.name;
|
|
300
|
+
return {
|
|
301
|
+
name: o,
|
|
302
|
+
styles: "@keyframes " + o + "{" + t.styles + "}",
|
|
303
|
+
anim: 1,
|
|
304
|
+
toString: function() {
|
|
305
|
+
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
function je(e, t) {
|
|
310
|
+
if (e == null) return {};
|
|
311
|
+
var o = {};
|
|
312
|
+
for (var u in e) if ({}.hasOwnProperty.call(e, u)) {
|
|
313
|
+
if (t.includes(u)) continue;
|
|
314
|
+
o[u] = e[u];
|
|
315
|
+
}
|
|
316
|
+
return o;
|
|
317
|
+
}
|
|
318
|
+
function O(e, t) {
|
|
319
|
+
return O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, u) {
|
|
320
|
+
return o.__proto__ = u, o;
|
|
321
|
+
}, O(e, t);
|
|
322
|
+
}
|
|
323
|
+
function We(e, t) {
|
|
324
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, O(e, t);
|
|
325
|
+
}
|
|
326
|
+
const Ge = pe.createContext(null);
|
|
327
|
+
export {
|
|
328
|
+
qe as G,
|
|
329
|
+
Ge as T,
|
|
330
|
+
We as _,
|
|
331
|
+
je as a,
|
|
332
|
+
Ve as b,
|
|
333
|
+
ke as c,
|
|
334
|
+
ze as d,
|
|
335
|
+
Le as e,
|
|
336
|
+
_e as f,
|
|
337
|
+
Ce as g,
|
|
338
|
+
Ue as k,
|
|
339
|
+
De as r,
|
|
340
|
+
be as s,
|
|
341
|
+
Pe as u
|
|
342
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function n(e) {
|
|
2
|
+
return typeof e.main == "string";
|
|
3
|
+
}
|
|
4
|
+
function a(e, r = []) {
|
|
5
|
+
if (!n(e))
|
|
6
|
+
return !1;
|
|
7
|
+
for (const t of r)
|
|
8
|
+
if (!e.hasOwnProperty(t) || typeof e[t] != "string")
|
|
9
|
+
return !1;
|
|
10
|
+
return !0;
|
|
11
|
+
}
|
|
12
|
+
function i(e = []) {
|
|
13
|
+
return ([, r]) => r && a(r, e);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
i as c
|
|
17
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import * as z from "react";
|
|
2
|
+
import { jsxs as I, jsx as b } from "react/jsx-runtime";
|
|
3
|
+
import { a as w, g as C, s as T, e as x, u as N, c as O, P as e, b as R } from "./theme.js";
|
|
4
|
+
import { m as j } from "./memoTheme.js";
|
|
5
|
+
function E(o) {
|
|
6
|
+
return w("MuiSvgIcon", o);
|
|
7
|
+
}
|
|
8
|
+
C("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
9
|
+
const $ = (o) => {
|
|
10
|
+
const {
|
|
11
|
+
color: r,
|
|
12
|
+
fontSize: t,
|
|
13
|
+
classes: s
|
|
14
|
+
} = o, n = {
|
|
15
|
+
root: ["root", r !== "inherit" && `color${x(r)}`, `fontSize${x(t)}`]
|
|
16
|
+
};
|
|
17
|
+
return R(n, E, s);
|
|
18
|
+
}, A = T("svg", {
|
|
19
|
+
name: "MuiSvgIcon",
|
|
20
|
+
slot: "Root",
|
|
21
|
+
overridesResolver: (o, r) => {
|
|
22
|
+
const {
|
|
23
|
+
ownerState: t
|
|
24
|
+
} = o;
|
|
25
|
+
return [r.root, t.color !== "inherit" && r[`color${x(t.color)}`], r[`fontSize${x(t.fontSize)}`]];
|
|
26
|
+
}
|
|
27
|
+
})(j(({
|
|
28
|
+
theme: o
|
|
29
|
+
}) => {
|
|
30
|
+
var r, t, s, n, c, g, a, y, p, d, l, m, v, f;
|
|
31
|
+
return {
|
|
32
|
+
userSelect: "none",
|
|
33
|
+
width: "1em",
|
|
34
|
+
height: "1em",
|
|
35
|
+
display: "inline-block",
|
|
36
|
+
flexShrink: 0,
|
|
37
|
+
transition: (n = (r = o.transitions) == null ? void 0 : r.create) == null ? void 0 : n.call(r, "fill", {
|
|
38
|
+
duration: (s = (t = (o.vars ?? o).transitions) == null ? void 0 : t.duration) == null ? void 0 : s.shorter
|
|
39
|
+
}),
|
|
40
|
+
variants: [
|
|
41
|
+
{
|
|
42
|
+
props: (i) => !i.hasSvgAsChild,
|
|
43
|
+
style: {
|
|
44
|
+
// the <svg> will define the property that has `currentColor`
|
|
45
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
46
|
+
fill: "currentColor"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
props: {
|
|
51
|
+
fontSize: "inherit"
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
fontSize: "inherit"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
props: {
|
|
59
|
+
fontSize: "small"
|
|
60
|
+
},
|
|
61
|
+
style: {
|
|
62
|
+
fontSize: ((g = (c = o.typography) == null ? void 0 : c.pxToRem) == null ? void 0 : g.call(c, 20)) || "1.25rem"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
props: {
|
|
67
|
+
fontSize: "medium"
|
|
68
|
+
},
|
|
69
|
+
style: {
|
|
70
|
+
fontSize: ((y = (a = o.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : y.call(a, 24)) || "1.5rem"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
props: {
|
|
75
|
+
fontSize: "large"
|
|
76
|
+
},
|
|
77
|
+
style: {
|
|
78
|
+
fontSize: ((d = (p = o.typography) == null ? void 0 : p.pxToRem) == null ? void 0 : d.call(p, 35)) || "2.1875rem"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
82
|
+
...Object.entries((o.vars ?? o).palette).filter(([, i]) => i && i.main).map(([i]) => {
|
|
83
|
+
var u, h;
|
|
84
|
+
return {
|
|
85
|
+
props: {
|
|
86
|
+
color: i
|
|
87
|
+
},
|
|
88
|
+
style: {
|
|
89
|
+
color: (h = (u = (o.vars ?? o).palette) == null ? void 0 : u[i]) == null ? void 0 : h.main
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}),
|
|
93
|
+
{
|
|
94
|
+
props: {
|
|
95
|
+
color: "action"
|
|
96
|
+
},
|
|
97
|
+
style: {
|
|
98
|
+
color: (m = (l = (o.vars ?? o).palette) == null ? void 0 : l.action) == null ? void 0 : m.active
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
props: {
|
|
103
|
+
color: "disabled"
|
|
104
|
+
},
|
|
105
|
+
style: {
|
|
106
|
+
color: (f = (v = (o.vars ?? o).palette) == null ? void 0 : v.action) == null ? void 0 : f.disabled
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
props: {
|
|
111
|
+
color: "inherit"
|
|
112
|
+
},
|
|
113
|
+
style: {
|
|
114
|
+
color: void 0
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
};
|
|
119
|
+
})), S = /* @__PURE__ */ z.forwardRef(function(r, t) {
|
|
120
|
+
const s = N({
|
|
121
|
+
props: r,
|
|
122
|
+
name: "MuiSvgIcon"
|
|
123
|
+
}), {
|
|
124
|
+
children: n,
|
|
125
|
+
className: c,
|
|
126
|
+
color: g = "inherit",
|
|
127
|
+
component: a = "svg",
|
|
128
|
+
fontSize: y = "medium",
|
|
129
|
+
htmlColor: p,
|
|
130
|
+
inheritViewBox: d = !1,
|
|
131
|
+
titleAccess: l,
|
|
132
|
+
viewBox: m = "0 0 24 24",
|
|
133
|
+
...v
|
|
134
|
+
} = s, f = /* @__PURE__ */ z.isValidElement(n) && n.type === "svg", i = {
|
|
135
|
+
...s,
|
|
136
|
+
color: g,
|
|
137
|
+
component: a,
|
|
138
|
+
fontSize: y,
|
|
139
|
+
instanceFontSize: r.fontSize,
|
|
140
|
+
inheritViewBox: d,
|
|
141
|
+
viewBox: m,
|
|
142
|
+
hasSvgAsChild: f
|
|
143
|
+
}, u = {};
|
|
144
|
+
d || (u.viewBox = m);
|
|
145
|
+
const h = $(i);
|
|
146
|
+
return /* @__PURE__ */ I(A, {
|
|
147
|
+
as: a,
|
|
148
|
+
className: O(h.root, c),
|
|
149
|
+
focusable: "false",
|
|
150
|
+
color: p,
|
|
151
|
+
"aria-hidden": l ? void 0 : !0,
|
|
152
|
+
role: l ? "img" : void 0,
|
|
153
|
+
ref: t,
|
|
154
|
+
...u,
|
|
155
|
+
...v,
|
|
156
|
+
...f && n.props,
|
|
157
|
+
ownerState: i,
|
|
158
|
+
children: [f ? n.props.children : n, l ? /* @__PURE__ */ b("title", {
|
|
159
|
+
children: l
|
|
160
|
+
}) : null]
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
164
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
165
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
166
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
167
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
168
|
+
/**
|
|
169
|
+
* Node passed into the SVG element.
|
|
170
|
+
*/
|
|
171
|
+
children: e.node,
|
|
172
|
+
/**
|
|
173
|
+
* Override or extend the styles applied to the component.
|
|
174
|
+
*/
|
|
175
|
+
classes: e.object,
|
|
176
|
+
/**
|
|
177
|
+
* @ignore
|
|
178
|
+
*/
|
|
179
|
+
className: e.string,
|
|
180
|
+
/**
|
|
181
|
+
* The color of the component.
|
|
182
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
183
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
184
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
185
|
+
* @default 'inherit'
|
|
186
|
+
*/
|
|
187
|
+
color: e.oneOfType([e.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
188
|
+
/**
|
|
189
|
+
* The component used for the root node.
|
|
190
|
+
* Either a string to use a HTML element or a component.
|
|
191
|
+
*/
|
|
192
|
+
component: e.elementType,
|
|
193
|
+
/**
|
|
194
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
195
|
+
* @default 'medium'
|
|
196
|
+
*/
|
|
197
|
+
fontSize: e.oneOfType([e.oneOf(["inherit", "large", "medium", "small"]), e.string]),
|
|
198
|
+
/**
|
|
199
|
+
* Applies a color attribute to the SVG element.
|
|
200
|
+
*/
|
|
201
|
+
htmlColor: e.string,
|
|
202
|
+
/**
|
|
203
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
204
|
+
* prop will be ignored.
|
|
205
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
206
|
+
* `component`'s viewBox to the root node.
|
|
207
|
+
* @default false
|
|
208
|
+
*/
|
|
209
|
+
inheritViewBox: e.bool,
|
|
210
|
+
/**
|
|
211
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
212
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
213
|
+
* If you are having issues with blurry icons you should investigate this prop.
|
|
214
|
+
*/
|
|
215
|
+
shapeRendering: e.string,
|
|
216
|
+
/**
|
|
217
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
218
|
+
*/
|
|
219
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
220
|
+
/**
|
|
221
|
+
* Provides a human-readable title for the element that contains it.
|
|
222
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
223
|
+
*/
|
|
224
|
+
titleAccess: e.string,
|
|
225
|
+
/**
|
|
226
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
227
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
228
|
+
* and you pass viewBox="0 0 50 20",
|
|
229
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
230
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
231
|
+
* @default '0 0 24 24'
|
|
232
|
+
*/
|
|
233
|
+
viewBox: e.string
|
|
234
|
+
});
|
|
235
|
+
S && (S.muiName = "SvgIcon");
|
|
236
|
+
function D(o, r) {
|
|
237
|
+
function t(s, n) {
|
|
238
|
+
return /* @__PURE__ */ b(S, {
|
|
239
|
+
"data-testid": `${r}Icon`,
|
|
240
|
+
ref: n,
|
|
241
|
+
...s,
|
|
242
|
+
children: o
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
return process.env.NODE_ENV !== "production" && (t.displayName = `${r}Icon`), t.muiName = S.muiName, /* @__PURE__ */ z.memo(/* @__PURE__ */ z.forwardRef(t));
|
|
246
|
+
}
|
|
247
|
+
export {
|
|
248
|
+
D as c
|
|
249
|
+
};
|