@cgi-learning-hub/ui 1.2.0-dev.1725543340 → 1.2.0-dev.1725543764

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 (163) hide show
  1. package/dist/Box-BDMtAH2P.cjs +1 -0
  2. package/dist/{Box-BJvmuM0Y.js → Box-CONPkck2.js} +32 -30
  3. package/dist/Button-By3A0teb.js +454 -0
  4. package/dist/Button-CBAa7bmK.cjs +1 -0
  5. package/dist/ButtonBase-D0vqeM8I.js +890 -0
  6. package/dist/ButtonBase-DePtV_m6.cjs +75 -0
  7. package/dist/CircularProgress-BRnSv2J2.cjs +28 -0
  8. package/dist/CircularProgress-BrfcRJbv.js +251 -0
  9. package/dist/DatePicker-Cw1xQ3Sn.cjs +19 -0
  10. package/dist/{DatePicker-vhA6Fe5s.js → DatePicker-wZ1VHlXF.js} +4665 -4520
  11. package/dist/DefaultButton-B2fD87Nn.cjs +1 -0
  12. package/dist/DefaultButton-B8Qi2O0K.js +353 -0
  13. package/dist/DefaultPropsProvider-B6IbLm7M.cjs +17 -0
  14. package/dist/DefaultPropsProvider-QV6PDjPd.js +468 -0
  15. package/dist/IconButton-BiLAYORS.js +239 -0
  16. package/dist/IconButton-DE-QtB3Q.cjs +2 -0
  17. package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-7ED2C-w1.js} +81 -65
  18. package/dist/InputAdornment-CJbpwt2R.cjs +1 -0
  19. package/dist/InputBase-LZPaeC-A.cjs +3 -0
  20. package/dist/InputBase-jbXydPMc.js +802 -0
  21. package/dist/{Stack-Dlgk5t_M.js → Stack-BzF_6-v5.js} +62 -60
  22. package/dist/Stack-D6Kv6y1D.cjs +1 -0
  23. package/dist/Tabs-CV_eM5RY.js +1222 -0
  24. package/dist/Tabs-DcqpjpXb.cjs +4 -0
  25. package/dist/TextField-DAxS82qf.cjs +12 -0
  26. package/dist/{TextField-DG1754qQ.js → TextField-G9MOGCdw.js} +3033 -2408
  27. package/dist/{Tooltip-C7ZUZylZ.js → Tooltip-D_4ANHAc.js} +4682 -3406
  28. package/dist/Tooltip-Ma-NowZd.cjs +100 -0
  29. package/dist/TransitionGroupContext-B5aSBz0G.js +64 -0
  30. package/dist/TransitionGroupContext-gQFtuZSh.cjs +1 -0
  31. package/dist/Typography-4kqbsc6q.js +258 -0
  32. package/dist/Typography-CNQVeQXr.cjs +1 -0
  33. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  34. package/dist/components/DatePicker/DatePicker.es.js +3 -3
  35. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  36. package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
  37. package/dist/components/DatePicker/index.cjs.js +1 -1
  38. package/dist/components/DatePicker/index.es.js +1 -1
  39. package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
  40. package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
  41. package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  42. package/dist/components/DefaultButton/DefaultButtonIcon.es.js +108 -67
  43. package/dist/components/DefaultButton/index.cjs.js +1 -1
  44. package/dist/components/DefaultButton/index.es.js +1 -1
  45. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  46. package/dist/components/Dropzone/Dropzone.es.js +8 -8
  47. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  48. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  49. package/dist/components/FileList/FileList.cjs.js +1 -1
  50. package/dist/components/FileList/FileList.es.js +1 -1
  51. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  52. package/dist/components/FileList/FileListItem.es.js +10 -11
  53. package/dist/components/IconButton.stories.cjs.js +1 -1
  54. package/dist/components/IconButton.stories.es.js +13 -14
  55. package/dist/components/Loader/Loader.cjs.js +1 -1
  56. package/dist/components/Loader/Loader.es.js +1 -1
  57. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  58. package/dist/components/PaperHeader/PaperHeader.d.ts +3 -1
  59. package/dist/components/PaperHeader/PaperHeader.es.js +26 -28
  60. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  61. package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
  62. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  63. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  64. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  65. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  66. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  67. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  68. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  69. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  70. package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
  71. package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
  72. package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  73. package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  74. package/dist/components/TabList.stories.cjs.js +1 -1
  75. package/dist/components/TabList.stories.es.js +100 -87
  76. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  77. package/dist/components/TextInput/TextInput.es.js +1 -1
  78. package/dist/components/index.cjs.js +1 -1
  79. package/dist/components/index.d.ts +2 -0
  80. package/dist/components/index.es.js +244 -236
  81. package/dist/composeClasses-B_ETVugV.cjs +1 -0
  82. package/dist/composeClasses-zmPRtZOg.js +16 -0
  83. package/dist/createSvgIcon-B6bEgasO.js +249 -0
  84. package/dist/createSvgIcon-C92jLZ0q.cjs +2 -0
  85. package/dist/createSvgIcon-Cdsg9tFu.js +88 -0
  86. package/dist/createSvgIcon-CrOALbij.cjs +1 -0
  87. package/dist/extendSxProp-BpSXIdup.js +37 -0
  88. package/dist/extendSxProp-DVE8Tgj8.cjs +1 -0
  89. package/dist/{fr-CXEmlY0d.js → fr-D92L3a1M.js} +13 -13
  90. package/dist/{fr-C4bcUC-9.cjs → fr-EMw1nUC-.cjs} +1 -1
  91. package/dist/identifier-7NboR24y.cjs +59 -0
  92. package/dist/identifier-Bsv46xiT.js +2930 -0
  93. package/dist/index-C9spydU3.js +89 -0
  94. package/dist/index-DHDspyh-.cjs +1 -0
  95. package/dist/index.cjs.js +1 -1
  96. package/dist/index.es.js +244 -236
  97. package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
  98. package/dist/{refType-DiVIFcsY.js → refType-BnS1d2D8.js} +1 -1
  99. package/dist/{refType-D1DDOFsy.cjs → refType-YgbJS0xl.cjs} +1 -1
  100. package/dist/useControlled-Bf7_InaL.cjs +3 -0
  101. package/dist/useControlled-D59BLg1S.js +48 -0
  102. package/dist/useEventCallback-BgMlqKLP.js +14 -0
  103. package/dist/useEventCallback-CrCf96iG.cjs +1 -0
  104. package/dist/useId-CyGZMA-F.js +19 -0
  105. package/dist/useId-D5Txt-1B.cjs +1 -0
  106. package/dist/useTheme-A9inJAFh.cjs +1 -0
  107. package/dist/useTheme-C0nMwKpp.js +128 -0
  108. package/dist/{useTheme-1gSw-INq.js → useTheme-DzMeSzHc.js} +5 -5
  109. package/dist/useTheme-Zq6D7sUp.cjs +1 -0
  110. package/dist/useThemeProps-YFPF1eJp.js +40 -0
  111. package/dist/useThemeProps-r2yCksSx.cjs +1 -0
  112. package/package.json +15 -15
  113. package/dist/Box-2ZrLOc7U.cjs +0 -1
  114. package/dist/Button-HyZp1VKI.js +0 -359
  115. package/dist/Button-NhaA68Of.cjs +0 -1
  116. package/dist/ButtonBase-CnINN-P4.cjs +0 -75
  117. package/dist/ButtonBase-cOL6Mpcp.js +0 -827
  118. package/dist/CircularProgress-01RZzfpF.cjs +0 -28
  119. package/dist/CircularProgress-DO4r9-x8.js +0 -217
  120. package/dist/DatePicker-GTtXZK-p.cjs +0 -19
  121. package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
  122. package/dist/DefaultButton-CKY6tuni.js +0 -258
  123. package/dist/IconButton-3v-0zgZW.cjs +0 -2
  124. package/dist/IconButton-BBfmzBP6.js +0 -184
  125. package/dist/InputAdornment-DHmtETz3.cjs +0 -1
  126. package/dist/InputBase-BpGQgBej.cjs +0 -3
  127. package/dist/InputBase-COUxfhh1.js +0 -794
  128. package/dist/Stack-D9IYPfJ8.cjs +0 -1
  129. package/dist/Tabs-Blo-8Ro5.js +0 -1091
  130. package/dist/Tabs-D0e7cB4l.cjs +0 -4
  131. package/dist/TextField-8AuRLRIK.cjs +0 -12
  132. package/dist/Tooltip-CFVJXplM.cjs +0 -95
  133. package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
  134. package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
  135. package/dist/Typography-DjrvRhOr.js +0 -178
  136. package/dist/Typography-YHooSvuR.cjs +0 -1
  137. package/dist/createStyled--XbpooZB.js +0 -142
  138. package/dist/createStyled-CuYz_ckk.cjs +0 -1
  139. package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
  140. package/dist/createSvgIcon-D29Io9jD.js +0 -183
  141. package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
  142. package/dist/createSvgIcon-DvOXtgXV.js +0 -76
  143. package/dist/identifier-CAQ9PWqs.js +0 -3046
  144. package/dist/identifier-CWIj084w.cjs +0 -50
  145. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  146. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  147. package/dist/styled-Bt4oYVnF.cjs +0 -17
  148. package/dist/styled-Co-8YWfm.js +0 -533
  149. package/dist/useControlled-DKpcyPsg.cjs +0 -3
  150. package/dist/useControlled-DoRrpN8o.js +0 -48
  151. package/dist/useId-BW-oWmul.js +0 -19
  152. package/dist/useId-Cw0TtD-8.cjs +0 -1
  153. package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
  154. package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
  155. package/dist/useTheme-Dm6RnXrf.cjs +0 -1
  156. package/dist/useTheme-HJhneR9g.js +0 -99
  157. package/dist/useTheme-T2P7WhLG.cjs +0 -1
  158. package/dist/useThemeProps-BKIVQv3E.js +0 -17
  159. package/dist/useThemeProps-BfZ3lLQs.js +0 -27
  160. package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
  161. package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
  162. package/dist/useTimeout-BdvDipeg.js +0 -47
  163. package/dist/useTimeout-XUWYBnl6.cjs +0 -1
@@ -0,0 +1,468 @@
1
+ import { M as he, $ as _e, N as Pe, K as Te, O as Re, H as be, P as k, u as Ce, T as we } from "./identifier-Bsv46xiT.js";
2
+ import * as te from "react";
3
+ import { jsx as $e } from "react/jsx-runtime";
4
+ var W = { exports: {} }, c = {};
5
+ /**
6
+ * @license React
7
+ * react-is.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+ var Z;
15
+ function Ae() {
16
+ if (Z) return c;
17
+ Z = 1;
18
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), f = Symbol.for("react.context"), m = Symbol.for("react.server_context"), p = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), A;
19
+ A = Symbol.for("react.module.reference");
20
+ function y(r) {
21
+ if (typeof r == "object" && r !== null) {
22
+ var R = r.$$typeof;
23
+ switch (R) {
24
+ case e:
25
+ switch (r = r.type, r) {
26
+ case t:
27
+ case s:
28
+ case i:
29
+ case a:
30
+ case l:
31
+ return r;
32
+ default:
33
+ switch (r = r && r.$$typeof, r) {
34
+ case m:
35
+ case f:
36
+ case p:
37
+ case _:
38
+ case h:
39
+ case d:
40
+ return r;
41
+ default:
42
+ return R;
43
+ }
44
+ }
45
+ case n:
46
+ return R;
47
+ }
48
+ }
49
+ }
50
+ return c.ContextConsumer = f, c.ContextProvider = d, c.Element = e, c.ForwardRef = p, c.Fragment = t, c.Lazy = _, c.Memo = h, c.Portal = n, c.Profiler = s, c.StrictMode = i, c.Suspense = a, c.SuspenseList = l, c.isAsyncMode = function() {
51
+ return !1;
52
+ }, c.isConcurrentMode = function() {
53
+ return !1;
54
+ }, c.isContextConsumer = function(r) {
55
+ return y(r) === f;
56
+ }, c.isContextProvider = function(r) {
57
+ return y(r) === d;
58
+ }, c.isElement = function(r) {
59
+ return typeof r == "object" && r !== null && r.$$typeof === e;
60
+ }, c.isForwardRef = function(r) {
61
+ return y(r) === p;
62
+ }, c.isFragment = function(r) {
63
+ return y(r) === t;
64
+ }, c.isLazy = function(r) {
65
+ return y(r) === _;
66
+ }, c.isMemo = function(r) {
67
+ return y(r) === h;
68
+ }, c.isPortal = function(r) {
69
+ return y(r) === n;
70
+ }, c.isProfiler = function(r) {
71
+ return y(r) === s;
72
+ }, c.isStrictMode = function(r) {
73
+ return y(r) === i;
74
+ }, c.isSuspense = function(r) {
75
+ return y(r) === a;
76
+ }, c.isSuspenseList = function(r) {
77
+ return y(r) === l;
78
+ }, c.isValidElementType = function(r) {
79
+ return typeof r == "string" || typeof r == "function" || r === t || r === s || r === i || r === a || r === l || r === $ || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === h || r.$$typeof === d || r.$$typeof === f || r.$$typeof === p || r.$$typeof === A || r.getModuleId !== void 0);
80
+ }, c.typeOf = y, c;
81
+ }
82
+ var u = {};
83
+ /**
84
+ * @license React
85
+ * react-is.development.js
86
+ *
87
+ * Copyright (c) Facebook, Inc. and its affiliates.
88
+ *
89
+ * This source code is licensed under the MIT license found in the
90
+ * LICENSE file in the root directory of this source tree.
91
+ */
92
+ var B;
93
+ function Oe() {
94
+ return B || (B = 1, process.env.NODE_ENV !== "production" && function() {
95
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), f = Symbol.for("react.context"), m = Symbol.for("react.server_context"), p = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), A = !1, y = !1, r = !1, R = !1, O = !1, x;
96
+ x = Symbol.for("react.module.reference");
97
+ function g(o) {
98
+ return !!(typeof o == "string" || typeof o == "function" || o === t || o === s || O || o === i || o === a || o === l || R || o === $ || A || y || r || typeof o == "object" && o !== null && (o.$$typeof === _ || o.$$typeof === h || o.$$typeof === d || o.$$typeof === f || o.$$typeof === p || // This needs to include all possible module reference object
99
+ // types supported by any Flight configuration anywhere since
100
+ // we don't know which Flight build this will end up being used
101
+ // with.
102
+ o.$$typeof === x || o.getModuleId !== void 0));
103
+ }
104
+ function S(o) {
105
+ if (typeof o == "object" && o !== null) {
106
+ var z = o.$$typeof;
107
+ switch (z) {
108
+ case e:
109
+ var L = o.type;
110
+ switch (L) {
111
+ case t:
112
+ case s:
113
+ case i:
114
+ case a:
115
+ case l:
116
+ return L;
117
+ default:
118
+ var G = L && L.$$typeof;
119
+ switch (G) {
120
+ case m:
121
+ case f:
122
+ case p:
123
+ case _:
124
+ case h:
125
+ case d:
126
+ return G;
127
+ default:
128
+ return z;
129
+ }
130
+ }
131
+ case n:
132
+ return z;
133
+ }
134
+ }
135
+ }
136
+ var E = f, P = d, M = e, b = p, D = t, F = _, v = h, T = n, C = s, w = i, N = a, I = l, U = !1, X = !1;
137
+ function se(o) {
138
+ return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
139
+ }
140
+ function ie(o) {
141
+ return X || (X = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
142
+ }
143
+ function ae(o) {
144
+ return S(o) === f;
145
+ }
146
+ function ce(o) {
147
+ return S(o) === d;
148
+ }
149
+ function ue(o) {
150
+ return typeof o == "object" && o !== null && o.$$typeof === e;
151
+ }
152
+ function fe(o) {
153
+ return S(o) === p;
154
+ }
155
+ function le(o) {
156
+ return S(o) === t;
157
+ }
158
+ function de(o) {
159
+ return S(o) === _;
160
+ }
161
+ function me(o) {
162
+ return S(o) === h;
163
+ }
164
+ function pe(o) {
165
+ return S(o) === n;
166
+ }
167
+ function ye(o) {
168
+ return S(o) === s;
169
+ }
170
+ function ve(o) {
171
+ return S(o) === i;
172
+ }
173
+ function Se(o) {
174
+ return S(o) === a;
175
+ }
176
+ function Ee(o) {
177
+ return S(o) === l;
178
+ }
179
+ u.ContextConsumer = E, u.ContextProvider = P, u.Element = M, u.ForwardRef = b, u.Fragment = D, u.Lazy = F, u.Memo = v, u.Portal = T, u.Profiler = C, u.StrictMode = w, u.Suspense = N, u.SuspenseList = I, u.isAsyncMode = se, u.isConcurrentMode = ie, u.isContextConsumer = ae, u.isContextProvider = ce, u.isElement = ue, u.isForwardRef = fe, u.isFragment = le, u.isLazy = de, u.isMemo = me, u.isPortal = pe, u.isProfiler = ye, u.isStrictMode = ve, u.isSuspense = Se, u.isSuspenseList = Ee, u.isValidElementType = g, u.typeOf = S;
180
+ }()), u;
181
+ }
182
+ process.env.NODE_ENV === "production" ? W.exports = Ae() : W.exports = Oe();
183
+ var J = W.exports;
184
+ function ne(e, n = "") {
185
+ return e.displayName || e.name || n;
186
+ }
187
+ function Q(e, n, t) {
188
+ const i = ne(n);
189
+ return e.displayName || (i !== "" ? `${t}(${i})` : t);
190
+ }
191
+ function xe(e) {
192
+ if (e != null) {
193
+ if (typeof e == "string")
194
+ return e;
195
+ if (typeof e == "function")
196
+ return ne(e, "Component");
197
+ if (typeof e == "object")
198
+ switch (e.$$typeof) {
199
+ case J.ForwardRef:
200
+ return Q(e, e.render, "ForwardRef");
201
+ case J.Memo:
202
+ return Q(e, e.type, "memo");
203
+ default:
204
+ return;
205
+ }
206
+ }
207
+ }
208
+ function H(e, n) {
209
+ const t = {
210
+ ...n
211
+ };
212
+ for (const i in e)
213
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
214
+ const s = i;
215
+ if (s === "components" || s === "slots")
216
+ t[s] = {
217
+ ...e[s],
218
+ ...t[s]
219
+ };
220
+ else if (s === "componentsProps" || s === "slotProps") {
221
+ const d = e[s], f = n[s];
222
+ if (!f)
223
+ t[s] = d || {};
224
+ else if (!d)
225
+ t[s] = f;
226
+ else {
227
+ t[s] = {
228
+ ...f
229
+ };
230
+ for (const m in d)
231
+ if (Object.prototype.hasOwnProperty.call(d, m)) {
232
+ const p = m;
233
+ t[s][p] = H(d[p], f[p]);
234
+ }
235
+ }
236
+ } else t[s] === void 0 && (t[s] = e[s]);
237
+ }
238
+ return t;
239
+ }
240
+ function We(e, n, t = void 0) {
241
+ const i = {};
242
+ for (const s in e) {
243
+ const d = e[s];
244
+ let f = "", m = !0;
245
+ for (let p = 0; p < d.length; p += 1) {
246
+ const a = d[p];
247
+ a && (f += (m === !0 ? "" : " ") + n(a), m = !1, t && t[a] && (f += " " + t[a]));
248
+ }
249
+ i[s] = f;
250
+ }
251
+ return i;
252
+ }
253
+ const Ne = he();
254
+ function q(e) {
255
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
256
+ }
257
+ function K(e, n, t) {
258
+ return ge(n) ? t : n[e] || n;
259
+ }
260
+ const V = Symbol("mui.processed_props");
261
+ function Y(e, n, t) {
262
+ if (V in e)
263
+ return e[V];
264
+ const i = {
265
+ ...e,
266
+ theme: K(n, e.theme, t)
267
+ };
268
+ return e[V] = i, i[V] = i, i;
269
+ }
270
+ function Me(e) {
271
+ return e ? (n, t) => t[e] : null;
272
+ }
273
+ function j(e, n) {
274
+ var i;
275
+ const t = typeof e == "function" ? e(n) : e;
276
+ if (Array.isArray(t))
277
+ return t.flatMap((s) => j(s, n));
278
+ if (Array.isArray(t == null ? void 0 : t.variants)) {
279
+ const {
280
+ variants: s,
281
+ ...d
282
+ } = t;
283
+ let f = d, m;
284
+ e: for (let p = 0; p < s.length; p += 1) {
285
+ const a = s[p];
286
+ if (typeof a.props == "function") {
287
+ if (m ?? (m = {
288
+ ...n,
289
+ ...n.ownerState,
290
+ ownerState: n.ownerState
291
+ }), !a.props(m))
292
+ continue;
293
+ } else
294
+ for (const l in a.props)
295
+ if (n[l] !== a.props[l] && ((i = n.ownerState) == null ? void 0 : i[l]) !== a.props[l])
296
+ continue e;
297
+ Array.isArray(f) || (f = [f]), typeof a.style == "function" ? (m ?? (m = {
298
+ ...n,
299
+ ...n.ownerState,
300
+ ownerState: n.ownerState
301
+ }), f.push(a.style(m))) : f.push(a.style);
302
+ }
303
+ return f;
304
+ }
305
+ return t;
306
+ }
307
+ function Fe(e = {}) {
308
+ const {
309
+ themeId: n,
310
+ defaultTheme: t = Ne,
311
+ rootShouldForwardProp: i = q,
312
+ slotShouldForwardProp: s = q
313
+ } = e, d = (m) => Re(Y(m, n, t));
314
+ return d.__mui_systemSx = !0, (m, p = {}) => {
315
+ _e(m, (E) => E.filter((P) => !(P != null && P.__mui_systemSx)));
316
+ const {
317
+ name: a,
318
+ slot: l,
319
+ skipVariantsResolver: h,
320
+ skipSx: _,
321
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
322
+ // For more details: https://github.com/mui/material-ui/pull/37908
323
+ overridesResolver: $ = Me(ee(l)),
324
+ ...A
325
+ } = p, y = h !== void 0 ? h : (
326
+ // TODO v6: remove `Root` in the next major release
327
+ // For more details: https://github.com/mui/material-ui/pull/37908
328
+ l && l !== "Root" && l !== "root" || !1
329
+ ), r = _ || !1;
330
+ let R;
331
+ process.env.NODE_ENV !== "production" && a && (R = `${a}-${ee(l || "Root")}`);
332
+ let O = q;
333
+ l === "Root" || l === "root" ? O = i : l ? O = s : De(m) && (O = void 0);
334
+ const x = Pe(m, {
335
+ shouldForwardProp: O,
336
+ label: R,
337
+ ...A
338
+ }), g = (E) => typeof E == "function" && E.__emotion_real !== E || be(E) ? (P) => j(E, Y(P, n, t)) : E, S = (E, ...P) => {
339
+ let M = g(E);
340
+ const b = P ? P.map(g) : [];
341
+ a && $ && b.push((v) => {
342
+ const T = K(n, v.theme, t);
343
+ if (!T.components || !T.components[a] || !T.components[a].styleOverrides)
344
+ return null;
345
+ const C = T.components[a].styleOverrides, w = {}, N = Y(v, n, t);
346
+ for (const I in C)
347
+ w[I] = j(C[I], N);
348
+ return $(v, w);
349
+ }), a && !y && b.push((v) => {
350
+ var w, N;
351
+ const T = K(n, v.theme, t), C = (N = (w = T == null ? void 0 : T.components) == null ? void 0 : w[a]) == null ? void 0 : N.variants;
352
+ return C ? j({
353
+ variants: C
354
+ }, Y(v, n, t)) : null;
355
+ }), r || b.push(d);
356
+ const D = b.length - P.length;
357
+ if (Array.isArray(E) && D > 0) {
358
+ const v = new Array(D).fill("");
359
+ M = [...E, ...v], M.raw = [...E.raw, ...v];
360
+ }
361
+ const F = x(M, ...b);
362
+ if (process.env.NODE_ENV !== "production") {
363
+ let v;
364
+ a && (v = `${a}${Te(l || "")}`), v === void 0 && (v = `Styled(${xe(m)})`), F.displayName = v;
365
+ }
366
+ return m.muiName && (F.muiName = m.muiName), F;
367
+ };
368
+ return x.withConfig && (S.withConfig = x.withConfig), S;
369
+ };
370
+ }
371
+ function ge(e) {
372
+ for (const n in e)
373
+ return !1;
374
+ return !0;
375
+ }
376
+ function De(e) {
377
+ return typeof e == "string" && // 96 is one less than the char code
378
+ // for "a" so this is checking that
379
+ // it's a lowercase character
380
+ e.charCodeAt(0) > 96;
381
+ }
382
+ function ee(e) {
383
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
384
+ }
385
+ const oe = /* @__PURE__ */ te.createContext(void 0);
386
+ function Ie({
387
+ value: e,
388
+ children: n
389
+ }) {
390
+ return /* @__PURE__ */ $e(oe.Provider, {
391
+ value: e,
392
+ children: n
393
+ });
394
+ }
395
+ process.env.NODE_ENV !== "production" && (Ie.propTypes = {
396
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
397
+ // │ These PropTypes are generated from the TypeScript type definitions. │
398
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
399
+ // └─────────────────────────────────────────────────────────────────────┘
400
+ /**
401
+ * @ignore
402
+ */
403
+ children: k.node,
404
+ /**
405
+ * @ignore
406
+ */
407
+ value: k.object
408
+ });
409
+ function Le(e) {
410
+ const {
411
+ theme: n,
412
+ name: t,
413
+ props: i
414
+ } = e;
415
+ if (!n || !n.components || !n.components[t])
416
+ return i;
417
+ const s = n.components[t];
418
+ return s.defaultProps ? H(s.defaultProps, i) : !s.styleOverrides && !s.variants ? H(s, i) : i;
419
+ }
420
+ function Ve({
421
+ props: e,
422
+ name: n
423
+ }) {
424
+ const t = te.useContext(oe);
425
+ return Le({
426
+ props: e,
427
+ name: n,
428
+ theme: {
429
+ components: t
430
+ }
431
+ });
432
+ }
433
+ const Ye = Ce();
434
+ function je(e) {
435
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
436
+ }
437
+ const ke = (e) => je(e) && e !== "classes", He = Fe({
438
+ themeId: we,
439
+ defaultTheme: Ye,
440
+ rootShouldForwardProp: ke
441
+ }), re = {
442
+ theme: void 0
443
+ };
444
+ function Ke(e) {
445
+ let n, t;
446
+ return (i) => {
447
+ let s = n;
448
+ return (s === void 0 || i.theme !== t) && (re.theme = i.theme, s = e(re), n = s, t = i.theme), s;
449
+ };
450
+ }
451
+ process.env.NODE_ENV !== "production" && (k.node, k.object.isRequired);
452
+ function Ue(e) {
453
+ return Ve(e);
454
+ }
455
+ export {
456
+ Ie as D,
457
+ Fe as a,
458
+ ke as b,
459
+ We as c,
460
+ Ye as d,
461
+ J as e,
462
+ je as f,
463
+ q as g,
464
+ Ke as m,
465
+ H as r,
466
+ He as s,
467
+ Ue as u
468
+ };
@@ -0,0 +1,239 @@
1
+ import * as c from "react";
2
+ import { I as z, J as C, K as a, n as g, L as O, P as t } from "./identifier-Bsv46xiT.js";
3
+ import { s as B, m as y, u as I, c as T } from "./DefaultPropsProvider-QV6PDjPd.js";
4
+ import { jsx as $ } from "react/jsx-runtime";
5
+ import { B as h } from "./ButtonBase-D0vqeM8I.js";
6
+ import { c as S } from "./refType-BnS1d2D8.js";
7
+ function k(o) {
8
+ return z("MuiIconButton", o);
9
+ }
10
+ const x = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), w = x, j = (o) => {
11
+ const {
12
+ classes: e,
13
+ disabled: r,
14
+ color: s,
15
+ edge: n,
16
+ size: i
17
+ } = o, l = {
18
+ root: ["root", r && "disabled", s !== "default" && `color${a(s)}`, n && `edge${a(n)}`, `size${a(i)}`]
19
+ };
20
+ return T(l, k, e);
21
+ }, E = B(h, {
22
+ name: "MuiIconButton",
23
+ slot: "Root",
24
+ overridesResolver: (o, e) => {
25
+ const {
26
+ ownerState: r
27
+ } = o;
28
+ return [e.root, r.color !== "default" && e[`color${a(r.color)}`], r.edge && e[`edge${a(r.edge)}`], e[`size${a(r.size)}`]];
29
+ }
30
+ })(y(({
31
+ theme: o
32
+ }) => ({
33
+ textAlign: "center",
34
+ flex: "0 0 auto",
35
+ fontSize: o.typography.pxToRem(24),
36
+ padding: 8,
37
+ borderRadius: "50%",
38
+ color: (o.vars || o).palette.action.active,
39
+ transition: o.transitions.create("background-color", {
40
+ duration: o.transitions.duration.shortest
41
+ }),
42
+ variants: [{
43
+ props: {
44
+ disableRipple: !1
45
+ },
46
+ style: {
47
+ "&:hover": {
48
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.action.active, o.palette.action.hoverOpacity),
49
+ // Reset on touch devices, it doesn't add specificity
50
+ "@media (hover: none)": {
51
+ backgroundColor: "transparent"
52
+ }
53
+ }
54
+ }
55
+ }, {
56
+ props: {
57
+ edge: "start"
58
+ },
59
+ style: {
60
+ marginLeft: -12
61
+ }
62
+ }, {
63
+ props: {
64
+ edge: "start",
65
+ size: "small"
66
+ },
67
+ style: {
68
+ marginLeft: -3
69
+ }
70
+ }, {
71
+ props: {
72
+ edge: "end"
73
+ },
74
+ style: {
75
+ marginRight: -12
76
+ }
77
+ }, {
78
+ props: {
79
+ edge: "end",
80
+ size: "small"
81
+ },
82
+ style: {
83
+ marginRight: -3
84
+ }
85
+ }]
86
+ })), y(({
87
+ theme: o
88
+ }) => ({
89
+ variants: [{
90
+ props: {
91
+ color: "inherit"
92
+ },
93
+ style: {
94
+ color: "inherit"
95
+ }
96
+ }, ...Object.entries(o.palette).filter(([, e]) => e && e.main).map(([e]) => ({
97
+ props: {
98
+ color: e
99
+ },
100
+ style: {
101
+ color: (o.vars || o).palette[e].main
102
+ }
103
+ })), ...Object.entries(o.palette).filter(([, e]) => e && e.main).map(([e]) => ({
104
+ props: {
105
+ color: e,
106
+ disableRipple: !1
107
+ },
108
+ style: {
109
+ "&:hover": {
110
+ backgroundColor: o.vars ? `rgba(${(o.vars || o).palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g((o.vars || o).palette[e].main, o.palette.action.hoverOpacity),
111
+ // Reset on touch devices, it doesn't add specificity
112
+ "@media (hover: none)": {
113
+ backgroundColor: "transparent"
114
+ }
115
+ }
116
+ }
117
+ })), {
118
+ props: {
119
+ size: "small"
120
+ },
121
+ style: {
122
+ padding: 5,
123
+ fontSize: o.typography.pxToRem(18)
124
+ }
125
+ }, {
126
+ props: {
127
+ size: "large"
128
+ },
129
+ style: {
130
+ padding: 12,
131
+ fontSize: o.typography.pxToRem(28)
132
+ }
133
+ }],
134
+ [`&.${w.disabled}`]: {
135
+ backgroundColor: "transparent",
136
+ color: (o.vars || o).palette.action.disabled
137
+ }
138
+ }))), M = /* @__PURE__ */ c.forwardRef(function(e, r) {
139
+ const s = I({
140
+ props: e,
141
+ name: "MuiIconButton"
142
+ }), {
143
+ edge: n = !1,
144
+ children: i,
145
+ className: l,
146
+ color: b = "default",
147
+ disabled: p = !1,
148
+ disableFocusRipple: d = !1,
149
+ disableRipple: u = !1,
150
+ size: m = "medium",
151
+ ...v
152
+ } = s, f = {
153
+ ...s,
154
+ edge: n,
155
+ color: b,
156
+ disabled: p,
157
+ disableFocusRipple: d,
158
+ disableRipple: u,
159
+ size: m
160
+ }, R = j(f);
161
+ return /* @__PURE__ */ $(E, {
162
+ className: O(R.root, l),
163
+ centerRipple: !0,
164
+ focusRipple: !d,
165
+ disabled: p,
166
+ disableRipple: u,
167
+ ref: r,
168
+ ...v,
169
+ ownerState: f,
170
+ children: i
171
+ });
172
+ });
173
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
174
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
175
+ // │ These PropTypes are generated from the TypeScript type definitions. │
176
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
177
+ // └─────────────────────────────────────────────────────────────────────┘
178
+ /**
179
+ * The icon to display.
180
+ */
181
+ children: S(t.node, (o) => c.Children.toArray(o.children).some((r) => /* @__PURE__ */ c.isValidElement(r) && r.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
182
+ `)) : null),
183
+ /**
184
+ * Override or extend the styles applied to the component.
185
+ */
186
+ classes: t.object,
187
+ /**
188
+ * @ignore
189
+ */
190
+ className: t.string,
191
+ /**
192
+ * The color of the component.
193
+ * It supports both default and custom theme colors, which can be added as shown in the
194
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
195
+ * @default 'default'
196
+ */
197
+ color: t.oneOfType([t.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
198
+ /**
199
+ * If `true`, the component is disabled.
200
+ * @default false
201
+ */
202
+ disabled: t.bool,
203
+ /**
204
+ * If `true`, the keyboard focus ripple is disabled.
205
+ * @default false
206
+ */
207
+ disableFocusRipple: t.bool,
208
+ /**
209
+ * If `true`, the ripple effect is disabled.
210
+ *
211
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
212
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
213
+ * @default false
214
+ */
215
+ disableRipple: t.bool,
216
+ /**
217
+ * If given, uses a negative margin to counteract the padding on one
218
+ * side (this is often helpful for aligning the left or right
219
+ * side of the icon with content above or below, without ruining the border
220
+ * size and shape).
221
+ * @default false
222
+ */
223
+ edge: t.oneOf(["end", "start", !1]),
224
+ /**
225
+ * The size of the component.
226
+ * `small` is equivalent to the dense button styling.
227
+ * @default 'medium'
228
+ */
229
+ size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
230
+ /**
231
+ * The system prop that allows defining system overrides as well as additional CSS styles.
232
+ */
233
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
234
+ });
235
+ export {
236
+ M as I,
237
+ k as g,
238
+ w as i
239
+ };