@cgi-learning-hub/ui 1.3.4 → 1.3.5-dev.1736343971
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-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-BlKt7y1x.js → Backdrop-DcDd6WZF.js} +13 -13
- package/dist/{Box-DErdbtsw.js → Box-Byz2BwGf.js} +10 -10
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-CiqVGfRs.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-DUPJVOlc.js → ButtonBase-DAWDecOk.js} +42 -41
- package/dist/{Card-mGRk1RuE.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-aJ1r7ufI.js → Checkbox-8Rhxpkjl.js} +23 -22
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-CfODO7vI.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-Dyf9Vhld.js → DatePicker-BS1OatwQ.js} +549 -546
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +17 -0
- package/dist/DefaultPropsProvider-CvJPQJmL.js +454 -0
- package/dist/{Delete-BOQTx9ze.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DyzDL8-Y.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/Dialog-D_lS4J_M.js +415 -0
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/DialogContent-uc65XOEU.js +194 -0
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-AQ-YU9PH.js → DialogTitle-C8JOi-rq.js} +43 -42
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-C0R1SUa4.js → Divider-KO-E6nU8.js} +8 -8
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-w-X91z27.js → FormControlLabel-BmrKQtQA.js} +17 -16
- package/dist/{FormGroup-6NoANcYk.js → FormGroup-CbczEc6e.js} +12 -12
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-CoLJ9tA8.js → FormLabel-CfR4bb21.js} +6 -5
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-SW33sONG.js → Grow-CQVPAYvp.js} +13 -13
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-DjeMTpI5.js → IconButton-CekuyD4r.js} +13 -12
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-ByiVSgFT.js → InputAdornment-iU5YnveW.js} +16 -15
- package/dist/{InputBase-CvU0-Zg6.js → InputBase-BJy3wwFB.js} +28 -26
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-Dmwt9wxb.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-4U27Dst1.js → Menu-C7tKmcAh.js} +63 -61
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-CqPsuuC1.js → MenuItem-j8luVUcX.js} +7 -7
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-D_mqYIr2.js → Modal-brWBFdK7.js} +76 -74
- package/dist/{Paper-D973Ow-i.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-B8oNZqtn.js → Popper-DFZ_gRev.js} +240 -239
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BKbBRbWN.js → Portal-JEwcozmp.js} +3 -3
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-BrzQH9pY.js → Radio-DGhot3Cd.js} +21 -20
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-CgAPAUTr.js → Select-DmssuG5M.js} +62 -60
- package/dist/{Stack-CYXQpKS2.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CGa9A6SL.js → SwitchBase-Dlth5_F7.js} +38 -37
- package/dist/{TableSortLabel-hvz89Dvu.js → TableSortLabel-BsgRD4k4.js} +1289 -1268
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-BPI2IyPx.js → Tabs-CYbeTnJk.js} +292 -289
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-C4nIxR_t.js → TextField-Cri5Gxa7.js} +20 -19
- package/dist/{Tooltip-Bdrv-e2a.js → Tooltip-BhAHhzKz.js} +32 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-CUdlQxLM.js → Typography-DBwTr_ix.js} +13 -12
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +101 -136
- 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 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -0
- package/dist/components/Dialog/Dialog.es.js +28 -0
- package/dist/components/Dialog/index.cjs.js +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.es.js +4 -0
- 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 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +9 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +44 -0
- package/dist/components/EllipsisWithTooltip/index.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/index.d.ts +2 -0
- package/dist/components/EllipsisWithTooltip/index.es.js +4 -0
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +7 -7
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +29 -28
- 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/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 +7 -3
- package/dist/components/index.es.js +228 -220
- 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 +8 -8
- 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.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +26 -14
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +1 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +6 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +36 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +69 -68
- 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/ImagePicker.stories.cjs.js +1 -1
- package/dist/components/stories/ImagePicker.stories.es.js +13 -6
- 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 +6 -6
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +9 -9
- 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--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-CVd3Lo1D.js → createSvgIcon-C8nGcfF4.js} +6 -5
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-kN_Ky2Bl.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-modXfN2G.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-CHv0k-C6.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/{fr-rmVQsNbI.js → fr-Bjufn3RW.js} +84 -84
- package/dist/{fr-ChrHtTbj.cjs → fr-JE-1WKP6.cjs} +1 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-Bn0tF6ls.js → generateUtilityClasses-Bssl7BA_.js} +898 -872
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CVpJYeY2.js → index-BCnPLuqJ.js} +23 -22
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BNojWn2E.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +228 -220
- package/dist/{memoTheme-BPA1FjB4.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-CMJVTZEg.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-DHoZOPOi.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/refType-DKYKROQk.js +5 -0
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
- package/dist/{useSlot-t9oGnIgq.js → useSlot-BTpHG6jf.js} +1 -1
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/useSlotProps-B31YQlzb.js +45 -0
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-CBsFvF7I.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-5Bku71LW.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-I9EHeqzU.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-C692LOYf.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/useTimeout-COCrDKz-.cjs +1 -0
- package/dist/useTimeout-CrCYVizI.js +42 -0
- package/dist/{utils-CE_a8glN.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-vSE8W9jq.cjs +0 -1
- package/dist/Box-DMYs7NTb.cjs +0 -1
- package/dist/Button-D3dbHQM1.cjs +0 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +0 -74
- package/dist/Card-Cnh4u4kb.cjs +0 -1
- package/dist/Checkbox-s_RdgUlw.cjs +0 -1
- package/dist/CircularProgress-DHgcUb1c.cjs +0 -28
- package/dist/DatePicker-juzW4bLC.cjs +0 -14
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +0 -17
- package/dist/DefaultPropsProvider-xJkZOrdv.js +0 -487
- package/dist/DialogContent-D1KFPXhr.js +0 -602
- package/dist/DialogContent-Dphl2SKX.cjs +0 -1
- package/dist/DialogTitle-C8AdXsDz.cjs +0 -1
- package/dist/Divider-Bdp8beK-.cjs +0 -1
- package/dist/FormControlLabel-BlO93LTi.cjs +0 -1
- package/dist/FormGroup-D0zSGn42.cjs +0 -1
- package/dist/FormLabel-BkiH7wl7.cjs +0 -2
- package/dist/Grow-DfACa72Q.cjs +0 -1
- package/dist/IconButton-DRs0xB4z.cjs +0 -2
- package/dist/InputAdornment-B1pggfEX.cjs +0 -1
- package/dist/InputBase-Xfjv-RYp.cjs +0 -3
- package/dist/Link-Z_UCBvgV.cjs +0 -1
- package/dist/Menu-DREdNbqu.cjs +0 -7
- package/dist/MenuItem-CN75Du-9.cjs +0 -1
- package/dist/Modal-DWqBsogu.cjs +0 -2
- package/dist/Paper-CjMuucS5.cjs +0 -2
- package/dist/Popper-hzM0y1hA.cjs +0 -4
- package/dist/Portal-Bv2VRYHH.cjs +0 -1
- package/dist/Radio-DxbXYNhR.cjs +0 -1
- package/dist/Select-CL4E8NNL.cjs +0 -3
- package/dist/Stack-WrITLr1B.cjs +0 -1
- package/dist/SwitchBase-Cqh9rxOh.cjs +0 -1
- package/dist/TableSortLabel-mAzX4tAl.cjs +0 -98
- package/dist/Tabs-BNqwYd2G.cjs +0 -4
- package/dist/TextField-Dy0Iblqt.cjs +0 -1
- package/dist/Tooltip-vg27N3PU.cjs +0 -4
- package/dist/Typography-BF9bdWxl.cjs +0 -1
- package/dist/createSvgIcon-BMmqQ2z0.cjs +0 -1
- package/dist/dividerClasses-CyDs_RPD.cjs +0 -1
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +0 -1
- package/dist/extendSxProp-6YOo46ig.cjs +0 -1
- package/dist/identifier-Dax8VlUh.cjs +0 -59
- package/dist/index-C5dNuV-2.cjs +0 -5
- package/dist/index-D3PBNx_m.cjs +0 -1
- package/dist/index-OLlWw08I.cjs +0 -1
- package/dist/index-waINWr3i.js +0 -45
- package/dist/refType-BmrOFNz6.js +0 -7
- package/dist/refType-Dm84STBj.cjs +0 -1
- package/dist/resolveComponentProps-4nhUsl3a.cjs +0 -1
- package/dist/useSlot-CJAXUvYJ.cjs +0 -1
- package/dist/useTheme-BIogn5Me.cjs +0 -1
- package/dist/useTheme-Bz4LKMiC.cjs +0 -1
- package/dist/useTheme-L3EQmvnN.js +0 -11
- package/dist/useThemeProps-DNFKz8wS.cjs +0 -1
- package/dist/useTimeout-3Y5y4gWq.js +0 -53
- package/dist/useTimeout-CxOQget6.cjs +0 -1
- package/dist/utils-CusX8Edy.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { P as n,
|
|
3
|
-
import { m as ge } from "./memoTheme-
|
|
2
|
+
import { P as n, H as be, I as he, G as Z } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
+
import { m as ge } from "./memoTheme-D7Fyh_3C.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
|
-
import {
|
|
8
|
-
import { e as Ee } from "./
|
|
7
|
+
import { u as ee } from "./useEventCallback-BAQJJ3ye.js";
|
|
8
|
+
import { e as Ee } from "./mergeSlotProps-tUJEcwVu.js";
|
|
9
9
|
import { c as te } from "./createChainedFunction-C0nujS3O.js";
|
|
10
|
-
import { u as oe } from "./useSlot-
|
|
10
|
+
import { u as oe } from "./useSlot-BTpHG6jf.js";
|
|
11
11
|
import { jsxs as se, jsx as j } from "react/jsx-runtime";
|
|
12
|
-
import { s as ie, u as Te, c as ye } from "./DefaultPropsProvider-
|
|
13
|
-
import { B as Re } from "./Backdrop-
|
|
14
|
-
import { e as xe, P as ke, H as
|
|
15
|
-
import { g as
|
|
12
|
+
import { s as ie, u as Te, c as ye } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
13
|
+
import { B as Re } from "./Backdrop-DcDd6WZF.js";
|
|
14
|
+
import { e as xe, P as ke, H as Pe } from "./Portal-JEwcozmp.js";
|
|
15
|
+
import { g as ve, e as ce } from "./utils-C6c4fj7D.js";
|
|
16
16
|
function Ie(e = window) {
|
|
17
17
|
const t = e.document.documentElement.clientWidth;
|
|
18
18
|
return e.innerWidth - t;
|
|
@@ -27,22 +27,22 @@ function K(e, t) {
|
|
|
27
27
|
function ne(e) {
|
|
28
28
|
return parseInt(z(e).getComputedStyle(e).paddingRight, 10) || 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ce(e) {
|
|
31
31
|
const s = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
|
|
32
32
|
return s || o;
|
|
33
33
|
}
|
|
34
34
|
function re(e, t, s, o, i) {
|
|
35
35
|
const r = [t, s, ...o];
|
|
36
36
|
[].forEach.call(e.children, (c) => {
|
|
37
|
-
const a = !r.includes(c),
|
|
38
|
-
a &&
|
|
37
|
+
const a = !r.includes(c), m = !Ce(c);
|
|
38
|
+
a && m && K(c, i);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
function $(e, t) {
|
|
42
42
|
let s = -1;
|
|
43
43
|
return e.some((o, i) => t(o) ? (s = i, !0) : !1), s;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Se(e, t) {
|
|
46
46
|
const s = [], o = e.container;
|
|
47
47
|
if (!t.disableScrollLock) {
|
|
48
48
|
if (Ne(o)) {
|
|
@@ -53,12 +53,12 @@ function Ce(e, t) {
|
|
|
53
53
|
el: o
|
|
54
54
|
}), o.style.paddingRight = `${ne(o) + c}px`;
|
|
55
55
|
const a = A(o).querySelectorAll(".mui-fixed");
|
|
56
|
-
[].forEach.call(a, (
|
|
56
|
+
[].forEach.call(a, (m) => {
|
|
57
57
|
s.push({
|
|
58
|
-
value:
|
|
58
|
+
value: m.style.paddingRight,
|
|
59
59
|
property: "padding-right",
|
|
60
|
-
el:
|
|
61
|
-
}),
|
|
60
|
+
el: m
|
|
61
|
+
}), m.style.paddingRight = `${ne(m) + c}px`;
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
let r;
|
|
@@ -119,7 +119,7 @@ class Me {
|
|
|
119
119
|
}
|
|
120
120
|
mount(t, s) {
|
|
121
121
|
const o = $(this.containers, (r) => r.modals.includes(t)), i = this.containers[o];
|
|
122
|
-
i.restore || (i.restore =
|
|
122
|
+
i.restore || (i.restore = Se(i, s));
|
|
123
123
|
}
|
|
124
124
|
remove(t, s = !0) {
|
|
125
125
|
const o = this.modals.indexOf(t);
|
|
@@ -176,29 +176,29 @@ function V(e) {
|
|
|
176
176
|
getTabbable: r = Be,
|
|
177
177
|
isEnabled: c = Le,
|
|
178
178
|
open: a
|
|
179
|
-
} = e,
|
|
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(ve(t), p), N = u.useRef(null);
|
|
180
180
|
u.useEffect(() => {
|
|
181
|
-
!a || !p.current || (
|
|
181
|
+
!a || !p.current || (b.current = !s);
|
|
182
182
|
}, [s, a]), u.useEffect(() => {
|
|
183
183
|
if (!a || !p.current)
|
|
184
184
|
return;
|
|
185
185
|
const l = A(p.current);
|
|
186
186
|
return p.current.contains(l.activeElement) || (p.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
187
|
-
`)), p.current.setAttribute("tabIndex", "-1")),
|
|
188
|
-
i || (h.current && h.current.focus && (
|
|
187
|
+
`)), p.current.setAttribute("tabIndex", "-1")), b.current && p.current.focus()), () => {
|
|
188
|
+
i || (h.current && h.current.focus && (m.current = !0, h.current.focus()), h.current = null);
|
|
189
189
|
};
|
|
190
190
|
}, [a]), u.useEffect(() => {
|
|
191
191
|
if (!a || !p.current)
|
|
192
192
|
return;
|
|
193
193
|
const l = A(p.current), g = (T) => {
|
|
194
|
-
N.current = T, !(o || !c() || T.key !== "Tab") && l.activeElement === p.current && T.shiftKey && (
|
|
195
|
-
},
|
|
196
|
-
var
|
|
194
|
+
N.current = T, !(o || !c() || T.key !== "Tab") && l.activeElement === p.current && T.shiftKey && (m.current = !0, k.current && k.current.focus());
|
|
195
|
+
}, P = () => {
|
|
196
|
+
var v, M;
|
|
197
197
|
const T = p.current;
|
|
198
198
|
if (T === null)
|
|
199
199
|
return;
|
|
200
|
-
if (!l.hasFocus() || !c() ||
|
|
201
|
-
|
|
200
|
+
if (!l.hasFocus() || !c() || m.current) {
|
|
201
|
+
m.current = !1;
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
204
|
if (T.contains(l.activeElement) || o && l.activeElement !== E.current && l.activeElement !== k.current)
|
|
@@ -207,29 +207,29 @@ function V(e) {
|
|
|
207
207
|
y.current = null;
|
|
208
208
|
else if (y.current !== null)
|
|
209
209
|
return;
|
|
210
|
-
if (!
|
|
210
|
+
if (!b.current)
|
|
211
211
|
return;
|
|
212
|
-
let
|
|
213
|
-
if ((l.activeElement === E.current || l.activeElement === k.current) && (
|
|
214
|
-
const D = !!((
|
|
212
|
+
let S = [];
|
|
213
|
+
if ((l.activeElement === E.current || l.activeElement === k.current) && (S = r(p.current)), S.length > 0) {
|
|
214
|
+
const D = !!((v = N.current) != null && v.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", P), l.addEventListener("keydown", g, !0);
|
|
220
220
|
const F = setInterval(() => {
|
|
221
|
-
l.activeElement && l.activeElement.tagName === "BODY" &&
|
|
221
|
+
l.activeElement && l.activeElement.tagName === "BODY" && P();
|
|
222
222
|
}, 50);
|
|
223
223
|
return () => {
|
|
224
|
-
clearInterval(F), l.removeEventListener("focusin",
|
|
224
|
+
clearInterval(F), l.removeEventListener("focusin", P), l.removeEventListener("keydown", g, !0);
|
|
225
225
|
};
|
|
226
226
|
}, [s, o, i, c, a, r]);
|
|
227
|
-
const
|
|
228
|
-
h.current === null && (h.current = l.relatedTarget),
|
|
227
|
+
const C = (l) => {
|
|
228
|
+
h.current === null && (h.current = l.relatedTarget), b.current = !0, y.current = l.target;
|
|
229
229
|
const g = t.props.onFocus;
|
|
230
230
|
g && g(l);
|
|
231
231
|
}, R = (l) => {
|
|
232
|
-
h.current === null && (h.current = l.relatedTarget),
|
|
232
|
+
h.current === null && (h.current = l.relatedTarget), b.current = !0;
|
|
233
233
|
};
|
|
234
234
|
return /* @__PURE__ */ se(u.Fragment, {
|
|
235
235
|
children: [/* @__PURE__ */ j("div", {
|
|
@@ -239,7 +239,7 @@ function V(e) {
|
|
|
239
239
|
"data-testid": "sentinelStart"
|
|
240
240
|
}), /* @__PURE__ */ u.cloneElement(t, {
|
|
241
241
|
ref: w,
|
|
242
|
-
onFocus:
|
|
242
|
+
onFocus: C
|
|
243
243
|
}), /* @__PURE__ */ j("div", {
|
|
244
244
|
tabIndex: a ? 0 : -1,
|
|
245
245
|
onFocus: R,
|
|
@@ -319,36 +319,36 @@ function Ue(e) {
|
|
|
319
319
|
onTransitionEnter: r,
|
|
320
320
|
onTransitionExited: c,
|
|
321
321
|
children: a,
|
|
322
|
-
onClose:
|
|
322
|
+
onClose: m,
|
|
323
323
|
open: E,
|
|
324
324
|
rootRef: k
|
|
325
|
-
} = e, h = u.useRef({}), y = u.useRef(null),
|
|
325
|
+
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = Y(b, k), [w, N] = u.useState(!E), C = Ke(a);
|
|
326
326
|
let R = !0;
|
|
327
327
|
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1);
|
|
328
|
-
const l = () => A(y.current), g = () => (h.current.modalRef =
|
|
328
|
+
const l = () => A(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current), P = () => {
|
|
329
329
|
H.mount(g(), {
|
|
330
330
|
disableScrollLock: o
|
|
331
|
-
}),
|
|
331
|
+
}), b.current && (b.current.scrollTop = 0);
|
|
332
332
|
}, F = ee(() => {
|
|
333
333
|
const d = je(t) || l().body;
|
|
334
|
-
H.add(g(), d),
|
|
335
|
-
}), T = () => H.isTopModal(g()),
|
|
336
|
-
y.current = d, d && (E && T() ?
|
|
337
|
-
}),
|
|
334
|
+
H.add(g(), d), b.current && P();
|
|
335
|
+
}), T = () => H.isTopModal(g()), S = ee((d) => {
|
|
336
|
+
y.current = d, d && (E && T() ? P() : b.current && K(b.current, R));
|
|
337
|
+
}), v = u.useCallback(() => {
|
|
338
338
|
H.remove(g(), R);
|
|
339
339
|
}, [R]);
|
|
340
340
|
u.useEffect(() => () => {
|
|
341
|
-
|
|
342
|
-
}, [
|
|
343
|
-
E ? F() : (!
|
|
344
|
-
}, [E,
|
|
341
|
+
v();
|
|
342
|
+
}, [v]), u.useEffect(() => {
|
|
343
|
+
E ? F() : (!C || !i) && v();
|
|
344
|
+
}, [E, v, C, i, F]);
|
|
345
345
|
const M = (d) => (f) => {
|
|
346
346
|
var x;
|
|
347
347
|
(x = d.onKeyDown) == null || x.call(d, f), !(f.key !== "Escape" || f.which === 229 || // Wait until IME is settled.
|
|
348
|
-
!T()) && (s || (f.stopPropagation(),
|
|
348
|
+
!T()) && (s || (f.stopPropagation(), m && m(f, "escapeKeyDown")));
|
|
349
349
|
}, D = (d) => (f) => {
|
|
350
350
|
var x;
|
|
351
|
-
(x = d.onClick) == null || x.call(d, f), f.target === f.currentTarget &&
|
|
351
|
+
(x = d.onClick) == null || x.call(d, f), f.target === f.currentTarget && m && m(f, "backdropClick");
|
|
352
352
|
};
|
|
353
353
|
return {
|
|
354
354
|
getRootProps: (d = {}) => {
|
|
@@ -384,7 +384,7 @@ function Ue(e) {
|
|
|
384
384
|
const d = () => {
|
|
385
385
|
N(!1), r && r();
|
|
386
386
|
}, f = () => {
|
|
387
|
-
N(!0), c && c(), i &&
|
|
387
|
+
N(!0), c && c(), i && v();
|
|
388
388
|
};
|
|
389
389
|
return {
|
|
390
390
|
onEnter: te(d, a == null ? void 0 : a.props.onEnter),
|
|
@@ -392,17 +392,16 @@ function Ue(e) {
|
|
|
392
392
|
};
|
|
393
393
|
},
|
|
394
394
|
rootRef: p,
|
|
395
|
-
portalRef:
|
|
395
|
+
portalRef: S,
|
|
396
396
|
isTopModal: T,
|
|
397
397
|
exited: w,
|
|
398
|
-
hasTransition:
|
|
398
|
+
hasTransition: C
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
401
|
function We(e) {
|
|
402
|
-
return
|
|
402
|
+
return be("MuiModal", e);
|
|
403
403
|
}
|
|
404
|
-
|
|
405
|
-
const qe = (e) => {
|
|
404
|
+
const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
406
405
|
const {
|
|
407
406
|
open: t,
|
|
408
407
|
exited: s,
|
|
@@ -453,24 +452,24 @@ const qe = (e) => {
|
|
|
453
452
|
BackdropProps: r,
|
|
454
453
|
classes: c,
|
|
455
454
|
className: a,
|
|
456
|
-
closeAfterTransition:
|
|
455
|
+
closeAfterTransition: m = !1,
|
|
457
456
|
children: E,
|
|
458
457
|
container: k,
|
|
459
458
|
component: h,
|
|
460
459
|
components: y = {},
|
|
461
|
-
componentsProps:
|
|
460
|
+
componentsProps: b = {},
|
|
462
461
|
disableAutoFocus: p = !1,
|
|
463
462
|
disableEnforceFocus: w = !1,
|
|
464
463
|
disableEscapeKeyDown: N = !1,
|
|
465
|
-
disablePortal:
|
|
464
|
+
disablePortal: C = !1,
|
|
466
465
|
disableRestoreFocus: R = !1,
|
|
467
466
|
disableScrollLock: l = !1,
|
|
468
467
|
hideBackdrop: g = !1,
|
|
469
|
-
keepMounted:
|
|
468
|
+
keepMounted: P = !1,
|
|
470
469
|
onBackdropClick: F,
|
|
471
470
|
onClose: T,
|
|
472
|
-
onTransitionEnter:
|
|
473
|
-
onTransitionExited:
|
|
471
|
+
onTransitionEnter: S,
|
|
472
|
+
onTransitionExited: v,
|
|
474
473
|
open: M,
|
|
475
474
|
slotProps: D = {},
|
|
476
475
|
slots: B = {},
|
|
@@ -479,15 +478,15 @@ const qe = (e) => {
|
|
|
479
478
|
..._
|
|
480
479
|
} = o, d = {
|
|
481
480
|
...o,
|
|
482
|
-
closeAfterTransition:
|
|
481
|
+
closeAfterTransition: m,
|
|
483
482
|
disableAutoFocus: p,
|
|
484
483
|
disableEnforceFocus: w,
|
|
485
484
|
disableEscapeKeyDown: N,
|
|
486
|
-
disablePortal:
|
|
485
|
+
disablePortal: C,
|
|
487
486
|
disableRestoreFocus: R,
|
|
488
487
|
disableScrollLock: l,
|
|
489
488
|
hideBackdrop: g,
|
|
490
|
-
keepMounted:
|
|
489
|
+
keepMounted: P
|
|
491
490
|
}, {
|
|
492
491
|
getRootProps: f,
|
|
493
492
|
getBackdropProps: x,
|
|
@@ -518,7 +517,7 @@ const qe = (e) => {
|
|
|
518
517
|
...B
|
|
519
518
|
},
|
|
520
519
|
slotProps: {
|
|
521
|
-
...
|
|
520
|
+
...b,
|
|
522
521
|
...D
|
|
523
522
|
}
|
|
524
523
|
}, [de, fe] = oe("root", {
|
|
@@ -543,16 +542,16 @@ const qe = (e) => {
|
|
|
543
542
|
}),
|
|
544
543
|
className: Z(r == null ? void 0 : r.className, I == null ? void 0 : I.backdrop),
|
|
545
544
|
ownerState: L
|
|
546
|
-
}),
|
|
547
|
-
return !
|
|
545
|
+
}), me = Y(r == null ? void 0 : r.ref, Q.ref);
|
|
546
|
+
return !P && !M && (!X || G) ? null : /* @__PURE__ */ j(ke, {
|
|
548
547
|
ref: le,
|
|
549
548
|
container: k,
|
|
550
|
-
disablePortal:
|
|
549
|
+
disablePortal: C,
|
|
551
550
|
children: /* @__PURE__ */ se(de, {
|
|
552
551
|
...fe,
|
|
553
552
|
children: [!g && i ? /* @__PURE__ */ j(pe, {
|
|
554
553
|
...Q,
|
|
555
|
-
ref:
|
|
554
|
+
ref: me
|
|
556
555
|
}) : null, /* @__PURE__ */ j(V, {
|
|
557
556
|
disableEnforceFocus: w,
|
|
558
557
|
disableAutoFocus: p,
|
|
@@ -644,7 +643,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
644
643
|
* By default, it uses the body of the top-level document object,
|
|
645
644
|
* so it's simply `document.body` most of the time.
|
|
646
645
|
*/
|
|
647
|
-
container: n.oneOfType([
|
|
646
|
+
container: n.oneOfType([Pe, n.func]),
|
|
648
647
|
/**
|
|
649
648
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
650
649
|
* replace it to the last focused element when it closes.
|
|
@@ -746,5 +745,8 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
746
745
|
export {
|
|
747
746
|
V as F,
|
|
748
747
|
Ve as M,
|
|
749
|
-
|
|
748
|
+
Me as a,
|
|
749
|
+
Ie as b,
|
|
750
|
+
We as g,
|
|
751
|
+
it as m
|
|
750
752
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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 "./
|
|
3
|
-
import { u as $ } from "./useTheme-
|
|
2
|
+
import { H as w, I as N, G as T, n as f, B as m, P as a } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
+
import { u as $ } from "./useTheme-DyaNKf4e.js";
|
|
4
4
|
import { jsx as R } from "react/jsx-runtime";
|
|
5
|
-
import { s as x, u as E, c as O } from "./DefaultPropsProvider-
|
|
6
|
-
import { m as q } from "./memoTheme-
|
|
5
|
+
import { s as x, u as E, c as O } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
6
|
+
import { m as q } from "./memoTheme-D7Fyh_3C.js";
|
|
7
7
|
import { c as C } from "./chainPropTypes-D9lkm76m.js";
|
|
8
8
|
function I(e) {
|
|
9
9
|
const o = typeof e;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const w=require("react"),t=require("./generateUtilityClasses-B_H9HEmg.cjs"),N=require("./useTheme-Cy5kyKJF.cjs"),q=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-3KMGupjb.cjs"),O=require("./memoTheme-Bdg0Y_2O.cjs"),$=require("./chainPropTypes-CEUi6Jb4.cjs");function j(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}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,o,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 \`${o}\`, expected \`integer\`.`)}return null}function P(e,r,...o){return e[r]===void 0?null:y(e,r,...o)}function l(){return null}P.isRequired=y;l.isRequired=l;const T=process.env.NODE_ENV==="production"?l:P;function b(e){return t.generateUtilityClass("MuiPaper",e)}const x=t.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:o,variant:a,classes:n}=e,i={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${o}`]};return p.composeClasses(i,b,n)},M=p.styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[o.variant],!o.square&&r.rounded,o.variant==="elevation"&&r[`elevation${o.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,o){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:t.clsx(h.root,i),ref:o,...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(${t.alpha("#fff",t.getOverlayAlpha(s))}, ${t.alpha("#fff",t.getOverlayAlpha(s))})`}},...v.style}})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,elevation:$.chainPropTypes(T,e=>{const{elevation:r,variant:o}=e;return r>0&&o==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:t.PropTypes.bool,style:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["elevation","outlined"]),t.PropTypes.string])});exports.Paper=g;exports.getPaperUtilityClass=b;exports.integerPropType=T;exports.paperClasses=x;
|