@cgi-learning-hub/ui 1.3.2 → 1.3.3-dev.1732123246

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 (275) hide show
  1. package/dist/Backdrop-DorR8O-b.js +359 -0
  2. package/dist/Backdrop-cE8nccLi.cjs +1 -0
  3. package/dist/{Box-a6v7fn61.js → Box-BTNw-FYi.js} +8 -8
  4. package/dist/{Box-D61CmHcZ.cjs → Box-Y_dUbq3W.cjs} +1 -1
  5. package/dist/{Button-B8Vr_qVd.js → Button--paERYBc.js} +4 -4
  6. package/dist/{Button-elp97nQ8.cjs → Button-TBA8S65S.cjs} +1 -1
  7. package/dist/{ButtonBase-Y5TK5SRu.js → ButtonBase-B0gJT_ti.js} +228 -236
  8. package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
  9. package/dist/Card-BVJgnURR.js +74 -0
  10. package/dist/Card-DBGYwd3H.cjs +1 -0
  11. package/dist/Checkbox-OTMaikud.cjs +1 -0
  12. package/dist/Checkbox-aBoDjdQG.js +241 -0
  13. package/dist/{CircularProgress-DU3DJQfF.js → CircularProgress-CIqTwP6H.js} +4 -4
  14. package/dist/{CircularProgress-DDIZxeFH.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
  15. package/dist/DatePicker-DGRD-CdO.cjs +14 -0
  16. package/dist/DatePicker-DXgVCuAd.js +10814 -0
  17. package/dist/{DefaultPropsProvider-7QnSWHxy.js → DefaultPropsProvider-StV_SUuk.js} +25 -25
  18. package/dist/{DefaultPropsProvider-eEVEiLDf.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
  19. package/dist/DialogContent-C0L4r0-p.cjs +1 -0
  20. package/dist/DialogContent-CP2NOfUr.js +602 -0
  21. package/dist/DialogTitle-Couh2TzJ.js +134 -0
  22. package/dist/DialogTitle-DemSKN6H.cjs +1 -0
  23. package/dist/FormGroup-CcM69JIS.js +348 -0
  24. package/dist/FormGroup-KOLND6rE.cjs +1 -0
  25. package/dist/FormLabel-C506NT5o.cjs +2 -0
  26. package/dist/FormLabel-wDh-AEMQ.js +417 -0
  27. package/dist/Grow-4QU1bnXQ.js +193 -0
  28. package/dist/Grow-C_nN9VuE.cjs +1 -0
  29. package/dist/IconButton-5LMERRPL.cjs +2 -0
  30. package/dist/{IconButton-C7H_G1LX.js → IconButton-CsqR1453.js} +5 -5
  31. package/dist/InputAdornment-DgT008NI.cjs +1 -0
  32. package/dist/{InputAdornment-CPJFY_m_.js → InputAdornment-bXTpzNQ2.js} +5 -5
  33. package/dist/InputBase-Cpx39cny.cjs +3 -0
  34. package/dist/{InputBase-5GB2c2J6.js → InputBase-VKt_ajuq.js} +185 -207
  35. package/dist/Link-6UH3Aljp.cjs +1 -0
  36. package/dist/Link-CPyeYGpa.js +266 -0
  37. package/dist/MenuItem-BFkBwBkN.js +277 -0
  38. package/dist/MenuItem-BxXCEc8h.cjs +1 -0
  39. package/dist/Modal-BDx2_UzP.js +750 -0
  40. package/dist/Modal-BLMnkdGb.cjs +2 -0
  41. package/dist/Paper-CMUbp6SX.js +185 -0
  42. package/dist/Paper-n4KgM09K.cjs +2 -0
  43. package/dist/Popper-D_UryU8v.js +1407 -0
  44. package/dist/Popper-DzQZEFYT.cjs +4 -0
  45. package/dist/Portal-C4QgaMKl.cjs +1 -0
  46. package/dist/Portal-DVy9JFBN.js +86 -0
  47. package/dist/Select-CcnCBhBN.js +3555 -0
  48. package/dist/Select-CnFa2_je.cjs +9 -0
  49. package/dist/{Stack-CutIWKkG.js → Stack-CKjrTRJB.js} +12 -12
  50. package/dist/{Stack-656bqKiW.cjs → Stack-elRjtOGk.cjs} +1 -1
  51. package/dist/SwitchBase-DWfUIgEW.cjs +1 -0
  52. package/dist/SwitchBase-DYa1wGSu.js +261 -0
  53. package/dist/{Tooltip-DqLAZimE.js → TableSortLabel-Czgy_sW5.js} +2998 -5191
  54. package/dist/TableSortLabel-Ppl9Q-SZ.cjs +98 -0
  55. package/dist/Tabs-CUpcnsPl.cjs +4 -0
  56. package/dist/{Tabs-CKic46Op.js → Tabs-RxcUgknI.js} +284 -282
  57. package/dist/TextField-DorMAtUh.js +547 -0
  58. package/dist/TextField-DvGLmvG1.cjs +1 -0
  59. package/dist/Tooltip-B4e9QdHI.js +697 -0
  60. package/dist/Tooltip-CPAH20AZ.cjs +4 -0
  61. package/dist/{Typography-DsJC595c.js → Typography-B29dnCv3.js} +4 -4
  62. package/dist/{Typography-CreZW2v6.cjs → Typography-DyMSnhvs.cjs} +1 -1
  63. package/dist/assets/styles.css +1 -1
  64. package/dist/assets/styles2.css +1 -1
  65. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  66. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  67. package/dist/components/Button/Button.cjs.js +1 -1
  68. package/dist/components/Button/Button.es.js +6 -6
  69. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  70. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  71. package/dist/components/DatePicker/index.cjs.js +1 -1
  72. package/dist/components/DatePicker/index.es.js +1 -1
  73. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  74. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  75. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  76. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  77. package/dist/components/FileList/FileList.cjs.js +1 -1
  78. package/dist/components/FileList/FileList.es.js +1 -1
  79. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  80. package/dist/components/FileList/FileListItem.es.js +6 -6
  81. package/dist/components/Heading/Heading.cjs.js +1 -1
  82. package/dist/components/Heading/Heading.es.js +2 -2
  83. package/dist/components/Loader/Loader.cjs.js +1 -1
  84. package/dist/components/Loader/Loader.es.js +2 -2
  85. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  86. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
  87. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  88. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  89. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  90. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  91. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  92. package/dist/components/TextInput/TextInput.es.js +1 -1
  93. package/dist/components/index.cjs.js +1 -1
  94. package/dist/components/index.es.js +280 -269
  95. package/dist/components/stories/Alert.stories.cjs.js +1 -0
  96. package/dist/components/stories/Alert.stories.d.ts +9 -0
  97. package/dist/components/stories/Alert.stories.es.js +32 -0
  98. package/dist/components/stories/Button.stories.cjs.js +1 -0
  99. package/dist/components/stories/Button.stories.d.ts +8 -0
  100. package/dist/components/stories/Button.stories.es.js +43 -0
  101. package/dist/components/stories/Card.stories.cjs.js +1 -0
  102. package/dist/components/stories/Card.stories.d.ts +7 -0
  103. package/dist/components/stories/Card.stories.es.js +193 -0
  104. package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
  105. package/dist/components/stories/Checkbox.stories.d.ts +10 -0
  106. package/dist/components/stories/Checkbox.stories.es.js +28 -0
  107. package/dist/components/stories/DatePicker.stories.cjs.js +1 -0
  108. package/dist/components/stories/DatePicker.stories.d.ts +6 -0
  109. package/dist/components/stories/DatePicker.stories.es.js +13 -0
  110. package/dist/components/stories/Dialog.stories.cjs.js +1 -0
  111. package/dist/components/stories/Dialog.stories.d.ts +7 -0
  112. package/dist/components/stories/Dialog.stories.es.js +33 -0
  113. package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
  114. package/dist/components/stories/Dropzone.stories.d.ts +6 -0
  115. package/dist/components/stories/Dropzone.stories.es.js +14 -0
  116. package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
  117. package/dist/components/stories/EmptyState.stories.d.ts +6 -0
  118. package/dist/components/stories/EmptyState.stories.es.js +14 -0
  119. package/dist/components/stories/FileList.stories.cjs.js +1 -0
  120. package/dist/components/stories/FileList.stories.d.ts +6 -0
  121. package/dist/components/stories/FileList.stories.es.js +26 -0
  122. package/dist/components/stories/Heading.stories.cjs.js +1 -0
  123. package/dist/components/stories/Heading.stories.d.ts +6 -0
  124. package/dist/components/stories/Heading.stories.es.js +20 -0
  125. package/dist/components/stories/IconButton.stories.cjs.js +1 -0
  126. package/dist/components/stories/IconButton.stories.d.ts +6 -0
  127. package/dist/components/{IconButton.stories.es.js → stories/IconButton.stories.es.js} +12 -14
  128. package/dist/components/stories/Link.stories.cjs.js +1 -0
  129. package/dist/components/stories/Link.stories.d.ts +7 -0
  130. package/dist/components/stories/Link.stories.es.js +43 -0
  131. package/dist/components/stories/Loader.stories.cjs.js +1 -0
  132. package/dist/components/stories/Loader.stories.d.ts +6 -0
  133. package/dist/components/stories/Loader.stories.es.js +11 -0
  134. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
  135. package/dist/components/stories/LoaderBackdrop.stories.d.ts +6 -0
  136. package/dist/components/stories/LoaderBackdrop.stories.es.js +11 -0
  137. package/dist/components/stories/Paper.stories.cjs.js +1 -0
  138. package/dist/components/stories/Paper.stories.d.ts +7 -0
  139. package/dist/components/stories/Paper.stories.es.js +28 -0
  140. package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
  141. package/dist/components/stories/PasswordInput.stories.d.ts +6 -0
  142. package/dist/components/stories/PasswordInput.stories.es.js +13 -0
  143. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
  144. package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
  145. package/dist/components/stories/RadioGroup.stories.es.js +435 -0
  146. package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
  147. package/dist/components/stories/SearchInput.stories.d.ts +6 -0
  148. package/dist/components/stories/SearchInput.stories.es.js +13 -0
  149. package/dist/components/stories/Select.stories.cjs.js +1 -0
  150. package/dist/components/stories/Select.stories.d.ts +10 -0
  151. package/dist/components/stories/Select.stories.es.js +52 -0
  152. package/dist/components/stories/TabList.stories.cjs.js +1 -0
  153. package/dist/components/stories/TabList.stories.d.ts +7 -0
  154. package/dist/components/{TabList.stories.es.js → stories/TabList.stories.es.js} +45 -52
  155. package/dist/components/stories/TextField.stories.cjs.js +1 -0
  156. package/dist/components/stories/TextField.stories.d.ts +10 -0
  157. package/dist/components/stories/TextField.stories.es.js +69 -0
  158. package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
  159. package/dist/components/stories/Tooltip.stories.d.ts +7 -0
  160. package/dist/components/stories/Tooltip.stories.es.js +46 -0
  161. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  162. package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
  163. package/dist/{createSvgIcon-PXjVOXDY.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
  164. package/dist/{createSvgIcon-Ae1vF9Lv.js → createSvgIcon-VByplk-r.js} +3 -3
  165. package/dist/debounce-46wSf_lW.js +15 -0
  166. package/dist/debounce-DpCj7ugL.cjs +1 -0
  167. package/dist/elementTypeAcceptingRef-BPhL72td.js +23 -0
  168. package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
  169. package/dist/{extendSxProp-BzTGWWcy.js → extendSxProp-BYB-kybW.js} +1 -1
  170. package/dist/{extendSxProp-DLhbnNxc.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
  171. package/dist/formControlState-DCkDUdfO.cjs +1 -0
  172. package/dist/formControlState-DdQP43Uo.js +21 -0
  173. package/dist/{fr-B0c4Eu-I.js → fr-B4aeA9th.js} +23 -23
  174. package/dist/{fr-BtINyNRC.cjs → fr-CSCQhSqi.cjs} +1 -1
  175. package/dist/{identifier-Bu3vgTzE.js → identifier-BewKgEhI.js} +487 -486
  176. package/dist/{identifier-B_IiMbpZ.cjs → identifier-DTh6b5Gz.cjs} +17 -17
  177. package/dist/{index-D4YvqRSh.js → index-BAjSgP8k.js} +3 -3
  178. package/dist/{index-BDy6VH40.cjs → index-B_acx8gh.cjs} +1 -1
  179. package/dist/{index-DNmEgr4X.js → index-_oi9ph20.js} +4 -4
  180. package/dist/index-oINGa1MV.cjs +1 -0
  181. package/dist/index.cjs.js +1 -1
  182. package/dist/index.es.js +280 -269
  183. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  184. package/dist/isFocusVisible-DlSijby6.cjs +2 -0
  185. package/dist/{memoTheme-C4_nd-x4.js → memoTheme-B9kDhX1-.js} +1 -1
  186. package/dist/{memoTheme-DvW891YJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
  187. package/dist/ownerDocument-4MViGo3k.cjs +1 -0
  188. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  189. package/dist/ownerWindow-DDHucZi0.cjs +1 -0
  190. package/dist/ownerWindow-niciwP7I.js +7 -0
  191. package/dist/refType-3o3c-kYx.js +7 -0
  192. package/dist/refType-DNB-r0Bp.cjs +1 -0
  193. package/dist/{useTheme-B_3HWqyi.js → resolveComponentProps-BQQ-uUKZ.js} +18 -26
  194. package/dist/resolveComponentProps-R_l8gy3y.cjs +1 -0
  195. package/dist/useControlled-BYdyS7Pn.js +31 -0
  196. package/dist/useControlled-Ysk4KqoX.cjs +3 -0
  197. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  198. package/dist/useForkRef-C_4o__cU.js +15 -0
  199. package/dist/useFormControl-CatNKXAi.js +10 -0
  200. package/dist/useFormControl-haP0iPhl.cjs +1 -0
  201. package/dist/useSlot-B2hCpx8C.js +50 -0
  202. package/dist/useSlot-i7AZwCRV.cjs +1 -0
  203. package/dist/useTheme-0u9_WhjM.js +11 -0
  204. package/dist/{useTheme-DhYab2-0.js → useTheme-BrFhq4dW.js} +1 -1
  205. package/dist/useTheme-DfN3sBzg.cjs +1 -0
  206. package/dist/{useTheme-vN32oV1t.cjs → useTheme-w4BoR6ol.cjs} +1 -1
  207. package/dist/{useThemeProps-5hp2m3Xl.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
  208. package/dist/{useThemeProps-D_gKWuk1.cjs → useThemeProps-CkGODfms.cjs} +1 -1
  209. package/dist/{useThemeProps-Bmkt_XOR.js → useThemeProps-CwWORfXn.js} +4 -4
  210. package/dist/{useThemeProps-DftpgVZ0.js → useThemeProps-cERu5xHk.js} +3 -3
  211. package/dist/{useTimeout-Bx22KOcH.js → useTimeout-Br8oWWYt.js} +4 -4
  212. package/dist/{useTimeout-gEG15bRo.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
  213. package/dist/utils-CH0HZgJe.js +391 -0
  214. package/dist/utils-D2bhwE7x.cjs +1 -0
  215. package/package.json +1 -1
  216. package/dist/Backdrop-CxHwPsCX.js +0 -789
  217. package/dist/Backdrop-ZCTs-Ws8.cjs +0 -1
  218. package/dist/ButtonBase-S0mFlojL.cjs +0 -75
  219. package/dist/DatePicker-BigDV0IN.cjs +0 -17
  220. package/dist/DatePicker-ZdjLD9eR.js +0 -12779
  221. package/dist/IconButton-DfmbM9nO.cjs +0 -2
  222. package/dist/InputAdornment-C-EbfNtT.cjs +0 -1
  223. package/dist/InputBase-CPtGhJye.cjs +0 -3
  224. package/dist/Tabs-DzrxYlm-.cjs +0 -4
  225. package/dist/TextField-BLEvZwPH.cjs +0 -14
  226. package/dist/TextField-CGMPbx_J.js +0 -5686
  227. package/dist/Tooltip-BJefPCe7.cjs +0 -100
  228. package/dist/components/Alert/Alert.stories.cjs.js +0 -1
  229. package/dist/components/Alert/Alert.stories.d.ts +0 -4
  230. package/dist/components/Alert/Alert.stories.es.js +0 -17
  231. package/dist/components/Button/Button.stories.cjs.js +0 -1
  232. package/dist/components/Button/Button.stories.d.ts +0 -6
  233. package/dist/components/Button/Button.stories.es.js +0 -45
  234. package/dist/components/DatePicker/DatePicker.stories.cjs.js +0 -1
  235. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -4
  236. package/dist/components/DatePicker/DatePicker.stories.es.js +0 -16
  237. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  238. package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -4
  239. package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
  240. package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
  241. package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -4
  242. package/dist/components/EmptyState/EmptyState.stories.es.js +0 -17
  243. package/dist/components/FileList/FileList.stories.cjs.js +0 -1
  244. package/dist/components/FileList/FileList.stories.d.ts +0 -4
  245. package/dist/components/FileList/FileList.stories.es.js +0 -28
  246. package/dist/components/Heading/Heading.stories.cjs.js +0 -1
  247. package/dist/components/Heading/Heading.stories.d.ts +0 -4
  248. package/dist/components/Heading/Heading.stories.es.js +0 -22
  249. package/dist/components/IconButton.stories.cjs.js +0 -1
  250. package/dist/components/IconButton.stories.d.ts +0 -4
  251. package/dist/components/Loader/Loader.stories.cjs.js +0 -1
  252. package/dist/components/Loader/Loader.stories.d.ts +0 -4
  253. package/dist/components/Loader/Loader.stories.es.js +0 -14
  254. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
  255. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -4
  256. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +0 -14
  257. package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
  258. package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -4
  259. package/dist/components/PasswordInput/PasswordInput.stories.es.js +0 -16
  260. package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
  261. package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -4
  262. package/dist/components/SearchInput/SearchInput.stories.es.js +0 -16
  263. package/dist/components/TabList.stories.cjs.js +0 -1
  264. package/dist/components/TabList.stories.d.ts +0 -4
  265. package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
  266. package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
  267. package/dist/components/TextInput/TextInput.stories.es.js +0 -43
  268. package/dist/index-Dl4BXU0b.cjs +0 -1
  269. package/dist/ownerWindow-BoRkeomM.js +0 -23
  270. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  271. package/dist/refType-DYRsy3ld.cjs +0 -1
  272. package/dist/refType-DvOnKTmB.js +0 -27
  273. package/dist/useForkRef-D-DyzOXj.js +0 -21
  274. package/dist/useForkRef-D81w5oMb.cjs +0 -1
  275. package/dist/useTheme-BvsnROiB.cjs +0 -1
@@ -0,0 +1,391 @@
1
+ import { P as n } from "./identifier-BewKgEhI.js";
2
+ import { c as R } from "./chainPropTypes-D9lkm76m.js";
3
+ import * as y from "react";
4
+ import v from "react";
5
+ import { _ as C, a as k, T as S } from "./TransitionGroupContext-DMJLhY9-.js";
6
+ import g from "react-dom";
7
+ function w(u) {
8
+ const {
9
+ prototype: s = {}
10
+ } = u;
11
+ return !!s.isReactComponent;
12
+ }
13
+ function O(u, s, a, r, e) {
14
+ const t = u[s], i = e || s;
15
+ if (t == 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 o;
22
+ const p = t.type;
23
+ return typeof p == "function" && !w(p) && (o = "Did you accidentally use a plain function component for an element instead?"), o !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
24
+ }
25
+ const I = R(n.element, O);
26
+ I.isRequired = R(n.element.isRequired, O);
27
+ function A(u) {
28
+ var s;
29
+ return parseInt(y.version, 10) >= 19 ? ((s = u == null ? void 0 : u.props) == null ? void 0 : s.ref) || null : (u == null ? void 0 : u.ref) || null;
30
+ }
31
+ const N = {
32
+ disabled: !1
33
+ };
34
+ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
35
+ enter: n.number,
36
+ exit: n.number,
37
+ appear: n.number
38
+ }).isRequired]) : null, F = process.env.NODE_ENV !== "production" ? n.oneOfType([n.string, n.shape({
39
+ enter: n.string,
40
+ exit: n.string,
41
+ active: n.string
42
+ }), n.shape({
43
+ enter: n.string,
44
+ enterDone: n.string,
45
+ enterActive: n.string,
46
+ exit: n.string,
47
+ exitDone: n.string,
48
+ exitActive: n.string
49
+ })]) : null, P = function(s) {
50
+ return s.scrollTop;
51
+ }, x = "unmounted", l = "exited", c = "entering", h = "entered", T = "exiting", f = /* @__PURE__ */ function(u) {
52
+ C(s, u);
53
+ function s(r, e) {
54
+ var t;
55
+ t = u.call(this, r, e) || this;
56
+ var i = e, o = i && !i.isMounting ? r.enter : r.appear, p;
57
+ return t.appearStatus = null, r.in ? o ? (p = l, t.appearStatus = c) : p = h : r.unmountOnExit || r.mountOnEnter ? p = x : p = l, t.state = {
58
+ status: p
59
+ }, t.nextCallback = null, t;
60
+ }
61
+ s.getDerivedStateFromProps = function(e, t) {
62
+ var i = e.in;
63
+ return i && t.status === x ? {
64
+ status: l
65
+ } : null;
66
+ };
67
+ var a = s.prototype;
68
+ return a.componentDidMount = function() {
69
+ this.updateStatus(!0, this.appearStatus);
70
+ }, a.componentDidUpdate = function(e) {
71
+ var t = null;
72
+ if (e !== this.props) {
73
+ var i = this.state.status;
74
+ this.props.in ? i !== c && i !== h && (t = c) : (i === c || i === h) && (t = T);
75
+ }
76
+ this.updateStatus(!1, t);
77
+ }, a.componentWillUnmount = function() {
78
+ this.cancelNextCallback();
79
+ }, a.getTimeouts = function() {
80
+ var e = this.props.timeout, t, i, o;
81
+ return t = i = o = e, e != null && typeof e != "number" && (t = e.exit, i = e.enter, o = e.appear !== void 0 ? e.appear : i), {
82
+ exit: t,
83
+ enter: i,
84
+ appear: o
85
+ };
86
+ }, a.updateStatus = function(e, t) {
87
+ if (e === void 0 && (e = !1), t !== null)
88
+ if (this.cancelNextCallback(), t === c) {
89
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
90
+ var i = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this);
91
+ i && P(i);
92
+ }
93
+ this.performEnter(e);
94
+ } else
95
+ this.performExit();
96
+ else this.props.unmountOnExit && this.state.status === l && this.setState({
97
+ status: x
98
+ });
99
+ }, a.performEnter = function(e) {
100
+ var t = this, i = this.props.enter, o = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [o] : [g.findDOMNode(this), o], d = p[0], m = p[1], b = this.getTimeouts(), D = o ? b.appear : b.enter;
101
+ if (!e && !i || N.disabled) {
102
+ this.safeSetState({
103
+ status: h
104
+ }, function() {
105
+ t.props.onEntered(d);
106
+ });
107
+ return;
108
+ }
109
+ this.props.onEnter(d, m), this.safeSetState({
110
+ status: c
111
+ }, function() {
112
+ t.props.onEntering(d, m), t.onTransitionEnd(D, function() {
113
+ t.safeSetState({
114
+ status: h
115
+ }, function() {
116
+ t.props.onEntered(d, m);
117
+ });
118
+ });
119
+ });
120
+ }, a.performExit = function() {
121
+ var e = this, t = this.props.exit, i = this.getTimeouts(), o = this.props.nodeRef ? void 0 : g.findDOMNode(this);
122
+ if (!t || N.disabled) {
123
+ this.safeSetState({
124
+ status: l
125
+ }, function() {
126
+ e.props.onExited(o);
127
+ });
128
+ return;
129
+ }
130
+ this.props.onExit(o), this.safeSetState({
131
+ status: T
132
+ }, function() {
133
+ e.props.onExiting(o), e.onTransitionEnd(i.exit, function() {
134
+ e.safeSetState({
135
+ status: l
136
+ }, function() {
137
+ e.props.onExited(o);
138
+ });
139
+ });
140
+ });
141
+ }, a.cancelNextCallback = function() {
142
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
143
+ }, a.safeSetState = function(e, t) {
144
+ t = this.setNextCallback(t), this.setState(e, t);
145
+ }, a.setNextCallback = function(e) {
146
+ var t = this, i = !0;
147
+ return this.nextCallback = function(o) {
148
+ i && (i = !1, t.nextCallback = null, e(o));
149
+ }, this.nextCallback.cancel = function() {
150
+ i = !1;
151
+ }, this.nextCallback;
152
+ }, a.onTransitionEnd = function(e, t) {
153
+ this.setNextCallback(t);
154
+ var i = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this), o = e == null && !this.props.addEndListener;
155
+ if (!i || o) {
156
+ setTimeout(this.nextCallback, 0);
157
+ return;
158
+ }
159
+ if (this.props.addEndListener) {
160
+ var p = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], d = p[0], m = p[1];
161
+ this.props.addEndListener(d, m);
162
+ }
163
+ e != null && setTimeout(this.nextCallback, e);
164
+ }, a.render = function() {
165
+ var e = this.state.status;
166
+ if (e === x)
167
+ return null;
168
+ var t = this.props, i = t.children;
169
+ t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
170
+ var o = k(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
171
+ return (
172
+ // allows for nested Transitions
173
+ /* @__PURE__ */ v.createElement(S.Provider, {
174
+ value: null
175
+ }, typeof i == "function" ? i(e, o) : v.cloneElement(v.Children.only(i), o))
176
+ );
177
+ }, s;
178
+ }(v.Component);
179
+ f.contextType = S;
180
+ f.propTypes = process.env.NODE_ENV !== "production" ? {
181
+ /**
182
+ * A React reference to DOM element that need to transition:
183
+ * https://stackoverflow.com/a/51127130/4671932
184
+ *
185
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
186
+ * (e.g. `onEnter`) because user already has direct access to the node.
187
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
188
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
189
+ * (see
190
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
191
+ */
192
+ nodeRef: n.shape({
193
+ current: typeof Element > "u" ? n.any : function(u, s, a, r, e, t) {
194
+ var i = u[s];
195
+ return n.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(u, s, a, r, e, t);
196
+ }
197
+ }),
198
+ /**
199
+ * A `function` child can be used instead of a React element. This function is
200
+ * called with the current transition status (`'entering'`, `'entered'`,
201
+ * `'exiting'`, `'exited'`), which can be used to apply context
202
+ * specific props to a component.
203
+ *
204
+ * ```jsx
205
+ * <Transition in={this.state.in} timeout={150}>
206
+ * {state => (
207
+ * <MyComponent className={`fade fade-${state}`} />
208
+ * )}
209
+ * </Transition>
210
+ * ```
211
+ */
212
+ children: n.oneOfType([n.func.isRequired, n.element.isRequired]).isRequired,
213
+ /**
214
+ * Show the component; triggers the enter or exit states
215
+ */
216
+ in: n.bool,
217
+ /**
218
+ * By default the child component is mounted immediately along with
219
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
220
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
221
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
222
+ */
223
+ mountOnEnter: n.bool,
224
+ /**
225
+ * By default the child component stays mounted after it reaches the `'exited'` state.
226
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
227
+ */
228
+ unmountOnExit: n.bool,
229
+ /**
230
+ * By default the child component does not perform the enter transition when
231
+ * it first mounts, regardless of the value of `in`. If you want this
232
+ * behavior, set both `appear` and `in` to `true`.
233
+ *
234
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
235
+ * > only adds an additional enter transition. However, in the
236
+ * > `<CSSTransition>` component that first enter transition does result in
237
+ * > additional `.appear-*` classes, that way you can choose to style it
238
+ * > differently.
239
+ */
240
+ appear: n.bool,
241
+ /**
242
+ * Enable or disable enter transitions.
243
+ */
244
+ enter: n.bool,
245
+ /**
246
+ * Enable or disable exit transitions.
247
+ */
248
+ exit: n.bool,
249
+ /**
250
+ * The duration of the transition, in milliseconds.
251
+ * Required unless `addEndListener` is provided.
252
+ *
253
+ * You may specify a single timeout for all transitions:
254
+ *
255
+ * ```jsx
256
+ * timeout={500}
257
+ * ```
258
+ *
259
+ * or individually:
260
+ *
261
+ * ```jsx
262
+ * timeout={{
263
+ * appear: 500,
264
+ * enter: 300,
265
+ * exit: 500,
266
+ * }}
267
+ * ```
268
+ *
269
+ * - `appear` defaults to the value of `enter`
270
+ * - `enter` defaults to `0`
271
+ * - `exit` defaults to `0`
272
+ *
273
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
274
+ */
275
+ timeout: function(s) {
276
+ var a = M;
277
+ s.addEndListener || (a = a.isRequired);
278
+ for (var r = arguments.length, e = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
279
+ e[t - 1] = arguments[t];
280
+ return a.apply(void 0, [s].concat(e));
281
+ },
282
+ /**
283
+ * Add a custom transition end trigger. Called with the transitioning
284
+ * DOM node and a `done` callback. Allows for more fine grained transition end
285
+ * logic. Timeouts are still used as a fallback if provided.
286
+ *
287
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
288
+ *
289
+ * ```jsx
290
+ * addEndListener={(node, done) => {
291
+ * // use the css transitionend event to mark the finish of a transition
292
+ * node.addEventListener('transitionend', done, false);
293
+ * }}
294
+ * ```
295
+ */
296
+ addEndListener: n.func,
297
+ /**
298
+ * Callback fired before the "entering" status is applied. An extra parameter
299
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
300
+ *
301
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
302
+ *
303
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
304
+ */
305
+ onEnter: n.func,
306
+ /**
307
+ * Callback fired after the "entering" status is applied. An extra parameter
308
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
309
+ *
310
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
311
+ *
312
+ * @type Function(node: HtmlElement, isAppearing: bool)
313
+ */
314
+ onEntering: n.func,
315
+ /**
316
+ * Callback fired after the "entered" status is applied. An extra parameter
317
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
318
+ *
319
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
320
+ *
321
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
322
+ */
323
+ onEntered: n.func,
324
+ /**
325
+ * Callback fired before the "exiting" status is applied.
326
+ *
327
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
328
+ *
329
+ * @type Function(node: HtmlElement) -> void
330
+ */
331
+ onExit: n.func,
332
+ /**
333
+ * Callback fired after the "exiting" status is applied.
334
+ *
335
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
336
+ *
337
+ * @type Function(node: HtmlElement) -> void
338
+ */
339
+ onExiting: n.func,
340
+ /**
341
+ * Callback fired after the "exited" status is applied.
342
+ *
343
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
344
+ *
345
+ * @type Function(node: HtmlElement) -> void
346
+ */
347
+ onExited: n.func
348
+ } : {};
349
+ function E() {
350
+ }
351
+ f.defaultProps = {
352
+ in: !1,
353
+ mountOnEnter: !1,
354
+ unmountOnExit: !1,
355
+ appear: !1,
356
+ enter: !0,
357
+ exit: !0,
358
+ onEnter: E,
359
+ onEntering: E,
360
+ onEntered: E,
361
+ onExit: E,
362
+ onExiting: E,
363
+ onExited: E
364
+ };
365
+ f.UNMOUNTED = x;
366
+ f.EXITED = l;
367
+ f.ENTERING = c;
368
+ f.ENTERED = h;
369
+ f.EXITING = T;
370
+ const X = (u) => u.scrollTop;
371
+ function $(u, s) {
372
+ const {
373
+ timeout: a,
374
+ easing: r,
375
+ style: e = {}
376
+ } = u;
377
+ return {
378
+ duration: e.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
379
+ easing: e.transitionTimingFunction ?? (typeof r == "object" ? r[s.mode] : r),
380
+ delay: e.transitionDelay
381
+ };
382
+ }
383
+ export {
384
+ f as T,
385
+ $ as a,
386
+ F as c,
387
+ I as e,
388
+ P as f,
389
+ A as g,
390
+ X as r
391
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./identifier-DTh6b5Gz.cjs"),N=require("./chainPropTypes-CEUi6Jb4.cjs"),m=require("react"),v=require("./TransitionGroupContext-DbXD5xqS.cjs"),y=require("react-dom");function C(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}return a.default=s,Object.freeze(a)}const k=C(m);function w(s){const{prototype:a={}}=s;return!!a.isReactComponent}function R(s,a,o,i,t){const e=s[a],r=t||a;if(e==null||typeof window>"u")return null;let p;const u=e.type;return typeof u=="function"&&!w(u)&&(p="Did you accidentally use a plain function component for an element instead?"),p!==void 0?new Error(`Invalid ${i} \`${r}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${p} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const O=N.chainPropTypes(n.PropTypes.element,R);O.isRequired=N.chainPropTypes(n.PropTypes.element.isRequired,R);function q(s){var a;return parseInt(k.version,10)>=19?((a=s==null?void 0:s.props)==null?void 0:a.ref)||null:(s==null?void 0:s.ref)||null}const b={disabled:!1};var M=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.shape({enter:n.PropTypes.number,exit:n.PropTypes.number,appear:n.PropTypes.number}).isRequired]):null,I=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.shape({enter:n.PropTypes.string,exit:n.PropTypes.string,active:n.PropTypes.string}),n.PropTypes.shape({enter:n.PropTypes.string,enterDone:n.PropTypes.string,enterActive:n.PropTypes.string,exit:n.PropTypes.string,exitDone:n.PropTypes.string,exitActive:n.PropTypes.string})]):null,S=function(a){return a.scrollTop},x="unmounted",l="exited",f="entering",h="entered",P="exiting",c=function(s){v._inheritsLoose(a,s);function a(i,t){var e;e=s.call(this,i,t)||this;var r=t,p=r&&!r.isMounting?i.enter:i.appear,u;return e.appearStatus=null,i.in?p?(u=l,e.appearStatus=f):u=h:i.unmountOnExit||i.mountOnEnter?u=x:u=l,e.state={status:u},e.nextCallback=null,e}a.getDerivedStateFromProps=function(t,e){var r=t.in;return r&&e.status===x?{status:l}:null};var o=a.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==h&&(e=f):(r===f||r===h)&&(e=P)}this.updateStatus(!1,e)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var t=this.props.timeout,e,r,p;return e=r=p=t,t!=null&&typeof t!="number"&&(e=t.exit,r=t.enter,p=t.appear!==void 0?t.appear:r),{exit:e,enter:r,appear:p}},o.updateStatus=function(t,e){if(t===void 0&&(t=!1),e!==null)if(this.cancelNextCallback(),e===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);r&&S(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:x})},o.performEnter=function(t){var e=this,r=this.props.enter,p=this.context?this.context.isMounting:t,u=this.props.nodeRef?[p]:[y.findDOMNode(this),p],d=u[0],T=u[1],g=this.getTimeouts(),D=p?g.appear:g.enter;if(!t&&!r||b.disabled){this.safeSetState({status:h},function(){e.props.onEntered(d)});return}this.props.onEnter(d,T),this.safeSetState({status:f},function(){e.props.onEntering(d,T),e.onTransitionEnd(D,function(){e.safeSetState({status:h},function(){e.props.onEntered(d,T)})})})},o.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),p=this.props.nodeRef?void 0:y.findDOMNode(this);if(!e||b.disabled){this.safeSetState({status:l},function(){t.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:P},function(){t.props.onExiting(p),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(p)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},o.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(p){r&&(r=!1,e.nextCallback=null,t(p))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this),p=t==null&&!this.props.addEndListener;if(!r||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],d=u[0],T=u[1];this.props.addEndListener(d,T)}t!=null&&setTimeout(this.nextCallback,t)},o.render=function(){var t=this.state.status;if(t===x)return null;var e=this.props,r=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var p=v._objectWithoutPropertiesLoose(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(v.TransitionGroupContext.Provider,{value:null},typeof r=="function"?r(t,p):m.cloneElement(m.Children.only(r),p))},a}(m.Component);c.contextType=v.TransitionGroupContext;c.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:n.PropTypes.shape({current:typeof Element>"u"?n.PropTypes.any:function(s,a,o,i,t,e){var r=s[a];return n.PropTypes.instanceOf(r&&"ownerDocument"in r?r.ownerDocument.defaultView.Element:Element)(s,a,o,i,t,e)}}),children:n.PropTypes.oneOfType([n.PropTypes.func.isRequired,n.PropTypes.element.isRequired]).isRequired,in:n.PropTypes.bool,mountOnEnter:n.PropTypes.bool,unmountOnExit:n.PropTypes.bool,appear:n.PropTypes.bool,enter:n.PropTypes.bool,exit:n.PropTypes.bool,timeout:function(a){var o=M;a.addEndListener||(o=o.isRequired);for(var i=arguments.length,t=new Array(i>1?i-1:0),e=1;e<i;e++)t[e-1]=arguments[e];return o.apply(void 0,[a].concat(t))},addEndListener:n.PropTypes.func,onEnter:n.PropTypes.func,onEntering:n.PropTypes.func,onEntered:n.PropTypes.func,onExit:n.PropTypes.func,onExiting:n.PropTypes.func,onExited:n.PropTypes.func}:{};function E(){}c.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:E,onEntering:E,onEntered:E,onExit:E,onExiting:E,onExited:E};c.UNMOUNTED=x;c.EXITED=l;c.ENTERING=f;c.ENTERED=h;c.EXITING=P;const L=s=>s.scrollTop;function G(s,a){const{timeout:o,easing:i,style:t={}}=s;return{duration:t.transitionDuration??(typeof o=="number"?o:o[a.mode]||0),easing:t.transitionTimingFunction??(typeof i=="object"?i[a.mode]:i),delay:t.transitionDelay}}exports.Transition=c;exports.classNamesShape=I;exports.elementAcceptingRef=O;exports.forceReflow=S;exports.getReactElementRef=q;exports.getTransitionProps=G;exports.reflow=L;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.3.2",
3
+ "version": "1.3.3-dev.1732123246",
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",