@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740589431
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-BctCVgLy.js} +79 -82
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-mP2Th61z.cjs → Box-DYA49L7w.cjs} +1 -1
- package/dist/{Box-Byz2BwGf.js → Box-DgqaLb7j.js} +8 -8
- package/dist/Button-B7kOjNW1.js +696 -0
- package/dist/Button-UmeKHfcL.cjs +1 -0
- package/dist/ButtonBase-D6tfI-8D.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-IZ_QjbpE.js} +334 -334
- package/dist/CardContent-5bW4A4d2.cjs +1 -0
- package/dist/CardContent-F4-KcZH8.js +226 -0
- package/dist/{Checkbox-DYrDbdy1.cjs → Checkbox-DQgPXaym.cjs} +1 -1
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-qUSjau0g.js} +26 -26
- package/dist/Chip-BTnuWGEU.cjs +1 -0
- package/dist/Chip-OpRIs-sL.js +522 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CQxzJquv.js} +11 -11
- package/dist/{CircularProgress-BByrCLjv.cjs → CircularProgress-cPXhiRlM.cjs} +4 -4
- package/dist/CloseRounded-BMEGLs8y.js +8 -0
- package/dist/CloseRounded-BRXBizmR.cjs +1 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-C6MCYjpp.js} +3113 -3600
- package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
- package/dist/DefaultPropsProvider-Cqcb4sws.js +303 -0
- package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
- package/dist/Dialog-B1wnk5BT.cjs +1 -0
- package/dist/Dialog-CKS7yjT5.js +478 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-BzPaz5G8.js} +13 -13
- package/dist/{DialogContent-Dj_OjLZ6.cjs → DialogContent-DcZz4rBc.cjs} +1 -1
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-D3E_lDHD.js} +30 -30
- package/dist/{DialogTitle-BboPDaoB.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-KO-E6nU8.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{Divider-CcrM3lNn.cjs → Divider-D3hPb7s4.cjs} +1 -1
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-3-CC-ZGw.js} +131 -133
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DKgYCxiY.js} +46 -43
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-CCNUMz2l.js} +132 -64
- package/dist/IconButton-CVOPR4EM.cjs +2 -0
- package/dist/{InputAdornment-Cq0WhPxF.cjs → InputAdornment-CwFEJSXv.cjs} +1 -1
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DL8XIM8r.js} +15 -14
- package/dist/{InputBase-BJy3wwFB.js → InputBase-By7jMrFP.js} +221 -215
- package/dist/InputBase-Cejvjv1E.cjs +3 -0
- package/dist/Link-2ncpUcIp.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-C_GPIs0q.js} +46 -46
- package/dist/{Menu-C7tKmcAh.js → Menu-BunOW0ot.js} +72 -73
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/{MenuItem-BZ_EVaBq.cjs → MenuItem-Bha8aBMr.cjs} +1 -1
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-Cu3FTLl8.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-DTJd7JJ6.js} +99 -98
- package/dist/Modal-u82Ss4h_.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-BiZq6EF2.js} +8 -8
- package/dist/{Paper-Cr56xkCr.cjs → Paper-EvOTlB_Q.cjs} +2 -2
- package/dist/{Popper-YT5WAMV-.cjs → Popper-BVYscbsI.cjs} +3 -3
- package/dist/{Popper-DFZ_gRev.js → Popper-DjwR55WH.js} +241 -243
- package/dist/{Portal-JEwcozmp.js → Portal-BByeByPq.js} +34 -39
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/Radio-CSl8GQNk.cjs +1 -0
- package/dist/Radio-DSRS-tjj.js +568 -0
- package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
- package/dist/RadioGroup-cPdOWdYD.js +190 -0
- package/dist/{Select-DmssuG5M.js → Select-CZnKFG3o.js} +419 -401
- package/dist/Select-DZAzJA0y.cjs +3 -0
- package/dist/Stack-B82ckLGm.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-hbAJHQhq.js} +29 -29
- package/dist/Switch-B9uT9-d0.js +330 -0
- package/dist/Switch-DWKHe4z_.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CDkmnGAP.js} +29 -29
- package/dist/{SwitchBase-DjIY_KWB.cjs → SwitchBase-CnA6TA2P.cjs} +1 -1
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-BYfDlOR9.js} +336 -337
- package/dist/{TextField-Cri5Gxa7.js → TextField-BKfXjPdH.js} +29 -27
- package/dist/TextField-CwcPgdgD.cjs +1 -0
- package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
- package/dist/ToggleButtonGroup-sc2omtRp.js +10473 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-B1NGvrJP.js} +14 -14
- package/dist/{Tooltip-DhDtvULK.cjs → Tooltip-oNmnF7Bc.cjs} +3 -3
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DfRMDngd.cjs → Typography-DPij13XT.cjs} +1 -1
- package/dist/{Typography-DBwTr_ix.js → Typography-SIQ6eleU.js} +9 -9
- package/dist/{capitalize-CkF8kU4n.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/{capitalize-B3GG7Wn6.cjs → capitalize-CEByPz9F.cjs} +1 -1
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +12 -325
- 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/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +118 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- 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 +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- 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 +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.es.js +348 -294
- 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 +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -0
- 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 +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- 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 +16 -16
- 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 +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- 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 +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- 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-DJMYlO0S.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-K2ZAdASa.js} +57 -55
- package/dist/{dividerClasses-CCAY3Pnr.cjs → dividerClasses-Dq1bCO_s.cjs} +1 -1
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-afsB3Yy1.js} +3 -3
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{elementTypeAcceptingRef-DZsNbuLU.cjs → elementTypeAcceptingRef-BjgxF5Bq.cjs} +1 -1
- package/dist/{extendSxProp-apyK-EBz.cjs → extendSxProp-D-oLUmkR.cjs} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-dlShX1xL.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
- package/dist/generateUtilityClasses-DotvgSDH.js +3297 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{index-CwvpOCso.js → index-B1u7G33_.js} +29 -29
- package/dist/{index-ChM1Ett8.cjs → index-CVFzneYe.cjs} +1 -1
- package/dist/{index-BCnPLuqJ.js → index-DTTmpNYg.js} +22 -22
- package/dist/index-T-RSwkXB.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
- package/dist/{refType-CoaxQOPt.cjs → refType-BkobP3bK.cjs} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-C210ipRY.js} +1 -1
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-CPmhKPdH.js} +7 -7
- package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CC2AaOjN.cjs +1 -0
- package/dist/useSlot-GZu0V5wJ.js +48 -0
- package/dist/{useSlotProps-B31YQlzb.js → useSlotProps-C9tsxDNg.js} +11 -11
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/{useTheme-Dukx-__T.cjs → useTheme-7RGQRN-h.cjs} +1 -1
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-Cy5kyKJF.cjs → useTheme-CIf2b2wK.cjs} +1 -1
- package/dist/{useTheme-_xyy-wul.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/useThemeProps-DxBEHys5.cjs +1 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-CXhh35wP.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- 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/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.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-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const M=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),U=require("./useTheme-CIf2b2wK.cjs"),V=require("react/jsx-runtime"),d=require("./utils-CFI_-FMV.cjs"),W=require("./useTimeout-COCrDKz-.cjs"),B=require("./useForkRef-CTI33h-3.cjs");function J(o){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const f=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(l,a,f.get?f:{enumerable:!0,get:()=>o[a]})}}return l.default=o,Object.freeze(l)}const T=J(M);function R(o){return`scale(${o}, ${o**2})`}const Q={entering:{opacity:1,transform:R(1)},entered:{opacity:1,transform:"none"}},x=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=T.forwardRef(function(l,a){const{addEndListener:f,appear:v=!0,children:E,easing:b,in:j,onEnter:O,onEntered:w,onEntering:D,onExit:q,onExited:A,onExiting:S,style:P,timeout:i="auto",TransitionComponent:_=d.Transition,...F}=l,H=W.useTimeout(),h=T.useRef(),u=U.useTheme(),y=T.useRef(null),L=B.useForkRef(y,d.getReactElementRef(E),a),c=t=>s=>{if(t){const n=y.current;s===void 0?t(n):t(n,s)}},C=c(D),G=c((t,s)=>{d.reflow(t);const{duration:n,delay:g,easing:r}=d.getTransitionProps({style:P,timeout:i,easing:b},{mode:"enter"});let p;i==="auto"?(p=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=p):p=n,t.style.transition=[u.transitions.create("opacity",{duration:p,delay:g}),u.transitions.create("transform",{duration:x?p:p*.666,delay:g,easing:r})].join(","),O&&O(t,s)}),N=c(w),k=c(S),z=c(t=>{const{duration:s,delay:n,easing:g}=d.getTransitionProps({style:P,timeout:i,easing:b},{mode:"exit"});let r;i==="auto"?(r=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=r):r=s,t.style.transition=[u.transitions.create("opacity",{duration:r,delay:n}),u.transitions.create("transform",{duration:x?r:r*.666,delay:x?n:n||r*.333,easing:g})].join(","),t.style.opacity=0,t.style.transform=R(.75),q&&q(t)}),$=c(A),K=t=>{i==="auto"&&H.start(h.current||0,t),f&&f(y.current,t)};return V.jsx(_,{appear:v,in:j,nodeRef:y,onEnter:G,onEntered:N,onEntering:C,onExit:z,onExited:$,onExiting:k,addEndListener:K,timeout:i==="auto"?null:i,...F,children:(t,{ownerState:s,...n})=>T.cloneElement(E,{style:{opacity:0,transform:R(.75),visibility:t==="exited"&&!j?"hidden":void 0,...Q[t],...P,...E.props.style},ref:L,...n})})});process.env.NODE_ENV!=="production"&&(m.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:d.elementAcceptingRef.isRequired,easing:e.PropTypes.oneOfType([e.PropTypes.shape({enter:e.PropTypes.string,exit:e.PropTypes.string}),e.PropTypes.string]),in:e.PropTypes.bool,onEnter:e.PropTypes.func,onEntered:e.PropTypes.func,onEntering:e.PropTypes.func,onExit:e.PropTypes.func,onExited:e.PropTypes.func,onExiting:e.PropTypes.func,style:e.PropTypes.object,timeout:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});m&&(m.muiSupportAuto=!0);exports.Grow=m;
|
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { H as
|
|
3
|
-
import { m as
|
|
4
|
-
import { c as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { H as $, I as x, G as P, n as B, P as e } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
+
import { m as z } from "./memoTheme-CqmIydD-.js";
|
|
4
|
+
import { c as R } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
5
|
+
import { jsxs as w, jsx as u } from "react/jsx-runtime";
|
|
6
|
+
import { u as j, s as O, c as k } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
7
|
+
import { u as M } from "./useId-CK6Kn3Tn.js";
|
|
8
|
+
import { c as t } from "./capitalize-3KLkrEtk.js";
|
|
9
|
+
import { B as N } from "./ButtonBase-IZ_QjbpE.js";
|
|
10
|
+
import { C as E } from "./CircularProgress-CQxzJquv.js";
|
|
11
|
+
import { c as L } from "./chainPropTypes-D9lkm76m.js";
|
|
12
|
+
function U(o) {
|
|
13
|
+
return x("MuiIconButton", o);
|
|
12
14
|
}
|
|
13
|
-
const
|
|
15
|
+
const C = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), W = (o) => {
|
|
14
16
|
const {
|
|
15
|
-
classes:
|
|
17
|
+
classes: a,
|
|
16
18
|
disabled: r,
|
|
17
|
-
color:
|
|
18
|
-
edge:
|
|
19
|
-
size:
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
color: n,
|
|
20
|
+
edge: s,
|
|
21
|
+
size: l,
|
|
22
|
+
loading: c
|
|
23
|
+
} = o, p = {
|
|
24
|
+
root: ["root", c && "loading", r && "disabled", n !== "default" && `color${t(n)}`, s && `edge${t(s)}`, `size${t(l)}`],
|
|
25
|
+
loadingIndicator: ["loadingIndicator"],
|
|
26
|
+
loadingWrapper: ["loadingWrapper"]
|
|
22
27
|
};
|
|
23
|
-
return
|
|
24
|
-
},
|
|
28
|
+
return k(p, U, a);
|
|
29
|
+
}, F = O(N, {
|
|
25
30
|
name: "MuiIconButton",
|
|
26
31
|
slot: "Root",
|
|
27
|
-
overridesResolver: (o,
|
|
32
|
+
overridesResolver: (o, a) => {
|
|
28
33
|
const {
|
|
29
34
|
ownerState: r
|
|
30
35
|
} = o;
|
|
31
|
-
return [
|
|
36
|
+
return [a.root, r.loading && a.loading, r.color !== "default" && a[`color${t(r.color)}`], r.edge && a[`edge${t(r.edge)}`], a[`size${t(r.size)}`]];
|
|
32
37
|
}
|
|
33
|
-
})(
|
|
38
|
+
})(z(({
|
|
34
39
|
theme: o
|
|
35
40
|
}) => ({
|
|
36
41
|
textAlign: "center",
|
|
@@ -43,9 +48,9 @@ const w = I("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
43
48
|
duration: o.transitions.duration.shortest
|
|
44
49
|
}),
|
|
45
50
|
variants: [{
|
|
46
|
-
props: (
|
|
51
|
+
props: (a) => !a.disableRipple,
|
|
47
52
|
style: {
|
|
48
|
-
"--IconButton-hoverBg": o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
53
|
+
"--IconButton-hoverBg": o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : B(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
49
54
|
"&:hover": {
|
|
50
55
|
backgroundColor: "var(--IconButton-hoverBg)",
|
|
51
56
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -85,7 +90,7 @@ const w = I("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
85
90
|
marginRight: -3
|
|
86
91
|
}
|
|
87
92
|
}]
|
|
88
|
-
})),
|
|
93
|
+
})), z(({
|
|
89
94
|
theme: o
|
|
90
95
|
}) => ({
|
|
91
96
|
variants: [{
|
|
@@ -95,19 +100,19 @@ const w = I("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
95
100
|
style: {
|
|
96
101
|
color: "inherit"
|
|
97
102
|
}
|
|
98
|
-
}, ...Object.entries(o.palette).filter(
|
|
103
|
+
}, ...Object.entries(o.palette).filter(R()).map(([a]) => ({
|
|
99
104
|
props: {
|
|
100
|
-
color:
|
|
105
|
+
color: a
|
|
101
106
|
},
|
|
102
107
|
style: {
|
|
103
|
-
color: (o.vars || o).palette[
|
|
108
|
+
color: (o.vars || o).palette[a].main
|
|
104
109
|
}
|
|
105
|
-
})), ...Object.entries(o.palette).filter(
|
|
110
|
+
})), ...Object.entries(o.palette).filter(R()).map(([a]) => ({
|
|
106
111
|
props: {
|
|
107
|
-
color:
|
|
112
|
+
color: a
|
|
108
113
|
},
|
|
109
114
|
style: {
|
|
110
|
-
"--IconButton-hoverBg": o.vars ? `rgba(${(o.vars || o).palette[
|
|
115
|
+
"--IconButton-hoverBg": o.vars ? `rgba(${(o.vars || o).palette[a].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : B((o.vars || o).palette[a].main, o.palette.action.hoverOpacity)
|
|
111
116
|
}
|
|
112
117
|
})), {
|
|
113
118
|
props: {
|
|
@@ -126,43 +131,89 @@ const w = I("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
126
131
|
fontSize: o.typography.pxToRem(28)
|
|
127
132
|
}
|
|
128
133
|
}],
|
|
129
|
-
[`&.${
|
|
134
|
+
[`&.${C.disabled}`]: {
|
|
130
135
|
backgroundColor: "transparent",
|
|
131
136
|
color: (o.vars || o).palette.action.disabled
|
|
137
|
+
},
|
|
138
|
+
[`&.${C.loading}`]: {
|
|
139
|
+
color: "transparent"
|
|
132
140
|
}
|
|
133
|
-
}))),
|
|
134
|
-
|
|
135
|
-
|
|
141
|
+
}))), V = O("span", {
|
|
142
|
+
name: "MuiIconButton",
|
|
143
|
+
slot: "LoadingIndicator",
|
|
144
|
+
overridesResolver: (o, a) => a.loadingIndicator
|
|
145
|
+
})(({
|
|
146
|
+
theme: o
|
|
147
|
+
}) => ({
|
|
148
|
+
display: "none",
|
|
149
|
+
position: "absolute",
|
|
150
|
+
visibility: "visible",
|
|
151
|
+
top: "50%",
|
|
152
|
+
left: "50%",
|
|
153
|
+
transform: "translate(-50%, -50%)",
|
|
154
|
+
color: (o.vars || o).palette.action.disabled,
|
|
155
|
+
variants: [{
|
|
156
|
+
props: {
|
|
157
|
+
loading: !0
|
|
158
|
+
},
|
|
159
|
+
style: {
|
|
160
|
+
display: "flex"
|
|
161
|
+
}
|
|
162
|
+
}]
|
|
163
|
+
})), A = /* @__PURE__ */ f.forwardRef(function(a, r) {
|
|
164
|
+
const n = j({
|
|
165
|
+
props: a,
|
|
136
166
|
name: "MuiIconButton"
|
|
137
167
|
}), {
|
|
138
|
-
edge:
|
|
139
|
-
children:
|
|
140
|
-
className:
|
|
141
|
-
color:
|
|
142
|
-
disabled:
|
|
143
|
-
disableFocusRipple:
|
|
144
|
-
size:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
size:
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
|
|
168
|
+
edge: s = !1,
|
|
169
|
+
children: l,
|
|
170
|
+
className: c,
|
|
171
|
+
color: p = "default",
|
|
172
|
+
disabled: y = !1,
|
|
173
|
+
disableFocusRipple: m = !1,
|
|
174
|
+
size: h = "medium",
|
|
175
|
+
id: b,
|
|
176
|
+
loading: i = null,
|
|
177
|
+
loadingIndicator: S,
|
|
178
|
+
...T
|
|
179
|
+
} = n, v = M(b), I = S ?? /* @__PURE__ */ u(E, {
|
|
180
|
+
"aria-labelledby": v,
|
|
181
|
+
color: "inherit",
|
|
182
|
+
size: 16
|
|
183
|
+
}), d = {
|
|
184
|
+
...n,
|
|
185
|
+
edge: s,
|
|
186
|
+
color: p,
|
|
187
|
+
disabled: y,
|
|
188
|
+
disableFocusRipple: m,
|
|
189
|
+
loading: i,
|
|
190
|
+
loadingIndicator: I,
|
|
191
|
+
size: h
|
|
192
|
+
}, g = W(d);
|
|
193
|
+
return /* @__PURE__ */ w(F, {
|
|
194
|
+
id: i ? v : b,
|
|
195
|
+
className: P(g.root, c),
|
|
156
196
|
centerRipple: !0,
|
|
157
|
-
focusRipple: !
|
|
158
|
-
disabled:
|
|
197
|
+
focusRipple: !m,
|
|
198
|
+
disabled: y || i,
|
|
159
199
|
ref: r,
|
|
160
|
-
...
|
|
161
|
-
ownerState:
|
|
162
|
-
children: i
|
|
200
|
+
...T,
|
|
201
|
+
ownerState: d,
|
|
202
|
+
children: [typeof i == "boolean" && // use plain HTML span to minimize the runtime overhead
|
|
203
|
+
/* @__PURE__ */ u("span", {
|
|
204
|
+
className: g.loadingWrapper,
|
|
205
|
+
style: {
|
|
206
|
+
display: "contents"
|
|
207
|
+
},
|
|
208
|
+
children: /* @__PURE__ */ u(V, {
|
|
209
|
+
className: g.loadingIndicator,
|
|
210
|
+
ownerState: d,
|
|
211
|
+
children: i && I
|
|
212
|
+
})
|
|
213
|
+
}), l]
|
|
163
214
|
});
|
|
164
215
|
});
|
|
165
|
-
process.env.NODE_ENV !== "production" && (
|
|
216
|
+
process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
166
217
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
167
218
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
168
219
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -170,7 +221,7 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
|
170
221
|
/**
|
|
171
222
|
* The icon to display.
|
|
172
223
|
*/
|
|
173
|
-
children:
|
|
224
|
+
children: L(e.node, (o) => f.Children.toArray(o.children).some((r) => /* @__PURE__ */ f.isValidElement(r) && r.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
174
225
|
`)) : null),
|
|
175
226
|
/**
|
|
176
227
|
* Override or extend the styles applied to the component.
|
|
@@ -213,6 +264,23 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
|
213
264
|
* @default false
|
|
214
265
|
*/
|
|
215
266
|
edge: e.oneOf(["end", "start", !1]),
|
|
267
|
+
/**
|
|
268
|
+
* @ignore
|
|
269
|
+
*/
|
|
270
|
+
id: e.string,
|
|
271
|
+
/**
|
|
272
|
+
* If `true`, the loading indicator is visible and the button is disabled.
|
|
273
|
+
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
|
274
|
+
* @default null
|
|
275
|
+
*/
|
|
276
|
+
loading: e.bool,
|
|
277
|
+
/**
|
|
278
|
+
* Element placed before the children if the button is in loading state.
|
|
279
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
280
|
+
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
281
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
282
|
+
*/
|
|
283
|
+
loadingIndicator: e.node,
|
|
216
284
|
/**
|
|
217
285
|
* The size of the component.
|
|
218
286
|
* `small` is equivalent to the dense button styling.
|
|
@@ -225,7 +293,7 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
|
225
293
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
226
294
|
});
|
|
227
295
|
export {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
296
|
+
A as I,
|
|
297
|
+
U as g,
|
|
298
|
+
C as i
|
|
231
299
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const j=require("react"),o=require("./generateUtilityClasses-De8NU9_E.cjs"),z=require("./memoTheme-DrjvJtTP.cjs"),B=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),l=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-wpBXjN8r.cjs"),x=require("./useId-DNXtOFeX.cjs"),n=require("./capitalize-CEByPz9F.cjs"),$=require("./ButtonBase-D6tfI-8D.cjs"),q=require("./CircularProgress-cPXhiRlM.cjs"),w=require("./chainPropTypes-CEUi6Jb4.cjs");function k(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=k(j);function O(e){return o.generateUtilityClass("MuiIconButton",e)}const b=o.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),M=e=>{const{classes:t,disabled:r,color:a,edge:i,size:c,loading:d}=e,u={root:["root",d&&"loading",r&&"disabled",a!=="default"&&`color${n.capitalize(a)}`,i&&`edge${n.capitalize(i)}`,`size${n.capitalize(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return p.composeClasses(u,O,t)},N=p.styled($.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${n.capitalize(r.color)}`],r.edge&&t[`edge${n.capitalize(r.edge)}`],t[`size${n.capitalize(r.size)}`]]}})(z.memoTheme(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),z.memoTheme(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(B.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(B.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${b.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${b.loading}`]:{color:"transparent"}}))),U=p.styled("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),R=f.forwardRef(function(t,r){const a=p.useDefaultProps({props:t,name:"MuiIconButton"}),{edge:i=!1,children:c,className:d,color:u="default",disabled:v=!1,disableFocusRipple:P=!1,size:C="medium",id:T,loading:s=null,loadingIndicator:h,...S}=a,I=x.useId(T),m=h??l.jsx(q.CircularProgress,{"aria-labelledby":I,color:"inherit",size:16}),g={...a,edge:i,color:u,disabled:v,disableFocusRipple:P,loading:s,loadingIndicator:m,size:C},y=M(g);return l.jsxs(N,{id:s?I:T,className:o.clsx(y.root,d),centerRipple:!0,focusRipple:!P,disabled:v||s,ref:r,...S,ownerState:g,children:[typeof s=="boolean"&&l.jsx("span",{className:y.loadingWrapper,style:{display:"contents"},children:l.jsx(U,{className:y.loadingIndicator,ownerState:g,children:s&&m})}),c]})});process.env.NODE_ENV!=="production"&&(R.propTypes={children:w.chainPropTypes(o.PropTypes.node,e=>f.Children.toArray(e.children).some(r=>f.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
2
|
+
`)):null),classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),disabled:o.PropTypes.bool,disableFocusRipple:o.PropTypes.bool,disableRipple:o.PropTypes.bool,edge:o.PropTypes.oneOf(["end","start",!1]),id:o.PropTypes.string,loading:o.PropTypes.bool,loadingIndicator:o.PropTypes.node,size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["small","medium","large"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});exports.IconButton=R;exports.getIconButtonUtilityClass=O;exports.iconButtonClasses=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const C=require("react"),e=require("./generateUtilityClasses-
|
|
1
|
+
"use strict";const C=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),P=require("./useFormControl-haP0iPhl.cjs"),I=require("./memoTheme-DrjvJtTP.cjs"),a=require("react/jsx-runtime"),y=require("./DefaultPropsProvider-wpBXjN8r.cjs"),O=require("./Typography-DPij13XT.cjs"),m=require("./capitalize-CEByPz9F.cjs");function A(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const T=A(C);function z(t){return e.generateUtilityClass("MuiInputAdornment",t)}const b=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var h;const S=(t,o)=>{const{ownerState:n}=t;return[o.root,o[`position${m.capitalize(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},q=t=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:s,size:p,variant:l}=t,c={root:["root",n&&"disablePointerEvents",s&&`position${m.capitalize(s)}`,l,r&&"hiddenLabel",p&&`size${m.capitalize(p)}`]};return y.composeClasses(c,z,o)},N=y.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:S})(I.memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${b.positionStart}&:not(.${b.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),g=T.forwardRef(function(o,n){const r=y.useDefaultProps({props:o,name:"MuiInputAdornment"}),{children:s,className:p,component:l="div",disablePointerEvents:c=!1,disableTypography:E=!1,position:v,variant:d,...j}=r,i=P.useFormControl()||{};let u=d;d&&i.variant&&process.env.NODE_ENV!=="production"&&d===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!u&&(u=i.variant);const f={...r,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:c,position:v,variant:u},x=q(f);return a.jsx(P.FormControlContext.Provider,{value:null,children:a.jsx(N,{as:l,ownerState:f,className:e.clsx(x.root,p),ref:n,...j,children:typeof s=="string"&&!E?a.jsx(O.Typography,{color:"textSecondary",children:s}):a.jsxs(T.Fragment,{children:[v==="start"?h||(h=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,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]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.InputAdornment=g;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { H as P, I as T, G as A, P as e } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
3
|
import { u as C, F as x } from "./useFormControl-CatNKXAi.js";
|
|
4
|
-
import { m as N } from "./memoTheme-
|
|
4
|
+
import { m as N } from "./memoTheme-CqmIydD-.js";
|
|
5
5
|
import { jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
7
|
-
import { T as w } from "./Typography-
|
|
8
|
-
import { c as u } from "./capitalize-
|
|
6
|
+
import { u as L, s as O, c as R } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
7
|
+
import { T as w } from "./Typography-SIQ6eleU.js";
|
|
8
|
+
import { c as u } from "./capitalize-3KLkrEtk.js";
|
|
9
9
|
function z(t) {
|
|
10
10
|
return T("MuiInputAdornment", t);
|
|
11
11
|
}
|
|
@@ -28,7 +28,7 @@ const j = (t, o) => {
|
|
|
28
28
|
root: ["root", n && "disablePointerEvents", s && `position${u(s)}`, p, i && "hiddenLabel", a && `size${u(a)}`]
|
|
29
29
|
};
|
|
30
30
|
return R(d, z, o);
|
|
31
|
-
}, M =
|
|
31
|
+
}, M = O("div", {
|
|
32
32
|
name: "MuiInputAdornment",
|
|
33
33
|
slot: "Root",
|
|
34
34
|
overridesResolver: j
|
|
@@ -72,7 +72,7 @@ const j = (t, o) => {
|
|
|
72
72
|
}
|
|
73
73
|
}]
|
|
74
74
|
}))), U = /* @__PURE__ */ h.forwardRef(function(o, n) {
|
|
75
|
-
const i =
|
|
75
|
+
const i = L({
|
|
76
76
|
props: o,
|
|
77
77
|
name: "MuiInputAdornment"
|
|
78
78
|
}), {
|
|
@@ -81,25 +81,25 @@ const j = (t, o) => {
|
|
|
81
81
|
component: p = "div",
|
|
82
82
|
disablePointerEvents: d = !1,
|
|
83
83
|
disableTypography: g = !1,
|
|
84
|
-
position:
|
|
84
|
+
position: v,
|
|
85
85
|
variant: c,
|
|
86
86
|
...E
|
|
87
87
|
} = i, r = C() || {};
|
|
88
88
|
let m = c;
|
|
89
|
-
c && r.variant && process.env.NODE_ENV !== "production" && c === r.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), m
|
|
90
|
-
const
|
|
89
|
+
c && r.variant && process.env.NODE_ENV !== "production" && c === r.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), r && !m && (m = r.variant);
|
|
90
|
+
const f = {
|
|
91
91
|
...i,
|
|
92
92
|
hiddenLabel: r.hiddenLabel,
|
|
93
93
|
size: r.size,
|
|
94
94
|
disablePointerEvents: d,
|
|
95
|
-
position:
|
|
95
|
+
position: v,
|
|
96
96
|
variant: m
|
|
97
|
-
}, I = F(
|
|
97
|
+
}, I = F(f);
|
|
98
98
|
return /* @__PURE__ */ l(x.Provider, {
|
|
99
99
|
value: null,
|
|
100
100
|
children: /* @__PURE__ */ l(M, {
|
|
101
101
|
as: p,
|
|
102
|
-
ownerState:
|
|
102
|
+
ownerState: f,
|
|
103
103
|
className: A(I.root, a),
|
|
104
104
|
ref: n,
|
|
105
105
|
...E,
|
|
@@ -107,10 +107,11 @@ const j = (t, o) => {
|
|
|
107
107
|
color: "textSecondary",
|
|
108
108
|
children: s
|
|
109
109
|
}) : /* @__PURE__ */ S(h.Fragment, {
|
|
110
|
-
children: [
|
|
110
|
+
children: [v === "start" ? (
|
|
111
111
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
112
112
|
y || (y = /* @__PURE__ */ l("span", {
|
|
113
113
|
className: "notranslate",
|
|
114
|
+
"aria-hidden": !0,
|
|
114
115
|
children: ""
|
|
115
116
|
}))
|
|
116
117
|
) : null, s]
|