@cgi-learning-hub/ui 1.3.2 → 1.3.3-dev.1732123246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Backdrop-DorR8O-b.js +359 -0
- package/dist/Backdrop-cE8nccLi.cjs +1 -0
- package/dist/{Box-a6v7fn61.js → Box-BTNw-FYi.js} +8 -8
- package/dist/{Box-D61CmHcZ.cjs → Box-Y_dUbq3W.cjs} +1 -1
- package/dist/{Button-B8Vr_qVd.js → Button--paERYBc.js} +4 -4
- package/dist/{Button-elp97nQ8.cjs → Button-TBA8S65S.cjs} +1 -1
- package/dist/{ButtonBase-Y5TK5SRu.js → ButtonBase-B0gJT_ti.js} +228 -236
- package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
- package/dist/Card-BVJgnURR.js +74 -0
- package/dist/Card-DBGYwd3H.cjs +1 -0
- package/dist/Checkbox-OTMaikud.cjs +1 -0
- package/dist/Checkbox-aBoDjdQG.js +241 -0
- package/dist/{CircularProgress-DU3DJQfF.js → CircularProgress-CIqTwP6H.js} +4 -4
- package/dist/{CircularProgress-DDIZxeFH.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
- package/dist/DatePicker-DGRD-CdO.cjs +14 -0
- package/dist/DatePicker-DXgVCuAd.js +10814 -0
- package/dist/{DefaultPropsProvider-7QnSWHxy.js → DefaultPropsProvider-StV_SUuk.js} +25 -25
- package/dist/{DefaultPropsProvider-eEVEiLDf.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
- package/dist/DialogContent-C0L4r0-p.cjs +1 -0
- package/dist/DialogContent-CP2NOfUr.js +602 -0
- package/dist/DialogTitle-Couh2TzJ.js +134 -0
- package/dist/DialogTitle-DemSKN6H.cjs +1 -0
- package/dist/FormGroup-CcM69JIS.js +348 -0
- package/dist/FormGroup-KOLND6rE.cjs +1 -0
- package/dist/FormLabel-C506NT5o.cjs +2 -0
- package/dist/FormLabel-wDh-AEMQ.js +417 -0
- package/dist/Grow-4QU1bnXQ.js +193 -0
- package/dist/Grow-C_nN9VuE.cjs +1 -0
- package/dist/IconButton-5LMERRPL.cjs +2 -0
- package/dist/{IconButton-C7H_G1LX.js → IconButton-CsqR1453.js} +5 -5
- package/dist/InputAdornment-DgT008NI.cjs +1 -0
- package/dist/{InputAdornment-CPJFY_m_.js → InputAdornment-bXTpzNQ2.js} +5 -5
- package/dist/InputBase-Cpx39cny.cjs +3 -0
- package/dist/{InputBase-5GB2c2J6.js → InputBase-VKt_ajuq.js} +185 -207
- package/dist/Link-6UH3Aljp.cjs +1 -0
- package/dist/Link-CPyeYGpa.js +266 -0
- package/dist/MenuItem-BFkBwBkN.js +277 -0
- package/dist/MenuItem-BxXCEc8h.cjs +1 -0
- package/dist/Modal-BDx2_UzP.js +750 -0
- package/dist/Modal-BLMnkdGb.cjs +2 -0
- package/dist/Paper-CMUbp6SX.js +185 -0
- package/dist/Paper-n4KgM09K.cjs +2 -0
- package/dist/Popper-D_UryU8v.js +1407 -0
- package/dist/Popper-DzQZEFYT.cjs +4 -0
- package/dist/Portal-C4QgaMKl.cjs +1 -0
- package/dist/Portal-DVy9JFBN.js +86 -0
- package/dist/Select-CcnCBhBN.js +3555 -0
- package/dist/Select-CnFa2_je.cjs +9 -0
- package/dist/{Stack-CutIWKkG.js → Stack-CKjrTRJB.js} +12 -12
- package/dist/{Stack-656bqKiW.cjs → Stack-elRjtOGk.cjs} +1 -1
- package/dist/SwitchBase-DWfUIgEW.cjs +1 -0
- package/dist/SwitchBase-DYa1wGSu.js +261 -0
- package/dist/{Tooltip-DqLAZimE.js → TableSortLabel-Czgy_sW5.js} +2998 -5191
- package/dist/TableSortLabel-Ppl9Q-SZ.cjs +98 -0
- package/dist/Tabs-CUpcnsPl.cjs +4 -0
- package/dist/{Tabs-CKic46Op.js → Tabs-RxcUgknI.js} +284 -282
- package/dist/TextField-DorMAtUh.js +547 -0
- package/dist/TextField-DvGLmvG1.cjs +1 -0
- package/dist/Tooltip-B4e9QdHI.js +697 -0
- package/dist/Tooltip-CPAH20AZ.cjs +4 -0
- package/dist/{Typography-DsJC595c.js → Typography-B29dnCv3.js} +4 -4
- package/dist/{Typography-CreZW2v6.cjs → Typography-DyMSnhvs.cjs} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +6 -6
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +6 -6
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +280 -269
- package/dist/components/stories/Alert.stories.cjs.js +1 -0
- package/dist/components/stories/Alert.stories.d.ts +9 -0
- package/dist/components/stories/Alert.stories.es.js +32 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -0
- package/dist/components/stories/Button.stories.d.ts +8 -0
- package/dist/components/stories/Button.stories.es.js +43 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
- package/dist/components/stories/Checkbox.stories.d.ts +10 -0
- package/dist/components/stories/Checkbox.stories.es.js +28 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -0
- package/dist/components/stories/DatePicker.stories.d.ts +6 -0
- package/dist/components/stories/DatePicker.stories.es.js +13 -0
- package/dist/components/stories/Dialog.stories.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +33 -0
- package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
- package/dist/components/stories/Dropzone.stories.d.ts +6 -0
- package/dist/components/stories/Dropzone.stories.es.js +14 -0
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
- package/dist/components/stories/EmptyState.stories.d.ts +6 -0
- package/dist/components/stories/EmptyState.stories.es.js +14 -0
- package/dist/components/stories/FileList.stories.cjs.js +1 -0
- package/dist/components/stories/FileList.stories.d.ts +6 -0
- package/dist/components/stories/FileList.stories.es.js +26 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -0
- package/dist/components/stories/Heading.stories.d.ts +6 -0
- package/dist/components/stories/Heading.stories.es.js +20 -0
- package/dist/components/stories/IconButton.stories.cjs.js +1 -0
- package/dist/components/stories/IconButton.stories.d.ts +6 -0
- package/dist/components/{IconButton.stories.es.js → stories/IconButton.stories.es.js} +12 -14
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Loader.stories.cjs.js +1 -0
- package/dist/components/stories/Loader.stories.d.ts +6 -0
- package/dist/components/stories/Loader.stories.es.js +11 -0
- package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +6 -0
- package/dist/components/stories/LoaderBackdrop.stories.es.js +11 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
- package/dist/components/stories/PasswordInput.stories.d.ts +6 -0
- package/dist/components/stories/PasswordInput.stories.es.js +13 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
- package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
- package/dist/components/stories/RadioGroup.stories.es.js +435 -0
- package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
- package/dist/components/stories/SearchInput.stories.d.ts +6 -0
- package/dist/components/stories/SearchInput.stories.es.js +13 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -0
- package/dist/components/stories/Select.stories.d.ts +10 -0
- package/dist/components/stories/Select.stories.es.js +52 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -0
- package/dist/components/stories/TabList.stories.d.ts +7 -0
- package/dist/components/{TabList.stories.es.js → stories/TabList.stories.es.js} +45 -52
- package/dist/components/stories/TextField.stories.cjs.js +1 -0
- package/dist/components/stories/TextField.stories.d.ts +10 -0
- package/dist/components/stories/TextField.stories.es.js +69 -0
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-PXjVOXDY.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
- package/dist/{createSvgIcon-Ae1vF9Lv.js → createSvgIcon-VByplk-r.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/elementTypeAcceptingRef-BPhL72td.js +23 -0
- package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
- package/dist/{extendSxProp-BzTGWWcy.js → extendSxProp-BYB-kybW.js} +1 -1
- package/dist/{extendSxProp-DLhbnNxc.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
- package/dist/formControlState-DCkDUdfO.cjs +1 -0
- package/dist/formControlState-DdQP43Uo.js +21 -0
- package/dist/{fr-B0c4Eu-I.js → fr-B4aeA9th.js} +23 -23
- package/dist/{fr-BtINyNRC.cjs → fr-CSCQhSqi.cjs} +1 -1
- package/dist/{identifier-Bu3vgTzE.js → identifier-BewKgEhI.js} +487 -486
- package/dist/{identifier-B_IiMbpZ.cjs → identifier-DTh6b5Gz.cjs} +17 -17
- package/dist/{index-D4YvqRSh.js → index-BAjSgP8k.js} +3 -3
- package/dist/{index-BDy6VH40.cjs → index-B_acx8gh.cjs} +1 -1
- package/dist/{index-DNmEgr4X.js → index-_oi9ph20.js} +4 -4
- package/dist/index-oINGa1MV.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +280 -269
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/{memoTheme-C4_nd-x4.js → memoTheme-B9kDhX1-.js} +1 -1
- package/dist/{memoTheme-DvW891YJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/refType-3o3c-kYx.js +7 -0
- package/dist/refType-DNB-r0Bp.cjs +1 -0
- package/dist/{useTheme-B_3HWqyi.js → resolveComponentProps-BQQ-uUKZ.js} +18 -26
- package/dist/resolveComponentProps-R_l8gy3y.cjs +1 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-B2hCpx8C.js +50 -0
- package/dist/useSlot-i7AZwCRV.cjs +1 -0
- package/dist/useTheme-0u9_WhjM.js +11 -0
- package/dist/{useTheme-DhYab2-0.js → useTheme-BrFhq4dW.js} +1 -1
- package/dist/useTheme-DfN3sBzg.cjs +1 -0
- package/dist/{useTheme-vN32oV1t.cjs → useTheme-w4BoR6ol.cjs} +1 -1
- package/dist/{useThemeProps-5hp2m3Xl.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
- package/dist/{useThemeProps-D_gKWuk1.cjs → useThemeProps-CkGODfms.cjs} +1 -1
- package/dist/{useThemeProps-Bmkt_XOR.js → useThemeProps-CwWORfXn.js} +4 -4
- package/dist/{useThemeProps-DftpgVZ0.js → useThemeProps-cERu5xHk.js} +3 -3
- package/dist/{useTimeout-Bx22KOcH.js → useTimeout-Br8oWWYt.js} +4 -4
- package/dist/{useTimeout-gEG15bRo.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
- package/dist/utils-CH0HZgJe.js +391 -0
- package/dist/utils-D2bhwE7x.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-CxHwPsCX.js +0 -789
- package/dist/Backdrop-ZCTs-Ws8.cjs +0 -1
- package/dist/ButtonBase-S0mFlojL.cjs +0 -75
- package/dist/DatePicker-BigDV0IN.cjs +0 -17
- package/dist/DatePicker-ZdjLD9eR.js +0 -12779
- package/dist/IconButton-DfmbM9nO.cjs +0 -2
- package/dist/InputAdornment-C-EbfNtT.cjs +0 -1
- package/dist/InputBase-CPtGhJye.cjs +0 -3
- package/dist/Tabs-DzrxYlm-.cjs +0 -4
- package/dist/TextField-BLEvZwPH.cjs +0 -14
- package/dist/TextField-CGMPbx_J.js +0 -5686
- package/dist/Tooltip-BJefPCe7.cjs +0 -100
- package/dist/components/Alert/Alert.stories.cjs.js +0 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -4
- package/dist/components/Alert/Alert.stories.es.js +0 -17
- package/dist/components/Button/Button.stories.cjs.js +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -6
- package/dist/components/Button/Button.stories.es.js +0 -45
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -4
- package/dist/components/DatePicker/DatePicker.stories.es.js +0 -16
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -4
- package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -4
- package/dist/components/EmptyState/EmptyState.stories.es.js +0 -17
- package/dist/components/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/FileList/FileList.stories.d.ts +0 -4
- package/dist/components/FileList/FileList.stories.es.js +0 -28
- package/dist/components/Heading/Heading.stories.cjs.js +0 -1
- package/dist/components/Heading/Heading.stories.d.ts +0 -4
- package/dist/components/Heading/Heading.stories.es.js +0 -22
- package/dist/components/IconButton.stories.cjs.js +0 -1
- package/dist/components/IconButton.stories.d.ts +0 -4
- package/dist/components/Loader/Loader.stories.cjs.js +0 -1
- package/dist/components/Loader/Loader.stories.d.ts +0 -4
- package/dist/components/Loader/Loader.stories.es.js +0 -14
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -4
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +0 -14
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -4
- package/dist/components/PasswordInput/PasswordInput.stories.es.js +0 -16
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -4
- package/dist/components/SearchInput/SearchInput.stories.es.js +0 -16
- package/dist/components/TabList.stories.cjs.js +0 -1
- package/dist/components/TabList.stories.d.ts +0 -4
- package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
- package/dist/components/TextInput/TextInput.stories.es.js +0 -43
- package/dist/index-Dl4BXU0b.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DYRsy3ld.cjs +0 -1
- package/dist/refType-DvOnKTmB.js +0 -27
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useTheme-BvsnROiB.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
|
+
};
|