@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
@@ -1,533 +0,0 @@
1
- import * as ce from "react";
2
- import { F as Ce, u as Me, q as we, m as B, P as k, J as g, M as je, n as Fe, N as Ae, O as De, t as Le, z as Ie, Q as qe, R as Ne, A as ze, d as Ve, T as ke } from "./identifier-CAQ9PWqs.js";
3
- import { jsx as We } from "react/jsx-runtime";
4
- const Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
- __proto__: null,
6
- default: Ce,
7
- isPlainObject: Me
8
- }, Symbol.toStringTag, { value: "Module" }));
9
- var G = { exports: {} }, c = {};
10
- /**
11
- * @license React
12
- * react-is.production.min.js
13
- *
14
- * Copyright (c) Facebook, Inc. and its affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */
19
- var te;
20
- function Ue() {
21
- if (te) return c;
22
- te = 1;
23
- var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), u = Symbol.for("react.context"), _ = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), $;
24
- $ = Symbol.for("react.module.reference");
25
- function y(r) {
26
- if (typeof r == "object" && r !== null) {
27
- var x = r.$$typeof;
28
- switch (x) {
29
- case e:
30
- switch (r = r.type, r) {
31
- case t:
32
- case i:
33
- case n:
34
- case p:
35
- case m:
36
- return r;
37
- default:
38
- switch (r = r && r.$$typeof, r) {
39
- case _:
40
- case u:
41
- case l:
42
- case S:
43
- case E:
44
- case a:
45
- return r;
46
- default:
47
- return x;
48
- }
49
- }
50
- case o:
51
- return x;
52
- }
53
- }
54
- }
55
- return c.ContextConsumer = u, c.ContextProvider = a, c.Element = e, c.ForwardRef = l, c.Fragment = t, c.Lazy = S, c.Memo = E, c.Portal = o, c.Profiler = i, c.StrictMode = n, c.Suspense = p, c.SuspenseList = m, c.isAsyncMode = function() {
56
- return !1;
57
- }, c.isConcurrentMode = function() {
58
- return !1;
59
- }, c.isContextConsumer = function(r) {
60
- return y(r) === u;
61
- }, c.isContextProvider = function(r) {
62
- return y(r) === a;
63
- }, c.isElement = function(r) {
64
- return typeof r == "object" && r !== null && r.$$typeof === e;
65
- }, c.isForwardRef = function(r) {
66
- return y(r) === l;
67
- }, c.isFragment = function(r) {
68
- return y(r) === t;
69
- }, c.isLazy = function(r) {
70
- return y(r) === S;
71
- }, c.isMemo = function(r) {
72
- return y(r) === E;
73
- }, c.isPortal = function(r) {
74
- return y(r) === o;
75
- }, c.isProfiler = function(r) {
76
- return y(r) === i;
77
- }, c.isStrictMode = function(r) {
78
- return y(r) === n;
79
- }, c.isSuspense = function(r) {
80
- return y(r) === p;
81
- }, c.isSuspenseList = function(r) {
82
- return y(r) === m;
83
- }, c.isValidElementType = function(r) {
84
- return typeof r == "string" || typeof r == "function" || r === t || r === i || r === n || r === p || r === m || r === M || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === E || r.$$typeof === a || r.$$typeof === u || r.$$typeof === l || r.$$typeof === $ || r.getModuleId !== void 0);
85
- }, c.typeOf = y, c;
86
- }
87
- var f = {};
88
- /**
89
- * @license React
90
- * react-is.development.js
91
- *
92
- * Copyright (c) Facebook, Inc. and its affiliates.
93
- *
94
- * This source code is licensed under the MIT license found in the
95
- * LICENSE file in the root directory of this source tree.
96
- */
97
- var re;
98
- function Be() {
99
- return re || (re = 1, process.env.NODE_ENV !== "production" && function() {
100
- var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), u = Symbol.for("react.context"), _ = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), $ = !1, y = !1, r = !1, x = !1, w = !1, j;
101
- j = Symbol.for("react.module.reference");
102
- function L(s) {
103
- return !!(typeof s == "string" || typeof s == "function" || s === t || s === i || w || s === n || s === p || s === m || x || s === M || $ || y || r || typeof s == "object" && s !== null && (s.$$typeof === S || s.$$typeof === E || s.$$typeof === a || s.$$typeof === u || s.$$typeof === l || // This needs to include all possible module reference object
104
- // types supported by any Flight configuration anywhere since
105
- // we don't know which Flight build this will end up being used
106
- // with.
107
- s.$$typeof === j || s.getModuleId !== void 0));
108
- }
109
- function d(s) {
110
- if (typeof s == "object" && s !== null) {
111
- var U = s.$$typeof;
112
- switch (U) {
113
- case e:
114
- var q = s.type;
115
- switch (q) {
116
- case t:
117
- case i:
118
- case n:
119
- case p:
120
- case m:
121
- return q;
122
- default:
123
- var ee = q && q.$$typeof;
124
- switch (ee) {
125
- case _:
126
- case u:
127
- case l:
128
- case S:
129
- case E:
130
- case a:
131
- return ee;
132
- default:
133
- return U;
134
- }
135
- }
136
- case o:
137
- return U;
138
- }
139
- }
140
- }
141
- var P = u, F = a, R = e, I = l, A = t, v = S, h = E, T = o, O = i, W = n, Y = p, me = m, Z = !1, K = !1;
142
- function ye(s) {
143
- return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
144
- }
145
- function ve(s) {
146
- return K || (K = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
147
- }
148
- function _e(s) {
149
- return d(s) === u;
150
- }
151
- function Se(s) {
152
- return d(s) === a;
153
- }
154
- function he(s) {
155
- return typeof s == "object" && s !== null && s.$$typeof === e;
156
- }
157
- function be(s) {
158
- return d(s) === l;
159
- }
160
- function Ee(s) {
161
- return d(s) === t;
162
- }
163
- function Pe(s) {
164
- return d(s) === S;
165
- }
166
- function xe(s) {
167
- return d(s) === E;
168
- }
169
- function Re(s) {
170
- return d(s) === o;
171
- }
172
- function Te(s) {
173
- return d(s) === i;
174
- }
175
- function $e(s) {
176
- return d(s) === n;
177
- }
178
- function Oe(s) {
179
- return d(s) === p;
180
- }
181
- function ge(s) {
182
- return d(s) === m;
183
- }
184
- f.ContextConsumer = P, f.ContextProvider = F, f.Element = R, f.ForwardRef = I, f.Fragment = A, f.Lazy = v, f.Memo = h, f.Portal = T, f.Profiler = O, f.StrictMode = W, f.Suspense = Y, f.SuspenseList = me, f.isAsyncMode = ye, f.isConcurrentMode = ve, f.isContextConsumer = _e, f.isContextProvider = Se, f.isElement = he, f.isForwardRef = be, f.isFragment = Ee, f.isLazy = Pe, f.isMemo = xe, f.isPortal = Re, f.isProfiler = Te, f.isStrictMode = $e, f.isSuspense = Oe, f.isSuspenseList = ge, f.isValidElementType = L, f.typeOf = d;
185
- }()), f;
186
- }
187
- process.env.NODE_ENV === "production" ? G.exports = Ue() : G.exports = Be();
188
- var ne = G.exports;
189
- const He = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
190
- function fe(e) {
191
- const o = `${e}`.match(He);
192
- return o && o[1] || "";
193
- }
194
- function le(e, o = "") {
195
- return e.displayName || e.name || fe(e) || o;
196
- }
197
- function oe(e, o, t) {
198
- const n = le(o);
199
- return e.displayName || (n !== "" ? `${t}(${n})` : t);
200
- }
201
- function Xe(e) {
202
- if (e != null) {
203
- if (typeof e == "string")
204
- return e;
205
- if (typeof e == "function")
206
- return le(e, "Component");
207
- if (typeof e == "object")
208
- switch (e.$$typeof) {
209
- case ne.ForwardRef:
210
- return oe(e, e.render, "ForwardRef");
211
- case ne.Memo:
212
- return oe(e, e.type, "memo");
213
- default:
214
- return;
215
- }
216
- }
217
- }
218
- const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
219
- __proto__: null,
220
- default: Xe,
221
- getFunctionName: fe
222
- }, Symbol.toStringTag, { value: "Module" })), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
- __proto__: null,
224
- default: we
225
- }, Symbol.toStringTag, { value: "Module" }));
226
- function J(e, o) {
227
- const t = B({}, o);
228
- return Object.keys(e).forEach((n) => {
229
- if (n.toString().match(/^(components|slots)$/))
230
- t[n] = B({}, e[n], t[n]);
231
- else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
232
- const i = e[n] || {}, a = o[n];
233
- t[n] = {}, !a || !Object.keys(a) ? t[n] = i : !i || !Object.keys(i) ? t[n] = a : (t[n] = B({}, a), Object.keys(i).forEach((u) => {
234
- t[n][u] = J(i[u], a[u]);
235
- }));
236
- } else t[n] === void 0 && (t[n] = e[n]);
237
- }), t;
238
- }
239
- function Mt(e, o, t = void 0) {
240
- const n = {};
241
- return Object.keys(e).forEach(
242
- // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
243
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
244
- (i) => {
245
- n[i] = e[i].reduce((a, u) => {
246
- if (u) {
247
- const _ = o(u);
248
- _ !== "" && a.push(_), t && t[u] && a.push(t[u]);
249
- }
250
- return a;
251
- }, []).join(" ");
252
- }
253
- ), n;
254
- }
255
- const de = /* @__PURE__ */ ce.createContext(void 0);
256
- function Qe({
257
- value: e,
258
- children: o
259
- }) {
260
- return /* @__PURE__ */ We(de.Provider, {
261
- value: e,
262
- children: o
263
- });
264
- }
265
- process.env.NODE_ENV !== "production" && (Qe.propTypes = {
266
- // ┌────────────────────────────── Warning ──────────────────────────────┐
267
- // │ These PropTypes are generated from the TypeScript type definitions. │
268
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
269
- // └─────────────────────────────────────────────────────────────────────┘
270
- /**
271
- * @ignore
272
- */
273
- children: k.node,
274
- /**
275
- * @ignore
276
- */
277
- value: k.object
278
- });
279
- function Ze(e) {
280
- const {
281
- theme: o,
282
- name: t,
283
- props: n
284
- } = e;
285
- if (!o || !o.components || !o.components[t])
286
- return n;
287
- const i = o.components[t];
288
- return i.defaultProps ? J(i.defaultProps, n) : !i.styleOverrides && !i.variants ? J(i, n) : n;
289
- }
290
- function Ke({
291
- props: e,
292
- name: o
293
- }) {
294
- const t = ce.useContext(de);
295
- return Ze({
296
- props: e,
297
- name: o,
298
- theme: {
299
- components: t
300
- }
301
- });
302
- }
303
- process.env.NODE_ENV !== "production" && (k.node, k.object.isRequired);
304
- function wt(e) {
305
- return Ke(e);
306
- }
307
- var D = {}, H = { exports: {} }, se;
308
- function et() {
309
- return se || (se = 1, function(e) {
310
- function o() {
311
- return e.exports = o = Object.assign ? Object.assign.bind() : function(t) {
312
- for (var n = 1; n < arguments.length; n++) {
313
- var i = arguments[n];
314
- for (var a in i) ({}).hasOwnProperty.call(i, a) && (t[a] = i[a]);
315
- }
316
- return t;
317
- }, e.exports.__esModule = !0, e.exports.default = e.exports, o.apply(null, arguments);
318
- }
319
- e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
320
- }(H)), H.exports;
321
- }
322
- var X = { exports: {} }, ie;
323
- function tt() {
324
- return ie || (ie = 1, function(e) {
325
- function o(t, n) {
326
- if (t == null) return {};
327
- var i = {};
328
- for (var a in t) if ({}.hasOwnProperty.call(t, a)) {
329
- if (n.includes(a)) continue;
330
- i[a] = t[a];
331
- }
332
- return i;
333
- }
334
- e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
335
- }(X)), X.exports;
336
- }
337
- const rt = /* @__PURE__ */ g(je), nt = /* @__PURE__ */ g(Ye), ot = /* @__PURE__ */ g(Je), st = /* @__PURE__ */ g(Ge), it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
338
- __proto__: null,
339
- default: Fe,
340
- private_createBreakpoints: Ae,
341
- unstable_applyStyles: De
342
- }, Symbol.toStringTag, { value: "Module" })), at = /* @__PURE__ */ g(it), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
343
- __proto__: null,
344
- default: Le,
345
- extendSxProp: Ie,
346
- unstable_createStyleFunctionSx: qe,
347
- unstable_defaultSxConfig: Ne
348
- }, Symbol.toStringTag, { value: "Module" })), ct = /* @__PURE__ */ g(ut);
349
- var C = ze;
350
- Object.defineProperty(D, "__esModule", {
351
- value: !0
352
- });
353
- var ft = D.default = Rt;
354
- D.shouldForwardProp = z;
355
- D.systemDefaultTheme = void 0;
356
- var b = C(et()), Q = C(tt()), ae = ht(rt), lt = nt, dt = C(ot), pt = C(st), mt = C(at), yt = C(ct);
357
- const vt = ["ownerState"], _t = ["variants"], St = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
358
- function pe(e) {
359
- if (typeof WeakMap != "function") return null;
360
- var o = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
361
- return (pe = function(n) {
362
- return n ? t : o;
363
- })(e);
364
- }
365
- function ht(e, o) {
366
- if (e && e.__esModule) return e;
367
- if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
368
- var t = pe(o);
369
- if (t && t.has(e)) return t.get(e);
370
- var n = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
371
- for (var a in e) if (a !== "default" && Object.prototype.hasOwnProperty.call(e, a)) {
372
- var u = i ? Object.getOwnPropertyDescriptor(e, a) : null;
373
- u && (u.get || u.set) ? Object.defineProperty(n, a, u) : n[a] = e[a];
374
- }
375
- return n.default = e, t && t.set(e, n), n;
376
- }
377
- function bt(e) {
378
- return Object.keys(e).length === 0;
379
- }
380
- function Et(e) {
381
- return typeof e == "string" && // 96 is one less than the char code
382
- // for "a" so this is checking that
383
- // it's a lowercase character
384
- e.charCodeAt(0) > 96;
385
- }
386
- function z(e) {
387
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
388
- }
389
- const Pt = D.systemDefaultTheme = (0, mt.default)(), ue = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
390
- function N({
391
- defaultTheme: e,
392
- theme: o,
393
- themeId: t
394
- }) {
395
- return bt(o) ? e : o[t] || o;
396
- }
397
- function xt(e) {
398
- return e ? (o, t) => t[e] : null;
399
- }
400
- function V(e, o) {
401
- let {
402
- ownerState: t
403
- } = o, n = (0, Q.default)(o, vt);
404
- const i = typeof e == "function" ? e((0, b.default)({
405
- ownerState: t
406
- }, n)) : e;
407
- if (Array.isArray(i))
408
- return i.flatMap((a) => V(a, (0, b.default)({
409
- ownerState: t
410
- }, n)));
411
- if (i && typeof i == "object" && Array.isArray(i.variants)) {
412
- const {
413
- variants: a = []
414
- } = i;
415
- let _ = (0, Q.default)(i, _t);
416
- return a.forEach((l) => {
417
- let p = !0;
418
- typeof l.props == "function" ? p = l.props((0, b.default)({
419
- ownerState: t
420
- }, n, t)) : Object.keys(l.props).forEach((m) => {
421
- (t == null ? void 0 : t[m]) !== l.props[m] && n[m] !== l.props[m] && (p = !1);
422
- }), p && (Array.isArray(_) || (_ = [_]), _.push(typeof l.style == "function" ? l.style((0, b.default)({
423
- ownerState: t
424
- }, n, t)) : l.style));
425
- }), _;
426
- }
427
- return i;
428
- }
429
- function Rt(e = {}) {
430
- const {
431
- themeId: o,
432
- defaultTheme: t = Pt,
433
- rootShouldForwardProp: n = z,
434
- slotShouldForwardProp: i = z
435
- } = e, a = (u) => (0, yt.default)((0, b.default)({}, u, {
436
- theme: N((0, b.default)({}, u, {
437
- defaultTheme: t,
438
- themeId: o
439
- }))
440
- }));
441
- return a.__mui_systemSx = !0, (u, _ = {}) => {
442
- (0, ae.internal_processStyles)(u, (d) => d.filter((P) => !(P != null && P.__mui_systemSx)));
443
- const {
444
- name: l,
445
- slot: p,
446
- skipVariantsResolver: m,
447
- skipSx: E,
448
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
449
- // For more details: https://github.com/mui/material-ui/pull/37908
450
- overridesResolver: S = xt(ue(p))
451
- } = _, M = (0, Q.default)(_, St), $ = m !== void 0 ? m : (
452
- // TODO v6: remove `Root` in the next major release
453
- // For more details: https://github.com/mui/material-ui/pull/37908
454
- p && p !== "Root" && p !== "root" || !1
455
- ), y = E || !1;
456
- let r;
457
- process.env.NODE_ENV !== "production" && l && (r = `${l}-${ue(p || "Root")}`);
458
- let x = z;
459
- p === "Root" || p === "root" ? x = n : p ? x = i : Et(u) && (x = void 0);
460
- const w = (0, ae.default)(u, (0, b.default)({
461
- shouldForwardProp: x,
462
- label: r
463
- }, M)), j = (d) => typeof d == "function" && d.__emotion_real !== d || (0, lt.isPlainObject)(d) ? (P) => V(d, (0, b.default)({}, P, {
464
- theme: N({
465
- theme: P.theme,
466
- defaultTheme: t,
467
- themeId: o
468
- })
469
- })) : d, L = (d, ...P) => {
470
- let F = j(d);
471
- const R = P ? P.map(j) : [];
472
- l && S && R.push((v) => {
473
- const h = N((0, b.default)({}, v, {
474
- defaultTheme: t,
475
- themeId: o
476
- }));
477
- if (!h.components || !h.components[l] || !h.components[l].styleOverrides)
478
- return null;
479
- const T = h.components[l].styleOverrides, O = {};
480
- return Object.entries(T).forEach(([W, Y]) => {
481
- O[W] = V(Y, (0, b.default)({}, v, {
482
- theme: h
483
- }));
484
- }), S(v, O);
485
- }), l && !$ && R.push((v) => {
486
- var h;
487
- const T = N((0, b.default)({}, v, {
488
- defaultTheme: t,
489
- themeId: o
490
- })), O = T == null || (h = T.components) == null || (h = h[l]) == null ? void 0 : h.variants;
491
- return V({
492
- variants: O
493
- }, (0, b.default)({}, v, {
494
- theme: T
495
- }));
496
- }), y || R.push(a);
497
- const I = R.length - P.length;
498
- if (Array.isArray(d) && I > 0) {
499
- const v = new Array(I).fill("");
500
- F = [...d, ...v], F.raw = [...d.raw, ...v];
501
- }
502
- const A = w(F, ...R);
503
- if (process.env.NODE_ENV !== "production") {
504
- let v;
505
- l && (v = `${l}${(0, dt.default)(p || "")}`), v === void 0 && (v = `Styled(${(0, pt.default)(u)})`), A.displayName = v;
506
- }
507
- return u.muiName && (A.muiName = u.muiName), A;
508
- };
509
- return w.withConfig && (L.withConfig = w.withConfig), L;
510
- };
511
- }
512
- const Tt = Ve();
513
- function $t(e) {
514
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
515
- }
516
- const Ot = (e) => $t(e) && e !== "classes", jt = ft({
517
- themeId: ke,
518
- defaultTheme: Tt,
519
- rootShouldForwardProp: Ot
520
- });
521
- export {
522
- Qe as D,
523
- Ot as a,
524
- ne as b,
525
- Mt as c,
526
- Tt as d,
527
- $t as e,
528
- rt as f,
529
- Xe as g,
530
- J as r,
531
- jt as s,
532
- wt as u
533
- };
@@ -1,3 +0,0 @@
1
- "use strict";const f=require("react");function d(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=d(f);function p(...e){return e.reduce((o,t)=>t==null?o:function(...i){o.apply(this,i),t.apply(this,i)},()=>{})}function h(e,o){var t,n;return r.isValidElement(e)&&o.indexOf((t=e.type.muiName)!=null?t:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function m({controlled:e,default:o,name:t,state:n="value"}){const{current:i}=r.useRef(e!==void 0),[l,c]=r.useState(o),s=i?e:l;if(process.env.NODE_ENV!=="production"){r.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${t} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
2
- `))},[n,t,e]);const{current:u}=r.useRef(o);r.useEffect(()=>{!i&&!Object.is(u,o)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
3
- `))},[JSON.stringify(o)])}const a=r.useCallback(u=>{i||c(u)},[]);return[s,a]}exports.createChainedFunction=p;exports.isMuiElement=h;exports.useControlled=m;
@@ -1,48 +0,0 @@
1
- import * as u from "react";
2
- function d(...t) {
3
- return t.reduce((o, e) => e == null ? o : function(...i) {
4
- o.apply(this, i), e.apply(this, i);
5
- }, () => {
6
- });
7
- }
8
- function f(t, o) {
9
- var e, n;
10
- return /* @__PURE__ */ u.isValidElement(t) && o.indexOf(
11
- // For server components `muiName` is avaialble in element.type._payload.value.muiName
12
- // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
13
- // eslint-disable-next-line no-underscore-dangle
14
- (e = t.type.muiName) != null ? e : (n = t.type) == null || (n = n._payload) == null || (n = n.value) == null ? void 0 : n.muiName
15
- ) !== -1;
16
- }
17
- function h({
18
- controlled: t,
19
- default: o,
20
- name: e,
21
- state: n = "value"
22
- }) {
23
- const {
24
- current: i
25
- } = u.useRef(t !== void 0), [r, s] = u.useState(o), c = i ? t : r;
26
- if (process.env.NODE_ENV !== "production") {
27
- u.useEffect(() => {
28
- i !== (t !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${n} state of ${e} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${e} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
29
- `));
30
- }, [n, e, t]);
31
- const {
32
- current: l
33
- } = u.useRef(o);
34
- u.useEffect(() => {
35
- !i && !Object.is(l, o) && console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`].join(`
36
- `));
37
- }, [JSON.stringify(o)]);
38
- }
39
- const a = u.useCallback((l) => {
40
- i || s(l);
41
- }, []);
42
- return [c, a];
43
- }
44
- export {
45
- d as c,
46
- f as i,
47
- h as u
48
- };
@@ -1,19 +0,0 @@
1
- import * as e from "react";
2
- let n = 0;
3
- function l(t) {
4
- const [u, o] = e.useState(t), a = t || u;
5
- return e.useEffect(() => {
6
- u == null && (n += 1, o(`mui-${n}`));
7
- }, [u]), a;
8
- }
9
- const s = e.useId;
10
- function c(t) {
11
- if (s !== void 0) {
12
- const u = s();
13
- return t ?? u;
14
- }
15
- return l(t);
16
- }
17
- export {
18
- c as u
19
- };
@@ -1 +0,0 @@
1
- "use strict";const a=require("react");function l(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,u.get?u:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const c=l(a);let o=0;function r(t){const[e,n]=c.useState(t),u=t||e;return c.useEffect(()=>{e==null&&(o+=1,n(`mui-${o}`))},[e]),u}const s=c.useId;function f(t){if(s!==void 0){const e=s();return t??e}return r(t)}exports.useId=f;
@@ -1 +0,0 @@
1
- "use strict";const o=require("react"),c=require("./useTimeout-XUWYBnl6.cjs");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=f(o);let i=!0,a=!1;const d=new c.Timeout,b={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function y(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&b[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function h(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function m(){this.visibilityState==="hidden"&&a&&(i=!0)}function p(e){e.addEventListener("keydown",h,!0),e.addEventListener("mousedown",s,!0),e.addEventListener("pointerdown",s,!0),e.addEventListener("touchstart",s,!0),e.addEventListener("visibilitychange",m,!0)}function g(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return i||y(t)}function w(){const e=l.useCallback(u=>{u!=null&&p(u.ownerDocument)},[]),t=l.useRef(!1);function r(){return t.current?(a=!0,d.start(100,()=>{a=!1}),t.current=!1,!0):!1}function n(u){return g(u)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}exports.useIsFocusVisible=w;
@@ -1,69 +0,0 @@
1
- import * as a from "react";
2
- import { T as o } from "./useTimeout-BdvDipeg.js";
3
- let n = !0, s = !1;
4
- const c = new o(), f = {
5
- text: !0,
6
- search: !0,
7
- url: !0,
8
- tel: !0,
9
- email: !0,
10
- password: !0,
11
- number: !0,
12
- date: !0,
13
- month: !0,
14
- week: !0,
15
- time: !0,
16
- datetime: !0,
17
- "datetime-local": !0
18
- };
19
- function d(e) {
20
- const {
21
- type: t,
22
- tagName: r
23
- } = e;
24
- return !!(r === "INPUT" && f[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
25
- }
26
- function h(e) {
27
- e.metaKey || e.altKey || e.ctrlKey || (n = !0);
28
- }
29
- function i() {
30
- n = !1;
31
- }
32
- function y() {
33
- this.visibilityState === "hidden" && s && (n = !0);
34
- }
35
- function m(e) {
36
- e.addEventListener("keydown", h, !0), e.addEventListener("mousedown", i, !0), e.addEventListener("pointerdown", i, !0), e.addEventListener("touchstart", i, !0), e.addEventListener("visibilitychange", y, !0);
37
- }
38
- function b(e) {
39
- const {
40
- target: t
41
- } = e;
42
- try {
43
- return t.matches(":focus-visible");
44
- } catch {
45
- }
46
- return n || d(t);
47
- }
48
- function w() {
49
- const e = a.useCallback((u) => {
50
- u != null && m(u.ownerDocument);
51
- }, []), t = a.useRef(!1);
52
- function r() {
53
- return t.current ? (s = !0, c.start(100, () => {
54
- s = !1;
55
- }), t.current = !1, !0) : !1;
56
- }
57
- function l(u) {
58
- return b(u) ? (t.current = !0, !0) : !1;
59
- }
60
- return {
61
- isFocusVisibleRef: t,
62
- onFocus: l,
63
- onBlur: r,
64
- ref: e
65
- };
66
- }
67
- export {
68
- w as u
69
- };
@@ -1 +0,0 @@
1
- "use strict";const o=require("./identifier-CWIj084w.cjs"),N=require("./useForkRef-CGd3Nhyb.cjs"),R=require("./isHostComponent-PydJW4A4.cjs"),E=require("react"),O=require("react/jsx-runtime"),T=require("./styled-Bt4oYVnF.cjs"),k=require("./useTheme-T2P7WhLG.cjs");function C(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const m=C(E);function S(e,n,t){return e===void 0||R.isHostComponent(e)?n:o._extends({},n,{ownerState:o._extends({},n.ownerState,t)})}function _(e,n=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(s=>s.match(/^on[A-Z]/)&&typeof e[s]=="function"&&!n.includes(s)).forEach(s=>{t[s]=e[s]}),t}function P(e){if(e===void 0)return{};const n={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{n[t]=e[t]}),n}function H(e){const{getSlotProps:n,additionalProps:t,externalSlotProps:s,externalForwardedProps:r,className:i}=e;if(!n){const y=o.clsx(t==null?void 0:t.className,i,r==null?void 0:r.className,s==null?void 0:s.className),x=o._extends({},t==null?void 0:t.style,r==null?void 0:r.style,s==null?void 0:s.style),v=o._extends({},t,r,s);return y.length>0&&(v.className=y),Object.keys(x).length>0&&(v.style=x),{props:v,internalRef:void 0}}const a=_(o._extends({},r,s)),u=P(s),d=P(r),l=n(a),c=o.clsx(l==null?void 0:l.className,t==null?void 0:t.className,i,r==null?void 0:r.className,s==null?void 0:s.className),f=o._extends({},l==null?void 0:l.style,t==null?void 0:t.style,r==null?void 0:r.style,s==null?void 0:s.style),p=o._extends({},l,t,d,u);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function b(e,n,t){return typeof e=="function"?e(n,t):e}const q=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function w(e){var n;const{elementType:t,externalSlotProps:s,ownerState:r,skipResolvingSlotProps:i=!1}=e,a=o._objectWithoutPropertiesLoose(e,q),u=i?{}:b(s,r),{props:d,internalRef:l}=H(o._extends({},a,{externalSlotProps:u})),c=N.useForkRef(l,u==null?void 0:u.ref,(n=e.additionalProps)==null?void 0:n.ref);return S(t,o._extends({},d,{ref:c}),r)}const j=["value"],h=m.createContext();function g(e){let{value:n}=e,t=o._objectWithoutPropertiesLoose(e,j);return O.jsx(h.Provider,o._extends({value:n??!0},t))}process.env.NODE_ENV!=="production"&&(g.propTypes={children:o.PropTypes.node,value:o.PropTypes.bool});const D=()=>{const e=m.useContext(h);return e??!1};function $(){const e=k.useTheme(T.defaultTheme);return process.env.NODE_ENV!=="production"&&m.useDebugValue(e),e[o.THEME_ID]||e}exports.RtlProvider=g;exports.appendOwnerState=S;exports.extractEventHandlers=_;exports.useRtl=D;exports.useSlotProps=w;exports.useTheme=$;