@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,266 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
import { I as V, J as $, N as v, n as l, K as L, L as P, P as o } from "./identifier-BewKgEhI.js";
|
|
3
|
+
import { u as j } from "./useTheme-0u9_WhjM.js";
|
|
4
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
5
|
+
import { s as F, u as N, c as R } from "./DefaultPropsProvider-StV_SUuk.js";
|
|
6
|
+
import { m as M } from "./memoTheme-B9kDhX1-.js";
|
|
7
|
+
import { c as B } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
+
import { T as U } from "./Typography-B29dnCv3.js";
|
|
9
|
+
import { e as z } from "./elementTypeAcceptingRef-BPhL72td.js";
|
|
10
|
+
import { i as h } from "./isFocusVisible-CPZqtjv2.js";
|
|
11
|
+
function E(e) {
|
|
12
|
+
return V("MuiLink", e);
|
|
13
|
+
}
|
|
14
|
+
const H = $("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]), W = ({
|
|
15
|
+
theme: e,
|
|
16
|
+
ownerState: r
|
|
17
|
+
}) => {
|
|
18
|
+
const n = r.color, t = v(e, `palette.${n}`, !1) || r.color, s = v(e, `palette.${n}Channel`);
|
|
19
|
+
return "vars" in e && s ? `rgba(${s} / 0.4)` : l(t, 0.4);
|
|
20
|
+
}, k = {
|
|
21
|
+
primary: !0,
|
|
22
|
+
secondary: !0,
|
|
23
|
+
error: !0,
|
|
24
|
+
info: !0,
|
|
25
|
+
success: !0,
|
|
26
|
+
warning: !0,
|
|
27
|
+
textPrimary: !0,
|
|
28
|
+
textSecondary: !0,
|
|
29
|
+
textDisabled: !0
|
|
30
|
+
}, I = (e) => {
|
|
31
|
+
const {
|
|
32
|
+
classes: r,
|
|
33
|
+
component: n,
|
|
34
|
+
focusVisible: t,
|
|
35
|
+
underline: s
|
|
36
|
+
} = e, c = {
|
|
37
|
+
root: ["root", `underline${L(s)}`, n === "button" && "button", t && "focusVisible"]
|
|
38
|
+
};
|
|
39
|
+
return R(c, E, r);
|
|
40
|
+
}, J = F(U, {
|
|
41
|
+
name: "MuiLink",
|
|
42
|
+
slot: "Root",
|
|
43
|
+
overridesResolver: (e, r) => {
|
|
44
|
+
const {
|
|
45
|
+
ownerState: n
|
|
46
|
+
} = e;
|
|
47
|
+
return [r.root, r[`underline${L(n.underline)}`], n.component === "button" && r.button];
|
|
48
|
+
}
|
|
49
|
+
})(M(({
|
|
50
|
+
theme: e
|
|
51
|
+
}) => ({
|
|
52
|
+
variants: [{
|
|
53
|
+
props: {
|
|
54
|
+
underline: "none"
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
textDecoration: "none"
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
props: {
|
|
61
|
+
underline: "hover"
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
textDecoration: "none",
|
|
65
|
+
"&:hover": {
|
|
66
|
+
textDecoration: "underline"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
props: {
|
|
71
|
+
underline: "always"
|
|
72
|
+
},
|
|
73
|
+
style: {
|
|
74
|
+
textDecoration: "underline",
|
|
75
|
+
"&:hover": {
|
|
76
|
+
textDecorationColor: "inherit"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
props: ({
|
|
81
|
+
underline: r,
|
|
82
|
+
ownerState: n
|
|
83
|
+
}) => r === "always" && n.color !== "inherit",
|
|
84
|
+
style: {
|
|
85
|
+
textDecorationColor: "var(--Link-underlineColor)"
|
|
86
|
+
}
|
|
87
|
+
}, ...Object.entries(e.palette).filter(B()).map(([r]) => ({
|
|
88
|
+
props: {
|
|
89
|
+
underline: "always",
|
|
90
|
+
color: r
|
|
91
|
+
},
|
|
92
|
+
style: {
|
|
93
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette[r].mainChannel} / 0.4)` : l(e.palette[r].main, 0.4)
|
|
94
|
+
}
|
|
95
|
+
})), {
|
|
96
|
+
props: {
|
|
97
|
+
underline: "always",
|
|
98
|
+
color: "textPrimary"
|
|
99
|
+
},
|
|
100
|
+
style: {
|
|
101
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : l(e.palette.text.primary, 0.4)
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
props: {
|
|
105
|
+
underline: "always",
|
|
106
|
+
color: "textSecondary"
|
|
107
|
+
},
|
|
108
|
+
style: {
|
|
109
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.secondaryChannel} / 0.4)` : l(e.palette.text.secondary, 0.4)
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
props: {
|
|
113
|
+
underline: "always",
|
|
114
|
+
color: "textDisabled"
|
|
115
|
+
},
|
|
116
|
+
style: {
|
|
117
|
+
"--Link-underlineColor": (e.vars || e).palette.text.disabled
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
props: {
|
|
121
|
+
component: "button"
|
|
122
|
+
},
|
|
123
|
+
style: {
|
|
124
|
+
position: "relative",
|
|
125
|
+
WebkitTapHighlightColor: "transparent",
|
|
126
|
+
backgroundColor: "transparent",
|
|
127
|
+
// Reset default value
|
|
128
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
129
|
+
outline: 0,
|
|
130
|
+
border: 0,
|
|
131
|
+
margin: 0,
|
|
132
|
+
// Remove the margin in Safari
|
|
133
|
+
borderRadius: 0,
|
|
134
|
+
padding: 0,
|
|
135
|
+
// Remove the padding in Firefox
|
|
136
|
+
cursor: "pointer",
|
|
137
|
+
userSelect: "none",
|
|
138
|
+
verticalAlign: "middle",
|
|
139
|
+
MozAppearance: "none",
|
|
140
|
+
// Reset
|
|
141
|
+
WebkitAppearance: "none",
|
|
142
|
+
// Reset
|
|
143
|
+
"&::-moz-focus-inner": {
|
|
144
|
+
borderStyle: "none"
|
|
145
|
+
// Remove Firefox dotted outline.
|
|
146
|
+
},
|
|
147
|
+
[`&.${H.focusVisible}`]: {
|
|
148
|
+
outline: "auto"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}]
|
|
152
|
+
}))), K = /* @__PURE__ */ C.forwardRef(function(r, n) {
|
|
153
|
+
const t = N({
|
|
154
|
+
props: r,
|
|
155
|
+
name: "MuiLink"
|
|
156
|
+
}), s = j(), {
|
|
157
|
+
className: c,
|
|
158
|
+
color: a = "primary",
|
|
159
|
+
component: d = "a",
|
|
160
|
+
onBlur: y,
|
|
161
|
+
onFocus: f,
|
|
162
|
+
TypographyClasses: w,
|
|
163
|
+
underline: m = "always",
|
|
164
|
+
variant: b = "inherit",
|
|
165
|
+
sx: u,
|
|
166
|
+
...g
|
|
167
|
+
} = t, [T, x] = C.useState(!1), D = (i) => {
|
|
168
|
+
h(i.target) || x(!1), y && y(i);
|
|
169
|
+
}, O = (i) => {
|
|
170
|
+
h(i.target) && x(!0), f && f(i);
|
|
171
|
+
}, p = {
|
|
172
|
+
...t,
|
|
173
|
+
color: a,
|
|
174
|
+
component: d,
|
|
175
|
+
focusVisible: T,
|
|
176
|
+
underline: m,
|
|
177
|
+
variant: b
|
|
178
|
+
}, S = I(p);
|
|
179
|
+
return /* @__PURE__ */ A(J, {
|
|
180
|
+
color: a,
|
|
181
|
+
className: P(S.root, c),
|
|
182
|
+
classes: w,
|
|
183
|
+
component: d,
|
|
184
|
+
onBlur: D,
|
|
185
|
+
onFocus: O,
|
|
186
|
+
ref: n,
|
|
187
|
+
ownerState: p,
|
|
188
|
+
variant: b,
|
|
189
|
+
...g,
|
|
190
|
+
sx: [...k[a] === void 0 ? [{
|
|
191
|
+
color: a
|
|
192
|
+
}] : [], ...Array.isArray(u) ? u : [u]],
|
|
193
|
+
style: {
|
|
194
|
+
...g.style,
|
|
195
|
+
...m === "always" && a !== "inherit" && !k[a] && {
|
|
196
|
+
"--Link-underlineColor": W({
|
|
197
|
+
theme: s,
|
|
198
|
+
ownerState: p
|
|
199
|
+
})
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
205
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
206
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
207
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
208
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
209
|
+
/**
|
|
210
|
+
* The content of the component.
|
|
211
|
+
*/
|
|
212
|
+
children: o.node,
|
|
213
|
+
/**
|
|
214
|
+
* Override or extend the styles applied to the component.
|
|
215
|
+
*/
|
|
216
|
+
classes: o.object,
|
|
217
|
+
/**
|
|
218
|
+
* @ignore
|
|
219
|
+
*/
|
|
220
|
+
className: o.string,
|
|
221
|
+
/**
|
|
222
|
+
* The color of the link.
|
|
223
|
+
* @default 'primary'
|
|
224
|
+
*/
|
|
225
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), o.string]),
|
|
226
|
+
/**
|
|
227
|
+
* The component used for the root node.
|
|
228
|
+
* Either a string to use a HTML element or a component.
|
|
229
|
+
*/
|
|
230
|
+
component: z,
|
|
231
|
+
/**
|
|
232
|
+
* @ignore
|
|
233
|
+
*/
|
|
234
|
+
onBlur: o.func,
|
|
235
|
+
/**
|
|
236
|
+
* @ignore
|
|
237
|
+
*/
|
|
238
|
+
onFocus: o.func,
|
|
239
|
+
/**
|
|
240
|
+
* @ignore
|
|
241
|
+
*/
|
|
242
|
+
style: o.object,
|
|
243
|
+
/**
|
|
244
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
245
|
+
*/
|
|
246
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
247
|
+
/**
|
|
248
|
+
* `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.
|
|
249
|
+
*/
|
|
250
|
+
TypographyClasses: o.object,
|
|
251
|
+
/**
|
|
252
|
+
* Controls when the link should have an underline.
|
|
253
|
+
* @default 'always'
|
|
254
|
+
*/
|
|
255
|
+
underline: o.oneOf(["always", "hover", "none"]),
|
|
256
|
+
/**
|
|
257
|
+
* Applies the theme typography styles.
|
|
258
|
+
* @default 'inherit'
|
|
259
|
+
*/
|
|
260
|
+
variant: o.oneOfType([o.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), o.string])
|
|
261
|
+
});
|
|
262
|
+
export {
|
|
263
|
+
K as L,
|
|
264
|
+
E as g,
|
|
265
|
+
H as l
|
|
266
|
+
};
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { I as p, J as u, L as x, P as t, n as d } from "./identifier-BewKgEhI.js";
|
|
3
|
+
import { s as B, r as D, u as S, c as P } from "./DefaultPropsProvider-StV_SUuk.js";
|
|
4
|
+
import { m as E } from "./memoTheme-B9kDhX1-.js";
|
|
5
|
+
import { h as M } from "./Select-CcnCBhBN.js";
|
|
6
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
7
|
+
import { B as F } from "./ButtonBase-B0gJT_ti.js";
|
|
8
|
+
import { u as j } from "./refType-3o3c-kYx.js";
|
|
9
|
+
import { u as G } from "./useForkRef-C_4o__cU.js";
|
|
10
|
+
function ee(e) {
|
|
11
|
+
return p("MuiDivider", e);
|
|
12
|
+
}
|
|
13
|
+
const O = u("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
14
|
+
function te(e) {
|
|
15
|
+
return p("MuiListItemIcon", e);
|
|
16
|
+
}
|
|
17
|
+
const T = u("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
18
|
+
function se(e) {
|
|
19
|
+
return p("MuiListItemText", e);
|
|
20
|
+
}
|
|
21
|
+
const w = u("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
22
|
+
function h(e) {
|
|
23
|
+
return p("MuiMenuItem", e);
|
|
24
|
+
}
|
|
25
|
+
const n = u("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), H = (e, s) => {
|
|
26
|
+
const {
|
|
27
|
+
ownerState: o
|
|
28
|
+
} = e;
|
|
29
|
+
return [s.root, o.dense && s.dense, o.divider && s.divider, !o.disableGutters && s.gutters];
|
|
30
|
+
}, z = (e) => {
|
|
31
|
+
const {
|
|
32
|
+
disabled: s,
|
|
33
|
+
dense: o,
|
|
34
|
+
divider: a,
|
|
35
|
+
disableGutters: l,
|
|
36
|
+
selected: m,
|
|
37
|
+
classes: i
|
|
38
|
+
} = e, r = P({
|
|
39
|
+
root: ["root", o && "dense", s && "disabled", !l && "gutters", a && "divider", m && "selected"]
|
|
40
|
+
}, h, i);
|
|
41
|
+
return {
|
|
42
|
+
...i,
|
|
43
|
+
...r
|
|
44
|
+
};
|
|
45
|
+
}, A = B(F, {
|
|
46
|
+
shouldForwardProp: (e) => D(e) || e === "classes",
|
|
47
|
+
name: "MuiMenuItem",
|
|
48
|
+
slot: "Root",
|
|
49
|
+
overridesResolver: H
|
|
50
|
+
})(E(({
|
|
51
|
+
theme: e
|
|
52
|
+
}) => ({
|
|
53
|
+
...e.typography.body1,
|
|
54
|
+
display: "flex",
|
|
55
|
+
justifyContent: "flex-start",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
position: "relative",
|
|
58
|
+
textDecoration: "none",
|
|
59
|
+
minHeight: 48,
|
|
60
|
+
paddingTop: 6,
|
|
61
|
+
paddingBottom: 6,
|
|
62
|
+
boxSizing: "border-box",
|
|
63
|
+
whiteSpace: "nowrap",
|
|
64
|
+
"&:hover": {
|
|
65
|
+
textDecoration: "none",
|
|
66
|
+
backgroundColor: (e.vars || e).palette.action.hover,
|
|
67
|
+
// Reset on touch devices, it doesn't add specificity
|
|
68
|
+
"@media (hover: none)": {
|
|
69
|
+
backgroundColor: "transparent"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
[`&.${n.selected}`]: {
|
|
73
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
74
|
+
[`&.${n.focusVisible}`]: {
|
|
75
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
[`&.${n.selected}:hover`]: {
|
|
79
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
80
|
+
// Reset on touch devices, it doesn't add specificity
|
|
81
|
+
"@media (hover: none)": {
|
|
82
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
[`&.${n.focusVisible}`]: {
|
|
86
|
+
backgroundColor: (e.vars || e).palette.action.focus
|
|
87
|
+
},
|
|
88
|
+
[`&.${n.disabled}`]: {
|
|
89
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
90
|
+
},
|
|
91
|
+
[`& + .${O.root}`]: {
|
|
92
|
+
marginTop: e.spacing(1),
|
|
93
|
+
marginBottom: e.spacing(1)
|
|
94
|
+
},
|
|
95
|
+
[`& + .${O.inset}`]: {
|
|
96
|
+
marginLeft: 52
|
|
97
|
+
},
|
|
98
|
+
[`& .${w.root}`]: {
|
|
99
|
+
marginTop: 0,
|
|
100
|
+
marginBottom: 0
|
|
101
|
+
},
|
|
102
|
+
[`& .${w.inset}`]: {
|
|
103
|
+
paddingLeft: 36
|
|
104
|
+
},
|
|
105
|
+
[`& .${T.root}`]: {
|
|
106
|
+
minWidth: 36
|
|
107
|
+
},
|
|
108
|
+
variants: [{
|
|
109
|
+
props: ({
|
|
110
|
+
ownerState: s
|
|
111
|
+
}) => !s.disableGutters,
|
|
112
|
+
style: {
|
|
113
|
+
paddingLeft: 16,
|
|
114
|
+
paddingRight: 16
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
props: ({
|
|
118
|
+
ownerState: s
|
|
119
|
+
}) => s.divider,
|
|
120
|
+
style: {
|
|
121
|
+
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
122
|
+
backgroundClip: "padding-box"
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
props: ({
|
|
126
|
+
ownerState: s
|
|
127
|
+
}) => !s.dense,
|
|
128
|
+
style: {
|
|
129
|
+
[e.breakpoints.up("sm")]: {
|
|
130
|
+
minHeight: "auto"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
props: ({
|
|
135
|
+
ownerState: s
|
|
136
|
+
}) => s.dense,
|
|
137
|
+
style: {
|
|
138
|
+
minHeight: 32,
|
|
139
|
+
// https://m2.material.io/components/menus#specs > Dense
|
|
140
|
+
paddingTop: 4,
|
|
141
|
+
paddingBottom: 4,
|
|
142
|
+
...e.typography.body2,
|
|
143
|
+
[`& .${T.root} svg`]: {
|
|
144
|
+
fontSize: "1.25rem"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}]
|
|
148
|
+
}))), W = /* @__PURE__ */ c.forwardRef(function(s, o) {
|
|
149
|
+
const a = S({
|
|
150
|
+
props: s,
|
|
151
|
+
name: "MuiMenuItem"
|
|
152
|
+
}), {
|
|
153
|
+
autoFocus: l = !1,
|
|
154
|
+
component: m = "li",
|
|
155
|
+
dense: i = !1,
|
|
156
|
+
divider: g = !1,
|
|
157
|
+
disableGutters: r = !1,
|
|
158
|
+
focusVisibleClassName: L,
|
|
159
|
+
role: R = "menuitem",
|
|
160
|
+
tabIndex: v,
|
|
161
|
+
className: V,
|
|
162
|
+
...k
|
|
163
|
+
} = a, y = c.useContext(M), C = c.useMemo(() => ({
|
|
164
|
+
dense: i || y.dense || !1,
|
|
165
|
+
disableGutters: r
|
|
166
|
+
}), [y.dense, i, r]), f = c.useRef(null);
|
|
167
|
+
j(() => {
|
|
168
|
+
l && (f.current ? f.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
169
|
+
}, [l]);
|
|
170
|
+
const N = {
|
|
171
|
+
...a,
|
|
172
|
+
dense: C.dense,
|
|
173
|
+
divider: g,
|
|
174
|
+
disableGutters: r
|
|
175
|
+
}, b = z(a), U = G(f, o);
|
|
176
|
+
let I;
|
|
177
|
+
return a.disabled || (I = v !== void 0 ? v : -1), /* @__PURE__ */ $(M.Provider, {
|
|
178
|
+
value: C,
|
|
179
|
+
children: /* @__PURE__ */ $(A, {
|
|
180
|
+
ref: U,
|
|
181
|
+
role: R,
|
|
182
|
+
tabIndex: I,
|
|
183
|
+
component: m,
|
|
184
|
+
focusVisibleClassName: x(b.focusVisible, L),
|
|
185
|
+
className: x(b.root, V),
|
|
186
|
+
...k,
|
|
187
|
+
ownerState: N,
|
|
188
|
+
classes: b
|
|
189
|
+
})
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
193
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
194
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
195
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
196
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
197
|
+
/**
|
|
198
|
+
* If `true`, the list item is focused during the first mount.
|
|
199
|
+
* Focus will also be triggered if the value changes from false to true.
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
autoFocus: t.bool,
|
|
203
|
+
/**
|
|
204
|
+
* The content of the component.
|
|
205
|
+
*/
|
|
206
|
+
children: t.node,
|
|
207
|
+
/**
|
|
208
|
+
* Override or extend the styles applied to the component.
|
|
209
|
+
*/
|
|
210
|
+
classes: t.object,
|
|
211
|
+
/**
|
|
212
|
+
* @ignore
|
|
213
|
+
*/
|
|
214
|
+
className: t.string,
|
|
215
|
+
/**
|
|
216
|
+
* The component used for the root node.
|
|
217
|
+
* Either a string to use a HTML element or a component.
|
|
218
|
+
*/
|
|
219
|
+
component: t.elementType,
|
|
220
|
+
/**
|
|
221
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
222
|
+
* The prop defaults to the value inherited from the parent Menu component.
|
|
223
|
+
* @default false
|
|
224
|
+
*/
|
|
225
|
+
dense: t.bool,
|
|
226
|
+
/**
|
|
227
|
+
* @ignore
|
|
228
|
+
*/
|
|
229
|
+
disabled: t.bool,
|
|
230
|
+
/**
|
|
231
|
+
* If `true`, the left and right padding is removed.
|
|
232
|
+
* @default false
|
|
233
|
+
*/
|
|
234
|
+
disableGutters: t.bool,
|
|
235
|
+
/**
|
|
236
|
+
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
237
|
+
* @default false
|
|
238
|
+
*/
|
|
239
|
+
divider: t.bool,
|
|
240
|
+
/**
|
|
241
|
+
* This prop can help identify which element has keyboard focus.
|
|
242
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
243
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
244
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
245
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
246
|
+
* if needed.
|
|
247
|
+
*/
|
|
248
|
+
focusVisibleClassName: t.string,
|
|
249
|
+
/**
|
|
250
|
+
* @ignore
|
|
251
|
+
*/
|
|
252
|
+
role: t.string,
|
|
253
|
+
/**
|
|
254
|
+
* If `true`, the component is selected.
|
|
255
|
+
* @default false
|
|
256
|
+
*/
|
|
257
|
+
selected: t.bool,
|
|
258
|
+
/**
|
|
259
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
260
|
+
*/
|
|
261
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
262
|
+
/**
|
|
263
|
+
* @default 0
|
|
264
|
+
*/
|
|
265
|
+
tabIndex: t.number
|
|
266
|
+
});
|
|
267
|
+
export {
|
|
268
|
+
W as M,
|
|
269
|
+
te as a,
|
|
270
|
+
w as b,
|
|
271
|
+
se as c,
|
|
272
|
+
O as d,
|
|
273
|
+
h as e,
|
|
274
|
+
ee as g,
|
|
275
|
+
T as l,
|
|
276
|
+
n as m
|
|
277
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const D=require("react"),t=require("./identifier-DTh6b5Gz.cjs"),p=require("./DefaultPropsProvider-eVMpAUQg.cjs"),j=require("./memoTheme-DJBS0nbO.cjs"),x=require("./Select-CnFa2_je.cjs"),P=require("react/jsx-runtime"),N=require("./ButtonBase-DKxpvXo7.cjs"),S=require("./refType-DNB-r0Bp.cjs"),V=require("./useForkRef-CTI33h-3.cjs");function q(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const c=q(D);function B(e){return t.generateUtilityClass("MuiDivider",e)}const f=t.generateUtilityClasses("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function F(e){return t.generateUtilityClass("MuiListItemIcon",e)}const b=t.generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]);function h(e){return t.generateUtilityClass("MuiListItemText",e)}const m=t.generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function M(e){return t.generateUtilityClass("MuiMenuItem",e)}const a=t.generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),E=(e,s)=>{const{ownerState:o}=e;return[s.root,o.dense&&s.dense,o.divider&&s.divider,!o.disableGutters&&s.gutters]},G=e=>{const{disabled:s,dense:o,divider:i,disableGutters:l,selected:d,classes:r}=e,u={root:["root",o&&"dense",s&&"disabled",!l&&"gutters",i&&"divider",d&&"selected"]},n=p.composeClasses(u,M,r);return{...r,...n}},_=p.styled(N.ButtonBase,{shouldForwardProp:e=>p.rootShouldForwardProp(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:E})(j.memoTheme(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${a.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${a.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${a.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${a.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${a.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${f.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${f.inset}`]:{marginLeft:52},[`& .${m.root}`]:{marginTop:0,marginBottom:0},[`& .${m.inset}`]:{paddingLeft:36},[`& .${b.root}`]:{minWidth:36},variants:[{props:({ownerState:s})=>!s.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:s})=>s.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:s})=>!s.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:s})=>s.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${b.root} svg`]:{fontSize:"1.25rem"}}}]}))),O=c.forwardRef(function(s,o){const i=p.useDefaultProps({props:s,name:"MuiMenuItem"}),{autoFocus:l=!1,component:d="li",dense:r=!1,divider:u=!1,disableGutters:n=!1,focusVisibleClassName:$,role:U="menuitem",tabIndex:v,className:w,...L}=i,C=c.useContext(x.ListContext),I=c.useMemo(()=>({dense:r||C.dense||!1,disableGutters:n}),[C.dense,r,n]),y=c.useRef(null);S.useEnhancedEffect(()=>{l&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[l]);const R={...i,dense:I.dense,divider:u,disableGutters:n},g=G(i),k=V.useForkRef(y,o);let T;return i.disabled||(T=v!==void 0?v:-1),P.jsx(x.ListContext.Provider,{value:I,children:P.jsx(_,{ref:k,role:U,tabIndex:T,component:d,focusVisibleClassName:t.clsx(g.focusVisible,$),className:t.clsx(g.root,w),...L,ownerState:R,classes:g})})});process.env.NODE_ENV!=="production"&&(O.propTypes={autoFocus:t.PropTypes.bool,children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,dense:t.PropTypes.bool,disabled:t.PropTypes.bool,disableGutters:t.PropTypes.bool,divider:t.PropTypes.bool,focusVisibleClassName:t.PropTypes.string,role:t.PropTypes.string,selected:t.PropTypes.bool,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),tabIndex:t.PropTypes.number});exports.MenuItem=O;exports.dividerClasses=f;exports.getDividerUtilityClass=B;exports.getListItemIconUtilityClass=F;exports.getListItemTextUtilityClass=h;exports.getMenuItemUtilityClass=M;exports.listItemIconClasses=b;exports.listItemTextClasses=m;exports.menuItemClasses=a;
|