@solostylist/ui-kit 1.0.1 → 1.0.3

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 (111) hide show
  1. package/dist/AppAutocomplete/AppAutocomplete.js +1 -1
  2. package/dist/AppAvatar/AppAvatar.js +1 -1
  3. package/dist/AppBox/AppBox.js +1 -1
  4. package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.js +2 -2
  5. package/dist/AppButton/AppButton.js +1 -1
  6. package/dist/AppButtonLink/AppButtonLink.js +1 -1
  7. package/dist/AppCard/AppCard.js +1 -1
  8. package/dist/AppCardActions/AppCardActions.js +1 -1
  9. package/dist/AppCardContent/AppCardContent.js +1 -1
  10. package/dist/AppCardHeader/AppCardHeader.js +1 -1
  11. package/dist/AppCheckbox/AppCheckbox.js +1 -1
  12. package/dist/AppChip/AppChip.js +4 -4
  13. package/dist/AppChips/AppChips.js +1 -1
  14. package/dist/AppDataTable/AppDataTable.js +403 -323
  15. package/dist/AppDialog/AppDialog.js +2 -2
  16. package/dist/AppDialogConfirm/AppDialogConfirm.js +3 -3
  17. package/dist/AppDialogMessage/AppDialogMessage.js +3 -3
  18. package/dist/AppEmpty/AppEmpty.js +1 -1
  19. package/dist/AppError/AppError.js +1 -1
  20. package/dist/AppFileDropzone/AppFileDropzone.js +21 -21
  21. package/dist/AppFileIcon/AppFileIcon.js +2 -2
  22. package/dist/AppFormControl/AppFormControl.js +1 -1
  23. package/dist/AppGallery/AppGallery.js +1060 -1064
  24. package/dist/AppI18nProvider/AppI18nProvider.js +1 -1
  25. package/dist/AppIconButton/AppIconButton.js +1 -1
  26. package/dist/AppIcons/AppIcons.js +185 -185
  27. package/dist/AppLabel/AppLabel.js +1 -1
  28. package/dist/AppLink/AppLink.js +1 -1
  29. package/dist/AppMultiSelect/AppMultiSelect.js +4 -4
  30. package/dist/AppNoData/AppNoData.js +1 -1
  31. package/dist/AppNoSsr/AppNoSsr.js +1 -1
  32. package/dist/AppOption/AppOption.js +2 -2
  33. package/dist/AppPagination/AppPagination.js +1 -1
  34. package/dist/AppRating/AppRating.d.ts +1 -1
  35. package/dist/AppRating/AppRating.js +4 -5
  36. package/dist/AppSelect/AppSelect.js +2 -2
  37. package/dist/AppSkeleton/AppSkeleton.js +1 -1
  38. package/dist/AppSnackbarMessage/AppSnackbarMessage.js +1 -1
  39. package/dist/AppStack/AppStack.js +1 -1
  40. package/dist/AppTextEditor/AppTextEditor.js +2 -2
  41. package/dist/AppTextEditor/TextEditorToolbar.js +1652 -1316
  42. package/dist/AppTextTruncation/AppTextTruncation.js +1 -1
  43. package/dist/AppThemeProvider/AppThemeProvider.js +4 -4
  44. package/dist/AppTip/AppTip.js +4 -4
  45. package/dist/{Box-yxuKPTCX.js → Box-MNdIcw0w.js} +7 -7
  46. package/dist/{ButtonBase-p_uz8ITC.js → ButtonBase-D7WZejV5.js} +238 -225
  47. package/dist/{CaretDown-CgrRY9__.js → CaretDown-CZu0drmJ.js} +6 -6
  48. package/dist/{DefaultPropsProvider-BV4t9fEW.js → DefaultPropsProvider-Cw67t9bx.js} +2 -2
  49. package/dist/{Lightbulb-1rDyOsPk.js → Lightbulb-BLT-jnYA.js} +5 -5
  50. package/dist/{Menu-B0R91i07.js → Menu-BymLGoMc.js} +1154 -1209
  51. package/dist/{MenuItem-BjjYkRmW.js → MenuItem-l3xZOND-.js} +14 -14
  52. package/dist/SForm/SForm.d.ts +9 -0
  53. package/dist/SForm/SForm.js +10 -0
  54. package/dist/SForm/index.d.ts +1 -0
  55. package/dist/SForm/index.js +4 -0
  56. package/dist/{SSRBase-B9xq2wUG.js → SSRBase-BSdFRe_j.js} +11 -11
  57. package/dist/STextField/STextField.d.ts +11 -0
  58. package/dist/STextField/STextField.js +28 -0
  59. package/dist/STextField/index.d.ts +1 -0
  60. package/dist/STextField/index.js +4 -0
  61. package/dist/STextField/package.json +5 -0
  62. package/dist/{Stack-D9qNbbkC.js → Stack-CxKx2YGj.js} +11 -11
  63. package/dist/{Typography-BYkXNa-U.js → Typography-QQx_YSAW.js} +9 -9
  64. package/dist/{User-Bx-HYRxI.js → User-X5-swnIn.js} +9 -9
  65. package/dist/{X-DETrowOy.js → X-Cw1SQcRJ.js} +9 -9
  66. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  67. package/dist/assets/AppGallery.css +1 -1
  68. package/dist/clsx-DfguY6FT.js +232 -0
  69. package/dist/createTheme-dX0MILsf.js +2899 -0
  70. package/dist/{extendSxProp-CKQgGYDd.js → extendSxProp-CTBBOYHX.js} +3 -3
  71. package/dist/{index-Btrukby7.js → index-f-gkJ93Q.js} +11 -11
  72. package/dist/jsx-runtime-C5mzlN2N.js +284 -0
  73. package/dist/main.d.ts +1 -1
  74. package/dist/main.js +28 -28
  75. package/dist/memoTheme-DOlCkXD8.js +223 -0
  76. package/dist/outlinedInputClasses-rXE3T3sa.js +13 -0
  77. package/dist/styles/theme/color-schemes.js +61 -109
  78. package/dist/styles/theme/components/autocomplete.js +1 -1
  79. package/dist/styles/theme/components/avatar.js +2 -2
  80. package/dist/styles/theme/components/button.d.ts +12 -36
  81. package/dist/styles/theme/components/button.js +3 -3
  82. package/dist/styles/theme/components/card.d.ts +3 -965
  83. package/dist/styles/theme/components/checkbox.js +1 -1
  84. package/dist/styles/theme/components/chip.d.ts +3 -1067
  85. package/dist/styles/theme/components/chip.js +23 -67
  86. package/dist/styles/theme/components/components.d.ts +18 -2074
  87. package/dist/styles/theme/components/components.js +24 -26
  88. package/dist/styles/theme/components/outlined-input.js +1 -1
  89. package/dist/styles/theme/components/radio.js +1 -1
  90. package/dist/styles/theme/components/select.js +2 -2
  91. package/dist/styles/theme/components/table-pagination.js +2 -2
  92. package/dist/styles/theme/components/tabs.js +1 -1
  93. package/dist/styles/theme/shadows.d.ts +3 -4
  94. package/dist/{useControlled-CYUofcJ9.js → useControlled-DyL3m721.js} +53 -53
  95. package/dist/useSlot-Tj9CW-Xc.js +184 -0
  96. package/dist/{useTheme-DYc4rgBb.js → useTheme-CNZ6Hnpo.js} +1 -1
  97. package/dist/utils/dayjs.js +89 -83
  98. package/package.json +2 -2
  99. package/dist/AppOutlinedInput/AppOutlinedInput.d.ts +0 -10
  100. package/dist/AppOutlinedInput/AppOutlinedInput.js +0 -40
  101. package/dist/AppOutlinedInput/index.d.ts +0 -1
  102. package/dist/AppOutlinedInput/index.js +0 -4
  103. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  104. package/dist/clsx-C-FXfxyk.js +0 -236
  105. package/dist/createTheme-C97xvI-s.js +0 -2789
  106. package/dist/jsx-runtime-B6kdoens.js +0 -634
  107. package/dist/memoTheme-B2qvAi64.js +0 -404
  108. package/dist/outlinedInputClasses-R7dmh7eW.js +0 -13
  109. package/dist/styles/theme/components/timeline-connector.d.ts +0 -7
  110. package/dist/styles/theme/components/timeline-connector.js +0 -6
  111. /package/dist/{AppOutlinedInput → SForm}/package.json +0 -0
@@ -1,29 +1,61 @@
1
- var $e = Object.defineProperty;
2
- var Fe = (e, t, n) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var X = (e, t, n) => Fe(e, typeof t != "symbol" ? t + "" : t, n);
4
- import * as f from "react";
5
- import K, { Children as Ue, isValidElement as Z, cloneElement as J } from "react";
6
- import { P as o } from "./createTheme-C97xvI-s.js";
7
- import { c as E } from "./clsx-C-FXfxyk.js";
8
- import { j as L } from "./jsx-runtime-B6kdoens.js";
9
- import { g as be, a as _e } from "./generateUtilityClasses-CuEy5gtx.js";
10
- import { s as re, c as ze } from "./memoTheme-B2qvAi64.js";
11
- import { u as ge } from "./DefaultPropsProvider-BV4t9fEW.js";
1
+ var Be = Object.defineProperty;
2
+ var Le = (e, t, n) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var X = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as p from "react";
5
+ import K, { isValidElement as G, cloneElement as Z, Children as ke } from "react";
6
+ import { P as o } from "./createTheme-dX0MILsf.js";
7
+ import { c as x } from "./clsx-DfguY6FT.js";
8
+ import { j as L } from "./jsx-runtime-C5mzlN2N.js";
9
+ import { g as he, a as $e } from "./generateUtilityClasses-CuEy5gtx.js";
10
+ import { u as me } from "./DefaultPropsProvider-Cw67t9bx.js";
11
+ import { s as re, c as Fe } from "./memoTheme-DOlCkXD8.js";
12
12
  import { keyframes as ie } from "@emotion/react";
13
- import { u as Ae } from "./useEnhancedEffect-CJGo-L3B.js";
14
- function Ye(e, t) {
13
+ import { u as Ue } from "./useEnhancedEffect-CJGo-L3B.js";
14
+ function _e(e, t) {
15
15
  return process.env.NODE_ENV === "production" ? () => null : function(...r) {
16
16
  return e(...r) || t(...r);
17
17
  };
18
18
  }
19
- const Xe = o.oneOfType([o.func, o.object]);
20
- function Ke(e) {
19
+ function J(e) {
20
+ const t = p.useRef(e);
21
+ return Ue(() => {
22
+ t.current = e;
23
+ }), p.useRef((...n) => (
24
+ // @ts-expect-error hide `this`
25
+ (0, t.current)(...n)
26
+ )).current;
27
+ }
28
+ function ce(...e) {
29
+ const t = p.useRef(void 0), n = p.useCallback((r) => {
30
+ const s = e.map((i) => {
31
+ if (i == null)
32
+ return null;
33
+ if (typeof i == "function") {
34
+ const u = i, l = u(r);
35
+ return typeof l == "function" ? l : () => {
36
+ u(null);
37
+ };
38
+ }
39
+ return i.current = r, () => {
40
+ i.current = null;
41
+ };
42
+ });
43
+ return () => {
44
+ s.forEach((i) => i == null ? void 0 : i());
45
+ };
46
+ }, e);
47
+ return p.useMemo(() => e.every((r) => r == null) ? null : (r) => {
48
+ t.current && (t.current(), t.current = void 0), r != null && (t.current = n(r));
49
+ }, e);
50
+ }
51
+ const ze = o.oneOfType([o.func, o.object]);
52
+ function Ae(e) {
21
53
  const {
22
54
  prototype: t = {}
23
55
  } = e;
24
56
  return !!t.isReactComponent;
25
57
  }
26
- function qe(e, t, n, r, s) {
58
+ function Ye(e, t, n, r, s) {
27
59
  const i = e[t], u = s || t;
28
60
  if (i == null || // When server-side rendering React doesn't warn either.
29
61
  // This is not an accurate check for SSR.
@@ -32,10 +64,10 @@ function qe(e, t, n, r, s) {
32
64
  typeof window > "u")
33
65
  return null;
34
66
  let l;
35
- return typeof i == "function" && !Ke(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${u}\` 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;
67
+ return typeof i == "function" && !Ae(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${u}\` 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;
36
68
  }
37
- const He = Ye(o.elementType, qe);
38
- function fe(e) {
69
+ const Xe = _e(o.elementType, Ye);
70
+ function pe(e) {
39
71
  try {
40
72
  return e.matches(":focus-visible");
41
73
  } catch {
@@ -44,29 +76,10 @@ function fe(e) {
44
76
  }
45
77
  return !1;
46
78
  }
47
- function We(e, t) {
48
- typeof e == "function" ? e(t) : e && (e.current = t);
49
- }
50
- function de(...e) {
51
- return f.useMemo(() => e.every((t) => t == null) ? null : (t) => {
52
- e.forEach((n) => {
53
- We(n, t);
54
- });
55
- }, e);
56
- }
57
- function G(e) {
58
- const t = f.useRef(e);
59
- return Ae(() => {
60
- t.current = e;
61
- }), f.useRef((...n) => (
62
- // @ts-expect-error hide `this`
63
- (0, t.current)(...n)
64
- )).current;
65
- }
66
- const he = {};
67
- function ye(e, t) {
68
- const n = f.useRef(he);
69
- return n.current === he && (n.current = e(t)), n;
79
+ const fe = {};
80
+ function be(e, t) {
81
+ const n = p.useRef(fe);
82
+ return n.current === fe && (n.current = e(t)), n;
70
83
  }
71
84
  class Q {
72
85
  constructor() {
@@ -86,11 +99,11 @@ class Q {
86
99
  return new Q();
87
100
  }
88
101
  static use() {
89
- const t = ye(Q.create).current, [n, r] = f.useState(!1);
90
- return t.shouldMount = n, t.setShouldMount = r, f.useEffect(t.mountEffect, [n]), t;
102
+ const t = be(Q.create).current, [n, r] = p.useState(!1);
103
+ return t.shouldMount = n, t.setShouldMount = r, p.useEffect(t.mountEffect, [n]), t;
91
104
  }
92
105
  mount() {
93
- return this.mounted || (this.mounted = Ze(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
106
+ return this.mounted || (this.mounted = qe(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
94
107
  }
95
108
  /* Ripple API */
96
109
  start(...t) {
@@ -112,10 +125,10 @@ class Q {
112
125
  });
113
126
  }
114
127
  }
115
- function Ge() {
128
+ function Ke() {
116
129
  return Q.use();
117
130
  }
118
- function Ze() {
131
+ function qe() {
119
132
  let e, t;
120
133
  const n = new Promise((r, s) => {
121
134
  e = r, t = s;
@@ -131,11 +144,11 @@ function te() {
131
144
  return e;
132
145
  }, te.apply(null, arguments);
133
146
  }
134
- function Je(e, t) {
147
+ function He(e, t) {
135
148
  if (e == null) return {};
136
149
  var n = {};
137
150
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
138
- if (t.includes(r)) continue;
151
+ if (t.indexOf(r) !== -1) continue;
139
152
  n[r] = e[r];
140
153
  }
141
154
  return n;
@@ -145,25 +158,25 @@ function ne(e, t) {
145
158
  return n.__proto__ = r, n;
146
159
  }, ne(e, t);
147
160
  }
148
- function Qe(e, t) {
161
+ function We(e, t) {
149
162
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ne(e, t);
150
163
  }
151
- const me = K.createContext(null);
152
- function et(e) {
164
+ const de = K.createContext(null);
165
+ function Ge(e) {
153
166
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
154
167
  return e;
155
168
  }
156
169
  function se(e, t) {
157
170
  var n = function(i) {
158
- return t && Z(i) ? t(i) : i;
171
+ return t && G(i) ? t(i) : i;
159
172
  }, r = /* @__PURE__ */ Object.create(null);
160
- return e && Ue.map(e, function(s) {
173
+ return e && ke.map(e, function(s) {
161
174
  return s;
162
175
  }).forEach(function(s) {
163
176
  r[s.key] = n(s);
164
177
  }), r;
165
178
  }
166
- function tt(e, t) {
179
+ function Ze(e, t) {
167
180
  e = e || {}, t = t || {};
168
181
  function n(h) {
169
182
  return h in t ? t[h] : e[h];
@@ -187,9 +200,9 @@ function tt(e, t) {
187
200
  function B(e, t, n) {
188
201
  return n[t] != null ? n[t] : e.props[t];
189
202
  }
190
- function nt(e, t) {
203
+ function Je(e, t) {
191
204
  return se(e.children, function(n) {
192
- return J(n, {
205
+ return Z(n, {
193
206
  onExited: t.bind(null, n),
194
207
  in: !0,
195
208
  appear: B(n, "appear", e),
@@ -198,20 +211,20 @@ function nt(e, t) {
198
211
  });
199
212
  });
200
213
  }
201
- function ot(e, t, n) {
202
- var r = se(e.children), s = tt(t, r);
214
+ function Qe(e, t, n) {
215
+ var r = se(e.children), s = Ze(t, r);
203
216
  return Object.keys(s).forEach(function(i) {
204
217
  var u = s[i];
205
- if (Z(u)) {
206
- var l = i in t, c = i in r, d = t[i], h = Z(d) && !d.props.in;
207
- c && (!l || h) ? s[i] = J(u, {
218
+ if (G(u)) {
219
+ var l = i in t, c = i in r, d = t[i], h = G(d) && !d.props.in;
220
+ c && (!l || h) ? s[i] = Z(u, {
208
221
  onExited: n.bind(null, u),
209
222
  in: !0,
210
223
  exit: B(u, "exit", e),
211
224
  enter: B(u, "enter", e)
212
- }) : !c && l && !h ? s[i] = J(u, {
225
+ }) : !c && l && !h ? s[i] = Z(u, {
213
226
  in: !1
214
- }) : c && l && Z(d) && (s[i] = J(u, {
227
+ }) : c && l && G(d) && (s[i] = Z(u, {
215
228
  onExited: n.bind(null, u),
216
229
  in: d.props.in,
217
230
  exit: B(u, "exit", e),
@@ -220,21 +233,21 @@ function ot(e, t, n) {
220
233
  }
221
234
  }), s;
222
235
  }
223
- var rt = Object.values || function(e) {
236
+ var et = Object.values || function(e) {
224
237
  return Object.keys(e).map(function(t) {
225
238
  return e[t];
226
239
  });
227
- }, it = {
240
+ }, tt = {
228
241
  component: "div",
229
242
  childFactory: function(t) {
230
243
  return t;
231
244
  }
232
245
  }, ue = /* @__PURE__ */ function(e) {
233
- Qe(t, e);
246
+ We(t, e);
234
247
  function t(r, s) {
235
248
  var i;
236
249
  i = e.call(this, r, s) || this;
237
- var u = i.handleExited.bind(et(i));
250
+ var u = i.handleExited.bind(Ge(i));
238
251
  return i.state = {
239
252
  contextValue: {
240
253
  isMounting: !0
@@ -255,7 +268,7 @@ var rt = Object.values || function(e) {
255
268
  }, t.getDerivedStateFromProps = function(s, i) {
256
269
  var u = i.children, l = i.handleExited, c = i.firstRender;
257
270
  return {
258
- children: c ? nt(s, l) : ot(s, u, l),
271
+ children: c ? Je(s, l) : Qe(s, u, l),
259
272
  firstRender: !1
260
273
  };
261
274
  }, n.handleExited = function(s, i) {
@@ -267,10 +280,10 @@ var rt = Object.values || function(e) {
267
280
  };
268
281
  }));
269
282
  }, n.render = function() {
270
- var s = this.props, i = s.component, u = s.childFactory, l = Je(s, ["component", "childFactory"]), c = this.state.contextValue, d = rt(this.state.children).map(u);
271
- return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ K.createElement(me.Provider, {
283
+ var s = this.props, i = s.component, u = s.childFactory, l = He(s, ["component", "childFactory"]), c = this.state.contextValue, d = et(this.state.children).map(u);
284
+ return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ K.createElement(de.Provider, {
272
285
  value: c
273
- }, d) : /* @__PURE__ */ K.createElement(me.Provider, {
286
+ }, d) : /* @__PURE__ */ K.createElement(de.Provider, {
274
287
  value: c
275
288
  }, /* @__PURE__ */ K.createElement(i, l, d));
276
289
  }, t;
@@ -328,10 +341,10 @@ ue.propTypes = process.env.NODE_ENV !== "production" ? {
328
341
  */
329
342
  childFactory: o.func
330
343
  } : {};
331
- ue.defaultProps = it;
332
- const st = [];
333
- function ut(e) {
334
- f.useEffect(e, st);
344
+ ue.defaultProps = tt;
345
+ const nt = [];
346
+ function ot(e) {
347
+ p.useEffect(e, nt);
335
348
  }
336
349
  class ae {
337
350
  constructor() {
@@ -353,11 +366,11 @@ class ae {
353
366
  }, t);
354
367
  }
355
368
  }
356
- function at() {
357
- const e = ye(ae.create).current;
358
- return ut(e.disposeEffect), e;
369
+ function rt() {
370
+ const e = be(ae.create).current;
371
+ return ot(e.disposeEffect), e;
359
372
  }
360
- function Me(e) {
373
+ function ge(e) {
361
374
  const {
362
375
  className: t,
363
376
  classes: n,
@@ -368,13 +381,13 @@ function Me(e) {
368
381
  in: l,
369
382
  onExited: c,
370
383
  timeout: d
371
- } = e, [h, M] = f.useState(!1), g = E(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), w = {
384
+ } = e, [h, m] = p.useState(!1), R = x(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), w = {
372
385
  width: u,
373
386
  height: u,
374
387
  top: -(u / 2) + i,
375
388
  left: -(u / 2) + s
376
- }, m = E(n.child, h && n.childLeaving, r && n.childPulsate);
377
- return !l && !h && M(!0), f.useEffect(() => {
389
+ }, g = x(n.child, h && n.childLeaving, r && n.childPulsate);
390
+ return !l && !h && m(!0), p.useEffect(() => {
378
391
  if (!l && c != null) {
379
392
  const D = setTimeout(c, d);
380
393
  return () => {
@@ -382,14 +395,14 @@ function Me(e) {
382
395
  };
383
396
  }
384
397
  }, [c, l, d]), /* @__PURE__ */ L.jsx("span", {
385
- className: g,
398
+ className: R,
386
399
  style: w,
387
400
  children: /* @__PURE__ */ L.jsx("span", {
388
- className: m
401
+ className: g
389
402
  })
390
403
  });
391
404
  }
392
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
405
+ process.env.NODE_ENV !== "production" && (ge.propTypes = {
393
406
  /**
394
407
  * Override or extend the styles applied to the component.
395
408
  */
@@ -424,7 +437,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
424
437
  */
425
438
  timeout: o.number.isRequired
426
439
  });
427
- const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), oe = 550, lt = 80, ct = ie`
440
+ const y = he("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), oe = 550, it = 80, st = ie`
428
441
  0% {
429
442
  transform: scale(0);
430
443
  opacity: 0.1;
@@ -434,7 +447,7 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
434
447
  transform: scale(1);
435
448
  opacity: 0.3;
436
449
  }
437
- `, pt = ie`
450
+ `, ut = ie`
438
451
  0% {
439
452
  opacity: 1;
440
453
  }
@@ -442,7 +455,7 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
442
455
  100% {
443
456
  opacity: 0;
444
457
  }
445
- `, ft = ie`
458
+ `, at = ie`
446
459
  0% {
447
460
  transform: scale(1);
448
461
  }
@@ -454,7 +467,7 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
454
467
  100% {
455
468
  transform: scale(1);
456
469
  }
457
- `, dt = re("span", {
470
+ `, lt = re("span", {
458
471
  name: "MuiTouchRipple",
459
472
  slot: "Root"
460
473
  })({
@@ -467,30 +480,30 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
467
480
  bottom: 0,
468
481
  left: 0,
469
482
  borderRadius: "inherit"
470
- }), ht = re(Me, {
483
+ }), ct = re(ge, {
471
484
  name: "MuiTouchRipple",
472
485
  slot: "Ripple"
473
486
  })`
474
487
  opacity: 0;
475
488
  position: absolute;
476
489
 
477
- &.${b.rippleVisible} {
490
+ &.${y.rippleVisible} {
478
491
  opacity: 0.3;
479
492
  transform: scale(1);
480
- animation-name: ${ct};
493
+ animation-name: ${st};
481
494
  animation-duration: ${oe}ms;
482
495
  animation-timing-function: ${({
483
496
  theme: e
484
497
  }) => e.transitions.easing.easeInOut};
485
498
  }
486
499
 
487
- &.${b.ripplePulsate} {
500
+ &.${y.ripplePulsate} {
488
501
  animation-duration: ${({
489
502
  theme: e
490
503
  }) => e.transitions.duration.shorter}ms;
491
504
  }
492
505
 
493
- & .${b.child} {
506
+ & .${y.child} {
494
507
  opacity: 1;
495
508
  display: block;
496
509
  width: 100%;
@@ -499,21 +512,21 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
499
512
  background-color: currentColor;
500
513
  }
501
514
 
502
- & .${b.childLeaving} {
515
+ & .${y.childLeaving} {
503
516
  opacity: 0;
504
- animation-name: ${pt};
517
+ animation-name: ${ut};
505
518
  animation-duration: ${oe}ms;
506
519
  animation-timing-function: ${({
507
520
  theme: e
508
521
  }) => e.transitions.easing.easeInOut};
509
522
  }
510
523
 
511
- & .${b.childPulsate} {
524
+ & .${y.childPulsate} {
512
525
  position: absolute;
513
526
  /* @noflip */
514
527
  left: 0px;
515
528
  top: 0;
516
- animation-name: ${ft};
529
+ animation-name: ${at};
517
530
  animation-duration: 2500ms;
518
531
  animation-timing-function: ${({
519
532
  theme: e
@@ -521,8 +534,8 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
521
534
  animation-iteration-count: infinite;
522
535
  animation-delay: 200ms;
523
536
  }
524
- `, Re = /* @__PURE__ */ f.forwardRef(function(t, n) {
525
- const r = ge({
537
+ `, ye = /* @__PURE__ */ p.forwardRef(function(t, n) {
538
+ const r = me({
526
539
  props: t,
527
540
  name: "MuiTouchRipple"
528
541
  }), {
@@ -530,104 +543,104 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
530
543
  classes: i = {},
531
544
  className: u,
532
545
  ...l
533
- } = r, [c, d] = f.useState([]), h = f.useRef(0), M = f.useRef(null);
534
- f.useEffect(() => {
535
- M.current && (M.current(), M.current = null);
546
+ } = r, [c, d] = p.useState([]), h = p.useRef(0), m = p.useRef(null);
547
+ p.useEffect(() => {
548
+ m.current && (m.current(), m.current = null);
536
549
  }, [c]);
537
- const g = f.useRef(!1), w = at(), m = f.useRef(null), D = f.useRef(null), x = f.useCallback((p) => {
550
+ const R = p.useRef(!1), w = rt(), g = p.useRef(null), D = p.useRef(null), C = p.useCallback((f) => {
538
551
  const {
539
- pulsate: R,
540
- rippleX: y,
552
+ pulsate: E,
553
+ rippleX: M,
541
554
  rippleY: F,
542
555
  rippleSize: V,
543
556
  cb: U
544
- } = p;
545
- d((T) => [...T, /* @__PURE__ */ L.jsx(ht, {
557
+ } = f;
558
+ d((T) => [...T, /* @__PURE__ */ L.jsx(ct, {
546
559
  classes: {
547
- ripple: E(i.ripple, b.ripple),
548
- rippleVisible: E(i.rippleVisible, b.rippleVisible),
549
- ripplePulsate: E(i.ripplePulsate, b.ripplePulsate),
550
- child: E(i.child, b.child),
551
- childLeaving: E(i.childLeaving, b.childLeaving),
552
- childPulsate: E(i.childPulsate, b.childPulsate)
560
+ ripple: x(i.ripple, y.ripple),
561
+ rippleVisible: x(i.rippleVisible, y.rippleVisible),
562
+ ripplePulsate: x(i.ripplePulsate, y.ripplePulsate),
563
+ child: x(i.child, y.child),
564
+ childLeaving: x(i.childLeaving, y.childLeaving),
565
+ childPulsate: x(i.childPulsate, y.childPulsate)
553
566
  },
554
567
  timeout: oe,
555
- pulsate: R,
556
- rippleX: y,
568
+ pulsate: E,
569
+ rippleX: M,
557
570
  rippleY: F,
558
571
  rippleSize: V
559
- }, h.current)]), h.current += 1, M.current = U;
560
- }, [i]), k = f.useCallback((p = {}, R = {}, y = () => {
572
+ }, h.current)]), h.current += 1, m.current = U;
573
+ }, [i]), k = p.useCallback((f = {}, E = {}, M = () => {
561
574
  }) => {
562
575
  const {
563
576
  pulsate: F = !1,
564
- center: V = s || R.pulsate,
577
+ center: V = s || E.pulsate,
565
578
  fakeElement: U = !1
566
579
  // For test purposes
567
- } = R;
568
- if ((p == null ? void 0 : p.type) === "mousedown" && g.current) {
569
- g.current = !1;
580
+ } = E;
581
+ if ((f == null ? void 0 : f.type) === "mousedown" && R.current) {
582
+ R.current = !1;
570
583
  return;
571
584
  }
572
- (p == null ? void 0 : p.type) === "touchstart" && (g.current = !0);
585
+ (f == null ? void 0 : f.type) === "touchstart" && (R.current = !0);
573
586
  const T = U ? null : D.current, N = T ? T.getBoundingClientRect() : {
574
587
  width: 0,
575
588
  height: 0,
576
589
  left: 0,
577
590
  top: 0
578
591
  };
579
- let O, C, j;
580
- if (V || p === void 0 || p.clientX === 0 && p.clientY === 0 || !p.clientX && !p.touches)
581
- O = Math.round(N.width / 2), C = Math.round(N.height / 2);
592
+ let O, P, j;
593
+ if (V || f === void 0 || f.clientX === 0 && f.clientY === 0 || !f.clientX && !f.touches)
594
+ O = Math.round(N.width / 2), P = Math.round(N.height / 2);
582
595
  else {
583
596
  const {
584
597
  clientX: _,
585
598
  clientY: S
586
- } = p.touches && p.touches.length > 0 ? p.touches[0] : p;
587
- O = Math.round(_ - N.left), C = Math.round(S - N.top);
599
+ } = f.touches && f.touches.length > 0 ? f.touches[0] : f;
600
+ O = Math.round(_ - N.left), P = Math.round(S - N.top);
588
601
  }
589
602
  if (V)
590
603
  j = Math.sqrt((2 * N.width ** 2 + N.height ** 2) / 3), j % 2 === 0 && (j += 1);
591
604
  else {
592
- const _ = Math.max(Math.abs((T ? T.clientWidth : 0) - O), O) * 2 + 2, S = Math.max(Math.abs((T ? T.clientHeight : 0) - C), C) * 2 + 2;
605
+ const _ = Math.max(Math.abs((T ? T.clientWidth : 0) - O), O) * 2 + 2, S = Math.max(Math.abs((T ? T.clientHeight : 0) - P), P) * 2 + 2;
593
606
  j = Math.sqrt(_ ** 2 + S ** 2);
594
607
  }
595
- p != null && p.touches ? m.current === null && (m.current = () => {
596
- x({
608
+ f != null && f.touches ? g.current === null && (g.current = () => {
609
+ C({
597
610
  pulsate: F,
598
611
  rippleX: O,
599
- rippleY: C,
612
+ rippleY: P,
600
613
  rippleSize: j,
601
- cb: y
614
+ cb: M
602
615
  });
603
- }, w.start(lt, () => {
604
- m.current && (m.current(), m.current = null);
605
- })) : x({
616
+ }, w.start(it, () => {
617
+ g.current && (g.current(), g.current = null);
618
+ })) : C({
606
619
  pulsate: F,
607
620
  rippleX: O,
608
- rippleY: C,
621
+ rippleY: P,
609
622
  rippleSize: j,
610
- cb: y
623
+ cb: M
611
624
  });
612
- }, [s, x, w]), q = f.useCallback(() => {
625
+ }, [s, C, w]), q = p.useCallback(() => {
613
626
  k({}, {
614
627
  pulsate: !0
615
628
  });
616
- }, [k]), $ = f.useCallback((p, R) => {
617
- if (w.clear(), (p == null ? void 0 : p.type) === "touchend" && m.current) {
618
- m.current(), m.current = null, w.start(0, () => {
619
- $(p, R);
629
+ }, [k]), $ = p.useCallback((f, E) => {
630
+ if (w.clear(), (f == null ? void 0 : f.type) === "touchend" && g.current) {
631
+ g.current(), g.current = null, w.start(0, () => {
632
+ $(f, E);
620
633
  });
621
634
  return;
622
635
  }
623
- m.current = null, d((y) => y.length > 0 ? y.slice(1) : y), M.current = R;
636
+ g.current = null, d((M) => M.length > 0 ? M.slice(1) : M), m.current = E;
624
637
  }, [w]);
625
- return f.useImperativeHandle(n, () => ({
638
+ return p.useImperativeHandle(n, () => ({
626
639
  pulsate: q,
627
640
  start: k,
628
641
  stop: $
629
- }), [q, k, $]), /* @__PURE__ */ L.jsx(dt, {
630
- className: E(b.root, i.root, u),
642
+ }), [q, k, $]), /* @__PURE__ */ L.jsx(lt, {
643
+ className: x(y.root, i.root, u),
631
644
  ref: D,
632
645
  ...l,
633
646
  children: /* @__PURE__ */ L.jsx(ue, {
@@ -637,7 +650,7 @@ const b = be("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
637
650
  })
638
651
  });
639
652
  });
640
- process.env.NODE_ENV !== "production" && (Re.propTypes = {
653
+ process.env.NODE_ENV !== "production" && (ye.propTypes = {
641
654
  /**
642
655
  * If `true`, the ripple starts at the center of the component
643
656
  * rather than at the point of interaction.
@@ -652,20 +665,20 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
652
665
  */
653
666
  className: o.string
654
667
  });
655
- function mt(e) {
656
- return _e("MuiButtonBase", e);
668
+ function pt(e) {
669
+ return $e("MuiButtonBase", e);
657
670
  }
658
- const bt = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), gt = (e) => {
671
+ const ft = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), dt = (e) => {
659
672
  const {
660
673
  disabled: t,
661
674
  focusVisible: n,
662
675
  focusVisibleClassName: r,
663
676
  classes: s
664
- } = e, u = ze({
677
+ } = e, u = Fe({
665
678
  root: ["root", t && "disabled", n && "focusVisible"]
666
- }, mt, s);
679
+ }, pt, s);
667
680
  return n && r && (u.root += ` ${r}`), u;
668
- }, yt = re("button", {
681
+ }, ht = re("button", {
669
682
  name: "MuiButtonBase",
670
683
  slot: "Root",
671
684
  overridesResolver: (e, t) => t.root
@@ -700,7 +713,7 @@ const bt = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), gt = (e) =
700
713
  borderStyle: "none"
701
714
  // Remove Firefox dotted outline.
702
715
  },
703
- [`&.${bt.disabled}`]: {
716
+ [`&.${ft.disabled}`]: {
704
717
  pointerEvents: "none",
705
718
  // Disable link interactions
706
719
  cursor: "default"
@@ -708,8 +721,8 @@ const bt = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), gt = (e) =
708
721
  "@media print": {
709
722
  colorAdjust: "exact"
710
723
  }
711
- }), Mt = /* @__PURE__ */ f.forwardRef(function(t, n) {
712
- const r = ge({
724
+ }), mt = /* @__PURE__ */ p.forwardRef(function(t, n) {
725
+ const r = me({
713
726
  props: t,
714
727
  name: "MuiButtonBase"
715
728
  }), {
@@ -720,105 +733,105 @@ const bt = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), gt = (e) =
720
733
  component: c = "button",
721
734
  disabled: d = !1,
722
735
  disableRipple: h = !1,
723
- disableTouchRipple: M = !1,
724
- focusRipple: g = !1,
736
+ disableTouchRipple: m = !1,
737
+ focusRipple: R = !1,
725
738
  focusVisibleClassName: w,
726
- LinkComponent: m = "a",
739
+ LinkComponent: g = "a",
727
740
  onBlur: D,
728
- onClick: x,
741
+ onClick: C,
729
742
  onContextMenu: k,
730
743
  onDragLeave: q,
731
744
  onFocus: $,
732
- onFocusVisible: p,
733
- onKeyDown: R,
734
- onKeyUp: y,
745
+ onFocusVisible: f,
746
+ onKeyDown: E,
747
+ onKeyUp: M,
735
748
  onMouseDown: F,
736
749
  onMouseLeave: V,
737
750
  onMouseUp: U,
738
751
  onTouchEnd: T,
739
752
  onTouchMove: N,
740
753
  onTouchStart: O,
741
- tabIndex: C = 0,
754
+ tabIndex: P = 0,
742
755
  TouchRippleProps: j,
743
756
  touchRippleRef: _,
744
757
  type: S,
745
758
  ...z
746
- } = r, A = f.useRef(null), P = Ge(), Te = de(P.ref, _), [I, H] = f.useState(!1);
747
- d && I && H(!1), f.useImperativeHandle(s, () => ({
759
+ } = r, A = p.useRef(null), b = Ke(), Re = ce(b.ref, _), [I, H] = p.useState(!1);
760
+ d && I && H(!1), p.useImperativeHandle(s, () => ({
748
761
  focusVisible: () => {
749
762
  H(!0), A.current.focus();
750
763
  }
751
764
  }), []);
752
- const Ee = P.shouldMount && !h && !d;
753
- f.useEffect(() => {
754
- I && g && !h && P.pulsate();
755
- }, [h, g, I, P]);
756
- function v(a, ce, ke = M) {
757
- return G((pe) => (ce && ce(pe), ke || P[a](pe), !0));
758
- }
759
- const xe = v("start", F), Ce = v("stop", k), Pe = v("stop", q), ve = v("stop", U), we = v("stop", (a) => {
765
+ const Me = b.shouldMount && !h && !d;
766
+ p.useEffect(() => {
767
+ I && R && !h && b.pulsate();
768
+ }, [h, R, I, b]);
769
+ const Ee = v(b, "start", F, m), Te = v(b, "stop", k, m), xe = v(b, "stop", q, m), Ce = v(b, "stop", U, m), Pe = v(b, "stop", (a) => {
760
770
  I && a.preventDefault(), V && V(a);
761
- }), Ne = v("start", O), Oe = v("stop", T), je = v("stop", N), De = v("stop", (a) => {
762
- fe(a.target) || H(!1), D && D(a);
763
- }, !1), Ve = G((a) => {
764
- A.current || (A.current = a.currentTarget), fe(a.target) && (H(!0), p && p(a)), $ && $(a);
771
+ }, m), ve = v(b, "start", O, m), we = v(b, "stop", T, m), Ne = v(b, "stop", N, m), Oe = v(b, "stop", (a) => {
772
+ pe(a.target) || H(!1), D && D(a);
773
+ }, !1), je = J((a) => {
774
+ A.current || (A.current = a.currentTarget), pe(a.target) && (H(!0), f && f(a)), $ && $(a);
765
775
  }), ee = () => {
766
776
  const a = A.current;
767
777
  return c && c !== "button" && !(a.tagName === "A" && a.href);
768
- }, Se = G((a) => {
769
- g && !a.repeat && I && a.key === " " && P.stop(a, () => {
770
- P.start(a);
771
- }), a.target === a.currentTarget && ee() && a.key === " " && a.preventDefault(), R && R(a), a.target === a.currentTarget && ee() && a.key === "Enter" && !d && (a.preventDefault(), x && x(a));
772
- }), Ie = G((a) => {
773
- g && a.key === " " && I && !a.defaultPrevented && P.stop(a, () => {
774
- P.pulsate(a);
775
- }), y && y(a), x && a.target === a.currentTarget && ee() && a.key === " " && !a.defaultPrevented && x(a);
778
+ }, De = J((a) => {
779
+ R && !a.repeat && I && a.key === " " && b.stop(a, () => {
780
+ b.start(a);
781
+ }), a.target === a.currentTarget && ee() && a.key === " " && a.preventDefault(), E && E(a), a.target === a.currentTarget && ee() && a.key === "Enter" && !d && (a.preventDefault(), C && C(a));
782
+ }), Ve = J((a) => {
783
+ R && a.key === " " && I && !a.defaultPrevented && b.stop(a, () => {
784
+ b.pulsate(a);
785
+ }), M && M(a), C && a.target === a.currentTarget && ee() && a.key === " " && !a.defaultPrevented && C(a);
776
786
  });
777
787
  let W = c;
778
- W === "button" && (z.href || z.to) && (W = m);
788
+ W === "button" && (z.href || z.to) && (W = g);
779
789
  const Y = {};
780
790
  W === "button" ? (Y.type = S === void 0 ? "button" : S, Y.disabled = d) : (!z.href && !z.to && (Y.role = "button"), d && (Y["aria-disabled"] = d));
781
- const Be = de(n, A), le = {
791
+ const Se = ce(n, A), le = {
782
792
  ...r,
783
793
  centerRipple: i,
784
794
  component: c,
785
795
  disabled: d,
786
796
  disableRipple: h,
787
- disableTouchRipple: M,
788
- focusRipple: g,
789
- tabIndex: C,
797
+ disableTouchRipple: m,
798
+ focusRipple: R,
799
+ tabIndex: P,
790
800
  focusVisible: I
791
- }, Le = gt(le);
792
- return /* @__PURE__ */ L.jsxs(yt, {
801
+ }, Ie = dt(le);
802
+ return /* @__PURE__ */ L.jsxs(ht, {
793
803
  as: W,
794
- className: E(Le.root, l),
804
+ className: x(Ie.root, l),
795
805
  ownerState: le,
796
- onBlur: De,
797
- onClick: x,
798
- onContextMenu: Ce,
799
- onFocus: Ve,
800
- onKeyDown: Se,
801
- onKeyUp: Ie,
802
- onMouseDown: xe,
803
- onMouseLeave: we,
804
- onMouseUp: ve,
805
- onDragLeave: Pe,
806
- onTouchEnd: Oe,
807
- onTouchMove: je,
808
- onTouchStart: Ne,
809
- ref: Be,
810
- tabIndex: d ? -1 : C,
806
+ onBlur: Oe,
807
+ onClick: C,
808
+ onContextMenu: Te,
809
+ onFocus: je,
810
+ onKeyDown: De,
811
+ onKeyUp: Ve,
812
+ onMouseDown: Ee,
813
+ onMouseLeave: Pe,
814
+ onMouseUp: Ce,
815
+ onDragLeave: xe,
816
+ onTouchEnd: we,
817
+ onTouchMove: Ne,
818
+ onTouchStart: ve,
819
+ ref: Se,
820
+ tabIndex: d ? -1 : P,
811
821
  type: S,
812
822
  ...Y,
813
823
  ...z,
814
- children: [u, Ee ? /* @__PURE__ */ L.jsx(Re, {
815
- ref: Te,
824
+ children: [u, Me ? /* @__PURE__ */ L.jsx(ye, {
825
+ ref: Re,
816
826
  center: i,
817
827
  ...j
818
828
  }) : null]
819
829
  });
820
830
  });
821
- process.env.NODE_ENV !== "production" && (Mt.propTypes = {
831
+ function v(e, t, n, r = !1) {
832
+ return J((s) => (n && n(s), r || e[t](s), !0));
833
+ }
834
+ process.env.NODE_ENV !== "production" && (mt.propTypes = {
822
835
  // ┌────────────────────────────── Warning ──────────────────────────────┐
823
836
  // │ These PropTypes are generated from the TypeScript type definitions. │
824
837
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -827,7 +840,7 @@ process.env.NODE_ENV !== "production" && (Mt.propTypes = {
827
840
  * A ref for imperative actions.
828
841
  * It currently only supports `focusVisible()` action.
829
842
  */
830
- action: Xe,
843
+ action: ze,
831
844
  /**
832
845
  * If `true`, the ripples are centered.
833
846
  * They won't start at the cursor interaction position.
@@ -850,7 +863,7 @@ process.env.NODE_ENV !== "production" && (Mt.propTypes = {
850
863
  * The component used for the root node.
851
864
  * Either a string to use a HTML element or a component.
852
865
  */
853
- component: He,
866
+ component: Xe,
854
867
  /**
855
868
  * If `true`, the component is disabled.
856
869
  * @default false
@@ -977,13 +990,13 @@ process.env.NODE_ENV !== "production" && (Mt.propTypes = {
977
990
  type: o.oneOfType([o.oneOf(["button", "reset", "submit"]), o.string])
978
991
  });
979
992
  export {
980
- Mt as B,
981
- me as T,
982
- Qe as _,
983
- Je as a,
984
- at as b,
985
- Ye as c,
986
- He as e,
987
- Xe as r,
988
- de as u
993
+ mt as B,
994
+ de as T,
995
+ We as _,
996
+ He as a,
997
+ rt as b,
998
+ _e as c,
999
+ Xe as e,
1000
+ ze as r,
1001
+ ce as u
989
1002
  };