@amateescu/portal-ui-components 0.0.30-beta9 → 0.0.31

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 (32) hide show
  1. package/dist/{Box-ZFRI9JCw.js → Box-D-aleOLf.js} +1 -1
  2. package/dist/{Button-CNfTnafe.js → Button-xgiLW4_3.js} +5 -7
  3. package/dist/{ButtonBase-DWpUn0eT.js → ButtonBase-DUKuDCWw.js} +126 -125
  4. package/dist/{CircularProgress-D6RyizwS.js → CircularProgress-Dq_bUtxt.js} +29 -30
  5. package/dist/{EllipsisOutlined-D-3xCg8z.js → EllipsisOutlined-CmR4hXJ_.js} +1 -1
  6. package/dist/{PurePanel-CTG2Gs1r.js → PurePanel-CykVuv66.js} +1 -1
  7. package/dist/{Skeleton-AxdUhch9.js → Skeleton-BBwDqRB3.js} +1 -1
  8. package/dist/{UserInfoDropdown-DLPEHXMj.js → UserInfoDropdown-DtadP0e7.js} +3 -3
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomButton/CustomButton.stories.js +1 -1
  13. package/dist/components/CustomPagination/CustomPagination.js +39 -41
  14. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  15. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  18. package/dist/components/KpiCard/KpiCard.js +3 -3
  19. package/dist/components/LoadingAnimation/LoadingAnimation.js +2 -2
  20. package/dist/components/Login/Login.js +1009 -989
  21. package/dist/components/SideMenu/SideMenu.js +1 -1
  22. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  23. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  24. package/dist/components/index.js +1 -1
  25. package/dist/{context-D9BBvKPl.js → context-4ttylmIf.js} +1648 -1676
  26. package/dist/{createSimplePaletteValueFilter-rq2_biPF.js → createSimplePaletteValueFilter-evt-Xthj.js} +197 -196
  27. package/dist/{createSvgIcon-jB7EUYpq.js → createSvgIcon-CgFXfzFk.js} +1 -1
  28. package/dist/{index-C4jQKFL8.js → index-Dz00OoV7.js} +3 -3
  29. package/dist/main.js +1 -1
  30. package/dist/useSlot-Baxtq84W.js +188 -0
  31. package/package.json +11 -11
  32. package/dist/useSlot-CT4096EK.js +0 -188
@@ -1,4 +1,4 @@
1
- import { j as d, k as T, l as C, n as P, o as b, c as B, a as N, C as g, T as j, p as O, P as n } from "./createSimplePaletteValueFilter-rq2_biPF.js";
1
+ import { j as d, k as T, l as C, n as P, o as b, c as B, a as N, C as g, T as j, p as O, P as n } from "./createSimplePaletteValueFilter-evt-Xthj.js";
2
2
  import * as u from "react";
3
3
  import { jsx as E } from "react/jsx-runtime";
4
4
  import { ThemeContext as S } from "@emotion/react";
@@ -1,8 +1,8 @@
1
1
  import * as s from "react";
2
- import { a as J, g as K, r as Q, u as X, s as b, c as N, b as r, d as Y, h as Z, m as oo, i as f, e as to, P as t } from "./createSimplePaletteValueFilter-rq2_biPF.js";
2
+ import { a as J, g as K, r as Q, u as X, s as b, c as N, b as r, d as Y, h as Z, m as oo, i as f, e as to, P as t } from "./createSimplePaletteValueFilter-evt-Xthj.js";
3
3
  import { jsxs as ao, jsx as c } from "react/jsx-runtime";
4
- import { B as no } from "./ButtonBase-DWpUn0eT.js";
5
- import { C as io } from "./CircularProgress-D6RyizwS.js";
4
+ import { B as no } from "./ButtonBase-DUKuDCWw.js";
5
+ import { C as io } from "./CircularProgress-Dq_bUtxt.js";
6
6
  let O = 0;
7
7
  function ro(o) {
8
8
  const [a, n] = s.useState(o), i = o || a;
@@ -372,8 +372,7 @@ const co = (o) => {
372
372
  }, ...k]
373
373
  })), vo = b("span", {
374
374
  name: "MuiButton",
375
- slot: "LoadingIndicator",
376
- overridesResolver: (o, a) => a.loadingIndicator
375
+ slot: "LoadingIndicator"
377
376
  })(({
378
377
  theme: o
379
378
  }) => ({
@@ -463,8 +462,7 @@ const co = (o) => {
463
462
  }]
464
463
  })), T = b("span", {
465
464
  name: "MuiButton",
466
- slot: "LoadingIconPlaceholder",
467
- overridesResolver: (o, a) => a.loadingIconPlaceholder
465
+ slot: "LoadingIconPlaceholder"
468
466
  })({
469
467
  display: "inline-block",
470
468
  width: "1em",
@@ -3,31 +3,14 @@ var Le = (t, e, n) => e in t ? Be(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var X = (t, e, n) => Le(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as c from "react";
5
5
  import K, { isValidElement as G, cloneElement as Z, Children as Oe } from "react";
6
- import { f as ke, P as o, c as C, a as fe, u as de, s as ne, g as je, d as $e } from "./createSimplePaletteValueFilter-rq2_biPF.js";
6
+ import { P as o, f as ke, c as C, a as fe, u as de, s as ne, g as je, d as $e } from "./createSimplePaletteValueFilter-evt-Xthj.js";
7
7
  import { jsx as F, jsxs as Fe } from "react/jsx-runtime";
8
8
  import { a as Ue, _ as ze, b as _e, c as Ae } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
9
9
  import { keyframes as oe } from "@emotion/react";
10
- function Ye(t) {
11
- const {
12
- prototype: e = {}
13
- } = t;
14
- return !!e.isReactComponent;
15
- }
16
- function Xe(t, e, n, u, i) {
17
- const r = t[e], s = i || e;
18
- if (r == null || // When server-side rendering React doesn't warn either.
19
- // This is not an accurate check for SSR.
20
- // This is only in place for emotion compat.
21
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
22
- typeof window > "u")
23
- return null;
24
- let l;
25
- return typeof r == "function" && !Ye(r) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${u} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
26
- }
27
- const Ke = ke(o.elementType, Xe), qe = o.oneOfType([o.func, o.object]), He = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
10
+ const Ye = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
28
11
  function J(t) {
29
12
  const e = c.useRef(t);
30
- return He(() => {
13
+ return Ye(() => {
31
14
  e.current = t;
32
15
  }), c.useRef((...n) => (
33
16
  // @ts-expect-error hide `this`
@@ -57,40 +40,26 @@ function ae(...t) {
57
40
  e.current && (e.current(), e.current = void 0), u != null && (e.current = n(u));
58
41
  }, t);
59
42
  }
60
- const le = {};
61
- function he(t, e) {
62
- const n = c.useRef(le);
63
- return n.current === le && (n.current = t(e)), n;
64
- }
65
- const We = [];
66
- function Ge(t) {
67
- c.useEffect(t, We);
68
- }
69
- class re {
70
- constructor() {
71
- X(this, "currentId", null);
72
- X(this, "clear", () => {
73
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
74
- });
75
- X(this, "disposeEffect", () => this.clear);
76
- }
77
- static create() {
78
- return new re();
79
- }
80
- /**
81
- * Executes `fn` after `delay`, clearing any previously scheduled call.
82
- */
83
- start(e, n) {
84
- this.clear(), this.currentId = setTimeout(() => {
85
- this.currentId = null, n();
86
- }, e);
87
- }
43
+ const Xe = o.oneOfType([o.func, o.object]);
44
+ function Ke(t) {
45
+ const {
46
+ prototype: e = {}
47
+ } = t;
48
+ return !!e.isReactComponent;
88
49
  }
89
- function Ze() {
90
- const t = he(re.create).current;
91
- return Ge(t.disposeEffect), t;
50
+ function qe(t, e, n, u, i) {
51
+ const r = t[e], s = i || e;
52
+ if (r == null || // When server-side rendering React doesn't warn either.
53
+ // This is not an accurate check for SSR.
54
+ // This is only in place for emotion compat.
55
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
56
+ typeof window > "u")
57
+ return null;
58
+ let l;
59
+ return typeof r == "function" && !Ke(r) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${u} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
92
60
  }
93
- function ce(t) {
61
+ const He = ke(o.elementType, qe);
62
+ function le(t) {
94
63
  try {
95
64
  return t.matches(":focus-visible");
96
65
  } catch {
@@ -99,6 +68,11 @@ function ce(t) {
99
68
  }
100
69
  return !1;
101
70
  }
71
+ const ce = {};
72
+ function he(t, e) {
73
+ const n = c.useRef(ce);
74
+ return n.current === ce && (n.current = t(e)), n;
75
+ }
102
76
  class Q {
103
77
  constructor() {
104
78
  X(this, "mountEffect", () => {
@@ -121,7 +95,7 @@ class Q {
121
95
  return e.shouldMount = n, e.setShouldMount = u, c.useEffect(e.mountEffect, [n]), e;
122
96
  }
123
97
  mount() {
124
- return this.mounted || (this.mounted = Qe(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
98
+ return this.mounted || (this.mounted = Ge(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
125
99
  }
126
100
  /* Ripple API */
127
101
  start(...e) {
@@ -143,21 +117,21 @@ class Q {
143
117
  });
144
118
  }
145
119
  }
146
- function Je() {
120
+ function We() {
147
121
  return Q.use();
148
122
  }
149
- function Qe() {
123
+ function Ge() {
150
124
  let t, e;
151
125
  const n = new Promise((u, i) => {
152
126
  t = u, e = i;
153
127
  });
154
128
  return n.resolve = t, n.reject = e, n;
155
129
  }
156
- function et(t, e) {
130
+ function Ze(t, e) {
157
131
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Ue(t, e);
158
132
  }
159
133
  const pe = K.createContext(null);
160
- function ie(t, e) {
134
+ function re(t, e) {
161
135
  var n = function(r) {
162
136
  return e && G(r) ? e(r) : r;
163
137
  }, u = /* @__PURE__ */ Object.create(null);
@@ -167,7 +141,7 @@ function ie(t, e) {
167
141
  u[i.key] = n(i);
168
142
  }), u;
169
143
  }
170
- function tt(t, e) {
144
+ function Je(t, e) {
171
145
  t = t || {}, e = e || {};
172
146
  function n(h) {
173
147
  return h in e ? e[h] : t[h];
@@ -191,8 +165,8 @@ function tt(t, e) {
191
165
  function O(t, e, n) {
192
166
  return n[e] != null ? n[e] : t.props[e];
193
167
  }
194
- function nt(t, e) {
195
- return ie(t.children, function(n) {
168
+ function Qe(t, e) {
169
+ return re(t.children, function(n) {
196
170
  return Z(n, {
197
171
  onExited: e.bind(null, n),
198
172
  in: !0,
@@ -202,8 +176,8 @@ function nt(t, e) {
202
176
  });
203
177
  });
204
178
  }
205
- function ot(t, e, n) {
206
- var u = ie(t.children), i = tt(e, u);
179
+ function et(t, e, n) {
180
+ var u = re(t.children), i = Je(e, u);
207
181
  return Object.keys(i).forEach(function(r) {
208
182
  var s = i[r];
209
183
  if (G(s)) {
@@ -224,17 +198,17 @@ function ot(t, e, n) {
224
198
  }
225
199
  }), i;
226
200
  }
227
- var rt = Object.values || function(t) {
201
+ var tt = Object.values || function(t) {
228
202
  return Object.keys(t).map(function(e) {
229
203
  return t[e];
230
204
  });
231
- }, it = {
205
+ }, nt = {
232
206
  component: "div",
233
207
  childFactory: function(e) {
234
208
  return e;
235
209
  }
236
- }, se = /* @__PURE__ */ function(t) {
237
- et(e, t);
210
+ }, ie = /* @__PURE__ */ function(t) {
211
+ Ze(e, t);
238
212
  function e(u, i) {
239
213
  var r;
240
214
  r = t.call(this, u, i) || this;
@@ -259,11 +233,11 @@ var rt = Object.values || function(t) {
259
233
  }, e.getDerivedStateFromProps = function(i, r) {
260
234
  var s = r.children, l = r.handleExited, p = r.firstRender;
261
235
  return {
262
- children: p ? nt(i, l) : ot(i, s, l),
236
+ children: p ? Qe(i, l) : et(i, s, l),
263
237
  firstRender: !1
264
238
  };
265
239
  }, n.handleExited = function(i, r) {
266
- var s = ie(this.props.children);
240
+ var s = re(this.props.children);
267
241
  i.key in s || (i.props.onExited && i.props.onExited(r), this.mounted && this.setState(function(l) {
268
242
  var p = ze({}, l.children);
269
243
  return delete p[i.key], {
@@ -271,7 +245,7 @@ var rt = Object.values || function(t) {
271
245
  };
272
246
  }));
273
247
  }, n.render = function() {
274
- var i = this.props, r = i.component, s = i.childFactory, l = _e(i, ["component", "childFactory"]), p = this.state.contextValue, d = rt(this.state.children).map(s);
248
+ var i = this.props, r = i.component, s = i.childFactory, l = _e(i, ["component", "childFactory"]), p = this.state.contextValue, d = tt(this.state.children).map(s);
275
249
  return delete l.appear, delete l.enter, delete l.exit, r === null ? /* @__PURE__ */ K.createElement(pe.Provider, {
276
250
  value: p
277
251
  }, d) : /* @__PURE__ */ K.createElement(pe.Provider, {
@@ -279,7 +253,7 @@ var rt = Object.values || function(t) {
279
253
  }, /* @__PURE__ */ K.createElement(r, l, d));
280
254
  }, e;
281
255
  }(K.Component);
282
- se.propTypes = process.env.NODE_ENV !== "production" ? {
256
+ ie.propTypes = process.env.NODE_ENV !== "production" ? {
283
257
  /**
284
258
  * `<TransitionGroup>` renders a `<div>` by default. You can change this
285
259
  * behavior by providing a `component` prop.
@@ -332,7 +306,35 @@ se.propTypes = process.env.NODE_ENV !== "production" ? {
332
306
  */
333
307
  childFactory: o.func
334
308
  } : {};
335
- se.defaultProps = it;
309
+ ie.defaultProps = nt;
310
+ const ot = [];
311
+ function rt(t) {
312
+ c.useEffect(t, ot);
313
+ }
314
+ class se {
315
+ constructor() {
316
+ X(this, "currentId", null);
317
+ X(this, "clear", () => {
318
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
319
+ });
320
+ X(this, "disposeEffect", () => this.clear);
321
+ }
322
+ static create() {
323
+ return new se();
324
+ }
325
+ /**
326
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
327
+ */
328
+ start(e, n) {
329
+ this.clear(), this.currentId = setTimeout(() => {
330
+ this.currentId = null, n();
331
+ }, e);
332
+ }
333
+ }
334
+ function it() {
335
+ const t = he(se.create).current;
336
+ return rt(t.disposeEffect), t;
337
+ }
336
338
  function me(t) {
337
339
  const {
338
340
  className: e,
@@ -344,7 +346,7 @@ function me(t) {
344
346
  in: l,
345
347
  onExited: p,
346
348
  timeout: d
347
- } = t, [h, m] = c.useState(!1), R = C(e, n.ripple, n.rippleVisible, u && n.ripplePulsate), N = {
349
+ } = t, [h, m] = c.useState(!1), M = C(e, n.ripple, n.rippleVisible, u && n.ripplePulsate), N = {
348
350
  width: s,
349
351
  height: s,
350
352
  top: -(s / 2) + r,
@@ -358,7 +360,7 @@ function me(t) {
358
360
  };
359
361
  }
360
362
  }, [p, l, d]), /* @__PURE__ */ F("span", {
361
- className: R,
363
+ className: M,
362
364
  style: N,
363
365
  children: /* @__PURE__ */ F("span", {
364
366
  className: g
@@ -510,10 +512,10 @@ const y = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
510
512
  c.useEffect(() => {
511
513
  m.current && (m.current(), m.current = null);
512
514
  }, [p]);
513
- const R = c.useRef(!1), N = Ze(), g = c.useRef(null), S = c.useRef(null), x = c.useCallback((f) => {
515
+ const M = c.useRef(!1), N = it(), g = c.useRef(null), S = c.useRef(null), x = c.useCallback((f) => {
514
516
  const {
515
517
  pulsate: T,
516
- rippleX: M,
518
+ rippleX: R,
517
519
  rippleY: $,
518
520
  rippleSize: I,
519
521
  cb: U
@@ -529,11 +531,11 @@ const y = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
529
531
  },
530
532
  timeout: te,
531
533
  pulsate: T,
532
- rippleX: M,
534
+ rippleX: R,
533
535
  rippleY: $,
534
536
  rippleSize: I
535
537
  }, h.current)]), h.current += 1, m.current = U;
536
- }, [r]), k = c.useCallback((f = {}, T = {}, M = () => {
538
+ }, [r]), k = c.useCallback((f = {}, T = {}, R = () => {
537
539
  }) => {
538
540
  const {
539
541
  pulsate: $ = !1,
@@ -541,49 +543,49 @@ const y = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
541
543
  fakeElement: U = !1
542
544
  // For test purposes
543
545
  } = T;
544
- if ((f == null ? void 0 : f.type) === "mousedown" && R.current) {
545
- R.current = !1;
546
+ if ((f == null ? void 0 : f.type) === "mousedown" && M.current) {
547
+ M.current = !1;
546
548
  return;
547
549
  }
548
- (f == null ? void 0 : f.type) === "touchstart" && (R.current = !0);
550
+ (f == null ? void 0 : f.type) === "touchstart" && (M.current = !0);
549
551
  const E = U ? null : S.current, D = E ? E.getBoundingClientRect() : {
550
552
  width: 0,
551
553
  height: 0,
552
554
  left: 0,
553
555
  top: 0
554
556
  };
555
- let v, P, V;
557
+ let V, P, v;
556
558
  if (I || f === void 0 || f.clientX === 0 && f.clientY === 0 || !f.clientX && !f.touches)
557
- v = Math.round(D.width / 2), P = Math.round(D.height / 2);
559
+ V = Math.round(D.width / 2), P = Math.round(D.height / 2);
558
560
  else {
559
561
  const {
560
562
  clientX: z,
561
563
  clientY: B
562
564
  } = f.touches && f.touches.length > 0 ? f.touches[0] : f;
563
- v = Math.round(z - D.left), P = Math.round(B - D.top);
565
+ V = Math.round(z - D.left), P = Math.round(B - D.top);
564
566
  }
565
567
  if (I)
566
- V = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), V % 2 === 0 && (V += 1);
568
+ v = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), v % 2 === 0 && (v += 1);
567
569
  else {
568
- const z = Math.max(Math.abs((E ? E.clientWidth : 0) - v), v) * 2 + 2, B = Math.max(Math.abs((E ? E.clientHeight : 0) - P), P) * 2 + 2;
569
- V = Math.sqrt(z ** 2 + B ** 2);
570
+ const z = Math.max(Math.abs((E ? E.clientWidth : 0) - V), V) * 2 + 2, B = Math.max(Math.abs((E ? E.clientHeight : 0) - P), P) * 2 + 2;
571
+ v = Math.sqrt(z ** 2 + B ** 2);
570
572
  }
571
573
  f != null && f.touches ? g.current === null && (g.current = () => {
572
574
  x({
573
575
  pulsate: $,
574
- rippleX: v,
576
+ rippleX: V,
575
577
  rippleY: P,
576
- rippleSize: V,
577
- cb: M
578
+ rippleSize: v,
579
+ cb: R
578
580
  });
579
581
  }, N.start(st, () => {
580
582
  g.current && (g.current(), g.current = null);
581
583
  })) : x({
582
584
  pulsate: $,
583
- rippleX: v,
585
+ rippleX: V,
584
586
  rippleY: P,
585
- rippleSize: V,
586
- cb: M
587
+ rippleSize: v,
588
+ cb: R
587
589
  });
588
590
  }, [i, x, N]), q = c.useCallback(() => {
589
591
  k({}, {
@@ -596,7 +598,7 @@ const y = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
596
598
  });
597
599
  return;
598
600
  }
599
- g.current = null, d((M) => M.length > 0 ? M.slice(1) : M), m.current = T;
601
+ g.current = null, d((R) => R.length > 0 ? R.slice(1) : R), m.current = T;
600
602
  }, [N]);
601
603
  return c.useImperativeHandle(n, () => ({
602
604
  pulsate: q,
@@ -606,7 +608,7 @@ const y = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
606
608
  className: C(y.root, r.root, s),
607
609
  ref: S,
608
610
  ...l,
609
- children: /* @__PURE__ */ F(se, {
611
+ children: /* @__PURE__ */ F(ie, {
610
612
  component: null,
611
613
  exit: !0,
612
614
  children: p
@@ -643,8 +645,7 @@ const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) =
643
645
  return n && u && (s.root += ` ${u}`), s;
644
646
  }, mt = ne("button", {
645
647
  name: "MuiButtonBase",
646
- slot: "Root",
647
- overridesResolver: (t, e) => e.root
648
+ slot: "Root"
648
649
  })({
649
650
  display: "inline-flex",
650
651
  alignItems: "center",
@@ -697,7 +698,7 @@ const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) =
697
698
  disabled: d = !1,
698
699
  disableRipple: h = !1,
699
700
  disableTouchRipple: m = !1,
700
- focusRipple: R = !1,
701
+ focusRipple: M = !1,
701
702
  focusVisibleClassName: N,
702
703
  LinkComponent: g = "a",
703
704
  onBlur: S,
@@ -707,19 +708,19 @@ const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) =
707
708
  onFocus: j,
708
709
  onFocusVisible: f,
709
710
  onKeyDown: T,
710
- onKeyUp: M,
711
+ onKeyUp: R,
711
712
  onMouseDown: $,
712
713
  onMouseLeave: I,
713
714
  onMouseUp: U,
714
715
  onTouchEnd: E,
715
716
  onTouchMove: D,
716
- onTouchStart: v,
717
+ onTouchStart: V,
717
718
  tabIndex: P = 0,
718
- TouchRippleProps: V,
719
+ TouchRippleProps: v,
719
720
  touchRippleRef: z,
720
721
  type: B,
721
722
  ..._
722
- } = u, A = c.useRef(null), b = Je(), ge = ae(b.ref, z), [L, H] = c.useState(!1);
723
+ } = u, A = c.useRef(null), b = We(), ge = ae(b.ref, z), [L, H] = c.useState(!1);
723
724
  d && L && H(!1), c.useImperativeHandle(i, () => ({
724
725
  focusVisible: () => {
725
726
  H(!0), A.current.focus();
@@ -727,25 +728,25 @@ const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) =
727
728
  }), []);
728
729
  const ye = b.shouldMount && !h && !d;
729
730
  c.useEffect(() => {
730
- L && R && !h && b.pulsate();
731
- }, [h, R, L, b]);
732
- const Re = w(b, "start", $, m), Me = w(b, "stop", k, m), Te = w(b, "stop", q, m), Ee = w(b, "stop", U, m), Ce = w(b, "stop", (a) => {
731
+ L && M && !h && b.pulsate();
732
+ }, [h, M, L, b]);
733
+ const Me = w(b, "start", $, m), Re = w(b, "stop", k, m), Te = w(b, "stop", q, m), Ee = w(b, "stop", U, m), Ce = w(b, "stop", (a) => {
733
734
  L && a.preventDefault(), I && I(a);
734
- }, m), xe = w(b, "start", v, m), Pe = w(b, "stop", E, m), we = w(b, "stop", D, m), Ne = w(b, "stop", (a) => {
735
- ce(a.target) || H(!1), S && S(a);
735
+ }, m), xe = w(b, "start", V, m), Pe = w(b, "stop", E, m), we = w(b, "stop", D, m), Ne = w(b, "stop", (a) => {
736
+ le(a.target) || H(!1), S && S(a);
736
737
  }, !1), De = J((a) => {
737
- A.current || (A.current = a.currentTarget), ce(a.target) && (H(!0), f && f(a)), j && j(a);
738
+ A.current || (A.current = a.currentTarget), le(a.target) && (H(!0), f && f(a)), j && j(a);
738
739
  }), ee = () => {
739
740
  const a = A.current;
740
741
  return p && p !== "button" && !(a.tagName === "A" && a.href);
741
- }, ve = J((a) => {
742
- R && !a.repeat && L && a.key === " " && b.stop(a, () => {
742
+ }, Ve = J((a) => {
743
+ M && !a.repeat && L && a.key === " " && b.stop(a, () => {
743
744
  b.start(a);
744
745
  }), a.target === a.currentTarget && ee() && a.key === " " && a.preventDefault(), T && T(a), a.target === a.currentTarget && ee() && a.key === "Enter" && !d && (a.preventDefault(), x && x(a));
745
- }), Ve = J((a) => {
746
- R && a.key === " " && L && !a.defaultPrevented && b.stop(a, () => {
746
+ }), ve = J((a) => {
747
+ M && a.key === " " && L && !a.defaultPrevented && b.stop(a, () => {
747
748
  b.pulsate(a);
748
- }), M && M(a), x && a.target === a.currentTarget && ee() && a.key === " " && !a.defaultPrevented && x(a);
749
+ }), R && R(a), x && a.target === a.currentTarget && ee() && a.key === " " && !a.defaultPrevented && x(a);
749
750
  });
750
751
  let W = p;
751
752
  W === "button" && (_.href || _.to) && (W = g);
@@ -758,7 +759,7 @@ const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) =
758
759
  disabled: d,
759
760
  disableRipple: h,
760
761
  disableTouchRipple: m,
761
- focusRipple: R,
762
+ focusRipple: M,
762
763
  tabIndex: P,
763
764
  focusVisible: L
764
765
  }, Ie = ht(ue);
@@ -768,11 +769,11 @@ const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) =
768
769
  ownerState: ue,
769
770
  onBlur: Ne,
770
771
  onClick: x,
771
- onContextMenu: Me,
772
+ onContextMenu: Re,
772
773
  onFocus: De,
773
- onKeyDown: ve,
774
- onKeyUp: Ve,
775
- onMouseDown: Re,
774
+ onKeyDown: Ve,
775
+ onKeyUp: ve,
776
+ onMouseDown: Me,
776
777
  onMouseLeave: Ce,
777
778
  onMouseUp: Ee,
778
779
  onDragLeave: Te,
@@ -787,7 +788,7 @@ const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) =
787
788
  children: [s, ye ? /* @__PURE__ */ F(be, {
788
789
  ref: ge,
789
790
  center: r,
790
- ...V
791
+ ...v
791
792
  }) : null]
792
793
  });
793
794
  });
@@ -803,7 +804,7 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
803
804
  * A ref for imperative actions.
804
805
  * It currently only supports `focusVisible()` action.
805
806
  */
806
- action: qe,
807
+ action: Xe,
807
808
  /**
808
809
  * If `true`, the ripples are centered.
809
810
  * They won't start at the cursor interaction position.
@@ -826,7 +827,7 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
826
827
  * The component used for the root node.
827
828
  * Either a string to use a HTML element or a component.
828
829
  */
829
- component: Ke,
830
+ component: He,
830
831
  /**
831
832
  * If `true`, the component is disabled.
832
833
  * @default false
@@ -955,11 +956,11 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
955
956
  export {
956
957
  bt as B,
957
958
  pe as T,
958
- et as _,
959
- He as a,
959
+ Ze as _,
960
+ Ye as a,
960
961
  J as b,
961
- Ze as c,
962
- Ke as e,
963
- qe as r,
962
+ it as c,
963
+ He as e,
964
+ Xe as r,
964
965
  ae as u
965
966
  };