jcicl 0.0.0

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 (59) hide show
  1. package/.chunks/AppBar.js +359 -0
  2. package/.chunks/AppContainer.js +71 -0
  3. package/.chunks/AppHeader.js +31 -0
  4. package/.chunks/Avatar.js +38 -0
  5. package/.chunks/AvatarWithImage.js +36 -0
  6. package/.chunks/BasicPage.js +31 -0
  7. package/.chunks/Button.js +486 -0
  8. package/.chunks/ButtonBase.js +874 -0
  9. package/.chunks/CompactNav.js +70 -0
  10. package/.chunks/Divider.js +311 -0
  11. package/.chunks/Flex.js +21 -0
  12. package/.chunks/Grid.js +18 -0
  13. package/.chunks/Input.js +4392 -0
  14. package/.chunks/Menu.js +3160 -0
  15. package/.chunks/Nav.js +2138 -0
  16. package/.chunks/TransitionGroupContext.js +342 -0
  17. package/.chunks/createSimplePaletteValueFilter.js +17 -0
  18. package/.chunks/createSvgIcon.js +249 -0
  19. package/.chunks/emotion-styled.browser.esm.js +1032 -0
  20. package/.chunks/jocologo.js +4 -0
  21. package/.chunks/memoTheme.js +15 -0
  22. package/.chunks/theme.js +3314 -0
  23. package/base/Avatar/Avatar/index.d.ts +1 -0
  24. package/base/Avatar/Avatar/index.js +4 -0
  25. package/base/Avatar/AvatarWithImage/index.d.ts +1 -0
  26. package/base/Avatar/AvatarWithImage/index.js +4 -0
  27. package/base/Avatar/index.d.ts +2 -0
  28. package/base/Avatar/index.js +6 -0
  29. package/base/Button/index.d.ts +1 -0
  30. package/base/Button/index.js +4 -0
  31. package/base/Divider/index.d.ts +1 -0
  32. package/base/Divider/index.js +4 -0
  33. package/base/Flex/index.d.ts +1 -0
  34. package/base/Flex/index.js +4 -0
  35. package/base/Grid/index.d.ts +1 -0
  36. package/base/Grid/index.js +4 -0
  37. package/base/Input/index.d.ts +1 -0
  38. package/base/Input/index.js +4 -0
  39. package/base/index.d.ts +7 -0
  40. package/base/index.js +16 -0
  41. package/index.d.ts +3 -0
  42. package/index.js +22 -0
  43. package/package.json +82 -0
  44. package/supercomposite/AppBar/index.d.ts +1 -0
  45. package/supercomposite/AppBar/index.js +4 -0
  46. package/supercomposite/AppHeader/index.d.ts +1 -0
  47. package/supercomposite/AppHeader/index.js +4 -0
  48. package/supercomposite/CompactNav/index.d.ts +1 -0
  49. package/supercomposite/CompactNav/index.js +4 -0
  50. package/supercomposite/Nav/index.d.ts +2 -0
  51. package/supercomposite/Nav/index.js +4 -0
  52. package/supercomposite/index.d.ts +3 -0
  53. package/supercomposite/index.js +8 -0
  54. package/templates/AppContainer/index.d.ts +1 -0
  55. package/templates/AppContainer/index.js +4 -0
  56. package/templates/BasicPage/index.d.ts +1 -0
  57. package/templates/BasicPage/index.js +4 -0
  58. package/templates/index.d.ts +2 -0
  59. package/templates/index.js +6 -0
@@ -0,0 +1,874 @@
1
+ var Le = Object.defineProperty;
2
+ var ke = (n, t, o) => t in n ? Le(n, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[t] = o;
3
+ var ue = (n, t, o) => ke(n, typeof t != "symbol" ? t + "" : t, o);
4
+ import * as d from "react";
5
+ import W, { Children as Oe, isValidElement as G, cloneElement as J } from "react";
6
+ import { P as e, c as E, g as fe, s as te, u as de, a as je, b as Fe } from "./theme.js";
7
+ import { jsx as U, jsxs as Ie } from "react/jsx-runtime";
8
+ import { u as Ue, _ as $e, a as ze, T as le, k as ne, b as _e, c as ce, d as H, r as Ae, e as Xe } from "./TransitionGroupContext.js";
9
+ import { _ as Ye } from "./emotion-styled.browser.esm.js";
10
+ function pe(n) {
11
+ try {
12
+ return n.matches(":focus-visible");
13
+ } catch {
14
+ process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
15
+ `));
16
+ }
17
+ return !1;
18
+ }
19
+ class Q {
20
+ constructor() {
21
+ ue(this, "mountEffect", () => {
22
+ this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
23
+ });
24
+ this.ref = {
25
+ current: null
26
+ }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
27
+ }
28
+ /** React ref to the ripple instance */
29
+ /** If the ripple component should be mounted */
30
+ /** Promise that resolves when the ripple component is mounted */
31
+ /** If the ripple component has been mounted */
32
+ /** React state hook setter */
33
+ static create() {
34
+ return new Q();
35
+ }
36
+ static use() {
37
+ const t = Ue(Q.create).current, [o, u] = d.useState(!1);
38
+ return t.shouldMount = o, t.setShouldMount = u, d.useEffect(t.mountEffect, [o]), t;
39
+ }
40
+ mount() {
41
+ return this.mounted || (this.mounted = qe(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
42
+ }
43
+ /* Ripple API */
44
+ start(...t) {
45
+ this.mount().then(() => {
46
+ var o;
47
+ return (o = this.ref.current) == null ? void 0 : o.start(...t);
48
+ });
49
+ }
50
+ stop(...t) {
51
+ this.mount().then(() => {
52
+ var o;
53
+ return (o = this.ref.current) == null ? void 0 : o.stop(...t);
54
+ });
55
+ }
56
+ pulsate(...t) {
57
+ this.mount().then(() => {
58
+ var o;
59
+ return (o = this.ref.current) == null ? void 0 : o.pulsate(...t);
60
+ });
61
+ }
62
+ }
63
+ function Ke() {
64
+ return Q.use();
65
+ }
66
+ function qe() {
67
+ let n, t;
68
+ const o = new Promise((u, i) => {
69
+ n = u, t = i;
70
+ });
71
+ return o.resolve = n, o.reject = t, o;
72
+ }
73
+ function We(n) {
74
+ if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
75
+ return n;
76
+ }
77
+ function oe(n, t) {
78
+ var o = function(s) {
79
+ return t && G(s) ? t(s) : s;
80
+ }, u = /* @__PURE__ */ Object.create(null);
81
+ return n && Oe.map(n, function(i) {
82
+ return i;
83
+ }).forEach(function(i) {
84
+ u[i.key] = o(i);
85
+ }), u;
86
+ }
87
+ function He(n, t) {
88
+ n = n || {}, t = t || {};
89
+ function o(h) {
90
+ return h in t ? t[h] : n[h];
91
+ }
92
+ var u = /* @__PURE__ */ Object.create(null), i = [];
93
+ for (var s in n)
94
+ s in t ? i.length && (u[s] = i, i = []) : i.push(s);
95
+ var r, p = {};
96
+ for (var l in t) {
97
+ if (u[l])
98
+ for (r = 0; r < u[l].length; r++) {
99
+ var f = u[l][r];
100
+ p[u[l][r]] = o(f);
101
+ }
102
+ p[l] = o(l);
103
+ }
104
+ for (r = 0; r < i.length; r++)
105
+ p[i[r]] = o(i[r]);
106
+ return p;
107
+ }
108
+ function O(n, t, o) {
109
+ return o[t] != null ? o[t] : n.props[t];
110
+ }
111
+ function Ge(n, t) {
112
+ return oe(n.children, function(o) {
113
+ return J(o, {
114
+ onExited: t.bind(null, o),
115
+ in: !0,
116
+ appear: O(o, "appear", n),
117
+ enter: O(o, "enter", n),
118
+ exit: O(o, "exit", n)
119
+ });
120
+ });
121
+ }
122
+ function Je(n, t, o) {
123
+ var u = oe(n.children), i = He(t, u);
124
+ return Object.keys(i).forEach(function(s) {
125
+ var r = i[s];
126
+ if (G(r)) {
127
+ var p = s in t, l = s in u, f = t[s], h = G(f) && !f.props.in;
128
+ l && (!p || h) ? i[s] = J(r, {
129
+ onExited: o.bind(null, r),
130
+ in: !0,
131
+ exit: O(r, "exit", n),
132
+ enter: O(r, "enter", n)
133
+ }) : !l && p && !h ? i[s] = J(r, {
134
+ in: !1
135
+ }) : l && p && G(f) && (i[s] = J(r, {
136
+ onExited: o.bind(null, r),
137
+ in: f.props.in,
138
+ exit: O(r, "exit", n),
139
+ enter: O(r, "enter", n)
140
+ }));
141
+ }
142
+ }), i;
143
+ }
144
+ var Qe = Object.values || function(n) {
145
+ return Object.keys(n).map(function(t) {
146
+ return n[t];
147
+ });
148
+ }, Ze = {
149
+ component: "div",
150
+ childFactory: function(t) {
151
+ return t;
152
+ }
153
+ }, ie = /* @__PURE__ */ function(n) {
154
+ $e(t, n);
155
+ function t(u, i) {
156
+ var s;
157
+ s = n.call(this, u, i) || this;
158
+ var r = s.handleExited.bind(We(s));
159
+ return s.state = {
160
+ contextValue: {
161
+ isMounting: !0
162
+ },
163
+ handleExited: r,
164
+ firstRender: !0
165
+ }, s;
166
+ }
167
+ var o = t.prototype;
168
+ return o.componentDidMount = function() {
169
+ this.mounted = !0, this.setState({
170
+ contextValue: {
171
+ isMounting: !1
172
+ }
173
+ });
174
+ }, o.componentWillUnmount = function() {
175
+ this.mounted = !1;
176
+ }, t.getDerivedStateFromProps = function(i, s) {
177
+ var r = s.children, p = s.handleExited, l = s.firstRender;
178
+ return {
179
+ children: l ? Ge(i, p) : Je(i, r, p),
180
+ firstRender: !1
181
+ };
182
+ }, o.handleExited = function(i, s) {
183
+ var r = oe(this.props.children);
184
+ i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(p) {
185
+ var l = Ye({}, p.children);
186
+ return delete l[i.key], {
187
+ children: l
188
+ };
189
+ }));
190
+ }, o.render = function() {
191
+ var i = this.props, s = i.component, r = i.childFactory, p = ze(i, ["component", "childFactory"]), l = this.state.contextValue, f = Qe(this.state.children).map(r);
192
+ return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(le.Provider, {
193
+ value: l
194
+ }, f) : /* @__PURE__ */ W.createElement(le.Provider, {
195
+ value: l
196
+ }, /* @__PURE__ */ W.createElement(s, p, f));
197
+ }, t;
198
+ }(W.Component);
199
+ ie.propTypes = process.env.NODE_ENV !== "production" ? {
200
+ /**
201
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
202
+ * behavior by providing a `component` prop.
203
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
204
+ * you can pass in `component={null}`. This is useful if the wrapping div
205
+ * borks your css styles.
206
+ */
207
+ component: e.any,
208
+ /**
209
+ * A set of `<Transition>` components, that are toggled `in` and out as they
210
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
211
+ * remember to spread them through if you are wrapping the `<Transition>` as
212
+ * with our `<Fade>` example.
213
+ *
214
+ * While this component is meant for multiple `Transition` or `CSSTransition`
215
+ * children, sometimes you may want to have a single transition child with
216
+ * content that you want to be transitioned out and in when you change it
217
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
218
+ * the transition child as you change its content, this will cause
219
+ * `TransitionGroup` to transition the child out and back in.
220
+ */
221
+ children: e.node,
222
+ /**
223
+ * A convenience prop that enables or disables appear animations
224
+ * for all children. Note that specifying this will override any defaults set
225
+ * on individual children Transitions.
226
+ */
227
+ appear: e.bool,
228
+ /**
229
+ * A convenience prop that enables or disables enter animations
230
+ * for all children. Note that specifying this will override any defaults set
231
+ * on individual children Transitions.
232
+ */
233
+ enter: e.bool,
234
+ /**
235
+ * A convenience prop that enables or disables exit animations
236
+ * for all children. Note that specifying this will override any defaults set
237
+ * on individual children Transitions.
238
+ */
239
+ exit: e.bool,
240
+ /**
241
+ * You may need to apply reactive updates to a child as it is exiting.
242
+ * This is generally done by using `cloneElement` however in the case of an exiting
243
+ * child the element has already been removed and not accessible to the consumer.
244
+ *
245
+ * If you do need to update a child as it leaves you can provide a `childFactory`
246
+ * to wrap every child, even the ones that are leaving.
247
+ *
248
+ * @type Function(child: ReactElement) -> ReactElement
249
+ */
250
+ childFactory: e.func
251
+ } : {};
252
+ ie.defaultProps = Ze;
253
+ function he(n) {
254
+ const {
255
+ className: t,
256
+ classes: o,
257
+ pulsate: u = !1,
258
+ rippleX: i,
259
+ rippleY: s,
260
+ rippleSize: r,
261
+ in: p,
262
+ onExited: l,
263
+ timeout: f
264
+ } = n, [h, y] = d.useState(!1), g = E(t, o.ripple, o.rippleVisible, u && o.ripplePulsate), w = {
265
+ width: r,
266
+ height: r,
267
+ top: -(r / 2) + s,
268
+ left: -(r / 2) + i
269
+ }, m = E(o.child, h && o.childLeaving, u && o.childPulsate);
270
+ return !p && !h && y(!0), d.useEffect(() => {
271
+ if (!p && l != null) {
272
+ const S = setTimeout(l, f);
273
+ return () => {
274
+ clearTimeout(S);
275
+ };
276
+ }
277
+ }, [l, p, f]), /* @__PURE__ */ U("span", {
278
+ className: g,
279
+ style: w,
280
+ children: /* @__PURE__ */ U("span", {
281
+ className: m
282
+ })
283
+ });
284
+ }
285
+ process.env.NODE_ENV !== "production" && (he.propTypes = {
286
+ /**
287
+ * Override or extend the styles applied to the component.
288
+ */
289
+ classes: e.object.isRequired,
290
+ className: e.string,
291
+ /**
292
+ * @ignore - injected from TransitionGroup
293
+ */
294
+ in: e.bool,
295
+ /**
296
+ * @ignore - injected from TransitionGroup
297
+ */
298
+ onExited: e.func,
299
+ /**
300
+ * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
301
+ */
302
+ pulsate: e.bool,
303
+ /**
304
+ * Diameter of the ripple.
305
+ */
306
+ rippleSize: e.number,
307
+ /**
308
+ * Horizontal position of the ripple center.
309
+ */
310
+ rippleX: e.number,
311
+ /**
312
+ * Vertical position of the ripple center.
313
+ */
314
+ rippleY: e.number,
315
+ /**
316
+ * exit delay
317
+ */
318
+ timeout: e.number.isRequired
319
+ });
320
+ const b = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ee = 550, et = 80, tt = ne`
321
+ 0% {
322
+ transform: scale(0);
323
+ opacity: 0.1;
324
+ }
325
+
326
+ 100% {
327
+ transform: scale(1);
328
+ opacity: 0.3;
329
+ }
330
+ `, nt = ne`
331
+ 0% {
332
+ opacity: 1;
333
+ }
334
+
335
+ 100% {
336
+ opacity: 0;
337
+ }
338
+ `, ot = ne`
339
+ 0% {
340
+ transform: scale(1);
341
+ }
342
+
343
+ 50% {
344
+ transform: scale(0.92);
345
+ }
346
+
347
+ 100% {
348
+ transform: scale(1);
349
+ }
350
+ `, it = te("span", {
351
+ name: "MuiTouchRipple",
352
+ slot: "Root"
353
+ })({
354
+ overflow: "hidden",
355
+ pointerEvents: "none",
356
+ position: "absolute",
357
+ zIndex: 0,
358
+ top: 0,
359
+ right: 0,
360
+ bottom: 0,
361
+ left: 0,
362
+ borderRadius: "inherit"
363
+ }), st = te(he, {
364
+ name: "MuiTouchRipple",
365
+ slot: "Ripple"
366
+ })`
367
+ opacity: 0;
368
+ position: absolute;
369
+
370
+ &.${b.rippleVisible} {
371
+ opacity: 0.3;
372
+ transform: scale(1);
373
+ animation-name: ${tt};
374
+ animation-duration: ${ee}ms;
375
+ animation-timing-function: ${({
376
+ theme: n
377
+ }) => n.transitions.easing.easeInOut};
378
+ }
379
+
380
+ &.${b.ripplePulsate} {
381
+ animation-duration: ${({
382
+ theme: n
383
+ }) => n.transitions.duration.shorter}ms;
384
+ }
385
+
386
+ & .${b.child} {
387
+ opacity: 1;
388
+ display: block;
389
+ width: 100%;
390
+ height: 100%;
391
+ border-radius: 50%;
392
+ background-color: currentColor;
393
+ }
394
+
395
+ & .${b.childLeaving} {
396
+ opacity: 0;
397
+ animation-name: ${nt};
398
+ animation-duration: ${ee}ms;
399
+ animation-timing-function: ${({
400
+ theme: n
401
+ }) => n.transitions.easing.easeInOut};
402
+ }
403
+
404
+ & .${b.childPulsate} {
405
+ position: absolute;
406
+ /* @noflip */
407
+ left: 0px;
408
+ top: 0;
409
+ animation-name: ${ot};
410
+ animation-duration: 2500ms;
411
+ animation-timing-function: ${({
412
+ theme: n
413
+ }) => n.transitions.easing.easeInOut};
414
+ animation-iteration-count: infinite;
415
+ animation-delay: 200ms;
416
+ }
417
+ `, me = /* @__PURE__ */ d.forwardRef(function(t, o) {
418
+ const u = de({
419
+ props: t,
420
+ name: "MuiTouchRipple"
421
+ }), {
422
+ center: i = !1,
423
+ classes: s = {},
424
+ className: r,
425
+ ...p
426
+ } = u, [l, f] = d.useState([]), h = d.useRef(0), y = d.useRef(null);
427
+ d.useEffect(() => {
428
+ y.current && (y.current(), y.current = null);
429
+ }, [l]);
430
+ const g = d.useRef(!1), w = _e(), m = d.useRef(null), S = d.useRef(null), C = d.useCallback((c) => {
431
+ const {
432
+ pulsate: R,
433
+ rippleX: M,
434
+ rippleY: I,
435
+ rippleSize: B,
436
+ cb: $
437
+ } = c;
438
+ f((T) => [...T, /* @__PURE__ */ U(st, {
439
+ classes: {
440
+ ripple: E(s.ripple, b.ripple),
441
+ rippleVisible: E(s.rippleVisible, b.rippleVisible),
442
+ ripplePulsate: E(s.ripplePulsate, b.ripplePulsate),
443
+ child: E(s.child, b.child),
444
+ childLeaving: E(s.childLeaving, b.childLeaving),
445
+ childPulsate: E(s.childPulsate, b.childPulsate)
446
+ },
447
+ timeout: ee,
448
+ pulsate: R,
449
+ rippleX: M,
450
+ rippleY: I,
451
+ rippleSize: B
452
+ }, h.current)]), h.current += 1, y.current = $;
453
+ }, [s]), j = d.useCallback((c = {}, R = {}, M = () => {
454
+ }) => {
455
+ const {
456
+ pulsate: I = !1,
457
+ center: B = i || R.pulsate,
458
+ fakeElement: $ = !1
459
+ // For test purposes
460
+ } = R;
461
+ if ((c == null ? void 0 : c.type) === "mousedown" && g.current) {
462
+ g.current = !1;
463
+ return;
464
+ }
465
+ (c == null ? void 0 : c.type) === "touchstart" && (g.current = !0);
466
+ const T = $ ? null : S.current, D = T ? T.getBoundingClientRect() : {
467
+ width: 0,
468
+ height: 0,
469
+ left: 0,
470
+ top: 0
471
+ };
472
+ let V, x, v;
473
+ if (B || c === void 0 || c.clientX === 0 && c.clientY === 0 || !c.clientX && !c.touches)
474
+ V = Math.round(D.width / 2), x = Math.round(D.height / 2);
475
+ else {
476
+ const {
477
+ clientX: z,
478
+ clientY: L
479
+ } = c.touches && c.touches.length > 0 ? c.touches[0] : c;
480
+ V = Math.round(z - D.left), x = Math.round(L - D.top);
481
+ }
482
+ if (B)
483
+ v = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), v % 2 === 0 && (v += 1);
484
+ else {
485
+ const z = Math.max(Math.abs((T ? T.clientWidth : 0) - V), V) * 2 + 2, L = Math.max(Math.abs((T ? T.clientHeight : 0) - x), x) * 2 + 2;
486
+ v = Math.sqrt(z ** 2 + L ** 2);
487
+ }
488
+ c != null && c.touches ? m.current === null && (m.current = () => {
489
+ C({
490
+ pulsate: I,
491
+ rippleX: V,
492
+ rippleY: x,
493
+ rippleSize: v,
494
+ cb: M
495
+ });
496
+ }, w.start(et, () => {
497
+ m.current && (m.current(), m.current = null);
498
+ })) : C({
499
+ pulsate: I,
500
+ rippleX: V,
501
+ rippleY: x,
502
+ rippleSize: v,
503
+ cb: M
504
+ });
505
+ }, [i, C, w]), Y = d.useCallback(() => {
506
+ j({}, {
507
+ pulsate: !0
508
+ });
509
+ }, [j]), F = d.useCallback((c, R) => {
510
+ if (w.clear(), (c == null ? void 0 : c.type) === "touchend" && m.current) {
511
+ m.current(), m.current = null, w.start(0, () => {
512
+ F(c, R);
513
+ });
514
+ return;
515
+ }
516
+ m.current = null, f((M) => M.length > 0 ? M.slice(1) : M), y.current = R;
517
+ }, [w]);
518
+ return d.useImperativeHandle(o, () => ({
519
+ pulsate: Y,
520
+ start: j,
521
+ stop: F
522
+ }), [Y, j, F]), /* @__PURE__ */ U(it, {
523
+ className: E(b.root, s.root, r),
524
+ ref: S,
525
+ ...p,
526
+ children: /* @__PURE__ */ U(ie, {
527
+ component: null,
528
+ exit: !0,
529
+ children: l
530
+ })
531
+ });
532
+ });
533
+ process.env.NODE_ENV !== "production" && (me.propTypes = {
534
+ /**
535
+ * If `true`, the ripple starts at the center of the component
536
+ * rather than at the point of interaction.
537
+ */
538
+ center: e.bool,
539
+ /**
540
+ * Override or extend the styles applied to the component.
541
+ */
542
+ classes: e.object,
543
+ /**
544
+ * @ignore
545
+ */
546
+ className: e.string
547
+ });
548
+ function rt(n) {
549
+ return je("MuiButtonBase", n);
550
+ }
551
+ const at = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) => {
552
+ const {
553
+ disabled: t,
554
+ focusVisible: o,
555
+ focusVisibleClassName: u,
556
+ classes: i
557
+ } = n, r = Fe({
558
+ root: ["root", t && "disabled", o && "focusVisible"]
559
+ }, rt, i);
560
+ return o && u && (r.root += ` ${u}`), r;
561
+ }, lt = te("button", {
562
+ name: "MuiButtonBase",
563
+ slot: "Root",
564
+ overridesResolver: (n, t) => t.root
565
+ })({
566
+ display: "inline-flex",
567
+ alignItems: "center",
568
+ justifyContent: "center",
569
+ position: "relative",
570
+ boxSizing: "border-box",
571
+ WebkitTapHighlightColor: "transparent",
572
+ backgroundColor: "transparent",
573
+ // Reset default value
574
+ // We disable the focus ring for mouse, touch and keyboard users.
575
+ outline: 0,
576
+ border: 0,
577
+ margin: 0,
578
+ // Remove the margin in Safari
579
+ borderRadius: 0,
580
+ padding: 0,
581
+ // Remove the padding in Firefox
582
+ cursor: "pointer",
583
+ userSelect: "none",
584
+ verticalAlign: "middle",
585
+ MozAppearance: "none",
586
+ // Reset
587
+ WebkitAppearance: "none",
588
+ // Reset
589
+ textDecoration: "none",
590
+ // So we take precedent over the style of a native <a /> element.
591
+ color: "inherit",
592
+ "&::-moz-focus-inner": {
593
+ borderStyle: "none"
594
+ // Remove Firefox dotted outline.
595
+ },
596
+ [`&.${at.disabled}`]: {
597
+ pointerEvents: "none",
598
+ // Disable link interactions
599
+ cursor: "default"
600
+ },
601
+ "@media print": {
602
+ colorAdjust: "exact"
603
+ }
604
+ }), ct = /* @__PURE__ */ d.forwardRef(function(t, o) {
605
+ const u = de({
606
+ props: t,
607
+ name: "MuiButtonBase"
608
+ }), {
609
+ action: i,
610
+ centerRipple: s = !1,
611
+ children: r,
612
+ className: p,
613
+ component: l = "button",
614
+ disabled: f = !1,
615
+ disableRipple: h = !1,
616
+ disableTouchRipple: y = !1,
617
+ focusRipple: g = !1,
618
+ focusVisibleClassName: w,
619
+ LinkComponent: m = "a",
620
+ onBlur: S,
621
+ onClick: C,
622
+ onContextMenu: j,
623
+ onDragLeave: Y,
624
+ onFocus: F,
625
+ onFocusVisible: c,
626
+ onKeyDown: R,
627
+ onKeyUp: M,
628
+ onMouseDown: I,
629
+ onMouseLeave: B,
630
+ onMouseUp: $,
631
+ onTouchEnd: T,
632
+ onTouchMove: D,
633
+ onTouchStart: V,
634
+ tabIndex: x = 0,
635
+ TouchRippleProps: v,
636
+ touchRippleRef: z,
637
+ type: L,
638
+ ..._
639
+ } = u, A = d.useRef(null), P = Ke(), be = ce(P.ref, z), [k, K] = d.useState(!1);
640
+ f && k && K(!1), d.useImperativeHandle(i, () => ({
641
+ focusVisible: () => {
642
+ K(!0), A.current.focus();
643
+ }
644
+ }), []);
645
+ const ge = P.shouldMount && !h && !f;
646
+ d.useEffect(() => {
647
+ k && g && !h && P.pulsate();
648
+ }, [h, g, k, P]);
649
+ function N(a, re, Be = y) {
650
+ return H((ae) => (re && re(ae), Be || P[a](ae), !0));
651
+ }
652
+ const Me = N("start", I), ye = N("stop", j), Re = N("stop", Y), Te = N("stop", $), Ee = N("stop", (a) => {
653
+ k && a.preventDefault(), B && B(a);
654
+ }), Ce = N("start", V), xe = N("stop", T), Pe = N("stop", D), Ne = N("stop", (a) => {
655
+ pe(a.target) || K(!1), S && S(a);
656
+ }, !1), we = H((a) => {
657
+ A.current || (A.current = a.currentTarget), pe(a.target) && (K(!0), c && c(a)), F && F(a);
658
+ }), Z = () => {
659
+ const a = A.current;
660
+ return l && l !== "button" && !(a.tagName === "A" && a.href);
661
+ }, De = H((a) => {
662
+ g && !a.repeat && k && a.key === " " && P.stop(a, () => {
663
+ P.start(a);
664
+ }), a.target === a.currentTarget && Z() && a.key === " " && a.preventDefault(), R && R(a), a.target === a.currentTarget && Z() && a.key === "Enter" && !f && (a.preventDefault(), C && C(a));
665
+ }), Ve = H((a) => {
666
+ g && a.key === " " && k && !a.defaultPrevented && P.stop(a, () => {
667
+ P.pulsate(a);
668
+ }), M && M(a), C && a.target === a.currentTarget && Z() && a.key === " " && !a.defaultPrevented && C(a);
669
+ });
670
+ let q = l;
671
+ q === "button" && (_.href || _.to) && (q = m);
672
+ const X = {};
673
+ q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
674
+ const ve = ce(o, A), se = {
675
+ ...u,
676
+ centerRipple: s,
677
+ component: l,
678
+ disabled: f,
679
+ disableRipple: h,
680
+ disableTouchRipple: y,
681
+ focusRipple: g,
682
+ tabIndex: x,
683
+ focusVisible: k
684
+ }, Se = ut(se);
685
+ return /* @__PURE__ */ Ie(lt, {
686
+ as: q,
687
+ className: E(Se.root, p),
688
+ ownerState: se,
689
+ onBlur: Ne,
690
+ onClick: C,
691
+ onContextMenu: ye,
692
+ onFocus: we,
693
+ onKeyDown: De,
694
+ onKeyUp: Ve,
695
+ onMouseDown: Me,
696
+ onMouseLeave: Ee,
697
+ onMouseUp: Te,
698
+ onDragLeave: Re,
699
+ onTouchEnd: xe,
700
+ onTouchMove: Pe,
701
+ onTouchStart: Ce,
702
+ ref: ve,
703
+ tabIndex: f ? -1 : x,
704
+ type: L,
705
+ ...X,
706
+ ..._,
707
+ children: [r, ge ? /* @__PURE__ */ U(me, {
708
+ ref: be,
709
+ center: s,
710
+ ...v
711
+ }) : null]
712
+ });
713
+ });
714
+ process.env.NODE_ENV !== "production" && (ct.propTypes = {
715
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
716
+ // │ These PropTypes are generated from the TypeScript type definitions. │
717
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
718
+ // └─────────────────────────────────────────────────────────────────────┘
719
+ /**
720
+ * A ref for imperative actions.
721
+ * It currently only supports `focusVisible()` action.
722
+ */
723
+ action: Ae,
724
+ /**
725
+ * If `true`, the ripples are centered.
726
+ * They won't start at the cursor interaction position.
727
+ * @default false
728
+ */
729
+ centerRipple: e.bool,
730
+ /**
731
+ * The content of the component.
732
+ */
733
+ children: e.node,
734
+ /**
735
+ * Override or extend the styles applied to the component.
736
+ */
737
+ classes: e.object,
738
+ /**
739
+ * @ignore
740
+ */
741
+ className: e.string,
742
+ /**
743
+ * The component used for the root node.
744
+ * Either a string to use a HTML element or a component.
745
+ */
746
+ component: Xe,
747
+ /**
748
+ * If `true`, the component is disabled.
749
+ * @default false
750
+ */
751
+ disabled: e.bool,
752
+ /**
753
+ * If `true`, the ripple effect is disabled.
754
+ *
755
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
756
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
757
+ * @default false
758
+ */
759
+ disableRipple: e.bool,
760
+ /**
761
+ * If `true`, the touch ripple effect is disabled.
762
+ * @default false
763
+ */
764
+ disableTouchRipple: e.bool,
765
+ /**
766
+ * If `true`, the base button will have a keyboard focus ripple.
767
+ * @default false
768
+ */
769
+ focusRipple: e.bool,
770
+ /**
771
+ * This prop can help identify which element has keyboard focus.
772
+ * The class name will be applied when the element gains the focus through keyboard interaction.
773
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
774
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
775
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
776
+ * if needed.
777
+ */
778
+ focusVisibleClassName: e.string,
779
+ /**
780
+ * @ignore
781
+ */
782
+ href: e.any,
783
+ /**
784
+ * The component used to render a link when the `href` prop is provided.
785
+ * @default 'a'
786
+ */
787
+ LinkComponent: e.elementType,
788
+ /**
789
+ * @ignore
790
+ */
791
+ onBlur: e.func,
792
+ /**
793
+ * @ignore
794
+ */
795
+ onClick: e.func,
796
+ /**
797
+ * @ignore
798
+ */
799
+ onContextMenu: e.func,
800
+ /**
801
+ * @ignore
802
+ */
803
+ onDragLeave: e.func,
804
+ /**
805
+ * @ignore
806
+ */
807
+ onFocus: e.func,
808
+ /**
809
+ * Callback fired when the component is focused with a keyboard.
810
+ * We trigger a `onFocus` callback too.
811
+ */
812
+ onFocusVisible: e.func,
813
+ /**
814
+ * @ignore
815
+ */
816
+ onKeyDown: e.func,
817
+ /**
818
+ * @ignore
819
+ */
820
+ onKeyUp: e.func,
821
+ /**
822
+ * @ignore
823
+ */
824
+ onMouseDown: e.func,
825
+ /**
826
+ * @ignore
827
+ */
828
+ onMouseLeave: e.func,
829
+ /**
830
+ * @ignore
831
+ */
832
+ onMouseUp: e.func,
833
+ /**
834
+ * @ignore
835
+ */
836
+ onTouchEnd: e.func,
837
+ /**
838
+ * @ignore
839
+ */
840
+ onTouchMove: e.func,
841
+ /**
842
+ * @ignore
843
+ */
844
+ onTouchStart: e.func,
845
+ /**
846
+ * The system prop that allows defining system overrides as well as additional CSS styles.
847
+ */
848
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
849
+ /**
850
+ * @default 0
851
+ */
852
+ tabIndex: e.number,
853
+ /**
854
+ * Props applied to the `TouchRipple` element.
855
+ */
856
+ TouchRippleProps: e.object,
857
+ /**
858
+ * A ref that points to the `TouchRipple` element.
859
+ */
860
+ touchRippleRef: e.oneOfType([e.func, e.shape({
861
+ current: e.shape({
862
+ pulsate: e.func.isRequired,
863
+ start: e.func.isRequired,
864
+ stop: e.func.isRequired
865
+ })
866
+ })]),
867
+ /**
868
+ * @ignore
869
+ */
870
+ type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
871
+ });
872
+ export {
873
+ ct as B
874
+ };