@cgi-learning-hub/ui 1.1.0-dev.1724252058 → 1.1.0-dev.1724331727

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 (69) hide show
  1. package/dist/{Box-Bawb5zHX.js → Box-esDTbXB3.js} +13 -13
  2. package/dist/{Button-C__-QOJY.js → Button-AGmTBZc6.js} +3 -3
  3. package/dist/{ButtonBase-4F5roLHd.js → ButtonBase-SWE4hCL5.js} +26 -26
  4. package/dist/{CircularProgress-BNazIBar.js → CircularProgress-B1FGa0GI.js} +3 -3
  5. package/dist/{DatePicker-DGVeagTz.js → DatePicker-CBbEZtFp.js} +17 -17
  6. package/dist/{DefaultButton-F67BOmrx.js → DefaultButton-Ctg4CY0U.js} +5 -5
  7. package/dist/{IconButton-D_deQOvN.js → IconButton-CSDSU5zJ.js} +4 -4
  8. package/dist/{InputAdornment-hNrnvXW9.js → InputAdornment-Bcu9I8uS.js} +8 -8
  9. package/dist/{InputBase-DNkF-TAp.js → InputBase-DUJMZhoC.js} +4 -4
  10. package/dist/{Stack-BJ2ths-g.js → Stack-D91dopIg.js} +6 -6
  11. package/dist/{Tabs-CWujD0SK.js → Tabs-tHFGULLQ.js} +6 -6
  12. package/dist/{TextField-DDmGQyEr.js → TextField-B4qTEIO2.js} +6 -6
  13. package/dist/{Tooltip-D42pzHKW.js → Tooltip-BNHvGJbI.js} +15 -15
  14. package/dist/{Typography-B2XMXu83.js → Typography-DKaWjusd.js} +2 -2
  15. package/dist/assets/index.css +1 -1
  16. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  17. package/dist/components/Loader/Loader.es.js +1 -1
  18. package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
  19. package/dist/components/PaperHeader/PaperHeader.stories.es.js +2 -2
  20. package/dist/components/UserSelectionSection/index.cjs.js +1 -0
  21. package/dist/components/UserSelectionSection/index.d.ts +3 -0
  22. package/dist/components/UserSelectionSection/index.es.js +62 -0
  23. package/dist/components/UserSelectionSection/style.cjs.js +1 -0
  24. package/dist/components/UserSelectionSection/style.es.js +44 -0
  25. package/dist/components/UserSelectionSection/types.cjs.js +1 -0
  26. package/dist/components/UserSelectionSection/types.d.ts +34 -0
  27. package/dist/components/UserSelectionSection/types.es.js +1 -0
  28. package/dist/components/UserSelectionSection/utils.cjs.js +1 -0
  29. package/dist/components/UserSelectionSection/utils.d.ts +10 -0
  30. package/dist/components/UserSelectionSection/utils.es.js +13 -0
  31. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
  32. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +2 -2
  33. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  34. package/dist/components/buttons/IconButton.stories.es.js +3 -3
  35. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  36. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  37. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  38. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  39. package/dist/components/buttons/index.es.js +1 -1
  40. package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
  41. package/dist/components/index.cjs.js +1 -1
  42. package/dist/components/index.d.ts +1 -0
  43. package/dist/components/index.es.js +109 -107
  44. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  45. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +11 -10
  46. package/dist/components/inputs/SearchInput/SearchInput.es.js +4 -4
  47. package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
  48. package/dist/components/lists/FileList/FileList.es.js +1 -1
  49. package/dist/components/lists/FileList/FileListItem.es.js +6 -6
  50. package/dist/components/lists/TabList.stories.es.js +4 -4
  51. package/dist/components/pickers/DatePicker/DatePicker.es.js +2 -2
  52. package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +1 -1
  53. package/dist/components/pickers/DatePicker/index.es.js +1 -1
  54. package/dist/components/pickers/index.es.js +1 -1
  55. package/dist/{createStyled-CzVedz8V.js → createStyled-D33y37iM.js} +2 -2
  56. package/dist/{createSvgIcon-DjuUwmEp.js → createSvgIcon-BSaiInKs.js} +9 -9
  57. package/dist/{createSvgIcon-B8vHI3I6.js → createSvgIcon-CqnqGmKb.js} +2 -2
  58. package/dist/{fr-By4s91yO.js → fr-C9KY9a-o.js} +13 -13
  59. package/dist/{identifier-D-ng7Qqa.js → identifier-7t6x6NpL.js} +6 -6
  60. package/dist/index.cjs.js +1 -1
  61. package/dist/index.es.js +109 -107
  62. package/dist/{refType-COGEdfch.js → refType-DD4W022k.js} +1 -1
  63. package/dist/{styled-xiAudcD_.js → styled-JogyYCCE.js} +18 -18
  64. package/dist/{useTheme-CjBTq22m.js → useTheme-BiK-zs4C.js} +1 -1
  65. package/dist/{useTheme-iNHILPzK.js → useTheme-Bu2IMnsb.js} +7 -7
  66. package/dist/{useThemeProps-BM4fCFq5.js → useThemeProps-Bah1TqHr.js} +2 -2
  67. package/dist/useThemeProps-D6xdJZDK.js +17 -0
  68. package/package.json +1 -1
  69. package/dist/useThemeProps-BVvSbkPP.js +0 -17
@@ -1,5 +1,5 @@
1
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-D-ng7Qqa.js";
2
+ import { F as Ce, u as Me, q as we, m as B, P as k, I 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-7t6x6NpL.js";
3
3
  import { jsx as We } from "react/jsx-runtime";
4
4
  const Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
5
  __proto__: null,
@@ -138,9 +138,9 @@ function Be() {
138
138
  }
139
139
  }
140
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;
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, J = !1, K = !1;
142
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;
143
+ return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
144
144
  }
145
145
  function ve(s) {
146
146
  return K || (K = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
@@ -219,11 +219,11 @@ const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
219
219
  __proto__: null,
220
220
  default: Xe,
221
221
  getFunctionName: fe
222
- }, Symbol.toStringTag, { value: "Module" })), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
222
+ }, Symbol.toStringTag, { value: "Module" })), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
223
  __proto__: null,
224
224
  default: we
225
225
  }, Symbol.toStringTag, { value: "Module" }));
226
- function J(e, o) {
226
+ function Q(e, o) {
227
227
  const t = B({}, o);
228
228
  return Object.keys(e).forEach((n) => {
229
229
  if (n.toString().match(/^(components|slots)$/))
@@ -231,7 +231,7 @@ function J(e, o) {
231
231
  else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
232
232
  const i = e[n] || {}, a = o[n];
233
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]);
234
+ t[n][u] = Q(i[u], a[u]);
235
235
  }));
236
236
  } else t[n] === void 0 && (t[n] = e[n]);
237
237
  }), t;
@@ -253,7 +253,7 @@ function Mt(e, o, t = void 0) {
253
253
  ), n;
254
254
  }
255
255
  const de = /* @__PURE__ */ ce.createContext(void 0);
256
- function Qe({
256
+ function Ze({
257
257
  value: e,
258
258
  children: o
259
259
  }) {
@@ -262,7 +262,7 @@ function Qe({
262
262
  children: o
263
263
  });
264
264
  }
265
- process.env.NODE_ENV !== "production" && (Qe.propTypes = {
265
+ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
266
266
  // ┌────────────────────────────── Warning ──────────────────────────────┐
267
267
  // │ These PropTypes are generated from the TypeScript type definitions. │
268
268
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -276,7 +276,7 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
276
276
  */
277
277
  value: k.object
278
278
  });
279
- function Ze(e) {
279
+ function Je(e) {
280
280
  const {
281
281
  theme: o,
282
282
  name: t,
@@ -285,14 +285,14 @@ function Ze(e) {
285
285
  if (!o || !o.components || !o.components[t])
286
286
  return n;
287
287
  const i = o.components[t];
288
- return i.defaultProps ? J(i.defaultProps, n) : !i.styleOverrides && !i.variants ? J(i, n) : n;
288
+ return i.defaultProps ? Q(i.defaultProps, n) : !i.styleOverrides && !i.variants ? Q(i, n) : n;
289
289
  }
290
290
  function Ke({
291
291
  props: e,
292
292
  name: o
293
293
  }) {
294
294
  const t = ce.useContext(de);
295
- return Ze({
295
+ return Je({
296
296
  props: e,
297
297
  name: o,
298
298
  theme: {
@@ -334,7 +334,7 @@ function tt() {
334
334
  e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
335
335
  }(X)), X.exports;
336
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({
337
+ const rt = /* @__PURE__ */ g(je), nt = /* @__PURE__ */ g(Ye), ot = /* @__PURE__ */ g(Qe), st = /* @__PURE__ */ g(Ge), it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
338
338
  __proto__: null,
339
339
  default: Fe,
340
340
  private_createBreakpoints: Ae,
@@ -353,7 +353,7 @@ Object.defineProperty(D, "__esModule", {
353
353
  var ft = D.default = Rt;
354
354
  D.shouldForwardProp = z;
355
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);
356
+ var b = C(et()), Z = C(tt()), ae = ht(rt), lt = nt, dt = C(ot), pt = C(st), mt = C(at), yt = C(ct);
357
357
  const vt = ["ownerState"], _t = ["variants"], St = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
358
358
  function pe(e) {
359
359
  if (typeof WeakMap != "function") return null;
@@ -400,7 +400,7 @@ function xt(e) {
400
400
  function V(e, o) {
401
401
  let {
402
402
  ownerState: t
403
- } = o, n = (0, Q.default)(o, vt);
403
+ } = o, n = (0, Z.default)(o, vt);
404
404
  const i = typeof e == "function" ? e((0, b.default)({
405
405
  ownerState: t
406
406
  }, n)) : e;
@@ -412,7 +412,7 @@ function V(e, o) {
412
412
  const {
413
413
  variants: a = []
414
414
  } = i;
415
- let _ = (0, Q.default)(i, _t);
415
+ let _ = (0, Z.default)(i, _t);
416
416
  return a.forEach((l) => {
417
417
  let p = !0;
418
418
  typeof l.props == "function" ? p = l.props((0, b.default)({
@@ -448,7 +448,7 @@ function Rt(e = {}) {
448
448
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
449
449
  // For more details: https://github.com/mui/material-ui/pull/37908
450
450
  overridesResolver: S = xt(ue(p))
451
- } = _, M = (0, Q.default)(_, St), $ = m !== void 0 ? m : (
451
+ } = _, M = (0, Z.default)(_, St), $ = m !== void 0 ? m : (
452
452
  // TODO v6: remove `Root` in the next major release
453
453
  // For more details: https://github.com/mui/material-ui/pull/37908
454
454
  p && p !== "Root" && p !== "root" || !1
@@ -519,7 +519,7 @@ const Ot = (e) => $t(e) && e !== "classes", jt = ft({
519
519
  rootShouldForwardProp: Ot
520
520
  });
521
521
  export {
522
- Qe as D,
522
+ Ze as D,
523
523
  Ot as a,
524
524
  ne as b,
525
525
  Mt as c,
@@ -527,7 +527,7 @@ export {
527
527
  $t as e,
528
528
  rt as f,
529
529
  Xe as g,
530
- J as r,
530
+ Q as r,
531
531
  jt as s,
532
532
  wt as u
533
533
  };
@@ -1,6 +1,6 @@
1
1
  import * as n from "react";
2
2
  import { ThemeContext as o } from "@emotion/react";
3
- import { n as m } from "./identifier-D-ng7Qqa.js";
3
+ import { n as m } from "./identifier-7t6x6NpL.js";
4
4
  function r(e) {
5
5
  return Object.keys(e).length === 0;
6
6
  }
@@ -1,10 +1,10 @@
1
- import { m as l, x as S, _ as N, P as x, T as E } from "./identifier-D-ng7Qqa.js";
1
+ import { m as l, y as S, _ as N, P as h, T as E } from "./identifier-7t6x6NpL.js";
2
2
  import { a as R } from "./useForkRef-DwN_Iz9R.js";
3
3
  import { i as C } from "./isHostComponent-kiaBvYVo.js";
4
4
  import * as v from "react";
5
5
  import { jsx as T } from "react/jsx-runtime";
6
- import { d as _ } from "./styled-xiAudcD_.js";
7
- import { u as k } from "./useTheme-CjBTq22m.js";
6
+ import { d as _ } from "./styled-JogyYCCE.js";
7
+ import { u as k } from "./useTheme-BiK-zs4C.js";
8
8
  function H(e, s, t) {
9
9
  return e === void 0 || C(e) ? s : l({}, s, {
10
10
  ownerState: l({}, s.ownerState, t)
@@ -18,7 +18,7 @@ function O(e, s = []) {
18
18
  t[n] = e[n];
19
19
  }), t;
20
20
  }
21
- function h(e) {
21
+ function x(e) {
22
22
  if (e === void 0)
23
23
  return {};
24
24
  const s = {};
@@ -41,7 +41,7 @@ function w(e) {
41
41
  internalRef: void 0
42
42
  };
43
43
  }
44
- const c = O(l({}, o, n)), a = h(n), d = h(o), r = s(c), u = S(r == null ? void 0 : r.className, t == null ? void 0 : t.className, i, o == null ? void 0 : o.className, n == null ? void 0 : n.className), f = l({}, r == null ? void 0 : r.style, t == null ? void 0 : t.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), p = l({}, r, t, d, a);
44
+ const c = O(l({}, o, n)), a = x(n), d = x(o), r = s(c), u = S(r == null ? void 0 : r.className, t == null ? void 0 : t.className, i, o == null ? void 0 : o.className, n == null ? void 0 : n.className), f = l({}, r == null ? void 0 : r.style, t == null ? void 0 : t.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), p = l({}, r, t, d, a);
45
45
  return u.length > 0 && (p.className = u), Object.keys(f).length > 0 && (p.style = f), {
46
46
  props: p,
47
47
  internalRef: r.ref
@@ -78,8 +78,8 @@ function $(e) {
78
78
  }, t));
79
79
  }
80
80
  process.env.NODE_ENV !== "production" && ($.propTypes = {
81
- children: x.node,
82
- value: x.bool
81
+ children: h.node,
82
+ value: h.bool
83
83
  });
84
84
  const M = () => {
85
85
  const e = v.useContext(g);
@@ -1,5 +1,5 @@
1
- import { r as n } from "./styled-xiAudcD_.js";
2
- import { u as p } from "./useTheme-CjBTq22m.js";
1
+ import { r as n } from "./styled-JogyYCCE.js";
2
+ import { u as p } from "./useTheme-BiK-zs4C.js";
3
3
  function m(t) {
4
4
  const {
5
5
  theme: e,
@@ -0,0 +1,17 @@
1
+ import { d as m } from "./styled-JogyYCCE.js";
2
+ import { T as o } from "./identifier-7t6x6NpL.js";
3
+ import { u as s } from "./useThemeProps-Bah1TqHr.js";
4
+ function a({
5
+ props: e,
6
+ name: r
7
+ }) {
8
+ return s({
9
+ props: e,
10
+ name: r,
11
+ defaultTheme: m,
12
+ themeId: o
13
+ });
14
+ }
15
+ export {
16
+ a as u
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.1.0-dev.1724252058",
3
+ "version": "1.1.0-dev.1724331727",
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",
@@ -1,17 +0,0 @@
1
- import { d as m } from "./styled-xiAudcD_.js";
2
- import { T as o } from "./identifier-D-ng7Qqa.js";
3
- import { u as s } from "./useThemeProps-BM4fCFq5.js";
4
- function a({
5
- props: e,
6
- name: r
7
- }) {
8
- return s({
9
- props: e,
10
- name: r,
11
- defaultTheme: m,
12
- themeId: o
13
- });
14
- }
15
- export {
16
- a as u
17
- };