@fangzsx/component-library 0.0.11 → 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.
Files changed (35) hide show
  1. package/dist/Box-DPlM16yK.js +30 -0
  2. package/dist/ButtonBase-qMhxbNdC.js +878 -0
  3. package/dist/FormLabel-DKoCtSGZ.js +600 -0
  4. package/dist/{Paper-CAUsv8qs.js → Paper-DyRh03We.js} +54 -51
  5. package/dist/SwitchBase-DStPyUhD.js +311 -0
  6. package/dist/Typography-B0rSrz7H.js +253 -0
  7. package/dist/components/AppBarPublic/index.js +83 -105
  8. package/dist/components/Button/index.js +1 -1
  9. package/dist/components/Checkbox/index.js +103 -607
  10. package/dist/components/CheckboxGroup/index.d.ts +17 -0
  11. package/dist/components/CheckboxGroup/index.js +68 -0
  12. package/dist/components/Dropdown/index.d.ts +22 -0
  13. package/dist/components/Dropdown/index.js +120 -0
  14. package/dist/components/LinearProgress/index.d.ts +3 -0
  15. package/dist/components/LinearProgress/index.js +19 -0
  16. package/dist/components/MediaCardWithAction/index.js +157 -436
  17. package/dist/components/RadioButtonGroup/index.d.ts +17 -0
  18. package/dist/components/RadioButtonGroup/index.js +836 -0
  19. package/dist/components/TextFieldInput/index.d.ts +15 -0
  20. package/dist/components/TextFieldInput/index.js +6578 -0
  21. package/dist/{createSvgIcon-DAI5icic.js → createSvgIcon-Dj0SJuc1.js} +8 -7
  22. package/dist/generateUtilityClasses-BCID9NF1.js +2806 -0
  23. package/dist/{index-DGepNtNg.js → index-CoBGCD2e.js} +143 -158
  24. package/dist/index-o1i1vy-V.js +73 -0
  25. package/dist/main.d.ts +5 -1
  26. package/dist/main.js +21 -13
  27. package/dist/mergeSlotProps-C-n2ing7.js +62 -0
  28. package/dist/useId-CK6Kn3Tn.js +21 -0
  29. package/dist/useSlot-S2pEBHE8.js +161 -0
  30. package/dist/useTimeout-BWi4JTOH.js +635 -0
  31. package/package.json +1 -1
  32. package/dist/ButtonBase-CAtBagnK.js +0 -4293
  33. package/dist/assets/index2.css +0 -1
  34. package/dist/components/Input/index.d.ts +0 -1
  35. package/dist/components/Input/index.js +0 -11
@@ -1,81 +1,47 @@
1
- import { jsx as p, jsxs as N } from "react/jsx-runtime";
2
- import { B as I } 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: c
23
- } = F(n);
24
- let a;
25
- return Array.isArray(e) ? a = [r, ...e] : typeof e == "function" ? a = (...i) => {
26
- const s = e(...i);
27
- return D(s) ? {
28
- ...r,
29
- ...s
30
- } : r;
31
- } : a = {
32
- ...r,
33
- ...e
34
- }, {
35
- ...c,
36
- sx: a
37
- };
38
- }
39
- function L() {
40
- return H;
41
- }
42
- function G(o) {
1
+ import { jsx as d, jsxs as x } from "react/jsx-runtime";
2
+ import { B as A } from "../../index-CoBGCD2e.js";
3
+ import * as u from "react";
4
+ import { g as m, a as f, P as e } from "../../generateUtilityClasses-BCID9NF1.js";
5
+ import { u as C, s as g, c as y, a as b, f as N } from "../../useTimeout-BWi4JTOH.js";
6
+ import { P as U } from "../../Paper-DyRh03We.js";
7
+ import { T as v } from "../../Typography-B0rSrz7H.js";
8
+ function I(o) {
43
9
  return m("MuiCard", o);
44
10
  }
45
- y("MuiCard", ["root"]);
46
- const J = (o) => {
11
+ f("MuiCard", ["root"]);
12
+ const P = (o) => {
47
13
  const {
48
- classes: e
14
+ classes: t
49
15
  } = o;
50
- return x({
16
+ return b({
51
17
  root: ["root"]
52
- }, G, e);
53
- }, q = C(z, {
18
+ }, I, t);
19
+ }, k = g(U, {
54
20
  name: "MuiCard",
55
21
  slot: "Root"
56
22
  })({
57
23
  overflow: "hidden"
58
- }), A = /* @__PURE__ */ f.forwardRef(function(e, n) {
59
- const r = h({
60
- props: e,
24
+ }), w = /* @__PURE__ */ u.forwardRef(function(t, s) {
25
+ const n = C({
26
+ props: t,
61
27
  name: "MuiCard"
62
28
  }), {
63
- className: c,
64
- raised: a = !1,
29
+ className: a,
30
+ raised: c = !1,
65
31
  ...i
66
- } = r, s = {
67
- ...r,
68
- raised: a
69
- }, l = J(s);
70
- return /* @__PURE__ */ p(q, {
71
- className: b(l.root, c),
72
- elevation: a ? 8 : void 0,
73
- ref: n,
74
- ownerState: s,
32
+ } = n, r = {
33
+ ...n,
34
+ raised: c
35
+ }, l = P(r);
36
+ return /* @__PURE__ */ d(k, {
37
+ className: y(l.root, a),
38
+ elevation: c ? 8 : void 0,
39
+ ref: s,
40
+ ownerState: r,
75
41
  ...i
76
42
  });
77
43
  });
78
- process.env.NODE_ENV !== "production" && (A.propTypes = {
44
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
79
45
  // ┌────────────────────────────── Warning ──────────────────────────────┐
80
46
  // │ These PropTypes are generated from the TypeScript type definitions. │
81
47
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -83,45 +49,45 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
83
49
  /**
84
50
  * The content of the component.
85
51
  */
86
- children: t.node,
52
+ children: e.node,
87
53
  /**
88
54
  * Override or extend the styles applied to the component.
89
55
  */
90
- classes: t.object,
56
+ classes: e.object,
91
57
  /**
92
58
  * @ignore
93
59
  */
94
- className: t.string,
60
+ className: e.string,
95
61
  /**
96
62
  * If `true`, the card will use raised styling.
97
63
  * @default false
98
64
  */
99
- raised: R(t.bool, (o) => o.raised && o.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
65
+ raised: N(e.bool, (o) => o.raised && o.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
100
66
  /**
101
67
  * The system prop that allows defining system overrides as well as additional CSS styles.
102
68
  */
103
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
69
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
104
70
  });
105
- function K(o) {
71
+ function D(o) {
106
72
  return m("MuiCardActions", o);
107
73
  }
108
- y("MuiCardActions", ["root", "spacing"]);
109
- const Q = (o) => {
74
+ f("MuiCardActions", ["root", "spacing"]);
75
+ const _ = (o) => {
110
76
  const {
111
- classes: e,
112
- disableSpacing: n
77
+ classes: t,
78
+ disableSpacing: s
113
79
  } = o;
114
- return x({
115
- root: ["root", !n && "spacing"]
116
- }, K, e);
117
- }, X = C("div", {
80
+ return b({
81
+ root: ["root", !s && "spacing"]
82
+ }, D, t);
83
+ }, B = g("div", {
118
84
  name: "MuiCardActions",
119
85
  slot: "Root",
120
- overridesResolver: (o, e) => {
86
+ overridesResolver: (o, t) => {
121
87
  const {
122
- ownerState: n
88
+ ownerState: s
123
89
  } = o;
124
- return [e.root, !n.disableSpacing && e.spacing];
90
+ return [t.root, !s.disableSpacing && t.spacing];
125
91
  }
126
92
  })({
127
93
  display: "flex",
@@ -137,26 +103,26 @@ const Q = (o) => {
137
103
  }
138
104
  }
139
105
  }]
140
- }), E = /* @__PURE__ */ f.forwardRef(function(e, n) {
141
- const r = h({
142
- props: e,
106
+ }), O = /* @__PURE__ */ u.forwardRef(function(t, s) {
107
+ const n = C({
108
+ props: t,
143
109
  name: "MuiCardActions"
144
110
  }), {
145
- disableSpacing: c = !1,
146
- className: a,
111
+ disableSpacing: a = !1,
112
+ className: c,
147
113
  ...i
148
- } = r, s = {
149
- ...r,
150
- disableSpacing: c
151
- }, l = Q(s);
152
- return /* @__PURE__ */ p(X, {
153
- className: b(l.root, a),
154
- ownerState: s,
155
- ref: n,
114
+ } = n, r = {
115
+ ...n,
116
+ disableSpacing: a
117
+ }, l = _(r);
118
+ return /* @__PURE__ */ d(B, {
119
+ className: y(l.root, c),
120
+ ownerState: r,
121
+ ref: s,
156
122
  ...i
157
123
  });
158
124
  });
159
- process.env.NODE_ENV !== "production" && (E.propTypes = {
125
+ process.env.NODE_ENV !== "production" && (O.propTypes = {
160
126
  // ┌────────────────────────────── Warning ──────────────────────────────┐
161
127
  // │ These PropTypes are generated from the TypeScript type definitions. │
162
128
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -164,37 +130,37 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
164
130
  /**
165
131
  * The content of the component.
166
132
  */
167
- children: t.node,
133
+ children: e.node,
168
134
  /**
169
135
  * Override or extend the styles applied to the component.
170
136
  */
171
- classes: t.object,
137
+ classes: e.object,
172
138
  /**
173
139
  * @ignore
174
140
  */
175
- className: t.string,
141
+ className: e.string,
176
142
  /**
177
143
  * If `true`, the actions do not have additional margin.
178
144
  * @default false
179
145
  */
180
- disableSpacing: t.bool,
146
+ disableSpacing: e.bool,
181
147
  /**
182
148
  * The system prop that allows defining system overrides as well as additional CSS styles.
183
149
  */
184
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
150
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
185
151
  });
186
- function Y(o) {
152
+ function V(o) {
187
153
  return m("MuiCardContent", o);
188
154
  }
189
- y("MuiCardContent", ["root"]);
190
- const Z = (o) => {
155
+ f("MuiCardContent", ["root"]);
156
+ const $ = (o) => {
191
157
  const {
192
- classes: e
158
+ classes: t
193
159
  } = o;
194
- return x({
160
+ return b({
195
161
  root: ["root"]
196
- }, Y, e);
197
- }, tt = C("div", {
162
+ }, V, t);
163
+ }, z = g("div", {
198
164
  name: "MuiCardContent",
199
165
  slot: "Root"
200
166
  })({
@@ -202,27 +168,27 @@ const Z = (o) => {
202
168
  "&:last-child": {
203
169
  paddingBottom: 24
204
170
  }
205
- }), B = /* @__PURE__ */ f.forwardRef(function(e, n) {
206
- const r = h({
207
- props: e,
171
+ }), S = /* @__PURE__ */ u.forwardRef(function(t, s) {
172
+ const n = C({
173
+ props: t,
208
174
  name: "MuiCardContent"
209
175
  }), {
210
- className: c,
211
- component: a = "div",
176
+ className: a,
177
+ component: c = "div",
212
178
  ...i
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, c),
220
- ownerState: s,
221
- ref: n,
179
+ } = n, r = {
180
+ ...n,
181
+ component: c
182
+ }, l = $(r);
183
+ return /* @__PURE__ */ d(z, {
184
+ as: c,
185
+ className: y(l.root, a),
186
+ ownerState: r,
187
+ ref: s,
222
188
  ...i
223
189
  });
224
190
  });
225
- process.env.NODE_ENV !== "production" && (B.propTypes = {
191
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
226
192
  // ┌────────────────────────────── Warning ──────────────────────────────┐
227
193
  // │ These PropTypes are generated from the TypeScript type definitions. │
228
194
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -230,49 +196,49 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
230
196
  /**
231
197
  * The content of the component.
232
198
  */
233
- children: t.node,
199
+ children: e.node,
234
200
  /**
235
201
  * Override or extend the styles applied to the component.
236
202
  */
237
- classes: t.object,
203
+ classes: e.object,
238
204
  /**
239
205
  * @ignore
240
206
  */
241
- className: t.string,
207
+ className: e.string,
242
208
  /**
243
209
  * The component used for the root node.
244
210
  * Either a string to use a HTML element or a component.
245
211
  */
246
- component: t.elementType,
212
+ component: e.elementType,
247
213
  /**
248
214
  * The system prop that allows defining system overrides as well as additional CSS styles.
249
215
  */
250
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
216
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
251
217
  });
252
- function et(o) {
218
+ function W(o) {
253
219
  return m("MuiCardMedia", o);
254
220
  }
255
- y("MuiCardMedia", ["root", "media", "img"]);
256
- const ot = (o) => {
221
+ f("MuiCardMedia", ["root", "media", "img"]);
222
+ const F = (o) => {
257
223
  const {
258
- classes: e,
259
- isMediaComponent: n,
260
- isImageComponent: r
224
+ classes: t,
225
+ isMediaComponent: s,
226
+ isImageComponent: n
261
227
  } = o;
262
- return x({
263
- root: ["root", n && "media", r && "img"]
264
- }, et, e);
265
- }, nt = C("div", {
228
+ return b({
229
+ root: ["root", s && "media", n && "img"]
230
+ }, W, t);
231
+ }, G = g("div", {
266
232
  name: "MuiCardMedia",
267
233
  slot: "Root",
268
- overridesResolver: (o, e) => {
234
+ overridesResolver: (o, t) => {
269
235
  const {
270
- ownerState: n
236
+ ownerState: s
271
237
  } = o, {
272
- isMediaComponent: r,
273
- isImageComponent: c
274
- } = n;
275
- return [e.root, r && e.media, c && e.img];
238
+ isMediaComponent: n,
239
+ isImageComponent: a
240
+ } = s;
241
+ return [t.root, n && t.media, a && t.img];
276
242
  }
277
243
  })({
278
244
  display: "block",
@@ -294,40 +260,40 @@ const ot = (o) => {
294
260
  objectFit: "cover"
295
261
  }
296
262
  }]
297
- }), rt = ["video", "audio", "picture", "iframe", "img"], st = ["picture", "img"], U = /* @__PURE__ */ f.forwardRef(function(e, n) {
298
- const r = h({
299
- props: e,
263
+ }), H = ["video", "audio", "picture", "iframe", "img"], L = ["picture", "img"], T = /* @__PURE__ */ u.forwardRef(function(t, s) {
264
+ const n = C({
265
+ props: t,
300
266
  name: "MuiCardMedia"
301
267
  }), {
302
- children: c,
303
- className: a,
268
+ children: a,
269
+ className: c,
304
270
  component: i = "div",
305
- image: s,
271
+ image: r,
306
272
  src: l,
307
- style: g,
308
- ...O
309
- } = r, d = rt.includes(i), v = !d && s ? {
310
- backgroundImage: `url("${s}")`,
311
- ...g
312
- } : g, u = {
313
- ...r,
273
+ style: M,
274
+ ...R
275
+ } = n, p = H.includes(i), j = !p && r ? {
276
+ backgroundImage: `url("${r}")`,
277
+ ...M
278
+ } : M, h = {
279
+ ...n,
314
280
  component: i,
315
- isMediaComponent: d,
316
- isImageComponent: st.includes(i)
317
- }, M = ot(u);
318
- return /* @__PURE__ */ p(nt, {
319
- className: b(M.root, a),
281
+ isMediaComponent: p,
282
+ isImageComponent: L.includes(i)
283
+ }, E = F(h);
284
+ return /* @__PURE__ */ d(G, {
285
+ className: y(E.root, c),
320
286
  as: i,
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: c
287
+ role: !p && r ? "img" : void 0,
288
+ ref: s,
289
+ style: j,
290
+ ownerState: h,
291
+ src: p ? r || l : void 0,
292
+ ...R,
293
+ children: a
328
294
  });
329
295
  });
330
- process.env.NODE_ENV !== "production" && (U.propTypes = {
296
+ process.env.NODE_ENV !== "production" && (T.propTypes = {
331
297
  // ┌────────────────────────────── Warning ──────────────────────────────┐
332
298
  // │ These PropTypes are generated from the TypeScript type definitions. │
333
299
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -335,298 +301,53 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
335
301
  /**
336
302
  * The content of the component.
337
303
  */
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),
304
+ children: N(e.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
305
  /**
340
306
  * Override or extend the styles applied to the component.
341
307
  */
342
- classes: t.object,
308
+ classes: e.object,
343
309
  /**
344
310
  * @ignore
345
311
  */
346
- className: t.string,
312
+ className: e.string,
347
313
  /**
348
314
  * The component used for the root node.
349
315
  * Either a string to use a HTML element or a component.
350
316
  */
351
- component: t.elementType,
317
+ component: e.elementType,
352
318
  /**
353
319
  * Image to be displayed as a background image.
354
320
  * Either `image` or `src` prop must be specified.
355
321
  * Note that caller must specify height otherwise the image will not be visible.
356
322
  */
357
- image: t.string,
323
+ image: e.string,
358
324
  /**
359
325
  * An alias for `image` property.
360
326
  * Available only with media components.
361
327
  * Media components: `video`, `audio`, `picture`, `iframe`, `img`.
362
328
  */
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: c,
393
- variant: a,
394
- classes: i
395
- } = o, s = {
396
- root: ["root", a, o.align !== "inherit" && `align${T(e)}`, n && "gutterBottom", r && "noWrap", c && "paragraph"]
397
- };
398
- return x(s, at, i);
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
- ...c
488
- } = h({
489
- props: e,
490
- name: "MuiTypography"
491
- }), a = !it[r], i = ct({
492
- ...c,
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
- } = i, w = {
507
- ...i,
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", k = lt(w);
518
- return /* @__PURE__ */ p(pt, {
519
- as: W,
520
- ref: n,
521
- className: b(k.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,
329
+ src: e.string,
584
330
  /**
585
331
  * @ignore
586
332
  */
587
- style: t.object,
333
+ style: e.object,
588
334
  /**
589
335
  * The system prop that allows defining system overrides as well as additional CSS styles.
590
336
  */
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
337
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
617
338
  });
618
- function yt({
339
+ function Z({
619
340
  image: o,
620
- imageAlt: e = "Card image",
621
- title: n,
622
- description: r,
623
- buttonLabel: c,
624
- disabled: a,
341
+ imageAlt: t = "Card image",
342
+ title: s,
343
+ description: n,
344
+ buttonLabel: a,
345
+ disabled: c,
625
346
  action: i
626
347
  }) {
627
- return /* @__PURE__ */ N(A, { sx: { px: 4, py: 3, flex: 1 }, children: [
628
- /* @__PURE__ */ p(
629
- U,
348
+ return /* @__PURE__ */ x(w, { sx: { px: 4, py: 3, flex: 1 }, children: [
349
+ /* @__PURE__ */ d(
350
+ T,
630
351
  {
631
352
  sx: {
632
353
  minHeight: { xs: "250px", sm: "500px", md: "350px" },
@@ -636,16 +357,16 @@ function yt({
636
357
  backgroundRepeat: "no-repeat"
637
358
  },
638
359
  image: o,
639
- title: e
360
+ title: t
640
361
  }
641
362
  ),
642
- /* @__PURE__ */ N(B, { sx: { textAlign: "left", px: 0 }, children: [
643
- /* @__PURE__ */ p(S, { gutterBottom: !0, variant: "h5", component: "div", sx: { textAlign: "left", fontWeight: 700 }, children: n }),
644
- /* @__PURE__ */ p(S, { variant: "body2", sx: { color: "text.secondary", textAlign: "left" }, children: r })
363
+ /* @__PURE__ */ x(S, { sx: { textAlign: "left", px: 0 }, children: [
364
+ /* @__PURE__ */ d(v, { gutterBottom: !0, variant: "h5", component: "div", sx: { textAlign: "left", fontWeight: 700 }, children: s }),
365
+ /* @__PURE__ */ d(v, { variant: "body2", sx: { color: "text.secondary", textAlign: "left" }, children: n })
645
366
  ] }),
646
- /* @__PURE__ */ p(E, { sx: { padding: 0, pt: "24px", justifyContent: "flex-start" }, children: /* @__PURE__ */ p(I, { size: "small", sx: { width: "100%", fontWeight: 600 }, disabled: a, onClick: i, children: c }) })
367
+ /* @__PURE__ */ d(O, { sx: { padding: 0, pt: "24px", justifyContent: "flex-start" }, children: /* @__PURE__ */ d(A, { size: "small", sx: { width: "100%", fontWeight: 600 }, disabled: c, onClick: i, children: a }) })
647
368
  ] });
648
369
  }
649
370
  export {
650
- yt as MediaCardWithAction
371
+ Z as MediaCardWithAction
651
372
  };