@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143
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-DqUdx8FP.cjs +1 -0
- package/dist/Backdrop-ZqzrnV2E.js +360 -0
- package/dist/Box-Be6jhcmK.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
- package/dist/Button-C6UXybBV.cjs +1 -0
- package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
- package/dist/ButtonBase-DzK1n18b.cjs +74 -0
- package/dist/Card-DO4cAmNC.js +74 -0
- package/dist/Card-DsmqVSx1.cjs +1 -0
- package/dist/Checkbox-Btg05OjV.cjs +1 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
- package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
- package/dist/DatePicker-BXTOQETi.cjs +14 -0
- package/dist/DatePicker-D9suyaUZ.js +10846 -0
- package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
- package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
- package/dist/Delete-CpADFuIX.cjs +1 -0
- package/dist/Delete-DWXEW4-c.js +8 -0
- package/dist/DialogContent-D_JmqJt6.js +603 -0
- package/dist/DialogContent-gRISmOoj.cjs +1 -0
- package/dist/DialogTitle-CID6RFNo.js +134 -0
- package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
- package/dist/Divider-BjxxEFnr.cjs +1 -0
- package/dist/Divider-HhF8ckeh.js +296 -0
- package/dist/FormControlLabel-0-cflTuo.js +262 -0
- package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
- package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
- package/dist/FormGroup-DIP4u-gv.js +95 -0
- package/dist/FormLabel-Ch103TK-.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
- package/dist/Grow-BgMSa0P2.js +193 -0
- package/dist/Grow-D7OAahbU.cjs +1 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
- package/dist/IconButton-DbWtCGLB.cjs +2 -0
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
- package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
- package/dist/InputBase-BuVAuMNp.cjs +3 -0
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
- package/dist/Link-AXhb0uJT.cjs +1 -0
- package/dist/Link-Bdupo_fW.js +267 -0
- package/dist/Menu-DR-xtxpt.js +966 -0
- package/dist/Menu-_chQG-Za.cjs +7 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
- package/dist/MenuItem-De6eStq9.cjs +1 -0
- package/dist/Modal-C4Jb6sd1.js +750 -0
- package/dist/Modal-GXSEk85U.cjs +2 -0
- package/dist/Paper-CH4BABUB.cjs +2 -0
- package/dist/Paper-nlWPEgQh.js +185 -0
- package/dist/Popper-CjTplNLW.cjs +4 -0
- package/dist/Popper-CkAj_qw_.js +1407 -0
- package/dist/Portal-BcFwfiTx.js +86 -0
- package/dist/Portal-BruYsISj.cjs +1 -0
- package/dist/Radio-B0v6nDvz.js +313 -0
- package/dist/Radio-BbZnB74m.cjs +1 -0
- package/dist/Select-BFGwwKap.cjs +3 -0
- package/dist/Select-D9fwtA9U.js +2604 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
- package/dist/Stack-DMNZvXss.cjs +1 -0
- package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
- package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
- package/dist/Tabs-DEvwJheI.cjs +4 -0
- package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
- package/dist/TextField-waKWSLD4.cjs +1 -0
- package/dist/Tooltip-CFyOA9CT.cjs +4 -0
- package/dist/Tooltip-tgkiC77d.js +721 -0
- package/dist/Typography-B6KFjCtE.cjs +1 -0
- package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/capitalize-DASFtB-F.cjs +1 -0
- package/dist/capitalize-NmHVRYy8.js +9 -0
- 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 +28 -27
- 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 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- 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 +21 -22
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- 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 +8 -7
- 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.d.ts +3 -0
- package/dist/components/index.es.js +276 -262
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- 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 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- 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 +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- 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/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -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/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +140 -90
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- 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/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
- package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CSD96RzX.cjs +1 -0
- package/dist/dividerClasses-DrJ5oIdP.js +9 -0
- package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
- package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
- package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
- package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
- package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
- package/dist/index-BGCIdIru.js +2152 -0
- package/dist/index-BoQHt8iN.cjs +1 -0
- package/dist/index-CRdsZkOC.cjs +17 -0
- package/dist/index-CmEzEdk2.cjs +5 -0
- package/dist/index-XYfXmNqA.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +276 -262
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
- package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
- 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/useEnhancedEffect-C9MKL5N4.cjs +1 -0
- package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useSlot-DsW0udy9.cjs +1 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
- package/dist/useSlotProps--FPRW1CI.cjs +1 -0
- package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
- package/dist/useTheme-B1YEBlI0.cjs +1 -0
- package/dist/useTheme-BXzyKigM.js +11 -0
- package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
- package/dist/useTheme-DFJNv-zn.cjs +1 -0
- package/dist/useThemeProps-BwyYDczI.cjs +1 -0
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
- package/dist/useTimeout-NIA-3R5R.cjs +1 -0
- package/dist/utils-70jLtOQP.js +391 -0
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-DlWHEABQ.cjs +1 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/Box-H49yQEt_.cjs +0 -1
- package/dist/Button-qc45QbX6.cjs +0 -1
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/Checkbox-CuYTY0gd.cjs +0 -1
- package/dist/CircularProgress-BPHINMQw.cjs +0 -28
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Stack-CEjx3KHM.cjs +0 -1
- package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/TextField-BVAkADOb.cjs +0 -1
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/Typography-5OodZ94T.cjs +0 -1
- package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
- package/dist/extendSxProp-D11-pC6h.cjs +0 -1
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/identifier-BQH88SE0.cjs +0 -59
- package/dist/index-CNv8ppur.cjs +0 -1
- package/dist/index-D7nFYLYq.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useSlot-42jgZftI.cjs +0 -1
- package/dist/useTheme-CtT7O-Wk.js +0 -11
- package/dist/useTheme-cVN-YQNB.cjs +0 -1
- package/dist/useTheme-tZYpFplW.cjs +0 -1
- package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
- package/dist/useTimeout-DWEGwfTA.cjs +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const Ie=require("react"),Pe=require("./index-CRdsZkOC.cjs"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),Y=require("./useSlotProps--FPRW1CI.cjs"),E=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),k=require("react/jsx-runtime"),ke=require("./isHostComponent-PydJW4A4.cjs"),ce=require("./useSlot-DsW0udy9.cjs"),Te=require("./Modal-GXSEk85U.cjs"),he=require("./Paper-CH4BABUB.cjs"),J=require("./ownerDocument-4MViGo3k.cjs"),Q=require("./ownerWindow-DDHucZi0.cjs"),Fe=require("./debounce-DpCj7ugL.cjs"),me=require("./useForkRef-CTI33h-3.cjs"),ge=require("./useEnhancedEffect-C9MKL5N4.cjs"),qe=require("./chainPropTypes-CEUi6Jb4.cjs"),Z=require("./Portal-BruYsISj.cjs"),Ue=require("./elementTypeAcceptingRef-Cz_FeG92.cjs"),ze=require("./Grow-D7OAahbU.cjs");function He(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const h=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,h.get?h:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const n=He(Ie),ee=n.createContext({});process.env.NODE_ENV!=="production"&&(ee.displayName="ListContext");function be(o){return e.generateUtilityClass("MuiList",o)}const Ke=e.generateUtilityClasses("MuiList",["root","padding","dense","subheader"]),_e=o=>{const{classes:t,disablePadding:r,dense:h,subheader:m}=o,f={root:["root",!r&&"padding",h&&"dense",m&&"subheader"]};return E.composeClasses(f,be,t)},Ve=E.styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:o})=>!o.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:o})=>o.subheader,style:{paddingTop:0}}]}),oe=n.forwardRef(function(t,r){const h=E.useDefaultProps({props:t,name:"MuiList"}),{children:m,className:f,component:T="ul",dense:p=!1,disablePadding:P=!1,subheader:O,...w}=h,S=n.useMemo(()=>({dense:p}),[p]),j={...h,component:T,dense:p,disablePadding:P},i=_e(j);return k.jsx(ee.Provider,{value:S,children:k.jsxs(Ve,{as:T,className:e.clsx(i.root,f),ref:r,ownerState:j,...w,children:[O,m]})})});process.env.NODE_ENV!=="production"&&(oe.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,dense:e.PropTypes.bool,disablePadding:e.PropTypes.bool,subheader:e.PropTypes.node,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});function X(o,t,r){return o===t?o.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:o.firstChild}function ue(o,t,r){return o===t?r?o.firstChild:o.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:o.lastChild}function ve(o,t){if(t===void 0)return!0;let r=o.innerText;return r===void 0&&(r=o.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function A(o,t,r,h,m,f){let T=!1,p=m(o,t,t?r:!1);for(;p;){if(p===o.firstChild){if(T)return!1;T=!0}const P=h?!1:p.disabled||p.getAttribute("aria-disabled")==="true";if(!p.hasAttribute("tabindex")||!ve(p,f)||P)p=m(o,p,r);else return p.focus(),!0}return!1}const Ee=n.forwardRef(function(t,r){const{actions:h,autoFocus:m=!1,autoFocusItem:f=!1,children:T,className:p,disabledItemsFocusable:P=!1,disableListWrap:O=!1,onKeyDown:w,variant:S="selectedMenu",...j}=t,i=n.useRef(null),g=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ge.useEnhancedEffect(()=>{m&&i.current.focus()},[m]),n.useImperativeHandle(h,()=>({adjustStyleForScrollbar:(s,{direction:a})=>{const d=!i.current.style.width;if(s.clientHeight<i.current.clientHeight&&d){const D=`${Te.getScrollbarSize(Q.ownerWindow(s))}px`;i.current.style[a==="rtl"?"paddingLeft":"paddingRight"]=D,i.current.style.width=`calc(100% + ${D})`}return i.current}}),[]);const z=s=>{const a=i.current,d=s.key;if(s.ctrlKey||s.metaKey||s.altKey){w&&w(s);return}const R=J.ownerDocument(a).activeElement;if(d==="ArrowDown")s.preventDefault(),A(a,R,O,P,X);else if(d==="ArrowUp")s.preventDefault(),A(a,R,O,P,ue);else if(d==="Home")s.preventDefault(),A(a,null,O,P,X);else if(d==="End")s.preventDefault(),A(a,null,O,P,ue);else if(d.length===1){const c=g.current,M=d.toLowerCase(),I=performance.now();c.keys.length>0&&(I-c.lastTime>500?(c.keys=[],c.repeating=!0,c.previousKeyMatched=!0):c.repeating&&M!==c.keys[0]&&(c.repeating=!1)),c.lastTime=I,c.keys.push(M);const N=R&&!c.repeating&&ve(R,c);c.previousKeyMatched&&(N||A(a,R,!1,P,X,c))?s.preventDefault():c.previousKeyMatched=!1}w&&w(s)},F=me.useForkRef(i,r);let l=-1;n.Children.forEach(T,(s,a)=>{if(!n.isValidElement(s)){l===a&&(l+=1,l>=T.length&&(l=-1));return}process.env.NODE_ENV!=="production"&&Pe.reactIsExports.isFragment(s)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
2
|
+
`)),s.props.disabled||(S==="selectedMenu"&&s.props.selected||l===-1)&&(l=a),l===a&&(s.props.disabled||s.props.muiSkipListHighlight||s.type.muiSkipListHighlight)&&(l+=1,l>=T.length&&(l=-1))});const x=n.Children.map(T,(s,a)=>{if(a===l){const d={};return f&&(d.autoFocus=!0),s.props.tabIndex===void 0&&S==="selectedMenu"&&(d.tabIndex=0),n.cloneElement(s,d)}return s});return k.jsx(oe,{role:"menu",ref:F,className:p,onKeyDown:z,tabIndex:m?0:-1,...j,children:x})});process.env.NODE_ENV!=="production"&&(Ee.propTypes={autoFocus:e.PropTypes.bool,autoFocusItem:e.PropTypes.bool,children:e.PropTypes.node,className:e.PropTypes.string,disabledItemsFocusable:e.PropTypes.bool,disableListWrap:e.PropTypes.bool,onKeyDown:e.PropTypes.func,variant:e.PropTypes.oneOf(["menu","selectedMenu"])});function Ae(o){return e.generateUtilityClass("MuiPopover",o)}e.generateUtilityClasses("MuiPopover",["root","paper"]);function fe(o,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=o.height/2:t==="bottom"&&(r=o.height),r}function de(o,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=o.width/2:t==="right"&&(r=o.width),r}function ye(o){return[o.horizontal,o.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function G(o){return typeof o=="function"?o():o}const We=o=>{const{classes:t}=o,r={root:["root"],paper:["paper"]};return E.composeClasses(r,Ae,t)},Be=E.styled(Te.Modal,{name:"MuiPopover",slot:"Root",overridesResolver:(o,t)=>t.root})({}),Oe=E.styled(he.Paper,{name:"MuiPopover",slot:"Paper",overridesResolver:(o,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Me=n.forwardRef(function(t,r){const h=E.useDefaultProps({props:t,name:"MuiPopover"}),{action:m,anchorEl:f,anchorOrigin:T={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:P="anchorEl",children:O,className:w,container:S,elevation:j=8,marginThreshold:i=16,open:g,PaperProps:z={},slots:F={},slotProps:l={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:s=ze.Grow,transitionDuration:a="auto",TransitionProps:{onEntering:d,...D}={},disableScrollLock:R=!1,...c}=h,M=(l==null?void 0:l.paper)??z,I=n.useRef(),N={...h,anchorOrigin:T,anchorReference:P,elevation:j,marginThreshold:i,externalPaperSlotProps:M,transformOrigin:x,TransitionComponent:s,transitionDuration:a,TransitionProps:D},_=We(N),W=n.useCallback(()=>{if(P==="anchorPosition")return process.env.NODE_ENV!=="production"&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),p;const u=G(f),y=u&&u.nodeType===1?u:J.ownerDocument(I.current).body,v=y.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const U=y.getBoundingClientRect();process.env.NODE_ENV!=="test"&&U.top===0&&U.left===0&&U.right===0&&U.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
3
|
+
`))}return{top:v.top+fe(v,T.vertical),left:v.left+de(v,T.horizontal)}},[f,T.horizontal,T.vertical,p,P]),B=n.useCallback(u=>({vertical:fe(u,x.vertical),horizontal:de(u,x.horizontal)}),[x.horizontal,x.vertical]),$=n.useCallback(u=>{const y={width:u.offsetWidth,height:u.offsetHeight},v=B(y);if(P==="none")return{top:null,left:null,transformOrigin:ye(v)};const U=W();let H=U.top-v.vertical,K=U.left-v.horizontal;const ie=H+y.height,pe=K+y.width,ae=Q.ownerWindow(G(f)),V=ae.innerHeight-i,le=ae.innerWidth-i;if(i!==null&&H<i){const C=H-i;H-=C,v.vertical+=C}else if(i!==null&&ie>V){const C=ie-V;H-=C,v.vertical+=C}if(process.env.NODE_ENV!=="production"&&y.height>V&&y.height&&V&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${y.height-V}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
4
|
+
`)),i!==null&&K<i){const C=K-i;K-=C,v.horizontal+=C}else if(pe>le){const C=pe-le;K-=C,v.horizontal+=C}return{top:`${Math.round(H)}px`,left:`${Math.round(K)}px`,transformOrigin:ye(v)}},[f,P,W,B,i]),[b,q]=n.useState(g),L=n.useCallback(()=>{const u=I.current;if(!u)return;const y=$(u);y.top!==null&&u.style.setProperty("top",y.top),y.left!==null&&(u.style.left=y.left),u.style.transformOrigin=y.transformOrigin,q(!0)},[$]);n.useEffect(()=>(R&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[f,R,L]);const Ce=(u,y)=>{d&&d(u,y),L()},xe=()=>{q(!1)};n.useEffect(()=>{g&&L()}),n.useImperativeHandle(m,()=>g?{updatePosition:()=>{L()}}:null,[g,L]),n.useEffect(()=>{if(!g)return;const u=Fe.debounce(()=>{L()}),y=Q.ownerWindow(f);return y.addEventListener("resize",u),()=>{u.clear(),y.removeEventListener("resize",u)}},[f,g,L]);let te=a;a==="auto"&&!s.muiSupportAuto&&(te=void 0);const De=S||(f?J.ownerDocument(G(f)).body:void 0),re={slots:F,slotProps:{...l,paper:M}},[Ne,se]=ce.useSlot("paper",{elementType:Oe,externalForwardedProps:re,additionalProps:{elevation:j,className:e.clsx(_.paper,M==null?void 0:M.className),style:b?M.style:{...M.style,opacity:0}},ownerState:N}),[ne,{slotProps:Se,...je}]=ce.useSlot("root",{elementType:Be,externalForwardedProps:re,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:De,open:g},ownerState:N,className:e.clsx(_.root,w)}),Le=me.useForkRef(I,se.ref);return k.jsx(ne,{...je,...!ke.isHostComponent(ne)&&{slotProps:Se,disableScrollLock:R},...c,ref:r,children:k.jsx(s,{appear:!0,in:g,onEntering:Ce,onExited:xe,timeout:te,...D,children:k.jsx(Ne,{...se,ref:Le,children:O})})})});process.env.NODE_ENV!=="production"&&(Me.propTypes={action:ge.refType,anchorEl:qe.chainPropTypes(e.PropTypes.oneOfType([Z.HTMLElementType,e.PropTypes.func]),o=>{if(o.open&&(!o.anchorReference||o.anchorReference==="anchorEl")){const t=G(o.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
5
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
6
|
+
`))}return null}),anchorOrigin:e.PropTypes.shape({horizontal:e.PropTypes.oneOfType([e.PropTypes.oneOf(["center","left","right"]),e.PropTypes.number]).isRequired,vertical:e.PropTypes.oneOfType([e.PropTypes.oneOf(["bottom","center","top"]),e.PropTypes.number]).isRequired}),anchorPosition:e.PropTypes.shape({left:e.PropTypes.number.isRequired,top:e.PropTypes.number.isRequired}),anchorReference:e.PropTypes.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,container:e.PropTypes.oneOfType([Z.HTMLElementType,e.PropTypes.func]),disableScrollLock:e.PropTypes.bool,elevation:he.integerPropType,marginThreshold:e.PropTypes.number,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperProps:e.PropTypes.shape({component:Ue.elementTypeAcceptingRef}),slotProps:e.PropTypes.shape({paper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({paper:e.PropTypes.elementType,root:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),transformOrigin:e.PropTypes.shape({horizontal:e.PropTypes.oneOfType([e.PropTypes.oneOf(["center","left","right"]),e.PropTypes.number]).isRequired,vertical:e.PropTypes.oneOfType([e.PropTypes.oneOf(["bottom","center","top"]),e.PropTypes.number]).isRequired}),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});function we(o){return e.generateUtilityClass("MuiMenu",o)}const $e=e.generateUtilityClasses("MuiMenu",["root","paper","list"]),Ge={vertical:"top",horizontal:"right"},Ye={vertical:"top",horizontal:"left"},Xe=o=>{const{classes:t}=o,r={root:["root"],paper:["paper"],list:["list"]};return E.composeClasses(r,we,t)},Je=E.styled(Me,{shouldForwardProp:o=>E.rootShouldForwardProp(o)||o==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(o,t)=>t.root})({}),Qe=E.styled(Oe,{name:"MuiMenu",slot:"Paper",overridesResolver:(o,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ze=E.styled(Ee,{name:"MuiMenu",slot:"List",overridesResolver:(o,t)=>t.list})({outline:0}),Re=n.forwardRef(function(t,r){const h=E.useDefaultProps({props:t,name:"MuiMenu"}),{autoFocus:m=!0,children:f,className:T,disableAutoFocusItem:p=!1,MenuListProps:P={},onClose:O,open:w,PaperProps:S={},PopoverClasses:j,transitionDuration:i="auto",TransitionProps:{onEntering:g,...z}={},variant:F="selectedMenu",slots:l={},slotProps:x={},...s}=h,a=Y.useRtl(),d={...h,autoFocus:m,disableAutoFocusItem:p,MenuListProps:P,onEntering:g,PaperProps:S,transitionDuration:i,TransitionProps:z,variant:F},D=Xe(d),R=m&&!p&&w,c=n.useRef(null),M=(b,q)=>{c.current&&c.current.adjustStyleForScrollbar(b,{direction:a?"rtl":"ltr"}),g&&g(b,q)},I=b=>{b.key==="Tab"&&(b.preventDefault(),O&&O(b,"tabKeyDown"))};let N=-1;n.Children.map(f,(b,q)=>{n.isValidElement(b)&&(process.env.NODE_ENV!=="production"&&Pe.reactIsExports.isFragment(b)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
7
|
+
`)),b.props.disabled||(F==="selectedMenu"&&b.props.selected||N===-1)&&(N=q))});const _=l.paper??Qe,W=x.paper??S,B=Y.useSlotProps({elementType:l.root,externalSlotProps:x.root,ownerState:d,className:[D.root,T]}),$=Y.useSlotProps({elementType:_,externalSlotProps:W,ownerState:d,className:D.paper});return k.jsx(Je,{onClose:O,anchorOrigin:{vertical:"bottom",horizontal:a?"right":"left"},transformOrigin:a?Ge:Ye,slots:{paper:_,root:l.root},slotProps:{root:B,paper:$},open:w,ref:r,transitionDuration:i,TransitionProps:{onEntering:M,...z},ownerState:d,...s,classes:j,children:k.jsx(Ze,{onKeyDown:I,actions:c,autoFocus:m&&(N===-1||p),autoFocusItem:R,variant:F,...P,className:e.clsx(D.list,P.className),children:f})})});process.env.NODE_ENV!=="production"&&(Re.propTypes={anchorEl:e.PropTypes.oneOfType([Z.HTMLElementType,e.PropTypes.func]),autoFocus:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableAutoFocusItem:e.PropTypes.bool,MenuListProps:e.PropTypes.object,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperProps:e.PropTypes.object,PopoverClasses:e.PropTypes.object,slotProps:e.PropTypes.shape({paper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({paper:e.PropTypes.elementType,root:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),transitionDuration:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object,variant:e.PropTypes.oneOf(["menu","selectedMenu"])});exports.List=oe;exports.ListContext=ee;exports.Menu=Re;exports.getListUtilityClass=be;exports.getMenuUtilityClass=we;exports.listClasses=Ke;exports.menuClasses=$e;
|
|
@@ -1,53 +1,50 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
4
|
-
import { m as
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { B as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
|
|
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"]);
|
|
2
|
+
import { H as b, I as f, G as x, P as t, n as d } from "./generateUtilityClasses--6MLb_cS.js";
|
|
3
|
+
import { s as S, r as U, u as P, c as E } from "./DefaultPropsProvider-DUWovK-8.js";
|
|
4
|
+
import { m as F } from "./memoTheme-o8RCKrNG.js";
|
|
5
|
+
import { b as $ } from "./Menu-DR-xtxpt.js";
|
|
6
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
7
|
+
import { B as G } from "./ButtonBase-CYkLbJ0U.js";
|
|
8
|
+
import { u as j } from "./useEnhancedEffect-DlS7O_-p.js";
|
|
9
|
+
import { u as D } from "./useForkRef-C_4o__cU.js";
|
|
10
|
+
import { d as O } from "./dividerClasses-DrJ5oIdP.js";
|
|
14
11
|
function te(e) {
|
|
15
|
-
return
|
|
12
|
+
return b("MuiListItemIcon", e);
|
|
16
13
|
}
|
|
17
|
-
const T =
|
|
14
|
+
const T = f("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
18
15
|
function se(e) {
|
|
19
|
-
return
|
|
16
|
+
return b("MuiListItemText", e);
|
|
20
17
|
}
|
|
21
|
-
const
|
|
18
|
+
const k = f("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
22
19
|
function H(e) {
|
|
23
|
-
return
|
|
20
|
+
return b("MuiMenuItem", e);
|
|
24
21
|
}
|
|
25
|
-
const
|
|
22
|
+
const i = f("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), z = (e, s) => {
|
|
26
23
|
const {
|
|
27
24
|
ownerState: o
|
|
28
25
|
} = e;
|
|
29
26
|
return [s.root, o.dense && s.dense, o.divider && s.divider, !o.disableGutters && s.gutters];
|
|
30
|
-
},
|
|
27
|
+
}, _ = (e) => {
|
|
31
28
|
const {
|
|
32
29
|
disabled: s,
|
|
33
30
|
dense: o,
|
|
34
31
|
divider: a,
|
|
35
32
|
disableGutters: l,
|
|
36
|
-
selected:
|
|
37
|
-
classes:
|
|
38
|
-
} = e, r =
|
|
39
|
-
root: ["root", o && "dense", s && "disabled", !l && "gutters", a && "divider",
|
|
40
|
-
}, H,
|
|
33
|
+
selected: p,
|
|
34
|
+
classes: n
|
|
35
|
+
} = e, r = E({
|
|
36
|
+
root: ["root", o && "dense", s && "disabled", !l && "gutters", a && "divider", p && "selected"]
|
|
37
|
+
}, H, n);
|
|
41
38
|
return {
|
|
42
|
-
...
|
|
39
|
+
...n,
|
|
43
40
|
...r
|
|
44
41
|
};
|
|
45
|
-
},
|
|
46
|
-
shouldForwardProp: (e) =>
|
|
42
|
+
}, W = S(G, {
|
|
43
|
+
shouldForwardProp: (e) => U(e) || e === "classes",
|
|
47
44
|
name: "MuiMenuItem",
|
|
48
45
|
slot: "Root",
|
|
49
|
-
overridesResolver:
|
|
50
|
-
})(
|
|
46
|
+
overridesResolver: z
|
|
47
|
+
})(F(({
|
|
51
48
|
theme: e
|
|
52
49
|
}) => ({
|
|
53
50
|
...e.typography.body1,
|
|
@@ -69,23 +66,23 @@ const n = u("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
69
66
|
backgroundColor: "transparent"
|
|
70
67
|
}
|
|
71
68
|
},
|
|
72
|
-
[`&.${
|
|
69
|
+
[`&.${i.selected}`]: {
|
|
73
70
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
74
|
-
[`&.${
|
|
71
|
+
[`&.${i.focusVisible}`]: {
|
|
75
72
|
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
73
|
}
|
|
77
74
|
},
|
|
78
|
-
[`&.${
|
|
75
|
+
[`&.${i.selected}:hover`]: {
|
|
79
76
|
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
77
|
// Reset on touch devices, it doesn't add specificity
|
|
81
78
|
"@media (hover: none)": {
|
|
82
79
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
83
80
|
}
|
|
84
81
|
},
|
|
85
|
-
[`&.${
|
|
82
|
+
[`&.${i.focusVisible}`]: {
|
|
86
83
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
87
84
|
},
|
|
88
|
-
[`&.${
|
|
85
|
+
[`&.${i.disabled}`]: {
|
|
89
86
|
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
90
87
|
},
|
|
91
88
|
[`& + .${O.root}`]: {
|
|
@@ -95,11 +92,11 @@ const n = u("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
95
92
|
[`& + .${O.inset}`]: {
|
|
96
93
|
marginLeft: 52
|
|
97
94
|
},
|
|
98
|
-
[`& .${
|
|
95
|
+
[`& .${k.root}`]: {
|
|
99
96
|
marginTop: 0,
|
|
100
97
|
marginBottom: 0
|
|
101
98
|
},
|
|
102
|
-
[`& .${
|
|
99
|
+
[`& .${k.inset}`]: {
|
|
103
100
|
paddingLeft: 36
|
|
104
101
|
},
|
|
105
102
|
[`& .${T.root}`]: {
|
|
@@ -145,51 +142,51 @@ const n = u("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
145
142
|
}
|
|
146
143
|
}
|
|
147
144
|
}]
|
|
148
|
-
}))),
|
|
149
|
-
const a =
|
|
145
|
+
}))), q = /* @__PURE__ */ c.forwardRef(function(s, o) {
|
|
146
|
+
const a = P({
|
|
150
147
|
props: s,
|
|
151
148
|
name: "MuiMenuItem"
|
|
152
149
|
}), {
|
|
153
150
|
autoFocus: l = !1,
|
|
154
|
-
component:
|
|
155
|
-
dense:
|
|
151
|
+
component: p = "li",
|
|
152
|
+
dense: n = !1,
|
|
156
153
|
divider: g = !1,
|
|
157
154
|
disableGutters: r = !1,
|
|
158
155
|
focusVisibleClassName: L,
|
|
159
|
-
role:
|
|
160
|
-
tabIndex:
|
|
161
|
-
className:
|
|
162
|
-
...
|
|
163
|
-
} = a,
|
|
164
|
-
dense:
|
|
156
|
+
role: N = "menuitem",
|
|
157
|
+
tabIndex: y,
|
|
158
|
+
className: R,
|
|
159
|
+
...w
|
|
160
|
+
} = a, v = c.useContext($), I = c.useMemo(() => ({
|
|
161
|
+
dense: n || v.dense || !1,
|
|
165
162
|
disableGutters: r
|
|
166
|
-
}), [
|
|
167
|
-
|
|
168
|
-
l && (
|
|
163
|
+
}), [v.dense, n, r]), u = c.useRef(null);
|
|
164
|
+
j(() => {
|
|
165
|
+
l && (u.current ? u.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
169
166
|
}, [l]);
|
|
170
|
-
const
|
|
167
|
+
const V = {
|
|
171
168
|
...a,
|
|
172
|
-
dense:
|
|
169
|
+
dense: I.dense,
|
|
173
170
|
divider: g,
|
|
174
171
|
disableGutters: r
|
|
175
|
-
},
|
|
176
|
-
let
|
|
177
|
-
return a.disabled || (
|
|
178
|
-
value:
|
|
179
|
-
children: /* @__PURE__ */
|
|
180
|
-
ref:
|
|
181
|
-
role:
|
|
182
|
-
tabIndex:
|
|
183
|
-
component:
|
|
184
|
-
focusVisibleClassName: x(
|
|
185
|
-
className: x(
|
|
186
|
-
...
|
|
187
|
-
ownerState:
|
|
188
|
-
classes:
|
|
172
|
+
}, m = _(a), B = D(u, o);
|
|
173
|
+
let C;
|
|
174
|
+
return a.disabled || (C = y !== void 0 ? y : -1), /* @__PURE__ */ M($.Provider, {
|
|
175
|
+
value: I,
|
|
176
|
+
children: /* @__PURE__ */ M(W, {
|
|
177
|
+
ref: B,
|
|
178
|
+
role: N,
|
|
179
|
+
tabIndex: C,
|
|
180
|
+
component: p,
|
|
181
|
+
focusVisibleClassName: x(m.focusVisible, L),
|
|
182
|
+
className: x(m.root, R),
|
|
183
|
+
...w,
|
|
184
|
+
ownerState: V,
|
|
185
|
+
classes: m
|
|
189
186
|
})
|
|
190
187
|
});
|
|
191
188
|
});
|
|
192
|
-
process.env.NODE_ENV !== "production" && (
|
|
189
|
+
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
193
190
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
194
191
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
195
192
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -265,13 +262,11 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
|
265
262
|
tabIndex: t.number
|
|
266
263
|
});
|
|
267
264
|
export {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
H as e,
|
|
274
|
-
ee as g,
|
|
265
|
+
q as M,
|
|
266
|
+
k as a,
|
|
267
|
+
se as b,
|
|
268
|
+
H as c,
|
|
269
|
+
te as g,
|
|
275
270
|
T as l,
|
|
276
|
-
|
|
271
|
+
i as m
|
|
277
272
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const N=require("react"),t=require("./generateUtilityClasses-DEQ18TAF.cjs"),p=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),q=require("./memoTheme-D99chbOP.cjs"),T=require("./Menu-_chQG-Za.cjs"),x=require("react/jsx-runtime"),w=require("./ButtonBase-DzK1n18b.cjs"),S=require("./useEnhancedEffect-C9MKL5N4.cjs"),B=require("./useForkRef-CTI33h-3.cjs"),P=require("./dividerClasses-CSD96RzX.cjs");function V(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const c=V(N);function D(e){return t.generateUtilityClass("MuiListItemIcon",e)}const f=t.generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]);function E(e){return t.generateUtilityClass("MuiListItemText",e)}const g=t.generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function M(e){return t.generateUtilityClass("MuiMenuItem",e)}const r=t.generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),F=(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:a,disableGutters:l,selected:d,classes:n}=e,u={root:["root",o&&"dense",s&&"disabled",!l&&"gutters",a&&"divider",d&&"selected"]},i=p.composeClasses(u,M,n);return{...n,...i}},_=p.styled(w.ButtonBase,{shouldForwardProp:e=>p.rootShouldForwardProp(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:F})(q.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"}},[`&.${r.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),[`&.${r.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)}},[`&.${r.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)}},[`&.${r.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${r.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${P.dividerClasses.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${P.dividerClasses.inset}`]:{marginLeft:52},[`& .${g.root}`]:{marginTop:0,marginBottom:0},[`& .${g.inset}`]:{paddingLeft:36},[`& .${f.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,[`& .${f.root} svg`]:{fontSize:"1.25rem"}}}]}))),O=c.forwardRef(function(s,o){const a=p.useDefaultProps({props:s,name:"MuiMenuItem"}),{autoFocus:l=!1,component:d="li",dense:n=!1,divider:u=!1,disableGutters:i=!1,focusVisibleClassName:$,role:U="menuitem",tabIndex:m,className:L,...R}=a,v=c.useContext(T.ListContext),C=c.useMemo(()=>({dense:n||v.dense||!1,disableGutters:i}),[v.dense,n,i]),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 k={...a,dense:C.dense,divider:u,disableGutters:i},b=G(a),j=B.useForkRef(y,o);let I;return a.disabled||(I=m!==void 0?m:-1),x.jsx(T.ListContext.Provider,{value:C,children:x.jsx(_,{ref:j,role:U,tabIndex:I,component:d,focusVisibleClassName:t.clsx(b.focusVisible,$),className:t.clsx(b.root,L),...R,ownerState:k,classes:b})})});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.getListItemIconUtilityClass=D;exports.getListItemTextUtilityClass=E;exports.getMenuItemUtilityClass=M;exports.listItemIconClasses=f;exports.listItemTextClasses=g;exports.menuItemClasses=r;
|