@cgi-learning-hub/ui 0.0.1-dev.1713359037 → 0.0.1-dev.1716882954

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 (160) hide show
  1. package/dist/Box-B5JvteYc.cjs +1 -0
  2. package/dist/{Box-CcD_sRqe.js → Box-w9A3CGWz.js} +24 -26
  3. package/dist/{ButtonBase-BBqNg9BC.js → ButtonBase-ClqFvN38.js} +102 -107
  4. package/dist/ButtonBase-DLRUHDp_.cjs +75 -0
  5. package/dist/{CircularProgress-G9G_loET.js → CircularProgress-CKU4oqMn.js} +4 -4
  6. package/dist/{CircularProgress-DVnd6kxt.cjs → CircularProgress-LIVNb3Un.cjs} +1 -1
  7. package/dist/DefaultButton-Bk1TaeJZ.cjs +1 -0
  8. package/dist/{DefaultButton-DDeufcNs.js → DefaultButton-Pk7aXp0l.js} +94 -95
  9. package/dist/{IconButton-B6XIqj_T.js → IconButton-SMmmWi-o.js} +28 -29
  10. package/dist/IconButton-djnEGxm7.cjs +2 -0
  11. package/dist/InputBase-BPq0sWTY.cjs +3 -0
  12. package/dist/{InputBase-CdKFPwS3.js → InputBase-BnfifOOr.js} +280 -320
  13. package/dist/{LocalizationProvider-CNYbKILJ.cjs → LocalizationProvider-BqBo3ogt.cjs} +1 -1
  14. package/dist/{LocalizationProvider-0zrjdh3x.js → LocalizationProvider-DabIC_L5.js} +2 -2
  15. package/dist/{SearchInput-Q5BP0X0K.js → SearchInput-BEYRgfVH.js} +25 -25
  16. package/dist/SearchInput-CoPiN90W.cjs +1 -0
  17. package/dist/Tabs-Cr7s6H3h.cjs +4 -0
  18. package/dist/{Tabs-CDBEadDu.js → Tabs-NsW3-ZTG.js} +264 -265
  19. package/dist/TextInput-DMTI0kNm.cjs +12 -0
  20. package/dist/{TextInput-BNe_BIm9.js → TextInput-Db4gwAZh.js} +1388 -1397
  21. package/dist/{TimePicker-CLYqSUwA.js → TimePicker-BFhOku5y.js} +5172 -4988
  22. package/dist/TimePicker-UQHnH9uN.cjs +73 -0
  23. package/dist/{TransitionGroupContext-C7wWJ6l7.js → TransitionGroupContext-BkoHK5Kx.js} +2 -2
  24. package/dist/{TransitionGroupContext-g4tmk10h.cjs → TransitionGroupContext-mYDSzffd.cjs} +1 -1
  25. package/dist/Typography-DOPsRNd4.cjs +1 -0
  26. package/dist/{Typography-CkEznQ8f.js → Typography-dcZWbxlM.js} +74 -100
  27. package/dist/assets/index.css +1 -1
  28. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  29. package/dist/components/Dropzone/Dropzone.d.ts +3 -2
  30. package/dist/components/Dropzone/Dropzone.es.js +9 -9
  31. package/dist/components/Dropzone/Dropzone.stories.d.ts +2 -1
  32. package/dist/components/Dropzone/index.d.ts +2 -2
  33. package/dist/components/Icons/MoodleIcon/MoodleIcon.cjs.js +1 -0
  34. package/dist/components/Icons/MoodleIcon/MoodleIcon.d.ts +6 -0
  35. package/dist/components/Icons/MoodleIcon/MoodleIcon.es.js +14 -0
  36. package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.cjs.js +1 -0
  37. package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.d.ts +5 -0
  38. package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.es.js +14 -0
  39. package/dist/components/Icons/MoodleIcon/index.cjs.js +1 -0
  40. package/dist/components/Icons/MoodleIcon/index.d.ts +2 -0
  41. package/dist/components/Icons/MoodleIcon/index.es.js +4 -0
  42. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  43. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +2 -1
  44. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -0
  45. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +2 -1
  46. package/dist/components/LoaderBackdrop/index.d.ts +2 -2
  47. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  48. package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +2 -1
  49. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
  50. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  51. package/dist/components/LocalizationProvider/index.d.ts +2 -2
  52. package/dist/components/LocalizationProvider/index.es.js +1 -1
  53. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  54. package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +3 -2
  55. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
  56. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  57. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +2 -1
  58. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +16 -16
  59. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  60. package/dist/components/buttons/DefaultButton/index.d.ts +2 -2
  61. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  62. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  63. package/dist/components/buttons/IconButton.stories.d.ts +2 -1
  64. package/dist/components/buttons/IconButton.stories.es.js +10 -9
  65. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  66. package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +2 -2
  67. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  68. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  69. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +2 -1
  70. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  71. package/dist/components/buttons/PrimaryButton/index.d.ts +2 -2
  72. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  73. package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +2 -2
  74. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  75. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  76. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +2 -1
  77. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  78. package/dist/components/buttons/SecondaryButton/index.d.ts +2 -2
  79. package/dist/components/buttons/index.cjs.js +1 -1
  80. package/dist/components/buttons/index.d.ts +3 -3
  81. package/dist/components/buttons/index.es.js +1 -1
  82. package/dist/components/feedback/Alert/Alert.d.ts +2 -1
  83. package/dist/components/feedback/Alert/Alert.stories.d.ts +2 -1
  84. package/dist/components/feedback/Alert/index.d.ts +2 -2
  85. package/dist/components/index.cjs.js +1 -1
  86. package/dist/components/index.d.ts +111 -110
  87. package/dist/components/index.es.js +140 -138
  88. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  89. package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +2 -1
  90. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +7 -6
  91. package/dist/components/inputs/PasswordInput/PasswordInput.stories.d.ts +2 -1
  92. package/dist/components/inputs/PasswordInput/index.d.ts +1 -1
  93. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  94. package/dist/components/inputs/SearchInput/SearchInput.d.ts +2 -2
  95. package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
  96. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  97. package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +2 -1
  98. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
  99. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  100. package/dist/components/inputs/SearchInput/index.d.ts +2 -2
  101. package/dist/components/inputs/SearchInput/index.es.js +1 -1
  102. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  103. package/dist/components/inputs/TextInput/TextInput.d.ts +2 -2
  104. package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
  105. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  106. package/dist/components/inputs/TextInput/TextInput.stories.d.ts +2 -1
  107. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  108. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  109. package/dist/components/inputs/TextInput/index.d.ts +2 -2
  110. package/dist/components/inputs/TextInput/index.es.js +1 -1
  111. package/dist/components/inputs/index.cjs.js +1 -1
  112. package/dist/components/inputs/index.d.ts +3 -3
  113. package/dist/components/inputs/index.es.js +2 -2
  114. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  115. package/dist/components/lists/FileList/FileList.d.ts +3 -2
  116. package/dist/components/lists/FileList/FileList.es.js +9 -11
  117. package/dist/components/lists/FileList/FileList.stories.d.ts +2 -1
  118. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  119. package/dist/components/lists/FileList/FileListItem.d.ts +2 -1
  120. package/dist/components/lists/FileList/FileListItem.es.js +11 -10
  121. package/dist/components/lists/FileList/index.d.ts +4 -4
  122. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  123. package/dist/components/lists/TabList.stories.d.ts +2 -1
  124. package/dist/components/lists/TabList.stories.es.js +48 -49
  125. package/dist/components/lists/index.d.ts +1 -1
  126. package/dist/{createSvgIcon-DfXrmzRs.js → createSvgIcon-B7iWPHJ8.js} +3 -3
  127. package/dist/createSvgIcon-BI_WIb5V.js +74 -0
  128. package/dist/{createSvgIcon-10LjrjuM.cjs → createSvgIcon-DxmHHVAO.cjs} +1 -1
  129. package/dist/createSvgIcon-bF0lGTlg.cjs +2 -0
  130. package/dist/{fr-BNYi5x0Z.cjs → fr-BunYFA4w.cjs} +1 -1
  131. package/dist/{fr-HqFYdKZp.js → fr-CxSZx9ZV.js} +1 -1
  132. package/dist/index.cjs.js +1 -1
  133. package/dist/index.d.ts +2 -1
  134. package/dist/index.es.js +178 -176
  135. package/dist/{refType-B-3PavG_.cjs → refType-B2Uz1rXB.cjs} +1 -1
  136. package/dist/{refType-BklAUjsY.js → refType-BZaHOHyZ.js} +7 -7
  137. package/dist/styled-C9DDL6BK.cjs +26 -0
  138. package/dist/styled-DIjdzFBV.js +1218 -0
  139. package/dist/useSlotProps-B8ywiWUP.js +87 -0
  140. package/dist/useSlotProps-CYib4OeI.cjs +1 -0
  141. package/dist/{useThemeProps-DDcolYEZ.js → useThemeProps-B20BBUTu.js} +1035 -927
  142. package/dist/useThemeProps-zi1FRI5J.cjs +42 -0
  143. package/package.json +16 -16
  144. package/dist/Box-C0uoTW0F.cjs +0 -1
  145. package/dist/ButtonBase-C_YtHw1h.cjs +0 -75
  146. package/dist/DefaultButton-DlTnxizc.cjs +0 -1
  147. package/dist/IconButton-Cz-zGz0v.cjs +0 -2
  148. package/dist/InputBase-DCjJT6Ht.cjs +0 -4
  149. package/dist/SearchInput-sybrE3fq.cjs +0 -1
  150. package/dist/Tabs-DX6Gm63O.cjs +0 -4
  151. package/dist/TextInput-Bla-t0jF.cjs +0 -12
  152. package/dist/TimePicker-EGYtgZTn.cjs +0 -71
  153. package/dist/Typography-B7jZzwxf.cjs +0 -1
  154. package/dist/createSvgIcon-Cy5_B3av.cjs +0 -2
  155. package/dist/createSvgIcon-MpAknZJY.js +0 -84
  156. package/dist/styled-CCfndrS2.js +0 -424
  157. package/dist/styled-jkrYOquU.cjs +0 -24
  158. package/dist/useSlotProps-Br7yUp1t.js +0 -78
  159. package/dist/useSlotProps-I3uiiCEn.cjs +0 -1
  160. package/dist/useThemeProps-BYFHMDRd.cjs +0 -42
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./useThemeProps-zi1FRI5J.cjs"),c=require("./styled-C9DDL6BK.cjs"),P=require("react"),h=require("react/jsx-runtime");function b(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const N=b(P),g=["className","component"];function B(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:p}=o,d=c.styled$1("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return N.forwardRef(function(m,f){const a=e.useTheme(s),l=c.extendSxProp(m),{className:x,component:y="div"}=l,T=e._objectWithoutPropertiesLoose(l,g);return h.jsx(d,e._extends({as:y,ref:f,className:c.clsx(x,p?p(r):r),theme:t&&a[t]||a},T))})}const C=c.generateUtilityClasses("MuiBox",["root"]),u=C,O=e.createTheme(),i=B({themeId:e.THEME_ID,defaultTheme:O,defaultClassName:u.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(i.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.Box=i;exports.boxClasses=u;
@@ -1,38 +1,37 @@
1
- import { s as h, d as T, b as B, _ as N, e as b, T as y, C, P as e } from "./useThemeProps-DDcolYEZ.js";
2
- import { b as _, c as P, g } from "./styled-CCfndrS2.js";
1
+ import { s as u, d as h, b as T, _ as N, e as b, T as y, C as B, P as e } from "./useThemeProps-B20BBUTu.js";
2
+ import { b as C, e as _, c as P, g } from "./styled-DIjdzFBV.js";
3
3
  import * as j from "react";
4
4
  import { jsx as v } from "react/jsx-runtime";
5
- import { e as E } from "./Typography-CkEznQ8f.js";
6
- const O = ["className", "component"];
7
- function I(m = {}) {
5
+ const E = ["className", "component"];
6
+ function O(c = {}) {
8
7
  const {
9
8
  themeId: t,
10
- defaultTheme: l,
9
+ defaultTheme: m,
11
10
  defaultClassName: a = "MuiBox-root",
12
11
  generateClassName: n
13
- } = m, x = _("div", {
12
+ } = c, l = C("div", {
14
13
  shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
15
- })(h);
16
- return /* @__PURE__ */ j.forwardRef(function(d, f) {
17
- const s = T(l), r = E(d), {
18
- className: i,
19
- component: p = "div"
20
- } = r, u = B(r, O);
21
- return /* @__PURE__ */ v(x, N({
22
- as: p,
23
- ref: f,
24
- className: P(i, n ? n(a) : a),
14
+ })(u);
15
+ return /* @__PURE__ */ j.forwardRef(function(d, x) {
16
+ const s = h(m), r = _(d), {
17
+ className: f,
18
+ component: i = "div"
19
+ } = r, p = T(r, E);
20
+ return /* @__PURE__ */ v(l, N({
21
+ as: i,
22
+ ref: x,
23
+ className: P(f, n ? n(a) : a),
25
24
  theme: t && s[t] || s
26
- }, u));
25
+ }, p));
27
26
  });
28
27
  }
29
- const M = g("MuiBox", ["root"]), R = M, S = b(), c = I({
28
+ const I = g("MuiBox", ["root"]), M = I, R = b(), S = O({
30
29
  themeId: y,
31
- defaultTheme: S,
32
- defaultClassName: R.root,
33
- generateClassName: C.generate
30
+ defaultTheme: R,
31
+ defaultClassName: M.root,
32
+ generateClassName: B.generate
34
33
  });
35
- process.env.NODE_ENV !== "production" && (c.propTypes = {
34
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
36
35
  // ┌────────────────────────────── Warning ──────────────────────────────┐
37
36
  // │ These PropTypes are generated from the TypeScript type definitions. │
38
37
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -51,8 +50,7 @@ process.env.NODE_ENV !== "production" && (c.propTypes = {
51
50
  */
52
51
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
53
52
  });
54
- const H = c;
55
53
  export {
56
- H as B,
57
- R as b
54
+ S as B,
55
+ M as b
58
56
  };
@@ -1,15 +1,15 @@
1
- import { _ as Y, b as ie, P as e, u as ye, g as Xe } from "./useThemeProps-DDcolYEZ.js";
1
+ import { _ as Y, b as ie, P as e, u as ye, g as Ke } from "./useThemeProps-B20BBUTu.js";
2
2
  import * as p from "react";
3
- import W, { Children as Ye, isValidElement as G, cloneElement as J } from "react";
4
- import { c as x, g as Te, s as re, a as Ae } from "./styled-CCfndrS2.js";
5
- import { jsx as I, jsxs as qe } from "react/jsx-runtime";
6
- import { a as We, u as H } from "./useTimeout-Dokw0W_A.js";
7
- import { _ as He, T as de } from "./TransitionGroupContext-C7wWJ6l7.js";
3
+ import W, { Children as Xe, isValidElement as G, cloneElement as J } from "react";
4
+ import { c as x, g as Te, s as re, a as Ye } from "./styled-DIjdzFBV.js";
5
+ import { jsx as U, jsxs as Ae } from "react/jsx-runtime";
6
+ import { a as qe, u as H } from "./useTimeout-Dokw0W_A.js";
7
+ import { _ as We, T as de } from "./TransitionGroupContext-BkoHK5Kx.js";
8
8
  import { keyframes as se } from "@emotion/react";
9
9
  import { a as he } from "./useForkRef-CQ5u1_mH.js";
10
- import { u as Ge } from "./useIsFocusVisible-BsjI7Zxf.js";
11
- import { r as Je, e as Qe } from "./refType-BklAUjsY.js";
12
- function Ze(t) {
10
+ import { u as He } from "./useIsFocusVisible-BsjI7Zxf.js";
11
+ import { r as Ge, e as Je } from "./refType-BZaHOHyZ.js";
12
+ function Qe(t) {
13
13
  if (t === void 0)
14
14
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15
15
  return t;
@@ -18,13 +18,13 @@ function ae(t, s) {
18
18
  var a = function(n) {
19
19
  return s && G(n) ? s(n) : n;
20
20
  }, l = /* @__PURE__ */ Object.create(null);
21
- return t && Ye.map(t, function(o) {
21
+ return t && Xe.map(t, function(o) {
22
22
  return o;
23
23
  }).forEach(function(o) {
24
24
  l[o.key] = a(o);
25
25
  }), l;
26
26
  }
27
- function et(t, s) {
27
+ function Ze(t, s) {
28
28
  t = t || {}, s = s || {};
29
29
  function a(h) {
30
30
  return h in s ? s[h] : t[h];
@@ -48,7 +48,7 @@ function et(t, s) {
48
48
  function F(t, s, a) {
49
49
  return a[s] != null ? a[s] : t.props[s];
50
50
  }
51
- function tt(t, s) {
51
+ function et(t, s) {
52
52
  return ae(t.children, function(a) {
53
53
  return J(a, {
54
54
  onExited: s.bind(null, a),
@@ -59,8 +59,8 @@ function tt(t, s) {
59
59
  });
60
60
  });
61
61
  }
62
- function nt(t, s, a) {
63
- var l = ae(t.children), o = et(s, l);
62
+ function tt(t, s, a) {
63
+ var l = ae(t.children), o = Ze(s, l);
64
64
  return Object.keys(o).forEach(function(n) {
65
65
  var i = o[n];
66
66
  if (G(i)) {
@@ -81,21 +81,21 @@ function nt(t, s, a) {
81
81
  }
82
82
  }), o;
83
83
  }
84
- var ot = Object.values || function(t) {
84
+ var nt = Object.values || function(t) {
85
85
  return Object.keys(t).map(function(s) {
86
86
  return t[s];
87
87
  });
88
- }, it = {
88
+ }, ot = {
89
89
  component: "div",
90
90
  childFactory: function(s) {
91
91
  return s;
92
92
  }
93
93
  }, le = /* @__PURE__ */ function(t) {
94
- He(s, t);
94
+ We(s, t);
95
95
  function s(l, o) {
96
96
  var n;
97
97
  n = t.call(this, l, o) || this;
98
- var i = n.handleExited.bind(Ze(n));
98
+ var i = n.handleExited.bind(Qe(n));
99
99
  return n.state = {
100
100
  contextValue: {
101
101
  isMounting: !0
@@ -116,7 +116,7 @@ var ot = Object.values || function(t) {
116
116
  }, s.getDerivedStateFromProps = function(o, n) {
117
117
  var i = n.children, c = n.handleExited, u = n.firstRender;
118
118
  return {
119
- children: u ? tt(o, c) : nt(o, i, c),
119
+ children: u ? et(o, c) : tt(o, i, c),
120
120
  firstRender: !1
121
121
  };
122
122
  }, a.handleExited = function(o, n) {
@@ -128,7 +128,7 @@ var ot = Object.values || function(t) {
128
128
  };
129
129
  }));
130
130
  }, a.render = function() {
131
- var o = this.props, n = o.component, i = o.childFactory, c = ie(o, ["component", "childFactory"]), u = this.state.contextValue, f = ot(this.state.children).map(i);
131
+ var o = this.props, n = o.component, i = o.childFactory, c = ie(o, ["component", "childFactory"]), u = this.state.contextValue, f = nt(this.state.children).map(i);
132
132
  return delete c.appear, delete c.enter, delete c.exit, n === null ? /* @__PURE__ */ W.createElement(de.Provider, {
133
133
  value: u
134
134
  }, f) : /* @__PURE__ */ W.createElement(de.Provider, {
@@ -189,8 +189,7 @@ le.propTypes = process.env.NODE_ENV !== "production" ? {
189
189
  */
190
190
  childFactory: e.func
191
191
  } : {};
192
- le.defaultProps = it;
193
- const rt = le;
192
+ le.defaultProps = ot;
194
193
  function Me(t) {
195
194
  const {
196
195
  className: s,
@@ -215,10 +214,10 @@ function Me(t) {
215
214
  clearTimeout(T);
216
215
  };
217
216
  }
218
- }, [u, c, f]), /* @__PURE__ */ I("span", {
217
+ }, [u, c, f]), /* @__PURE__ */ U("span", {
219
218
  className: g,
220
219
  style: v,
221
- children: /* @__PURE__ */ I("span", {
220
+ children: /* @__PURE__ */ U("span", {
222
221
  className: m
223
222
  })
224
223
  });
@@ -226,7 +225,6 @@ function Me(t) {
226
225
  process.env.NODE_ENV !== "production" && (Me.propTypes = {
227
226
  /**
228
227
  * Override or extend the styles applied to the component.
229
- * See [CSS API](#css) below for more details.
230
228
  */
231
229
  classes: e.object.isRequired,
232
230
  className: e.string,
@@ -259,9 +257,9 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
259
257
  */
260
258
  timeout: e.number.isRequired
261
259
  });
262
- const b = Te("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), st = ["center", "classes", "className"];
260
+ const b = Te("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), it = ["center", "classes", "className"];
263
261
  let Q = (t) => t, me, be, ge, Re;
264
- const oe = 550, at = 80, lt = se(me || (me = Q`
262
+ const oe = 550, rt = 80, st = se(me || (me = Q`
265
263
  0% {
266
264
  transform: scale(0);
267
265
  opacity: 0.1;
@@ -271,7 +269,7 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
271
269
  transform: scale(1);
272
270
  opacity: 0.3;
273
271
  }
274
- `)), ut = se(be || (be = Q`
272
+ `)), at = se(be || (be = Q`
275
273
  0% {
276
274
  opacity: 1;
277
275
  }
@@ -279,7 +277,7 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
279
277
  100% {
280
278
  opacity: 0;
281
279
  }
282
- `)), ct = se(ge || (ge = Q`
280
+ `)), lt = se(ge || (ge = Q`
283
281
  0% {
284
282
  transform: scale(1);
285
283
  }
@@ -291,7 +289,7 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
291
289
  100% {
292
290
  transform: scale(1);
293
291
  }
294
- `)), pt = re("span", {
292
+ `)), ut = re("span", {
295
293
  name: "MuiTouchRipple",
296
294
  slot: "Root"
297
295
  })({
@@ -304,7 +302,7 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
304
302
  bottom: 0,
305
303
  left: 0,
306
304
  borderRadius: "inherit"
307
- }), ft = re(Me, {
305
+ }), ct = re(Me, {
308
306
  name: "MuiTouchRipple",
309
307
  slot: "Ripple"
310
308
  })(Re || (Re = Q`
@@ -350,13 +348,13 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
350
348
  animation-iteration-count: infinite;
351
349
  animation-delay: 200ms;
352
350
  }
353
- `), b.rippleVisible, lt, oe, ({
351
+ `), b.rippleVisible, st, oe, ({
354
352
  theme: t
355
353
  }) => t.transitions.easing.easeInOut, b.ripplePulsate, ({
356
354
  theme: t
357
- }) => t.transitions.duration.shorter, b.child, b.childLeaving, ut, oe, ({
355
+ }) => t.transitions.duration.shorter, b.child, b.childLeaving, at, oe, ({
358
356
  theme: t
359
- }) => t.transitions.easing.easeInOut, b.childPulsate, ct, ({
357
+ }) => t.transitions.easing.easeInOut, b.childPulsate, lt, ({
360
358
  theme: t
361
359
  }) => t.transitions.easing.easeInOut), Ee = /* @__PURE__ */ p.forwardRef(function(s, a) {
362
360
  const l = ye({
@@ -366,19 +364,19 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
366
364
  center: o = !1,
367
365
  classes: n = {},
368
366
  className: i
369
- } = l, c = ie(l, st), [u, f] = p.useState([]), h = p.useRef(0), y = p.useRef(null);
367
+ } = l, c = ie(l, it), [u, f] = p.useState([]), h = p.useRef(0), y = p.useRef(null);
370
368
  p.useEffect(() => {
371
369
  y.current && (y.current(), y.current = null);
372
370
  }, [u]);
373
- const g = p.useRef(!1), v = We(), m = p.useRef(null), T = p.useRef(null), U = p.useCallback((d) => {
371
+ const g = p.useRef(!1), v = qe(), m = p.useRef(null), T = p.useRef(null), $ = p.useCallback((d) => {
374
372
  const {
375
373
  pulsate: M,
376
374
  rippleX: E,
377
375
  rippleY: w,
378
- rippleSize: $,
376
+ rippleSize: I,
379
377
  cb: z
380
378
  } = d;
381
- f((C) => [...C, /* @__PURE__ */ I(ft, {
379
+ f((C) => [...C, /* @__PURE__ */ U(ct, {
382
380
  classes: {
383
381
  ripple: x(n.ripple, b.ripple),
384
382
  rippleVisible: x(n.rippleVisible, b.rippleVisible),
@@ -391,13 +389,13 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
391
389
  pulsate: M,
392
390
  rippleX: E,
393
391
  rippleY: w,
394
- rippleSize: $
392
+ rippleSize: I
395
393
  }, h.current)]), h.current += 1, y.current = z;
396
394
  }, [n]), _ = p.useCallback((d = {}, M = {}, E = () => {
397
395
  }) => {
398
396
  const {
399
397
  pulsate: w = !1,
400
- center: $ = o || M.pulsate,
398
+ center: I = o || M.pulsate,
401
399
  fakeElement: z = !1
402
400
  // For test purposes
403
401
  } = M;
@@ -406,46 +404,46 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
406
404
  return;
407
405
  }
408
406
  (d == null ? void 0 : d.type) === "touchstart" && (g.current = !0);
409
- const C = z ? null : T.current, B = C ? C.getBoundingClientRect() : {
407
+ const C = z ? null : T.current, D = C ? C.getBoundingClientRect() : {
410
408
  width: 0,
411
409
  height: 0,
412
410
  left: 0,
413
411
  top: 0
414
412
  };
415
- let V, D, S;
416
- if ($ || d === void 0 || d.clientX === 0 && d.clientY === 0 || !d.clientX && !d.touches)
417
- V = Math.round(B.width / 2), D = Math.round(B.height / 2);
413
+ let V, B, S;
414
+ if (I || d === void 0 || d.clientX === 0 && d.clientY === 0 || !d.clientX && !d.touches)
415
+ V = Math.round(D.width / 2), B = Math.round(D.height / 2);
418
416
  else {
419
417
  const {
420
418
  clientX: L,
421
419
  clientY: N
422
420
  } = d.touches && d.touches.length > 0 ? d.touches[0] : d;
423
- V = Math.round(L - B.left), D = Math.round(N - B.top);
421
+ V = Math.round(L - D.left), B = Math.round(N - D.top);
424
422
  }
425
- if ($)
426
- S = Math.sqrt((2 * B.width ** 2 + B.height ** 2) / 3), S % 2 === 0 && (S += 1);
423
+ if (I)
424
+ S = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), S % 2 === 0 && (S += 1);
427
425
  else {
428
- const L = Math.max(Math.abs((C ? C.clientWidth : 0) - V), V) * 2 + 2, N = Math.max(Math.abs((C ? C.clientHeight : 0) - D), D) * 2 + 2;
426
+ const L = Math.max(Math.abs((C ? C.clientWidth : 0) - V), V) * 2 + 2, N = Math.max(Math.abs((C ? C.clientHeight : 0) - B), B) * 2 + 2;
429
427
  S = Math.sqrt(L ** 2 + N ** 2);
430
428
  }
431
429
  d != null && d.touches ? m.current === null && (m.current = () => {
432
- U({
430
+ $({
433
431
  pulsate: w,
434
432
  rippleX: V,
435
- rippleY: D,
433
+ rippleY: B,
436
434
  rippleSize: S,
437
435
  cb: E
438
436
  });
439
- }, v.start(at, () => {
437
+ }, v.start(rt, () => {
440
438
  m.current && (m.current(), m.current = null);
441
- })) : U({
439
+ })) : $({
442
440
  pulsate: w,
443
441
  rippleX: V,
444
- rippleY: D,
442
+ rippleY: B,
445
443
  rippleSize: S,
446
444
  cb: E
447
445
  });
448
- }, [o, U, v]), j = p.useCallback(() => {
446
+ }, [o, $, v]), j = p.useCallback(() => {
449
447
  _({}, {
450
448
  pulsate: !0
451
449
  });
@@ -462,11 +460,11 @@ const oe = 550, at = 80, lt = se(me || (me = Q`
462
460
  pulsate: j,
463
461
  start: _,
464
462
  stop: O
465
- }), [j, _, O]), /* @__PURE__ */ I(pt, Y({
463
+ }), [j, _, O]), /* @__PURE__ */ U(ut, Y({
466
464
  className: x(b.root, n.root, i),
467
465
  ref: T
468
466
  }, c, {
469
- children: /* @__PURE__ */ I(rt, {
467
+ children: /* @__PURE__ */ U(le, {
470
468
  component: null,
471
469
  exit: !0,
472
470
  children: u
@@ -481,7 +479,6 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
481
479
  center: e.bool,
482
480
  /**
483
481
  * Override or extend the styles applied to the component.
484
- * See [CSS API](#css) below for more details.
485
482
  */
486
483
  classes: e.object,
487
484
  /**
@@ -489,21 +486,20 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
489
486
  */
490
487
  className: e.string
491
488
  });
492
- const dt = Ee;
493
- function ht(t) {
494
- return Xe("MuiButtonBase", t);
489
+ function pt(t) {
490
+ return Ke("MuiButtonBase", t);
495
491
  }
496
- const mt = Te("MuiButtonBase", ["root", "disabled", "focusVisible"]), bt = ["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"], gt = (t) => {
492
+ const ft = Te("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"], ht = (t) => {
497
493
  const {
498
494
  disabled: s,
499
495
  focusVisible: a,
500
496
  focusVisibleClassName: l,
501
497
  classes: o
502
- } = t, i = Ae({
498
+ } = t, i = Ye({
503
499
  root: ["root", s && "disabled", a && "focusVisible"]
504
- }, ht, o);
500
+ }, pt, o);
505
501
  return a && l && (i.root += ` ${l}`), i;
506
- }, Rt = re("button", {
502
+ }, mt = re("button", {
507
503
  name: "MuiButtonBase",
508
504
  slot: "Root",
509
505
  overridesResolver: (t, s) => s.root
@@ -538,7 +534,7 @@ const mt = Te("MuiButtonBase", ["root", "disabled", "focusVisible"]), bt = ["act
538
534
  borderStyle: "none"
539
535
  // Remove Firefox dotted outline.
540
536
  },
541
- [`&.${mt.disabled}`]: {
537
+ [`&.${ft.disabled}`]: {
542
538
  pointerEvents: "none",
543
539
  // Disable link interactions
544
540
  cursor: "default"
@@ -546,7 +542,7 @@ const mt = Te("MuiButtonBase", ["root", "disabled", "focusVisible"]), bt = ["act
546
542
  "@media print": {
547
543
  colorAdjust: "exact"
548
544
  }
549
- }), Ce = /* @__PURE__ */ p.forwardRef(function(s, a) {
545
+ }), bt = /* @__PURE__ */ p.forwardRef(function(s, a) {
550
546
  const l = ye({
551
547
  props: s,
552
548
  name: "MuiButtonBase"
@@ -563,7 +559,7 @@ const mt = Te("MuiButtonBase", ["root", "disabled", "focusVisible"]), bt = ["act
563
559
  LinkComponent: v = "a",
564
560
  onBlur: m,
565
561
  onClick: T,
566
- onContextMenu: U,
562
+ onContextMenu: $,
567
563
  onDragLeave: _,
568
564
  onFocus: j,
569
565
  onFocusVisible: O,
@@ -571,42 +567,42 @@ const mt = Te("MuiButtonBase", ["root", "disabled", "focusVisible"]), bt = ["act
571
567
  onKeyUp: M,
572
568
  onMouseDown: E,
573
569
  onMouseLeave: w,
574
- onMouseUp: $,
570
+ onMouseUp: I,
575
571
  onTouchEnd: z,
576
572
  onTouchMove: C,
577
- onTouchStart: B,
573
+ onTouchStart: D,
578
574
  tabIndex: V = 0,
579
- TouchRippleProps: D,
575
+ TouchRippleProps: B,
580
576
  touchRippleRef: S,
581
577
  type: L
582
- } = l, N = ie(l, bt), K = p.useRef(null), R = p.useRef(null), xe = he(R, S), {
578
+ } = l, N = ie(l, dt), K = p.useRef(null), R = p.useRef(null), Ce = he(R, S), {
583
579
  isFocusVisibleRef: ue,
584
- onFocus: ve,
585
- onBlur: Ve,
586
- ref: Ne
587
- } = Ge(), [k, A] = p.useState(!1);
580
+ onFocus: xe,
581
+ onBlur: ve,
582
+ ref: Ve
583
+ } = He(), [k, A] = p.useState(!1);
588
584
  f && k && A(!1), p.useImperativeHandle(o, () => ({
589
585
  focusVisible: () => {
590
586
  A(!0), K.current.focus();
591
587
  }
592
588
  }), []);
593
- const [Z, Pe] = p.useState(!1);
589
+ const [Z, Ne] = p.useState(!1);
594
590
  p.useEffect(() => {
595
- Pe(!0);
591
+ Ne(!0);
596
592
  }, []);
597
593
  const ee = Z && !h && !f;
598
594
  p.useEffect(() => {
599
595
  k && g && !h && Z && R.current.pulsate();
600
596
  }, [h, g, k, Z]);
601
- function P(r, pe, Ke = y) {
602
- return H((fe) => (pe && pe(fe), !Ke && R.current && R.current[r](fe), !0));
597
+ function P(r, pe, ze = y) {
598
+ return H((fe) => (pe && pe(fe), !ze && R.current && R.current[r](fe), !0));
603
599
  }
604
- const Be = P("start", E), De = P("stop", U), Se = P("stop", _), we = P("stop", $), Le = P("stop", (r) => {
600
+ const Pe = P("start", E), De = P("stop", $), Be = P("stop", _), Se = P("stop", I), we = P("stop", (r) => {
605
601
  k && r.preventDefault(), w && w(r);
606
- }), ke = P("start", B), Fe = P("stop", z), _e = P("stop", C), Oe = P("stop", (r) => {
607
- Ve(r), ue.current === !1 && A(!1), m && m(r);
608
- }, !1), $e = H((r) => {
609
- K.current || (K.current = r.currentTarget), ve(r), ue.current === !0 && (A(!0), O && O(r)), j && j(r);
602
+ }), Le = P("start", D), ke = P("stop", z), Fe = P("stop", C), _e = P("stop", (r) => {
603
+ ve(r), ue.current === !1 && A(!1), m && m(r);
604
+ }, !1), Oe = H((r) => {
605
+ K.current || (K.current = r.currentTarget), xe(r), ue.current === !0 && (A(!0), O && O(r)), j && j(r);
610
606
  }), te = () => {
611
607
  const r = K.current;
612
608
  return u && u !== "button" && !(r.tagName === "A" && r.href);
@@ -623,7 +619,7 @@ const mt = Te("MuiButtonBase", ["root", "disabled", "focusVisible"]), bt = ["act
623
619
  q === "button" && (N.href || N.to) && (q = v);
624
620
  const X = {};
625
621
  q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!N.href && !N.to && (X.role = "button"), f && (X["aria-disabled"] = f));
626
- const je = he(a, Ne, K);
622
+ const $e = he(a, Ve, K);
627
623
  process.env.NODE_ENV !== "production" && p.useEffect(() => {
628
624
  ee && !R.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(`
629
625
  `));
@@ -637,38 +633,38 @@ const mt = Te("MuiButtonBase", ["root", "disabled", "focusVisible"]), bt = ["act
637
633
  focusRipple: g,
638
634
  tabIndex: V,
639
635
  focusVisible: k
640
- }), ze = gt(ce);
641
- return /* @__PURE__ */ qe(Rt, Y({
636
+ }), je = ht(ce);
637
+ return /* @__PURE__ */ Ae(mt, Y({
642
638
  as: q,
643
- className: x(ze.root, c),
639
+ className: x(je.root, c),
644
640
  ownerState: ce,
645
- onBlur: Oe,
641
+ onBlur: _e,
646
642
  onClick: T,
647
643
  onContextMenu: De,
648
- onFocus: $e,
644
+ onFocus: Oe,
649
645
  onKeyDown: Ie,
650
646
  onKeyUp: Ue,
651
- onMouseDown: Be,
652
- onMouseLeave: Le,
653
- onMouseUp: we,
654
- onDragLeave: Se,
655
- onTouchEnd: Fe,
656
- onTouchMove: _e,
657
- onTouchStart: ke,
658
- ref: je,
647
+ onMouseDown: Pe,
648
+ onMouseLeave: we,
649
+ onMouseUp: Se,
650
+ onDragLeave: Be,
651
+ onTouchEnd: ke,
652
+ onTouchMove: Fe,
653
+ onTouchStart: Le,
654
+ ref: $e,
659
655
  tabIndex: f ? -1 : V,
660
656
  type: L
661
657
  }, X, N, {
662
658
  children: [i, ee ? (
663
659
  /* TouchRipple is only needed client-side, x2 boost on the server. */
664
- /* @__PURE__ */ I(dt, Y({
665
- ref: xe,
660
+ /* @__PURE__ */ U(Ee, Y({
661
+ ref: Ce,
666
662
  center: n
667
- }, D))
663
+ }, B))
668
664
  ) : null]
669
665
  }));
670
666
  });
671
- process.env.NODE_ENV !== "production" && (Ce.propTypes = {
667
+ process.env.NODE_ENV !== "production" && (bt.propTypes = {
672
668
  // ┌────────────────────────────── Warning ──────────────────────────────┐
673
669
  // │ These PropTypes are generated from the TypeScript type definitions. │
674
670
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -677,7 +673,7 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
677
673
  * A ref for imperative actions.
678
674
  * It currently only supports `focusVisible()` action.
679
675
  */
680
- action: Je,
676
+ action: Ge,
681
677
  /**
682
678
  * If `true`, the ripples are centered.
683
679
  * They won't start at the cursor interaction position.
@@ -700,7 +696,7 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
700
696
  * The component used for the root node.
701
697
  * Either a string to use a HTML element or a component.
702
698
  */
703
- component: Qe,
699
+ component: Je,
704
700
  /**
705
701
  * If `true`, the component is disabled.
706
702
  * @default false
@@ -826,8 +822,7 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
826
822
  */
827
823
  type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
828
824
  });
829
- const Dt = Ce;
830
825
  export {
831
- Dt as B,
832
- rt as T
826
+ bt as B,
827
+ le as T
833
828
  };