@cgi-learning-hub/ui 1.3.2 → 1.3.3
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-KAJqifAq.cjs +1 -0
- package/dist/{Backdrop-CxHwPsCX.js → Backdrop-RBPtVAPX.js} +220 -265
- package/dist/{Box-D61CmHcZ.cjs → Box-H49yQEt_.cjs} +1 -1
- package/dist/{Box-a6v7fn61.js → Box-UE-zctbJ.js} +3 -3
- package/dist/{Button-B8Vr_qVd.js → Button-Bjy0iPNm.js} +4 -4
- package/dist/{Button-elp97nQ8.cjs → Button-qc45QbX6.cjs} +1 -1
- package/dist/{ButtonBase-Y5TK5SRu.js → ButtonBase-CFD7NVUc.js} +21 -21
- package/dist/{ButtonBase-S0mFlojL.cjs → ButtonBase-UEHzzfUL.cjs} +1 -1
- package/dist/Checkbox-Ct5E_6h7.js +241 -0
- package/dist/Checkbox-CuYTY0gd.cjs +1 -0
- package/dist/{CircularProgress-DDIZxeFH.cjs → CircularProgress-BPHINMQw.cjs} +1 -1
- package/dist/{CircularProgress-DU3DJQfF.js → CircularProgress-By02Sdoh.js} +3 -3
- package/dist/{DatePicker-BigDV0IN.cjs → DatePicker-rhgpaD-r.cjs} +15 -15
- package/dist/{DatePicker-ZdjLD9eR.js → DatePicker-u4rtXGeo.js} +974 -962
- package/dist/{DefaultPropsProvider-eEVEiLDf.cjs → DefaultPropsProvider-BrX6iuA3.cjs} +1 -1
- package/dist/{DefaultPropsProvider-7QnSWHxy.js → DefaultPropsProvider-CaRoy5OV.js} +24 -24
- package/dist/FormGroup-BBYEQB4C.cjs +1 -0
- package/dist/FormGroup-BVtE8Mrv.js +348 -0
- package/dist/FormLabel-B4QlkhhB.js +424 -0
- package/dist/FormLabel-D8jYibc1.cjs +2 -0
- package/dist/{IconButton-C7H_G1LX.js → IconButton-Av8eJ5IG.js} +4 -4
- package/dist/{IconButton-DfmbM9nO.cjs → IconButton-CVyLtjcH.cjs} +1 -1
- package/dist/InputAdornment-BJfpEQAa.cjs +1 -0
- package/dist/{InputAdornment-CPJFY_m_.js → InputAdornment-COPtZlSD.js} +5 -5
- package/dist/{InputBase-5GB2c2J6.js → InputBase-Bbgoz8GV.js} +186 -210
- package/dist/InputBase-Ctmib7Br.cjs +3 -0
- package/dist/MenuItem-D7HWYhF3.js +277 -0
- package/dist/MenuItem-Els-vJZW.cjs +1 -0
- package/dist/{TextField-CGMPbx_J.js → Select-BlPQngVF.js} +1458 -2424
- package/dist/Select-ipcMZ4iK.cjs +11 -0
- package/dist/{Stack-656bqKiW.cjs → Stack-CEjx3KHM.cjs} +1 -1
- package/dist/{Stack-CutIWKkG.js → Stack-y1PjTHKX.js} +18 -18
- package/dist/SwitchBase-URM3X3YZ.cjs +1 -0
- package/dist/SwitchBase-yCuH0Tqk.js +261 -0
- package/dist/{Tabs-CKic46Op.js → Tabs-DK4Bc5xo.js} +10 -10
- package/dist/{Tabs-DzrxYlm-.cjs → Tabs-Nvk94RTW.cjs} +1 -1
- package/dist/TextField-BVAkADOb.cjs +1 -0
- package/dist/TextField-C-B529_r.js +547 -0
- package/dist/{Tooltip-DqLAZimE.js → Tooltip-DO9GIhWC.js} +1783 -2859
- package/dist/Tooltip-DvPL2M0E.cjs +100 -0
- package/dist/{Typography-CreZW2v6.cjs → Typography-5OodZ94T.cjs} +1 -1
- package/dist/{Typography-DsJC595c.js → Typography-C_ESP41L.js} +4 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +5 -5
- 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 +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- 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 +267 -262
- 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/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/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/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/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 +434 -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} +43 -50
- 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/{createSvgIcon-Ae1vF9Lv.js → createSvgIcon-DxbvMQd7.js} +3 -3
- package/dist/{createSvgIcon-PXjVOXDY.cjs → createSvgIcon-GU7fqNnI.cjs} +1 -1
- package/dist/{extendSxProp-DLhbnNxc.cjs → extendSxProp-D11-pC6h.cjs} +1 -1
- package/dist/{extendSxProp-BzTGWWcy.js → extendSxProp-XQwkK0m7.js} +1 -1
- package/dist/formControlState-DCkDUdfO.cjs +1 -0
- package/dist/formControlState-DdQP43Uo.js +21 -0
- package/dist/{fr-B0c4Eu-I.js → fr-B8_MxRl5.js} +1 -1
- package/dist/{fr-BtINyNRC.cjs → fr-Nvp7C-vS.cjs} +1 -1
- package/dist/{identifier-B_IiMbpZ.cjs → identifier-BQH88SE0.cjs} +1 -1
- package/dist/{identifier-Bu3vgTzE.js → identifier-BqadgaK7.js} +5 -5
- package/dist/{index-DNmEgr4X.js → index-BUxqDIr9.js} +4 -4
- package/dist/{index-BDy6VH40.cjs → index-CNv8ppur.cjs} +1 -1
- package/dist/{index-D4YvqRSh.js → index-CRT92bm7.js} +2 -2
- package/dist/index-D7nFYLYq.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +267 -262
- package/dist/{memoTheme-DvW891YJ.cjs → memoTheme-B6o2KVgJ.cjs} +1 -1
- package/dist/{memoTheme-C4_nd-x4.js → memoTheme-DfGVDRrB.js} +1 -1
- package/dist/{refType-DvOnKTmB.js → refType-DlHf9HvO.js} +1 -1
- package/dist/{refType-DYRsy3ld.cjs → refType-Do7KaOvv.cjs} +1 -1
- package/dist/{useTheme-B_3HWqyi.js → resolveComponentProps-CxJ2yAJn.js} +18 -26
- package/dist/resolveComponentProps-DTv6xPbb.cjs +1 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-42jgZftI.cjs +1 -0
- package/dist/useSlot-Co14PUn6.js +50 -0
- package/dist/useTheme-CtT7O-Wk.js +11 -0
- package/dist/{useTheme-vN32oV1t.cjs → useTheme-cVN-YQNB.cjs} +1 -1
- package/dist/{useTheme-DhYab2-0.js → useTheme-oM_SFWy4.js} +1 -1
- package/dist/useTheme-tZYpFplW.cjs +1 -0
- package/dist/{useThemeProps-Bmkt_XOR.js → useThemeProps-BlQ3SLfB.js} +4 -4
- package/dist/{useThemeProps-DftpgVZ0.js → useThemeProps-FiA8ivG-.js} +3 -3
- package/dist/{useThemeProps-D_gKWuk1.cjs → useThemeProps-HLq2mDKk.cjs} +1 -1
- package/dist/{useThemeProps-5hp2m3Xl.cjs → useThemeProps-r0DnR8FJ.cjs} +1 -1
- package/dist/{useTimeout-Bx22KOcH.js → useTimeout-D16vpBhn.js} +1 -1
- package/dist/{useTimeout-gEG15bRo.cjs → useTimeout-DWEGwfTA.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Backdrop-ZCTs-Ws8.cjs +0 -1
- package/dist/InputAdornment-C-EbfNtT.cjs +0 -1
- package/dist/InputBase-CPtGhJye.cjs +0 -3
- package/dist/TextField-BLEvZwPH.cjs +0 -14
- 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/useTheme-BvsnROiB.cjs +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const je=require("react"),e=require("./identifier-BQH88SE0.cjs"),de=require("./formControlState-DCkDUdfO.cjs"),fe=require("./useFormControl-haP0iPhl.cjs"),Me=require("./index-CNv8ppur.cjs"),he=require("./memoTheme-B6o2KVgJ.cjs"),w=require("react/jsx-runtime"),V=require("./DefaultPropsProvider-BrX6iuA3.cjs"),Te=require("./useForkRef-D81w5oMb.cjs"),B=require("./refType-Do7KaOvv.cjs"),ee=require("./ownerWindow-Dk_4aaak.cjs");function He(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}return n.default=o,Object.freeze(n)}const l=He(je);function q(o){return parseInt(o,10)||0}const We={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function De(o){return o==null||Object.keys(o).length===0||o.outerHeightStyle===0&&!o.overflowing}const be=l.forwardRef(function(n,t){const{onChange:a,maxRows:f,minRows:c=1,style:R,value:O,...j}=n,{current:v}=l.useRef(O!=null),m=l.useRef(null),E=Te.useForkRef(t,m),h=l.useRef(null),x=l.useRef(null),P=l.useCallback(()=>{const p=m.current,r=ee.ownerWindow(p).getComputedStyle(p);if(r.width==="0px")return{outerHeightStyle:0,overflowing:!1};const d=x.current;d.style.width=r.width,d.value=p.value||n.placeholder||"x",d.value.slice(-1)===`
|
|
2
|
+
`&&(d.value+=" ");const I=r.boxSizing,S=q(r.paddingBottom)+q(r.paddingTop),b=q(r.borderBottomWidth)+q(r.borderTopWidth),F=d.scrollHeight;d.value="x";const N=d.scrollHeight;let u=F;c&&(u=Math.max(Number(c)*N,u)),f&&(u=Math.min(Number(f)*N,u)),u=Math.max(u,N);const M=u+(I==="border-box"?S+b:0),H=Math.abs(u-F)<=1;return{outerHeightStyle:M,overflowing:H}},[f,c,n.placeholder]),C=l.useCallback(()=>{const p=P();if(De(p))return;const T=p.outerHeightStyle,r=m.current;h.current!==T&&(h.current=T,r.style.height=`${T}px`),r.style.overflow=p.overflowing?"hidden":""},[P]);B.useEnhancedEffect(()=>{const p=()=>{C()};let T;const r=()=>{cancelAnimationFrame(T),T=requestAnimationFrame(()=>{p()})},d=ee.debounce(p),I=m.current,S=ee.ownerWindow(I);S.addEventListener("resize",d);let b;return typeof ResizeObserver<"u"&&(b=new ResizeObserver(process.env.NODE_ENV==="test"?r:p),b.observe(I)),()=>{d.clear(),cancelAnimationFrame(T),S.removeEventListener("resize",d),b&&b.disconnect()}},[P,C]),B.useEnhancedEffect(()=>{C()});const U=p=>{v||C(),a&&a(p)};return w.jsxs(l.Fragment,{children:[w.jsx("textarea",{value:O,onChange:U,ref:E,rows:c,style:R,...j}),w.jsx("textarea",{"aria-hidden":!0,className:n.className,readOnly:!0,ref:x,tabIndex:-1,style:{...We.shadow,...R,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(be.propTypes={className:e.PropTypes.string,maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),onChange:e.PropTypes.func,placeholder:e.PropTypes.string,style:e.PropTypes.object,value:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.number,e.PropTypes.string])});function oe(o){return typeof o=="string"}function qe(o){return e.generateUtilityClass("MuiInputBase",o)}const L=e.generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ye;const ge=(o,n)=>{const{ownerState:t}=o;return[n.root,t.formControl&&n.formControl,t.startAdornment&&n.adornedStart,t.endAdornment&&n.adornedEnd,t.error&&n.error,t.size==="small"&&n.sizeSmall,t.multiline&&n.multiline,t.color&&n[`color${e.capitalize(t.color)}`],t.fullWidth&&n.fullWidth,t.hiddenLabel&&n.hiddenLabel]},Pe=(o,n)=>{const{ownerState:t}=o;return[n.input,t.size==="small"&&n.inputSizeSmall,t.multiline&&n.inputMultiline,t.type==="search"&&n.inputTypeSearch,t.startAdornment&&n.inputAdornedStart,t.endAdornment&&n.inputAdornedEnd,t.hiddenLabel&&n.inputHiddenLabel]},Le=o=>{const{classes:n,color:t,disabled:a,error:f,endAdornment:c,focused:R,formControl:O,fullWidth:j,hiddenLabel:v,multiline:m,readOnly:E,size:h,startAdornment:x,type:P}=o,C={root:["root",`color${e.capitalize(t)}`,a&&"disabled",f&&"error",j&&"fullWidth",R&&"focused",O&&"formControl",h&&h!=="medium"&&`size${e.capitalize(h)}`,m&&"multiline",x&&"adornedStart",c&&"adornedEnd",v&&"hiddenLabel",E&&"readOnly"],input:["input",a&&"disabled",P==="search"&&"inputTypeSearch",m&&"inputMultiline",h==="small"&&"inputSizeSmall",v&&"inputHiddenLabel",x&&"inputAdornedStart",c&&"inputAdornedEnd",E&&"readOnly"]};return V.composeClasses(C,qe,n)},we=V.styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ge})(he.memoTheme(({theme:o})=>({...o.typography.body1,color:(o.vars||o).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${L.disabled}`]:{color:(o.vars||o).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:n})=>n.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:n,size:t})=>n.multiline&&t==="small",style:{paddingTop:1}},{props:({ownerState:n})=>n.fullWidth,style:{width:"100%"}}]}))),ve=V.styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pe})(he.memoTheme(({theme:o})=>{const n=o.palette.mode==="light",t={color:"currentColor",...o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},transition:o.transitions.create("opacity",{duration:o.transitions.duration.shorter})},a={opacity:"0 !important"},f=o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":t,"&::-moz-placeholder":t,"&::-ms-input-placeholder":t,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${L.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":f,"&:focus::-moz-placeholder":f,"&:focus::-ms-input-placeholder":f},[`&.${L.disabled}`]:{opacity:1,WebkitTextFillColor:(o.vars||o).palette.text.disabled},variants:[{props:({ownerState:c})=>!c.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:c})=>c.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),me=Me.globalCss({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xe=l.forwardRef(function(n,t){const a=V.useDefaultProps({props:n,name:"MuiInputBase"}),{"aria-describedby":f,autoComplete:c,autoFocus:R,className:O,color:j,components:v={},componentsProps:m={},defaultValue:E,disabled:h,disableInjectingGlobalStyles:x,endAdornment:P,error:C,fullWidth:U=!1,id:p,inputComponent:T="input",inputProps:r={},inputRef:d,margin:I,maxRows:S,minRows:b,multiline:F=!1,name:N,onBlur:u,onChange:M,onClick:H,onFocus:ne,onKeyDown:Ce,onKeyUp:Se,placeholder:Re,readOnly:_,renderSuffix:te,rows:W,size:Ve,slotProps:re={},slots:se={},startAdornment:k,type:ie="text",value:Oe,...Ee}=a,D=r.value!=null?r.value:Oe,{current:$}=l.useRef(D!=null),z=l.useRef(),ze=l.useCallback(s=>{process.env.NODE_ENV!=="production"&&s&&s.nodeName!=="INPUT"&&!s.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
3
|
+
`))},[]),Ie=Te.useForkRef(z,d,r.ref,ze),[K,G]=l.useState(!1),i=fe.useFormControl();process.env.NODE_ENV!=="production"&&l.useEffect(()=>{if(i)return i.registerEffect()},[i]);const y=de.formControlState({props:a,muiFormControl:i,states:["color","disabled","error","hiddenLabel","size","required","filled"]});y.focused=i?i.focused:K,l.useEffect(()=>{!i&&h&&K&&(G(!1),u&&u())},[i,h,K,u]);const Y=i&&i.onFilled,Z=i&&i.onEmpty,A=l.useCallback(s=>{de.isFilled(s)?Y&&Y():Z&&Z()},[Y,Z]);B.useEnhancedEffect(()=>{$&&A({value:D})},[D,A,$]);const Fe=s=>{ne&&ne(s),r.onFocus&&r.onFocus(s),i&&i.onFocus?i.onFocus(s):G(!0)},Ne=s=>{u&&u(s),r.onBlur&&r.onBlur(s),i&&i.onBlur?i.onBlur(s):G(!1)},ke=(s,...ue)=>{if(!$){const ce=s.target||z.current;if(ce==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":e.formatMuiErrorMessage(1));A({value:ce.value})}r.onChange&&r.onChange(s,...ue),M&&M(s,...ue)};l.useEffect(()=>{A(z.current)},[]);const Ae=s=>{z.current&&s.currentTarget===s.target&&z.current.focus(),H&&H(s)};let J=T,g=r;F&&J==="input"&&(W?(process.env.NODE_ENV!=="production"&&(b||S)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),g={type:void 0,minRows:W,maxRows:W,...g}):g={type:void 0,maxRows:S,minRows:b,...g},J=be);const Be=s=>{A(s.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};l.useEffect(()=>{i&&i.setAdornedStart(!!k)},[i,k]);const Q={...a,color:y.color||"primary",disabled:y.disabled,endAdornment:P,error:y.error,focused:y.focused,formControl:i,fullWidth:U,hiddenLabel:y.hiddenLabel,multiline:F,size:y.size,startAdornment:k,type:ie},le=Le(Q),ae=se.root||v.Root||we,X=re.root||m.root||{},pe=se.input||v.Input||ve;return g={...g,...re.input??m.input},w.jsxs(l.Fragment,{children:[!x&&typeof me=="function"&&(ye||(ye=w.jsx(me,{}))),w.jsxs(ae,{...X,ref:t,onClick:Ae,...Ee,...!oe(ae)&&{ownerState:{...Q,...X.ownerState}},className:e.clsx(le.root,X.className,O,_&&"MuiInputBase-readOnly"),children:[k,w.jsx(fe.FormControlContext.Provider,{value:null,children:w.jsx(pe,{"aria-invalid":y.error,"aria-describedby":f,autoComplete:c,autoFocus:R,defaultValue:E,disabled:y.disabled,id:p,onAnimationStart:Be,name:N,placeholder:Re,readOnly:_,required:y.required,rows:W,value:D,onKeyDown:Ce,onKeyUp:Se,type:ie,...g,...!oe(pe)&&{as:J,ownerState:{...Q,...g.ownerState}},ref:Ie,className:e.clsx(le.input,g.className,_&&"MuiInputBase-readOnly"),onBlur:Ne,onChange:ke,onFocus:Fe})}),P,te?te({...y,startAdornment:k}):null]})]})});process.env.NODE_ENV!=="production"&&(xe.propTypes={"aria-describedby":e.PropTypes.string,autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({Input:e.PropTypes.elementType,Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,disableInjectingGlobalStyles:e.PropTypes.bool,endAdornment:e.PropTypes.node,error:e.PropTypes.bool,fullWidth:e.PropTypes.bool,id:e.PropTypes.string,inputComponent:B.elementTypeAcceptingRef,inputProps:e.PropTypes.object,inputRef:B.refType,margin:e.PropTypes.oneOf(["dense","none"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,onInvalid:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,placeholder:e.PropTypes.string,readOnly:e.PropTypes.bool,renderSuffix:e.PropTypes.func,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),startAdornment: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]),type:e.PropTypes.string,value:e.PropTypes.any});exports.InputBase=xe;exports.InputBaseInput=ve;exports.InputBaseRoot=we;exports.inputBaseClasses=L;exports.inputOverridesResolver=Pe;exports.isHostComponent=oe;exports.rootOverridesResolver=ge;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { I as p, J as u, K as x, P as t, n as d } from "./identifier-BqadgaK7.js";
|
|
3
|
+
import { s as B, r as D, u as S, c as P } from "./DefaultPropsProvider-CaRoy5OV.js";
|
|
4
|
+
import { m as j } from "./memoTheme-DfGVDRrB.js";
|
|
5
|
+
import { j as M } from "./Select-BlPQngVF.js";
|
|
6
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
7
|
+
import { B as E } from "./ButtonBase-CFD7NVUc.js";
|
|
8
|
+
import { u as F } from "./refType-DlHf9HvO.js";
|
|
9
|
+
import { u as G } from "./useForkRef-D-DyzOXj.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(E, {
|
|
46
|
+
shouldForwardProp: (e) => D(e) || e === "classes",
|
|
47
|
+
name: "MuiMenuItem",
|
|
48
|
+
slot: "Root",
|
|
49
|
+
overridesResolver: h
|
|
50
|
+
})(j(({
|
|
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
|
+
F(() => {
|
|
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-BQH88SE0.cjs"),p=require("./DefaultPropsProvider-BrX6iuA3.cjs"),j=require("./memoTheme-B6o2KVgJ.cjs"),x=require("./Select-ipcMZ4iK.cjs"),P=require("react/jsx-runtime"),N=require("./ButtonBase-UEHzzfUL.cjs"),S=require("./refType-Do7KaOvv.cjs"),V=require("./useForkRef-D81w5oMb.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;
|