@hybridcore/ui 1.3.3 → 1.3.5

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 (67) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-D6qhsxB0.js} +201 -210
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-B8hqgH-I.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-BFWhj3s-.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-D_TjnyE5.js} +96 -87
  5. package/dist/DialogContent-BCYm_d1s.js +864 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-BMRUQKHh.js} +479 -449
  7. package/dist/FormControlLabel-DENNVXWL.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-D8bwME9t.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-Dxzguyp5.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-B8ERE7Zv.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DEWyK9IO.js} +12 -12
  12. package/dist/{MenuItem-DF45rx2m.js → MenuItem-DstAFfik.js} +26 -26
  13. package/dist/Modal-DNGEQJ1M.js +1267 -0
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-w2Cj9STF.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-BseeergJ.js} +15 -15
  16. package/dist/Select-NDq3WyLt.js +2175 -0
  17. package/dist/Typography-Dg-ROiTA.js +201 -0
  18. package/dist/components/card/index.js +17 -17
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +222 -302
  21. package/dist/components/confirm/dialog.js +13 -13
  22. package/dist/components/container/index.js +19 -19
  23. package/dist/components/context-menu/index.js +616 -203
  24. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  25. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  26. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  27. package/dist/components/geometry-picker/index.js +3 -3
  28. package/dist/components/icon-button/index.js +1 -1
  29. package/dist/components/map/styled.js +14 -14
  30. package/dist/components/search-input/index.js +4 -4
  31. package/dist/components/template-property-filters/index.js +1 -1
  32. package/dist/components/template-property-filters/property.js +209 -10
  33. package/dist/components/tree-select/index.js +4 -4
  34. package/dist/components/treeview-filter/index.js +29 -30
  35. package/dist/components/treeview-filter/item/index.js +1 -1
  36. package/dist/components/treeview-filter/item-label/index.js +2 -2
  37. package/dist/createStyled-B96gjom1.js +1887 -0
  38. package/dist/createSvgIcon-B2WT0K4k.js +87 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-BNrb7rDY.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CI_rjX83.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-B3Oj04nl.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-CSfSVkKj.js} +204 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-CFiI_U7B.js} +2 -2
  44. package/dist/main.js +150 -144
  45. package/dist/styled-cPJbqF0E.js +677 -0
  46. package/dist/useTheme-C-T6Qisa.js +10 -0
  47. package/dist/useThemeProps-DeftUmqJ.js +107 -0
  48. package/dist/{utils-qcu0RzdN.js → utils-CCkxV0lZ.js} +15 -15
  49. package/package.json +3 -3
  50. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  51. package/dist/FormControlLabel-Df7csguX.js +0 -827
  52. package/dist/ListItem-RJvRMwkZ.js +0 -428
  53. package/dist/Select-C1jD_gBQ.js +0 -2305
  54. package/dist/Typography-C2BkMNk-.js +0 -178
  55. package/dist/chainPropTypes-GRMJ22CO.js +0 -96
  56. package/dist/createSvgIcon-6wv0RQr3.js +0 -63
  57. package/dist/createTheme-C3DKplhE.js +0 -2395
  58. package/dist/property-BSufYw1E.js +0 -6888
  59. package/dist/requirePropFactory-BItwGLRQ.js +0 -18
  60. package/dist/resolveComponentProps-DozbaB8e.js +0 -54
  61. package/dist/styled-CVWGE9ik.js +0 -142
  62. package/dist/styled-iyoioZCr.js +0 -1033
  63. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  64. package/dist/useTheme--x3BjP9A.js +0 -17
  65. package/dist/useTheme-pWltVFb2.js +0 -10
  66. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  67. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -1,20 +1,19 @@
1
- import { _ as Y, a as ae } from "./extends-Cyw62AD_.js";
1
+ import { _ as Y, a as ue } from "./extends-Cyw62AD_.js";
2
2
  import * as l from "react";
3
- import X, { Children as We, isValidElement as G, cloneElement as Z } from "react";
4
- import { P as n } from "./createTheme-C3DKplhE.js";
5
- import { b as He, c as v, g as ve, u as xe, a as Ge } from "./chainPropTypes-GRMJ22CO.js";
6
- import { s as le, g as Ze } from "./styled-iyoioZCr.js";
3
+ import X, { Children as qe, isValidElement as G, cloneElement as J } from "react";
4
+ import { P as n } from "./createStyled-B96gjom1.js";
5
+ import { b as We, c as v, g as Ce, u as ve, a as He } from "./useThemeProps-DeftUmqJ.js";
6
+ import { s as ae, g as Ge } from "./styled-cPJbqF0E.js";
7
7
  import { jsx as $, jsxs as Je } from "react/jsx-runtime";
8
- import { _ as Qe, a as et } from "./assertThisInitialized-BUtkG-md.js";
9
- import { keyframes as ce } from "@emotion/react";
10
- const tt = typeof window < "u" ? l.useLayoutEffect : l.useEffect;
11
- function nt(e) {
8
+ import { _ as Qe, a as Ze } from "./assertThisInitialized-BUtkG-md.js";
9
+ import { keyframes as le } from "@emotion/react";
10
+ function et(e) {
12
11
  const {
13
12
  prototype: t = {}
14
13
  } = e;
15
14
  return !!t.isReactComponent;
16
15
  }
17
- function ot(e, t, o, a, r) {
16
+ function tt(e, t, o, a, r) {
18
17
  const i = e[t], s = r || t;
19
18
  if (i == null || // When server-side rendering React doesn't warn either.
20
19
  // This is not an accurate check for SSR.
@@ -23,15 +22,16 @@ function ot(e, t, o, a, r) {
23
22
  typeof window > "u")
24
23
  return null;
25
24
  let c;
26
- return typeof i == "function" && !nt(i) && (c = "Did you accidentally provide a plain function component instead?"), c !== void 0 ? new Error(`Invalid ${a} \`${s}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
25
+ return typeof i == "function" && !et(i) && (c = "Did you accidentally provide a plain function component instead?"), c !== void 0 ? new Error(`Invalid ${a} \`${s}\` supplied to \`${o}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
27
26
  }
28
- const rt = He(n.elementType, ot), it = n.oneOfType([n.func, n.object]);
29
- function st(e, t) {
27
+ const nt = We(n.elementType, tt), ot = n.oneOfType([n.func, n.object]);
28
+ function rt(e, t) {
30
29
  typeof e == "function" ? e(t) : e && (e.current = t);
31
30
  }
31
+ const it = typeof window < "u" ? l.useLayoutEffect : l.useEffect;
32
32
  function H(e) {
33
33
  const t = l.useRef(e);
34
- return tt(() => {
34
+ return it(() => {
35
35
  t.current = e;
36
36
  }), l.useRef((...o) => (
37
37
  // @ts-expect-error hide `this`
@@ -41,27 +41,18 @@ function H(e) {
41
41
  function ye(...e) {
42
42
  return l.useMemo(() => e.every((t) => t == null) ? null : (t) => {
43
43
  e.forEach((o) => {
44
- st(o, t);
44
+ rt(o, t);
45
45
  });
46
46
  }, e);
47
47
  }
48
- const ge = {};
49
- function ut(e, t) {
50
- const o = l.useRef(ge);
51
- return o.current === ge && (o.current = e(t)), o;
52
- }
53
- const at = [];
54
- function lt(e) {
55
- l.useEffect(e, at);
56
- }
57
- class J {
48
+ class ce {
58
49
  constructor() {
59
50
  this.currentId = null, this.clear = () => {
60
51
  this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
61
52
  }, this.disposeEffect = () => this.clear;
62
53
  }
63
54
  static create() {
64
- return new J();
55
+ return new ce();
65
56
  }
66
57
  /**
67
58
  * Executes `fn` after `delay`, clearing any previously scheduled call.
@@ -72,12 +63,8 @@ class J {
72
63
  }, t);
73
64
  }
74
65
  }
75
- function ct() {
76
- const e = ut(J.create).current;
77
- return lt(e.disposeEffect), e;
78
- }
79
- let Q = !0, se = !1;
80
- const pt = new J(), ft = {
66
+ let Q = !0, ie = !1;
67
+ const st = new ce(), ut = {
81
68
  text: !0,
82
69
  search: !0,
83
70
  url: !0,
@@ -92,26 +79,26 @@ const pt = new J(), ft = {
92
79
  datetime: !0,
93
80
  "datetime-local": !0
94
81
  };
95
- function dt(e) {
82
+ function at(e) {
96
83
  const {
97
84
  type: t,
98
85
  tagName: o
99
86
  } = e;
100
- return !!(o === "INPUT" && ft[t] && !e.readOnly || o === "TEXTAREA" && !e.readOnly || e.isContentEditable);
87
+ return !!(o === "INPUT" && ut[t] && !e.readOnly || o === "TEXTAREA" && !e.readOnly || e.isContentEditable);
101
88
  }
102
- function ht(e) {
89
+ function lt(e) {
103
90
  e.metaKey || e.altKey || e.ctrlKey || (Q = !0);
104
91
  }
105
- function ie() {
92
+ function re() {
106
93
  Q = !1;
107
94
  }
108
- function mt() {
109
- this.visibilityState === "hidden" && se && (Q = !0);
95
+ function ct() {
96
+ this.visibilityState === "hidden" && ie && (Q = !0);
110
97
  }
111
- function bt(e) {
112
- e.addEventListener("keydown", ht, !0), e.addEventListener("mousedown", ie, !0), e.addEventListener("pointerdown", ie, !0), e.addEventListener("touchstart", ie, !0), e.addEventListener("visibilitychange", mt, !0);
98
+ function pt(e) {
99
+ e.addEventListener("keydown", lt, !0), e.addEventListener("mousedown", re, !0), e.addEventListener("pointerdown", re, !0), e.addEventListener("touchstart", re, !0), e.addEventListener("visibilitychange", ct, !0);
113
100
  }
114
- function yt(e) {
101
+ function ft(e) {
115
102
  const {
116
103
  target: t
117
104
  } = e;
@@ -119,19 +106,19 @@ function yt(e) {
119
106
  return t.matches(":focus-visible");
120
107
  } catch {
121
108
  }
122
- return Q || dt(t);
109
+ return Q || at(t);
123
110
  }
124
- function gt() {
111
+ function dt() {
125
112
  const e = l.useCallback((r) => {
126
- r != null && bt(r.ownerDocument);
113
+ r != null && pt(r.ownerDocument);
127
114
  }, []), t = l.useRef(!1);
128
115
  function o() {
129
- return t.current ? (se = !0, pt.start(100, () => {
130
- se = !1;
116
+ return t.current ? (ie = !0, st.start(100, () => {
117
+ ie = !1;
131
118
  }), t.current = !1, !0) : !1;
132
119
  }
133
120
  function a(r) {
134
- return yt(r) ? (t.current = !0, !0) : !1;
121
+ return ft(r) ? (t.current = !0, !0) : !1;
135
122
  }
136
123
  return {
137
124
  isFocusVisibleRef: t,
@@ -140,21 +127,21 @@ function gt() {
140
127
  ref: e
141
128
  };
142
129
  }
143
- function Rt(e, t) {
130
+ function ht(e, t) {
144
131
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Qe(e, t);
145
132
  }
146
- const Re = X.createContext(null);
133
+ const ge = X.createContext(null);
147
134
  function pe(e, t) {
148
135
  var o = function(i) {
149
136
  return t && G(i) ? t(i) : i;
150
137
  }, a = /* @__PURE__ */ Object.create(null);
151
- return e && We.map(e, function(r) {
138
+ return e && qe.map(e, function(r) {
152
139
  return r;
153
140
  }).forEach(function(r) {
154
141
  a[r.key] = o(r);
155
142
  }), a;
156
143
  }
157
- function Tt(e, t) {
144
+ function mt(e, t) {
158
145
  e = e || {}, t = t || {};
159
146
  function o(h) {
160
147
  return h in t ? t[h] : e[h];
@@ -175,57 +162,57 @@ function Tt(e, t) {
175
162
  c[r[s]] = o(r[s]);
176
163
  return c;
177
164
  }
178
- function k(e, t, o) {
165
+ function S(e, t, o) {
179
166
  return o[t] != null ? o[t] : e.props[t];
180
167
  }
181
- function Et(e, t) {
168
+ function bt(e, t) {
182
169
  return pe(e.children, function(o) {
183
- return Z(o, {
170
+ return J(o, {
184
171
  onExited: t.bind(null, o),
185
172
  in: !0,
186
- appear: k(o, "appear", e),
187
- enter: k(o, "enter", e),
188
- exit: k(o, "exit", e)
173
+ appear: S(o, "appear", e),
174
+ enter: S(o, "enter", e),
175
+ exit: S(o, "exit", e)
189
176
  });
190
177
  });
191
178
  }
192
- function Mt(e, t, o) {
193
- var a = pe(e.children), r = Tt(t, a);
179
+ function yt(e, t, o) {
180
+ var a = pe(e.children), r = mt(t, a);
194
181
  return Object.keys(r).forEach(function(i) {
195
182
  var s = r[i];
196
183
  if (G(s)) {
197
184
  var c = i in t, p = i in a, f = t[i], h = G(f) && !f.props.in;
198
- p && (!c || h) ? r[i] = Z(s, {
185
+ p && (!c || h) ? r[i] = J(s, {
199
186
  onExited: o.bind(null, s),
200
187
  in: !0,
201
- exit: k(s, "exit", e),
202
- enter: k(s, "enter", e)
203
- }) : !p && c && !h ? r[i] = Z(s, {
188
+ exit: S(s, "exit", e),
189
+ enter: S(s, "enter", e)
190
+ }) : !p && c && !h ? r[i] = J(s, {
204
191
  in: !1
205
- }) : p && c && G(f) && (r[i] = Z(s, {
192
+ }) : p && c && G(f) && (r[i] = J(s, {
206
193
  onExited: o.bind(null, s),
207
194
  in: f.props.in,
208
- exit: k(s, "exit", e),
209
- enter: k(s, "enter", e)
195
+ exit: S(s, "exit", e),
196
+ enter: S(s, "enter", e)
210
197
  }));
211
198
  }
212
199
  }), r;
213
200
  }
214
- var Ct = Object.values || function(e) {
201
+ var gt = Object.values || function(e) {
215
202
  return Object.keys(e).map(function(t) {
216
203
  return e[t];
217
204
  });
218
- }, vt = {
205
+ }, Rt = {
219
206
  component: "div",
220
207
  childFactory: function(t) {
221
208
  return t;
222
209
  }
223
210
  }, fe = /* @__PURE__ */ function(e) {
224
- Rt(t, e);
211
+ ht(t, e);
225
212
  function t(a, r) {
226
213
  var i;
227
214
  i = e.call(this, a, r) || this;
228
- var s = i.handleExited.bind(et(i));
215
+ var s = i.handleExited.bind(Ze(i));
229
216
  return i.state = {
230
217
  contextValue: {
231
218
  isMounting: !0
@@ -246,7 +233,7 @@ var Ct = Object.values || function(e) {
246
233
  }, t.getDerivedStateFromProps = function(r, i) {
247
234
  var s = i.children, c = i.handleExited, p = i.firstRender;
248
235
  return {
249
- children: p ? Et(r, c) : Mt(r, s, c),
236
+ children: p ? bt(r, c) : yt(r, s, c),
250
237
  firstRender: !1
251
238
  };
252
239
  }, o.handleExited = function(r, i) {
@@ -258,10 +245,10 @@ var Ct = Object.values || function(e) {
258
245
  };
259
246
  }));
260
247
  }, o.render = function() {
261
- var r = this.props, i = r.component, s = r.childFactory, c = ae(r, ["component", "childFactory"]), p = this.state.contextValue, f = Ct(this.state.children).map(s);
262
- return delete c.appear, delete c.enter, delete c.exit, i === null ? /* @__PURE__ */ X.createElement(Re.Provider, {
248
+ var r = this.props, i = r.component, s = r.childFactory, c = ue(r, ["component", "childFactory"]), p = this.state.contextValue, f = gt(this.state.children).map(s);
249
+ return delete c.appear, delete c.enter, delete c.exit, i === null ? /* @__PURE__ */ X.createElement(ge.Provider, {
263
250
  value: p
264
- }, f) : /* @__PURE__ */ X.createElement(Re.Provider, {
251
+ }, f) : /* @__PURE__ */ X.createElement(ge.Provider, {
265
252
  value: p
266
253
  }, /* @__PURE__ */ X.createElement(i, c, f));
267
254
  }, t;
@@ -319,8 +306,8 @@ fe.propTypes = process.env.NODE_ENV !== "production" ? {
319
306
  */
320
307
  childFactory: n.func
321
308
  } : {};
322
- fe.defaultProps = vt;
323
- function Ve(e) {
309
+ fe.defaultProps = Rt;
310
+ function xe(e) {
324
311
  const {
325
312
  className: t,
326
313
  classes: o,
@@ -331,7 +318,7 @@ function Ve(e) {
331
318
  in: c,
332
319
  onExited: p,
333
320
  timeout: f
334
- } = e, [h, R] = l.useState(!1), y = v(t, o.ripple, o.rippleVisible, a && o.ripplePulsate), x = {
321
+ } = e, [h, R] = l.useState(!1), y = v(t, o.ripple, o.rippleVisible, a && o.ripplePulsate), P = {
335
322
  width: s,
336
323
  height: s,
337
324
  top: -(s / 2) + i,
@@ -346,15 +333,16 @@ function Ve(e) {
346
333
  }
347
334
  }, [p, c, f]), /* @__PURE__ */ $("span", {
348
335
  className: y,
349
- style: x,
336
+ style: P,
350
337
  children: /* @__PURE__ */ $("span", {
351
338
  className: m
352
339
  })
353
340
  });
354
341
  }
355
- process.env.NODE_ENV !== "production" && (Ve.propTypes = {
342
+ process.env.NODE_ENV !== "production" && (xe.propTypes = {
356
343
  /**
357
344
  * Override or extend the styles applied to the component.
345
+ * See [CSS API](#css) below for more details.
358
346
  */
359
347
  classes: n.object.isRequired,
360
348
  className: n.string,
@@ -387,9 +375,9 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
387
375
  */
388
376
  timeout: n.number.isRequired
389
377
  });
390
- const b = ve("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), xt = ["center", "classes", "className"];
391
- let ee = (e) => e, Te, Ee, Me, Ce;
392
- const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
378
+ const b = Ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Tt = ["center", "classes", "className"];
379
+ let Z = (e) => e, Re, Te, Ee, Me;
380
+ const se = 550, Et = 80, Mt = le(Re || (Re = Z`
393
381
  0% {
394
382
  transform: scale(0);
395
383
  opacity: 0.1;
@@ -399,7 +387,7 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
399
387
  transform: scale(1);
400
388
  opacity: 0.3;
401
389
  }
402
- `)), Pt = ce(Ee || (Ee = ee`
390
+ `)), Ct = le(Te || (Te = Z`
403
391
  0% {
404
392
  opacity: 1;
405
393
  }
@@ -407,7 +395,7 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
407
395
  100% {
408
396
  opacity: 0;
409
397
  }
410
- `)), Dt = ce(Me || (Me = ee`
398
+ `)), vt = le(Ee || (Ee = Z`
411
399
  0% {
412
400
  transform: scale(1);
413
401
  }
@@ -419,7 +407,7 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
419
407
  100% {
420
408
  transform: scale(1);
421
409
  }
422
- `)), Nt = le("span", {
410
+ `)), xt = ae("span", {
423
411
  name: "MuiTouchRipple",
424
412
  slot: "Root"
425
413
  })({
@@ -432,10 +420,10 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
432
420
  bottom: 0,
433
421
  left: 0,
434
422
  borderRadius: "inherit"
435
- }), Lt = le(Ve, {
423
+ }), Vt = ae(xe, {
436
424
  name: "MuiTouchRipple",
437
425
  slot: "Ripple"
438
- })(Ce || (Ce = ee`
426
+ })(Me || (Me = Z`
439
427
  opacity: 0;
440
428
  position: absolute;
441
429
 
@@ -478,35 +466,39 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
478
466
  animation-iteration-count: infinite;
479
467
  animation-delay: 200ms;
480
468
  }
481
- `), b.rippleVisible, wt, ue, ({
469
+ `), b.rippleVisible, Mt, se, ({
482
470
  theme: e
483
471
  }) => e.transitions.easing.easeInOut, b.ripplePulsate, ({
484
472
  theme: e
485
- }) => e.transitions.duration.shorter, b.child, b.childLeaving, Pt, ue, ({
473
+ }) => e.transitions.duration.shorter, b.child, b.childLeaving, Ct, se, ({
486
474
  theme: e
487
- }) => e.transitions.easing.easeInOut, b.childPulsate, Dt, ({
475
+ }) => e.transitions.easing.easeInOut, b.childPulsate, vt, ({
488
476
  theme: e
489
- }) => e.transitions.easing.easeInOut), we = /* @__PURE__ */ l.forwardRef(function(t, o) {
490
- const a = xe({
477
+ }) => e.transitions.easing.easeInOut), Ve = /* @__PURE__ */ l.forwardRef(function(t, o) {
478
+ const a = ve({
491
479
  props: t,
492
480
  name: "MuiTouchRipple"
493
481
  }), {
494
482
  center: r = !1,
495
483
  classes: i = {},
496
484
  className: s
497
- } = a, c = ae(a, xt), [p, f] = l.useState([]), h = l.useRef(0), R = l.useRef(null);
485
+ } = a, c = ue(a, Tt), [p, f] = l.useState([]), h = l.useRef(0), R = l.useRef(null);
498
486
  l.useEffect(() => {
499
487
  R.current && (R.current(), R.current = null);
500
488
  }, [p]);
501
- const y = l.useRef(!1), x = ct(), m = l.useRef(null), T = l.useRef(null), U = l.useCallback((d) => {
489
+ const y = l.useRef(!1), P = l.useRef(null), m = l.useRef(null), T = l.useRef(null);
490
+ l.useEffect(() => () => {
491
+ clearTimeout(P.current);
492
+ }, []);
493
+ const U = l.useCallback((d) => {
502
494
  const {
503
495
  pulsate: E,
504
496
  rippleX: M,
505
- rippleY: B,
497
+ rippleY: L,
506
498
  rippleSize: _,
507
499
  cb: K
508
500
  } = d;
509
- f((C) => [...C, /* @__PURE__ */ $(Lt, {
501
+ f((C) => [...C, /* @__PURE__ */ $(Vt, {
510
502
  classes: {
511
503
  ripple: v(i.ripple, b.ripple),
512
504
  rippleVisible: v(i.rippleVisible, b.rippleVisible),
@@ -515,16 +507,16 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
515
507
  childLeaving: v(i.childLeaving, b.childLeaving),
516
508
  childPulsate: v(i.childPulsate, b.childPulsate)
517
509
  },
518
- timeout: ue,
510
+ timeout: se,
519
511
  pulsate: E,
520
512
  rippleX: M,
521
- rippleY: B,
513
+ rippleY: L,
522
514
  rippleSize: _
523
515
  }, h.current)]), h.current += 1, R.current = K;
524
- }, [i]), S = l.useCallback((d = {}, E = {}, M = () => {
516
+ }, [i]), I = l.useCallback((d = {}, E = {}, M = () => {
525
517
  }) => {
526
518
  const {
527
- pulsate: B = !1,
519
+ pulsate: L = !1,
528
520
  center: _ = r || E.pulsate,
529
521
  fakeElement: K = !1
530
522
  // For test purposes
@@ -540,57 +532,57 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
540
532
  left: 0,
541
533
  top: 0
542
534
  };
543
- let V, N, L;
535
+ let x, N, B;
544
536
  if (_ || d === void 0 || d.clientX === 0 && d.clientY === 0 || !d.clientX && !d.touches)
545
- V = Math.round(D.width / 2), N = Math.round(D.height / 2);
537
+ x = Math.round(D.width / 2), N = Math.round(D.height / 2);
546
538
  else {
547
539
  const {
548
- clientX: I,
549
- clientY: w
540
+ clientX: F,
541
+ clientY: V
550
542
  } = d.touches && d.touches.length > 0 ? d.touches[0] : d;
551
- V = Math.round(I - D.left), N = Math.round(w - D.top);
543
+ x = Math.round(F - D.left), N = Math.round(V - D.top);
552
544
  }
553
545
  if (_)
554
- L = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), L % 2 === 0 && (L += 1);
546
+ B = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), B % 2 === 0 && (B += 1);
555
547
  else {
556
- const I = Math.max(Math.abs((C ? C.clientWidth : 0) - V), V) * 2 + 2, w = Math.max(Math.abs((C ? C.clientHeight : 0) - N), N) * 2 + 2;
557
- L = Math.sqrt(I ** 2 + w ** 2);
548
+ const F = Math.max(Math.abs((C ? C.clientWidth : 0) - x), x) * 2 + 2, V = Math.max(Math.abs((C ? C.clientHeight : 0) - N), N) * 2 + 2;
549
+ B = Math.sqrt(F ** 2 + V ** 2);
558
550
  }
559
551
  d != null && d.touches ? m.current === null && (m.current = () => {
560
552
  U({
561
- pulsate: B,
562
- rippleX: V,
553
+ pulsate: L,
554
+ rippleX: x,
563
555
  rippleY: N,
564
- rippleSize: L,
556
+ rippleSize: B,
565
557
  cb: M
566
558
  });
567
- }, x.start(Vt, () => {
559
+ }, P.current = setTimeout(() => {
568
560
  m.current && (m.current(), m.current = null);
569
- })) : U({
570
- pulsate: B,
571
- rippleX: V,
561
+ }, Et)) : U({
562
+ pulsate: L,
563
+ rippleX: x,
572
564
  rippleY: N,
573
- rippleSize: L,
565
+ rippleSize: B,
574
566
  cb: M
575
567
  });
576
- }, [r, U, x]), j = l.useCallback(() => {
577
- S({}, {
568
+ }, [r, U]), j = l.useCallback(() => {
569
+ I({}, {
578
570
  pulsate: !0
579
571
  });
580
- }, [S]), O = l.useCallback((d, E) => {
581
- if (x.clear(), (d == null ? void 0 : d.type) === "touchend" && m.current) {
582
- m.current(), m.current = null, x.start(0, () => {
572
+ }, [I]), O = l.useCallback((d, E) => {
573
+ if (clearTimeout(P.current), (d == null ? void 0 : d.type) === "touchend" && m.current) {
574
+ m.current(), m.current = null, P.current = setTimeout(() => {
583
575
  O(d, E);
584
576
  });
585
577
  return;
586
578
  }
587
579
  m.current = null, f((M) => M.length > 0 ? M.slice(1) : M), R.current = E;
588
- }, [x]);
580
+ }, []);
589
581
  return l.useImperativeHandle(o, () => ({
590
582
  pulsate: j,
591
- start: S,
583
+ start: I,
592
584
  stop: O
593
- }), [j, S, O]), /* @__PURE__ */ $(Nt, Y({
585
+ }), [j, I, O]), /* @__PURE__ */ $(xt, Y({
594
586
  className: v(b.root, i.root, s),
595
587
  ref: T
596
588
  }, c, {
@@ -601,7 +593,7 @@ const ue = 550, Vt = 80, wt = ce(Te || (Te = ee`
601
593
  })
602
594
  }));
603
595
  });
604
- process.env.NODE_ENV !== "production" && (we.propTypes = {
596
+ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
605
597
  /**
606
598
  * If `true`, the ripple starts at the center of the component
607
599
  * rather than at the point of interaction.
@@ -609,6 +601,7 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
609
601
  center: n.bool,
610
602
  /**
611
603
  * Override or extend the styles applied to the component.
604
+ * See [CSS API](#css) below for more details.
612
605
  */
613
606
  classes: n.object,
614
607
  /**
@@ -616,20 +609,20 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
616
609
  */
617
610
  className: n.string
618
611
  });
619
- function Bt(e) {
620
- return Ze("MuiButtonBase", e);
612
+ function wt(e) {
613
+ return Ge("MuiButtonBase", e);
621
614
  }
622
- const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], kt = (e) => {
615
+ const Pt = Ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), Dt = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], Nt = (e) => {
623
616
  const {
624
617
  disabled: t,
625
618
  focusVisible: o,
626
619
  focusVisibleClassName: a,
627
620
  classes: r
628
- } = e, s = Ge({
621
+ } = e, s = He({
629
622
  root: ["root", t && "disabled", o && "focusVisible"]
630
- }, Bt, r);
623
+ }, wt, r);
631
624
  return o && a && (s.root += ` ${a}`), s;
632
- }, St = le("button", {
625
+ }, Bt = ae("button", {
633
626
  name: "MuiButtonBase",
634
627
  slot: "Root",
635
628
  overridesResolver: (e, t) => t.root
@@ -664,7 +657,7 @@ const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["act
664
657
  borderStyle: "none"
665
658
  // Remove Firefox dotted outline.
666
659
  },
667
- [`&.${It.disabled}`]: {
660
+ [`&.${Pt.disabled}`]: {
668
661
  pointerEvents: "none",
669
662
  // Disable link interactions
670
663
  cursor: "default"
@@ -672,8 +665,8 @@ const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["act
672
665
  "@media print": {
673
666
  colorAdjust: "exact"
674
667
  }
675
- }), Ot = /* @__PURE__ */ l.forwardRef(function(t, o) {
676
- const a = xe({
668
+ }), Lt = /* @__PURE__ */ l.forwardRef(function(t, o) {
669
+ const a = ve({
677
670
  props: t,
678
671
  name: "MuiButtonBase"
679
672
  }), {
@@ -686,74 +679,74 @@ const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["act
686
679
  disableRipple: h = !1,
687
680
  disableTouchRipple: R = !1,
688
681
  focusRipple: y = !1,
689
- LinkComponent: x = "a",
682
+ LinkComponent: P = "a",
690
683
  onBlur: m,
691
684
  onClick: T,
692
685
  onContextMenu: U,
693
- onDragLeave: S,
686
+ onDragLeave: I,
694
687
  onFocus: j,
695
688
  onFocusVisible: O,
696
689
  onKeyDown: d,
697
690
  onKeyUp: E,
698
691
  onMouseDown: M,
699
- onMouseLeave: B,
692
+ onMouseLeave: L,
700
693
  onMouseUp: _,
701
694
  onTouchEnd: K,
702
695
  onTouchMove: C,
703
696
  onTouchStart: D,
704
- tabIndex: V = 0,
697
+ tabIndex: x = 0,
705
698
  TouchRippleProps: N,
706
- touchRippleRef: L,
707
- type: I
708
- } = a, w = ae(a, Ft), z = l.useRef(null), g = l.useRef(null), Pe = ye(g, L), {
699
+ touchRippleRef: B,
700
+ type: F
701
+ } = a, V = ue(a, Dt), z = l.useRef(null), g = l.useRef(null), we = ye(g, B), {
709
702
  isFocusVisibleRef: de,
710
- onFocus: De,
711
- onBlur: Ne,
712
- ref: Le
713
- } = gt(), [F, q] = l.useState(!1);
714
- f && F && q(!1), l.useImperativeHandle(r, () => ({
703
+ onFocus: Pe,
704
+ onBlur: De,
705
+ ref: Ne
706
+ } = dt(), [k, q] = l.useState(!1);
707
+ f && k && q(!1), l.useImperativeHandle(r, () => ({
715
708
  focusVisible: () => {
716
709
  q(!0), z.current.focus();
717
710
  }
718
711
  }), []);
719
- const [te, Be] = l.useState(!1);
712
+ const [ee, Be] = l.useState(!1);
720
713
  l.useEffect(() => {
721
714
  Be(!0);
722
715
  }, []);
723
- const ne = te && !h && !f;
716
+ const te = ee && !h && !f;
724
717
  l.useEffect(() => {
725
- F && y && !h && te && g.current.pulsate();
726
- }, [h, y, F, te]);
727
- function P(u, me, qe = R) {
728
- return H((be) => (me && me(be), !qe && g.current && g.current[u](be), !0));
718
+ k && y && !h && ee && g.current.pulsate();
719
+ }, [h, y, k, ee]);
720
+ function w(u, me, Ye = R) {
721
+ return H((be) => (me && me(be), !Ye && g.current && g.current[u](be), !0));
729
722
  }
730
- const Ie = P("start", M), Fe = P("stop", U), ke = P("stop", S), Se = P("stop", _), Oe = P("stop", (u) => {
731
- F && u.preventDefault(), B && B(u);
732
- }), _e = P("start", D), $e = P("stop", K), Ue = P("stop", C), je = P("stop", (u) => {
733
- Ne(u), de.current === !1 && q(!1), m && m(u);
734
- }, !1), Ke = H((u) => {
735
- z.current || (z.current = u.currentTarget), De(u), de.current === !0 && (q(!0), O && O(u)), j && j(u);
736
- }), oe = () => {
723
+ const Le = w("start", M), Fe = w("stop", U), ke = w("stop", I), Se = w("stop", _), Ie = w("stop", (u) => {
724
+ k && u.preventDefault(), L && L(u);
725
+ }), Oe = w("start", D), _e = w("stop", K), $e = w("stop", C), Ue = w("stop", (u) => {
726
+ De(u), de.current === !1 && q(!1), m && m(u);
727
+ }, !1), je = H((u) => {
728
+ z.current || (z.current = u.currentTarget), Pe(u), de.current === !0 && (q(!0), O && O(u)), j && j(u);
729
+ }), ne = () => {
737
730
  const u = z.current;
738
731
  return p && p !== "button" && !(u.tagName === "A" && u.href);
739
- }, re = l.useRef(!1), ze = H((u) => {
740
- y && !re.current && F && g.current && u.key === " " && (re.current = !0, g.current.stop(u, () => {
732
+ }, oe = l.useRef(!1), Ke = H((u) => {
733
+ y && !oe.current && k && g.current && u.key === " " && (oe.current = !0, g.current.stop(u, () => {
741
734
  g.current.start(u);
742
- })), u.target === u.currentTarget && oe() && u.key === " " && u.preventDefault(), d && d(u), u.target === u.currentTarget && oe() && u.key === "Enter" && !f && (u.preventDefault(), T && T(u));
743
- }), Ae = H((u) => {
744
- y && u.key === " " && g.current && F && !u.defaultPrevented && (re.current = !1, g.current.stop(u, () => {
735
+ })), u.target === u.currentTarget && ne() && u.key === " " && u.preventDefault(), d && d(u), u.target === u.currentTarget && ne() && u.key === "Enter" && !f && (u.preventDefault(), T && T(u));
736
+ }), ze = H((u) => {
737
+ y && u.key === " " && g.current && k && !u.defaultPrevented && (oe.current = !1, g.current.stop(u, () => {
745
738
  g.current.pulsate(u);
746
- })), E && E(u), T && u.target === u.currentTarget && oe() && u.key === " " && !u.defaultPrevented && T(u);
739
+ })), E && E(u), T && u.target === u.currentTarget && ne() && u.key === " " && !u.defaultPrevented && T(u);
747
740
  });
748
741
  let W = p;
749
- W === "button" && (w.href || w.to) && (W = x);
742
+ W === "button" && (V.href || V.to) && (W = P);
750
743
  const A = {};
751
- W === "button" ? (A.type = I === void 0 ? "button" : I, A.disabled = f) : (!w.href && !w.to && (A.role = "button"), f && (A["aria-disabled"] = f));
752
- const Xe = ye(o, Le, z);
744
+ W === "button" ? (A.type = F === void 0 ? "button" : F, A.disabled = f) : (!V.href && !V.to && (A.role = "button"), f && (A["aria-disabled"] = f));
745
+ const Ae = ye(o, Ne, z);
753
746
  process.env.NODE_ENV !== "production" && l.useEffect(() => {
754
- ne && !g.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
747
+ te && !g.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
755
748
  `));
756
- }, [ne]);
749
+ }, [te]);
757
750
  const he = Y({}, a, {
758
751
  centerRipple: i,
759
752
  component: p,
@@ -761,49 +754,49 @@ const It = ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ft = ["act
761
754
  disableRipple: h,
762
755
  disableTouchRipple: R,
763
756
  focusRipple: y,
764
- tabIndex: V,
765
- focusVisible: F
766
- }), Ye = kt(he);
767
- return /* @__PURE__ */ Je(St, Y({
757
+ tabIndex: x,
758
+ focusVisible: k
759
+ }), Xe = Nt(he);
760
+ return /* @__PURE__ */ Je(Bt, Y({
768
761
  as: W,
769
- className: v(Ye.root, c),
762
+ className: v(Xe.root, c),
770
763
  ownerState: he,
771
- onBlur: je,
764
+ onBlur: Ue,
772
765
  onClick: T,
773
766
  onContextMenu: Fe,
774
- onFocus: Ke,
775
- onKeyDown: ze,
776
- onKeyUp: Ae,
777
- onMouseDown: Ie,
778
- onMouseLeave: Oe,
767
+ onFocus: je,
768
+ onKeyDown: Ke,
769
+ onKeyUp: ze,
770
+ onMouseDown: Le,
771
+ onMouseLeave: Ie,
779
772
  onMouseUp: Se,
780
773
  onDragLeave: ke,
781
- onTouchEnd: $e,
782
- onTouchMove: Ue,
783
- onTouchStart: _e,
784
- ref: Xe,
785
- tabIndex: f ? -1 : V,
786
- type: I
787
- }, A, w, {
788
- children: [s, ne ? (
774
+ onTouchEnd: _e,
775
+ onTouchMove: $e,
776
+ onTouchStart: Oe,
777
+ ref: Ae,
778
+ tabIndex: f ? -1 : x,
779
+ type: F
780
+ }, A, V, {
781
+ children: [s, te ? (
789
782
  /* TouchRipple is only needed client-side, x2 boost on the server. */
790
- /* @__PURE__ */ $(we, Y({
791
- ref: Pe,
783
+ /* @__PURE__ */ $(Ve, Y({
784
+ ref: we,
792
785
  center: i
793
786
  }, N))
794
787
  ) : null]
795
788
  }));
796
789
  });
797
- process.env.NODE_ENV !== "production" && (Ot.propTypes = {
798
- // ┌────────────────────────────── Warning ──────────────────────────────┐
799
- // These PropTypes are generated from the TypeScript type definitions.
800
- // To update them, edit the d.ts file and run `pnpm proptypes`.
801
- // └─────────────────────────────────────────────────────────────────────┘
790
+ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
791
+ // ----------------------------- Warning --------------------------------
792
+ // | These PropTypes are generated from the TypeScript type definitions |
793
+ // | To update them edit the d.ts file and run "yarn proptypes" |
794
+ // ----------------------------------------------------------------------
802
795
  /**
803
796
  * A ref for imperative actions.
804
797
  * It currently only supports `focusVisible()` action.
805
798
  */
806
- action: it,
799
+ action: ot,
807
800
  /**
808
801
  * If `true`, the ripples are centered.
809
802
  * They won't start at the cursor interaction position.
@@ -826,7 +819,7 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
826
819
  * The component used for the root node.
827
820
  * Either a string to use a HTML element or a component.
828
821
  */
829
- component: rt,
822
+ component: nt,
830
823
  /**
831
824
  * If `true`, the component is disabled.
832
825
  * @default false
@@ -953,16 +946,14 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
953
946
  type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string])
954
947
  });
955
948
  export {
956
- Ot as B,
957
- fe as T,
958
- Rt as _,
959
- H as a,
960
- tt as b,
961
- ct as c,
962
- gt as d,
963
- rt as e,
964
- Re as f,
965
- it as r,
966
- st as s,
967
- ye as u
949
+ Lt as B,
950
+ ge as T,
951
+ ht as _,
952
+ ye as a,
953
+ H as b,
954
+ dt as c,
955
+ nt as e,
956
+ ot as r,
957
+ rt as s,
958
+ it as u
968
959
  };