@cgi-learning-hub/ui 0.0.1-dev.1708295525 → 0.0.1-dev.1708363713

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 (74) hide show
  1. package/dist/Button-D0o8tGej.cjs +75 -0
  2. package/dist/Button-D0z_AY3E.js +1241 -0
  3. package/dist/InputBase-CGq779n2.js +855 -0
  4. package/dist/InputBase-lIiwyvaO.cjs +4 -0
  5. package/dist/TransitionGroupContext-B6r0bfvS.cjs +1 -0
  6. package/dist/TransitionGroupContext-BjDSFqZJ.js +59 -0
  7. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -1
  8. package/dist/components/AnotherComponent/AnotherComponent.es.js +1 -1
  9. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -98
  10. package/dist/components/BasicButtons/BasicButtons.es.js +104 -1897
  11. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -0
  12. package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +12 -0
  13. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +47 -0
  14. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -0
  15. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +9 -0
  16. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +144 -0
  17. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -0
  18. package/dist/components/buttons/DefaultButton/index.d.ts +2 -0
  19. package/dist/components/buttons/DefaultButton/index.es.js +4 -0
  20. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -0
  21. package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +5 -0
  22. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +11 -0
  23. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -0
  24. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +4 -0
  25. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +24 -0
  26. package/dist/components/buttons/PrimaryButton/index.cjs.js +1 -0
  27. package/dist/components/buttons/PrimaryButton/index.d.ts +2 -0
  28. package/dist/components/buttons/PrimaryButton/index.es.js +4 -0
  29. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -0
  30. package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +5 -0
  31. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +11 -0
  32. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -0
  33. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +4 -0
  34. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +24 -0
  35. package/dist/components/buttons/SecondaryButton/index.cjs.js +1 -0
  36. package/dist/components/buttons/SecondaryButton/index.d.ts +2 -0
  37. package/dist/components/buttons/SecondaryButton/index.es.js +4 -0
  38. package/dist/components/buttons/index.cjs.js +1 -0
  39. package/dist/components/buttons/index.d.ts +3 -0
  40. package/dist/components/buttons/index.es.js +8 -0
  41. package/dist/components/index.cjs.js +1 -1
  42. package/dist/components/index.d.ts +3 -1
  43. package/dist/components/index.es.js +14 -4
  44. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -0
  45. package/dist/components/inputs/SearchInput/SearchInput.d.ts +5 -0
  46. package/dist/components/inputs/SearchInput/SearchInput.es.js +346 -0
  47. package/dist/components/inputs/SearchInput/index.cjs.js +1 -0
  48. package/dist/components/inputs/SearchInput/index.d.ts +2 -0
  49. package/dist/components/inputs/SearchInput/index.es.js +4 -0
  50. package/dist/components/inputs/TextInput/TextInput.cjs.js +14 -0
  51. package/dist/components/inputs/TextInput/TextInput.d.ts +5 -0
  52. package/dist/components/inputs/TextInput/TextInput.es.js +5891 -0
  53. package/dist/components/inputs/TextInput/index.cjs.js +1 -0
  54. package/dist/components/inputs/TextInput/index.d.ts +2 -0
  55. package/dist/components/inputs/TextInput/index.es.js +4 -0
  56. package/dist/components/inputs/index.cjs.js +1 -0
  57. package/dist/components/inputs/index.d.ts +2 -0
  58. package/dist/components/inputs/index.es.js +6 -0
  59. package/dist/createSvgIcon-CHLyeSLU.js +183 -0
  60. package/dist/createSvgIcon-DHY1YrJ8.cjs +1 -0
  61. package/dist/{useTheme-DVWKQU4F.js → defaultTheme-BKohU5FP.js} +216 -219
  62. package/dist/defaultTheme-DdZ2uQhZ.cjs +42 -0
  63. package/dist/extendSxProp-BqGiF689.js +29 -0
  64. package/dist/extendSxProp-DRVELas3.cjs +1 -0
  65. package/dist/index.cjs.js +1 -1
  66. package/dist/index.es.js +14 -4
  67. package/dist/styled-1ec4DLGK.js +472 -0
  68. package/dist/styled-DqWU6H76.cjs +24 -0
  69. package/dist/useForkRef-BkcfGVSE.cjs +1 -0
  70. package/dist/useForkRef-GL_-ZsET.js +44 -0
  71. package/dist/useTheme-B4qd7ENB.js +9 -0
  72. package/dist/useTheme-DjsJvzN5.cjs +1 -0
  73. package/package.json +3 -1
  74. package/dist/useTheme-CEi3JABy.cjs +0 -42
@@ -0,0 +1,472 @@
1
+ import { a as E, g as Ee, _ as z, e as he, c as _e, s as be, i as Re, u as Te, b as K, T as Q } from "./defaultTheme-BKohU5FP.js";
2
+ import Pe from "@emotion/styled";
3
+ import "@emotion/react";
4
+ /**
5
+ * @mui/styled-engine v5.15.9
6
+ *
7
+ * @license MIT
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ function $e(e, o) {
12
+ const t = Pe(e, o);
13
+ return process.env.NODE_ENV !== "production" ? (...r) => {
14
+ const i = typeof e == "string" ? `"${e}"` : "component";
15
+ return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
16
+ `)) : r.some((f) => f === void 0) && console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`), t(...r);
17
+ } : t;
18
+ }
19
+ const Ce = (e, o) => {
20
+ Array.isArray(e.__emotion_styles) && (e.__emotion_styles = o(e.__emotion_styles));
21
+ };
22
+ var U = { exports: {} }, u = {};
23
+ /**
24
+ * @license React
25
+ * react-is.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+ var X;
33
+ function Ae() {
34
+ if (X)
35
+ return u;
36
+ X = 1;
37
+ var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), a = Symbol.for("react.context"), S = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), C;
38
+ C = Symbol.for("react.module.reference");
39
+ function p(n) {
40
+ if (typeof n == "object" && n !== null) {
41
+ var T = n.$$typeof;
42
+ switch (T) {
43
+ case e:
44
+ switch (n = n.type, n) {
45
+ case t:
46
+ case i:
47
+ case r:
48
+ case m:
49
+ case y:
50
+ return n;
51
+ default:
52
+ switch (n = n && n.$$typeof, n) {
53
+ case S:
54
+ case a:
55
+ case l:
56
+ case h:
57
+ case b:
58
+ case f:
59
+ return n;
60
+ default:
61
+ return T;
62
+ }
63
+ }
64
+ case o:
65
+ return T;
66
+ }
67
+ }
68
+ }
69
+ return u.ContextConsumer = a, u.ContextProvider = f, u.Element = e, u.ForwardRef = l, u.Fragment = t, u.Lazy = h, u.Memo = b, u.Portal = o, u.Profiler = i, u.StrictMode = r, u.Suspense = m, u.SuspenseList = y, u.isAsyncMode = function() {
70
+ return !1;
71
+ }, u.isConcurrentMode = function() {
72
+ return !1;
73
+ }, u.isContextConsumer = function(n) {
74
+ return p(n) === a;
75
+ }, u.isContextProvider = function(n) {
76
+ return p(n) === f;
77
+ }, u.isElement = function(n) {
78
+ return typeof n == "object" && n !== null && n.$$typeof === e;
79
+ }, u.isForwardRef = function(n) {
80
+ return p(n) === l;
81
+ }, u.isFragment = function(n) {
82
+ return p(n) === t;
83
+ }, u.isLazy = function(n) {
84
+ return p(n) === h;
85
+ }, u.isMemo = function(n) {
86
+ return p(n) === b;
87
+ }, u.isPortal = function(n) {
88
+ return p(n) === o;
89
+ }, u.isProfiler = function(n) {
90
+ return p(n) === i;
91
+ }, u.isStrictMode = function(n) {
92
+ return p(n) === r;
93
+ }, u.isSuspense = function(n) {
94
+ return p(n) === m;
95
+ }, u.isSuspenseList = function(n) {
96
+ return p(n) === y;
97
+ }, u.isValidElementType = function(n) {
98
+ return typeof n == "string" || typeof n == "function" || n === t || n === i || n === r || n === m || n === y || n === w || typeof n == "object" && n !== null && (n.$$typeof === h || n.$$typeof === b || n.$$typeof === f || n.$$typeof === a || n.$$typeof === l || n.$$typeof === C || n.getModuleId !== void 0);
99
+ }, u.typeOf = p, u;
100
+ }
101
+ var c = {};
102
+ /**
103
+ * @license React
104
+ * react-is.development.js
105
+ *
106
+ * Copyright (c) Facebook, Inc. and its affiliates.
107
+ *
108
+ * This source code is licensed under the MIT license found in the
109
+ * LICENSE file in the root directory of this source tree.
110
+ */
111
+ var G;
112
+ function we() {
113
+ return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
114
+ var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), a = Symbol.for("react.context"), S = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), C = !1, p = !1, n = !1, T = !1, M = !1, g;
115
+ g = Symbol.for("react.module.reference");
116
+ function I(s) {
117
+ return !!(typeof s == "string" || typeof s == "function" || s === t || s === i || M || s === r || s === m || s === y || T || s === w || C || p || n || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === b || s.$$typeof === f || s.$$typeof === a || s.$$typeof === l || // This needs to include all possible module reference object
118
+ // types supported by any Flight configuration anywhere since
119
+ // we don't know which Flight build this will end up being used
120
+ // with.
121
+ s.$$typeof === g || s.getModuleId !== void 0));
122
+ }
123
+ function d(s) {
124
+ if (typeof s == "object" && s !== null) {
125
+ var k = s.$$typeof;
126
+ switch (k) {
127
+ case e:
128
+ var j = s.type;
129
+ switch (j) {
130
+ case t:
131
+ case i:
132
+ case r:
133
+ case m:
134
+ case y:
135
+ return j;
136
+ default:
137
+ var H = j && j.$$typeof;
138
+ switch (H) {
139
+ case S:
140
+ case a:
141
+ case l:
142
+ case h:
143
+ case b:
144
+ case f:
145
+ return H;
146
+ default:
147
+ return k;
148
+ }
149
+ }
150
+ case o:
151
+ return k;
152
+ }
153
+ }
154
+ }
155
+ var R = a, x = f, P = e, L = l, F = t, v = h, _ = b, $ = o, A = i, N = r, V = m, ne = y, q = !1, W = !1;
156
+ function oe(s) {
157
+ return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
158
+ }
159
+ function se(s) {
160
+ return W || (W = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
161
+ }
162
+ function ie(s) {
163
+ return d(s) === a;
164
+ }
165
+ function ue(s) {
166
+ return d(s) === f;
167
+ }
168
+ function ce(s) {
169
+ return typeof s == "object" && s !== null && s.$$typeof === e;
170
+ }
171
+ function fe(s) {
172
+ return d(s) === l;
173
+ }
174
+ function ae(s) {
175
+ return d(s) === t;
176
+ }
177
+ function le(s) {
178
+ return d(s) === h;
179
+ }
180
+ function de(s) {
181
+ return d(s) === b;
182
+ }
183
+ function me(s) {
184
+ return d(s) === o;
185
+ }
186
+ function ye(s) {
187
+ return d(s) === i;
188
+ }
189
+ function pe(s) {
190
+ return d(s) === r;
191
+ }
192
+ function ve(s) {
193
+ return d(s) === m;
194
+ }
195
+ function Se(s) {
196
+ return d(s) === y;
197
+ }
198
+ c.ContextConsumer = R, c.ContextProvider = x, c.Element = P, c.ForwardRef = L, c.Fragment = F, c.Lazy = v, c.Memo = _, c.Portal = $, c.Profiler = A, c.StrictMode = N, c.Suspense = V, c.SuspenseList = ne, c.isAsyncMode = oe, c.isConcurrentMode = se, c.isContextConsumer = ie, c.isContextProvider = ue, c.isElement = ce, c.isForwardRef = fe, c.isFragment = ae, c.isLazy = le, c.isMemo = de, c.isPortal = me, c.isProfiler = ye, c.isStrictMode = pe, c.isSuspense = ve, c.isSuspenseList = Se, c.isValidElementType = I, c.typeOf = d;
199
+ }()), c;
200
+ }
201
+ process.env.NODE_ENV === "production" ? U.exports = Ae() : U.exports = we();
202
+ var Z = U.exports;
203
+ const Me = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
204
+ function ge(e) {
205
+ const o = `${e}`.match(Me);
206
+ return o && o[1] || "";
207
+ }
208
+ function ee(e, o = "") {
209
+ return e.displayName || e.name || ge(e) || o;
210
+ }
211
+ function B(e, o, t) {
212
+ const r = ee(o);
213
+ return e.displayName || (r !== "" ? `${t}(${r})` : t);
214
+ }
215
+ function xe(e) {
216
+ if (e != null) {
217
+ if (typeof e == "string")
218
+ return e;
219
+ if (typeof e == "function")
220
+ return ee(e, "Component");
221
+ if (typeof e == "object")
222
+ switch (e.$$typeof) {
223
+ case Z.ForwardRef:
224
+ return B(e, e.render, "ForwardRef");
225
+ case Z.Memo:
226
+ return B(e, e.type, "memo");
227
+ default:
228
+ return;
229
+ }
230
+ }
231
+ }
232
+ function re(e, o) {
233
+ const t = E({}, o);
234
+ return Object.keys(e).forEach((r) => {
235
+ if (r.toString().match(/^(components|slots)$/))
236
+ t[r] = E({}, e[r], t[r]);
237
+ else if (r.toString().match(/^(componentsProps|slotProps)$/)) {
238
+ const i = e[r] || {}, f = o[r];
239
+ t[r] = {}, !f || !Object.keys(f) ? t[r] = i : !i || !Object.keys(i) ? t[r] = f : (t[r] = E({}, f), Object.keys(i).forEach((a) => {
240
+ t[r][a] = re(i[a], f[a]);
241
+ }));
242
+ } else
243
+ t[r] === void 0 && (t[r] = e[r]);
244
+ }), t;
245
+ }
246
+ function He(e, o, t = void 0) {
247
+ const r = {};
248
+ return Object.keys(e).forEach(
249
+ // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
250
+ // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
251
+ (i) => {
252
+ r[i] = e[i].reduce((f, a) => {
253
+ if (a) {
254
+ const S = o(a);
255
+ S !== "" && f.push(S), t && t[a] && f.push(t[a]);
256
+ }
257
+ return f;
258
+ }, []).join(" ");
259
+ }
260
+ ), r;
261
+ }
262
+ function Xe(e, o, t = "Mui") {
263
+ const r = {};
264
+ return o.forEach((i) => {
265
+ r[i] = Ee(e, i, t);
266
+ }), r;
267
+ }
268
+ function te(e) {
269
+ var o, t, r = "";
270
+ if (typeof e == "string" || typeof e == "number")
271
+ r += e;
272
+ else if (typeof e == "object")
273
+ if (Array.isArray(e)) {
274
+ var i = e.length;
275
+ for (o = 0; o < i; o++)
276
+ e[o] && (t = te(e[o])) && (r && (r += " "), r += t);
277
+ } else
278
+ for (t in e)
279
+ e[t] && (r && (r += " "), r += t);
280
+ return r;
281
+ }
282
+ function Ge() {
283
+ for (var e, o, t = 0, r = "", i = arguments.length; t < i; t++)
284
+ (e = arguments[t]) && (o = te(e)) && (r && (r += " "), r += o);
285
+ return r;
286
+ }
287
+ const Fe = ["ownerState"], Oe = ["variants"], Ie = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
288
+ function Le(e) {
289
+ return Object.keys(e).length === 0;
290
+ }
291
+ function je(e) {
292
+ return typeof e == "string" && // 96 is one less than the char code
293
+ // for "a" so this is checking that
294
+ // it's a lowercase character
295
+ e.charCodeAt(0) > 96;
296
+ }
297
+ function O(e) {
298
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
299
+ }
300
+ const Ye = he(), J = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
301
+ function Y({
302
+ defaultTheme: e,
303
+ theme: o,
304
+ themeId: t
305
+ }) {
306
+ return Le(o) ? e : o[t] || o;
307
+ }
308
+ function De(e) {
309
+ return e ? (o, t) => t[e] : null;
310
+ }
311
+ function D(e, o) {
312
+ let {
313
+ ownerState: t
314
+ } = o, r = z(o, Fe);
315
+ const i = typeof e == "function" ? e(E({
316
+ ownerState: t
317
+ }, r)) : e;
318
+ if (Array.isArray(i))
319
+ return i.flatMap((f) => D(f, E({
320
+ ownerState: t
321
+ }, r)));
322
+ if (i && typeof i == "object" && Array.isArray(i.variants)) {
323
+ const {
324
+ variants: f = []
325
+ } = i;
326
+ let S = z(i, Oe);
327
+ return f.forEach((l) => {
328
+ let m = !0;
329
+ typeof l.props == "function" ? m = l.props(E({
330
+ ownerState: t
331
+ }, r)) : Object.keys(l.props).forEach((y) => {
332
+ (t == null ? void 0 : t[y]) !== l.props[y] && r[y] !== l.props[y] && (m = !1);
333
+ }), m && (Array.isArray(S) || (S = [S]), S.push(typeof l.style == "function" ? l.style(E({
334
+ ownerState: t
335
+ }, r)) : l.style));
336
+ }), S;
337
+ }
338
+ return i;
339
+ }
340
+ function Ne(e = {}) {
341
+ const {
342
+ themeId: o,
343
+ defaultTheme: t = Ye,
344
+ rootShouldForwardProp: r = O,
345
+ slotShouldForwardProp: i = O
346
+ } = e, f = (a) => be(E({}, a, {
347
+ theme: Y(E({}, a, {
348
+ defaultTheme: t,
349
+ themeId: o
350
+ }))
351
+ }));
352
+ return f.__mui_systemSx = !0, (a, S = {}) => {
353
+ Ce(a, (d) => d.filter((R) => !(R != null && R.__mui_systemSx)));
354
+ const {
355
+ name: l,
356
+ slot: m,
357
+ skipVariantsResolver: y,
358
+ skipSx: b,
359
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
360
+ // For more details: https://github.com/mui/material-ui/pull/37908
361
+ overridesResolver: h = De(J(m))
362
+ } = S, w = z(S, Ie), C = y !== void 0 ? y : (
363
+ // TODO v6: remove `Root` in the next major release
364
+ // For more details: https://github.com/mui/material-ui/pull/37908
365
+ m && m !== "Root" && m !== "root" || !1
366
+ ), p = b || !1;
367
+ let n;
368
+ process.env.NODE_ENV !== "production" && l && (n = `${l}-${J(m || "Root")}`);
369
+ let T = O;
370
+ m === "Root" || m === "root" ? T = r : m ? T = i : je(a) && (T = void 0);
371
+ const M = $e(a, E({
372
+ shouldForwardProp: T,
373
+ label: n
374
+ }, w)), g = (d) => typeof d == "function" && d.__emotion_real !== d || Re(d) ? (R) => D(d, E({}, R, {
375
+ theme: Y({
376
+ theme: R.theme,
377
+ defaultTheme: t,
378
+ themeId: o
379
+ })
380
+ })) : d, I = (d, ...R) => {
381
+ let x = g(d);
382
+ const P = R ? R.map(g) : [];
383
+ l && h && P.push((v) => {
384
+ const _ = Y(E({}, v, {
385
+ defaultTheme: t,
386
+ themeId: o
387
+ }));
388
+ if (!_.components || !_.components[l] || !_.components[l].styleOverrides)
389
+ return null;
390
+ const $ = _.components[l].styleOverrides, A = {};
391
+ return Object.entries($).forEach(([N, V]) => {
392
+ A[N] = D(V, E({}, v, {
393
+ theme: _
394
+ }));
395
+ }), h(v, A);
396
+ }), l && !C && P.push((v) => {
397
+ var _;
398
+ const $ = Y(E({}, v, {
399
+ defaultTheme: t,
400
+ themeId: o
401
+ })), A = $ == null || (_ = $.components) == null || (_ = _[l]) == null ? void 0 : _.variants;
402
+ return D({
403
+ variants: A
404
+ }, E({}, v, {
405
+ theme: $
406
+ }));
407
+ }), p || P.push(f);
408
+ const L = P.length - R.length;
409
+ if (Array.isArray(d) && L > 0) {
410
+ const v = new Array(L).fill("");
411
+ x = [...d, ...v], x.raw = [...d.raw, ...v];
412
+ }
413
+ const F = M(x, ...P);
414
+ if (process.env.NODE_ENV !== "production") {
415
+ let v;
416
+ l && (v = `${l}${_e(m || "")}`), v === void 0 && (v = `Styled(${xe(a)})`), F.displayName = v;
417
+ }
418
+ return a.muiName && (F.muiName = a.muiName), F;
419
+ };
420
+ return M.withConfig && (I.withConfig = M.withConfig), I;
421
+ };
422
+ }
423
+ function Ve(e) {
424
+ const {
425
+ theme: o,
426
+ name: t,
427
+ props: r
428
+ } = e;
429
+ return !o || !o.components || !o.components[t] || !o.components[t].defaultProps ? r : re(o.components[t].defaultProps, r);
430
+ }
431
+ function ke({
432
+ props: e,
433
+ name: o,
434
+ defaultTheme: t,
435
+ themeId: r
436
+ }) {
437
+ let i = Te(t);
438
+ return r && (i = i[r] || i), Ve({
439
+ theme: i,
440
+ name: o,
441
+ props: e
442
+ });
443
+ }
444
+ function Ze({
445
+ props: e,
446
+ name: o
447
+ }) {
448
+ return ke({
449
+ props: e,
450
+ name: o,
451
+ defaultTheme: K,
452
+ themeId: Q
453
+ });
454
+ }
455
+ const ze = (e) => O(e) && e !== "classes", Be = O, Je = Ne({
456
+ themeId: Q,
457
+ defaultTheme: K,
458
+ rootShouldForwardProp: ze
459
+ });
460
+ export {
461
+ He as a,
462
+ Ne as b,
463
+ Ge as c,
464
+ ke as d,
465
+ re as e,
466
+ Z as f,
467
+ Xe as g,
468
+ Be as h,
469
+ ze as r,
470
+ Je as s,
471
+ Ze as u
472
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";const d=require("./defaultTheme-DdZ2uQhZ.cjs"),Se=require("@emotion/styled");require("@emotion/react");/**
2
+ * @mui/styled-engine v5.15.9
3
+ *
4
+ * @license MIT
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */function ve(e,o){const r=Se(e,o);return process.env.NODE_ENV!=="production"?(...t)=>{const i=typeof e=="string"?`"${e}"`:"component";return t.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
8
+ `)):t.some(f=>f===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...t)}:r}const Ee=(e,o)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=o(e.__emotion_styles))};var q={exports:{}},u={};/**
9
+ * @license React
10
+ * react-is.production.min.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */var G;function Te(){if(G)return u;G=1;var e=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),a=Symbol.for("react.context"),S=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),$;$=Symbol.for("react.module.reference");function h(n){if(typeof n=="object"&&n!==null){var b=n.$$typeof;switch(b){case e:switch(n=n.type,n){case r:case i:case t:case y:case p:return n;default:switch(n=n&&n.$$typeof,n){case S:case a:case l:case v:case T:case f:return n;default:return b}}case o:return b}}}return u.ContextConsumer=a,u.ContextProvider=f,u.Element=e,u.ForwardRef=l,u.Fragment=r,u.Lazy=v,u.Memo=T,u.Portal=o,u.Profiler=i,u.StrictMode=t,u.Suspense=y,u.SuspenseList=p,u.isAsyncMode=function(){return!1},u.isConcurrentMode=function(){return!1},u.isContextConsumer=function(n){return h(n)===a},u.isContextProvider=function(n){return h(n)===f},u.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===e},u.isForwardRef=function(n){return h(n)===l},u.isFragment=function(n){return h(n)===r},u.isLazy=function(n){return h(n)===v},u.isMemo=function(n){return h(n)===T},u.isPortal=function(n){return h(n)===o},u.isProfiler=function(n){return h(n)===i},u.isStrictMode=function(n){return h(n)===t},u.isSuspense=function(n){return h(n)===y},u.isSuspenseList=function(n){return h(n)===p},u.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===r||n===i||n===t||n===y||n===p||n===w||typeof n=="object"&&n!==null&&(n.$$typeof===v||n.$$typeof===T||n.$$typeof===f||n.$$typeof===a||n.$$typeof===l||n.$$typeof===$||n.getModuleId!==void 0)},u.typeOf=h,u}var c={};/**
17
+ * @license React
18
+ * react-is.development.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */var Z;function Pe(){return Z||(Z=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),a=Symbol.for("react.context"),S=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),$=!1,h=!1,n=!1,b=!1,A=!1,M;M=Symbol.for("react.module.reference");function I(s){return!!(typeof s=="string"||typeof s=="function"||s===r||s===i||A||s===t||s===y||s===p||b||s===w||$||h||n||typeof s=="object"&&s!==null&&(s.$$typeof===v||s.$$typeof===T||s.$$typeof===f||s.$$typeof===a||s.$$typeof===l||s.$$typeof===M||s.getModuleId!==void 0))}function m(s){if(typeof s=="object"&&s!==null){var k=s.$$typeof;switch(k){case e:var j=s.type;switch(j){case r:case i:case t:case y:case p:return j;default:var X=j&&j.$$typeof;switch(X){case S:case a:case l:case v:case T:case f:return X;default:return k}}case o:return k}}}var P=a,F=f,R=e,L=l,g=r,_=v,E=T,x=o,C=i,N=t,V=y,ne=p,W=!1,H=!1;function oe(s){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function se(s){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(s){return m(s)===a}function ue(s){return m(s)===f}function ce(s){return typeof s=="object"&&s!==null&&s.$$typeof===e}function fe(s){return m(s)===l}function ae(s){return m(s)===r}function le(s){return m(s)===v}function de(s){return m(s)===T}function me(s){return m(s)===o}function ye(s){return m(s)===i}function pe(s){return m(s)===t}function he(s){return m(s)===y}function _e(s){return m(s)===p}c.ContextConsumer=P,c.ContextProvider=F,c.Element=R,c.ForwardRef=L,c.Fragment=g,c.Lazy=_,c.Memo=E,c.Portal=x,c.Profiler=C,c.StrictMode=N,c.Suspense=V,c.SuspenseList=ne,c.isAsyncMode=oe,c.isConcurrentMode=se,c.isContextConsumer=ie,c.isContextProvider=ue,c.isElement=ce,c.isForwardRef=fe,c.isFragment=ae,c.isLazy=le,c.isMemo=de,c.isPortal=me,c.isProfiler=ye,c.isStrictMode=pe,c.isSuspense=he,c.isSuspenseList=_e,c.isValidElementType=I,c.typeOf=m}()),c}process.env.NODE_ENV==="production"?q.exports=Te():q.exports=Pe();var z=q.exports;const be=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Re(e){const o=`${e}`.match(be);return o&&o[1]||""}function K(e,o=""){return e.displayName||e.name||Re(e)||o}function B(e,o,r){const t=K(o);return e.displayName||(t!==""?`${r}(${t})`:r)}function xe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return K(e,"Component");if(typeof e=="object")switch(e.$$typeof){case z.ForwardRef:return B(e,e.render,"ForwardRef");case z.Memo:return B(e,e.type,"memo");default:return}}}function U(e,o){const r=d._extends({},o);return Object.keys(e).forEach(t=>{if(t.toString().match(/^(components|slots)$/))r[t]=d._extends({},e[t],r[t]);else if(t.toString().match(/^(componentsProps|slotProps)$/)){const i=e[t]||{},f=o[t];r[t]={},!f||!Object.keys(f)?r[t]=i:!i||!Object.keys(i)?r[t]=f:(r[t]=d._extends({},f),Object.keys(i).forEach(a=>{r[t][a]=U(i[a],f[a])}))}else r[t]===void 0&&(r[t]=e[t])}),r}function $e(e,o,r=void 0){const t={};return Object.keys(e).forEach(i=>{t[i]=e[i].reduce((f,a)=>{if(a){const S=o(a);S!==""&&f.push(S),r&&r[a]&&f.push(r[a])}return f},[]).join(" ")}),t}function Ce(e,o,r="Mui"){const t={};return o.forEach(i=>{t[i]=d.generateUtilityClass(e,i,r)}),t}function Q(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(o=0;o<i;o++)e[o]&&(r=Q(e[o]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function we(){for(var e,o,r=0,t="",i=arguments.length;r<i;r++)(e=arguments[r])&&(o=Q(e))&&(t&&(t+=" "),t+=o);return t}const Ae=["ownerState"],Me=["variants"],Fe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ge(e){return Object.keys(e).length===0}function Oe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function O(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ie=d.createTheme(),J=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function D({defaultTheme:e,theme:o,themeId:r}){return ge(o)?e:o[r]||o}function Le(e){return e?(o,r)=>r[e]:null}function Y(e,o){let{ownerState:r}=o,t=d._objectWithoutPropertiesLoose(o,Ae);const i=typeof e=="function"?e(d._extends({ownerState:r},t)):e;if(Array.isArray(i))return i.flatMap(f=>Y(f,d._extends({ownerState:r},t)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:f=[]}=i;let S=d._objectWithoutPropertiesLoose(i,Me);return f.forEach(l=>{let y=!0;typeof l.props=="function"?y=l.props(d._extends({ownerState:r},t)):Object.keys(l.props).forEach(p=>{(r==null?void 0:r[p])!==l.props[p]&&t[p]!==l.props[p]&&(y=!1)}),y&&(Array.isArray(S)||(S=[S]),S.push(typeof l.style=="function"?l.style(d._extends({ownerState:r},t)):l.style))}),S}return i}function ee(e={}){const{themeId:o,defaultTheme:r=Ie,rootShouldForwardProp:t=O,slotShouldForwardProp:i=O}=e,f=a=>d.styleFunctionSx(d._extends({},a,{theme:D(d._extends({},a,{defaultTheme:r,themeId:o}))}));return f.__mui_systemSx=!0,(a,S={})=>{Ee(a,m=>m.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:y,skipVariantsResolver:p,skipSx:T,overridesResolver:v=Le(J(y))}=S,w=d._objectWithoutPropertiesLoose(S,Fe),$=p!==void 0?p:y&&y!=="Root"&&y!=="root"||!1,h=T||!1;let n;process.env.NODE_ENV!=="production"&&l&&(n=`${l}-${J(y||"Root")}`);let b=O;y==="Root"||y==="root"?b=t:y?b=i:Oe(a)&&(b=void 0);const A=ve(a,d._extends({shouldForwardProp:b,label:n},w)),M=m=>typeof m=="function"&&m.__emotion_real!==m||d.isPlainObject(m)?P=>Y(m,d._extends({},P,{theme:D({theme:P.theme,defaultTheme:r,themeId:o})})):m,I=(m,...P)=>{let F=M(m);const R=P?P.map(M):[];l&&v&&R.push(_=>{const E=D(d._extends({},_,{defaultTheme:r,themeId:o}));if(!E.components||!E.components[l]||!E.components[l].styleOverrides)return null;const x=E.components[l].styleOverrides,C={};return Object.entries(x).forEach(([N,V])=>{C[N]=Y(V,d._extends({},_,{theme:E}))}),v(_,C)}),l&&!$&&R.push(_=>{var E;const x=D(d._extends({},_,{defaultTheme:r,themeId:o})),C=x==null||(E=x.components)==null||(E=E[l])==null?void 0:E.variants;return Y({variants:C},d._extends({},_,{theme:x}))}),h||R.push(f);const L=R.length-P.length;if(Array.isArray(m)&&L>0){const _=new Array(L).fill("");F=[...m,..._],F.raw=[...m.raw,..._]}const g=A(F,...R);if(process.env.NODE_ENV!=="production"){let _;l&&(_=`${l}${d.capitalize(y||"")}`),_===void 0&&(_=`Styled(${xe(a)})`),g.displayName=_}return a.muiName&&(g.muiName=a.muiName),g};return A.withConfig&&(I.withConfig=A.withConfig),I}}function je(e){const{theme:o,name:r,props:t}=e;return!o||!o.components||!o.components[r]||!o.components[r].defaultProps?t:U(o.components[r].defaultProps,t)}function te({props:e,name:o,defaultTheme:r,themeId:t}){let i=d.useTheme(r);return t&&(i=i[t]||i),je({theme:i,name:o,props:e})}function De({props:e,name:o}){return te({props:e,name:o,defaultTheme:d.defaultTheme,themeId:d.THEME_ID})}const re=e=>O(e)&&e!=="classes",Ye=O,Ne=ee({themeId:d.THEME_ID,defaultTheme:d.defaultTheme,rootShouldForwardProp:re});exports.clsx=we;exports.composeClasses=$e;exports.createStyled=ee;exports.generateUtilityClasses=Ce;exports.reactIsExports=z;exports.resolveProps=U;exports.rootShouldForwardProp=re;exports.slotShouldForwardProp=Ye;exports.styled=Ne;exports.useThemeProps=De;exports.useThemeProps$1=te;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./defaultTheme-DdZ2uQhZ.cjs"),l=require("react");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=d(l);function f(e,n){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||n(...o)}}function y(e){const{prototype:n={}}=e;return!!n.isReactComponent}function m(e,n,t,o,s){const c=e[n],a=s||n;if(c==null||typeof window>"u")return null;let u;return typeof c=="function"&&!y(c)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const T=f(r.PropTypes.elementType,m),E=r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object]),h=E;function p(e,n){typeof e=="function"?e(n):e&&(e.current=n)}const R=typeof window<"u"?i.useLayoutEffect:i.useEffect;function g(...e){return i.useMemo(()=>e.every(n=>n==null)?null:n=>{e.forEach(t=>{p(t,n)})},e)}exports.chainPropTypes=f;exports.elementTypeAcceptingRef=T;exports.refType=h;exports.setRef=p;exports.useEnhancedEffect=R;exports.useForkRef=g;
@@ -0,0 +1,44 @@
1
+ import { P as i } from "./defaultTheme-BKohU5FP.js";
2
+ import * as c from "react";
3
+ function s(e, n) {
4
+ return process.env.NODE_ENV === "production" ? () => null : function(...o) {
5
+ return e(...o) || n(...o);
6
+ };
7
+ }
8
+ function a(e) {
9
+ const {
10
+ prototype: n = {}
11
+ } = e;
12
+ return !!n.isReactComponent;
13
+ }
14
+ function l(e, n, t, o, f) {
15
+ const r = e[n], p = f || n;
16
+ if (r == null || // When server-side rendering React doesn't warn either.
17
+ // This is not an accurate check for SSR.
18
+ // This is only in place for emotion compat.
19
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
20
+ typeof window > "u")
21
+ return null;
22
+ let u;
23
+ return typeof r == "function" && !a(r) && (u = "Did you accidentally provide a plain function component instead?"), u !== void 0 ? new Error(`Invalid ${o} \`${p}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
24
+ }
25
+ const E = s(i.elementType, l), d = i.oneOfType([i.func, i.object]), T = d;
26
+ function y(e, n) {
27
+ typeof e == "function" ? e(n) : e && (e.current = n);
28
+ }
29
+ const h = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
30
+ function w(...e) {
31
+ return c.useMemo(() => e.every((n) => n == null) ? null : (n) => {
32
+ e.forEach((t) => {
33
+ y(t, n);
34
+ });
35
+ }, e);
36
+ }
37
+ export {
38
+ w as a,
39
+ s as c,
40
+ E as e,
41
+ T as r,
42
+ y as s,
43
+ h as u
44
+ };
@@ -0,0 +1,9 @@
1
+ import * as s from "react";
2
+ import { u, T as o, b as t } from "./defaultTheme-BKohU5FP.js";
3
+ function a() {
4
+ const e = u(t);
5
+ return process.env.NODE_ENV !== "production" && s.useDebugValue(e), e[o] || e;
6
+ }
7
+ export {
8
+ a as u
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";const c=require("react"),r=require("./defaultTheme-DdZ2uQhZ.cjs");function o(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=o(c);function a(){const e=r.useTheme(r.defaultTheme);return process.env.NODE_ENV!=="production"&&s.useDebugValue(e),e[r.THEME_ID]||e}exports.useTheme=a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "0.0.1-dev.1708295525",
3
+ "version": "0.0.1-dev.1708363713",
4
4
  "private": false,
5
5
  "author": "CGI Learning-hub Team",
6
6
  "description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
@@ -30,6 +30,8 @@
30
30
  "dist"
31
31
  ],
32
32
  "devDependencies": {
33
+ "@mui/base": "5.0.0-beta.36",
34
+ "@mui/icons-material": "5.15.10",
33
35
  "@mui/material": "5.15.7",
34
36
  "autoprefixer": "10.4.17",
35
37
  "postcss": "8.4.33",