@hai-dev/ui-kit 1.0.4 → 1.0.6

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 (41) hide show
  1. package/dist/Box-CiYPzbPd.js +56 -0
  2. package/dist/{Button-DDlVTM6i.js → Button-chJUX25I.js} +26 -24
  3. package/dist/ButtonBase-DZwhOh56.js +966 -0
  4. package/dist/{CircularProgress-CscJm1An.js → CircularProgress-BCrSQadM.js} +113 -105
  5. package/dist/{DialogTitle-KN1sayHD.js → DialogTitle-BUcXvkzd.js} +638 -884
  6. package/dist/Typography-BmYEfS8y.js +257 -0
  7. package/dist/assets/circular-progress-loader.css +1 -0
  8. package/dist/chainPropTypes-HYSaT0L0.js +387 -0
  9. package/dist/components/button/button.js +1 -1
  10. package/dist/components/circular-progress-loader/circular-progress-loader.d.ts +3 -0
  11. package/dist/components/circular-progress-loader/circular-progress-loader.js +44 -0
  12. package/dist/components/circular-progress-loader/circular-progress-loader.stories.d.ts +7 -0
  13. package/dist/components/circular-progress-loader/constants.d.ts +2 -0
  14. package/dist/components/circular-progress-loader/constants.js +5 -0
  15. package/dist/components/circular-progress-loader/index.d.ts +1 -0
  16. package/dist/components/circular-progress-loader/index.js +4 -0
  17. package/dist/components/circular-progress-loader/types.d.ts +6 -0
  18. package/dist/components/circular-progress-loader/types.js +1 -0
  19. package/dist/components/index.d.ts +1 -0
  20. package/dist/components/index.js +6 -4
  21. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +30 -29
  22. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +22 -73
  23. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +1 -1
  24. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +13 -11
  25. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +30 -30
  26. package/dist/components/photo-crop-uploader/types.d.ts +1 -4
  27. package/dist/constants.d.ts +1 -0
  28. package/dist/constants.js +2 -1
  29. package/dist/{createTheme-DSHGFfg6.js → createTheme-BfVKUMHQ.js} +10 -10
  30. package/dist/decorators/centered-decorator.d.ts +3 -0
  31. package/dist/decorators/centered-decorator.js +16 -0
  32. package/dist/decorators/index.d.ts +1 -0
  33. package/dist/decorators/index.js +4 -0
  34. package/dist/decorators/types.d.ts +4 -0
  35. package/dist/decorators/types.js +1 -0
  36. package/dist/{extendSxProp-CzeED7BH.js → extendSxProp-bpz0eCso.js} +3 -3
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.js +16 -14
  39. package/dist/useId-CK6Kn3Tn.js +21 -0
  40. package/package.json +8 -8
  41. package/dist/ButtonBase-CXGZ-DBC.js +0 -1346
@@ -1,1346 +0,0 @@
1
- import * as p from "react";
2
- import W, { isValidElement as G, cloneElement as Z, Children as Ke } from "react";
3
- import { r as We, k as Ye, l as Je, E as Ge, m as Ze, n as he, o as q, c as Qe, p as et, s as tt, f as me, i as nt, e as rt, b as F, P as u, j as ot, h as st, _ as it, a as Ee, g as ut } from "./createTheme-DSHGFfg6.js";
4
- import { jsx as z, jsxs as at } from "react/jsx-runtime";
5
- var re, ye;
6
- function lt() {
7
- if (ye) return re;
8
- ye = 1;
9
- var e = We(), t = {
10
- childContextTypes: !0,
11
- contextType: !0,
12
- contextTypes: !0,
13
- defaultProps: !0,
14
- displayName: !0,
15
- getDefaultProps: !0,
16
- getDerivedStateFromError: !0,
17
- getDerivedStateFromProps: !0,
18
- mixins: !0,
19
- propTypes: !0,
20
- type: !0
21
- }, n = {
22
- name: !0,
23
- length: !0,
24
- prototype: !0,
25
- caller: !0,
26
- callee: !0,
27
- arguments: !0,
28
- arity: !0
29
- }, r = {
30
- $$typeof: !0,
31
- render: !0,
32
- defaultProps: !0,
33
- displayName: !0,
34
- propTypes: !0
35
- }, s = {
36
- $$typeof: !0,
37
- compare: !0,
38
- defaultProps: !0,
39
- displayName: !0,
40
- propTypes: !0,
41
- type: !0
42
- }, o = {};
43
- o[e.ForwardRef] = r, o[e.Memo] = s;
44
- function i(y) {
45
- return e.isMemo(y) ? s : o[y.$$typeof] || t;
46
- }
47
- var a = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, h = Object.getOwnPropertyDescriptor, b = Object.getPrototypeOf, E = Object.prototype;
48
- function x(y, T, P) {
49
- if (typeof T != "string") {
50
- if (E) {
51
- var $ = b(T);
52
- $ && $ !== E && x(y, $, P);
53
- }
54
- var N = c(T);
55
- l && (N = N.concat(l(T)));
56
- for (var C = i(y), m = i(T), R = 0; R < N.length; ++R) {
57
- var d = N[R];
58
- if (!n[d] && !(P && P[d]) && !(m && m[d]) && !(C && C[d])) {
59
- var g = h(T, d);
60
- try {
61
- a(y, d, g);
62
- } catch {
63
- }
64
- }
65
- }
66
- }
67
- return y;
68
- }
69
- return re = x, re;
70
- }
71
- lt();
72
- var be = function(t, n) {
73
- var r = arguments;
74
- if (n == null || !Je.call(n, "css"))
75
- return p.createElement.apply(void 0, r);
76
- var s = r.length, o = new Array(s);
77
- o[0] = Ge, o[1] = Ze(t, n);
78
- for (var i = 2; i < s; i++)
79
- o[i] = r[i];
80
- return p.createElement.apply(null, o);
81
- };
82
- (function(e) {
83
- var t;
84
- t || (t = e.JSX || (e.JSX = {}));
85
- })(be || (be = {}));
86
- function ct() {
87
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
88
- t[n] = arguments[n];
89
- return Ye(t);
90
- }
91
- function ae() {
92
- var e = ct.apply(void 0, arguments), t = "animation-" + e.name;
93
- return {
94
- name: t,
95
- styles: "@keyframes " + t + "{" + e.styles + "}",
96
- anim: 1,
97
- toString: function() {
98
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
99
- }
100
- };
101
- }
102
- function we(e, t = "") {
103
- return e.displayName || e.name || t;
104
- }
105
- function ge(e, t, n) {
106
- const r = we(t);
107
- return e.displayName || (r !== "" ? `${n}(${r})` : n);
108
- }
109
- function ft(e) {
110
- if (e != null) {
111
- if (typeof e == "string")
112
- return e;
113
- if (typeof e == "function")
114
- return we(e, "Component");
115
- if (typeof e == "object")
116
- switch (e.$$typeof) {
117
- case he.ForwardRef:
118
- return ge(e, e.render, "ForwardRef");
119
- case he.Memo:
120
- return ge(e, e.type, "memo");
121
- default:
122
- return;
123
- }
124
- }
125
- }
126
- function pt(e) {
127
- const {
128
- variants: t,
129
- ...n
130
- } = e, r = {
131
- variants: t,
132
- style: q(n),
133
- isProcessed: !0
134
- };
135
- return r.style === n || t && t.forEach((s) => {
136
- typeof s.style != "function" && (s.style = q(s.style));
137
- }), r;
138
- }
139
- const dt = Qe();
140
- function oe(e) {
141
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
142
- }
143
- function U(e, t) {
144
- return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
145
- }
146
- function ht(e) {
147
- return e ? (t, n) => n[e] : null;
148
- }
149
- function mt(e, t, n) {
150
- e.theme = vt(e.theme) ? n : e.theme[t] || e.theme;
151
- }
152
- function Q(e, t, n) {
153
- const r = typeof t == "function" ? t(e) : t;
154
- if (Array.isArray(r))
155
- return r.flatMap((s) => Q(e, s, n));
156
- if (Array.isArray(r?.variants)) {
157
- let s;
158
- if (r.isProcessed)
159
- s = n ? U(r.style, n) : r.style;
160
- else {
161
- const {
162
- variants: o,
163
- ...i
164
- } = r;
165
- s = n ? U(q(i), n) : i;
166
- }
167
- return Me(e, r.variants, [s], n);
168
- }
169
- return r?.isProcessed ? n ? U(q(r.style), n) : r.style : n ? U(q(r), n) : r;
170
- }
171
- function Me(e, t, n = [], r = void 0) {
172
- let s;
173
- e: for (let o = 0; o < t.length; o += 1) {
174
- const i = t[o];
175
- if (typeof i.props == "function") {
176
- if (s ??= {
177
- ...e,
178
- ...e.ownerState,
179
- ownerState: e.ownerState
180
- }, !i.props(s))
181
- continue;
182
- } else
183
- for (const a in i.props)
184
- if (e[a] !== i.props[a] && e.ownerState?.[a] !== i.props[a])
185
- continue e;
186
- typeof i.style == "function" ? (s ??= {
187
- ...e,
188
- ...e.ownerState,
189
- ownerState: e.ownerState
190
- }, n.push(r ? U(q(i.style(s)), r) : i.style(s))) : n.push(r ? U(q(i.style), r) : i.style);
191
- }
192
- return n;
193
- }
194
- function yt(e = {}) {
195
- const {
196
- themeId: t,
197
- defaultTheme: n = dt,
198
- rootShouldForwardProp: r = oe,
199
- slotShouldForwardProp: s = oe
200
- } = e;
201
- function o(a) {
202
- mt(a, t, n);
203
- }
204
- return (a, c = {}) => {
205
- et(a, (d) => d.filter((g) => g !== me));
206
- const {
207
- name: l,
208
- slot: h,
209
- skipVariantsResolver: b,
210
- skipSx: E,
211
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
212
- // For more details: https://github.com/mui/material-ui/pull/37908
213
- overridesResolver: x = ht(Pe(h)),
214
- ...y
215
- } = c, T = l && l.startsWith("Mui") || h ? "components" : "custom", P = b !== void 0 ? b : (
216
- // TODO v6: remove `Root` in the next major release
217
- // For more details: https://github.com/mui/material-ui/pull/37908
218
- h && h !== "Root" && h !== "root" || !1
219
- ), $ = E || !1;
220
- let N = oe;
221
- h === "Root" || h === "root" ? N = r : h ? N = s : Tt(a) && (N = void 0);
222
- const C = tt(a, {
223
- shouldForwardProp: N,
224
- label: gt(l, h),
225
- ...y
226
- }), m = (d) => {
227
- if (d.__emotion_real === d)
228
- return d;
229
- if (typeof d == "function")
230
- return function(w) {
231
- return Q(w, d, w.theme.modularCssLayers ? T : void 0);
232
- };
233
- if (nt(d)) {
234
- const g = pt(d);
235
- return function(O) {
236
- return g.variants ? Q(O, g, O.theme.modularCssLayers ? T : void 0) : O.theme.modularCssLayers ? U(g.style, T) : g.style;
237
- };
238
- }
239
- return d;
240
- }, R = (...d) => {
241
- const g = [], w = d.map(m), O = [];
242
- if (g.push(o), l && x && O.push(function(v) {
243
- const M = v.theme.components?.[l]?.styleOverrides;
244
- if (!M)
245
- return null;
246
- const L = {};
247
- for (const B in M)
248
- L[B] = Q(v, M[B], v.theme.modularCssLayers ? "theme" : void 0);
249
- return x(v, L);
250
- }), l && !P && O.push(function(v) {
251
- const M = v.theme?.components?.[l]?.variants;
252
- return M ? Me(v, M, [], v.theme.modularCssLayers ? "theme" : void 0) : null;
253
- }), $ || O.push(me), Array.isArray(w[0])) {
254
- const D = w.shift(), v = new Array(g.length).fill(""), j = new Array(O.length).fill("");
255
- let M;
256
- M = [...v, ...D, ...j], M.raw = [...v, ...D.raw, ...j], g.unshift(M);
257
- }
258
- const V = [...g, ...w, ...O], _ = C(...V);
259
- return a.muiName && (_.muiName = a.muiName), process.env.NODE_ENV !== "production" && (_.displayName = bt(l, h, a)), _;
260
- };
261
- return C.withConfig && (R.withConfig = C.withConfig), R;
262
- };
263
- }
264
- function bt(e, t, n) {
265
- return e ? `${e}${rt(t || "")}` : `Styled(${ft(n)})`;
266
- }
267
- function gt(e, t) {
268
- let n;
269
- return process.env.NODE_ENV !== "production" && e && (n = `${e}-${Pe(t || "Root")}`), n;
270
- }
271
- function vt(e) {
272
- for (const t in e)
273
- return !1;
274
- return !0;
275
- }
276
- function Tt(e) {
277
- return typeof e == "string" && // 96 is one less than the char code
278
- // for "a" so this is checking that
279
- // it's a lowercase character
280
- e.charCodeAt(0) > 96;
281
- }
282
- function Pe(e) {
283
- return e && e.charAt(0).toLowerCase() + e.slice(1);
284
- }
285
- function se(e, t, n = !1) {
286
- const r = {
287
- ...t
288
- };
289
- for (const s in e)
290
- if (Object.prototype.hasOwnProperty.call(e, s)) {
291
- const o = s;
292
- if (o === "components" || o === "slots")
293
- r[o] = {
294
- ...e[o],
295
- ...r[o]
296
- };
297
- else if (o === "componentsProps" || o === "slotProps") {
298
- const i = e[o], a = t[o];
299
- if (!a)
300
- r[o] = i || {};
301
- else if (!i)
302
- r[o] = a;
303
- else {
304
- r[o] = {
305
- ...a
306
- };
307
- for (const c in i)
308
- if (Object.prototype.hasOwnProperty.call(i, c)) {
309
- const l = c;
310
- r[o][l] = se(i[l], a[l], n);
311
- }
312
- }
313
- } else o === "className" && n && t.className ? r.className = F(e?.className, t?.className) : o === "style" && n && t.style ? r.style = {
314
- ...e?.style,
315
- ...t?.style
316
- } : r[o] === void 0 && (r[o] = e[o]);
317
- }
318
- return r;
319
- }
320
- const Rt = typeof window < "u" ? p.useLayoutEffect : p.useEffect, St = /* @__PURE__ */ p.createContext(void 0);
321
- process.env.NODE_ENV !== "production" && (u.node, u.object);
322
- function Et(e) {
323
- const {
324
- theme: t,
325
- name: n,
326
- props: r
327
- } = e;
328
- if (!t || !t.components || !t.components[n])
329
- return r;
330
- const s = t.components[n];
331
- return s.defaultProps ? se(s.defaultProps, r, t.components.mergeClassNameAndStyle) : !s.styleOverrides && !s.variants ? se(s, r, t.components.mergeClassNameAndStyle) : r;
332
- }
333
- function wt({
334
- props: e,
335
- name: t
336
- }) {
337
- const n = p.useContext(St);
338
- return Et({
339
- props: e,
340
- name: t,
341
- theme: {
342
- components: n
343
- }
344
- });
345
- }
346
- function Mt(e, t, n = void 0) {
347
- const r = {};
348
- for (const s in e) {
349
- const o = e[s];
350
- let i = "", a = !0;
351
- for (let c = 0; c < o.length; c += 1) {
352
- const l = o[c];
353
- l && (i += (a === !0 ? "" : " ") + t(l), a = !1, n && n[l] && (i += " " + n[l]));
354
- }
355
- r[s] = i;
356
- }
357
- return r;
358
- }
359
- const Pt = ot();
360
- function Ot(e) {
361
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
362
- }
363
- const xt = (e) => Ot(e) && e !== "classes", le = yt({
364
- themeId: st,
365
- defaultTheme: Pt,
366
- rootShouldForwardProp: xt
367
- });
368
- process.env.NODE_ENV !== "production" && (u.node, u.object.isRequired);
369
- function Oe(e) {
370
- return wt(e);
371
- }
372
- function ee(e) {
373
- const t = p.useRef(e);
374
- return Rt(() => {
375
- t.current = e;
376
- }), p.useRef((...n) => (
377
- // @ts-expect-error hide `this`
378
- (0, t.current)(...n)
379
- )).current;
380
- }
381
- function ve(...e) {
382
- const t = p.useRef(void 0), n = p.useCallback((r) => {
383
- const s = e.map((o) => {
384
- if (o == null)
385
- return null;
386
- if (typeof o == "function") {
387
- const i = o, a = i(r);
388
- return typeof a == "function" ? a : () => {
389
- i(null);
390
- };
391
- }
392
- return o.current = r, () => {
393
- o.current = null;
394
- };
395
- });
396
- return () => {
397
- s.forEach((o) => o?.());
398
- };
399
- }, e);
400
- return p.useMemo(() => e.every((r) => r == null) ? null : (r) => {
401
- t.current && (t.current(), t.current = void 0), r != null && (t.current = n(r));
402
- }, e);
403
- }
404
- function Nt(e, t) {
405
- return process.env.NODE_ENV === "production" ? () => null : function(...r) {
406
- return e(...r) || t(...r);
407
- };
408
- }
409
- function Ct(e, t) {
410
- if (e == null) return {};
411
- var n = {};
412
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
413
- if (t.indexOf(r) !== -1) continue;
414
- n[r] = e[r];
415
- }
416
- return n;
417
- }
418
- function ie(e, t) {
419
- return ie = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
420
- return n.__proto__ = r, n;
421
- }, ie(e, t);
422
- }
423
- function Dt(e, t) {
424
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ie(e, t);
425
- }
426
- const Te = W.createContext(null);
427
- function jt(e) {
428
- if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
429
- return e;
430
- }
431
- function ce(e, t) {
432
- var n = function(o) {
433
- return t && G(o) ? t(o) : o;
434
- }, r = /* @__PURE__ */ Object.create(null);
435
- return e && Ke.map(e, function(s) {
436
- return s;
437
- }).forEach(function(s) {
438
- r[s.key] = n(s);
439
- }), r;
440
- }
441
- function $t(e, t) {
442
- e = e || {}, t = t || {};
443
- function n(h) {
444
- return h in t ? t[h] : e[h];
445
- }
446
- var r = /* @__PURE__ */ Object.create(null), s = [];
447
- for (var o in e)
448
- o in t ? s.length && (r[o] = s, s = []) : s.push(o);
449
- var i, a = {};
450
- for (var c in t) {
451
- if (r[c])
452
- for (i = 0; i < r[c].length; i++) {
453
- var l = r[c][i];
454
- a[r[c][i]] = n(l);
455
- }
456
- a[c] = n(c);
457
- }
458
- for (i = 0; i < s.length; i++)
459
- a[s[i]] = n(s[i]);
460
- return a;
461
- }
462
- function X(e, t, n) {
463
- return n[t] != null ? n[t] : e.props[t];
464
- }
465
- function Vt(e, t) {
466
- return ce(e.children, function(n) {
467
- return Z(n, {
468
- onExited: t.bind(null, n),
469
- in: !0,
470
- appear: X(n, "appear", e),
471
- enter: X(n, "enter", e),
472
- exit: X(n, "exit", e)
473
- });
474
- });
475
- }
476
- function _t(e, t, n) {
477
- var r = ce(e.children), s = $t(t, r);
478
- return Object.keys(s).forEach(function(o) {
479
- var i = s[o];
480
- if (G(i)) {
481
- var a = o in t, c = o in r, l = t[o], h = G(l) && !l.props.in;
482
- c && (!a || h) ? s[o] = Z(i, {
483
- onExited: n.bind(null, i),
484
- in: !0,
485
- exit: X(i, "exit", e),
486
- enter: X(i, "enter", e)
487
- }) : !c && a && !h ? s[o] = Z(i, {
488
- in: !1
489
- }) : c && a && G(l) && (s[o] = Z(i, {
490
- onExited: n.bind(null, i),
491
- in: l.props.in,
492
- exit: X(i, "exit", e),
493
- enter: X(i, "enter", e)
494
- }));
495
- }
496
- }), s;
497
- }
498
- var It = Object.values || function(e) {
499
- return Object.keys(e).map(function(t) {
500
- return e[t];
501
- });
502
- }, Ft = {
503
- component: "div",
504
- childFactory: function(t) {
505
- return t;
506
- }
507
- }, fe = /* @__PURE__ */ (function(e) {
508
- Dt(t, e);
509
- function t(r, s) {
510
- var o;
511
- o = e.call(this, r, s) || this;
512
- var i = o.handleExited.bind(jt(o));
513
- return o.state = {
514
- contextValue: {
515
- isMounting: !0
516
- },
517
- handleExited: i,
518
- firstRender: !0
519
- }, o;
520
- }
521
- var n = t.prototype;
522
- return n.componentDidMount = function() {
523
- this.mounted = !0, this.setState({
524
- contextValue: {
525
- isMounting: !1
526
- }
527
- });
528
- }, n.componentWillUnmount = function() {
529
- this.mounted = !1;
530
- }, t.getDerivedStateFromProps = function(s, o) {
531
- var i = o.children, a = o.handleExited, c = o.firstRender;
532
- return {
533
- children: c ? Vt(s, a) : _t(s, i, a),
534
- firstRender: !1
535
- };
536
- }, n.handleExited = function(s, o) {
537
- var i = ce(this.props.children);
538
- s.key in i || (s.props.onExited && s.props.onExited(o), this.mounted && this.setState(function(a) {
539
- var c = it({}, a.children);
540
- return delete c[s.key], {
541
- children: c
542
- };
543
- }));
544
- }, n.render = function() {
545
- var s = this.props, o = s.component, i = s.childFactory, a = Ct(s, ["component", "childFactory"]), c = this.state.contextValue, l = It(this.state.children).map(i);
546
- return delete a.appear, delete a.enter, delete a.exit, o === null ? /* @__PURE__ */ W.createElement(Te.Provider, {
547
- value: c
548
- }, l) : /* @__PURE__ */ W.createElement(Te.Provider, {
549
- value: c
550
- }, /* @__PURE__ */ W.createElement(o, a, l));
551
- }, t;
552
- })(W.Component);
553
- fe.propTypes = process.env.NODE_ENV !== "production" ? {
554
- /**
555
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
556
- * behavior by providing a `component` prop.
557
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
558
- * you can pass in `component={null}`. This is useful if the wrapping div
559
- * borks your css styles.
560
- */
561
- component: u.any,
562
- /**
563
- * A set of `<Transition>` components, that are toggled `in` and out as they
564
- * leave. the `<TransitionGroup>` will inject specific transition props, so
565
- * remember to spread them through if you are wrapping the `<Transition>` as
566
- * with our `<Fade>` example.
567
- *
568
- * While this component is meant for multiple `Transition` or `CSSTransition`
569
- * children, sometimes you may want to have a single transition child with
570
- * content that you want to be transitioned out and in when you change it
571
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
572
- * the transition child as you change its content, this will cause
573
- * `TransitionGroup` to transition the child out and back in.
574
- */
575
- children: u.node,
576
- /**
577
- * A convenience prop that enables or disables appear animations
578
- * for all children. Note that specifying this will override any defaults set
579
- * on individual children Transitions.
580
- */
581
- appear: u.bool,
582
- /**
583
- * A convenience prop that enables or disables enter animations
584
- * for all children. Note that specifying this will override any defaults set
585
- * on individual children Transitions.
586
- */
587
- enter: u.bool,
588
- /**
589
- * A convenience prop that enables or disables exit animations
590
- * for all children. Note that specifying this will override any defaults set
591
- * on individual children Transitions.
592
- */
593
- exit: u.bool,
594
- /**
595
- * You may need to apply reactive updates to a child as it is exiting.
596
- * This is generally done by using `cloneElement` however in the case of an exiting
597
- * child the element has already been removed and not accessible to the consumer.
598
- *
599
- * If you do need to update a child as it leaves you can provide a `childFactory`
600
- * to wrap every child, even the ones that are leaving.
601
- *
602
- * @type Function(child: ReactElement) -> ReactElement
603
- */
604
- childFactory: u.func
605
- } : {};
606
- fe.defaultProps = Ft;
607
- const Re = {};
608
- function xe(e, t) {
609
- const n = p.useRef(Re);
610
- return n.current === Re && (n.current = e(t)), n;
611
- }
612
- const Lt = [];
613
- function At(e) {
614
- p.useEffect(e, Lt);
615
- }
616
- class pe {
617
- static create() {
618
- return new pe();
619
- }
620
- currentId = null;
621
- /**
622
- * Executes `fn` after `delay`, clearing any previously scheduled call.
623
- */
624
- start(t, n) {
625
- this.clear(), this.currentId = setTimeout(() => {
626
- this.currentId = null, n();
627
- }, t);
628
- }
629
- clear = () => {
630
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
631
- };
632
- disposeEffect = () => this.clear;
633
- }
634
- function Bt() {
635
- const e = xe(pe.create).current;
636
- return At(e.disposeEffect), e;
637
- }
638
- function kt(e) {
639
- const {
640
- prototype: t = {}
641
- } = e;
642
- return !!t.isReactComponent;
643
- }
644
- function Ut(e, t, n, r, s) {
645
- const o = e[t], i = s || t;
646
- if (o == null || // When server-side rendering React doesn't warn either.
647
- // This is not an accurate check for SSR.
648
- // This is only in place for emotion compat.
649
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
650
- typeof window > "u")
651
- return null;
652
- let a;
653
- return typeof o == "function" && !kt(o) && (a = "Did you accidentally provide a plain function component instead?"), a !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
654
- }
655
- const Xt = Nt(u.elementType, Ut), qt = u.oneOfType([u.func, u.object]);
656
- function Se(e) {
657
- try {
658
- return e.matches(":focus-visible");
659
- } catch {
660
- 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(`
661
- `));
662
- }
663
- return !1;
664
- }
665
- class te {
666
- /** React ref to the ripple instance */
667
- /** If the ripple component should be mounted */
668
- /** Promise that resolves when the ripple component is mounted */
669
- /** If the ripple component has been mounted */
670
- /** React state hook setter */
671
- static create() {
672
- return new te();
673
- }
674
- static use() {
675
- const t = xe(te.create).current, [n, r] = p.useState(!1);
676
- return t.shouldMount = n, t.setShouldMount = r, p.useEffect(t.mountEffect, [n]), t;
677
- }
678
- constructor() {
679
- this.ref = {
680
- current: null
681
- }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
682
- }
683
- mount() {
684
- return this.mounted || (this.mounted = Ht(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
685
- }
686
- mountEffect = () => {
687
- this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
688
- };
689
- /* Ripple API */
690
- start(...t) {
691
- this.mount().then(() => this.ref.current?.start(...t));
692
- }
693
- stop(...t) {
694
- this.mount().then(() => this.ref.current?.stop(...t));
695
- }
696
- pulsate(...t) {
697
- this.mount().then(() => this.ref.current?.pulsate(...t));
698
- }
699
- }
700
- function zt() {
701
- return te.use();
702
- }
703
- function Ht() {
704
- let e, t;
705
- const n = new Promise((r, s) => {
706
- e = r, t = s;
707
- });
708
- return n.resolve = e, n.reject = t, n;
709
- }
710
- function Ne(e) {
711
- const {
712
- className: t,
713
- classes: n,
714
- pulsate: r = !1,
715
- rippleX: s,
716
- rippleY: o,
717
- rippleSize: i,
718
- in: a,
719
- onExited: c,
720
- timeout: l
721
- } = e, [h, b] = p.useState(!1), E = F(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), x = {
722
- width: i,
723
- height: i,
724
- top: -(i / 2) + o,
725
- left: -(i / 2) + s
726
- }, y = F(n.child, h && n.childLeaving, r && n.childPulsate);
727
- return !a && !h && b(!0), p.useEffect(() => {
728
- if (!a && c != null) {
729
- const T = setTimeout(c, l);
730
- return () => {
731
- clearTimeout(T);
732
- };
733
- }
734
- }, [c, a, l]), /* @__PURE__ */ z("span", {
735
- className: E,
736
- style: x,
737
- children: /* @__PURE__ */ z("span", {
738
- className: y
739
- })
740
- });
741
- }
742
- process.env.NODE_ENV !== "production" && (Ne.propTypes = {
743
- /**
744
- * Override or extend the styles applied to the component.
745
- */
746
- classes: u.object.isRequired,
747
- className: u.string,
748
- /**
749
- * @ignore - injected from TransitionGroup
750
- */
751
- in: u.bool,
752
- /**
753
- * @ignore - injected from TransitionGroup
754
- */
755
- onExited: u.func,
756
- /**
757
- * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
758
- */
759
- pulsate: u.bool,
760
- /**
761
- * Diameter of the ripple.
762
- */
763
- rippleSize: u.number,
764
- /**
765
- * Horizontal position of the ripple center.
766
- */
767
- rippleX: u.number,
768
- /**
769
- * Vertical position of the ripple center.
770
- */
771
- rippleY: u.number,
772
- /**
773
- * exit delay
774
- */
775
- timeout: u.number.isRequired
776
- });
777
- const I = Ee("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ue = 550, Kt = 80, Wt = ae`
778
- 0% {
779
- transform: scale(0);
780
- opacity: 0.1;
781
- }
782
-
783
- 100% {
784
- transform: scale(1);
785
- opacity: 0.3;
786
- }
787
- `, Yt = ae`
788
- 0% {
789
- opacity: 1;
790
- }
791
-
792
- 100% {
793
- opacity: 0;
794
- }
795
- `, Jt = ae`
796
- 0% {
797
- transform: scale(1);
798
- }
799
-
800
- 50% {
801
- transform: scale(0.92);
802
- }
803
-
804
- 100% {
805
- transform: scale(1);
806
- }
807
- `, Gt = le("span", {
808
- name: "MuiTouchRipple",
809
- slot: "Root"
810
- })({
811
- overflow: "hidden",
812
- pointerEvents: "none",
813
- position: "absolute",
814
- zIndex: 0,
815
- top: 0,
816
- right: 0,
817
- bottom: 0,
818
- left: 0,
819
- borderRadius: "inherit"
820
- }), Zt = le(Ne, {
821
- name: "MuiTouchRipple",
822
- slot: "Ripple"
823
- })`
824
- opacity: 0;
825
- position: absolute;
826
-
827
- &.${I.rippleVisible} {
828
- opacity: 0.3;
829
- transform: scale(1);
830
- animation-name: ${Wt};
831
- animation-duration: ${ue}ms;
832
- animation-timing-function: ${({
833
- theme: e
834
- }) => e.transitions.easing.easeInOut};
835
- }
836
-
837
- &.${I.ripplePulsate} {
838
- animation-duration: ${({
839
- theme: e
840
- }) => e.transitions.duration.shorter}ms;
841
- }
842
-
843
- & .${I.child} {
844
- opacity: 1;
845
- display: block;
846
- width: 100%;
847
- height: 100%;
848
- border-radius: 50%;
849
- background-color: currentColor;
850
- }
851
-
852
- & .${I.childLeaving} {
853
- opacity: 0;
854
- animation-name: ${Yt};
855
- animation-duration: ${ue}ms;
856
- animation-timing-function: ${({
857
- theme: e
858
- }) => e.transitions.easing.easeInOut};
859
- }
860
-
861
- & .${I.childPulsate} {
862
- position: absolute;
863
- /* @noflip */
864
- left: 0px;
865
- top: 0;
866
- animation-name: ${Jt};
867
- animation-duration: 2500ms;
868
- animation-timing-function: ${({
869
- theme: e
870
- }) => e.transitions.easing.easeInOut};
871
- animation-iteration-count: infinite;
872
- animation-delay: 200ms;
873
- }
874
- `, Ce = /* @__PURE__ */ p.forwardRef(function(t, n) {
875
- const r = Oe({
876
- props: t,
877
- name: "MuiTouchRipple"
878
- }), {
879
- center: s = !1,
880
- classes: o = {},
881
- className: i,
882
- ...a
883
- } = r, [c, l] = p.useState([]), h = p.useRef(0), b = p.useRef(null);
884
- p.useEffect(() => {
885
- b.current && (b.current(), b.current = null);
886
- }, [c]);
887
- const E = p.useRef(!1), x = Bt(), y = p.useRef(null), T = p.useRef(null), P = p.useCallback((m) => {
888
- const {
889
- pulsate: R,
890
- rippleX: d,
891
- rippleY: g,
892
- rippleSize: w,
893
- cb: O
894
- } = m;
895
- l((V) => [...V, /* @__PURE__ */ z(Zt, {
896
- classes: {
897
- ripple: F(o.ripple, I.ripple),
898
- rippleVisible: F(o.rippleVisible, I.rippleVisible),
899
- ripplePulsate: F(o.ripplePulsate, I.ripplePulsate),
900
- child: F(o.child, I.child),
901
- childLeaving: F(o.childLeaving, I.childLeaving),
902
- childPulsate: F(o.childPulsate, I.childPulsate)
903
- },
904
- timeout: ue,
905
- pulsate: R,
906
- rippleX: d,
907
- rippleY: g,
908
- rippleSize: w
909
- }, h.current)]), h.current += 1, b.current = O;
910
- }, [o]), $ = p.useCallback((m = {}, R = {}, d = () => {
911
- }) => {
912
- const {
913
- pulsate: g = !1,
914
- center: w = s || R.pulsate,
915
- fakeElement: O = !1
916
- // For test purposes
917
- } = R;
918
- if (m?.type === "mousedown" && E.current) {
919
- E.current = !1;
920
- return;
921
- }
922
- m?.type === "touchstart" && (E.current = !0);
923
- const V = O ? null : T.current, _ = V ? V.getBoundingClientRect() : {
924
- width: 0,
925
- height: 0,
926
- left: 0,
927
- top: 0
928
- };
929
- let D, v, j;
930
- if (w || m === void 0 || m.clientX === 0 && m.clientY === 0 || !m.clientX && !m.touches)
931
- D = Math.round(_.width / 2), v = Math.round(_.height / 2);
932
- else {
933
- const {
934
- clientX: M,
935
- clientY: L
936
- } = m.touches && m.touches.length > 0 ? m.touches[0] : m;
937
- D = Math.round(M - _.left), v = Math.round(L - _.top);
938
- }
939
- if (w)
940
- j = Math.sqrt((2 * _.width ** 2 + _.height ** 2) / 3), j % 2 === 0 && (j += 1);
941
- else {
942
- const M = Math.max(Math.abs((V ? V.clientWidth : 0) - D), D) * 2 + 2, L = Math.max(Math.abs((V ? V.clientHeight : 0) - v), v) * 2 + 2;
943
- j = Math.sqrt(M ** 2 + L ** 2);
944
- }
945
- m?.touches ? y.current === null && (y.current = () => {
946
- P({
947
- pulsate: g,
948
- rippleX: D,
949
- rippleY: v,
950
- rippleSize: j,
951
- cb: d
952
- });
953
- }, x.start(Kt, () => {
954
- y.current && (y.current(), y.current = null);
955
- })) : P({
956
- pulsate: g,
957
- rippleX: D,
958
- rippleY: v,
959
- rippleSize: j,
960
- cb: d
961
- });
962
- }, [s, P, x]), N = p.useCallback(() => {
963
- $({}, {
964
- pulsate: !0
965
- });
966
- }, [$]), C = p.useCallback((m, R) => {
967
- if (x.clear(), m?.type === "touchend" && y.current) {
968
- y.current(), y.current = null, x.start(0, () => {
969
- C(m, R);
970
- });
971
- return;
972
- }
973
- y.current = null, l((d) => d.length > 0 ? d.slice(1) : d), b.current = R;
974
- }, [x]);
975
- return p.useImperativeHandle(n, () => ({
976
- pulsate: N,
977
- start: $,
978
- stop: C
979
- }), [N, $, C]), /* @__PURE__ */ z(Gt, {
980
- className: F(I.root, o.root, i),
981
- ref: T,
982
- ...a,
983
- children: /* @__PURE__ */ z(fe, {
984
- component: null,
985
- exit: !0,
986
- children: c
987
- })
988
- });
989
- });
990
- process.env.NODE_ENV !== "production" && (Ce.propTypes = {
991
- /**
992
- * If `true`, the ripple starts at the center of the component
993
- * rather than at the point of interaction.
994
- */
995
- center: u.bool,
996
- /**
997
- * Override or extend the styles applied to the component.
998
- */
999
- classes: u.object,
1000
- /**
1001
- * @ignore
1002
- */
1003
- className: u.string
1004
- });
1005
- function Qt(e) {
1006
- return ut("MuiButtonBase", e);
1007
- }
1008
- const en = Ee("MuiButtonBase", ["root", "disabled", "focusVisible"]), tn = (e) => {
1009
- const {
1010
- disabled: t,
1011
- focusVisible: n,
1012
- focusVisibleClassName: r,
1013
- classes: s
1014
- } = e, i = Mt({
1015
- root: ["root", t && "disabled", n && "focusVisible"]
1016
- }, Qt, s);
1017
- return n && r && (i.root += ` ${r}`), i;
1018
- }, nn = le("button", {
1019
- name: "MuiButtonBase",
1020
- slot: "Root"
1021
- })({
1022
- display: "inline-flex",
1023
- alignItems: "center",
1024
- justifyContent: "center",
1025
- position: "relative",
1026
- boxSizing: "border-box",
1027
- WebkitTapHighlightColor: "transparent",
1028
- backgroundColor: "transparent",
1029
- // Reset default value
1030
- // We disable the focus ring for mouse, touch and keyboard users.
1031
- outline: 0,
1032
- border: 0,
1033
- margin: 0,
1034
- // Remove the margin in Safari
1035
- borderRadius: 0,
1036
- padding: 0,
1037
- // Remove the padding in Firefox
1038
- cursor: "pointer",
1039
- userSelect: "none",
1040
- verticalAlign: "middle",
1041
- MozAppearance: "none",
1042
- // Reset
1043
- WebkitAppearance: "none",
1044
- // Reset
1045
- textDecoration: "none",
1046
- // So we take precedent over the style of a native <a /> element.
1047
- color: "inherit",
1048
- "&::-moz-focus-inner": {
1049
- borderStyle: "none"
1050
- // Remove Firefox dotted outline.
1051
- },
1052
- [`&.${en.disabled}`]: {
1053
- pointerEvents: "none",
1054
- // Disable link interactions
1055
- cursor: "default"
1056
- },
1057
- "@media print": {
1058
- colorAdjust: "exact"
1059
- }
1060
- }), rn = /* @__PURE__ */ p.forwardRef(function(t, n) {
1061
- const r = Oe({
1062
- props: t,
1063
- name: "MuiButtonBase"
1064
- }), {
1065
- action: s,
1066
- centerRipple: o = !1,
1067
- children: i,
1068
- className: a,
1069
- component: c = "button",
1070
- disabled: l = !1,
1071
- disableRipple: h = !1,
1072
- disableTouchRipple: b = !1,
1073
- focusRipple: E = !1,
1074
- focusVisibleClassName: x,
1075
- LinkComponent: y = "a",
1076
- onBlur: T,
1077
- onClick: P,
1078
- onContextMenu: $,
1079
- onDragLeave: N,
1080
- onFocus: C,
1081
- onFocusVisible: m,
1082
- onKeyDown: R,
1083
- onKeyUp: d,
1084
- onMouseDown: g,
1085
- onMouseLeave: w,
1086
- onMouseUp: O,
1087
- onTouchEnd: V,
1088
- onTouchMove: _,
1089
- onTouchStart: D,
1090
- tabIndex: v = 0,
1091
- TouchRippleProps: j,
1092
- touchRippleRef: M,
1093
- type: L,
1094
- ...B
1095
- } = r, H = p.useRef(null), S = zt(), De = ve(S.ref, M), [k, Y] = p.useState(!1);
1096
- l && k && Y(!1), p.useImperativeHandle(s, () => ({
1097
- focusVisible: () => {
1098
- Y(!0), H.current.focus();
1099
- }
1100
- }), []);
1101
- const je = S.shouldMount && !h && !l;
1102
- p.useEffect(() => {
1103
- k && E && !h && S.pulsate();
1104
- }, [h, E, k, S]);
1105
- const $e = A(S, "start", g, b), Ve = A(S, "stop", $, b), _e = A(S, "stop", N, b), Ie = A(S, "stop", O, b), Fe = A(S, "stop", (f) => {
1106
- k && f.preventDefault(), w && w(f);
1107
- }, b), Le = A(S, "start", D, b), Ae = A(S, "stop", V, b), Be = A(S, "stop", _, b), ke = A(S, "stop", (f) => {
1108
- Se(f.target) || Y(!1), T && T(f);
1109
- }, !1), Ue = ee((f) => {
1110
- H.current || (H.current = f.currentTarget), Se(f.target) && (Y(!0), m && m(f)), C && C(f);
1111
- }), ne = () => {
1112
- const f = H.current;
1113
- return c && c !== "button" && !(f.tagName === "A" && f.href);
1114
- }, Xe = ee((f) => {
1115
- E && !f.repeat && k && f.key === " " && S.stop(f, () => {
1116
- S.start(f);
1117
- }), f.target === f.currentTarget && ne() && f.key === " " && f.preventDefault(), R && R(f), f.target === f.currentTarget && ne() && f.key === "Enter" && !l && (f.preventDefault(), P && P(f));
1118
- }), qe = ee((f) => {
1119
- E && f.key === " " && k && !f.defaultPrevented && S.stop(f, () => {
1120
- S.pulsate(f);
1121
- }), d && d(f), P && f.target === f.currentTarget && ne() && f.key === " " && !f.defaultPrevented && P(f);
1122
- });
1123
- let J = c;
1124
- J === "button" && (B.href || B.to) && (J = y);
1125
- const K = {};
1126
- J === "button" ? (K.type = L === void 0 ? "button" : L, K.disabled = l) : (!B.href && !B.to && (K.role = "button"), l && (K["aria-disabled"] = l));
1127
- const ze = ve(n, H), de = {
1128
- ...r,
1129
- centerRipple: o,
1130
- component: c,
1131
- disabled: l,
1132
- disableRipple: h,
1133
- disableTouchRipple: b,
1134
- focusRipple: E,
1135
- tabIndex: v,
1136
- focusVisible: k
1137
- }, He = tn(de);
1138
- return /* @__PURE__ */ at(nn, {
1139
- as: J,
1140
- className: F(He.root, a),
1141
- ownerState: de,
1142
- onBlur: ke,
1143
- onClick: P,
1144
- onContextMenu: Ve,
1145
- onFocus: Ue,
1146
- onKeyDown: Xe,
1147
- onKeyUp: qe,
1148
- onMouseDown: $e,
1149
- onMouseLeave: Fe,
1150
- onMouseUp: Ie,
1151
- onDragLeave: _e,
1152
- onTouchEnd: Ae,
1153
- onTouchMove: Be,
1154
- onTouchStart: Le,
1155
- ref: ze,
1156
- tabIndex: l ? -1 : v,
1157
- type: L,
1158
- ...K,
1159
- ...B,
1160
- children: [i, je ? /* @__PURE__ */ z(Ce, {
1161
- ref: De,
1162
- center: o,
1163
- ...j
1164
- }) : null]
1165
- });
1166
- });
1167
- function A(e, t, n, r = !1) {
1168
- return ee((s) => (n && n(s), r || e[t](s), !0));
1169
- }
1170
- process.env.NODE_ENV !== "production" && (rn.propTypes = {
1171
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1172
- // │ These PropTypes are generated from the TypeScript type definitions. │
1173
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1174
- // └─────────────────────────────────────────────────────────────────────┘
1175
- /**
1176
- * A ref for imperative actions.
1177
- * It currently only supports `focusVisible()` action.
1178
- */
1179
- action: qt,
1180
- /**
1181
- * If `true`, the ripples are centered.
1182
- * They won't start at the cursor interaction position.
1183
- * @default false
1184
- */
1185
- centerRipple: u.bool,
1186
- /**
1187
- * The content of the component.
1188
- */
1189
- children: u.node,
1190
- /**
1191
- * Override or extend the styles applied to the component.
1192
- */
1193
- classes: u.object,
1194
- /**
1195
- * @ignore
1196
- */
1197
- className: u.string,
1198
- /**
1199
- * The component used for the root node.
1200
- * Either a string to use a HTML element or a component.
1201
- */
1202
- component: Xt,
1203
- /**
1204
- * If `true`, the component is disabled.
1205
- * @default false
1206
- */
1207
- disabled: u.bool,
1208
- /**
1209
- * If `true`, the ripple effect is disabled.
1210
- *
1211
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
1212
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
1213
- * @default false
1214
- */
1215
- disableRipple: u.bool,
1216
- /**
1217
- * If `true`, the touch ripple effect is disabled.
1218
- * @default false
1219
- */
1220
- disableTouchRipple: u.bool,
1221
- /**
1222
- * If `true`, the base button will have a keyboard focus ripple.
1223
- * @default false
1224
- */
1225
- focusRipple: u.bool,
1226
- /**
1227
- * This prop can help identify which element has keyboard focus.
1228
- * The class name will be applied when the element gains the focus through keyboard interaction.
1229
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
1230
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
1231
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
1232
- * if needed.
1233
- */
1234
- focusVisibleClassName: u.string,
1235
- /**
1236
- * @ignore
1237
- */
1238
- href: u.any,
1239
- /**
1240
- * The component used to render a link when the `href` prop is provided.
1241
- * @default 'a'
1242
- */
1243
- LinkComponent: u.elementType,
1244
- /**
1245
- * @ignore
1246
- */
1247
- onBlur: u.func,
1248
- /**
1249
- * @ignore
1250
- */
1251
- onClick: u.func,
1252
- /**
1253
- * @ignore
1254
- */
1255
- onContextMenu: u.func,
1256
- /**
1257
- * @ignore
1258
- */
1259
- onDragLeave: u.func,
1260
- /**
1261
- * @ignore
1262
- */
1263
- onFocus: u.func,
1264
- /**
1265
- * Callback fired when the component is focused with a keyboard.
1266
- * We trigger a `onFocus` callback too.
1267
- */
1268
- onFocusVisible: u.func,
1269
- /**
1270
- * @ignore
1271
- */
1272
- onKeyDown: u.func,
1273
- /**
1274
- * @ignore
1275
- */
1276
- onKeyUp: u.func,
1277
- /**
1278
- * @ignore
1279
- */
1280
- onMouseDown: u.func,
1281
- /**
1282
- * @ignore
1283
- */
1284
- onMouseLeave: u.func,
1285
- /**
1286
- * @ignore
1287
- */
1288
- onMouseUp: u.func,
1289
- /**
1290
- * @ignore
1291
- */
1292
- onTouchEnd: u.func,
1293
- /**
1294
- * @ignore
1295
- */
1296
- onTouchMove: u.func,
1297
- /**
1298
- * @ignore
1299
- */
1300
- onTouchStart: u.func,
1301
- /**
1302
- * The system prop that allows defining system overrides as well as additional CSS styles.
1303
- */
1304
- sx: u.oneOfType([u.arrayOf(u.oneOfType([u.func, u.object, u.bool])), u.func, u.object]),
1305
- /**
1306
- * @default 0
1307
- */
1308
- tabIndex: u.number,
1309
- /**
1310
- * Props applied to the `TouchRipple` element.
1311
- */
1312
- TouchRippleProps: u.object,
1313
- /**
1314
- * A ref that points to the `TouchRipple` element.
1315
- */
1316
- touchRippleRef: u.oneOfType([u.func, u.shape({
1317
- current: u.shape({
1318
- pulsate: u.func.isRequired,
1319
- start: u.func.isRequired,
1320
- stop: u.func.isRequired
1321
- })
1322
- })]),
1323
- /**
1324
- * @ignore
1325
- */
1326
- type: u.oneOfType([u.oneOf(["button", "reset", "submit"]), u.string])
1327
- });
1328
- export {
1329
- rn as B,
1330
- Te as T,
1331
- Dt as _,
1332
- se as a,
1333
- Nt as b,
1334
- Mt as c,
1335
- ct as d,
1336
- Pt as e,
1337
- Ct as f,
1338
- ve as g,
1339
- Rt as h,
1340
- ee as i,
1341
- ae as k,
1342
- pt as p,
1343
- xt as r,
1344
- le as s,
1345
- Oe as u
1346
- };