@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,720 @@
1
+ import * as n from "react";
2
+ import { H as Je, I as Qe, L as ve, G as ge, P as e, n as Re } from "./identifier-Bn0tF6ls.js";
3
+ import { u as Ze } from "./index-waINWr3i.js";
4
+ import { u as eo } from "./useTheme-L3EQmvnN.js";
5
+ import { jsxs as Te, jsx as N } from "react/jsx-runtime";
6
+ import { s as G, u as oo, c as to } from "./DefaultPropsProvider-xJkZOrdv.js";
7
+ import { m as Y } from "./memoTheme-CMJVTZEg.js";
8
+ import { u as I } from "./useSlot-t9oGnIgq.js";
9
+ import { P as Oe } from "./Popper-B8oNZqtn.js";
10
+ import { u as j, a as be, T as ro } from "./useTimeout-3Y5y4gWq.js";
11
+ import { u as po } from "./useControlled-BYdyS7Pn.js";
12
+ import { u as no } from "./useId-CK6Kn3Tn.js";
13
+ import { u as so } from "./useForkRef-C_4o__cU.js";
14
+ import { g as io, e as ao } from "./utils-CE_a8glN.js";
15
+ import { G as lo } from "./Grow-SW33sONG.js";
16
+ import { i as ye } from "./isFocusVisible-CPZqtjv2.js";
17
+ function co(r) {
18
+ return Je("MuiTooltip", r);
19
+ }
20
+ const p = Qe("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
21
+ function mo(r) {
22
+ return Math.round(r * 1e5) / 1e5;
23
+ }
24
+ const uo = (r) => {
25
+ const {
26
+ classes: o,
27
+ disableInteractive: s,
28
+ arrow: d,
29
+ touch: O,
30
+ placement: b
31
+ } = r, q = {
32
+ popper: ["popper", !s && "popperInteractive", d && "popperArrow"],
33
+ tooltip: ["tooltip", d && "tooltipArrow", O && "touch", `tooltipPlacement${ve(b.split("-")[0])}`],
34
+ arrow: ["arrow"]
35
+ };
36
+ return to(q, co, o);
37
+ }, fo = G(Oe, {
38
+ name: "MuiTooltip",
39
+ slot: "Popper",
40
+ overridesResolver: (r, o) => {
41
+ const {
42
+ ownerState: s
43
+ } = r;
44
+ return [o.popper, !s.disableInteractive && o.popperInteractive, s.arrow && o.popperArrow, !s.open && o.popperClose];
45
+ }
46
+ })(Y(({
47
+ theme: r
48
+ }) => ({
49
+ zIndex: (r.vars || r).zIndex.tooltip,
50
+ pointerEvents: "none",
51
+ variants: [{
52
+ props: ({
53
+ ownerState: o
54
+ }) => !o.disableInteractive,
55
+ style: {
56
+ pointerEvents: "auto"
57
+ }
58
+ }, {
59
+ props: ({
60
+ open: o
61
+ }) => !o,
62
+ style: {
63
+ pointerEvents: "none"
64
+ }
65
+ }, {
66
+ props: ({
67
+ ownerState: o
68
+ }) => o.arrow,
69
+ style: {
70
+ [`&[data-popper-placement*="bottom"] .${p.arrow}`]: {
71
+ top: 0,
72
+ marginTop: "-0.71em",
73
+ "&::before": {
74
+ transformOrigin: "0 100%"
75
+ }
76
+ },
77
+ [`&[data-popper-placement*="top"] .${p.arrow}`]: {
78
+ bottom: 0,
79
+ marginBottom: "-0.71em",
80
+ "&::before": {
81
+ transformOrigin: "100% 0"
82
+ }
83
+ },
84
+ [`&[data-popper-placement*="right"] .${p.arrow}`]: {
85
+ height: "1em",
86
+ width: "0.71em",
87
+ "&::before": {
88
+ transformOrigin: "100% 100%"
89
+ }
90
+ },
91
+ [`&[data-popper-placement*="left"] .${p.arrow}`]: {
92
+ height: "1em",
93
+ width: "0.71em",
94
+ "&::before": {
95
+ transformOrigin: "0 0"
96
+ }
97
+ }
98
+ }
99
+ }, {
100
+ props: ({
101
+ ownerState: o
102
+ }) => o.arrow && !o.isRtl,
103
+ style: {
104
+ [`&[data-popper-placement*="right"] .${p.arrow}`]: {
105
+ left: 0,
106
+ marginLeft: "-0.71em"
107
+ }
108
+ }
109
+ }, {
110
+ props: ({
111
+ ownerState: o
112
+ }) => o.arrow && !!o.isRtl,
113
+ style: {
114
+ [`&[data-popper-placement*="right"] .${p.arrow}`]: {
115
+ right: 0,
116
+ marginRight: "-0.71em"
117
+ }
118
+ }
119
+ }, {
120
+ props: ({
121
+ ownerState: o
122
+ }) => o.arrow && !o.isRtl,
123
+ style: {
124
+ [`&[data-popper-placement*="left"] .${p.arrow}`]: {
125
+ right: 0,
126
+ marginRight: "-0.71em"
127
+ }
128
+ }
129
+ }, {
130
+ props: ({
131
+ ownerState: o
132
+ }) => o.arrow && !!o.isRtl,
133
+ style: {
134
+ [`&[data-popper-placement*="left"] .${p.arrow}`]: {
135
+ left: 0,
136
+ marginLeft: "-0.71em"
137
+ }
138
+ }
139
+ }]
140
+ }))), ho = G("div", {
141
+ name: "MuiTooltip",
142
+ slot: "Tooltip",
143
+ overridesResolver: (r, o) => {
144
+ const {
145
+ ownerState: s
146
+ } = r;
147
+ return [o.tooltip, s.touch && o.touch, s.arrow && o.tooltipArrow, o[`tooltipPlacement${ve(s.placement.split("-")[0])}`]];
148
+ }
149
+ })(Y(({
150
+ theme: r
151
+ }) => ({
152
+ backgroundColor: r.vars ? r.vars.palette.Tooltip.bg : Re(r.palette.grey[700], 0.92),
153
+ borderRadius: (r.vars || r).shape.borderRadius,
154
+ color: (r.vars || r).palette.common.white,
155
+ fontFamily: r.typography.fontFamily,
156
+ padding: "4px 8px",
157
+ fontSize: r.typography.pxToRem(11),
158
+ maxWidth: 300,
159
+ margin: 2,
160
+ wordWrap: "break-word",
161
+ fontWeight: r.typography.fontWeightMedium,
162
+ [`.${p.popper}[data-popper-placement*="left"] &`]: {
163
+ transformOrigin: "right center"
164
+ },
165
+ [`.${p.popper}[data-popper-placement*="right"] &`]: {
166
+ transformOrigin: "left center"
167
+ },
168
+ [`.${p.popper}[data-popper-placement*="top"] &`]: {
169
+ transformOrigin: "center bottom",
170
+ marginBottom: "14px"
171
+ },
172
+ [`.${p.popper}[data-popper-placement*="bottom"] &`]: {
173
+ transformOrigin: "center top",
174
+ marginTop: "14px"
175
+ },
176
+ variants: [{
177
+ props: ({
178
+ ownerState: o
179
+ }) => o.arrow,
180
+ style: {
181
+ position: "relative",
182
+ margin: 0
183
+ }
184
+ }, {
185
+ props: ({
186
+ ownerState: o
187
+ }) => o.touch,
188
+ style: {
189
+ padding: "8px 16px",
190
+ fontSize: r.typography.pxToRem(14),
191
+ lineHeight: `${mo(16 / 14)}em`,
192
+ fontWeight: r.typography.fontWeightRegular
193
+ }
194
+ }, {
195
+ props: ({
196
+ ownerState: o
197
+ }) => !o.isRtl,
198
+ style: {
199
+ [`.${p.popper}[data-popper-placement*="left"] &`]: {
200
+ marginRight: "14px"
201
+ },
202
+ [`.${p.popper}[data-popper-placement*="right"] &`]: {
203
+ marginLeft: "14px"
204
+ }
205
+ }
206
+ }, {
207
+ props: ({
208
+ ownerState: o
209
+ }) => !o.isRtl && o.touch,
210
+ style: {
211
+ [`.${p.popper}[data-popper-placement*="left"] &`]: {
212
+ marginRight: "24px"
213
+ },
214
+ [`.${p.popper}[data-popper-placement*="right"] &`]: {
215
+ marginLeft: "24px"
216
+ }
217
+ }
218
+ }, {
219
+ props: ({
220
+ ownerState: o
221
+ }) => !!o.isRtl,
222
+ style: {
223
+ [`.${p.popper}[data-popper-placement*="left"] &`]: {
224
+ marginLeft: "14px"
225
+ },
226
+ [`.${p.popper}[data-popper-placement*="right"] &`]: {
227
+ marginRight: "14px"
228
+ }
229
+ }
230
+ }, {
231
+ props: ({
232
+ ownerState: o
233
+ }) => !!o.isRtl && o.touch,
234
+ style: {
235
+ [`.${p.popper}[data-popper-placement*="left"] &`]: {
236
+ marginLeft: "24px"
237
+ },
238
+ [`.${p.popper}[data-popper-placement*="right"] &`]: {
239
+ marginRight: "24px"
240
+ }
241
+ }
242
+ }, {
243
+ props: ({
244
+ ownerState: o
245
+ }) => o.touch,
246
+ style: {
247
+ [`.${p.popper}[data-popper-placement*="top"] &`]: {
248
+ marginBottom: "24px"
249
+ }
250
+ }
251
+ }, {
252
+ props: ({
253
+ ownerState: o
254
+ }) => o.touch,
255
+ style: {
256
+ [`.${p.popper}[data-popper-placement*="bottom"] &`]: {
257
+ marginTop: "24px"
258
+ }
259
+ }
260
+ }]
261
+ }))), go = G("span", {
262
+ name: "MuiTooltip",
263
+ slot: "Arrow",
264
+ overridesResolver: (r, o) => o.arrow
265
+ })(Y(({
266
+ theme: r
267
+ }) => ({
268
+ overflow: "hidden",
269
+ position: "absolute",
270
+ width: "1em",
271
+ height: "0.71em",
272
+ boxSizing: "border-box",
273
+ color: r.vars ? r.vars.palette.Tooltip.bg : Re(r.palette.grey[700], 0.9),
274
+ "&::before": {
275
+ content: '""',
276
+ margin: "auto",
277
+ display: "block",
278
+ width: "100%",
279
+ height: "100%",
280
+ backgroundColor: "currentColor",
281
+ transform: "rotate(45deg)"
282
+ }
283
+ })));
284
+ let A = !1;
285
+ const we = new ro();
286
+ let R = {
287
+ x: 0,
288
+ y: 0
289
+ };
290
+ function D(r, o) {
291
+ return (s, ...d) => {
292
+ o && o(s, ...d), r(s, ...d);
293
+ };
294
+ }
295
+ const To = /* @__PURE__ */ n.forwardRef(function(o, s) {
296
+ const d = oo({
297
+ props: o,
298
+ name: "MuiTooltip"
299
+ }), {
300
+ arrow: O = !1,
301
+ children: b,
302
+ classes: q,
303
+ components: P = {},
304
+ componentsProps: x = {},
305
+ describeChild: Pe = !1,
306
+ disableFocusListener: xe = !1,
307
+ disableHoverListener: K = !1,
308
+ disableInteractive: Ce = !1,
309
+ disableTouchListener: Me = !1,
310
+ enterDelay: X = 100,
311
+ enterNextDelay: J = 0,
312
+ enterTouchDelay: Ee = 700,
313
+ followCursor: k = !1,
314
+ id: Se,
315
+ leaveDelay: Q = 0,
316
+ leaveTouchDelay: $e = 1500,
317
+ onClose: Z,
318
+ onOpen: ee,
319
+ open: oe,
320
+ placement: te = "bottom",
321
+ PopperComponent: re,
322
+ PopperProps: f = {},
323
+ slotProps: h = {},
324
+ slots: Le = {},
325
+ title: g,
326
+ TransitionComponent: Ne,
327
+ TransitionProps: Ie,
328
+ ...pe
329
+ } = d, m = /* @__PURE__ */ n.isValidElement(b) ? b : /* @__PURE__ */ N("span", {
330
+ children: b
331
+ }), ne = eo(), je = Ze(), [i, se] = n.useState(), [F, Ae] = n.useState(null), C = n.useRef(!1), U = Ce || k, ie = j(), W = j(), M = j(), ae = j(), [De, le] = po({
332
+ controlled: oe,
333
+ default: !1,
334
+ name: "Tooltip",
335
+ state: "open"
336
+ });
337
+ let u = De;
338
+ if (process.env.NODE_ENV !== "production") {
339
+ const {
340
+ current: t
341
+ } = n.useRef(oe !== void 0);
342
+ n.useEffect(() => {
343
+ i && i.disabled && !t && g !== "" && i.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
344
+ `));
345
+ }, [g, i, t]);
346
+ }
347
+ const B = no(Se), y = n.useRef(), E = be(() => {
348
+ y.current !== void 0 && (document.body.style.WebkitUserSelect = y.current, y.current = void 0), ae.clear();
349
+ });
350
+ n.useEffect(() => E, [E]);
351
+ const ce = (t) => {
352
+ we.clear(), A = !0, le(!0), ee && !u && ee(t);
353
+ }, S = be(
354
+ /**
355
+ * @param {React.SyntheticEvent | Event} event
356
+ */
357
+ (t) => {
358
+ we.start(800 + Q, () => {
359
+ A = !1;
360
+ }), le(!1), Z && u && Z(t), ie.start(ne.transitions.duration.shortest, () => {
361
+ C.current = !1;
362
+ });
363
+ }
364
+ ), $ = (t) => {
365
+ C.current && t.type !== "touchstart" || (i && i.removeAttribute("title"), W.clear(), M.clear(), X || A && J ? W.start(A ? J : X, () => {
366
+ ce(t);
367
+ }) : ce(t));
368
+ }, V = (t) => {
369
+ W.clear(), M.start(Q, () => {
370
+ S(t);
371
+ });
372
+ }, [, me] = n.useState(!1), ue = (t) => {
373
+ ye(t.target) || (me(!1), V(t));
374
+ }, de = (t) => {
375
+ i || se(t.currentTarget), ye(t.target) && (me(!0), $(t));
376
+ }, fe = (t) => {
377
+ C.current = !0;
378
+ const c = m.props;
379
+ c.onTouchStart && c.onTouchStart(t);
380
+ }, ke = (t) => {
381
+ fe(t), M.clear(), ie.clear(), E(), y.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ae.start(Ee, () => {
382
+ document.body.style.WebkitUserSelect = y.current, $(t);
383
+ });
384
+ }, Fe = (t) => {
385
+ m.props.onTouchEnd && m.props.onTouchEnd(t), E(), M.start($e, () => {
386
+ S(t);
387
+ });
388
+ };
389
+ n.useEffect(() => {
390
+ if (!u)
391
+ return;
392
+ function t(c) {
393
+ c.key === "Escape" && S(c);
394
+ }
395
+ return document.addEventListener("keydown", t), () => {
396
+ document.removeEventListener("keydown", t);
397
+ };
398
+ }, [S, u]);
399
+ const Ue = so(io(m), se, s);
400
+ !g && g !== 0 && (u = !1);
401
+ const z = n.useRef(), We = (t) => {
402
+ const c = m.props;
403
+ c.onMouseMove && c.onMouseMove(t), R = {
404
+ x: t.clientX,
405
+ y: t.clientY
406
+ }, z.current && z.current.update();
407
+ }, w = {}, H = typeof g == "string";
408
+ Pe ? (w.title = !u && H && !K ? g : null, w["aria-describedby"] = u ? B : null) : (w["aria-label"] = H ? g : null, w["aria-labelledby"] = u && !H ? B : null);
409
+ const a = {
410
+ ...w,
411
+ ...pe,
412
+ ...m.props,
413
+ className: ge(pe.className, m.props.className),
414
+ onTouchStart: fe,
415
+ ref: Ue,
416
+ ...k ? {
417
+ onMouseMove: We
418
+ } : {}
419
+ };
420
+ process.env.NODE_ENV !== "production" && (a["data-mui-internal-clone-element"] = !0, n.useEffect(() => {
421
+ i && !i.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
422
+ `));
423
+ }, [i]));
424
+ const v = {};
425
+ Me || (a.onTouchStart = ke, a.onTouchEnd = Fe), K || (a.onMouseOver = D($, a.onMouseOver), a.onMouseLeave = D(V, a.onMouseLeave), U || (v.onMouseOver = $, v.onMouseLeave = V)), xe || (a.onFocus = D(de, a.onFocus), a.onBlur = D(ue, a.onBlur), U || (v.onFocus = de, v.onBlur = ue)), process.env.NODE_ENV !== "production" && m.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${m.props.title}\` or the Tooltip component.`].join(`
426
+ `));
427
+ const T = {
428
+ ...d,
429
+ isRtl: je,
430
+ arrow: O,
431
+ disableInteractive: U,
432
+ placement: te,
433
+ PopperComponentProp: re,
434
+ touch: C.current
435
+ }, l = typeof h.popper == "function" ? h.popper(T) : h.popper, Be = n.useMemo(() => {
436
+ var c, he;
437
+ let t = [{
438
+ name: "arrow",
439
+ enabled: !!F,
440
+ options: {
441
+ element: F,
442
+ padding: 4
443
+ }
444
+ }];
445
+ return (c = f.popperOptions) != null && c.modifiers && (t = t.concat(f.popperOptions.modifiers)), (he = l == null ? void 0 : l.popperOptions) != null && he.modifiers && (t = t.concat(l.popperOptions.modifiers)), {
446
+ ...f.popperOptions,
447
+ ...l == null ? void 0 : l.popperOptions,
448
+ modifiers: t
449
+ };
450
+ }, [F, f.popperOptions, l == null ? void 0 : l.popperOptions]), _ = uo(T), Ve = typeof h.transition == "function" ? h.transition(T) : h.transition, L = {
451
+ slots: {
452
+ popper: P.Popper,
453
+ transition: P.Transition ?? Ne,
454
+ tooltip: P.Tooltip,
455
+ arrow: P.Arrow,
456
+ ...Le
457
+ },
458
+ slotProps: {
459
+ arrow: h.arrow ?? x.arrow,
460
+ popper: {
461
+ ...f,
462
+ ...l ?? x.popper
463
+ },
464
+ // resolvedPopperProps can be spread because it's already an object
465
+ tooltip: h.tooltip ?? x.tooltip,
466
+ transition: {
467
+ ...Ie,
468
+ ...Ve ?? x.transition
469
+ }
470
+ }
471
+ }, [ze, He] = I("popper", {
472
+ elementType: fo,
473
+ externalForwardedProps: L,
474
+ ownerState: T,
475
+ className: ge(_.popper, f == null ? void 0 : f.className)
476
+ }), [_e, Ge] = I("transition", {
477
+ elementType: lo,
478
+ externalForwardedProps: L,
479
+ ownerState: T
480
+ }), [Ye, qe] = I("tooltip", {
481
+ elementType: ho,
482
+ className: _.tooltip,
483
+ externalForwardedProps: L,
484
+ ownerState: T
485
+ }), [Ke, Xe] = I("arrow", {
486
+ elementType: go,
487
+ className: _.arrow,
488
+ externalForwardedProps: L,
489
+ ownerState: T,
490
+ ref: Ae
491
+ });
492
+ return /* @__PURE__ */ Te(n.Fragment, {
493
+ children: [/* @__PURE__ */ n.cloneElement(m, a), /* @__PURE__ */ N(ze, {
494
+ as: re ?? Oe,
495
+ placement: te,
496
+ anchorEl: k ? {
497
+ getBoundingClientRect: () => ({
498
+ top: R.y,
499
+ left: R.x,
500
+ right: R.x,
501
+ bottom: R.y,
502
+ width: 0,
503
+ height: 0
504
+ })
505
+ } : i,
506
+ popperRef: z,
507
+ open: i ? u : !1,
508
+ id: B,
509
+ transition: !0,
510
+ ...v,
511
+ ...He,
512
+ popperOptions: Be,
513
+ children: ({
514
+ TransitionProps: t
515
+ }) => /* @__PURE__ */ N(_e, {
516
+ timeout: ne.transitions.duration.shorter,
517
+ ...t,
518
+ ...Ge,
519
+ children: /* @__PURE__ */ Te(Ye, {
520
+ ...qe,
521
+ children: [g, O ? /* @__PURE__ */ N(Ke, {
522
+ ...Xe
523
+ }) : null]
524
+ })
525
+ })
526
+ })]
527
+ });
528
+ });
529
+ process.env.NODE_ENV !== "production" && (To.propTypes = {
530
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
531
+ // │ These PropTypes are generated from the TypeScript type definitions. │
532
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
533
+ // └─────────────────────────────────────────────────────────────────────┘
534
+ /**
535
+ * If `true`, adds an arrow to the tooltip.
536
+ * @default false
537
+ */
538
+ arrow: e.bool,
539
+ /**
540
+ * Tooltip reference element.
541
+ */
542
+ children: ao.isRequired,
543
+ /**
544
+ * Override or extend the styles applied to the component.
545
+ */
546
+ classes: e.object,
547
+ /**
548
+ * @ignore
549
+ */
550
+ className: e.string,
551
+ /**
552
+ * The components used for each slot inside.
553
+ *
554
+ * @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.
555
+ *
556
+ * @default {}
557
+ */
558
+ components: e.shape({
559
+ Arrow: e.elementType,
560
+ Popper: e.elementType,
561
+ Tooltip: e.elementType,
562
+ Transition: e.elementType
563
+ }),
564
+ /**
565
+ * The extra props for the slot components.
566
+ * You can override the existing props or add new ones.
567
+ *
568
+ * @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.
569
+ *
570
+ * @default {}
571
+ */
572
+ componentsProps: e.shape({
573
+ arrow: e.object,
574
+ popper: e.object,
575
+ tooltip: e.object,
576
+ transition: e.object
577
+ }),
578
+ /**
579
+ * Set to `true` if the `title` acts as an accessible description.
580
+ * By default the `title` acts as an accessible label for the child.
581
+ * @default false
582
+ */
583
+ describeChild: e.bool,
584
+ /**
585
+ * Do not respond to focus-visible events.
586
+ * @default false
587
+ */
588
+ disableFocusListener: e.bool,
589
+ /**
590
+ * Do not respond to hover events.
591
+ * @default false
592
+ */
593
+ disableHoverListener: e.bool,
594
+ /**
595
+ * Makes a tooltip not interactive, i.e. it will close when the user
596
+ * hovers over the tooltip before the `leaveDelay` is expired.
597
+ * @default false
598
+ */
599
+ disableInteractive: e.bool,
600
+ /**
601
+ * Do not respond to long press touch events.
602
+ * @default false
603
+ */
604
+ disableTouchListener: e.bool,
605
+ /**
606
+ * The number of milliseconds to wait before showing the tooltip.
607
+ * This prop won't impact the enter touch delay (`enterTouchDelay`).
608
+ * @default 100
609
+ */
610
+ enterDelay: e.number,
611
+ /**
612
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
613
+ * @default 0
614
+ */
615
+ enterNextDelay: e.number,
616
+ /**
617
+ * The number of milliseconds a user must touch the element before showing the tooltip.
618
+ * @default 700
619
+ */
620
+ enterTouchDelay: e.number,
621
+ /**
622
+ * If `true`, the tooltip follow the cursor over the wrapped element.
623
+ * @default false
624
+ */
625
+ followCursor: e.bool,
626
+ /**
627
+ * This prop is used to help implement the accessibility logic.
628
+ * If you don't provide this prop. It falls back to a randomly generated id.
629
+ */
630
+ id: e.string,
631
+ /**
632
+ * The number of milliseconds to wait before hiding the tooltip.
633
+ * This prop won't impact the leave touch delay (`leaveTouchDelay`).
634
+ * @default 0
635
+ */
636
+ leaveDelay: e.number,
637
+ /**
638
+ * The number of milliseconds after the user stops touching an element before hiding the tooltip.
639
+ * @default 1500
640
+ */
641
+ leaveTouchDelay: e.number,
642
+ /**
643
+ * Callback fired when the component requests to be closed.
644
+ *
645
+ * @param {React.SyntheticEvent} event The event source of the callback.
646
+ */
647
+ onClose: e.func,
648
+ /**
649
+ * Callback fired when the component requests to be open.
650
+ *
651
+ * @param {React.SyntheticEvent} event The event source of the callback.
652
+ */
653
+ onOpen: e.func,
654
+ /**
655
+ * If `true`, the component is shown.
656
+ */
657
+ open: e.bool,
658
+ /**
659
+ * Tooltip placement.
660
+ * @default 'bottom'
661
+ */
662
+ placement: e.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
663
+ /**
664
+ * The component used for the popper.
665
+ * @deprecated use the `slots.popper` 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.
666
+ */
667
+ PopperComponent: e.elementType,
668
+ /**
669
+ * Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.
670
+ * @deprecated use the `slotProps.popper` 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.
671
+ * @default {}
672
+ */
673
+ PopperProps: e.object,
674
+ /**
675
+ * The props used for each slot inside.
676
+ * @default {}
677
+ */
678
+ slotProps: e.shape({
679
+ arrow: e.oneOfType([e.func, e.object]),
680
+ popper: e.oneOfType([e.func, e.object]),
681
+ tooltip: e.oneOfType([e.func, e.object]),
682
+ transition: e.oneOfType([e.func, e.object])
683
+ }),
684
+ /**
685
+ * The components used for each slot inside.
686
+ * @default {}
687
+ */
688
+ slots: e.shape({
689
+ arrow: e.elementType,
690
+ popper: e.elementType,
691
+ tooltip: e.elementType,
692
+ transition: e.elementType
693
+ }),
694
+ /**
695
+ * The system prop that allows defining system overrides as well as additional CSS styles.
696
+ */
697
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
698
+ /**
699
+ * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
700
+ */
701
+ title: e.node,
702
+ /**
703
+ * The component used for the transition.
704
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
705
+ * @deprecated use the `slots.transition` 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.
706
+ */
707
+ TransitionComponent: e.elementType,
708
+ /**
709
+ * Props applied to the transition element.
710
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
711
+ * @deprecated use the `slotProps.transition` 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.
712
+ * @default {}
713
+ */
714
+ TransitionProps: e.object
715
+ });
716
+ export {
717
+ To as T,
718
+ co as g,
719
+ p as t
720
+ };