@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.
- package/dist/Box-DPlM16yK.js +30 -0
- package/dist/ButtonBase-qMhxbNdC.js +878 -0
- package/dist/FormLabel-DKoCtSGZ.js +600 -0
- package/dist/{Paper-CAUsv8qs.js → Paper-DyRh03We.js} +54 -51
- package/dist/SwitchBase-DStPyUhD.js +311 -0
- package/dist/Typography-B0rSrz7H.js +253 -0
- package/dist/components/AppBarPublic/index.js +83 -105
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Checkbox/index.js +103 -607
- package/dist/components/CheckboxGroup/index.d.ts +17 -0
- package/dist/components/CheckboxGroup/index.js +68 -0
- package/dist/components/Dropdown/index.d.ts +22 -0
- package/dist/components/Dropdown/index.js +120 -0
- package/dist/components/LinearProgress/index.d.ts +3 -0
- package/dist/components/LinearProgress/index.js +19 -0
- package/dist/components/MediaCardWithAction/index.js +157 -436
- package/dist/components/RadioButtonGroup/index.d.ts +17 -0
- package/dist/components/RadioButtonGroup/index.js +836 -0
- package/dist/components/TextFieldInput/index.d.ts +15 -0
- package/dist/components/TextFieldInput/index.js +6578 -0
- package/dist/{createSvgIcon-DAI5icic.js → createSvgIcon-Dj0SJuc1.js} +8 -7
- package/dist/generateUtilityClasses-BCID9NF1.js +2806 -0
- package/dist/{index-DGepNtNg.js → index-CoBGCD2e.js} +143 -158
- package/dist/index-o1i1vy-V.js +73 -0
- package/dist/main.d.ts +5 -1
- package/dist/main.js +21 -13
- package/dist/mergeSlotProps-C-n2ing7.js +62 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useSlot-S2pEBHE8.js +161 -0
- package/dist/useTimeout-BWi4JTOH.js +635 -0
- package/package.json +1 -1
- package/dist/ButtonBase-CAtBagnK.js +0 -4293
- package/dist/assets/index2.css +0 -1
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Input/index.js +0 -11
|
@@ -1,81 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
46
|
-
const
|
|
11
|
+
f("MuiCard", ["root"]);
|
|
12
|
+
const P = (o) => {
|
|
47
13
|
const {
|
|
48
|
-
classes:
|
|
14
|
+
classes: t
|
|
49
15
|
} = o;
|
|
50
|
-
return
|
|
16
|
+
return b({
|
|
51
17
|
root: ["root"]
|
|
52
|
-
},
|
|
53
|
-
},
|
|
18
|
+
}, I, t);
|
|
19
|
+
}, k = g(U, {
|
|
54
20
|
name: "MuiCard",
|
|
55
21
|
slot: "Root"
|
|
56
22
|
})({
|
|
57
23
|
overflow: "hidden"
|
|
58
|
-
}),
|
|
59
|
-
const
|
|
60
|
-
props:
|
|
24
|
+
}), w = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
|
25
|
+
const n = C({
|
|
26
|
+
props: t,
|
|
61
27
|
name: "MuiCard"
|
|
62
28
|
}), {
|
|
63
|
-
className:
|
|
64
|
-
raised:
|
|
29
|
+
className: a,
|
|
30
|
+
raised: c = !1,
|
|
65
31
|
...i
|
|
66
|
-
} =
|
|
67
|
-
...
|
|
68
|
-
raised:
|
|
69
|
-
}, l =
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
className:
|
|
72
|
-
elevation:
|
|
73
|
-
ref:
|
|
74
|
-
ownerState:
|
|
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" && (
|
|
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:
|
|
52
|
+
children: e.node,
|
|
87
53
|
/**
|
|
88
54
|
* Override or extend the styles applied to the component.
|
|
89
55
|
*/
|
|
90
|
-
classes:
|
|
56
|
+
classes: e.object,
|
|
91
57
|
/**
|
|
92
58
|
* @ignore
|
|
93
59
|
*/
|
|
94
|
-
className:
|
|
60
|
+
className: e.string,
|
|
95
61
|
/**
|
|
96
62
|
* If `true`, the card will use raised styling.
|
|
97
63
|
* @default false
|
|
98
64
|
*/
|
|
99
|
-
raised:
|
|
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:
|
|
69
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
104
70
|
});
|
|
105
|
-
function
|
|
71
|
+
function D(o) {
|
|
106
72
|
return m("MuiCardActions", o);
|
|
107
73
|
}
|
|
108
|
-
|
|
109
|
-
const
|
|
74
|
+
f("MuiCardActions", ["root", "spacing"]);
|
|
75
|
+
const _ = (o) => {
|
|
110
76
|
const {
|
|
111
|
-
classes:
|
|
112
|
-
disableSpacing:
|
|
77
|
+
classes: t,
|
|
78
|
+
disableSpacing: s
|
|
113
79
|
} = o;
|
|
114
|
-
return
|
|
115
|
-
root: ["root", !
|
|
116
|
-
},
|
|
117
|
-
},
|
|
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,
|
|
86
|
+
overridesResolver: (o, t) => {
|
|
121
87
|
const {
|
|
122
|
-
ownerState:
|
|
88
|
+
ownerState: s
|
|
123
89
|
} = o;
|
|
124
|
-
return [
|
|
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
|
-
}),
|
|
141
|
-
const
|
|
142
|
-
props:
|
|
106
|
+
}), O = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
|
107
|
+
const n = C({
|
|
108
|
+
props: t,
|
|
143
109
|
name: "MuiCardActions"
|
|
144
110
|
}), {
|
|
145
|
-
disableSpacing:
|
|
146
|
-
className:
|
|
111
|
+
disableSpacing: a = !1,
|
|
112
|
+
className: c,
|
|
147
113
|
...i
|
|
148
|
-
} =
|
|
149
|
-
...
|
|
150
|
-
disableSpacing:
|
|
151
|
-
}, l =
|
|
152
|
-
return /* @__PURE__ */
|
|
153
|
-
className:
|
|
154
|
-
ownerState:
|
|
155
|
-
ref:
|
|
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" && (
|
|
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:
|
|
133
|
+
children: e.node,
|
|
168
134
|
/**
|
|
169
135
|
* Override or extend the styles applied to the component.
|
|
170
136
|
*/
|
|
171
|
-
classes:
|
|
137
|
+
classes: e.object,
|
|
172
138
|
/**
|
|
173
139
|
* @ignore
|
|
174
140
|
*/
|
|
175
|
-
className:
|
|
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:
|
|
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:
|
|
150
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
185
151
|
});
|
|
186
|
-
function
|
|
152
|
+
function V(o) {
|
|
187
153
|
return m("MuiCardContent", o);
|
|
188
154
|
}
|
|
189
|
-
|
|
190
|
-
const
|
|
155
|
+
f("MuiCardContent", ["root"]);
|
|
156
|
+
const $ = (o) => {
|
|
191
157
|
const {
|
|
192
|
-
classes:
|
|
158
|
+
classes: t
|
|
193
159
|
} = o;
|
|
194
|
-
return
|
|
160
|
+
return b({
|
|
195
161
|
root: ["root"]
|
|
196
|
-
},
|
|
197
|
-
},
|
|
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
|
-
}),
|
|
206
|
-
const
|
|
207
|
-
props:
|
|
171
|
+
}), S = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
|
172
|
+
const n = C({
|
|
173
|
+
props: t,
|
|
208
174
|
name: "MuiCardContent"
|
|
209
175
|
}), {
|
|
210
|
-
className:
|
|
211
|
-
component:
|
|
176
|
+
className: a,
|
|
177
|
+
component: c = "div",
|
|
212
178
|
...i
|
|
213
|
-
} =
|
|
214
|
-
...
|
|
215
|
-
component:
|
|
216
|
-
}, l =
|
|
217
|
-
return /* @__PURE__ */
|
|
218
|
-
as:
|
|
219
|
-
className:
|
|
220
|
-
ownerState:
|
|
221
|
-
ref:
|
|
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" && (
|
|
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:
|
|
199
|
+
children: e.node,
|
|
234
200
|
/**
|
|
235
201
|
* Override or extend the styles applied to the component.
|
|
236
202
|
*/
|
|
237
|
-
classes:
|
|
203
|
+
classes: e.object,
|
|
238
204
|
/**
|
|
239
205
|
* @ignore
|
|
240
206
|
*/
|
|
241
|
-
className:
|
|
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:
|
|
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:
|
|
216
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
251
217
|
});
|
|
252
|
-
function
|
|
218
|
+
function W(o) {
|
|
253
219
|
return m("MuiCardMedia", o);
|
|
254
220
|
}
|
|
255
|
-
|
|
256
|
-
const
|
|
221
|
+
f("MuiCardMedia", ["root", "media", "img"]);
|
|
222
|
+
const F = (o) => {
|
|
257
223
|
const {
|
|
258
|
-
classes:
|
|
259
|
-
isMediaComponent:
|
|
260
|
-
isImageComponent:
|
|
224
|
+
classes: t,
|
|
225
|
+
isMediaComponent: s,
|
|
226
|
+
isImageComponent: n
|
|
261
227
|
} = o;
|
|
262
|
-
return
|
|
263
|
-
root: ["root",
|
|
264
|
-
},
|
|
265
|
-
},
|
|
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,
|
|
234
|
+
overridesResolver: (o, t) => {
|
|
269
235
|
const {
|
|
270
|
-
ownerState:
|
|
236
|
+
ownerState: s
|
|
271
237
|
} = o, {
|
|
272
|
-
isMediaComponent:
|
|
273
|
-
isImageComponent:
|
|
274
|
-
} =
|
|
275
|
-
return [
|
|
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
|
-
}),
|
|
298
|
-
const
|
|
299
|
-
props:
|
|
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:
|
|
303
|
-
className:
|
|
268
|
+
children: a,
|
|
269
|
+
className: c,
|
|
304
270
|
component: i = "div",
|
|
305
|
-
image:
|
|
271
|
+
image: r,
|
|
306
272
|
src: l,
|
|
307
|
-
style:
|
|
308
|
-
...
|
|
309
|
-
} =
|
|
310
|
-
backgroundImage: `url("${
|
|
311
|
-
...
|
|
312
|
-
} :
|
|
313
|
-
...
|
|
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:
|
|
316
|
-
isImageComponent:
|
|
317
|
-
},
|
|
318
|
-
return /* @__PURE__ */
|
|
319
|
-
className:
|
|
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: !
|
|
322
|
-
ref:
|
|
323
|
-
style:
|
|
324
|
-
ownerState:
|
|
325
|
-
src:
|
|
326
|
-
...
|
|
327
|
-
children:
|
|
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" && (
|
|
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:
|
|
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:
|
|
308
|
+
classes: e.object,
|
|
343
309
|
/**
|
|
344
310
|
* @ignore
|
|
345
311
|
*/
|
|
346
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
339
|
+
function Z({
|
|
619
340
|
image: o,
|
|
620
|
-
imageAlt:
|
|
621
|
-
title:
|
|
622
|
-
description:
|
|
623
|
-
buttonLabel:
|
|
624
|
-
disabled:
|
|
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__ */
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
|
|
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:
|
|
360
|
+
title: t
|
|
640
361
|
}
|
|
641
362
|
),
|
|
642
|
-
/* @__PURE__ */
|
|
643
|
-
/* @__PURE__ */
|
|
644
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
371
|
+
Z as MediaCardWithAction
|
|
651
372
|
};
|