@cgi-learning-hub/ui 1.3.5-dev.1738165321 → 1.3.5-dev.1739205895
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-Dnd-7Jz5.cjs → Backdrop-Cvbj4YKG.cjs} +1 -1
- package/dist/{Backdrop-CjFhgXFW.js → Backdrop-DZHacmMU.js} +21 -21
- package/dist/{Box-BTYxUBc5.cjs → Box-CVaz7diG.cjs} +1 -1
- package/dist/{Box-C5qOvRw6.js → Box-Cpg9IWKr.js} +8 -8
- package/dist/Button-C-bZSJCq.cjs +28 -0
- package/dist/{Button-QAP1Wyns.cjs → Button-COTy9ASL.cjs} +1 -1
- package/dist/Button-CSNPv43f.js +542 -0
- package/dist/{Button-DJ9kLggx.js → Button-DovfjBkz.js} +14 -14
- package/dist/{ButtonBase-Di2DXi1_.cjs → ButtonBase-DKNIY_Ve.cjs} +2 -2
- package/dist/{ButtonBase-CGJRRTHm.js → ButtonBase-eQU9HVgU.js} +42 -42
- package/dist/{Card-BkkrhzGz.js → Card-B7MHmB_Y.js} +7 -7
- package/dist/{Card-BklIrMy_.cjs → Card-CwE6nm11.cjs} +1 -1
- package/dist/{Checkbox-Bfngr2Ow.cjs → Checkbox-YCpJS_3E.cjs} +1 -1
- package/dist/{Checkbox-BMr92NEw.js → Checkbox-y6Kts0Hm.js} +26 -26
- package/dist/CloseRounded-Cu-sn6XC.cjs +1 -0
- package/dist/CloseRounded-Df8vYhLX.js +8 -0
- package/dist/{DatePicker-BIrYgv-6.js → DatePicker-B2dOH7Zl.js} +1283 -1282
- package/dist/{DatePicker-UggPKt6P.cjs → DatePicker-C3CzK9Fb.cjs} +9 -9
- package/dist/{DefaultPropsProvider-CeEBQtDy.js → DefaultPropsProvider-CmOKr9hq.js} +48 -48
- package/dist/{DefaultPropsProvider-Se6dgF9O.cjs → DefaultPropsProvider-PRhNsS_3.cjs} +1 -1
- package/dist/{Dialog-FQAvW7D6.cjs → Dialog-BFZeovlo.cjs} +1 -1
- package/dist/{Dialog-DX2Mdwmr.js → Dialog-D0fzD-TX.js} +13 -13
- package/dist/{DialogContent-CkPzndRH.js → DialogContent-4rDvu_sh.js} +13 -13
- package/dist/{DialogContent-BaKv3Ei9.cjs → DialogContent-DMvW6Xos.cjs} +1 -1
- package/dist/{DialogTitle-D7utXPRz.js → DialogTitle-BXGok8k-.js} +30 -30
- package/dist/{DialogTitle-BwJVdg4G.cjs → DialogTitle-CXRmRtja.cjs} +1 -1
- package/dist/{Divider-BAPyGNV2.cjs → Divider-CISPNs7L.cjs} +1 -1
- package/dist/{Divider-DViVz6TV.js → Divider-CeOjSQMP.js} +8 -8
- package/dist/{FormControlLabel-DMrvY_r6.js → FormControlLabel-BjbkwHC0.js} +13 -13
- package/dist/{FormControlLabel-BKz4_Gd0.cjs → FormControlLabel-BjlJz2oa.cjs} +1 -1
- package/dist/{FormGroup-Cp4YeqR3.js → FormGroup-DdwFGMq2.js} +15 -15
- package/dist/{FormGroup-BulQbkfu.cjs → FormGroup-x7hlLAv1.cjs} +1 -1
- package/dist/{FormLabel-DXWktPiT.js → FormLabel-Cm4Ba58U.js} +21 -21
- package/dist/{FormLabel-DwND2qd8.cjs → FormLabel-CtCBcJ-1.cjs} +2 -2
- package/dist/{Grow-BYbd5knJ.cjs → Grow-BK4rGn4x.cjs} +1 -1
- package/dist/{Grow-C9mKol1b.js → Grow-EpJy9qdL.js} +15 -15
- package/dist/{IconButton-Dl_aERqI.cjs → IconButton-BUCTqOFa.cjs} +1 -1
- package/dist/{IconButton-HSWaMjTn.js → IconButton-CZvDgqOc.js} +13 -13
- package/dist/{InputAdornment-VmPspNH6.cjs → InputAdornment-CLIvW7Gk.cjs} +1 -1
- package/dist/{InputAdornment-DEwfQJnE.js → InputAdornment-XfxRdI9K.js} +14 -14
- package/dist/{InputBase-BWlk5xev.cjs → InputBase-BXcShs87.cjs} +2 -2
- package/dist/{InputBase-NJYUs2qK.js → InputBase-DBsV_L3Y.js} +9 -9
- package/dist/{Link-D-_BtjdU.cjs → Link-DgsVJ4Wk.cjs} +1 -1
- package/dist/{Link-DRY3a76q.js → Link-Dqbq0dpE.js} +11 -11
- package/dist/{Menu-BIebKPfA.cjs → Menu-NuheFzLD.cjs} +6 -6
- package/dist/{Menu-D4QuPq36.js → Menu-_4rLUzDf.js} +54 -54
- package/dist/{MenuItem-CLytGq10.cjs → MenuItem-CNUAbgnE.cjs} +1 -1
- package/dist/{MenuItem-BaVk-qxi.js → MenuItem-D9Hs7HRQ.js} +20 -20
- package/dist/{Modal-D9Xuvhjf.cjs → Modal-BhIbbbzx.cjs} +2 -2
- package/dist/{Modal-Bv_n3vzB.js → Modal-a-cSzSt8.js} +32 -32
- package/dist/{Paper-B-qSqbHC.js → Paper-BIgadgtb.js} +8 -8
- package/dist/{Paper-cQSlrWza.cjs → Paper-DYhLUL1K.cjs} +2 -2
- package/dist/{Popper-CIpGciMP.js → Popper-BcaTNUvi.js} +241 -243
- package/dist/{Popper-rY0PGJdm.cjs → Popper-CPstdcBG.cjs} +3 -3
- package/dist/{Portal-DsPJ5mJy.js → Portal-B8inUnB_.js} +2 -2
- package/dist/{Portal-Cxw-nTCW.cjs → Portal-BL8eg_0C.cjs} +1 -1
- package/dist/{Radio-CTv0ptam.cjs → Radio-8fNX60rb.cjs} +1 -1
- package/dist/{Radio-g00XgvHL.js → Radio-DgedCGZw.js} +15 -15
- package/dist/{Select-D2_IXdrU.js → Select-D4pmgfdb.js} +99 -99
- package/dist/{Select-C8HBwNk7.cjs → Select-DtrvYyJ3.cjs} +1 -1
- package/dist/Stack-B68ooSQ-.cjs +1 -0
- package/dist/{Stack-DX7XIsZG.js → Stack-CSgGU-cq.js} +29 -29
- package/dist/{SwitchBase-BOo1bjHy.cjs → SwitchBase-VA100mrf.cjs} +1 -1
- package/dist/{SwitchBase-eilyehy9.js → SwitchBase-ynQQkTVh.js} +29 -29
- package/dist/{TableSortLabel-BE_c25_7.cjs → TableSortLabel-B2Nvl2FF.cjs} +7 -7
- package/dist/{TableSortLabel-CkN2fsuh.js → TableSortLabel-DrpjgQBL.js} +51 -52
- package/dist/{Tabs-CZ0zpzfU.js → Tabs-CMnuOnzP.js} +328 -328
- package/dist/{Tabs-Cu3QAwFQ.cjs → Tabs-CTYqNGoo.cjs} +3 -3
- package/dist/{TextField-CYuyowfl.cjs → TextField-BcAZk2Rx.cjs} +1 -1
- package/dist/{TextField-CB2G2DE7.js → TextField-dvVq-1Hp.js} +27 -27
- package/dist/{Tooltip-BbMItBno.js → Tooltip-CVvaAqh7.js} +13 -13
- package/dist/{Tooltip-CcjNbPHm.cjs → Tooltip-DL2i_lGL.cjs} +3 -3
- package/dist/{Typography-CsC_hF8M.js → Typography-C9ltjPyz.js} +9 -9
- package/dist/{Typography-BYWZ5kB1.cjs → Typography-Y-OGmT9M.cjs} +1 -1
- package/dist/{capitalize-BDTxYy_y.cjs → capitalize-Cq3s4y8R.cjs} +1 -1
- package/dist/{capitalize-B55K71yP.js → capitalize-yX_QSknw.js} +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +4 -297
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +2 -2
- 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 +11 -13
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- 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 +23 -14
- 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 +95 -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 +41 -40
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +212 -213
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +2 -2
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +9 -9
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- 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 +3 -3
- 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 +145 -19
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +75 -75
- 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 +8 -8
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +11 -11
- 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-DestgQu_.cjs → createSvgIcon-CWNQW6u6.cjs} +1 -1
- package/dist/{createSvgIcon-C9kh-71a.js → createSvgIcon-Cd6y8E9W.js} +6 -6
- package/dist/{dividerClasses-CmqQpmPs.cjs → dividerClasses-1ChhOCNX.cjs} +1 -1
- package/dist/{dividerClasses-Cx-v4p9p.js → dividerClasses-DHKvPyr8.js} +3 -3
- package/dist/{elementTypeAcceptingRef-93jMVjym.cjs → elementTypeAcceptingRef-BgjnOQqe.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-BwApo3R5.js → elementTypeAcceptingRef-BnBq35EV.js} +1 -1
- package/dist/{extendSxProp-BuzWiNW6.js → extendSxProp-D1UphbpP.js} +3 -3
- package/dist/{extendSxProp-CWfAkLIT.cjs → extendSxProp-Dolw-tGY.cjs} +1 -1
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/{generateUtilityClasses-CCNEQAp0.cjs → generateUtilityClasses-0dYt6eGZ.cjs} +2 -2
- package/dist/{generateUtilityClasses-CMVTZlSt.js → generateUtilityClasses-v9KcqdK1.js} +6 -6
- package/dist/{index-BvElRKTI.cjs → index-BUATG6-f.cjs} +1 -1
- package/dist/{index-HBv5JZBE.js → index-BhCs2pHX.js} +22 -22
- package/dist/index-CgWaRcwQ.cjs +1 -0
- package/dist/{index-DT_OMUCV.js → index-OesDQygc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +212 -213
- package/dist/{memoTheme-CnIL9ySw.js → memoTheme-D-rebSfX.js} +1 -1
- package/dist/{memoTheme-DTSENpyZ.cjs → memoTheme-D1tPxCd9.cjs} +1 -1
- package/dist/{mergeSlotProps-A2fwE85L.cjs → mergeSlotProps-DJgEFzGv.cjs} +1 -1
- package/dist/{mergeSlotProps-lTnyHfRr.js → mergeSlotProps-DwgGXvkj.js} +1 -1
- package/dist/{refType-IuPwh8dk.js → refType-DcE_kWty.js} +1 -1
- package/dist/{refType-B9Yjv-2f.cjs → refType-DdkUp8DT.cjs} +1 -1
- package/dist/{useSlot-DKRXHGjw.js → useSlot-BYfmyYXv.js} +1 -1
- package/dist/{useSlot-BHPToxin.cjs → useSlot-CMUEd7j7.cjs} +1 -1
- package/dist/useSlotProps-D0jr2eYF.cjs +1 -0
- package/dist/{useSlotProps-DW4-IGZ7.js → useSlotProps-r0vmrJvl.js} +11 -11
- package/dist/{useTheme-CQhlwWHY.cjs → useTheme-B1HNivkF.cjs} +1 -1
- package/dist/{useTheme-6TUGBldK.js → useTheme-BB8ZCoMF.js} +1 -1
- package/dist/{useTheme-BovhfGLb.cjs → useTheme-C0AF6jAe.cjs} +1 -1
- package/dist/useTheme-Dyx3LMQU.js +11 -0
- package/dist/{useThemeProps-BcTQ5K1G.cjs → useThemeProps-DcOn-vk2.cjs} +1 -1
- package/dist/{useThemeProps-1WBbiiBB.js → useThemeProps-DnDXTiQj.js} +2 -2
- package/dist/{useThemeProps-CAttQgvS.js → useThemeProps-DwnyQf-S.js} +3 -3
- package/dist/{useThemeProps-CTpVXkg_.cjs → useThemeProps-u8EQT0RR.cjs} +1 -1
- package/dist/{utils-CHzhlXgP.cjs → utils-BWXB1haV.cjs} +1 -1
- package/dist/{utils-CuFsTY6H.js → utils-D4djO_Ph.js} +1 -1
- package/package.json +1 -1
- package/dist/CircularProgress-CIsFCabr.cjs +0 -28
- package/dist/CircularProgress-Wu1RUH10.js +0 -253
- package/dist/Delete-CN1Nvyw-.cjs +0 -1
- package/dist/Delete-D269dtzC.js +0 -8
- package/dist/Stack-6AHEa1bx.cjs +0 -1
- package/dist/index-vTvfssKH.cjs +0 -1
- package/dist/useSlotProps-CgzVLVxq.cjs +0 -1
- package/dist/useTheme-i6uFvVRH.js +0 -11
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { P as n, H as he, I as ge, G as Z } from "./generateUtilityClasses-
|
|
3
|
-
import { m as Ee } from "./memoTheme-
|
|
2
|
+
import { P as n, H as he, I as ge, G as Z } from "./generateUtilityClasses-v9KcqdK1.js";
|
|
3
|
+
import { m as Ee } from "./memoTheme-D-rebSfX.js";
|
|
4
4
|
import { o as z } from "./ownerWindow-niciwP7I.js";
|
|
5
5
|
import { o as A } from "./ownerDocument-CUrv0DIK.js";
|
|
6
6
|
import { u as Y } from "./useForkRef-C_4o__cU.js";
|
|
7
7
|
import { u as ee } from "./useEventCallback-BAQJJ3ye.js";
|
|
8
|
-
import { e as Te } from "./mergeSlotProps-lTnyHfRr.js";
|
|
9
8
|
import { c as te } from "./createChainedFunction-C0nujS3O.js";
|
|
10
|
-
import {
|
|
9
|
+
import { e as Te } from "./mergeSlotProps-DwgGXvkj.js";
|
|
10
|
+
import { u as oe } from "./useSlot-BYfmyYXv.js";
|
|
11
11
|
import { jsxs as ie, jsx as j } from "react/jsx-runtime";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { u as ye, s as ce, c as Re } from "./DefaultPropsProvider-CmOKr9hq.js";
|
|
13
|
+
import { e as xe, P as ke, H as ve } from "./Portal-B8inUnB_.js";
|
|
14
|
+
import { g as Pe, e as ae } from "./utils-D4djO_Ph.js";
|
|
15
|
+
import { B as Ie } from "./Backdrop-DZHacmMU.js";
|
|
16
16
|
function Ne(e = window) {
|
|
17
17
|
const t = e.document.documentElement.clientWidth;
|
|
18
18
|
return e.innerWidth - t;
|
|
@@ -176,7 +176,7 @@ function V(e) {
|
|
|
176
176
|
getTabbable: r = Le,
|
|
177
177
|
isEnabled: c = je,
|
|
178
178
|
open: a
|
|
179
|
-
} = e, m = u.useRef(!1), E = u.useRef(null), k = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), w = Y(
|
|
179
|
+
} = e, m = u.useRef(!1), E = u.useRef(null), k = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), w = Y(Pe(t), p), N = u.useRef(null);
|
|
180
180
|
u.useEffect(() => {
|
|
181
181
|
!a || !p.current || (b.current = !s);
|
|
182
182
|
}, [s, a]), u.useEffect(() => {
|
|
@@ -192,8 +192,8 @@ function V(e) {
|
|
|
192
192
|
return;
|
|
193
193
|
const l = A(p.current), g = (T) => {
|
|
194
194
|
N.current = T, !(o || !c() || T.key !== "Tab") && l.activeElement === p.current && T.shiftKey && (m.current = !0, k.current && k.current.focus());
|
|
195
|
-
},
|
|
196
|
-
var
|
|
195
|
+
}, v = () => {
|
|
196
|
+
var P, M;
|
|
197
197
|
const T = p.current;
|
|
198
198
|
if (T === null)
|
|
199
199
|
return;
|
|
@@ -211,17 +211,17 @@ function V(e) {
|
|
|
211
211
|
return;
|
|
212
212
|
let S = [];
|
|
213
213
|
if ((l.activeElement === E.current || l.activeElement === k.current) && (S = r(p.current)), S.length > 0) {
|
|
214
|
-
const D = !!((
|
|
214
|
+
const D = !!((P = N.current) != null && P.shiftKey && ((M = N.current) == null ? void 0 : M.key) === "Tab"), B = S[0], U = S[S.length - 1];
|
|
215
215
|
typeof B != "string" && typeof U != "string" && (D ? U.focus() : B.focus());
|
|
216
216
|
} else
|
|
217
217
|
T.focus();
|
|
218
218
|
};
|
|
219
|
-
l.addEventListener("focusin",
|
|
219
|
+
l.addEventListener("focusin", v), l.addEventListener("keydown", g, !0);
|
|
220
220
|
const F = setInterval(() => {
|
|
221
|
-
l.activeElement && l.activeElement.tagName === "BODY" &&
|
|
221
|
+
l.activeElement && l.activeElement.tagName === "BODY" && v();
|
|
222
222
|
}, 50);
|
|
223
223
|
return () => {
|
|
224
|
-
clearInterval(F), l.removeEventListener("focusin",
|
|
224
|
+
clearInterval(F), l.removeEventListener("focusin", v), l.removeEventListener("keydown", g, !0);
|
|
225
225
|
};
|
|
226
226
|
}, [s, o, i, c, a, r]);
|
|
227
227
|
const C = (l) => {
|
|
@@ -302,7 +302,7 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
302
302
|
*/
|
|
303
303
|
open: n.bool.isRequired
|
|
304
304
|
});
|
|
305
|
-
process.env.NODE_ENV !== "production" && (V.propTypes =
|
|
305
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = xe(V.propTypes));
|
|
306
306
|
function Ke(e) {
|
|
307
307
|
return typeof e == "function" ? e() : e;
|
|
308
308
|
}
|
|
@@ -326,23 +326,23 @@ function We(e) {
|
|
|
326
326
|
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = Y(b, k), [w, N] = u.useState(!E), C = Ue(a);
|
|
327
327
|
let R = !0;
|
|
328
328
|
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1);
|
|
329
|
-
const l = () => A(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current),
|
|
329
|
+
const l = () => A(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current), v = () => {
|
|
330
330
|
H.mount(g(), {
|
|
331
331
|
disableScrollLock: o
|
|
332
332
|
}), b.current && (b.current.scrollTop = 0);
|
|
333
333
|
}, F = ee(() => {
|
|
334
334
|
const d = Ke(t) || l().body;
|
|
335
|
-
H.add(g(), d), b.current &&
|
|
335
|
+
H.add(g(), d), b.current && v();
|
|
336
336
|
}), T = () => H.isTopModal(g()), S = ee((d) => {
|
|
337
|
-
y.current = d, d && (E && T() ?
|
|
338
|
-
}),
|
|
337
|
+
y.current = d, d && (E && T() ? v() : b.current && K(b.current, R));
|
|
338
|
+
}), P = u.useCallback(() => {
|
|
339
339
|
H.remove(g(), R);
|
|
340
340
|
}, [R]);
|
|
341
341
|
u.useEffect(() => () => {
|
|
342
|
-
|
|
343
|
-
}, [
|
|
344
|
-
E ? F() : (!C || !i) &&
|
|
345
|
-
}, [E,
|
|
342
|
+
P();
|
|
343
|
+
}, [P]), u.useEffect(() => {
|
|
344
|
+
E ? F() : (!C || !i) && P();
|
|
345
|
+
}, [E, P, C, i, F]);
|
|
346
346
|
const M = (d) => (f) => {
|
|
347
347
|
var x;
|
|
348
348
|
(x = d.onKeyDown) == null || x.call(d, f), !(f.key !== "Escape" || f.which === 229 || // Wait until IME is settled.
|
|
@@ -385,7 +385,7 @@ function We(e) {
|
|
|
385
385
|
const d = () => {
|
|
386
386
|
N(!1), r && r();
|
|
387
387
|
}, f = () => {
|
|
388
|
-
N(!0), c && c(), i &&
|
|
388
|
+
N(!0), c && c(), i && P();
|
|
389
389
|
};
|
|
390
390
|
return {
|
|
391
391
|
onEnter: te(d, (a == null ? void 0 : a.props.onEnter) ?? se),
|
|
@@ -400,9 +400,9 @@ function We(e) {
|
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
function qe(e) {
|
|
403
|
-
return
|
|
403
|
+
return ge("MuiModal", e);
|
|
404
404
|
}
|
|
405
|
-
const ct =
|
|
405
|
+
const ct = he("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
406
406
|
const {
|
|
407
407
|
open: t,
|
|
408
408
|
exited: s,
|
|
@@ -438,7 +438,7 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
438
438
|
visibility: "hidden"
|
|
439
439
|
}
|
|
440
440
|
}]
|
|
441
|
-
}))), Ve = ce(
|
|
441
|
+
}))), Ve = ce(Ie, {
|
|
442
442
|
name: "MuiModal",
|
|
443
443
|
slot: "Backdrop",
|
|
444
444
|
overridesResolver: (e, t) => t.backdrop
|
|
@@ -466,11 +466,11 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
466
466
|
disableRestoreFocus: R = !1,
|
|
467
467
|
disableScrollLock: l = !1,
|
|
468
468
|
hideBackdrop: g = !1,
|
|
469
|
-
keepMounted:
|
|
469
|
+
keepMounted: v = !1,
|
|
470
470
|
onBackdropClick: F,
|
|
471
471
|
onClose: T,
|
|
472
472
|
onTransitionEnter: S,
|
|
473
|
-
onTransitionExited:
|
|
473
|
+
onTransitionExited: P,
|
|
474
474
|
open: M,
|
|
475
475
|
slotProps: D = {},
|
|
476
476
|
slots: B = {},
|
|
@@ -487,7 +487,7 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
487
487
|
disableRestoreFocus: R,
|
|
488
488
|
disableScrollLock: l,
|
|
489
489
|
hideBackdrop: g,
|
|
490
|
-
keepMounted:
|
|
490
|
+
keepMounted: v
|
|
491
491
|
}, {
|
|
492
492
|
getRootProps: f,
|
|
493
493
|
getBackdropProps: x,
|
|
@@ -544,7 +544,7 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
544
544
|
className: Z(r == null ? void 0 : r.className, I == null ? void 0 : I.backdrop),
|
|
545
545
|
ownerState: L
|
|
546
546
|
}), be = Y(r == null ? void 0 : r.ref, Q.ref);
|
|
547
|
-
return !
|
|
547
|
+
return !v && !M && (!X || G) ? null : /* @__PURE__ */ j(ke, {
|
|
548
548
|
ref: ue,
|
|
549
549
|
container: k,
|
|
550
550
|
disablePortal: C,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import { H as w, I as N,
|
|
3
|
-
import { u as $ } from "./useTheme-
|
|
2
|
+
import { H as w, I as N, n as f, G as T, B as m, P as a } from "./generateUtilityClasses-v9KcqdK1.js";
|
|
3
|
+
import { u as $ } from "./useTheme-Dyx3LMQU.js";
|
|
4
4
|
import { jsx as R } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
6
|
-
import { m as q } from "./memoTheme-
|
|
5
|
+
import { u as x, s as E, c as O } from "./DefaultPropsProvider-CmOKr9hq.js";
|
|
6
|
+
import { m as q } from "./memoTheme-D-rebSfX.js";
|
|
7
7
|
import { c as C } from "./chainPropTypes-D9lkm76m.js";
|
|
8
8
|
function I(e) {
|
|
9
9
|
const o = typeof e;
|
|
@@ -34,9 +34,9 @@ b.isRequired = y;
|
|
|
34
34
|
l.isRequired = l;
|
|
35
35
|
const j = process.env.NODE_ENV === "production" ? l : b;
|
|
36
36
|
function M(e) {
|
|
37
|
-
return
|
|
37
|
+
return N("MuiPaper", e);
|
|
38
38
|
}
|
|
39
|
-
const G =
|
|
39
|
+
const G = w("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
40
|
const {
|
|
41
41
|
square: o,
|
|
42
42
|
elevation: t,
|
|
@@ -46,7 +46,7 @@ const G = N("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0
|
|
|
46
46
|
root: ["root", n, !o && "rounded", n === "elevation" && `elevation${t}`]
|
|
47
47
|
};
|
|
48
48
|
return O(s, M, r);
|
|
49
|
-
}, U =
|
|
49
|
+
}, U = E("div", {
|
|
50
50
|
name: "MuiPaper",
|
|
51
51
|
slot: "Root",
|
|
52
52
|
overridesResolver: (e, o) => {
|
|
@@ -86,7 +86,7 @@ const G = N("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0
|
|
|
86
86
|
}]
|
|
87
87
|
}))), k = /* @__PURE__ */ h.forwardRef(function(o, t) {
|
|
88
88
|
var d;
|
|
89
|
-
const n =
|
|
89
|
+
const n = x({
|
|
90
90
|
props: o,
|
|
91
91
|
name: "MuiPaper"
|
|
92
92
|
}), r = $(), {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const w=require("react"),
|
|
2
|
-
`)),q.jsx(M,{as:u,ownerState:d,className:
|
|
1
|
+
"use strict";const w=require("react"),o=require("./generateUtilityClasses-0dYt6eGZ.cjs"),N=require("./useTheme-C0AF6jAe.cjs"),q=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-PRhNsS_3.cjs"),O=require("./memoTheme-D1tPxCd9.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)"}}]}))),g=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:m=!1,variant:c="elevation",...v}=a,d={...a,component:u,elevation:s,square:m,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"&&(g.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=g;exports.getPaperUtilityClass=b;exports.integerPropType=T;exports.paperClasses=x;
|