@cgi-learning-hub/ui 1.3.3-dev.1732021842 → 1.3.3-dev.1732274173
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-DcJf9G30.js +359 -0
- package/dist/Backdrop-cE8nccLi.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-D9cHa8GX.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-Y_dUbq3W.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-Cx05eP88.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-TBA8S65S.cjs} +1 -1
- package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-z74SMnd9.js} +232 -240
- package/dist/Card-DBGYwd3H.cjs +1 -0
- package/dist/Card-mAtxoJ0p.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-Bmz9nh6k.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-OTMaikud.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-B5osG37N.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
- package/dist/DatePicker-Ds7y4pei.js +10815 -0
- package/dist/DatePicker-MSoGmJoG.cjs +14 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-BYFwNPLt.js} +31 -31
- package/dist/{DefaultPropsProvider-BrX6iuA3.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
- package/dist/DialogContent-B_NH_if8.js +602 -0
- package/dist/DialogContent-C0L4r0-p.cjs +1 -0
- package/dist/DialogTitle-Bx7712Li.js +134 -0
- package/dist/DialogTitle-DemSKN6H.cjs +1 -0
- package/dist/Divider-CMuvurmv.js +296 -0
- package/dist/Divider-DlN3YfOR.cjs +1 -0
- package/dist/FormControlLabel-BDXTL5Eo.js +261 -0
- package/dist/FormControlLabel-D8GTkxJD.cjs +1 -0
- package/dist/FormGroup-CFDapyxc.cjs +1 -0
- package/dist/FormGroup-DO8m1X6w.js +95 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-B11aqT37.js} +36 -42
- package/dist/FormLabel-DcUS1c1d.cjs +2 -0
- package/dist/Grow-BKrOFfC1.js +193 -0
- package/dist/Grow-C_nN9VuE.cjs +1 -0
- package/dist/IconButton-5LMERRPL.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DLcGpM1F.js} +5 -5
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-BrvfHlzv.js} +4 -4
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-DgT008NI.cjs} +1 -1
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CHytwRH8.js} +59 -59
- package/dist/InputBase-qhWgXXNd.cjs +3 -0
- package/dist/Link-6UH3Aljp.cjs +1 -0
- package/dist/Link-D_0FIsgB.js +266 -0
- package/dist/Menu-0Hr9Yx9l.cjs +7 -0
- package/dist/Menu-ysG9uY3e.js +965 -0
- package/dist/MenuItem-BP7OsPVc.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-DYrKaYOk.js} +69 -74
- package/dist/Modal-BLMnkdGb.cjs +2 -0
- package/dist/Modal-DT240BJZ.js +750 -0
- package/dist/Paper-n4KgM09K.cjs +2 -0
- package/dist/Paper-vlsh8Nca.js +185 -0
- package/dist/Popper-BSaTZXvX.js +1407 -0
- package/dist/Popper-DzQZEFYT.cjs +4 -0
- package/dist/Portal-C4QgaMKl.cjs +1 -0
- package/dist/Portal-meM40OhI.js +86 -0
- package/dist/Radio-CW4v1BS4.js +312 -0
- package/dist/Radio-D-wbZ6M-.cjs +1 -0
- package/dist/Select-CKsf044t.js +2602 -0
- package/dist/Select-DAHsfas2.cjs +3 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-DbWQHN5i.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-elRjtOGk.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DBnju71w.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-DWfUIgEW.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-ByZJO-zF.js} +2447 -3849
- package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BqJSX1la.js} +284 -282
- package/dist/Tabs-CUpcnsPl.cjs +4 -0
- package/dist/{TextField-BVAkADOb.cjs → TextField-C23FnJYk.cjs} +1 -1
- package/dist/{TextField-C-B529_r.js → TextField-DVUnQAd7.js} +24 -24
- package/dist/Tooltip-41rGxwva.js +697 -0
- package/dist/Tooltip-CPAH20AZ.cjs +4 -0
- package/dist/{Typography-C_ESP41L.js → Typography-CizHc1nM.js} +4 -4
- package/dist/{Typography-5OodZ94T.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 +12 -12
- 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 +282 -272
- 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 +33 -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 +378 -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 +2 -2
- 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 +8 -8
- 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-BS0Qe85N.js} +3 -3
- package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-Bp7otbbC.js +9 -0
- package/dist/dividerClasses-O0vIU6On.cjs +1 -0
- package/dist/elementTypeAcceptingRef-DOFWAguJ.js +23 -0
- package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-BpXLpaGL.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/{fr-Nvp7C-vS.cjs → fr-CSCQhSqi.cjs} +1 -1
- package/dist/{fr-B8_MxRl5.js → fr-Djc-bU-B.js} +23 -23
- package/dist/{identifier-BqadgaK7.js → identifier-B7MO0PvI.js} +490 -489
- package/dist/{identifier-BQH88SE0.cjs → identifier-DTh6b5Gz.cjs} +17 -17
- package/dist/{index-CNv8ppur.cjs → index-B_acx8gh.cjs} +1 -1
- package/dist/{index-BUxqDIr9.js → index-CKZgd5LP.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-oINGa1MV.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-yb8koCDz.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +282 -272
- 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-DfGVDRrB.js → memoTheme-CqfvfBST.js} +1 -1
- package/dist/{memoTheme-B6o2KVgJ.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-BqQbA6de.js +7 -0
- package/dist/refType-DNB-r0Bp.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-CYk57pLv.js} +1 -1
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-R_l8gy3y.cjs} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-BSVkAc2J.js} +2 -2
- package/dist/{useSlot-42jgZftI.cjs → useSlot-i7AZwCRV.cjs} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-CzzAEESs.js} +3 -3
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-DfN3sBzg.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-DrsmidxY.js} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-w4BoR6ol.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-B9UyPpzT.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-BFeVem33.js} +2 -2
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-CkGODfms.cjs} +1 -1
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-Znm_nF2D.js} +4 -4
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-D2bhwE7x.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-jA5a7WHN.js +391 -0
- package/package.json +1 -1
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- 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/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/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- 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/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const N=require("react"),t=require("./identifier-DTh6b5Gz.cjs"),p=require("./DefaultPropsProvider-eVMpAUQg.cjs"),q=require("./memoTheme-DJBS0nbO.cjs"),T=require("./Menu-0Hr9Yx9l.cjs"),x=require("react/jsx-runtime"),w=require("./ButtonBase-DKxpvXo7.cjs"),S=require("./refType-DNB-r0Bp.cjs"),B=require("./useForkRef-CTI33h-3.cjs"),P=require("./dividerClasses-O0vIU6On.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 F(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 r=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: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:E})(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},[`& .${m.root}`]:{marginTop:0,marginBottom:0},[`& .${m.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:g,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=g!==void 0?g:-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=F;exports.getMenuItemUtilityClass=M;exports.listItemIconClasses=f;exports.listItemTextClasses=m;exports.menuItemClasses=r;
|
|
@@ -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 "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { s as S, r as U, u as P, c as E } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
4
|
+
import { m as F } from "./memoTheme-CqfvfBST.js";
|
|
5
|
+
import { b as $ } from "./Menu-ysG9uY3e.js";
|
|
6
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
7
|
+
import { B as G } from "./ButtonBase-z74SMnd9.js";
|
|
8
|
+
import { u as j } from "./refType-BqQbA6de.js";
|
|
9
|
+
import { u as D } from "./useForkRef-C_4o__cU.js";
|
|
10
|
+
import { d as O } from "./dividerClasses-Bp7otbbC.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,2 @@
|
|
|
1
|
+
"use strict";const ye=require("react"),t=require("./identifier-DTh6b5Gz.cjs"),me=require("./memoTheme-DJBS0nbO.cjs"),V=require("./ownerWindow-DDHucZi0.cjs"),D=require("./ownerDocument-4MViGo3k.cjs"),Y=require("./useForkRef-CTI33h-3.cjs"),te=require("./useTimeout-DnTtyB2y.cjs"),he=require("./resolveComponentProps-R_l8gy3y.cjs"),ne=require("./createChainedFunction-CJmlQuW8.cjs"),re=require("./useSlot-i7AZwCRV.cjs"),M=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-eVMpAUQg.cjs"),Pe=require("./Backdrop-cE8nccLi.cjs"),G=require("./Portal-C4QgaMKl.cjs"),X=require("./utils-D2bhwE7x.cjs");function ge(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const u=ge(ye);function ce(e=window){const o=e.document.documentElement.clientWidth;return e.innerWidth-o}function Ee(e){const o=D.ownerDocument(e);return o.body===e?V.ownerWindow(e).innerWidth>o.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function L(e,o){o?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function se(e){return parseInt(V.ownerWindow(e).getComputedStyle(e).paddingRight,10)||0}function Re(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function ie(e,o,r,n,i){const s=[o,r,...n];[].forEach.call(e.children,c=>{const a=!s.includes(c),b=!Re(c);a&&b&&L(c,i)})}function H(e,o){let r=-1;return e.some((n,i)=>o(n)?(r=i,!0):!1),r}function xe(e,o){const r=[],n=e.container;if(!o.disableScrollLock){if(Ee(n)){const c=ce(V.ownerWindow(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${se(n)+c}px`;const a=D.ownerDocument(n).querySelectorAll(".mui-fixed");[].forEach.call(a,b=>{r.push({value:b.style.paddingRight,property:"padding-right",el:b}),b.style.paddingRight=`${se(b)+c}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=D.ownerDocument(n).body;else{const c=n.parentElement,a=V.ownerWindow(n);s=(c==null?void 0:c.nodeName)==="HTML"&&a.getComputedStyle(c).overflowY==="scroll"?c:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:a})=>{s?c.style.setProperty(a,s):c.style.removeProperty(a)})}}function ke(e){const o=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&o.push(r)}),o}class ve{constructor(){this.modals=[],this.containers=[]}add(o,r){let n=this.modals.indexOf(o);if(n!==-1)return n;n=this.modals.length,this.modals.push(o),o.modalRef&&L(o.modalRef,!1);const i=ke(r);ie(r,o.mount,o.modalRef,i,!0);const s=H(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(o),n):(this.containers.push({modals:[o],container:r,restore:null,hiddenSiblings:i}),n)}mount(o,r){const n=H(this.containers,s=>s.modals.includes(o)),i=this.containers[n];i.restore||(i.restore=xe(i,r))}remove(o,r=!0){const n=this.modals.indexOf(o);if(n===-1)return n;const i=H(this.containers,c=>c.modals.includes(o)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(o),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),o.modalRef&&L(o.modalRef,r),ie(s.container,o.mount,o.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&L(c.modalRef,!1)}return n}isTopModal(o){return this.modals.length>0&&this.modals[this.modals.length-1]===o}}const we=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ne(e){const o=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(o)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:o}function Ie(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const o=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=o(`[name="${e.name}"]:checked`);return r||(r=o(`[name="${e.name}"]`)),r!==e}function Se(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ie(e))}function Fe(e){const o=[],r=[];return Array.from(e.querySelectorAll(we)).forEach((n,i)=>{const s=Ne(n);s===-1||!Se(n)||(s===0?o.push(n):r.push({documentOrder:i,tabIndex:s,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(o)}function Ce(){return!0}function K(e){const{children:o,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:s=Fe,isEnabled:c=Ce,open:a}=e,b=u.useRef(!1),h=u.useRef(null),x=u.useRef(null),y=u.useRef(null),g=u.useRef(null),T=u.useRef(!1),f=u.useRef(null),A=Y.useForkRef(X.getReactElementRef(o),f),N=u.useRef(null);u.useEffect(()=>{!a||!f.current||(T.current=!r)},[r,a]),u.useEffect(()=>{if(!a||!f.current)return;const l=D.ownerDocument(f.current);return f.current.contains(l.activeElement)||(f.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
2
|
+
`)),f.current.setAttribute("tabIndex","-1")),T.current&&f.current.focus()),()=>{i||(y.current&&y.current.focus&&(b.current=!0,y.current.focus()),y.current=null)}},[a]),u.useEffect(()=>{if(!a||!f.current)return;const l=D.ownerDocument(f.current),m=P=>{N.current=P,!(n||!c()||P.key!=="Tab")&&l.activeElement===f.current&&P.shiftKey&&(b.current=!0,x.current&&x.current.focus())},k=()=>{var v,C;const P=f.current;if(P===null)return;if(!l.hasFocus()||!c()||b.current){b.current=!1;return}if(P.contains(l.activeElement)||n&&l.activeElement!==h.current&&l.activeElement!==x.current)return;if(l.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!T.current)return;let S=[];if((l.activeElement===h.current||l.activeElement===x.current)&&(S=s(f.current)),S.length>0){const j=!!((v=N.current)!=null&&v.shiftKey&&((C=N.current)==null?void 0:C.key)==="Tab"),q=S[0],U=S[S.length-1];typeof q!="string"&&typeof U!="string"&&(j?U.focus():q.focus())}else P.focus()};l.addEventListener("focusin",k),l.addEventListener("keydown",m,!0);const F=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(F),l.removeEventListener("focusin",k),l.removeEventListener("keydown",m,!0)}},[r,n,i,c,a,s]);const I=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0,g.current=l.target;const m=o.props.onFocus;m&&m(l)},E=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0};return M.jsxs(u.Fragment,{children:[M.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:h,"data-testid":"sentinelStart"}),u.cloneElement(o,{ref:A,onFocus:I}),M.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:x,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(K.propTypes={children:X.elementAcceptingRef,disableAutoFocus:t.PropTypes.bool,disableEnforceFocus:t.PropTypes.bool,disableRestoreFocus:t.PropTypes.bool,getTabbable:t.PropTypes.func,isEnabled:t.PropTypes.func,open:t.PropTypes.bool.isRequired});process.env.NODE_ENV!=="production"&&(K.propTypes=G.exactProp(K.propTypes));function Oe(e){return typeof e=="function"?e():e}function Me(e){return e?e.props.hasOwnProperty("in"):!1}const _=new ve;function Ae(e){const{container:o,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:c,children:a,onClose:b,open:h,rootRef:x}=e,y=u.useRef({}),g=u.useRef(null),T=u.useRef(null),f=Y.useForkRef(T,x),[A,N]=u.useState(!h),I=Me(a);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const l=()=>D.ownerDocument(g.current),m=()=>(y.current.modalRef=T.current,y.current.mount=g.current,y.current),k=()=>{_.mount(m(),{disableScrollLock:n}),T.current&&(T.current.scrollTop=0)},F=te.useEventCallback(()=>{const d=Oe(o)||l().body;_.add(m(),d),T.current&&k()}),P=()=>_.isTopModal(m()),S=te.useEventCallback(d=>{g.current=d,d&&(h&&P()?k():T.current&&L(T.current,E))}),v=u.useCallback(()=>{_.remove(m(),E)},[E]);u.useEffect(()=>()=>{v()},[v]),u.useEffect(()=>{h?F():(!I||!i)&&v()},[h,v,I,i,F]);const C=d=>p=>{var R;(R=d.onKeyDown)==null||R.call(d,p),!(p.key!=="Escape"||p.which===229||!P())&&(r||(p.stopPropagation(),b&&b(p,"escapeKeyDown")))},j=d=>p=>{var R;(R=d.onClick)==null||R.call(d,p),p.target===p.currentTarget&&b&&b(p,"backdropClick")};return{getRootProps:(d={})=>{const p=he.extractEventHandlers(e);delete p.onTransitionEnter,delete p.onTransitionExited;const R={...p,...d};return{role:"presentation",...R,onKeyDown:C(R),ref:f}},getBackdropProps:(d={})=>{const p=d;return{"aria-hidden":!0,...p,onClick:j(p),open:h}},getTransitionProps:()=>{const d=()=>{N(!1),s&&s()},p=()=>{N(!0),c&&c(),i&&v()};return{onEnter:ne.createChainedFunction(d,a==null?void 0:a.props.onEnter),onExited:ne.createChainedFunction(p,a==null?void 0:a.props.onExited)}},rootRef:f,portalRef:S,isTopModal:P,exited:A,hasTransition:I}}function De(e){return t.generateUtilityClass("MuiModal",e)}t.generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const je=e=>{const{open:o,exited:r,classes:n}=e,i={root:["root",!o&&r&&"hidden"],backdrop:["backdrop"]};return $.composeClasses(i,De,n)},qe=$.styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,!r.open&&r.exited&&o.hidden]}})(me.memoTheme(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:o})=>!o.open&&o.exited,style:{visibility:"hidden"}}]}))),Be=$.styled(Pe.Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,o)=>o.backdrop})({zIndex:-1}),ae=u.forwardRef(function(o,r){const n=$.useDefaultProps({name:"MuiModal",props:o}),{BackdropComponent:i=Be,BackdropProps:s,classes:c,className:a,closeAfterTransition:b=!1,children:h,container:x,component:y,components:g={},componentsProps:T={},disableAutoFocus:f=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:N=!1,disablePortal:I=!1,disableRestoreFocus:E=!1,disableScrollLock:l=!1,hideBackdrop:m=!1,keepMounted:k=!1,onBackdropClick:F,onClose:P,onTransitionEnter:S,onTransitionExited:v,open:C,slotProps:j={},slots:q={},theme:U,...J}=n,d={...n,closeAfterTransition:b,disableAutoFocus:f,disableEnforceFocus:A,disableEscapeKeyDown:N,disablePortal:I,disableRestoreFocus:E,disableScrollLock:l,hideBackdrop:m,keepMounted:k},{getRootProps:p,getBackdropProps:R,getTransitionProps:le,portalRef:ue,isTopModal:de,exited:Q,hasTransition:Z}=Ae({...d,rootRef:r}),B={...d,exited:Q},w=je(B),W={};if(h.props.tabIndex===void 0&&(W.tabIndex="-1"),Z){const{onEnter:O,onExited:z}=le();W.onEnter=O,W.onExited=z}const ee={...J,slots:{root:g.Root,backdrop:g.Backdrop,...q},slotProps:{...T,...j}},[pe,fe]=re.useSlot("root",{elementType:qe,externalForwardedProps:ee,getSlotProps:p,additionalProps:{ref:r,as:y},ownerState:B,className:t.clsx(a,w==null?void 0:w.root,!B.open&&B.exited&&(w==null?void 0:w.hidden))}),[be,oe]=re.useSlot("backdrop",{elementType:i,externalForwardedProps:ee,additionalProps:s,getSlotProps:O=>R({...O,onClick:z=>{F&&F(z),O!=null&&O.onClick&&O.onClick(z)}}),className:t.clsx(s==null?void 0:s.className,w==null?void 0:w.backdrop),ownerState:B}),Te=Y.useForkRef(s==null?void 0:s.ref,oe.ref);return!k&&!C&&(!Z||Q)?null:M.jsx(G.Portal,{ref:ue,container:x,disablePortal:I,children:M.jsxs(pe,{...fe,children:[!m&&i?M.jsx(be,{...oe,ref:Te}):null,M.jsx(K,{disableEnforceFocus:A,disableAutoFocus:f,disableRestoreFocus:E,isEnabled:de,open:C,children:u.cloneElement(h,W)})]})})});process.env.NODE_ENV!=="production"&&(ae.propTypes={BackdropComponent:t.PropTypes.elementType,BackdropProps:t.PropTypes.object,children:X.elementAcceptingRef.isRequired,classes:t.PropTypes.object,className:t.PropTypes.string,closeAfterTransition:t.PropTypes.bool,component:t.PropTypes.elementType,components:t.PropTypes.shape({Backdrop:t.PropTypes.elementType,Root:t.PropTypes.elementType}),componentsProps:t.PropTypes.shape({backdrop:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),container:t.PropTypes.oneOfType([G.HTMLElementType,t.PropTypes.func]),disableAutoFocus:t.PropTypes.bool,disableEnforceFocus:t.PropTypes.bool,disableEscapeKeyDown:t.PropTypes.bool,disablePortal:t.PropTypes.bool,disableRestoreFocus:t.PropTypes.bool,disableScrollLock:t.PropTypes.bool,hideBackdrop:t.PropTypes.bool,keepMounted:t.PropTypes.bool,onBackdropClick:t.PropTypes.func,onClose:t.PropTypes.func,onTransitionEnter:t.PropTypes.func,onTransitionExited:t.PropTypes.func,open:t.PropTypes.bool.isRequired,slotProps:t.PropTypes.shape({backdrop:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),slots:t.PropTypes.shape({backdrop:t.PropTypes.elementType,root:t.PropTypes.elementType}),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])});exports.FocusTrap=K;exports.Modal=ae;exports.getScrollbarSize=ce;
|