@cgi-learning-hub/ui 1.3.3 → 1.3.4
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-BlKt7y1x.js +360 -0
- package/dist/Backdrop-vSE8W9jq.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DErdbtsw.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-DMYs7NTb.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-CiqVGfRs.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-D3dbHQM1.cjs} +1 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-DUPJVOlc.js} +232 -240
- package/dist/Card-Cnh4u4kb.cjs +1 -0
- package/dist/Card-mGRk1RuE.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aJ1r7ufI.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-s_RdgUlw.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CfODO7vI.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DHgcUb1c.cjs} +7 -7
- package/dist/DatePicker-Dyf9Vhld.js +10845 -0
- package/dist/DatePicker-juzW4bLC.cjs +14 -0
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +17 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-xJkZOrdv.js} +146 -143
- package/dist/Delete-BOQTx9ze.js +8 -0
- package/dist/Delete-DyzDL8-Y.cjs +1 -0
- package/dist/DialogContent-D1KFPXhr.js +602 -0
- package/dist/DialogContent-Dphl2SKX.cjs +1 -0
- package/dist/DialogTitle-AQ-YU9PH.js +134 -0
- package/dist/DialogTitle-C8AdXsDz.cjs +1 -0
- package/dist/Divider-Bdp8beK-.cjs +1 -0
- package/dist/Divider-C0R1SUa4.js +296 -0
- package/dist/FormControlLabel-BlO93LTi.cjs +1 -0
- package/dist/FormControlLabel-w-X91z27.js +261 -0
- package/dist/FormGroup-6NoANcYk.js +95 -0
- package/dist/FormGroup-D0zSGn42.cjs +1 -0
- package/dist/FormLabel-BkiH7wl7.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-CoLJ9tA8.js} +36 -42
- package/dist/Grow-DfACa72Q.cjs +1 -0
- package/dist/Grow-SW33sONG.js +193 -0
- package/dist/IconButton-DRs0xB4z.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DjeMTpI5.js} +5 -5
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-B1pggfEX.cjs} +1 -1
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-ByiVSgFT.js} +4 -4
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CvU0-Zg6.js} +59 -59
- package/dist/InputBase-Xfjv-RYp.cjs +3 -0
- package/dist/Link-Dmwt9wxb.js +266 -0
- package/dist/Link-Z_UCBvgV.cjs +1 -0
- package/dist/Menu-4U27Dst1.js +965 -0
- package/dist/Menu-DREdNbqu.cjs +7 -0
- package/dist/MenuItem-CN75Du-9.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-CqPsuuC1.js} +69 -74
- package/dist/Modal-DWqBsogu.cjs +2 -0
- package/dist/Modal-D_mqYIr2.js +750 -0
- package/dist/Paper-CjMuucS5.cjs +2 -0
- package/dist/Paper-D973Ow-i.js +185 -0
- package/dist/Popper-B8oNZqtn.js +1407 -0
- package/dist/Popper-hzM0y1hA.cjs +4 -0
- package/dist/Portal-BKbBRbWN.js +86 -0
- package/dist/Portal-Bv2VRYHH.cjs +1 -0
- package/dist/Radio-BrzQH9pY.js +312 -0
- package/dist/Radio-DxbXYNhR.cjs +1 -0
- package/dist/Select-CL4E8NNL.cjs +3 -0
- package/dist/Select-CgAPAUTr.js +2602 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-CYXQpKS2.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-WrITLr1B.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-CGa9A6SL.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-Cqh9rxOh.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-hvz89Dvu.js} +2185 -3518
- package/dist/TableSortLabel-mAzX4tAl.cjs +98 -0
- package/dist/Tabs-BNqwYd2G.cjs +4 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BPI2IyPx.js} +284 -282
- package/dist/{TextField-C-B529_r.js → TextField-C4nIxR_t.js} +24 -24
- package/dist/{TextField-BVAkADOb.cjs → TextField-Dy0Iblqt.cjs} +1 -1
- package/dist/Tooltip-Bdrv-e2a.js +720 -0
- package/dist/Tooltip-vg27N3PU.cjs +4 -0
- package/dist/{Typography-5OodZ94T.cjs → Typography-BF9bdWxl.cjs} +1 -1
- package/dist/{Typography-C_ESP41L.js → Typography-CUdlQxLM.js} +4 -4
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +12 -12
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -22
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.es.js +277 -265
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +140 -90
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-BMmqQ2z0.cjs} +1 -1
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CVd3Lo1D.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CyDs_RPD.cjs +1 -0
- package/dist/dividerClasses-kN_Ky2Bl.js +9 -0
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +1 -0
- package/dist/elementTypeAcceptingRef-modXfN2G.js +23 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-6YOo46ig.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-CHv0k-C6.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → identifier-Bn0tF6ls.js} +612 -608
- package/dist/{identifier-BQH88SE0.cjs → identifier-Dax8VlUh.cjs} +19 -19
- package/dist/index-BNojWn2E.js +2152 -0
- package/dist/index-C5dNuV-2.cjs +5 -0
- package/dist/{index-BUxqDIr9.js → index-CVpJYeY2.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-D3PBNx_m.cjs} +1 -1
- package/dist/{index-CNv8ppur.cjs → index-OLlWw08I.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-waINWr3i.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +277 -265
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-BPA1FjB4.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CMJVTZEg.js} +1 -1
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/refType-BmrOFNz6.js +7 -0
- package/dist/refType-Dm84STBj.cjs +1 -0
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-4nhUsl3a.cjs} +1 -1
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-DHoZOPOi.js} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-42jgZftI.cjs → useSlot-CJAXUvYJ.cjs} +1 -1
- package/dist/{useSlot-Co14PUn6.js → useSlot-t9oGnIgq.js} +2 -2
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-BIogn5Me.cjs} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-Bz4LKMiC.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-CBsFvF7I.js} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-L3EQmvnN.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-5Bku71LW.js} +2 -2
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-C692LOYf.cjs} +1 -1
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-DNFKz8wS.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-I9EHeqzU.js} +3 -3
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-3Y5y4gWq.js} +4 -4
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-CxOQget6.cjs} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-CE_a8glN.js +391 -0
- package/dist/utils-CusX8Edy.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const w=require("react"),o=require("./identifier-Dax8VlUh.cjs"),N=require("./useTheme-BIogn5Me.cjs"),q=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-Biv7NHew.cjs"),O=require("./memoTheme-BPA1FjB4.cjs"),$=require("./chainPropTypes-CEUi6Jb4.cjs");function j(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const R=j(w);function C(e){const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return r}}function y(e,r,t,a){const n=e[r];if(n==null||!Number.isInteger(n)){const i=C(n);return new RangeError(`Invalid ${a} \`${r}\` of type \`${i}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function P(e,r,...t){return e[r]===void 0?null:y(e,r,...t)}function l(){return null}P.isRequired=y;l.isRequired=l;const T=process.env.NODE_ENV==="production"?l:P;function b(e){return o.generateUtilityClass("MuiPaper",e)}const x=o.generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),E=e=>{const{square:r,elevation:t,variant:a,classes:n}=e,i={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${t}`]};return p.composeClasses(i,b,n)},M=p.styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],!t.square&&r.rounded,t.variant==="elevation"&&r[`elevation${t.elevation}`]]}})(O.memoTheme(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),m=R.forwardRef(function(r,t){var f;const a=p.useDefaultProps({props:r,name:"MuiPaper"}),n=N.useTheme(),{className:i,component:u="div",elevation:s=1,square:g=!1,variant:c="elevation",...v}=a,d={...a,component:u,elevation:s,square:g,variant:c},h=E(d);return process.env.NODE_ENV!=="production"&&n.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
2
|
+
`)),q.jsx(M,{as:u,ownerState:d,className:o.clsx(h.root,i),ref:t,...v,style:{...c==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[s],...n.vars&&{"--Paper-overlay":(f=n.vars.overlays)==null?void 0:f[s]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${o.alpha("#fff",o.getOverlayAlpha(s))}, ${o.alpha("#fff",o.getOverlayAlpha(s))})`}},...v.style}})});process.env.NODE_ENV!=="production"&&(m.propTypes={children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,component:o.PropTypes.elementType,elevation:$.chainPropTypes(T,e=>{const{elevation:r,variant:t}=e;return r>0&&t==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.PropTypes.bool,style:o.PropTypes.object,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]),variant:o.PropTypes.oneOfType([o.PropTypes.oneOf(["elevation","outlined"]),o.PropTypes.string])});exports.Paper=m;exports.getPaperUtilityClass=b;exports.integerPropType=T;exports.paperClasses=x;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { H as w, I as N, G as T, n as f, B as m, P as a } from "./identifier-Bn0tF6ls.js";
|
|
3
|
+
import { u as $ } from "./useTheme-L3EQmvnN.js";
|
|
4
|
+
import { jsx as R } from "react/jsx-runtime";
|
|
5
|
+
import { s as x, u as E, c as O } from "./DefaultPropsProvider-xJkZOrdv.js";
|
|
6
|
+
import { m as q } from "./memoTheme-CMJVTZEg.js";
|
|
7
|
+
import { c as C } from "./chainPropTypes-D9lkm76m.js";
|
|
8
|
+
function I(e) {
|
|
9
|
+
const o = typeof e;
|
|
10
|
+
switch (o) {
|
|
11
|
+
case "number":
|
|
12
|
+
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
13
|
+
case "object":
|
|
14
|
+
return e === null ? "null" : e.constructor.name;
|
|
15
|
+
default:
|
|
16
|
+
return o;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function y(e, o, t, n) {
|
|
20
|
+
const r = e[o];
|
|
21
|
+
if (r == null || !Number.isInteger(r)) {
|
|
22
|
+
const s = I(r);
|
|
23
|
+
return new RangeError(`Invalid ${n} \`${o}\` of type \`${s}\` supplied to \`${t}\`, expected \`integer\`.`);
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
function b(e, o, ...t) {
|
|
28
|
+
return e[o] === void 0 ? null : y(e, o, ...t);
|
|
29
|
+
}
|
|
30
|
+
function l() {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
b.isRequired = y;
|
|
34
|
+
l.isRequired = l;
|
|
35
|
+
const j = process.env.NODE_ENV === "production" ? l : b;
|
|
36
|
+
function M(e) {
|
|
37
|
+
return w("MuiPaper", e);
|
|
38
|
+
}
|
|
39
|
+
const G = N("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]), V = (e) => {
|
|
40
|
+
const {
|
|
41
|
+
square: o,
|
|
42
|
+
elevation: t,
|
|
43
|
+
variant: n,
|
|
44
|
+
classes: r
|
|
45
|
+
} = e, s = {
|
|
46
|
+
root: ["root", n, !o && "rounded", n === "elevation" && `elevation${t}`]
|
|
47
|
+
};
|
|
48
|
+
return O(s, M, r);
|
|
49
|
+
}, U = x("div", {
|
|
50
|
+
name: "MuiPaper",
|
|
51
|
+
slot: "Root",
|
|
52
|
+
overridesResolver: (e, o) => {
|
|
53
|
+
const {
|
|
54
|
+
ownerState: t
|
|
55
|
+
} = e;
|
|
56
|
+
return [o.root, o[t.variant], !t.square && o.rounded, t.variant === "elevation" && o[`elevation${t.elevation}`]];
|
|
57
|
+
}
|
|
58
|
+
})(q(({
|
|
59
|
+
theme: e
|
|
60
|
+
}) => ({
|
|
61
|
+
backgroundColor: (e.vars || e).palette.background.paper,
|
|
62
|
+
color: (e.vars || e).palette.text.primary,
|
|
63
|
+
transition: e.transitions.create("box-shadow"),
|
|
64
|
+
variants: [{
|
|
65
|
+
props: ({
|
|
66
|
+
ownerState: o
|
|
67
|
+
}) => !o.square,
|
|
68
|
+
style: {
|
|
69
|
+
borderRadius: e.shape.borderRadius
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
props: {
|
|
73
|
+
variant: "outlined"
|
|
74
|
+
},
|
|
75
|
+
style: {
|
|
76
|
+
border: `1px solid ${(e.vars || e).palette.divider}`
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
props: {
|
|
80
|
+
variant: "elevation"
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
boxShadow: "var(--Paper-shadow)",
|
|
84
|
+
backgroundImage: "var(--Paper-overlay)"
|
|
85
|
+
}
|
|
86
|
+
}]
|
|
87
|
+
}))), k = /* @__PURE__ */ h.forwardRef(function(o, t) {
|
|
88
|
+
var d;
|
|
89
|
+
const n = E({
|
|
90
|
+
props: o,
|
|
91
|
+
name: "MuiPaper"
|
|
92
|
+
}), r = $(), {
|
|
93
|
+
className: s,
|
|
94
|
+
component: p = "div",
|
|
95
|
+
elevation: i = 1,
|
|
96
|
+
square: P = !1,
|
|
97
|
+
variant: u = "elevation",
|
|
98
|
+
...v
|
|
99
|
+
} = n, c = {
|
|
100
|
+
...n,
|
|
101
|
+
component: p,
|
|
102
|
+
elevation: i,
|
|
103
|
+
square: P,
|
|
104
|
+
variant: u
|
|
105
|
+
}, g = V(c);
|
|
106
|
+
return process.env.NODE_ENV !== "production" && r.shadows[i] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${i}]\` is defined.`].join(`
|
|
107
|
+
`)), /* @__PURE__ */ R(U, {
|
|
108
|
+
as: p,
|
|
109
|
+
ownerState: c,
|
|
110
|
+
className: T(g.root, s),
|
|
111
|
+
ref: t,
|
|
112
|
+
...v,
|
|
113
|
+
style: {
|
|
114
|
+
...u === "elevation" && {
|
|
115
|
+
"--Paper-shadow": (r.vars || r).shadows[i],
|
|
116
|
+
...r.vars && {
|
|
117
|
+
"--Paper-overlay": (d = r.vars.overlays) == null ? void 0 : d[i]
|
|
118
|
+
},
|
|
119
|
+
...!r.vars && r.palette.mode === "dark" && {
|
|
120
|
+
"--Paper-overlay": `linear-gradient(${f("#fff", m(i))}, ${f("#fff", m(i))})`
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
...v.style
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
128
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
129
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
130
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
131
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
132
|
+
/**
|
|
133
|
+
* The content of the component.
|
|
134
|
+
*/
|
|
135
|
+
children: a.node,
|
|
136
|
+
/**
|
|
137
|
+
* Override or extend the styles applied to the component.
|
|
138
|
+
*/
|
|
139
|
+
classes: a.object,
|
|
140
|
+
/**
|
|
141
|
+
* @ignore
|
|
142
|
+
*/
|
|
143
|
+
className: a.string,
|
|
144
|
+
/**
|
|
145
|
+
* The component used for the root node.
|
|
146
|
+
* Either a string to use a HTML element or a component.
|
|
147
|
+
*/
|
|
148
|
+
component: a.elementType,
|
|
149
|
+
/**
|
|
150
|
+
* Shadow depth, corresponds to `dp` in the spec.
|
|
151
|
+
* It accepts values between 0 and 24 inclusive.
|
|
152
|
+
* @default 1
|
|
153
|
+
*/
|
|
154
|
+
elevation: C(j, (e) => {
|
|
155
|
+
const {
|
|
156
|
+
elevation: o,
|
|
157
|
+
variant: t
|
|
158
|
+
} = e;
|
|
159
|
+
return o > 0 && t === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
160
|
+
}),
|
|
161
|
+
/**
|
|
162
|
+
* If `true`, rounded corners are disabled.
|
|
163
|
+
* @default false
|
|
164
|
+
*/
|
|
165
|
+
square: a.bool,
|
|
166
|
+
/**
|
|
167
|
+
* @ignore
|
|
168
|
+
*/
|
|
169
|
+
style: a.object,
|
|
170
|
+
/**
|
|
171
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
172
|
+
*/
|
|
173
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
174
|
+
/**
|
|
175
|
+
* The variant to use.
|
|
176
|
+
* @default 'elevation'
|
|
177
|
+
*/
|
|
178
|
+
variant: a.oneOfType([a.oneOf(["elevation", "outlined"]), a.string])
|
|
179
|
+
});
|
|
180
|
+
export {
|
|
181
|
+
k as P,
|
|
182
|
+
M as g,
|
|
183
|
+
j as i,
|
|
184
|
+
G as p
|
|
185
|
+
};
|