kdpa-components 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/KdpaAccordions-0a0aa0f8.js +1127 -0
- package/dist/KdpaAlertTitle-7f368371.js +923 -0
- package/dist/components/Accordion/index.js +7 -1125
- package/dist/components/Alert/index.js +5 -921
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +12 -0
- package/package.json +2 -2
|
@@ -0,0 +1,923 @@
|
|
|
1
|
+
import { a as I, c as i, n as ro, o as so, g as S, b as j, s as C, p as h, u as B, j as a, f as M, P as e, i as R, B as lo, q as W, m as ao, l as io, t as L, v as V } from "./ButtonBase-5ef58bca.js";
|
|
2
|
+
import * as $ from "react";
|
|
3
|
+
import { forwardRef as co } from "react";
|
|
4
|
+
const po = ["sx"], uo = (o) => {
|
|
5
|
+
var t, n;
|
|
6
|
+
const s = {
|
|
7
|
+
systemProps: {},
|
|
8
|
+
otherProps: {}
|
|
9
|
+
}, r = (t = o == null || (n = o.theme) == null ? void 0 : n.unstable_sxConfig) != null ? t : ro;
|
|
10
|
+
return Object.keys(o).forEach((l) => {
|
|
11
|
+
r[l] ? s.systemProps[l] = o[l] : s.otherProps[l] = o[l];
|
|
12
|
+
}), s;
|
|
13
|
+
};
|
|
14
|
+
function go(o) {
|
|
15
|
+
const {
|
|
16
|
+
sx: t
|
|
17
|
+
} = o, n = I(o, po), {
|
|
18
|
+
systemProps: s,
|
|
19
|
+
otherProps: r
|
|
20
|
+
} = uo(n);
|
|
21
|
+
let l;
|
|
22
|
+
return Array.isArray(t) ? l = [s, ...t] : typeof t == "function" ? l = (...c) => {
|
|
23
|
+
const p = t(...c);
|
|
24
|
+
return so(p) ? i({}, s, p) : s;
|
|
25
|
+
} : l = i({}, s, t), i({}, r, {
|
|
26
|
+
sx: l
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function fo(o) {
|
|
30
|
+
return S("MuiSvgIcon", o);
|
|
31
|
+
}
|
|
32
|
+
j("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
33
|
+
const ho = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], vo = (o) => {
|
|
34
|
+
const {
|
|
35
|
+
color: t,
|
|
36
|
+
fontSize: n,
|
|
37
|
+
classes: s
|
|
38
|
+
} = o, r = {
|
|
39
|
+
root: ["root", t !== "inherit" && `color${h(t)}`, `fontSize${h(n)}`]
|
|
40
|
+
};
|
|
41
|
+
return R(r, fo, s);
|
|
42
|
+
}, mo = C("svg", {
|
|
43
|
+
name: "MuiSvgIcon",
|
|
44
|
+
slot: "Root",
|
|
45
|
+
overridesResolver: (o, t) => {
|
|
46
|
+
const {
|
|
47
|
+
ownerState: n
|
|
48
|
+
} = o;
|
|
49
|
+
return [t.root, n.color !== "inherit" && t[`color${h(n.color)}`], t[`fontSize${h(n.fontSize)}`]];
|
|
50
|
+
}
|
|
51
|
+
})(({
|
|
52
|
+
theme: o,
|
|
53
|
+
ownerState: t
|
|
54
|
+
}) => {
|
|
55
|
+
var n, s, r, l, c, p, d, v, u, g, f, m, b, y, x, T, N;
|
|
56
|
+
return {
|
|
57
|
+
userSelect: "none",
|
|
58
|
+
width: "1em",
|
|
59
|
+
height: "1em",
|
|
60
|
+
display: "inline-block",
|
|
61
|
+
fill: "currentColor",
|
|
62
|
+
flexShrink: 0,
|
|
63
|
+
transition: (n = o.transitions) == null || (s = n.create) == null ? void 0 : s.call(n, "fill", {
|
|
64
|
+
duration: (r = o.transitions) == null || (l = r.duration) == null ? void 0 : l.shorter
|
|
65
|
+
}),
|
|
66
|
+
fontSize: {
|
|
67
|
+
inherit: "inherit",
|
|
68
|
+
small: ((c = o.typography) == null || (p = c.pxToRem) == null ? void 0 : p.call(c, 20)) || "1.25rem",
|
|
69
|
+
medium: ((d = o.typography) == null || (v = d.pxToRem) == null ? void 0 : v.call(d, 24)) || "1.5rem",
|
|
70
|
+
large: ((u = o.typography) == null || (g = u.pxToRem) == null ? void 0 : g.call(u, 35)) || "2.1875rem"
|
|
71
|
+
}[t.fontSize],
|
|
72
|
+
// TODO v5 deprecate, v6 remove for sx
|
|
73
|
+
color: (f = (m = (o.vars || o).palette) == null || (b = m[t.color]) == null ? void 0 : b.main) != null ? f : {
|
|
74
|
+
action: (y = (o.vars || o).palette) == null || (x = y.action) == null ? void 0 : x.active,
|
|
75
|
+
disabled: (T = (o.vars || o).palette) == null || (N = T.action) == null ? void 0 : N.disabled,
|
|
76
|
+
inherit: void 0
|
|
77
|
+
}[t.color]
|
|
78
|
+
};
|
|
79
|
+
}), P = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
80
|
+
const s = B({
|
|
81
|
+
props: t,
|
|
82
|
+
name: "MuiSvgIcon"
|
|
83
|
+
}), {
|
|
84
|
+
children: r,
|
|
85
|
+
className: l,
|
|
86
|
+
color: c = "inherit",
|
|
87
|
+
component: p = "svg",
|
|
88
|
+
fontSize: d = "medium",
|
|
89
|
+
htmlColor: v,
|
|
90
|
+
inheritViewBox: u = !1,
|
|
91
|
+
titleAccess: g,
|
|
92
|
+
viewBox: f = "0 0 24 24"
|
|
93
|
+
} = s, m = I(s, ho), b = i({}, s, {
|
|
94
|
+
color: c,
|
|
95
|
+
component: p,
|
|
96
|
+
fontSize: d,
|
|
97
|
+
instanceFontSize: t.fontSize,
|
|
98
|
+
inheritViewBox: u,
|
|
99
|
+
viewBox: f
|
|
100
|
+
}), y = {};
|
|
101
|
+
u || (y.viewBox = f);
|
|
102
|
+
const x = vo(b);
|
|
103
|
+
return /* @__PURE__ */ a.jsxs(mo, i({
|
|
104
|
+
as: p,
|
|
105
|
+
className: M(x.root, l),
|
|
106
|
+
focusable: "false",
|
|
107
|
+
color: v,
|
|
108
|
+
"aria-hidden": g ? void 0 : !0,
|
|
109
|
+
role: g ? "img" : void 0,
|
|
110
|
+
ref: n
|
|
111
|
+
}, y, m, {
|
|
112
|
+
ownerState: b,
|
|
113
|
+
children: [r, g ? /* @__PURE__ */ a.jsx("title", {
|
|
114
|
+
children: g
|
|
115
|
+
}) : null]
|
|
116
|
+
}));
|
|
117
|
+
});
|
|
118
|
+
process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
119
|
+
// ----------------------------- Warning --------------------------------
|
|
120
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
121
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
122
|
+
// ----------------------------------------------------------------------
|
|
123
|
+
/**
|
|
124
|
+
* Node passed into the SVG element.
|
|
125
|
+
*/
|
|
126
|
+
children: e.node,
|
|
127
|
+
/**
|
|
128
|
+
* Override or extend the styles applied to the component.
|
|
129
|
+
*/
|
|
130
|
+
classes: e.object,
|
|
131
|
+
/**
|
|
132
|
+
* @ignore
|
|
133
|
+
*/
|
|
134
|
+
className: e.string,
|
|
135
|
+
/**
|
|
136
|
+
* The color of the component.
|
|
137
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
138
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
139
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
140
|
+
* @default 'inherit'
|
|
141
|
+
*/
|
|
142
|
+
color: e.oneOfType([e.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
143
|
+
/**
|
|
144
|
+
* The component used for the root node.
|
|
145
|
+
* Either a string to use a HTML element or a component.
|
|
146
|
+
*/
|
|
147
|
+
component: e.elementType,
|
|
148
|
+
/**
|
|
149
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
150
|
+
* @default 'medium'
|
|
151
|
+
*/
|
|
152
|
+
fontSize: e.oneOfType([e.oneOf(["inherit", "large", "medium", "small"]), e.string]),
|
|
153
|
+
/**
|
|
154
|
+
* Applies a color attribute to the SVG element.
|
|
155
|
+
*/
|
|
156
|
+
htmlColor: e.string,
|
|
157
|
+
/**
|
|
158
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
159
|
+
* prop will be ignored.
|
|
160
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
161
|
+
* `component`'s viewBox to the root node.
|
|
162
|
+
* @default false
|
|
163
|
+
*/
|
|
164
|
+
inheritViewBox: e.bool,
|
|
165
|
+
/**
|
|
166
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
167
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
168
|
+
* If you are having issues with blurry icons you should investigate this prop.
|
|
169
|
+
*/
|
|
170
|
+
shapeRendering: e.string,
|
|
171
|
+
/**
|
|
172
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
173
|
+
*/
|
|
174
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
175
|
+
/**
|
|
176
|
+
* Provides a human-readable title for the element that contains it.
|
|
177
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
178
|
+
*/
|
|
179
|
+
titleAccess: e.string,
|
|
180
|
+
/**
|
|
181
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
182
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
183
|
+
* and you pass viewBox="0 0 50 20",
|
|
184
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
185
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
186
|
+
* @default '0 0 24 24'
|
|
187
|
+
*/
|
|
188
|
+
viewBox: e.string
|
|
189
|
+
});
|
|
190
|
+
P.muiName = "SvgIcon";
|
|
191
|
+
const U = P;
|
|
192
|
+
function z(o, t) {
|
|
193
|
+
function n(s, r) {
|
|
194
|
+
return /* @__PURE__ */ a.jsx(U, i({
|
|
195
|
+
"data-testid": `${t}Icon`,
|
|
196
|
+
ref: r
|
|
197
|
+
}, s, {
|
|
198
|
+
children: o
|
|
199
|
+
}));
|
|
200
|
+
}
|
|
201
|
+
return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = U.muiName, /* @__PURE__ */ $.memo(/* @__PURE__ */ $.forwardRef(n));
|
|
202
|
+
}
|
|
203
|
+
function yo(o) {
|
|
204
|
+
return S("MuiAlert", o);
|
|
205
|
+
}
|
|
206
|
+
const bo = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), D = bo;
|
|
207
|
+
function xo(o) {
|
|
208
|
+
return S("MuiIconButton", o);
|
|
209
|
+
}
|
|
210
|
+
const $o = j("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), Co = $o, To = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], Ao = (o) => {
|
|
211
|
+
const {
|
|
212
|
+
classes: t,
|
|
213
|
+
disabled: n,
|
|
214
|
+
color: s,
|
|
215
|
+
edge: r,
|
|
216
|
+
size: l
|
|
217
|
+
} = o, c = {
|
|
218
|
+
root: ["root", n && "disabled", s !== "default" && `color${h(s)}`, r && `edge${h(r)}`, `size${h(l)}`]
|
|
219
|
+
};
|
|
220
|
+
return R(c, xo, t);
|
|
221
|
+
}, Io = C(lo, {
|
|
222
|
+
name: "MuiIconButton",
|
|
223
|
+
slot: "Root",
|
|
224
|
+
overridesResolver: (o, t) => {
|
|
225
|
+
const {
|
|
226
|
+
ownerState: n
|
|
227
|
+
} = o;
|
|
228
|
+
return [t.root, n.color !== "default" && t[`color${h(n.color)}`], n.edge && t[`edge${h(n.edge)}`], t[`size${h(n.size)}`]];
|
|
229
|
+
}
|
|
230
|
+
})(({
|
|
231
|
+
theme: o,
|
|
232
|
+
ownerState: t
|
|
233
|
+
}) => i({
|
|
234
|
+
textAlign: "center",
|
|
235
|
+
flex: "0 0 auto",
|
|
236
|
+
fontSize: o.typography.pxToRem(24),
|
|
237
|
+
padding: 8,
|
|
238
|
+
borderRadius: "50%",
|
|
239
|
+
overflow: "visible",
|
|
240
|
+
// Explicitly set the default value to solve a bug on IE11.
|
|
241
|
+
color: (o.vars || o).palette.action.active,
|
|
242
|
+
transition: o.transitions.create("background-color", {
|
|
243
|
+
duration: o.transitions.duration.shortest
|
|
244
|
+
})
|
|
245
|
+
}, !t.disableRipple && {
|
|
246
|
+
"&:hover": {
|
|
247
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : W(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
248
|
+
// Reset on touch devices, it doesn't add specificity
|
|
249
|
+
"@media (hover: none)": {
|
|
250
|
+
backgroundColor: "transparent"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}, t.edge === "start" && {
|
|
254
|
+
marginLeft: t.size === "small" ? -3 : -12
|
|
255
|
+
}, t.edge === "end" && {
|
|
256
|
+
marginRight: t.size === "small" ? -3 : -12
|
|
257
|
+
}), ({
|
|
258
|
+
theme: o,
|
|
259
|
+
ownerState: t
|
|
260
|
+
}) => {
|
|
261
|
+
var n;
|
|
262
|
+
const s = (n = (o.vars || o).palette) == null ? void 0 : n[t.color];
|
|
263
|
+
return i({}, t.color === "inherit" && {
|
|
264
|
+
color: "inherit"
|
|
265
|
+
}, t.color !== "inherit" && t.color !== "default" && i({
|
|
266
|
+
color: s == null ? void 0 : s.main
|
|
267
|
+
}, !t.disableRipple && {
|
|
268
|
+
"&:hover": i({}, s && {
|
|
269
|
+
backgroundColor: o.vars ? `rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : W(s.main, o.palette.action.hoverOpacity)
|
|
270
|
+
}, {
|
|
271
|
+
// Reset on touch devices, it doesn't add specificity
|
|
272
|
+
"@media (hover: none)": {
|
|
273
|
+
backgroundColor: "transparent"
|
|
274
|
+
}
|
|
275
|
+
})
|
|
276
|
+
}), t.size === "small" && {
|
|
277
|
+
padding: 5,
|
|
278
|
+
fontSize: o.typography.pxToRem(18)
|
|
279
|
+
}, t.size === "large" && {
|
|
280
|
+
padding: 12,
|
|
281
|
+
fontSize: o.typography.pxToRem(28)
|
|
282
|
+
}, {
|
|
283
|
+
[`&.${Co.disabled}`]: {
|
|
284
|
+
backgroundColor: "transparent",
|
|
285
|
+
color: (o.vars || o).palette.action.disabled
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}), Z = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
289
|
+
const s = B({
|
|
290
|
+
props: t,
|
|
291
|
+
name: "MuiIconButton"
|
|
292
|
+
}), {
|
|
293
|
+
edge: r = !1,
|
|
294
|
+
children: l,
|
|
295
|
+
className: c,
|
|
296
|
+
color: p = "default",
|
|
297
|
+
disabled: d = !1,
|
|
298
|
+
disableFocusRipple: v = !1,
|
|
299
|
+
size: u = "medium"
|
|
300
|
+
} = s, g = I(s, To), f = i({}, s, {
|
|
301
|
+
edge: r,
|
|
302
|
+
color: p,
|
|
303
|
+
disabled: d,
|
|
304
|
+
disableFocusRipple: v,
|
|
305
|
+
size: u
|
|
306
|
+
}), m = Ao(f);
|
|
307
|
+
return /* @__PURE__ */ a.jsx(Io, i({
|
|
308
|
+
className: M(m.root, c),
|
|
309
|
+
centerRipple: !0,
|
|
310
|
+
focusRipple: !v,
|
|
311
|
+
disabled: d,
|
|
312
|
+
ref: n,
|
|
313
|
+
ownerState: f
|
|
314
|
+
}, g, {
|
|
315
|
+
children: l
|
|
316
|
+
}));
|
|
317
|
+
});
|
|
318
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
319
|
+
// ----------------------------- Warning --------------------------------
|
|
320
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
321
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
322
|
+
// ----------------------------------------------------------------------
|
|
323
|
+
/**
|
|
324
|
+
* The icon to display.
|
|
325
|
+
*/
|
|
326
|
+
children: ao(e.node, (o) => $.Children.toArray(o.children).some((n) => /* @__PURE__ */ $.isValidElement(n) && n.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
327
|
+
`)) : null),
|
|
328
|
+
/**
|
|
329
|
+
* Override or extend the styles applied to the component.
|
|
330
|
+
*/
|
|
331
|
+
classes: e.object,
|
|
332
|
+
/**
|
|
333
|
+
* @ignore
|
|
334
|
+
*/
|
|
335
|
+
className: e.string,
|
|
336
|
+
/**
|
|
337
|
+
* The color of the component.
|
|
338
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
339
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
340
|
+
* @default 'default'
|
|
341
|
+
*/
|
|
342
|
+
color: e.oneOfType([e.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
343
|
+
/**
|
|
344
|
+
* If `true`, the component is disabled.
|
|
345
|
+
* @default false
|
|
346
|
+
*/
|
|
347
|
+
disabled: e.bool,
|
|
348
|
+
/**
|
|
349
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
350
|
+
* @default false
|
|
351
|
+
*/
|
|
352
|
+
disableFocusRipple: e.bool,
|
|
353
|
+
/**
|
|
354
|
+
* If `true`, the ripple effect is disabled.
|
|
355
|
+
*
|
|
356
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
357
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
358
|
+
* @default false
|
|
359
|
+
*/
|
|
360
|
+
disableRipple: e.bool,
|
|
361
|
+
/**
|
|
362
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
363
|
+
* side (this is often helpful for aligning the left or right
|
|
364
|
+
* side of the icon with content above or below, without ruining the border
|
|
365
|
+
* size and shape).
|
|
366
|
+
* @default false
|
|
367
|
+
*/
|
|
368
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
369
|
+
/**
|
|
370
|
+
* The size of the component.
|
|
371
|
+
* `small` is equivalent to the dense button styling.
|
|
372
|
+
* @default 'medium'
|
|
373
|
+
*/
|
|
374
|
+
size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
|
|
375
|
+
/**
|
|
376
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
377
|
+
*/
|
|
378
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
379
|
+
});
|
|
380
|
+
const Oo = Z, So = z(/* @__PURE__ */ a.jsx("path", {
|
|
381
|
+
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
382
|
+
}), "SuccessOutlined"), jo = z(/* @__PURE__ */ a.jsx("path", {
|
|
383
|
+
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
384
|
+
}), "ReportProblemOutlined"), Bo = z(/* @__PURE__ */ a.jsx("path", {
|
|
385
|
+
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
386
|
+
}), "ErrorOutline"), Mo = z(/* @__PURE__ */ a.jsx("path", {
|
|
387
|
+
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
388
|
+
}), "InfoOutlined"), Ro = z(/* @__PURE__ */ a.jsx("path", {
|
|
389
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
390
|
+
}), "Close"), zo = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"], No = (o) => {
|
|
391
|
+
const {
|
|
392
|
+
variant: t,
|
|
393
|
+
color: n,
|
|
394
|
+
severity: s,
|
|
395
|
+
classes: r
|
|
396
|
+
} = o, l = {
|
|
397
|
+
root: ["root", `${t}${h(n || s)}`, `${t}`],
|
|
398
|
+
icon: ["icon"],
|
|
399
|
+
message: ["message"],
|
|
400
|
+
action: ["action"]
|
|
401
|
+
};
|
|
402
|
+
return R(l, yo, r);
|
|
403
|
+
}, _o = C(io, {
|
|
404
|
+
name: "MuiAlert",
|
|
405
|
+
slot: "Root",
|
|
406
|
+
overridesResolver: (o, t) => {
|
|
407
|
+
const {
|
|
408
|
+
ownerState: n
|
|
409
|
+
} = o;
|
|
410
|
+
return [t.root, t[n.variant], t[`${n.variant}${h(n.color || n.severity)}`]];
|
|
411
|
+
}
|
|
412
|
+
})(({
|
|
413
|
+
theme: o,
|
|
414
|
+
ownerState: t
|
|
415
|
+
}) => {
|
|
416
|
+
const n = o.palette.mode === "light" ? L : V, s = o.palette.mode === "light" ? V : L, r = t.color || t.severity;
|
|
417
|
+
return i({}, o.typography.body2, {
|
|
418
|
+
backgroundColor: "transparent",
|
|
419
|
+
display: "flex",
|
|
420
|
+
padding: "6px 16px"
|
|
421
|
+
}, r && t.variant === "standard" && {
|
|
422
|
+
color: o.vars ? o.vars.palette.Alert[`${r}Color`] : n(o.palette[r].light, 0.6),
|
|
423
|
+
backgroundColor: o.vars ? o.vars.palette.Alert[`${r}StandardBg`] : s(o.palette[r].light, 0.9),
|
|
424
|
+
[`& .${D.icon}`]: o.vars ? {
|
|
425
|
+
color: o.vars.palette.Alert[`${r}IconColor`]
|
|
426
|
+
} : {
|
|
427
|
+
color: o.palette[r].main
|
|
428
|
+
}
|
|
429
|
+
}, r && t.variant === "outlined" && {
|
|
430
|
+
color: o.vars ? o.vars.palette.Alert[`${r}Color`] : n(o.palette[r].light, 0.6),
|
|
431
|
+
border: `1px solid ${(o.vars || o).palette[r].light}`,
|
|
432
|
+
[`& .${D.icon}`]: o.vars ? {
|
|
433
|
+
color: o.vars.palette.Alert[`${r}IconColor`]
|
|
434
|
+
} : {
|
|
435
|
+
color: o.palette[r].main
|
|
436
|
+
}
|
|
437
|
+
}, r && t.variant === "filled" && i({
|
|
438
|
+
fontWeight: o.typography.fontWeightMedium
|
|
439
|
+
}, o.vars ? {
|
|
440
|
+
color: o.vars.palette.Alert[`${r}FilledColor`],
|
|
441
|
+
backgroundColor: o.vars.palette.Alert[`${r}FilledBg`]
|
|
442
|
+
} : {
|
|
443
|
+
backgroundColor: o.palette.mode === "dark" ? o.palette[r].dark : o.palette[r].main,
|
|
444
|
+
color: o.palette.getContrastText(o.palette[r].main)
|
|
445
|
+
}));
|
|
446
|
+
}), Po = C("div", {
|
|
447
|
+
name: "MuiAlert",
|
|
448
|
+
slot: "Icon",
|
|
449
|
+
overridesResolver: (o, t) => t.icon
|
|
450
|
+
})({
|
|
451
|
+
marginRight: 12,
|
|
452
|
+
padding: "7px 0",
|
|
453
|
+
display: "flex",
|
|
454
|
+
fontSize: 22,
|
|
455
|
+
opacity: 0.9
|
|
456
|
+
}), wo = C("div", {
|
|
457
|
+
name: "MuiAlert",
|
|
458
|
+
slot: "Message",
|
|
459
|
+
overridesResolver: (o, t) => t.message
|
|
460
|
+
})({
|
|
461
|
+
padding: "8px 0",
|
|
462
|
+
minWidth: 0,
|
|
463
|
+
overflow: "auto"
|
|
464
|
+
}), F = C("div", {
|
|
465
|
+
name: "MuiAlert",
|
|
466
|
+
slot: "Action",
|
|
467
|
+
overridesResolver: (o, t) => t.action
|
|
468
|
+
})({
|
|
469
|
+
display: "flex",
|
|
470
|
+
alignItems: "flex-start",
|
|
471
|
+
padding: "4px 0 0 16px",
|
|
472
|
+
marginLeft: "auto",
|
|
473
|
+
marginRight: -8
|
|
474
|
+
}), H = {
|
|
475
|
+
success: /* @__PURE__ */ a.jsx(So, {
|
|
476
|
+
fontSize: "inherit"
|
|
477
|
+
}),
|
|
478
|
+
warning: /* @__PURE__ */ a.jsx(jo, {
|
|
479
|
+
fontSize: "inherit"
|
|
480
|
+
}),
|
|
481
|
+
error: /* @__PURE__ */ a.jsx(Bo, {
|
|
482
|
+
fontSize: "inherit"
|
|
483
|
+
}),
|
|
484
|
+
info: /* @__PURE__ */ a.jsx(Mo, {
|
|
485
|
+
fontSize: "inherit"
|
|
486
|
+
})
|
|
487
|
+
}, q = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
488
|
+
var s, r, l, c, p, d;
|
|
489
|
+
const v = B({
|
|
490
|
+
props: t,
|
|
491
|
+
name: "MuiAlert"
|
|
492
|
+
}), {
|
|
493
|
+
action: u,
|
|
494
|
+
children: g,
|
|
495
|
+
className: f,
|
|
496
|
+
closeText: m = "Close",
|
|
497
|
+
color: b,
|
|
498
|
+
components: y = {},
|
|
499
|
+
componentsProps: x = {},
|
|
500
|
+
icon: T,
|
|
501
|
+
iconMapping: N = H,
|
|
502
|
+
onClose: w,
|
|
503
|
+
role: G = "alert",
|
|
504
|
+
severity: _ = "success",
|
|
505
|
+
slotProps: E = {},
|
|
506
|
+
slots: k = {},
|
|
507
|
+
variant: Q = "standard"
|
|
508
|
+
} = v, X = I(v, zo), A = i({}, v, {
|
|
509
|
+
color: b,
|
|
510
|
+
severity: _,
|
|
511
|
+
variant: Q
|
|
512
|
+
}), O = No(A), oo = (s = (r = k.closeButton) != null ? r : y.CloseButton) != null ? s : Oo, eo = (l = (c = k.closeIcon) != null ? c : y.CloseIcon) != null ? l : Ro, to = (p = E.closeButton) != null ? p : x.closeButton, no = (d = E.closeIcon) != null ? d : x.closeIcon;
|
|
513
|
+
return /* @__PURE__ */ a.jsxs(_o, i({
|
|
514
|
+
role: G,
|
|
515
|
+
elevation: 0,
|
|
516
|
+
ownerState: A,
|
|
517
|
+
className: M(O.root, f),
|
|
518
|
+
ref: n
|
|
519
|
+
}, X, {
|
|
520
|
+
children: [T !== !1 ? /* @__PURE__ */ a.jsx(Po, {
|
|
521
|
+
ownerState: A,
|
|
522
|
+
className: O.icon,
|
|
523
|
+
children: T || N[_] || H[_]
|
|
524
|
+
}) : null, /* @__PURE__ */ a.jsx(wo, {
|
|
525
|
+
ownerState: A,
|
|
526
|
+
className: O.message,
|
|
527
|
+
children: g
|
|
528
|
+
}), u != null ? /* @__PURE__ */ a.jsx(F, {
|
|
529
|
+
ownerState: A,
|
|
530
|
+
className: O.action,
|
|
531
|
+
children: u
|
|
532
|
+
}) : null, u == null && w ? /* @__PURE__ */ a.jsx(F, {
|
|
533
|
+
ownerState: A,
|
|
534
|
+
className: O.action,
|
|
535
|
+
children: /* @__PURE__ */ a.jsx(oo, i({
|
|
536
|
+
size: "small",
|
|
537
|
+
"aria-label": m,
|
|
538
|
+
title: m,
|
|
539
|
+
color: "inherit",
|
|
540
|
+
onClick: w
|
|
541
|
+
}, to, {
|
|
542
|
+
children: /* @__PURE__ */ a.jsx(eo, i({
|
|
543
|
+
fontSize: "small"
|
|
544
|
+
}, no))
|
|
545
|
+
}))
|
|
546
|
+
}) : null]
|
|
547
|
+
}));
|
|
548
|
+
});
|
|
549
|
+
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
550
|
+
// ----------------------------- Warning --------------------------------
|
|
551
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
552
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
553
|
+
// ----------------------------------------------------------------------
|
|
554
|
+
/**
|
|
555
|
+
* The action to display. It renders after the message, at the end of the alert.
|
|
556
|
+
*/
|
|
557
|
+
action: e.node,
|
|
558
|
+
/**
|
|
559
|
+
* The content of the component.
|
|
560
|
+
*/
|
|
561
|
+
children: e.node,
|
|
562
|
+
/**
|
|
563
|
+
* Override or extend the styles applied to the component.
|
|
564
|
+
*/
|
|
565
|
+
classes: e.object,
|
|
566
|
+
/**
|
|
567
|
+
* @ignore
|
|
568
|
+
*/
|
|
569
|
+
className: e.string,
|
|
570
|
+
/**
|
|
571
|
+
* Override the default label for the *close popup* icon button.
|
|
572
|
+
*
|
|
573
|
+
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
574
|
+
* @default 'Close'
|
|
575
|
+
*/
|
|
576
|
+
closeText: e.string,
|
|
577
|
+
/**
|
|
578
|
+
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
579
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
580
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
581
|
+
*/
|
|
582
|
+
color: e.oneOfType([e.oneOf(["error", "info", "success", "warning"]), e.string]),
|
|
583
|
+
/**
|
|
584
|
+
* The components used for each slot inside.
|
|
585
|
+
*
|
|
586
|
+
* This prop is an alias for the `slots` prop.
|
|
587
|
+
* It's recommended to use the `slots` prop instead.
|
|
588
|
+
*
|
|
589
|
+
* @default {}
|
|
590
|
+
*/
|
|
591
|
+
components: e.shape({
|
|
592
|
+
CloseButton: e.elementType,
|
|
593
|
+
CloseIcon: e.elementType
|
|
594
|
+
}),
|
|
595
|
+
/**
|
|
596
|
+
* The extra props for the slot components.
|
|
597
|
+
* You can override the existing props or add new ones.
|
|
598
|
+
*
|
|
599
|
+
* This prop is an alias for the `slotProps` prop.
|
|
600
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
601
|
+
*
|
|
602
|
+
* @default {}
|
|
603
|
+
*/
|
|
604
|
+
componentsProps: e.shape({
|
|
605
|
+
closeButton: e.object,
|
|
606
|
+
closeIcon: e.object
|
|
607
|
+
}),
|
|
608
|
+
/**
|
|
609
|
+
* Override the icon displayed before the children.
|
|
610
|
+
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
|
611
|
+
* Set to `false` to remove the `icon`.
|
|
612
|
+
*/
|
|
613
|
+
icon: e.node,
|
|
614
|
+
/**
|
|
615
|
+
* The component maps the `severity` prop to a range of different icons,
|
|
616
|
+
* for instance success to `<SuccessOutlined>`.
|
|
617
|
+
* If you wish to change this mapping, you can provide your own.
|
|
618
|
+
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
|
619
|
+
*/
|
|
620
|
+
iconMapping: e.shape({
|
|
621
|
+
error: e.node,
|
|
622
|
+
info: e.node,
|
|
623
|
+
success: e.node,
|
|
624
|
+
warning: e.node
|
|
625
|
+
}),
|
|
626
|
+
/**
|
|
627
|
+
* Callback fired when the component requests to be closed.
|
|
628
|
+
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
|
629
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
630
|
+
*/
|
|
631
|
+
onClose: e.func,
|
|
632
|
+
/**
|
|
633
|
+
* The ARIA role attribute of the element.
|
|
634
|
+
* @default 'alert'
|
|
635
|
+
*/
|
|
636
|
+
role: e.string,
|
|
637
|
+
/**
|
|
638
|
+
* The severity of the alert. This defines the color and icon used.
|
|
639
|
+
* @default 'success'
|
|
640
|
+
*/
|
|
641
|
+
severity: e.oneOf(["error", "info", "success", "warning"]),
|
|
642
|
+
/**
|
|
643
|
+
* The extra props for the slot components.
|
|
644
|
+
* You can override the existing props or add new ones.
|
|
645
|
+
*
|
|
646
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
647
|
+
*
|
|
648
|
+
* @default {}
|
|
649
|
+
*/
|
|
650
|
+
slotProps: e.shape({
|
|
651
|
+
closeButton: e.object,
|
|
652
|
+
closeIcon: e.object
|
|
653
|
+
}),
|
|
654
|
+
/**
|
|
655
|
+
* The components used for each slot inside.
|
|
656
|
+
*
|
|
657
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
658
|
+
*
|
|
659
|
+
* @default {}
|
|
660
|
+
*/
|
|
661
|
+
slots: e.shape({
|
|
662
|
+
closeButton: e.elementType,
|
|
663
|
+
closeIcon: e.elementType
|
|
664
|
+
}),
|
|
665
|
+
/**
|
|
666
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
667
|
+
*/
|
|
668
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
669
|
+
/**
|
|
670
|
+
* The variant to use.
|
|
671
|
+
* @default 'standard'
|
|
672
|
+
*/
|
|
673
|
+
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
674
|
+
});
|
|
675
|
+
const Eo = q;
|
|
676
|
+
function ko(o) {
|
|
677
|
+
return S("MuiTypography", o);
|
|
678
|
+
}
|
|
679
|
+
j("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
680
|
+
const Wo = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], Lo = (o) => {
|
|
681
|
+
const {
|
|
682
|
+
align: t,
|
|
683
|
+
gutterBottom: n,
|
|
684
|
+
noWrap: s,
|
|
685
|
+
paragraph: r,
|
|
686
|
+
variant: l,
|
|
687
|
+
classes: c
|
|
688
|
+
} = o, p = {
|
|
689
|
+
root: ["root", l, o.align !== "inherit" && `align${h(t)}`, n && "gutterBottom", s && "noWrap", r && "paragraph"]
|
|
690
|
+
};
|
|
691
|
+
return R(p, ko, c);
|
|
692
|
+
}, Vo = C("span", {
|
|
693
|
+
name: "MuiTypography",
|
|
694
|
+
slot: "Root",
|
|
695
|
+
overridesResolver: (o, t) => {
|
|
696
|
+
const {
|
|
697
|
+
ownerState: n
|
|
698
|
+
} = o;
|
|
699
|
+
return [t.root, n.variant && t[n.variant], n.align !== "inherit" && t[`align${h(n.align)}`], n.noWrap && t.noWrap, n.gutterBottom && t.gutterBottom, n.paragraph && t.paragraph];
|
|
700
|
+
}
|
|
701
|
+
})(({
|
|
702
|
+
theme: o,
|
|
703
|
+
ownerState: t
|
|
704
|
+
}) => i({
|
|
705
|
+
margin: 0
|
|
706
|
+
}, t.variant && o.typography[t.variant], t.align !== "inherit" && {
|
|
707
|
+
textAlign: t.align
|
|
708
|
+
}, t.noWrap && {
|
|
709
|
+
overflow: "hidden",
|
|
710
|
+
textOverflow: "ellipsis",
|
|
711
|
+
whiteSpace: "nowrap"
|
|
712
|
+
}, t.gutterBottom && {
|
|
713
|
+
marginBottom: "0.35em"
|
|
714
|
+
}, t.paragraph && {
|
|
715
|
+
marginBottom: 16
|
|
716
|
+
})), K = {
|
|
717
|
+
h1: "h1",
|
|
718
|
+
h2: "h2",
|
|
719
|
+
h3: "h3",
|
|
720
|
+
h4: "h4",
|
|
721
|
+
h5: "h5",
|
|
722
|
+
h6: "h6",
|
|
723
|
+
subtitle1: "h6",
|
|
724
|
+
subtitle2: "h6",
|
|
725
|
+
body1: "p",
|
|
726
|
+
body2: "p",
|
|
727
|
+
inherit: "p"
|
|
728
|
+
}, Uo = {
|
|
729
|
+
primary: "primary.main",
|
|
730
|
+
textPrimary: "text.primary",
|
|
731
|
+
secondary: "secondary.main",
|
|
732
|
+
textSecondary: "text.secondary",
|
|
733
|
+
error: "error.main"
|
|
734
|
+
}, Do = (o) => Uo[o] || o, J = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
735
|
+
const s = B({
|
|
736
|
+
props: t,
|
|
737
|
+
name: "MuiTypography"
|
|
738
|
+
}), r = Do(s.color), l = go(i({}, s, {
|
|
739
|
+
color: r
|
|
740
|
+
})), {
|
|
741
|
+
align: c = "inherit",
|
|
742
|
+
className: p,
|
|
743
|
+
component: d,
|
|
744
|
+
gutterBottom: v = !1,
|
|
745
|
+
noWrap: u = !1,
|
|
746
|
+
paragraph: g = !1,
|
|
747
|
+
variant: f = "body1",
|
|
748
|
+
variantMapping: m = K
|
|
749
|
+
} = l, b = I(l, Wo), y = i({}, l, {
|
|
750
|
+
align: c,
|
|
751
|
+
color: r,
|
|
752
|
+
className: p,
|
|
753
|
+
component: d,
|
|
754
|
+
gutterBottom: v,
|
|
755
|
+
noWrap: u,
|
|
756
|
+
paragraph: g,
|
|
757
|
+
variant: f,
|
|
758
|
+
variantMapping: m
|
|
759
|
+
}), x = d || (g ? "p" : m[f] || K[f]) || "span", T = Lo(y);
|
|
760
|
+
return /* @__PURE__ */ a.jsx(Vo, i({
|
|
761
|
+
as: x,
|
|
762
|
+
ref: n,
|
|
763
|
+
ownerState: y,
|
|
764
|
+
className: M(T.root, p)
|
|
765
|
+
}, b));
|
|
766
|
+
});
|
|
767
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
768
|
+
// ----------------------------- Warning --------------------------------
|
|
769
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
770
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
771
|
+
// ----------------------------------------------------------------------
|
|
772
|
+
/**
|
|
773
|
+
* Set the text-align on the component.
|
|
774
|
+
* @default 'inherit'
|
|
775
|
+
*/
|
|
776
|
+
align: e.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
777
|
+
/**
|
|
778
|
+
* The content of the component.
|
|
779
|
+
*/
|
|
780
|
+
children: e.node,
|
|
781
|
+
/**
|
|
782
|
+
* Override or extend the styles applied to the component.
|
|
783
|
+
*/
|
|
784
|
+
classes: e.object,
|
|
785
|
+
/**
|
|
786
|
+
* @ignore
|
|
787
|
+
*/
|
|
788
|
+
className: e.string,
|
|
789
|
+
/**
|
|
790
|
+
* The component used for the root node.
|
|
791
|
+
* Either a string to use a HTML element or a component.
|
|
792
|
+
*/
|
|
793
|
+
component: e.elementType,
|
|
794
|
+
/**
|
|
795
|
+
* If `true`, the text will have a bottom margin.
|
|
796
|
+
* @default false
|
|
797
|
+
*/
|
|
798
|
+
gutterBottom: e.bool,
|
|
799
|
+
/**
|
|
800
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
801
|
+
*
|
|
802
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
803
|
+
* (the element needs to have a width in order to overflow).
|
|
804
|
+
* @default false
|
|
805
|
+
*/
|
|
806
|
+
noWrap: e.bool,
|
|
807
|
+
/**
|
|
808
|
+
* If `true`, the element will be a paragraph element.
|
|
809
|
+
* @default false
|
|
810
|
+
*/
|
|
811
|
+
paragraph: e.bool,
|
|
812
|
+
/**
|
|
813
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
814
|
+
*/
|
|
815
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
816
|
+
/**
|
|
817
|
+
* Applies the theme typography styles.
|
|
818
|
+
* @default 'body1'
|
|
819
|
+
*/
|
|
820
|
+
variant: e.oneOfType([e.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), e.string]),
|
|
821
|
+
/**
|
|
822
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
823
|
+
* For instance, subtitle1 to `<h6>`.
|
|
824
|
+
* If you wish to change that mapping, you can provide your own.
|
|
825
|
+
* Alternatively, you can use the `component` prop.
|
|
826
|
+
* @default {
|
|
827
|
+
* h1: 'h1',
|
|
828
|
+
* h2: 'h2',
|
|
829
|
+
* h3: 'h3',
|
|
830
|
+
* h4: 'h4',
|
|
831
|
+
* h5: 'h5',
|
|
832
|
+
* h6: 'h6',
|
|
833
|
+
* subtitle1: 'h6',
|
|
834
|
+
* subtitle2: 'h6',
|
|
835
|
+
* body1: 'p',
|
|
836
|
+
* body2: 'p',
|
|
837
|
+
* inherit: 'p',
|
|
838
|
+
* }
|
|
839
|
+
*/
|
|
840
|
+
variantMapping: e.object
|
|
841
|
+
});
|
|
842
|
+
const Fo = J;
|
|
843
|
+
function Ho(o) {
|
|
844
|
+
return S("MuiAlertTitle", o);
|
|
845
|
+
}
|
|
846
|
+
j("MuiAlertTitle", ["root"]);
|
|
847
|
+
const Ko = ["className"], Zo = (o) => {
|
|
848
|
+
const {
|
|
849
|
+
classes: t
|
|
850
|
+
} = o;
|
|
851
|
+
return R({
|
|
852
|
+
root: ["root"]
|
|
853
|
+
}, Ho, t);
|
|
854
|
+
}, qo = C(Fo, {
|
|
855
|
+
name: "MuiAlertTitle",
|
|
856
|
+
slot: "Root",
|
|
857
|
+
overridesResolver: (o, t) => t.root
|
|
858
|
+
})(({
|
|
859
|
+
theme: o
|
|
860
|
+
}) => ({
|
|
861
|
+
fontWeight: o.typography.fontWeightMedium,
|
|
862
|
+
marginTop: -2
|
|
863
|
+
})), Y = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
864
|
+
const s = B({
|
|
865
|
+
props: t,
|
|
866
|
+
name: "MuiAlertTitle"
|
|
867
|
+
}), {
|
|
868
|
+
className: r
|
|
869
|
+
} = s, l = I(s, Ko), c = s, p = Zo(c);
|
|
870
|
+
return /* @__PURE__ */ a.jsx(qo, i({
|
|
871
|
+
gutterBottom: !0,
|
|
872
|
+
component: "div",
|
|
873
|
+
ownerState: c,
|
|
874
|
+
ref: n,
|
|
875
|
+
className: M(p.root, r)
|
|
876
|
+
}, l));
|
|
877
|
+
});
|
|
878
|
+
process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
879
|
+
// ----------------------------- Warning --------------------------------
|
|
880
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
881
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
882
|
+
// ----------------------------------------------------------------------
|
|
883
|
+
/**
|
|
884
|
+
* The content of the component.
|
|
885
|
+
*/
|
|
886
|
+
children: e.node,
|
|
887
|
+
/**
|
|
888
|
+
* Override or extend the styles applied to the component.
|
|
889
|
+
*/
|
|
890
|
+
classes: e.object,
|
|
891
|
+
/**
|
|
892
|
+
* @ignore
|
|
893
|
+
*/
|
|
894
|
+
className: e.string,
|
|
895
|
+
/**
|
|
896
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
897
|
+
*/
|
|
898
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
899
|
+
});
|
|
900
|
+
const Jo = Y, Qo = co(function(t, n) {
|
|
901
|
+
const s = {
|
|
902
|
+
success: "bg-light-success",
|
|
903
|
+
info: "bg-light-info",
|
|
904
|
+
warning: "bg-light-warning",
|
|
905
|
+
error: "bg-light-danger"
|
|
906
|
+
}[t.severity ?? "info"], r = t.className ?? "d-flex align-items-center mb-50";
|
|
907
|
+
return /* @__PURE__ */ a.jsx(
|
|
908
|
+
Eo,
|
|
909
|
+
{
|
|
910
|
+
ref: n,
|
|
911
|
+
severity: t.severity,
|
|
912
|
+
className: `${r} ${s}`,
|
|
913
|
+
children: t.children
|
|
914
|
+
}
|
|
915
|
+
);
|
|
916
|
+
});
|
|
917
|
+
function Xo(o) {
|
|
918
|
+
return /* @__PURE__ */ a.jsx(Jo, { className: o.className ?? "", children: o.children });
|
|
919
|
+
}
|
|
920
|
+
export {
|
|
921
|
+
Qo as K,
|
|
922
|
+
Xo as a
|
|
923
|
+
};
|