@cgi-learning-hub/ui 1.3.5-dev.1736340751 → 1.3.5-dev.1736345385
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-DcDd6WZF.js → Backdrop-B78NPr0F.js} +70 -73
- package/dist/Backdrop-CGpJR5Hl.cjs +1 -0
- package/dist/{Box-Byz2BwGf.js → Box-BzbXlIpa.js} +3 -3
- package/dist/Box-DjTF7J_q.cjs +1 -0
- package/dist/{Button-BnNYfQ3E.js → Button-By0vfP8J.js} +119 -153
- package/dist/Button-D3qGoavT.cjs +1 -0
- package/dist/ButtonBase-CL4z-tXi.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-ZtXnS9gg.js} +277 -277
- package/dist/{Card-AJG0TUOx.js → Card-CQBb4UMy.js} +3 -3
- package/dist/Card-DVvNw_iY.cjs +1 -0
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-CWN2YKNQ.js} +18 -19
- package/dist/Checkbox-V6OQIwlV.cjs +1 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-B8D0BpDv.js} +13 -14
- package/dist/CircularProgress-Cgy3S9U3.cjs +28 -0
- package/dist/DatePicker-BPbdIoL9.cjs +14 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-D5Rf5NAr.js} +2256 -2245
- package/dist/{DefaultPropsProvider-CvJPQJmL.js → DefaultPropsProvider-DEufUd_C.js} +21 -20
- package/dist/{DefaultPropsProvider-3KMGupjb.cjs → DefaultPropsProvider-DS3RzjuS.cjs} +3 -3
- package/dist/{Delete-D1EiKoL5.cjs → Delete-DV3Q-OXQ.cjs} +1 -1
- package/dist/{Delete-BkZN7Xu5.js → Delete-DwpFA0q9.js} +1 -1
- package/dist/Dialog-BydVKebY.cjs +1 -0
- package/dist/{Dialog-D_lS4J_M.js → Dialog-CEC-r5SR.js} +15 -16
- package/dist/DialogContent-BK2ayZAZ.cjs +1 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-CmsuCpdK.js} +3 -3
- package/dist/DialogTitle-BOT7MPXD.cjs +1 -0
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-CAsdh55l.js} +5 -5
- package/dist/{Divider-KO-E6nU8.js → Divider-D8G4fS_W.js} +4 -4
- package/dist/Divider-tJEWvRjW.cjs +1 -0
- package/dist/{FormControlLabel-BmrKQtQA.js → FormControlLabel-0Z4FgiQi.js} +12 -13
- package/dist/FormControlLabel-B3aVcND9.cjs +1 -0
- package/dist/{FormGroup-CbczEc6e.js → FormGroup-B6BQaLl5.js} +2 -2
- package/dist/FormGroup-CaIWje6a.cjs +1 -0
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-BljR05I0.js} +80 -83
- package/dist/FormLabel-cfHljFCc.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-BknJanej.js} +37 -34
- package/dist/Grow-CTl1xcRO.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-C6hPeqXq.js} +8 -9
- package/dist/IconButton-DLqUtTTS.cjs +2 -0
- package/dist/InputAdornment-C-w19sIO.cjs +1 -0
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DYe9bZdy.js} +15 -15
- package/dist/InputBase-BNmBX1sj.cjs +3 -0
- package/dist/{InputBase-BJy3wwFB.js → InputBase-bIxQpDEw.js} +23 -24
- package/dist/{Link-CoQuUM0t.js → Link-69Y2GGzK.js} +10 -11
- package/dist/Link-CbFN--su.cjs +1 -0
- package/dist/Menu-CDKB-4vE.cjs +7 -0
- package/dist/{Menu-C7tKmcAh.js → Menu-CrLJY61G.js} +26 -27
- package/dist/MenuItem-Cz_afi4Z.cjs +1 -0
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-i8U9J9Ds.js} +6 -6
- package/dist/{Modal-brWBFdK7.js → Modal-Airm8V-9.js} +82 -81
- package/dist/Modal-CAWPr5pr.cjs +2 -0
- package/dist/Paper-D7GaBTFY.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-zmG6CtmU.js} +4 -4
- package/dist/{Popper-DFZ_gRev.js → Popper-CQ0ZGqya.js} +5 -5
- package/dist/Popper-PxC5lBvF.cjs +4 -0
- package/dist/{Portal-JEwcozmp.js → Portal-BSNCqu7q.js} +34 -39
- package/dist/Portal-Cw7h9YXi.cjs +1 -0
- package/dist/Radio-D8JzkZ7R.cjs +1 -0
- package/dist/{Radio-DGhot3Cd.js → Radio-DAKlrqC8.js} +15 -16
- package/dist/{Select-DmssuG5M.js → Select-B6NmIC6a.js} +424 -416
- package/dist/Select-D3AUyBzT.cjs +3 -0
- package/dist/Stack-ChAD7MBi.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-LOzokt50.js} +60 -105
- package/dist/SwitchBase-C9eGMRmU.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CXvx1DtF.js} +22 -23
- package/dist/TableSortLabel-BJ0u2uA5.cjs +98 -0
- package/dist/{TableSortLabel-BsgRD4k4.js → TableSortLabel-C4rUHuBk.js} +1808 -1706
- package/dist/Tabs-CSXp7psk.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-DFlFghRY.js} +113 -115
- package/dist/{TextField-Cri5Gxa7.js → TextField-B9Jog6CY.js} +21 -20
- package/dist/TextField-dzDYEheV.cjs +1 -0
- package/dist/Tooltip-Dxitr7Ef.cjs +4 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-zyIjqlzt.js} +30 -31
- package/dist/Typography-Bwmxx4FZ.cjs +1 -0
- package/dist/{Typography-DBwTr_ix.js → Typography-DeEwslc2.js} +38 -39
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +103 -140
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- 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 +7 -7
- 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 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- 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 +3 -3
- 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 +31 -31
- 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 -1
- package/dist/components/stories/Card.stories.es.js +4 -4
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- 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 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +19 -20
- 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 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +6 -6
- 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 +4 -4
- 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 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-B-TuJjUa.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-DCcHNe8S.js} +40 -41
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-BIQl1sXf.js} +1 -1
- package/dist/dividerClasses-gUm5VAyT.cjs +1 -0
- package/dist/elementTypeAcceptingRef-BpVcc71P.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-C9ErcCVk.js} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-BtWdisVp.js} +1 -1
- package/dist/extendSxProp-RlEfz15o.cjs +1 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{generateUtilityClasses-Bssl7BA_.js → identifier-DuQ8Gjnk.js} +781 -811
- package/dist/identifier-wZ6XDHde.cjs +59 -0
- package/dist/{useSlotProps-B31YQlzb.js → index-Bh3yiNTb.js} +26 -26
- package/dist/{index-CwvpOCso.js → index-BrVfbiqv.js} +29 -29
- package/dist/index-BtBEUHyX.cjs +5 -0
- package/dist/{index-BCnPLuqJ.js → index-CvvRovRe.js} +4 -4
- package/dist/index-Cwbb61M9.cjs +1 -0
- package/dist/index-DGoTWEZ6.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +31 -31
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-BBurdur9.cjs} +1 -1
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-BX806g-H.js} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-Bj5oVmPL.js} +1 -1
- package/dist/refType-CqcE23ld.cjs +1 -0
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-BsjDgxuc.js} +7 -7
- package/dist/resolveComponentProps-CwoUNybl.cjs +1 -0
- package/dist/useSlot-CcIPcgkB.cjs +1 -0
- package/dist/useSlot-D3Bt2dZB.js +44 -0
- package/dist/{useTheme-_xyy-wul.js → useTheme-Btccn2RE.js} +1 -1
- package/dist/useTheme-C7xxleiU.cjs +1 -0
- package/dist/useTheme-CVDdFPAV.js +11 -0
- package/dist/useTheme-DZ8a53P0.cjs +1 -0
- package/dist/useThemeProps-BZX2pbh5.cjs +1 -0
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-DkiiJVq2.js} +2 -2
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-H1IpEt-K.cjs} +1 -1
- package/dist/{useThemeProps-CwEQ4bv2.js → useThemeProps-SHbptCB5.js} +3 -3
- package/dist/{utils-C6c4fj7D.js → utils-CAhqvD6J.js} +41 -41
- package/dist/utils-DWiPKWpw.cjs +1 -0
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Box-mP2Th61z.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/Checkbox-DYrDbdy1.cjs +0 -1
- package/dist/CircularProgress-BByrCLjv.cjs +0 -28
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/DialogContent-Dj_OjLZ6.cjs +0 -1
- package/dist/DialogTitle-BboPDaoB.cjs +0 -1
- package/dist/Divider-CcrM3lNn.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputAdornment-Cq0WhPxF.cjs +0 -1
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/MenuItem-BZ_EVaBq.cjs +0 -1
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Paper-Cr56xkCr.cjs +0 -2
- package/dist/Popper-YT5WAMV-.cjs +0 -4
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/SwitchBase-DjIY_KWB.cjs +0 -1
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/Tooltip-DhDtvULK.cjs +0 -4
- package/dist/Typography-DfRMDngd.cjs +0 -1
- package/dist/capitalize-B3GG7Wn6.cjs +0 -1
- package/dist/capitalize-CkF8kU4n.js +0 -9
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/dividerClasses-CCAY3Pnr.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +0 -1
- package/dist/extendSxProp-apyK-EBz.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-ChM1Ett8.cjs +0 -5
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/refType-CoaxQOPt.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-Cy5kyKJF.cjs +0 -1
- package/dist/useTheme-Dukx-__T.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const Ze=require("react"),e=require("./identifier-wZ6XDHde.cjs"),pe=require("./memoTheme-BBurdur9.cjs"),T=require("react/jsx-runtime"),m=require("./DefaultPropsProvider-DS3RzjuS.cjs"),Ee=require("./ButtonBase-CL4z-tXi.cjs"),eo=require("./useThemeProps-BZX2pbh5.cjs"),U=require("./index-Cwbb61M9.cjs"),oo=require("./useTheme-C7xxleiU.cjs"),to=require("./useEnhancedEffect-BQZ6dtCo.cjs"),Ie=require("./ownerWindow-DDHucZi0.cjs"),Re=require("./debounce-DpCj7ugL.cjs"),ie=require("./useEventCallback-C0-Qw3Sm.cjs"),ro=require("./refType-CqcE23ld.cjs"),Me=require("./createSvgIcon-B-TuJjUa.cjs"),no=require("./ownerDocument-4MViGo3k.cjs");function so(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(o,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return o.default=t,Object.freeze(o)}const p=so(Ze);function Oe(t){return e.generateUtilityClass("MuiTab",t)}const v=e.generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),lo=t=>{const{classes:o,textColor:s,fullWidth:i,wrapped:c,icon:d,label:b,selected:y,disabled:f}=t,S={root:["root",d&&b&&"labelIcon",`textColor${e.capitalize(s)}`,i&&"fullWidth",c&&"wrapped",y&&"selected",f&&"disabled"],icon:["iconWrapper","icon"]};return m.composeClasses(S,Oe,o)},ao=m.styled(Ee.ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.label&&s.icon&&o.labelIcon,o[`textColor${e.capitalize(s.textColor)}`],s.fullWidth&&o.fullWidth,s.wrapped&&o.wrapped,{[`& .${v.iconWrapper}`]:o.iconWrapper},{[`& .${v.icon}`]:o.icon}]}})(pe.memoTheme(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:s})=>o.icon&&o.label&&s==="top",style:{[`& > .${v.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:s})=>o.icon&&o.label&&s==="bottom",style:{[`& > .${v.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:s})=>o.icon&&o.label&&s==="start",style:{[`& > .${v.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:s})=>o.icon&&o.label&&s==="end",style:{[`& > .${v.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${v.selected}`]:{opacity:1},[`&.${v.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${v.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${v.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${v.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${v.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Ne=p.forwardRef(function(o,s){const i=m.useDefaultProps({props:o,name:"MuiTab"}),{className:c,disabled:d=!1,disableFocusRipple:b=!1,fullWidth:y,icon:f,iconPosition:S="top",indicator:P,label:g,onChange:h,onClick:C,onFocus:k,selected:E,selectionFollowsFocus:x,textColor:F="inherit",value:R,wrapped:re=!1,...L}=i,H={...i,disabled:d,disableFocusRipple:b,selected:E,icon:!!f,iconPosition:S,label:!!g,fullWidth:y,textColor:F,wrapped:re},q=lo(H),W=f&&g&&p.isValidElement(f)?p.cloneElement(f,{className:e.clsx(q.icon,f.props.className)}):f,K=M=>{!E&&h&&h(M,R),C&&C(M)},N=M=>{x&&!E&&h&&h(M,R),k&&k(M)};return T.jsxs(ao,{focusRipple:!b,className:e.clsx(q.root,c),ref:s,role:"tab","aria-selected":E,disabled:d,onClick:K,onFocus:N,ownerState:H,tabIndex:E?0:-1,...L,children:[S==="top"||S==="start"?T.jsxs(p.Fragment,{children:[W,g]}):T.jsxs(p.Fragment,{children:[g,W]}),P]})});process.env.NODE_ENV!=="production"&&(Ne.propTypes={children:eo.unsupportedProp,classes:e.PropTypes.object,className:e.PropTypes.string,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.oneOfType([e.PropTypes.element,e.PropTypes.string]),iconPosition:e.PropTypes.oneOf(["bottom","end","start","top"]),label:e.PropTypes.node,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,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]),value:e.PropTypes.any,wrapped:e.PropTypes.bool});const je=Me.createSvgIcon(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ke=Me.createSvgIcon(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function co(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function io(t,o,s,i={},c=()=>{}){const{ease:d=co,duration:b=300}=i;let y=null;const f=o[t];let S=!1;const P=()=>{S=!0},g=h=>{if(S){c(new Error("Animation cancelled"));return}y===null&&(y=h);const C=Math.min(1,(h-y)/b);if(o[t]=d(C)*(s-f)+f,C>=1){requestAnimationFrame(()=>{c(null)});return}requestAnimationFrame(g)};return f===s?(c(new Error("Element already at target position")),P):(requestAnimationFrame(g),P)}const po={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function We(t){const{onChange:o,...s}=t,i=p.useRef(),c=p.useRef(null),d=()=>{i.current=c.current.offsetHeight-c.current.clientHeight};return to.useEnhancedEffect(()=>{const b=Re.debounce(()=>{const f=i.current;d(),f!==i.current&&o(i.current)}),y=Ie.ownerWindow(c.current);return y.addEventListener("resize",b),()=>{b.clear(),y.removeEventListener("resize",b)}},[o]),p.useEffect(()=>{d(),o(i.current)},[o]),T.jsx("div",{style:po,...s,ref:c})}process.env.NODE_ENV!=="production"&&(We.propTypes={onChange:e.PropTypes.func.isRequired});function uo(t){return e.generateUtilityClass("MuiTabScrollButton",t)}const fo=e.generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),bo=t=>{const{classes:o,orientation:s,disabled:i}=t,c={root:["root",s,i&&"disabled"]};return m.composeClasses(c,uo,o)},yo=m.styled(Ee.ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.orientation&&o[s.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${fo.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),De=p.forwardRef(function(o,s){const i=m.useDefaultProps({props:o,name:"MuiTabScrollButton"}),{className:c,slots:d={},slotProps:b={},direction:y,orientation:f,disabled:S,...P}=i,g=U.useRtl(),h={isRtl:g,...i},C=bo(h),k=d.StartScrollButtonIcon??je,E=d.EndScrollButtonIcon??ke,x=U.useSlotProps({elementType:k,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),F=U.useSlotProps({elementType:E,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return T.jsx(yo,{component:"div",className:e.clsx(C.root,c),ref:s,role:null,ownerState:h,tabIndex:null,...P,style:{...P.style,...f==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${g?-90:90}deg)`}},children:y==="left"?T.jsx(k,{...x}):T.jsx(E,{...F})})});process.env.NODE_ENV!=="production"&&(De.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,direction:e.PropTypes.oneOf(["left","right"]).isRequired,disabled:e.PropTypes.bool,orientation:e.PropTypes.oneOf(["horizontal","vertical"]).isRequired,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon:e.PropTypes.elementType}),style:e.PropTypes.object,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 ze(t){return e.generateUtilityClass("MuiTabs",t)}const te=e.generateUtilityClasses("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),xe=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,we=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,oe=(t,o,s)=>{let i=!1,c=s(t,o);for(;c;){if(c===t.firstChild){if(i)return;i=!0}const d=c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||d)c=s(t,c);else{c.focus();return}}},To=t=>{const{vertical:o,fixed:s,hideScrollbar:i,scrollableX:c,scrollableY:d,centered:b,scrollButtonsHideMobile:y,classes:f}=t,S={root:["root",o&&"vertical"],scroller:["scroller",s&&"fixed",i&&"hideScrollbar",c&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",o&&"flexContainerVertical",b&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",y&&"scrollButtonsHideMobile"],scrollableX:[c&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]};return m.composeClasses(S,ze,f)},ho=m.styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[{[`& .${te.scrollButtons}`]:o.scrollButtons},{[`& .${te.scrollButtons}`]:s.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,s.vertical&&o.vertical]}})(pe.memoTheme(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${te.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),So=m.styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.scroller,s.fixed&&o.fixed,s.hideScrollbar&&o.hideScrollbar,s.scrollableX&&o.scrollableX,s.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),mo=m.styled("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.flexContainer,s.vertical&&o.flexContainerVertical,s.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),vo=m.styled("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,o)=>o.indicator})(pe.memoTheme(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Po=m.styled(We)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Be={};let Ce=!1;const Ae=p.forwardRef(function(o,s){const i=m.useDefaultProps({props:o,name:"MuiTabs"}),c=oo.useTheme(),d=U.useRtl(),{"aria-label":b,"aria-labelledby":y,action:f,centered:S=!1,children:P,className:g,component:h="div",allowScrollButtonsMobile:C=!1,indicatorColor:k="primary",onChange:E,orientation:x="horizontal",ScrollButtonComponent:F=De,scrollButtons:R="auto",selectionFollowsFocus:re,slots:L={},slotProps:H={},TabIndicatorProps:q={},TabScrollButtonProps:W={},textColor:K="primary",value:N,variant:M="standard",visibleScrollbar:ne=!1,...$e}=i,w=M==="scrollable",B=x==="vertical",V=B?"scrollTop":"scrollLeft",G=B?"top":"left",J=B?"bottom":"right",se=B?"clientHeight":"clientWidth",X=B?"height":"width",D={...i,component:h,allowScrollButtonsMobile:C,indicatorColor:k,orientation:x,vertical:B,scrollButtons:R,textColor:K,variant:M,visibleScrollbar:ne,fixed:!w,hideScrollbar:w&&!ne,scrollableX:w&&!B,scrollableY:w&&B,centered:S&&!w,scrollButtonsHideMobile:!C},j=To(D),Fe=U.useSlotProps({elementType:L.StartScrollButtonIcon,externalSlotProps:H.startScrollButtonIcon,ownerState:D}),Le=U.useSlotProps({elementType:L.EndScrollButtonIcon,externalSlotProps:H.endScrollButtonIcon,ownerState:D});process.env.NODE_ENV!=="production"&&S&&w&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[de,qe]=p.useState(!1),[z,ue]=p.useState(Be),[fe,Ue]=p.useState(!1),[be,He]=p.useState(!1),[ye,Ve]=p.useState(!1),[Te,Xe]=p.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,O=p.useRef(null),A=p.useRef(null),he=()=>{const r=O.current;let n;if(r){const a=r.getBoundingClientRect();n={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:r.scrollWidth,top:a.top,bottom:a.bottom,left:a.left,right:a.right}}let l;if(r&&N!==!1){const a=A.current.children;if(a.length>0){const u=a[Q.get(N)];process.env.NODE_ENV!=="production"&&(u||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${N}".`,Q.keys?`You can provide one of the following values: ${Array.from(Q.keys()).join(", ")}.`:null].join(`
|
|
2
|
+
`))),l=u?u.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Ce&&l&&l.width===0&&l.height===0&&n.clientWidth!==0&&(n=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${N}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
3
|
+
`)),Ce=!0)}}return{tabsMeta:n,tabMeta:l}},Y=ie.useEventCallback(()=>{const{tabsMeta:r,tabMeta:n}=he();let l=0,a;B?(a="top",n&&r&&(l=n.top-r.top+r.scrollTop)):(a=d?"right":"left",n&&r&&(l=(d?-1:1)*(n[a]-r[a]+r.scrollLeft)));const u={[a]:l,[X]:n?n[X]:0};if(typeof z[a]!="number"||typeof z[X]!="number")ue(u);else{const I=Math.abs(z[a]-u[a]),$=Math.abs(z[X]-u[X]);(I>=1||$>=1)&&ue(u)}}),le=(r,{animation:n=!0}={})=>{n?io(V,O.current,r,{duration:c.transitions.duration.standard}):O.current[V]=r},Se=r=>{let n=O.current[V];B?n+=r:n+=r*(d?-1:1),le(n)},me=()=>{const r=O.current[se];let n=0;const l=Array.from(A.current.children);for(let a=0;a<l.length;a+=1){const u=l[a];if(n+u[se]>r){a===0&&(n=r);break}n+=u[se]}return n},Ye=()=>{Se(-1*me())},_e=()=>{Se(me())},Ke=p.useCallback(r=>{Xe({overflow:null,scrollbarWidth:r})},[]),Ge=()=>{const r={};r.scrollbarSizeListener=w?T.jsx(Po,{onChange:Ke,className:e.clsx(j.scrollableX,j.hideScrollbar)}):null;const l=w&&(R==="auto"&&(fe||be)||R===!0);return r.scrollButtonStart=l?T.jsx(F,{slots:{StartScrollButtonIcon:L.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Fe},orientation:x,direction:d?"right":"left",onClick:Ye,disabled:!fe,...W,className:e.clsx(j.scrollButtons,W.className)}):null,r.scrollButtonEnd=l?T.jsx(F,{slots:{EndScrollButtonIcon:L.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Le},orientation:x,direction:d?"left":"right",onClick:_e,disabled:!be,...W,className:e.clsx(j.scrollButtons,W.className)}):null,r},ve=ie.useEventCallback(r=>{const{tabsMeta:n,tabMeta:l}=he();if(!(!l||!n)){if(l[G]<n[G]){const a=n[V]+(l[G]-n[G]);le(a,{animation:r})}else if(l[J]>n[J]){const a=n[V]+(l[J]-n[J]);le(a,{animation:r})}}}),Z=ie.useEventCallback(()=>{w&&R!==!1&&Ve(!ye)});p.useEffect(()=>{const r=Re.debounce(()=>{O.current&&Y()});let n;const l=I=>{I.forEach($=>{$.removedNodes.forEach(_=>{n==null||n.unobserve(_)}),$.addedNodes.forEach(_=>{n==null||n.observe(_)})}),r(),Z()},a=Ie.ownerWindow(O.current);a.addEventListener("resize",r);let u;return typeof ResizeObserver<"u"&&(n=new ResizeObserver(r),Array.from(A.current.children).forEach(I=>{n.observe(I)})),typeof MutationObserver<"u"&&(u=new MutationObserver(l),u.observe(A.current,{childList:!0})),()=>{r.clear(),a.removeEventListener("resize",r),u==null||u.disconnect(),n==null||n.disconnect()}},[Y,Z]),p.useEffect(()=>{const r=Array.from(A.current.children),n=r.length;if(typeof IntersectionObserver<"u"&&n>0&&w&&R!==!1){const l=r[0],a=r[n-1],u={root:O.current,threshold:.99},I=ce=>{Ue(!ce[0].isIntersecting)},$=new IntersectionObserver(I,u);$.observe(l);const _=ce=>{He(!ce[0].isIntersecting)},ge=new IntersectionObserver(_,u);return ge.observe(a),()=>{$.disconnect(),ge.disconnect()}}},[w,R,ye,P==null?void 0:P.length]),p.useEffect(()=>{qe(!0)},[]),p.useEffect(()=>{Y()}),p.useEffect(()=>{ve(Be!==z)},[ve,z]),p.useImperativeHandle(f,()=>({updateIndicator:Y,updateScrollButtons:Z}),[Y,Z]);const Pe=T.jsx(vo,{...q,className:e.clsx(j.indicator,q.className),ownerState:D,style:{...z,...q.style}});let ee=0;const Je=p.Children.map(P,r=>{if(!p.isValidElement(r))return null;process.env.NODE_ENV!=="production"&&m.reactIsExports.isFragment(r)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
4
|
+
`));const n=r.props.value===void 0?ee:r.props.value;Q.set(n,ee);const l=n===N;return ee+=1,p.cloneElement(r,{fullWidth:M==="fullWidth",indicator:l&&!de&&Pe,selected:l,selectionFollowsFocus:re,onChange:E,textColor:K,value:n,...ee===1&&N===!1&&!r.props.tabIndex?{tabIndex:0}:{}})}),Qe=r=>{const n=A.current,l=no.ownerDocument(n).activeElement;if(l.getAttribute("role")!=="tab")return;let u=x==="horizontal"?"ArrowLeft":"ArrowUp",I=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&d&&(u="ArrowRight",I="ArrowLeft"),r.key){case u:r.preventDefault(),oe(n,l,we);break;case I:r.preventDefault(),oe(n,l,xe);break;case"Home":r.preventDefault(),oe(n,null,xe);break;case"End":r.preventDefault(),oe(n,null,we);break}},ae=Ge();return T.jsxs(ho,{className:e.clsx(j.root,g),ownerState:D,ref:s,as:h,...$e,children:[ae.scrollButtonStart,ae.scrollbarSizeListener,T.jsxs(So,{className:j.scroller,ownerState:D,style:{overflow:Te.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:ne?void 0:-Te.scrollbarWidth},ref:O,children:[T.jsx(mo,{"aria-label":b,"aria-labelledby":y,"aria-orientation":x==="vertical"?"vertical":null,className:j.flexContainer,ownerState:D,onKeyDown:Qe,ref:A,role:"tablist",children:Je}),de&&Pe]}),ae.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(Ae.propTypes={action:ro.refType,allowScrollButtonsMobile:e.PropTypes.bool,"aria-label":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,centered:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,indicatorColor:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary"]),e.PropTypes.string]),onChange:e.PropTypes.func,orientation:e.PropTypes.oneOf(["horizontal","vertical"]),ScrollButtonComponent:e.PropTypes.elementType,scrollButtons:e.PropTypes.oneOf(["auto",!1,!0]),selectionFollowsFocus:e.PropTypes.bool,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon: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]),TabIndicatorProps:e.PropTypes.object,TabScrollButtonProps:e.PropTypes.object,textColor:e.PropTypes.oneOf(["inherit","primary","secondary"]),value:e.PropTypes.any,variant:e.PropTypes.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:e.PropTypes.bool});exports.KeyboardArrowLeft=je;exports.KeyboardArrowRight=ke;exports.Tab=Ne;exports.Tabs=Ae;exports.getTabUtilityClass=Oe;exports.getTabsUtilityClass=ze;exports.tabClasses=v;exports.tabsClasses=te;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { H as pe, I as fe, G as W, P as t } from "./
|
|
3
|
-
import { m as be } from "./memoTheme-
|
|
2
|
+
import { H as pe, I as fe, L as We, G as W, P as t } from "./identifier-DuQ8Gjnk.js";
|
|
3
|
+
import { m as be } from "./memoTheme-BX806g-H.js";
|
|
4
4
|
import { jsxs as q, jsx as x } from "react/jsx-runtime";
|
|
5
|
-
import { s as
|
|
6
|
-
import { B as
|
|
7
|
-
import {
|
|
8
|
-
import { a as
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as rt } from "./useTheme-DyaNKf4e.js";
|
|
12
|
-
import { u as nt } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
5
|
+
import { s as L, u as he, c as me, e as tt } from "./DefaultPropsProvider-DEufUd_C.js";
|
|
6
|
+
import { B as ke } from "./ButtonBase-ZtXnS9gg.js";
|
|
7
|
+
import { a as ot } from "./useThemeProps-SHbptCB5.js";
|
|
8
|
+
import { u as ze, a as ne } from "./index-Bh3yiNTb.js";
|
|
9
|
+
import { u as nt } from "./useTheme-CVDdFPAV.js";
|
|
10
|
+
import { u as rt } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
13
11
|
import { o as De } from "./ownerWindow-niciwP7I.js";
|
|
14
12
|
import { d as $e } from "./debounce-46wSf_lW.js";
|
|
15
13
|
import { u as de } from "./useEventCallback-BAQJJ3ye.js";
|
|
16
|
-
import { r as lt } from "./refType-
|
|
17
|
-
import { c as Ae } from "./createSvgIcon-
|
|
14
|
+
import { r as lt } from "./refType-Bj5oVmPL.js";
|
|
15
|
+
import { c as Ae } from "./createSvgIcon-DCcHNe8S.js";
|
|
18
16
|
import { o as st } from "./ownerDocument-CUrv0DIK.js";
|
|
19
17
|
function at(o) {
|
|
20
18
|
return pe("MuiTab", o);
|
|
@@ -30,18 +28,18 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
30
28
|
selected: h,
|
|
31
29
|
disabled: f
|
|
32
30
|
} = o, S = {
|
|
33
|
-
root: ["root", u && b && "labelIcon", `textColor${
|
|
31
|
+
root: ["root", u && b && "labelIcon", `textColor${We(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
|
|
34
32
|
icon: ["iconWrapper", "icon"]
|
|
35
33
|
};
|
|
36
34
|
return me(S, at, e);
|
|
37
|
-
}, ct =
|
|
35
|
+
}, ct = L(ke, {
|
|
38
36
|
name: "MuiTab",
|
|
39
37
|
slot: "Root",
|
|
40
38
|
overridesResolver: (o, e) => {
|
|
41
39
|
const {
|
|
42
40
|
ownerState: l
|
|
43
41
|
} = o;
|
|
44
|
-
return [e.root, l.label && l.icon && e.labelIcon, e[`textColor${
|
|
42
|
+
return [e.root, l.label && l.icon && e.labelIcon, e[`textColor${We(l.textColor)}`], l.fullWidth && e.fullWidth, l.wrapped && e.wrapped, {
|
|
45
43
|
[`& .${T.iconWrapper}`]: e.iconWrapper
|
|
46
44
|
}, {
|
|
47
45
|
[`& .${T.icon}`]: e.icon
|
|
@@ -206,9 +204,9 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
206
204
|
// eslint-disable-next-line react/prop-types
|
|
207
205
|
selectionFollowsFocus: g,
|
|
208
206
|
// eslint-disable-next-line react/prop-types
|
|
209
|
-
textColor:
|
|
207
|
+
textColor: j = "inherit",
|
|
210
208
|
value: M,
|
|
211
|
-
wrapped:
|
|
209
|
+
wrapped: re = !1,
|
|
212
210
|
...H
|
|
213
211
|
} = d, U = {
|
|
214
212
|
...d,
|
|
@@ -219,8 +217,8 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
219
217
|
iconPosition: S,
|
|
220
218
|
label: !!y,
|
|
221
219
|
fullWidth: h,
|
|
222
|
-
textColor:
|
|
223
|
-
wrapped:
|
|
220
|
+
textColor: j,
|
|
221
|
+
wrapped: re
|
|
224
222
|
}, V = it(U), z = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
|
|
225
223
|
className: W(V.icon, f.props.className)
|
|
226
224
|
}) : f, G = (R) => {
|
|
@@ -256,7 +254,7 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
|
256
254
|
* This prop isn't supported.
|
|
257
255
|
* Use the `component` prop if you need to change the children structure.
|
|
258
256
|
*/
|
|
259
|
-
children:
|
|
257
|
+
children: ot,
|
|
260
258
|
/**
|
|
261
259
|
* Override or extend the styles applied to the component.
|
|
262
260
|
*/
|
|
@@ -374,7 +372,7 @@ function Fe(o) {
|
|
|
374
372
|
} = o, d = c.useRef(), i = c.useRef(null), u = () => {
|
|
375
373
|
d.current = i.current.offsetHeight - i.current.clientHeight;
|
|
376
374
|
};
|
|
377
|
-
return
|
|
375
|
+
return rt(() => {
|
|
378
376
|
const b = $e(() => {
|
|
379
377
|
const f = d.current;
|
|
380
378
|
u(), f !== d.current && e(d.current);
|
|
@@ -386,8 +384,8 @@ function Fe(o) {
|
|
|
386
384
|
u(), e(d.current);
|
|
387
385
|
}, [e]), /* @__PURE__ */ x("div", {
|
|
388
386
|
style: ht,
|
|
389
|
-
|
|
390
|
-
|
|
387
|
+
...l,
|
|
388
|
+
ref: i
|
|
391
389
|
});
|
|
392
390
|
}
|
|
393
391
|
process.env.NODE_ENV !== "production" && (Fe.propTypes = {
|
|
@@ -405,7 +403,7 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
405
403
|
return me({
|
|
406
404
|
root: ["root", l, d && "disabled"]
|
|
407
405
|
}, mt, e);
|
|
408
|
-
}, yt =
|
|
406
|
+
}, yt = L(ke, {
|
|
409
407
|
name: "MuiTabScrollButton",
|
|
410
408
|
slot: "Root",
|
|
411
409
|
overridesResolver: (o, e) => {
|
|
@@ -433,7 +431,7 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
433
431
|
}
|
|
434
432
|
}
|
|
435
433
|
}]
|
|
436
|
-
}),
|
|
434
|
+
}), Le = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
437
435
|
const d = he({
|
|
438
436
|
props: e,
|
|
439
437
|
name: "MuiTabScrollButton"
|
|
@@ -448,14 +446,14 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
448
446
|
} = d, y = ze(), m = {
|
|
449
447
|
isRtl: y,
|
|
450
448
|
...d
|
|
451
|
-
}, C = vt(m), k = u.StartScrollButtonIcon ?? ut, I = u.EndScrollButtonIcon ?? pt, g =
|
|
449
|
+
}, C = vt(m), k = u.StartScrollButtonIcon ?? ut, I = u.EndScrollButtonIcon ?? pt, g = ne({
|
|
452
450
|
elementType: k,
|
|
453
451
|
externalSlotProps: b.startScrollButtonIcon,
|
|
454
452
|
additionalProps: {
|
|
455
453
|
fontSize: "small"
|
|
456
454
|
},
|
|
457
455
|
ownerState: m
|
|
458
|
-
}),
|
|
456
|
+
}), j = ne({
|
|
459
457
|
elementType: I,
|
|
460
458
|
externalSlotProps: b.endScrollButtonIcon,
|
|
461
459
|
additionalProps: {
|
|
@@ -480,11 +478,11 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
480
478
|
children: h === "left" ? /* @__PURE__ */ x(k, {
|
|
481
479
|
...g
|
|
482
480
|
}) : /* @__PURE__ */ x(I, {
|
|
483
|
-
...
|
|
481
|
+
...j
|
|
484
482
|
})
|
|
485
483
|
});
|
|
486
484
|
});
|
|
487
|
-
process.env.NODE_ENV !== "production" && (
|
|
485
|
+
process.env.NODE_ENV !== "production" && (Le.propTypes = {
|
|
488
486
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
489
487
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
490
488
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -579,7 +577,7 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
579
577
|
scrollableX: [i && "scrollableX"],
|
|
580
578
|
hideScrollbar: [d && "hideScrollbar"]
|
|
581
579
|
}, gt, f);
|
|
582
|
-
}, wt =
|
|
580
|
+
}, wt = L("div", {
|
|
583
581
|
name: "MuiTabs",
|
|
584
582
|
slot: "Root",
|
|
585
583
|
overridesResolver: (o, e) => {
|
|
@@ -619,7 +617,7 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
619
617
|
}
|
|
620
618
|
}
|
|
621
619
|
}]
|
|
622
|
-
}))), Bt =
|
|
620
|
+
}))), Bt = L("div", {
|
|
623
621
|
name: "MuiTabs",
|
|
624
622
|
slot: "Scroller",
|
|
625
623
|
overridesResolver: (o, e) => {
|
|
@@ -671,7 +669,7 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
671
669
|
overflowX: "hidden"
|
|
672
670
|
}
|
|
673
671
|
}]
|
|
674
|
-
}), xt =
|
|
672
|
+
}), xt = L("div", {
|
|
675
673
|
name: "MuiTabs",
|
|
676
674
|
slot: "FlexContainer",
|
|
677
675
|
overridesResolver: (o, e) => {
|
|
@@ -697,7 +695,7 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
697
695
|
justifyContent: "center"
|
|
698
696
|
}
|
|
699
697
|
}]
|
|
700
|
-
}), Ct =
|
|
698
|
+
}), Ct = L("span", {
|
|
701
699
|
name: "MuiTabs",
|
|
702
700
|
slot: "Indicator",
|
|
703
701
|
overridesResolver: (o, e) => e.indicator
|
|
@@ -733,7 +731,7 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
733
731
|
right: 0
|
|
734
732
|
}
|
|
735
733
|
}]
|
|
736
|
-
}))), It =
|
|
734
|
+
}))), It = L(Fe)({
|
|
737
735
|
overflowX: "auto",
|
|
738
736
|
overflowY: "hidden",
|
|
739
737
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -749,7 +747,7 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
749
747
|
const d = he({
|
|
750
748
|
props: e,
|
|
751
749
|
name: "MuiTabs"
|
|
752
|
-
}), i =
|
|
750
|
+
}), i = nt(), u = ze(), {
|
|
753
751
|
"aria-label": b,
|
|
754
752
|
"aria-labelledby": h,
|
|
755
753
|
action: f,
|
|
@@ -761,9 +759,9 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
761
759
|
indicatorColor: k = "primary",
|
|
762
760
|
onChange: I,
|
|
763
761
|
orientation: g = "horizontal",
|
|
764
|
-
ScrollButtonComponent:
|
|
762
|
+
ScrollButtonComponent: j = Le,
|
|
765
763
|
scrollButtons: M = "auto",
|
|
766
|
-
selectionFollowsFocus:
|
|
764
|
+
selectionFollowsFocus: re,
|
|
767
765
|
slots: H = {},
|
|
768
766
|
slotProps: U = {},
|
|
769
767
|
TabIndicatorProps: V = {},
|
|
@@ -772,7 +770,7 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
772
770
|
value: N,
|
|
773
771
|
variant: R = "standard",
|
|
774
772
|
visibleScrollbar: le = !1,
|
|
775
|
-
...
|
|
773
|
+
...je
|
|
776
774
|
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right", se = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", D = {
|
|
777
775
|
...d,
|
|
778
776
|
component: m,
|
|
@@ -790,11 +788,11 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
790
788
|
scrollableY: w && B,
|
|
791
789
|
centered: S && !w,
|
|
792
790
|
scrollButtonsHideMobile: !C
|
|
793
|
-
}, P = Tt(D), He =
|
|
791
|
+
}, P = Tt(D), He = ne({
|
|
794
792
|
elementType: H.StartScrollButtonIcon,
|
|
795
793
|
externalSlotProps: U.startScrollButtonIcon,
|
|
796
794
|
ownerState: D
|
|
797
|
-
}), Ve =
|
|
795
|
+
}), Ve = ne({
|
|
798
796
|
elementType: H.EndScrollButtonIcon,
|
|
799
797
|
externalSlotProps: U.endScrollButtonIcon,
|
|
800
798
|
ownerState: D
|
|
@@ -804,15 +802,15 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
804
802
|
overflow: "hidden",
|
|
805
803
|
scrollbarWidth: 0
|
|
806
804
|
}), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Be = () => {
|
|
807
|
-
const
|
|
808
|
-
let
|
|
809
|
-
if (
|
|
810
|
-
const a =
|
|
811
|
-
|
|
812
|
-
clientWidth:
|
|
813
|
-
scrollLeft:
|
|
814
|
-
scrollTop:
|
|
815
|
-
scrollWidth:
|
|
805
|
+
const n = O.current;
|
|
806
|
+
let r;
|
|
807
|
+
if (n) {
|
|
808
|
+
const a = n.getBoundingClientRect();
|
|
809
|
+
r = {
|
|
810
|
+
clientWidth: n.clientWidth,
|
|
811
|
+
scrollLeft: n.scrollLeft,
|
|
812
|
+
scrollTop: n.scrollTop,
|
|
813
|
+
scrollWidth: n.scrollWidth,
|
|
816
814
|
top: a.top,
|
|
817
815
|
bottom: a.bottom,
|
|
818
816
|
left: a.left,
|
|
@@ -820,31 +818,31 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
820
818
|
};
|
|
821
819
|
}
|
|
822
820
|
let s;
|
|
823
|
-
if (
|
|
821
|
+
if (n && N !== !1) {
|
|
824
822
|
const a = A.current.children;
|
|
825
823
|
if (a.length > 0) {
|
|
826
824
|
const p = a[Z.get(N)];
|
|
827
825
|
process.env.NODE_ENV !== "production" && (p || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${N}".`, Z.keys ? `You can provide one of the following values: ${Array.from(Z.keys()).join(", ")}.` : null].join(`
|
|
828
826
|
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Pe && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
829
|
-
|
|
827
|
+
r.clientWidth !== 0 && (r = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${N}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
830
828
|
`)), Pe = !0);
|
|
831
829
|
}
|
|
832
830
|
}
|
|
833
831
|
return {
|
|
834
|
-
tabsMeta:
|
|
832
|
+
tabsMeta: r,
|
|
835
833
|
tabMeta: s
|
|
836
834
|
};
|
|
837
835
|
}, K = de(() => {
|
|
838
836
|
const {
|
|
839
|
-
tabsMeta:
|
|
840
|
-
tabMeta:
|
|
837
|
+
tabsMeta: n,
|
|
838
|
+
tabMeta: r
|
|
841
839
|
} = Be();
|
|
842
840
|
let s = 0, a;
|
|
843
|
-
B ? (a = "top",
|
|
841
|
+
B ? (a = "top", r && n && (s = r.top - n.top + n.scrollTop)) : (a = u ? "right" : "left", r && n && (s = (u ? -1 : 1) * (r[a] - n[a] + n.scrollLeft)));
|
|
844
842
|
const p = {
|
|
845
843
|
[a]: s,
|
|
846
844
|
// May be wrong until the font is loaded.
|
|
847
|
-
[Y]:
|
|
845
|
+
[Y]: r ? r[Y] : 0
|
|
848
846
|
};
|
|
849
847
|
if (typeof $[a] != "number" || typeof $[Y] != "number")
|
|
850
848
|
ve(p);
|
|
@@ -852,45 +850,45 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
852
850
|
const E = Math.abs($[a] - p[a]), F = Math.abs($[Y] - p[Y]);
|
|
853
851
|
(E >= 1 || F >= 1) && ve(p);
|
|
854
852
|
}
|
|
855
|
-
}), ae = (
|
|
856
|
-
animation:
|
|
853
|
+
}), ae = (n, {
|
|
854
|
+
animation: r = !0
|
|
857
855
|
} = {}) => {
|
|
858
|
-
|
|
856
|
+
r ? bt(X, O.current, n, {
|
|
859
857
|
duration: i.transitions.duration.standard
|
|
860
|
-
}) : O.current[X] =
|
|
861
|
-
}, xe = (
|
|
862
|
-
let
|
|
863
|
-
B ?
|
|
858
|
+
}) : O.current[X] = n;
|
|
859
|
+
}, xe = (n) => {
|
|
860
|
+
let r = O.current[X];
|
|
861
|
+
B ? r += n : r += n * (u ? -1 : 1), ae(r);
|
|
864
862
|
}, Ce = () => {
|
|
865
|
-
const
|
|
866
|
-
let
|
|
863
|
+
const n = O.current[se];
|
|
864
|
+
let r = 0;
|
|
867
865
|
const s = Array.from(A.current.children);
|
|
868
866
|
for (let a = 0; a < s.length; a += 1) {
|
|
869
867
|
const p = s[a];
|
|
870
|
-
if (
|
|
871
|
-
a === 0 && (
|
|
868
|
+
if (r + p[se] > n) {
|
|
869
|
+
a === 0 && (r = n);
|
|
872
870
|
break;
|
|
873
871
|
}
|
|
874
|
-
|
|
872
|
+
r += p[se];
|
|
875
873
|
}
|
|
876
|
-
return
|
|
874
|
+
return r;
|
|
877
875
|
}, qe = () => {
|
|
878
876
|
xe(-1 * Ce());
|
|
879
877
|
}, Ge = () => {
|
|
880
878
|
xe(Ce());
|
|
881
|
-
}, Je = c.useCallback((
|
|
879
|
+
}, Je = c.useCallback((n) => {
|
|
882
880
|
_e({
|
|
883
881
|
overflow: null,
|
|
884
|
-
scrollbarWidth:
|
|
882
|
+
scrollbarWidth: n
|
|
885
883
|
});
|
|
886
884
|
}, []), Qe = () => {
|
|
887
|
-
const
|
|
888
|
-
|
|
885
|
+
const n = {};
|
|
886
|
+
n.scrollbarSizeListener = w ? /* @__PURE__ */ x(It, {
|
|
889
887
|
onChange: Je,
|
|
890
888
|
className: W(P.scrollableX, P.hideScrollbar)
|
|
891
889
|
}) : null;
|
|
892
890
|
const s = w && (M === "auto" && (ye || ge) || M === !0);
|
|
893
|
-
return
|
|
891
|
+
return n.scrollButtonStart = s ? /* @__PURE__ */ x(j, {
|
|
894
892
|
slots: {
|
|
895
893
|
StartScrollButtonIcon: H.StartScrollButtonIcon
|
|
896
894
|
},
|
|
@@ -903,7 +901,7 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
903
901
|
disabled: !ye,
|
|
904
902
|
...z,
|
|
905
903
|
className: W(P.scrollButtons, z.className)
|
|
906
|
-
}) : null,
|
|
904
|
+
}) : null, n.scrollButtonEnd = s ? /* @__PURE__ */ x(j, {
|
|
907
905
|
slots: {
|
|
908
906
|
EndScrollButtonIcon: H.EndScrollButtonIcon
|
|
909
907
|
},
|
|
@@ -916,22 +914,22 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
916
914
|
disabled: !ge,
|
|
917
915
|
...z,
|
|
918
916
|
className: W(P.scrollButtons, z.className)
|
|
919
|
-
}) : null,
|
|
920
|
-
}, Ie = de((
|
|
917
|
+
}) : null, n;
|
|
918
|
+
}, Ie = de((n) => {
|
|
921
919
|
const {
|
|
922
|
-
tabsMeta:
|
|
920
|
+
tabsMeta: r,
|
|
923
921
|
tabMeta: s
|
|
924
922
|
} = Be();
|
|
925
|
-
if (!(!s || !
|
|
926
|
-
if (s[J] <
|
|
927
|
-
const a =
|
|
923
|
+
if (!(!s || !r)) {
|
|
924
|
+
if (s[J] < r[J]) {
|
|
925
|
+
const a = r[X] + (s[J] - r[J]);
|
|
928
926
|
ae(a, {
|
|
929
|
-
animation:
|
|
927
|
+
animation: n
|
|
930
928
|
});
|
|
931
|
-
} else if (s[Q] >
|
|
932
|
-
const a =
|
|
929
|
+
} else if (s[Q] > r[Q]) {
|
|
930
|
+
const a = r[X] + (s[Q] - r[Q]);
|
|
933
931
|
ae(a, {
|
|
934
|
-
animation:
|
|
932
|
+
animation: n
|
|
935
933
|
});
|
|
936
934
|
}
|
|
937
935
|
}
|
|
@@ -939,32 +937,32 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
939
937
|
w && M !== !1 && Ke(!Te);
|
|
940
938
|
});
|
|
941
939
|
c.useEffect(() => {
|
|
942
|
-
const
|
|
940
|
+
const n = $e(() => {
|
|
943
941
|
O.current && K();
|
|
944
942
|
});
|
|
945
|
-
let
|
|
943
|
+
let r;
|
|
946
944
|
const s = (E) => {
|
|
947
945
|
E.forEach((F) => {
|
|
948
946
|
F.removedNodes.forEach((_) => {
|
|
949
|
-
|
|
947
|
+
r == null || r.unobserve(_);
|
|
950
948
|
}), F.addedNodes.forEach((_) => {
|
|
951
|
-
|
|
949
|
+
r == null || r.observe(_);
|
|
952
950
|
});
|
|
953
|
-
}),
|
|
951
|
+
}), n(), ee();
|
|
954
952
|
}, a = De(O.current);
|
|
955
|
-
a.addEventListener("resize",
|
|
953
|
+
a.addEventListener("resize", n);
|
|
956
954
|
let p;
|
|
957
|
-
return typeof ResizeObserver < "u" && (
|
|
958
|
-
|
|
955
|
+
return typeof ResizeObserver < "u" && (r = new ResizeObserver(n), Array.from(A.current.children).forEach((E) => {
|
|
956
|
+
r.observe(E);
|
|
959
957
|
})), typeof MutationObserver < "u" && (p = new MutationObserver(s), p.observe(A.current, {
|
|
960
958
|
childList: !0
|
|
961
959
|
})), () => {
|
|
962
|
-
|
|
960
|
+
n.clear(), a.removeEventListener("resize", n), p == null || p.disconnect(), r == null || r.disconnect();
|
|
963
961
|
};
|
|
964
962
|
}, [K, ee]), c.useEffect(() => {
|
|
965
|
-
const
|
|
966
|
-
if (typeof IntersectionObserver < "u" &&
|
|
967
|
-
const s =
|
|
963
|
+
const n = Array.from(A.current.children), r = n.length;
|
|
964
|
+
if (typeof IntersectionObserver < "u" && r > 0 && w && M !== !1) {
|
|
965
|
+
const s = n[0], a = n[r - 1], p = {
|
|
968
966
|
root: O.current,
|
|
969
967
|
threshold: 0.99
|
|
970
968
|
}, E = (ce) => {
|
|
@@ -998,43 +996,43 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
998
996
|
}
|
|
999
997
|
});
|
|
1000
998
|
let te = 0;
|
|
1001
|
-
const Ze = c.Children.map(v, (
|
|
1002
|
-
if (!/* @__PURE__ */ c.isValidElement(
|
|
999
|
+
const Ze = c.Children.map(v, (n) => {
|
|
1000
|
+
if (!/* @__PURE__ */ c.isValidElement(n))
|
|
1003
1001
|
return null;
|
|
1004
|
-
process.env.NODE_ENV !== "production" &&
|
|
1002
|
+
process.env.NODE_ENV !== "production" && tt.isFragment(n) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1005
1003
|
`));
|
|
1006
|
-
const
|
|
1007
|
-
Z.set(
|
|
1008
|
-
const s =
|
|
1009
|
-
return te += 1, /* @__PURE__ */ c.cloneElement(
|
|
1004
|
+
const r = n.props.value === void 0 ? te : n.props.value;
|
|
1005
|
+
Z.set(r, te);
|
|
1006
|
+
const s = r === N;
|
|
1007
|
+
return te += 1, /* @__PURE__ */ c.cloneElement(n, {
|
|
1010
1008
|
fullWidth: R === "fullWidth",
|
|
1011
1009
|
indicator: s && !Se && Ee,
|
|
1012
1010
|
selected: s,
|
|
1013
|
-
selectionFollowsFocus:
|
|
1011
|
+
selectionFollowsFocus: re,
|
|
1014
1012
|
onChange: I,
|
|
1015
1013
|
textColor: G,
|
|
1016
|
-
value:
|
|
1017
|
-
...te === 1 && N === !1 && !
|
|
1014
|
+
value: r,
|
|
1015
|
+
...te === 1 && N === !1 && !n.props.tabIndex ? {
|
|
1018
1016
|
tabIndex: 0
|
|
1019
1017
|
} : {}
|
|
1020
1018
|
});
|
|
1021
|
-
}), et = (
|
|
1022
|
-
const
|
|
1019
|
+
}), et = (n) => {
|
|
1020
|
+
const r = A.current, s = st(r).activeElement;
|
|
1023
1021
|
if (s.getAttribute("role") !== "tab")
|
|
1024
1022
|
return;
|
|
1025
1023
|
let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
1026
|
-
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"),
|
|
1024
|
+
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), n.key) {
|
|
1027
1025
|
case p:
|
|
1028
|
-
|
|
1026
|
+
n.preventDefault(), oe(r, s, Oe);
|
|
1029
1027
|
break;
|
|
1030
1028
|
case E:
|
|
1031
|
-
|
|
1029
|
+
n.preventDefault(), oe(r, s, Re);
|
|
1032
1030
|
break;
|
|
1033
1031
|
case "Home":
|
|
1034
|
-
|
|
1032
|
+
n.preventDefault(), oe(r, null, Re);
|
|
1035
1033
|
break;
|
|
1036
1034
|
case "End":
|
|
1037
|
-
|
|
1035
|
+
n.preventDefault(), oe(r, null, Oe);
|
|
1038
1036
|
break;
|
|
1039
1037
|
}
|
|
1040
1038
|
}, ie = Qe();
|
|
@@ -1043,7 +1041,7 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
1043
1041
|
ownerState: D,
|
|
1044
1042
|
ref: l,
|
|
1045
1043
|
as: m,
|
|
1046
|
-
...
|
|
1044
|
+
...je,
|
|
1047
1045
|
children: [ie.scrollButtonStart, ie.scrollbarSizeListener, /* @__PURE__ */ q(Bt, {
|
|
1048
1046
|
className: P.scroller,
|
|
1049
1047
|
ownerState: D,
|