@fangzsx/component-library 0.0.5 → 0.0.7

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,850 @@
1
+ import { jsx as l, jsxs as k } from "react/jsx-runtime";
2
+ import { Stack as _ } from "@mui/material";
3
+ import { d as G, T as E, g as m, a as y, u as x, s as B, b as H, c as T, e as M, f as V, m as C, P as e, h as L, i as d, j as O, C as W, k as Y, l as J, n as K, o as Q, p as X, B as o2 } from "../../index-DP5i7LPc.js";
4
+ import { useTheme as e2, createBox as r2 } from "@mui/system";
5
+ import * as g from "react";
6
+ function a2() {
7
+ const o = e2(G);
8
+ return process.env.NODE_ENV !== "production" && g.useDebugValue(o), o[E] || o;
9
+ }
10
+ function t2(o) {
11
+ const r = typeof o;
12
+ switch (r) {
13
+ case "number":
14
+ return Number.isNaN(o) ? "NaN" : Number.isFinite(o) ? o !== Math.floor(o) ? "float" : "number" : "Infinity";
15
+ case "object":
16
+ return o === null ? "null" : o.constructor.name;
17
+ default:
18
+ return r;
19
+ }
20
+ }
21
+ function z(o, r, a, n) {
22
+ const t = o[r];
23
+ if (t == null || !Number.isInteger(t)) {
24
+ const i = t2(t);
25
+ return new RangeError(`Invalid ${n} \`${r}\` of type \`${i}\` supplied to \`${a}\`, expected \`integer\`.`);
26
+ }
27
+ return null;
28
+ }
29
+ function P(o, r, a, n) {
30
+ return o[r] === void 0 ? null : z(o, r, a, n);
31
+ }
32
+ function w() {
33
+ return null;
34
+ }
35
+ P.isRequired = z;
36
+ w.isRequired = w;
37
+ const n2 = process.env.NODE_ENV === "production" ? w : P;
38
+ function s2(o) {
39
+ return m("MuiPaper", o);
40
+ }
41
+ y("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
42
+ const i2 = (o) => {
43
+ const {
44
+ square: r,
45
+ elevation: a,
46
+ variant: n,
47
+ classes: t
48
+ } = o, i = {
49
+ root: ["root", n, !r && "rounded", n === "elevation" && `elevation${a}`]
50
+ };
51
+ return V(i, s2, t);
52
+ }, l2 = B("div", {
53
+ name: "MuiPaper",
54
+ slot: "Root",
55
+ overridesResolver: (o, r) => {
56
+ const {
57
+ ownerState: a
58
+ } = o;
59
+ return [r.root, r[a.variant], !a.square && r.rounded, a.variant === "elevation" && r[`elevation${a.elevation}`]];
60
+ }
61
+ })(C(({
62
+ theme: o
63
+ }) => ({
64
+ backgroundColor: (o.vars || o).palette.background.paper,
65
+ color: (o.vars || o).palette.text.primary,
66
+ transition: o.transitions.create("box-shadow"),
67
+ variants: [{
68
+ props: ({
69
+ ownerState: r
70
+ }) => !r.square,
71
+ style: {
72
+ borderRadius: o.shape.borderRadius
73
+ }
74
+ }, {
75
+ props: {
76
+ variant: "outlined"
77
+ },
78
+ style: {
79
+ border: `1px solid ${(o.vars || o).palette.divider}`
80
+ }
81
+ }, {
82
+ props: {
83
+ variant: "elevation"
84
+ },
85
+ style: {
86
+ boxShadow: "var(--Paper-shadow)",
87
+ backgroundImage: "var(--Paper-overlay)"
88
+ }
89
+ }]
90
+ }))), j = /* @__PURE__ */ g.forwardRef(function(r, a) {
91
+ const n = x({
92
+ props: r,
93
+ name: "MuiPaper"
94
+ }), t = a2(), {
95
+ className: i,
96
+ component: c = "div",
97
+ elevation: s = 1,
98
+ square: u = !1,
99
+ variant: p = "elevation",
100
+ ...f
101
+ } = n, b = {
102
+ ...n,
103
+ component: c,
104
+ elevation: s,
105
+ square: u,
106
+ variant: p
107
+ }, v = i2(b);
108
+ return process.env.NODE_ENV !== "production" && t.shadows[s] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
109
+ `)), /* @__PURE__ */ l(l2, {
110
+ as: c,
111
+ ownerState: b,
112
+ className: T(v.root, i),
113
+ ref: a,
114
+ ...f,
115
+ style: {
116
+ ...p === "elevation" && {
117
+ "--Paper-shadow": (t.vars || t).shadows[s],
118
+ ...t.vars && {
119
+ "--Paper-overlay": t.vars.overlays?.[s]
120
+ },
121
+ ...!t.vars && t.palette.mode === "dark" && {
122
+ "--Paper-overlay": `linear-gradient(${H("#fff", M(s))}, ${H("#fff", M(s))})`
123
+ }
124
+ },
125
+ ...f.style
126
+ }
127
+ });
128
+ });
129
+ process.env.NODE_ENV !== "production" && (j.propTypes = {
130
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
131
+ // │ These PropTypes are generated from the TypeScript type definitions. │
132
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
133
+ // └─────────────────────────────────────────────────────────────────────┘
134
+ /**
135
+ * The content of the component.
136
+ */
137
+ children: e.node,
138
+ /**
139
+ * Override or extend the styles applied to the component.
140
+ */
141
+ classes: e.object,
142
+ /**
143
+ * @ignore
144
+ */
145
+ className: e.string,
146
+ /**
147
+ * The component used for the root node.
148
+ * Either a string to use a HTML element or a component.
149
+ */
150
+ component: e.elementType,
151
+ /**
152
+ * Shadow depth, corresponds to `dp` in the spec.
153
+ * It accepts values between 0 and 24 inclusive.
154
+ * @default 1
155
+ */
156
+ elevation: L(n2, (o) => {
157
+ const {
158
+ elevation: r,
159
+ variant: a
160
+ } = o;
161
+ return r > 0 && a === "outlined" ? new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${a}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
162
+ }),
163
+ /**
164
+ * If `true`, rounded corners are disabled.
165
+ * @default false
166
+ */
167
+ square: e.bool,
168
+ /**
169
+ * @ignore
170
+ */
171
+ style: e.object,
172
+ /**
173
+ * The system prop that allows defining system overrides as well as additional CSS styles.
174
+ */
175
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
176
+ /**
177
+ * The variant to use.
178
+ * @default 'elevation'
179
+ */
180
+ variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
181
+ });
182
+ function p2(o) {
183
+ return m("MuiAppBar", o);
184
+ }
185
+ y("MuiAppBar", ["root", "positionFixed", "positionAbsolute", "positionSticky", "positionStatic", "positionRelative", "colorDefault", "colorPrimary", "colorSecondary", "colorInherit", "colorTransparent", "colorError", "colorInfo", "colorSuccess", "colorWarning"]);
186
+ const c2 = (o) => {
187
+ const {
188
+ color: r,
189
+ position: a,
190
+ classes: n
191
+ } = o, t = {
192
+ root: ["root", `color${d(r)}`, `position${d(a)}`]
193
+ };
194
+ return V(t, p2, n);
195
+ }, S = (o, r) => o ? `${o?.replace(")", "")}, ${r})` : r, d2 = B(j, {
196
+ name: "MuiAppBar",
197
+ slot: "Root",
198
+ overridesResolver: (o, r) => {
199
+ const {
200
+ ownerState: a
201
+ } = o;
202
+ return [r.root, r[`position${d(a.position)}`], r[`color${d(a.color)}`]];
203
+ }
204
+ })(C(({
205
+ theme: o
206
+ }) => ({
207
+ display: "flex",
208
+ flexDirection: "column",
209
+ width: "100%",
210
+ boxSizing: "border-box",
211
+ // Prevent padding issue with the Modal and fixed positioned AppBar.
212
+ flexShrink: 0,
213
+ variants: [{
214
+ props: {
215
+ position: "fixed"
216
+ },
217
+ style: {
218
+ position: "fixed",
219
+ zIndex: (o.vars || o).zIndex.appBar,
220
+ top: 0,
221
+ left: "auto",
222
+ right: 0,
223
+ "@media print": {
224
+ // Prevent the app bar to be visible on each printed page.
225
+ position: "absolute"
226
+ }
227
+ }
228
+ }, {
229
+ props: {
230
+ position: "absolute"
231
+ },
232
+ style: {
233
+ position: "absolute",
234
+ zIndex: (o.vars || o).zIndex.appBar,
235
+ top: 0,
236
+ left: "auto",
237
+ right: 0
238
+ }
239
+ }, {
240
+ props: {
241
+ position: "sticky"
242
+ },
243
+ style: {
244
+ position: "sticky",
245
+ zIndex: (o.vars || o).zIndex.appBar,
246
+ top: 0,
247
+ left: "auto",
248
+ right: 0
249
+ }
250
+ }, {
251
+ props: {
252
+ position: "static"
253
+ },
254
+ style: {
255
+ position: "static"
256
+ }
257
+ }, {
258
+ props: {
259
+ position: "relative"
260
+ },
261
+ style: {
262
+ position: "relative"
263
+ }
264
+ }, {
265
+ props: {
266
+ color: "inherit"
267
+ },
268
+ style: {
269
+ "--AppBar-color": "inherit",
270
+ color: "var(--AppBar-color)"
271
+ }
272
+ }, {
273
+ props: {
274
+ color: "default"
275
+ },
276
+ style: {
277
+ "--AppBar-background": o.vars ? o.vars.palette.AppBar.defaultBg : o.palette.grey[100],
278
+ "--AppBar-color": o.vars ? o.vars.palette.text.primary : o.palette.getContrastText(o.palette.grey[100]),
279
+ ...o.applyStyles("dark", {
280
+ "--AppBar-background": o.vars ? o.vars.palette.AppBar.defaultBg : o.palette.grey[900],
281
+ "--AppBar-color": o.vars ? o.vars.palette.text.primary : o.palette.getContrastText(o.palette.grey[900])
282
+ })
283
+ }
284
+ }, ...Object.entries(o.palette).filter(O(["contrastText"])).map(([r]) => ({
285
+ props: {
286
+ color: r
287
+ },
288
+ style: {
289
+ "--AppBar-background": (o.vars ?? o).palette[r].main,
290
+ "--AppBar-color": (o.vars ?? o).palette[r].contrastText
291
+ }
292
+ })), {
293
+ props: (r) => r.enableColorOnDark === !0 && !["inherit", "transparent"].includes(r.color),
294
+ style: {
295
+ backgroundColor: "var(--AppBar-background)",
296
+ color: "var(--AppBar-color)"
297
+ }
298
+ }, {
299
+ props: (r) => r.enableColorOnDark === !1 && !["inherit", "transparent"].includes(r.color),
300
+ style: {
301
+ backgroundColor: "var(--AppBar-background)",
302
+ color: "var(--AppBar-color)",
303
+ ...o.applyStyles("dark", {
304
+ backgroundColor: o.vars ? S(o.vars.palette.AppBar.darkBg, "var(--AppBar-background)") : null,
305
+ color: o.vars ? S(o.vars.palette.AppBar.darkColor, "var(--AppBar-color)") : null
306
+ })
307
+ }
308
+ }, {
309
+ props: {
310
+ color: "transparent"
311
+ },
312
+ style: {
313
+ "--AppBar-background": "transparent",
314
+ "--AppBar-color": "inherit",
315
+ backgroundColor: "var(--AppBar-background)",
316
+ color: "var(--AppBar-color)",
317
+ ...o.applyStyles("dark", {
318
+ backgroundImage: "none"
319
+ })
320
+ }
321
+ }]
322
+ }))), D = /* @__PURE__ */ g.forwardRef(function(r, a) {
323
+ const n = x({
324
+ props: r,
325
+ name: "MuiAppBar"
326
+ }), {
327
+ className: t,
328
+ color: i = "primary",
329
+ enableColorOnDark: c = !1,
330
+ position: s = "fixed",
331
+ ...u
332
+ } = n, p = {
333
+ ...n,
334
+ color: i,
335
+ position: s,
336
+ enableColorOnDark: c
337
+ }, f = c2(p);
338
+ return /* @__PURE__ */ l(d2, {
339
+ square: !0,
340
+ component: "header",
341
+ ownerState: p,
342
+ elevation: 4,
343
+ className: T(f.root, t, s === "fixed" && "mui-fixed"),
344
+ ref: a,
345
+ ...u
346
+ });
347
+ });
348
+ process.env.NODE_ENV !== "production" && (D.propTypes = {
349
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
350
+ // │ These PropTypes are generated from the TypeScript type definitions. │
351
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
352
+ // └─────────────────────────────────────────────────────────────────────┘
353
+ /**
354
+ * The content of the component.
355
+ */
356
+ children: e.node,
357
+ /**
358
+ * Override or extend the styles applied to the component.
359
+ */
360
+ classes: e.object,
361
+ /**
362
+ * @ignore
363
+ */
364
+ className: e.string,
365
+ /**
366
+ * The color of the component.
367
+ * It supports both default and custom theme colors, which can be added as shown in the
368
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
369
+ * @default 'primary'
370
+ */
371
+ color: e.oneOfType([e.oneOf(["default", "inherit", "primary", "secondary", "transparent", "error", "info", "success", "warning"]), e.string]),
372
+ /**
373
+ * Shadow depth, corresponds to `dp` in the spec.
374
+ * It accepts values between 0 and 24 inclusive.
375
+ * @default 4
376
+ */
377
+ elevation: e.number,
378
+ /**
379
+ * If true, the `color` prop is applied in dark mode.
380
+ * @default false
381
+ */
382
+ enableColorOnDark: e.bool,
383
+ /**
384
+ * The positioning type. The behavior of the different options is described
385
+ * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position).
386
+ * Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
387
+ * @default 'fixed'
388
+ */
389
+ position: e.oneOf(["absolute", "fixed", "relative", "static", "sticky"]),
390
+ /**
391
+ * If `false`, rounded corners are enabled.
392
+ * @default true
393
+ */
394
+ square: e.bool,
395
+ /**
396
+ * The system prop that allows defining system overrides as well as additional CSS styles.
397
+ */
398
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
399
+ });
400
+ const u2 = y("MuiBox", ["root"]), f2 = Y(), A = r2({
401
+ themeId: E,
402
+ defaultTheme: f2,
403
+ defaultClassName: u2.root,
404
+ generateClassName: W.generate
405
+ });
406
+ process.env.NODE_ENV !== "production" && (A.propTypes = {
407
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
408
+ // │ These PropTypes are generated from the TypeScript type definitions. │
409
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
410
+ // └─────────────────────────────────────────────────────────────────────┘
411
+ /**
412
+ * @ignore
413
+ */
414
+ children: e.node,
415
+ /**
416
+ * The component used for the root node.
417
+ * Either a string to use a HTML element or a component.
418
+ */
419
+ component: e.elementType,
420
+ /**
421
+ * The system prop that allows defining system overrides as well as additional CSS styles.
422
+ */
423
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
424
+ });
425
+ function v2(o) {
426
+ return m("MuiIconButton", o);
427
+ }
428
+ const $ = y("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), g2 = (o) => {
429
+ const {
430
+ classes: r,
431
+ disabled: a,
432
+ color: n,
433
+ edge: t,
434
+ size: i,
435
+ loading: c
436
+ } = o, s = {
437
+ root: ["root", c && "loading", a && "disabled", n !== "default" && `color${d(n)}`, t && `edge${d(t)}`, `size${d(i)}`],
438
+ loadingIndicator: ["loadingIndicator"],
439
+ loadingWrapper: ["loadingWrapper"]
440
+ };
441
+ return V(s, v2, r);
442
+ }, b2 = B(K, {
443
+ name: "MuiIconButton",
444
+ slot: "Root",
445
+ overridesResolver: (o, r) => {
446
+ const {
447
+ ownerState: a
448
+ } = o;
449
+ return [r.root, a.loading && r.loading, a.color !== "default" && r[`color${d(a.color)}`], a.edge && r[`edge${d(a.edge)}`], r[`size${d(a.size)}`]];
450
+ }
451
+ })(C(({
452
+ theme: o
453
+ }) => ({
454
+ textAlign: "center",
455
+ flex: "0 0 auto",
456
+ fontSize: o.typography.pxToRem(24),
457
+ padding: 8,
458
+ borderRadius: "50%",
459
+ color: (o.vars || o).palette.action.active,
460
+ transition: o.transitions.create("background-color", {
461
+ duration: o.transitions.duration.shortest
462
+ }),
463
+ variants: [{
464
+ props: (r) => !r.disableRipple,
465
+ style: {
466
+ "--IconButton-hoverBg": o.alpha((o.vars || o).palette.action.active, (o.vars || o).palette.action.hoverOpacity),
467
+ "&:hover": {
468
+ backgroundColor: "var(--IconButton-hoverBg)",
469
+ // Reset on touch devices, it doesn't add specificity
470
+ "@media (hover: none)": {
471
+ backgroundColor: "transparent"
472
+ }
473
+ }
474
+ }
475
+ }, {
476
+ props: {
477
+ edge: "start"
478
+ },
479
+ style: {
480
+ marginLeft: -12
481
+ }
482
+ }, {
483
+ props: {
484
+ edge: "start",
485
+ size: "small"
486
+ },
487
+ style: {
488
+ marginLeft: -3
489
+ }
490
+ }, {
491
+ props: {
492
+ edge: "end"
493
+ },
494
+ style: {
495
+ marginRight: -12
496
+ }
497
+ }, {
498
+ props: {
499
+ edge: "end",
500
+ size: "small"
501
+ },
502
+ style: {
503
+ marginRight: -3
504
+ }
505
+ }]
506
+ })), C(({
507
+ theme: o
508
+ }) => ({
509
+ variants: [{
510
+ props: {
511
+ color: "inherit"
512
+ },
513
+ style: {
514
+ color: "inherit"
515
+ }
516
+ }, ...Object.entries(o.palette).filter(O()).map(([r]) => ({
517
+ props: {
518
+ color: r
519
+ },
520
+ style: {
521
+ color: (o.vars || o).palette[r].main
522
+ }
523
+ })), ...Object.entries(o.palette).filter(O()).map(([r]) => ({
524
+ props: {
525
+ color: r
526
+ },
527
+ style: {
528
+ "--IconButton-hoverBg": o.alpha((o.vars || o).palette[r].main, (o.vars || o).palette.action.hoverOpacity)
529
+ }
530
+ })), {
531
+ props: {
532
+ size: "small"
533
+ },
534
+ style: {
535
+ padding: 5,
536
+ fontSize: o.typography.pxToRem(18)
537
+ }
538
+ }, {
539
+ props: {
540
+ size: "large"
541
+ },
542
+ style: {
543
+ padding: 12,
544
+ fontSize: o.typography.pxToRem(28)
545
+ }
546
+ }],
547
+ [`&.${$.disabled}`]: {
548
+ backgroundColor: "transparent",
549
+ color: (o.vars || o).palette.action.disabled
550
+ },
551
+ [`&.${$.loading}`]: {
552
+ color: "transparent"
553
+ }
554
+ }))), C2 = B("span", {
555
+ name: "MuiIconButton",
556
+ slot: "LoadingIndicator"
557
+ })(({
558
+ theme: o
559
+ }) => ({
560
+ display: "none",
561
+ position: "absolute",
562
+ visibility: "visible",
563
+ top: "50%",
564
+ left: "50%",
565
+ transform: "translate(-50%, -50%)",
566
+ color: (o.vars || o).palette.action.disabled,
567
+ variants: [{
568
+ props: {
569
+ loading: !0
570
+ },
571
+ style: {
572
+ display: "flex"
573
+ }
574
+ }]
575
+ })), U = /* @__PURE__ */ g.forwardRef(function(r, a) {
576
+ const n = x({
577
+ props: r,
578
+ name: "MuiIconButton"
579
+ }), {
580
+ edge: t = !1,
581
+ children: i,
582
+ className: c,
583
+ color: s = "default",
584
+ disabled: u = !1,
585
+ disableFocusRipple: p = !1,
586
+ size: f = "medium",
587
+ id: b,
588
+ loading: v = null,
589
+ loadingIndicator: Z,
590
+ ...F
591
+ } = n, N = J(b), R = Z ?? /* @__PURE__ */ l(Q, {
592
+ "aria-labelledby": N,
593
+ color: "inherit",
594
+ size: 16
595
+ }), I = {
596
+ ...n,
597
+ edge: t,
598
+ color: s,
599
+ disabled: u,
600
+ disableFocusRipple: p,
601
+ loading: v,
602
+ loadingIndicator: R,
603
+ size: f
604
+ }, h = g2(I);
605
+ return /* @__PURE__ */ k(b2, {
606
+ id: v ? N : b,
607
+ className: T(h.root, c),
608
+ centerRipple: !0,
609
+ focusRipple: !p,
610
+ disabled: u || v,
611
+ ref: a,
612
+ ...F,
613
+ ownerState: I,
614
+ children: [typeof v == "boolean" && // use plain HTML span to minimize the runtime overhead
615
+ /* @__PURE__ */ l("span", {
616
+ className: h.loadingWrapper,
617
+ style: {
618
+ display: "contents"
619
+ },
620
+ children: /* @__PURE__ */ l(C2, {
621
+ className: h.loadingIndicator,
622
+ ownerState: I,
623
+ children: v && R
624
+ })
625
+ }), i]
626
+ });
627
+ });
628
+ process.env.NODE_ENV !== "production" && (U.propTypes = {
629
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
630
+ // │ These PropTypes are generated from the TypeScript type definitions. │
631
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
632
+ // └─────────────────────────────────────────────────────────────────────┘
633
+ /**
634
+ * The icon to display.
635
+ */
636
+ children: L(e.node, (o) => g.Children.toArray(o.children).some((a) => /* @__PURE__ */ g.isValidElement(a) && a.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(`
637
+ `)) : null),
638
+ /**
639
+ * Override or extend the styles applied to the component.
640
+ */
641
+ classes: e.object,
642
+ /**
643
+ * @ignore
644
+ */
645
+ className: e.string,
646
+ /**
647
+ * The color of the component.
648
+ * It supports both default and custom theme colors, which can be added as shown in the
649
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
650
+ * @default 'default'
651
+ */
652
+ color: e.oneOfType([e.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
653
+ /**
654
+ * If `true`, the component is disabled.
655
+ * @default false
656
+ */
657
+ disabled: e.bool,
658
+ /**
659
+ * If `true`, the keyboard focus ripple is disabled.
660
+ * @default false
661
+ */
662
+ disableFocusRipple: e.bool,
663
+ /**
664
+ * If `true`, the ripple effect is disabled.
665
+ *
666
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
667
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
668
+ * @default false
669
+ */
670
+ disableRipple: e.bool,
671
+ /**
672
+ * If given, uses a negative margin to counteract the padding on one
673
+ * side (this is often helpful for aligning the left or right
674
+ * side of the icon with content above or below, without ruining the border
675
+ * size and shape).
676
+ * @default false
677
+ */
678
+ edge: e.oneOf(["end", "start", !1]),
679
+ /**
680
+ * @ignore
681
+ */
682
+ id: e.string,
683
+ /**
684
+ * If `true`, the loading indicator is visible and the button is disabled.
685
+ * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
686
+ * @default null
687
+ */
688
+ loading: e.bool,
689
+ /**
690
+ * Element placed before the children if the button is in loading state.
691
+ * The node should contain an element with `role="progressbar"` with an accessible name.
692
+ * By default, it renders a `CircularProgress` that is labeled by the button itself.
693
+ * @default <CircularProgress color="inherit" size={16} />
694
+ */
695
+ loadingIndicator: e.node,
696
+ /**
697
+ * The size of the component.
698
+ * `small` is equivalent to the dense button styling.
699
+ * @default 'medium'
700
+ */
701
+ size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
702
+ /**
703
+ * The system prop that allows defining system overrides as well as additional CSS styles.
704
+ */
705
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
706
+ });
707
+ function y2(o) {
708
+ return m("MuiToolbar", o);
709
+ }
710
+ y("MuiToolbar", ["root", "gutters", "regular", "dense"]);
711
+ const B2 = (o) => {
712
+ const {
713
+ classes: r,
714
+ disableGutters: a,
715
+ variant: n
716
+ } = o;
717
+ return V({
718
+ root: ["root", !a && "gutters", n]
719
+ }, y2, r);
720
+ }, m2 = B("div", {
721
+ name: "MuiToolbar",
722
+ slot: "Root",
723
+ overridesResolver: (o, r) => {
724
+ const {
725
+ ownerState: a
726
+ } = o;
727
+ return [r.root, !a.disableGutters && r.gutters, r[a.variant]];
728
+ }
729
+ })(C(({
730
+ theme: o
731
+ }) => ({
732
+ position: "relative",
733
+ display: "flex",
734
+ alignItems: "center",
735
+ variants: [{
736
+ props: ({
737
+ ownerState: r
738
+ }) => !r.disableGutters,
739
+ style: {
740
+ paddingLeft: o.spacing(2),
741
+ paddingRight: o.spacing(2),
742
+ [o.breakpoints.up("sm")]: {
743
+ paddingLeft: o.spacing(3),
744
+ paddingRight: o.spacing(3)
745
+ }
746
+ }
747
+ }, {
748
+ props: {
749
+ variant: "dense"
750
+ },
751
+ style: {
752
+ minHeight: 48
753
+ }
754
+ }, {
755
+ props: {
756
+ variant: "regular"
757
+ },
758
+ style: o.mixins.toolbar
759
+ }]
760
+ }))), q = /* @__PURE__ */ g.forwardRef(function(r, a) {
761
+ const n = x({
762
+ props: r,
763
+ name: "MuiToolbar"
764
+ }), {
765
+ className: t,
766
+ component: i = "div",
767
+ disableGutters: c = !1,
768
+ variant: s = "regular",
769
+ ...u
770
+ } = n, p = {
771
+ ...n,
772
+ component: i,
773
+ disableGutters: c,
774
+ variant: s
775
+ }, f = B2(p);
776
+ return /* @__PURE__ */ l(m2, {
777
+ as: i,
778
+ className: T(f.root, t),
779
+ ref: a,
780
+ ownerState: p,
781
+ ...u
782
+ });
783
+ });
784
+ process.env.NODE_ENV !== "production" && (q.propTypes = {
785
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
786
+ // │ These PropTypes are generated from the TypeScript type definitions. │
787
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
788
+ // └─────────────────────────────────────────────────────────────────────┘
789
+ /**
790
+ * The Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.
791
+ * The Toolbar is a flex container, allowing flex item properties to be used to lay out the children.
792
+ */
793
+ children: e.node,
794
+ /**
795
+ * Override or extend the styles applied to the component.
796
+ */
797
+ classes: e.object,
798
+ /**
799
+ * @ignore
800
+ */
801
+ className: e.string,
802
+ /**
803
+ * The component used for the root node.
804
+ * Either a string to use a HTML element or a component.
805
+ */
806
+ component: e.elementType,
807
+ /**
808
+ * If `true`, disables gutter padding.
809
+ * @default false
810
+ */
811
+ disableGutters: 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
+ * The variant to use.
818
+ * @default 'regular'
819
+ */
820
+ variant: e.oneOfType([e.oneOf(["dense", "regular"]), e.string])
821
+ });
822
+ const x2 = "data:image/svg+xml,%3csvg%20width='107'%20height='40'%20viewBox='0%200%20107%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200V32.1252L3.0277%2033.8762L10.5965%2038.2503L13.6243%2040L16.652%2038.2503L24.2208%2033.8762L27.2485%2032.1261V0H0ZM24.2208%2030.3751L13.6243%2036.5002L3.0277%2030.3751V3.03121H24.2208V30.3751Z'%20fill='%230B6B9F'/%3e%3cpath%20d='M16.6808%2017.1008V10.8984H10.5728C10.5728%2012.1316%209.54697%2013.1315%208.28221%2013.1315V16.1098H10.5728V18.5895H22.7887V29.3101L13.6268%2034.4681L4.46484%2029.3101V22.3121H10.5728V25.7586L13.6226%2027.4759L16.6808%2025.7527V20.8352H4.46484V4.94531H22.7887V17.1008H16.6808Z'%20fill='%2327A4E8'/%3e%3cpath%20d='M46.0749%208.7868C46.0749%208.81752%2046.0749%208.84824%2046.0749%208.87896C46.0749%2011.1917%2046.0749%2013.5044%2046.0749%2015.8172C46.0738%2015.8325%2046.0738%2015.8479%2046.0749%2015.8632C46.0826%2015.9214%2046.0573%2015.9378%2046.0003%2015.9378C44.792%2015.9378%2043.5836%2015.9378%2042.3752%2015.9378C42.3127%2015.9378%2042.2996%2015.9175%2042.2996%2015.8589C42.2996%2014.731%2042.2996%2013.6032%2042.2996%2012.4753C42.2996%2012.3826%2042.2996%2012.3821%2042.2058%2012.3821H40.6888C40.5989%2012.3821%2040.5989%2012.3821%2040.5989%2012.4737V17.7859C40.5989%2017.8743%2040.5988%2017.8743%2040.6904%2017.8743C41.7058%2017.8743%2042.719%2017.8655%2043.7365%2017.877C44.6746%2017.8885%2045.3748%2018.3246%2045.8391%2019.1354C46.0038%2019.4378%2046.0855%2019.7785%2046.076%2020.1228C46.076%2023.0587%2046.076%2025.9946%2046.076%2028.9305C46.0789%2028.974%2046.0617%2029.0165%2046.0294%2029.0457C45.2655%2029.7632%2044.5019%2030.4813%2043.7387%2031.1999C43.7144%2031.2167%2043.6867%2031.2279%2043.6576%2031.2328C43.6394%2031.2353%2043.621%2031.2353%2043.6028%2031.2328H36.8323V24.0664H40.5989V27.5618C40.5989%2027.6557%2040.5988%2027.6557%2040.691%2027.6557C41.2019%2027.6557%2041.7129%2027.6557%2042.2261%2027.6557C42.2908%2027.6557%2042.3056%2027.6359%2042.3056%2027.5739C42.3056%2025.5574%2042.3056%2023.5409%2042.3056%2021.5244C42.3056%2021.4597%2042.2864%2021.4443%2042.2239%2021.4448C41.1997%2021.4448%2040.1756%2021.4498%2039.1536%2021.4448C38.5073%2021.4512%2037.8866%2021.1925%2037.4359%2020.729C37.1138%2020.4131%2036.9071%2019.9981%2036.8487%2019.5507C36.8368%2019.4528%2036.8311%2019.3542%2036.8317%2019.2555C36.8317%2016.5435%2036.8317%2013.8314%2036.8317%2011.1193C36.8273%2011.0738%2036.8441%2011.0289%2036.8773%2010.9975C37.6393%2010.2778%2038.4001%209.55698%2039.1597%208.83508C39.1739%208.81944%2039.1869%208.80275%2039.1986%208.78516L46.0749%208.7868Z'%20fill='%230B6B9F'/%3e%3cpath%20d='M57.369%208.78711C57.369%208.82002%2057.369%208.85294%2057.369%208.8853V12.2864C57.369%2012.3802%2057.369%2012.3802%2057.2769%2012.3802H53.0334C53.0115%2012.3802%2052.989%2012.3802%2052.9676%2012.3802C52.9128%2012.3741%2052.8925%2012.395%2052.8925%2012.4537C52.8925%2014.1301%2052.8925%2015.8065%2052.8925%2017.4829C52.8925%2017.5043%2052.8925%2017.5262%2052.8958%2017.5548H56.5329V21.1275C56.5044%2021.1275%2056.4748%2021.1314%2056.4452%2021.1314H52.9912C52.8925%2021.1314%2052.8925%2021.1314%2052.8925%2021.2323V27.5605C52.8925%2027.6565%2052.8925%2027.6565%2052.9884%2027.6565H57.5977V31.2271C57.5763%2031.2271%2057.5533%2031.2309%2057.5302%2031.2309C54.7524%2031.2309%2051.9745%2031.2309%2049.1967%2031.2309C49.1347%2031.2309%2049.1133%2031.2112%2049.1205%2031.1525C49.1216%2031.1328%2049.1216%2031.113%2049.1205%2031.0932V8.89902C49.1205%208.86171%2049.1205%208.82441%2049.1205%208.7893L57.369%208.78711Z'%20fill='%230B6B9F'/%3e%3cpath%20d='M62.8666%208.78906H69.7501V16.0685H65.9643V12.3898H64.2433V27.653H65.9643V23.9272H69.7501V29.0304L67.3415%2031.2378H60.4883V11.0431L62.8666%208.78906Z'%20fill='%230B6B9F'/%3e%3cpath%20d='M94.9616%208.84635V31.1432C94.9616%2031.2339%2094.9616%2031.2339%2094.8728%2031.2339H94.6875C93.4341%2031.2339%2092.1808%2031.2339%2090.9275%2031.2339H90.8271C90.8075%2031.2348%2090.7878%2031.2314%2090.7696%2031.2238C90.7453%2031.2088%2090.7294%2031.1832%2090.7268%2031.1547C90.5415%2030.3406%2090.3547%2029.5266%2090.1665%2028.7125L89.3326%2025.092C89.0632%2023.9217%2088.794%2022.7515%2088.525%2021.5812C88.5135%2021.5291%2088.4987%2021.4781%2088.4855%2021.4271H88.4685V31.232H84.8149C84.68%2031.232%2084.6938%2031.2534%2084.6938%2031.1092C84.6938%2023.7014%2084.6938%2016.2938%2084.6938%208.8864C84.6938%208.85349%2084.6938%208.82057%2084.6938%208.78766H89.0491C89.0483%208.79422%2089.0483%208.80085%2089.0491%208.80741L89.4455%2010.6067C89.6542%2011.5524%2089.8629%2012.4981%2090.0716%2013.4438C90.2504%2014.2524%2090.4291%2015.0612%2090.6078%2015.8701C90.6612%2016.1104%2090.714%2016.3509%2090.7663%2016.5915L90.9242%2017.3085C90.9823%2017.574%2091.0406%2017.8396%2091.0991%2018.1055C91.1259%2018.2284%2091.1539%2018.3507%2091.1819%2018.4731H91.1983V8.86555C91.1983%208.83922%2091.1983%208.81344%2091.1939%208.78711H94.9572C94.961%208.80686%2094.9616%208.82661%2094.9616%208.84635Z'%20fill='%2327A4E8'/%3e%3cpath%20d='M78.1551%208.76172H81.971C81.971%208.79628%2081.9672%208.83139%2081.9672%208.86649C81.9672%2015.5304%2081.9672%2022.1941%2081.9672%2028.8577C81.9725%2028.9054%2081.9557%2028.9529%2081.9217%2028.9866C81.1596%2029.7118%2080.3977%2030.4377%2079.636%2031.1644C79.6073%2031.1893%2079.5708%2031.2034%2079.5329%2031.2044C77.3267%2031.2066%2075.1205%2031.2066%2072.9143%2031.2044C72.8913%2031.2044%2072.8682%2031.2044%2072.8408%2031.2001V8.87143C72.8408%208.83468%2072.8408%208.79738%2072.8408%208.76172H76.6567C76.6567%208.78531%2076.6523%208.80944%2076.6523%208.83358C76.6523%2015.036%2076.6523%2021.2386%2076.6523%2027.4413C76.6523%2027.5082%2076.6693%2027.5263%2076.7362%2027.5263C77.1748%2027.5231%2077.6178%2027.5263%2078.0586%2027.5263C78.1622%2027.5263%2078.1622%2027.5263%2078.1622%2027.4238C78.1622%2021.2323%2078.1622%2015.0405%2078.1622%208.84839C78.1584%208.81657%2078.1562%208.7886%2078.1551%208.76172Z'%20fill='%2327A4E8'/%3e%3cpath%20d='M100.474%208.76172L98.0066%2011.2302L98%2011.1907V31.2335C99.2526%2031.2313%20100.506%2031.2313%20101.76%2031.2335V24.0666H103.099V31.2335C104.352%2031.2313%20105.605%2031.2313%20106.859%2031.2335V8.76172H100.474ZM101.76%2020.6106V12.2177H103.099V20.6106H101.76Z'%20fill='%2327A4E8'/%3e%3c/svg%3e";
823
+ function k2({ onLogin: o, onSignUp: r }) {
824
+ return /* @__PURE__ */ l(A, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ l(D, { position: "static", children: /* @__PURE__ */ k(q, { sx: { backgroundColor: "white", justifyContent: "space-between" }, children: [
825
+ /* @__PURE__ */ l(
826
+ U,
827
+ {
828
+ size: "large",
829
+ edge: "start",
830
+ color: "inherit",
831
+ "aria-label": "menu",
832
+ sx: {
833
+ borderRadius: 1,
834
+ "&:hover": {
835
+ borderRadius: 1
836
+ // keep rectangle on hover
837
+ }
838
+ },
839
+ children: /* @__PURE__ */ l(A, { component: "img", src: x2 })
840
+ }
841
+ ),
842
+ /* @__PURE__ */ k(_, { direction: "row", spacing: 2, children: [
843
+ /* @__PURE__ */ l(X, { size: "small", onClick: o, children: "Login" }),
844
+ /* @__PURE__ */ l(o2, { size: "small", onClick: r, children: "Signup" })
845
+ ] })
846
+ ] }) }) });
847
+ }
848
+ export {
849
+ k2 as AppBarPublic
850
+ };