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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/Backdrop-DorR8O-b.js +359 -0
  2. package/dist/Backdrop-cE8nccLi.cjs +1 -0
  3. package/dist/{Box-UE-zctbJ.js → Box-BTNw-FYi.js} +8 -8
  4. package/dist/{Box-H49yQEt_.cjs → Box-Y_dUbq3W.cjs} +1 -1
  5. package/dist/{Button-Bjy0iPNm.js → Button--paERYBc.js} +4 -4
  6. package/dist/{Button-qc45QbX6.cjs → Button-TBA8S65S.cjs} +1 -1
  7. package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-B0gJT_ti.js} +229 -237
  8. package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
  9. package/dist/Card-BVJgnURR.js +74 -0
  10. package/dist/Card-DBGYwd3H.cjs +1 -0
  11. package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-OTMaikud.cjs} +1 -1
  12. package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aBoDjdQG.js} +6 -6
  13. package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CIqTwP6H.js} +4 -4
  14. package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
  15. package/dist/DatePicker-DGRD-CdO.cjs +14 -0
  16. package/dist/DatePicker-DXgVCuAd.js +10814 -0
  17. package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-StV_SUuk.js} +40 -40
  18. package/dist/{DefaultPropsProvider-BrX6iuA3.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
  19. package/dist/DialogContent-C0L4r0-p.cjs +1 -0
  20. package/dist/DialogContent-CP2NOfUr.js +602 -0
  21. package/dist/DialogTitle-Couh2TzJ.js +134 -0
  22. package/dist/DialogTitle-DemSKN6H.cjs +1 -0
  23. package/dist/{FormGroup-BVtE8Mrv.js → FormGroup-CcM69JIS.js} +6 -6
  24. package/dist/{FormGroup-BBYEQB4C.cjs → FormGroup-KOLND6rE.cjs} +1 -1
  25. package/dist/FormLabel-C506NT5o.cjs +2 -0
  26. package/dist/{FormLabel-B4QlkhhB.js → FormLabel-wDh-AEMQ.js} +50 -57
  27. package/dist/Grow-4QU1bnXQ.js +193 -0
  28. package/dist/Grow-C_nN9VuE.cjs +1 -0
  29. package/dist/IconButton-5LMERRPL.cjs +2 -0
  30. package/dist/{IconButton-Av8eJ5IG.js → IconButton-CsqR1453.js} +5 -5
  31. package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-DgT008NI.cjs} +1 -1
  32. package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-bXTpzNQ2.js} +4 -4
  33. package/dist/{InputBase-Ctmib7Br.cjs → InputBase-Cpx39cny.cjs} +3 -3
  34. package/dist/{InputBase-Bbgoz8GV.js → InputBase-VKt_ajuq.js} +21 -19
  35. package/dist/Link-6UH3Aljp.cjs +1 -0
  36. package/dist/Link-CPyeYGpa.js +266 -0
  37. package/dist/{MenuItem-D7HWYhF3.js → MenuItem-BFkBwBkN.js} +15 -15
  38. package/dist/{MenuItem-Els-vJZW.cjs → MenuItem-BxXCEc8h.cjs} +1 -1
  39. package/dist/Modal-BDx2_UzP.js +750 -0
  40. package/dist/Modal-BLMnkdGb.cjs +2 -0
  41. package/dist/Paper-CMUbp6SX.js +185 -0
  42. package/dist/Paper-n4KgM09K.cjs +2 -0
  43. package/dist/Popper-D_UryU8v.js +1407 -0
  44. package/dist/Popper-DzQZEFYT.cjs +4 -0
  45. package/dist/Portal-C4QgaMKl.cjs +1 -0
  46. package/dist/Portal-DVy9JFBN.js +86 -0
  47. package/dist/Select-CcnCBhBN.js +3555 -0
  48. package/dist/Select-CnFa2_je.cjs +9 -0
  49. package/dist/{Stack-y1PjTHKX.js → Stack-CKjrTRJB.js} +16 -16
  50. package/dist/{Stack-CEjx3KHM.cjs → Stack-elRjtOGk.cjs} +1 -1
  51. package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-DWfUIgEW.cjs} +1 -1
  52. package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DYa1wGSu.js} +4 -4
  53. package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-Czgy_sW5.js} +1684 -2801
  54. package/dist/TableSortLabel-Ppl9Q-SZ.cjs +98 -0
  55. package/dist/Tabs-CUpcnsPl.cjs +4 -0
  56. package/dist/{Tabs-DK4Bc5xo.js → Tabs-RxcUgknI.js} +284 -282
  57. package/dist/{TextField-C-B529_r.js → TextField-DorMAtUh.js} +7 -7
  58. package/dist/{TextField-BVAkADOb.cjs → TextField-DvGLmvG1.cjs} +1 -1
  59. package/dist/Tooltip-B4e9QdHI.js +697 -0
  60. package/dist/Tooltip-CPAH20AZ.cjs +4 -0
  61. package/dist/{Typography-C_ESP41L.js → Typography-B29dnCv3.js} +4 -4
  62. package/dist/{Typography-5OodZ94T.cjs → Typography-DyMSnhvs.cjs} +1 -1
  63. package/dist/assets/styles.css +1 -1
  64. package/dist/assets/styles2.css +1 -1
  65. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  66. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  67. package/dist/components/Button/Button.cjs.js +1 -1
  68. package/dist/components/Button/Button.es.js +6 -6
  69. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  70. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  71. package/dist/components/DatePicker/index.cjs.js +1 -1
  72. package/dist/components/DatePicker/index.es.js +1 -1
  73. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  74. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  75. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  76. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  77. package/dist/components/FileList/FileList.cjs.js +1 -1
  78. package/dist/components/FileList/FileList.es.js +1 -1
  79. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  80. package/dist/components/FileList/FileListItem.es.js +6 -6
  81. package/dist/components/Heading/Heading.cjs.js +1 -1
  82. package/dist/components/Heading/Heading.es.js +2 -2
  83. package/dist/components/Loader/Loader.cjs.js +1 -1
  84. package/dist/components/Loader/Loader.es.js +2 -2
  85. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  86. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
  87. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  88. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  89. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  90. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  91. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  92. package/dist/components/TextInput/TextInput.es.js +1 -1
  93. package/dist/components/index.cjs.js +1 -1
  94. package/dist/components/index.es.js +280 -274
  95. package/dist/components/stories/Button.stories.cjs.js +1 -1
  96. package/dist/components/stories/Button.stories.es.js +1 -1
  97. package/dist/components/stories/Card.stories.cjs.js +1 -0
  98. package/dist/components/stories/Card.stories.d.ts +7 -0
  99. package/dist/components/stories/Card.stories.es.js +193 -0
  100. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  101. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  102. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  103. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  104. package/dist/components/stories/Dialog.stories.cjs.js +1 -0
  105. package/dist/components/stories/Dialog.stories.d.ts +7 -0
  106. package/dist/components/stories/Dialog.stories.es.js +33 -0
  107. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  108. package/dist/components/stories/Heading.stories.es.js +2 -2
  109. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  110. package/dist/components/stories/IconButton.stories.es.js +2 -2
  111. package/dist/components/stories/Link.stories.cjs.js +1 -0
  112. package/dist/components/stories/Link.stories.d.ts +7 -0
  113. package/dist/components/stories/Link.stories.es.js +43 -0
  114. package/dist/components/stories/Paper.stories.cjs.js +1 -0
  115. package/dist/components/stories/Paper.stories.d.ts +7 -0
  116. package/dist/components/stories/Paper.stories.es.js +28 -0
  117. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  118. package/dist/components/stories/RadioGroup.stories.es.js +28 -27
  119. package/dist/components/stories/Select.stories.cjs.js +1 -1
  120. package/dist/components/stories/Select.stories.es.js +3 -3
  121. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  122. package/dist/components/stories/TabList.stories.es.js +10 -10
  123. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  124. package/dist/components/stories/TextField.stories.es.js +1 -1
  125. package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
  126. package/dist/components/stories/Tooltip.stories.d.ts +7 -0
  127. package/dist/components/stories/Tooltip.stories.es.js +46 -0
  128. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  129. package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
  130. package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
  131. package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-VByplk-r.js} +3 -3
  132. package/dist/debounce-46wSf_lW.js +15 -0
  133. package/dist/debounce-DpCj7ugL.cjs +1 -0
  134. package/dist/elementTypeAcceptingRef-BPhL72td.js +23 -0
  135. package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
  136. package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-BYB-kybW.js} +1 -1
  137. package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
  138. package/dist/{fr-B8_MxRl5.js → fr-B4aeA9th.js} +23 -23
  139. package/dist/{fr-Nvp7C-vS.cjs → fr-CSCQhSqi.cjs} +1 -1
  140. package/dist/{identifier-BqadgaK7.js → identifier-BewKgEhI.js} +488 -487
  141. package/dist/{identifier-BQH88SE0.cjs → identifier-DTh6b5Gz.cjs} +17 -17
  142. package/dist/{index-CRT92bm7.js → index-BAjSgP8k.js} +3 -3
  143. package/dist/{index-CNv8ppur.cjs → index-B_acx8gh.cjs} +1 -1
  144. package/dist/{index-BUxqDIr9.js → index-_oi9ph20.js} +4 -4
  145. package/dist/{index-D7nFYLYq.cjs → index-oINGa1MV.cjs} +1 -1
  146. package/dist/index.cjs.js +1 -1
  147. package/dist/index.es.js +280 -274
  148. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  149. package/dist/isFocusVisible-DlSijby6.cjs +2 -0
  150. package/dist/{memoTheme-DfGVDRrB.js → memoTheme-B9kDhX1-.js} +1 -1
  151. package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
  152. package/dist/ownerDocument-4MViGo3k.cjs +1 -0
  153. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  154. package/dist/ownerWindow-DDHucZi0.cjs +1 -0
  155. package/dist/ownerWindow-niciwP7I.js +7 -0
  156. package/dist/refType-3o3c-kYx.js +7 -0
  157. package/dist/refType-DNB-r0Bp.cjs +1 -0
  158. package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-BQQ-uUKZ.js} +1 -1
  159. package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-R_l8gy3y.cjs} +1 -1
  160. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  161. package/dist/useForkRef-C_4o__cU.js +15 -0
  162. package/dist/{useSlot-Co14PUn6.js → useSlot-B2hCpx8C.js} +2 -2
  163. package/dist/{useSlot-42jgZftI.cjs → useSlot-i7AZwCRV.cjs} +1 -1
  164. package/dist/{useTheme-CtT7O-Wk.js → useTheme-0u9_WhjM.js} +3 -3
  165. package/dist/{useTheme-oM_SFWy4.js → useTheme-BrFhq4dW.js} +1 -1
  166. package/dist/{useTheme-tZYpFplW.cjs → useTheme-DfN3sBzg.cjs} +1 -1
  167. package/dist/{useTheme-cVN-YQNB.cjs → useTheme-w4BoR6ol.cjs} +1 -1
  168. package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
  169. package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-CkGODfms.cjs} +1 -1
  170. package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-CwWORfXn.js} +2 -2
  171. package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-cERu5xHk.js} +3 -3
  172. package/dist/{useTimeout-D16vpBhn.js → useTimeout-Br8oWWYt.js} +4 -4
  173. package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
  174. package/dist/utils-CH0HZgJe.js +391 -0
  175. package/dist/utils-D2bhwE7x.cjs +1 -0
  176. package/package.json +1 -1
  177. package/dist/Backdrop-KAJqifAq.cjs +0 -1
  178. package/dist/Backdrop-RBPtVAPX.js +0 -744
  179. package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
  180. package/dist/DatePicker-rhgpaD-r.cjs +0 -17
  181. package/dist/DatePicker-u4rtXGeo.js +0 -12791
  182. package/dist/FormLabel-D8jYibc1.cjs +0 -2
  183. package/dist/IconButton-CVyLtjcH.cjs +0 -2
  184. package/dist/Select-BlPQngVF.js +0 -4720
  185. package/dist/Select-ipcMZ4iK.cjs +0 -11
  186. package/dist/Tabs-Nvk94RTW.cjs +0 -4
  187. package/dist/Tooltip-DvPL2M0E.cjs +0 -100
  188. package/dist/ownerWindow-BoRkeomM.js +0 -23
  189. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  190. package/dist/refType-DlHf9HvO.js +0 -27
  191. package/dist/refType-Do7KaOvv.cjs +0 -1
  192. package/dist/useForkRef-D-DyzOXj.js +0 -21
  193. package/dist/useForkRef-D81w5oMb.cjs +0 -1
@@ -0,0 +1,697 @@
1
+ import * as n from "react";
2
+ import { I as Xe, J as Qe, K as Me, L, P as o, n as Ee } from "./identifier-BewKgEhI.js";
3
+ import { u as Ze } from "./index-BAjSgP8k.js";
4
+ import { u as eo } from "./useTheme-0u9_WhjM.js";
5
+ import { jsxs as Pe, jsx as I } from "react/jsx-runtime";
6
+ import { s as Y, u as oo, c as to } from "./DefaultPropsProvider-StV_SUuk.js";
7
+ import { m as G } from "./memoTheme-B9kDhX1-.js";
8
+ import { P as $e } from "./Popper-D_UryU8v.js";
9
+ import { u as j, a as Re, T as ro } from "./useTimeout-Br8oWWYt.js";
10
+ import { u as po } from "./useControlled-BYdyS7Pn.js";
11
+ import { u as no } from "./useId-CK6Kn3Tn.js";
12
+ import { u as so } from "./useForkRef-C_4o__cU.js";
13
+ import { g as ao, e as io } from "./utils-CH0HZgJe.js";
14
+ import { G as Ce } from "./Grow-4QU1bnXQ.js";
15
+ import { a as A } from "./resolveComponentProps-BQQ-uUKZ.js";
16
+ import { i as xe } from "./isFocusVisible-CPZqtjv2.js";
17
+ function lo(r) {
18
+ return Xe("MuiTooltip", r);
19
+ }
20
+ const p = Qe("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
21
+ function co(r) {
22
+ return Math.round(r * 1e5) / 1e5;
23
+ }
24
+ const mo = (r) => {
25
+ const {
26
+ classes: e,
27
+ disableInteractive: s,
28
+ arrow: d,
29
+ touch: R,
30
+ placement: b
31
+ } = r, K = {
32
+ popper: ["popper", !s && "popperInteractive", d && "popperArrow"],
33
+ tooltip: ["tooltip", d && "tooltipArrow", R && "touch", `tooltipPlacement${Me(b.split("-")[0])}`],
34
+ arrow: ["arrow"]
35
+ };
36
+ return to(K, lo, e);
37
+ }, uo = Y($e, {
38
+ name: "MuiTooltip",
39
+ slot: "Popper",
40
+ overridesResolver: (r, e) => {
41
+ const {
42
+ ownerState: s
43
+ } = r;
44
+ return [e.popper, !s.disableInteractive && e.popperInteractive, s.arrow && e.popperArrow, !s.open && e.popperClose];
45
+ }
46
+ })(G(({
47
+ theme: r
48
+ }) => ({
49
+ zIndex: (r.vars || r).zIndex.tooltip,
50
+ pointerEvents: "none",
51
+ variants: [{
52
+ props: ({
53
+ ownerState: e
54
+ }) => !e.disableInteractive,
55
+ style: {
56
+ pointerEvents: "auto"
57
+ }
58
+ }, {
59
+ props: ({
60
+ open: e
61
+ }) => !e,
62
+ style: {
63
+ pointerEvents: "none"
64
+ }
65
+ }, {
66
+ props: ({
67
+ ownerState: e
68
+ }) => e.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: e
102
+ }) => e.arrow && !e.isRtl,
103
+ style: {
104
+ [`&[data-popper-placement*="right"] .${p.arrow}`]: {
105
+ left: 0,
106
+ marginLeft: "-0.71em"
107
+ }
108
+ }
109
+ }, {
110
+ props: ({
111
+ ownerState: e
112
+ }) => e.arrow && !!e.isRtl,
113
+ style: {
114
+ [`&[data-popper-placement*="right"] .${p.arrow}`]: {
115
+ right: 0,
116
+ marginRight: "-0.71em"
117
+ }
118
+ }
119
+ }, {
120
+ props: ({
121
+ ownerState: e
122
+ }) => e.arrow && !e.isRtl,
123
+ style: {
124
+ [`&[data-popper-placement*="left"] .${p.arrow}`]: {
125
+ right: 0,
126
+ marginRight: "-0.71em"
127
+ }
128
+ }
129
+ }, {
130
+ props: ({
131
+ ownerState: e
132
+ }) => e.arrow && !!e.isRtl,
133
+ style: {
134
+ [`&[data-popper-placement*="left"] .${p.arrow}`]: {
135
+ left: 0,
136
+ marginLeft: "-0.71em"
137
+ }
138
+ }
139
+ }]
140
+ }))), fo = Y("div", {
141
+ name: "MuiTooltip",
142
+ slot: "Tooltip",
143
+ overridesResolver: (r, e) => {
144
+ const {
145
+ ownerState: s
146
+ } = r;
147
+ return [e.tooltip, s.touch && e.touch, s.arrow && e.tooltipArrow, e[`tooltipPlacement${Me(s.placement.split("-")[0])}`]];
148
+ }
149
+ })(G(({
150
+ theme: r
151
+ }) => ({
152
+ backgroundColor: r.vars ? r.vars.palette.Tooltip.bg : Ee(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: e
179
+ }) => e.arrow,
180
+ style: {
181
+ position: "relative",
182
+ margin: 0
183
+ }
184
+ }, {
185
+ props: ({
186
+ ownerState: e
187
+ }) => e.touch,
188
+ style: {
189
+ padding: "8px 16px",
190
+ fontSize: r.typography.pxToRem(14),
191
+ lineHeight: `${co(16 / 14)}em`,
192
+ fontWeight: r.typography.fontWeightRegular
193
+ }
194
+ }, {
195
+ props: ({
196
+ ownerState: e
197
+ }) => !e.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: e
209
+ }) => !e.isRtl && e.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: e
221
+ }) => !!e.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: e
233
+ }) => !!e.isRtl && e.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: e
245
+ }) => e.touch,
246
+ style: {
247
+ [`.${p.popper}[data-popper-placement*="top"] &`]: {
248
+ marginBottom: "24px"
249
+ }
250
+ }
251
+ }, {
252
+ props: ({
253
+ ownerState: e
254
+ }) => e.touch,
255
+ style: {
256
+ [`.${p.popper}[data-popper-placement*="bottom"] &`]: {
257
+ marginTop: "24px"
258
+ }
259
+ }
260
+ }]
261
+ }))), ho = Y("span", {
262
+ name: "MuiTooltip",
263
+ slot: "Arrow",
264
+ overridesResolver: (r, e) => e.arrow
265
+ })(G(({
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 : Ee(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 S = !1;
285
+ const Oe = new ro();
286
+ let P = {
287
+ x: 0,
288
+ y: 0
289
+ };
290
+ function D(r, e) {
291
+ return (s, ...d) => {
292
+ e && e(s, ...d), r(s, ...d);
293
+ };
294
+ }
295
+ const go = /* @__PURE__ */ n.forwardRef(function(e, s) {
296
+ var ye, we, ve;
297
+ const d = oo({
298
+ props: e,
299
+ name: "MuiTooltip"
300
+ }), {
301
+ arrow: R = !1,
302
+ children: b,
303
+ classes: K,
304
+ components: C = {},
305
+ componentsProps: h = {},
306
+ describeChild: Ne = !1,
307
+ disableFocusListener: Le = !1,
308
+ disableHoverListener: q = !1,
309
+ disableInteractive: Ie = !1,
310
+ disableTouchListener: je = !1,
311
+ enterDelay: J = 100,
312
+ enterNextDelay: X = 0,
313
+ enterTouchDelay: Ae = 700,
314
+ followCursor: k = !1,
315
+ id: Se,
316
+ leaveDelay: Q = 0,
317
+ leaveTouchDelay: De = 1500,
318
+ onClose: Z,
319
+ onOpen: ee,
320
+ open: oe,
321
+ placement: te = "bottom",
322
+ PopperComponent: re,
323
+ PopperProps: u = {},
324
+ slotProps: g = {},
325
+ slots: x = {},
326
+ title: f,
327
+ TransitionComponent: ke = Ce,
328
+ TransitionProps: Fe,
329
+ ...pe
330
+ } = d, c = /* @__PURE__ */ n.isValidElement(b) ? b : /* @__PURE__ */ I("span", {
331
+ children: b
332
+ }), ne = eo(), Ue = Ze(), [a, se] = n.useState(), [F, We] = n.useState(null), O = n.useRef(!1), U = Ie || k, ae = j(), W = j(), M = j(), ie = j(), [Be, le] = po({
333
+ controlled: oe,
334
+ default: !1,
335
+ name: "Tooltip",
336
+ state: "open"
337
+ });
338
+ let m = Be;
339
+ if (process.env.NODE_ENV !== "production") {
340
+ const {
341
+ current: t
342
+ } = n.useRef(oe !== void 0);
343
+ n.useEffect(() => {
344
+ a && a.disabled && !t && f !== "" && a.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(`
345
+ `));
346
+ }, [f, a, t]);
347
+ }
348
+ const B = no(Se), T = n.useRef(), E = Re(() => {
349
+ T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0), ie.clear();
350
+ });
351
+ n.useEffect(() => E, [E]);
352
+ const ce = (t) => {
353
+ Oe.clear(), S = !0, le(!0), ee && !m && ee(t);
354
+ }, $ = Re(
355
+ /**
356
+ * @param {React.SyntheticEvent | Event} event
357
+ */
358
+ (t) => {
359
+ Oe.start(800 + Q, () => {
360
+ S = !1;
361
+ }), le(!1), Z && m && Z(t), ae.start(ne.transitions.duration.shortest, () => {
362
+ O.current = !1;
363
+ });
364
+ }
365
+ ), N = (t) => {
366
+ O.current && t.type !== "touchstart" || (a && a.removeAttribute("title"), W.clear(), M.clear(), J || S && X ? W.start(S ? X : J, () => {
367
+ ce(t);
368
+ }) : ce(t));
369
+ }, V = (t) => {
370
+ W.clear(), M.start(Q, () => {
371
+ $(t);
372
+ });
373
+ }, [, me] = n.useState(!1), de = (t) => {
374
+ xe(t.target) || (me(!1), V(t));
375
+ }, ue = (t) => {
376
+ a || se(t.currentTarget), xe(t.target) && (me(!0), N(t));
377
+ }, fe = (t) => {
378
+ O.current = !0;
379
+ const l = c.props;
380
+ l.onTouchStart && l.onTouchStart(t);
381
+ }, Ve = (t) => {
382
+ fe(t), M.clear(), ae.clear(), E(), T.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ie.start(Ae, () => {
383
+ document.body.style.WebkitUserSelect = T.current, N(t);
384
+ });
385
+ }, ze = (t) => {
386
+ c.props.onTouchEnd && c.props.onTouchEnd(t), E(), M.start(De, () => {
387
+ $(t);
388
+ });
389
+ };
390
+ n.useEffect(() => {
391
+ if (!m)
392
+ return;
393
+ function t(l) {
394
+ l.key === "Escape" && $(l);
395
+ }
396
+ return document.addEventListener("keydown", t), () => {
397
+ document.removeEventListener("keydown", t);
398
+ };
399
+ }, [$, m]);
400
+ const _e = so(ao(c), se, s);
401
+ !f && f !== 0 && (m = !1);
402
+ const z = n.useRef(), He = (t) => {
403
+ const l = c.props;
404
+ l.onMouseMove && l.onMouseMove(t), P = {
405
+ x: t.clientX,
406
+ y: t.clientY
407
+ }, z.current && z.current.update();
408
+ }, y = {}, _ = typeof f == "string";
409
+ Ne ? (y.title = !m && _ && !q ? f : null, y["aria-describedby"] = m ? B : null) : (y["aria-label"] = _ ? f : null, y["aria-labelledby"] = m && !_ ? B : null);
410
+ const i = {
411
+ ...y,
412
+ ...pe,
413
+ ...c.props,
414
+ className: L(pe.className, c.props.className),
415
+ onTouchStart: fe,
416
+ ref: _e,
417
+ ...k ? {
418
+ onMouseMove: He
419
+ } : {}
420
+ };
421
+ process.env.NODE_ENV !== "production" && (i["data-mui-internal-clone-element"] = !0, n.useEffect(() => {
422
+ a && !a.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(`
423
+ `));
424
+ }, [a]));
425
+ const w = {};
426
+ je || (i.onTouchStart = Ve, i.onTouchEnd = ze), q || (i.onMouseOver = D(N, i.onMouseOver), i.onMouseLeave = D(V, i.onMouseLeave), U || (w.onMouseOver = N, w.onMouseLeave = V)), Le || (i.onFocus = D(ue, i.onFocus), i.onBlur = D(de, i.onBlur), U || (w.onFocus = ue, w.onBlur = de)), process.env.NODE_ENV !== "production" && c.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${c.props.title}\` or the Tooltip component.`].join(`
427
+ `));
428
+ const Ye = n.useMemo(() => {
429
+ var l;
430
+ let t = [{
431
+ name: "arrow",
432
+ enabled: !!F,
433
+ options: {
434
+ element: F,
435
+ padding: 4
436
+ }
437
+ }];
438
+ return (l = u.popperOptions) != null && l.modifiers && (t = t.concat(u.popperOptions.modifiers)), {
439
+ ...u.popperOptions,
440
+ modifiers: t
441
+ };
442
+ }, [F, u]), v = {
443
+ ...d,
444
+ isRtl: Ue,
445
+ arrow: R,
446
+ disableInteractive: U,
447
+ placement: te,
448
+ PopperComponentProp: re,
449
+ touch: O.current
450
+ }, H = mo(v), he = x.popper ?? C.Popper ?? uo, ge = x.transition ?? C.Transition ?? ke ?? Ce, be = x.tooltip ?? C.Tooltip ?? fo, Te = x.arrow ?? C.Arrow ?? ho, Ge = A(he, {
451
+ ...u,
452
+ ...g.popper ?? h.popper,
453
+ className: L(H.popper, u == null ? void 0 : u.className, (ye = g.popper ?? h.popper) == null ? void 0 : ye.className)
454
+ }, v), Ke = A(ge, {
455
+ ...Fe,
456
+ ...g.transition ?? h.transition
457
+ }, v), qe = A(be, {
458
+ ...g.tooltip ?? h.tooltip,
459
+ className: L(H.tooltip, (we = g.tooltip ?? h.tooltip) == null ? void 0 : we.className)
460
+ }, v), Je = A(Te, {
461
+ ...g.arrow ?? h.arrow,
462
+ className: L(H.arrow, (ve = g.arrow ?? h.arrow) == null ? void 0 : ve.className)
463
+ }, v);
464
+ return /* @__PURE__ */ Pe(n.Fragment, {
465
+ children: [/* @__PURE__ */ n.cloneElement(c, i), /* @__PURE__ */ I(he, {
466
+ as: re ?? $e,
467
+ placement: te,
468
+ anchorEl: k ? {
469
+ getBoundingClientRect: () => ({
470
+ top: P.y,
471
+ left: P.x,
472
+ right: P.x,
473
+ bottom: P.y,
474
+ width: 0,
475
+ height: 0
476
+ })
477
+ } : a,
478
+ popperRef: z,
479
+ open: a ? m : !1,
480
+ id: B,
481
+ transition: !0,
482
+ ...w,
483
+ ...Ge,
484
+ popperOptions: Ye,
485
+ children: ({
486
+ TransitionProps: t
487
+ }) => /* @__PURE__ */ I(ge, {
488
+ timeout: ne.transitions.duration.shorter,
489
+ ...t,
490
+ ...Ke,
491
+ children: /* @__PURE__ */ Pe(be, {
492
+ ...qe,
493
+ children: [f, R ? /* @__PURE__ */ I(Te, {
494
+ ...Je,
495
+ ref: We
496
+ }) : null]
497
+ })
498
+ })
499
+ })]
500
+ });
501
+ });
502
+ process.env.NODE_ENV !== "production" && (go.propTypes = {
503
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
504
+ // │ These PropTypes are generated from the TypeScript type definitions. │
505
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
506
+ // └─────────────────────────────────────────────────────────────────────┘
507
+ /**
508
+ * If `true`, adds an arrow to the tooltip.
509
+ * @default false
510
+ */
511
+ arrow: o.bool,
512
+ /**
513
+ * Tooltip reference element.
514
+ */
515
+ children: io.isRequired,
516
+ /**
517
+ * Override or extend the styles applied to the component.
518
+ */
519
+ classes: o.object,
520
+ /**
521
+ * @ignore
522
+ */
523
+ className: o.string,
524
+ /**
525
+ * The components used for each slot inside.
526
+ *
527
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/).
528
+ *
529
+ * @default {}
530
+ */
531
+ components: o.shape({
532
+ Arrow: o.elementType,
533
+ Popper: o.elementType,
534
+ Tooltip: o.elementType,
535
+ Transition: o.elementType
536
+ }),
537
+ /**
538
+ * The extra props for the slot components.
539
+ * You can override the existing props or add new ones.
540
+ *
541
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/).
542
+ *
543
+ * @default {}
544
+ */
545
+ componentsProps: o.shape({
546
+ arrow: o.object,
547
+ popper: o.object,
548
+ tooltip: o.object,
549
+ transition: o.object
550
+ }),
551
+ /**
552
+ * Set to `true` if the `title` acts as an accessible description.
553
+ * By default the `title` acts as an accessible label for the child.
554
+ * @default false
555
+ */
556
+ describeChild: o.bool,
557
+ /**
558
+ * Do not respond to focus-visible events.
559
+ * @default false
560
+ */
561
+ disableFocusListener: o.bool,
562
+ /**
563
+ * Do not respond to hover events.
564
+ * @default false
565
+ */
566
+ disableHoverListener: o.bool,
567
+ /**
568
+ * Makes a tooltip not interactive, i.e. it will close when the user
569
+ * hovers over the tooltip before the `leaveDelay` is expired.
570
+ * @default false
571
+ */
572
+ disableInteractive: o.bool,
573
+ /**
574
+ * Do not respond to long press touch events.
575
+ * @default false
576
+ */
577
+ disableTouchListener: o.bool,
578
+ /**
579
+ * The number of milliseconds to wait before showing the tooltip.
580
+ * This prop won't impact the enter touch delay (`enterTouchDelay`).
581
+ * @default 100
582
+ */
583
+ enterDelay: o.number,
584
+ /**
585
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
586
+ * @default 0
587
+ */
588
+ enterNextDelay: o.number,
589
+ /**
590
+ * The number of milliseconds a user must touch the element before showing the tooltip.
591
+ * @default 700
592
+ */
593
+ enterTouchDelay: o.number,
594
+ /**
595
+ * If `true`, the tooltip follow the cursor over the wrapped element.
596
+ * @default false
597
+ */
598
+ followCursor: o.bool,
599
+ /**
600
+ * This prop is used to help implement the accessibility logic.
601
+ * If you don't provide this prop. It falls back to a randomly generated id.
602
+ */
603
+ id: o.string,
604
+ /**
605
+ * The number of milliseconds to wait before hiding the tooltip.
606
+ * This prop won't impact the leave touch delay (`leaveTouchDelay`).
607
+ * @default 0
608
+ */
609
+ leaveDelay: o.number,
610
+ /**
611
+ * The number of milliseconds after the user stops touching an element before hiding the tooltip.
612
+ * @default 1500
613
+ */
614
+ leaveTouchDelay: o.number,
615
+ /**
616
+ * Callback fired when the component requests to be closed.
617
+ *
618
+ * @param {React.SyntheticEvent} event The event source of the callback.
619
+ */
620
+ onClose: o.func,
621
+ /**
622
+ * Callback fired when the component requests to be open.
623
+ *
624
+ * @param {React.SyntheticEvent} event The event source of the callback.
625
+ */
626
+ onOpen: o.func,
627
+ /**
628
+ * If `true`, the component is shown.
629
+ */
630
+ open: o.bool,
631
+ /**
632
+ * Tooltip placement.
633
+ * @default 'bottom'
634
+ */
635
+ placement: o.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
636
+ /**
637
+ * The component used for the popper.
638
+ * @default Popper
639
+ */
640
+ PopperComponent: o.elementType,
641
+ /**
642
+ * Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.
643
+ * @default {}
644
+ */
645
+ PopperProps: o.object,
646
+ /**
647
+ * The extra props for the slot components.
648
+ * You can override the existing props or add new ones.
649
+ *
650
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
651
+ *
652
+ * @default {}
653
+ */
654
+ slotProps: o.shape({
655
+ arrow: o.object,
656
+ popper: o.object,
657
+ tooltip: o.object,
658
+ transition: o.object
659
+ }),
660
+ /**
661
+ * The components used for each slot inside.
662
+ *
663
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
664
+ *
665
+ * @default {}
666
+ */
667
+ slots: o.shape({
668
+ arrow: o.elementType,
669
+ popper: o.elementType,
670
+ tooltip: o.elementType,
671
+ transition: o.elementType
672
+ }),
673
+ /**
674
+ * The system prop that allows defining system overrides as well as additional CSS styles.
675
+ */
676
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
677
+ /**
678
+ * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
679
+ */
680
+ title: o.node,
681
+ /**
682
+ * The component used for the transition.
683
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
684
+ * @default Grow
685
+ */
686
+ TransitionComponent: o.elementType,
687
+ /**
688
+ * Props applied to the transition element.
689
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
690
+ */
691
+ TransitionProps: o.object
692
+ });
693
+ export {
694
+ go as T,
695
+ lo as g,
696
+ p as t
697
+ };