@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
package/dist/Dialog-D_lS4J_M.js
DELETED
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import { I as X, H as Y, G as x, P as e } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
-
import { u as z } from "./useTheme-DyaNKf4e.js";
|
|
4
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
-
import { s as d, u as _, c as q } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
6
|
-
import { m as G } from "./memoTheme-D7Fyh_3C.js";
|
|
7
|
-
import { B as J, F as Q } from "./Backdrop-DcDd6WZF.js";
|
|
8
|
-
import { M as Z } from "./Modal-brWBFdK7.js";
|
|
9
|
-
import { c as i } from "./capitalize-CkF8kU4n.js";
|
|
10
|
-
import { P } from "./Paper-BG4Vk_Um.js";
|
|
11
|
-
import { u as ee } from "./useId-CK6Kn3Tn.js";
|
|
12
|
-
const w = /* @__PURE__ */ c.createContext({});
|
|
13
|
-
process.env.NODE_ENV !== "production" && (w.displayName = "DialogContext");
|
|
14
|
-
function oe(r) {
|
|
15
|
-
return Y("MuiDialog", r);
|
|
16
|
-
}
|
|
17
|
-
const y = X("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), re = d(J, {
|
|
18
|
-
name: "MuiDialog",
|
|
19
|
-
slot: "Backdrop",
|
|
20
|
-
overrides: (r, o) => o.backdrop
|
|
21
|
-
})({
|
|
22
|
-
// Improve scrollable dialog support.
|
|
23
|
-
zIndex: -1
|
|
24
|
-
}), ae = (r) => {
|
|
25
|
-
const {
|
|
26
|
-
classes: o,
|
|
27
|
-
scroll: a,
|
|
28
|
-
maxWidth: n,
|
|
29
|
-
fullWidth: s,
|
|
30
|
-
fullScreen: u
|
|
31
|
-
} = r, m = {
|
|
32
|
-
root: ["root"],
|
|
33
|
-
container: ["container", `scroll${i(a)}`],
|
|
34
|
-
paper: ["paper", `paperScroll${i(a)}`, `paperWidth${i(String(n))}`, s && "paperFullWidth", u && "paperFullScreen"]
|
|
35
|
-
};
|
|
36
|
-
return q(m, oe, o);
|
|
37
|
-
}, te = d(Z, {
|
|
38
|
-
name: "MuiDialog",
|
|
39
|
-
slot: "Root",
|
|
40
|
-
overridesResolver: (r, o) => o.root
|
|
41
|
-
})({
|
|
42
|
-
"@media print": {
|
|
43
|
-
// Use !important to override the Modal inline-style.
|
|
44
|
-
position: "absolute !important"
|
|
45
|
-
}
|
|
46
|
-
}), ie = d("div", {
|
|
47
|
-
name: "MuiDialog",
|
|
48
|
-
slot: "Container",
|
|
49
|
-
overridesResolver: (r, o) => {
|
|
50
|
-
const {
|
|
51
|
-
ownerState: a
|
|
52
|
-
} = r;
|
|
53
|
-
return [o.container, o[`scroll${i(a.scroll)}`]];
|
|
54
|
-
}
|
|
55
|
-
})({
|
|
56
|
-
height: "100%",
|
|
57
|
-
"@media print": {
|
|
58
|
-
height: "auto"
|
|
59
|
-
},
|
|
60
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
61
|
-
outline: 0,
|
|
62
|
-
variants: [{
|
|
63
|
-
props: {
|
|
64
|
-
scroll: "paper"
|
|
65
|
-
},
|
|
66
|
-
style: {
|
|
67
|
-
display: "flex",
|
|
68
|
-
justifyContent: "center",
|
|
69
|
-
alignItems: "center"
|
|
70
|
-
}
|
|
71
|
-
}, {
|
|
72
|
-
props: {
|
|
73
|
-
scroll: "body"
|
|
74
|
-
},
|
|
75
|
-
style: {
|
|
76
|
-
overflowY: "auto",
|
|
77
|
-
overflowX: "hidden",
|
|
78
|
-
textAlign: "center",
|
|
79
|
-
"&::after": {
|
|
80
|
-
content: '""',
|
|
81
|
-
display: "inline-block",
|
|
82
|
-
verticalAlign: "middle",
|
|
83
|
-
height: "100%",
|
|
84
|
-
width: "0"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}]
|
|
88
|
-
}), le = d(P, {
|
|
89
|
-
name: "MuiDialog",
|
|
90
|
-
slot: "Paper",
|
|
91
|
-
overridesResolver: (r, o) => {
|
|
92
|
-
const {
|
|
93
|
-
ownerState: a
|
|
94
|
-
} = r;
|
|
95
|
-
return [o.paper, o[`scrollPaper${i(a.scroll)}`], o[`paperWidth${i(String(a.maxWidth))}`], a.fullWidth && o.paperFullWidth, a.fullScreen && o.paperFullScreen];
|
|
96
|
-
}
|
|
97
|
-
})(G(({
|
|
98
|
-
theme: r
|
|
99
|
-
}) => ({
|
|
100
|
-
margin: 32,
|
|
101
|
-
position: "relative",
|
|
102
|
-
overflowY: "auto",
|
|
103
|
-
"@media print": {
|
|
104
|
-
overflowY: "visible",
|
|
105
|
-
boxShadow: "none"
|
|
106
|
-
},
|
|
107
|
-
variants: [{
|
|
108
|
-
props: {
|
|
109
|
-
scroll: "paper"
|
|
110
|
-
},
|
|
111
|
-
style: {
|
|
112
|
-
display: "flex",
|
|
113
|
-
flexDirection: "column",
|
|
114
|
-
maxHeight: "calc(100% - 64px)"
|
|
115
|
-
}
|
|
116
|
-
}, {
|
|
117
|
-
props: {
|
|
118
|
-
scroll: "body"
|
|
119
|
-
},
|
|
120
|
-
style: {
|
|
121
|
-
display: "inline-block",
|
|
122
|
-
verticalAlign: "middle",
|
|
123
|
-
textAlign: "initial"
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
props: ({
|
|
127
|
-
ownerState: o
|
|
128
|
-
}) => !o.maxWidth,
|
|
129
|
-
style: {
|
|
130
|
-
maxWidth: "calc(100% - 64px)"
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
props: {
|
|
134
|
-
maxWidth: "xs"
|
|
135
|
-
},
|
|
136
|
-
style: {
|
|
137
|
-
maxWidth: r.breakpoints.unit === "px" ? Math.max(r.breakpoints.values.xs, 444) : `max(${r.breakpoints.values.xs}${r.breakpoints.unit}, 444px)`,
|
|
138
|
-
[`&.${y.paperScrollBody}`]: {
|
|
139
|
-
[r.breakpoints.down(Math.max(r.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
140
|
-
maxWidth: "calc(100% - 64px)"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}, ...Object.keys(r.breakpoints.values).filter((o) => o !== "xs").map((o) => ({
|
|
145
|
-
props: {
|
|
146
|
-
maxWidth: o
|
|
147
|
-
},
|
|
148
|
-
style: {
|
|
149
|
-
maxWidth: `${r.breakpoints.values[o]}${r.breakpoints.unit}`,
|
|
150
|
-
[`&.${y.paperScrollBody}`]: {
|
|
151
|
-
[r.breakpoints.down(r.breakpoints.values[o] + 32 * 2)]: {
|
|
152
|
-
maxWidth: "calc(100% - 64px)"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
})), {
|
|
157
|
-
props: ({
|
|
158
|
-
ownerState: o
|
|
159
|
-
}) => o.fullWidth,
|
|
160
|
-
style: {
|
|
161
|
-
width: "calc(100% - 64px)"
|
|
162
|
-
}
|
|
163
|
-
}, {
|
|
164
|
-
props: ({
|
|
165
|
-
ownerState: o
|
|
166
|
-
}) => o.fullScreen,
|
|
167
|
-
style: {
|
|
168
|
-
margin: 0,
|
|
169
|
-
width: "100%",
|
|
170
|
-
maxWidth: "100%",
|
|
171
|
-
height: "100%",
|
|
172
|
-
maxHeight: "none",
|
|
173
|
-
borderRadius: 0,
|
|
174
|
-
[`&.${y.paperScrollBody}`]: {
|
|
175
|
-
margin: 0,
|
|
176
|
-
maxWidth: "100%"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}]
|
|
180
|
-
}))), ne = /* @__PURE__ */ c.forwardRef(function(o, a) {
|
|
181
|
-
const n = _({
|
|
182
|
-
props: o,
|
|
183
|
-
name: "MuiDialog"
|
|
184
|
-
}), s = z(), u = {
|
|
185
|
-
enter: s.transitions.duration.enteringScreen,
|
|
186
|
-
exit: s.transitions.duration.leavingScreen
|
|
187
|
-
}, {
|
|
188
|
-
"aria-describedby": m,
|
|
189
|
-
"aria-labelledby": T,
|
|
190
|
-
"aria-modal": B = !0,
|
|
191
|
-
BackdropComponent: M,
|
|
192
|
-
BackdropProps: $,
|
|
193
|
-
children: O,
|
|
194
|
-
className: N,
|
|
195
|
-
disableEscapeKeyDown: k = !1,
|
|
196
|
-
fullScreen: R = !1,
|
|
197
|
-
fullWidth: j = !1,
|
|
198
|
-
maxWidth: F = "sm",
|
|
199
|
-
onBackdropClick: C,
|
|
200
|
-
onClick: D,
|
|
201
|
-
onClose: f,
|
|
202
|
-
open: v,
|
|
203
|
-
PaperComponent: E = P,
|
|
204
|
-
PaperProps: W = {},
|
|
205
|
-
scroll: A = "paper",
|
|
206
|
-
TransitionComponent: I = Q,
|
|
207
|
-
transitionDuration: S = u,
|
|
208
|
-
TransitionProps: U,
|
|
209
|
-
...H
|
|
210
|
-
} = n, p = {
|
|
211
|
-
...n,
|
|
212
|
-
disableEscapeKeyDown: k,
|
|
213
|
-
fullScreen: R,
|
|
214
|
-
fullWidth: j,
|
|
215
|
-
maxWidth: F,
|
|
216
|
-
scroll: A
|
|
217
|
-
}, b = ae(p), g = c.useRef(), K = (t) => {
|
|
218
|
-
g.current = t.target === t.currentTarget;
|
|
219
|
-
}, L = (t) => {
|
|
220
|
-
D && D(t), g.current && (g.current = null, C && C(t), f && f(t, "backdropClick"));
|
|
221
|
-
}, h = ee(T), V = c.useMemo(() => ({
|
|
222
|
-
titleId: h
|
|
223
|
-
}), [h]);
|
|
224
|
-
return /* @__PURE__ */ l(te, {
|
|
225
|
-
className: x(b.root, N),
|
|
226
|
-
closeAfterTransition: !0,
|
|
227
|
-
components: {
|
|
228
|
-
Backdrop: re
|
|
229
|
-
},
|
|
230
|
-
componentsProps: {
|
|
231
|
-
backdrop: {
|
|
232
|
-
transitionDuration: S,
|
|
233
|
-
as: M,
|
|
234
|
-
...$
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
disableEscapeKeyDown: k,
|
|
238
|
-
onClose: f,
|
|
239
|
-
open: v,
|
|
240
|
-
ref: a,
|
|
241
|
-
onClick: L,
|
|
242
|
-
ownerState: p,
|
|
243
|
-
...H,
|
|
244
|
-
children: /* @__PURE__ */ l(I, {
|
|
245
|
-
appear: !0,
|
|
246
|
-
in: v,
|
|
247
|
-
timeout: S,
|
|
248
|
-
role: "presentation",
|
|
249
|
-
...U,
|
|
250
|
-
children: /* @__PURE__ */ l(ie, {
|
|
251
|
-
className: x(b.container),
|
|
252
|
-
onMouseDown: K,
|
|
253
|
-
ownerState: p,
|
|
254
|
-
children: /* @__PURE__ */ l(le, {
|
|
255
|
-
as: E,
|
|
256
|
-
elevation: 24,
|
|
257
|
-
role: "dialog",
|
|
258
|
-
"aria-describedby": m,
|
|
259
|
-
"aria-labelledby": h,
|
|
260
|
-
"aria-modal": B,
|
|
261
|
-
...W,
|
|
262
|
-
className: x(b.paper, W.className),
|
|
263
|
-
ownerState: p,
|
|
264
|
-
children: /* @__PURE__ */ l(w.Provider, {
|
|
265
|
-
value: V,
|
|
266
|
-
children: O
|
|
267
|
-
})
|
|
268
|
-
})
|
|
269
|
-
})
|
|
270
|
-
})
|
|
271
|
-
});
|
|
272
|
-
});
|
|
273
|
-
process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
274
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
275
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
276
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
277
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
278
|
-
/**
|
|
279
|
-
* The id(s) of the element(s) that describe the dialog.
|
|
280
|
-
*/
|
|
281
|
-
"aria-describedby": e.string,
|
|
282
|
-
/**
|
|
283
|
-
* The id(s) of the element(s) that label the dialog.
|
|
284
|
-
*/
|
|
285
|
-
"aria-labelledby": e.string,
|
|
286
|
-
/**
|
|
287
|
-
* Informs assistive technologies that the element is modal.
|
|
288
|
-
* It's added on the element with role="dialog".
|
|
289
|
-
* @default true
|
|
290
|
-
*/
|
|
291
|
-
"aria-modal": e.oneOfType([e.oneOf(["false", "true"]), e.bool]),
|
|
292
|
-
/**
|
|
293
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
294
|
-
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
295
|
-
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
296
|
-
* @default styled(Backdrop, {
|
|
297
|
-
* name: 'MuiModal',
|
|
298
|
-
* slot: 'Backdrop',
|
|
299
|
-
* overridesResolver: (props, styles) => {
|
|
300
|
-
* return styles.backdrop;
|
|
301
|
-
* },
|
|
302
|
-
* })({
|
|
303
|
-
* zIndex: -1,
|
|
304
|
-
* })
|
|
305
|
-
*/
|
|
306
|
-
BackdropComponent: e.elementType,
|
|
307
|
-
/**
|
|
308
|
-
* @ignore
|
|
309
|
-
*/
|
|
310
|
-
BackdropProps: e.object,
|
|
311
|
-
/**
|
|
312
|
-
* Dialog children, usually the included sub-components.
|
|
313
|
-
*/
|
|
314
|
-
children: e.node,
|
|
315
|
-
/**
|
|
316
|
-
* Override or extend the styles applied to the component.
|
|
317
|
-
*/
|
|
318
|
-
classes: e.object,
|
|
319
|
-
/**
|
|
320
|
-
* @ignore
|
|
321
|
-
*/
|
|
322
|
-
className: e.string,
|
|
323
|
-
/**
|
|
324
|
-
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
325
|
-
* @default false
|
|
326
|
-
*/
|
|
327
|
-
disableEscapeKeyDown: e.bool,
|
|
328
|
-
/**
|
|
329
|
-
* If `true`, the dialog is full-screen.
|
|
330
|
-
* @default false
|
|
331
|
-
*/
|
|
332
|
-
fullScreen: e.bool,
|
|
333
|
-
/**
|
|
334
|
-
* If `true`, the dialog stretches to `maxWidth`.
|
|
335
|
-
*
|
|
336
|
-
* Notice that the dialog width grow is limited by the default margin.
|
|
337
|
-
* @default false
|
|
338
|
-
*/
|
|
339
|
-
fullWidth: e.bool,
|
|
340
|
-
/**
|
|
341
|
-
* Determine the max-width of the dialog.
|
|
342
|
-
* The dialog width grows with the size of the screen.
|
|
343
|
-
* Set to `false` to disable `maxWidth`.
|
|
344
|
-
* @default 'sm'
|
|
345
|
-
*/
|
|
346
|
-
maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
|
|
347
|
-
/**
|
|
348
|
-
* Callback fired when the backdrop is clicked.
|
|
349
|
-
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
350
|
-
*/
|
|
351
|
-
onBackdropClick: e.func,
|
|
352
|
-
/**
|
|
353
|
-
* @ignore
|
|
354
|
-
*/
|
|
355
|
-
onClick: e.func,
|
|
356
|
-
/**
|
|
357
|
-
* Callback fired when the component requests to be closed.
|
|
358
|
-
*
|
|
359
|
-
* @param {object} event The event source of the callback.
|
|
360
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
361
|
-
*/
|
|
362
|
-
onClose: e.func,
|
|
363
|
-
/**
|
|
364
|
-
* If `true`, the component is shown.
|
|
365
|
-
*/
|
|
366
|
-
open: e.bool.isRequired,
|
|
367
|
-
/**
|
|
368
|
-
* The component used to render the body of the dialog.
|
|
369
|
-
* @default Paper
|
|
370
|
-
*/
|
|
371
|
-
PaperComponent: e.elementType,
|
|
372
|
-
/**
|
|
373
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
374
|
-
* @default {}
|
|
375
|
-
*/
|
|
376
|
-
PaperProps: e.object,
|
|
377
|
-
/**
|
|
378
|
-
* Determine the container for scrolling the dialog.
|
|
379
|
-
* @default 'paper'
|
|
380
|
-
*/
|
|
381
|
-
scroll: e.oneOf(["body", "paper"]),
|
|
382
|
-
/**
|
|
383
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
384
|
-
*/
|
|
385
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
386
|
-
/**
|
|
387
|
-
* The component used for the transition.
|
|
388
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
389
|
-
* @default Fade
|
|
390
|
-
*/
|
|
391
|
-
TransitionComponent: e.elementType,
|
|
392
|
-
/**
|
|
393
|
-
* The duration for the transition, in milliseconds.
|
|
394
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
395
|
-
* @default {
|
|
396
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
397
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
398
|
-
* }
|
|
399
|
-
*/
|
|
400
|
-
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
401
|
-
appear: e.number,
|
|
402
|
-
enter: e.number,
|
|
403
|
-
exit: e.number
|
|
404
|
-
})]),
|
|
405
|
-
/**
|
|
406
|
-
* Props applied to the transition element.
|
|
407
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
408
|
-
*/
|
|
409
|
-
TransitionProps: e.object
|
|
410
|
-
});
|
|
411
|
-
export {
|
|
412
|
-
ne as D,
|
|
413
|
-
w as a,
|
|
414
|
-
y as d
|
|
415
|
-
};
|
package/dist/Dialog-yOrNcHbG.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const V=require("react"),e=require("./generateUtilityClasses-B_H9HEmg.cjs"),X=require("./useTheme-Cy5kyKJF.cjs"),n=require("react/jsx-runtime"),i=require("./DefaultPropsProvider-3KMGupjb.cjs"),Y=require("./memoTheme-Bdg0Y_2O.cjs"),S=require("./Backdrop-CvufxHMY.cjs"),H=require("./Modal-DImrEpYJ.cjs"),p=require("./capitalize-B3GG7Wn6.cjs"),W=require("./Paper-Cr56xkCr.cjs"),G=require("./useId-DNXtOFeX.cjs");function J(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const t=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(o,a,t.get?t:{enumerable:!0,get:()=>r[a]})}}return o.default=r,Object.freeze(o)}const d=J(V),g=d.createContext({});process.env.NODE_ENV!=="production"&&(g.displayName="DialogContext");function Q(r){return e.generateUtilityClass("MuiDialog",r)}const u=e.generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Z=i.styled(S.Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(r,o)=>o.backdrop})({zIndex:-1}),ee=r=>{const{classes:o,scroll:a,maxWidth:t,fullWidth:l,fullScreen:y}=r,m={root:["root"],container:["container",`scroll${p.capitalize(a)}`],paper:["paper",`paperScroll${p.capitalize(a)}`,`paperWidth${p.capitalize(String(t))}`,l&&"paperFullWidth",y&&"paperFullScreen"]};return i.composeClasses(m,Q,o)},oe=i.styled(H.Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(r,o)=>o.root})({"@media print":{position:"absolute !important"}}),re=i.styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(r,o)=>{const{ownerState:a}=r;return[o.container,o[`scroll${p.capitalize(a.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ae=i.styled(W.Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(r,o)=>{const{ownerState:a}=r;return[o.paper,o[`scrollPaper${p.capitalize(a.scroll)}`],o[`paperWidth${p.capitalize(String(a.maxWidth))}`],a.fullWidth&&o.paperFullWidth,a.fullScreen&&o.paperFullScreen]}})(Y.memoTheme(({theme:r})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:o})=>!o.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:r.breakpoints.unit==="px"?Math.max(r.breakpoints.values.xs,444):`max(${r.breakpoints.values.xs}${r.breakpoints.unit}, 444px)`,[`&.${u.paperScrollBody}`]:{[r.breakpoints.down(Math.max(r.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(r.breakpoints.values).filter(o=>o!=="xs").map(o=>({props:{maxWidth:o},style:{maxWidth:`${r.breakpoints.values[o]}${r.breakpoints.unit}`,[`&.${u.paperScrollBody}`]:{[r.breakpoints.down(r.breakpoints.values[o]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:o})=>o.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:o})=>o.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${u.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),w=d.forwardRef(function(o,a){const t=i.useDefaultProps({props:o,name:"MuiDialog"}),l=X.useTheme(),y={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":j,"aria-modal":B=!0,BackdropComponent:M,BackdropProps:O,children:$,className:q,disableEscapeKeyDown:x=!1,fullScreen:N=!1,fullWidth:R=!1,maxWidth:z="sm",onBackdropClick:h,onClick:k,onClose:b,open:D,PaperComponent:F=W.Paper,PaperProps:C={},scroll:E="paper",TransitionComponent:A=S.Fade,transitionDuration:v=y,TransitionProps:I,...U}=t,c={...t,disableEscapeKeyDown:x,fullScreen:N,fullWidth:R,maxWidth:z,scroll:E},P=ee(c),f=d.useRef(),_=s=>{f.current=s.target===s.currentTarget},K=s=>{k&&k(s),f.current&&(f.current=null,h&&h(s),b&&b(s,"backdropClick"))},T=G.useId(j),L=d.useMemo(()=>({titleId:T}),[T]);return n.jsx(oe,{className:e.clsx(P.root,q),closeAfterTransition:!0,components:{Backdrop:Z},componentsProps:{backdrop:{transitionDuration:v,as:M,...O}},disableEscapeKeyDown:x,onClose:b,open:D,ref:a,onClick:K,ownerState:c,...U,children:n.jsx(A,{appear:!0,in:D,timeout:v,role:"presentation",...I,children:n.jsx(re,{className:e.clsx(P.container),onMouseDown:_,ownerState:c,children:n.jsx(ae,{as:F,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":T,"aria-modal":B,...C,className:e.clsx(P.paper,C.className),ownerState:c,children:n.jsx(g.Provider,{value:L,children:$})})})})})});process.env.NODE_ENV!=="production"&&(w.propTypes={"aria-describedby":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,"aria-modal":e.PropTypes.oneOfType([e.PropTypes.oneOf(["false","true"]),e.PropTypes.bool]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableEscapeKeyDown:e.PropTypes.bool,fullScreen:e.PropTypes.bool,fullWidth:e.PropTypes.bool,maxWidth:e.PropTypes.oneOfType([e.PropTypes.oneOf(["xs","sm","md","lg","xl",!1]),e.PropTypes.string]),onBackdropClick:e.PropTypes.func,onClick:e.PropTypes.func,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperComponent:e.PropTypes.elementType,PaperProps:e.PropTypes.object,scroll:e.PropTypes.oneOf(["body","paper"]),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]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});exports.Dialog=w;exports.DialogContext=g;exports.dialogClasses=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const z=require("react"),e=require("./generateUtilityClasses-B_H9HEmg.cjs"),v=require("./memoTheme-Bdg0Y_2O.cjs"),E=require("./formControlState-CuX6WjAX.cjs"),_=require("./useSlot-CByalpSD.cjs"),u=require("react/jsx-runtime"),m=require("./DefaultPropsProvider-3KMGupjb.cjs"),L=require("./capitalize-B3GG7Wn6.cjs"),A=require("./useFormControl-haP0iPhl.cjs"),C=require("./Typography-DfRMDngd.cjs"),B=require("./refType-CoaxQOPt.cjs");function H(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const q=H(z);function j(o){return e.generateUtilityClass("MuiFormControlLabel",o)}const a=e.generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),I=o=>{const{classes:r,disabled:t,labelPlacement:s,error:b,required:y}=o,P={root:["root",t&&"disabled",`labelPlacement${L.capitalize(s)}`,b&&"error",y&&"required"],label:["label",t&&"disabled"],asterisk:["asterisk",b&&"error"]};return m.composeClasses(P,j,r)},V=m.styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[{[`& .${a.label}`]:r.label},r.root,r[`labelPlacement${L.capitalize(t.labelPlacement)}`]]}})(v.memoTheme(({theme:o})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${a.disabled}`]:{cursor:"default"},[`& .${a.label}`]:{[`&.${a.disabled}`]:{color:(o.vars||o).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),W=m.styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(v.memoTheme(({theme:o})=>({[`&.${a.error}`]:{color:(o.vars||o).palette.error.main}}))),x=q.forwardRef(function(r,t){const s=m.useDefaultProps({props:r,name:"MuiFormControlLabel"}),{checked:b,className:y,componentsProps:P={},control:n,disabled:R,disableTypography:F,inputRef:G,label:O,labelPlacement:S="end",name:J,onChange:K,required:k,slots:N={},slotProps:w={},value:Q,...D}=s,p=A.useFormControl(),g=R??n.props.disabled??(p==null?void 0:p.disabled),f=k??n.props.required,h={disabled:g,required:f};["checked","name","onChange","value","inputRef"].forEach(d=>{typeof n.props[d]>"u"&&typeof s[d]<"u"&&(h[d]=s[d])});const $=E.formControlState({props:s,muiFormControl:p,states:["error"]}),i={...s,disabled:g,labelPlacement:S,required:f,error:$.error},T=I(i),M={slots:N,slotProps:{...P,...w}},[U,c]=_.useSlot("typography",{elementType:C.Typography,externalForwardedProps:M,ownerState:i});let l=O;return l!=null&&l.type!==C.Typography&&!F&&(l=u.jsx(U,{component:"span",...c,className:e.clsx(T.label,c==null?void 0:c.className),children:l})),u.jsxs(V,{className:e.clsx(T.root,y),ownerState:i,ref:t,...D,children:[q.cloneElement(n,h),f?u.jsxs("div",{children:[l,u.jsxs(W,{ownerState:i,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):l]})});process.env.NODE_ENV!=="production"&&(x.propTypes={checked:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,componentsProps:e.PropTypes.shape({typography:e.PropTypes.object}),control:e.PropTypes.element.isRequired,disabled:e.PropTypes.bool,disableTypography:e.PropTypes.bool,inputRef:B.refType,label:e.PropTypes.node,labelPlacement:e.PropTypes.oneOf(["bottom","end","start","top"]),name:e.PropTypes.string,onChange:e.PropTypes.func,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({typography:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({typography: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]),value:e.PropTypes.any});exports.FormControlLabel=x;exports.formControlLabelClasses=a;exports.getFormControlLabelUtilityClasses=j;
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import * as P from "react";
|
|
2
|
-
import { H as E, I as U, G as T, P as e } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
-
import { m as L } from "./memoTheme-D7Fyh_3C.js";
|
|
4
|
-
import { f as A } from "./formControlState-vgaj2ksH.js";
|
|
5
|
-
import { u as H } from "./useSlot-BTpHG6jf.js";
|
|
6
|
-
import { jsx as I, jsxs as g } from "react/jsx-runtime";
|
|
7
|
-
import { s as R, u as z, c as B } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
8
|
-
import { c as x } from "./capitalize-CkF8kU4n.js";
|
|
9
|
-
import { u as G } from "./useFormControl-CatNKXAi.js";
|
|
10
|
-
import { T as v } from "./Typography-DBwTr_ix.js";
|
|
11
|
-
import { r as V } from "./refType-DKYKROQk.js";
|
|
12
|
-
function W(o) {
|
|
13
|
-
return E("MuiFormControlLabel", o);
|
|
14
|
-
}
|
|
15
|
-
const a = U("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), _ = (o) => {
|
|
16
|
-
const {
|
|
17
|
-
classes: r,
|
|
18
|
-
disabled: s,
|
|
19
|
-
labelPlacement: t,
|
|
20
|
-
error: d,
|
|
21
|
-
required: b
|
|
22
|
-
} = o, f = {
|
|
23
|
-
root: ["root", s && "disabled", `labelPlacement${x(t)}`, d && "error", b && "required"],
|
|
24
|
-
label: ["label", s && "disabled"],
|
|
25
|
-
asterisk: ["asterisk", d && "error"]
|
|
26
|
-
};
|
|
27
|
-
return B(f, W, r);
|
|
28
|
-
}, J = R("label", {
|
|
29
|
-
name: "MuiFormControlLabel",
|
|
30
|
-
slot: "Root",
|
|
31
|
-
overridesResolver: (o, r) => {
|
|
32
|
-
const {
|
|
33
|
-
ownerState: s
|
|
34
|
-
} = o;
|
|
35
|
-
return [{
|
|
36
|
-
[`& .${a.label}`]: r.label
|
|
37
|
-
}, r.root, r[`labelPlacement${x(s.labelPlacement)}`]];
|
|
38
|
-
}
|
|
39
|
-
})(L(({
|
|
40
|
-
theme: o
|
|
41
|
-
}) => ({
|
|
42
|
-
display: "inline-flex",
|
|
43
|
-
alignItems: "center",
|
|
44
|
-
cursor: "pointer",
|
|
45
|
-
// For correct alignment with the text.
|
|
46
|
-
verticalAlign: "middle",
|
|
47
|
-
WebkitTapHighlightColor: "transparent",
|
|
48
|
-
marginLeft: -11,
|
|
49
|
-
marginRight: 16,
|
|
50
|
-
// used for row presentation of radio/checkbox
|
|
51
|
-
[`&.${a.disabled}`]: {
|
|
52
|
-
cursor: "default"
|
|
53
|
-
},
|
|
54
|
-
[`& .${a.label}`]: {
|
|
55
|
-
[`&.${a.disabled}`]: {
|
|
56
|
-
color: (o.vars || o).palette.text.disabled
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
variants: [{
|
|
60
|
-
props: {
|
|
61
|
-
labelPlacement: "start"
|
|
62
|
-
},
|
|
63
|
-
style: {
|
|
64
|
-
flexDirection: "row-reverse",
|
|
65
|
-
marginRight: -11
|
|
66
|
-
}
|
|
67
|
-
}, {
|
|
68
|
-
props: {
|
|
69
|
-
labelPlacement: "top"
|
|
70
|
-
},
|
|
71
|
-
style: {
|
|
72
|
-
flexDirection: "column-reverse"
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
props: {
|
|
76
|
-
labelPlacement: "bottom"
|
|
77
|
-
},
|
|
78
|
-
style: {
|
|
79
|
-
flexDirection: "column"
|
|
80
|
-
}
|
|
81
|
-
}, {
|
|
82
|
-
props: ({
|
|
83
|
-
labelPlacement: r
|
|
84
|
-
}) => r === "start" || r === "top" || r === "bottom",
|
|
85
|
-
style: {
|
|
86
|
-
marginLeft: 16
|
|
87
|
-
// used for row presentation of radio/checkbox
|
|
88
|
-
}
|
|
89
|
-
}]
|
|
90
|
-
}))), K = R("span", {
|
|
91
|
-
name: "MuiFormControlLabel",
|
|
92
|
-
slot: "Asterisk",
|
|
93
|
-
overridesResolver: (o, r) => r.asterisk
|
|
94
|
-
})(L(({
|
|
95
|
-
theme: o
|
|
96
|
-
}) => ({
|
|
97
|
-
[`&.${a.error}`]: {
|
|
98
|
-
color: (o.vars || o).palette.error.main
|
|
99
|
-
}
|
|
100
|
-
}))), Q = /* @__PURE__ */ P.forwardRef(function(r, s) {
|
|
101
|
-
const t = z({
|
|
102
|
-
props: r,
|
|
103
|
-
name: "MuiFormControlLabel"
|
|
104
|
-
}), {
|
|
105
|
-
checked: d,
|
|
106
|
-
className: b,
|
|
107
|
-
componentsProps: f = {},
|
|
108
|
-
control: n,
|
|
109
|
-
disabled: F,
|
|
110
|
-
disableTypography: q,
|
|
111
|
-
inputRef: X,
|
|
112
|
-
label: k,
|
|
113
|
-
labelPlacement: N = "end",
|
|
114
|
-
name: Y,
|
|
115
|
-
onChange: Z,
|
|
116
|
-
required: j,
|
|
117
|
-
slots: w = {},
|
|
118
|
-
slotProps: S = {},
|
|
119
|
-
value: ee,
|
|
120
|
-
...$
|
|
121
|
-
} = t, i = G(), h = F ?? n.props.disabled ?? (i == null ? void 0 : i.disabled), u = j ?? n.props.required, C = {
|
|
122
|
-
disabled: h,
|
|
123
|
-
required: u
|
|
124
|
-
};
|
|
125
|
-
["checked", "name", "onChange", "value", "inputRef"].forEach((m) => {
|
|
126
|
-
typeof n.props[m] > "u" && typeof t[m] < "u" && (C[m] = t[m]);
|
|
127
|
-
});
|
|
128
|
-
const O = A({
|
|
129
|
-
props: t,
|
|
130
|
-
muiFormControl: i,
|
|
131
|
-
states: ["error"]
|
|
132
|
-
}), p = {
|
|
133
|
-
...t,
|
|
134
|
-
disabled: h,
|
|
135
|
-
labelPlacement: N,
|
|
136
|
-
required: u,
|
|
137
|
-
error: O.error
|
|
138
|
-
}, y = _(p), D = {
|
|
139
|
-
slots: w,
|
|
140
|
-
slotProps: {
|
|
141
|
-
...f,
|
|
142
|
-
...S
|
|
143
|
-
}
|
|
144
|
-
}, [M, c] = H("typography", {
|
|
145
|
-
elementType: v,
|
|
146
|
-
externalForwardedProps: D,
|
|
147
|
-
ownerState: p
|
|
148
|
-
});
|
|
149
|
-
let l = k;
|
|
150
|
-
return l != null && l.type !== v && !q && (l = /* @__PURE__ */ I(M, {
|
|
151
|
-
component: "span",
|
|
152
|
-
...c,
|
|
153
|
-
className: T(y.label, c == null ? void 0 : c.className),
|
|
154
|
-
children: l
|
|
155
|
-
})), /* @__PURE__ */ g(J, {
|
|
156
|
-
className: T(y.root, b),
|
|
157
|
-
ownerState: p,
|
|
158
|
-
ref: s,
|
|
159
|
-
...$,
|
|
160
|
-
children: [/* @__PURE__ */ P.cloneElement(n, C), u ? /* @__PURE__ */ g("div", {
|
|
161
|
-
children: [l, /* @__PURE__ */ g(K, {
|
|
162
|
-
ownerState: p,
|
|
163
|
-
"aria-hidden": !0,
|
|
164
|
-
className: y.asterisk,
|
|
165
|
-
children: [" ", "*"]
|
|
166
|
-
})]
|
|
167
|
-
}) : l]
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
171
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
172
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
173
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
174
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
175
|
-
/**
|
|
176
|
-
* If `true`, the component appears selected.
|
|
177
|
-
*/
|
|
178
|
-
checked: e.bool,
|
|
179
|
-
/**
|
|
180
|
-
* Override or extend the styles applied to the component.
|
|
181
|
-
*/
|
|
182
|
-
classes: e.object,
|
|
183
|
-
/**
|
|
184
|
-
* @ignore
|
|
185
|
-
*/
|
|
186
|
-
className: e.string,
|
|
187
|
-
/**
|
|
188
|
-
* The props used for each slot inside.
|
|
189
|
-
* @default {}
|
|
190
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
191
|
-
*/
|
|
192
|
-
componentsProps: e.shape({
|
|
193
|
-
typography: e.object
|
|
194
|
-
}),
|
|
195
|
-
/**
|
|
196
|
-
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
197
|
-
*/
|
|
198
|
-
control: e.element.isRequired,
|
|
199
|
-
/**
|
|
200
|
-
* If `true`, the control is disabled.
|
|
201
|
-
*/
|
|
202
|
-
disabled: e.bool,
|
|
203
|
-
/**
|
|
204
|
-
* If `true`, the label is rendered as it is passed without an additional typography node.
|
|
205
|
-
*/
|
|
206
|
-
disableTypography: e.bool,
|
|
207
|
-
/**
|
|
208
|
-
* Pass a ref to the `input` element.
|
|
209
|
-
*/
|
|
210
|
-
inputRef: V,
|
|
211
|
-
/**
|
|
212
|
-
* A text or an element to be used in an enclosing label element.
|
|
213
|
-
*/
|
|
214
|
-
label: e.node,
|
|
215
|
-
/**
|
|
216
|
-
* The position of the label.
|
|
217
|
-
* @default 'end'
|
|
218
|
-
*/
|
|
219
|
-
labelPlacement: e.oneOf(["bottom", "end", "start", "top"]),
|
|
220
|
-
/**
|
|
221
|
-
* @ignore
|
|
222
|
-
*/
|
|
223
|
-
name: e.string,
|
|
224
|
-
/**
|
|
225
|
-
* Callback fired when the state is changed.
|
|
226
|
-
*
|
|
227
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
228
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
229
|
-
*/
|
|
230
|
-
onChange: e.func,
|
|
231
|
-
/**
|
|
232
|
-
* If `true`, the label will indicate that the `input` is required.
|
|
233
|
-
*/
|
|
234
|
-
required: e.bool,
|
|
235
|
-
/**
|
|
236
|
-
* The props used for each slot inside.
|
|
237
|
-
* @default {}
|
|
238
|
-
*/
|
|
239
|
-
slotProps: e.shape({
|
|
240
|
-
typography: e.oneOfType([e.func, e.object])
|
|
241
|
-
}),
|
|
242
|
-
/**
|
|
243
|
-
* The components used for each slot inside.
|
|
244
|
-
* @default {}
|
|
245
|
-
*/
|
|
246
|
-
slots: e.shape({
|
|
247
|
-
typography: e.elementType
|
|
248
|
-
}),
|
|
249
|
-
/**
|
|
250
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
251
|
-
*/
|
|
252
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
253
|
-
/**
|
|
254
|
-
* The value of the component.
|
|
255
|
-
*/
|
|
256
|
-
value: e.any
|
|
257
|
-
});
|
|
258
|
-
export {
|
|
259
|
-
Q as F,
|
|
260
|
-
a as f,
|
|
261
|
-
W as g
|
|
262
|
-
};
|