@fangzsx/component-library 0.0.6 → 0.0.8

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.
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ type BannerProps = {
4
+ type: "warning" | "info" | "success" | "error";
5
+ title: string;
6
+ description: string | ReactNode;
7
+ };
8
+ export declare function FlatBanner(props: BannerProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,32 @@
1
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
+ import { Card as p, Box as t, Typography as i } from "@mui/material";
3
+ import { c as o } from "../../colors-BYtTt7gN.js";
4
+ const d = {
5
+ warning: { titleColor: o.warning800, bgColor: o.warning50 },
6
+ info: { titleColor: o.primary800, bgColor: o.primary50 },
7
+ success: { titleColor: o.secondary800, bgColor: o.secondary50 },
8
+ error: { titleColor: o.destructive800, bgColor: o.destructive50 }
9
+ };
10
+ function f(l) {
11
+ const { type: n, title: c, description: s } = l, e = d[n];
12
+ return /* @__PURE__ */ r(
13
+ p,
14
+ {
15
+ sx: {
16
+ display: "flex",
17
+ backgroundColor: e.bgColor,
18
+ borderRadius: "5px",
19
+ py: 1.5,
20
+ px: 2,
21
+ boxShadow: 2
22
+ },
23
+ children: /* @__PURE__ */ r(t, { display: "flex", alignItems: "center", gap: 2, children: /* @__PURE__ */ a(t, { children: [
24
+ /* @__PURE__ */ r(i, { sx: { fontWeight: 700, fontSize: 16, color: e.titleColor, mb: 0.5 }, children: c }),
25
+ /* @__PURE__ */ r(i, { sx: { color: o.grey800, fontSize: "13px" }, children: s })
26
+ ] }) })
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ f as FlatBanner
32
+ };
@@ -0,0 +1,10 @@
1
+ interface MediaCardWithActionProps {
2
+ image: string;
3
+ imageAlt?: string;
4
+ title: string;
5
+ description: string;
6
+ buttonLabel: string;
7
+ disabled?: boolean;
8
+ }
9
+ export declare function MediaCardWithAction({ image, imageAlt, title, description, buttonLabel, disabled }: MediaCardWithActionProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,650 @@
1
+ import { jsx as p, jsxs as N } from "react/jsx-runtime";
2
+ import { B as k } from "../../index-DGepNtNg.js";
3
+ import * as f from "react";
4
+ import { n as D, o as _, g as m, a as y, u as h, s as C, c as b, d as x, P as t, i as R, b as T, m as $, j as V } from "../../ButtonBase-CAtBagnK.js";
5
+ import { P as z } from "../../Paper-CAUsv8qs.js";
6
+ import "@mui/system";
7
+ const F = (o) => {
8
+ const e = {
9
+ systemProps: {},
10
+ otherProps: {}
11
+ }, n = o?.theme?.unstable_sxConfig ?? _;
12
+ return Object.keys(o).forEach((r) => {
13
+ n[r] ? e.systemProps[r] = o[r] : e.otherProps[r] = o[r];
14
+ }), e;
15
+ };
16
+ function H(o) {
17
+ const {
18
+ sx: e,
19
+ ...n
20
+ } = o, {
21
+ systemProps: r,
22
+ otherProps: i
23
+ } = F(n);
24
+ let a;
25
+ return Array.isArray(e) ? a = [r, ...e] : typeof e == "function" ? a = (...c) => {
26
+ const s = e(...c);
27
+ return D(s) ? {
28
+ ...r,
29
+ ...s
30
+ } : r;
31
+ } : a = {
32
+ ...r,
33
+ ...e
34
+ }, {
35
+ ...i,
36
+ sx: a
37
+ };
38
+ }
39
+ function L() {
40
+ return H;
41
+ }
42
+ function G(o) {
43
+ return m("MuiCard", o);
44
+ }
45
+ y("MuiCard", ["root"]);
46
+ const J = (o) => {
47
+ const {
48
+ classes: e
49
+ } = o;
50
+ return x({
51
+ root: ["root"]
52
+ }, G, e);
53
+ }, q = C(z, {
54
+ name: "MuiCard",
55
+ slot: "Root"
56
+ })({
57
+ overflow: "hidden"
58
+ }), A = /* @__PURE__ */ f.forwardRef(function(e, n) {
59
+ const r = h({
60
+ props: e,
61
+ name: "MuiCard"
62
+ }), {
63
+ className: i,
64
+ raised: a = !1,
65
+ ...c
66
+ } = r, s = {
67
+ ...r,
68
+ raised: a
69
+ }, l = J(s);
70
+ return /* @__PURE__ */ p(q, {
71
+ className: b(l.root, i),
72
+ elevation: a ? 8 : void 0,
73
+ ref: n,
74
+ ownerState: s,
75
+ ...c
76
+ });
77
+ });
78
+ process.env.NODE_ENV !== "production" && (A.propTypes = {
79
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
80
+ // │ These PropTypes are generated from the TypeScript type definitions. │
81
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
82
+ // └─────────────────────────────────────────────────────────────────────┘
83
+ /**
84
+ * The content of the component.
85
+ */
86
+ children: t.node,
87
+ /**
88
+ * Override or extend the styles applied to the component.
89
+ */
90
+ classes: t.object,
91
+ /**
92
+ * @ignore
93
+ */
94
+ className: t.string,
95
+ /**
96
+ * If `true`, the card will use raised styling.
97
+ * @default false
98
+ */
99
+ raised: R(t.bool, (o) => o.raised && o.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
100
+ /**
101
+ * The system prop that allows defining system overrides as well as additional CSS styles.
102
+ */
103
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
104
+ });
105
+ function K(o) {
106
+ return m("MuiCardActions", o);
107
+ }
108
+ y("MuiCardActions", ["root", "spacing"]);
109
+ const Q = (o) => {
110
+ const {
111
+ classes: e,
112
+ disableSpacing: n
113
+ } = o;
114
+ return x({
115
+ root: ["root", !n && "spacing"]
116
+ }, K, e);
117
+ }, X = C("div", {
118
+ name: "MuiCardActions",
119
+ slot: "Root",
120
+ overridesResolver: (o, e) => {
121
+ const {
122
+ ownerState: n
123
+ } = o;
124
+ return [e.root, !n.disableSpacing && e.spacing];
125
+ }
126
+ })({
127
+ display: "flex",
128
+ alignItems: "center",
129
+ padding: 8,
130
+ variants: [{
131
+ props: {
132
+ disableSpacing: !1
133
+ },
134
+ style: {
135
+ "& > :not(style) ~ :not(style)": {
136
+ marginLeft: 8
137
+ }
138
+ }
139
+ }]
140
+ }), E = /* @__PURE__ */ f.forwardRef(function(e, n) {
141
+ const r = h({
142
+ props: e,
143
+ name: "MuiCardActions"
144
+ }), {
145
+ disableSpacing: i = !1,
146
+ className: a,
147
+ ...c
148
+ } = r, s = {
149
+ ...r,
150
+ disableSpacing: i
151
+ }, l = Q(s);
152
+ return /* @__PURE__ */ p(X, {
153
+ className: b(l.root, a),
154
+ ownerState: s,
155
+ ref: n,
156
+ ...c
157
+ });
158
+ });
159
+ process.env.NODE_ENV !== "production" && (E.propTypes = {
160
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
161
+ // │ These PropTypes are generated from the TypeScript type definitions. │
162
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
163
+ // └─────────────────────────────────────────────────────────────────────┘
164
+ /**
165
+ * The content of the component.
166
+ */
167
+ children: t.node,
168
+ /**
169
+ * Override or extend the styles applied to the component.
170
+ */
171
+ classes: t.object,
172
+ /**
173
+ * @ignore
174
+ */
175
+ className: t.string,
176
+ /**
177
+ * If `true`, the actions do not have additional margin.
178
+ * @default false
179
+ */
180
+ disableSpacing: t.bool,
181
+ /**
182
+ * The system prop that allows defining system overrides as well as additional CSS styles.
183
+ */
184
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
185
+ });
186
+ function Y(o) {
187
+ return m("MuiCardContent", o);
188
+ }
189
+ y("MuiCardContent", ["root"]);
190
+ const Z = (o) => {
191
+ const {
192
+ classes: e
193
+ } = o;
194
+ return x({
195
+ root: ["root"]
196
+ }, Y, e);
197
+ }, tt = C("div", {
198
+ name: "MuiCardContent",
199
+ slot: "Root"
200
+ })({
201
+ padding: 16,
202
+ "&:last-child": {
203
+ paddingBottom: 24
204
+ }
205
+ }), B = /* @__PURE__ */ f.forwardRef(function(e, n) {
206
+ const r = h({
207
+ props: e,
208
+ name: "MuiCardContent"
209
+ }), {
210
+ className: i,
211
+ component: a = "div",
212
+ ...c
213
+ } = r, s = {
214
+ ...r,
215
+ component: a
216
+ }, l = Z(s);
217
+ return /* @__PURE__ */ p(tt, {
218
+ as: a,
219
+ className: b(l.root, i),
220
+ ownerState: s,
221
+ ref: n,
222
+ ...c
223
+ });
224
+ });
225
+ process.env.NODE_ENV !== "production" && (B.propTypes = {
226
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
227
+ // │ These PropTypes are generated from the TypeScript type definitions. │
228
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
229
+ // └─────────────────────────────────────────────────────────────────────┘
230
+ /**
231
+ * The content of the component.
232
+ */
233
+ children: t.node,
234
+ /**
235
+ * Override or extend the styles applied to the component.
236
+ */
237
+ classes: t.object,
238
+ /**
239
+ * @ignore
240
+ */
241
+ className: t.string,
242
+ /**
243
+ * The component used for the root node.
244
+ * Either a string to use a HTML element or a component.
245
+ */
246
+ component: t.elementType,
247
+ /**
248
+ * The system prop that allows defining system overrides as well as additional CSS styles.
249
+ */
250
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
251
+ });
252
+ function et(o) {
253
+ return m("MuiCardMedia", o);
254
+ }
255
+ y("MuiCardMedia", ["root", "media", "img"]);
256
+ const ot = (o) => {
257
+ const {
258
+ classes: e,
259
+ isMediaComponent: n,
260
+ isImageComponent: r
261
+ } = o;
262
+ return x({
263
+ root: ["root", n && "media", r && "img"]
264
+ }, et, e);
265
+ }, nt = C("div", {
266
+ name: "MuiCardMedia",
267
+ slot: "Root",
268
+ overridesResolver: (o, e) => {
269
+ const {
270
+ ownerState: n
271
+ } = o, {
272
+ isMediaComponent: r,
273
+ isImageComponent: i
274
+ } = n;
275
+ return [e.root, r && e.media, i && e.img];
276
+ }
277
+ })({
278
+ display: "block",
279
+ backgroundSize: "cover",
280
+ backgroundRepeat: "no-repeat",
281
+ backgroundPosition: "center",
282
+ variants: [{
283
+ props: {
284
+ isMediaComponent: !0
285
+ },
286
+ style: {
287
+ width: "100%"
288
+ }
289
+ }, {
290
+ props: {
291
+ isImageComponent: !0
292
+ },
293
+ style: {
294
+ objectFit: "cover"
295
+ }
296
+ }]
297
+ }), rt = ["video", "audio", "picture", "iframe", "img"], st = ["picture", "img"], U = /* @__PURE__ */ f.forwardRef(function(e, n) {
298
+ const r = h({
299
+ props: e,
300
+ name: "MuiCardMedia"
301
+ }), {
302
+ children: i,
303
+ className: a,
304
+ component: c = "div",
305
+ image: s,
306
+ src: l,
307
+ style: g,
308
+ ...O
309
+ } = r, d = rt.includes(c), v = !d && s ? {
310
+ backgroundImage: `url("${s}")`,
311
+ ...g
312
+ } : g, u = {
313
+ ...r,
314
+ component: c,
315
+ isMediaComponent: d,
316
+ isImageComponent: st.includes(c)
317
+ }, M = ot(u);
318
+ return /* @__PURE__ */ p(nt, {
319
+ className: b(M.root, a),
320
+ as: c,
321
+ role: !d && s ? "img" : void 0,
322
+ ref: n,
323
+ style: v,
324
+ ownerState: u,
325
+ src: d ? s || l : void 0,
326
+ ...O,
327
+ children: i
328
+ });
329
+ });
330
+ process.env.NODE_ENV !== "production" && (U.propTypes = {
331
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
332
+ // │ These PropTypes are generated from the TypeScript type definitions. │
333
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
334
+ // └─────────────────────────────────────────────────────────────────────┘
335
+ /**
336
+ * The content of the component.
337
+ */
338
+ children: R(t.node, (o) => !o.children && !o.image && !o.src && !o.component ? new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified.") : null),
339
+ /**
340
+ * Override or extend the styles applied to the component.
341
+ */
342
+ classes: t.object,
343
+ /**
344
+ * @ignore
345
+ */
346
+ className: t.string,
347
+ /**
348
+ * The component used for the root node.
349
+ * Either a string to use a HTML element or a component.
350
+ */
351
+ component: t.elementType,
352
+ /**
353
+ * Image to be displayed as a background image.
354
+ * Either `image` or `src` prop must be specified.
355
+ * Note that caller must specify height otherwise the image will not be visible.
356
+ */
357
+ image: t.string,
358
+ /**
359
+ * An alias for `image` property.
360
+ * Available only with media components.
361
+ * Media components: `video`, `audio`, `picture`, `iframe`, `img`.
362
+ */
363
+ src: t.string,
364
+ /**
365
+ * @ignore
366
+ */
367
+ style: t.object,
368
+ /**
369
+ * The system prop that allows defining system overrides as well as additional CSS styles.
370
+ */
371
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
372
+ });
373
+ function at(o) {
374
+ return m("MuiTypography", o);
375
+ }
376
+ y("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
377
+ const it = {
378
+ primary: !0,
379
+ secondary: !0,
380
+ error: !0,
381
+ info: !0,
382
+ success: !0,
383
+ warning: !0,
384
+ textPrimary: !0,
385
+ textSecondary: !0,
386
+ textDisabled: !0
387
+ }, ct = L(), lt = (o) => {
388
+ const {
389
+ align: e,
390
+ gutterBottom: n,
391
+ noWrap: r,
392
+ paragraph: i,
393
+ variant: a,
394
+ classes: c
395
+ } = o, s = {
396
+ root: ["root", a, o.align !== "inherit" && `align${T(e)}`, n && "gutterBottom", r && "noWrap", i && "paragraph"]
397
+ };
398
+ return x(s, at, c);
399
+ }, pt = C("span", {
400
+ name: "MuiTypography",
401
+ slot: "Root",
402
+ overridesResolver: (o, e) => {
403
+ const {
404
+ ownerState: n
405
+ } = o;
406
+ return [e.root, n.variant && e[n.variant], n.align !== "inherit" && e[`align${T(n.align)}`], n.noWrap && e.noWrap, n.gutterBottom && e.gutterBottom, n.paragraph && e.paragraph];
407
+ }
408
+ })($(({
409
+ theme: o
410
+ }) => ({
411
+ margin: 0,
412
+ variants: [{
413
+ props: {
414
+ variant: "inherit"
415
+ },
416
+ style: {
417
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
418
+ font: "inherit",
419
+ lineHeight: "inherit",
420
+ letterSpacing: "inherit"
421
+ }
422
+ }, ...Object.entries(o.typography).filter(([e, n]) => e !== "inherit" && n && typeof n == "object").map(([e, n]) => ({
423
+ props: {
424
+ variant: e
425
+ },
426
+ style: n
427
+ })), ...Object.entries(o.palette).filter(V()).map(([e]) => ({
428
+ props: {
429
+ color: e
430
+ },
431
+ style: {
432
+ color: (o.vars || o).palette[e].main
433
+ }
434
+ })), ...Object.entries(o.palette?.text || {}).filter(([, e]) => typeof e == "string").map(([e]) => ({
435
+ props: {
436
+ color: `text${T(e)}`
437
+ },
438
+ style: {
439
+ color: (o.vars || o).palette.text[e]
440
+ }
441
+ })), {
442
+ props: ({
443
+ ownerState: e
444
+ }) => e.align !== "inherit",
445
+ style: {
446
+ textAlign: "var(--Typography-textAlign)"
447
+ }
448
+ }, {
449
+ props: ({
450
+ ownerState: e
451
+ }) => e.noWrap,
452
+ style: {
453
+ overflow: "hidden",
454
+ textOverflow: "ellipsis",
455
+ whiteSpace: "nowrap"
456
+ }
457
+ }, {
458
+ props: ({
459
+ ownerState: e
460
+ }) => e.gutterBottom,
461
+ style: {
462
+ marginBottom: "0.35em"
463
+ }
464
+ }, {
465
+ props: ({
466
+ ownerState: e
467
+ }) => e.paragraph,
468
+ style: {
469
+ marginBottom: 16
470
+ }
471
+ }]
472
+ }))), P = {
473
+ h1: "h1",
474
+ h2: "h2",
475
+ h3: "h3",
476
+ h4: "h4",
477
+ h5: "h5",
478
+ h6: "h6",
479
+ subtitle1: "h6",
480
+ subtitle2: "h6",
481
+ body1: "p",
482
+ body2: "p",
483
+ inherit: "p"
484
+ }, S = /* @__PURE__ */ f.forwardRef(function(e, n) {
485
+ const {
486
+ color: r,
487
+ ...i
488
+ } = h({
489
+ props: e,
490
+ name: "MuiTypography"
491
+ }), a = !it[r], c = ct({
492
+ ...i,
493
+ ...a && {
494
+ color: r
495
+ }
496
+ }), {
497
+ align: s = "inherit",
498
+ className: l,
499
+ component: g,
500
+ gutterBottom: O = !1,
501
+ noWrap: d = !1,
502
+ paragraph: v = !1,
503
+ variant: u = "body1",
504
+ variantMapping: M = P,
505
+ ...j
506
+ } = c, w = {
507
+ ...c,
508
+ align: s,
509
+ color: r,
510
+ className: l,
511
+ component: g,
512
+ gutterBottom: O,
513
+ noWrap: d,
514
+ paragraph: v,
515
+ variant: u,
516
+ variantMapping: M
517
+ }, W = g || (v ? "p" : M[u] || P[u]) || "span", I = lt(w);
518
+ return /* @__PURE__ */ p(pt, {
519
+ as: W,
520
+ ref: n,
521
+ className: b(I.root, l),
522
+ ...j,
523
+ ownerState: w,
524
+ style: {
525
+ ...s !== "inherit" && {
526
+ "--Typography-textAlign": s
527
+ },
528
+ ...j.style
529
+ }
530
+ });
531
+ });
532
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
533
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
534
+ // │ These PropTypes are generated from the TypeScript type definitions. │
535
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
536
+ // └─────────────────────────────────────────────────────────────────────┘
537
+ /**
538
+ * Set the text-align on the component.
539
+ * @default 'inherit'
540
+ */
541
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
542
+ /**
543
+ * The content of the component.
544
+ */
545
+ children: t.node,
546
+ /**
547
+ * Override or extend the styles applied to the component.
548
+ */
549
+ classes: t.object,
550
+ /**
551
+ * @ignore
552
+ */
553
+ className: t.string,
554
+ /**
555
+ * The color of the component.
556
+ * It supports both default and custom theme colors, which can be added as shown in the
557
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
558
+ */
559
+ color: t.oneOfType([t.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), t.string]),
560
+ /**
561
+ * The component used for the root node.
562
+ * Either a string to use a HTML element or a component.
563
+ */
564
+ component: t.elementType,
565
+ /**
566
+ * If `true`, the text will have a bottom margin.
567
+ * @default false
568
+ */
569
+ gutterBottom: t.bool,
570
+ /**
571
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
572
+ *
573
+ * Note that text overflow can only happen with block or inline-block level elements
574
+ * (the element needs to have a width in order to overflow).
575
+ * @default false
576
+ */
577
+ noWrap: t.bool,
578
+ /**
579
+ * If `true`, the element will be a paragraph element.
580
+ * @default false
581
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
582
+ */
583
+ paragraph: t.bool,
584
+ /**
585
+ * @ignore
586
+ */
587
+ style: t.object,
588
+ /**
589
+ * The system prop that allows defining system overrides as well as additional CSS styles.
590
+ */
591
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
592
+ /**
593
+ * Applies the theme typography styles.
594
+ * @default 'body1'
595
+ */
596
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
597
+ /**
598
+ * The component maps the variant prop to a range of different HTML element types.
599
+ * For instance, subtitle1 to `<h6>`.
600
+ * If you wish to change that mapping, you can provide your own.
601
+ * Alternatively, you can use the `component` prop.
602
+ * @default {
603
+ * h1: 'h1',
604
+ * h2: 'h2',
605
+ * h3: 'h3',
606
+ * h4: 'h4',
607
+ * h5: 'h5',
608
+ * h6: 'h6',
609
+ * subtitle1: 'h6',
610
+ * subtitle2: 'h6',
611
+ * body1: 'p',
612
+ * body2: 'p',
613
+ * inherit: 'p',
614
+ * }
615
+ */
616
+ variantMapping: t.object
617
+ });
618
+ function yt({
619
+ image: o,
620
+ imageAlt: e = "Card image",
621
+ title: n,
622
+ description: r,
623
+ buttonLabel: i,
624
+ disabled: a
625
+ }) {
626
+ return /* @__PURE__ */ N(A, { sx: { px: 4, py: 3, flex: 1 }, children: [
627
+ /* @__PURE__ */ p(
628
+ U,
629
+ {
630
+ sx: {
631
+ minHeight: { xs: "250px", sm: "500px", md: "350px" },
632
+ borderRadius: "5.36px",
633
+ backgroundSize: "contain",
634
+ backgroundPosition: "center",
635
+ backgroundRepeat: "no-repeat"
636
+ },
637
+ image: o,
638
+ title: e
639
+ }
640
+ ),
641
+ /* @__PURE__ */ N(B, { sx: { textAlign: "left", px: 0 }, children: [
642
+ /* @__PURE__ */ p(S, { gutterBottom: !0, variant: "h5", component: "div", sx: { textAlign: "left", fontWeight: 700 }, children: n }),
643
+ /* @__PURE__ */ p(S, { variant: "body2", sx: { color: "text.secondary", textAlign: "left" }, children: r })
644
+ ] }),
645
+ /* @__PURE__ */ p(E, { sx: { padding: 0, pt: "24px", justifyContent: "flex-start" }, children: /* @__PURE__ */ p(k, { size: "small", sx: { width: "100%", fontWeight: 600 }, disabled: a, children: i }) })
646
+ ] });
647
+ }
648
+ export {
649
+ yt as MediaCardWithAction
650
+ };