@hybridcore/ui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -40
- package/dist/components/card/index.js +334 -762
- package/dist/components/card/styled.js +7 -6
- package/dist/styled-BG5UIpPU.js +3459 -0
- package/package.json +2 -3
- package/dist/styled-r6FrxDIi.js +0 -4505
|
@@ -1,54 +1,133 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as s, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { Box as f, Avatar as P } from "@mui/material";
|
|
3
|
+
import { _ as d, P as n, g as C, s as v, a as O, c as _, e as U, L, b as V, d as H, f as z, h as q } from "../../styled-BG5UIpPU.js";
|
|
4
|
+
import * as y from "react";
|
|
5
|
+
function A(t) {
|
|
6
|
+
var e, r, o = "";
|
|
7
|
+
if (typeof t == "string" || typeof t == "number") o += t;
|
|
8
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
9
|
+
var i = t.length;
|
|
10
|
+
for (e = 0; e < i; e++) t[e] && (r = A(t[e])) && (o && (o += " "), o += r);
|
|
11
|
+
} else for (r in t) t[r] && (o && (o += " "), o += r);
|
|
12
|
+
return o;
|
|
6
13
|
}
|
|
7
|
-
|
|
8
|
-
|
|
14
|
+
function M() {
|
|
15
|
+
for (var t, e, r = 0, o = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e = A(t)) && (o && (o += " "), o += e);
|
|
16
|
+
return o;
|
|
17
|
+
}
|
|
18
|
+
function T(t, e, r = void 0) {
|
|
19
|
+
const o = {};
|
|
20
|
+
return Object.keys(t).forEach(
|
|
21
|
+
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
22
|
+
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
23
|
+
(i) => {
|
|
24
|
+
o[i] = t[i].reduce((a, c) => {
|
|
25
|
+
if (c) {
|
|
26
|
+
const l = e(c);
|
|
27
|
+
l !== "" && a.push(l), r && r[c] && a.push(r[c]);
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
}, []).join(" ");
|
|
31
|
+
}
|
|
32
|
+
), o;
|
|
33
|
+
}
|
|
34
|
+
function W(t, e) {
|
|
35
|
+
const r = d({}, e);
|
|
36
|
+
return Object.keys(t).forEach((o) => {
|
|
37
|
+
if (o.toString().match(/^(components|slots)$/))
|
|
38
|
+
r[o] = d({}, t[o], r[o]);
|
|
39
|
+
else if (o.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
40
|
+
const i = t[o] || {}, a = e[o];
|
|
41
|
+
r[o] = {}, !a || !Object.keys(a) ? r[o] = i : !i || !Object.keys(i) ? r[o] = a : (r[o] = d({}, a), Object.keys(i).forEach((c) => {
|
|
42
|
+
r[o][c] = W(i[c], a[c]);
|
|
43
|
+
}));
|
|
44
|
+
} else r[o] === void 0 && (r[o] = t[o]);
|
|
45
|
+
}), r;
|
|
46
|
+
}
|
|
47
|
+
const F = /* @__PURE__ */ y.createContext(void 0);
|
|
48
|
+
process.env.NODE_ENV !== "production" && (n.node, n.object);
|
|
49
|
+
function G(t) {
|
|
9
50
|
const {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
51
|
+
theme: e,
|
|
52
|
+
name: r,
|
|
53
|
+
props: o
|
|
54
|
+
} = t;
|
|
55
|
+
if (!e || !e.components || !e.components[r])
|
|
56
|
+
return o;
|
|
57
|
+
const i = e.components[r];
|
|
58
|
+
return i.defaultProps ? W(i.defaultProps, o) : !i.styleOverrides && !i.variants ? W(i, o) : o;
|
|
59
|
+
}
|
|
60
|
+
function J({
|
|
61
|
+
props: t,
|
|
62
|
+
name: e
|
|
63
|
+
}) {
|
|
64
|
+
const r = y.useContext(F);
|
|
65
|
+
return G({
|
|
66
|
+
props: t,
|
|
67
|
+
name: e,
|
|
68
|
+
theme: {
|
|
69
|
+
components: r
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
process.env.NODE_ENV !== "production" && (n.node, n.object.isRequired);
|
|
74
|
+
function j(t) {
|
|
75
|
+
return J(t);
|
|
76
|
+
}
|
|
77
|
+
function w(t, e, r = "Mui") {
|
|
78
|
+
const o = {};
|
|
79
|
+
return e.forEach((i) => {
|
|
80
|
+
o[i] = C(t, i, r);
|
|
81
|
+
}), o;
|
|
82
|
+
}
|
|
83
|
+
function K(t) {
|
|
84
|
+
return C("MuiCardActions", t);
|
|
85
|
+
}
|
|
86
|
+
w("MuiCardActions", ["root", "spacing"]);
|
|
87
|
+
const Q = ["disableSpacing", "className"], X = (t) => {
|
|
88
|
+
const {
|
|
89
|
+
classes: e,
|
|
90
|
+
disableSpacing: r
|
|
91
|
+
} = t;
|
|
92
|
+
return T({
|
|
93
|
+
root: ["root", !r && "spacing"]
|
|
94
|
+
}, K, e);
|
|
95
|
+
}, Y = v("div", {
|
|
17
96
|
name: "MuiCardActions",
|
|
18
97
|
slot: "Root",
|
|
19
|
-
overridesResolver: (
|
|
98
|
+
overridesResolver: (t, e) => {
|
|
20
99
|
const {
|
|
21
|
-
ownerState:
|
|
22
|
-
} =
|
|
23
|
-
return [
|
|
100
|
+
ownerState: r
|
|
101
|
+
} = t;
|
|
102
|
+
return [e.root, !r.disableSpacing && e.spacing];
|
|
24
103
|
}
|
|
25
104
|
})(({
|
|
26
|
-
ownerState:
|
|
27
|
-
}) =>
|
|
105
|
+
ownerState: t
|
|
106
|
+
}) => d({
|
|
28
107
|
display: "flex",
|
|
29
108
|
alignItems: "center",
|
|
30
109
|
padding: 8
|
|
31
|
-
}, !
|
|
110
|
+
}, !t.disableSpacing && {
|
|
32
111
|
"& > :not(style) ~ :not(style)": {
|
|
33
112
|
marginLeft: 8
|
|
34
113
|
}
|
|
35
|
-
})),
|
|
36
|
-
const
|
|
37
|
-
props:
|
|
114
|
+
})), D = /* @__PURE__ */ y.forwardRef(function(e, r) {
|
|
115
|
+
const o = j({
|
|
116
|
+
props: e,
|
|
38
117
|
name: "MuiCardActions"
|
|
39
118
|
}), {
|
|
40
|
-
disableSpacing:
|
|
119
|
+
disableSpacing: i = !1,
|
|
41
120
|
className: a
|
|
42
|
-
} =
|
|
43
|
-
disableSpacing:
|
|
44
|
-
}),
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
className:
|
|
47
|
-
ownerState:
|
|
48
|
-
ref:
|
|
49
|
-
},
|
|
121
|
+
} = o, c = O(o, Q), l = d({}, o, {
|
|
122
|
+
disableSpacing: i
|
|
123
|
+
}), p = X(l);
|
|
124
|
+
return /* @__PURE__ */ s(Y, d({
|
|
125
|
+
className: M(p.root, a),
|
|
126
|
+
ownerState: l,
|
|
127
|
+
ref: r
|
|
128
|
+
}, c));
|
|
50
129
|
});
|
|
51
|
-
process.env.NODE_ENV !== "production" && (
|
|
130
|
+
process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
52
131
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
53
132
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
54
133
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -56,63 +135,63 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
56
135
|
/**
|
|
57
136
|
* The content of the component.
|
|
58
137
|
*/
|
|
59
|
-
children:
|
|
138
|
+
children: n.node,
|
|
60
139
|
/**
|
|
61
140
|
* Override or extend the styles applied to the component.
|
|
62
141
|
*/
|
|
63
|
-
classes:
|
|
142
|
+
classes: n.object,
|
|
64
143
|
/**
|
|
65
144
|
* @ignore
|
|
66
145
|
*/
|
|
67
|
-
className:
|
|
146
|
+
className: n.string,
|
|
68
147
|
/**
|
|
69
148
|
* If `true`, the actions do not have additional margin.
|
|
70
149
|
* @default false
|
|
71
150
|
*/
|
|
72
|
-
disableSpacing:
|
|
151
|
+
disableSpacing: n.bool,
|
|
73
152
|
/**
|
|
74
153
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
75
154
|
*/
|
|
76
|
-
sx:
|
|
155
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
77
156
|
});
|
|
78
|
-
function
|
|
79
|
-
return
|
|
157
|
+
function Z(t) {
|
|
158
|
+
return C("MuiCardContent", t);
|
|
80
159
|
}
|
|
81
|
-
|
|
82
|
-
const
|
|
160
|
+
w("MuiCardContent", ["root"]);
|
|
161
|
+
const tt = ["className", "component"], et = (t) => {
|
|
83
162
|
const {
|
|
84
|
-
classes:
|
|
85
|
-
} =
|
|
86
|
-
return
|
|
163
|
+
classes: e
|
|
164
|
+
} = t;
|
|
165
|
+
return T({
|
|
87
166
|
root: ["root"]
|
|
88
|
-
},
|
|
89
|
-
},
|
|
167
|
+
}, Z, e);
|
|
168
|
+
}, ot = v("div", {
|
|
90
169
|
name: "MuiCardContent",
|
|
91
170
|
slot: "Root",
|
|
92
|
-
overridesResolver: (
|
|
171
|
+
overridesResolver: (t, e) => e.root
|
|
93
172
|
})(() => ({
|
|
94
173
|
padding: 16,
|
|
95
174
|
"&:last-child": {
|
|
96
175
|
paddingBottom: 24
|
|
97
176
|
}
|
|
98
|
-
})),
|
|
99
|
-
const
|
|
100
|
-
props:
|
|
177
|
+
})), S = /* @__PURE__ */ y.forwardRef(function(e, r) {
|
|
178
|
+
const o = j({
|
|
179
|
+
props: e,
|
|
101
180
|
name: "MuiCardContent"
|
|
102
181
|
}), {
|
|
103
|
-
className:
|
|
182
|
+
className: i,
|
|
104
183
|
component: a = "div"
|
|
105
|
-
} =
|
|
184
|
+
} = o, c = O(o, tt), l = d({}, o, {
|
|
106
185
|
component: a
|
|
107
|
-
}),
|
|
108
|
-
return /* @__PURE__ */
|
|
186
|
+
}), p = et(l);
|
|
187
|
+
return /* @__PURE__ */ s(ot, d({
|
|
109
188
|
as: a,
|
|
110
|
-
className:
|
|
111
|
-
ownerState:
|
|
112
|
-
ref:
|
|
113
|
-
},
|
|
189
|
+
className: M(p.root, i),
|
|
190
|
+
ownerState: l,
|
|
191
|
+
ref: r
|
|
192
|
+
}, c));
|
|
114
193
|
});
|
|
115
|
-
process.env.NODE_ENV !== "production" && (
|
|
194
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
116
195
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
117
196
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
118
197
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -120,93 +199,98 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
|
120
199
|
/**
|
|
121
200
|
* The content of the component.
|
|
122
201
|
*/
|
|
123
|
-
children:
|
|
202
|
+
children: n.node,
|
|
124
203
|
/**
|
|
125
204
|
* Override or extend the styles applied to the component.
|
|
126
205
|
*/
|
|
127
|
-
classes:
|
|
206
|
+
classes: n.object,
|
|
128
207
|
/**
|
|
129
208
|
* @ignore
|
|
130
209
|
*/
|
|
131
|
-
className:
|
|
210
|
+
className: n.string,
|
|
132
211
|
/**
|
|
133
212
|
* The component used for the root node.
|
|
134
213
|
* Either a string to use a HTML element or a component.
|
|
135
214
|
*/
|
|
136
|
-
component:
|
|
215
|
+
component: n.elementType,
|
|
137
216
|
/**
|
|
138
217
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
139
218
|
*/
|
|
140
|
-
sx:
|
|
219
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
141
220
|
});
|
|
142
|
-
function
|
|
143
|
-
return
|
|
221
|
+
function nt(t, e) {
|
|
222
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...o) {
|
|
223
|
+
return t(...o) || e(...o);
|
|
224
|
+
};
|
|
144
225
|
}
|
|
145
|
-
|
|
146
|
-
|
|
226
|
+
function rt(t) {
|
|
227
|
+
return C("MuiCardMedia", t);
|
|
228
|
+
}
|
|
229
|
+
w("MuiCardMedia", ["root", "media", "img"]);
|
|
230
|
+
const it = ["children", "className", "component", "image", "src", "style"], st = (t) => {
|
|
147
231
|
const {
|
|
148
|
-
classes:
|
|
149
|
-
isMediaComponent:
|
|
150
|
-
isImageComponent:
|
|
151
|
-
} =
|
|
152
|
-
return
|
|
153
|
-
root: ["root",
|
|
154
|
-
},
|
|
155
|
-
},
|
|
232
|
+
classes: e,
|
|
233
|
+
isMediaComponent: r,
|
|
234
|
+
isImageComponent: o
|
|
235
|
+
} = t;
|
|
236
|
+
return T({
|
|
237
|
+
root: ["root", r && "media", o && "img"]
|
|
238
|
+
}, rt, e);
|
|
239
|
+
}, at = v("div", {
|
|
156
240
|
name: "MuiCardMedia",
|
|
157
241
|
slot: "Root",
|
|
158
|
-
overridesResolver: (
|
|
242
|
+
overridesResolver: (t, e) => {
|
|
159
243
|
const {
|
|
160
|
-
ownerState:
|
|
161
|
-
} =
|
|
162
|
-
isMediaComponent:
|
|
163
|
-
isImageComponent:
|
|
164
|
-
} =
|
|
165
|
-
return [
|
|
244
|
+
ownerState: r
|
|
245
|
+
} = t, {
|
|
246
|
+
isMediaComponent: o,
|
|
247
|
+
isImageComponent: i
|
|
248
|
+
} = r;
|
|
249
|
+
return [e.root, o && e.media, i && e.img];
|
|
166
250
|
}
|
|
167
251
|
})(({
|
|
168
|
-
ownerState:
|
|
169
|
-
}) =>
|
|
252
|
+
ownerState: t
|
|
253
|
+
}) => d({
|
|
170
254
|
display: "block",
|
|
171
255
|
backgroundSize: "cover",
|
|
172
256
|
backgroundRepeat: "no-repeat",
|
|
173
257
|
backgroundPosition: "center"
|
|
174
|
-
},
|
|
258
|
+
}, t.isMediaComponent && {
|
|
175
259
|
width: "100%"
|
|
176
|
-
},
|
|
260
|
+
}, t.isImageComponent && {
|
|
177
261
|
// ⚠️ object-fit is not supported by IE11.
|
|
178
262
|
objectFit: "cover"
|
|
179
|
-
})),
|
|
180
|
-
const
|
|
181
|
-
props:
|
|
263
|
+
})), ct = ["video", "audio", "picture", "iframe", "img"], lt = ["picture", "img"], B = /* @__PURE__ */ y.forwardRef(function(e, r) {
|
|
264
|
+
const o = j({
|
|
265
|
+
props: e,
|
|
182
266
|
name: "MuiCardMedia"
|
|
183
267
|
}), {
|
|
184
|
-
children:
|
|
268
|
+
children: i,
|
|
185
269
|
className: a,
|
|
186
|
-
component:
|
|
187
|
-
image:
|
|
188
|
-
src:
|
|
189
|
-
style:
|
|
190
|
-
} =
|
|
191
|
-
backgroundImage: `url("${
|
|
192
|
-
},
|
|
193
|
-
component:
|
|
270
|
+
component: c = "div",
|
|
271
|
+
image: l,
|
|
272
|
+
src: p,
|
|
273
|
+
style: g
|
|
274
|
+
} = o, E = O(o, it), m = ct.indexOf(c) !== -1, b = !m && l ? d({
|
|
275
|
+
backgroundImage: `url("${l}")`
|
|
276
|
+
}, g) : g, x = d({}, o, {
|
|
277
|
+
component: c,
|
|
194
278
|
isMediaComponent: m,
|
|
195
|
-
isImageComponent:
|
|
196
|
-
}),
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
className:
|
|
199
|
-
as:
|
|
200
|
-
role: !m &&
|
|
201
|
-
ref:
|
|
202
|
-
style:
|
|
203
|
-
ownerState:
|
|
204
|
-
src: m ?
|
|
205
|
-
},
|
|
206
|
-
children:
|
|
279
|
+
isImageComponent: lt.indexOf(c) !== -1
|
|
280
|
+
}), R = st(x);
|
|
281
|
+
return /* @__PURE__ */ s(at, d({
|
|
282
|
+
className: M(R.root, a),
|
|
283
|
+
as: c,
|
|
284
|
+
role: !m && l ? "img" : void 0,
|
|
285
|
+
ref: r,
|
|
286
|
+
style: b,
|
|
287
|
+
ownerState: x,
|
|
288
|
+
src: m ? l || p : void 0
|
|
289
|
+
}, E, {
|
|
290
|
+
children: i
|
|
207
291
|
}));
|
|
208
292
|
});
|
|
209
|
-
process.env.NODE_ENV !== "production" && (
|
|
293
|
+
process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
210
294
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
211
295
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
212
296
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -214,85 +298,85 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
214
298
|
/**
|
|
215
299
|
* The content of the component.
|
|
216
300
|
*/
|
|
217
|
-
children:
|
|
301
|
+
children: nt(n.node, (t) => !t.children && !t.image && !t.src && !t.component ? new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified.") : null),
|
|
218
302
|
/**
|
|
219
303
|
* Override or extend the styles applied to the component.
|
|
220
304
|
*/
|
|
221
|
-
classes:
|
|
305
|
+
classes: n.object,
|
|
222
306
|
/**
|
|
223
307
|
* @ignore
|
|
224
308
|
*/
|
|
225
|
-
className:
|
|
309
|
+
className: n.string,
|
|
226
310
|
/**
|
|
227
311
|
* The component used for the root node.
|
|
228
312
|
* Either a string to use a HTML element or a component.
|
|
229
313
|
*/
|
|
230
|
-
component:
|
|
314
|
+
component: n.elementType,
|
|
231
315
|
/**
|
|
232
316
|
* Image to be displayed as a background image.
|
|
233
317
|
* Either `image` or `src` prop must be specified.
|
|
234
318
|
* Note that caller must specify height otherwise the image will not be visible.
|
|
235
319
|
*/
|
|
236
|
-
image:
|
|
320
|
+
image: n.string,
|
|
237
321
|
/**
|
|
238
322
|
* An alias for `image` property.
|
|
239
323
|
* Available only with media components.
|
|
240
324
|
* Media components: `video`, `audio`, `picture`, `iframe`, `img`.
|
|
241
325
|
*/
|
|
242
|
-
src:
|
|
326
|
+
src: n.string,
|
|
243
327
|
/**
|
|
244
328
|
* @ignore
|
|
245
329
|
*/
|
|
246
|
-
style:
|
|
330
|
+
style: n.object,
|
|
247
331
|
/**
|
|
248
332
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
249
333
|
*/
|
|
250
|
-
sx:
|
|
334
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
251
335
|
});
|
|
252
|
-
function
|
|
253
|
-
return
|
|
336
|
+
function dt(t) {
|
|
337
|
+
return C("MuiTypography", t);
|
|
254
338
|
}
|
|
255
|
-
|
|
256
|
-
const
|
|
339
|
+
w("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
340
|
+
const pt = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], ut = (t) => {
|
|
257
341
|
const {
|
|
258
|
-
align:
|
|
259
|
-
gutterBottom:
|
|
260
|
-
noWrap:
|
|
261
|
-
paragraph:
|
|
342
|
+
align: e,
|
|
343
|
+
gutterBottom: r,
|
|
344
|
+
noWrap: o,
|
|
345
|
+
paragraph: i,
|
|
262
346
|
variant: a,
|
|
263
|
-
classes:
|
|
264
|
-
} =
|
|
265
|
-
root: ["root", a,
|
|
347
|
+
classes: c
|
|
348
|
+
} = t, l = {
|
|
349
|
+
root: ["root", a, t.align !== "inherit" && `align${_(e)}`, r && "gutterBottom", o && "noWrap", i && "paragraph"]
|
|
266
350
|
};
|
|
267
|
-
return
|
|
268
|
-
},
|
|
351
|
+
return T(l, dt, c);
|
|
352
|
+
}, ht = v("span", {
|
|
269
353
|
name: "MuiTypography",
|
|
270
354
|
slot: "Root",
|
|
271
|
-
overridesResolver: (
|
|
355
|
+
overridesResolver: (t, e) => {
|
|
272
356
|
const {
|
|
273
|
-
ownerState:
|
|
274
|
-
} =
|
|
275
|
-
return [
|
|
357
|
+
ownerState: r
|
|
358
|
+
} = t;
|
|
359
|
+
return [e.root, r.variant && e[r.variant], r.align !== "inherit" && e[`align${_(r.align)}`], r.noWrap && e.noWrap, r.gutterBottom && e.gutterBottom, r.paragraph && e.paragraph];
|
|
276
360
|
}
|
|
277
361
|
})(({
|
|
278
|
-
theme:
|
|
279
|
-
ownerState:
|
|
280
|
-
}) =>
|
|
362
|
+
theme: t,
|
|
363
|
+
ownerState: e
|
|
364
|
+
}) => d({
|
|
281
365
|
margin: 0
|
|
282
|
-
},
|
|
366
|
+
}, e.variant === "inherit" && {
|
|
283
367
|
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
284
368
|
font: "inherit"
|
|
285
|
-
},
|
|
286
|
-
textAlign:
|
|
287
|
-
},
|
|
369
|
+
}, e.variant !== "inherit" && t.typography[e.variant], e.align !== "inherit" && {
|
|
370
|
+
textAlign: e.align
|
|
371
|
+
}, e.noWrap && {
|
|
288
372
|
overflow: "hidden",
|
|
289
373
|
textOverflow: "ellipsis",
|
|
290
374
|
whiteSpace: "nowrap"
|
|
291
|
-
},
|
|
375
|
+
}, e.gutterBottom && {
|
|
292
376
|
marginBottom: "0.35em"
|
|
293
|
-
},
|
|
377
|
+
}, e.paragraph && {
|
|
294
378
|
marginBottom: 16
|
|
295
|
-
})),
|
|
379
|
+
})), k = {
|
|
296
380
|
h1: "h1",
|
|
297
381
|
h2: "h2",
|
|
298
382
|
h3: "h3",
|
|
@@ -304,46 +388,46 @@ const me = ["align", "className", "component", "gutterBottom", "noWrap", "paragr
|
|
|
304
388
|
body1: "p",
|
|
305
389
|
body2: "p",
|
|
306
390
|
inherit: "p"
|
|
307
|
-
},
|
|
391
|
+
}, ft = {
|
|
308
392
|
primary: "primary.main",
|
|
309
393
|
textPrimary: "text.primary",
|
|
310
394
|
secondary: "secondary.main",
|
|
311
395
|
textSecondary: "text.secondary",
|
|
312
396
|
error: "error.main"
|
|
313
|
-
},
|
|
314
|
-
const
|
|
315
|
-
props:
|
|
397
|
+
}, mt = (t) => ft[t] || t, h = /* @__PURE__ */ y.forwardRef(function(e, r) {
|
|
398
|
+
const o = j({
|
|
399
|
+
props: e,
|
|
316
400
|
name: "MuiTypography"
|
|
317
|
-
}),
|
|
318
|
-
color:
|
|
401
|
+
}), i = mt(o.color), a = U(d({}, o, {
|
|
402
|
+
color: i
|
|
319
403
|
})), {
|
|
320
|
-
align:
|
|
321
|
-
className:
|
|
322
|
-
component:
|
|
323
|
-
gutterBottom:
|
|
324
|
-
noWrap:
|
|
404
|
+
align: c = "inherit",
|
|
405
|
+
className: l,
|
|
406
|
+
component: p,
|
|
407
|
+
gutterBottom: g = !1,
|
|
408
|
+
noWrap: E = !1,
|
|
325
409
|
paragraph: m = !1,
|
|
326
|
-
variant:
|
|
327
|
-
variantMapping:
|
|
328
|
-
} = a,
|
|
329
|
-
align:
|
|
330
|
-
color:
|
|
331
|
-
className:
|
|
332
|
-
component:
|
|
333
|
-
gutterBottom:
|
|
334
|
-
noWrap:
|
|
410
|
+
variant: b = "body1",
|
|
411
|
+
variantMapping: x = k
|
|
412
|
+
} = a, R = O(a, pt), N = d({}, a, {
|
|
413
|
+
align: c,
|
|
414
|
+
color: i,
|
|
415
|
+
className: l,
|
|
416
|
+
component: p,
|
|
417
|
+
gutterBottom: g,
|
|
418
|
+
noWrap: E,
|
|
335
419
|
paragraph: m,
|
|
336
|
-
variant:
|
|
337
|
-
variantMapping:
|
|
338
|
-
}),
|
|
339
|
-
return /* @__PURE__ */
|
|
340
|
-
as:
|
|
341
|
-
ref:
|
|
342
|
-
ownerState:
|
|
343
|
-
className:
|
|
344
|
-
},
|
|
420
|
+
variant: b,
|
|
421
|
+
variantMapping: x
|
|
422
|
+
}), $ = p || (m ? "p" : x[b] || k[b]) || "span", I = ut(N);
|
|
423
|
+
return /* @__PURE__ */ s(ht, d({
|
|
424
|
+
as: $,
|
|
425
|
+
ref: r,
|
|
426
|
+
ownerState: N,
|
|
427
|
+
className: M(I.root, l)
|
|
428
|
+
}, R));
|
|
345
429
|
});
|
|
346
|
-
process.env.NODE_ENV !== "production" && (
|
|
430
|
+
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
347
431
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
348
432
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
349
433
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -352,29 +436,29 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
352
436
|
* Set the text-align on the component.
|
|
353
437
|
* @default 'inherit'
|
|
354
438
|
*/
|
|
355
|
-
align:
|
|
439
|
+
align: n.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
356
440
|
/**
|
|
357
441
|
* The content of the component.
|
|
358
442
|
*/
|
|
359
|
-
children:
|
|
443
|
+
children: n.node,
|
|
360
444
|
/**
|
|
361
445
|
* Override or extend the styles applied to the component.
|
|
362
446
|
*/
|
|
363
|
-
classes:
|
|
447
|
+
classes: n.object,
|
|
364
448
|
/**
|
|
365
449
|
* @ignore
|
|
366
450
|
*/
|
|
367
|
-
className:
|
|
451
|
+
className: n.string,
|
|
368
452
|
/**
|
|
369
453
|
* The component used for the root node.
|
|
370
454
|
* Either a string to use a HTML element or a component.
|
|
371
455
|
*/
|
|
372
|
-
component:
|
|
456
|
+
component: n.elementType,
|
|
373
457
|
/**
|
|
374
458
|
* If `true`, the text will have a bottom margin.
|
|
375
459
|
* @default false
|
|
376
460
|
*/
|
|
377
|
-
gutterBottom:
|
|
461
|
+
gutterBottom: n.bool,
|
|
378
462
|
/**
|
|
379
463
|
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
380
464
|
*
|
|
@@ -382,21 +466,21 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
382
466
|
* (the element needs to have a width in order to overflow).
|
|
383
467
|
* @default false
|
|
384
468
|
*/
|
|
385
|
-
noWrap:
|
|
469
|
+
noWrap: n.bool,
|
|
386
470
|
/**
|
|
387
471
|
* If `true`, the element will be a paragraph element.
|
|
388
472
|
* @default false
|
|
389
473
|
*/
|
|
390
|
-
paragraph:
|
|
474
|
+
paragraph: n.bool,
|
|
391
475
|
/**
|
|
392
476
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
393
477
|
*/
|
|
394
|
-
sx:
|
|
478
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
395
479
|
/**
|
|
396
480
|
* Applies the theme typography styles.
|
|
397
481
|
* @default 'body1'
|
|
398
482
|
*/
|
|
399
|
-
variant:
|
|
483
|
+
variant: n.oneOfType([n.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), n.string]),
|
|
400
484
|
/**
|
|
401
485
|
* The component maps the variant prop to a range of different HTML element types.
|
|
402
486
|
* For instance, subtitle1 to `<h6>`.
|
|
@@ -416,552 +500,40 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
416
500
|
* inherit: 'p',
|
|
417
501
|
* }
|
|
418
502
|
*/
|
|
419
|
-
variantMapping:
|
|
420
|
-
});
|
|
421
|
-
function be(e, t) {
|
|
422
|
-
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
423
|
-
}
|
|
424
|
-
function xe(...e) {
|
|
425
|
-
return x.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
426
|
-
e.forEach((n) => {
|
|
427
|
-
be(n, t);
|
|
428
|
-
});
|
|
429
|
-
}, e);
|
|
430
|
-
}
|
|
431
|
-
function Ce(e) {
|
|
432
|
-
return typeof e == "string";
|
|
433
|
-
}
|
|
434
|
-
function Se(e, t, n) {
|
|
435
|
-
return e === void 0 || Ce(e) ? t : c({}, t, {
|
|
436
|
-
ownerState: c({}, t.ownerState, n)
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
function we(e, t = []) {
|
|
440
|
-
if (e === void 0)
|
|
441
|
-
return {};
|
|
442
|
-
const n = {};
|
|
443
|
-
return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !t.includes(r)).forEach((r) => {
|
|
444
|
-
n[r] = e[r];
|
|
445
|
-
}), n;
|
|
446
|
-
}
|
|
447
|
-
function H(e) {
|
|
448
|
-
if (e === void 0)
|
|
449
|
-
return {};
|
|
450
|
-
const t = {};
|
|
451
|
-
return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => {
|
|
452
|
-
t[n] = e[n];
|
|
453
|
-
}), t;
|
|
454
|
-
}
|
|
455
|
-
function Ne(e) {
|
|
456
|
-
const {
|
|
457
|
-
getSlotProps: t,
|
|
458
|
-
additionalProps: n,
|
|
459
|
-
externalSlotProps: r,
|
|
460
|
-
externalForwardedProps: s,
|
|
461
|
-
className: a
|
|
462
|
-
} = e;
|
|
463
|
-
if (!t) {
|
|
464
|
-
const u = T(n == null ? void 0 : n.className, a, s == null ? void 0 : s.className, r == null ? void 0 : r.className), h = c({}, n == null ? void 0 : n.style, s == null ? void 0 : s.style, r == null ? void 0 : r.style), v = c({}, n, s, r);
|
|
465
|
-
return u.length > 0 && (v.className = u), Object.keys(h).length > 0 && (v.style = h), {
|
|
466
|
-
props: v,
|
|
467
|
-
internalRef: void 0
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
const d = we(c({}, s, r)), i = H(r), g = H(s), f = t(d), y = T(f == null ? void 0 : f.className, n == null ? void 0 : n.className, a, s == null ? void 0 : s.className, r == null ? void 0 : r.className), m = c({}, f == null ? void 0 : f.style, n == null ? void 0 : n.style, s == null ? void 0 : s.style, r == null ? void 0 : r.style), p = c({}, f, n, g, i);
|
|
471
|
-
return y.length > 0 && (p.className = y), Object.keys(m).length > 0 && (p.style = m), {
|
|
472
|
-
props: p,
|
|
473
|
-
internalRef: f.ref
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
function Oe(e, t, n) {
|
|
477
|
-
return typeof e == "function" ? e(t, n) : e;
|
|
478
|
-
}
|
|
479
|
-
function Te(e) {
|
|
480
|
-
return $("MuiSvgIcon", e);
|
|
481
|
-
}
|
|
482
|
-
_("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
483
|
-
const Me = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], Re = (e) => {
|
|
484
|
-
const {
|
|
485
|
-
color: t,
|
|
486
|
-
fontSize: n,
|
|
487
|
-
classes: r
|
|
488
|
-
} = e, s = {
|
|
489
|
-
root: ["root", t !== "inherit" && `color${k(t)}`, `fontSize${k(n)}`]
|
|
490
|
-
};
|
|
491
|
-
return E(s, Te, r);
|
|
492
|
-
}, Pe = M("svg", {
|
|
493
|
-
name: "MuiSvgIcon",
|
|
494
|
-
slot: "Root",
|
|
495
|
-
overridesResolver: (e, t) => {
|
|
496
|
-
const {
|
|
497
|
-
ownerState: n
|
|
498
|
-
} = e;
|
|
499
|
-
return [t.root, n.color !== "inherit" && t[`color${k(n.color)}`], t[`fontSize${k(n.fontSize)}`]];
|
|
500
|
-
}
|
|
501
|
-
})(({
|
|
502
|
-
theme: e,
|
|
503
|
-
ownerState: t
|
|
504
|
-
}) => {
|
|
505
|
-
var n, r, s, a, d, i, g, f, y, m, p, u, h;
|
|
506
|
-
return {
|
|
507
|
-
userSelect: "none",
|
|
508
|
-
width: "1em",
|
|
509
|
-
height: "1em",
|
|
510
|
-
display: "inline-block",
|
|
511
|
-
// the <svg> will define the property that has `currentColor`
|
|
512
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
513
|
-
fill: t.hasSvgAsChild ? void 0 : "currentColor",
|
|
514
|
-
flexShrink: 0,
|
|
515
|
-
transition: (n = e.transitions) == null || (r = n.create) == null ? void 0 : r.call(n, "fill", {
|
|
516
|
-
duration: (s = e.transitions) == null || (s = s.duration) == null ? void 0 : s.shorter
|
|
517
|
-
}),
|
|
518
|
-
fontSize: {
|
|
519
|
-
inherit: "inherit",
|
|
520
|
-
small: ((a = e.typography) == null || (d = a.pxToRem) == null ? void 0 : d.call(a, 20)) || "1.25rem",
|
|
521
|
-
medium: ((i = e.typography) == null || (g = i.pxToRem) == null ? void 0 : g.call(i, 24)) || "1.5rem",
|
|
522
|
-
large: ((f = e.typography) == null || (y = f.pxToRem) == null ? void 0 : y.call(f, 35)) || "2.1875rem"
|
|
523
|
-
}[t.fontSize],
|
|
524
|
-
// TODO v5 deprecate, v6 remove for sx
|
|
525
|
-
color: (m = (p = (e.vars || e).palette) == null || (p = p[t.color]) == null ? void 0 : p.main) != null ? m : {
|
|
526
|
-
action: (u = (e.vars || e).palette) == null || (u = u.action) == null ? void 0 : u.active,
|
|
527
|
-
disabled: (h = (e.vars || e).palette) == null || (h = h.action) == null ? void 0 : h.disabled,
|
|
528
|
-
inherit: void 0
|
|
529
|
-
}[t.color]
|
|
530
|
-
};
|
|
531
|
-
}), z = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
532
|
-
const r = j({
|
|
533
|
-
props: t,
|
|
534
|
-
name: "MuiSvgIcon"
|
|
535
|
-
}), {
|
|
536
|
-
children: s,
|
|
537
|
-
className: a,
|
|
538
|
-
color: d = "inherit",
|
|
539
|
-
component: i = "svg",
|
|
540
|
-
fontSize: g = "medium",
|
|
541
|
-
htmlColor: f,
|
|
542
|
-
inheritViewBox: y = !1,
|
|
543
|
-
titleAccess: m,
|
|
544
|
-
viewBox: p = "0 0 24 24"
|
|
545
|
-
} = r, u = w(r, Me), h = /* @__PURE__ */ x.isValidElement(s) && s.type === "svg", v = c({}, r, {
|
|
546
|
-
color: d,
|
|
547
|
-
component: i,
|
|
548
|
-
fontSize: g,
|
|
549
|
-
instanceFontSize: t.fontSize,
|
|
550
|
-
inheritViewBox: y,
|
|
551
|
-
viewBox: p,
|
|
552
|
-
hasSvgAsChild: h
|
|
553
|
-
}), b = {};
|
|
554
|
-
y || (b.viewBox = p);
|
|
555
|
-
const N = Re(v);
|
|
556
|
-
return /* @__PURE__ */ C(Pe, c({
|
|
557
|
-
as: i,
|
|
558
|
-
className: T(N.root, a),
|
|
559
|
-
focusable: "false",
|
|
560
|
-
color: f,
|
|
561
|
-
"aria-hidden": m ? void 0 : !0,
|
|
562
|
-
role: m ? "img" : void 0,
|
|
563
|
-
ref: n
|
|
564
|
-
}, b, u, h && s.props, {
|
|
565
|
-
ownerState: v,
|
|
566
|
-
children: [h ? s.props.children : s, m ? /* @__PURE__ */ l("title", {
|
|
567
|
-
children: m
|
|
568
|
-
}) : null]
|
|
569
|
-
}));
|
|
570
|
-
});
|
|
571
|
-
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
572
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
573
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
574
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
575
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
576
|
-
/**
|
|
577
|
-
* Node passed into the SVG element.
|
|
578
|
-
*/
|
|
579
|
-
children: o.node,
|
|
580
|
-
/**
|
|
581
|
-
* Override or extend the styles applied to the component.
|
|
582
|
-
*/
|
|
583
|
-
classes: o.object,
|
|
584
|
-
/**
|
|
585
|
-
* @ignore
|
|
586
|
-
*/
|
|
587
|
-
className: o.string,
|
|
588
|
-
/**
|
|
589
|
-
* The color of the component.
|
|
590
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
591
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
592
|
-
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
593
|
-
* @default 'inherit'
|
|
594
|
-
*/
|
|
595
|
-
color: o.oneOfType([o.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
|
|
596
|
-
/**
|
|
597
|
-
* The component used for the root node.
|
|
598
|
-
* Either a string to use a HTML element or a component.
|
|
599
|
-
*/
|
|
600
|
-
component: o.elementType,
|
|
601
|
-
/**
|
|
602
|
-
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
603
|
-
* @default 'medium'
|
|
604
|
-
*/
|
|
605
|
-
fontSize: o.oneOfType([o.oneOf(["inherit", "large", "medium", "small"]), o.string]),
|
|
606
|
-
/**
|
|
607
|
-
* Applies a color attribute to the SVG element.
|
|
608
|
-
*/
|
|
609
|
-
htmlColor: o.string,
|
|
610
|
-
/**
|
|
611
|
-
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
612
|
-
* prop will be ignored.
|
|
613
|
-
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
614
|
-
* `component`'s viewBox to the root node.
|
|
615
|
-
* @default false
|
|
616
|
-
*/
|
|
617
|
-
inheritViewBox: o.bool,
|
|
618
|
-
/**
|
|
619
|
-
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
620
|
-
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
621
|
-
* If you are having issues with blurry icons you should investigate this prop.
|
|
622
|
-
*/
|
|
623
|
-
shapeRendering: o.string,
|
|
624
|
-
/**
|
|
625
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
626
|
-
*/
|
|
627
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
628
|
-
/**
|
|
629
|
-
* Provides a human-readable title for the element that contains it.
|
|
630
|
-
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
631
|
-
*/
|
|
632
|
-
titleAccess: o.string,
|
|
633
|
-
/**
|
|
634
|
-
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
635
|
-
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
636
|
-
* and you pass viewBox="0 0 50 20",
|
|
637
|
-
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
638
|
-
* to bottom right (50,20) and each unit will be worth 10px.
|
|
639
|
-
* @default '0 0 24 24'
|
|
640
|
-
*/
|
|
641
|
-
viewBox: o.string
|
|
642
|
-
});
|
|
643
|
-
z.muiName = "SvgIcon";
|
|
644
|
-
function ke(e, t) {
|
|
645
|
-
function n(r, s) {
|
|
646
|
-
return /* @__PURE__ */ l(z, c({
|
|
647
|
-
"data-testid": `${t}Icon`,
|
|
648
|
-
ref: s
|
|
649
|
-
}, r, {
|
|
650
|
-
children: e
|
|
651
|
-
}));
|
|
652
|
-
}
|
|
653
|
-
return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = z.muiName, /* @__PURE__ */ x.memo(/* @__PURE__ */ x.forwardRef(n));
|
|
654
|
-
}
|
|
655
|
-
const _e = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], $e = ["component", "slots", "slotProps"], je = ["component"];
|
|
656
|
-
function Ee(e, t) {
|
|
657
|
-
const {
|
|
658
|
-
className: n,
|
|
659
|
-
elementType: r,
|
|
660
|
-
ownerState: s,
|
|
661
|
-
externalForwardedProps: a,
|
|
662
|
-
getSlotOwnerState: d,
|
|
663
|
-
internalForwardedProps: i
|
|
664
|
-
} = t, g = w(t, _e), {
|
|
665
|
-
component: f,
|
|
666
|
-
slots: y = {
|
|
667
|
-
[e]: void 0
|
|
668
|
-
},
|
|
669
|
-
slotProps: m = {
|
|
670
|
-
[e]: void 0
|
|
671
|
-
}
|
|
672
|
-
} = a;
|
|
673
|
-
w(a, $e);
|
|
674
|
-
const p = y[e] || r, u = Oe(m[e], s), h = Ne(c({
|
|
675
|
-
className: n
|
|
676
|
-
}, g, {
|
|
677
|
-
externalForwardedProps: void 0,
|
|
678
|
-
externalSlotProps: u
|
|
679
|
-
})), {
|
|
680
|
-
props: {
|
|
681
|
-
component: v
|
|
682
|
-
},
|
|
683
|
-
internalRef: b
|
|
684
|
-
} = h, N = w(h.props, je), I = xe(b, u == null ? void 0 : u.ref, t.ref), A = d ? d(N) : {}, R = c({}, s, A), P = v, B = Se(p, c({}, e === "root", !y[e] && i, N, P && {
|
|
685
|
-
as: P
|
|
686
|
-
}, {
|
|
687
|
-
ref: I
|
|
688
|
-
}), R);
|
|
689
|
-
return Object.keys(A).forEach((W) => {
|
|
690
|
-
delete B[W];
|
|
691
|
-
}), [p, B];
|
|
692
|
-
}
|
|
693
|
-
const Ae = ke(/* @__PURE__ */ l("path", {
|
|
694
|
-
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
695
|
-
}), "Person");
|
|
696
|
-
function Ie(e) {
|
|
697
|
-
return $("MuiAvatar", e);
|
|
698
|
-
}
|
|
699
|
-
_("MuiAvatar", ["root", "colorDefault", "circular", "rounded", "square", "img", "fallback"]);
|
|
700
|
-
const Be = ["alt", "children", "className", "component", "slots", "slotProps", "imgProps", "sizes", "src", "srcSet", "variant"], ze = (e) => {
|
|
701
|
-
const {
|
|
702
|
-
classes: t,
|
|
703
|
-
variant: n,
|
|
704
|
-
colorDefault: r
|
|
705
|
-
} = e;
|
|
706
|
-
return E({
|
|
707
|
-
root: ["root", n, r && "colorDefault"],
|
|
708
|
-
img: ["img"],
|
|
709
|
-
fallback: ["fallback"]
|
|
710
|
-
}, Ie, t);
|
|
711
|
-
}, We = M("div", {
|
|
712
|
-
name: "MuiAvatar",
|
|
713
|
-
slot: "Root",
|
|
714
|
-
overridesResolver: (e, t) => {
|
|
715
|
-
const {
|
|
716
|
-
ownerState: n
|
|
717
|
-
} = e;
|
|
718
|
-
return [t.root, t[n.variant], n.colorDefault && t.colorDefault];
|
|
719
|
-
}
|
|
720
|
-
})(({
|
|
721
|
-
theme: e
|
|
722
|
-
}) => ({
|
|
723
|
-
position: "relative",
|
|
724
|
-
display: "flex",
|
|
725
|
-
alignItems: "center",
|
|
726
|
-
justifyContent: "center",
|
|
727
|
-
flexShrink: 0,
|
|
728
|
-
width: 40,
|
|
729
|
-
height: 40,
|
|
730
|
-
fontFamily: e.typography.fontFamily,
|
|
731
|
-
fontSize: e.typography.pxToRem(20),
|
|
732
|
-
lineHeight: 1,
|
|
733
|
-
borderRadius: "50%",
|
|
734
|
-
overflow: "hidden",
|
|
735
|
-
userSelect: "none",
|
|
736
|
-
variants: [{
|
|
737
|
-
props: {
|
|
738
|
-
variant: "rounded"
|
|
739
|
-
},
|
|
740
|
-
style: {
|
|
741
|
-
borderRadius: (e.vars || e).shape.borderRadius
|
|
742
|
-
}
|
|
743
|
-
}, {
|
|
744
|
-
props: {
|
|
745
|
-
variant: "square"
|
|
746
|
-
},
|
|
747
|
-
style: {
|
|
748
|
-
borderRadius: 0
|
|
749
|
-
}
|
|
750
|
-
}, {
|
|
751
|
-
props: {
|
|
752
|
-
colorDefault: !0
|
|
753
|
-
},
|
|
754
|
-
style: c({
|
|
755
|
-
color: (e.vars || e).palette.background.default
|
|
756
|
-
}, e.vars ? {
|
|
757
|
-
backgroundColor: e.vars.palette.Avatar.defaultBg
|
|
758
|
-
} : c({
|
|
759
|
-
backgroundColor: e.palette.grey[400]
|
|
760
|
-
}, e.applyStyles("dark", {
|
|
761
|
-
backgroundColor: e.palette.grey[600]
|
|
762
|
-
})))
|
|
763
|
-
}]
|
|
764
|
-
})), De = M("img", {
|
|
765
|
-
name: "MuiAvatar",
|
|
766
|
-
slot: "Img",
|
|
767
|
-
overridesResolver: (e, t) => t.img
|
|
768
|
-
})({
|
|
769
|
-
width: "100%",
|
|
770
|
-
height: "100%",
|
|
771
|
-
textAlign: "center",
|
|
772
|
-
// Handle non-square image. The property isn't supported by IE11.
|
|
773
|
-
objectFit: "cover",
|
|
774
|
-
// Hide alt text.
|
|
775
|
-
color: "transparent",
|
|
776
|
-
// Hide the image broken icon, only works on Chrome.
|
|
777
|
-
textIndent: 1e4
|
|
778
|
-
}), Fe = M(Ae, {
|
|
779
|
-
name: "MuiAvatar",
|
|
780
|
-
slot: "Fallback",
|
|
781
|
-
overridesResolver: (e, t) => t.fallback
|
|
782
|
-
})({
|
|
783
|
-
width: "75%",
|
|
784
|
-
height: "75%"
|
|
785
|
-
});
|
|
786
|
-
function Ue({
|
|
787
|
-
crossOrigin: e,
|
|
788
|
-
referrerPolicy: t,
|
|
789
|
-
src: n,
|
|
790
|
-
srcSet: r
|
|
791
|
-
}) {
|
|
792
|
-
const [s, a] = x.useState(!1);
|
|
793
|
-
return x.useEffect(() => {
|
|
794
|
-
if (!n && !r)
|
|
795
|
-
return;
|
|
796
|
-
a(!1);
|
|
797
|
-
let d = !0;
|
|
798
|
-
const i = new Image();
|
|
799
|
-
return i.onload = () => {
|
|
800
|
-
d && a("loaded");
|
|
801
|
-
}, i.onerror = () => {
|
|
802
|
-
d && a("error");
|
|
803
|
-
}, i.crossOrigin = e, i.referrerPolicy = t, i.src = n, r && (i.srcset = r), () => {
|
|
804
|
-
d = !1;
|
|
805
|
-
};
|
|
806
|
-
}, [e, t, n, r]), s;
|
|
807
|
-
}
|
|
808
|
-
const U = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
809
|
-
const r = j({
|
|
810
|
-
props: t,
|
|
811
|
-
name: "MuiAvatar"
|
|
812
|
-
}), {
|
|
813
|
-
alt: s,
|
|
814
|
-
children: a,
|
|
815
|
-
className: d,
|
|
816
|
-
component: i = "div",
|
|
817
|
-
slots: g = {},
|
|
818
|
-
slotProps: f = {},
|
|
819
|
-
imgProps: y,
|
|
820
|
-
sizes: m,
|
|
821
|
-
src: p,
|
|
822
|
-
srcSet: u,
|
|
823
|
-
variant: h = "circular"
|
|
824
|
-
} = r, v = w(r, Be);
|
|
825
|
-
let b = null;
|
|
826
|
-
const N = Ue(c({}, y, {
|
|
827
|
-
src: p,
|
|
828
|
-
srcSet: u
|
|
829
|
-
})), I = p || u, A = I && N !== "error", R = c({}, r, {
|
|
830
|
-
colorDefault: !A,
|
|
831
|
-
component: i,
|
|
832
|
-
variant: h
|
|
833
|
-
}), P = ze(R), [B, W] = Ee("img", {
|
|
834
|
-
className: P.img,
|
|
835
|
-
elementType: De,
|
|
836
|
-
externalForwardedProps: {
|
|
837
|
-
slots: g,
|
|
838
|
-
slotProps: {
|
|
839
|
-
img: c({}, y, f.img)
|
|
840
|
-
}
|
|
841
|
-
},
|
|
842
|
-
additionalProps: {
|
|
843
|
-
alt: s,
|
|
844
|
-
src: p,
|
|
845
|
-
srcSet: u,
|
|
846
|
-
sizes: m
|
|
847
|
-
},
|
|
848
|
-
ownerState: R
|
|
849
|
-
});
|
|
850
|
-
return A ? b = /* @__PURE__ */ l(B, c({}, W)) : a || a === 0 ? b = a : I && s ? b = s[0] : b = /* @__PURE__ */ l(Fe, {
|
|
851
|
-
ownerState: R,
|
|
852
|
-
className: P.fallback
|
|
853
|
-
}), /* @__PURE__ */ l(We, c({
|
|
854
|
-
as: i,
|
|
855
|
-
ownerState: R,
|
|
856
|
-
className: T(P.root, d),
|
|
857
|
-
ref: n
|
|
858
|
-
}, v, {
|
|
859
|
-
children: b
|
|
860
|
-
}));
|
|
861
|
-
});
|
|
862
|
-
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
863
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
864
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
865
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
866
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
867
|
-
/**
|
|
868
|
-
* Used in combination with `src` or `srcSet` to
|
|
869
|
-
* provide an alt attribute for the rendered `img` element.
|
|
870
|
-
*/
|
|
871
|
-
alt: o.string,
|
|
872
|
-
/**
|
|
873
|
-
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
|
874
|
-
* This can be an element, or just a string.
|
|
875
|
-
*/
|
|
876
|
-
children: o.node,
|
|
877
|
-
/**
|
|
878
|
-
* Override or extend the styles applied to the component.
|
|
879
|
-
*/
|
|
880
|
-
classes: o.object,
|
|
881
|
-
/**
|
|
882
|
-
* @ignore
|
|
883
|
-
*/
|
|
884
|
-
className: o.string,
|
|
885
|
-
/**
|
|
886
|
-
* The component used for the root node.
|
|
887
|
-
* Either a string to use a HTML element or a component.
|
|
888
|
-
*/
|
|
889
|
-
component: o.elementType,
|
|
890
|
-
/**
|
|
891
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
892
|
-
* It can be used to listen for the loading error event.
|
|
893
|
-
* @deprecated Use `slotProps.img` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
894
|
-
*/
|
|
895
|
-
imgProps: o.object,
|
|
896
|
-
/**
|
|
897
|
-
* The `sizes` attribute for the `img` element.
|
|
898
|
-
*/
|
|
899
|
-
sizes: o.string,
|
|
900
|
-
/**
|
|
901
|
-
* The props used for each slot inside.
|
|
902
|
-
* @default {}
|
|
903
|
-
*/
|
|
904
|
-
slotProps: o.shape({
|
|
905
|
-
img: o.oneOfType([o.func, o.object])
|
|
906
|
-
}),
|
|
907
|
-
/**
|
|
908
|
-
* The components used for each slot inside.
|
|
909
|
-
* @default {}
|
|
910
|
-
*/
|
|
911
|
-
slots: o.shape({
|
|
912
|
-
img: o.elementType
|
|
913
|
-
}),
|
|
914
|
-
/**
|
|
915
|
-
* The `src` attribute for the `img` element.
|
|
916
|
-
*/
|
|
917
|
-
src: o.string,
|
|
918
|
-
/**
|
|
919
|
-
* The `srcSet` attribute for the `img` element.
|
|
920
|
-
* Use this attribute for responsive image display.
|
|
921
|
-
*/
|
|
922
|
-
srcSet: o.string,
|
|
923
|
-
/**
|
|
924
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
925
|
-
*/
|
|
926
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
927
|
-
/**
|
|
928
|
-
* The shape of the avatar.
|
|
929
|
-
* @default 'circular'
|
|
930
|
-
*/
|
|
931
|
-
variant: o.oneOfType([o.oneOf(["circular", "rounded", "square"]), o.string])
|
|
503
|
+
variantMapping: n.object
|
|
932
504
|
});
|
|
933
|
-
const
|
|
934
|
-
title:
|
|
935
|
-
text:
|
|
936
|
-
image:
|
|
937
|
-
orientation:
|
|
938
|
-
avatar:
|
|
505
|
+
const xt = ({
|
|
506
|
+
title: t,
|
|
507
|
+
text: e,
|
|
508
|
+
image: r,
|
|
509
|
+
orientation: o = "portrait",
|
|
510
|
+
avatar: i,
|
|
939
511
|
actions: a,
|
|
940
|
-
extraActions:
|
|
941
|
-
extraInfo:
|
|
942
|
-
stats:
|
|
943
|
-
}) =>
|
|
944
|
-
/* @__PURE__ */
|
|
945
|
-
|
|
512
|
+
extraActions: c,
|
|
513
|
+
extraInfo: l,
|
|
514
|
+
stats: p
|
|
515
|
+
}) => o === "landscape" ? /* @__PURE__ */ u(L, { children: [
|
|
516
|
+
/* @__PURE__ */ s(
|
|
517
|
+
B,
|
|
946
518
|
{
|
|
947
519
|
component: "img",
|
|
948
|
-
alt:
|
|
949
|
-
image:
|
|
520
|
+
alt: t,
|
|
521
|
+
image: r,
|
|
950
522
|
sx: { width: 330, height: 200 }
|
|
951
523
|
}
|
|
952
524
|
),
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
|
|
525
|
+
/* @__PURE__ */ u(S, { children: [
|
|
526
|
+
/* @__PURE__ */ s(f, { flex: 1, children: /* @__PURE__ */ u(
|
|
527
|
+
f,
|
|
956
528
|
{
|
|
957
529
|
display: "flex",
|
|
958
530
|
flexDirection: "column",
|
|
959
531
|
justifyContent: "space-between",
|
|
960
532
|
height: "100%",
|
|
961
533
|
children: [
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */
|
|
964
|
-
|
|
534
|
+
/* @__PURE__ */ u(f, { children: [
|
|
535
|
+
/* @__PURE__ */ s(
|
|
536
|
+
h,
|
|
965
537
|
{
|
|
966
538
|
gutterBottom: !0,
|
|
967
539
|
variant: "subtitle1",
|
|
@@ -973,11 +545,11 @@ const Ve = ({
|
|
|
973
545
|
WebkitLineClamp: 3,
|
|
974
546
|
WebkitBoxOrient: "vertical"
|
|
975
547
|
},
|
|
976
|
-
children:
|
|
548
|
+
children: t
|
|
977
549
|
}
|
|
978
550
|
),
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
|
|
551
|
+
/* @__PURE__ */ s(
|
|
552
|
+
h,
|
|
981
553
|
{
|
|
982
554
|
variant: "caption",
|
|
983
555
|
component: "p",
|
|
@@ -990,18 +562,18 @@ const Ve = ({
|
|
|
990
562
|
WebkitBoxOrient: "vertical",
|
|
991
563
|
lineHeight: "16px"
|
|
992
564
|
},
|
|
993
|
-
children: /* @__PURE__ */
|
|
565
|
+
children: /* @__PURE__ */ s("small", { children: e })
|
|
994
566
|
}
|
|
995
567
|
)
|
|
996
568
|
] }),
|
|
997
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ s(f, { children: p })
|
|
998
570
|
]
|
|
999
571
|
}
|
|
1000
572
|
) }),
|
|
1001
|
-
/* @__PURE__ */
|
|
1002
|
-
/* @__PURE__ */
|
|
1003
|
-
/* @__PURE__ */
|
|
1004
|
-
|
|
573
|
+
/* @__PURE__ */ u(V, { children: [
|
|
574
|
+
/* @__PURE__ */ s(P, { src: i.image, sx: { width: 42, height: 42 } }),
|
|
575
|
+
/* @__PURE__ */ s(
|
|
576
|
+
h,
|
|
1005
577
|
{
|
|
1006
578
|
variant: "subtitle2",
|
|
1007
579
|
sx: {
|
|
@@ -1009,35 +581,35 @@ const Ve = ({
|
|
|
1009
581
|
lineHeight: "14px",
|
|
1010
582
|
fontSize: "13px"
|
|
1011
583
|
},
|
|
1012
|
-
children:
|
|
584
|
+
children: i.title
|
|
1013
585
|
}
|
|
1014
586
|
),
|
|
1015
|
-
/* @__PURE__ */
|
|
1016
|
-
|
|
587
|
+
/* @__PURE__ */ s(
|
|
588
|
+
h,
|
|
1017
589
|
{
|
|
1018
590
|
variant: "caption",
|
|
1019
591
|
sx: { color: "text.secondary", lineHeight: "12px" },
|
|
1020
|
-
children: /* @__PURE__ */
|
|
592
|
+
children: /* @__PURE__ */ s("small", { children: i.subTitle })
|
|
1021
593
|
}
|
|
1022
594
|
),
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
-
/* @__PURE__ */
|
|
1025
|
-
|
|
595
|
+
/* @__PURE__ */ s(H, { children: c }),
|
|
596
|
+
/* @__PURE__ */ s(
|
|
597
|
+
h,
|
|
1026
598
|
{
|
|
1027
599
|
variant: "caption",
|
|
1028
600
|
sx: { color: "text.secondary", lineHeight: "12px" },
|
|
1029
|
-
children: /* @__PURE__ */
|
|
601
|
+
children: /* @__PURE__ */ s("small", { children: l })
|
|
1030
602
|
}
|
|
1031
603
|
),
|
|
1032
|
-
/* @__PURE__ */
|
|
604
|
+
/* @__PURE__ */ s(f, { display: "flex", mt: 1, width: "100%", children: a })
|
|
1033
605
|
] })
|
|
1034
606
|
] })
|
|
1035
|
-
] }) : /* @__PURE__ */
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
|
|
607
|
+
] }) : /* @__PURE__ */ u(z, { children: [
|
|
608
|
+
/* @__PURE__ */ s(B, { component: "img", alt: t, height: "172", image: r }),
|
|
609
|
+
/* @__PURE__ */ u(S, { children: [
|
|
610
|
+
/* @__PURE__ */ s(h, { gutterBottom: !0, variant: "subtitle1", component: "h3", noWrap: !0, children: t }),
|
|
611
|
+
/* @__PURE__ */ s(
|
|
612
|
+
h,
|
|
1041
613
|
{
|
|
1042
614
|
variant: "caption",
|
|
1043
615
|
component: "p",
|
|
@@ -1050,24 +622,24 @@ const Ve = ({
|
|
|
1050
622
|
WebkitBoxOrient: "vertical",
|
|
1051
623
|
lineHeight: "16px"
|
|
1052
624
|
},
|
|
1053
|
-
children: /* @__PURE__ */
|
|
625
|
+
children: /* @__PURE__ */ s("small", { children: e })
|
|
1054
626
|
}
|
|
1055
627
|
)
|
|
1056
628
|
] }),
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
|
|
629
|
+
/* @__PURE__ */ u(
|
|
630
|
+
D,
|
|
1059
631
|
{
|
|
1060
632
|
sx: {
|
|
1061
633
|
display: "flex",
|
|
1062
634
|
justifyContent: "space-between",
|
|
1063
|
-
p: (
|
|
635
|
+
p: (g) => g.spacing(2)
|
|
1064
636
|
},
|
|
1065
637
|
children: [
|
|
1066
|
-
/* @__PURE__ */
|
|
1067
|
-
/* @__PURE__ */
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1070
|
-
|
|
638
|
+
/* @__PURE__ */ u(f, { display: "flex", justifyItems: "center", children: [
|
|
639
|
+
/* @__PURE__ */ s(P, { src: i.image, sx: { width: 29, height: 29 } }),
|
|
640
|
+
/* @__PURE__ */ u(f, { display: "flex", flexDirection: "column", ml: 1, children: [
|
|
641
|
+
/* @__PURE__ */ s(
|
|
642
|
+
h,
|
|
1071
643
|
{
|
|
1072
644
|
variant: "subtitle2",
|
|
1073
645
|
sx: {
|
|
@@ -1076,26 +648,26 @@ const Ve = ({
|
|
|
1076
648
|
fontSize: "13px"
|
|
1077
649
|
},
|
|
1078
650
|
noWrap: !0,
|
|
1079
|
-
children:
|
|
651
|
+
children: i.title
|
|
1080
652
|
}
|
|
1081
653
|
),
|
|
1082
|
-
/* @__PURE__ */
|
|
1083
|
-
|
|
654
|
+
/* @__PURE__ */ s(
|
|
655
|
+
h,
|
|
1084
656
|
{
|
|
1085
657
|
variant: "caption",
|
|
1086
658
|
sx: { color: "text.secondary" },
|
|
1087
659
|
noWrap: !0,
|
|
1088
|
-
children: /* @__PURE__ */
|
|
660
|
+
children: /* @__PURE__ */ s("small", { children: i.subTitle })
|
|
1089
661
|
}
|
|
1090
662
|
)
|
|
1091
663
|
] })
|
|
1092
664
|
] }),
|
|
1093
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ s(f, { display: "flex", children: a })
|
|
1094
666
|
]
|
|
1095
667
|
}
|
|
1096
668
|
),
|
|
1097
|
-
|
|
669
|
+
c !== void 0 && /* @__PURE__ */ s(q, { className: "extra-actions", children: c })
|
|
1098
670
|
] });
|
|
1099
671
|
export {
|
|
1100
|
-
|
|
672
|
+
xt as Card
|
|
1101
673
|
};
|