@cgi-learning-hub/ui 1.2.0-dev.1725006670 → 1.2.0-dev.1725450842

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 (161) hide show
  1. package/dist/{Box-BJvmuM0Y.js → Box-B6xx2g1Y.js} +32 -30
  2. package/dist/Box-P3WhGgSH.cjs +1 -0
  3. package/dist/Button-BlSyZq45.js +454 -0
  4. package/dist/Button-CZO3I5oS.cjs +1 -0
  5. package/dist/ButtonBase-C-IxZjoy.cjs +75 -0
  6. package/dist/ButtonBase-Mr4S_NG8.js +890 -0
  7. package/dist/CircularProgress-D1dO7At_.cjs +28 -0
  8. package/dist/CircularProgress-bltZBt14.js +251 -0
  9. package/dist/DatePicker-B8FaO6N3.cjs +19 -0
  10. package/dist/{DatePicker-xLT3dl8F.js → DatePicker-BM4qYpPt.js} +3809 -3722
  11. package/dist/DefaultButton-BbTf0WK8.cjs +1 -0
  12. package/dist/{DefaultButton-CKY6tuni.js → DefaultButton-Crs2UW2V.js} +95 -75
  13. package/dist/DefaultPropsProvider-BDdV3S11.js +468 -0
  14. package/dist/DefaultPropsProvider-DwweZ7qj.cjs +17 -0
  15. package/dist/IconButton-8pelIq63.cjs +2 -0
  16. package/dist/IconButton-DeGwRNnI.js +239 -0
  17. package/dist/InputAdornment-BhrFtLIz.cjs +1 -0
  18. package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-Dd24Ymt-.js} +81 -65
  19. package/dist/InputBase-BUzAEUpC.js +802 -0
  20. package/dist/InputBase-OefmcFzX.cjs +3 -0
  21. package/dist/Stack-BnpqP5GW.cjs +1 -0
  22. package/dist/{Stack-Dlgk5t_M.js → Stack-D_hQlRGm.js} +62 -60
  23. package/dist/Tabs-BqbRbRmo.cjs +4 -0
  24. package/dist/Tabs-D0SZWveL.js +1222 -0
  25. package/dist/TextField-DXEOL4uC.cjs +12 -0
  26. package/dist/{TextField-DG1754qQ.js → TextField-cX-VBTii.js} +3033 -2408
  27. package/dist/{Tooltip-BjTwTSrD.js → Tooltip-B3_y8U1N.js} +4682 -3406
  28. package/dist/Tooltip-DiglEjt6.cjs +100 -0
  29. package/dist/TransitionGroupContext-LWgXgADB.cjs +1 -0
  30. package/dist/TransitionGroupContext-SbAHUhOx.js +64 -0
  31. package/dist/Typography-DWgJpyZG.cjs +1 -0
  32. package/dist/Typography-kwaQt8VQ.js +258 -0
  33. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  34. package/dist/components/DatePicker/DatePicker.es.js +3 -3
  35. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  36. package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
  37. package/dist/components/DatePicker/index.cjs.js +1 -1
  38. package/dist/components/DatePicker/index.es.js +1 -1
  39. package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
  40. package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
  41. package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  42. package/dist/components/DefaultButton/DefaultButtonIcon.es.js +108 -67
  43. package/dist/components/DefaultButton/index.cjs.js +1 -1
  44. package/dist/components/DefaultButton/index.es.js +1 -1
  45. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  46. package/dist/components/Dropzone/Dropzone.es.js +8 -8
  47. package/dist/components/FileList/FileList.cjs.js +1 -1
  48. package/dist/components/FileList/FileList.es.js +1 -1
  49. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  50. package/dist/components/FileList/FileListItem.es.js +10 -11
  51. package/dist/components/IconButton.stories.cjs.js +1 -1
  52. package/dist/components/IconButton.stories.es.js +13 -14
  53. package/dist/components/Loader/Loader.cjs.js +1 -1
  54. package/dist/components/Loader/Loader.es.js +1 -1
  55. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  56. package/dist/components/PaperHeader/PaperHeader.d.ts +3 -1
  57. package/dist/components/PaperHeader/PaperHeader.es.js +26 -28
  58. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  59. package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
  60. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  61. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  62. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  63. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  64. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  65. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  66. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  67. package/dist/components/QueryError/QueryError.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 +62 -59
  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 +240 -235
  80. package/dist/createSvgIcon-BNfyXTi3.cjs +2 -0
  81. package/dist/createSvgIcon-BwYG_otT.js +249 -0
  82. package/dist/createSvgIcon-DIHNjNhw.js +88 -0
  83. package/dist/createSvgIcon-DMxj0zKp.cjs +1 -0
  84. package/dist/extendSxProp-BkIEJBCN.js +37 -0
  85. package/dist/extendSxProp-DhEbeVWY.cjs +1 -0
  86. package/dist/{fr-CXEmlY0d.js → fr-BmQdNgE2.js} +13 -13
  87. package/dist/{fr-C4bcUC-9.cjs → fr-BwBKunbe.cjs} +1 -1
  88. package/dist/generateUtilityClasses-BwskEdpL.js +58 -0
  89. package/dist/generateUtilityClasses-CzQVzFT6.cjs +1 -0
  90. package/dist/identifier-Dx5_fEyA.cjs +59 -0
  91. package/dist/identifier-SatcAo-F.js +2930 -0
  92. package/dist/index-C1wNRRuv.js +89 -0
  93. package/dist/index-D30fIOec.cjs +1 -0
  94. package/dist/index.cjs.js +1 -1
  95. package/dist/index.es.js +238 -233
  96. package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
  97. package/dist/{refType-D1DDOFsy.cjs → refType-CVYH4raj.cjs} +1 -1
  98. package/dist/{refType-DiVIFcsY.js → refType-Dv9Yduc2.js} +1 -1
  99. package/dist/useControlled-Bf7_InaL.cjs +3 -0
  100. package/dist/useControlled-D59BLg1S.js +48 -0
  101. package/dist/useEventCallback-BgMlqKLP.js +14 -0
  102. package/dist/useEventCallback-CrCf96iG.cjs +1 -0
  103. package/dist/useId-CyGZMA-F.js +19 -0
  104. package/dist/useId-D5Txt-1B.cjs +1 -0
  105. package/dist/{useTheme-1gSw-INq.js → useTheme-5-WD2s8Q.js} +5 -5
  106. package/dist/useTheme-C3EDRRFw.js +128 -0
  107. package/dist/useTheme-C8ZuVDEs.cjs +1 -0
  108. package/dist/useTheme-pRydhCrj.cjs +1 -0
  109. package/dist/useThemeProps-D26oU7wL.cjs +1 -0
  110. package/dist/useThemeProps-uqUSigAC.js +40 -0
  111. package/package.json +8 -8
  112. package/dist/Box-2ZrLOc7U.cjs +0 -1
  113. package/dist/Button-HyZp1VKI.js +0 -359
  114. package/dist/Button-NhaA68Of.cjs +0 -1
  115. package/dist/ButtonBase-CnINN-P4.cjs +0 -75
  116. package/dist/ButtonBase-cOL6Mpcp.js +0 -827
  117. package/dist/CircularProgress-01RZzfpF.cjs +0 -28
  118. package/dist/CircularProgress-DO4r9-x8.js +0 -217
  119. package/dist/DatePicker-DZBeZYG6.cjs +0 -19
  120. package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
  121. package/dist/IconButton-3v-0zgZW.cjs +0 -2
  122. package/dist/IconButton-BBfmzBP6.js +0 -184
  123. package/dist/InputAdornment-DHmtETz3.cjs +0 -1
  124. package/dist/InputBase-BpGQgBej.cjs +0 -3
  125. package/dist/InputBase-COUxfhh1.js +0 -794
  126. package/dist/Stack-D9IYPfJ8.cjs +0 -1
  127. package/dist/Tabs-Blo-8Ro5.js +0 -1091
  128. package/dist/Tabs-D0e7cB4l.cjs +0 -4
  129. package/dist/TextField-8AuRLRIK.cjs +0 -12
  130. package/dist/Tooltip-Cp3Dh6LR.cjs +0 -95
  131. package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
  132. package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
  133. package/dist/Typography-DjrvRhOr.js +0 -178
  134. package/dist/Typography-YHooSvuR.cjs +0 -1
  135. package/dist/createStyled--XbpooZB.js +0 -142
  136. package/dist/createStyled-CuYz_ckk.cjs +0 -1
  137. package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
  138. package/dist/createSvgIcon-D29Io9jD.js +0 -183
  139. package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
  140. package/dist/createSvgIcon-DvOXtgXV.js +0 -76
  141. package/dist/identifier-CAQ9PWqs.js +0 -3046
  142. package/dist/identifier-CWIj084w.cjs +0 -50
  143. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  144. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  145. package/dist/styled-Bt4oYVnF.cjs +0 -17
  146. package/dist/styled-Co-8YWfm.js +0 -533
  147. package/dist/useControlled-DKpcyPsg.cjs +0 -3
  148. package/dist/useControlled-DoRrpN8o.js +0 -48
  149. package/dist/useId-BW-oWmul.js +0 -19
  150. package/dist/useId-Cw0TtD-8.cjs +0 -1
  151. package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
  152. package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
  153. package/dist/useTheme-Dm6RnXrf.cjs +0 -1
  154. package/dist/useTheme-HJhneR9g.js +0 -99
  155. package/dist/useTheme-T2P7WhLG.cjs +0 -1
  156. package/dist/useThemeProps-BKIVQv3E.js +0 -17
  157. package/dist/useThemeProps-BfZ3lLQs.js +0 -27
  158. package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
  159. package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
  160. package/dist/useTimeout-BdvDipeg.js +0 -47
  161. package/dist/useTimeout-XUWYBnl6.cjs +0 -1
@@ -1,99 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1,17 +0,0 @@
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
- };
@@ -1,27 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1 +0,0 @@
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;
@@ -1,47 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;