@cgi-learning-hub/ui 1.2.0-dev.1726475372 → 1.2.0-dev.1726477884

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 (129) hide show
  1. package/dist/Backdrop-B8-BL3jx.js +789 -0
  2. package/dist/Backdrop-CQM1mw_6.cjs +1 -0
  3. package/dist/Button-BzvFp4sx.cjs +1 -0
  4. package/dist/{Button-CiwMrz4f.js → Button-CvUAFzG_.js} +8 -7
  5. package/dist/ButtonBase-0-NuO2tj.cjs +75 -0
  6. package/dist/{ButtonBase-SLqKsMbv.js → ButtonBase-BMflDb9x.js} +81 -80
  7. package/dist/CircularProgress-DdMAzWVy.cjs +28 -0
  8. package/dist/{CircularProgress-CMyGy943.js → CircularProgress-Dmg3SNAP.js} +15 -14
  9. package/dist/{DatePicker-DwFLe3I1.cjs → DatePicker-BEtxyoTT.cjs} +15 -15
  10. package/dist/{DatePicker-C2NB6D2n.js → DatePicker-Bz8V-O3o.js} +54 -49
  11. package/dist/DefaultButton-C73SCGlE.cjs +1 -0
  12. package/dist/{DefaultButton-BoUBlnAR.js → DefaultButton-D0x7we4I.js} +13 -12
  13. package/dist/DefaultPropsProvider-5NdZnDS0.cjs +17 -0
  14. package/dist/{DefaultPropsProvider-DjhaxXa-.js → DefaultPropsProvider-CU--SVzB.js} +117 -127
  15. package/dist/IconButton-B7jxxXOK.cjs +2 -0
  16. package/dist/{IconButton-BJnGbprU.js → IconButton-DzYEBDbu.js} +15 -14
  17. package/dist/InputAdornment-CbLgi938.cjs +1 -0
  18. package/dist/{InputAdornment-PpcxpcaW.js → InputAdornment-x1WIM2Yz.js} +10 -9
  19. package/dist/{InputBase-WXNV7_fG.js → InputBase-C1BvXunK.js} +76 -74
  20. package/dist/InputBase-C_CFype-.cjs +3 -0
  21. package/dist/{Stack-B8WfhPQe.cjs → Stack-Bvr_N6-t.cjs} +1 -1
  22. package/dist/{Stack-r7RL43ez.js → Stack-CJLo9S4b.js} +2 -2
  23. package/dist/{Tabs-Bdj0BksM.js → Tabs-Cvnp3jpR.js} +13 -11
  24. package/dist/Tabs-wj4N9aH3.cjs +4 -0
  25. package/dist/{TextField-9ZYkEzxx.js → TextField-B-GxVtVu.js} +1741 -2515
  26. package/dist/TextField-Bf0iVvZT.cjs +12 -0
  27. package/dist/Tooltip-CIuc_nUD.cjs +100 -0
  28. package/dist/{Tooltip-DTbN1pOw.js → Tooltip-CzaHtHhc.js} +317 -312
  29. package/dist/TransitionGroupContext-DMJLhY9-.js +24 -0
  30. package/dist/TransitionGroupContext-DbXD5xqS.cjs +1 -0
  31. package/dist/{Typography-DY82MH5N.js → Typography-APp4bmiX.js} +13 -12
  32. package/dist/Typography-DEzPHYLs.cjs +1 -0
  33. package/dist/assets/styles.css +1 -1
  34. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  35. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  36. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  37. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  38. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  39. package/dist/components/DatePicker/DatePicker.stories.es.js +1 -1
  40. package/dist/components/DatePicker/index.cjs.js +1 -1
  41. package/dist/components/DatePicker/index.es.js +1 -1
  42. package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
  43. package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
  44. package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  45. package/dist/components/DefaultButton/DefaultButtonIcon.es.js +17 -16
  46. package/dist/components/DefaultButton/index.cjs.js +1 -1
  47. package/dist/components/DefaultButton/index.es.js +1 -1
  48. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  49. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  50. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  51. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  52. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  53. package/dist/components/FileList/FileListItem.es.js +5 -5
  54. package/dist/components/IconButton.stories.cjs.js +1 -1
  55. package/dist/components/IconButton.stories.es.js +2 -2
  56. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  57. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +4 -3
  58. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  59. package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
  60. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  61. package/dist/components/PaperHeader/PaperHeader.stories.es.js +1 -1
  62. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  63. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  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 +3 -3
  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.es.js +115 -114
  80. package/dist/{createSvgIcon-BhmTVu_m.js → createSvgIcon-B7p9QbNy.js} +19 -18
  81. package/dist/{createSvgIcon-DlEk80Du.js → createSvgIcon-CdFwTtth.js} +14 -13
  82. package/dist/createSvgIcon-DJwoygjS.cjs +1 -0
  83. package/dist/createSvgIcon-VDwq_j-P.cjs +2 -0
  84. package/dist/{index-CRyIA2QM.js → index-C4eGfgCg.js} +1 -1
  85. package/dist/index-CMQY-kBc.js +45 -0
  86. package/dist/{index-7aduOqI8.cjs → index-D40qjF4v.cjs} +1 -1
  87. package/dist/index-D7Jwk3AM.cjs +1 -0
  88. package/dist/index.cjs.js +1 -1
  89. package/dist/index.es.js +77 -76
  90. package/dist/memoTheme-B2EWpIp3.cjs +1 -0
  91. package/dist/memoTheme-O-hJ9iBh.js +13 -0
  92. package/dist/refType-DFnOH04O.js +24 -0
  93. package/dist/refType-DdcYgSUO.cjs +1 -0
  94. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
  95. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  96. package/dist/{useEventCallback-BgMlqKLP.js → useEventCallback-BAQJJ3ye.js} +1 -1
  97. package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
  98. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  99. package/dist/useForkRef-C_4o__cU.js +15 -0
  100. package/dist/useTheme-CeUi--X1.cjs +1 -0
  101. package/dist/useTheme-DmvRg71t.js +88 -0
  102. package/dist/{useThemeProps-BYd-NHTG.cjs → useThemeProps-Bw-cwTu1.cjs} +1 -1
  103. package/dist/{useThemeProps-DD2tI2rB.js → useThemeProps-DE5uuT3t.js} +1 -1
  104. package/dist/useTimeout-COCrDKz-.cjs +1 -0
  105. package/dist/useTimeout-CcRdgCDK.js +42 -0
  106. package/package.json +1 -1
  107. package/dist/Button-CB4yAw-S.cjs +0 -1
  108. package/dist/ButtonBase-D_43d34y.cjs +0 -75
  109. package/dist/CircularProgress-DG72WOS6.cjs +0 -28
  110. package/dist/DefaultButton-DuBPX2t6.cjs +0 -1
  111. package/dist/DefaultPropsProvider-DKOXnH6X.cjs +0 -17
  112. package/dist/IconButton-BwalKkMi.cjs +0 -2
  113. package/dist/InputAdornment-JWlblqnc.cjs +0 -1
  114. package/dist/InputBase-OeRcp1ZZ.cjs +0 -3
  115. package/dist/Tabs-C27chebV.cjs +0 -4
  116. package/dist/TextField-4SmLYYTW.cjs +0 -12
  117. package/dist/Tooltip-BHgQjBJ3.cjs +0 -100
  118. package/dist/TransitionGroupContext-B5aSBz0G.js +0 -64
  119. package/dist/TransitionGroupContext-gQFtuZSh.cjs +0 -1
  120. package/dist/Typography-Dtz_Yu7Z.cjs +0 -1
  121. package/dist/createSvgIcon-D8PyZepp.cjs +0 -1
  122. package/dist/createSvgIcon-DEt1ypbw.cjs +0 -2
  123. package/dist/refType-G0JBQGmt.js +0 -29
  124. package/dist/refType-WMhKyzag.cjs +0 -1
  125. package/dist/useEventCallback-CrCf96iG.cjs +0 -1
  126. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  127. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  128. package/dist/useTheme-Cdc-CPjN.cjs +0 -1
  129. package/dist/useTheme-DDW1zTPK.js +0 -128
@@ -1,29 +0,0 @@
1
- import { P as o } from "./identifier-nbk7LEJv.js";
2
- function a(n, e) {
3
- return process.env.NODE_ENV === "production" ? () => null : function(...t) {
4
- return n(...t) || e(...t);
5
- };
6
- }
7
- function f(n) {
8
- const {
9
- prototype: e = {}
10
- } = n;
11
- return !!e.isReactComponent;
12
- }
13
- function l(n, e, p, t, c) {
14
- const i = n[e], u = c || e;
15
- if (i == null || // When server-side rendering React doesn't warn either.
16
- // This is not an accurate check for SSR.
17
- // This is only in place for emotion compat.
18
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
19
- typeof window > "u")
20
- return null;
21
- let r;
22
- return typeof i == "function" && !f(i) && (r = "Did you accidentally provide a plain function component instead?"), r !== void 0 ? new Error(`Invalid ${t} \`${u}\` supplied to \`${p}\`. Expected an element type that can hold a ref. ${r} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
23
- }
24
- const d = a(o.elementType, l), m = o.oneOfType([o.func, o.object]);
25
- export {
26
- a as c,
27
- d as e,
28
- m as r
29
- };
@@ -1 +0,0 @@
1
- "use strict";const o=require("./identifier-icEThk5F.cjs");function c(n,e){return process.env.NODE_ENV==="production"?()=>null:function(...t){return n(...t)||e(...t)}}function s(n){const{prototype:e={}}=n;return!!e.isReactComponent}function l(n,e,p,t,u){const i=n[e],f=u||e;if(i==null||typeof window>"u")return null;let r;return typeof i=="function"&&!s(i)&&(r="Did you accidentally provide a plain function component instead?"),r!==void 0?new Error(`Invalid ${t} \`${f}\` supplied to \`${p}\`. Expected an element type that can hold a ref. ${r} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const a=c(o.PropTypes.elementType,l),y=o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]);exports.chainPropTypes=c;exports.elementTypeAcceptingRef=a;exports.refType=y;
@@ -1 +0,0 @@
1
- "use strict";const u=require("react"),a=require("./useForkRef-CGd3Nhyb.cjs");function o(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 c=o(u);function s(e){const t=c.useRef(e);return a.useEnhancedEffect(()=>{t.current=e}),c.useRef((...r)=>(0,t.current)(...r)).current}exports.useEventCallback=s;
@@ -1 +0,0 @@
1
- "use strict";const o=require("react");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=r(o);function f(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const s=typeof window<"u"?c.useLayoutEffect:c.useEffect;function i(...e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{f(n,t)})},e)}exports.setRef=f;exports.useEnhancedEffect=s;exports.useForkRef=i;
@@ -1,17 +0,0 @@
1
- import * as t from "react";
2
- function f(e, n) {
3
- typeof e == "function" ? e(n) : e && (e.current = n);
4
- }
5
- const o = typeof window < "u" ? t.useLayoutEffect : t.useEffect;
6
- function c(...e) {
7
- return t.useMemo(() => e.every((n) => n == null) ? null : (n) => {
8
- e.forEach((u) => {
9
- f(u, n);
10
- });
11
- }, e);
12
- }
13
- export {
14
- c as a,
15
- f as s,
16
- o as u
17
- };
@@ -1 +0,0 @@
1
- "use strict";const f=require("./identifier-icEThk5F.cjs"),H=require("./useForkRef-CGd3Nhyb.cjs"),q=require("react"),C=require("react/jsx-runtime"),D=require("./DefaultPropsProvider-DKOXnH6X.cjs"),S=require("./useTheme-cn0PfKIP.cjs");function b(e){const s=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(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const g=b(q);function _(e){return typeof e=="string"}function O(e,s,t){return e===void 0||_(e)?s:{...s,ownerState:{...s.ownerState,...t}}}function R(e,s=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!s.includes(n)).forEach(n=>{t[n]=e[n]}),t}function E(e){if(e===void 0)return{};const s={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{s[t]=e[t]}),s}function p(e){const{getSlotProps:s,additionalProps:t,externalSlotProps:n,externalForwardedProps:c,className:i}=e;if(!s){const h=f.clsx(t==null?void 0:t.className,i,c==null?void 0:c.className,n==null?void 0:n.className),N={...t==null?void 0:t.style,...c==null?void 0:c.style,...n==null?void 0:n.style},v={...t,...c,...n};return h.length>0&&(v.className=h),Object.keys(N).length>0&&(v.style=N),{props:v,internalRef:void 0}}const r=R({...c,...n}),l=E(n),a=E(c),u=s(r),m=f.clsx(u==null?void 0:u.className,t==null?void 0:t.className,i,c==null?void 0:c.className,n==null?void 0:n.className),o={...u==null?void 0:u.style,...t==null?void 0:t.style,...c==null?void 0:c.style,...n==null?void 0:n.style},y={...u,...t,...a,...l};return m.length>0&&(y.className=m),Object.keys(o).length>0&&(y.style=o),{props:y,internalRef:u.ref}}function d(e,s,t){return typeof e=="function"?e(s,t):e}function j(e){var o;const{elementType:s,externalSlotProps:t,ownerState:n,skipResolvingSlotProps:c=!1,...i}=e,r=c?{}:d(t,n),{props:l,internalRef:a}=p({...i,externalSlotProps:r}),u=H.useForkRef(a,r==null?void 0:r.ref,(o=e.additionalProps)==null?void 0:o.ref);return O(s,{...l,ref:u},n)}const T=g.createContext();function k({value:e,...s}){return C.jsx(T.Provider,{value:e??!0,...s})}process.env.NODE_ENV!=="production"&&(k.propTypes={children:f.PropTypes.node,value:f.PropTypes.bool});const V=()=>g.useContext(T)??!1;function $(){const e=S.useTheme(D.defaultTheme);return process.env.NODE_ENV!=="production"&&g.useDebugValue(e),e[f.THEME_ID]||e}exports.RtlProvider=k;exports.appendOwnerState=O;exports.extractEventHandlers=R;exports.mergeSlotProps=p;exports.resolveComponentProps=d;exports.useRtl=V;exports.useSlotProps=j;exports.useTheme=$;
@@ -1,128 +0,0 @@
1
- import { L as g, P as E, T as O } from "./identifier-nbk7LEJv.js";
2
- import { a as T } from "./useForkRef-DwN_Iz9R.js";
3
- import * as h from "react";
4
- import { jsx as k } from "react/jsx-runtime";
5
- import { d as C } from "./DefaultPropsProvider-DjhaxXa-.js";
6
- import { u as p } from "./useTheme-CLNwQ3Yk.js";
7
- function D(e) {
8
- return typeof e == "string";
9
- }
10
- function V(e, n, t) {
11
- return e === void 0 || D(e) ? n : {
12
- ...n,
13
- ownerState: {
14
- ...n.ownerState,
15
- ...t
16
- }
17
- };
18
- }
19
- function _(e, n = []) {
20
- if (e === void 0)
21
- return {};
22
- const t = {};
23
- return Object.keys(e).filter((s) => s.match(/^on[A-Z]/) && typeof e[s] == "function" && !n.includes(s)).forEach((s) => {
24
- t[s] = e[s];
25
- }), t;
26
- }
27
- function R(e) {
28
- if (e === void 0)
29
- return {};
30
- const n = {};
31
- return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((t) => {
32
- n[t] = e[t];
33
- }), n;
34
- }
35
- function d(e) {
36
- const {
37
- getSlotProps: n,
38
- additionalProps: t,
39
- externalSlotProps: s,
40
- externalForwardedProps: c,
41
- className: i
42
- } = e;
43
- if (!n) {
44
- const v = g(t == null ? void 0 : t.className, i, c == null ? void 0 : c.className, s == null ? void 0 : s.className), N = {
45
- ...t == null ? void 0 : t.style,
46
- ...c == null ? void 0 : c.style,
47
- ...s == null ? void 0 : s.style
48
- }, y = {
49
- ...t,
50
- ...c,
51
- ...s
52
- };
53
- return v.length > 0 && (y.className = v), Object.keys(N).length > 0 && (y.style = N), {
54
- props: y,
55
- internalRef: void 0
56
- };
57
- }
58
- const f = _({
59
- ...c,
60
- ...s
61
- }), r = R(s), m = R(c), u = n(f), a = g(u == null ? void 0 : u.className, t == null ? void 0 : t.className, i, c == null ? void 0 : c.className, s == null ? void 0 : s.className), o = {
62
- ...u == null ? void 0 : u.style,
63
- ...t == null ? void 0 : t.style,
64
- ...c == null ? void 0 : c.style,
65
- ...s == null ? void 0 : s.style
66
- }, l = {
67
- ...u,
68
- ...t,
69
- ...m,
70
- ...r
71
- };
72
- return a.length > 0 && (l.className = a), Object.keys(o).length > 0 && (l.style = o), {
73
- props: l,
74
- internalRef: u.ref
75
- };
76
- }
77
- function A(e, n, t) {
78
- return typeof e == "function" ? e(n, t) : e;
79
- }
80
- function L(e) {
81
- var o;
82
- const {
83
- elementType: n,
84
- externalSlotProps: t,
85
- ownerState: s,
86
- skipResolvingSlotProps: c = !1,
87
- ...i
88
- } = e, f = c ? {} : A(t, s), {
89
- props: r,
90
- internalRef: m
91
- } = d({
92
- ...i,
93
- externalSlotProps: f
94
- }), u = T(m, f == null ? void 0 : f.ref, (o = e.additionalProps) == null ? void 0 : o.ref);
95
- return V(n, {
96
- ...r,
97
- ref: u
98
- }, s);
99
- }
100
- const H = /* @__PURE__ */ h.createContext();
101
- function S({
102
- value: e,
103
- ...n
104
- }) {
105
- return /* @__PURE__ */ k(H.Provider, {
106
- value: e ?? !0,
107
- ...n
108
- });
109
- }
110
- process.env.NODE_ENV !== "production" && (S.propTypes = {
111
- children: E.node,
112
- value: E.bool
113
- });
114
- const M = () => h.useContext(H) ?? !1;
115
- function $() {
116
- const e = p(C);
117
- return process.env.NODE_ENV !== "production" && h.useDebugValue(e), e[O] || e;
118
- }
119
- export {
120
- S as R,
121
- M as a,
122
- L as b,
123
- V as c,
124
- _ as e,
125
- d as m,
126
- A as r,
127
- $ as u
128
- };