@cgi-learning-hub/ui 1.3.3 → 1.3.4

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 (244) hide show
  1. package/dist/Backdrop-BlKt7y1x.js +360 -0
  2. package/dist/Backdrop-vSE8W9jq.cjs +1 -0
  3. package/dist/{Box-UE-zctbJ.js → Box-DErdbtsw.js} +9 -9
  4. package/dist/{Box-H49yQEt_.cjs → Box-DMYs7NTb.cjs} +1 -1
  5. package/dist/{Button-Bjy0iPNm.js → Button-CiqVGfRs.js} +14 -14
  6. package/dist/{Button-qc45QbX6.cjs → Button-D3dbHQM1.cjs} +1 -1
  7. package/dist/ButtonBase-BoWeLMzR.cjs +74 -0
  8. package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-DUPJVOlc.js} +232 -240
  9. package/dist/Card-Cnh4u4kb.cjs +1 -0
  10. package/dist/Card-mGRk1RuE.js +74 -0
  11. package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aJ1r7ufI.js} +12 -12
  12. package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-s_RdgUlw.cjs} +1 -1
  13. package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CfODO7vI.js} +17 -17
  14. package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DHgcUb1c.cjs} +7 -7
  15. package/dist/DatePicker-Dyf9Vhld.js +10845 -0
  16. package/dist/DatePicker-juzW4bLC.cjs +14 -0
  17. package/dist/DefaultPropsProvider-Biv7NHew.cjs +17 -0
  18. package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-xJkZOrdv.js} +146 -143
  19. package/dist/Delete-BOQTx9ze.js +8 -0
  20. package/dist/Delete-DyzDL8-Y.cjs +1 -0
  21. package/dist/DialogContent-D1KFPXhr.js +602 -0
  22. package/dist/DialogContent-Dphl2SKX.cjs +1 -0
  23. package/dist/DialogTitle-AQ-YU9PH.js +134 -0
  24. package/dist/DialogTitle-C8AdXsDz.cjs +1 -0
  25. package/dist/Divider-Bdp8beK-.cjs +1 -0
  26. package/dist/Divider-C0R1SUa4.js +296 -0
  27. package/dist/FormControlLabel-BlO93LTi.cjs +1 -0
  28. package/dist/FormControlLabel-w-X91z27.js +261 -0
  29. package/dist/FormGroup-6NoANcYk.js +95 -0
  30. package/dist/FormGroup-D0zSGn42.cjs +1 -0
  31. package/dist/FormLabel-BkiH7wl7.cjs +2 -0
  32. package/dist/{FormLabel-B4QlkhhB.js → FormLabel-CoLJ9tA8.js} +36 -42
  33. package/dist/Grow-DfACa72Q.cjs +1 -0
  34. package/dist/Grow-SW33sONG.js +193 -0
  35. package/dist/IconButton-DRs0xB4z.cjs +2 -0
  36. package/dist/{IconButton-Av8eJ5IG.js → IconButton-DjeMTpI5.js} +5 -5
  37. package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-B1pggfEX.cjs} +1 -1
  38. package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-ByiVSgFT.js} +4 -4
  39. package/dist/{InputBase-Bbgoz8GV.js → InputBase-CvU0-Zg6.js} +59 -59
  40. package/dist/InputBase-Xfjv-RYp.cjs +3 -0
  41. package/dist/Link-Dmwt9wxb.js +266 -0
  42. package/dist/Link-Z_UCBvgV.cjs +1 -0
  43. package/dist/Menu-4U27Dst1.js +965 -0
  44. package/dist/Menu-DREdNbqu.cjs +7 -0
  45. package/dist/MenuItem-CN75Du-9.cjs +1 -0
  46. package/dist/{MenuItem-D7HWYhF3.js → MenuItem-CqPsuuC1.js} +69 -74
  47. package/dist/Modal-DWqBsogu.cjs +2 -0
  48. package/dist/Modal-D_mqYIr2.js +750 -0
  49. package/dist/Paper-CjMuucS5.cjs +2 -0
  50. package/dist/Paper-D973Ow-i.js +185 -0
  51. package/dist/Popper-B8oNZqtn.js +1407 -0
  52. package/dist/Popper-hzM0y1hA.cjs +4 -0
  53. package/dist/Portal-BKbBRbWN.js +86 -0
  54. package/dist/Portal-Bv2VRYHH.cjs +1 -0
  55. package/dist/Radio-BrzQH9pY.js +312 -0
  56. package/dist/Radio-DxbXYNhR.cjs +1 -0
  57. package/dist/Select-CL4E8NNL.cjs +3 -0
  58. package/dist/Select-CgAPAUTr.js +2602 -0
  59. package/dist/{Stack-y1PjTHKX.js → Stack-CYXQpKS2.js} +18 -18
  60. package/dist/{Stack-CEjx3KHM.cjs → Stack-WrITLr1B.cjs} +1 -1
  61. package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-CGa9A6SL.js} +10 -10
  62. package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-Cqh9rxOh.cjs} +1 -1
  63. package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-hvz89Dvu.js} +2185 -3518
  64. package/dist/TableSortLabel-mAzX4tAl.cjs +98 -0
  65. package/dist/Tabs-BNqwYd2G.cjs +4 -0
  66. package/dist/{Tabs-DK4Bc5xo.js → Tabs-BPI2IyPx.js} +284 -282
  67. package/dist/{TextField-C-B529_r.js → TextField-C4nIxR_t.js} +24 -24
  68. package/dist/{TextField-BVAkADOb.cjs → TextField-Dy0Iblqt.cjs} +1 -1
  69. package/dist/Tooltip-Bdrv-e2a.js +720 -0
  70. package/dist/Tooltip-vg27N3PU.cjs +4 -0
  71. package/dist/{Typography-5OodZ94T.cjs → Typography-BF9bdWxl.cjs} +1 -1
  72. package/dist/{Typography-C_ESP41L.js → Typography-CUdlQxLM.js} +4 -4
  73. package/dist/assets/styles.css +1 -1
  74. package/dist/assets/styles2.css +1 -1
  75. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  76. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  77. package/dist/components/Button/Button.cjs.js +1 -1
  78. package/dist/components/Button/Button.es.js +12 -12
  79. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  80. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  81. package/dist/components/DatePicker/index.cjs.js +1 -1
  82. package/dist/components/DatePicker/index.es.js +1 -1
  83. package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
  84. package/dist/components/Dropzone/Dropzone.es.js +24 -2162
  85. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  86. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  87. package/dist/components/FileList/FileList.cjs.js +1 -1
  88. package/dist/components/FileList/FileList.es.js +1 -1
  89. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  90. package/dist/components/FileList/FileListItem.es.js +21 -22
  91. package/dist/components/Heading/Heading.cjs.js +1 -1
  92. package/dist/components/Heading/Heading.es.js +2 -2
  93. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
  94. package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
  95. package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
  96. package/dist/components/ImagePicker/index.cjs.js +1 -0
  97. package/dist/components/ImagePicker/index.d.ts +2 -0
  98. package/dist/components/ImagePicker/index.es.js +4 -0
  99. package/dist/components/Loader/Loader.cjs.js +1 -1
  100. package/dist/components/Loader/Loader.es.js +2 -2
  101. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  102. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
  103. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  104. package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
  105. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  106. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  107. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  108. package/dist/components/TextInput/TextInput.es.js +1 -1
  109. package/dist/components/index.cjs.js +1 -1
  110. package/dist/components/index.d.ts +1 -0
  111. package/dist/components/index.es.js +277 -265
  112. package/dist/components/stories/Button.stories.cjs.js +1 -1
  113. package/dist/components/stories/Button.stories.es.js +1 -1
  114. package/dist/components/stories/Card.stories.cjs.js +1 -0
  115. package/dist/components/stories/Card.stories.d.ts +7 -0
  116. package/dist/components/stories/Card.stories.es.js +193 -0
  117. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  118. package/dist/components/stories/Checkbox.stories.es.js +41 -12
  119. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  120. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  121. package/dist/components/stories/Dialog.stories.cjs.js +1 -0
  122. package/dist/components/stories/Dialog.stories.d.ts +7 -0
  123. package/dist/components/stories/Dialog.stories.es.js +53 -0
  124. package/dist/components/stories/Divider.stories.cjs.js +1 -0
  125. package/dist/components/stories/Divider.stories.d.ts +6 -0
  126. package/dist/components/stories/Divider.stories.es.js +41 -0
  127. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
  128. package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
  129. package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
  130. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  131. package/dist/components/stories/Heading.stories.es.js +2 -2
  132. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  133. package/dist/components/stories/IconButton.stories.es.js +47 -11
  134. package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
  135. package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
  136. package/dist/components/stories/ImagePicker.stories.es.js +50 -0
  137. package/dist/components/stories/Link.stories.cjs.js +1 -0
  138. package/dist/components/stories/Link.stories.d.ts +7 -0
  139. package/dist/components/stories/Link.stories.es.js +43 -0
  140. package/dist/components/stories/Menu.stories.cjs.js +1 -0
  141. package/dist/components/stories/Menu.stories.d.ts +7 -0
  142. package/dist/components/stories/Menu.stories.es.js +51 -0
  143. package/dist/components/stories/Paper.stories.cjs.js +1 -0
  144. package/dist/components/stories/Paper.stories.d.ts +7 -0
  145. package/dist/components/stories/Paper.stories.es.js +28 -0
  146. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  147. package/dist/components/stories/RadioGroup.stories.es.js +70 -371
  148. package/dist/components/stories/Select.stories.cjs.js +1 -1
  149. package/dist/components/stories/Select.stories.es.js +3 -3
  150. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  151. package/dist/components/stories/TabList.stories.es.js +140 -90
  152. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  153. package/dist/components/stories/TextField.stories.es.js +1 -1
  154. package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
  155. package/dist/components/stories/Tooltip.stories.d.ts +7 -0
  156. package/dist/components/stories/Tooltip.stories.es.js +46 -0
  157. package/dist/components/stories/Typography.stories.cjs.js +1 -0
  158. package/dist/components/stories/Typography.stories.d.ts +6 -0
  159. package/dist/components/stories/Typography.stories.es.js +65 -0
  160. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  161. package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
  162. package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-BMmqQ2z0.cjs} +1 -1
  163. package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CVd3Lo1D.js} +3 -3
  164. package/dist/debounce-46wSf_lW.js +15 -0
  165. package/dist/debounce-DpCj7ugL.cjs +1 -0
  166. package/dist/dividerClasses-CyDs_RPD.cjs +1 -0
  167. package/dist/dividerClasses-kN_Ky2Bl.js +9 -0
  168. package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +1 -0
  169. package/dist/elementTypeAcceptingRef-modXfN2G.js +23 -0
  170. package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-6YOo46ig.cjs} +1 -1
  171. package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-CHv0k-C6.js} +1 -1
  172. package/dist/formControlState-CuX6WjAX.cjs +1 -0
  173. package/dist/formControlState-vgaj2ksH.js +10 -0
  174. package/dist/fr-ChrHtTbj.cjs +1 -0
  175. package/dist/fr-rmVQsNbI.js +312 -0
  176. package/dist/{identifier-BqadgaK7.js → identifier-Bn0tF6ls.js} +612 -608
  177. package/dist/{identifier-BQH88SE0.cjs → identifier-Dax8VlUh.cjs} +19 -19
  178. package/dist/index-BNojWn2E.js +2152 -0
  179. package/dist/index-C5dNuV-2.cjs +5 -0
  180. package/dist/{index-BUxqDIr9.js → index-CVpJYeY2.js} +4 -4
  181. package/dist/{index-D7nFYLYq.cjs → index-D3PBNx_m.cjs} +1 -1
  182. package/dist/{index-CNv8ppur.cjs → index-OLlWw08I.cjs} +1 -1
  183. package/dist/{index-CRT92bm7.js → index-waINWr3i.js} +3 -3
  184. package/dist/index.cjs.js +1 -1
  185. package/dist/index.es.js +277 -265
  186. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  187. package/dist/isFocusVisible-DlSijby6.cjs +2 -0
  188. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  189. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  190. package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-BPA1FjB4.cjs} +1 -1
  191. package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CMJVTZEg.js} +1 -1
  192. package/dist/ownerDocument-4MViGo3k.cjs +1 -0
  193. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  194. package/dist/ownerWindow-DDHucZi0.cjs +1 -0
  195. package/dist/ownerWindow-niciwP7I.js +7 -0
  196. package/dist/refType-BmrOFNz6.js +7 -0
  197. package/dist/refType-Dm84STBj.cjs +1 -0
  198. package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-4nhUsl3a.cjs} +1 -1
  199. package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-DHoZOPOi.js} +1 -1
  200. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  201. package/dist/useForkRef-C_4o__cU.js +15 -0
  202. package/dist/{useSlot-42jgZftI.cjs → useSlot-CJAXUvYJ.cjs} +1 -1
  203. package/dist/{useSlot-Co14PUn6.js → useSlot-t9oGnIgq.js} +2 -2
  204. package/dist/{useTheme-tZYpFplW.cjs → useTheme-BIogn5Me.cjs} +1 -1
  205. package/dist/{useTheme-cVN-YQNB.cjs → useTheme-Bz4LKMiC.cjs} +1 -1
  206. package/dist/{useTheme-oM_SFWy4.js → useTheme-CBsFvF7I.js} +1 -1
  207. package/dist/{useTheme-CtT7O-Wk.js → useTheme-L3EQmvnN.js} +3 -3
  208. package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-5Bku71LW.js} +2 -2
  209. package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-C692LOYf.cjs} +1 -1
  210. package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-DNFKz8wS.cjs} +1 -1
  211. package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-I9EHeqzU.js} +3 -3
  212. package/dist/{useTimeout-D16vpBhn.js → useTimeout-3Y5y4gWq.js} +4 -4
  213. package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-CxOQget6.cjs} +1 -1
  214. package/dist/utils-BWx1W_q1.cjs +1 -0
  215. package/dist/utils-CE_a8glN.js +391 -0
  216. package/dist/utils-CusX8Edy.cjs +1 -0
  217. package/dist/utils-DWqc1kRF.js +13 -0
  218. package/package.json +5 -5
  219. package/dist/Backdrop-KAJqifAq.cjs +0 -1
  220. package/dist/Backdrop-RBPtVAPX.js +0 -744
  221. package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
  222. package/dist/DatePicker-rhgpaD-r.cjs +0 -17
  223. package/dist/DatePicker-u4rtXGeo.js +0 -12791
  224. package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
  225. package/dist/FormGroup-BBYEQB4C.cjs +0 -1
  226. package/dist/FormGroup-BVtE8Mrv.js +0 -348
  227. package/dist/FormLabel-D8jYibc1.cjs +0 -2
  228. package/dist/IconButton-CVyLtjcH.cjs +0 -2
  229. package/dist/InputBase-Ctmib7Br.cjs +0 -3
  230. package/dist/MenuItem-Els-vJZW.cjs +0 -1
  231. package/dist/Select-BlPQngVF.js +0 -4720
  232. package/dist/Select-ipcMZ4iK.cjs +0 -11
  233. package/dist/Tabs-Nvk94RTW.cjs +0 -4
  234. package/dist/Tooltip-DvPL2M0E.cjs +0 -100
  235. package/dist/formControlState-DCkDUdfO.cjs +0 -1
  236. package/dist/formControlState-DdQP43Uo.js +0 -21
  237. package/dist/fr-B8_MxRl5.js +0 -307
  238. package/dist/fr-Nvp7C-vS.cjs +0 -1
  239. package/dist/ownerWindow-BoRkeomM.js +0 -23
  240. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  241. package/dist/refType-DlHf9HvO.js +0 -27
  242. package/dist/refType-Do7KaOvv.cjs +0 -1
  243. package/dist/useForkRef-D-DyzOXj.js +0 -21
  244. package/dist/useForkRef-D81w5oMb.cjs +0 -1
@@ -0,0 +1,750 @@
1
+ import * as u from "react";
2
+ import { P as n, I as me, H as he, G as Z } from "./identifier-Bn0tF6ls.js";
3
+ import { m as ge } from "./memoTheme-CMJVTZEg.js";
4
+ import { o as z } from "./ownerWindow-niciwP7I.js";
5
+ import { o as A } from "./ownerDocument-CUrv0DIK.js";
6
+ import { u as Y } from "./useForkRef-C_4o__cU.js";
7
+ import { a as ee } from "./useTimeout-3Y5y4gWq.js";
8
+ import { e as Ee } from "./resolveComponentProps-DHoZOPOi.js";
9
+ import { c as te } from "./createChainedFunction-C0nujS3O.js";
10
+ import { u as oe } from "./useSlot-t9oGnIgq.js";
11
+ import { jsxs as se, jsx as j } from "react/jsx-runtime";
12
+ import { s as ie, u as Te, c as ye } from "./DefaultPropsProvider-xJkZOrdv.js";
13
+ import { B as Re } from "./Backdrop-BlKt7y1x.js";
14
+ import { e as xe, P as ke, H as ve } from "./Portal-BKbBRbWN.js";
15
+ import { g as Pe, e as ce } from "./utils-CE_a8glN.js";
16
+ function Ie(e = window) {
17
+ const t = e.document.documentElement.clientWidth;
18
+ return e.innerWidth - t;
19
+ }
20
+ function Ne(e) {
21
+ const t = A(e);
22
+ return t.body === e ? z(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
23
+ }
24
+ function K(e, t) {
25
+ t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
26
+ }
27
+ function ne(e) {
28
+ return parseInt(z(e).getComputedStyle(e).paddingRight, 10) || 0;
29
+ }
30
+ function Se(e) {
31
+ const s = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
32
+ return s || o;
33
+ }
34
+ function re(e, t, s, o, i) {
35
+ const r = [t, s, ...o];
36
+ [].forEach.call(e.children, (c) => {
37
+ const a = !r.includes(c), b = !Se(c);
38
+ a && b && K(c, i);
39
+ });
40
+ }
41
+ function $(e, t) {
42
+ let s = -1;
43
+ return e.some((o, i) => t(o) ? (s = i, !0) : !1), s;
44
+ }
45
+ function Ce(e, t) {
46
+ const s = [], o = e.container;
47
+ if (!t.disableScrollLock) {
48
+ if (Ne(o)) {
49
+ const c = Ie(z(o));
50
+ s.push({
51
+ value: o.style.paddingRight,
52
+ property: "padding-right",
53
+ el: o
54
+ }), o.style.paddingRight = `${ne(o) + c}px`;
55
+ const a = A(o).querySelectorAll(".mui-fixed");
56
+ [].forEach.call(a, (b) => {
57
+ s.push({
58
+ value: b.style.paddingRight,
59
+ property: "padding-right",
60
+ el: b
61
+ }), b.style.paddingRight = `${ne(b) + c}px`;
62
+ });
63
+ }
64
+ let r;
65
+ if (o.parentNode instanceof DocumentFragment)
66
+ r = A(o).body;
67
+ else {
68
+ const c = o.parentElement, a = z(o);
69
+ r = (c == null ? void 0 : c.nodeName) === "HTML" && a.getComputedStyle(c).overflowY === "scroll" ? c : o;
70
+ }
71
+ s.push({
72
+ value: r.style.overflow,
73
+ property: "overflow",
74
+ el: r
75
+ }, {
76
+ value: r.style.overflowX,
77
+ property: "overflow-x",
78
+ el: r
79
+ }, {
80
+ value: r.style.overflowY,
81
+ property: "overflow-y",
82
+ el: r
83
+ }), r.style.overflow = "hidden";
84
+ }
85
+ return () => {
86
+ s.forEach(({
87
+ value: r,
88
+ el: c,
89
+ property: a
90
+ }) => {
91
+ r ? c.style.setProperty(a, r) : c.style.removeProperty(a);
92
+ });
93
+ };
94
+ }
95
+ function Fe(e) {
96
+ const t = [];
97
+ return [].forEach.call(e.children, (s) => {
98
+ s.getAttribute("aria-hidden") === "true" && t.push(s);
99
+ }), t;
100
+ }
101
+ class Me {
102
+ constructor() {
103
+ this.modals = [], this.containers = [];
104
+ }
105
+ add(t, s) {
106
+ let o = this.modals.indexOf(t);
107
+ if (o !== -1)
108
+ return o;
109
+ o = this.modals.length, this.modals.push(t), t.modalRef && K(t.modalRef, !1);
110
+ const i = Fe(s);
111
+ re(s, t.mount, t.modalRef, i, !0);
112
+ const r = $(this.containers, (c) => c.container === s);
113
+ return r !== -1 ? (this.containers[r].modals.push(t), o) : (this.containers.push({
114
+ modals: [t],
115
+ container: s,
116
+ restore: null,
117
+ hiddenSiblings: i
118
+ }), o);
119
+ }
120
+ mount(t, s) {
121
+ const o = $(this.containers, (r) => r.modals.includes(t)), i = this.containers[o];
122
+ i.restore || (i.restore = Ce(i, s));
123
+ }
124
+ remove(t, s = !0) {
125
+ const o = this.modals.indexOf(t);
126
+ if (o === -1)
127
+ return o;
128
+ const i = $(this.containers, (c) => c.modals.includes(t)), r = this.containers[i];
129
+ if (r.modals.splice(r.modals.indexOf(t), 1), this.modals.splice(o, 1), r.modals.length === 0)
130
+ r.restore && r.restore(), t.modalRef && K(t.modalRef, s), re(r.container, t.mount, t.modalRef, r.hiddenSiblings, !1), this.containers.splice(i, 1);
131
+ else {
132
+ const c = r.modals[r.modals.length - 1];
133
+ c.modalRef && K(c.modalRef, !1);
134
+ }
135
+ return o;
136
+ }
137
+ isTopModal(t) {
138
+ return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
139
+ }
140
+ }
141
+ const Oe = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
142
+ function we(e) {
143
+ const t = parseInt(e.getAttribute("tabindex") || "", 10);
144
+ return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
145
+ }
146
+ function Ae(e) {
147
+ if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
148
+ return !1;
149
+ const t = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
150
+ let s = t(`[name="${e.name}"]:checked`);
151
+ return s || (s = t(`[name="${e.name}"]`)), s !== e;
152
+ }
153
+ function De(e) {
154
+ return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Ae(e));
155
+ }
156
+ function Be(e) {
157
+ const t = [], s = [];
158
+ return Array.from(e.querySelectorAll(Oe)).forEach((o, i) => {
159
+ const r = we(o);
160
+ r === -1 || !De(o) || (r === 0 ? t.push(o) : s.push({
161
+ documentOrder: i,
162
+ tabIndex: r,
163
+ node: o
164
+ }));
165
+ }), s.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
166
+ }
167
+ function Le() {
168
+ return !0;
169
+ }
170
+ function V(e) {
171
+ const {
172
+ children: t,
173
+ disableAutoFocus: s = !1,
174
+ disableEnforceFocus: o = !1,
175
+ disableRestoreFocus: i = !1,
176
+ getTabbable: r = Be,
177
+ isEnabled: c = Le,
178
+ open: a
179
+ } = e, b = u.useRef(!1), E = u.useRef(null), k = u.useRef(null), h = u.useRef(null), y = u.useRef(null), m = u.useRef(!1), p = u.useRef(null), w = Y(Pe(t), p), N = u.useRef(null);
180
+ u.useEffect(() => {
181
+ !a || !p.current || (m.current = !s);
182
+ }, [s, a]), u.useEffect(() => {
183
+ if (!a || !p.current)
184
+ return;
185
+ const l = A(p.current);
186
+ return p.current.contains(l.activeElement) || (p.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
187
+ `)), p.current.setAttribute("tabIndex", "-1")), m.current && p.current.focus()), () => {
188
+ i || (h.current && h.current.focus && (b.current = !0, h.current.focus()), h.current = null);
189
+ };
190
+ }, [a]), u.useEffect(() => {
191
+ if (!a || !p.current)
192
+ return;
193
+ const l = A(p.current), g = (T) => {
194
+ N.current = T, !(o || !c() || T.key !== "Tab") && l.activeElement === p.current && T.shiftKey && (b.current = !0, k.current && k.current.focus());
195
+ }, v = () => {
196
+ var P, M;
197
+ const T = p.current;
198
+ if (T === null)
199
+ return;
200
+ if (!l.hasFocus() || !c() || b.current) {
201
+ b.current = !1;
202
+ return;
203
+ }
204
+ if (T.contains(l.activeElement) || o && l.activeElement !== E.current && l.activeElement !== k.current)
205
+ return;
206
+ if (l.activeElement !== y.current)
207
+ y.current = null;
208
+ else if (y.current !== null)
209
+ return;
210
+ if (!m.current)
211
+ return;
212
+ let C = [];
213
+ if ((l.activeElement === E.current || l.activeElement === k.current) && (C = r(p.current)), C.length > 0) {
214
+ const D = !!((P = N.current) != null && P.shiftKey && ((M = N.current) == null ? void 0 : M.key) === "Tab"), B = C[0], U = C[C.length - 1];
215
+ typeof B != "string" && typeof U != "string" && (D ? U.focus() : B.focus());
216
+ } else
217
+ T.focus();
218
+ };
219
+ l.addEventListener("focusin", v), l.addEventListener("keydown", g, !0);
220
+ const F = setInterval(() => {
221
+ l.activeElement && l.activeElement.tagName === "BODY" && v();
222
+ }, 50);
223
+ return () => {
224
+ clearInterval(F), l.removeEventListener("focusin", v), l.removeEventListener("keydown", g, !0);
225
+ };
226
+ }, [s, o, i, c, a, r]);
227
+ const S = (l) => {
228
+ h.current === null && (h.current = l.relatedTarget), m.current = !0, y.current = l.target;
229
+ const g = t.props.onFocus;
230
+ g && g(l);
231
+ }, R = (l) => {
232
+ h.current === null && (h.current = l.relatedTarget), m.current = !0;
233
+ };
234
+ return /* @__PURE__ */ se(u.Fragment, {
235
+ children: [/* @__PURE__ */ j("div", {
236
+ tabIndex: a ? 0 : -1,
237
+ onFocus: R,
238
+ ref: E,
239
+ "data-testid": "sentinelStart"
240
+ }), /* @__PURE__ */ u.cloneElement(t, {
241
+ ref: w,
242
+ onFocus: S
243
+ }), /* @__PURE__ */ j("div", {
244
+ tabIndex: a ? 0 : -1,
245
+ onFocus: R,
246
+ ref: k,
247
+ "data-testid": "sentinelEnd"
248
+ })]
249
+ });
250
+ }
251
+ process.env.NODE_ENV !== "production" && (V.propTypes = {
252
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
253
+ // │ These PropTypes are generated from the TypeScript type definitions. │
254
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
255
+ // └─────────────────────────────────────────────────────────────────────┘
256
+ /**
257
+ * A single child content element.
258
+ */
259
+ children: ce,
260
+ /**
261
+ * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
262
+ * replace it to the last focused element when it closes.
263
+ * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
264
+ *
265
+ * Generally this should never be set to `true` as it makes the focus trap less
266
+ * accessible to assistive technologies, like screen readers.
267
+ * @default false
268
+ */
269
+ disableAutoFocus: n.bool,
270
+ /**
271
+ * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
272
+ *
273
+ * Generally this should never be set to `true` as it makes the focus trap less
274
+ * accessible to assistive technologies, like screen readers.
275
+ * @default false
276
+ */
277
+ disableEnforceFocus: n.bool,
278
+ /**
279
+ * If `true`, the focus trap will not restore focus to previously focused element once
280
+ * focus trap is hidden or unmounted.
281
+ * @default false
282
+ */
283
+ disableRestoreFocus: n.bool,
284
+ /**
285
+ * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
286
+ * For instance, you can provide the "tabbable" npm dependency.
287
+ * @param {HTMLElement} root
288
+ */
289
+ getTabbable: n.func,
290
+ /**
291
+ * This prop extends the `open` prop.
292
+ * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
293
+ * This prop should be memoized.
294
+ * It can be used to support multiple focus trap mounted at the same time.
295
+ * @default function defaultIsEnabled(): boolean {
296
+ * return true;
297
+ * }
298
+ */
299
+ isEnabled: n.func,
300
+ /**
301
+ * If `true`, focus is locked.
302
+ */
303
+ open: n.bool.isRequired
304
+ });
305
+ process.env.NODE_ENV !== "production" && (V.propTypes = xe(V.propTypes));
306
+ function je(e) {
307
+ return typeof e == "function" ? e() : e;
308
+ }
309
+ function Ke(e) {
310
+ return e ? e.props.hasOwnProperty("in") : !1;
311
+ }
312
+ const H = new Me();
313
+ function Ue(e) {
314
+ const {
315
+ container: t,
316
+ disableEscapeKeyDown: s = !1,
317
+ disableScrollLock: o = !1,
318
+ closeAfterTransition: i = !1,
319
+ onTransitionEnter: r,
320
+ onTransitionExited: c,
321
+ children: a,
322
+ onClose: b,
323
+ open: E,
324
+ rootRef: k
325
+ } = e, h = u.useRef({}), y = u.useRef(null), m = u.useRef(null), p = Y(m, k), [w, N] = u.useState(!E), S = Ke(a);
326
+ let R = !0;
327
+ (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1);
328
+ const l = () => A(y.current), g = () => (h.current.modalRef = m.current, h.current.mount = y.current, h.current), v = () => {
329
+ H.mount(g(), {
330
+ disableScrollLock: o
331
+ }), m.current && (m.current.scrollTop = 0);
332
+ }, F = ee(() => {
333
+ const d = je(t) || l().body;
334
+ H.add(g(), d), m.current && v();
335
+ }), T = () => H.isTopModal(g()), C = ee((d) => {
336
+ y.current = d, d && (E && T() ? v() : m.current && K(m.current, R));
337
+ }), P = u.useCallback(() => {
338
+ H.remove(g(), R);
339
+ }, [R]);
340
+ u.useEffect(() => () => {
341
+ P();
342
+ }, [P]), u.useEffect(() => {
343
+ E ? F() : (!S || !i) && P();
344
+ }, [E, P, S, i, F]);
345
+ const M = (d) => (f) => {
346
+ var x;
347
+ (x = d.onKeyDown) == null || x.call(d, f), !(f.key !== "Escape" || f.which === 229 || // Wait until IME is settled.
348
+ !T()) && (s || (f.stopPropagation(), b && b(f, "escapeKeyDown")));
349
+ }, D = (d) => (f) => {
350
+ var x;
351
+ (x = d.onClick) == null || x.call(d, f), f.target === f.currentTarget && b && b(f, "backdropClick");
352
+ };
353
+ return {
354
+ getRootProps: (d = {}) => {
355
+ const f = Ee(e);
356
+ delete f.onTransitionEnter, delete f.onTransitionExited;
357
+ const x = {
358
+ ...f,
359
+ ...d
360
+ };
361
+ return {
362
+ /*
363
+ * Marking an element with the role presentation indicates to assistive technology
364
+ * that this element should be ignored; it exists to support the web application and
365
+ * is not meant for humans to interact with directly.
366
+ * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
367
+ */
368
+ role: "presentation",
369
+ ...x,
370
+ onKeyDown: M(x),
371
+ ref: p
372
+ };
373
+ },
374
+ getBackdropProps: (d = {}) => {
375
+ const f = d;
376
+ return {
377
+ "aria-hidden": !0,
378
+ ...f,
379
+ onClick: D(f),
380
+ open: E
381
+ };
382
+ },
383
+ getTransitionProps: () => {
384
+ const d = () => {
385
+ N(!1), r && r();
386
+ }, f = () => {
387
+ N(!0), c && c(), i && P();
388
+ };
389
+ return {
390
+ onEnter: te(d, a == null ? void 0 : a.props.onEnter),
391
+ onExited: te(f, a == null ? void 0 : a.props.onExited)
392
+ };
393
+ },
394
+ rootRef: p,
395
+ portalRef: C,
396
+ isTopModal: T,
397
+ exited: w,
398
+ hasTransition: S
399
+ };
400
+ }
401
+ function We(e) {
402
+ return he("MuiModal", e);
403
+ }
404
+ me("MuiModal", ["root", "hidden", "backdrop"]);
405
+ const qe = (e) => {
406
+ const {
407
+ open: t,
408
+ exited: s,
409
+ classes: o
410
+ } = e;
411
+ return ye({
412
+ root: ["root", !t && s && "hidden"],
413
+ backdrop: ["backdrop"]
414
+ }, We, o);
415
+ }, He = ie("div", {
416
+ name: "MuiModal",
417
+ slot: "Root",
418
+ overridesResolver: (e, t) => {
419
+ const {
420
+ ownerState: s
421
+ } = e;
422
+ return [t.root, !s.open && s.exited && t.hidden];
423
+ }
424
+ })(ge(({
425
+ theme: e
426
+ }) => ({
427
+ position: "fixed",
428
+ zIndex: (e.vars || e).zIndex.modal,
429
+ right: 0,
430
+ bottom: 0,
431
+ top: 0,
432
+ left: 0,
433
+ variants: [{
434
+ props: ({
435
+ ownerState: t
436
+ }) => !t.open && t.exited,
437
+ style: {
438
+ visibility: "hidden"
439
+ }
440
+ }]
441
+ }))), ze = ie(Re, {
442
+ name: "MuiModal",
443
+ slot: "Backdrop",
444
+ overridesResolver: (e, t) => t.backdrop
445
+ })({
446
+ zIndex: -1
447
+ }), Ve = /* @__PURE__ */ u.forwardRef(function(t, s) {
448
+ const o = Te({
449
+ name: "MuiModal",
450
+ props: t
451
+ }), {
452
+ BackdropComponent: i = ze,
453
+ BackdropProps: r,
454
+ classes: c,
455
+ className: a,
456
+ closeAfterTransition: b = !1,
457
+ children: E,
458
+ container: k,
459
+ component: h,
460
+ components: y = {},
461
+ componentsProps: m = {},
462
+ disableAutoFocus: p = !1,
463
+ disableEnforceFocus: w = !1,
464
+ disableEscapeKeyDown: N = !1,
465
+ disablePortal: S = !1,
466
+ disableRestoreFocus: R = !1,
467
+ disableScrollLock: l = !1,
468
+ hideBackdrop: g = !1,
469
+ keepMounted: v = !1,
470
+ onBackdropClick: F,
471
+ onClose: T,
472
+ onTransitionEnter: C,
473
+ onTransitionExited: P,
474
+ open: M,
475
+ slotProps: D = {},
476
+ slots: B = {},
477
+ // eslint-disable-next-line react/prop-types
478
+ theme: U,
479
+ ..._
480
+ } = o, d = {
481
+ ...o,
482
+ closeAfterTransition: b,
483
+ disableAutoFocus: p,
484
+ disableEnforceFocus: w,
485
+ disableEscapeKeyDown: N,
486
+ disablePortal: S,
487
+ disableRestoreFocus: R,
488
+ disableScrollLock: l,
489
+ hideBackdrop: g,
490
+ keepMounted: v
491
+ }, {
492
+ getRootProps: f,
493
+ getBackdropProps: x,
494
+ getTransitionProps: ae,
495
+ portalRef: le,
496
+ isTopModal: ue,
497
+ exited: G,
498
+ hasTransition: X
499
+ } = Ue({
500
+ ...d,
501
+ rootRef: s
502
+ }), L = {
503
+ ...d,
504
+ exited: G
505
+ }, I = qe(L), W = {};
506
+ if (E.props.tabIndex === void 0 && (W.tabIndex = "-1"), X) {
507
+ const {
508
+ onEnter: O,
509
+ onExited: q
510
+ } = ae();
511
+ W.onEnter = O, W.onExited = q;
512
+ }
513
+ const J = {
514
+ ..._,
515
+ slots: {
516
+ root: y.Root,
517
+ backdrop: y.Backdrop,
518
+ ...B
519
+ },
520
+ slotProps: {
521
+ ...m,
522
+ ...D
523
+ }
524
+ }, [de, fe] = oe("root", {
525
+ elementType: He,
526
+ externalForwardedProps: J,
527
+ getSlotProps: f,
528
+ additionalProps: {
529
+ ref: s,
530
+ as: h
531
+ },
532
+ ownerState: L,
533
+ className: Z(a, I == null ? void 0 : I.root, !L.open && L.exited && (I == null ? void 0 : I.hidden))
534
+ }), [pe, Q] = oe("backdrop", {
535
+ elementType: i,
536
+ externalForwardedProps: J,
537
+ additionalProps: r,
538
+ getSlotProps: (O) => x({
539
+ ...O,
540
+ onClick: (q) => {
541
+ F && F(q), O != null && O.onClick && O.onClick(q);
542
+ }
543
+ }),
544
+ className: Z(r == null ? void 0 : r.className, I == null ? void 0 : I.backdrop),
545
+ ownerState: L
546
+ }), be = Y(r == null ? void 0 : r.ref, Q.ref);
547
+ return !v && !M && (!X || G) ? null : /* @__PURE__ */ j(ke, {
548
+ ref: le,
549
+ container: k,
550
+ disablePortal: S,
551
+ children: /* @__PURE__ */ se(de, {
552
+ ...fe,
553
+ children: [!g && i ? /* @__PURE__ */ j(pe, {
554
+ ...Q,
555
+ ref: be
556
+ }) : null, /* @__PURE__ */ j(V, {
557
+ disableEnforceFocus: w,
558
+ disableAutoFocus: p,
559
+ disableRestoreFocus: R,
560
+ isEnabled: ue,
561
+ open: M,
562
+ children: /* @__PURE__ */ u.cloneElement(E, W)
563
+ })]
564
+ })
565
+ });
566
+ });
567
+ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
568
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
569
+ // │ These PropTypes are generated from the TypeScript type definitions. │
570
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
571
+ // └─────────────────────────────────────────────────────────────────────┘
572
+ /**
573
+ * A backdrop component. This prop enables custom backdrop rendering.
574
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
575
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
576
+ * @default styled(Backdrop, {
577
+ * name: 'MuiModal',
578
+ * slot: 'Backdrop',
579
+ * overridesResolver: (props, styles) => {
580
+ * return styles.backdrop;
581
+ * },
582
+ * })({
583
+ * zIndex: -1,
584
+ * })
585
+ */
586
+ BackdropComponent: n.elementType,
587
+ /**
588
+ * Props applied to the [`Backdrop`](https://mui.com/material-ui/api/backdrop/) element.
589
+ * @deprecated Use `slotProps.backdrop` instead.
590
+ */
591
+ BackdropProps: n.object,
592
+ /**
593
+ * A single child content element.
594
+ */
595
+ children: ce.isRequired,
596
+ /**
597
+ * Override or extend the styles applied to the component.
598
+ */
599
+ classes: n.object,
600
+ /**
601
+ * @ignore
602
+ */
603
+ className: n.string,
604
+ /**
605
+ * When set to true the Modal waits until a nested Transition is completed before closing.
606
+ * @default false
607
+ */
608
+ closeAfterTransition: n.bool,
609
+ /**
610
+ * The component used for the root node.
611
+ * Either a string to use a HTML element or a component.
612
+ */
613
+ component: n.elementType,
614
+ /**
615
+ * The components used for each slot inside.
616
+ *
617
+ * @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
618
+ *
619
+ * @default {}
620
+ */
621
+ components: n.shape({
622
+ Backdrop: n.elementType,
623
+ Root: n.elementType
624
+ }),
625
+ /**
626
+ * The extra props for the slot components.
627
+ * You can override the existing props or add new ones.
628
+ *
629
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
630
+ *
631
+ * @default {}
632
+ */
633
+ componentsProps: n.shape({
634
+ backdrop: n.oneOfType([n.func, n.object]),
635
+ root: n.oneOfType([n.func, n.object])
636
+ }),
637
+ /**
638
+ * An HTML element or function that returns one.
639
+ * The `container` will have the portal children appended to it.
640
+ *
641
+ * You can also provide a callback, which is called in a React layout effect.
642
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
643
+ *
644
+ * By default, it uses the body of the top-level document object,
645
+ * so it's simply `document.body` most of the time.
646
+ */
647
+ container: n.oneOfType([ve, n.func]),
648
+ /**
649
+ * If `true`, the modal will not automatically shift focus to itself when it opens, and
650
+ * replace it to the last focused element when it closes.
651
+ * This also works correctly with any modal children that have the `disableAutoFocus` prop.
652
+ *
653
+ * Generally this should never be set to `true` as it makes the modal less
654
+ * accessible to assistive technologies, like screen readers.
655
+ * @default false
656
+ */
657
+ disableAutoFocus: n.bool,
658
+ /**
659
+ * If `true`, the modal will not prevent focus from leaving the modal while open.
660
+ *
661
+ * Generally this should never be set to `true` as it makes the modal less
662
+ * accessible to assistive technologies, like screen readers.
663
+ * @default false
664
+ */
665
+ disableEnforceFocus: n.bool,
666
+ /**
667
+ * If `true`, hitting escape will not fire the `onClose` callback.
668
+ * @default false
669
+ */
670
+ disableEscapeKeyDown: n.bool,
671
+ /**
672
+ * The `children` will be under the DOM hierarchy of the parent component.
673
+ * @default false
674
+ */
675
+ disablePortal: n.bool,
676
+ /**
677
+ * If `true`, the modal will not restore focus to previously focused element once
678
+ * modal is hidden or unmounted.
679
+ * @default false
680
+ */
681
+ disableRestoreFocus: n.bool,
682
+ /**
683
+ * Disable the scroll lock behavior.
684
+ * @default false
685
+ */
686
+ disableScrollLock: n.bool,
687
+ /**
688
+ * If `true`, the backdrop is not rendered.
689
+ * @default false
690
+ */
691
+ hideBackdrop: n.bool,
692
+ /**
693
+ * Always keep the children in the DOM.
694
+ * This prop can be useful in SEO situation or
695
+ * when you want to maximize the responsiveness of the Modal.
696
+ * @default false
697
+ */
698
+ keepMounted: n.bool,
699
+ /**
700
+ * Callback fired when the backdrop is clicked.
701
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
702
+ */
703
+ onBackdropClick: n.func,
704
+ /**
705
+ * Callback fired when the component requests to be closed.
706
+ * The `reason` parameter can optionally be used to control the response to `onClose`.
707
+ *
708
+ * @param {object} event The event source of the callback.
709
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
710
+ */
711
+ onClose: n.func,
712
+ /**
713
+ * A function called when a transition enters.
714
+ */
715
+ onTransitionEnter: n.func,
716
+ /**
717
+ * A function called when a transition has exited.
718
+ */
719
+ onTransitionExited: n.func,
720
+ /**
721
+ * If `true`, the component is shown.
722
+ */
723
+ open: n.bool.isRequired,
724
+ /**
725
+ * The props used for each slot inside the Modal.
726
+ * @default {}
727
+ */
728
+ slotProps: n.shape({
729
+ backdrop: n.oneOfType([n.func, n.object]),
730
+ root: n.oneOfType([n.func, n.object])
731
+ }),
732
+ /**
733
+ * The components used for each slot inside the Modal.
734
+ * Either a string to use a HTML element or a component.
735
+ * @default {}
736
+ */
737
+ slots: n.shape({
738
+ backdrop: n.elementType,
739
+ root: n.elementType
740
+ }),
741
+ /**
742
+ * The system prop that allows defining system overrides as well as additional CSS styles.
743
+ */
744
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
745
+ });
746
+ export {
747
+ V as F,
748
+ Ve as M,
749
+ Ie as g
750
+ };