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

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 (183) hide show
  1. package/dist/Box-2ZrLOc7U.cjs +1 -0
  2. package/dist/{Box-CONPkck2.js → Box-BJvmuM0Y.js} +30 -32
  3. package/dist/Button-HyZp1VKI.js +359 -0
  4. package/dist/Button-NhaA68Of.cjs +1 -0
  5. package/dist/ButtonBase-CnINN-P4.cjs +75 -0
  6. package/dist/ButtonBase-cOL6Mpcp.js +827 -0
  7. package/dist/CircularProgress-01RZzfpF.cjs +28 -0
  8. package/dist/CircularProgress-DO4r9-x8.js +217 -0
  9. package/dist/DatePicker-GTtXZK-p.cjs +19 -0
  10. package/dist/{DatePicker-wZ1VHlXF.js → DatePicker-vhA6Fe5s.js} +4373 -4518
  11. package/dist/DefaultButton-BMmuKPgA.cjs +1 -0
  12. package/dist/DefaultButton-CKY6tuni.js +258 -0
  13. package/dist/IconButton-3v-0zgZW.cjs +2 -0
  14. package/dist/IconButton-BBfmzBP6.js +184 -0
  15. package/dist/InputAdornment-DHmtETz3.cjs +1 -0
  16. package/dist/{InputAdornment-7ED2C-w1.js → InputAdornment-zaw7AFWU.js} +65 -81
  17. package/dist/InputBase-BpGQgBej.cjs +3 -0
  18. package/dist/InputBase-COUxfhh1.js +794 -0
  19. package/dist/Stack-D9IYPfJ8.cjs +1 -0
  20. package/dist/{Stack-BzF_6-v5.js → Stack-Dlgk5t_M.js} +60 -62
  21. package/dist/Tabs-Blo-8Ro5.js +1091 -0
  22. package/dist/Tabs-D0e7cB4l.cjs +4 -0
  23. package/dist/TextField-8AuRLRIK.cjs +12 -0
  24. package/dist/{TextField-G9MOGCdw.js → TextField-DG1754qQ.js} +2408 -3033
  25. package/dist/{Tooltip-D_4ANHAc.js → Tooltip-C7ZUZylZ.js} +3421 -4697
  26. package/dist/Tooltip-CFVJXplM.cjs +95 -0
  27. package/dist/TransitionGroupContext-BkoHK5Kx.js +14 -0
  28. package/dist/TransitionGroupContext-mYDSzffd.cjs +1 -0
  29. package/dist/Typography-DjrvRhOr.js +178 -0
  30. package/dist/Typography-YHooSvuR.cjs +1 -0
  31. package/dist/client-error-BUtdld5f.cjs +1 -0
  32. package/dist/client-error-B_-qjgAB.js +395 -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 +67 -108
  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 -0
  48. package/dist/components/EmptyState/EmptyState.d.ts +13 -0
  49. package/dist/components/EmptyState/EmptyState.es.js +31 -0
  50. package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -0
  51. package/dist/components/EmptyState/EmptyState.stories.d.ts +5 -0
  52. package/dist/components/EmptyState/EmptyState.stories.es.js +17 -0
  53. package/dist/components/EmptyState/index.cjs.js +1 -0
  54. package/dist/components/EmptyState/index.d.ts +2 -0
  55. package/dist/components/EmptyState/index.es.js +4 -0
  56. package/dist/components/FileList/FileList.cjs.js +1 -1
  57. package/dist/components/FileList/FileList.es.js +1 -1
  58. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  59. package/dist/components/FileList/FileListItem.es.js +11 -10
  60. package/dist/components/IconButton.stories.cjs.js +1 -1
  61. package/dist/components/IconButton.stories.es.js +14 -13
  62. package/dist/components/Loader/Loader.cjs.js +1 -1
  63. package/dist/components/Loader/Loader.es.js +1 -1
  64. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  65. package/dist/components/PaperHeader/PaperHeader.d.ts +1 -3
  66. package/dist/components/PaperHeader/PaperHeader.es.js +28 -26
  67. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  68. package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
  69. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  70. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  71. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  72. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  73. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  74. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  75. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  76. package/dist/components/QueryError/QueryError.es.js +38 -14
  77. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  78. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  79. package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
  80. package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
  81. package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  82. package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  83. package/dist/components/TabList.stories.cjs.js +1 -1
  84. package/dist/components/TabList.stories.es.js +87 -100
  85. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  86. package/dist/components/TextInput/TextInput.es.js +1 -1
  87. package/dist/components/index.cjs.js +1 -1
  88. package/dist/components/index.d.ts +1 -2
  89. package/dist/components/index.es.js +237 -243
  90. package/dist/createStyled--XbpooZB.js +142 -0
  91. package/dist/createStyled-CuYz_ckk.cjs +1 -0
  92. package/dist/createSvgIcon-CUiH3cta.cjs +1 -0
  93. package/dist/createSvgIcon-D29Io9jD.js +183 -0
  94. package/dist/createSvgIcon-DTc4Xvfk.cjs +2 -0
  95. package/dist/createSvgIcon-DvOXtgXV.js +76 -0
  96. package/dist/error-CRNeivL7.js +5 -0
  97. package/dist/error-Dk3o6ber.cjs +1 -0
  98. package/dist/{fr-EMw1nUC-.cjs → fr-C4bcUC-9.cjs} +1 -1
  99. package/dist/{fr-D92L3a1M.js → fr-CXEmlY0d.js} +13 -13
  100. package/dist/hooks/lazySvgImport.cjs.js +1 -0
  101. package/dist/hooks/lazySvgImport.d.ts +7 -0
  102. package/dist/hooks/lazySvgImport.es.js +34 -0
  103. package/dist/identifier-CAQ9PWqs.js +3046 -0
  104. package/dist/identifier-CWIj084w.cjs +50 -0
  105. package/dist/index.cjs.js +1 -1
  106. package/dist/index.es.js +236 -242
  107. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  108. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  109. package/dist/{ownerWindow-BoRkeomM.js → ownerWindow-C7EH1lr6.js} +2 -2
  110. package/dist/{refType-YgbJS0xl.cjs → refType-D1DDOFsy.cjs} +1 -1
  111. package/dist/{refType-BnS1d2D8.js → refType-DiVIFcsY.js} +1 -1
  112. package/dist/server-error-CeAtUo4S.cjs +1 -0
  113. package/dist/server-error-DMyaPFs8.js +400 -0
  114. package/dist/styled-Bt4oYVnF.cjs +17 -0
  115. package/dist/styled-Co-8YWfm.js +533 -0
  116. package/dist/useControlled-DKpcyPsg.cjs +3 -0
  117. package/dist/useControlled-DoRrpN8o.js +48 -0
  118. package/dist/useId-BW-oWmul.js +19 -0
  119. package/dist/useId-Cw0TtD-8.cjs +1 -0
  120. package/dist/useIsFocusVisible-Bv_7uvif.cjs +1 -0
  121. package/dist/useIsFocusVisible-DhASXQ4o.js +69 -0
  122. package/dist/{useTheme-DzMeSzHc.js → useTheme-1gSw-INq.js} +5 -5
  123. package/dist/useTheme-Dm6RnXrf.cjs +1 -0
  124. package/dist/useTheme-HJhneR9g.js +99 -0
  125. package/dist/useTheme-T2P7WhLG.cjs +1 -0
  126. package/dist/useThemeProps-BKIVQv3E.js +17 -0
  127. package/dist/useThemeProps-BfZ3lLQs.js +27 -0
  128. package/dist/useThemeProps-BpFUkYqe.cjs +1 -0
  129. package/dist/useThemeProps-Co5ylM0H.cjs +1 -0
  130. package/dist/useTimeout-BdvDipeg.js +47 -0
  131. package/dist/useTimeout-XUWYBnl6.cjs +1 -0
  132. package/package.json +15 -15
  133. package/dist/Box-BDMtAH2P.cjs +0 -1
  134. package/dist/Button-By3A0teb.js +0 -454
  135. package/dist/Button-CBAa7bmK.cjs +0 -1
  136. package/dist/ButtonBase-D0vqeM8I.js +0 -890
  137. package/dist/ButtonBase-DePtV_m6.cjs +0 -75
  138. package/dist/CircularProgress-BRnSv2J2.cjs +0 -28
  139. package/dist/CircularProgress-BrfcRJbv.js +0 -251
  140. package/dist/DatePicker-Cw1xQ3Sn.cjs +0 -19
  141. package/dist/DefaultButton-B1wjXZO7.cjs +0 -1
  142. package/dist/DefaultButton-dbnwLtyd.js +0 -351
  143. package/dist/DefaultPropsProvider-B6IbLm7M.cjs +0 -17
  144. package/dist/DefaultPropsProvider-QV6PDjPd.js +0 -468
  145. package/dist/IconButton-BiLAYORS.js +0 -239
  146. package/dist/IconButton-DE-QtB3Q.cjs +0 -2
  147. package/dist/InputAdornment-CJbpwt2R.cjs +0 -1
  148. package/dist/InputBase-LZPaeC-A.cjs +0 -3
  149. package/dist/InputBase-jbXydPMc.js +0 -802
  150. package/dist/Stack-D6Kv6y1D.cjs +0 -1
  151. package/dist/Tabs-CV_eM5RY.js +0 -1222
  152. package/dist/Tabs-DcqpjpXb.cjs +0 -4
  153. package/dist/TextField-DAxS82qf.cjs +0 -12
  154. package/dist/Tooltip-Ma-NowZd.cjs +0 -100
  155. package/dist/TransitionGroupContext-B5aSBz0G.js +0 -64
  156. package/dist/TransitionGroupContext-gQFtuZSh.cjs +0 -1
  157. package/dist/Typography-4kqbsc6q.js +0 -258
  158. package/dist/Typography-CNQVeQXr.cjs +0 -1
  159. package/dist/composeClasses-B_ETVugV.cjs +0 -1
  160. package/dist/composeClasses-zmPRtZOg.js +0 -16
  161. package/dist/createSvgIcon-B6bEgasO.js +0 -249
  162. package/dist/createSvgIcon-C92jLZ0q.cjs +0 -2
  163. package/dist/createSvgIcon-Cdsg9tFu.js +0 -88
  164. package/dist/createSvgIcon-CrOALbij.cjs +0 -1
  165. package/dist/extendSxProp-BpSXIdup.js +0 -37
  166. package/dist/extendSxProp-DVE8Tgj8.cjs +0 -1
  167. package/dist/identifier-7NboR24y.cjs +0 -59
  168. package/dist/identifier-Bsv46xiT.js +0 -2930
  169. package/dist/index-C9spydU3.js +0 -89
  170. package/dist/index-DHDspyh-.cjs +0 -1
  171. package/dist/useControlled-Bf7_InaL.cjs +0 -3
  172. package/dist/useControlled-D59BLg1S.js +0 -48
  173. package/dist/useEventCallback-BgMlqKLP.js +0 -14
  174. package/dist/useEventCallback-CrCf96iG.cjs +0 -1
  175. package/dist/useId-CyGZMA-F.js +0 -19
  176. package/dist/useId-D5Txt-1B.cjs +0 -1
  177. package/dist/useTheme-A9inJAFh.cjs +0 -1
  178. package/dist/useTheme-C0nMwKpp.js +0 -128
  179. package/dist/useTheme-Zq6D7sUp.cjs +0 -1
  180. package/dist/useThemeProps-YFPF1eJp.js +0 -40
  181. package/dist/useThemeProps-r2yCksSx.cjs +0 -1
  182. package/dist/vite-env.d.cjs.js +0 -1
  183. package/dist/vite-env.d.es.js +0 -1
@@ -1,14 +1,14 @@
1
- import { M as n } from "./identifier-Bsv46xiT.js";
2
- import * as o from "react";
3
- import { ThemeContext as m } from "@emotion/react";
1
+ import * as n from "react";
2
+ import { ThemeContext as o } from "@emotion/react";
3
+ import { n as m } from "./identifier-CAQ9PWqs.js";
4
4
  function r(e) {
5
5
  return Object.keys(e).length === 0;
6
6
  }
7
7
  function s(e = null) {
8
- const t = o.useContext(m);
8
+ const t = n.useContext(o);
9
9
  return !t || r(t) ? e : t;
10
10
  }
11
- const u = n();
11
+ const u = m();
12
12
  function f(e = u) {
13
13
  return s(e);
14
14
  }
@@ -0,0 +1 @@
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=$;
@@ -0,0 +1,99 @@
1
+ import { m as l, y as S, _ as N, P as h, T as E } from "./identifier-CAQ9PWqs.js";
2
+ import { a as R } from "./useForkRef-DwN_Iz9R.js";
3
+ import { i as C } from "./isHostComponent-kiaBvYVo.js";
4
+ import * as v from "react";
5
+ import { jsx as T } from "react/jsx-runtime";
6
+ import { d as _ } from "./styled-Co-8YWfm.js";
7
+ import { u as k } from "./useTheme-1gSw-INq.js";
8
+ function H(e, s, t) {
9
+ return e === void 0 || C(e) ? s : l({}, s, {
10
+ ownerState: l({}, s.ownerState, t)
11
+ });
12
+ }
13
+ function O(e, s = []) {
14
+ if (e === void 0)
15
+ return {};
16
+ const t = {};
17
+ return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
18
+ t[n] = e[n];
19
+ }), t;
20
+ }
21
+ function x(e) {
22
+ if (e === void 0)
23
+ return {};
24
+ const s = {};
25
+ return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((t) => {
26
+ s[t] = e[t];
27
+ }), s;
28
+ }
29
+ function w(e) {
30
+ const {
31
+ getSlotProps: s,
32
+ additionalProps: t,
33
+ externalSlotProps: n,
34
+ externalForwardedProps: o,
35
+ className: i
36
+ } = e;
37
+ if (!s) {
38
+ const y = S(t == null ? void 0 : t.className, i, o == null ? void 0 : o.className, n == null ? void 0 : n.className), P = l({}, t == null ? void 0 : t.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), m = l({}, t, o, n);
39
+ return y.length > 0 && (m.className = y), Object.keys(P).length > 0 && (m.style = P), {
40
+ props: m,
41
+ internalRef: void 0
42
+ };
43
+ }
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
+ return u.length > 0 && (p.className = u), Object.keys(f).length > 0 && (p.style = f), {
46
+ props: p,
47
+ internalRef: r.ref
48
+ };
49
+ }
50
+ function D(e, s, t) {
51
+ return typeof e == "function" ? e(s, t) : e;
52
+ }
53
+ const V = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
54
+ function L(e) {
55
+ var s;
56
+ const {
57
+ elementType: t,
58
+ externalSlotProps: n,
59
+ ownerState: o,
60
+ skipResolvingSlotProps: i = !1
61
+ } = e, c = N(e, V), a = i ? {} : D(n, o), {
62
+ props: d,
63
+ internalRef: r
64
+ } = w(l({}, c, {
65
+ externalSlotProps: a
66
+ })), u = R(r, a == null ? void 0 : a.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
67
+ return H(t, l({}, d, {
68
+ ref: u
69
+ }), o);
70
+ }
71
+ const W = ["value"], g = /* @__PURE__ */ v.createContext();
72
+ function $(e) {
73
+ let {
74
+ value: s
75
+ } = e, t = N(e, W);
76
+ return /* @__PURE__ */ T(g.Provider, l({
77
+ value: s ?? !0
78
+ }, t));
79
+ }
80
+ process.env.NODE_ENV !== "production" && ($.propTypes = {
81
+ children: h.node,
82
+ value: h.bool
83
+ });
84
+ const M = () => {
85
+ const e = v.useContext(g);
86
+ return e ?? !1;
87
+ };
88
+ function q() {
89
+ const e = k(_);
90
+ return process.env.NODE_ENV !== "production" && v.useDebugValue(e), e[E] || e;
91
+ }
92
+ export {
93
+ $ as R,
94
+ M as a,
95
+ L as b,
96
+ H as c,
97
+ O as e,
98
+ q as u
99
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react"),o=require("@emotion/react"),s=require("./identifier-CWIj084w.cjs");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=i(u);function f(e){return Object.keys(e).length===0}function c(e=null){const t=a.useContext(o.ThemeContext);return!t||f(t)?e:t}const m=s.createTheme$1();function l(e=m){return c(e)}exports.useTheme=l;exports.useTheme$1=c;
@@ -0,0 +1,17 @@
1
+ import { d as m } from "./styled-Co-8YWfm.js";
2
+ import { T as o } from "./identifier-CAQ9PWqs.js";
3
+ import { u as s } from "./useThemeProps-BfZ3lLQs.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
+ };
@@ -0,0 +1,27 @@
1
+ import { r as n } from "./styled-Co-8YWfm.js";
2
+ import { u as p } from "./useTheme-1gSw-INq.js";
3
+ function m(t) {
4
+ const {
5
+ theme: e,
6
+ name: o,
7
+ props: r
8
+ } = t;
9
+ return !e || !e.components || !e.components[o] || !e.components[o].defaultProps ? r : n(e.components[o].defaultProps, r);
10
+ }
11
+ function a({
12
+ props: t,
13
+ name: e,
14
+ defaultTheme: o,
15
+ themeId: r
16
+ }) {
17
+ let s = p(o);
18
+ return r && (s = s[r] || s), m({
19
+ theme: s,
20
+ name: e,
21
+ props: t
22
+ });
23
+ }
24
+ export {
25
+ m as g,
26
+ a as u
27
+ };
@@ -0,0 +1 @@
1
+ "use strict";const p=require("./styled-Bt4oYVnF.cjs"),m=require("./useTheme-T2P7WhLG.cjs");function n(t){const{theme:e,name:s,props:o}=t;return!e||!e.components||!e.components[s]||!e.components[s].defaultProps?o:p.resolveProps(e.components[s].defaultProps,o)}function u({props:t,name:e,defaultTheme:s,themeId:o}){let r=m.useTheme(s);return o&&(r=r[o]||r),n({theme:r,name:e,props:t})}exports.getThemeProps=n;exports.useThemeProps=u;
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./styled-Bt4oYVnF.cjs"),t=require("./identifier-CWIj084w.cjs"),u=require("./useThemeProps-BpFUkYqe.cjs");function i({props:e,name:r}){return u.useThemeProps({props:e,name:r,defaultTheme:s.defaultTheme,themeId:t.THEME_ID})}exports.useThemeProps=i;
@@ -0,0 +1,47 @@
1
+ import * as u from "react";
2
+ import { u as c } from "./useForkRef-DwN_Iz9R.js";
3
+ function l(t) {
4
+ const r = u.useRef(t);
5
+ return c(() => {
6
+ r.current = t;
7
+ }), u.useRef((...e) => (
8
+ // @ts-expect-error hide `this`
9
+ (0, r.current)(...e)
10
+ )).current;
11
+ }
12
+ const s = {};
13
+ function i(t, r) {
14
+ const e = u.useRef(s);
15
+ return e.current === s && (e.current = t(r)), e;
16
+ }
17
+ const o = [];
18
+ function f(t) {
19
+ u.useEffect(t, o);
20
+ }
21
+ class n {
22
+ constructor() {
23
+ this.currentId = null, this.clear = () => {
24
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
25
+ }, this.disposeEffect = () => this.clear;
26
+ }
27
+ static create() {
28
+ return new n();
29
+ }
30
+ /**
31
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
32
+ */
33
+ start(r, e) {
34
+ this.clear(), this.currentId = setTimeout(() => {
35
+ this.currentId = null, e();
36
+ }, r);
37
+ }
38
+ }
39
+ function h() {
40
+ const t = i(n.create).current;
41
+ return f(t.disposeEffect), t;
42
+ }
43
+ export {
44
+ n as T,
45
+ h as a,
46
+ l as u
47
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("react"),o=require("./useForkRef-CGd3Nhyb.cjs");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=f(i);function a(e){const r=n.useRef(e);return o.useEnhancedEffect(()=>{r.current=e}),n.useRef((...t)=>(0,r.current)(...t)).current}const s={};function l(e,r){const t=n.useRef(s);return t.current===s&&(t.current=e(r)),t}const d=[];function h(e){n.useEffect(e,d)}class u{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new u}start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},r)}}function m(){const e=l(u.create).current;return h(e.disposeEffect),e}exports.Timeout=u;exports.useEventCallback=a;exports.useTimeout=m;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.2.0-dev.1725451328",
3
+ "version": "1.2.0-dev.1725543340",
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,26 +30,26 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@emotion/react": "11.13.3",
34
- "@emotion/styled": "11.13.0",
35
- "@mui/icons-material": "6.0.2",
36
- "@mui/lab": "6.0.0-beta.9",
37
- "@mui/x-date-pickers": "7.15.0",
38
- "dayjs": "1.11.13",
33
+ "@emotion/react": "11.11.4",
34
+ "@emotion/styled": "11.11.5",
35
+ "@mui/icons-material": "5.16.4",
36
+ "@mui/lab": "5.0.0-alpha.172",
37
+ "@mui/x-date-pickers": "7.10.0",
38
+ "dayjs": "1.11.11",
39
39
  "react-dropzone": "14.2.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@reduxjs/toolkit": "2.2.7",
43
- "@types/react": "18.3.5",
42
+ "@reduxjs/toolkit": "2.2.6",
43
+ "@types/react": "18.3.3",
44
44
  "@types/react-dom": "18.3.0",
45
- "autoprefixer": "10.4.20",
46
- "postcss": "8.4.45",
47
- "tailwindcss": "3.4.10"
45
+ "autoprefixer": "10.4.19",
46
+ "postcss": "8.4.39",
47
+ "tailwindcss": "3.4.6"
48
48
  },
49
49
  "peerDependencies": {
50
- "@mui/material": "^6",
51
- "react": "^18",
52
- "react-dom": "^18"
50
+ "@mui/material": "^5.0.0",
51
+ "react": "^18.0.0",
52
+ "react-dom": "^18.0.0"
53
53
  },
54
54
  "scripts": {
55
55
  "dev": "vite",
@@ -1 +0,0 @@
1
- "use strict";const e=require("./identifier-7NboR24y.cjs"),y=require("react"),T=require("react/jsx-runtime"),P=require("./useTheme-Zq6D7sUp.cjs"),h=require("./extendSxProp-DVE8Tgj8.cjs");function b(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const B=b(y);function N(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:c}=o,l=e.styled("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return B.forwardRef(function(i,d){const a=P.useTheme(s),{className:f,component:m="div",...x}=h.extendSxProp(i);return T.jsx(l,{as:m,ref:d,className:e.clsx(f,c?c(r):r),theme:t&&a[t]||a,...x})})}const g=e.generateUtilityClasses("MuiBox",["root"]),p=g,C=e.createTheme(),u=N({themeId:e.THEME_ID,defaultTheme:C,defaultClassName:p.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(u.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});const O=u;exports.Box=O;exports.boxClasses=p;