@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,965 @@
1
+ import * as s from "react";
2
+ import { s as V, u as ee, c as oe, e as ye, r as Le } from "./DefaultPropsProvider-xJkZOrdv.js";
3
+ import { H as te, I as ne, G as Y, P as e } from "./identifier-Bn0tF6ls.js";
4
+ import { u as je, a as fe } from "./index-waINWr3i.js";
5
+ import { jsx as z, jsxs as ke } from "react/jsx-runtime";
6
+ import { i as Fe } from "./isHostComponent-kiaBvYVo.js";
7
+ import { u as de } from "./useSlot-t9oGnIgq.js";
8
+ import { g as ze, M as Ke } from "./Modal-D_mqYIr2.js";
9
+ import { P as He, i as Ue } from "./Paper-D973Ow-i.js";
10
+ import { o as J } from "./ownerDocument-CUrv0DIK.js";
11
+ import { o as Q } from "./ownerWindow-niciwP7I.js";
12
+ import { d as Ve } from "./debounce-46wSf_lW.js";
13
+ import { u as ve } from "./useForkRef-C_4o__cU.js";
14
+ import { u as _e, r as Ae } from "./refType-BmrOFNz6.js";
15
+ import { c as We } from "./chainPropTypes-D9lkm76m.js";
16
+ import { H as Z } from "./Portal-BKbBRbWN.js";
17
+ import { e as $e } from "./elementTypeAcceptingRef-modXfN2G.js";
18
+ import { G as qe } from "./Grow-SW33sONG.js";
19
+ const Pe = /* @__PURE__ */ s.createContext({});
20
+ process.env.NODE_ENV !== "production" && (Pe.displayName = "ListContext");
21
+ function Be(t) {
22
+ return te("MuiList", t);
23
+ }
24
+ const Ro = ne("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) => {
25
+ const {
26
+ classes: o,
27
+ disablePadding: n,
28
+ dense: y,
29
+ subheader: g
30
+ } = t;
31
+ return oe({
32
+ root: ["root", !n && "padding", y && "dense", g && "subheader"]
33
+ }, Be, o);
34
+ }, Ye = V("ul", {
35
+ name: "MuiList",
36
+ slot: "Root",
37
+ overridesResolver: (t, o) => {
38
+ const {
39
+ ownerState: n
40
+ } = t;
41
+ return [o.root, !n.disablePadding && o.padding, n.dense && o.dense, n.subheader && o.subheader];
42
+ }
43
+ })({
44
+ listStyle: "none",
45
+ margin: 0,
46
+ padding: 0,
47
+ position: "relative",
48
+ variants: [{
49
+ props: ({
50
+ ownerState: t
51
+ }) => !t.disablePadding,
52
+ style: {
53
+ paddingTop: 8,
54
+ paddingBottom: 8
55
+ }
56
+ }, {
57
+ props: ({
58
+ ownerState: t
59
+ }) => t.subheader,
60
+ style: {
61
+ paddingTop: 0
62
+ }
63
+ }]
64
+ }), Te = /* @__PURE__ */ s.forwardRef(function(o, n) {
65
+ const y = ee({
66
+ props: o,
67
+ name: "MuiList"
68
+ }), {
69
+ children: g,
70
+ className: h,
71
+ component: b = "ul",
72
+ dense: a = !1,
73
+ disablePadding: m = !1,
74
+ subheader: E,
75
+ ...O
76
+ } = y, S = s.useMemo(() => ({
77
+ dense: a
78
+ }), [a]), D = {
79
+ ...y,
80
+ component: b,
81
+ dense: a,
82
+ disablePadding: m
83
+ }, i = Ge(D);
84
+ return /* @__PURE__ */ z(Pe.Provider, {
85
+ value: S,
86
+ children: /* @__PURE__ */ ke(Ye, {
87
+ as: b,
88
+ className: Y(i.root, h),
89
+ ref: n,
90
+ ownerState: D,
91
+ ...O,
92
+ children: [E, g]
93
+ })
94
+ });
95
+ });
96
+ process.env.NODE_ENV !== "production" && (Te.propTypes = {
97
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
98
+ // │ These PropTypes are generated from the TypeScript type definitions. │
99
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
100
+ // └─────────────────────────────────────────────────────────────────────┘
101
+ /**
102
+ * The content of the component.
103
+ */
104
+ children: e.node,
105
+ /**
106
+ * Override or extend the styles applied to the component.
107
+ */
108
+ classes: e.object,
109
+ /**
110
+ * @ignore
111
+ */
112
+ className: e.string,
113
+ /**
114
+ * The component used for the root node.
115
+ * Either a string to use a HTML element or a component.
116
+ */
117
+ component: e.elementType,
118
+ /**
119
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used for
120
+ * the list and list items.
121
+ * The prop is available to descendant components as the `dense` context.
122
+ * @default false
123
+ */
124
+ dense: e.bool,
125
+ /**
126
+ * If `true`, vertical padding is removed from the list.
127
+ * @default false
128
+ */
129
+ disablePadding: e.bool,
130
+ /**
131
+ * The content of the subheader, normally `ListSubheader`.
132
+ */
133
+ subheader: e.node,
134
+ /**
135
+ * The system prop that allows defining system overrides as well as additional CSS styles.
136
+ */
137
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
138
+ });
139
+ function X(t, o, n) {
140
+ return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
141
+ }
142
+ function he(t, o, n) {
143
+ return t === o ? n ? t.firstChild : t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : n ? null : t.lastChild;
144
+ }
145
+ function Ee(t, o) {
146
+ if (o === void 0)
147
+ return !0;
148
+ let n = t.innerText;
149
+ return n === void 0 && (n = t.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : o.repeating ? n[0] === o.keys[0] : n.startsWith(o.keys.join(""));
150
+ }
151
+ function W(t, o, n, y, g, h) {
152
+ let b = !1, a = g(t, o, o ? n : !1);
153
+ for (; a; ) {
154
+ if (a === t.firstChild) {
155
+ if (b)
156
+ return !1;
157
+ b = !0;
158
+ }
159
+ const m = y ? !1 : a.disabled || a.getAttribute("aria-disabled") === "true";
160
+ if (!a.hasAttribute("tabindex") || !Ee(a, h) || m)
161
+ a = g(t, a, n);
162
+ else
163
+ return a.focus(), !0;
164
+ }
165
+ return !1;
166
+ }
167
+ const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
168
+ const {
169
+ // private
170
+ // eslint-disable-next-line react/prop-types
171
+ actions: y,
172
+ autoFocus: g = !1,
173
+ autoFocusItem: h = !1,
174
+ children: b,
175
+ className: a,
176
+ disabledItemsFocusable: m = !1,
177
+ disableListWrap: E = !1,
178
+ onKeyDown: O,
179
+ variant: S = "selectedMenu",
180
+ ...D
181
+ } = o, i = s.useRef(null), v = s.useRef({
182
+ keys: [],
183
+ repeating: !0,
184
+ previousKeyMatched: !0,
185
+ lastTime: null
186
+ });
187
+ _e(() => {
188
+ g && i.current.focus();
189
+ }, [g]), s.useImperativeHandle(y, () => ({
190
+ adjustStyleForScrollbar: (r, {
191
+ direction: l
192
+ }) => {
193
+ const f = !i.current.style.width;
194
+ if (r.clientHeight < i.current.clientHeight && f) {
195
+ const N = `${ze(Q(r))}px`;
196
+ i.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = N, i.current.style.width = `calc(100% + ${N})`;
197
+ }
198
+ return i.current;
199
+ }
200
+ }), []);
201
+ const K = (r) => {
202
+ const l = i.current, f = r.key;
203
+ if (r.ctrlKey || r.metaKey || r.altKey) {
204
+ O && O(r);
205
+ return;
206
+ }
207
+ const R = J(l).activeElement;
208
+ if (f === "ArrowDown")
209
+ r.preventDefault(), W(l, R, E, m, X);
210
+ else if (f === "ArrowUp")
211
+ r.preventDefault(), W(l, R, E, m, he);
212
+ else if (f === "Home")
213
+ r.preventDefault(), W(l, null, E, m, X);
214
+ else if (f === "End")
215
+ r.preventDefault(), W(l, null, E, m, he);
216
+ else if (f.length === 1) {
217
+ const p = v.current, M = f.toLowerCase(), L = performance.now();
218
+ p.keys.length > 0 && (L - p.lastTime > 500 ? (p.keys = [], p.repeating = !0, p.previousKeyMatched = !0) : p.repeating && M !== p.keys[0] && (p.repeating = !1)), p.lastTime = L, p.keys.push(M);
219
+ const x = R && !p.repeating && Ee(R, p);
220
+ p.previousKeyMatched && (x || W(l, R, !1, m, X, p)) ? r.preventDefault() : p.previousKeyMatched = !1;
221
+ }
222
+ O && O(r);
223
+ }, j = ve(i, n);
224
+ let c = -1;
225
+ s.Children.forEach(b, (r, l) => {
226
+ if (!/* @__PURE__ */ s.isValidElement(r)) {
227
+ c === l && (c += 1, c >= b.length && (c = -1));
228
+ return;
229
+ }
230
+ process.env.NODE_ENV !== "production" && ye.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
231
+ `)), r.props.disabled || (S === "selectedMenu" && r.props.selected || c === -1) && (c = l), c === l && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (c += 1, c >= b.length && (c = -1));
232
+ });
233
+ const C = s.Children.map(b, (r, l) => {
234
+ if (l === c) {
235
+ const f = {};
236
+ return h && (f.autoFocus = !0), r.props.tabIndex === void 0 && S === "selectedMenu" && (f.tabIndex = 0), /* @__PURE__ */ s.cloneElement(r, f);
237
+ }
238
+ return r;
239
+ });
240
+ return /* @__PURE__ */ z(Te, {
241
+ role: "menu",
242
+ ref: j,
243
+ className: a,
244
+ onKeyDown: K,
245
+ tabIndex: g ? 0 : -1,
246
+ ...D,
247
+ children: C
248
+ });
249
+ });
250
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
251
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
252
+ // │ These PropTypes are generated from the TypeScript type definitions. │
253
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
254
+ // └─────────────────────────────────────────────────────────────────────┘
255
+ /**
256
+ * If `true`, will focus the `[role="menu"]` container and move into tab order.
257
+ * @default false
258
+ */
259
+ autoFocus: e.bool,
260
+ /**
261
+ * If `true`, will focus the first menuitem if `variant="menu"` or selected item
262
+ * if `variant="selectedMenu"`.
263
+ * @default false
264
+ */
265
+ autoFocusItem: e.bool,
266
+ /**
267
+ * MenuList contents, normally `MenuItem`s.
268
+ */
269
+ children: e.node,
270
+ /**
271
+ * @ignore
272
+ */
273
+ className: e.string,
274
+ /**
275
+ * If `true`, will allow focus on disabled items.
276
+ * @default false
277
+ */
278
+ disabledItemsFocusable: e.bool,
279
+ /**
280
+ * If `true`, the menu items will not wrap focus.
281
+ * @default false
282
+ */
283
+ disableListWrap: e.bool,
284
+ /**
285
+ * @ignore
286
+ */
287
+ onKeyDown: e.func,
288
+ /**
289
+ * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
290
+ * and the vertical alignment relative to the anchor element.
291
+ * @default 'selectedMenu'
292
+ */
293
+ variant: e.oneOf(["menu", "selectedMenu"])
294
+ });
295
+ function Xe(t) {
296
+ return te("MuiPopover", t);
297
+ }
298
+ ne("MuiPopover", ["root", "paper"]);
299
+ function me(t, o) {
300
+ let n = 0;
301
+ return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
302
+ }
303
+ function be(t, o) {
304
+ let n = 0;
305
+ return typeof o == "number" ? n = o : o === "center" ? n = t.width / 2 : o === "right" && (n = t.width), n;
306
+ }
307
+ function ge(t) {
308
+ return [t.horizontal, t.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
309
+ }
310
+ function G(t) {
311
+ return typeof t == "function" ? t() : t;
312
+ }
313
+ const Je = (t) => {
314
+ const {
315
+ classes: o
316
+ } = t;
317
+ return oe({
318
+ root: ["root"],
319
+ paper: ["paper"]
320
+ }, Xe, o);
321
+ }, Qe = V(Ke, {
322
+ name: "MuiPopover",
323
+ slot: "Root",
324
+ overridesResolver: (t, o) => o.root
325
+ })({}), Oe = V(He, {
326
+ name: "MuiPopover",
327
+ slot: "Paper",
328
+ overridesResolver: (t, o) => o.paper
329
+ })({
330
+ position: "absolute",
331
+ overflowY: "auto",
332
+ overflowX: "hidden",
333
+ // So we see the popover when it's empty.
334
+ // It's most likely on issue on userland.
335
+ minWidth: 16,
336
+ minHeight: 16,
337
+ maxWidth: "calc(100% - 32px)",
338
+ maxHeight: "calc(100% - 32px)",
339
+ // We disable the focus ring for mouse, touch and keyboard users.
340
+ outline: 0
341
+ }), Re = /* @__PURE__ */ s.forwardRef(function(o, n) {
342
+ const y = ee({
343
+ props: o,
344
+ name: "MuiPopover"
345
+ }), {
346
+ action: g,
347
+ anchorEl: h,
348
+ anchorOrigin: b = {
349
+ vertical: "top",
350
+ horizontal: "left"
351
+ },
352
+ anchorPosition: a,
353
+ anchorReference: m = "anchorEl",
354
+ children: E,
355
+ className: O,
356
+ container: S,
357
+ elevation: D = 8,
358
+ marginThreshold: i = 16,
359
+ open: v,
360
+ PaperProps: K = {},
361
+ slots: j = {},
362
+ slotProps: c = {},
363
+ transformOrigin: C = {
364
+ vertical: "top",
365
+ horizontal: "left"
366
+ },
367
+ TransitionComponent: r = qe,
368
+ transitionDuration: l = "auto",
369
+ TransitionProps: {
370
+ onEntering: f,
371
+ ...N
372
+ } = {},
373
+ disableScrollLock: R = !1,
374
+ ...p
375
+ } = y, M = (c == null ? void 0 : c.paper) ?? K, L = s.useRef(), x = {
376
+ ...y,
377
+ anchorOrigin: b,
378
+ anchorReference: m,
379
+ elevation: D,
380
+ marginThreshold: i,
381
+ externalPaperSlotProps: M,
382
+ transformOrigin: C,
383
+ TransitionComponent: r,
384
+ transitionDuration: l,
385
+ TransitionProps: N
386
+ }, _ = Je(x), $ = s.useCallback(() => {
387
+ if (m === "anchorPosition")
388
+ return process.env.NODE_ENV !== "production" && (a || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), a;
389
+ const u = G(h), d = u && u.nodeType === 1 ? u : J(L.current).body, T = d.getBoundingClientRect();
390
+ if (process.env.NODE_ENV !== "production") {
391
+ const F = d.getBoundingClientRect();
392
+ process.env.NODE_ENV !== "test" && F.top === 0 && F.left === 0 && F.right === 0 && F.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
393
+ `));
394
+ }
395
+ return {
396
+ top: T.top + me(T, b.vertical),
397
+ left: T.left + be(T, b.horizontal)
398
+ };
399
+ }, [h, b.horizontal, b.vertical, a, m]), q = s.useCallback((u) => ({
400
+ vertical: me(u, C.vertical),
401
+ horizontal: be(u, C.horizontal)
402
+ }), [C.horizontal, C.vertical]), B = s.useCallback((u) => {
403
+ const d = {
404
+ width: u.offsetWidth,
405
+ height: u.offsetHeight
406
+ }, T = q(d);
407
+ if (m === "none")
408
+ return {
409
+ top: null,
410
+ left: null,
411
+ transformOrigin: ge(T)
412
+ };
413
+ const F = $();
414
+ let H = F.top - T.vertical, U = F.left - T.horizontal;
415
+ const le = H + d.height, ce = U + d.width, pe = Q(G(h)), A = pe.innerHeight - i, ue = pe.innerWidth - i;
416
+ if (i !== null && H < i) {
417
+ const w = H - i;
418
+ H -= w, T.vertical += w;
419
+ } else if (i !== null && le > A) {
420
+ const w = le - A;
421
+ H -= w, T.vertical += w;
422
+ }
423
+ if (process.env.NODE_ENV !== "production" && d.height > A && d.height && A && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${d.height - A}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
424
+ `)), i !== null && U < i) {
425
+ const w = U - i;
426
+ U -= w, T.horizontal += w;
427
+ } else if (ce > ue) {
428
+ const w = ce - ue;
429
+ U -= w, T.horizontal += w;
430
+ }
431
+ return {
432
+ top: `${Math.round(H)}px`,
433
+ left: `${Math.round(U)}px`,
434
+ transformOrigin: ge(T)
435
+ };
436
+ }, [h, m, $, q, i]), [P, k] = s.useState(v), I = s.useCallback(() => {
437
+ const u = L.current;
438
+ if (!u)
439
+ return;
440
+ const d = B(u);
441
+ d.top !== null && u.style.setProperty("top", d.top), d.left !== null && (u.style.left = d.left), u.style.transformOrigin = d.transformOrigin, k(!0);
442
+ }, [B]);
443
+ s.useEffect(() => (R && window.addEventListener("scroll", I), () => window.removeEventListener("scroll", I)), [h, R, I]);
444
+ const we = (u, d) => {
445
+ f && f(u, d), I();
446
+ }, Ce = () => {
447
+ k(!1);
448
+ };
449
+ s.useEffect(() => {
450
+ v && I();
451
+ }), s.useImperativeHandle(g, () => v ? {
452
+ updatePosition: () => {
453
+ I();
454
+ }
455
+ } : null, [v, I]), s.useEffect(() => {
456
+ if (!v)
457
+ return;
458
+ const u = Ve(() => {
459
+ I();
460
+ }), d = Q(h);
461
+ return d.addEventListener("resize", u), () => {
462
+ u.clear(), d.removeEventListener("resize", u);
463
+ };
464
+ }, [h, v, I]);
465
+ let re = l;
466
+ l === "auto" && !r.muiSupportAuto && (re = void 0);
467
+ const Ne = S || (h ? J(G(h)).body : void 0), se = {
468
+ slots: j,
469
+ slotProps: {
470
+ ...c,
471
+ paper: M
472
+ }
473
+ }, [xe, ie] = de("paper", {
474
+ elementType: Oe,
475
+ externalForwardedProps: se,
476
+ additionalProps: {
477
+ elevation: D,
478
+ className: Y(_.paper, M == null ? void 0 : M.className),
479
+ style: P ? M.style : {
480
+ ...M.style,
481
+ opacity: 0
482
+ }
483
+ },
484
+ ownerState: x
485
+ }), [ae, {
486
+ slotProps: Se,
487
+ ...De
488
+ }] = de("root", {
489
+ elementType: Qe,
490
+ externalForwardedProps: se,
491
+ additionalProps: {
492
+ slotProps: {
493
+ backdrop: {
494
+ invisible: !0
495
+ }
496
+ },
497
+ container: Ne,
498
+ open: v
499
+ },
500
+ ownerState: x,
501
+ className: Y(_.root, O)
502
+ }), Ie = ve(L, ie.ref);
503
+ return /* @__PURE__ */ z(ae, {
504
+ ...De,
505
+ ...!Fe(ae) && {
506
+ slotProps: Se,
507
+ disableScrollLock: R
508
+ },
509
+ ...p,
510
+ ref: n,
511
+ children: /* @__PURE__ */ z(r, {
512
+ appear: !0,
513
+ in: v,
514
+ onEntering: we,
515
+ onExited: Ce,
516
+ timeout: re,
517
+ ...N,
518
+ children: /* @__PURE__ */ z(xe, {
519
+ ...ie,
520
+ ref: Ie,
521
+ children: E
522
+ })
523
+ })
524
+ });
525
+ });
526
+ process.env.NODE_ENV !== "production" && (Re.propTypes = {
527
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
528
+ // │ These PropTypes are generated from the TypeScript type definitions. │
529
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
530
+ // └─────────────────────────────────────────────────────────────────────┘
531
+ /**
532
+ * A ref for imperative actions.
533
+ * It currently only supports updatePosition() action.
534
+ */
535
+ action: Ae,
536
+ /**
537
+ * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
538
+ * or a function that returns either.
539
+ * It's used to set the position of the popover.
540
+ */
541
+ anchorEl: We(e.oneOfType([Z, e.func]), (t) => {
542
+ if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
543
+ const o = G(t.anchorEl);
544
+ if (o && o.nodeType === 1) {
545
+ const n = o.getBoundingClientRect();
546
+ if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
547
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
548
+ `));
549
+ } else
550
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${o}\` instead.`].join(`
551
+ `));
552
+ }
553
+ return null;
554
+ }),
555
+ /**
556
+ * This is the point on the anchor where the popover's
557
+ * `anchorEl` will attach to. This is not used when the
558
+ * anchorReference is 'anchorPosition'.
559
+ *
560
+ * Options:
561
+ * vertical: [top, center, bottom];
562
+ * horizontal: [left, center, right].
563
+ * @default {
564
+ * vertical: 'top',
565
+ * horizontal: 'left',
566
+ * }
567
+ */
568
+ anchorOrigin: e.shape({
569
+ horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
570
+ vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
571
+ }),
572
+ /**
573
+ * This is the position that may be used to set the position of the popover.
574
+ * The coordinates are relative to the application's client area.
575
+ */
576
+ anchorPosition: e.shape({
577
+ left: e.number.isRequired,
578
+ top: e.number.isRequired
579
+ }),
580
+ /**
581
+ * This determines which anchor prop to refer to when setting
582
+ * the position of the popover.
583
+ * @default 'anchorEl'
584
+ */
585
+ anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
586
+ /**
587
+ * A backdrop component. This prop enables custom backdrop rendering.
588
+ * @deprecated Use `slotProps.root.slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
589
+ * Use the `slotProps.root.slots.backdrop` prop to make your application ready for the next version of Material UI.
590
+ * @default styled(Backdrop, {
591
+ * name: 'MuiModal',
592
+ * slot: 'Backdrop',
593
+ * overridesResolver: (props, styles) => {
594
+ * return styles.backdrop;
595
+ * },
596
+ * })({
597
+ * zIndex: -1,
598
+ * })
599
+ */
600
+ BackdropComponent: e.elementType,
601
+ /**
602
+ * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
603
+ * @deprecated Use `slotProps.root.slotProps.backdrop` instead.
604
+ */
605
+ BackdropProps: e.object,
606
+ /**
607
+ * The content of the component.
608
+ */
609
+ children: e.node,
610
+ /**
611
+ * Override or extend the styles applied to the component.
612
+ */
613
+ classes: e.object,
614
+ /**
615
+ * @ignore
616
+ */
617
+ className: e.string,
618
+ /**
619
+ * An HTML element, component instance, or function that returns either.
620
+ * The `container` will passed to the Modal component.
621
+ *
622
+ * By default, it uses the body of the anchorEl's top-level document object,
623
+ * so it's simply `document.body` most of the time.
624
+ */
625
+ container: e.oneOfType([Z, e.func]),
626
+ /**
627
+ * Disable the scroll lock behavior.
628
+ * @default false
629
+ */
630
+ disableScrollLock: e.bool,
631
+ /**
632
+ * The elevation of the popover.
633
+ * @default 8
634
+ */
635
+ elevation: Ue,
636
+ /**
637
+ * Specifies how close to the edge of the window the popover can appear.
638
+ * If null, the popover will not be constrained by the window.
639
+ * @default 16
640
+ */
641
+ marginThreshold: e.number,
642
+ /**
643
+ * Callback fired when the component requests to be closed.
644
+ * The `reason` parameter can optionally be used to control the response to `onClose`.
645
+ */
646
+ onClose: e.func,
647
+ /**
648
+ * If `true`, the component is shown.
649
+ */
650
+ open: e.bool.isRequired,
651
+ /**
652
+ * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
653
+ *
654
+ * This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.
655
+ * @deprecated Use `slotProps.paper` instead.
656
+ *
657
+ * @default {}
658
+ */
659
+ PaperProps: e.shape({
660
+ component: $e
661
+ }),
662
+ /**
663
+ * The props used for each slot inside.
664
+ * @default {}
665
+ */
666
+ slotProps: e.shape({
667
+ paper: e.oneOfType([e.func, e.object]),
668
+ root: e.oneOfType([e.func, e.object])
669
+ }),
670
+ /**
671
+ * The components used for each slot inside.
672
+ * @default {}
673
+ */
674
+ slots: e.shape({
675
+ paper: e.elementType,
676
+ root: e.elementType
677
+ }),
678
+ /**
679
+ * The system prop that allows defining system overrides as well as additional CSS styles.
680
+ */
681
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
682
+ /**
683
+ * This is the point on the popover which
684
+ * will attach to the anchor's origin.
685
+ *
686
+ * Options:
687
+ * vertical: [top, center, bottom, x(px)];
688
+ * horizontal: [left, center, right, x(px)].
689
+ * @default {
690
+ * vertical: 'top',
691
+ * horizontal: 'left',
692
+ * }
693
+ */
694
+ transformOrigin: e.shape({
695
+ horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
696
+ vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
697
+ }),
698
+ /**
699
+ * The component used for the transition.
700
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
701
+ * @default Grow
702
+ */
703
+ TransitionComponent: e.elementType,
704
+ /**
705
+ * Set to 'auto' to automatically calculate transition time based on height.
706
+ * @default 'auto'
707
+ */
708
+ transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
709
+ appear: e.number,
710
+ enter: e.number,
711
+ exit: e.number
712
+ })]),
713
+ /**
714
+ * Props applied to the transition element.
715
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
716
+ * @default {}
717
+ */
718
+ TransitionProps: e.object
719
+ });
720
+ function Ze(t) {
721
+ return te("MuiMenu", t);
722
+ }
723
+ const wo = ne("MuiMenu", ["root", "paper", "list"]), eo = {
724
+ vertical: "top",
725
+ horizontal: "right"
726
+ }, oo = {
727
+ vertical: "top",
728
+ horizontal: "left"
729
+ }, to = (t) => {
730
+ const {
731
+ classes: o
732
+ } = t;
733
+ return oe({
734
+ root: ["root"],
735
+ paper: ["paper"],
736
+ list: ["list"]
737
+ }, Ze, o);
738
+ }, no = V(Re, {
739
+ shouldForwardProp: (t) => Le(t) || t === "classes",
740
+ name: "MuiMenu",
741
+ slot: "Root",
742
+ overridesResolver: (t, o) => o.root
743
+ })({}), ro = V(Oe, {
744
+ name: "MuiMenu",
745
+ slot: "Paper",
746
+ overridesResolver: (t, o) => o.paper
747
+ })({
748
+ // specZ: The maximum height of a simple menu should be one or more rows less than the view
749
+ // height. This ensures a tappable area outside of the simple menu with which to dismiss
750
+ // the menu.
751
+ maxHeight: "calc(100% - 96px)",
752
+ // Add iOS momentum scrolling for iOS < 13.0
753
+ WebkitOverflowScrolling: "touch"
754
+ }), so = V(Me, {
755
+ name: "MuiMenu",
756
+ slot: "List",
757
+ overridesResolver: (t, o) => o.list
758
+ })({
759
+ // We disable the focus ring for mouse, touch and keyboard users.
760
+ outline: 0
761
+ }), io = /* @__PURE__ */ s.forwardRef(function(o, n) {
762
+ const y = ee({
763
+ props: o,
764
+ name: "MuiMenu"
765
+ }), {
766
+ autoFocus: g = !0,
767
+ children: h,
768
+ className: b,
769
+ disableAutoFocusItem: a = !1,
770
+ MenuListProps: m = {},
771
+ onClose: E,
772
+ open: O,
773
+ PaperProps: S = {},
774
+ PopoverClasses: D,
775
+ transitionDuration: i = "auto",
776
+ TransitionProps: {
777
+ onEntering: v,
778
+ ...K
779
+ } = {},
780
+ variant: j = "selectedMenu",
781
+ slots: c = {},
782
+ slotProps: C = {},
783
+ ...r
784
+ } = y, l = je(), f = {
785
+ ...y,
786
+ autoFocus: g,
787
+ disableAutoFocusItem: a,
788
+ MenuListProps: m,
789
+ onEntering: v,
790
+ PaperProps: S,
791
+ transitionDuration: i,
792
+ TransitionProps: K,
793
+ variant: j
794
+ }, N = to(f), R = g && !a && O, p = s.useRef(null), M = (P, k) => {
795
+ p.current && p.current.adjustStyleForScrollbar(P, {
796
+ direction: l ? "rtl" : "ltr"
797
+ }), v && v(P, k);
798
+ }, L = (P) => {
799
+ P.key === "Tab" && (P.preventDefault(), E && E(P, "tabKeyDown"));
800
+ };
801
+ let x = -1;
802
+ s.Children.map(h, (P, k) => {
803
+ /* @__PURE__ */ s.isValidElement(P) && (process.env.NODE_ENV !== "production" && ye.isFragment(P) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
804
+ `)), P.props.disabled || (j === "selectedMenu" && P.props.selected || x === -1) && (x = k));
805
+ });
806
+ const _ = c.paper ?? ro, $ = C.paper ?? S, q = fe({
807
+ elementType: c.root,
808
+ externalSlotProps: C.root,
809
+ ownerState: f,
810
+ className: [N.root, b]
811
+ }), B = fe({
812
+ elementType: _,
813
+ externalSlotProps: $,
814
+ ownerState: f,
815
+ className: N.paper
816
+ });
817
+ return /* @__PURE__ */ z(no, {
818
+ onClose: E,
819
+ anchorOrigin: {
820
+ vertical: "bottom",
821
+ horizontal: l ? "right" : "left"
822
+ },
823
+ transformOrigin: l ? eo : oo,
824
+ slots: {
825
+ paper: _,
826
+ root: c.root
827
+ },
828
+ slotProps: {
829
+ root: q,
830
+ paper: B
831
+ },
832
+ open: O,
833
+ ref: n,
834
+ transitionDuration: i,
835
+ TransitionProps: {
836
+ onEntering: M,
837
+ ...K
838
+ },
839
+ ownerState: f,
840
+ ...r,
841
+ classes: D,
842
+ children: /* @__PURE__ */ z(so, {
843
+ onKeyDown: L,
844
+ actions: p,
845
+ autoFocus: g && (x === -1 || a),
846
+ autoFocusItem: R,
847
+ variant: j,
848
+ ...m,
849
+ className: Y(N.list, m.className),
850
+ children: h
851
+ })
852
+ });
853
+ });
854
+ process.env.NODE_ENV !== "production" && (io.propTypes = {
855
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
856
+ // │ These PropTypes are generated from the TypeScript type definitions. │
857
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
858
+ // └─────────────────────────────────────────────────────────────────────┘
859
+ /**
860
+ * An HTML element, or a function that returns one.
861
+ * It's used to set the position of the menu.
862
+ */
863
+ anchorEl: e.oneOfType([Z, e.func]),
864
+ /**
865
+ * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
866
+ * children are not focusable. If you set this prop to `false` focus will be placed
867
+ * on the parent modal container. This has severe accessibility implications
868
+ * and should only be considered if you manage focus otherwise.
869
+ * @default true
870
+ */
871
+ autoFocus: e.bool,
872
+ /**
873
+ * Menu contents, normally `MenuItem`s.
874
+ */
875
+ children: e.node,
876
+ /**
877
+ * Override or extend the styles applied to the component.
878
+ */
879
+ classes: e.object,
880
+ /**
881
+ * @ignore
882
+ */
883
+ className: e.string,
884
+ /**
885
+ * When opening the menu will not focus the active item but the `[role="menu"]`
886
+ * unless `autoFocus` is also set to `false`. Not using the default means not
887
+ * following WAI-ARIA authoring practices. Please be considerate about possible
888
+ * accessibility implications.
889
+ * @default false
890
+ */
891
+ disableAutoFocusItem: e.bool,
892
+ /**
893
+ * Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
894
+ * @default {}
895
+ */
896
+ MenuListProps: e.object,
897
+ /**
898
+ * Callback fired when the component requests to be closed.
899
+ *
900
+ * @param {object} event The event source of the callback.
901
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
902
+ */
903
+ onClose: e.func,
904
+ /**
905
+ * If `true`, the component is shown.
906
+ */
907
+ open: e.bool.isRequired,
908
+ /**
909
+ * @ignore
910
+ */
911
+ PaperProps: e.object,
912
+ /**
913
+ * `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.
914
+ */
915
+ PopoverClasses: e.object,
916
+ /**
917
+ * The props used for each slot inside.
918
+ * @default {}
919
+ */
920
+ slotProps: e.shape({
921
+ paper: e.oneOfType([e.func, e.object]),
922
+ root: e.oneOfType([e.func, e.object])
923
+ }),
924
+ /**
925
+ * The components used for each slot inside.
926
+ * @default {}
927
+ */
928
+ slots: e.shape({
929
+ paper: e.elementType,
930
+ root: e.elementType
931
+ }),
932
+ /**
933
+ * The system prop that allows defining system overrides as well as additional CSS styles.
934
+ */
935
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
936
+ /**
937
+ * The length of the transition in `ms`, or 'auto'
938
+ * @default 'auto'
939
+ */
940
+ transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
941
+ appear: e.number,
942
+ enter: e.number,
943
+ exit: e.number
944
+ })]),
945
+ /**
946
+ * Props applied to the transition element.
947
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
948
+ * @default {}
949
+ */
950
+ TransitionProps: e.object,
951
+ /**
952
+ * The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
953
+ * @default 'selectedMenu'
954
+ */
955
+ variant: e.oneOf(["menu", "selectedMenu"])
956
+ });
957
+ export {
958
+ Te as L,
959
+ io as M,
960
+ Ze as a,
961
+ Pe as b,
962
+ Be as g,
963
+ Ro as l,
964
+ wo as m
965
+ };